vidspotai-shared 1.0.136 → 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.
- package/lib/globals/aiModels/enums.d.ts +2 -0
- package/lib/globals/aiModels/enums.d.ts.map +1 -1
- package/lib/globals/aiModels/enums.js +7 -0
- package/lib/globals/aiModels/index.d.ts.map +1 -1
- package/lib/globals/aiModels/index.js +2 -0
- package/lib/globals/film/filmCatalog.d.ts +88 -0
- package/lib/globals/film/filmCatalog.d.ts.map +1 -0
- package/lib/globals/film/filmCatalog.js +218 -0
- package/lib/globals/index.d.ts +2 -0
- package/lib/globals/index.d.ts.map +1 -1
- package/lib/globals/index.js +2 -0
- package/lib/globals/reelRemake.d.ts +116 -0
- package/lib/globals/reelRemake.d.ts.map +1 -0
- package/lib/globals/reelRemake.js +142 -0
- package/lib/globals/types.d.ts +15 -1
- package/lib/globals/types.d.ts.map +1 -1
- package/lib/globals/types.js +16 -0
- package/lib/libs/storage/cdnUrl.d.ts +1 -3
- package/lib/libs/storage/cdnUrl.d.ts.map +1 -1
- package/lib/libs/storage/cdnUrl.js +8 -6
- package/lib/models/filmProject.model.d.ts +424 -0
- package/lib/models/filmProject.model.d.ts.map +1 -0
- package/lib/models/filmProject.model.js +14 -0
- package/lib/models/image.model.d.ts +3 -0
- package/lib/models/image.model.d.ts.map +1 -1
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +2 -0
- package/lib/models/reelRemake.model.d.ts +222 -0
- package/lib/models/reelRemake.model.d.ts.map +1 -0
- package/lib/models/reelRemake.model.js +2 -0
- package/lib/models/video.model.d.ts +5 -0
- package/lib/models/video.model.d.ts.map +1 -1
- package/lib/schemas/film.schema.d.ts +500 -0
- package/lib/schemas/film.schema.d.ts.map +1 -0
- package/lib/schemas/film.schema.js +201 -0
- package/lib/schemas/index.d.ts +1 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +1 -0
- package/lib/services/agent/providerFallback/chains.d.ts.map +1 -1
- package/lib/services/agent/providerFallback/chains.js +13 -0
- package/lib/services/agent/tools/generateVideo.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/generateVideo.tool.js +2 -1
- package/lib/services/aiGen/aiGenFactory.service.d.ts.map +1 -1
- package/lib/services/aiGen/aiGenFactory.service.js +4 -0
- package/lib/services/aiGen/providers/bytedance/bytedance.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/bytedance/bytedance.service.js +17 -0
- package/lib/services/aiGen/providers/fal/index.d.ts +1 -0
- package/lib/services/aiGen/providers/fal/index.d.ts.map +1 -1
- package/lib/services/aiGen/providers/fal/index.js +1 -0
- package/lib/services/aiGen/providers/kling/klingRequests.d.ts.map +1 -1
- package/lib/services/aiGen/providers/kling/klingRequests.js +3 -0
- package/lib/services/aiGen/providers/types.d.ts +6 -0
- package/lib/services/aiGen/providers/types.d.ts.map +1 -1
- package/lib/services/film/compileShotPrompt.d.ts +16 -0
- package/lib/services/film/compileShotPrompt.d.ts.map +1 -0
- package/lib/services/film/compileShotPrompt.js +152 -0
- package/lib/services/film/filmAssets.d.ts +73 -0
- package/lib/services/film/filmAssets.d.ts.map +1 -0
- package/lib/services/film/filmAssets.js +341 -0
- package/lib/services/film/filmCut.d.ts +159 -0
- package/lib/services/film/filmCut.d.ts.map +1 -0
- package/lib/services/film/filmCut.js +616 -0
- package/lib/services/film/filmPublic.d.ts +9 -0
- package/lib/services/film/filmPublic.d.ts.map +1 -0
- package/lib/services/film/filmPublic.js +39 -0
- package/lib/services/film/filmTakes.d.ts +65 -0
- package/lib/services/film/filmTakes.d.ts.map +1 -0
- package/lib/services/film/filmTakes.js +168 -0
- package/lib/services/film/writersRoom.d.ts +276 -0
- package/lib/services/film/writersRoom.d.ts.map +1 -0
- package/lib/services/film/writersRoom.js +431 -0
- package/lib/services/firestore.service.d.ts +7 -0
- package/lib/services/firestore.service.d.ts.map +1 -1
- package/lib/services/firestore.service.js +15 -0
- package/lib/services/index.d.ts +12 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +12 -0
- package/lib/services/providerHealth.service.d.ts +12 -0
- package/lib/services/providerHealth.service.d.ts.map +1 -0
- package/lib/services/providerHealth.service.js +75 -0
- package/lib/services/reelRemake/castDetection.d.ts +56 -0
- package/lib/services/reelRemake/castDetection.d.ts.map +1 -0
- package/lib/services/reelRemake/castDetection.js +146 -0
- package/lib/services/reelRemake/castSuggestion.d.ts +43 -0
- package/lib/services/reelRemake/castSuggestion.d.ts.map +1 -0
- package/lib/services/reelRemake/castSuggestion.js +99 -0
- package/lib/services/reelRemake/keyframeSwap.d.ts +44 -0
- package/lib/services/reelRemake/keyframeSwap.d.ts.map +1 -0
- package/lib/services/reelRemake/keyframeSwap.js +139 -0
- package/lib/services/reelRemake/shootPlan.d.ts +65 -0
- package/lib/services/reelRemake/shootPlan.d.ts.map +1 -0
- package/lib/services/reelRemake/shootPlan.js +193 -0
- package/lib/services/reelRemake/stopWork.d.ts +54 -0
- package/lib/services/reelRemake/stopWork.d.ts.map +1 -0
- package/lib/services/reelRemake/stopWork.js +91 -0
- package/lib/services/translation/translation.service.d.ts +10 -1
- package/lib/services/translation/translation.service.d.ts.map +1 -1
- package/lib/services/translation/translation.service.js +34 -1
- package/lib/utils/errors.d.ts +3 -0
- package/lib/utils/errors.d.ts.map +1 -1
- package/lib/utils/errors.js +6 -0
- package/lib/utils/helpers.d.ts +1 -1
- package/lib/utils/helpers.d.ts.map +1 -1
- package/lib/utils/helpers.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Film Studio request schemas (/v1/film). Plain objects only, no refinements,
|
|
3
|
+
* so `.partial()` stays safe under zod v4 (see the 2026-07-19 cold-start
|
|
4
|
+
* incident). Cross-field rules (film = one episode, aspect ratio supported by
|
|
5
|
+
* the chosen model, shot belongs to an existing episode) live in the controller,
|
|
6
|
+
* where the stored project is available.
|
|
7
|
+
*/
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
export declare const FILM_LIMITS: {
|
|
10
|
+
readonly cast: 12;
|
|
11
|
+
readonly locations: 20;
|
|
12
|
+
readonly episodes: 30;
|
|
13
|
+
readonly scenesPerEpisode: 40;
|
|
14
|
+
readonly dialoguePerShot: 8;
|
|
15
|
+
readonly cameraMovesPerShot: 4;
|
|
16
|
+
readonly shotsPerEpisode: 120;
|
|
17
|
+
};
|
|
18
|
+
export declare const FilmFormatSchema: z.ZodEnum<{
|
|
19
|
+
film: "film";
|
|
20
|
+
series: "series";
|
|
21
|
+
}>;
|
|
22
|
+
export declare const FilmAspectRatioSchema: z.ZodEnum<{
|
|
23
|
+
"9:16": "9:16";
|
|
24
|
+
"16:9": "16:9";
|
|
25
|
+
"21:9": "21:9";
|
|
26
|
+
}>;
|
|
27
|
+
export declare const FilmVideoModelSchema: z.ZodEnum<{
|
|
28
|
+
[x: string]: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const FilmLookSchema: z.ZodObject<{
|
|
31
|
+
genre: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
[x: string]: string;
|
|
33
|
+
}>>;
|
|
34
|
+
era: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
[x: string]: string;
|
|
36
|
+
}>>;
|
|
37
|
+
tempo: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
[x: string]: string;
|
|
39
|
+
}>>;
|
|
40
|
+
cameraBody: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
[x: string]: string;
|
|
42
|
+
}>>;
|
|
43
|
+
lens: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
[x: string]: string;
|
|
45
|
+
}>>;
|
|
46
|
+
focalLength: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
[x: string]: string;
|
|
48
|
+
}>>;
|
|
49
|
+
aperture: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
[x: string]: string;
|
|
51
|
+
}>>;
|
|
52
|
+
palette: z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
[x: string]: string;
|
|
54
|
+
}>>;
|
|
55
|
+
lighting: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
[x: string]: string;
|
|
57
|
+
}>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export declare const FilmCastMemberSchema: z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
role: z.ZodEnum<{
|
|
63
|
+
extra: "extra";
|
|
64
|
+
lead: "lead";
|
|
65
|
+
supporting: "supporting";
|
|
66
|
+
}>;
|
|
67
|
+
description: z.ZodString;
|
|
68
|
+
portraitUrl: z.ZodOptional<z.ZodString>;
|
|
69
|
+
sheetUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
71
|
+
refId: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export declare const FilmLocationSchema: z.ZodObject<{
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
description: z.ZodString;
|
|
77
|
+
plateUrl: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export declare const FilmSceneSchema: z.ZodObject<{
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
heading: z.ZodString;
|
|
82
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
83
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const FilmEpisodeSchema: z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
index: z.ZodNumber;
|
|
88
|
+
title: z.ZodString;
|
|
89
|
+
synopsis: z.ZodOptional<z.ZodString>;
|
|
90
|
+
cliffhanger: z.ZodOptional<z.ZodString>;
|
|
91
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
heading: z.ZodString;
|
|
94
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
95
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export declare const CreateFilmProjectSchema: z.ZodObject<{
|
|
99
|
+
format: z.ZodEnum<{
|
|
100
|
+
film: "film";
|
|
101
|
+
series: "series";
|
|
102
|
+
}>;
|
|
103
|
+
title: z.ZodOptional<z.ZodString>;
|
|
104
|
+
logline: z.ZodOptional<z.ZodString>;
|
|
105
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
"9:16": "9:16";
|
|
107
|
+
"16:9": "16:9";
|
|
108
|
+
"21:9": "21:9";
|
|
109
|
+
}>>;
|
|
110
|
+
videoModel: z.ZodOptional<z.ZodEnum<{
|
|
111
|
+
[x: string]: string;
|
|
112
|
+
}>>;
|
|
113
|
+
look: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
genre: z.ZodOptional<z.ZodEnum<{
|
|
115
|
+
[x: string]: string;
|
|
116
|
+
}>>;
|
|
117
|
+
era: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
[x: string]: string;
|
|
119
|
+
}>>;
|
|
120
|
+
tempo: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
[x: string]: string;
|
|
122
|
+
}>>;
|
|
123
|
+
cameraBody: z.ZodOptional<z.ZodEnum<{
|
|
124
|
+
[x: string]: string;
|
|
125
|
+
}>>;
|
|
126
|
+
lens: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
[x: string]: string;
|
|
128
|
+
}>>;
|
|
129
|
+
focalLength: z.ZodOptional<z.ZodEnum<{
|
|
130
|
+
[x: string]: string;
|
|
131
|
+
}>>;
|
|
132
|
+
aperture: z.ZodOptional<z.ZodEnum<{
|
|
133
|
+
[x: string]: string;
|
|
134
|
+
}>>;
|
|
135
|
+
palette: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
[x: string]: string;
|
|
137
|
+
}>>;
|
|
138
|
+
lighting: z.ZodOptional<z.ZodEnum<{
|
|
139
|
+
[x: string]: string;
|
|
140
|
+
}>>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export declare const UpdateFilmProjectSchema: z.ZodObject<{
|
|
144
|
+
title: z.ZodOptional<z.ZodString>;
|
|
145
|
+
logline: z.ZodOptional<z.ZodString>;
|
|
146
|
+
synopsis: z.ZodOptional<z.ZodString>;
|
|
147
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
"9:16": "9:16";
|
|
149
|
+
"16:9": "16:9";
|
|
150
|
+
"21:9": "21:9";
|
|
151
|
+
}>>;
|
|
152
|
+
videoModel: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
[x: string]: string;
|
|
154
|
+
}>>;
|
|
155
|
+
look: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
genre: z.ZodOptional<z.ZodEnum<{
|
|
157
|
+
[x: string]: string;
|
|
158
|
+
}>>;
|
|
159
|
+
era: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
[x: string]: string;
|
|
161
|
+
}>>;
|
|
162
|
+
tempo: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
[x: string]: string;
|
|
164
|
+
}>>;
|
|
165
|
+
cameraBody: z.ZodOptional<z.ZodEnum<{
|
|
166
|
+
[x: string]: string;
|
|
167
|
+
}>>;
|
|
168
|
+
lens: z.ZodOptional<z.ZodEnum<{
|
|
169
|
+
[x: string]: string;
|
|
170
|
+
}>>;
|
|
171
|
+
focalLength: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
[x: string]: string;
|
|
173
|
+
}>>;
|
|
174
|
+
aperture: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
[x: string]: string;
|
|
176
|
+
}>>;
|
|
177
|
+
palette: z.ZodOptional<z.ZodEnum<{
|
|
178
|
+
[x: string]: string;
|
|
179
|
+
}>>;
|
|
180
|
+
lighting: z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
[x: string]: string;
|
|
182
|
+
}>>;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
cast: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
name: z.ZodString;
|
|
187
|
+
role: z.ZodEnum<{
|
|
188
|
+
extra: "extra";
|
|
189
|
+
lead: "lead";
|
|
190
|
+
supporting: "supporting";
|
|
191
|
+
}>;
|
|
192
|
+
description: z.ZodString;
|
|
193
|
+
portraitUrl: z.ZodOptional<z.ZodString>;
|
|
194
|
+
sheetUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
195
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
196
|
+
refId: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>>>;
|
|
198
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
199
|
+
id: z.ZodString;
|
|
200
|
+
name: z.ZodString;
|
|
201
|
+
description: z.ZodString;
|
|
202
|
+
plateUrl: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$strip>>>;
|
|
204
|
+
episodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
index: z.ZodNumber;
|
|
207
|
+
title: z.ZodString;
|
|
208
|
+
synopsis: z.ZodOptional<z.ZodString>;
|
|
209
|
+
cliffhanger: z.ZodOptional<z.ZodString>;
|
|
210
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
211
|
+
id: z.ZodString;
|
|
212
|
+
heading: z.ZodString;
|
|
213
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
214
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, z.core.$strip>>;
|
|
216
|
+
}, z.core.$strip>>>;
|
|
217
|
+
coverUrl: z.ZodOptional<z.ZodString>;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
export declare const FilmDialogueLineSchema: z.ZodObject<{
|
|
220
|
+
castId: z.ZodString;
|
|
221
|
+
line: z.ZodString;
|
|
222
|
+
delivery: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
/** Editable shot fields. Generated assets (keyframe/take) are never client-writable. */
|
|
225
|
+
export declare const FilmShotFieldsSchema: z.ZodObject<{
|
|
226
|
+
sceneId: z.ZodString;
|
|
227
|
+
shotType: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
[x: string]: string;
|
|
229
|
+
}>>;
|
|
230
|
+
cameraMoves: z.ZodArray<z.ZodEnum<{
|
|
231
|
+
[x: string]: string;
|
|
232
|
+
}>>;
|
|
233
|
+
durationSec: z.ZodNumber;
|
|
234
|
+
action: z.ZodString;
|
|
235
|
+
castIds: z.ZodArray<z.ZodString>;
|
|
236
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
237
|
+
dialogue: z.ZodArray<z.ZodObject<{
|
|
238
|
+
castId: z.ZodString;
|
|
239
|
+
line: z.ZodString;
|
|
240
|
+
delivery: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
sfx: z.ZodOptional<z.ZodString>;
|
|
243
|
+
look: z.ZodOptional<z.ZodObject<{
|
|
244
|
+
genre: z.ZodOptional<z.ZodEnum<{
|
|
245
|
+
[x: string]: string;
|
|
246
|
+
}>>;
|
|
247
|
+
era: z.ZodOptional<z.ZodEnum<{
|
|
248
|
+
[x: string]: string;
|
|
249
|
+
}>>;
|
|
250
|
+
tempo: z.ZodOptional<z.ZodEnum<{
|
|
251
|
+
[x: string]: string;
|
|
252
|
+
}>>;
|
|
253
|
+
cameraBody: z.ZodOptional<z.ZodEnum<{
|
|
254
|
+
[x: string]: string;
|
|
255
|
+
}>>;
|
|
256
|
+
lens: z.ZodOptional<z.ZodEnum<{
|
|
257
|
+
[x: string]: string;
|
|
258
|
+
}>>;
|
|
259
|
+
focalLength: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
[x: string]: string;
|
|
261
|
+
}>>;
|
|
262
|
+
aperture: z.ZodOptional<z.ZodEnum<{
|
|
263
|
+
[x: string]: string;
|
|
264
|
+
}>>;
|
|
265
|
+
palette: z.ZodOptional<z.ZodEnum<{
|
|
266
|
+
[x: string]: string;
|
|
267
|
+
}>>;
|
|
268
|
+
lighting: z.ZodOptional<z.ZodEnum<{
|
|
269
|
+
[x: string]: string;
|
|
270
|
+
}>>;
|
|
271
|
+
}, z.core.$strip>>;
|
|
272
|
+
}, z.core.$strip>;
|
|
273
|
+
export declare const CreateFilmShotSchema: z.ZodObject<{
|
|
274
|
+
shotType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
[x: string]: string;
|
|
276
|
+
}>>>;
|
|
277
|
+
cameraMoves: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
278
|
+
[x: string]: string;
|
|
279
|
+
}>>>;
|
|
280
|
+
durationSec: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
action: z.ZodOptional<z.ZodString>;
|
|
282
|
+
castIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
283
|
+
locationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
284
|
+
dialogue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
285
|
+
castId: z.ZodString;
|
|
286
|
+
line: z.ZodString;
|
|
287
|
+
delivery: z.ZodOptional<z.ZodString>;
|
|
288
|
+
}, z.core.$strip>>>;
|
|
289
|
+
sfx: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
290
|
+
look: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
291
|
+
genre: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
[x: string]: string;
|
|
293
|
+
}>>;
|
|
294
|
+
era: z.ZodOptional<z.ZodEnum<{
|
|
295
|
+
[x: string]: string;
|
|
296
|
+
}>>;
|
|
297
|
+
tempo: z.ZodOptional<z.ZodEnum<{
|
|
298
|
+
[x: string]: string;
|
|
299
|
+
}>>;
|
|
300
|
+
cameraBody: z.ZodOptional<z.ZodEnum<{
|
|
301
|
+
[x: string]: string;
|
|
302
|
+
}>>;
|
|
303
|
+
lens: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
[x: string]: string;
|
|
305
|
+
}>>;
|
|
306
|
+
focalLength: z.ZodOptional<z.ZodEnum<{
|
|
307
|
+
[x: string]: string;
|
|
308
|
+
}>>;
|
|
309
|
+
aperture: z.ZodOptional<z.ZodEnum<{
|
|
310
|
+
[x: string]: string;
|
|
311
|
+
}>>;
|
|
312
|
+
palette: z.ZodOptional<z.ZodEnum<{
|
|
313
|
+
[x: string]: string;
|
|
314
|
+
}>>;
|
|
315
|
+
lighting: z.ZodOptional<z.ZodEnum<{
|
|
316
|
+
[x: string]: string;
|
|
317
|
+
}>>;
|
|
318
|
+
}, z.core.$strip>>>;
|
|
319
|
+
episodeId: z.ZodString;
|
|
320
|
+
sceneId: z.ZodString;
|
|
321
|
+
afterShotId: z.ZodOptional<z.ZodString>;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
/** Optional fields a PATCH can unset (JSON has no `undefined`). */
|
|
324
|
+
export declare const FILM_SHOT_CLEARABLE: readonly ["shotType", "locationId", "sfx", "look"];
|
|
325
|
+
export declare const UpdateFilmShotSchema: z.ZodObject<{
|
|
326
|
+
sceneId: z.ZodOptional<z.ZodString>;
|
|
327
|
+
shotType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
328
|
+
[x: string]: string;
|
|
329
|
+
}>>>;
|
|
330
|
+
cameraMoves: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
331
|
+
[x: string]: string;
|
|
332
|
+
}>>>;
|
|
333
|
+
durationSec: z.ZodOptional<z.ZodNumber>;
|
|
334
|
+
action: z.ZodOptional<z.ZodString>;
|
|
335
|
+
castIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
336
|
+
locationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
337
|
+
dialogue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
338
|
+
castId: z.ZodString;
|
|
339
|
+
line: z.ZodString;
|
|
340
|
+
delivery: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, z.core.$strip>>>;
|
|
342
|
+
sfx: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
343
|
+
look: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
344
|
+
genre: z.ZodOptional<z.ZodEnum<{
|
|
345
|
+
[x: string]: string;
|
|
346
|
+
}>>;
|
|
347
|
+
era: z.ZodOptional<z.ZodEnum<{
|
|
348
|
+
[x: string]: string;
|
|
349
|
+
}>>;
|
|
350
|
+
tempo: z.ZodOptional<z.ZodEnum<{
|
|
351
|
+
[x: string]: string;
|
|
352
|
+
}>>;
|
|
353
|
+
cameraBody: z.ZodOptional<z.ZodEnum<{
|
|
354
|
+
[x: string]: string;
|
|
355
|
+
}>>;
|
|
356
|
+
lens: z.ZodOptional<z.ZodEnum<{
|
|
357
|
+
[x: string]: string;
|
|
358
|
+
}>>;
|
|
359
|
+
focalLength: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
[x: string]: string;
|
|
361
|
+
}>>;
|
|
362
|
+
aperture: z.ZodOptional<z.ZodEnum<{
|
|
363
|
+
[x: string]: string;
|
|
364
|
+
}>>;
|
|
365
|
+
palette: z.ZodOptional<z.ZodEnum<{
|
|
366
|
+
[x: string]: string;
|
|
367
|
+
}>>;
|
|
368
|
+
lighting: z.ZodOptional<z.ZodEnum<{
|
|
369
|
+
[x: string]: string;
|
|
370
|
+
}>>;
|
|
371
|
+
}, z.core.$strip>>>;
|
|
372
|
+
clear: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
373
|
+
look: "look";
|
|
374
|
+
shotType: "shotType";
|
|
375
|
+
locationId: "locationId";
|
|
376
|
+
sfx: "sfx";
|
|
377
|
+
}>>>;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
export declare const ReorderFilmShotsSchema: z.ZodObject<{
|
|
380
|
+
episodeId: z.ZodString;
|
|
381
|
+
shotIds: z.ZodArray<z.ZodString>;
|
|
382
|
+
}, z.core.$strip>;
|
|
383
|
+
export type CreateFilmProjectInput = z.infer<typeof CreateFilmProjectSchema>;
|
|
384
|
+
export type UpdateFilmProjectInput = z.infer<typeof UpdateFilmProjectSchema>;
|
|
385
|
+
export type CreateFilmShotInput = z.infer<typeof CreateFilmShotSchema>;
|
|
386
|
+
export type UpdateFilmShotInput = z.infer<typeof UpdateFilmShotSchema>;
|
|
387
|
+
export type ReorderFilmShotsInput = z.infer<typeof ReorderFilmShotsSchema>;
|
|
388
|
+
/**
|
|
389
|
+
* POST /v1/film/:projectId/write — start a Writers' Room job. Which ids are
|
|
390
|
+
* required depends on `scope` (checked in the controller): episode needs
|
|
391
|
+
* episodeId, scene needs episodeId + sceneId, shot needs shotId.
|
|
392
|
+
*/
|
|
393
|
+
export declare const FilmWriteRequestSchema: z.ZodObject<{
|
|
394
|
+
scope: z.ZodEnum<{
|
|
395
|
+
project: "project";
|
|
396
|
+
scene: "scene";
|
|
397
|
+
episode: "episode";
|
|
398
|
+
shot: "shot";
|
|
399
|
+
}>;
|
|
400
|
+
episodeId: z.ZodOptional<z.ZodString>;
|
|
401
|
+
sceneId: z.ZodOptional<z.ZodString>;
|
|
402
|
+
shotId: z.ZodOptional<z.ZodString>;
|
|
403
|
+
premise: z.ZodOptional<z.ZodString>;
|
|
404
|
+
episodeCount: z.ZodOptional<z.ZodNumber>;
|
|
405
|
+
targetSeconds: z.ZodOptional<z.ZodNumber>;
|
|
406
|
+
note: z.ZodOptional<z.ZodString>;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
export type FilmWriteRequestInput = z.infer<typeof FilmWriteRequestSchema>;
|
|
409
|
+
/**
|
|
410
|
+
* POST /v1/film/:projectId/assets — generate a cast portrait, a turnaround
|
|
411
|
+
* sheet (needs a portrait first) or a location plate.
|
|
412
|
+
*/
|
|
413
|
+
export declare const FilmAssetRequestSchema: z.ZodObject<{
|
|
414
|
+
slot: z.ZodEnum<{
|
|
415
|
+
portrait: "portrait";
|
|
416
|
+
sheet: "sheet";
|
|
417
|
+
plate: "plate";
|
|
418
|
+
}>;
|
|
419
|
+
targetId: z.ZodString;
|
|
420
|
+
imageModel: z.ZodOptional<z.ZodEnum<{
|
|
421
|
+
[x: string]: string;
|
|
422
|
+
}>>;
|
|
423
|
+
note: z.ZodOptional<z.ZodString>;
|
|
424
|
+
}, z.core.$strip>;
|
|
425
|
+
/** POST /v1/film/:projectId/cover — generate cover art (billed like an image). */
|
|
426
|
+
export declare const FilmCoverRequestSchema: z.ZodObject<{
|
|
427
|
+
imageModel: z.ZodOptional<z.ZodEnum<{
|
|
428
|
+
[x: string]: string;
|
|
429
|
+
}>>;
|
|
430
|
+
withTitle: z.ZodOptional<z.ZodBoolean>;
|
|
431
|
+
note: z.ZodOptional<z.ZodString>;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
export type FilmAssetRequestInput = z.infer<typeof FilmAssetRequestSchema>;
|
|
434
|
+
/**
|
|
435
|
+
* POST /v1/film/:projectId/keyframes — storyboard one shot or many. Each shot
|
|
436
|
+
* becomes its own image job. `dryRun` returns the cost preview without
|
|
437
|
+
* charging; `skipExisting` leaves shots that already have a keyframe alone.
|
|
438
|
+
*/
|
|
439
|
+
export declare const FilmKeyframeRequestSchema: z.ZodObject<{
|
|
440
|
+
shotIds: z.ZodArray<z.ZodString>;
|
|
441
|
+
imageModel: z.ZodOptional<z.ZodEnum<{
|
|
442
|
+
[x: string]: string;
|
|
443
|
+
}>>;
|
|
444
|
+
note: z.ZodOptional<z.ZodString>;
|
|
445
|
+
skipExisting: z.ZodOptional<z.ZodBoolean>;
|
|
446
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
447
|
+
}, z.core.$strip>;
|
|
448
|
+
export type FilmKeyframeRequestInput = z.infer<typeof FilmKeyframeRequestSchema>;
|
|
449
|
+
/** PATCH /v1/film/:projectId/shots/:shotId/keyframe — approve, or replace with an upload. */
|
|
450
|
+
export declare const FilmKeyframeUpdateSchema: z.ZodObject<{
|
|
451
|
+
approved: z.ZodOptional<z.ZodBoolean>;
|
|
452
|
+
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
export type FilmKeyframeUpdateInput = z.infer<typeof FilmKeyframeUpdateSchema>;
|
|
455
|
+
/**
|
|
456
|
+
* POST /v1/film/:projectId/shoot — shoot one shot or many (Stage 5). One video
|
|
457
|
+
* job per shot. `dryRun` returns the cost preview without charging;
|
|
458
|
+
* `skipExisting` leaves shots that already have a picked take alone.
|
|
459
|
+
*/
|
|
460
|
+
export declare const FilmShootRequestSchema: z.ZodObject<{
|
|
461
|
+
shotIds: z.ZodArray<z.ZodString>;
|
|
462
|
+
videoModel: z.ZodOptional<z.ZodEnum<{
|
|
463
|
+
[x: string]: string;
|
|
464
|
+
}>>;
|
|
465
|
+
quality: z.ZodOptional<z.ZodEnum<{
|
|
466
|
+
final: "final";
|
|
467
|
+
draft: "draft";
|
|
468
|
+
}>>;
|
|
469
|
+
note: z.ZodOptional<z.ZodString>;
|
|
470
|
+
skipExisting: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
export type FilmShootRequestInput = z.infer<typeof FilmShootRequestSchema>;
|
|
474
|
+
/** PATCH /v1/film/:projectId/shots/:shotId/take — pick which take the cut uses. */
|
|
475
|
+
export declare const FilmTakePickSchema: z.ZodObject<{
|
|
476
|
+
jobId: z.ZodString;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
export type FilmTakePickInput = z.infer<typeof FilmTakePickSchema>;
|
|
479
|
+
/**
|
|
480
|
+
* POST /v1/film/:projectId/episodes/:episodeId/cut — assemble and render an
|
|
481
|
+
* episode (Stage 6). `dryRun` returns the cost preview without charging.
|
|
482
|
+
*/
|
|
483
|
+
export declare const FilmCutRequestSchema: z.ZodObject<{
|
|
484
|
+
score: z.ZodDefault<z.ZodEnum<{
|
|
485
|
+
none: "none";
|
|
486
|
+
library: "library";
|
|
487
|
+
original: "original";
|
|
488
|
+
}>>;
|
|
489
|
+
subtitles: z.ZodDefault<z.ZodBoolean>;
|
|
490
|
+
titleCard: z.ZodDefault<z.ZodBoolean>;
|
|
491
|
+
endCard: z.ZodDefault<z.ZodBoolean>;
|
|
492
|
+
quality: z.ZodDefault<z.ZodEnum<{
|
|
493
|
+
final: "final";
|
|
494
|
+
draft: "draft";
|
|
495
|
+
}>>;
|
|
496
|
+
sfx: z.ZodDefault<z.ZodBoolean>;
|
|
497
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
498
|
+
}, z.core.$strip>;
|
|
499
|
+
export type FilmCutRequestInput = z.infer<typeof FilmCutRequestSchema>;
|
|
500
|
+
//# sourceMappingURL=film.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"film.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/film.schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,WAAW;;;;;;;;CAQd,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;EAA6B,CAAC;AAC3D,eAAO,MAAM,qBAAqB;;;;EAAmC,CAAC;AACtE,eAAO,MAAM,oBAAoB;;EAEhC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;iBAS/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;iBAK1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;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