@slatesvideo/shared 0.7.7 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/README.md +3 -6
  2. package/dist/analytics/events.d.ts +1 -1
  3. package/dist/analytics/events.js +7 -0
  4. package/dist/auth.d.ts +2 -0
  5. package/dist/auth.js +5 -0
  6. package/dist/clients/cloud.d.ts +2 -0
  7. package/dist/clients/cloud.js +5 -1
  8. package/dist/index.d.ts +7 -3
  9. package/dist/index.js +7 -3
  10. package/dist/manual/content.d.ts +1 -1
  11. package/dist/manual/content.js +1 -1
  12. package/dist/operations/index.d.ts +587 -161
  13. package/dist/operations/index.js +663 -57
  14. package/dist/operations/surface.d.ts +2 -2
  15. package/dist/operations/surface.js +18 -5
  16. package/dist/prompts/agent-doctrine.d.ts +12 -2
  17. package/dist/prompts/agent-doctrine.js +56 -28
  18. package/dist/prompts/banned-tokens.js +23 -13
  19. package/dist/prompts/brain.d.ts +29 -0
  20. package/dist/prompts/brain.js +72 -0
  21. package/dist/prompts/craft-cards.d.ts +15 -4
  22. package/dist/prompts/craft-cards.js +71 -9
  23. package/dist/prompts/generation-policy.d.ts +1 -1
  24. package/dist/prompts/guide-discovery.d.ts +6 -6
  25. package/dist/prompts/guide-retrieval.d.ts +7 -1
  26. package/dist/prompts/guide-retrieval.js +33 -5
  27. package/dist/prompts/partials.generated.js +1 -13
  28. package/dist/prompts/shot-grammar.d.ts +1 -1
  29. package/dist/prompts/shot-grammar.js +1 -1
  30. package/dist/skills/brain-check.d.ts +44 -0
  31. package/dist/skills/brain-check.js +172 -0
  32. package/dist/skills/content.d.ts +3 -0
  33. package/dist/skills/content.js +81 -44
  34. package/dist/skills/hyperframes-content.js +4 -4
  35. package/dist/skills/my-brain.d.ts +52 -0
  36. package/dist/skills/my-brain.js +218 -0
  37. package/dist/skills/served.d.ts +52 -0
  38. package/dist/skills/served.js +202 -0
  39. package/package.json +2 -4
  40. package/skills/hyperframes/NOTICE +19 -3
  41. package/skills/hyperframes/SLATES-MAPPING.md +1 -1
  42. package/skills/hyperframes/embedded-captions/CATALOG.md +3 -0
  43. package/skills/hyperframes/embedded-captions/SKILL.md +6 -6
  44. package/skills/hyperframes/embedded-captions/assets/fonts/char-widths.json +227 -1
  45. package/skills/hyperframes/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +19 -2
  46. package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-italic.woff2 +0 -0
  47. package/skills/hyperframes/embedded-captions/modes/standard/fonts/files/archivo-latin-wdth-normal.woff2 +0 -0
  48. package/skills/hyperframes/embedded-captions/scripts/make-theme.cjs +438 -3
  49. package/skills/hyperframes/embedded-captions/scripts/make-theme.test.mjs +1 -0
  50. package/skills/hyperframes/embedded-captions/themes/README.md +26 -1
  51. package/skills/hyperframes/embedded-captions/themes/lesson.json +31 -0
  52. package/skills/slates-start-here.md +78 -0
  53. package/exports/slates-chatgpt-images/generated/SKILL.md +0 -113
  54. package/exports/slates-chatgpt-images/generated/slates-chatgpt-images.skill +0 -0
  55. package/exports/slates-prompt-builder/generated/SKILL.md +0 -71
  56. package/exports/slates-prompt-builder/generated/reference-character.md +0 -92
  57. package/exports/slates-prompt-builder/generated/reference-content-policy.md +0 -81
  58. package/exports/slates-prompt-builder/generated/reference-gpt-image-2-5.md +0 -191
  59. package/exports/slates-prompt-builder/generated/reference-kling.md +0 -295
  60. package/exports/slates-prompt-builder/generated/reference-nano-banana.md +0 -240
  61. package/exports/slates-prompt-builder/generated/reference-omni-flash.md +0 -97
  62. package/exports/slates-prompt-builder/generated/reference-seedance-2-5.md +0 -392
  63. package/exports/slates-prompt-builder/generated/reference-seedance.md +0 -441
  64. package/exports/slates-prompt-builder/generated/slates-prompt-builder-manifest.json +0 -133
  65. package/exports/slates-prompt-builder/generated/slates-prompt-builder.skill +0 -0
  66. package/skills/_partials/blender-action-curves.md +0 -24
  67. package/skills/_partials/cinematic-card.md +0 -8
  68. package/skills/_partials/decision-log.md +0 -1
  69. package/skills/_partials/image-defaults.md +0 -9
  70. package/skills/_partials/iteration-diagnosis.md +0 -5
  71. package/skills/_partials/living-performance.md +0 -22
  72. package/skills/_partials/model-routing.md +0 -35
  73. package/skills/_partials/references-read-literally.md +0 -11
  74. package/skills/_partials/seedance-25-timestamps.md +0 -34
  75. package/skills/_partials/sheet-tool-defaults.md +0 -6
  76. package/skills/_partials/still-gate.md +0 -3
  77. package/skills/_partials/thresholds.md +0 -19
  78. package/skills/slates-blocking-to-prompt.md +0 -279
  79. package/skills/slates-camera-language.md +0 -234
  80. package/skills/slates-captions.md +0 -81
  81. package/skills/slates-character-identity.md +0 -117
  82. package/skills/slates-chatgpt-images.md +0 -113
  83. package/skills/slates-cinematic-look.md +0 -237
  84. package/skills/slates-content-policy.md +0 -88
  85. package/skills/slates-cost-discipline.md +0 -150
  86. package/skills/slates-cuts.md +0 -46
  87. package/skills/slates-dialogue-blocking.md +0 -134
  88. package/skills/slates-direct-response-ad.md +0 -26
  89. package/skills/slates-edit-and-iterate.md +0 -76
  90. package/skills/slates-layer-brand-captions.md +0 -87
  91. package/skills/slates-layer-lower-third.md +0 -85
  92. package/skills/slates-layer-title.md +0 -82
  93. package/skills/slates-model-selection.md +0 -129
  94. package/skills/slates-motion.md +0 -57
  95. package/skills/slates-one-prompt-film.md +0 -38
  96. package/skills/slates-previs-blocking.md +0 -186
  97. package/skills/slates-project-organization.md +0 -42
  98. package/skills/slates-prompting-elevenlabs.md +0 -128
  99. package/skills/slates-prompting-flux-3.md +0 -157
  100. package/skills/slates-prompting-gpt-image-2-5.md +0 -196
  101. package/skills/slates-prompting-inworld-tts.md +0 -174
  102. package/skills/slates-prompting-kling-v3.md +0 -303
  103. package/skills/slates-prompting-lip-sync.md +0 -216
  104. package/skills/slates-prompting-ltx-2-5.md +0 -245
  105. package/skills/slates-prompting-minimax-h3.md +0 -383
  106. package/skills/slates-prompting-motion-transfer.md +0 -202
  107. package/skills/slates-prompting-nano-banana-2-1.md +0 -250
  108. package/skills/slates-prompting-omni-flash.md +0 -117
  109. package/skills/slates-prompting-seed-audio.md +0 -168
  110. package/skills/slates-prompting-seedance-2-5.md +0 -420
  111. package/skills/slates-prompting-seedance.md +0 -462
  112. package/skills/slates-prompting-seedream-5-lite.md +0 -122
  113. package/skills/slates-prompting-wan-3.md +0 -143
  114. package/skills/slates-restyle-from-blocking.md +0 -121
  115. package/skills/slates-script-craft.md +0 -45
  116. package/skills/slates-shot-variety.md +0 -24
  117. package/skills/slates-storyboard-from-script.md +0 -32
  118. package/skills/slates-style-prompting.md +0 -56
  119. package/skills/slates-transitions.md +0 -40
  120. package/skills/slates-ugc-influencer-ad.md +0 -32
  121. package/skills/slates-vision-feedback-loop.md +0 -118
