@slatesvideo/shared 0.7.21 → 0.7.23

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.
@@ -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
- rowKeys: string[];
214
226
  aspects: string[];
215
- }, {
216
227
  rowKeys: string[];
228
+ }, {
217
229
  aspects: string[];
230
+ rowKeys: 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?: 30 | 24 | 60 | null | undefined;
241
+ fps?: 24 | 30 | 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?: 30 | 24 | 60 | null | undefined;
246
+ fps?: 24 | 30 | 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?: 30 | 24 | 60 | null | undefined;
262
+ fps?: 24 | 30 | 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?: 30 | 24 | 60 | null | undefined;
267
+ fps?: 24 | 30 | 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?: 30 | 24 | 60 | null | undefined;
278
+ fps?: 24 | 30 | 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?: 30 | 24 | 60 | null | undefined;
289
+ fps?: 24 | 30 | 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;
333
+ alternativeId?: string | undefined;
334
+ sectionId?: string | undefined;
320
335
  label?: string | undefined;
321
336
  choicePosition?: number | undefined;
322
- sectionId?: string | undefined;
323
- alternativeId?: string | undefined;
324
337
  shotIds?: string[] | undefined;
325
338
  }, {
326
339
  key: string;
340
+ alternativeId?: string | undefined;
341
+ sectionId?: string | undefined;
327
342
  label?: string | undefined;
328
343
  choicePosition?: number | undefined;
329
- sectionId?: string | undefined;
330
- 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;
355
+ alternativeId?: string | undefined;
356
+ sectionId?: string | undefined;
342
357
  label?: string | undefined;
343
358
  choicePosition?: number | undefined;
344
- sectionId?: string | undefined;
345
- alternativeId?: string | undefined;
346
359
  shotIds?: string[] | undefined;
347
360
  }, {
348
361
  key: string;
362
+ alternativeId?: string | undefined;
363
+ sectionId?: string | undefined;
349
364
  label?: string | undefined;
350
365
  choicePosition?: number | undefined;
351
- sectionId?: string | undefined;
352
- 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;
377
+ alternativeId?: string | undefined;
378
+ sectionId?: string | undefined;
364
379
  label?: string | undefined;
365
380
  choicePosition?: number | undefined;
366
- sectionId?: string | undefined;
367
- alternativeId?: string | undefined;
368
381
  shotIds?: string[] | undefined;
369
382
  }, {
370
383
  key: string;
384
+ alternativeId?: string | undefined;
385
+ sectionId?: string | undefined;
371
386
  label?: string | undefined;
372
387
  choicePosition?: number | undefined;
373
- sectionId?: string | undefined;
374
- alternativeId?: string | undefined;
375
388
  shotIds?: string[] | undefined;
376
389
  }>>;
