vidspotai-shared 1.0.137 → 1.0.138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/lib/globals/aiModels/enums.d.ts +2 -0
  2. package/lib/globals/aiModels/enums.d.ts.map +1 -1
  3. package/lib/globals/aiModels/enums.js +7 -0
  4. package/lib/globals/aiModels/index.d.ts.map +1 -1
  5. package/lib/globals/aiModels/index.js +2 -0
  6. package/lib/globals/aiModels/providers/falVideo.d.ts +34 -0
  7. package/lib/globals/aiModels/providers/falVideo.d.ts.map +1 -0
  8. package/lib/globals/aiModels/providers/falVideo.js +102 -0
  9. package/lib/globals/film/filmCatalog.d.ts +88 -0
  10. package/lib/globals/film/filmCatalog.d.ts.map +1 -0
  11. package/lib/globals/film/filmCatalog.js +218 -0
  12. package/lib/globals/index.d.ts +2 -0
  13. package/lib/globals/index.d.ts.map +1 -1
  14. package/lib/globals/index.js +2 -0
  15. package/lib/globals/reelRemake.d.ts +116 -0
  16. package/lib/globals/reelRemake.d.ts.map +1 -0
  17. package/lib/globals/reelRemake.js +142 -0
  18. package/lib/globals/types.d.ts +15 -1
  19. package/lib/globals/types.d.ts.map +1 -1
  20. package/lib/globals/types.js +16 -0
  21. package/lib/models/filmProject.model.d.ts +424 -0
  22. package/lib/models/filmProject.model.d.ts.map +1 -0
  23. package/lib/models/filmProject.model.js +14 -0
  24. package/lib/models/image.model.d.ts +3 -0
  25. package/lib/models/image.model.d.ts.map +1 -1
  26. package/lib/models/index.d.ts +2 -0
  27. package/lib/models/index.d.ts.map +1 -1
  28. package/lib/models/index.js +2 -0
  29. package/lib/models/reelRemake.model.d.ts +222 -0
  30. package/lib/models/reelRemake.model.d.ts.map +1 -0
  31. package/lib/models/reelRemake.model.js +2 -0
  32. package/lib/models/video.model.d.ts +5 -0
  33. package/lib/models/video.model.d.ts.map +1 -1
  34. package/lib/schemas/film.schema.d.ts +500 -0
  35. package/lib/schemas/film.schema.d.ts.map +1 -0
  36. package/lib/schemas/film.schema.js +201 -0
  37. package/lib/schemas/index.d.ts +1 -0
  38. package/lib/schemas/index.d.ts.map +1 -1
  39. package/lib/schemas/index.js +1 -0
  40. package/lib/services/agent/providerFallback/chains.d.ts.map +1 -1
  41. package/lib/services/agent/providerFallback/chains.js +13 -0
  42. package/lib/services/agent/tools/generateVideo.tool.d.ts.map +1 -1
  43. package/lib/services/agent/tools/generateVideo.tool.js +2 -1
  44. package/lib/services/aiGen/aiGenFactory.service.d.ts.map +1 -1
  45. package/lib/services/aiGen/aiGenFactory.service.js +4 -0
  46. package/lib/services/aiGen/providers/fal/falVideo.service.d.ts +39 -0
  47. package/lib/services/aiGen/providers/fal/falVideo.service.d.ts.map +1 -0
  48. package/lib/services/aiGen/providers/fal/falVideo.service.js +266 -0
  49. package/lib/services/aiGen/providers/fal/index.d.ts +1 -0
  50. package/lib/services/aiGen/providers/fal/index.d.ts.map +1 -1
  51. package/lib/services/aiGen/providers/fal/index.js +1 -0
  52. package/lib/services/film/compileShotPrompt.d.ts +16 -0
  53. package/lib/services/film/compileShotPrompt.d.ts.map +1 -0
  54. package/lib/services/film/compileShotPrompt.js +152 -0
  55. package/lib/services/film/filmAssets.d.ts +73 -0
  56. package/lib/services/film/filmAssets.d.ts.map +1 -0
  57. package/lib/services/film/filmAssets.js +341 -0
  58. package/lib/services/film/filmCut.d.ts +159 -0
  59. package/lib/services/film/filmCut.d.ts.map +1 -0
  60. package/lib/services/film/filmCut.js +616 -0
  61. package/lib/services/film/filmPublic.d.ts +9 -0
  62. package/lib/services/film/filmPublic.d.ts.map +1 -0
  63. package/lib/services/film/filmPublic.js +39 -0
  64. package/lib/services/film/filmTakes.d.ts +65 -0
  65. package/lib/services/film/filmTakes.d.ts.map +1 -0
  66. package/lib/services/film/filmTakes.js +168 -0
  67. package/lib/services/film/writersRoom.d.ts +276 -0
  68. package/lib/services/film/writersRoom.d.ts.map +1 -0
  69. package/lib/services/film/writersRoom.js +431 -0
  70. package/lib/services/firestore.service.d.ts +7 -0
  71. package/lib/services/firestore.service.d.ts.map +1 -1
  72. package/lib/services/firestore.service.js +15 -0
  73. package/lib/services/index.d.ts +11 -0
  74. package/lib/services/index.d.ts.map +1 -1
  75. package/lib/services/index.js +11 -0
  76. package/lib/services/reelRemake/castDetection.d.ts +56 -0
  77. package/lib/services/reelRemake/castDetection.d.ts.map +1 -0
  78. package/lib/services/reelRemake/castDetection.js +146 -0
  79. package/lib/services/reelRemake/castSuggestion.d.ts +43 -0
  80. package/lib/services/reelRemake/castSuggestion.d.ts.map +1 -0
  81. package/lib/services/reelRemake/castSuggestion.js +99 -0
  82. package/lib/services/reelRemake/keyframeSwap.d.ts +44 -0
  83. package/lib/services/reelRemake/keyframeSwap.d.ts.map +1 -0
  84. package/lib/services/reelRemake/keyframeSwap.js +139 -0
  85. package/lib/services/reelRemake/shootPlan.d.ts +65 -0
  86. package/lib/services/reelRemake/shootPlan.d.ts.map +1 -0
  87. package/lib/services/reelRemake/shootPlan.js +193 -0
  88. package/lib/services/reelRemake/stopWork.d.ts +54 -0
  89. package/lib/services/reelRemake/stopWork.d.ts.map +1 -0
  90. package/lib/services/reelRemake/stopWork.js +91 -0
  91. package/package.json +1 -1