@@ -41,6 +41,8 @@ export declare class OperationCancelledError extends Error {
41
41
  * Eric, 2026-10-23, after a Seedance test was prompted before its guide was
42
42
  * read: *"That needs to be a hard blocker."* Nothing was generated or charged.
43
43
  */
44
+ /** How a machine with no brain gets one: the desktop app signed in here writes it, or a CLI login fetches it. */
45
+ export declare const CONNECT_FOR_BRAIN = "Have the user open the Slates app signed in on this machine (it brings the brain here), or run `slates login`";
44
46
  export declare class GuideNotReadError extends Error {
45
47
  readonly model: string;
46
48
  readonly guide: string;
@@ -178,10 +180,11 @@ export declare const getWorkspaceState: Operation<{
178
180
  * up at request time. Exists so "make these into videos" needs no codes typed.
179
181
  */
180
182
  export declare const getSelection: Operation<Record<string, never>>;
181
- declare const SELECTION_TARGETS: readonly ["media", "board"];
183
+ declare const SELECTION_TARGETS: readonly ["media", "board", "timeline"];
182
184
  declare const SELECTION_MODES: readonly ["replace", "add", "remove", "clear", "all"];
183
185
  /**
184
- * SET what is selected, as the user's clicks do: the cards ticked in Media, the Shots ticked on the Board.
186
+ * SET what is selected, as the user's clicks do: the cards ticked in Media, the Shots ticked on the Board, the
187
+ * clips selected on the timeline (which also opens the Cut on them, scrolls to them and opens the Inspector).
185
188
  * Pairs with `slates_get_selection`, which reads it: "tick the shots with no clip, then price them" is this op
186
189
  * and then the quote. The desktop applies it through the stores the grids write and answers with what SETTLED.
187
190
  */
@@ -194,6 +197,7 @@ declare const VIEW_LENSES: readonly ["board", "media", "script"];
194
197
  declare const VIEW_CUT_SIDES: readonly ["bottom", "left", "right"];
195
198
  declare const VIEW_DOCK_SECTIONS: readonly ["storyboards", "library", "folders", "pinned"];
196
199
  declare const VIEW_WINDOW_LAYOUTS: readonly ["plan", "edit"];
200
+ declare const VIEW_VIEWER_MODES: readonly ["source", "timeline"];
197
201
  declare const VIEW_BOARD_LEVELS: readonly ["film", "scenes", "shot"];
198
202
  declare const VIEW_BOARD_FILTERS: readonly ["all", "with-clip", "without-clip"];
199
203
  declare const VIEW_MEDIA_TABS: readonly ["all", "images", "videos", "audio"];
@@ -203,11 +207,11 @@ declare const gridSelectionInput: z.ZodObject<{
203
207
  rowKeys: z.ZodArray<z.ZodString, "many">;
204
208
  aspects: z.ZodArray<z.ZodString, "many">;
205
209
  }, "strict", z.ZodTypeAny, {
206
- aspects: string[];
207
210
  rowKeys: string[];
208
- }, {
209
211
  aspects: string[];
212
+ }, {
210
213
  rowKeys: string[];
214
+ aspects: string[];
211
215
  }>;
212
216
  declare const deliveryInput: z.ZodObject<{
213
217
  formats: z.ZodArray<z.ZodString, "many">;
@@ -263,17 +267,17 @@ declare const gridBindingInput: z.ZodObject<{
263
267
  shotIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
264
268
  }, "strict", z.ZodTypeAny, {
265
269
  key: string;
266
- sectionId?: string | undefined;
267
- alternativeId?: string | undefined;
268
270
  label?: string | undefined;
269
271
  choicePosition?: number | undefined;
272
+ sectionId?: string | undefined;
273
+ alternativeId?: string | undefined;
270
274
  shotIds?: string[] | undefined;
271
275
  }, {
272
276
  key: string;
273
- sectionId?: string | undefined;
274
- alternativeId?: string | undefined;
275
277
  label?: string | undefined;
276
278
  choicePosition?: number | undefined;
279
+ sectionId?: string | undefined;
280
+ alternativeId?: string | undefined;
277
281
  shotIds?: string[] | undefined;
278
282
  }>>;
279
283
  body: z.ZodOptional<z.ZodObject<{
@@ -285,17 +289,17 @@ declare const gridBindingInput: z.ZodObject<{
285
289
  shotIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
286
290
  }, "strict", z.ZodTypeAny, {
287
291
  key: string;
288
- sectionId?: string | undefined;
289
- alternativeId?: string | undefined;
290
292
  label?: string | undefined;
291
293
  choicePosition?: number | undefined;
294
+ sectionId?: string | undefined;
295
+ alternativeId?: string | undefined;
292
296
  shotIds?: string[] | undefined;
293
297
  }, {
294
298
  key: string;
295
- sectionId?: string | undefined;
296
- alternativeId?: string | undefined;
297
299
  label?: string | undefined;
298
300
  choicePosition?: number | undefined;
301
+ sectionId?: string | undefined;
302
+ alternativeId?: string | undefined;
299
303
  shotIds?: string[] | undefined;
300
304
  }>>;
301
305
  endCard: z.ZodOptional<z.ZodObject<{
@@ -307,67 +311,67 @@ declare const gridBindingInput: z.ZodObject<{
307
311
  shotIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
308
312
  }, "strict", z.ZodTypeAny, {
309
313
  key: string;
310
- sectionId?: string | undefined;
311
- alternativeId?: string | undefined;
312
314
  label?: string | undefined;
313
315
  choicePosition?: number | undefined;
316
+ sectionId?: string | undefined;
317
+ alternativeId?: string | undefined;
314
318
  shotIds?: string[] | undefined;
315
319
  }, {
316
320
  key: string;
317
- sectionId?: string | undefined;
318
- alternativeId?: string | undefined;
319
321
  label?: string | undefined;
320
322
  choicePosition?: number | undefined;
323
+ sectionId?: string | undefined;
324
+ alternativeId?: string | undefined;
321
325
  shotIds?: string[] | undefined;
322
326
  }>>;
323
327
  }, "strict", z.ZodTypeAny, {
324
328
  hook?: {
325
329
  key: string;
326
- sectionId?: string | undefined;
327
- alternativeId?: string | undefined;
328
330
  label?: string | undefined;
329
331
  choicePosition?: number | undefined;
332
+ sectionId?: string | undefined;
333
+ alternativeId?: string | undefined;
330
334
  shotIds?: string[] | undefined;
331
335
  } | undefined;
332
336
  body?: {
333
337
  key: string;
334
- sectionId?: string | undefined;
335
- alternativeId?: string | undefined;
336
338
  label?: string | undefined;
337
339
  choicePosition?: number | undefined;
340
+ sectionId?: string | undefined;
341
+ alternativeId?: string | undefined;
338
342
  shotIds?: string[] | undefined;
339
343
  } | undefined;
340
344
  endCard?: {
341
345
  key: string;
342
- sectionId?: string | undefined;
343
- alternativeId?: string | undefined;
344
346
  label?: string | undefined;
345
347
  choicePosition?: number | undefined;
348
+ sectionId?: string | undefined;
349
+ alternativeId?: string | undefined;
346
350
  shotIds?: string[] | undefined;
347
351
  } | undefined;
348
352
  }, {
349
353
  hook?: {
350
354
  key: string;
351
- sectionId?: string | undefined;
352
- alternativeId?: string | undefined;
353
355
  label?: string | undefined;
354
356
  choicePosition?: number | undefined;
357
+ sectionId?: string | undefined;
358
+ alternativeId?: string | undefined;
355
359
  shotIds?: string[] | undefined;
356
360
  } | undefined;
357
361
  body?: {
358
362
  key: string;
359
- sectionId?: string | undefined;
360
- alternativeId?: string | undefined;
361
363
  label?: string | undefined;
362
364
  choicePosition?: number | undefined;
365
+ sectionId?: string | undefined;
366
+ alternativeId?: string | undefined;
363
367
  shotIds?: string[] | undefined;
364
368
  } | undefined;
365
369
  endCard?: {
366
370
  key: string;
367
- sectionId?: string | undefined;
368
- alternativeId?: string | undefined;
369
371
  label?: string | undefined;
370
372
  choicePosition?: number | undefined;
373
+ sectionId?: string | undefined;
374
+ alternativeId?: string | undefined;
371
375
  shotIds?: string[] | undefined;
372
376
  } | undefined;
373
377
  }>>;
@@ -378,26 +382,26 @@ declare const gridBindingInput: z.ZodObject<{
378
382
  slots?: {
379
383
  hook?: {
380
384
  key: string;
381
- sectionId?: string | undefined;
382
- alternativeId?: string | undefined;
383
385
  label?: string | undefined;
384
386
  choicePosition?: number | undefined;
387
+ sectionId?: string | undefined;
388
+ alternativeId?: string | undefined;
385
389
  shotIds?: string[] | undefined;
386
390
  } | undefined;
387
391
  body?: {
388
392
  key: string;
389
- sectionId?: string | undefined;
390
- alternativeId?: string | undefined;
391
393
  label?: string | undefined;
392
394
  choicePosition?: number | undefined;
395
+ sectionId?: string | undefined;
396
+ alternativeId?: string | undefined;
393
397
  shotIds?: string[] | undefined;
394
398
  } | undefined;
395
399
  endCard?: {
396
400
  key: string;
397
- sectionId?: string | undefined;
398
- alternativeId?: string | undefined;
399
401
  label?: string | undefined;
400
402
  choicePosition?: number | undefined;
403
+ sectionId?: string | undefined;
404
+ alternativeId?: string | undefined;
401
405
  shotIds?: string[] | undefined;
402
406
  } | undefined;
403
407
  } | undefined;
@@ -408,26 +412,26 @@ declare const gridBindingInput: z.ZodObject<{
408
412
  slots?: {
409
413
  hook?: {
410
414
  key: string;
411
- sectionId?: string | undefined;
412
- alternativeId?: string | undefined;
413
415
  label?: string | undefined;
414
416
  choicePosition?: number | undefined;
417
+ sectionId?: string | undefined;
418
+ alternativeId?: string | undefined;
415
419
  shotIds?: string[] | undefined;
416
420
  } | undefined;
417
421
  body?: {
418
422
  key: string;
419
- sectionId?: string | undefined;
420
- alternativeId?: string | undefined;
421
423
  label?: string | undefined;
422
424
  choicePosition?: number | undefined;
425
+ sectionId?: string | undefined;
426
+ alternativeId?: string | undefined;
423
427
  shotIds?: string[] | undefined;
424
428
  } | undefined;
425
429
  endCard?: {
426
430
  key: string;
427
- sectionId?: string | undefined;
428
- alternativeId?: string | undefined;
429
431
  label?: string | undefined;
430
432
  choicePosition?: number | undefined;
433
+ sectionId?: string | undefined;
434
+ alternativeId?: string | undefined;
431
435
  shotIds?: string[] | undefined;
432
436
  } | undefined;
433
437
  } | undefined;
@@ -506,7 +510,8 @@ export declare const setView: Operation<{
506
510
  categoryId: string | null;
507
511
  };
508
512
  viewer?: {
509
- assetId: string | null;
513
+ assetId?: string | null;
514
+ mode?: (typeof VIEW_VIEWER_MODES)[number];
510
515
  };
511
516
  compare?: {
512
517
  open?: boolean;
@@ -1166,6 +1171,19 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1166
1171
  version: z.ZodOptional<z.ZodLiteral<2>>;
1167
1172
  batchId: z.ZodOptional<z.ZodString>;
1168
1173
  exportRoot: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1174
+ variants: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1175
+ timelineId: z.ZodString;
1176
+ picks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1177
+ aspects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1178
+ }, "strict", z.ZodTypeAny, {
1179
+ timelineId: string;
1180
+ aspects?: string[] | undefined;
1181
+ picks?: Record<string, string[]> | undefined;
1182
+ }, {
1183
+ timelineId: string;
1184
+ aspects?: string[] | undefined;
1185
+ picks?: Record<string, string[]> | undefined;
1186
+ }>>>;
1169
1187
  copy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1170
1188
  destinationUrl: z.ZodOptional<z.ZodString>;
1171
1189
  primaryText: z.ZodOptional<z.ZodString>;
@@ -1205,7 +1223,7 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1205
1223
  projectId: string;
1206
1224
  directory?: string | undefined;
1207
1225
  manifestId?: string | undefined;
1208
- action?: "start" | "status" | "cancel" | undefined;
1226
+ action?: "status" | "start" | "cancel" | undefined;
1209
1227
  items?: ({
1210
1228
  timelineId: string;
1211
1229
  format: "mp4" | "xml";
@@ -1227,6 +1245,11 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1227
1245
  version?: 2 | undefined;
1228
1246
  batchId?: string | undefined;
1229
1247
  exportRoot?: string | undefined;
1248
+ variants?: {
1249
+ timelineId: string;
1250
+ aspects?: string[] | undefined;
1251
+ picks?: Record<string, string[]> | undefined;
1252
+ } | undefined;
1230
1253
  copy?: {
1231
1254
  destinationUrl?: string | undefined;
1232
1255
  primaryText?: string | undefined;
@@ -1243,7 +1266,7 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1243
1266
  projectId: string;
1244
1267
  directory?: string | undefined;
1245
1268
  manifestId?: string | undefined;
1246
- action?: "start" | "status" | "cancel" | undefined;
1269
+ action?: "status" | "start" | "cancel" | undefined;
1247
1270
  items?: ({
1248
1271
  timelineId: string;
1249
1272
  format: "mp4" | "xml";
@@ -1265,6 +1288,11 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1265
1288
  version?: 2 | undefined;
1266
1289
  batchId?: string | undefined;
1267
1290
  exportRoot?: string | undefined;
1291
+ variants?: {
1292
+ timelineId: string;
1293
+ aspects?: string[] | undefined;
1294
+ picks?: Record<string, string[]> | undefined;
1295
+ } | undefined;
1268
1296
  copy?: {
1269
1297
  destinationUrl?: string | undefined;
1270
1298
  primaryText?: string | undefined;
@@ -1281,7 +1309,7 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1281
1309
  projectId: string;
1282
1310
  directory?: string | undefined;
1283
1311
  manifestId?: string | undefined;
1284
- action?: "start" | "status" | "cancel" | undefined;
1312
+ action?: "status" | "start" | "cancel" | undefined;
1285
1313
  items?: ({
1286
1314
  timelineId: string;
1287
1315
  format: "mp4" | "xml";
@@ -1303,6 +1331,11 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1303
1331
  version?: 2 | undefined;
1304
1332
  batchId?: string | undefined;
1305
1333
  exportRoot?: string | undefined;
1334
+ variants?: {
1335
+ timelineId: string;
1336
+ aspects?: string[] | undefined;
1337
+ picks?: Record<string, string[]> | undefined;
1338
+ } | undefined;
1306
1339
  copy?: {
1307
1340
  destinationUrl?: string | undefined;
1308
1341
  primaryText?: string | undefined;
@@ -1319,7 +1352,7 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1319
1352
  projectId: string;
1320
1353
  directory?: string | undefined;
1321
1354
  manifestId?: string | undefined;
1322
- action?: "start" | "status" | "cancel" | undefined;
1355
+ action?: "status" | "start" | "cancel" | undefined;
1323
1356
  items?: ({
1324
1357
  timelineId: string;
1325
1358
  format: "mp4" | "xml";
@@ -1341,6 +1374,11 @@ declare const exportCutsInput: z.ZodEffects<z.ZodObject<{
1341
1374
  version?: 2 | undefined;
1342
1375
  batchId?: string | undefined;
1343
1376
  exportRoot?: string | undefined;
1377
+ variants?: {
1378
+ timelineId: string;
1379
+ aspects?: string[] | undefined;
1380
+ picks?: Record<string, string[]> | undefined;
1381
+ } | undefined;
1344
1382
  copy?: {
1345
1383
  destinationUrl?: string | undefined;
1346
1384
  primaryText?: string | undefined;
@@ -1367,6 +1405,204 @@ export declare const cancelExportBatch: Operation<{
1367
1405
  export declare const getVariantGrid: Operation<{
1368
1406
  projectId: string;
1369
1407
  }>;
1408
+ declare const getVariantsInput: z.ZodObject<{
1409
+ projectId: z.ZodString;
1410
+ timelineId: z.ZodString;
1411
+ grid: z.ZodOptional<z.ZodObject<{
1412
+ picks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1413
+ aspects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1414
+ }, "strict", z.ZodTypeAny, {
1415
+ aspects?: string[] | undefined;
1416
+ picks?: Record<string, string[]> | undefined;
1417
+ }, {
1418
+ aspects?: string[] | undefined;
1419
+ picks?: Record<string, string[]> | undefined;
1420
+ }>>;
1421
+ }, "strict", z.ZodTypeAny, {
1422
+ projectId: string;
1423
+ timelineId: string;
1424
+ grid?: {
1425
+ aspects?: string[] | undefined;
1426
+ picks?: Record<string, string[]> | undefined;
1427
+ } | undefined;
1428
+ }, {
1429
+ projectId: string;
1430
+ timelineId: string;
1431
+ grid?: {
1432
+ aspects?: string[] | undefined;
1433
+ picks?: Record<string, string[]> | undefined;
1434
+ } | undefined;
1435
+ }>;
1436
+ export declare const getVariants: Operation<z.infer<typeof getVariantsInput>>;
1437
+ declare const variantSlotsInput: z.ZodObject<{
1438
+ projectId: z.ZodString;
1439
+ action: z.ZodEnum<["add", "update", "remove", "add-alternative", "update-alternative", "remove-alternative"]>;
1440
+ timelineId: z.ZodOptional<z.ZodString>;
1441
+ slotId: z.ZodOptional<z.ZodString>;
1442
+ slotName: z.ZodOptional<z.ZodString>;
1443
+ alternativeId: z.ZodOptional<z.ZodString>;
1444
+ name: z.ZodOptional<z.ZodString>;
1445
+ at: z.ZodOptional<z.ZodNumber>;
1446
+ orderIndex: z.ZodOptional<z.ZodNumber>;
1447
+ bedFrame: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1448
+ clipIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1449
+ sequenceId: z.ZodOptional<z.ZodString>;
1450
+ }, "strict", z.ZodTypeAny, {
1451
+ projectId: string;
1452
+ action: "add" | "remove" | "update" | "add-alternative" | "update-alternative" | "remove-alternative";
1453
+ at?: number | undefined;
1454
+ name?: string | undefined;
1455
+ alternativeId?: string | undefined;
1456
+ timelineId?: string | undefined;
1457
+ slotId?: string | undefined;
1458
+ slotName?: string | undefined;
1459
+ orderIndex?: number | undefined;
1460
+ bedFrame?: number | null | undefined;
1461
+ clipIds?: string[] | undefined;
1462
+ sequenceId?: string | undefined;
1463
+ }, {
1464
+ projectId: string;
1465
+ action: "add" | "remove" | "update" | "add-alternative" | "update-alternative" | "remove-alternative";
1466
+ at?: number | undefined;
1467
+ name?: string | undefined;
1468
+ alternativeId?: string | undefined;
1469
+ timelineId?: string | undefined;
1470
+ slotId?: string | undefined;
1471
+ slotName?: string | undefined;
1472
+ orderIndex?: number | undefined;
1473
+ bedFrame?: number | null | undefined;
1474
+ clipIds?: string[] | undefined;
1475
+ sequenceId?: string | undefined;
1476
+ }>;
1477
+ export declare const editVariantSlots: Operation<z.infer<typeof variantSlotsInput>>;
1478
+ declare const variantsInput: z.ZodObject<{
1479
+ projectId: z.ZodString;
1480
+ action: z.ZodEnum<["add", "update", "remove", "rebuild"]>;
1481
+ timelineId: z.ZodOptional<z.ZodString>;
1482
+ variantId: z.ZodOptional<z.ZodString>;
1483
+ combinations: z.ZodOptional<z.ZodBoolean>;
1484
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
1485
+ name: z.ZodOptional<z.ZodString>;
1486
+ choices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1487
+ seams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodObject<{
1488
+ kind: z.ZodLiteral<"cut">;
1489
+ frames: z.ZodOptional<z.ZodNumber>;
1490
+ }, "strict", z.ZodTypeAny, {
1491
+ kind: "cut";
1492
+ frames?: number | undefined;
1493
+ }, {
1494
+ kind: "cut";
1495
+ frames?: number | undefined;
1496
+ }>, z.ZodObject<{
1497
+ kind: z.ZodEnum<["j", "l", "crossfade"]>;
1498
+ frames: z.ZodNumber;
1499
+ }, "strict", z.ZodTypeAny, {
1500
+ kind: "j" | "l" | "crossfade";
1501
+ frames: number;
1502
+ }, {
1503
+ kind: "j" | "l" | "crossfade";
1504
+ frames: number;
1505
+ }>]>>>;
1506
+ }, "strict", z.ZodTypeAny, {
1507
+ name?: string | undefined;
1508
+ choices?: Record<string, string> | undefined;
1509
+ seams?: Record<string, "auto" | {
1510
+ kind: "cut";
1511
+ frames?: number | undefined;
1512
+ } | {
1513
+ kind: "j" | "l" | "crossfade";
1514
+ frames: number;
1515
+ }> | undefined;
1516
+ }, {
1517
+ name?: string | undefined;
1518
+ choices?: Record<string, string> | undefined;
1519
+ seams?: Record<string, "auto" | {
1520
+ kind: "cut";
1521
+ frames?: number | undefined;
1522
+ } | {
1523
+ kind: "j" | "l" | "crossfade";
1524
+ frames: number;
1525
+ }> | undefined;
1526
+ }>, "many">>;
1527
+ name: z.ZodOptional<z.ZodString>;
1528
+ choices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1529
+ seams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodObject<{
1530
+ kind: z.ZodLiteral<"cut">;
1531
+ frames: z.ZodOptional<z.ZodNumber>;
1532
+ }, "strict", z.ZodTypeAny, {
1533
+ kind: "cut";
1534
+ frames?: number | undefined;
1535
+ }, {
1536
+ kind: "cut";
1537
+ frames?: number | undefined;
1538
+ }>, z.ZodObject<{
1539
+ kind: z.ZodEnum<["j", "l", "crossfade"]>;
1540
+ frames: z.ZodNumber;
1541
+ }, "strict", z.ZodTypeAny, {
1542
+ kind: "j" | "l" | "crossfade";
1543
+ frames: number;
1544
+ }, {
1545
+ kind: "j" | "l" | "crossfade";
1546
+ frames: number;
1547
+ }>]>>>;
1548
+ }, "strict", z.ZodTypeAny, {
1549
+ projectId: string;
1550
+ action: "add" | "remove" | "update" | "rebuild";
1551
+ name?: string | undefined;
1552
+ timelineId?: string | undefined;
1553
+ variantId?: string | undefined;
1554
+ combinations?: boolean | undefined;
1555
+ choices?: Record<string, string> | undefined;
1556
+ seams?: Record<string, "auto" | {
1557
+ kind: "cut";
1558
+ frames?: number | undefined;
1559
+ } | {
1560
+ kind: "j" | "l" | "crossfade";
1561
+ frames: number;
1562
+ }> | undefined;
1563
+ rows?: {
1564
+ name?: string | undefined;
1565
+ choices?: Record<string, string> | undefined;
1566
+ seams?: Record<string, "auto" | {
1567
+ kind: "cut";
1568
+ frames?: number | undefined;
1569
+ } | {
1570
+ kind: "j" | "l" | "crossfade";
1571
+ frames: number;
1572
+ }> | undefined;
1573
+ }[] | undefined;
1574
+ }, {
1575
+ projectId: string;
1576
+ action: "add" | "remove" | "update" | "rebuild";
1577
+ name?: string | undefined;
1578
+ timelineId?: string | undefined;
1579
+ variantId?: string | undefined;
1580
+ combinations?: boolean | undefined;
1581
+ choices?: Record<string, string> | undefined;
1582
+ seams?: Record<string, "auto" | {
1583
+ kind: "cut";
1584
+ frames?: number | undefined;
1585
+ } | {
1586
+ kind: "j" | "l" | "crossfade";
1587
+ frames: number;
1588
+ }> | undefined;
1589
+ rows?: {
1590
+ name?: string | undefined;
1591
+ choices?: Record<string, string> | undefined;
1592
+ seams?: Record<string, "auto" | {
1593
+ kind: "cut";
1594
+ frames?: number | undefined;
1595
+ } | {
1596
+ kind: "j" | "l" | "crossfade";
1597
+ frames: number;
1598
+ }> | undefined;
1599
+ }[] | undefined;
1600
+ }>;
1601
+ export declare const editVariants: Operation<z.infer<typeof variantsInput>>;
1602
+ export declare const getRecipe: Operation<{
1603
+ recipe: string;
1604
+ projectId?: string;
1605
+ }>;
1370
1606
  declare const reframeReportInput: z.ZodObject<{
1371
1607
  projectId: z.ZodString;
1372
1608
  timelineId: z.ZodString;
@@ -1442,6 +1678,35 @@ export declare const getTimeline: Operation<{
1442
1678
  projectId: string;
1443
1679
  timelineId?: string;
1444
1680
  }>;
1681
+ declare const loudnessInput: z.ZodObject<{
1682
+ projectId: z.ZodString;
1683
+ timelineId: z.ZodOptional<z.ZodString>;
1684
+ fromSec: z.ZodOptional<z.ZodNumber>;
1685
+ toSec: z.ZodOptional<z.ZodNumber>;
1686
+ trackId: z.ZodOptional<z.ZodString>;
1687
+ }, "strip", z.ZodTypeAny, {
1688
+ projectId: string;
1689
+ timelineId?: string | undefined;
1690
+ fromSec?: number | undefined;
1691
+ toSec?: number | undefined;
1692
+ trackId?: string | undefined;
1693
+ }, {
1694
+ projectId: string;
1695
+ timelineId?: string | undefined;
1696
+ fromSec?: number | undefined;
1697
+ toSec?: number | undefined;
1698
+ trackId?: string | undefined;
1699
+ }>;
1700
+ export declare const getTimelineLoudness: Operation<z.infer<typeof loudnessInput>>;
1701
+ declare const SOUND_CURVES: readonly ["equal-power", "linear"];
1702
+ declare const AUDIO_BITRATES: readonly [128, 192, 256, 320];
1703
+ type SoundEdges = {
1704
+ startSec?: number;
1705
+ sourceInSec?: number;
1706
+ sourceOutSec?: number;
1707
+ sourceInSample?: number;
1708
+ sourceOutSample?: number;
1709
+ };
1445
1710
  export declare const addClipToTimeline: Operation<{
1446
1711
  projectId: string;
1447
1712
  timelineId?: string;
@@ -1450,7 +1715,7 @@ export declare const addClipToTimeline: Operation<{
1450
1715
  startFrame?: number;
1451
1716
  sourceInFrame?: number;
1452
1717
  sourceOutFrame?: number;
1453
- }>;
1718
+ } & SoundEdges>;
1454
1719
  export declare const reorderClips: Operation<{
1455
1720
  trackId: string;
1456
1721
  clipIds: string[];
@@ -1460,6 +1725,10 @@ export declare const removeClip: Operation<{
1460
1725
  ripple?: boolean;
1461
1726
  projectId?: string;
1462
1727
  }>;
1728
+ type TransitionSound = {
1729
+ durationMs?: number;
1730
+ curve?: typeof SOUND_CURVES[number];
1731
+ };
1463
1732
  export declare const addTransition: Operation<{
1464
1733
  projectId: string;
1465
1734
  fromClipId?: string;
@@ -1471,7 +1740,7 @@ export declare const addTransition: Operation<{
1471
1740
  durationSec?: number;
1472
1741
  alignment?: 'center' | 'start' | 'end';
1473
1742
  params?: Record<string, unknown>;
1474
- }>;
1743
+ } & TransitionSound>;
1475
1744
  export declare const updateTransition: Operation<{
1476
1745
  projectId: string;
1477
1746
  transitionId: string;
@@ -1481,7 +1750,7 @@ export declare const updateTransition: Operation<{
1481
1750
  durationSec?: number;
1482
1751
  alignment?: 'center' | 'start' | 'end';
1483
1752
  params?: Record<string, unknown>;
1484
- }>;
1753
+ } & TransitionSound>;
1485
1754
  export declare const removeTransition: Operation<{
1486
1755
  projectId: string;
1487
1756
  transitionId: string;
@@ -1501,6 +1770,106 @@ export declare const editTimelineClips: Operation<{
1501
1770
  timelineId?: string;
1502
1771
  mode?: 'overwrite' | 'ripple' | 'roll' | 'insert';
1503
1772
  }>;
1773
+ declare const keyframeKeys: z.ZodArray<z.ZodObject<{
1774
+ frame: z.ZodNumber;
1775
+ value: z.ZodNumber;
1776
+ easing: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["linear", "ease", "ease-in", "ease-out", "ease-in-out", "hold"]>, z.ZodObject<{
1777
+ cubicBezier: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
1778
+ }, "strict", z.ZodTypeAny, {
1779
+ cubicBezier: [number, number, number, number];
1780
+ }, {
1781
+ cubicBezier: [number, number, number, number];
1782
+ }>]>>;
1783
+ }, "strict", z.ZodTypeAny, {
1784
+ value: number;
1785
+ frame: number;
1786
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1787
+ cubicBezier: [number, number, number, number];
1788
+ } | undefined;
1789
+ }, {
1790
+ value: number;
1791
+ frame: number;
1792
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1793
+ cubicBezier: [number, number, number, number];
1794
+ } | undefined;
1795
+ }>, "many">;
1796
+ declare const keyframeList: z.ZodArray<z.ZodObject<{
1797
+ frame: z.ZodNumber;
1798
+ value: z.ZodNumber;
1799
+ easing: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["linear", "ease", "ease-in", "ease-out", "ease-in-out", "hold"]>, z.ZodObject<{
1800
+ cubicBezier: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
1801
+ }, "strict", z.ZodTypeAny, {
1802
+ cubicBezier: [number, number, number, number];
1803
+ }, {
1804
+ cubicBezier: [number, number, number, number];
1805
+ }>]>>;
1806
+ }, "strict", z.ZodTypeAny, {
1807
+ value: number;
1808
+ frame: number;
1809
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1810
+ cubicBezier: [number, number, number, number];
1811
+ } | undefined;
1812
+ }, {
1813
+ value: number;
1814
+ frame: number;
1815
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1816
+ cubicBezier: [number, number, number, number];
1817
+ } | undefined;
1818
+ }>, "many">;
1819
+ /** An effect list as the desktop stores it (`slate/src/shared/audioEffects.ts`); slates_get_timeline's audioEffects lists each type's parameters and ranges. */
1820
+ declare const audioEffectList: z.ZodArray<z.ZodObject<{
1821
+ id: z.ZodOptional<z.ZodString>;
1822
+ type: z.ZodEnum<["volume", "eq"]>;
1823
+ bypass: z.ZodOptional<z.ZodBoolean>;
1824
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1825
+ keyframes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1826
+ frame: z.ZodNumber;
1827
+ value: z.ZodNumber;
1828
+ easing: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["linear", "ease", "ease-in", "ease-out", "ease-in-out", "hold"]>, z.ZodObject<{
1829
+ cubicBezier: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
1830
+ }, "strict", z.ZodTypeAny, {
1831
+ cubicBezier: [number, number, number, number];
1832
+ }, {
1833
+ cubicBezier: [number, number, number, number];
1834
+ }>]>>;
1835
+ }, "strict", z.ZodTypeAny, {
1836
+ value: number;
1837
+ frame: number;
1838
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1839
+ cubicBezier: [number, number, number, number];
1840
+ } | undefined;
1841
+ }, {
1842
+ value: number;
1843
+ frame: number;
1844
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1845
+ cubicBezier: [number, number, number, number];
1846
+ } | undefined;
1847
+ }>, "many">>>;
1848
+ }, "strict", z.ZodTypeAny, {
1849
+ type: "volume" | "eq";
1850
+ id?: string | undefined;
1851
+ params?: Record<string, number> | undefined;
1852
+ bypass?: boolean | undefined;
1853
+ keyframes?: Record<string, {
1854
+ value: number;
1855
+ frame: number;
1856
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1857
+ cubicBezier: [number, number, number, number];
1858
+ } | undefined;
1859
+ }[]> | undefined;
1860
+ }, {
1861
+ type: "volume" | "eq";
1862
+ id?: string | undefined;
1863
+ params?: Record<string, number> | undefined;
1864
+ bypass?: boolean | undefined;
1865
+ keyframes?: Record<string, {
1866
+ value: number;
1867
+ frame: number;
1868
+ easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1869
+ cubicBezier: [number, number, number, number];
1870
+ } | undefined;
1871
+ }[]> | undefined;
1872
+ }>, "many">;
1504
1873
  export declare const updateClip: Operation<{
1505
1874
  projectId: string;
1506
1875
  clipId: string;
@@ -1516,8 +1885,11 @@ export declare const updateClip: Operation<{
1516
1885
  grain?: number;
1517
1886
  saturation?: number;
1518
1887
  } | null;
1888
+ effects?: z.infer<typeof audioEffectList> | null;
1889
+ speedRamp?: z.infer<typeof keyframeKeys> | null;
1890
+ speedSound?: 'tape' | 'keep-pitch' | null;
1519
1891
  ripple?: boolean;
1520
- }>;
1892
+ } & SoundEdges>;
1521
1893
  export declare const manageTimelineMarker: Operation<{
1522
1894
  action: 'create' | 'update' | 'delete';
1523
1895
  projectId: string;
@@ -1533,27 +1905,43 @@ export declare const addTimelineTrack: Operation<{
1533
1905
  type?: 'video' | 'audio' | 'overlay';
1534
1906
  name?: string;
1535
1907
  }>;
1536
- declare const TEXT_STYLE_IDS: readonly ["word-pop", "keyword", "subtitle", "headline", "clean"];
1908
+ declare const TEXT_STYLE_IDS: readonly ["word-pop", "keyword", "subtitle", "headline", "clean", "plain"];
1909
+ declare const TEXT_FONT_IDS: readonly ["bebas-neue", "montserrat-medium", "montserrat-bold", "montserrat-extrabold", "montserrat-black", "geist-regular", "geist-medium", "geist-semibold", "geist-bold"];
1910
+ type TextSet = {
1911
+ font?: (typeof TEXT_FONT_IDS)[number];
1912
+ fontSize?: number;
1913
+ pictureAssetId?: string;
1914
+ pictureHeight?: number;
1915
+ pictureGap?: number;
1916
+ line?: {
1917
+ name: string;
1918
+ place?: number;
1919
+ };
1920
+ gap?: number;
1921
+ };
1922
+ type TextSetPatch = {
1923
+ [K in keyof TextSet]?: TextSet[K] | null;
1924
+ };
1537
1925
  declare const overlayWordsInput: z.ZodArray<z.ZodEffects<z.ZodObject<{
1538
1926
  text: z.ZodString;
1539
1927
  start: z.ZodNumber;
1540
1928
  end: z.ZodNumber;
1541
1929
  }, "strict", z.ZodTypeAny, {
1930
+ text: string;
1542
1931
  start: number;
1543
1932
  end: number;
1544
- text: string;
1545
1933
  }, {
1934
+ text: string;
1546
1935
  start: number;
1547
1936
  end: number;
1548
- text: string;
1549
1937
  }>, {
1938
+ text: string;
1550
1939
  start: number;
1551
1940
  end: number;
1552
- text: string;
1553
1941
  }, {
1942
+ text: string;
1554
1943
  start: number;
1555
1944
  end: number;
1556
- text: string;
1557
1945
  }>, "many">;
1558
1946
  export declare const addTextClip: Operation<{
1559
1947
  projectId: string;
@@ -1571,7 +1959,7 @@ export declare const addTextClip: Operation<{
1571
1959
  durationSec?: number;
1572
1960
  endFrame?: number;
1573
1961
  trackId?: string;
1574
- })[];
1962
+ } & TextSet)[];
1575
1963
  }>;
1576
1964
  export declare const addImageOverlay: Operation<{
1577
1965
  projectId: string;
@@ -1602,32 +1990,9 @@ export declare const updateOverlayClip: Operation<{
1602
1990
  color?: string | null;
1603
1991
  width?: number | null;
1604
1992
  opacity?: number | null;
1605
- })[];
1993
+ } & TextSetPatch)[];
1606
1994
  }>;
1607
1995
  declare const KEYFRAME_PROPERTY_IDS: readonly ["positionX", "positionY", "scale", "rotation", "opacity", "cropLeft", "cropTop", "cropRight", "cropBottom", "focusX", "focusY", "zoom"];
1608
- declare const keyframeList: z.ZodArray<z.ZodObject<{
1609
- frame: z.ZodNumber;
1610
- value: z.ZodNumber;
1611
- easing: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["linear", "ease", "ease-in", "ease-out", "ease-in-out", "hold"]>, z.ZodObject<{
1612
- cubicBezier: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
1613
- }, "strict", z.ZodTypeAny, {
1614
- cubicBezier: [number, number, number, number];
1615
- }, {
1616
- cubicBezier: [number, number, number, number];
1617
- }>]>>;
1618
- }, "strict", z.ZodTypeAny, {
1619
- value: number;
1620
- frame: number;
1621
- easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1622
- cubicBezier: [number, number, number, number];
1623
- } | undefined;
1624
- }, {
1625
- value: number;
1626
- frame: number;
1627
- easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "hold" | {
1628
- cubicBezier: [number, number, number, number];
1629
- } | undefined;
1630
- }>, "many">;
1631
1996
  export declare const setClipKeyframes: Operation<{
1632
1997
  projectId: string;
1633
1998
  timelineId: string;
@@ -1683,6 +2048,7 @@ export declare const updateTimelineTrack: Operation<{
1683
2048
  muted?: boolean;
1684
2049
  locked?: boolean;
1685
2050
  volume?: number;
2051
+ effects?: z.infer<typeof audioEffectList> | null;
1686
2052
  }>;
1687
2053
  export declare const removeTimelineTrack: Operation<{
1688
2054
  projectId: string;
@@ -1695,6 +2061,8 @@ export declare const updateTimelineSettings: Operation<{
1695
2061
  height?: number;
1696
2062
  frameRate?: 24 | 30 | 60;
1697
2063
  masterVolume?: number;
2064
+ effects?: z.infer<typeof audioEffectList> | null;
2065
+ audioBitrate?: typeof AUDIO_BITRATES[number] | null;
1698
2066
  } & CutOptions>;
1699
2067
  export declare const exportVideo: Operation<{
1700
2068
  projectId?: string;
@@ -1702,6 +2070,7 @@ export declare const exportVideo: Operation<{
1702
2070
  outputPath: string;
1703
2071
  overwrite?: boolean;
1704
2072
  aspect?: string;
2073
+ audioBitrate?: typeof AUDIO_BITRATES[number];
1705
2074
  }>;
1706
2075
  export declare const exportTimelineXml: Operation<{
1707
2076
  projectId?: string;
@@ -1802,6 +2171,8 @@ export declare const updateLibraryItem: Operation<{
1802
2171
  retagShots?: boolean;
1803
2172
  imageAssetId?: string | null;
1804
2173
  voiceAssetId?: string | null;
2174
+ extraAssetIds?: string[];
2175
+ palette?: string[];
1805
2176
  }>;
1806
2177
  export declare const deleteLibraryItem: Operation<{
1807
2178
  itemId: string;
@@ -1841,6 +2212,50 @@ export declare const importTemplate: Operation<{
1841
2212
  swaps?: Record<string, string>;
1842
2213
  useTemplateCategories?: boolean;
1843
2214
  }>;
2215
+ export declare const getReferenceBreakdown: Operation<{
2216
+ projectId: string;
2217
+ assetId: string;
2218
+ }>;
2219
+ export declare const breakDownReference: Operation<{
2220
+ projectId: string;
2221
+ assetId?: string;
2222
+ filePath?: string;
2223
+ url?: string;
2224
+ build?: boolean;
2225
+ transcribe?: boolean;
2226
+ name?: string;
2227
+ model?: string;
2228
+ cuts?: Array<{
2229
+ index: number;
2230
+ description?: string;
2231
+ onScreenText?: string;
2232
+ }>;
2233
+ sections?: Array<{
2234
+ label: string;
2235
+ fromCut: number;
2236
+ }>;
2237
+ roles?: Array<{
2238
+ name: string;
2239
+ kind?: 'person' | 'location' | 'product';
2240
+ itemId?: string;
2241
+ cuts: number[];
2242
+ }>;
2243
+ jobId?: string;
2244
+ cancel?: boolean;
2245
+ }>;
2246
+ export declare const getProductPage: Operation<{
2247
+ url: string;
2248
+ }>;
2249
+ export declare const importProduct: Operation<{
2250
+ projectId: string;
2251
+ url?: string;
2252
+ html?: string;
2253
+ filePaths?: string[];
2254
+ name?: string;
2255
+ categoryId?: string;
2256
+ brand?: boolean;
2257
+ maxPictures?: number;
2258
+ }>;
1844
2259
  export declare const updateStoryboard: Operation<{
1845
2260
  storyboardId: string;
1846
2261
  name?: string;
@@ -2038,13 +2453,13 @@ declare const variationSchema: z.ZodObject<{
2038
2453
  to: z.ZodString;
2039
2454
  voice: z.ZodEnum<["keep", "replace"]>;
2040
2455
  }, "strip", z.ZodTypeAny, {
2456
+ voice: "replace" | "keep";
2041
2457
  from: string;
2042
2458
  to: string;
2043
- voice: "keep" | "replace";
2044
2459
  }, {
2460
+ voice: "replace" | "keep";
2045
2461
  from: string;
2046
2462
  to: string;
2047
- voice: "keep" | "replace";
2048
2463
  }>, "many">>;
2049
2464
  assetOverrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
2050
2465
  from: z.ZodString;
@@ -2060,19 +2475,19 @@ declare const variationSchema: z.ZodObject<{
2060
2475
  }, "strip", z.ZodTypeAny, {
2061
2476
  name: string;
2062
2477
  storyboardId: string;
2063
- expectedRevision: number;
2064
2478
  choices: {
2065
2479
  sectionId: string;
2066
2480
  alternativeId: string;
2067
2481
  }[];
2482
+ expectedRevision: number;
2068
2483
  arrangement?: {
2069
2484
  sectionId: string;
2070
2485
  alternativeId: string;
2071
2486
  }[] | undefined;
2072
2487
  itemOverrides?: {
2488
+ voice: "replace" | "keep";
2073
2489
  from: string;
2074
2490
  to: string;
2075
- voice: "keep" | "replace";
2076
2491
  }[] | undefined;
2077
2492
  assetOverrides?: {
2078
2493
  from: string;
@@ -2082,19 +2497,19 @@ declare const variationSchema: z.ZodObject<{
2082
2497
  }, {
2083
2498
  name: string;
2084
2499
  storyboardId: string;
2085
- expectedRevision: number;
2086
2500
  choices: {
2087
2501
  sectionId: string;
2088
2502
  alternativeId: string;
2089
2503
  }[];
2504
+ expectedRevision: number;
2090
2505
  arrangement?: {
2091
2506
  sectionId: string;
2092
2507
  alternativeId: string;
2093
2508
  }[] | undefined;
2094
2509
  itemOverrides?: {
2510
+ voice: "replace" | "keep";
2095
2511
  from: string;
2096
2512
  to: string;
2097
- voice: "keep" | "replace";
2098
2513
  }[] | undefined;
2099
2514
  assetOverrides?: {
2100
2515
  from: string;
@@ -2134,80 +2549,80 @@ declare const sectionInput: z.ZodObject<{
2134
2549
  expectedRevision: z.ZodNumber;
2135
2550
  }, "strip", z.ZodTypeAny, {
2136
2551
  at: number;
2137
- expectedRevision: number;
2138
2552
  sceneId: string;
2553
+ expectedRevision: number;
2139
2554
  }, {
2140
2555
  at: number;
2141
- expectedRevision: number;
2142
2556
  sceneId: string;
2557
+ expectedRevision: number;
2143
2558
  }>>;
2144
2559
  uses: z.ZodOptional<z.ZodArray<z.ZodObject<{
2145
2560
  sectionId: z.ZodString;
2146
2561
  expectedRevision: z.ZodNumber;
2147
2562
  }, "strip", z.ZodTypeAny, {
2148
- expectedRevision: number;
2149
2563
  sectionId: string;
2150
- }, {
2151
2564
  expectedRevision: number;
2565
+ }, {
2152
2566
  sectionId: string;
2567
+ expectedRevision: number;
2153
2568
  }>, "many">>;
2154
2569
  fragments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2155
2570
  sceneId: z.ZodString;
2156
2571
  start: z.ZodNumber;
2157
2572
  end: z.ZodNumber;
2158
2573
  }, "strip", z.ZodTypeAny, {
2159
- start: number;
2160
2574
  sceneId: string;
2575
+ start: number;
2161
2576
  end: number;
2162
2577
  }, {
2163
- start: number;
2164
2578
  sceneId: string;
2579
+ start: number;
2165
2580
  end: number;
2166
2581
  }>, "many">>;
2167
2582
  }, "strip", z.ZodTypeAny, {
2168
- action: "create" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "rename" | "archive" | "tags";
2169
2583
  storyboardId: string;
2584
+ action: "tags" | "create" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
2170
2585
  expectedRevision: number;
2171
- sectionId?: string | undefined;
2172
- alternativeId?: string | undefined;
2173
- tags?: string[] | undefined;
2174
- parentId?: string | undefined;
2175
- label?: string | undefined;
2176
2586
  target?: {
2177
2587
  at: number;
2178
- expectedRevision: number;
2179
2588
  sceneId: string;
2589
+ expectedRevision: number;
2180
2590
  } | undefined;
2591
+ label?: string | undefined;
2592
+ sectionId?: string | undefined;
2593
+ alternativeId?: string | undefined;
2594
+ tags?: string[] | undefined;
2595
+ parentId?: string | undefined;
2181
2596
  uses?: {
2182
- expectedRevision: number;
2183
2597
  sectionId: string;
2598
+ expectedRevision: number;
2184
2599
  }[] | undefined;
2185
2600
  fragments?: {
2186
- start: number;
2187
2601
  sceneId: string;
2602
+ start: number;
2188
2603
  end: number;
2189
2604
  }[] | undefined;
2190
2605
  }, {
2191
- action: "create" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "rename" | "archive" | "tags";
2192
2606
  storyboardId: string;
2607
+ action: "tags" | "create" | "rename" | "alternative" | "choose" | "save" | "reuse" | "updateUses" | "archive";
2193
2608
  expectedRevision: number;
2194
- sectionId?: string | undefined;
2195
- alternativeId?: string | undefined;
2196
- tags?: string[] | undefined;
2197
- parentId?: string | undefined;
2198
- label?: string | undefined;
2199
2609
  target?: {
2200
2610
  at: number;
2201
- expectedRevision: number;
2202
2611
  sceneId: string;
2612
+ expectedRevision: number;
2203
2613
  } | undefined;
2614
+ label?: string | undefined;
2615
+ sectionId?: string | undefined;
2616
+ alternativeId?: string | undefined;
2617
+ tags?: string[] | undefined;
2618
+ parentId?: string | undefined;
2204
2619
  uses?: {
2205
- expectedRevision: number;
2206
2620
  sectionId: string;
2621
+ expectedRevision: number;
2207
2622
  }[] | undefined;
2208
2623
  fragments?: {
2209
- start: number;
2210
2624
  sceneId: string;
2625
+ start: number;
2211
2626
  end: number;
2212
2627
  }[] | undefined;
2213
2628
  }>;
@@ -2227,15 +2642,15 @@ declare const suggestionInput: z.ZodObject<{
2227
2642
  replacement: z.ZodString;
2228
2643
  note: z.ZodOptional<z.ZodString>;
2229
2644
  }, "strip", z.ZodTypeAny, {
2230
- start: number;
2231
2645
  sceneId: string;
2646
+ start: number;
2232
2647
  end: number;
2233
2648
  original: string;
2234
2649
  replacement: string;
2235
2650
  note?: string | undefined;
2236
2651
  }, {
2237
- start: number;
2238
2652
  sceneId: string;
2653
+ start: number;
2239
2654
  end: number;
2240
2655
  original: string;
2241
2656
  replacement: string;
@@ -2243,12 +2658,12 @@ declare const suggestionInput: z.ZodObject<{
2243
2658
  }>, "many">>;
2244
2659
  suggestionId: z.ZodOptional<z.ZodString>;
2245
2660
  }, "strip", z.ZodTypeAny, {
2246
- action: "create" | "accept" | "dismiss";
2247
2661
  storyboardId: string;
2662
+ action: "create" | "accept" | "dismiss";
2248
2663
  expectedRevision: number;
2249
2664
  suggestions?: {
2250
- start: number;
2251
2665
  sceneId: string;
2666
+ start: number;
2252
2667
  end: number;
2253
2668
  original: string;
2254
2669
  replacement: string;
@@ -2256,12 +2671,12 @@ declare const suggestionInput: z.ZodObject<{
2256
2671
  }[] | undefined;
2257
2672
  suggestionId?: string | undefined;
2258
2673
  }, {
2259
- action: "create" | "accept" | "dismiss";
2260
2674
  storyboardId: string;
2675
+ action: "create" | "accept" | "dismiss";
2261
2676
  expectedRevision: number;
2262
2677
  suggestions?: {
2263
- start: number;
2264
2678
  sceneId: string;
2679
+ start: number;
2265
2680
  end: number;
2266
2681
  original: string;
2267
2682
  replacement: string;
@@ -2283,14 +2698,14 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2283
2698
  text: z.ZodString;
2284
2699
  }, "strip", z.ZodTypeAny, {
2285
2700
  at: number;
2701
+ text: string;
2286
2702
  sceneId: string;
2287
2703
  removed: number;
2288
- text: string;
2289
2704
  }, {
2290
2705
  at: number;
2706
+ text: string;
2291
2707
  sceneId: string;
2292
2708
  removed: number;
2293
- text: string;
2294
2709
  }>, "many">;
2295
2710
  structures: z.ZodOptional<z.ZodArray<z.ZodObject<{
2296
2711
  sceneId: z.ZodString;
@@ -2306,34 +2721,34 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2306
2721
  end: z.ZodNumber;
2307
2722
  type: z.ZodEnum<["strong", "em"]>;
2308
2723
  }, "strip", z.ZodTypeAny, {
2309
- start: number;
2310
2724
  type: "strong" | "em";
2725
+ start: number;
2311
2726
  end: number;
2312
2727
  }, {
2313
- start: number;
2314
2728
  type: "strong" | "em";
2729
+ start: number;
2315
2730
  end: number;
2316
2731
  }>, "many">;
2317
2732
  }, "strip", z.ZodTypeAny, {
2318
- start: number;
2319
- end: number;
2320
2733
  id: string;
2321
2734
  kind: "paragraph" | "heading" | "direction";
2735
+ start: number;
2736
+ end: number;
2322
2737
  marks: {
2323
- start: number;
2324
2738
  type: "strong" | "em";
2739
+ start: number;
2325
2740
  end: number;
2326
2741
  }[];
2327
2742
  level?: 2 | 3 | undefined;
2328
2743
  label?: string | undefined;
2329
2744
  }, {
2330
- start: number;
2331
- end: number;
2332
2745
  id: string;
2333
2746
  kind: "paragraph" | "heading" | "direction";
2747
+ start: number;
2748
+ end: number;
2334
2749
  marks: {
2335
- start: number;
2336
2750
  type: "strong" | "em";
2751
+ start: number;
2337
2752
  end: number;
2338
2753
  }[];
2339
2754
  level?: 2 | 3 | undefined;
@@ -2342,13 +2757,13 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2342
2757
  }, "strip", z.ZodTypeAny, {
2343
2758
  sceneId: string;
2344
2759
  blocks: {
2345
- start: number;
2346
- end: number;
2347
2760
  id: string;
2348
2761
  kind: "paragraph" | "heading" | "direction";
2762
+ start: number;
2763
+ end: number;
2349
2764
  marks: {
2350
- start: number;
2351
2765
  type: "strong" | "em";
2766
+ start: number;
2352
2767
  end: number;
2353
2768
  }[];
2354
2769
  level?: 2 | 3 | undefined;
@@ -2357,13 +2772,13 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2357
2772
  }, {
2358
2773
  sceneId: string;
2359
2774
  blocks: {
2360
- start: number;
2361
- end: number;
2362
2775
  id: string;
2363
2776
  kind: "paragraph" | "heading" | "direction";
2777
+ start: number;
2778
+ end: number;
2364
2779
  marks: {
2365
- start: number;
2366
2780
  type: "strong" | "em";
2781
+ start: number;
2367
2782
  end: number;
2368
2783
  }[];
2369
2784
  level?: 2 | 3 | undefined;
@@ -2389,13 +2804,13 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2389
2804
  end: z.ZodNumber;
2390
2805
  waitingShotId: z.ZodOptional<z.ZodString>;
2391
2806
  }, "strip", z.ZodTypeAny, {
2392
- start: number;
2393
2807
  sceneId: string;
2808
+ start: number;
2394
2809
  end: number;
2395
2810
  waitingShotId?: string | undefined;
2396
2811
  }, {
2397
- start: number;
2398
2812
  sceneId: string;
2813
+ start: number;
2399
2814
  end: number;
2400
2815
  waitingShotId?: string | undefined;
2401
2816
  }>, "many">>;
@@ -2407,55 +2822,55 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2407
2822
  at: z.ZodNumber;
2408
2823
  }, "strip", z.ZodTypeAny, {
2409
2824
  at: number;
2410
- sceneId: string;
2411
2825
  kind: "split";
2826
+ sceneId: string;
2412
2827
  }, {
2413
2828
  at: number;
2414
- sceneId: string;
2415
2829
  kind: "split";
2830
+ sceneId: string;
2416
2831
  }>, z.ZodObject<{
2417
2832
  kind: z.ZodLiteral<"merge">;
2418
2833
  sceneId: z.ZodString;
2419
2834
  }, "strip", z.ZodTypeAny, {
2420
- sceneId: string;
2421
2835
  kind: "merge";
2422
- }, {
2423
2836
  sceneId: string;
2837
+ }, {
2424
2838
  kind: "merge";
2839
+ sceneId: string;
2425
2840
  }>]>>;
2426
2841
  }, "strip", z.ZodTypeAny, {
2427
2842
  storyboardId: string;
2428
2843
  expectedRevision: number;
2429
2844
  edits: {
2430
2845
  at: number;
2846
+ text: string;
2431
2847
  sceneId: string;
2432
2848
  removed: number;
2433
- text: string;
2434
2849
  }[];
2850
+ move?: {
2851
+ sceneId: string;
2852
+ blockId: string;
2853
+ delta: 1 | -1;
2854
+ } | undefined;
2435
2855
  structures?: {
2436
2856
  sceneId: string;
2437
2857
  blocks: {
2438
- start: number;
2439
- end: number;
2440
2858
  id: string;
2441
2859
  kind: "paragraph" | "heading" | "direction";
2860
+ start: number;
2861
+ end: number;
2442
2862
  marks: {
2443
- start: number;
2444
2863
  type: "strong" | "em";
2864
+ start: number;
2445
2865
  end: number;
2446
2866
  }[];
2447
2867
  level?: 2 | 3 | undefined;
2448
2868
  label?: string | undefined;
2449
2869
  }[];
2450
2870
  }[] | undefined;
2451
- move?: {
2452
- sceneId: string;
2453
- blockId: string;
2454
- delta: 1 | -1;
2455
- } | undefined;
2456
2871
  makeShots?: {
2457
- start: number;
2458
2872
  sceneId: string;
2873
+ start: number;
2459
2874
  end: number;
2460
2875
  waitingShotId?: string | undefined;
2461
2876
  }[] | undefined;
@@ -2463,45 +2878,45 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2463
2878
  ensureScene?: boolean | undefined;
2464
2879
  sceneAction?: {
2465
2880
  at: number;
2466
- sceneId: string;
2467
2881
  kind: "split";
2468
- } | {
2469
2882
  sceneId: string;
2883
+ } | {
2470
2884
  kind: "merge";
2885
+ sceneId: string;
2471
2886
  } | undefined;
2472
2887
  }, {
2473
2888
  storyboardId: string;
2474
2889
  expectedRevision: number;
2475
2890
  edits: {
2476
2891
  at: number;
2892
+ text: string;
2477
2893
  sceneId: string;
2478
2894
  removed: number;
2479
- text: string;
2480
2895
  }[];
2896
+ move?: {
2897
+ sceneId: string;
2898
+ blockId: string;
2899
+ delta: 1 | -1;
2900
+ } | undefined;
2481
2901
  structures?: {
2482
2902
  sceneId: string;
2483
2903
  blocks: {
2484
- start: number;
2485
- end: number;
2486
2904
  id: string;
2487
2905
  kind: "paragraph" | "heading" | "direction";
2906
+ start: number;
2907
+ end: number;
2488
2908
  marks: {
2489
- start: number;
2490
2909
  type: "strong" | "em";
2910
+ start: number;
2491
2911
  end: number;
2492
2912
  }[];
2493
2913
  level?: 2 | 3 | undefined;
2494
2914
  label?: string | undefined;
2495
2915
  }[];
2496
2916
  }[] | undefined;
2497
- move?: {
2498
- sceneId: string;
2499
- blockId: string;
2500
- delta: 1 | -1;
2501
- } | undefined;
2502
2917
  makeShots?: {
2503
- start: number;
2504
2918
  sceneId: string;
2919
+ start: number;
2505
2920
  end: number;
2506
2921
  waitingShotId?: string | undefined;
2507
2922
  }[] | undefined;
@@ -2509,11 +2924,11 @@ declare const writeScriptDocumentInput: z.ZodObject<{
2509
2924
  ensureScene?: boolean | undefined;
2510
2925
  sceneAction?: {
2511
2926
  at: number;
2512
- sceneId: string;
2513
2927
  kind: "split";
2514
- } | {
2515
2928
  sceneId: string;
2929
+ } | {
2516
2930
  kind: "merge";
2931
+ sceneId: string;
2517
2932
  } | undefined;
2518
2933
  }>;
2519
2934
  export declare const writeScriptDocument: Operation<z.infer<typeof writeScriptDocumentInput>>;
@@ -2585,6 +3000,17 @@ export declare const editCut: Operation<{
2585
3000
  skipPresent?: boolean;
2586
3001
  }>;
2587
3002
  export declare function resolveGuideTopic(topic: string): string | null;
3003
+ /**
3004
+ * The one guide a near-miss name means: the name without its `slates-` prefix, or a typo of one name
3005
+ * ("slaes-direct-response-ad"). Two names equally close come back as `tied`, for the caller to name rather
3006
+ * than pick. Only the guide op uses it: a model id resolves exactly or not at all (resolveGuideTopic), since
3007
+ * a near guess there would gate a generation on another model's guide.
3008
+ */
3009
+ export declare function nearestGuideName(topic: string, names: readonly string[]): {
3010
+ name: string;
3011
+ } | {
3012
+ tied: string[];
3013
+ } | null;
2588
3014
  /** The guide topic that serves the full MCP working method (agent-doctrine.ts, buildMcpInstructions). */
2589
3015
  export declare const WORKING_METHOD_TOPIC = "working-method";
2590
3016
  export declare const getPromptingGuide: Operation<{