377
390
  }, "strict", z.ZodTypeAny, {
378
391
  hook?: {
379
392
  key: string;
393
+ alternativeId?: string | undefined;
394
+ sectionId?: string | undefined;
380
395
  label?: string | undefined;
381
396
  choicePosition?: number | undefined;
382
- sectionId?: string | undefined;
383
- alternativeId?: string | undefined;
384
397
  shotIds?: string[] | undefined;
385
398
  } | undefined;
386
399
  body?: {
387
400
  key: string;
401
+ alternativeId?: string | undefined;
402
+ sectionId?: string | undefined;
388
403
  label?: string | undefined;
389
404
  choicePosition?: number | undefined;
390
- sectionId?: string | undefined;
391
- alternativeId?: string | undefined;
392
405
  shotIds?: string[] | undefined;
393
406
  } | undefined;
394
407
  endCard?: {
395
408
  key: string;
409
+ alternativeId?: string | undefined;
410
+ sectionId?: string | undefined;
396
411
  label?: string | undefined;
397
412
  choicePosition?: number | undefined;
398
- sectionId?: string | undefined;
399
- alternativeId?: string | undefined;
400
413
  shotIds?: string[] | undefined;
401
414
  } | undefined;
402
415
  }, {
403
416
  hook?: {
404
417
  key: string;
418
+ alternativeId?: string | undefined;
419
+ sectionId?: string | undefined;
405
420
  label?: string | undefined;
406
421
  choicePosition?: number | undefined;
407
- sectionId?: string | undefined;
408
- alternativeId?: string | undefined;
409
422
  shotIds?: string[] | undefined;
410
423
  } | undefined;
411
424
  body?: {
412
425
  key: string;
426
+ alternativeId?: string | undefined;
427
+ sectionId?: string | undefined;
413
428
  label?: string | undefined;
414
429
  choicePosition?: number | undefined;
415
- sectionId?: string | undefined;
416
- alternativeId?: string | undefined;
417
430
  shotIds?: string[] | undefined;
418
431
  } | undefined;
419
432
  endCard?: {
420
433
  key: string;
434
+ alternativeId?: string | undefined;
435
+ sectionId?: string | undefined;
421
436
  label?: string | undefined;
422
437
  choicePosition?: number | undefined;
423
- sectionId?: string | undefined;
424
- 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;
448
+ alternativeId?: string | undefined;
449
+ sectionId?: string | undefined;
435
450
  label?: string | undefined;
436
451
  choicePosition?: number | undefined;
437
- sectionId?: string | undefined;
438
- alternativeId?: string | undefined;
439
452
  shotIds?: string[] | undefined;
440
453
  } | undefined;
441
454
  body?: {
442
455
  key: string;
456
+ alternativeId?: string | undefined;
457
+ sectionId?: string | undefined;
443
458
  label?: string | undefined;
444
459
  choicePosition?: number | undefined;
445
- sectionId?: string | undefined;
446
- alternativeId?: string | undefined;
447
460
  shotIds?: string[] | undefined;
448
461
  } | undefined;
449
462
  endCard?: {
450
463
  key: string;
464
+ alternativeId?: string | undefined;
465
+ sectionId?: string | undefined;
451
466
  label?: string | undefined;
452
467
  choicePosition?: number | undefined;
453
- sectionId?: string | undefined;
454
- 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;
478
+ alternativeId?: string | undefined;
479
+ sectionId?: string | undefined;
465
480
  label?: string | undefined;
466
481
  choicePosition?: number | undefined;
467
- sectionId?: string | undefined;
468
- alternativeId?: string | undefined;
469
482
  shotIds?: string[] | undefined;
470
483
  } | undefined;
471
484
  body?: {
472
485
  key: string;
486
+ alternativeId?: string | undefined;
487
+ sectionId?: string | undefined;
473
488
  label?: string | undefined;
474
489
  choicePosition?: number | undefined;
475
- sectionId?: string | undefined;
476
- alternativeId?: string | undefined;
477
490
  shotIds?: string[] | undefined;
478
491
  } | undefined;
479
492
  endCard?: {
480
493
  key: string;
494
+ alternativeId?: string | undefined;
495
+ sectionId?: string | undefined;
481
496
  label?: string | undefined;
482
497
  choicePosition?: number | undefined;
483
- sectionId?: string | undefined;
484
- 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;
872
- peak?: number | undefined;
873
885
  end?: number | undefined;
874
886
  direction?: "left" | "right" | "up-right" | "up" | "up-left" | "down-left" | "down" | "down-right" | undefined;
887
+ peak?: number | undefined;
875
888
  }, {
876
889
  at: number;
877
890
  kind: "move";
878
891
  start?: number | undefined;
879
- peak?: number | undefined;
880
892
  end?: number | undefined;
881
893
  direction?: "left" | "right" | "up-right" | "up" | "up-left" | "down-left" | "down" | "down-right" | undefined;
894
+ 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
- kind: "add";
890
902
  start: number;
891
- peak: number;
903
+ kind: "add";
892
904
  end: number;
893
905
  direction: "left" | "right" | "up-right" | "up" | "up-left" | "down-left" | "down" | "down-right";
906
+ peak: number;
894
907
  }, {
895
- kind: "add";
896
908
  start: number;
897
- peak: number;
909
+ kind: "add";
898
910
  end: number;
899
911
  direction: "left" | "right" | "up-right" | "up" | "up-left" | "down-left" | "down" | "down-right";
912
+ 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", "ltx-2-5", "ltx-2-5-pro"];
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", "magi-2", "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. */
@@ -939,6 +952,7 @@ export declare const EDIT_VIDEO_MODELS: readonly ["kling-v3.0-omni-edit", "kling
939
952
  type EditVideoModel = (typeof EDIT_VIDEO_MODELS)[number];
940
953
  export declare const estimateGenerationCost: Operation<{
941
954
  model: string;
955
+ prompt?: string;
942
956
  quantity?: number;
943
957
  duration?: number;
944
958
  /** inworld-tts-2 only — the character count of the text, which is what it
@@ -955,6 +969,7 @@ export declare const estimateGenerationCost: Operation<{
955
969
  seedanceFace?: boolean;
956
970
  seedanceRealFace?: boolean;
957
971
  referenceImages?: number;
972
+ videoReferenceSecondsEach?: number[];
958
973
  videoRefSeconds?: number;
959
974
  audioRefSeconds?: number;
960
975
  }>;
@@ -1178,6 +1193,30 @@ export type GptQualityId = GptQuality;
1178
1193
  * part of any cost key. `auto` is fal's default and ours.
1179
1194
  */
1180
1195
  export type GptBackgroundId = GptBackground;
1196
+ type Clarification = {
1197
+ requires_clarification: true;
1198
+ missing: string[];
1199
+ message: string;
1200
+ };
1201
+ /**
1202
+ * The per-model image gate: the aspect ratio and the resolution rung the seat
1203
+ * declares in `MODEL_CAPABILITIES`. Generate, edit, the estimate and a saved
1204
+ * image Shot all run this one function, so a quote, a recipe and a generation
1205
+ * cannot disagree about what a seat takes.
1206
+ *
1207
+ * Why: GPT Image takes five of the union's ratios. A 4:5 or 21:9 ask passed,
1208
+ * was quoted at the 16:9 key, and the desktop's size table rendered a 16:9
1209
+ * frame for it and billed it (2026-11-24). An off-ladder rung built a cost key
1210
+ * the registry lacks and failed as "Unknown model", or, on Seedream, quoted the
1211
+ * default rung's price for a rung generation then refused.
1212
+ */
1213
+ export declare function assertImageCapabilities(input: {
1214
+ model: string;
1215
+ aspectRatio?: string;
1216
+ resolution?: string;
1217
+ }, field?: {
1218
+ resolution: string;
1219
+ }): Clarification | null;
1181
1220
  export declare function imageCostKey(model: ImageModelId, resolution: '1k' | '2k' | '3k' | '4k', quality?: GptQualityId, aspectRatio?: string, referenceCount?: number): string;
1182
1221
  export declare const generateImage: Operation<{
1183
1222
  prompt: string;
@@ -1193,8 +1232,27 @@ export declare const generateImage: Operation<{
1193
1232
  background?: boolean;
1194
1233
  confirm?: boolean;
1195
1234
  approvedCredits?: number;
1235
+ requestId?: string;
1196
1236
  folderId?: string | null;
1197
1237
  }>;
1238
+ /**
1239
+ * Wait for a headless proxy job. The job is submitted and its credits held
1240
+ * before this runs, so every way out but `completed` and `failed` names the
1241
+ * job and tells the caller not to start another: a retry is a second paid job.
1242
+ * It used to swallow every poll error for five minutes and then throw a bare
1243
+ * timeout with no job id (2026-11-24).
1244
+ */
1245
+ export declare function pollProxyJob(cloud: {
1246
+ get<T>(path: string): Promise<T>;
1247
+ }, jobId: string, options?: {
1248
+ intervalMs?: number;
1249
+ timeoutMs?: number;
1250
+ signal?: AbortSignal;
1251
+ }): Promise<{
1252
+ images?: Array<{
1253
+ url?: string;
1254
+ }>;
1255
+ }>;
1198
1256
  export declare const editImage: Operation<{
1199
1257
  projectId: string;
1200
1258
  sourceAssetId: string;
@@ -1238,9 +1296,11 @@ export declare function videoCostKey(input: {
1238
1296
  sound?: boolean;
1239
1297
  seedanceFace?: boolean;
1240
1298
  seedanceRealFace?: boolean;
1241
- /** Seedance only: ceiled combined seconds of reference VIDEO inputs (motion
1242
- * transfer / lip-sync on video / relocate). >0 bills the vref key on TOTAL
1243
- * (input+output) seconds — the server re-derives this by probing the refs. */
1299
+ /** Each reference video's measured length. Seedance and Wan 3.0 bill the vref
1300
+ * key on `billed` (each clip rounded up) plus the output; H3 Max prices
1301
+ * `actual` seconds as tokens. The server re-derives both by probing. */
1302
+ videoReferenceSecondsEach?: readonly number[];
1303
+ /** DEPRECATED: one reference video's length, read as a single clip. */
1244
1304
  videoRefSeconds?: number;
1245
1305
  /** MiniMax H3 base only: how many reference IMAGES the request carries. Past
1246
1306
  * the fifth, fal charges per image, so it is a KEY DIMENSION — omit it on a
@@ -1274,7 +1334,7 @@ export declare function audioCostKey(input: {
1274
1334
  characters?: number;
1275
1335
  }): string;
1276
1336
  export declare const generateVideo: Operation<{
1277
- prompt: string;
1337
+ prompt?: string;
1278
1338
  model: string;
1279
1339
  projectId?: string;
1280
1340
  aspectRatio?: AspectRatio;
@@ -1303,6 +1363,7 @@ export declare const generateVideo: Operation<{
1303
1363
  negativePrompt?: string;
1304
1364
  background?: boolean;
1305
1365
  confirm?: boolean;
1366
+ approvedCredits?: number;
1306
1367
  folderId?: string | null;
1307
1368
  }>;
1308
1369
  /**
@@ -1351,6 +1412,7 @@ export declare const generateLipSync: Operation<{
1351
1412
  avatarModel?: 'avatar-standard' | 'avatar-pro';
1352
1413
  background?: boolean;
1353
1414
  confirm?: boolean;
1415
+ approvedCredits?: number;
1354
1416
  }>;
1355
1417
  export declare const generateMotionTransfer: Operation<{
1356
1418
  projectId: string;
@@ -1361,6 +1423,7 @@ export declare const generateMotionTransfer: Operation<{
1361
1423
  prompt?: string;
1362
1424
  background?: boolean;
1363
1425
  confirm?: boolean;
1426
+ approvedCredits?: number;
1364
1427
  }>;
1365
1428
  export declare const editVideo: Operation<{
1366
1429
  projectId: string;
@@ -1521,6 +1584,9 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1521
1584
  action: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "status", "cancel"]>>>;
1522
1585
  }, "strict", z.ZodTypeAny, {
1523
1586
  projectId: string;
1587
+ directory?: string | undefined;
1588
+ manifestId?: string | undefined;
1589
+ action?: "start" | "status" | "cancel" | undefined;
1524
1590
  items?: ({
1525
1591
  timelineId: string;
1526
1592
  format: "mp4" | "xml";
@@ -1539,9 +1605,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1539
1605
  lp?: string | undefined;
1540
1606
  } | undefined;
1541
1607
  })[] | undefined;
1542
- action?: "status" | "cancel" | "start" | undefined;
1543
- directory?: string | undefined;
1544
- manifestId?: string | undefined;
1545
1608
  version?: 2 | undefined;
1546
1609
  batchId?: string | undefined;
1547
1610
  exportRoot?: string | undefined;
@@ -1564,6 +1627,9 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1564
1627
  }> | undefined;
1565
1628
  }, {
1566
1629
  projectId: string;
1630
+ directory?: string | undefined;
1631
+ manifestId?: string | undefined;
1632
+ action?: "start" | "status" | "cancel" | undefined;
1567
1633
  items?: ({
1568
1634
  timelineId: string;
1569
1635
  format: "mp4" | "xml";
@@ -1582,9 +1648,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1582
1648
  lp?: string | undefined;
1583
1649
  } | undefined;
1584
1650
  })[] | undefined;
1585
- action?: "status" | "cancel" | "start" | undefined;
1586
- directory?: string | undefined;
1587
- manifestId?: string | undefined;
1588
1651
  version?: 2 | undefined;
1589
1652
  batchId?: string | undefined;
1590
1653
  exportRoot?: string | undefined;
@@ -1607,6 +1670,9 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1607
1670
  }> | undefined;
1608
1671
  }>, {
1609
1672
  projectId: string;
1673
+ directory?: string | undefined;
1674
+ manifestId?: string | undefined;
1675
+ action?: "start" | "status" | "cancel" | undefined;
1610
1676
  items?: ({
1611
1677
  timelineId: string;
1612
1678
  format: "mp4" | "xml";
@@ -1625,9 +1691,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1625
1691
  lp?: string | undefined;
1626
1692
  } | undefined;
1627
1693
  })[] | undefined;
1628
- action?: "status" | "cancel" | "start" | undefined;
1629
- directory?: string | undefined;
1630
- manifestId?: string | undefined;
1631
1694
  version?: 2 | undefined;
1632
1695
  batchId?: string | undefined;
1633
1696
  exportRoot?: string | undefined;
@@ -1650,6 +1713,9 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1650
1713
  }> | undefined;
1651
1714
  }, {
1652
1715
  projectId: string;
1716
+ directory?: string | undefined;
1717
+ manifestId?: string | undefined;
1718
+ action?: "start" | "status" | "cancel" | undefined;
1653
1719
  items?: ({
1654
1720
  timelineId: string;
1655
1721
  format: "mp4" | "xml";
@@ -1668,9 +1734,6 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1668
1734
  lp?: string | undefined;
1669
1735
  } | undefined;
1670
1736
  })[] | undefined;
1671
- action?: "status" | "cancel" | "start" | undefined;
1672
- directory?: string | undefined;
1673
- manifestId?: string | undefined;
1674
1737
  version?: 2 | undefined;
1675
1738
  batchId?: string | undefined;
1676
1739
  exportRoot?: string | undefined;
@@ -1749,26 +1812,26 @@ declare const variantSlotsInput: z.ZodObject<{
1749
1812
  sequenceId: z.ZodOptional<z.ZodString>;
1750
1813
  }, "strict", z.ZodTypeAny, {
1751
1814
  projectId: string;
1752
- action: "add" | "remove" | "update" | "add-alternative" | "update-alternative" | "remove-alternative";
1753
- at?: number | undefined;
1754
- name?: string | undefined;
1755
- alternativeId?: string | undefined;
1815
+ action: "add" | "update" | "remove" | "add-alternative" | "update-alternative" | "remove-alternative";
1756
1816
  timelineId?: string | undefined;
1817
+ at?: number | undefined;
1757
1818
  slotId?: string | undefined;
1758
1819
  slotName?: string | undefined;
1820
+ alternativeId?: string | undefined;
1821
+ name?: string | undefined;
1759
1822
  orderIndex?: number | undefined;
1760
1823
  bedFrame?: number | null | undefined;
1761
1824
  clipIds?: string[] | undefined;
1762
1825
  sequenceId?: string | undefined;
1763
1826
  }, {
1764
1827
  projectId: string;
1765
- action: "add" | "remove" | "update" | "add-alternative" | "update-alternative" | "remove-alternative";
1766
- at?: number | undefined;
1767
- name?: string | undefined;
1768
- alternativeId?: string | undefined;
1828
+ action: "add" | "update" | "remove" | "add-alternative" | "update-alternative" | "remove-alternative";
1769
1829
  timelineId?: string | undefined;
1830
+ at?: number | undefined;
1770
1831
  slotId?: string | undefined;
1771
1832
  slotName?: string | undefined;
1833
+ alternativeId?: string | undefined;
1834
+ name?: string | undefined;
1772
1835
  orderIndex?: number | undefined;
1773
1836
  bedFrame?: number | null | undefined;
1774
1837
  clipIds?: string[] | undefined;
@@ -1847,9 +1910,9 @@ declare const variantsInput: z.ZodObject<{
1847
1910
  }>]>>>;
1848
1911
  }, "strict", z.ZodTypeAny, {
1849
1912
  projectId: string;
1850
- action: "add" | "remove" | "update" | "rebuild";
1851
- name?: string | undefined;
1913
+ action: "add" | "update" | "remove" | "rebuild";
1852
1914
  timelineId?: string | undefined;
1915
+ name?: string | undefined;
1853
1916
  variantId?: string | undefined;
1854
1917
  combinations?: boolean | undefined;
1855
1918
  choices?: Record<string, string> | undefined;
@@ -1873,9 +1936,9 @@ declare const variantsInput: z.ZodObject<{
1873
1936
  }[] | undefined;
1874
1937
  }, {
1875
1938
  projectId: string;
1876
- action: "add" | "remove" | "update" | "rebuild";
1877
- name?: string | undefined;
1939
+ action: "add" | "update" | "remove" | "rebuild";
1878
1940
  timelineId?: string | undefined;
1941
+ name?: string | undefined;
1879
1942
  variantId?: string | undefined;
1880
1943
  combinations?: boolean | undefined;
1881
1944
  choices?: Record<string, string> | undefined;
@@ -1920,7 +1983,7 @@ declare const reframeReportInput: z.ZodObject<{
1920
1983
  clipId?: string | undefined;
1921
1984
  }>;
1922
1985
  export declare const getReframeReport: Operation<z.infer<typeof reframeReportInput>>;
1923
- declare const reframeClipInput: z.ZodObject<{
1986
+ declare const reframeClipInput: z.ZodEffects<z.ZodObject<{
1924
1987
  projectId: z.ZodString;
1925
1988
  timelineId: z.ZodString;
1926
1989
  aspect: z.ZodString;
@@ -1952,8 +2015,8 @@ declare const reframeClipInput: z.ZodObject<{
1952
2015
  }, "strict", z.ZodTypeAny, {
1953
2016
  projectId: string;
1954
2017
  timelineId: string;
1955
- clipId: string;
1956
2018
  aspect: string;
2019
+ clipId: string;
1957
2020
  framing?: {
1958
2021
  mode?: "fill" | "fit" | undefined;
1959
2022
  focusX?: number | undefined;
@@ -1966,8 +2029,36 @@ declare const reframeClipInput: z.ZodObject<{
1966
2029
  }, {
1967
2030
  projectId: string;
1968
2031
  timelineId: string;
2032
+ aspect: string;
1969
2033
  clipId: string;
2034
+ framing?: {
2035
+ mode?: "fill" | "fit" | undefined;
2036
+ focusX?: number | undefined;
2037
+ focusY?: number | undefined;
2038
+ zoom?: number | undefined;
2039
+ } | null | undefined;
2040
+ follow?: "face" | "off" | {
2041
+ maskId: string;
2042
+ } | undefined;
2043
+ }>, {
2044
+ projectId: string;
2045
+ timelineId: string;
2046
+ aspect: string;
2047
+ clipId: string;
2048
+ framing?: {
2049
+ mode?: "fill" | "fit" | undefined;
2050
+ focusX?: number | undefined;
2051
+ focusY?: number | undefined;
2052
+ zoom?: number | undefined;
2053
+ } | null | undefined;
2054
+ follow?: "face" | "off" | {
2055
+ maskId: string;
2056
+ } | undefined;
2057
+ }, {
2058
+ projectId: string;
2059
+ timelineId: string;
1970
2060
  aspect: string;
2061
+ clipId: string;
1971
2062
  framing?: {
1972
2063
  mode?: "fill" | "fit" | undefined;
1973
2064
  focusX?: number | undefined;
@@ -2015,14 +2106,14 @@ declare const dialogueCleanupOptions: z.ZodObject<{
2015
2106
  minPauseSec: z.ZodOptional<z.ZodNumber>;
2016
2107
  keepAirSec: z.ZodOptional<z.ZodNumber>;
2017
2108
  }, "strict", z.ZodTypeAny, {
2018
- pauses?: boolean | undefined;
2019
2109
  fillers?: boolean | undefined;
2110
+ pauses?: boolean | undefined;
2020
2111
  repeats?: boolean | undefined;
2021
2112
  minPauseSec?: number | undefined;
2022
2113
  keepAirSec?: number | undefined;
2023
2114
  }, {
2024
- pauses?: boolean | undefined;
2025
2115
  fillers?: boolean | undefined;
2116
+ pauses?: boolean | undefined;
2026
2117
  repeats?: boolean | undefined;
2027
2118
  minPauseSec?: number | undefined;
2028
2119
  keepAirSec?: number | undefined;
@@ -2084,6 +2175,15 @@ export declare const resolveReviewNote: Operation<{
2084
2175
  assetIds?: string[];
2085
2176
  }>;
2086
2177
  }>;
2178
+ type ClientAdReportInput = {
2179
+ platform: 'tiktok';
2180
+ accountId?: string;
2181
+ managerId?: string;
2182
+ since?: string;
2183
+ until?: string;
2184
+ projectId?: string;
2185
+ };
2186
+ export declare const getClientAdReport: Operation<ClientAdReportInput>;
2087
2187
  export declare const getAdWinners: Operation<{
2088
2188
  projectId?: string;
2089
2189
  }>;
@@ -2396,13 +2496,13 @@ declare const keyframeKeys: z.ZodArray<z.ZodObject<{
2396
2496
  }, "strict", z.ZodTypeAny, {
2397
2497
  value: number;
2398
2498
  frame: number;
2399
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2499
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2400
2500
  cubicBezier: [number, number, number, number];
2401
2501
  } | undefined;
2402
2502
  }, {
2403
2503
  value: number;
2404
2504
  frame: number;
2405
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2505
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2406
2506
  cubicBezier: [number, number, number, number];
2407
2507
  } | undefined;
2408
2508
  }>, "many">;
@@ -2419,13 +2519,13 @@ declare const keyframeList: z.ZodArray<z.ZodObject<{
2419
2519
  }, "strict", z.ZodTypeAny, {
2420
2520
  value: number;
2421
2521
  frame: number;
2422
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2522
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2423
2523
  cubicBezier: [number, number, number, number];
2424
2524
  } | undefined;
2425
2525
  }, {
2426
2526
  value: number;
2427
2527
  frame: number;
2428
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2528
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2429
2529
  cubicBezier: [number, number, number, number];
2430
2530
  } | undefined;
2431
2531
  }>, "many">;
@@ -2448,13 +2548,13 @@ declare const audioEffectList: z.ZodArray<z.ZodObject<{
2448
2548
  }, "strict", z.ZodTypeAny, {
2449
2549
  value: number;
2450
2550
  frame: number;
2451
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2551
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2452
2552
  cubicBezier: [number, number, number, number];
2453
2553
  } | undefined;
2454
2554
  }, {
2455
2555
  value: number;
2456
2556
  frame: number;
2457
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2557
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2458
2558
  cubicBezier: [number, number, number, number];
2459
2559
  } | undefined;
2460
2560
  }>, "many">>>;
@@ -2479,102 +2579,102 @@ declare const audioEffectList: z.ZodArray<z.ZodObject<{
2479
2579
  }, "strict", z.ZodTypeAny, {
2480
2580
  value: number;
2481
2581
  frame: number;
2482
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2582
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2483
2583
  cubicBezier: [number, number, number, number];
2484
2584
  } | undefined;
2485
2585
  }, {
2486
2586
  value: number;
2487
2587
  frame: number;
2488
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2588
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2489
2589
  cubicBezier: [number, number, number, number];
2490
2590
  } | undefined;
2491
2591
  }>, "many">>>;
2492
2592
  }, "strict", z.ZodTypeAny, {
2493
2593
  type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
2494
- on?: boolean | undefined;
2495
- band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
2496
- frequency?: number | undefined;
2497
- gain?: number | undefined;
2498
- q?: number | undefined;
2499
- slope?: number | undefined;
2500
2594
  keyframes?: Record<string, {
2501
2595
  value: number;
2502
2596
  frame: number;
2503
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2597
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2504
2598
  cubicBezier: [number, number, number, number];
2505
2599
  } | undefined;
2506
2600
  }[]> | undefined;
2507
- }, {
2508
- type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
2509
- on?: boolean | undefined;
2510
2601
  band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
2602
+ on?: boolean | undefined;
2511
2603
  frequency?: number | undefined;
2512
2604
  gain?: number | undefined;
2513
2605
  q?: number | undefined;
2514
2606
  slope?: number | undefined;
2607
+ }, {
2608
+ type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
2515
2609
  keyframes?: Record<string, {
2516
2610
  value: number;
2517
2611
  frame: number;
2518
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2612
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2519
2613
  cubicBezier: [number, number, number, number];
2520
2614
  } | undefined;
2521
2615
  }[]> | undefined;
2616
+ band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
2617
+ on?: boolean | undefined;
2618
+ frequency?: number | undefined;
2619
+ gain?: number | undefined;
2620
+ q?: number | undefined;
2621
+ slope?: number | undefined;
2522
2622
  }>, "many">>;
2523
2623
  }, "strict", z.ZodTypeAny, {
2524
2624
  type: "volume" | "eq" | "denoise" | "voice_enhance";
2525
- id?: string | undefined;
2526
2625
  params?: Record<string, number> | undefined;
2626
+ id?: string | undefined;
2627
+ bypass?: boolean | undefined;
2527
2628
  keyframes?: Record<string, {
2528
2629
  value: number;
2529
2630
  frame: number;
2530
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2631
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2531
2632
  cubicBezier: [number, number, number, number];
2532
2633
  } | undefined;
2533
2634
  }[]> | undefined;
2534
- bypass?: boolean | undefined;
2535
2635
  bands?: {
2536
2636
  type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
2537
- on?: boolean | undefined;
2538
- band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
2539
- frequency?: number | undefined;
2540
- gain?: number | undefined;
2541
- q?: number | undefined;
2542
- slope?: number | undefined;
2543
2637
  keyframes?: Record<string, {
2544
2638
  value: number;
2545
2639
  frame: number;
2546
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2640
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2547
2641
  cubicBezier: [number, number, number, number];
2548
2642
  } | undefined;
2549
2643
  }[]> | undefined;
2644
+ band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
2645
+ on?: boolean | undefined;
2646
+ frequency?: number | undefined;
2647
+ gain?: number | undefined;
2648
+ q?: number | undefined;
2649
+ slope?: number | undefined;
2550
2650
  }[] | undefined;
2551
2651
  }, {
2552
2652
  type: "volume" | "eq" | "denoise" | "voice_enhance";
2553
- id?: string | undefined;
2554
2653
  params?: Record<string, number> | undefined;
2654
+ id?: string | undefined;
2655
+ bypass?: boolean | undefined;
2555
2656
  keyframes?: Record<string, {
2556
2657
  value: number;
2557
2658
  frame: number;
2558
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2659
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2559
2660
  cubicBezier: [number, number, number, number];
2560
2661
  } | undefined;
2561
2662
  }[]> | undefined;
2562
- bypass?: boolean | undefined;
2563
2663
  bands?: {
2564
2664
  type: "highpass" | "lowshelf" | "highshelf" | "lowpass" | "bell" | "notch" | "bandpass";
2565
- on?: boolean | undefined;
2566
- band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
2567
- frequency?: number | undefined;
2568
- gain?: number | undefined;
2569
- q?: number | undefined;
2570
- slope?: number | undefined;
2571
2665
  keyframes?: Record<string, {
2572
2666
  value: number;
2573
2667
  frame: number;
2574
- easing?: "ease-in" | "linear" | "ease" | "ease-out" | "ease-in-out" | "hold" | {
2668
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
2575
2669
  cubicBezier: [number, number, number, number];
2576
2670
  } | undefined;
2577
2671
  }[]> | undefined;
2672
+ band?: "highpass" | "lowshelf" | "bell1" | "bell2" | "bell3" | "bell4" | "bell5" | "bell6" | "highshelf" | "lowpass" | undefined;
2673
+ on?: boolean | undefined;
2674
+ frequency?: number | undefined;
2675
+ gain?: number | undefined;
2676
+ q?: number | undefined;
2677
+ slope?: number | undefined;
2578
2678
  }[] | undefined;
2579
2679
  }>, "many">;
2580
2680
  /** A clip's panel (slate's `src/shared/clipPanel.ts`): lengths in fractions of the frame's height. */
@@ -2589,56 +2689,56 @@ declare const clipPanel: z.ZodObject<{
2589
2689
  }, "strict", z.ZodTypeAny, {
2590
2690
  x?: number | undefined;
2591
2691
  y?: number | undefined;
2692
+ color?: string | undefined;
2592
2693
  blur?: number | undefined;
2593
2694
  opacity?: number | undefined;
2594
- color?: string | undefined;
2595
2695
  }, {
2596
2696
  x?: number | undefined;
2597
2697
  y?: number | undefined;
2698
+ color?: string | undefined;
2598
2699
  blur?: number | undefined;
2599
2700
  opacity?: number | undefined;
2600
- color?: string | undefined;
2601
2701
  }>>;
2602
2702
  border: z.ZodOptional<z.ZodObject<{
2603
2703
  width: z.ZodOptional<z.ZodNumber>;
2604
2704
  opacity: z.ZodOptional<z.ZodNumber>;
2605
2705
  color: z.ZodOptional<z.ZodString>;
2606
2706
  }, "strict", z.ZodTypeAny, {
2607
- width?: number | undefined;
2608
- opacity?: number | undefined;
2609
2707
  color?: string | undefined;
2610
- }, {
2611
- width?: number | undefined;
2612
2708
  opacity?: number | undefined;
2709
+ width?: number | undefined;
2710
+ }, {
2613
2711
  color?: string | undefined;
2712
+ opacity?: number | undefined;
2713
+ width?: number | undefined;
2614
2714
  }>>;
2615
2715
  }, "strict", z.ZodTypeAny, {
2616
2716
  radius?: number | undefined;
2617
2717
  shadow?: {
2618
2718
  x?: number | undefined;
2619
2719
  y?: number | undefined;
2720
+ color?: string | undefined;
2620
2721
  blur?: number | undefined;
2621
2722
  opacity?: number | undefined;
2622
- color?: string | undefined;
2623
2723
  } | undefined;
2624
2724
  border?: {
2625
- width?: number | undefined;
2626
- opacity?: number | undefined;
2627
2725
  color?: string | undefined;
2726
+ opacity?: number | undefined;
2727
+ width?: number | undefined;
2628
2728
  } | undefined;
2629
2729
  }, {
2630
2730
  radius?: number | undefined;
2631
2731
  shadow?: {
2632
2732
  x?: number | undefined;
2633
2733
  y?: number | undefined;
2734
+ color?: string | undefined;
2634
2735
  blur?: number | undefined;
2635
2736
  opacity?: number | undefined;
2636
- color?: string | undefined;
2637
2737
  } | undefined;
2638
2738
  border?: {
2639
- width?: number | undefined;
2640
- opacity?: number | undefined;
2641
2739
  color?: string | undefined;
2740
+ opacity?: number | undefined;
2741
+ width?: number | undefined;
2642
2742
  } | undefined;
2643
2743
  }>;
2644
2744
  declare const clipLookInput: z.ZodObject<{
@@ -2841,21 +2941,21 @@ declare const overlayWordsInput: z.ZodArray<z.ZodEffects<z.ZodObject<{
2841
2941
  start: z.ZodNumber;
2842
2942
  end: z.ZodNumber;
2843
2943
  }, "strict", z.ZodTypeAny, {
2844
- text: string;
2845
2944
  start: number;
2846
2945
  end: number;
2847
- }, {
2848
2946
  text: string;
2947
+ }, {
2849
2948
  start: number;
2850
2949
  end: number;
2851
- }>, {
2852
2950
  text: string;
2951
+ }>, {
2853
2952
  start: number;
2854
2953
  end: number;
2855
- }, {
2856
2954
  text: string;
2955
+ }, {
2857
2956
  start: number;
2858
2957
  end: number;
2958
+ text: string;
2859
2959
  }>, "many">;
2860
2960
  export declare const addTextClip: Operation<{
2861
2961
  projectId: string;
@@ -3280,6 +3380,7 @@ export declare const updateShot: Operation<ShotOpRefs & ShotOpScript & {
3280
3380
  }>;
3281
3381
  export declare const duplicateShot: Operation<{
3282
3382
  shotId: string;
3383
+ projectId?: string;
3283
3384
  name?: string;
3284
3385
  prompt?: string;
3285
3386
  model?: string;
@@ -3293,6 +3394,7 @@ export declare const listShots: Operation<{
3293
3394
  }>;
3294
3395
  export declare const getShot: Operation<{
3295
3396
  shotId: string;
3397
+ projectId?: string;
3296
3398
  }>;
3297
3399
  /**
3298
3400
  * The Board's "Use pictures as first frames": each video Shot with a picture and no first frame starts its
@@ -3320,6 +3422,7 @@ export declare const usePicturesAsFirstFrames: Operation<{
3320
3422
  */
3321
3423
  export declare const splitShot: Operation<{
3322
3424
  shotId: string;
3425
+ projectId?: string;
3323
3426
  caret?: number;
3324
3427
  }>;
3325
3428
  export declare const splitTake: Operation<{
@@ -3337,6 +3440,7 @@ export declare const refileTake: Operation<{
3337
3440
  export declare const mergeShots: Operation<{
3338
3441
  firstId: string;
3339
3442
  secondId: string;
3443
+ projectId?: string;
3340
3444
  }>;
3341
3445
  export declare const getScript: Operation<{
3342
3446
  sceneId: string;
@@ -3349,34 +3453,34 @@ declare const variationSchema: z.ZodObject<{
3349
3453
  sectionId: z.ZodString;
3350
3454
  alternativeId: z.ZodString;
3351
3455
  }, "strip", z.ZodTypeAny, {
3352
- sectionId: string;
3353
3456
  alternativeId: string;
3354
- }, {
3355
3457
  sectionId: string;
3458
+ }, {
3356
3459
  alternativeId: string;
3460
+ sectionId: string;
3357
3461
  }>, "many">;
3358
3462
  arrangement: z.ZodOptional<z.ZodArray<z.ZodObject<{
3359
3463
  sectionId: z.ZodString;
3360
3464
  alternativeId: z.ZodString;
3361
3465
  }, "strip", z.ZodTypeAny, {
3362
- sectionId: string;
3363
3466
  alternativeId: string;
3364
- }, {
3365
3467
  sectionId: string;
3468
+ }, {
3366
3469
  alternativeId: string;
3470
+ sectionId: string;
3367
3471
  }>, "many">>;
3368
3472
  itemOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
3369
3473
  from: z.ZodString;
3370
3474
  to: z.ZodString;
3371
3475
  voice: z.ZodEnum<["keep", "replace"]>;
3372
3476
  }, "strip", z.ZodTypeAny, {
3373
- voice: "replace" | "keep";
3374
3477
  from: string;
3375
3478
  to: string;
3479
+ voice: "keep" | "replace";
3376
3480
  }, {
3377
- voice: "replace" | "keep";
3378
3481
  from: string;
3379
3482
  to: string;
3483
+ voice: "keep" | "replace";
3380
3484
  }>, "many">>;
3381
3485
  assetOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
3382
3486
  from: z.ZodString;
@@ -3391,20 +3495,20 @@ declare const variationSchema: z.ZodObject<{
3391
3495
  idempotencyKey: z.ZodOptional<z.ZodString>;
3392
3496
  }, "strip", z.ZodTypeAny, {
3393
3497
  name: string;
3394
- storyboardId: string;
3395
3498
  choices: {
3396
- sectionId: string;
3397
3499
  alternativeId: string;
3500
+ sectionId: string;
3398
3501
  }[];
3502
+ storyboardId: string;
3399
3503
  expectedRevision: number;
3400
3504
  arrangement?: {
3401
- sectionId: string;
3402
3505
  alternativeId: string;
3506
+ sectionId: string;
3403
3507
  }[] | undefined;
3404
3508
  itemOverrides?: {
3405
- voice: "replace" | "keep";
3406
3509
  from: string;
3407
3510
  to: string;
3511
+ voice: "keep" | "replace";
3408
3512
  }[] | undefined;
3409
3513
  assetOverrides?: {
3410
3514
  from: string;
@@ -3413,20 +3517,20 @@ declare const variationSchema: z.ZodObject<{
3413
3517
  idempotencyKey?: string | undefined;
3414
3518
  }, {
3415
3519
  name: string;
3416
- storyboardId: string;
3417
3520
  choices: {
3418
- sectionId: string;
3419
3521
  alternativeId: string;
3522
+ sectionId: string;
3420
3523
  }[];
3524
+ storyboardId: string;
3421
3525
  expectedRevision: number;
3422
3526
  arrangement?: {
3423
- sectionId: string;
3424
3527
  alternativeId: string;
3528
+ sectionId: string;
3425
3529
  }[] | undefined;
3426
3530
  itemOverrides?: {
3427
- voice: "replace" | "keep";
3428
3531
  from: string;
3429
3532
  to: string;
3533
+ voice: "keep" | "replace";
3430
3534
  }[] | undefined;
3431
3535
  assetOverrides?: {
3432
3536
  from: string;
@@ -3466,80 +3570,80 @@ declare const sectionInput: z.ZodObject<{
3466
3570
  expectedRevision: z.ZodNumber;
3467
3571
  }, "strip", z.ZodTypeAny, {
3468
3572
  at: number;
3469
- sceneId: string;
3470
3573
  expectedRevision: number;
3574
+ sceneId: string;
3471
3575
  }, {
3472
3576
  at: number;
3473
- sceneId: string;
3474
3577
  expectedRevision: number;
3578
+ sceneId: string;
3475
3579
  }>>;
3476
3580
  uses: z.ZodOptional<z.ZodArray<z.ZodObject<{
3477
3581
  sectionId: z.ZodString;
3478
3582
  expectedRevision: z.ZodNumber;
3479
3583
  }, "strip", z.ZodTypeAny, {
3480
- sectionId: string;
3481
3584
  expectedRevision: number;
3482
- }, {
3483
3585
  sectionId: string;
3586
+ }, {
3484
3587
  expectedRevision: number;
3588
+ sectionId: string;
3485
3589
  }>, "many">>;
3486
3590
  fragments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3487
3591
  sceneId: z.ZodString;
3488
3592
  start: z.ZodNumber;
3489
3593
  end: z.ZodNumber;
3490
3594
  }, "strip", z.ZodTypeAny, {
3491
- sceneId: string;
3492
3595
  start: number;
3596
+ sceneId: string;
3493
3597
  end: number;
3494
3598
  }, {
3495
- sceneId: string;
3496
3599
  start: number;
3600
+ sceneId: string;
3497
3601
  end: number;
3498
3602
  }>, "many">>;
3499
3603
  }, "strip", z.ZodTypeAny, {
3500
- action: "tags" | "create" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
3604
+ action: "create" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "rename" | "archive" | "tags";
3501
3605
  storyboardId: string;
3502
3606
  expectedRevision: number;
3607
+ alternativeId?: string | undefined;
3608
+ sectionId?: string | undefined;
3609
+ tags?: string[] | undefined;
3610
+ parentId?: string | undefined;
3611
+ label?: string | undefined;
3503
3612
  target?: {
3504
3613
  at: number;
3505
- sceneId: string;
3506
3614
  expectedRevision: number;
3615
+ sceneId: string;
3507
3616
  } | undefined;
3508
- label?: string | undefined;
3509
- sectionId?: string | undefined;
3510
- alternativeId?: string | undefined;
3511
- tags?: string[] | undefined;
3512
- parentId?: string | undefined;
3513
3617
  uses?: {
3514
- sectionId: string;
3515
3618
  expectedRevision: number;
3619
+ sectionId: string;
3516
3620
  }[] | undefined;
3517
3621
  fragments?: {
3518
- sceneId: string;
3519
3622
  start: number;
3623
+ sceneId: string;
3520
3624
  end: number;
3521
3625
  }[] | undefined;
3522
3626
  }, {
3523
- action: "tags" | "create" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
3627
+ action: "create" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "rename" | "archive" | "tags";
3524
3628
  storyboardId: string;
3525
3629
  expectedRevision: number;
3630
+ alternativeId?: string | undefined;
3631
+ sectionId?: string | undefined;
3632
+ tags?: string[] | undefined;
3633
+ parentId?: string | undefined;
3634
+ label?: string | undefined;
3526
3635
  target?: {
3527
3636
  at: number;
3528
- sceneId: string;
3529
3637
  expectedRevision: number;
3638
+ sceneId: string;
3530
3639
  } | undefined;
3531
- label?: string | undefined;
3532
- sectionId?: string | undefined;
3533
- alternativeId?: string | undefined;
3534
- tags?: string[] | undefined;
3535
- parentId?: string | undefined;
3536
3640
  uses?: {
3537
- sectionId: string;
3538
3641
  expectedRevision: number;
3642
+ sectionId: string;
3539
3643
  }[] | undefined;
3540
3644
  fragments?: {
3541
- sceneId: string;
3542
3645
  start: number;
3646
+ sceneId: string;
3543
3647
  end: number;
3544
3648
  }[] | undefined;
3545
3649
  }>;
@@ -3559,15 +3663,15 @@ declare const suggestionInput: z.ZodObject<{
3559
3663
  replacement: z.ZodString;
3560
3664
  note: z.ZodOptional<z.ZodString>;
3561
3665
  }, "strip", z.ZodTypeAny, {
3562
- sceneId: string;
3563
3666
  start: number;
3667
+ sceneId: string;
3564
3668
  end: number;
3565
3669
  original: string;
3566
3670
  replacement: string;
3567
3671
  note?: string | undefined;
3568
3672
  }, {
3569
- sceneId: string;
3570
3673
  start: number;
3674
+ sceneId: string;
3571
3675
  end: number;
3572
3676
  original: string;
3573
3677
  replacement: string;
@@ -3579,8 +3683,8 @@ declare const suggestionInput: z.ZodObject<{
3579
3683
  storyboardId: string;
3580
3684
  expectedRevision: number;
3581
3685
  suggestions?: {
3582
- sceneId: string;
3583
3686
  start: number;
3687
+ sceneId: string;
3584
3688
  end: number;
3585
3689
  original: string;
3586
3690
  replacement: string;
@@ -3592,8 +3696,8 @@ declare const suggestionInput: z.ZodObject<{
3592
3696
  storyboardId: string;
3593
3697
  expectedRevision: number;
3594
3698
  suggestions?: {
3595
- sceneId: string;
3596
3699
  start: number;
3700
+ sceneId: string;
3597
3701
  end: number;
3598
3702
  original: string;
3599
3703
  replacement: string;
@@ -3615,14 +3719,14 @@ declare const writeScriptDocumentInput: z.ZodObject<{
3615
3719
  text: z.ZodString;
3616
3720
  }, "strip", z.ZodTypeAny, {
3617
3721
  at: number;
3618
- text: string;
3619
3722
  sceneId: string;
3620
3723
  removed: number;
3724
+ text: string;
3621
3725
  }, {
3622
3726
  at: number;
3623
- text: string;
3624
3727
  sceneId: string;
3625
3728
  removed: number;
3729
+ text: string;
3626
3730
  }>, "many">;
3627
3731
  structures: z.ZodOptional<z.ZodArray<z.ZodObject<{
3628
3732
  sceneId: z.ZodString;
@@ -3638,68 +3742,68 @@ declare const writeScriptDocumentInput: z.ZodObject<{
3638
3742
  end: z.ZodNumber;
3639
3743
  type: z.ZodEnum<["strong", "em"]>;
3640
3744
  }, "strip", z.ZodTypeAny, {
3641
- type: "strong" | "em";
3642
3745
  start: number;
3746
+ type: "strong" | "em";
3643
3747
  end: number;
3644
3748
  }, {
3645
- type: "strong" | "em";
3646
3749
  start: number;
3750
+ type: "strong" | "em";
3647
3751
  end: number;
3648
3752
  }>, "many">;
3649
3753
  }, "strip", z.ZodTypeAny, {
3650
- id: string;
3651
- kind: "direction" | "paragraph" | "heading";
3652
3754
  start: number;
3755
+ kind: "paragraph" | "heading" | "direction";
3653
3756
  end: number;
3757
+ id: string;
3654
3758
  marks: {
3655
- type: "strong" | "em";
3656
3759
  start: number;
3760
+ type: "strong" | "em";
3657
3761
  end: number;
3658
3762
  }[];
3659
- level?: 2 | 3 | undefined;
3660
3763
  label?: string | undefined;
3764
+ level?: 3 | 2 | undefined;
3661
3765
  }, {
3662
- id: string;
3663
- kind: "direction" | "paragraph" | "heading";
3664
3766
  start: number;
3767
+ kind: "paragraph" | "heading" | "direction";
3665
3768
  end: number;
3769
+ id: string;
3666
3770
  marks: {
3667
- type: "strong" | "em";
3668
3771
  start: number;
3772
+ type: "strong" | "em";
3669
3773
  end: number;
3670
3774
  }[];
3671
- level?: 2 | 3 | undefined;
3672
3775
  label?: string | undefined;
3776
+ level?: 3 | 2 | undefined;
3673
3777
  }>, "many">;
3674
3778
  }, "strip", z.ZodTypeAny, {
3675
3779
  sceneId: string;
3676
3780
  blocks: {
3677
- id: string;
3678
- kind: "direction" | "paragraph" | "heading";
3679
3781
  start: number;
3782
+ kind: "paragraph" | "heading" | "direction";
3680
3783
  end: number;
3784
+ id: string;
3681
3785
  marks: {
3682
- type: "strong" | "em";
3683
3786
  start: number;
3787
+ type: "strong" | "em";
3684
3788
  end: number;
3685
3789
  }[];
3686
- level?: 2 | 3 | undefined;
3687
3790
  label?: string | undefined;
3791
+ level?: 3 | 2 | undefined;
3688
3792
  }[];
3689
3793
  }, {
3690
3794
  sceneId: string;
3691
3795
  blocks: {
3692
- id: string;
3693
- kind: "direction" | "paragraph" | "heading";
3694
3796
  start: number;
3797
+ kind: "paragraph" | "heading" | "direction";
3695
3798
  end: number;
3799
+ id: string;
3696
3800
  marks: {
3697
- type: "strong" | "em";
3698
3801
  start: number;
3802
+ type: "strong" | "em";
3699
3803
  end: number;
3700
3804
  }[];
3701
- level?: 2 | 3 | undefined;
3702
3805
  label?: string | undefined;
3806
+ level?: 3 | 2 | undefined;
3703
3807
  }[];
3704
3808
  }>, "many">>;
3705
3809
  move: z.ZodOptional<z.ZodObject<{
@@ -3721,13 +3825,13 @@ declare const writeScriptDocumentInput: z.ZodObject<{
3721
3825
  end: z.ZodNumber;
3722
3826
  waitingShotId: z.ZodOptional<z.ZodString>;
3723
3827
  }, "strip", z.ZodTypeAny, {
3724
- sceneId: string;
3725
3828
  start: number;
3829
+ sceneId: string;
3726
3830
  end: number;
3727
3831
  waitingShotId?: string | undefined;
3728
3832
  }, {
3729
- sceneId: string;
3730
3833
  start: number;
3834
+ sceneId: string;
3731
3835
  end: number;
3732
3836
  waitingShotId?: string | undefined;
3733
3837
  }>, "many">>;
@@ -3756,38 +3860,38 @@ declare const writeScriptDocumentInput: z.ZodObject<{
3756
3860
  sceneId: string;
3757
3861
  }>]>>;
3758
3862
  }, "strip", z.ZodTypeAny, {
3863
+ storyboardId: string;
3864
+ expectedRevision: number;
3759
3865
  edits: {
3760
3866
  at: number;
3761
- text: string;
3762
3867
  sceneId: string;
3763
3868
  removed: number;
3869
+ text: string;
3764
3870
  }[];
3765
- storyboardId: string;
3766
- expectedRevision: number;
3767
- move?: {
3768
- sceneId: string;
3769
- blockId: string;
3770
- delta: 1 | -1;
3771
- } | undefined;
3772
3871
  structures?: {
3773
3872
  sceneId: string;
3774
3873
  blocks: {
3775
- id: string;
3776
- kind: "direction" | "paragraph" | "heading";
3777
3874
  start: number;
3875
+ kind: "paragraph" | "heading" | "direction";
3778
3876
  end: number;
3877
+ id: string;
3779
3878
  marks: {
3780
- type: "strong" | "em";
3781
3879
  start: number;
3880
+ type: "strong" | "em";
3782
3881
  end: number;
3783
3882
  }[];
3784
- level?: 2 | 3 | undefined;
3785
3883
  label?: string | undefined;
3884
+ level?: 3 | 2 | undefined;
3786
3885
  }[];
3787
3886
  }[] | undefined;
3788
- makeShots?: {
3887
+ move?: {
3789
3888
  sceneId: string;
3889
+ blockId: string;
3890
+ delta: 1 | -1;
3891
+ } | undefined;
3892
+ makeShots?: {
3790
3893
  start: number;
3894
+ sceneId: string;
3791
3895
  end: number;
3792
3896
  waitingShotId?: string | undefined;
3793
3897
  }[] | undefined;
@@ -3802,38 +3906,38 @@ declare const writeScriptDocumentInput: z.ZodObject<{
3802
3906
  sceneId: string;
3803
3907
  } | undefined;
3804
3908
  }, {
3909
+ storyboardId: string;
3910
+ expectedRevision: number;
3805
3911
  edits: {
3806
3912
  at: number;
3807
- text: string;
3808
3913
  sceneId: string;
3809
3914
  removed: number;
3915
+ text: string;
3810
3916
  }[];
3811
- storyboardId: string;
3812
- expectedRevision: number;
3813
- move?: {
3814
- sceneId: string;
3815
- blockId: string;
3816
- delta: 1 | -1;
3817
- } | undefined;
3818
3917
  structures?: {
3819
3918
  sceneId: string;
3820
3919
  blocks: {
3821
- id: string;
3822
- kind: "direction" | "paragraph" | "heading";
3823
3920
  start: number;
3921
+ kind: "paragraph" | "heading" | "direction";
3824
3922
  end: number;
3923
+ id: string;
3825
3924
  marks: {
3826
- type: "strong" | "em";
3827
3925
  start: number;
3926
+ type: "strong" | "em";
3828
3927
  end: number;
3829
3928
  }[];
3830
- level?: 2 | 3 | undefined;
3831
3929
  label?: string | undefined;
3930
+ level?: 3 | 2 | undefined;
3832
3931
  }[];
3833
3932
  }[] | undefined;
3834
- makeShots?: {
3933
+ move?: {
3835
3934
  sceneId: string;
3935
+ blockId: string;
3936
+ delta: 1 | -1;
3937
+ } | undefined;
3938
+ makeShots?: {
3836
3939
  start: number;
3940
+ sceneId: string;
3837
3941
  end: number;
3838
3942
  waitingShotId?: string | undefined;
3839
3943
  }[] | undefined;
@@ -3885,6 +3989,7 @@ export declare const pasteScript: Operation<{
3885
3989
  }>;
3886
3990
  export declare const generateFromShots: Operation<{
3887
3991
  shotIds: string[];
3992
+ projectId?: string;
3888
3993
  confirm?: boolean;
3889
3994
  fingerprint?: string;
3890
3995
  draft?: {
@@ -3927,14 +4032,14 @@ declare const paidDraftFinishInput: z.ZodObject<{
3927
4032
  }, "strip", z.ZodTypeAny, {
3928
4033
  projectId: string;
3929
4034
  assetId: string;
3930
- confirm: true;
3931
4035
  resolution: "4k" | "1080p";
4036
+ confirm: true;
3932
4037
  maxCredits: number;
3933
4038
  }, {
3934
4039
  projectId: string;
3935
4040
  assetId: string;
3936
- confirm: true;
3937
4041
  resolution: "4k" | "1080p";
4042
+ confirm: true;
3938
4043
  maxCredits: number;
3939
4044
  }>;
3940
4045
  export declare const quoteDraftFinish: Operation<z.infer<typeof draftFinishInput>>;