@slatesvideo/shared 0.7.20 → 0.7.22
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/analytics/events.js +4 -4
- package/dist/auth.d.ts +11 -11
- package/dist/auth.js +54 -18
- package/dist/clients/cloud.d.ts +1 -0
- package/dist/clients/cloud.js +4 -1
- package/dist/clients/desktop.d.ts +15 -0
- package/dist/clients/desktop.js +37 -12
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/manual/content.d.ts +1 -1
- package/dist/manual/content.js +1 -1
- package/dist/operations/index.d.ts +522 -229
- package/dist/operations/index.js +1209 -428
- package/dist/operations/parse-input.d.ts +47 -0
- package/dist/operations/parse-input.js +100 -0
- package/dist/operations/surface.js +14 -1
- package/dist/prompts/model-capabilities.d.ts +139 -27
- package/dist/prompts/model-capabilities.js +222 -150
- package/dist/prompts/model-facts.d.ts +14 -0
- package/dist/prompts/model-facts.js +29 -28
- package/dist/prompts/prompting-tips.d.ts +1 -1
- package/dist/prompts/prompting-tips.js +1 -66
- package/dist/prompts/retired-models.d.ts +34 -0
- package/dist/prompts/retired-models.js +67 -0
- package/dist/prompts/shot-spec.d.ts +6 -1
- package/dist/prompts/shot-spec.js +12 -1
- package/dist/skills/content.js +0 -1
- package/dist/update-check.js +15 -6
- package/package.json +1 -1
|
@@ -31,6 +31,19 @@ export interface OperationContext {
|
|
|
31
31
|
* desktop one per chat. Absent (the CLI, one call per process), no gate.
|
|
32
32
|
*/
|
|
33
33
|
guidesRead?: Set<string>;
|
|
34
|
+
/**
|
|
35
|
+
* The host's own spending decision for this one call, where the host has one (the desktop Studio Agent's loop):
|
|
36
|
+
* the credits the user approved beyond the call's own quote, the quote they approved (its `fingerprint`), and
|
|
37
|
+
* whether that approval still stands. Present, a paid op takes its ceiling from here and never from
|
|
38
|
+
* `approvedCredits` in its input, and sends nothing once `approved()` is false (`approvedSpend`). Absent (MCP,
|
|
39
|
+
* the CLI), the input's `approvedCredits` stands: on MCP the confirm gate sets it to the figure the user approved
|
|
40
|
+
* (the reply's own `approvedCredits`), else the host client's per-call approval is the consent.
|
|
41
|
+
*/
|
|
42
|
+
spend?: {
|
|
43
|
+
approvedCredits?: number;
|
|
44
|
+
quoteFingerprint?: string;
|
|
45
|
+
approved: () => boolean;
|
|
46
|
+
};
|
|
34
47
|
}
|
|
35
48
|
export declare function defaultContext(): OperationContext;
|
|
36
49
|
/** Thrown by an op that noticed `ctx.signal` had aborted mid-work. */
|
|
@@ -210,11 +223,11 @@ declare const gridSelectionInput: z.ZodObject<{
|
|
|
210
223
|
rowKeys: z.ZodArray<z.ZodString, "many">;
|
|
211
224
|
aspects: z.ZodArray<z.ZodString, "many">;
|
|
212
225
|
}, "strict", z.ZodTypeAny, {
|
|
213
|
-
aspects: string[];
|
|
214
226
|
rowKeys: string[];
|
|
215
|
-
}, {
|
|
216
227
|
aspects: string[];
|
|
228
|
+
}, {
|
|
217
229
|
rowKeys: string[];
|
|
230
|
+
aspects: string[];
|
|
218
231
|
}>;
|
|
219
232
|
declare const exportEncodingInput: z.ZodObject<{
|
|
220
233
|
presetId: z.ZodOptional<z.ZodEnum<["tiktok", "reels", "meta-feed", "stories", "shorts", "youtube"]>>;
|
|
@@ -225,12 +238,12 @@ declare const exportEncodingInput: z.ZodObject<{
|
|
|
225
238
|
presetId?: "tiktok" | "reels" | "meta-feed" | "stories" | "shorts" | "youtube" | undefined;
|
|
226
239
|
codec?: "h264" | "h265" | "prores" | undefined;
|
|
227
240
|
videoBitrateMbps?: number | null | undefined;
|
|
228
|
-
fps?:
|
|
241
|
+
fps?: 30 | 24 | 60 | null | undefined;
|
|
229
242
|
}, {
|
|
230
243
|
presetId?: "tiktok" | "reels" | "meta-feed" | "stories" | "shorts" | "youtube" | undefined;
|
|
231
244
|
codec?: "h264" | "h265" | "prores" | undefined;
|
|
232
245
|
videoBitrateMbps?: number | null | undefined;
|
|
233
|
-
fps?:
|
|
246
|
+
fps?: 30 | 24 | 60 | null | undefined;
|
|
234
247
|
}>;
|
|
235
248
|
declare const deliveryInput: z.ZodObject<{
|
|
236
249
|
formats: z.ZodArray<z.ZodString, "many">;
|
|
@@ -246,12 +259,12 @@ declare const deliveryInput: z.ZodObject<{
|
|
|
246
259
|
presetId?: "tiktok" | "reels" | "meta-feed" | "stories" | "shorts" | "youtube" | undefined;
|
|
247
260
|
codec?: "h264" | "h265" | "prores" | undefined;
|
|
248
261
|
videoBitrateMbps?: number | null | undefined;
|
|
249
|
-
fps?:
|
|
262
|
+
fps?: 30 | 24 | 60 | null | undefined;
|
|
250
263
|
}, {
|
|
251
264
|
presetId?: "tiktok" | "reels" | "meta-feed" | "stories" | "shorts" | "youtube" | undefined;
|
|
252
265
|
codec?: "h264" | "h265" | "prores" | undefined;
|
|
253
266
|
videoBitrateMbps?: number | null | undefined;
|
|
254
|
-
fps?:
|
|
267
|
+
fps?: 30 | 24 | 60 | null | undefined;
|
|
255
268
|
}>>>;
|
|
256
269
|
}, "strict", z.ZodTypeAny, {
|
|
257
270
|
formats: string[];
|
|
@@ -262,7 +275,7 @@ declare const deliveryInput: z.ZodObject<{
|
|
|
262
275
|
presetId?: "tiktok" | "reels" | "meta-feed" | "stories" | "shorts" | "youtube" | undefined;
|
|
263
276
|
codec?: "h264" | "h265" | "prores" | undefined;
|
|
264
277
|
videoBitrateMbps?: number | null | undefined;
|
|
265
|
-
fps?:
|
|
278
|
+
fps?: 30 | 24 | 60 | null | undefined;
|
|
266
279
|
} | null | undefined;
|
|
267
280
|
}, {
|
|
268
281
|
formats: string[];
|
|
@@ -273,7 +286,7 @@ declare const deliveryInput: z.ZodObject<{
|
|
|
273
286
|
presetId?: "tiktok" | "reels" | "meta-feed" | "stories" | "shorts" | "youtube" | undefined;
|
|
274
287
|
codec?: "h264" | "h265" | "prores" | undefined;
|
|
275
288
|
videoBitrateMbps?: number | null | undefined;
|
|
276
|
-
fps?:
|
|
289
|
+
fps?: 30 | 24 | 60 | null | undefined;
|
|
277
290
|
} | null | undefined;
|
|
278
291
|
}>;
|
|
279
292
|
declare const taxonomyInput: z.ZodObject<{
|
|
@@ -317,17 +330,17 @@ declare const gridBindingInput: z.ZodObject<{
|
|
|
317
330
|
shotIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
318
331
|
}, "strict", z.ZodTypeAny, {
|
|
319
332
|
key: string;
|
|
320
|
-
alternativeId?: string | undefined;
|
|
321
|
-
sectionId?: string | undefined;
|
|
322
333
|
label?: string | undefined;
|
|
323
334
|
choicePosition?: number | undefined;
|
|
335
|
+
sectionId?: string | undefined;
|
|
336
|
+
alternativeId?: string | undefined;
|
|
324
337
|
shotIds?: string[] | undefined;
|
|
325
338
|
}, {
|
|
326
339
|
key: string;
|
|
327
|
-
alternativeId?: string | undefined;
|
|
328
|
-
sectionId?: string | undefined;
|
|
329
340
|
label?: string | undefined;
|
|
330
341
|
choicePosition?: number | undefined;
|
|
342
|
+
sectionId?: string | undefined;
|
|
343
|
+
alternativeId?: string | undefined;
|
|
331
344
|
shotIds?: string[] | undefined;
|
|
332
345
|
}>>;
|
|
333
346
|
body: z.ZodOptional<z.ZodObject<{
|
|
@@ -339,17 +352,17 @@ declare const gridBindingInput: z.ZodObject<{
|
|
|
339
352
|
shotIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
340
353
|
}, "strict", z.ZodTypeAny, {
|
|
341
354
|
key: string;
|
|
342
|
-
alternativeId?: string | undefined;
|
|
343
|
-
sectionId?: string | undefined;
|
|
344
355
|
label?: string | undefined;
|
|
345
356
|
choicePosition?: number | undefined;
|
|
357
|
+
sectionId?: string | undefined;
|
|
358
|
+
alternativeId?: string | undefined;
|
|
346
359
|
shotIds?: string[] | undefined;
|
|
347
360
|
}, {
|
|
348
361
|
key: string;
|
|
349
|
-
alternativeId?: string | undefined;
|
|
350
|
-
sectionId?: string | undefined;
|
|
351
362
|
label?: string | undefined;
|
|
352
363
|
choicePosition?: number | undefined;
|
|
364
|
+
sectionId?: string | undefined;
|
|
365
|
+
alternativeId?: string | undefined;
|
|
353
366
|
shotIds?: string[] | undefined;
|
|
354
367
|
}>>;
|
|
355
368
|
endCard: z.ZodOptional<z.ZodObject<{
|
|
@@ -361,67 +374,67 @@ declare const gridBindingInput: z.ZodObject<{
|
|
|
361
374
|
shotIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
362
375
|
}, "strict", z.ZodTypeAny, {
|
|
363
376
|
key: string;
|
|
364
|
-
alternativeId?: string | undefined;
|
|
365
|
-
sectionId?: string | undefined;
|
|
366
377
|
label?: string | undefined;
|
|
367
378
|
choicePosition?: number | undefined;
|
|
379
|
+
sectionId?: string | undefined;
|
|
380
|
+
alternativeId?: string | undefined;
|
|
368
381
|
shotIds?: string[] | undefined;
|
|
369
382
|
}, {
|
|
370
383
|
key: string;
|
|
371
|
-
alternativeId?: string | undefined;
|
|
372
|
-
sectionId?: string | undefined;
|
|
373
384
|
label?: string | undefined;
|
|
374
385
|
choicePosition?: number | undefined;
|
|
386
|
+
sectionId?: string | undefined;
|
|
387
|
+
alternativeId?: string | undefined;
|
|
375
388
|
shotIds?: string[] | undefined;
|
|
376
389
|
}>>;
|
|
377
390
|
}, "strict", z.ZodTypeAny, {
|
|
378
391
|
hook?: {
|
|
379
392
|
key: string;
|
|
380
|
-
alternativeId?: string | undefined;
|
|
381
|
-
sectionId?: string | undefined;
|
|
382
393
|
label?: string | undefined;
|
|
383
394
|
choicePosition?: number | undefined;
|
|
395
|
+
sectionId?: string | undefined;
|
|
396
|
+
alternativeId?: string | undefined;
|
|
384
397
|
shotIds?: string[] | undefined;
|
|
385
398
|
} | undefined;
|
|
386
399
|
body?: {
|
|
387
400
|
key: string;
|
|
388
|
-
alternativeId?: string | undefined;
|
|
389
|
-
sectionId?: string | undefined;
|
|
390
401
|
label?: string | undefined;
|
|
391
402
|
choicePosition?: number | undefined;
|
|
403
|
+
sectionId?: string | undefined;
|
|
404
|
+
alternativeId?: string | undefined;
|
|
392
405
|
shotIds?: string[] | undefined;
|
|
393
406
|
} | undefined;
|
|
394
407
|
endCard?: {
|
|
395
408
|
key: string;
|
|
396
|
-
alternativeId?: string | undefined;
|
|
397
|
-
sectionId?: string | undefined;
|
|
398
409
|
label?: string | undefined;
|
|
399
410
|
choicePosition?: number | undefined;
|
|
411
|
+
sectionId?: string | undefined;
|
|
412
|
+
alternativeId?: string | undefined;
|
|
400
413
|
shotIds?: string[] | undefined;
|
|
401
414
|
} | undefined;
|
|
402
415
|
}, {
|
|
403
416
|
hook?: {
|
|
404
417
|
key: string;
|
|
405
|
-
alternativeId?: string | undefined;
|
|
406
|
-
sectionId?: string | undefined;
|
|
407
418
|
label?: string | undefined;
|
|
408
419
|
choicePosition?: number | undefined;
|
|
420
|
+
sectionId?: string | undefined;
|
|
421
|
+
alternativeId?: string | undefined;
|
|
409
422
|
shotIds?: string[] | undefined;
|
|
410
423
|
} | undefined;
|
|
411
424
|
body?: {
|
|
412
425
|
key: string;
|
|
413
|
-
alternativeId?: string | undefined;
|
|
414
|
-
sectionId?: string | undefined;
|
|
415
426
|
label?: string | undefined;
|
|
416
427
|
choicePosition?: number | undefined;
|
|
428
|
+
sectionId?: string | undefined;
|
|
429
|
+
alternativeId?: string | undefined;
|
|
417
430
|
shotIds?: string[] | undefined;
|
|
418
431
|
} | undefined;
|
|
419
432
|
endCard?: {
|
|
420
433
|
key: string;
|
|
421
|
-
alternativeId?: string | undefined;
|
|
422
|
-
sectionId?: string | undefined;
|
|
423
434
|
label?: string | undefined;
|
|
424
435
|
choicePosition?: number | undefined;
|
|
436
|
+
sectionId?: string | undefined;
|
|
437
|
+
alternativeId?: string | undefined;
|
|
425
438
|
shotIds?: string[] | undefined;
|
|
426
439
|
} | undefined;
|
|
427
440
|
}>>;
|
|
@@ -432,26 +445,26 @@ declare const gridBindingInput: z.ZodObject<{
|
|
|
432
445
|
slots?: {
|
|
433
446
|
hook?: {
|
|
434
447
|
key: string;
|
|
435
|
-
alternativeId?: string | undefined;
|
|
436
|
-
sectionId?: string | undefined;
|
|
437
448
|
label?: string | undefined;
|
|
438
449
|
choicePosition?: number | undefined;
|
|
450
|
+
sectionId?: string | undefined;
|
|
451
|
+
alternativeId?: string | undefined;
|
|
439
452
|
shotIds?: string[] | undefined;
|
|
440
453
|
} | undefined;
|
|
441
454
|
body?: {
|
|
442
455
|
key: string;
|
|
443
|
-
alternativeId?: string | undefined;
|
|
444
|
-
sectionId?: string | undefined;
|
|
445
456
|
label?: string | undefined;
|
|
446
457
|
choicePosition?: number | undefined;
|
|
458
|
+
sectionId?: string | undefined;
|
|
459
|
+
alternativeId?: string | undefined;
|
|
447
460
|
shotIds?: string[] | undefined;
|
|
448
461
|
} | undefined;
|
|
449
462
|
endCard?: {
|
|
450
463
|
key: string;
|
|
451
|
-
alternativeId?: string | undefined;
|
|
452
|
-
sectionId?: string | undefined;
|
|
453
464
|
label?: string | undefined;
|
|
454
465
|
choicePosition?: number | undefined;
|
|
466
|
+
sectionId?: string | undefined;
|
|
467
|
+
alternativeId?: string | undefined;
|
|
455
468
|
shotIds?: string[] | undefined;
|
|
456
469
|
} | undefined;
|
|
457
470
|
} | undefined;
|
|
@@ -462,26 +475,26 @@ declare const gridBindingInput: z.ZodObject<{
|
|
|
462
475
|
slots?: {
|
|
463
476
|
hook?: {
|
|
464
477
|
key: string;
|
|
465
|
-
alternativeId?: string | undefined;
|
|
466
|
-
sectionId?: string | undefined;
|
|
467
478
|
label?: string | undefined;
|
|
468
479
|
choicePosition?: number | undefined;
|
|
480
|
+
sectionId?: string | undefined;
|
|
481
|
+
alternativeId?: string | undefined;
|
|
469
482
|
shotIds?: string[] | undefined;
|
|
470
483
|
} | undefined;
|
|
471
484
|
body?: {
|
|
472
485
|
key: string;
|
|
473
|
-
alternativeId?: string | undefined;
|
|
474
|
-
sectionId?: string | undefined;
|
|
475
486
|
label?: string | undefined;
|
|
476
487
|
choicePosition?: number | undefined;
|
|
488
|
+
sectionId?: string | undefined;
|
|
489
|
+
alternativeId?: string | undefined;
|
|
477
490
|
shotIds?: string[] | undefined;
|
|
478
491
|
} | undefined;
|
|
479
492
|
endCard?: {
|
|
480
493
|
key: string;
|
|
481
|
-
alternativeId?: string | undefined;
|
|
482
|
-
sectionId?: string | undefined;
|
|
483
494
|
label?: string | undefined;
|
|
484
495
|
choicePosition?: number | undefined;
|
|
496
|
+
sectionId?: string | undefined;
|
|
497
|
+
alternativeId?: string | undefined;
|
|
485
498
|
shotIds?: string[] | undefined;
|
|
486
499
|
} | undefined;
|
|
487
500
|
} | undefined;
|
|
@@ -869,16 +882,16 @@ declare const whipEditInput: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
869
882
|
at: number;
|
|
870
883
|
kind: "move";
|
|
871
884
|
start?: number | undefined;
|
|
885
|
+
peak?: number | undefined;
|
|
872
886
|
end?: number | undefined;
|
|
873
887
|
direction?: "left" | "right" | "up-right" | "up" | "up-left" | "down-left" | "down" | "down-right" | undefined;
|
|
874
|
-
peak?: number | undefined;
|
|
875
888
|
}, {
|
|
876
889
|
at: number;
|
|
877
890
|
kind: "move";
|
|
878
891
|
start?: number | undefined;
|
|
892
|
+
peak?: number | undefined;
|
|
879
893
|
end?: number | undefined;
|
|
880
894
|
direction?: "left" | "right" | "up-right" | "up" | "up-left" | "down-left" | "down" | "down-right" | undefined;
|
|
881
|
-
peak?: number | undefined;
|
|
882
895
|
}>, z.ZodObject<{
|
|
883
896
|
kind: z.ZodLiteral<"add">;
|
|
884
897
|
start: z.ZodNumber;
|
|
@@ -886,17 +899,17 @@ declare const whipEditInput: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
886
899
|
end: z.ZodNumber;
|
|
887
900
|
direction: z.ZodEnum<["right", "up-right", "up", "up-left", "left", "down-left", "down", "down-right"]>;
|
|
888
901
|
}, "strict", z.ZodTypeAny, {
|
|
889
|
-
start: number;
|
|
890
902
|
kind: "add";
|
|
903
|
+
start: number;
|
|
904
|
+
peak: number;
|
|
891
905
|
end: number;
|
|
892
906
|
direction: "left" | "right" | "up-right" | "up" | "up-left" | "down-left" | "down" | "down-right";
|
|
893
|
-
peak: number;
|
|
894
907
|
}, {
|
|
895
|
-
start: number;
|
|
896
908
|
kind: "add";
|
|
909
|
+
start: number;
|
|
910
|
+
peak: number;
|
|
897
911
|
end: number;
|
|
898
912
|
direction: "left" | "right" | "up-right" | "up" | "up-left" | "down-left" | "down" | "down-right";
|
|
899
|
-
peak: number;
|
|
900
913
|
}>, z.ZodObject<{
|
|
901
914
|
kind: z.ZodLiteral<"delete">;
|
|
902
915
|
at: z.ZodNumber;
|
|
@@ -931,7 +944,7 @@ export declare const getCreditBalance: Operation<Record<string, never>>;
|
|
|
931
944
|
export declare const listAvailableModels: Operation<{
|
|
932
945
|
filter?: string;
|
|
933
946
|
}>;
|
|
934
|
-
export declare const VIDEO_MODELS: readonly ["kling-v3.0-std", "kling-v3.0-pro", "kling-v3.0-omni", "seedance-2", "seedance-2.5", "omni-flash-1-2", "wan-3.0", "kling-v4.0", "minimax-h3", "minimax-h3-max", "minimax-h3-max-turbo"
|
|
947
|
+
export declare const VIDEO_MODELS: readonly ["kling-v3.0-std", "kling-v3.0-pro", "kling-v3.0-omni", "seedance-2", "seedance-2.5", "omni-flash-1-2", "wan-3.0", "kling-v4.0", "minimax-h3", "minimax-h3-max", "minimax-h3-max-turbo"];
|
|
935
948
|
type VideoModel = (typeof VIDEO_MODELS)[number];
|
|
936
949
|
/** The exact `model` ids `slates_edit_video` accepts. Edit rows are deliberately
|
|
937
950
|
* NOT in VIDEO_MODELS — they take a source clip, not frames. */
|
|
@@ -955,6 +968,7 @@ export declare const estimateGenerationCost: Operation<{
|
|
|
955
968
|
seedanceFace?: boolean;
|
|
956
969
|
seedanceRealFace?: boolean;
|
|
957
970
|
referenceImages?: number;
|
|
971
|
+
videoReferenceSecondsEach?: number[];
|
|
958
972
|
videoRefSeconds?: number;
|
|
959
973
|
audioRefSeconds?: number;
|
|
960
974
|
}>;
|
|
@@ -1178,6 +1192,30 @@ export type GptQualityId = GptQuality;
|
|
|
1178
1192
|
* part of any cost key. `auto` is fal's default and ours.
|
|
1179
1193
|
*/
|
|
1180
1194
|
export type GptBackgroundId = GptBackground;
|
|
1195
|
+
type Clarification = {
|
|
1196
|
+
requires_clarification: true;
|
|
1197
|
+
missing: string[];
|
|
1198
|
+
message: string;
|
|
1199
|
+
};
|
|
1200
|
+
/**
|
|
1201
|
+
* The per-model image gate: the aspect ratio and the resolution rung the seat
|
|
1202
|
+
* declares in `MODEL_CAPABILITIES`. Generate, edit, the estimate and a saved
|
|
1203
|
+
* image Shot all run this one function, so a quote, a recipe and a generation
|
|
1204
|
+
* cannot disagree about what a seat takes.
|
|
1205
|
+
*
|
|
1206
|
+
* Why: GPT Image takes five of the union's ratios. A 4:5 or 21:9 ask passed,
|
|
1207
|
+
* was quoted at the 16:9 key, and the desktop's size table rendered a 16:9
|
|
1208
|
+
* frame for it and billed it (2026-11-24). An off-ladder rung built a cost key
|
|
1209
|
+
* the registry lacks and failed as "Unknown model", or, on Seedream, quoted the
|
|
1210
|
+
* default rung's price for a rung generation then refused.
|
|
1211
|
+
*/
|
|
1212
|
+
export declare function assertImageCapabilities(input: {
|
|
1213
|
+
model: string;
|
|
1214
|
+
aspectRatio?: string;
|
|
1215
|
+
resolution?: string;
|
|
1216
|
+
}, field?: {
|
|
1217
|
+
resolution: string;
|
|
1218
|
+
}): Clarification | null;
|
|
1181
1219
|
export declare function imageCostKey(model: ImageModelId, resolution: '1k' | '2k' | '3k' | '4k', quality?: GptQualityId, aspectRatio?: string, referenceCount?: number): string;
|
|
1182
1220
|
export declare const generateImage: Operation<{
|
|
1183
1221
|
prompt: string;
|
|
@@ -1193,8 +1231,27 @@ export declare const generateImage: Operation<{
|
|
|
1193
1231
|
background?: boolean;
|
|
1194
1232
|
confirm?: boolean;
|
|
1195
1233
|
approvedCredits?: number;
|
|
1234
|
+
requestId?: string;
|
|
1196
1235
|
folderId?: string | null;
|
|
1197
1236
|
}>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Wait for a headless proxy job. The job is submitted and its credits held
|
|
1239
|
+
* before this runs, so every way out but `completed` and `failed` names the
|
|
1240
|
+
* job and tells the caller not to start another: a retry is a second paid job.
|
|
1241
|
+
* It used to swallow every poll error for five minutes and then throw a bare
|
|
1242
|
+
* timeout with no job id (2026-11-24).
|
|
1243
|
+
*/
|
|
1244
|
+
export declare function pollProxyJob(cloud: {
|
|
1245
|
+
get<T>(path: string): Promise<T>;
|
|
1246
|
+
}, jobId: string, options?: {
|
|
1247
|
+
intervalMs?: number;
|
|
1248
|
+
timeoutMs?: number;
|
|
1249
|
+
signal?: AbortSignal;
|
|
1250
|
+
}): Promise<{
|
|
1251
|
+
images?: Array<{
|
|
1252
|
+
url?: string;
|
|
1253
|
+
}>;
|
|
1254
|
+
}>;
|
|
1198
1255
|
export declare const editImage: Operation<{
|
|
1199
1256
|
projectId: string;
|
|
1200
1257
|
sourceAssetId: string;
|
|
@@ -1238,9 +1295,11 @@ export declare function videoCostKey(input: {
|
|
|
1238
1295
|
sound?: boolean;
|
|
1239
1296
|
seedanceFace?: boolean;
|
|
1240
1297
|
seedanceRealFace?: boolean;
|
|
1241
|
-
/**
|
|
1242
|
-
*
|
|
1243
|
-
*
|
|
1298
|
+
/** Each reference video's measured length. Seedance and Wan 3.0 bill the vref
|
|
1299
|
+
* key on `billed` (each clip rounded up) plus the output; H3 Max prices
|
|
1300
|
+
* `actual` seconds as tokens. The server re-derives both by probing. */
|
|
1301
|
+
videoReferenceSecondsEach?: readonly number[];
|
|
1302
|
+
/** DEPRECATED: one reference video's length, read as a single clip. */
|
|
1244
1303
|
videoRefSeconds?: number;
|
|
1245
1304
|
/** MiniMax H3 base only: how many reference IMAGES the request carries. Past
|
|
1246
1305
|
* the fifth, fal charges per image, so it is a KEY DIMENSION — omit it on a
|
|
@@ -1303,6 +1362,7 @@ export declare const generateVideo: Operation<{
|
|
|
1303
1362
|
negativePrompt?: string;
|
|
1304
1363
|
background?: boolean;
|
|
1305
1364
|
confirm?: boolean;
|
|
1365
|
+
approvedCredits?: number;
|
|
1306
1366
|
folderId?: string | null;
|
|
1307
1367
|
}>;
|
|
1308
1368
|
/**
|
|
@@ -1351,6 +1411,7 @@ export declare const generateLipSync: Operation<{
|
|
|
1351
1411
|
avatarModel?: 'avatar-standard' | 'avatar-pro';
|
|
1352
1412
|
background?: boolean;
|
|
1353
1413
|
confirm?: boolean;
|
|
1414
|
+
approvedCredits?: number;
|
|
1354
1415
|
}>;
|
|
1355
1416
|
export declare const generateMotionTransfer: Operation<{
|
|
1356
1417
|
projectId: string;
|
|
@@ -1361,6 +1422,7 @@ export declare const generateMotionTransfer: Operation<{
|
|
|
1361
1422
|
prompt?: string;
|
|
1362
1423
|
background?: boolean;
|
|
1363
1424
|
confirm?: boolean;
|
|
1425
|
+
approvedCredits?: number;
|
|
1364
1426
|
}>;
|
|
1365
1427
|
export declare const editVideo: Operation<{
|
|
1366
1428
|
projectId: string;
|
|
@@ -1521,9 +1583,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1521
1583
|
action: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "status", "cancel"]>>>;
|
|
1522
1584
|
}, "strict", z.ZodTypeAny, {
|
|
1523
1585
|
projectId: string;
|
|
1524
|
-
directory?: string | undefined;
|
|
1525
|
-
manifestId?: string | undefined;
|
|
1526
|
-
action?: "start" | "status" | "cancel" | undefined;
|
|
1527
1586
|
items?: ({
|
|
1528
1587
|
timelineId: string;
|
|
1529
1588
|
format: "mp4" | "xml";
|
|
@@ -1542,6 +1601,9 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1542
1601
|
lp?: string | undefined;
|
|
1543
1602
|
} | undefined;
|
|
1544
1603
|
})[] | undefined;
|
|
1604
|
+
action?: "status" | "cancel" | "start" | undefined;
|
|
1605
|
+
directory?: string | undefined;
|
|
1606
|
+
manifestId?: string | undefined;
|
|
1545
1607
|
version?: 2 | undefined;
|
|
1546
1608
|
batchId?: string | undefined;
|
|
1547
1609
|
exportRoot?: string | undefined;
|
|
@@ -1564,9 +1626,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1564
1626
|
}> | undefined;
|
|
1565
1627
|
}, {
|
|
1566
1628
|
projectId: string;
|
|
1567
|
-
directory?: string | undefined;
|
|
1568
|
-
manifestId?: string | undefined;
|
|
1569
|
-
action?: "start" | "status" | "cancel" | undefined;
|
|
1570
1629
|
items?: ({
|
|
1571
1630
|
timelineId: string;
|
|
1572
1631
|
format: "mp4" | "xml";
|
|
@@ -1585,6 +1644,9 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1585
1644
|
lp?: string | undefined;
|
|
1586
1645
|
} | undefined;
|
|
1587
1646
|
})[] | undefined;
|
|
1647
|
+
action?: "status" | "cancel" | "start" | undefined;
|
|
1648
|
+
directory?: string | undefined;
|
|
1649
|
+
manifestId?: string | undefined;
|
|
1588
1650
|
version?: 2 | undefined;
|
|
1589
1651
|
batchId?: string | undefined;
|
|
1590
1652
|
exportRoot?: string | undefined;
|
|
@@ -1607,9 +1669,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1607
1669
|
}> | undefined;
|
|
1608
1670
|
}>, {
|
|
1609
1671
|
projectId: string;
|
|
1610
|
-
directory?: string | undefined;
|
|
1611
|
-
manifestId?: string | undefined;
|
|
1612
|
-
action?: "start" | "status" | "cancel" | undefined;
|
|
1613
1672
|
items?: ({
|
|
1614
1673
|
timelineId: string;
|
|
1615
1674
|
format: "mp4" | "xml";
|
|
@@ -1628,6 +1687,9 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1628
1687
|
lp?: string | undefined;
|
|
1629
1688
|
} | undefined;
|
|
1630
1689
|
})[] | undefined;
|
|
1690
|
+
action?: "status" | "cancel" | "start" | undefined;
|
|
1691
|
+
directory?: string | undefined;
|
|
1692
|
+
manifestId?: string | undefined;
|
|
1631
1693
|
version?: 2 | undefined;
|
|
1632
1694
|
batchId?: string | undefined;
|
|
1633
1695
|
exportRoot?: string | undefined;
|
|
@@ -1650,9 +1712,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1650
1712
|
}> | undefined;
|
|
1651
1713
|
}, {
|
|
1652
1714
|
projectId: string;
|
|
1653
|
-
directory?: string | undefined;
|
|
1654
|
-
manifestId?: string | undefined;
|
|
1655
|
-
action?: "start" | "status" | "cancel" | undefined;
|
|
1656
1715
|
items?: ({
|
|
1657
1716
|
timelineId: string;
|
|
1658
1717
|
format: "mp4" | "xml";
|
|
@@ -1671,6 +1730,9 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
|
|
|
1671
1730
|
lp?: string | undefined;
|
|
1672
1731
|
} | undefined;
|
|
1673
1732
|
})[] | undefined;
|
|
1733
|
+
action?: "status" | "cancel" | "start" | undefined;
|
|
1734
|
+
directory?: string | undefined;
|
|
1735
|
+
manifestId?: string | undefined;
|
|
1674
1736
|
version?: 2 | undefined;
|
|
1675
1737
|
batchId?: string | undefined;
|
|
1676
1738
|
exportRoot?: string | undefined;
|
|
@@ -1749,26 +1811,26 @@ declare const variantSlotsInput: z.ZodObject<{
|
|
|
1749
1811
|
sequenceId: z.ZodOptional<z.ZodString>;
|
|
1750
1812
|
}, "strict", z.ZodTypeAny, {
|
|
1751
1813
|
projectId: string;
|
|
1752
|
-
action: "add" | "
|
|
1753
|
-
timelineId?: string | undefined;
|
|
1814
|
+
action: "add" | "remove" | "update" | "add-alternative" | "update-alternative" | "remove-alternative";
|
|
1754
1815
|
at?: number | undefined;
|
|
1816
|
+
name?: string | undefined;
|
|
1817
|
+
alternativeId?: string | undefined;
|
|
1818
|
+
timelineId?: string | undefined;
|
|
1755
1819
|
slotId?: string | undefined;
|
|
1756
1820
|
slotName?: string | undefined;
|
|
1757
|
-
alternativeId?: string | undefined;
|
|
1758
|
-
name?: string | undefined;
|
|
1759
1821
|
orderIndex?: number | undefined;
|
|
1760
1822
|
bedFrame?: number | null | undefined;
|
|
1761
1823
|
clipIds?: string[] | undefined;
|
|
1762
1824
|
sequenceId?: string | undefined;
|
|
1763
1825
|
}, {
|
|
1764
1826
|
projectId: string;
|
|
1765
|
-
action: "add" | "
|
|
1766
|
-
timelineId?: string | undefined;
|
|
1827
|
+
action: "add" | "remove" | "update" | "add-alternative" | "update-alternative" | "remove-alternative";
|
|
1767
1828
|
at?: number | undefined;
|
|
1829
|
+
name?: string | undefined;
|
|
1830
|
+
alternativeId?: string | undefined;
|
|
1831
|
+
timelineId?: string | undefined;
|
|
1768
1832
|
slotId?: string | undefined;
|
|
1769
1833
|
slotName?: string | undefined;
|
|
1770
|
-
alternativeId?: string | undefined;
|
|
1771
|
-
name?: string | undefined;
|
|
1772
1834
|
orderIndex?: number | undefined;
|
|
1773
1835
|
bedFrame?: number | null | undefined;
|
|
1774
1836
|
clipIds?: string[] | undefined;
|
|
@@ -1847,9 +1909,9 @@ declare const variantsInput: z.ZodObject<{
|
|
|
1847
1909
|
}>]>>>;
|
|
1848
1910
|
}, "strict", z.ZodTypeAny, {
|
|
1849
1911
|
projectId: string;
|
|
1850
|
-
action: "add" | "
|
|
1851
|
-
timelineId?: string | undefined;
|
|
1912
|
+
action: "add" | "remove" | "update" | "rebuild";
|
|
1852
1913
|
name?: string | undefined;
|
|
1914
|
+
timelineId?: string | undefined;
|
|
1853
1915
|
variantId?: string | undefined;
|
|
1854
1916
|
combinations?: boolean | undefined;
|
|
1855
1917
|
choices?: Record<string, string> | undefined;
|
|
@@ -1873,9 +1935,9 @@ declare const variantsInput: z.ZodObject<{
|
|
|
1873
1935
|
}[] | undefined;
|
|
1874
1936
|
}, {
|
|
1875
1937
|
projectId: string;
|
|
1876
|
-
action: "add" | "
|
|
1877
|
-
timelineId?: string | undefined;
|
|
1938
|
+
action: "add" | "remove" | "update" | "rebuild";
|
|
1878
1939
|
name?: string | undefined;
|
|
1940
|
+
timelineId?: string | undefined;
|
|
1879
1941
|
variantId?: string | undefined;
|
|
1880
1942
|
combinations?: boolean | undefined;
|
|
1881
1943
|
choices?: Record<string, string> | undefined;
|
|
@@ -1920,7 +1982,7 @@ declare const reframeReportInput: z.ZodObject<{
|
|
|
1920
1982
|
clipId?: string | undefined;
|
|
1921
1983
|
}>;
|
|
1922
1984
|
export declare const getReframeReport: Operation<z.infer<typeof reframeReportInput>>;
|
|
1923
|
-
declare const reframeClipInput: z.ZodObject<{
|
|
1985
|
+
declare const reframeClipInput: z.ZodEffects<z.ZodObject<{
|
|
1924
1986
|
projectId: z.ZodString;
|
|
1925
1987
|
timelineId: z.ZodString;
|
|
1926
1988
|
aspect: z.ZodString;
|
|
@@ -1952,8 +2014,8 @@ declare const reframeClipInput: z.ZodObject<{
|
|
|
1952
2014
|
}, "strict", z.ZodTypeAny, {
|
|
1953
2015
|
projectId: string;
|
|
1954
2016
|
timelineId: string;
|
|
1955
|
-
aspect: string;
|
|
1956
2017
|
clipId: string;
|
|
2018
|
+
aspect: string;
|
|
1957
2019
|
framing?: {
|
|
1958
2020
|
mode?: "fill" | "fit" | undefined;
|
|
1959
2021
|
focusX?: number | undefined;
|
|
@@ -1966,8 +2028,36 @@ declare const reframeClipInput: z.ZodObject<{
|
|
|
1966
2028
|
}, {
|
|
1967
2029
|
projectId: string;
|
|
1968
2030
|
timelineId: string;
|
|
2031
|
+
clipId: string;
|
|
1969
2032
|
aspect: string;
|
|
2033
|
+
framing?: {
|
|
2034
|
+
mode?: "fill" | "fit" | undefined;
|
|
2035
|
+
focusX?: number | undefined;
|
|
2036
|
+
focusY?: number | undefined;
|
|
2037
|
+
zoom?: number | undefined;
|
|
2038
|
+
} | null | undefined;
|
|
2039
|
+
follow?: "face" | "off" | {
|
|
2040
|
+
maskId: string;
|
|
2041
|
+
} | undefined;
|
|
2042
|
+
}>, {
|
|
2043
|
+
projectId: string;
|
|
2044
|
+
timelineId: string;
|
|
1970
2045
|
clipId: string;
|
|
2046
|
+
aspect: string;
|
|
2047
|
+
framing?: {
|
|
2048
|
+
mode?: "fill" | "fit" | undefined;
|
|
2049
|
+
focusX?: number | undefined;
|
|
2050
|
+
focusY?: number | undefined;
|
|
2051
|
+
zoom?: number | undefined;
|
|
2052
|
+
} | null | undefined;
|
|
2053
|
+
follow?: "face" | "off" | {
|
|
2054
|
+
maskId: string;
|
|
2055
|
+
} | undefined;
|
|
2056
|
+
}, {
|
|
2057
|
+
projectId: string;
|
|
2058
|
+
timelineId: string;
|
|
2059
|
+
clipId: string;
|
|
2060
|
+
aspect: string;
|
|
1971
2061
|
framing?: {
|
|
1972
2062
|
mode?: "fill" | "fit" | undefined;
|
|
1973
2063
|
focusX?: number | undefined;
|
|
@@ -2015,14 +2105,14 @@ declare const dialogueCleanupOptions: z.ZodObject<{
|
|
|
2015
2105
|
minPauseSec: z.ZodOptional<z.ZodNumber>;
|
|
2016
2106
|
keepAirSec: z.ZodOptional<z.ZodNumber>;
|
|
2017
2107
|
}, "strict", z.ZodTypeAny, {
|
|
2018
|
-
fillers?: boolean | undefined;
|
|
2019
2108
|
pauses?: boolean | undefined;
|
|
2109
|
+
fillers?: boolean | undefined;
|
|
2020
2110
|
repeats?: boolean | undefined;
|
|
2021
2111
|
minPauseSec?: number | undefined;
|
|
2022
2112
|
keepAirSec?: number | undefined;
|
|
2023
2113
|
}, {
|
|
2024
|
-
fillers?: boolean | undefined;
|
|
2025
2114
|
pauses?: boolean | undefined;
|
|
2115
|
+
fillers?: boolean | undefined;
|
|
2026
2116
|
repeats?: boolean | undefined;
|
|
2027
2117
|
minPauseSec?: number | undefined;
|
|
2028
2118
|
keepAirSec?: number | undefined;
|
|
@@ -2084,6 +2174,204 @@ export declare const resolveReviewNote: Operation<{
|
|
|
2084
2174
|
assetIds?: string[];
|
|
2085
2175
|
}>;
|
|
2086
2176
|
}>;
|
|
2177
|
+
type ClientAdReportInput = {
|
|
2178
|
+
platform: 'google' | 'tiktok';
|
|
2179
|
+
accountId?: string;
|
|
2180
|
+
managerId?: string;
|
|
2181
|
+
since?: string;
|
|
2182
|
+
until?: string;
|
|
2183
|
+
projectId?: string;
|
|
2184
|
+
};
|
|
2185
|
+
export declare const getClientAdReport: Operation<ClientAdReportInput>;
|
|
2186
|
+
export declare const getAdWinners: Operation<{
|
|
2187
|
+
projectId?: string;
|
|
2188
|
+
}>;
|
|
2189
|
+
export declare const setRecipeVerdict: Operation<{
|
|
2190
|
+
recipeId: string;
|
|
2191
|
+
projectId?: string | null;
|
|
2192
|
+
verdict: 'winner' | 'loser' | null;
|
|
2193
|
+
note?: string;
|
|
2194
|
+
}>;
|
|
2195
|
+
export declare const moreLikeThis: Operation<{
|
|
2196
|
+
exportRef: string;
|
|
2197
|
+
openHookSlot?: boolean;
|
|
2198
|
+
extraHookCount?: number;
|
|
2199
|
+
}>;
|
|
2200
|
+
declare const SPLIT_TEST_INPUT: z.ZodObject<{
|
|
2201
|
+
projectId: z.ZodString;
|
|
2202
|
+
accountId: z.ZodString;
|
|
2203
|
+
campaignName: z.ZodString;
|
|
2204
|
+
dailyBudgetMinor: z.ZodNumber;
|
|
2205
|
+
currency: z.ZodString;
|
|
2206
|
+
exportRefs: z.ZodArray<z.ZodString, "many">;
|
|
2207
|
+
country: z.ZodString;
|
|
2208
|
+
specialAdCategories: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
2209
|
+
pageId: z.ZodString;
|
|
2210
|
+
destinationUrl: z.ZodString;
|
|
2211
|
+
headline: z.ZodOptional<z.ZodString>;
|
|
2212
|
+
primaryText: z.ZodOptional<z.ZodString>;
|
|
2213
|
+
cta: z.ZodOptional<z.ZodString>;
|
|
2214
|
+
thresholdSpend: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2215
|
+
thresholdImpressions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2216
|
+
}, "strict", z.ZodTypeAny, {
|
|
2217
|
+
projectId: string;
|
|
2218
|
+
destinationUrl: string;
|
|
2219
|
+
accountId: string;
|
|
2220
|
+
campaignName: string;
|
|
2221
|
+
dailyBudgetMinor: number;
|
|
2222
|
+
currency: string;
|
|
2223
|
+
exportRefs: string[];
|
|
2224
|
+
country: string;
|
|
2225
|
+
specialAdCategories: string[] | null;
|
|
2226
|
+
pageId: string;
|
|
2227
|
+
primaryText?: string | undefined;
|
|
2228
|
+
headline?: string | undefined;
|
|
2229
|
+
cta?: string | undefined;
|
|
2230
|
+
thresholdSpend?: number | null | undefined;
|
|
2231
|
+
thresholdImpressions?: number | null | undefined;
|
|
2232
|
+
}, {
|
|
2233
|
+
projectId: string;
|
|
2234
|
+
destinationUrl: string;
|
|
2235
|
+
accountId: string;
|
|
2236
|
+
campaignName: string;
|
|
2237
|
+
dailyBudgetMinor: number;
|
|
2238
|
+
currency: string;
|
|
2239
|
+
exportRefs: string[];
|
|
2240
|
+
country: string;
|
|
2241
|
+
specialAdCategories: string[] | null;
|
|
2242
|
+
pageId: string;
|
|
2243
|
+
primaryText?: string | undefined;
|
|
2244
|
+
headline?: string | undefined;
|
|
2245
|
+
cta?: string | undefined;
|
|
2246
|
+
thresholdSpend?: number | null | undefined;
|
|
2247
|
+
thresholdImpressions?: number | null | undefined;
|
|
2248
|
+
}>;
|
|
2249
|
+
export declare const planSplitTest: Operation<z.infer<typeof SPLIT_TEST_INPUT>>;
|
|
2250
|
+
export declare const evaluateSplitTestWinner: Operation<{
|
|
2251
|
+
testId: string;
|
|
2252
|
+
thresholds?: {
|
|
2253
|
+
minSpend?: number | null;
|
|
2254
|
+
minImpressions?: number | null;
|
|
2255
|
+
};
|
|
2256
|
+
}>;
|
|
2257
|
+
export declare const visualQaSample: Operation<{
|
|
2258
|
+
projectId?: string;
|
|
2259
|
+
timelineId?: string;
|
|
2260
|
+
runId?: string;
|
|
2261
|
+
maxRounds?: number;
|
|
2262
|
+
budget?: number;
|
|
2263
|
+
}>;
|
|
2264
|
+
declare const VQA_DIMENSION: z.ZodEnum<["alignment", "legibility", "hierarchy", "pacing", "transitions", "motion", "restraint"]>;
|
|
2265
|
+
export declare const visualQaRecordRound: Operation<{
|
|
2266
|
+
runId: string;
|
|
2267
|
+
scores: Partial<Record<z.infer<typeof VQA_DIMENSION>, number>>;
|
|
2268
|
+
findings: Array<{
|
|
2269
|
+
sampleId: string;
|
|
2270
|
+
dimension: z.infer<typeof VQA_DIMENSION>;
|
|
2271
|
+
severity: 'blocker' | 'should-fix' | 'polish';
|
|
2272
|
+
diagnosis: string;
|
|
2273
|
+
exactFix: string;
|
|
2274
|
+
region?: {
|
|
2275
|
+
x: number;
|
|
2276
|
+
y: number;
|
|
2277
|
+
w: number;
|
|
2278
|
+
h: number;
|
|
2279
|
+
} | null;
|
|
2280
|
+
span?: {
|
|
2281
|
+
startSec: number;
|
|
2282
|
+
endSec: number;
|
|
2283
|
+
} | null;
|
|
2284
|
+
targetClipId?: string;
|
|
2285
|
+
targetTransitionId?: string;
|
|
2286
|
+
findingId?: string;
|
|
2287
|
+
}>;
|
|
2288
|
+
summary?: string;
|
|
2289
|
+
promoteToReview?: boolean;
|
|
2290
|
+
}>;
|
|
2291
|
+
export declare const listVisualQaRuns: Operation<{
|
|
2292
|
+
projectId?: string;
|
|
2293
|
+
timelineId?: string;
|
|
2294
|
+
runId?: string;
|
|
2295
|
+
}>;
|
|
2296
|
+
declare const V2V_KIND: z.ZodEnum<["swap-person", "change-angle", "change-location", "move-camera", "relight", "video-brush"]>;
|
|
2297
|
+
export declare const listV2vPasses: Operation<{
|
|
2298
|
+
projectId: string;
|
|
2299
|
+
timelineId: string;
|
|
2300
|
+
clipId?: string;
|
|
2301
|
+
}>;
|
|
2302
|
+
export declare const editV2vPass: Operation<{
|
|
2303
|
+
projectId: string;
|
|
2304
|
+
action: 'create' | 'update' | 'delete' | 'reorder';
|
|
2305
|
+
input?: {
|
|
2306
|
+
timelineId: string;
|
|
2307
|
+
clipId: string;
|
|
2308
|
+
kind: z.infer<typeof V2V_KIND>;
|
|
2309
|
+
label?: string;
|
|
2310
|
+
model?: string;
|
|
2311
|
+
prompt?: string;
|
|
2312
|
+
params?: Record<string, unknown>;
|
|
2313
|
+
referenceAssetIds?: string[];
|
|
2314
|
+
startFrame?: number;
|
|
2315
|
+
endFrame?: number;
|
|
2316
|
+
};
|
|
2317
|
+
passId?: string;
|
|
2318
|
+
patch?: {
|
|
2319
|
+
label?: string;
|
|
2320
|
+
enabled?: boolean;
|
|
2321
|
+
orderIndex?: number;
|
|
2322
|
+
model?: string;
|
|
2323
|
+
prompt?: string;
|
|
2324
|
+
params?: Record<string, unknown>;
|
|
2325
|
+
referenceAssetIds?: string[];
|
|
2326
|
+
startFrame?: number;
|
|
2327
|
+
endFrame?: number;
|
|
2328
|
+
};
|
|
2329
|
+
timelineId?: string;
|
|
2330
|
+
clipId?: string;
|
|
2331
|
+
orderedIds?: string[];
|
|
2332
|
+
}>;
|
|
2333
|
+
export declare const quoteV2vPasses: Operation<{
|
|
2334
|
+
projectId: string;
|
|
2335
|
+
passIds: string[];
|
|
2336
|
+
}>;
|
|
2337
|
+
export declare const runV2vPasses: Operation<{
|
|
2338
|
+
projectId: string;
|
|
2339
|
+
timelineId: string;
|
|
2340
|
+
passIds: string[];
|
|
2341
|
+
maxCredits: number;
|
|
2342
|
+
quoteFingerprint: string;
|
|
2343
|
+
requestId?: string;
|
|
2344
|
+
maxParallel?: number;
|
|
2345
|
+
}>;
|
|
2346
|
+
export declare const v2vPassesToVariants: Operation<{
|
|
2347
|
+
projectId: string;
|
|
2348
|
+
timelineId: string;
|
|
2349
|
+
passIds: string[];
|
|
2350
|
+
slotName?: string;
|
|
2351
|
+
}>;
|
|
2352
|
+
export declare const getDiagnosticsStatus: Operation<Record<string, never>>;
|
|
2353
|
+
export declare const findWinningAds: Operation<{
|
|
2354
|
+
query?: string;
|
|
2355
|
+
niche?: string;
|
|
2356
|
+
platform?: 'all' | 'meta' | 'google';
|
|
2357
|
+
minRunDays?: number;
|
|
2358
|
+
format?: 'all' | 'video' | 'image';
|
|
2359
|
+
activeOnly?: boolean;
|
|
2360
|
+
hasBreakdown?: boolean;
|
|
2361
|
+
sort?: 'run_length' | 'variations' | 'recent';
|
|
2362
|
+
limit?: number;
|
|
2363
|
+
offset?: number;
|
|
2364
|
+
}>;
|
|
2365
|
+
export declare const listWinningAdNiches: Operation<Record<string, never>>;
|
|
2366
|
+
export declare const breakDownWinningAd: Operation<{
|
|
2367
|
+
projectId?: string;
|
|
2368
|
+
adId: string;
|
|
2369
|
+
platform?: 'meta' | 'google';
|
|
2370
|
+
build?: boolean;
|
|
2371
|
+
name?: string;
|
|
2372
|
+
model?: string;
|
|
2373
|
+
jobId?: string;
|
|
2374
|
+
}>;
|
|
2087
2375
|
export declare const listTimelines: Operation<{
|
|
2088
2376
|
projectId: string;
|
|
2089
2377
|
}>;
|
|
@@ -2207,13 +2495,13 @@ declare const keyframeKeys: z.ZodArray<z.ZodObject<{
|
|
|
2207
2495
|
}, "strict", z.ZodTypeAny, {
|
|
2208
2496
|
value: number;
|
|
2209
2497
|
frame: number;
|
|
2210
|
-
easing?: "
|
|
2498
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2211
2499
|
cubicBezier: [number, number, number, number];
|
|
2212
2500
|
} | undefined;
|
|
2213
2501
|
}, {
|
|
2214
2502
|
value: number;
|
|
2215
2503
|
frame: number;
|
|
2216
|
-
easing?: "
|
|
2504
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2217
2505
|
cubicBezier: [number, number, number, number];
|
|
2218
2506
|
} | undefined;
|
|
2219
2507
|
}>, "many">;
|
|
@@ -2230,13 +2518,13 @@ declare const keyframeList: z.ZodArray<z.ZodObject<{
|
|
|
2230
2518
|
}, "strict", z.ZodTypeAny, {
|
|
2231
2519
|
value: number;
|
|
2232
2520
|
frame: number;
|
|
2233
|
-
easing?: "
|
|
2521
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2234
2522
|
cubicBezier: [number, number, number, number];
|
|
2235
2523
|
} | undefined;
|
|
2236
2524
|
}, {
|
|
2237
2525
|
value: number;
|
|
2238
2526
|
frame: number;
|
|
2239
|
-
easing?: "
|
|
2527
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2240
2528
|
cubicBezier: [number, number, number, number];
|
|
2241
2529
|
} | undefined;
|
|
2242
2530
|
}>, "many">;
|
|
@@ -2259,13 +2547,13 @@ declare const audioEffectList: z.ZodArray<z.ZodObject<{
|
|
|
2259
2547
|
}, "strict", z.ZodTypeAny, {
|
|
2260
2548
|
value: number;
|
|
2261
2549
|
frame: number;
|
|
2262
|
-
easing?: "
|
|
2550
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2263
2551
|
cubicBezier: [number, number, number, number];
|
|
2264
2552
|
} | undefined;
|
|
2265
2553
|
}, {
|
|
2266
2554
|
value: number;
|
|
2267
2555
|
frame: number;
|
|
2268
|
-
easing?: "
|
|
2556
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2269
2557
|
cubicBezier: [number, number, number, number];
|
|
2270
2558
|
} | undefined;
|
|
2271
2559
|
}>, "many">>>;
|
|
@@ -2290,102 +2578,102 @@ declare const audioEffectList: z.ZodArray<z.ZodObject<{
|
|
|
2290
2578
|
}, "strict", z.ZodTypeAny, {
|
|
2291
2579
|
value: number;
|
|
2292
2580
|
frame: number;
|
|
2293
|
-
easing?: "
|
|
2581
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2294
2582
|
cubicBezier: [number, number, number, number];
|
|
2295
2583
|
} | undefined;
|
|
2296
2584
|
}, {
|
|
2297
2585
|
value: number;
|
|
2298
2586
|
frame: number;
|
|
2299
|
-
easing?: "
|
|
2587
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2300
2588
|
cubicBezier: [number, number, number, number];
|
|
2301
2589
|
} | undefined;
|
|
2302
2590
|
}>, "many">>>;
|
|
2303
2591
|
}, "strict", z.ZodTypeAny, {
|
|
2304
2592
|
type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
|
|
2593
|
+
on?: boolean | undefined;
|
|
2594
|
+
band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
|
|
2595
|
+
frequency?: number | undefined;
|
|
2596
|
+
gain?: number | undefined;
|
|
2597
|
+
q?: number | undefined;
|
|
2598
|
+
slope?: number | undefined;
|
|
2305
2599
|
keyframes?: Record<string, {
|
|
2306
2600
|
value: number;
|
|
2307
2601
|
frame: number;
|
|
2308
|
-
easing?: "
|
|
2602
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2309
2603
|
cubicBezier: [number, number, number, number];
|
|
2310
2604
|
} | undefined;
|
|
2311
2605
|
}[]> | undefined;
|
|
2312
|
-
|
|
2606
|
+
}, {
|
|
2607
|
+
type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
|
|
2313
2608
|
on?: boolean | undefined;
|
|
2609
|
+
band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
|
|
2314
2610
|
frequency?: number | undefined;
|
|
2315
2611
|
gain?: number | undefined;
|
|
2316
2612
|
q?: number | undefined;
|
|
2317
2613
|
slope?: number | undefined;
|
|
2318
|
-
}, {
|
|
2319
|
-
type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
|
|
2320
2614
|
keyframes?: Record<string, {
|
|
2321
2615
|
value: number;
|
|
2322
2616
|
frame: number;
|
|
2323
|
-
easing?: "
|
|
2617
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2324
2618
|
cubicBezier: [number, number, number, number];
|
|
2325
2619
|
} | undefined;
|
|
2326
2620
|
}[]> | undefined;
|
|
2327
|
-
band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
|
|
2328
|
-
on?: boolean | undefined;
|
|
2329
|
-
frequency?: number | undefined;
|
|
2330
|
-
gain?: number | undefined;
|
|
2331
|
-
q?: number | undefined;
|
|
2332
|
-
slope?: number | undefined;
|
|
2333
2621
|
}>, "many">>;
|
|
2334
2622
|
}, "strict", z.ZodTypeAny, {
|
|
2335
2623
|
type: "volume" | "eq" | "denoise" | "voice_enhance";
|
|
2336
|
-
params?: Record<string, number> | undefined;
|
|
2337
2624
|
id?: string | undefined;
|
|
2338
|
-
|
|
2625
|
+
params?: Record<string, number> | undefined;
|
|
2339
2626
|
keyframes?: Record<string, {
|
|
2340
2627
|
value: number;
|
|
2341
2628
|
frame: number;
|
|
2342
|
-
easing?: "
|
|
2629
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2343
2630
|
cubicBezier: [number, number, number, number];
|
|
2344
2631
|
} | undefined;
|
|
2345
2632
|
}[]> | undefined;
|
|
2633
|
+
bypass?: boolean | undefined;
|
|
2346
2634
|
bands?: {
|
|
2347
2635
|
type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
|
|
2636
|
+
on?: boolean | undefined;
|
|
2637
|
+
band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
|
|
2638
|
+
frequency?: number | undefined;
|
|
2639
|
+
gain?: number | undefined;
|
|
2640
|
+
q?: number | undefined;
|
|
2641
|
+
slope?: number | undefined;
|
|
2348
2642
|
keyframes?: Record<string, {
|
|
2349
2643
|
value: number;
|
|
2350
2644
|
frame: number;
|
|
2351
|
-
easing?: "
|
|
2645
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2352
2646
|
cubicBezier: [number, number, number, number];
|
|
2353
2647
|
} | undefined;
|
|
2354
2648
|
}[]> | undefined;
|
|
2355
|
-
band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
|
|
2356
|
-
on?: boolean | undefined;
|
|
2357
|
-
frequency?: number | undefined;
|
|
2358
|
-
gain?: number | undefined;
|
|
2359
|
-
q?: number | undefined;
|
|
2360
|
-
slope?: number | undefined;
|
|
2361
2649
|
}[] | undefined;
|
|
2362
2650
|
}, {
|
|
2363
2651
|
type: "volume" | "eq" | "denoise" | "voice_enhance";
|
|
2364
|
-
params?: Record<string, number> | undefined;
|
|
2365
2652
|
id?: string | undefined;
|
|
2366
|
-
|
|
2653
|
+
params?: Record<string, number> | undefined;
|
|
2367
2654
|
keyframes?: Record<string, {
|
|
2368
2655
|
value: number;
|
|
2369
2656
|
frame: number;
|
|
2370
|
-
easing?: "
|
|
2657
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2371
2658
|
cubicBezier: [number, number, number, number];
|
|
2372
2659
|
} | undefined;
|
|
2373
2660
|
}[]> | undefined;
|
|
2661
|
+
bypass?: boolean | undefined;
|
|
2374
2662
|
bands?: {
|
|
2375
2663
|
type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
|
|
2664
|
+
on?: boolean | undefined;
|
|
2665
|
+
band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
|
|
2666
|
+
frequency?: number | undefined;
|
|
2667
|
+
gain?: number | undefined;
|
|
2668
|
+
q?: number | undefined;
|
|
2669
|
+
slope?: number | undefined;
|
|
2376
2670
|
keyframes?: Record<string, {
|
|
2377
2671
|
value: number;
|
|
2378
2672
|
frame: number;
|
|
2379
|
-
easing?: "
|
|
2673
|
+
easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
|
|
2380
2674
|
cubicBezier: [number, number, number, number];
|
|
2381
2675
|
} | undefined;
|
|
2382
2676
|
}[]> | undefined;
|
|
2383
|
-
band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
|
|
2384
|
-
on?: boolean | undefined;
|
|
2385
|
-
frequency?: number | undefined;
|
|
2386
|
-
gain?: number | undefined;
|
|
2387
|
-
q?: number | undefined;
|
|
2388
|
-
slope?: number | undefined;
|
|
2389
2677
|
}[] | undefined;
|
|
2390
2678
|
}>, "many">;
|
|
2391
2679
|
/** A clip's panel (slate's `src/shared/clipPanel.ts`): lengths in fractions of the frame's height. */
|
|
@@ -2400,56 +2688,56 @@ declare const clipPanel: z.ZodObject<{
|
|
|
2400
2688
|
}, "strict", z.ZodTypeAny, {
|
|
2401
2689
|
x?: number | undefined;
|
|
2402
2690
|
y?: number | undefined;
|
|
2403
|
-
color?: string | undefined;
|
|
2404
2691
|
blur?: number | undefined;
|
|
2405
2692
|
opacity?: number | undefined;
|
|
2693
|
+
color?: string | undefined;
|
|
2406
2694
|
}, {
|
|
2407
2695
|
x?: number | undefined;
|
|
2408
2696
|
y?: number | undefined;
|
|
2409
|
-
color?: string | undefined;
|
|
2410
2697
|
blur?: number | undefined;
|
|
2411
2698
|
opacity?: number | undefined;
|
|
2699
|
+
color?: string | undefined;
|
|
2412
2700
|
}>>;
|
|
2413
2701
|
border: z.ZodOptional<z.ZodObject<{
|
|
2414
2702
|
width: z.ZodOptional<z.ZodNumber>;
|
|
2415
2703
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
2416
2704
|
color: z.ZodOptional<z.ZodString>;
|
|
2417
2705
|
}, "strict", z.ZodTypeAny, {
|
|
2418
|
-
color?: string | undefined;
|
|
2419
|
-
opacity?: number | undefined;
|
|
2420
2706
|
width?: number | undefined;
|
|
2421
|
-
}, {
|
|
2422
|
-
color?: string | undefined;
|
|
2423
2707
|
opacity?: number | undefined;
|
|
2708
|
+
color?: string | undefined;
|
|
2709
|
+
}, {
|
|
2424
2710
|
width?: number | undefined;
|
|
2711
|
+
opacity?: number | undefined;
|
|
2712
|
+
color?: string | undefined;
|
|
2425
2713
|
}>>;
|
|
2426
2714
|
}, "strict", z.ZodTypeAny, {
|
|
2427
2715
|
radius?: number | undefined;
|
|
2428
2716
|
shadow?: {
|
|
2429
2717
|
x?: number | undefined;
|
|
2430
2718
|
y?: number | undefined;
|
|
2431
|
-
color?: string | undefined;
|
|
2432
2719
|
blur?: number | undefined;
|
|
2433
2720
|
opacity?: number | undefined;
|
|
2721
|
+
color?: string | undefined;
|
|
2434
2722
|
} | undefined;
|
|
2435
2723
|
border?: {
|
|
2436
|
-
color?: string | undefined;
|
|
2437
|
-
opacity?: number | undefined;
|
|
2438
2724
|
width?: number | undefined;
|
|
2725
|
+
opacity?: number | undefined;
|
|
2726
|
+
color?: string | undefined;
|
|
2439
2727
|
} | undefined;
|
|
2440
2728
|
}, {
|
|
2441
2729
|
radius?: number | undefined;
|
|
2442
2730
|
shadow?: {
|
|
2443
2731
|
x?: number | undefined;
|
|
2444
2732
|
y?: number | undefined;
|
|
2445
|
-
color?: string | undefined;
|
|
2446
2733
|
blur?: number | undefined;
|
|
2447
2734
|
opacity?: number | undefined;
|
|
2735
|
+
color?: string | undefined;
|
|
2448
2736
|
} | undefined;
|
|
2449
2737
|
border?: {
|
|
2450
|
-
color?: string | undefined;
|
|
2451
|
-
opacity?: number | undefined;
|
|
2452
2738
|
width?: number | undefined;
|
|
2739
|
+
opacity?: number | undefined;
|
|
2740
|
+
color?: string | undefined;
|
|
2453
2741
|
} | undefined;
|
|
2454
2742
|
}>;
|
|
2455
2743
|
declare const clipLookInput: z.ZodObject<{
|
|
@@ -2652,21 +2940,21 @@ declare const overlayWordsInput: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
|
2652
2940
|
start: z.ZodNumber;
|
|
2653
2941
|
end: z.ZodNumber;
|
|
2654
2942
|
}, "strict", z.ZodTypeAny, {
|
|
2943
|
+
text: string;
|
|
2655
2944
|
start: number;
|
|
2656
2945
|
end: number;
|
|
2657
|
-
text: string;
|
|
2658
2946
|
}, {
|
|
2947
|
+
text: string;
|
|
2659
2948
|
start: number;
|
|
2660
2949
|
end: number;
|
|
2661
|
-
text: string;
|
|
2662
2950
|
}>, {
|
|
2951
|
+
text: string;
|
|
2663
2952
|
start: number;
|
|
2664
2953
|
end: number;
|
|
2665
|
-
text: string;
|
|
2666
2954
|
}, {
|
|
2955
|
+
text: string;
|
|
2667
2956
|
start: number;
|
|
2668
2957
|
end: number;
|
|
2669
|
-
text: string;
|
|
2670
2958
|
}>, "many">;
|
|
2671
2959
|
export declare const addTextClip: Operation<{
|
|
2672
2960
|
projectId: string;
|
|
@@ -3091,6 +3379,7 @@ export declare const updateShot: Operation<ShotOpRefs & ShotOpScript & {
|
|
|
3091
3379
|
}>;
|
|
3092
3380
|
export declare const duplicateShot: Operation<{
|
|
3093
3381
|
shotId: string;
|
|
3382
|
+
projectId?: string;
|
|
3094
3383
|
name?: string;
|
|
3095
3384
|
prompt?: string;
|
|
3096
3385
|
model?: string;
|
|
@@ -3104,6 +3393,7 @@ export declare const listShots: Operation<{
|
|
|
3104
3393
|
}>;
|
|
3105
3394
|
export declare const getShot: Operation<{
|
|
3106
3395
|
shotId: string;
|
|
3396
|
+
projectId?: string;
|
|
3107
3397
|
}>;
|
|
3108
3398
|
/**
|
|
3109
3399
|
* The Board's "Use pictures as first frames": each video Shot with a picture and no first frame starts its
|
|
@@ -3131,6 +3421,7 @@ export declare const usePicturesAsFirstFrames: Operation<{
|
|
|
3131
3421
|
*/
|
|
3132
3422
|
export declare const splitShot: Operation<{
|
|
3133
3423
|
shotId: string;
|
|
3424
|
+
projectId?: string;
|
|
3134
3425
|
caret?: number;
|
|
3135
3426
|
}>;
|
|
3136
3427
|
export declare const splitTake: Operation<{
|
|
@@ -3148,6 +3439,7 @@ export declare const refileTake: Operation<{
|
|
|
3148
3439
|
export declare const mergeShots: Operation<{
|
|
3149
3440
|
firstId: string;
|
|
3150
3441
|
secondId: string;
|
|
3442
|
+
projectId?: string;
|
|
3151
3443
|
}>;
|
|
3152
3444
|
export declare const getScript: Operation<{
|
|
3153
3445
|
sceneId: string;
|
|
@@ -3160,34 +3452,34 @@ declare const variationSchema: z.ZodObject<{
|
|
|
3160
3452
|
sectionId: z.ZodString;
|
|
3161
3453
|
alternativeId: z.ZodString;
|
|
3162
3454
|
}, "strip", z.ZodTypeAny, {
|
|
3163
|
-
alternativeId: string;
|
|
3164
3455
|
sectionId: string;
|
|
3165
|
-
}, {
|
|
3166
3456
|
alternativeId: string;
|
|
3457
|
+
}, {
|
|
3167
3458
|
sectionId: string;
|
|
3459
|
+
alternativeId: string;
|
|
3168
3460
|
}>, "many">;
|
|
3169
3461
|
arrangement: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3170
3462
|
sectionId: z.ZodString;
|
|
3171
3463
|
alternativeId: z.ZodString;
|
|
3172
3464
|
}, "strip", z.ZodTypeAny, {
|
|
3173
|
-
alternativeId: string;
|
|
3174
3465
|
sectionId: string;
|
|
3175
|
-
}, {
|
|
3176
3466
|
alternativeId: string;
|
|
3467
|
+
}, {
|
|
3177
3468
|
sectionId: string;
|
|
3469
|
+
alternativeId: string;
|
|
3178
3470
|
}>, "many">>;
|
|
3179
3471
|
itemOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3180
3472
|
from: z.ZodString;
|
|
3181
3473
|
to: z.ZodString;
|
|
3182
3474
|
voice: z.ZodEnum<["keep", "replace"]>;
|
|
3183
3475
|
}, "strip", z.ZodTypeAny, {
|
|
3476
|
+
voice: "replace" | "keep";
|
|
3184
3477
|
from: string;
|
|
3185
3478
|
to: string;
|
|
3186
|
-
voice: "keep" | "replace";
|
|
3187
3479
|
}, {
|
|
3480
|
+
voice: "replace" | "keep";
|
|
3188
3481
|
from: string;
|
|
3189
3482
|
to: string;
|
|
3190
|
-
voice: "keep" | "replace";
|
|
3191
3483
|
}>, "many">>;
|
|
3192
3484
|
assetOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3193
3485
|
from: z.ZodString;
|
|
@@ -3202,20 +3494,20 @@ declare const variationSchema: z.ZodObject<{
|
|
|
3202
3494
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
3203
3495
|
}, "strip", z.ZodTypeAny, {
|
|
3204
3496
|
name: string;
|
|
3497
|
+
storyboardId: string;
|
|
3205
3498
|
choices: {
|
|
3206
|
-
alternativeId: string;
|
|
3207
3499
|
sectionId: string;
|
|
3500
|
+
alternativeId: string;
|
|
3208
3501
|
}[];
|
|
3209
|
-
storyboardId: string;
|
|
3210
3502
|
expectedRevision: number;
|
|
3211
3503
|
arrangement?: {
|
|
3212
|
-
alternativeId: string;
|
|
3213
3504
|
sectionId: string;
|
|
3505
|
+
alternativeId: string;
|
|
3214
3506
|
}[] | undefined;
|
|
3215
3507
|
itemOverrides?: {
|
|
3508
|
+
voice: "replace" | "keep";
|
|
3216
3509
|
from: string;
|
|
3217
3510
|
to: string;
|
|
3218
|
-
voice: "keep" | "replace";
|
|
3219
3511
|
}[] | undefined;
|
|
3220
3512
|
assetOverrides?: {
|
|
3221
3513
|
from: string;
|
|
@@ -3224,20 +3516,20 @@ declare const variationSchema: z.ZodObject<{
|
|
|
3224
3516
|
idempotencyKey?: string | undefined;
|
|
3225
3517
|
}, {
|
|
3226
3518
|
name: string;
|
|
3519
|
+
storyboardId: string;
|
|
3227
3520
|
choices: {
|
|
3228
|
-
alternativeId: string;
|
|
3229
3521
|
sectionId: string;
|
|
3522
|
+
alternativeId: string;
|
|
3230
3523
|
}[];
|
|
3231
|
-
storyboardId: string;
|
|
3232
3524
|
expectedRevision: number;
|
|
3233
3525
|
arrangement?: {
|
|
3234
|
-
alternativeId: string;
|
|
3235
3526
|
sectionId: string;
|
|
3527
|
+
alternativeId: string;
|
|
3236
3528
|
}[] | undefined;
|
|
3237
3529
|
itemOverrides?: {
|
|
3530
|
+
voice: "replace" | "keep";
|
|
3238
3531
|
from: string;
|
|
3239
3532
|
to: string;
|
|
3240
|
-
voice: "keep" | "replace";
|
|
3241
3533
|
}[] | undefined;
|
|
3242
3534
|
assetOverrides?: {
|
|
3243
3535
|
from: string;
|
|
@@ -3277,80 +3569,80 @@ declare const sectionInput: z.ZodObject<{
|
|
|
3277
3569
|
expectedRevision: z.ZodNumber;
|
|
3278
3570
|
}, "strip", z.ZodTypeAny, {
|
|
3279
3571
|
at: number;
|
|
3280
|
-
expectedRevision: number;
|
|
3281
3572
|
sceneId: string;
|
|
3573
|
+
expectedRevision: number;
|
|
3282
3574
|
}, {
|
|
3283
3575
|
at: number;
|
|
3284
|
-
expectedRevision: number;
|
|
3285
3576
|
sceneId: string;
|
|
3577
|
+
expectedRevision: number;
|
|
3286
3578
|
}>>;
|
|
3287
3579
|
uses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3288
3580
|
sectionId: z.ZodString;
|
|
3289
3581
|
expectedRevision: z.ZodNumber;
|
|
3290
3582
|
}, "strip", z.ZodTypeAny, {
|
|
3291
|
-
expectedRevision: number;
|
|
3292
3583
|
sectionId: string;
|
|
3293
|
-
}, {
|
|
3294
3584
|
expectedRevision: number;
|
|
3585
|
+
}, {
|
|
3295
3586
|
sectionId: string;
|
|
3587
|
+
expectedRevision: number;
|
|
3296
3588
|
}>, "many">>;
|
|
3297
3589
|
fragments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3298
3590
|
sceneId: z.ZodString;
|
|
3299
3591
|
start: z.ZodNumber;
|
|
3300
3592
|
end: z.ZodNumber;
|
|
3301
3593
|
}, "strip", z.ZodTypeAny, {
|
|
3302
|
-
start: number;
|
|
3303
3594
|
sceneId: string;
|
|
3595
|
+
start: number;
|
|
3304
3596
|
end: number;
|
|
3305
3597
|
}, {
|
|
3306
|
-
start: number;
|
|
3307
3598
|
sceneId: string;
|
|
3599
|
+
start: number;
|
|
3308
3600
|
end: number;
|
|
3309
3601
|
}>, "many">>;
|
|
3310
3602
|
}, "strip", z.ZodTypeAny, {
|
|
3311
|
-
action: "
|
|
3603
|
+
action: "tags" | "create" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
|
|
3312
3604
|
storyboardId: string;
|
|
3313
3605
|
expectedRevision: number;
|
|
3314
|
-
alternativeId?: string | undefined;
|
|
3315
|
-
sectionId?: string | undefined;
|
|
3316
|
-
tags?: string[] | undefined;
|
|
3317
|
-
parentId?: string | undefined;
|
|
3318
|
-
label?: string | undefined;
|
|
3319
3606
|
target?: {
|
|
3320
3607
|
at: number;
|
|
3321
|
-
expectedRevision: number;
|
|
3322
3608
|
sceneId: string;
|
|
3609
|
+
expectedRevision: number;
|
|
3323
3610
|
} | undefined;
|
|
3611
|
+
label?: string | undefined;
|
|
3612
|
+
sectionId?: string | undefined;
|
|
3613
|
+
alternativeId?: string | undefined;
|
|
3614
|
+
tags?: string[] | undefined;
|
|
3615
|
+
parentId?: string | undefined;
|
|
3324
3616
|
uses?: {
|
|
3325
|
-
expectedRevision: number;
|
|
3326
3617
|
sectionId: string;
|
|
3618
|
+
expectedRevision: number;
|
|
3327
3619
|
}[] | undefined;
|
|
3328
3620
|
fragments?: {
|
|
3329
|
-
start: number;
|
|
3330
3621
|
sceneId: string;
|
|
3622
|
+
start: number;
|
|
3331
3623
|
end: number;
|
|
3332
3624
|
}[] | undefined;
|
|
3333
3625
|
}, {
|
|
3334
|
-
action: "
|
|
3626
|
+
action: "tags" | "create" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
|
|
3335
3627
|
storyboardId: string;
|
|
3336
3628
|
expectedRevision: number;
|
|
3337
|
-
alternativeId?: string | undefined;
|
|
3338
|
-
sectionId?: string | undefined;
|
|
3339
|
-
tags?: string[] | undefined;
|
|
3340
|
-
parentId?: string | undefined;
|
|
3341
|
-
label?: string | undefined;
|
|
3342
3629
|
target?: {
|
|
3343
3630
|
at: number;
|
|
3344
|
-
expectedRevision: number;
|
|
3345
3631
|
sceneId: string;
|
|
3632
|
+
expectedRevision: number;
|
|
3346
3633
|
} | undefined;
|
|
3634
|
+
label?: string | undefined;
|
|
3635
|
+
sectionId?: string | undefined;
|
|
3636
|
+
alternativeId?: string | undefined;
|
|
3637
|
+
tags?: string[] | undefined;
|
|
3638
|
+
parentId?: string | undefined;
|
|
3347
3639
|
uses?: {
|
|
3348
|
-
expectedRevision: number;
|
|
3349
3640
|
sectionId: string;
|
|
3641
|
+
expectedRevision: number;
|
|
3350
3642
|
}[] | undefined;
|
|
3351
3643
|
fragments?: {
|
|
3352
|
-
start: number;
|
|
3353
3644
|
sceneId: string;
|
|
3645
|
+
start: number;
|
|
3354
3646
|
end: number;
|
|
3355
3647
|
}[] | undefined;
|
|
3356
3648
|
}>;
|
|
@@ -3370,15 +3662,15 @@ declare const suggestionInput: z.ZodObject<{
|
|
|
3370
3662
|
replacement: z.ZodString;
|
|
3371
3663
|
note: z.ZodOptional<z.ZodString>;
|
|
3372
3664
|
}, "strip", z.ZodTypeAny, {
|
|
3373
|
-
start: number;
|
|
3374
3665
|
sceneId: string;
|
|
3666
|
+
start: number;
|
|
3375
3667
|
end: number;
|
|
3376
3668
|
original: string;
|
|
3377
3669
|
replacement: string;
|
|
3378
3670
|
note?: string | undefined;
|
|
3379
3671
|
}, {
|
|
3380
|
-
start: number;
|
|
3381
3672
|
sceneId: string;
|
|
3673
|
+
start: number;
|
|
3382
3674
|
end: number;
|
|
3383
3675
|
original: string;
|
|
3384
3676
|
replacement: string;
|
|
@@ -3390,8 +3682,8 @@ declare const suggestionInput: z.ZodObject<{
|
|
|
3390
3682
|
storyboardId: string;
|
|
3391
3683
|
expectedRevision: number;
|
|
3392
3684
|
suggestions?: {
|
|
3393
|
-
start: number;
|
|
3394
3685
|
sceneId: string;
|
|
3686
|
+
start: number;
|
|
3395
3687
|
end: number;
|
|
3396
3688
|
original: string;
|
|
3397
3689
|
replacement: string;
|
|
@@ -3403,8 +3695,8 @@ declare const suggestionInput: z.ZodObject<{
|
|
|
3403
3695
|
storyboardId: string;
|
|
3404
3696
|
expectedRevision: number;
|
|
3405
3697
|
suggestions?: {
|
|
3406
|
-
start: number;
|
|
3407
3698
|
sceneId: string;
|
|
3699
|
+
start: number;
|
|
3408
3700
|
end: number;
|
|
3409
3701
|
original: string;
|
|
3410
3702
|
replacement: string;
|
|
@@ -3426,14 +3718,14 @@ declare const writeScriptDocumentInput: z.ZodObject<{
|
|
|
3426
3718
|
text: z.ZodString;
|
|
3427
3719
|
}, "strip", z.ZodTypeAny, {
|
|
3428
3720
|
at: number;
|
|
3721
|
+
text: string;
|
|
3429
3722
|
sceneId: string;
|
|
3430
3723
|
removed: number;
|
|
3431
|
-
text: string;
|
|
3432
3724
|
}, {
|
|
3433
3725
|
at: number;
|
|
3726
|
+
text: string;
|
|
3434
3727
|
sceneId: string;
|
|
3435
3728
|
removed: number;
|
|
3436
|
-
text: string;
|
|
3437
3729
|
}>, "many">;
|
|
3438
3730
|
structures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3439
3731
|
sceneId: z.ZodString;
|
|
@@ -3449,68 +3741,68 @@ declare const writeScriptDocumentInput: z.ZodObject<{
|
|
|
3449
3741
|
end: z.ZodNumber;
|
|
3450
3742
|
type: z.ZodEnum<["strong", "em"]>;
|
|
3451
3743
|
}, "strip", z.ZodTypeAny, {
|
|
3452
|
-
start: number;
|
|
3453
3744
|
type: "strong" | "em";
|
|
3745
|
+
start: number;
|
|
3454
3746
|
end: number;
|
|
3455
3747
|
}, {
|
|
3456
|
-
start: number;
|
|
3457
3748
|
type: "strong" | "em";
|
|
3749
|
+
start: number;
|
|
3458
3750
|
end: number;
|
|
3459
3751
|
}>, "many">;
|
|
3460
3752
|
}, "strip", z.ZodTypeAny, {
|
|
3753
|
+
id: string;
|
|
3754
|
+
kind: "direction" | "paragraph" | "heading";
|
|
3461
3755
|
start: number;
|
|
3462
|
-
kind: "paragraph" | "heading" | "direction";
|
|
3463
3756
|
end: number;
|
|
3464
|
-
id: string;
|
|
3465
3757
|
marks: {
|
|
3466
|
-
start: number;
|
|
3467
3758
|
type: "strong" | "em";
|
|
3759
|
+
start: number;
|
|
3468
3760
|
end: number;
|
|
3469
3761
|
}[];
|
|
3762
|
+
level?: 2 | 3 | undefined;
|
|
3470
3763
|
label?: string | undefined;
|
|
3471
|
-
level?: 3 | 2 | undefined;
|
|
3472
3764
|
}, {
|
|
3765
|
+
id: string;
|
|
3766
|
+
kind: "direction" | "paragraph" | "heading";
|
|
3473
3767
|
start: number;
|
|
3474
|
-
kind: "paragraph" | "heading" | "direction";
|
|
3475
3768
|
end: number;
|
|
3476
|
-
id: string;
|
|
3477
3769
|
marks: {
|
|
3478
|
-
start: number;
|
|
3479
3770
|
type: "strong" | "em";
|
|
3771
|
+
start: number;
|
|
3480
3772
|
end: number;
|
|
3481
3773
|
}[];
|
|
3774
|
+
level?: 2 | 3 | undefined;
|
|
3482
3775
|
label?: string | undefined;
|
|
3483
|
-
level?: 3 | 2 | undefined;
|
|
3484
3776
|
}>, "many">;
|
|
3485
3777
|
}, "strip", z.ZodTypeAny, {
|
|
3486
3778
|
sceneId: string;
|
|
3487
3779
|
blocks: {
|
|
3780
|
+
id: string;
|
|
3781
|
+
kind: "direction" | "paragraph" | "heading";
|
|
3488
3782
|
start: number;
|
|
3489
|
-
kind: "paragraph" | "heading" | "direction";
|
|
3490
3783
|
end: number;
|
|
3491
|
-
id: string;
|
|
3492
3784
|
marks: {
|
|
3493
|
-
start: number;
|
|
3494
3785
|
type: "strong" | "em";
|
|
3786
|
+
start: number;
|
|
3495
3787
|
end: number;
|
|
3496
3788
|
}[];
|
|
3789
|
+
level?: 2 | 3 | undefined;
|
|
3497
3790
|
label?: string | undefined;
|
|
3498
|
-
level?: 3 | 2 | undefined;
|
|
3499
3791
|
}[];
|
|
3500
3792
|
}, {
|
|
3501
3793
|
sceneId: string;
|
|
3502
3794
|
blocks: {
|
|
3795
|
+
id: string;
|
|
3796
|
+
kind: "direction" | "paragraph" | "heading";
|
|
3503
3797
|
start: number;
|
|
3504
|
-
kind: "paragraph" | "heading" | "direction";
|
|
3505
3798
|
end: number;
|
|
3506
|
-
id: string;
|
|
3507
3799
|
marks: {
|
|
3508
|
-
start: number;
|
|
3509
3800
|
type: "strong" | "em";
|
|
3801
|
+
start: number;
|
|
3510
3802
|
end: number;
|
|
3511
3803
|
}[];
|
|
3804
|
+
level?: 2 | 3 | undefined;
|
|
3512
3805
|
label?: string | undefined;
|
|
3513
|
-
level?: 3 | 2 | undefined;
|
|
3514
3806
|
}[];
|
|
3515
3807
|
}>, "many">>;
|
|
3516
3808
|
move: z.ZodOptional<z.ZodObject<{
|
|
@@ -3532,13 +3824,13 @@ declare const writeScriptDocumentInput: z.ZodObject<{
|
|
|
3532
3824
|
end: z.ZodNumber;
|
|
3533
3825
|
waitingShotId: z.ZodOptional<z.ZodString>;
|
|
3534
3826
|
}, "strip", z.ZodTypeAny, {
|
|
3535
|
-
start: number;
|
|
3536
3827
|
sceneId: string;
|
|
3828
|
+
start: number;
|
|
3537
3829
|
end: number;
|
|
3538
3830
|
waitingShotId?: string | undefined;
|
|
3539
3831
|
}, {
|
|
3540
|
-
start: number;
|
|
3541
3832
|
sceneId: string;
|
|
3833
|
+
start: number;
|
|
3542
3834
|
end: number;
|
|
3543
3835
|
waitingShotId?: string | undefined;
|
|
3544
3836
|
}>, "many">>;
|
|
@@ -3567,38 +3859,38 @@ declare const writeScriptDocumentInput: z.ZodObject<{
|
|
|
3567
3859
|
sceneId: string;
|
|
3568
3860
|
}>]>>;
|
|
3569
3861
|
}, "strip", z.ZodTypeAny, {
|
|
3570
|
-
storyboardId: string;
|
|
3571
|
-
expectedRevision: number;
|
|
3572
3862
|
edits: {
|
|
3573
3863
|
at: number;
|
|
3864
|
+
text: string;
|
|
3574
3865
|
sceneId: string;
|
|
3575
3866
|
removed: number;
|
|
3576
|
-
text: string;
|
|
3577
3867
|
}[];
|
|
3868
|
+
storyboardId: string;
|
|
3869
|
+
expectedRevision: number;
|
|
3870
|
+
move?: {
|
|
3871
|
+
sceneId: string;
|
|
3872
|
+
blockId: string;
|
|
3873
|
+
delta: 1 | -1;
|
|
3874
|
+
} | undefined;
|
|
3578
3875
|
structures?: {
|
|
3579
3876
|
sceneId: string;
|
|
3580
3877
|
blocks: {
|
|
3878
|
+
id: string;
|
|
3879
|
+
kind: "direction" | "paragraph" | "heading";
|
|
3581
3880
|
start: number;
|
|
3582
|
-
kind: "paragraph" | "heading" | "direction";
|
|
3583
3881
|
end: number;
|
|
3584
|
-
id: string;
|
|
3585
3882
|
marks: {
|
|
3586
|
-
start: number;
|
|
3587
3883
|
type: "strong" | "em";
|
|
3884
|
+
start: number;
|
|
3588
3885
|
end: number;
|
|
3589
3886
|
}[];
|
|
3887
|
+
level?: 2 | 3 | undefined;
|
|
3590
3888
|
label?: string | undefined;
|
|
3591
|
-
level?: 3 | 2 | undefined;
|
|
3592
3889
|
}[];
|
|
3593
3890
|
}[] | undefined;
|
|
3594
|
-
move?: {
|
|
3595
|
-
sceneId: string;
|
|
3596
|
-
blockId: string;
|
|
3597
|
-
delta: 1 | -1;
|
|
3598
|
-
} | undefined;
|
|
3599
3891
|
makeShots?: {
|
|
3600
|
-
start: number;
|
|
3601
3892
|
sceneId: string;
|
|
3893
|
+
start: number;
|
|
3602
3894
|
end: number;
|
|
3603
3895
|
waitingShotId?: string | undefined;
|
|
3604
3896
|
}[] | undefined;
|
|
@@ -3613,38 +3905,38 @@ declare const writeScriptDocumentInput: z.ZodObject<{
|
|
|
3613
3905
|
sceneId: string;
|
|
3614
3906
|
} | undefined;
|
|
3615
3907
|
}, {
|
|
3616
|
-
storyboardId: string;
|
|
3617
|
-
expectedRevision: number;
|
|
3618
3908
|
edits: {
|
|
3619
3909
|
at: number;
|
|
3910
|
+
text: string;
|
|
3620
3911
|
sceneId: string;
|
|
3621
3912
|
removed: number;
|
|
3622
|
-
text: string;
|
|
3623
3913
|
}[];
|
|
3914
|
+
storyboardId: string;
|
|
3915
|
+
expectedRevision: number;
|
|
3916
|
+
move?: {
|
|
3917
|
+
sceneId: string;
|
|
3918
|
+
blockId: string;
|
|
3919
|
+
delta: 1 | -1;
|
|
3920
|
+
} | undefined;
|
|
3624
3921
|
structures?: {
|
|
3625
3922
|
sceneId: string;
|
|
3626
3923
|
blocks: {
|
|
3924
|
+
id: string;
|
|
3925
|
+
kind: "direction" | "paragraph" | "heading";
|
|
3627
3926
|
start: number;
|
|
3628
|
-
kind: "paragraph" | "heading" | "direction";
|
|
3629
3927
|
end: number;
|
|
3630
|
-
id: string;
|
|
3631
3928
|
marks: {
|
|
3632
|
-
start: number;
|
|
3633
3929
|
type: "strong" | "em";
|
|
3930
|
+
start: number;
|
|
3634
3931
|
end: number;
|
|
3635
3932
|
}[];
|
|
3933
|
+
level?: 2 | 3 | undefined;
|
|
3636
3934
|
label?: string | undefined;
|
|
3637
|
-
level?: 3 | 2 | undefined;
|
|
3638
3935
|
}[];
|
|
3639
3936
|
}[] | undefined;
|
|
3640
|
-
move?: {
|
|
3641
|
-
sceneId: string;
|
|
3642
|
-
blockId: string;
|
|
3643
|
-
delta: 1 | -1;
|
|
3644
|
-
} | undefined;
|
|
3645
3937
|
makeShots?: {
|
|
3646
|
-
start: number;
|
|
3647
3938
|
sceneId: string;
|
|
3939
|
+
start: number;
|
|
3648
3940
|
end: number;
|
|
3649
3941
|
waitingShotId?: string | undefined;
|
|
3650
3942
|
}[] | undefined;
|
|
@@ -3696,6 +3988,7 @@ export declare const pasteScript: Operation<{
|
|
|
3696
3988
|
}>;
|
|
3697
3989
|
export declare const generateFromShots: Operation<{
|
|
3698
3990
|
shotIds: string[];
|
|
3991
|
+
projectId?: string;
|
|
3699
3992
|
confirm?: boolean;
|
|
3700
3993
|
fingerprint?: string;
|
|
3701
3994
|
draft?: {
|
|
@@ -3738,14 +4031,14 @@ declare const paidDraftFinishInput: z.ZodObject<{
|
|
|
3738
4031
|
}, "strip", z.ZodTypeAny, {
|
|
3739
4032
|
projectId: string;
|
|
3740
4033
|
assetId: string;
|
|
3741
|
-
resolution: "4k" | "1080p";
|
|
3742
4034
|
confirm: true;
|
|
4035
|
+
resolution: "4k" | "1080p";
|
|
3743
4036
|
maxCredits: number;
|
|
3744
4037
|
}, {
|
|
3745
4038
|
projectId: string;
|
|
3746
4039
|
assetId: string;
|
|
3747
|
-
resolution: "4k" | "1080p";
|
|
3748
4040
|
confirm: true;
|
|
4041
|
+
resolution: "4k" | "1080p";
|
|
3749
4042
|
maxCredits: number;
|
|
3750
4043
|
}>;
|
|
3751
4044
|
export declare const quoteDraftFinish: Operation<z.infer<typeof draftFinishInput>>;
|