@@ -42,6 +42,8 @@ export declare enum EVideoGenModels {
42
42
  KLING_V3_0 = "kling-v3.0",
43
43
  KLING_V3_0_TURBO = "kling-v3.0-turbo",
44
44
  KLING_V3_0_OMNI = "kling-v3.0-omni",
45
+ FAL_KLING_V4_0 = "fal-kling-v4.0",
46
+ FAL_KLING_V4_0_FLASH = "fal-kling-v4.0-flash",
45
47
  KLING_V4_0 = "kling-v4.0",
46
48
  KLING_V4_0_FLASH = "kling-v4.0-flash",
47
49
  KLING_AVATAR = "kling-avatar",
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,WAAW,gBAAgB;IAC3B,WAAW,g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;;;;;;;;;;;;;;;;;;;;CAuElB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEvF;;;;GAIG;AACH,oBAAY,eAAe;IACzB,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;CAC1C;AAmBD,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAElE,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAE1E;AAED,oBAAY,cAAc;IAIxB,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IAQzC,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;IACvD,2BAA2B,gCAAgC;IAC3D,0BAA0B,+BAA+B;IAIzD,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAC/C,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;CAChD;AAED;;;;GAIG;AACH,oBAAY,aAAa;IACvB,wBAAwB,6BAA6B;CACtD;AAED;;;;;;GAMG;AACH,oBAAY,mBAAmB;IAC7B,uBAAuB,4BAA4B;CACpD;AACD,MAAM,MAAM,qBAAqB,GAAG,GAAG,mBAAmB,EAAE,CAAC;AAE7D;;;;;GAKG;AACH,oBAAY,mBAAmB;IAC7B,mBAAmB,wBAAwB;CAC5C;AACD,MAAM,MAAM,qBAAqB,GAAG,GAAG,mBAAmB,EAAE,CAAC;AAE7D,MAAM,MAAM,WAAW,GACnB,eAAe,GACf,cAAc,GACd,iBAAiB,GACjB,eAAe,GACf,aAAa,GACb,qBAAqB,GACrB,qBAAqB,CAAC"}
@@ -54,6 +54,13 @@ var EVideoGenModels;
54
54
  // globals/aiModels/providers/kling.ts for the full delta.
55
55
  EVideoGenModels["KLING_V3_0_TURBO"] = "kling-v3.0-turbo";
56
56
  EVideoGenModels["KLING_V3_0_OMNI"] = "kling-v3.0-omni";
57
+ // Kling 4.0 / 4.0 Flash, HOSTED ON fal.ai (FalVideoService). Kling's own
58
+ // 4.0 API isn't open to our account yet (kling.ai/dev/pricing 2026-10-27:
59
+ // "Kling 4.0 API access is not yet available"). The `fal-` prefix keeps
60
+ // getProviderKey() honest — the task id lives on fal, not Kling. Add native
61
+ // `kling-v4.0` keys alongside once Kling opens it.
62
+ EVideoGenModels["FAL_KLING_V4_0"] = "fal-kling-v4.0";
63
+ EVideoGenModels["FAL_KLING_V4_0_FLASH"] = "fal-kling-v4.0-flash";
57
64
  // Kling 4.0 / 4.0 Flash on Kling's own API 2.0 (KLING_API_KEY, Flagship
58
65
  // resource pack). The fal-hosted `fal-kling-v4.0*` keys live on dev only.
59
66
  EVideoGenModels["KLING_V4_0"] = "kling-v4.0";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAiBvC,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,YAAY,CAevB,CAAC;AAEvC,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAE9C,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAMnE,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAkBvC,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,YAAY,CAgBvB,CAAC;AAEvC,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAE9C,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAMnE,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD"}
@@ -32,6 +32,7 @@ const elevenlabs_1 = require("./providers/elevenlabs");
32
32
  const anthropic_1 = require("./providers/anthropic");
33
33
  const topaz_1 = require("./providers/topaz");
34
34
  const xai_1 = require("./providers/xai");
35
+ const falVideo_1 = require("./providers/falVideo");
35
36
  const fal_1 = require("./providers/fal");
36
37
  exports.aiModelConfigs = {
37
38
  ...pixverse_1.pixverseConfigs,
@@ -47,6 +48,7 @@ exports.aiModelConfigs = {
47
48
  ...anthropic_1.anthropicConfigs,
48
49
  ...topaz_1.topazConfigs,
49
50
  ...xai_1.xaiConfigs,
51
+ ...falVideo_1.falVideoConfigs,
50
52
  ...fal_1.falConfigs,
51
53
  };
52
54
  __exportStar(require("./tierHelpers"), exports);
@@ -0,0 +1,34 @@
1
+ import { IModelSchema } from "../types";
2
+ /**
3
+ * fal.ai-HOSTED video generators — served by FalVideoService
4
+ * (services/aiGen/providers/fal/falVideo.service.ts) over fal's queue API.
5
+ *
6
+ * ─── Kling 4.0 / 4.0 Flash ────────────────────────────────────────────────
7
+ * Kling's native 4.0 API isn't available to us yet (kling.ai/dev/pricing
8
+ * 2026-10-27 lists it "Coming Soon"; resource packs don't cover it), so 4.0
9
+ * ships through fal. Endpoints (schemas pulled 2026-10-27 from
10
+ * fal.ai/api/openapi/queue/openapi.json?endpoint_id=…):
11
+ * fal-ai/kling-video/v4/text-to-video prompt|multi_prompt, 3–30s, 16:9/9:16/1:1/21:9, 720p|1080p
12
+ * fal-ai/kling-video/v4/image-to-video start_image_url (+end, ≤8 middle keyframes); ratio follows the frame
13
+ * fal-ai/kling-video/v4/reference-to-video ≤10 image_urls, ≤5 video_urls (30s total), @Image1/@Video1 citations
14
+ * fal-ai/kling-video/v4/flash/text-to-video 3–20s, 720p only
15
+ * fal-ai/kling-video/v4/flash/image-to-video
16
+ * `resolution` defaults to 1080p on fal — FalVideoService ALWAYS sends it so
17
+ * a std request can't silently bill at the 1080p rate.
18
+ * Native stereo audio is always on (no toggle) → listed in chains.ts AUDIO_MODELS
19
+ * rather than declaring an `audio` field.
20
+ *
21
+ * Pricing verified 2026-10-27 against https://api.fal.ai/v1/models/pricing:
22
+ * v4 text/image/reference-to-video $0.157 / output-second (720p base)
23
+ * v4 flash text/image-to-video $0.094 / output-second (720p only)
24
+ * 1080p = 1.5× (matches Kling's own preview units: 1.0 vs 1.5 units/s).
25
+ *
26
+ * Live-verified 2026-10-27 via FalVideoService: v4 text-to-video (5s 16:9
27
+ * 720p → 5.04s 1280x720 + stereo AAC, ~5 min) and v4 image-to-video (3s →
28
+ * 3.04s, ~6 min). The queue's status/result base is the OWNER app
29
+ * (`fal-ai/kling-video`), not the sub-endpoint — taken from status_url.
30
+ * With a reference VIDEO, fal (like Kling) bills 0.6× the rate on
31
+ * (output × 2) when input ≤ output, else (input + output) seconds.
32
+ */
33
+ export declare const falVideoConfigs: Record<string, IModelSchema>;
34
+ //# sourceMappingURL=falVideo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"falVideo.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/falVideo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAKxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAsExD,CAAC"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.falVideoConfigs = void 0;
4
+ const range = (min, max) => Array.from({ length: max - min + 1 }, (_, i) => min + i);
5
+ /**
6
+ * fal.ai-HOSTED video generators — served by FalVideoService
7
+ * (services/aiGen/providers/fal/falVideo.service.ts) over fal's queue API.
8
+ *
9
+ * ─── Kling 4.0 / 4.0 Flash ────────────────────────────────────────────────
10
+ * Kling's native 4.0 API isn't available to us yet (kling.ai/dev/pricing
11
+ * 2026-10-27 lists it "Coming Soon"; resource packs don't cover it), so 4.0
12
+ * ships through fal. Endpoints (schemas pulled 2026-10-27 from
13
+ * fal.ai/api/openapi/queue/openapi.json?endpoint_id=…):
14
+ * fal-ai/kling-video/v4/text-to-video prompt|multi_prompt, 3–30s, 16:9/9:16/1:1/21:9, 720p|1080p
15
+ * fal-ai/kling-video/v4/image-to-video start_image_url (+end, ≤8 middle keyframes); ratio follows the frame
16
+ * fal-ai/kling-video/v4/reference-to-video ≤10 image_urls, ≤5 video_urls (30s total), @Image1/@Video1 citations
17
+ * fal-ai/kling-video/v4/flash/text-to-video 3–20s, 720p only
18
+ * fal-ai/kling-video/v4/flash/image-to-video
19
+ * `resolution` defaults to 1080p on fal — FalVideoService ALWAYS sends it so
20
+ * a std request can't silently bill at the 1080p rate.
21
+ * Native stereo audio is always on (no toggle) → listed in chains.ts AUDIO_MODELS
22
+ * rather than declaring an `audio` field.
23
+ *
24
+ * Pricing verified 2026-10-27 against https://api.fal.ai/v1/models/pricing:
25
+ * v4 text/image/reference-to-video $0.157 / output-second (720p base)
26
+ * v4 flash text/image-to-video $0.094 / output-second (720p only)
27
+ * 1080p = 1.5× (matches Kling's own preview units: 1.0 vs 1.5 units/s).
28
+ *
29
+ * Live-verified 2026-10-27 via FalVideoService: v4 text-to-video (5s 16:9
30
+ * 720p → 5.04s 1280x720 + stereo AAC, ~5 min) and v4 image-to-video (3s →
31
+ * 3.04s, ~6 min). The queue's status/result base is the OWNER app
32
+ * (`fal-ai/kling-video`), not the sub-endpoint — taken from status_url.
33
+ * With a reference VIDEO, fal (like Kling) bills 0.6× the rate on
34
+ * (output × 2) when input ≤ output, else (input + output) seconds.
35
+ */
36
+ exports.falVideoConfigs = {
37
+ "fal-kling-v4.0": {
38
+ modelId: "fal-ai/kling-video/v4",
39
+ type: ["text-to-video", "image-to-video"],
40
+ tier: "T3",
41
+ fields: {
42
+ prompt: { required: true },
43
+ aspectRatio: { allowedValues: ["16:9", "9:16", "1:1", "21:9"] },
44
+ // Every integer 3–30 is legal; billed per delivered second.
45
+ duration: { allowedValues: range(3, 30), default: 5 },
46
+ // std→720p, pro→1080p (Kling's own equivalence). Explicit resolution wins.
47
+ mode: { allowedValues: ["std", "pro"] },
48
+ resolution: { allowedValues: ["720p", "1080p"], default: "720p" },
49
+ inputImageUrl: {}, // → start_image_url
50
+ lastFrameImageUrl: {}, // → end_image_url
51
+ referenceImageUrls: { max: 10 }, // → reference-to-video image_urls (@Image1…)
52
+ referenceVideoUrls: { max: 5 }, // → reference-to-video video_urls (@Video1…)
53
+ multiShot: {}, // → multi_prompt[] (≤512 chars/shot)
54
+ },
55
+ concurrentRequests: 5,
56
+ pollIntervalMs: 10000,
57
+ // 30s 1080p generations run long on fal's queue.
58
+ pollTimeoutMs: 30 * 60000,
59
+ cost: {
60
+ perSecondByResolution: { "720p": 0.157, "1080p": 0.2355 },
61
+ videoInputPerSecondByResolution: { "720p": 0.0942, "1080p": 0.1413 },
62
+ },
63
+ guidance: {
64
+ quality: 5,
65
+ speed: 3,
66
+ bestFor: "Kling's newest flagship: long single takes up to 30s, native stereo audio, up to 10 keyframes, and Omni reference (10 images + 5 videos cited as @Image1/@Video1). Best Kling for cinematic, multi-shot storytelling.",
67
+ notes: "Audio is always on and included in the price. 1080p costs 1.5× 720p. A reference video bills on input+output seconds. No 4K yet.",
68
+ },
69
+ },
70
+ // GATED 2026-10-27: a live smoke test of both fal Flash endpoints
71
+ // (flash/text-to-video 3s 9:16, flash/image-to-video 3s) returned fal's
72
+ // canned schema-example clips (12s, 16:9, byte-identical file sizes
73
+ // 3478246 / 2953131) instead of a generation — Flash isn't really live on
74
+ // fal yet. Set KLING_V4_FLASH_LIVE=true (Doppler + Railway) only after a
75
+ // re-test returns a real clip at the requested duration/ratio.
76
+ "fal-kling-v4.0-flash": {
77
+ modelId: "fal-ai/kling-video/v4/flash",
78
+ type: ["text-to-video", "image-to-video"],
79
+ tier: "T2",
80
+ gatedByEnv: "KLING_V4_FLASH_LIVE",
81
+ fields: {
82
+ prompt: { required: true },
83
+ aspectRatio: { allowedValues: ["16:9", "9:16", "1:1", "21:9"] },
84
+ duration: { allowedValues: range(3, 20), default: 5 },
85
+ mode: { allowedValues: ["std"] },
86
+ resolution: { allowedValues: ["720p"], default: "720p" },
87
+ inputImageUrl: {}, // → start_image_url
88
+ },
89
+ concurrentRequests: 5,
90
+ pollIntervalMs: 10000,
91
+ pollTimeoutMs: 20 * 60000,
92
+ cost: {
93
+ perSecondByResolution: { "720p": 0.094 },
94
+ },
95
+ guidance: {
96
+ quality: 4,
97
+ speed: 5,
98
+ bestFor: "Fast, budget Kling 4.0: text or image to video up to 20s with native audio at 720p. Great for drafts, social clips and high-volume B-roll.",
99
+ notes: "720p only, no end frame or references. About 40% cheaper than Kling 4.0.",
100
+ },
101
+ },
102
+ };
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Film Studio director-controls catalog — the one vocabulary the UI pickers,
3
+ * the Writers' Room (Stage 2) and the shot prompt compiler all share.
4
+ *
5
+ * Each option carries:
6
+ * - `key` stable id persisted on projects/shots (never rename; add new keys instead)
7
+ * - `label` short UI label
8
+ * - `hint` one-line tooltip explaining what it does to the picture
9
+ * - `prompt` the fragment the compiler injects into the model prompt
10
+ *
11
+ * Served to the frontend by GET /v1/film/catalog, so the frontend never keeps
12
+ * its own copy. "Auto" is represented by an unset field, not a catalog entry.
13
+ */
14
+ import type { FilmAspectRatio, FilmLook, FilmVideoModel } from "../../models/filmProject.model";
15
+ export interface FilmCatalogOption {
16
+ key: string;
17
+ label: string;
18
+ hint: string;
19
+ prompt: string;
20
+ }
21
+ export interface FilmPaletteOption extends FilmCatalogOption {
22
+ /** Display swatches, darkest to lightest. */
23
+ swatches: string[];
24
+ }
25
+ export declare const FILM_GENRES: FilmCatalogOption[];
26
+ export declare const FILM_ERAS: FilmCatalogOption[];
27
+ export declare const FILM_TEMPOS: FilmCatalogOption[];
28
+ export declare const FILM_CAMERA_BODIES: FilmCatalogOption[];
29
+ export declare const FILM_LENSES: FilmCatalogOption[];
30
+ export declare const FILM_FOCAL_LENGTHS: FilmCatalogOption[];
31
+ export declare const FILM_APERTURES: FilmCatalogOption[];
32
+ export declare const FILM_PALETTES: FilmPaletteOption[];
33
+ export declare const FILM_LIGHTING: FilmCatalogOption[];
34
+ export declare const FILM_SHOT_TYPES: FilmCatalogOption[];
35
+ export declare const FILM_CAMERA_MOVES: FilmCatalogOption[];
36
+ export interface FilmVideoModelSpec {
37
+ key: FilmVideoModel;
38
+ label: string;
39
+ hint: string;
40
+ /** Max reference images the model accepts per request. */
41
+ maxRefImages: number;
42
+ minDurationSec: number;
43
+ maxDurationSec: number;
44
+ aspectRatios: FilmAspectRatio[];
45
+ /** Generates synced dialogue/ambient audio itself. */
46
+ nativeAudio: boolean;
47
+ }
48
+ /** Mirrors the aiModels registry entries (bytedance.ts / kling.ts) for these two keys. */
49
+ export declare const FILM_VIDEO_MODELS: FilmVideoModelSpec[];
50
+ /** Look field → its catalog. Drives validation and the pickers. */
51
+ export declare const FILM_LOOK_CATALOG: Record<keyof FilmLook, FilmCatalogOption[]>;
52
+ export declare const FILM_LOOK_FIELDS: (keyof FilmLook)[];
53
+ export declare function findFilmOption(options: FilmCatalogOption[], key: string | undefined): FilmCatalogOption | undefined;
54
+ export declare function getFilmVideoModelSpec(key: FilmVideoModel): FilmVideoModelSpec;
55
+ /** Everything the frontend needs to render the pickers, in one payload. */
56
+ /**
57
+ * Image models offered for cast portraits, turnaround sheets and location
58
+ * plates. All three persist outputs to our own storage (so the URLs stay valid
59
+ * as long-lived references), take up to 14 reference images and cover every
60
+ * aspect Film Studio uses (3:4 portraits, 16:9 sheets, 16:9/21:9/9:16 plates).
61
+ */
62
+ export interface FilmImageModelSpec {
63
+ key: string;
64
+ label: string;
65
+ hint: string;
66
+ /** imageSize sent with every request ("2K" for all three today). */
67
+ imageSize: string;
68
+ }
69
+ export declare const FILM_IMAGE_MODELS: FilmImageModelSpec[];
70
+ export declare const DEFAULT_FILM_IMAGE_MODEL: string;
71
+ export declare function getFilmImageModelSpec(key?: string): FilmImageModelSpec;
72
+ export declare const FILM_CATALOG: {
73
+ genres: FilmCatalogOption[];
74
+ eras: FilmCatalogOption[];
75
+ tempos: FilmCatalogOption[];
76
+ cameraBodies: FilmCatalogOption[];
77
+ lenses: FilmCatalogOption[];
78
+ focalLengths: FilmCatalogOption[];
79
+ apertures: FilmCatalogOption[];
80
+ palettes: FilmPaletteOption[];
81
+ lighting: FilmCatalogOption[];
82
+ shotTypes: FilmCatalogOption[];
83
+ cameraMoves: FilmCatalogOption[];
84
+ videoModels: FilmVideoModelSpec[];
85
+ imageModels: FilmImageModelSpec[];
86
+ };
87
+ export type FilmCatalog = typeof FILM_CATALOG;
88
+ //# sourceMappingURL=filmCatalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filmCatalog.d.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e,EAAE,CAAC;IAChC,sDAAsD;IACtD,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,EAAE,kBAAkB,EAqBjD,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,QAAQ,EAAE,iBAAiB,EAAE,CAUzE,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAqC,CAAC,MAAM,QAAQ,CAAC,EAAE,CAAC;AAErF,wBAAgB,cAAc,CAC5B,OAAO,EAAE,iBAAiB,EAAE,EAC5B,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB,iBAAiB,GAAG,SAAS,CAG/B;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,kBAAkB,CAE7E;AAED,2EAA2E;AAC3E;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,EAAE,kBAAkB,EAmBjD,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAA4B,CAAC;AAElE,wBAAgB,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAEtE;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAcxB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC"}
@@ -0,0 +1,218 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FILM_CATALOG = exports.DEFAULT_FILM_IMAGE_MODEL = exports.FILM_IMAGE_MODELS = exports.FILM_LOOK_FIELDS = exports.FILM_LOOK_CATALOG = exports.FILM_VIDEO_MODELS = exports.FILM_CAMERA_MOVES = exports.FILM_SHOT_TYPES = exports.FILM_LIGHTING = exports.FILM_PALETTES = exports.FILM_APERTURES = exports.FILM_FOCAL_LENGTHS = exports.FILM_LENSES = exports.FILM_CAMERA_BODIES = exports.FILM_TEMPOS = exports.FILM_ERAS = exports.FILM_GENRES = void 0;
4
+ exports.findFilmOption = findFilmOption;
5
+ exports.getFilmVideoModelSpec = getFilmVideoModelSpec;
6
+ exports.getFilmImageModelSpec = getFilmImageModelSpec;
7
+ exports.FILM_GENRES = [
8
+ { key: "drama", label: "Drama", hint: "Grounded, character-driven, emotionally honest", prompt: "grounded character drama, naturalistic performances" },
9
+ { key: "romance", label: "Romance", hint: "Intimate framing, warm tones, lingering looks", prompt: "romantic drama, intimate framing, tender lingering moments" },
10
+ { key: "thriller", label: "Thriller", hint: "Tension, tight framing, uneasy stillness", prompt: "suspense thriller, mounting tension, tight uneasy framing" },
11
+ { key: "horror", label: "Horror", hint: "Dread, deep shadow, negative space", prompt: "horror film, creeping dread, deep shadows, unsettling negative space" },
12
+ { key: "action", label: "Action", hint: "Kinetic movement, impact, clear geography", prompt: "action film, kinetic movement, visceral impact, clear spatial geography" },
13
+ { key: "comedy", label: "Comedy", hint: "Bright, clean, readable reactions", prompt: "comedy, bright even lighting, clear readable reactions and timing" },
14
+ { key: "scifi", label: "Sci-Fi", hint: "Speculative tech, scale, clean geometry", prompt: "science fiction, speculative technology, sense of scale, precise geometry" },
15
+ { key: "fantasy", label: "Fantasy", hint: "Mythic worlds, painterly light", prompt: "epic fantasy, mythic world-building, painterly light" },
16
+ { key: "noir", label: "Noir / Crime", hint: "Hard shadows, rain, moral ambiguity", prompt: "neo-noir crime film, hard shadows, wet streets, moral ambiguity" },
17
+ { key: "mystery", label: "Mystery", hint: "Clues, partial reveals, quiet tension", prompt: "mystery, deliberate partial reveals, quiet tension" },
18
+ { key: "western", label: "Western", hint: "Wide landscapes, dust, sun-bleached tones", prompt: "western, vast landscapes, dust, sun-bleached tones" },
19
+ { key: "period", label: "Period", hint: "Historical setting, authentic costume and props", prompt: "period drama, historically authentic costume, props and set dressing" },
20
+ { key: "war", label: "War", hint: "Chaos, grit, desaturated urgency", prompt: "war film, gritty chaos, desaturated urgency" },
21
+ { key: "animated", label: "Animated", hint: "Stylised 3D animated feature look", prompt: "high-end 3D animated feature film style, expressive stylised characters" },
22
+ ];
23
+ exports.FILM_ERAS = [
24
+ { key: "1940s", label: "1940s", hint: "Studio-era glamour, black-and-white sensibility", prompt: "1940s setting and filmmaking style" },
25
+ { key: "1960s", label: "1960s", hint: "Mid-century design, saturated film stock", prompt: "1960s setting, mid-century design, saturated film stock" },
26
+ { key: "1970s", label: "1970s", hint: "Earth tones, grain, zoom-lens realism", prompt: "1970s setting, earthy palette, heavy grain, gritty realism" },
27
+ { key: "1980s", label: "1980s", hint: "Neon, haze, bold colour", prompt: "1980s setting, neon, atmospheric haze, bold colour" },
28
+ { key: "1990s", label: "1990s", hint: "Grunge textures, practical light", prompt: "1990s setting, grunge textures, practical lighting" },
29
+ { key: "2000s", label: "2000s", hint: "Early digital, bleach-bypass contrast", prompt: "2000s setting, early-digital look, high contrast" },
30
+ { key: "present", label: "Present day", hint: "Contemporary world and wardrobe", prompt: "present-day contemporary setting" },
31
+ { key: "near-future", label: "Near future", hint: "Ten years out, plausible tech", prompt: "near-future setting, plausible emerging technology" },
32
+ ];
33
+ exports.FILM_TEMPOS = [
34
+ { key: "calm", label: "Calm", hint: "Long takes, slow movement, room to breathe", prompt: "calm unhurried pacing, slow deliberate movement" },
35
+ { key: "measured", label: "Measured", hint: "Steady, classical pacing", prompt: "steady classical pacing" },
36
+ { key: "dynamic", label: "Dynamic", hint: "Energetic movement and momentum", prompt: "dynamic energetic pacing, strong momentum" },
37
+ { key: "frantic", label: "Frantic", hint: "Urgent, chaotic, fast motion", prompt: "frantic urgent pacing, chaotic fast motion" },
38
+ ];
39
+ exports.FILM_CAMERA_BODIES = [
40
+ { key: "digital-cinema", label: "Digital cinema", hint: "Clean, sharp, modern large-sensor look", prompt: "shot on a large-sensor digital cinema camera, clean and sharp" },
41
+ { key: "35mm", label: "35mm film", hint: "Classic film grain and roll-off", prompt: "shot on 35mm film, organic grain, soft highlight roll-off" },
42
+ { key: "16mm", label: "16mm film", hint: "Heavier grain, documentary intimacy", prompt: "shot on 16mm film, heavy grain, intimate documentary texture" },
43
+ { key: "super8", label: "Super 8", hint: "Home-movie nostalgia, light leaks", prompt: "Super 8 home-movie footage, light leaks, flicker, faded colour" },
44
+ { key: "camcorder", label: "Camcorder", hint: "Lo-fi tape video, found-footage feel", prompt: "lo-fi consumer camcorder video, tape artefacts, found-footage feel" },
45
+ { key: "imax", label: "IMAX 65mm", hint: "Huge resolution, epic clarity", prompt: "shot on IMAX 65mm, immense detail and epic clarity" },
46
+ ];
47
+ exports.FILM_LENSES = [
48
+ { key: "spherical", label: "Clean spherical", hint: "Neutral, distortion-free", prompt: "clean spherical lens" },
49
+ { key: "anamorphic", label: "Anamorphic", hint: "Oval bokeh, horizontal flares, widescreen feel", prompt: "anamorphic lens, oval bokeh, horizontal lens flares" },
50
+ { key: "vintage", label: "Vintage glass", hint: "Soft edges, warm halation", prompt: "vintage lens, soft edges, warm halation around highlights" },
51
+ { key: "macro", label: "Macro", hint: "Extreme detail at close range", prompt: "macro lens, extreme close detail" },
52
+ { key: "fisheye", label: "Fisheye", hint: "Exaggerated barrel distortion", prompt: "fisheye lens, strong barrel distortion" },
53
+ ];
54
+ exports.FILM_FOCAL_LENGTHS = [
55
+ { key: "14mm", label: "14mm", hint: "Ultra-wide, exaggerated depth", prompt: "14mm ultra-wide focal length" },
56
+ { key: "24mm", label: "24mm", hint: "Wide, environmental", prompt: "24mm wide focal length" },
57
+ { key: "35mm", label: "35mm", hint: "Natural, slightly wide", prompt: "35mm focal length" },
58
+ { key: "50mm", label: "50mm", hint: "Closest to the human eye", prompt: "50mm normal focal length" },
59
+ { key: "85mm", label: "85mm", hint: "Flattering portrait compression", prompt: "85mm portrait focal length, flattering compression" },
60
+ { key: "135mm", label: "135mm", hint: "Telephoto, stacked background", prompt: "135mm telephoto, compressed stacked background" },
61
+ ];
62
+ exports.FILM_APERTURES = [
63
+ { key: "f1.4", label: "f/1.4", hint: "Razor-thin focus, creamy background", prompt: "shallow depth of field at f/1.4, creamy background blur" },
64
+ { key: "f2.8", label: "f/2.8", hint: "Subject isolated, background soft", prompt: "f/2.8, subject isolated against a soft background" },
65
+ { key: "f5.6", label: "f/5.6", hint: "Moderate depth", prompt: "f/5.6, moderate depth of field" },
66
+ { key: "f11", label: "f/11", hint: "Deep focus, everything sharp", prompt: "deep focus at f/11, foreground to background sharp" },
67
+ ];
68
+ exports.FILM_PALETTES = [
69
+ { key: "teal-orange", label: "Teal & Orange", hint: "Blockbuster complementary grade", prompt: "teal and orange colour grade", swatches: ["#0b2e33", "#1f6f78", "#7fb7be", "#f2a65a", "#e2711d"] },
70
+ { key: "bleach-bypass", label: "Bleach Bypass", hint: "Desaturated, silvery, high contrast", prompt: "bleach bypass grade, desaturated silvery high contrast", swatches: ["#1a1a1a", "#4a4d4f", "#8a8f91", "#c4c7c5", "#e9e7e1"] },
71
+ { key: "neon-noir", label: "Neon Noir", hint: "Magenta and cyan against black", prompt: "neon noir palette, magenta and cyan light against deep black", swatches: ["#07040f", "#3a0ca3", "#f72585", "#4cc9f0", "#b5f2ff"] },
72
+ { key: "golden-hour", label: "Golden Hour", hint: "Honeyed warmth, long shadows", prompt: "golden hour palette, honeyed warm light, long shadows", swatches: ["#3b2414", "#8c4a1f", "#d98c3a", "#f4c27a", "#fbe7c6"] },
73
+ { key: "pastel", label: "Pastel Dream", hint: "Soft, airy, symmetrical whimsy", prompt: "soft pastel palette, airy and whimsical", swatches: ["#c9b6e4", "#f6c6d8", "#fde2c9", "#c8ead3", "#bfe0f5"] },
74
+ { key: "monochrome", label: "Monochrome", hint: "Black and white", prompt: "black and white monochrome", swatches: ["#000000", "#3d3d3d", "#7a7a7a", "#bdbdbd", "#ffffff"] },
75
+ { key: "cold-steel", label: "Cold Steel", hint: "Blue-grey, clinical, wintry", prompt: "cold steel blue-grey palette, clinical and wintry", swatches: ["#0e1a24", "#2b4257", "#5d7a91", "#9fb4c4", "#dde6ec"] },
76
+ { key: "kodachrome", label: "Vintage Warm", hint: "Rich reds and yellows of old slide film", prompt: "vintage slide-film colour, rich reds and warm yellows", swatches: ["#2d1b12", "#9b2c1f", "#d9822b", "#e9c46a", "#f1ead6"] },
77
+ { key: "emerald", label: "Emerald Forest", hint: "Deep greens, mossy shadows", prompt: "deep emerald greens, mossy shadows", swatches: ["#08170f", "#14432a", "#2f7a4b", "#7fbf7f", "#d7ecd2"] },
78
+ { key: "crimson", label: "Crimson Shadow", hint: "Blood red accents in darkness", prompt: "crimson red accents against deep darkness", swatches: ["#0a0505", "#3b0a0a", "#8e1414", "#d12a2a", "#f2d0c4"] },
79
+ ];
80
+ exports.FILM_LIGHTING = [
81
+ { key: "natural", label: "Natural daylight", hint: "Soft, motivated by real sources", prompt: "natural motivated daylight" },
82
+ { key: "golden-hour", label: "Golden hour", hint: "Low warm sun, backlit rim", prompt: "low golden-hour sun, warm backlit rim light" },
83
+ { key: "overcast", label: "Overcast", hint: "Shadowless soft light", prompt: "soft overcast light, minimal shadows" },
84
+ { key: "low-key", label: "Low-key", hint: "Chiaroscuro, faces carved from dark", prompt: "low-key chiaroscuro lighting, faces carved out of darkness" },
85
+ { key: "high-key", label: "High-key", hint: "Bright, even, few shadows", prompt: "bright high-key lighting" },
86
+ { key: "silhouette", label: "Silhouette", hint: "Subject dark against bright background", prompt: "subject in silhouette against a bright background" },
87
+ { key: "neon", label: "Neon practicals", hint: "Coloured signage lighting the scene", prompt: "lit by coloured neon practicals" },
88
+ { key: "firelight", label: "Candle / firelight", hint: "Flickering warm pools of light", prompt: "flickering candle and firelight, warm pools of light" },
89
+ { key: "moonlight", label: "Moonlight", hint: "Cool blue night ambience", prompt: "cool blue moonlight" },
90
+ { key: "window", label: "Window light", hint: "Single soft source from the side", prompt: "single soft window light from the side" },
91
+ { key: "hard-noon", label: "Hard noon sun", hint: "Harsh overhead, deep eye shadows", prompt: "harsh overhead noon sun, hard shadows" },
92
+ ];
93
+ exports.FILM_SHOT_TYPES = [
94
+ { key: "establishing", label: "Establishing", hint: "Shows where we are", prompt: "establishing shot" },
95
+ { key: "extreme-wide", label: "Extreme wide", hint: "Figure tiny in a vast frame", prompt: "extreme wide shot" },
96
+ { key: "wide", label: "Wide", hint: "Full body plus surroundings", prompt: "wide shot" },
97
+ { key: "medium", label: "Medium", hint: "Waist up", prompt: "medium shot" },
98
+ { key: "medium-close", label: "Medium close-up", hint: "Chest up", prompt: "medium close-up" },
99
+ { key: "close-up", label: "Close-up", hint: "Face fills the frame", prompt: "close-up" },
100
+ { key: "extreme-close-up", label: "Extreme close-up", hint: "Eyes, hands, a detail", prompt: "extreme close-up" },
101
+ { key: "over-shoulder", label: "Over the shoulder", hint: "Conversation coverage", prompt: "over-the-shoulder shot" },
102
+ { key: "two-shot", label: "Two-shot", hint: "Two characters in frame", prompt: "two-shot" },
103
+ { key: "pov", label: "POV", hint: "Through a character's eyes", prompt: "point-of-view shot" },
104
+ { key: "insert", label: "Insert", hint: "Cutaway to an object", prompt: "insert shot of a detail" },
105
+ { key: "low-angle", label: "Low angle", hint: "Looking up: power, menace", prompt: "low-angle shot looking up" },
106
+ { key: "high-angle", label: "High angle", hint: "Looking down: vulnerability", prompt: "high-angle shot looking down" },
107
+ ];
108
+ exports.FILM_CAMERA_MOVES = [
109
+ { key: "static", label: "Static", hint: "Locked-off camera", prompt: "static locked-off camera" },
110
+ { key: "push-in", label: "Push in", hint: "Dolly toward the subject", prompt: "slow dolly push-in" },
111
+ { key: "pull-out", label: "Pull out", hint: "Dolly away to reveal", prompt: "dolly pull-out revealing the surroundings" },
112
+ { key: "pan-left", label: "Pan left", hint: "Rotate to the left", prompt: "pan left" },
113
+ { key: "pan-right", label: "Pan right", hint: "Rotate to the right", prompt: "pan right" },
114
+ { key: "tilt-up", label: "Tilt up", hint: "Rotate upward", prompt: "tilt up" },
115
+ { key: "tilt-down", label: "Tilt down", hint: "Rotate downward", prompt: "tilt down" },
116
+ { key: "truck-left", label: "Truck left", hint: "Slide sideways to the left", prompt: "camera trucks left" },
117
+ { key: "truck-right", label: "Truck right", hint: "Slide sideways to the right", prompt: "camera trucks right" },
118
+ { key: "tracking", label: "Tracking", hint: "Move alongside the subject", prompt: "tracking shot alongside the subject" },
119
+ { key: "follow", label: "Follow", hint: "Behind the subject as they move", prompt: "camera follows behind the subject" },
120
+ { key: "lead", label: "Lead", hint: "In front, moving backward", prompt: "camera leads the subject, moving backward" },
121
+ { key: "orbit", label: "Orbit", hint: "Circle around the subject", prompt: "camera orbits around the subject" },
122
+ { key: "crane-up", label: "Crane up", hint: "Rise high above", prompt: "crane up rising above the scene" },
123
+ { key: "crane-down", label: "Crane down", hint: "Descend into the scene", prompt: "crane down into the scene" },
124
+ { key: "handheld", label: "Handheld", hint: "Organic shake, immediacy", prompt: "handheld camera, organic movement" },
125
+ { key: "steadicam", label: "Steadicam", hint: "Smooth floating glide", prompt: "smooth floating steadicam" },
126
+ { key: "drone", label: "Drone flyover", hint: "Aerial sweep", prompt: "aerial drone flyover" },
127
+ { key: "aerial-pullback", label: "Aerial pullback", hint: "Rise and pull back to reveal scale", prompt: "aerial pullback revealing scale" },
128
+ { key: "whip-pan", label: "Whip pan", hint: "Blurred snap to a new subject", prompt: "fast whip pan" },
129
+ { key: "dolly-zoom", label: "Dolly zoom", hint: "Vertigo effect: background warps", prompt: "dolly zoom vertigo effect" },
130
+ { key: "rack-focus", label: "Rack focus", hint: "Focus shifts between subjects", prompt: "rack focus between foreground and background" },
131
+ { key: "slow-zoom-in", label: "Slow zoom in", hint: "Creeping optical zoom", prompt: "slow zoom in" },
132
+ { key: "slow-zoom-out", label: "Slow zoom out", hint: "Gradual optical zoom out", prompt: "slow zoom out" },
133
+ { key: "snorricam", label: "Body-mounted", hint: "Camera fixed to the actor, world moves", prompt: "body-mounted snorricam, the world sways around the subject" },
134
+ { key: "bullet-time", label: "Frozen moment", hint: "Time slows while camera circles", prompt: "frozen-time moment as the camera circles" },
135
+ ];
136
+ /** Mirrors the aiModels registry entries (bytedance.ts / kling.ts) for these two keys. */
137
+ exports.FILM_VIDEO_MODELS = [
138
+ {
139
+ key: "bytedance-seedance-2.5",
140
+ label: "Seedance 2.5",
141
+ hint: "Best cast consistency (up to 30 references), shots up to 30s, speaks dialogue natively",
142
+ maxRefImages: 30,
143
+ minDurationSec: 4,
144
+ maxDurationSec: 30,
145
+ aspectRatios: ["16:9", "21:9", "9:16"],
146
+ nativeAudio: true,
147
+ },
148
+ {
149
+ key: "kling-v3-omni-video",
150
+ label: "Kling 3.0 Omni",
151
+ hint: "Strong motion and multi-shot, up to 7 references, shots up to 15s",
152
+ maxRefImages: 7,
153
+ minDurationSec: 3,
154
+ maxDurationSec: 15,
155
+ aspectRatios: ["16:9", "9:16"],
156
+ nativeAudio: false,
157
+ },
158
+ ];
159
+ /** Look field → its catalog. Drives validation and the pickers. */
160
+ exports.FILM_LOOK_CATALOG = {
161
+ genre: exports.FILM_GENRES,
162
+ era: exports.FILM_ERAS,
163
+ tempo: exports.FILM_TEMPOS,
164
+ cameraBody: exports.FILM_CAMERA_BODIES,
165
+ lens: exports.FILM_LENSES,
166
+ focalLength: exports.FILM_FOCAL_LENGTHS,
167
+ aperture: exports.FILM_APERTURES,
168
+ palette: exports.FILM_PALETTES,
169
+ lighting: exports.FILM_LIGHTING,
170
+ };
171
+ exports.FILM_LOOK_FIELDS = Object.keys(exports.FILM_LOOK_CATALOG);
172
+ function findFilmOption(options, key) {
173
+ if (!key)
174
+ return undefined;
175
+ return options.find((o) => o.key === key);
176
+ }
177
+ function getFilmVideoModelSpec(key) {
178
+ return exports.FILM_VIDEO_MODELS.find((m) => m.key === key) ?? exports.FILM_VIDEO_MODELS[0];
179
+ }
180
+ exports.FILM_IMAGE_MODELS = [
181
+ {
182
+ key: "google-nano-banana-2",
183
+ label: "Nano Banana 2",
184
+ hint: "Sharp, consistent faces at a mid price. The default.",
185
+ imageSize: "2K",
186
+ },
187
+ {
188
+ key: "google-nano-banana-pro",
189
+ label: "Nano Banana Pro",
190
+ hint: "Highest fidelity and the best likeness across a turnaround. Costs more.",
191
+ imageSize: "2K",
192
+ },
193
+ {
194
+ key: "bytedance-seedream-4.5",
195
+ label: "Seedream 4.5",
196
+ hint: "Cheapest. Strong painterly and stylised looks.",
197
+ imageSize: "2K",
198
+ },
199
+ ];
200
+ exports.DEFAULT_FILM_IMAGE_MODEL = exports.FILM_IMAGE_MODELS[0].key;
201
+ function getFilmImageModelSpec(key) {
202
+ return exports.FILM_IMAGE_MODELS.find((m) => m.key === key) ?? exports.FILM_IMAGE_MODELS[0];
203
+ }
204
+ exports.FILM_CATALOG = {
205
+ genres: exports.FILM_GENRES,
206
+ eras: exports.FILM_ERAS,
207
+ tempos: exports.FILM_TEMPOS,
208
+ cameraBodies: exports.FILM_CAMERA_BODIES,
209
+ lenses: exports.FILM_LENSES,
210
+ focalLengths: exports.FILM_FOCAL_LENGTHS,
211
+ apertures: exports.FILM_APERTURES,
212
+ palettes: exports.FILM_PALETTES,
213
+ lighting: exports.FILM_LIGHTING,
214
+ shotTypes: exports.FILM_SHOT_TYPES,
215
+ cameraMoves: exports.FILM_CAMERA_MOVES,
216
+ videoModels: exports.FILM_VIDEO_MODELS,
217
+ imageModels: exports.FILM_IMAGE_MODELS,
218
+ };
@@ -6,7 +6,9 @@ export * from "./schemas";
6
6
  export * from "./ttsModels";
7
7
  export * from "./types";
8
8
  export * from "./unlimitedPlanFairUse";
9
+ export * from "./film/filmCatalog";
9
10
  export * from "./videoTools";
11
+ export * from "./reelRemake";
10
12
  export * from "./musicStudio";
11
13
  export * from "./posterExport";
12
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/globals/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/globals/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
@@ -22,6 +22,8 @@ __exportStar(require("./schemas"), exports);
22
22
  __exportStar(require("./ttsModels"), exports);
23
23
  __exportStar(require("./types"), exports);
24
24
  __exportStar(require("./unlimitedPlanFairUse"), exports);
25
+ __exportStar(require("./film/filmCatalog"), exports);
25
26
  __exportStar(require("./videoTools"), exports);
27
+ __exportStar(require("./reelRemake"), exports);
26
28
  __exportStar(require("./musicStudio"), exports);
27
29
  __exportStar(require("./posterExport"), exports);