@clipwright/core 0.61.0 → 0.63.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/ad-guide.d.ts +27 -0
- package/dist/ad-guide.js +7 -0
- package/dist/ad-ids.d.ts +3 -0
- package/dist/ad-ids.js +4 -0
- package/dist/ads.d.ts +222 -0
- package/dist/ads.js +57 -0
- package/dist/api-failure.d.ts +6 -0
- package/dist/api-failure.js +16 -5
- package/dist/cut-ids.d.ts +3 -0
- package/dist/cut-ids.js +4 -0
- package/dist/cuts.d.ts +221 -0
- package/dist/cuts.js +51 -0
- package/dist/diy-next.d.ts +18 -0
- package/dist/diy-next.js +13 -0
- package/dist/edit-music.d.ts +397 -0
- package/dist/edit-music.js +77 -0
- package/dist/endpoints.js +14 -0
- package/dist/errors.d.ts +29 -1
- package/dist/errors.js +23 -0
- package/dist/faceless-direction-summary.d.ts +3 -0
- package/dist/faceless-direction-summary.js +3 -0
- package/dist/faceless-public-plan.js +4 -4
- package/dist/faceless-storyboard.js +8 -9
- package/dist/film-cut.d.ts +851 -0
- package/dist/film-cut.js +168 -0
- package/dist/film-guide.d.ts +27 -0
- package/dist/film-guide.js +10 -0
- package/dist/generations.d.ts +2 -1
- package/dist/generations.js +9 -1
- package/dist/idempotency.js +2 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/openapi.js +11 -0
- package/dist/own-agent-price.d.ts +41 -5
- package/dist/own-agent-price.js +53 -14
- package/dist/own-agent-runs.d.ts +320 -2
- package/dist/own-agent-runs.js +119 -14
- package/dist/prices.d.ts +1 -0
- package/dist/prices.js +22 -2
- package/dist/runs.d.ts +1 -0
- package/dist/runs.js +3 -0
- package/dist/speech-words.d.ts +4 -0
- package/dist/speech-words.js +30 -0
- package/dist/templates/sounds.d.ts +24 -0
- package/dist/templates/sounds.js +2 -0
- package/dist/trend-niches.d.ts +57 -0
- package/dist/trend-niches.js +59 -4
- package/dist/trend-search.d.ts +1 -0
- package/dist/trend-search.js +3 -1
- package/package.json +1 -1
package/dist/own-agent-runs.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export declare const filmVoiceInput: z.ZodObject<{
|
|
|
64
64
|
narrator_tr_confident_woman: "narrator_tr_confident_woman";
|
|
65
65
|
narrator_tr_mature_man: "narrator_tr_mature_man";
|
|
66
66
|
}>>;
|
|
67
|
+
cut_id: z.ZodOptional<z.ZodString>;
|
|
67
68
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
68
69
|
}, z.core.$strict>;
|
|
69
70
|
export type FilmVoiceInput = z.infer<typeof filmVoiceInput>;
|
|
@@ -85,8 +86,10 @@ export declare const filmRenderInput: z.ZodObject<{
|
|
|
85
86
|
}, z.core.$strict>;
|
|
86
87
|
export type FilmRenderInput = z.infer<typeof filmRenderInput>;
|
|
87
88
|
export declare const FILM_EDIT_WIDTH = 720, FILM_EDIT_HEIGHT = 1280, FILM_EDIT_FPS = 25;
|
|
88
|
-
export declare const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS =
|
|
89
|
+
export declare const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS = 160, FILM_EDIT_MAX_HOLD_SEC = 3;
|
|
89
90
|
export declare const FILM_EDIT_CAPTION_POSITIONS: readonly ["top", "middle", "bottom", "low"];
|
|
91
|
+
export declare const FILM_EDIT_CAPTION_STYLES: readonly ["outline", "banner", "badge"];
|
|
92
|
+
export declare const FILM_EDIT_CAPTION_ALIGNS: readonly ["center", "left"];
|
|
90
93
|
export declare const filmEditInput: z.ZodObject<{
|
|
91
94
|
clips: z.ZodArray<z.ZodObject<{
|
|
92
95
|
run_id: z.ZodOptional<z.ZodString>;
|
|
@@ -94,6 +97,7 @@ export declare const filmEditInput: z.ZodObject<{
|
|
|
94
97
|
from: z.ZodNumber;
|
|
95
98
|
to: z.ZodNumber;
|
|
96
99
|
speed: z.ZodDefault<z.ZodNumber>;
|
|
100
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
97
101
|
}, z.core.$strict>>;
|
|
98
102
|
voice: z.ZodOptional<z.ZodObject<{
|
|
99
103
|
run_id: z.ZodString;
|
|
@@ -114,8 +118,81 @@ export declare const filmEditInput: z.ZodObject<{
|
|
|
114
118
|
middle: "middle";
|
|
115
119
|
top: "top";
|
|
116
120
|
}>>;
|
|
121
|
+
align: z.ZodDefault<z.ZodEnum<{
|
|
122
|
+
center: "center";
|
|
123
|
+
left: "left";
|
|
124
|
+
}>>;
|
|
125
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
126
|
+
badge: "badge";
|
|
127
|
+
banner: "banner";
|
|
128
|
+
outline: "outline";
|
|
129
|
+
}>>;
|
|
130
|
+
color: z.ZodOptional<z.ZodString>;
|
|
131
|
+
highlight: z.ZodOptional<z.ZodNumber>;
|
|
117
132
|
}, z.core.$strict>>>;
|
|
118
133
|
hold: z.ZodDefault<z.ZodNumber>;
|
|
134
|
+
music: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
track: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
acoustic_calm: "acoustic_calm";
|
|
137
|
+
acoustic_driving: "acoustic_driving";
|
|
138
|
+
acoustic_piano: "acoustic_piano";
|
|
139
|
+
ambient_calm: "ambient_calm";
|
|
140
|
+
ambient_driving: "ambient_driving";
|
|
141
|
+
ambient_medium: "ambient_medium";
|
|
142
|
+
ambient_shimmer: "ambient_shimmer";
|
|
143
|
+
beauty_dreamy: "beauty_dreamy";
|
|
144
|
+
beauty_driving: "beauty_driving";
|
|
145
|
+
beauty_medium: "beauty_medium";
|
|
146
|
+
bright_pop: "bright_pop";
|
|
147
|
+
cinematic_calm: "cinematic_calm";
|
|
148
|
+
cinematic_driving: "cinematic_driving";
|
|
149
|
+
cinematic_medium: "cinematic_medium";
|
|
150
|
+
cinematic_tension: "cinematic_tension";
|
|
151
|
+
corporate_bright: "corporate_bright";
|
|
152
|
+
corporate_calm: "corporate_calm";
|
|
153
|
+
corporate_driving: "corporate_driving";
|
|
154
|
+
corporate_medium: "corporate_medium";
|
|
155
|
+
fashion_calm: "fashion_calm";
|
|
156
|
+
fashion_disco: "fashion_disco";
|
|
157
|
+
fashion_driving: "fashion_driving";
|
|
158
|
+
fashion_luxe: "fashion_luxe";
|
|
159
|
+
food_bossa: "food_bossa";
|
|
160
|
+
food_calm: "food_calm";
|
|
161
|
+
food_driving: "food_driving";
|
|
162
|
+
food_medium: "food_medium";
|
|
163
|
+
hiphop_calm: "hiphop_calm";
|
|
164
|
+
hiphop_driving: "hiphop_driving";
|
|
165
|
+
hiphop_funky: "hiphop_funky";
|
|
166
|
+
hiphop_medium: "hiphop_medium";
|
|
167
|
+
lofi_calm: "lofi_calm";
|
|
168
|
+
lofi_jazzy: "lofi_jazzy";
|
|
169
|
+
lofi_medium: "lofi_medium";
|
|
170
|
+
lofi_rainy: "lofi_rainy";
|
|
171
|
+
luxe_cinematic: "luxe_cinematic";
|
|
172
|
+
playful_calm: "playful_calm";
|
|
173
|
+
playful_cartoon: "playful_cartoon";
|
|
174
|
+
playful_quirky: "playful_quirky";
|
|
175
|
+
runway_house: "runway_house";
|
|
176
|
+
sport_calm: "sport_calm";
|
|
177
|
+
sport_drive: "sport_drive";
|
|
178
|
+
sport_epic: "sport_epic";
|
|
179
|
+
sport_medium: "sport_medium";
|
|
180
|
+
tech_calm: "tech_calm";
|
|
181
|
+
tech_driving: "tech_driving";
|
|
182
|
+
tech_future: "tech_future";
|
|
183
|
+
tech_minimal: "tech_minimal";
|
|
184
|
+
tech_synthwave: "tech_synthwave";
|
|
185
|
+
warm_acoustic: "warm_acoustic";
|
|
186
|
+
}>>;
|
|
187
|
+
generate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodObject<{
|
|
188
|
+
mood: z.ZodString;
|
|
189
|
+
}, z.core.$strict>]>>;
|
|
190
|
+
volume: z.ZodDefault<z.ZodNumber>;
|
|
191
|
+
at: z.ZodDefault<z.ZodNumber>;
|
|
192
|
+
fade_out: z.ZodDefault<z.ZodNumber>;
|
|
193
|
+
duck: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
+
}, z.core.$strict>>;
|
|
195
|
+
ad_id: z.ZodOptional<z.ZodString>;
|
|
119
196
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
120
197
|
}, z.core.$strict>;
|
|
121
198
|
export type FilmEditInput = z.infer<typeof filmEditInput>;
|
|
@@ -123,6 +200,13 @@ export type FilmEditRequest = z.input<typeof filmEditInput>;
|
|
|
123
200
|
export declare const TAKE_FRAMES_COLUMNS = 8, TAKE_FRAMES_CELL_WIDTH = 240, TAKE_FRAMES_PER_SHEET = 24;
|
|
124
201
|
export declare const TAKE_FRAMES_MIN_FPS = 1, TAKE_FRAMES_MAX_FPS = 24, TAKE_FRAMES_DEFAULT_FPS = 8;
|
|
125
202
|
export declare const TAKE_CHECK_PROMPT_MAX_CHARS = 1500, TAKE_CHECK_MAX_MOVES = 5;
|
|
203
|
+
export declare const TAKE_MOTION_FORMATS: readonly ["fashion", "product"];
|
|
204
|
+
export type TakeMotionFormat = (typeof TAKE_MOTION_FORMATS)[number];
|
|
205
|
+
export declare const TAKE_MOTION_TARGETS: Record<TakeMotionFormat, {
|
|
206
|
+
subject: number;
|
|
207
|
+
camera: number | null;
|
|
208
|
+
}>;
|
|
209
|
+
export declare const TAKE_SHAKE_LIMIT = 4;
|
|
126
210
|
export declare const takeFramesInput: z.ZodObject<{
|
|
127
211
|
run_id: z.ZodOptional<z.ZodString>;
|
|
128
212
|
asset_id: z.ZodOptional<z.ZodString>;
|
|
@@ -139,17 +223,149 @@ export declare const takeFramesInput: z.ZodObject<{
|
|
|
139
223
|
}, z.core.$strict>;
|
|
140
224
|
export type TakeFramesInput = z.infer<typeof takeFramesInput>;
|
|
141
225
|
export type TakeFramesRequest = z.input<typeof takeFramesInput>;
|
|
226
|
+
export declare const TAKE_CHECK_AGAINST: readonly ["motion", "picture"];
|
|
227
|
+
export type TakeCheckAgainst = (typeof TAKE_CHECK_AGAINST)[number];
|
|
228
|
+
export declare const TAKE_PICTURE_MAX_CHANGES = 4, TAKE_PICTURE_MAX_LOCKS = 6;
|
|
229
|
+
export declare const pictureTakeAsk: z.ZodObject<{
|
|
230
|
+
start: z.ZodString;
|
|
231
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
232
|
+
at_s: z.ZodNumber;
|
|
233
|
+
cause: z.ZodString;
|
|
234
|
+
result: z.ZodString;
|
|
235
|
+
}, z.core.$strict>>;
|
|
236
|
+
camera: z.ZodDefault<z.ZodString>;
|
|
237
|
+
end: z.ZodString;
|
|
238
|
+
locks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
export type PictureTakeAsk = z.infer<typeof pictureTakeAsk>;
|
|
142
241
|
export declare const takeCheckInput: z.ZodObject<{
|
|
143
242
|
run_id: z.ZodOptional<z.ZodString>;
|
|
144
243
|
asset_id: z.ZodOptional<z.ZodString>;
|
|
145
|
-
|
|
244
|
+
against: z.ZodOptional<z.ZodEnum<{
|
|
245
|
+
motion: "motion";
|
|
246
|
+
picture: "picture";
|
|
247
|
+
}>>;
|
|
248
|
+
direction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
249
|
+
start: z.ZodString;
|
|
250
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
251
|
+
at_s: z.ZodNumber;
|
|
252
|
+
cause: z.ZodString;
|
|
253
|
+
result: z.ZodString;
|
|
254
|
+
}, z.core.$strict>>;
|
|
255
|
+
camera: z.ZodDefault<z.ZodString>;
|
|
256
|
+
end: z.ZodString;
|
|
257
|
+
locks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
258
|
+
}, z.core.$strict>]>;
|
|
259
|
+
look: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
words: z.ZodString;
|
|
261
|
+
palette: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
picture: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
265
|
+
upload_id: z.ZodOptional<z.ZodString>;
|
|
266
|
+
rights_confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
267
|
+
asset_id: z.ZodOptional<z.ZodString>;
|
|
268
|
+
}, z.core.$strict>>;
|
|
146
269
|
product_image: z.ZodOptional<z.ZodString>;
|
|
147
270
|
moves: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
271
|
+
ad_id: z.ZodOptional<z.ZodString>;
|
|
272
|
+
cut_id: z.ZodOptional<z.ZodString>;
|
|
273
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
274
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
fashion: "fashion";
|
|
276
|
+
product: "product";
|
|
277
|
+
}>>;
|
|
148
278
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
149
279
|
}, z.core.$strict>;
|
|
150
280
|
export type TakeCheckInput = z.infer<typeof takeCheckInput>;
|
|
151
281
|
export type TakeCheckRequest = z.input<typeof takeCheckInput>;
|
|
152
282
|
export declare const TAKE_DEFECT_LEVELS: readonly ["asset", "action", "camera", "roll"];
|
|
283
|
+
export declare const takeMotionWindow: z.ZodObject<{
|
|
284
|
+
subject: z.ZodNumber;
|
|
285
|
+
camera: z.ZodNumber;
|
|
286
|
+
jitter: z.ZodNumber;
|
|
287
|
+
from: z.ZodNumber;
|
|
288
|
+
to: z.ZodNumber;
|
|
289
|
+
}, z.core.$strict>;
|
|
290
|
+
export type TakeMotionWindow = z.infer<typeof takeMotionWindow>;
|
|
291
|
+
export declare const takeMotion: z.ZodObject<{
|
|
292
|
+
subject: z.ZodNumber;
|
|
293
|
+
camera: z.ZodNumber;
|
|
294
|
+
jitter: z.ZodNumber;
|
|
295
|
+
format: z.ZodEnum<{
|
|
296
|
+
fashion: "fashion";
|
|
297
|
+
product: "product";
|
|
298
|
+
}>;
|
|
299
|
+
target: z.ZodObject<{
|
|
300
|
+
subject: z.ZodNumber;
|
|
301
|
+
camera: z.ZodNullable<z.ZodNumber>;
|
|
302
|
+
}, z.core.$strict>;
|
|
303
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
304
|
+
subject: z.ZodNumber;
|
|
305
|
+
camera: z.ZodNumber;
|
|
306
|
+
jitter: z.ZodNumber;
|
|
307
|
+
from: z.ZodNumber;
|
|
308
|
+
to: z.ZodNumber;
|
|
309
|
+
}, z.core.$strict>>;
|
|
310
|
+
finding: z.ZodNullable<z.ZodString>;
|
|
311
|
+
shake: z.ZodNullable<z.ZodString>;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
export type TakeMotion = z.infer<typeof takeMotion>;
|
|
314
|
+
export declare const takeCheckVerdict: z.ZodObject<{
|
|
315
|
+
duration_sec: z.ZodNumber;
|
|
316
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
317
|
+
code: z.ZodString;
|
|
318
|
+
level: z.ZodEnum<{
|
|
319
|
+
action: "action";
|
|
320
|
+
asset: "asset";
|
|
321
|
+
camera: "camera";
|
|
322
|
+
roll: "roll";
|
|
323
|
+
}>;
|
|
324
|
+
from: z.ZodNumber;
|
|
325
|
+
to: z.ZodNumber;
|
|
326
|
+
whole_take: z.ZodBoolean;
|
|
327
|
+
why: z.ZodNullable<z.ZodString>;
|
|
328
|
+
}, z.core.$strict>>;
|
|
329
|
+
clean: z.ZodArray<z.ZodObject<{
|
|
330
|
+
from: z.ZodNumber;
|
|
331
|
+
to: z.ZodNumber;
|
|
332
|
+
}, z.core.$strict>>;
|
|
333
|
+
motion: z.ZodOptional<z.ZodObject<{
|
|
334
|
+
subject: z.ZodNumber;
|
|
335
|
+
camera: z.ZodNumber;
|
|
336
|
+
jitter: z.ZodNumber;
|
|
337
|
+
format: z.ZodEnum<{
|
|
338
|
+
fashion: "fashion";
|
|
339
|
+
product: "product";
|
|
340
|
+
}>;
|
|
341
|
+
target: z.ZodObject<{
|
|
342
|
+
subject: z.ZodNumber;
|
|
343
|
+
camera: z.ZodNullable<z.ZodNumber>;
|
|
344
|
+
}, z.core.$strict>;
|
|
345
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
346
|
+
subject: z.ZodNumber;
|
|
347
|
+
camera: z.ZodNumber;
|
|
348
|
+
jitter: z.ZodNumber;
|
|
349
|
+
from: z.ZodNumber;
|
|
350
|
+
to: z.ZodNumber;
|
|
351
|
+
}, z.core.$strict>>;
|
|
352
|
+
finding: z.ZodNullable<z.ZodString>;
|
|
353
|
+
shake: z.ZodNullable<z.ZodString>;
|
|
354
|
+
}, z.core.$strict>>;
|
|
355
|
+
against: z.ZodOptional<z.ZodEnum<{
|
|
356
|
+
motion: "motion";
|
|
357
|
+
picture: "picture";
|
|
358
|
+
}>>;
|
|
359
|
+
action_at_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
360
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
361
|
+
x: z.ZodNumber;
|
|
362
|
+
y: z.ZodNumber;
|
|
363
|
+
w: z.ZodNumber;
|
|
364
|
+
h: z.ZodNumber;
|
|
365
|
+
}, z.core.$strict>>>;
|
|
366
|
+
}, z.core.$strict>;
|
|
367
|
+
export type TakeCheckVerdict = z.infer<typeof takeCheckVerdict>;
|
|
368
|
+
export declare const takeCheckPassed: (verdict: Pick<TakeCheckVerdict, "findings" | "clean">) => boolean;
|
|
153
369
|
export declare const FILM_HERO_SOURCE_FIELDS: readonly ["character_reference", "character_details", "script", "voice_run_id"];
|
|
154
370
|
export declare const filmHeroInput: z.ZodObject<{
|
|
155
371
|
character_reference: z.ZodOptional<z.ZodString>;
|
|
@@ -163,8 +379,21 @@ export type FilmHeroInput = z.infer<typeof filmHeroInput>;
|
|
|
163
379
|
export declare function ownVoiceCeilingSeconds(text: string): number;
|
|
164
380
|
export declare const ownFilmFrames: (voiceSeconds: number) => number;
|
|
165
381
|
export declare const ownFilmSeconds: (voiceSeconds: number) => number;
|
|
382
|
+
export declare const ownAgentQuoteLine: z.ZodObject<{
|
|
383
|
+
label: z.ZodString;
|
|
384
|
+
unit: z.ZodEnum<{
|
|
385
|
+
film: "film";
|
|
386
|
+
track: "track";
|
|
387
|
+
}>;
|
|
388
|
+
quantity: z.ZodNumber;
|
|
389
|
+
unit_credits: z.ZodNumber;
|
|
390
|
+
credits: z.ZodNumber;
|
|
391
|
+
}, z.core.$strict>;
|
|
392
|
+
export type OwnAgentQuoteLine = z.infer<typeof ownAgentQuoteLine>;
|
|
166
393
|
export declare const ownAgentQuote: z.ZodObject<{
|
|
167
394
|
skill: z.ZodEnum<{
|
|
395
|
+
film_cut: "film_cut";
|
|
396
|
+
film_cut_preview: "film_cut_preview";
|
|
168
397
|
film_edit: "film_edit";
|
|
169
398
|
film_hero: "film_hero";
|
|
170
399
|
film_render: "film_render";
|
|
@@ -187,7 +416,39 @@ export declare const ownAgentQuote: z.ZodObject<{
|
|
|
187
416
|
free_units: z.ZodOptional<z.ZodNumber>;
|
|
188
417
|
free_left: z.ZodOptional<z.ZodNumber>;
|
|
189
418
|
frames: z.ZodOptional<z.ZodNumber>;
|
|
419
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
420
|
+
item: z.ZodEnum<{
|
|
421
|
+
bed: "bed";
|
|
422
|
+
cut: "cut";
|
|
423
|
+
extra_seconds: "extra_seconds";
|
|
424
|
+
music: "music";
|
|
425
|
+
take_sound: "take_sound";
|
|
426
|
+
}>;
|
|
427
|
+
units: z.ZodNumber;
|
|
428
|
+
credits: z.ZodNumber;
|
|
429
|
+
}, z.core.$strict>>>;
|
|
430
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
431
|
+
label: z.ZodString;
|
|
432
|
+
unit: z.ZodEnum<{
|
|
433
|
+
film: "film";
|
|
434
|
+
track: "track";
|
|
435
|
+
}>;
|
|
436
|
+
quantity: z.ZodNumber;
|
|
437
|
+
unit_credits: z.ZodNumber;
|
|
438
|
+
credits: z.ZodNumber;
|
|
439
|
+
}, z.core.$strict>>>;
|
|
190
440
|
warnings: z.ZodArray<z.ZodString>;
|
|
441
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
442
|
+
action: z.ZodString;
|
|
443
|
+
method: z.ZodEnum<{
|
|
444
|
+
GET: "GET";
|
|
445
|
+
POST: "POST";
|
|
446
|
+
}>;
|
|
447
|
+
path: z.ZodString;
|
|
448
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
449
|
+
add: z.ZodArray<z.ZodString>;
|
|
450
|
+
note: z.ZodString;
|
|
451
|
+
}, z.core.$strict>>;
|
|
191
452
|
}, z.core.$strict>;
|
|
192
453
|
export type OwnAgentQuote = z.infer<typeof ownAgentQuote>;
|
|
193
454
|
export declare const filmStill: z.ZodObject<{
|
|
@@ -205,6 +466,8 @@ export declare const filmWord: z.ZodObject<{
|
|
|
205
466
|
export declare const filmRun: z.ZodObject<{
|
|
206
467
|
run_id: z.ZodString;
|
|
207
468
|
skill: z.ZodEnum<{
|
|
469
|
+
film_cut: "film_cut";
|
|
470
|
+
film_cut_preview: "film_cut_preview";
|
|
208
471
|
film_edit: "film_edit";
|
|
209
472
|
film_hero: "film_hero";
|
|
210
473
|
film_render: "film_render";
|
|
@@ -269,6 +532,13 @@ export declare const filmRun: z.ZodObject<{
|
|
|
269
532
|
to: z.ZodNumber;
|
|
270
533
|
frames: z.ZodNumber;
|
|
271
534
|
}, z.core.$strict>>;
|
|
535
|
+
shots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
536
|
+
subject: z.ZodNumber;
|
|
537
|
+
camera: z.ZodNumber;
|
|
538
|
+
jitter: z.ZodNumber;
|
|
539
|
+
from: z.ZodNumber;
|
|
540
|
+
to: z.ZodNumber;
|
|
541
|
+
}, z.core.$strict>>>;
|
|
272
542
|
}, z.core.$strict>>;
|
|
273
543
|
take_check: z.ZodOptional<z.ZodObject<{
|
|
274
544
|
duration_sec: z.ZodNumber;
|
|
@@ -289,7 +559,55 @@ export declare const filmRun: z.ZodObject<{
|
|
|
289
559
|
from: z.ZodNumber;
|
|
290
560
|
to: z.ZodNumber;
|
|
291
561
|
}, z.core.$strict>>;
|
|
562
|
+
motion: z.ZodOptional<z.ZodObject<{
|
|
563
|
+
subject: z.ZodNumber;
|
|
564
|
+
camera: z.ZodNumber;
|
|
565
|
+
jitter: z.ZodNumber;
|
|
566
|
+
format: z.ZodEnum<{
|
|
567
|
+
fashion: "fashion";
|
|
568
|
+
product: "product";
|
|
569
|
+
}>;
|
|
570
|
+
target: z.ZodObject<{
|
|
571
|
+
subject: z.ZodNumber;
|
|
572
|
+
camera: z.ZodNullable<z.ZodNumber>;
|
|
573
|
+
}, z.core.$strict>;
|
|
574
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
575
|
+
subject: z.ZodNumber;
|
|
576
|
+
camera: z.ZodNumber;
|
|
577
|
+
jitter: z.ZodNumber;
|
|
578
|
+
from: z.ZodNumber;
|
|
579
|
+
to: z.ZodNumber;
|
|
580
|
+
}, z.core.$strict>>;
|
|
581
|
+
finding: z.ZodNullable<z.ZodString>;
|
|
582
|
+
shake: z.ZodNullable<z.ZodString>;
|
|
583
|
+
}, z.core.$strict>>;
|
|
584
|
+
against: z.ZodOptional<z.ZodEnum<{
|
|
585
|
+
motion: "motion";
|
|
586
|
+
picture: "picture";
|
|
587
|
+
}>>;
|
|
588
|
+
action_at_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
589
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
590
|
+
x: z.ZodNumber;
|
|
591
|
+
y: z.ZodNumber;
|
|
592
|
+
w: z.ZodNumber;
|
|
593
|
+
h: z.ZodNumber;
|
|
594
|
+
}, z.core.$strict>>>;
|
|
292
595
|
}, z.core.$strict>>;
|
|
596
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
597
|
+
action: z.ZodString;
|
|
598
|
+
method: z.ZodEnum<{
|
|
599
|
+
GET: "GET";
|
|
600
|
+
POST: "POST";
|
|
601
|
+
}>;
|
|
602
|
+
path: z.ZodString;
|
|
603
|
+
body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
604
|
+
add: z.ZodArray<z.ZodString>;
|
|
605
|
+
note: z.ZodString;
|
|
606
|
+
}, z.core.$strict>>>;
|
|
607
|
+
blocked: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
608
|
+
reason: z.ZodString;
|
|
609
|
+
unblock: z.ZodString;
|
|
610
|
+
}, z.core.$strict>>>;
|
|
293
611
|
created_at: z.ZodString;
|
|
294
612
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
295
613
|
}, z.core.$strict>;
|
package/dist/own-agent-runs.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { assetId } from "./asset-identity.js";
|
|
3
|
+
import { adId, adSlotId } from "./ad-ids.js";
|
|
4
|
+
import { cutId } from "./cut-ids.js";
|
|
5
|
+
import { diyBlocked, diyNext } from "./diy-next.js";
|
|
6
|
+
import { editMusic } from "./edit-music.js";
|
|
3
7
|
import { EXPLAINER_MAX_PRODUCT_PICTURES, facelessCustomerSceneImage, qualifiedImageUrl } from "./faceless-public.js";
|
|
4
8
|
import { FACELESS_VOICE_NAMES } from "./faceless-voices.js";
|
|
9
|
+
import { filmCutPicture } from "./film-cut.js";
|
|
5
10
|
import { filmDraftId } from "./film-drafts.js";
|
|
6
11
|
import { MASCOT_POSES } from "./mascots.js";
|
|
7
12
|
import { maxCreditsField } from "./max-credits.js";
|
|
@@ -46,6 +51,7 @@ export const filmStillsInput = z.strictObject({
|
|
|
46
51
|
export const filmVoiceInput = z.strictObject({
|
|
47
52
|
text: z.string().trim().min(1).max(OWN_VOICE_MAX_CHARS).describe("The script, spoken exactly as written"),
|
|
48
53
|
voice: z.enum(FACELESS_VOICE_NAMES).optional().describe("A narrator (list_voices with skill=make_faceless); the fastest of the script's language when omitted"),
|
|
54
|
+
cut_id: cutId.optional().describe("The cut record this voice is for: the record then names it as its voice and says what comes next"),
|
|
49
55
|
max_credits: maxCreditsField,
|
|
50
56
|
});
|
|
51
57
|
export const filmRenderInput = z.strictObject({
|
|
@@ -56,8 +62,10 @@ export const filmRenderInput = z.strictObject({
|
|
|
56
62
|
max_credits: maxCreditsField,
|
|
57
63
|
});
|
|
58
64
|
export const FILM_EDIT_WIDTH = 720, FILM_EDIT_HEIGHT = 1280, FILM_EDIT_FPS = 25;
|
|
59
|
-
export const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS =
|
|
65
|
+
export const FILM_EDIT_MAX_CLIPS = 24, FILM_EDIT_MAX_PIECES = 24, FILM_EDIT_MAX_CAPTIONS = 160, FILM_EDIT_MAX_HOLD_SEC = 3;
|
|
60
66
|
export const FILM_EDIT_CAPTION_POSITIONS = ["top", "middle", "bottom", "low"];
|
|
67
|
+
export const FILM_EDIT_CAPTION_STYLES = ["outline", "banner", "badge"];
|
|
68
|
+
export const FILM_EDIT_CAPTION_ALIGNS = ["center", "left"];
|
|
61
69
|
const editSecond = z.number().min(0).max(600);
|
|
62
70
|
const editClip = z.strictObject({
|
|
63
71
|
run_id: runId.optional().describe("A delivered generate_video run of this account"),
|
|
@@ -65,6 +73,8 @@ const editClip = z.strictObject({
|
|
|
65
73
|
from: editSecond.describe("The second of the clip the cut starts at"),
|
|
66
74
|
to: editSecond.describe("The second of the clip the cut ends at, after from"),
|
|
67
75
|
speed: z.number().min(0.5).max(2).default(1).describe("Play speed; the clip lasts (to - from) / speed in the edit. 1.2 lifts a slow beat"),
|
|
76
|
+
slot: adSlotId.optional().describe("With ad_id: the slot of the ad this clip fills. A clip made with generate_video must have passed " +
|
|
77
|
+
"check_take in that slot; your own footage needs no check"),
|
|
68
78
|
}).refine(clip => (clip.run_id === undefined) !== (clip.asset_id === undefined), "name the clip by run_id or by asset_id, one of them")
|
|
69
79
|
.refine(clip => clip.to > clip.from, "to must be after from");
|
|
70
80
|
const voicePiece = z.strictObject({
|
|
@@ -79,7 +89,17 @@ const editCaption = z.strictObject({
|
|
|
79
89
|
end: editSecond.describe("The second of the edit it goes, after start"),
|
|
80
90
|
position: z.enum(FILM_EDIT_CAPTION_POSITIONS).default("bottom")
|
|
81
91
|
.describe("Where it sits; pick the one that keeps it off the product, its print, the working hands and the face"),
|
|
82
|
-
|
|
92
|
+
align: z.enum(FILM_EDIT_CAPTION_ALIGNS).default("center").describe("center, or left to sit at the frame's left edge"),
|
|
93
|
+
style: z.enum(FILM_EDIT_CAPTION_STYLES).default("outline")
|
|
94
|
+
.describe("outline: bold white with a dark outline; banner: a band across the frame that stays for its seconds; badge: the words on a filled box"),
|
|
95
|
+
color: z.string().regex(/^#[0-9a-fA-F]{6}$/, "a hex colour such as #F4EBD9").optional()
|
|
96
|
+
.describe("The fill of the boxed word, the badge or the banner, as #RRGGBB; omitted, white. The words take black or white, whichever reads"),
|
|
97
|
+
highlight: z.number().int().min(0).max(9).optional()
|
|
98
|
+
.describe("outline only: the place of the word drawn in a filled box (0 for the first), the word being spoken"),
|
|
99
|
+
}).refine(caption => caption.end > caption.start, "end must be after start")
|
|
100
|
+
.refine(caption => caption.highlight === undefined || caption.style === "outline", "highlight boxes a word of an outline caption only")
|
|
101
|
+
.refine(caption => caption.color === undefined || caption.style !== "outline" || caption.highlight !== undefined, "color fills a boxed word, a badge or a banner; an outline caption without highlight has none")
|
|
102
|
+
.refine(caption => caption.highlight === undefined || caption.highlight < caption.text.split(/\s+/).length, "highlight names a word the caption does not have");
|
|
83
103
|
export const filmEditInput = z.strictObject({
|
|
84
104
|
clips: z.array(editClip).min(1).max(FILM_EDIT_MAX_CLIPS)
|
|
85
105
|
.describe("The cut in order, each a window of one of your clips; they play back to back with hard cuts"),
|
|
@@ -90,14 +110,24 @@ export const filmEditInput = z.strictObject({
|
|
|
90
110
|
.describe("Instead of the whole take: its sentences laid one by one, each on the second its picture starts; pieces may not overlap"),
|
|
91
111
|
}).optional().describe("The voice-over; without it the edit is silent"),
|
|
92
112
|
captions: z.array(editCaption).max(FILM_EDIT_MAX_CAPTIONS).default([])
|
|
93
|
-
.describe("Burned-in captions:
|
|
113
|
+
.describe("Burned-in captions, each in its style: outline (default), banner or badge"),
|
|
94
114
|
hold: z.number().min(0).max(FILM_EDIT_MAX_HOLD_SEC).default(0)
|
|
95
115
|
.describe("Seconds the last frame is held at the end, for the packshot"),
|
|
116
|
+
music: editMusic.optional().describe("Music from at to the end: a library track (free) or one made for the cut (paid on delivery); " +
|
|
117
|
+
"under a voice it plays lower"),
|
|
118
|
+
ad_id: adId.optional().describe("The ad record this cut belongs to: every clip then names its slot, and a clip made with generate_video " +
|
|
119
|
+
"that has not passed check_take in its slot is refused before any credits; your own footage needs no check"),
|
|
96
120
|
max_credits: maxCreditsField,
|
|
97
|
-
})
|
|
121
|
+
}).refine(edit => edit.ad_id !== undefined || edit.clips.every(clip => clip.slot === undefined), "a clip's slot needs ad_id")
|
|
122
|
+
.refine(edit => edit.ad_id === undefined || edit.clips.every(clip => clip.slot !== undefined), "with ad_id, every clip names its slot");
|
|
98
123
|
export const TAKE_FRAMES_COLUMNS = 8, TAKE_FRAMES_CELL_WIDTH = 240, TAKE_FRAMES_PER_SHEET = 24;
|
|
99
124
|
export const TAKE_FRAMES_MIN_FPS = 1, TAKE_FRAMES_MAX_FPS = 24, TAKE_FRAMES_DEFAULT_FPS = 8;
|
|
100
125
|
export const TAKE_CHECK_PROMPT_MAX_CHARS = 1500, TAKE_CHECK_MAX_MOVES = 5;
|
|
126
|
+
export const TAKE_MOTION_FORMATS = ["fashion", "product"];
|
|
127
|
+
export const TAKE_MOTION_TARGETS = {
|
|
128
|
+
fashion: { subject: 11, camera: 5 }, product: { subject: 1.5, camera: null }
|
|
129
|
+
};
|
|
130
|
+
export const TAKE_SHAKE_LIMIT = 4;
|
|
101
131
|
const takeSecond = z.number().min(0).max(600);
|
|
102
132
|
const takeSource = {
|
|
103
133
|
run_id: runId.optional().describe("The take: a delivered generate_video run of this account"),
|
|
@@ -117,18 +147,85 @@ export const takeFramesInput = z.strictObject({
|
|
|
117
147
|
.describe("Only this part of the frame, enlarged: x, y from the top-left corner and w, h, each a share of the frame's width or height"),
|
|
118
148
|
max_credits: maxCreditsField,
|
|
119
149
|
}).refine(oneTake, ONE_TAKE).refine(v => v.from === undefined || v.to === undefined || v.to > v.from, "to must be after from");
|
|
150
|
+
export const TAKE_CHECK_AGAINST = ["motion", "picture"];
|
|
151
|
+
export const TAKE_PICTURE_MAX_CHANGES = 4, TAKE_PICTURE_MAX_LOCKS = 6;
|
|
152
|
+
const words = (most) => z.string().trim().min(1).max(most);
|
|
153
|
+
export const pictureTakeAsk = z.strictObject({
|
|
154
|
+
start: words(300).describe("What the first frame shows"),
|
|
155
|
+
changes: z.array(z.strictObject({ at_s: takeSecond.describe("The second of the take the change starts"), cause: words(200), result: words(240) }))
|
|
156
|
+
.min(1).max(TAKE_PICTURE_MAX_CHANGES).describe("Each change the take was asked to show, in order"),
|
|
157
|
+
camera: words(160).default("as made").describe("The camera's move; omitted, as made"),
|
|
158
|
+
end: words(300).describe("What the last frame shows"),
|
|
159
|
+
locks: z.array(words(200)).max(TAKE_PICTURE_MAX_LOCKS).default([]).describe("What must stay as the picture shows it"),
|
|
160
|
+
});
|
|
161
|
+
const hexColour = z.string().regex(/^#[0-9a-fA-F]{6}$/, "a colour is #RRGGBB");
|
|
162
|
+
const PICTURE_ONLY = ["look", "picture", "cut_id"], MOTION_ONLY = ["product_image", "moves", "format", "ad_id"];
|
|
120
163
|
export const takeCheckInput = z.strictObject({
|
|
121
164
|
...takeSource,
|
|
122
|
-
|
|
123
|
-
|
|
165
|
+
against: z.enum(TAKE_CHECK_AGAINST).optional().describe("motion (an ad shot, the default) or picture: the take against the picture it was " +
|
|
166
|
+
"made from, with direction as start, changes, camera, end and locks"),
|
|
167
|
+
direction: z.union([z.string().trim().min(1).max(TAKE_CHECK_PROMPT_MAX_CHARS), pictureTakeAsk])
|
|
168
|
+
.describe("What the take was asked to show: the shot's part of the prompt you made it with (its action and timeline), up to 1500 characters; " +
|
|
169
|
+
"with against picture, the object of start, changes, camera, end and locks"),
|
|
170
|
+
look: z.strictObject({ words: words(200).describe("The video's look in words"),
|
|
171
|
+
palette: z.array(hexColour).min(3).max(5).optional().describe("Its colours") }).optional()
|
|
172
|
+
.describe("With against picture: the look a colour outside it is named against"),
|
|
173
|
+
picture: filmCutPicture.optional().describe("With against picture: the picture the take is checked against; needed only when the take " +
|
|
174
|
+
"was not made from a first frame, and it must be that first frame when it was"),
|
|
124
175
|
product_image: qualifiedImageUrl.optional()
|
|
125
176
|
.describe("https picture of the product as it really is (your upload or a saved asset): the take's product is compared with it"),
|
|
126
177
|
moves: z.array(takeSecond).max(TAKE_CHECK_MAX_MOVES).optional()
|
|
127
178
|
.describe("Seconds of the take where a hand meets the product (a grip, a lid, a set-down): looked at first"),
|
|
179
|
+
ad_id: adId.optional().describe("With slot: the ad record the verdict joins, as a take of that slot"),
|
|
180
|
+
cut_id: cutId.optional().describe("With against picture, required with slot: the cut record the verdict joins, as a take of that slot"),
|
|
181
|
+
slot: adSlotId.optional().describe("With ad_id or cut_id: the slot of the record this take is for; on a cut record, a slot that needs a take"),
|
|
182
|
+
format: z.enum(TAKE_MOTION_FORMATS).optional().describe("What the take's motion is measured against: fashion (people and clothes in " +
|
|
183
|
+
"motion: fashion, lifestyle, sport) or product (a product worked in the hands); omitted, product"),
|
|
128
184
|
max_credits: maxCreditsField,
|
|
129
|
-
}).refine(oneTake, ONE_TAKE)
|
|
185
|
+
}).refine(oneTake, ONE_TAKE)
|
|
186
|
+
.superRefine((v, ctx) => {
|
|
187
|
+
const picture = v.against === "picture", refuse = (path, message) => ctx.addIssue({ code: z.ZodIssueCode.custom, path: [path], message });
|
|
188
|
+
if (picture && v.cut_id === undefined)
|
|
189
|
+
refuse("cut_id", "with against picture, name the cut record (create_cut) the take is for");
|
|
190
|
+
if (picture && v.slot === undefined)
|
|
191
|
+
refuse("slot", "with against picture, name the cut record's slot the take is for");
|
|
192
|
+
if (!picture && (v.ad_id === undefined) !== (v.slot === undefined))
|
|
193
|
+
ctx.addIssue({ code: z.ZodIssueCode.custom, path: [], message: "ad_id and slot go together" });
|
|
194
|
+
if (picture !== (typeof v.direction === "object"))
|
|
195
|
+
refuse("direction", picture ? "with against picture, direction is an object of start, changes, " +
|
|
196
|
+
"camera, end and locks" : "direction is the shot's prompt as text; the object form goes with against picture");
|
|
197
|
+
if (picture && v.look === undefined)
|
|
198
|
+
refuse("look", "with against picture, name the look");
|
|
199
|
+
for (const key of picture ? MOTION_ONLY : PICTURE_ONLY)
|
|
200
|
+
if (v[key] !== undefined)
|
|
201
|
+
refuse(key, picture ? `${key} goes with a motion check, not against picture` : `${key} goes with against picture`);
|
|
202
|
+
});
|
|
130
203
|
export const TAKE_DEFECT_LEVELS = ["asset", "action", "camera", "roll"];
|
|
131
204
|
const takeWindow = z.strictObject({ from: z.number().min(0), to: z.number().min(0) });
|
|
205
|
+
const motionNumbers = {
|
|
206
|
+
subject: z.number().nonnegative().describe("How much the subject moves once the camera's own move is taken out: mean change of brightness between frames, 0 to 255"),
|
|
207
|
+
camera: z.number().nonnegative().describe("How fast the camera travels on its smooth path, percent of the frame's width a second"),
|
|
208
|
+
jitter: z.number().nonnegative().describe("Camera shake: how far the camera strays from that smooth path, percent of the frame's width a step"),
|
|
209
|
+
};
|
|
210
|
+
export const takeMotionWindow = z.strictObject({ from: z.number().min(0), to: z.number().min(0), ...motionNumbers });
|
|
211
|
+
export const takeMotion = z.strictObject({
|
|
212
|
+
format: z.enum(TAKE_MOTION_FORMATS),
|
|
213
|
+
target: z.strictObject({ subject: z.number().nonnegative(), camera: z.number().nonnegative().nullable() }),
|
|
214
|
+
...motionNumbers,
|
|
215
|
+
windows: z.array(takeMotionWindow),
|
|
216
|
+
finding: z.string().nullable().describe("too static for this format, with what to change; null when every window reaches the target"),
|
|
217
|
+
shake: z.string().nullable().describe("camera shake past the limit, with what to change; null when the camera is steady"),
|
|
218
|
+
});
|
|
219
|
+
export const takeCheckVerdict = z.strictObject({ duration_sec: z.number().positive(),
|
|
220
|
+
findings: z.array(z.strictObject({ code: z.string(), level: z.enum(TAKE_DEFECT_LEVELS), from: z.number().min(0), to: z.number().min(0),
|
|
221
|
+
whole_take: z.boolean(), why: z.string().nullable() })),
|
|
222
|
+
clean: z.array(takeWindow),
|
|
223
|
+
motion: takeMotion.optional(),
|
|
224
|
+
against: z.enum(TAKE_CHECK_AGAINST).optional(),
|
|
225
|
+
action_at_s: z.number().min(0).nullable().optional().describe("Against picture: the second the first asked change shows; null when it never does"),
|
|
226
|
+
subject: z.strictObject({ x: z.number().min(0).max(1), y: z.number().min(0).max(1), w: z.number().min(0).max(1), h: z.number().min(0).max(1) })
|
|
227
|
+
.nullable().optional().describe("Against picture: the main subject's box at that second, shares of the frame from its top-left corner") });
|
|
228
|
+
export const takeCheckPassed = (verdict) => verdict.clean.length > 0 && !verdict.findings.some(finding => finding.whole_take);
|
|
132
229
|
export const FILM_HERO_SOURCE_FIELDS = ["character_reference", "character_details", "script", "voice_run_id"];
|
|
133
230
|
export const filmHeroInput = z.strictObject({
|
|
134
231
|
character_reference: qualifiedImageUrl.optional().describe("https image of the character the poses are drawn after: a public picture, your upload, a " +
|
|
@@ -148,6 +245,8 @@ export function ownVoiceCeilingSeconds(text) {
|
|
|
148
245
|
export const ownFilmFrames = (voiceSeconds) => Math.ceil((voiceSeconds + FILM_TAIL_SEC) * FILM_RENDER_FPS);
|
|
149
246
|
export const ownFilmSeconds = (voiceSeconds) => +(ownFilmFrames(voiceSeconds) / FILM_RENDER_FPS).toFixed(2);
|
|
150
247
|
const filmSec = z.number().positive().describe("How long the film runs: the voice, then a short tail; say this length, not the voice's");
|
|
248
|
+
export const ownAgentQuoteLine = z.strictObject({ label: z.string().min(1), unit: z.enum(["film", "track"]), quantity: z.number().int().nonnegative(),
|
|
249
|
+
unit_credits: z.number().int().nonnegative(), credits: z.number().int().nonnegative() });
|
|
151
250
|
export const ownAgentQuote = z.strictObject({
|
|
152
251
|
skill: z.enum(OWN_AGENT_SKILLS),
|
|
153
252
|
credits: z.number().int().nonnegative(),
|
|
@@ -155,10 +254,15 @@ export const ownAgentQuote = z.strictObject({
|
|
|
155
254
|
units: z.number().int().nonnegative(),
|
|
156
255
|
film_sec: filmSec.optional(),
|
|
157
256
|
free_units: z.number().int().nonnegative().optional()
|
|
158
|
-
.describe(`How many of the asked stills are free: the first ${OWN_FREE_STILLS} stills of a draft in any
|
|
159
|
-
|
|
257
|
+
.describe(`How many of the asked stills are free: the first ${OWN_FREE_STILLS} stills of a draft, or previews of an account, in any ` +
|
|
258
|
+
`${OWN_FREE_STILLS_WINDOW_HOURS} h are`),
|
|
259
|
+
free_left: z.number().int().nonnegative().optional().describe("Free stills the draft, or the account's previews, have left in the rolling day after this call"),
|
|
160
260
|
frames: z.number().int().positive().optional(),
|
|
261
|
+
items: z.array(z.strictObject({ item: z.enum(["cut", "extra_seconds", "bed", "take_sound", "music"]), units: z.number().int().nonnegative(),
|
|
262
|
+
credits: z.number().int().nonnegative() })).optional(),
|
|
263
|
+
lines: z.array(ownAgentQuoteLine).optional(),
|
|
161
264
|
warnings: z.array(z.string()),
|
|
265
|
+
next: diyNext.optional(),
|
|
162
266
|
});
|
|
163
267
|
export const filmStill = z.strictObject({
|
|
164
268
|
at: z.union([z.string(), z.number()]),
|
|
@@ -183,12 +287,13 @@ export const filmRun = z.strictObject({
|
|
|
183
287
|
hero: z.strictObject({ mascot_id: assetId, poses: z.array(z.enum(MASCOT_POSES)), character: z.string().nullable(),
|
|
184
288
|
sheet_url: z.string().url().nullable().default(null) }).optional(),
|
|
185
289
|
take_frames: z.strictObject({ fps: z.number().int().positive(), frames: z.number().int().positive(),
|
|
186
|
-
sheets: z.array(z.strictObject({ image_url: z.string().url(), from: z.number().min(0), to: z.number().min(0), frames: z.number().int().positive() }))
|
|
290
|
+
sheets: z.array(z.strictObject({ image_url: z.string().url(), from: z.number().min(0), to: z.number().min(0), frames: z.number().int().positive() })),
|
|
291
|
+
shots: z.array(takeMotionWindow).optional()
|
|
292
|
+
.describe("The stretches between cuts and whips in these seconds, each with its subject motion, camera move and camera shake: a reference's energy, shot by shot") })
|
|
187
293
|
.optional(),
|
|
188
|
-
take_check:
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
clean: z.array(takeWindow) }).optional(),
|
|
294
|
+
take_check: takeCheckVerdict.optional(),
|
|
295
|
+
next: diyNext.nullable().optional(),
|
|
296
|
+
blocked: diyBlocked.nullable().optional(),
|
|
192
297
|
created_at: z.string(),
|
|
193
298
|
finished_at: z.string().nullable(),
|
|
194
299
|
});
|
package/dist/prices.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export type PricesResponseRead = z.infer<typeof pricesResponseRead>;
|
|
|
93
93
|
export declare const isPaidEntry: (entry: PriceEntry) => boolean;
|
|
94
94
|
export declare const FREE_RUN_ROUTES: ReadonlySet<string>;
|
|
95
95
|
export declare const AD_DIY_PRICES: readonly PriceEntry[];
|
|
96
|
+
export declare const FACELESS_DIY_PRICES: readonly PriceEntry[];
|
|
96
97
|
export declare function priceListFor(env: Record<string, string | undefined>): readonly PriceEntry[];
|
|
97
98
|
export declare const PRICE_LIST: readonly PriceEntry[];
|
|
98
99
|
export declare const priceText: (entry: PriceEntry) => string;
|