@mengine/medeo-client 1.2.1-alpha.3 → 1.2.1-alpha.5

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.
@@ -1,613 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region src/editor/schemas/add-speeches.d.ts
4
- /**
5
- * Add speeches (and their captions). TTS runs upstream; the stable speech /
6
- * caption parts arrive materialized (see `speech-assets.ts`). The op writes the
7
- * parts and each speech's `{ mode:'anchored', anchorPartId, offsetMs }` fact
8
- * verbatim — no write-time host-picking, no cascade (RFC 02 §4). The projection
9
- * derives absolute positions on read.
10
- */
11
- declare const addSpeechesInputSchema: z.ZodObject<{
12
- speeches: z.ZodArray<z.ZodObject<{
13
- speech_id: z.ZodString;
14
- anchor_part_id: z.ZodNullable<z.ZodString>;
15
- offset_ms: z.ZodNumber;
16
- audio_storage_key: z.ZodString;
17
- duration_ms: z.ZodNumber;
18
- audio_script: z.ZodString;
19
- volume: z.ZodNumber;
20
- voice: z.ZodObject<{
21
- id: z.ZodString;
22
- name: z.ZodString;
23
- }, z.core.$strip>;
24
- origin_speech_id: z.ZodString;
25
- caption_ids: z.ZodArray<z.ZodString>;
26
- }, z.core.$strip>>;
27
- captions: z.ZodArray<z.ZodObject<{
28
- caption_id: z.ZodString;
29
- speech_part_id: z.ZodString;
30
- text: z.ZodString;
31
- start_ms: z.ZodNumber;
32
- duration_ms: z.ZodNumber;
33
- }, z.core.$strip>>;
34
- }, z.core.$strip>;
35
- type AddSpeechesInput = z.infer<typeof addSpeechesInputSchema>;
36
- //#endregion
37
- //#region src/editor/schemas/add-video-clips.d.ts
38
- /**
39
- * Add video clips to a track. Each clip's duration facts are separated so a
40
- * single number is never overloaded (RFC 02 / `reference/16` §0b):
41
- *
42
- * - `media_duration_ms` is the source media's intrinsic full length (a resource
43
- * fact, written to the part);
44
- * - `play_in` / `play_out` are the optional trim window into that media; when
45
- * omitted the whole media is used (`play_in=0`, `play_out=media_duration_ms`).
46
- *
47
- * The clip's effective timeline duration is derived by the projection from the
48
- * trim window and `speed_shift` — it is never an input here.
49
- */
50
- declare const addVideoClipsInputSchema: z.ZodObject<{
51
- clips: z.ZodArray<z.ZodObject<{
52
- media_id: z.ZodString;
53
- start_ms: z.ZodOptional<z.ZodNumber>;
54
- media_duration_ms: z.ZodNumber;
55
- play_in: z.ZodOptional<z.ZodNumber>;
56
- play_out: z.ZodOptional<z.ZodNumber>;
57
- track_id: z.ZodOptional<z.ZodString>;
58
- }, z.core.$strip>>;
59
- before_clip_id: z.ZodOptional<z.ZodString>;
60
- after_clip_id: z.ZodOptional<z.ZodString>;
61
- }, z.core.$strip>;
62
- type AddVideoClipsInput = z.infer<typeof addVideoClipsInputSchema>;
63
- //#endregion
64
- //#region src/editor/schemas/adjust-bgm-volume.d.ts
65
- declare const adjustBgmVolumeInputSchema: z.ZodObject<{
66
- bgm: z.ZodArray<z.ZodObject<{
67
- bgm_id: z.ZodString;
68
- volume: z.ZodNumber;
69
- }, z.core.$strip>>;
70
- }, z.core.$strip>;
71
- type AdjustBgmVolumeInput = z.infer<typeof adjustBgmVolumeInputSchema>;
72
- //#endregion
73
- //#region src/editor/schemas/adjust-speech-volume.d.ts
74
- declare const adjustSpeechVolumeInputSchema: z.ZodObject<{
75
- speeches: z.ZodArray<z.ZodObject<{
76
- speech_id: z.ZodString;
77
- volume: z.ZodNumber;
78
- }, z.core.$strip>>;
79
- }, z.core.$strip>;
80
- type AdjustSpeechVolumeInput = z.infer<typeof adjustSpeechVolumeInputSchema>;
81
- //#endregion
82
- //#region src/editor/schemas/adjust-video-clip-duration.d.ts
83
- /**
84
- * Re-trim existing video clips (the user-facing "adjust duration" gesture is a
85
- * trim of the source window). The new `play_in` / `play_out` are the facts; the
86
- * effective timeline duration is derived from them and the clip's `speed_shift`,
87
- * and the change reflows downstream clips, speeches, and the timeline inside the
88
- * op's transaction (no caller-materialized cascade).
89
- */
90
- declare const adjustVideoClipDurationInputSchema: z.ZodObject<{
91
- clips: z.ZodArray<z.ZodObject<{
92
- clip_id: z.ZodString;
93
- play_in: z.ZodNumber;
94
- play_out: z.ZodNumber;
95
- }, z.core.$strip>>;
96
- }, z.core.$strip>;
97
- type AdjustVideoClipDurationInput = z.infer<typeof adjustVideoClipDurationInputSchema>;
98
- //#endregion
99
- //#region src/editor/schemas/adjust-video-clip-volume.d.ts
100
- declare const adjustVideoClipVolumeInputSchema: z.ZodObject<{
101
- clips: z.ZodArray<z.ZodObject<{
102
- clip_id: z.ZodString;
103
- volume: z.ZodNumber;
104
- }, z.core.$strip>>;
105
- }, z.core.$strip>;
106
- type AdjustVideoClipVolumeInput = z.infer<typeof adjustVideoClipVolumeInputSchema>;
107
- //#endregion
108
- //#region src/editor/schemas/change-speech.d.ts
109
- /**
110
- * Change a speech's script or voice. Both re-run TTS upstream and return the
111
- * regenerated speech / caption parts in the same materialized shape as
112
- * `AddSpeeches` (`speech-assets.ts`); the op upserts them by id (the speech part
113
- * id is preserved across a re-TTS), re-seats at `start_ms`, and reflows. Old
114
- * caption parts no longer owned by the speech are removed via `caption_ids`.
115
- */
116
- declare const changeSpeechScriptInputSchema: z.ZodObject<{
117
- speeches: z.ZodArray<z.ZodObject<{
118
- speech_id: z.ZodString;
119
- anchor_part_id: z.ZodNullable<z.ZodString>;
120
- offset_ms: z.ZodNumber;
121
- audio_storage_key: z.ZodString;
122
- duration_ms: z.ZodNumber;
123
- audio_script: z.ZodString;
124
- volume: z.ZodNumber;
125
- voice: z.ZodObject<{
126
- id: z.ZodString;
127
- name: z.ZodString;
128
- }, z.core.$strip>;
129
- origin_speech_id: z.ZodString;
130
- caption_ids: z.ZodArray<z.ZodString>;
131
- }, z.core.$strip>>;
132
- captions: z.ZodArray<z.ZodObject<{
133
- caption_id: z.ZodString;
134
- speech_part_id: z.ZodString;
135
- text: z.ZodString;
136
- start_ms: z.ZodNumber;
137
- duration_ms: z.ZodNumber;
138
- }, z.core.$strip>>;
139
- }, z.core.$strip>;
140
- declare const changeSpeechVoiceInputSchema: z.ZodObject<{
141
- speeches: z.ZodArray<z.ZodObject<{
142
- speech_id: z.ZodString;
143
- anchor_part_id: z.ZodNullable<z.ZodString>;
144
- offset_ms: z.ZodNumber;
145
- audio_storage_key: z.ZodString;
146
- duration_ms: z.ZodNumber;
147
- audio_script: z.ZodString;
148
- volume: z.ZodNumber;
149
- voice: z.ZodObject<{
150
- id: z.ZodString;
151
- name: z.ZodString;
152
- }, z.core.$strip>;
153
- origin_speech_id: z.ZodString;
154
- caption_ids: z.ZodArray<z.ZodString>;
155
- }, z.core.$strip>>;
156
- captions: z.ZodArray<z.ZodObject<{
157
- caption_id: z.ZodString;
158
- speech_part_id: z.ZodString;
159
- text: z.ZodString;
160
- start_ms: z.ZodNumber;
161
- duration_ms: z.ZodNumber;
162
- }, z.core.$strip>>;
163
- }, z.core.$strip>;
164
- type ChangeSpeechScriptInput = z.infer<typeof changeSpeechScriptInputSchema>;
165
- type ChangeSpeechVoiceInput = z.infer<typeof changeSpeechVoiceInputSchema>;
166
- //#endregion
167
- //#region src/editor/schemas/delete-bgm.d.ts
168
- /**
169
- * Remove the document BGM. Pure document edit: clears the bgm lane and removes
170
- * the bgm part. Takes no input (a document holds at most one bgm); an empty
171
- * object keeps the op signature uniform with the rest.
172
- */
173
- declare const deleteBgmInputSchema: z.ZodObject<{}, z.core.$strip>;
174
- type DeleteBgmInput = z.infer<typeof deleteBgmInputSchema>;
175
- //#endregion
176
- //#region src/editor/schemas/delete-speeches.d.ts
177
- /**
178
- * Delete speeches with their captions. Pure document edit (no side effect): the
179
- * op removes each speech part, cascade-deletes the captions it owns (via
180
- * `caption_ids` / `speech_part_id`), drops their track items, and reflows.
181
- */
182
- declare const deleteSpeechesInputSchema: z.ZodObject<{
183
- speech_ids: z.ZodArray<z.ZodString>;
184
- }, z.core.$strip>;
185
- type DeleteSpeechesInput = z.infer<typeof deleteSpeechesInputSchema>;
186
- //#endregion
187
- //#region src/editor/schemas/delete-video-clips.d.ts
188
- /**
189
- * How a delete handles the anchored subtree (speeches anchored to a deleted clip,
190
- * and their captions) — a delete-op policy, not a data-model field (reference/17
191
- * §6). `cascade` (default) removes the subtree; `detach` keeps the direct
192
- * anchored children, re-pinning them to `absolute` so they stay on the timeline.
193
- */
194
- declare const anchoredDeletePolicySchema: z.ZodEnum<{
195
- cascade: "cascade";
196
- detach: "detach";
197
- }>;
198
- type AnchoredDeletePolicy = z.infer<typeof anchoredDeletePolicySchema>;
199
- declare const deleteVideoClipsInputSchema: z.ZodObject<{
200
- clip_ids: z.ZodArray<z.ZodString>;
201
- on_anchored: z.ZodOptional<z.ZodEnum<{
202
- cascade: "cascade";
203
- detach: "detach";
204
- }>>;
205
- }, z.core.$strip>;
206
- type DeleteVideoClipsInput = z.infer<typeof deleteVideoClipsInputSchema>;
207
- //#endregion
208
- //#region src/editor/schemas/move-speeches.d.ts
209
- /**
210
- * Move speeches in time. Pure document edit: the op re-seats each speech at its
211
- * new absolute `start_ms`; the cascade reassigns it to the host video clip,
212
- * resolves overlaps, and reflows. Captions follow their speech.
213
- */
214
- declare const moveSpeechesInputSchema: z.ZodObject<{
215
- speeches: z.ZodArray<z.ZodObject<{
216
- speech_id: z.ZodString;
217
- new_start_ms: z.ZodNumber;
218
- }, z.core.$strip>>;
219
- }, z.core.$strip>;
220
- type MoveSpeechesInput = z.infer<typeof moveSpeechesInputSchema>;
221
- //#endregion
222
- //#region src/editor/schemas/move-bgm.d.ts
223
- declare const moveBgmInputSchema: z.ZodObject<{
224
- new_start_ms: z.ZodNumber;
225
- }, z.core.$strip>;
226
- type MoveBgmInput = z.infer<typeof moveBgmInputSchema>;
227
- //#endregion
228
- //#region src/editor/schemas/move-video-clips-by-anchor.d.ts
229
- /**
230
- * Where the moved block lands on the main track.
231
- *
232
- * A discriminated union rather than two optional `before_clip_id` /
233
- * `after_clip_id` fields (the shape `addVideoClips` had to use, because there the
234
- * two modes share a whole clip description): here the alternatives carry nothing
235
- * in common, so making them mutually exclusive *by type* removes three runtime
236
- * `superRefine` checks that would otherwise have to be written and tested.
237
- *
238
- * `track_start` is an explicit member, not the absence of an anchor. The
239
- * agent-harness mutation this maps from treats "neither anchor given" as
240
- * "move to the front" (`applyBatchMoveVideoClips` falls back to `insertIndex = 0`),
241
- * which is a default buried in a tool description. Requiring the caller to name
242
- * that intent keeps a forgotten field from silently reordering the timeline.
243
- */
244
- declare const moveAnchorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
245
- position: z.ZodLiteral<"before">;
246
- clip_id: z.ZodString;
247
- }, z.core.$strip>, z.ZodObject<{
248
- position: z.ZodLiteral<"after">;
249
- clip_id: z.ZodString;
250
- }, z.core.$strip>, z.ZodObject<{
251
- position: z.ZodLiteral<"track_start">;
252
- }, z.core.$strip>], "position">;
253
- /**
254
- * What happens to the speeches anchored to the clips being moved.
255
- *
256
- * - `follow` keeps each speech anchored where it is, so it travels with its clip
257
- * to the new position. In the anchored model this is the *no-op* branch: a
258
- * speech's authoritative fact is `{ anchorPartId, offsetMs }` and its absolute
259
- * time is derived on read from the host's position, so moving the host moves
260
- * the speech with no write to the speech at all.
261
- * - `keep_absolute` preserves each speech's current absolute landing instead, then
262
- * re-anchors it to whichever clip now covers that time (RFC 02 §9.1/§11.1). This
263
- * is the branch that costs an extra pass, and the one the FE timeline uses.
264
- *
265
- * **Required, with no default**, matching `deleteVideoClips` and
266
- * `replaceVideoClipSequence`. The two branches decide which picture the user's
267
- * narration ends up over, which is too consequential to infer from a missing
268
- * field — and neither branch is "safe enough" to be the implicit one.
269
- */
270
- declare const movedClipAnchoredPolicySchema: z.ZodEnum<{
271
- follow: "follow";
272
- keep_absolute: "keep_absolute";
273
- }>;
274
- /**
275
- * Reorder a set of main-track clips relative to a reference clip.
276
- *
277
- * Distinct from `moveVideoClips`, which positions clips by absolute time
278
- * (`new_start_ms`) and is what the FE timeline dispatches after a drag. Main-track
279
- * clips are `sequential`-positioned, so absolute time is not authoritative state
280
- * there (RFC 02 §4/§7): `moveVideoClips` has to *guess* an index back out of the
281
- * time it was handed, whereas an anchor already is the ordinal fact being changed.
282
- * Keeping them separate also isolates blast radius — this method can diverge on
283
- * speech policy without touching the FE path.
284
- *
285
- * `clip_ids` need not be contiguous. They move as one block, keeping their
286
- * relative order, which is the agent-harness `batch_move_video_clips` contract.
287
- */
288
- declare const moveVideoClipsByAnchorInputSchema: z.ZodObject<{
289
- clip_ids: z.ZodArray<z.ZodString>;
290
- anchor: z.ZodDiscriminatedUnion<[z.ZodObject<{
291
- position: z.ZodLiteral<"before">;
292
- clip_id: z.ZodString;
293
- }, z.core.$strip>, z.ZodObject<{
294
- position: z.ZodLiteral<"after">;
295
- clip_id: z.ZodString;
296
- }, z.core.$strip>, z.ZodObject<{
297
- position: z.ZodLiteral<"track_start">;
298
- }, z.core.$strip>], "position">;
299
- on_anchored: z.ZodEnum<{
300
- follow: "follow";
301
- keep_absolute: "keep_absolute";
302
- }>;
303
- }, z.core.$strip>;
304
- type MoveAnchor = z.infer<typeof moveAnchorSchema>;
305
- type MovedClipAnchoredPolicy = z.infer<typeof movedClipAnchoredPolicySchema>;
306
- type MoveVideoClipsByAnchorInput = z.infer<typeof moveVideoClipsByAnchorInputSchema>;
307
- //#endregion
308
- //#region src/editor/schemas/move-video-clips.d.ts
309
- declare const moveVideoClipsInputSchema: z.ZodObject<{
310
- clips: z.ZodArray<z.ZodObject<{
311
- clip_id: z.ZodString;
312
- new_start_ms: z.ZodNumber;
313
- new_track_id: z.ZodOptional<z.ZodString>;
314
- }, z.core.$strip>>;
315
- }, z.core.$strip>;
316
- type MoveVideoClipsInput = z.infer<typeof moveVideoClipsInputSchema>;
317
- //#endregion
318
- //#region src/editor/schemas/replace-video-clip-content.d.ts
319
- /**
320
- * Replace the media backing existing video clips. The media import runs upstream
321
- * (Director); its stable result — the new media id, intrinsic length, and the
322
- * reset trim window — arrives materialized (see
323
- * `results/phase-4-side-effect-payload-contract.md` §4). Director resets
324
- * `play_in=0` / `play_out=media_duration_ms` and clears `speed_shift` on
325
- * replacement. The clip `part_id`s (hence their track items) are unchanged; the
326
- * editor reflows the main track from the new effective durations.
327
- */
328
- declare const replaceVideoClipContentInputSchema: z.ZodObject<{
329
- clips: z.ZodArray<z.ZodObject<{
330
- clip_id: z.ZodString;
331
- origin_media_id: z.ZodString;
332
- media_duration_ms: z.ZodNumber;
333
- play_in: z.ZodNumber;
334
- play_out: z.ZodNumber;
335
- volume: z.ZodNumber;
336
- }, z.core.$strip>>;
337
- }, z.core.$strip>;
338
- type ReplaceVideoClipContentInput = z.infer<typeof replaceVideoClipContentInputSchema>;
339
- //#endregion
340
- //#region src/editor/schemas/replace-video-clip-sequence.d.ts
341
- /**
342
- * What happens to the speeches anchored to the clips being replaced.
343
- *
344
- * - `remap` re-anchors each surviving speech to the new clip in the SAME POSITION
345
- * of the sequence, keeping its offset — old[i]'s children become new[i]'s
346
- * children. An old clip with no counterpart (fewer new clips than old) has its
347
- * subtree deleted, because there is nothing left to anchor to.
348
- * - `cascade` deletes every anchored speech (and its captions) outright, like
349
- * `deleteVideoClips`.
350
- *
351
- * **Required, with no default.** The two branches differ in whether the user's
352
- * narration survives, and the agent tool that drives this op makes its
353
- * `preserve_speeches` flag required for that reason. A default here would let a
354
- * caller that forgot the field silently delete speech.
355
- */
356
- declare const anchoredReplacePolicySchema: z.ZodEnum<{
357
- cascade: "cascade";
358
- remap: "remap";
359
- }>;
360
- type AnchoredReplacePolicy = z.infer<typeof anchoredReplacePolicySchema>;
361
- /**
362
- * Replace a contiguous run of main-track clips with a new run.
363
- *
364
- * A composite of delete + insert that cannot be expressed as the two ops in
365
- * sequence, because the anchored speeches have to survive *across* the swap: with
366
- * `remap` they are re-anchored positionally, which needs both the old and the new
367
- * ids in the same transaction (ADR 0009 — the cascade stays in the editor, callers
368
- * never re-wire anchors themselves).
369
- *
370
- * Duration facts follow `addVideoClips`: `media_duration_ms` is the source's
371
- * intrinsic length and the trim window defaults to the whole media. The effective
372
- * timeline duration is derived by the projection, never an input.
373
- *
374
- * `media_id` is optional: omitting it creates a **deliberate empty placeholder
375
- * clip** (`origin_media_id: ''`) — structure with no picture. This is the only op
376
- * that can produce one, and it is authoritative state, unlike the gap fillers the
377
- * read-side solve mints (which never enter the document).
378
- */
379
- declare const replaceVideoClipSequenceInputSchema: z.ZodObject<{
380
- old_clip_ids: z.ZodArray<z.ZodString>;
381
- new_clips: z.ZodArray<z.ZodObject<{
382
- media_id: z.ZodOptional<z.ZodString>;
383
- media_duration_ms: z.ZodNumber;
384
- play_in: z.ZodOptional<z.ZodNumber>;
385
- play_out: z.ZodOptional<z.ZodNumber>;
386
- }, z.core.$strip>>;
387
- on_anchored: z.ZodEnum<{
388
- cascade: "cascade";
389
- remap: "remap";
390
- }>;
391
- }, z.core.$strip>;
392
- type ReplaceVideoClipSequenceInput = z.infer<typeof replaceVideoClipSequenceInputSchema>;
393
- //#endregion
394
- //#region src/editor/schemas/set-bgm.d.ts
395
- /**
396
- * Set the document BGM. The media's stable result (storage key) arrives
397
- * materialized from upstream (see
398
- * `results/phase-4-side-effect-payload-contract.md` §3). The op upserts the bgm
399
- * part and seats it on the bgm lane; its effective length is always the whole
400
- * timeline, derived by the projection on read — so there is no `duration_ms`
401
- * input or fact (RFC 02 / `reference/16` §0b). A `bgm_id` lets the op replace an
402
- * existing bgm part by id.
403
- */
404
- declare const setBgmInputSchema: z.ZodObject<{
405
- bgm_id: z.ZodString;
406
- audio_storage_key: z.ZodString;
407
- origin_media_id: z.ZodString;
408
- volume: z.ZodNumber;
409
- }, z.core.$strip>;
410
- type SetBgmInput = z.infer<typeof setBgmInputSchema>;
411
- //#endregion
412
- //#region src/editor/schemas/set-caption-style.d.ts
413
- /**
414
- * Set the caption visual style. GLOBAL by design: the style applies to every
415
- * caption part in the document — it carries NO `caption_id`. This mirrors the FE,
416
- * whose caption-style store (`caption-style.ts:persistCaptionStylePatch`) iterates
417
- * ALL captions and writes the same normalized style to each; the product has a
418
- * single document-wide caption style, not per-caption styling.
419
- *
420
- * Every field is optional and maps to a `CaptionStyle` attribute (snake_case
421
- * IDL). A field present in the input is written to every caption; a field ABSENT
422
- * from the input is left untouched on each caption (the editor merges the patch
423
- * onto each caption's existing style — this is a value edit, not a full-style
424
- * replace, so a partial patch such as "recolor only" does not wipe font size).
425
- *
426
- * Pure document edit, no cascade — captions keep their positions; only the style
427
- * sub-map of each caption part changes.
428
- */
429
- declare const setCaptionStyleInputSchema: z.ZodObject<{
430
- font_id: z.ZodOptional<z.ZodString>;
431
- font_size: z.ZodOptional<z.ZodNumber>;
432
- font_color: z.ZodOptional<z.ZodString>;
433
- font_weight: z.ZodOptional<z.ZodNumber>;
434
- entrance_animation: z.ZodOptional<z.ZodString>;
435
- entrance_animation_duration_ms: z.ZodOptional<z.ZodNumber>;
436
- stroke_color: z.ZodOptional<z.ZodString>;
437
- stroke_width: z.ZodOptional<z.ZodNumber>;
438
- position_x: z.ZodOptional<z.ZodNumber>;
439
- position_y: z.ZodOptional<z.ZodNumber>;
440
- }, z.core.$strip>;
441
- type SetCaptionStyleInput = z.infer<typeof setCaptionStyleInputSchema>;
442
- //#endregion
443
- //#region src/editor/schemas/set-caption-visibility.d.ts
444
- /**
445
- * Toggle caption visibility (the caption track's `is_hidden` flag). Pure
446
- * document edit, no cascade — captions keep their positions; only the lane's
447
- * hidden flag changes.
448
- */
449
- declare const setCaptionVisibilityInputSchema: z.ZodObject<{
450
- is_hidden: z.ZodBoolean;
451
- }, z.core.$strip>;
452
- type SetCaptionVisibilityInput = z.infer<typeof setCaptionVisibilityInputSchema>;
453
- //#endregion
454
- //#region src/editor/schemas/set-video-clip-speed-shift.d.ts
455
- /**
456
- * Set the playback speed of existing video clips. Per the speed-shift decision
457
- * (`reference/16` §0): the op writes only the `speed_shift` fact — it does NOT
458
- * store an effective `duration_ms` (projection derives it from the trim window /
459
- * speed) and does NOT scale anchored speeches' relative offsets (offsets stay
460
- * put; the cascade reflows absolute positions). A `null` speed_shift clears the
461
- * speed back to original (1×).
462
- */
463
- declare const setVideoClipSpeedShiftInputSchema: z.ZodObject<{
464
- clips: z.ZodArray<z.ZodObject<{
465
- clip_id: z.ZodString;
466
- speed_shift: z.ZodNullable<z.ZodObject<{
467
- category: z.ZodEnum<{
468
- curve: "curve";
469
- linear: "linear";
470
- }>;
471
- mode: z.ZodString;
472
- config: z.ZodUnion<readonly [z.ZodObject<{
473
- linear: z.ZodObject<{
474
- speed: z.ZodNumber;
475
- }, z.core.$strip>;
476
- }, z.core.$strip>, z.ZodObject<{
477
- curve: z.ZodObject<{
478
- keyframes: z.ZodArray<z.ZodObject<{
479
- position: z.ZodNumber;
480
- rate: z.ZodNumber;
481
- in_tangent: z.ZodOptional<z.ZodObject<{
482
- x: z.ZodNumber;
483
- y: z.ZodNumber;
484
- }, z.core.$strip>>;
485
- out_tangent: z.ZodOptional<z.ZodObject<{
486
- x: z.ZodNumber;
487
- y: z.ZodNumber;
488
- }, z.core.$strip>>;
489
- }, z.core.$strip>>;
490
- }, z.core.$strip>;
491
- }, z.core.$strip>]>;
492
- }, z.core.$strip>>;
493
- }, z.core.$strip>>;
494
- }, z.core.$strip>;
495
- type SetVideoClipSpeedShiftInput = z.infer<typeof setVideoClipSpeedShiftInputSchema>;
496
- //#endregion
497
- //#region src/editor/schemas/shared.d.ts
498
- declare const clipIdSchema: z.ZodString;
499
- declare const clipIdsSchema: z.ZodArray<z.ZodString>;
500
- declare const mediaIdSchema: z.ZodString;
501
- declare const speechIdSchema: z.ZodString;
502
- declare const timelineMsSchema: z.ZodNumber;
503
- declare const positiveMsSchema: z.ZodNumber;
504
- declare const volumeSchema: z.ZodNumber;
505
- declare const speechIdsSchema: z.ZodArray<z.ZodString>;
506
- /**
507
- * A clip's playback-speed fact, the only thing `SetVideoClipSpeedShift` writes.
508
- * Mirrors the IDL `SpeedShift`: `category` is `linear` | `curve`, and `config`
509
- * is a discriminated union — `{ linear: { speed } }` for a constant multiplier
510
- * (the multiplier projection reads at `config.linear.speed`) or `{ curve: {
511
- * keyframes } }` for a Bezier-controlled variable speed (RFC 02 / `reference/16`
512
- * §0). Exactly one of `linear` / `curve` is present.
513
- */
514
- declare const speedShiftSchema: z.ZodObject<{
515
- category: z.ZodEnum<{
516
- curve: "curve";
517
- linear: "linear";
518
- }>;
519
- mode: z.ZodString;
520
- config: z.ZodUnion<readonly [z.ZodObject<{
521
- linear: z.ZodObject<{
522
- speed: z.ZodNumber;
523
- }, z.core.$strip>;
524
- }, z.core.$strip>, z.ZodObject<{
525
- curve: z.ZodObject<{
526
- keyframes: z.ZodArray<z.ZodObject<{
527
- position: z.ZodNumber;
528
- rate: z.ZodNumber;
529
- in_tangent: z.ZodOptional<z.ZodObject<{
530
- x: z.ZodNumber;
531
- y: z.ZodNumber;
532
- }, z.core.$strip>>;
533
- out_tangent: z.ZodOptional<z.ZodObject<{
534
- x: z.ZodNumber;
535
- y: z.ZodNumber;
536
- }, z.core.$strip>>;
537
- }, z.core.$strip>>;
538
- }, z.core.$strip>;
539
- }, z.core.$strip>]>;
540
- }, z.core.$strip>;
541
- declare const voiceSchema: z.ZodObject<{
542
- id: z.ZodString;
543
- name: z.ZodString;
544
- }, z.core.$strip>;
545
- //#endregion
546
- //#region src/editor/schemas/speech-assets.d.ts
547
- /**
548
- * The materialized TTS result shared by `AddSpeeches` / `ChangeSpeechScript` /
549
- * `ChangeSpeechVoice` (see `results/phase-4-side-effect-payload-contract.md`
550
- * §1/§2). The side effect (TTS/ASR + billing) runs upstream; the op receives the
551
- * stable speech + caption parts and writes them as authoritative facts. No
552
- * cascade runs on write — the projection derives absolute positions on read.
553
- *
554
- * `anchor_part_id` states the root relationship explicitly: a video/BGM id
555
- * creates an anchored speech; `null` creates an absolute audio root.
556
- * `offset_ms` is relative to the anchor or absolute for a root. Captions always
557
- * anchor to their speech via `start_ms`.
558
- */
559
- declare const speechAssetSchema: z.ZodObject<{
560
- speech_id: z.ZodString;
561
- anchor_part_id: z.ZodNullable<z.ZodString>;
562
- offset_ms: z.ZodNumber;
563
- audio_storage_key: z.ZodString;
564
- duration_ms: z.ZodNumber;
565
- audio_script: z.ZodString;
566
- volume: z.ZodNumber;
567
- voice: z.ZodObject<{
568
- id: z.ZodString;
569
- name: z.ZodString;
570
- }, z.core.$strip>;
571
- origin_speech_id: z.ZodString;
572
- caption_ids: z.ZodArray<z.ZodString>;
573
- }, z.core.$strip>;
574
- declare const captionAssetSchema: z.ZodObject<{
575
- caption_id: z.ZodString;
576
- speech_part_id: z.ZodString;
577
- text: z.ZodString;
578
- start_ms: z.ZodNumber;
579
- duration_ms: z.ZodNumber;
580
- }, z.core.$strip>;
581
- /** A materialized speech-subtree write (speeches + their captions). */
582
- declare const speechAssetsSchema: z.ZodObject<{
583
- speeches: z.ZodArray<z.ZodObject<{
584
- speech_id: z.ZodString;
585
- anchor_part_id: z.ZodNullable<z.ZodString>;
586
- offset_ms: z.ZodNumber;
587
- audio_storage_key: z.ZodString;
588
- duration_ms: z.ZodNumber;
589
- audio_script: z.ZodString;
590
- volume: z.ZodNumber;
591
- voice: z.ZodObject<{
592
- id: z.ZodString;
593
- name: z.ZodString;
594
- }, z.core.$strip>;
595
- origin_speech_id: z.ZodString;
596
- caption_ids: z.ZodArray<z.ZodString>;
597
- }, z.core.$strip>>;
598
- captions: z.ZodArray<z.ZodObject<{
599
- caption_id: z.ZodString;
600
- speech_part_id: z.ZodString;
601
- text: z.ZodString;
602
- start_ms: z.ZodNumber;
603
- duration_ms: z.ZodNumber;
604
- }, z.core.$strip>>;
605
- }, z.core.$strip>;
606
- type SpeechAsset = z.infer<typeof speechAssetSchema>;
607
- type CaptionAsset = z.infer<typeof captionAssetSchema>;
608
- type SpeechAssets = z.infer<typeof speechAssetsSchema>;
609
- declare namespace index_d_exports {
610
- export { AddSpeechesInput, AddVideoClipsInput, AdjustBgmVolumeInput, AdjustSpeechVolumeInput, AdjustVideoClipDurationInput, AdjustVideoClipVolumeInput, AnchoredDeletePolicy, AnchoredReplacePolicy, CaptionAsset, ChangeSpeechScriptInput, ChangeSpeechVoiceInput, DeleteBgmInput, DeleteSpeechesInput, DeleteVideoClipsInput, MoveAnchor, MoveBgmInput, MoveSpeechesInput, MoveVideoClipsByAnchorInput, MoveVideoClipsInput, MovedClipAnchoredPolicy, ReplaceVideoClipContentInput, ReplaceVideoClipSequenceInput, SetBgmInput, SetCaptionStyleInput, SetCaptionVisibilityInput, SetVideoClipSpeedShiftInput, SpeechAsset, SpeechAssets, addSpeechesInputSchema, addVideoClipsInputSchema, adjustBgmVolumeInputSchema, adjustSpeechVolumeInputSchema, adjustVideoClipDurationInputSchema, adjustVideoClipVolumeInputSchema, anchoredDeletePolicySchema, anchoredReplacePolicySchema, changeSpeechScriptInputSchema, changeSpeechVoiceInputSchema, clipIdSchema, clipIdsSchema, deleteBgmInputSchema, deleteSpeechesInputSchema, deleteVideoClipsInputSchema, mediaIdSchema, moveAnchorSchema, moveBgmInputSchema, moveSpeechesInputSchema, moveVideoClipsByAnchorInputSchema, moveVideoClipsInputSchema, movedClipAnchoredPolicySchema, positiveMsSchema, replaceVideoClipContentInputSchema, replaceVideoClipSequenceInputSchema, setBgmInputSchema, setCaptionStyleInputSchema, setCaptionVisibilityInputSchema, setVideoClipSpeedShiftInputSchema, speechAssetsSchema, speechIdSchema, speechIdsSchema, speedShiftSchema, timelineMsSchema, voiceSchema, volumeSchema };
611
- }
612
- //#endregion
613
- export { changeSpeechVoiceInputSchema as $, MoveVideoClipsInput as A, MoveSpeechesInput as B, setBgmInputSchema as C, replaceVideoClipSequenceInputSchema as D, anchoredReplacePolicySchema as E, moveAnchorSchema as F, deleteVideoClipsInputSchema as G, AnchoredDeletePolicy as H, moveVideoClipsByAnchorInputSchema as I, DeleteBgmInput as J, DeleteSpeechesInput as K, movedClipAnchoredPolicySchema as L, MoveAnchor as M, MoveVideoClipsByAnchorInput as N, ReplaceVideoClipContentInput as O, MovedClipAnchoredPolicy as P, changeSpeechScriptInputSchema as Q, MoveBgmInput as R, SetBgmInput as S, ReplaceVideoClipSequenceInput as T, DeleteVideoClipsInput as U, moveSpeechesInputSchema as V, anchoredDeletePolicySchema as W, ChangeSpeechScriptInput as X, deleteBgmInputSchema as Y, ChangeSpeechVoiceInput as Z, setVideoClipSpeedShiftInputSchema as _, speechAssetsSchema as a, adjustSpeechVolumeInputSchema as at, SetCaptionStyleInput as b, mediaIdSchema as c, AddVideoClipsInput as ct, speechIdsSchema as d, addSpeechesInputSchema as dt, AdjustVideoClipVolumeInput as et, speedShiftSchema as f, SetVideoClipSpeedShiftInput as g, volumeSchema as h, SpeechAssets as i, AdjustSpeechVolumeInput as it, moveVideoClipsInputSchema as j, replaceVideoClipContentInputSchema as k, positiveMsSchema as l, addVideoClipsInputSchema as lt, voiceSchema as m, CaptionAsset as n, AdjustVideoClipDurationInput as nt, clipIdSchema as o, AdjustBgmVolumeInput as ot, timelineMsSchema as p, deleteSpeechesInputSchema as q, SpeechAsset as r, adjustVideoClipDurationInputSchema as rt, clipIdsSchema as s, adjustBgmVolumeInputSchema as st, index_d_exports as t, adjustVideoClipVolumeInputSchema as tt, speechIdSchema as u, AddSpeechesInput as ut, SetCaptionVisibilityInput as v, AnchoredReplacePolicy as w, setCaptionStyleInputSchema as x, setCaptionVisibilityInputSchema as y, moveBgmInputSchema as z };
package/dist/schemas.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { $ as changeSpeechVoiceInputSchema, A as MoveVideoClipsInput, B as MoveSpeechesInput, C as setBgmInputSchema, D as replaceVideoClipSequenceInputSchema, E as anchoredReplacePolicySchema, F as moveAnchorSchema, G as deleteVideoClipsInputSchema, H as AnchoredDeletePolicy, I as moveVideoClipsByAnchorInputSchema, J as DeleteBgmInput, K as DeleteSpeechesInput, L as movedClipAnchoredPolicySchema, M as MoveAnchor, N as MoveVideoClipsByAnchorInput, O as ReplaceVideoClipContentInput, P as MovedClipAnchoredPolicy, Q as changeSpeechScriptInputSchema, R as MoveBgmInput, S as SetBgmInput, T as ReplaceVideoClipSequenceInput, U as DeleteVideoClipsInput, V as moveSpeechesInputSchema, W as anchoredDeletePolicySchema, X as ChangeSpeechScriptInput, Y as deleteBgmInputSchema, Z as ChangeSpeechVoiceInput, _ as setVideoClipSpeedShiftInputSchema, a as speechAssetsSchema, at as adjustSpeechVolumeInputSchema, b as SetCaptionStyleInput, c as mediaIdSchema, ct as AddVideoClipsInput, d as speechIdsSchema, dt as addSpeechesInputSchema, et as AdjustVideoClipVolumeInput, f as speedShiftSchema, g as SetVideoClipSpeedShiftInput, h as volumeSchema, i as SpeechAssets, it as AdjustSpeechVolumeInput, j as moveVideoClipsInputSchema, k as replaceVideoClipContentInputSchema, l as positiveMsSchema, lt as addVideoClipsInputSchema, m as voiceSchema, n as CaptionAsset, nt as AdjustVideoClipDurationInput, o as clipIdSchema, ot as AdjustBgmVolumeInput, p as timelineMsSchema, q as deleteSpeechesInputSchema, r as SpeechAsset, rt as adjustVideoClipDurationInputSchema, s as clipIdsSchema, st as adjustBgmVolumeInputSchema, tt as adjustVideoClipVolumeInputSchema, u as speechIdSchema, ut as AddSpeechesInput, v as SetCaptionVisibilityInput, w as AnchoredReplacePolicy, x as setCaptionStyleInputSchema, y as setCaptionVisibilityInputSchema, z as moveBgmInputSchema } from "./index-Xoa8gpfl.js";
2
- export { AddSpeechesInput, AddVideoClipsInput, AdjustBgmVolumeInput, AdjustSpeechVolumeInput, AdjustVideoClipDurationInput, AdjustVideoClipVolumeInput, AnchoredDeletePolicy, AnchoredReplacePolicy, CaptionAsset, ChangeSpeechScriptInput, ChangeSpeechVoiceInput, DeleteBgmInput, DeleteSpeechesInput, DeleteVideoClipsInput, MoveAnchor, MoveBgmInput, MoveSpeechesInput, MoveVideoClipsByAnchorInput, MoveVideoClipsInput, MovedClipAnchoredPolicy, ReplaceVideoClipContentInput, ReplaceVideoClipSequenceInput, SetBgmInput, SetCaptionStyleInput, SetCaptionVisibilityInput, SetVideoClipSpeedShiftInput, SpeechAsset, SpeechAssets, addSpeechesInputSchema, addVideoClipsInputSchema, adjustBgmVolumeInputSchema, adjustSpeechVolumeInputSchema, adjustVideoClipDurationInputSchema, adjustVideoClipVolumeInputSchema, anchoredDeletePolicySchema, anchoredReplacePolicySchema, changeSpeechScriptInputSchema, changeSpeechVoiceInputSchema, clipIdSchema, clipIdsSchema, deleteBgmInputSchema, deleteSpeechesInputSchema, deleteVideoClipsInputSchema, mediaIdSchema, moveAnchorSchema, moveBgmInputSchema, moveSpeechesInputSchema, moveVideoClipsByAnchorInputSchema, moveVideoClipsInputSchema, movedClipAnchoredPolicySchema, positiveMsSchema, replaceVideoClipContentInputSchema, replaceVideoClipSequenceInputSchema, setBgmInputSchema, setCaptionStyleInputSchema, setCaptionVisibilityInputSchema, setVideoClipSpeedShiftInputSchema, speechAssetsSchema, speechIdSchema, speechIdsSchema, speedShiftSchema, timelineMsSchema, voiceSchema, volumeSchema };