@mengine/medeo-client 2.0.1-alpha.16 → 2.0.1-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{document-ecRldQY4.js → document-yPiwEmkJ.js} +36 -24
- package/dist/{index-BZtSciyB.d.ts → index-C0uUWqkz.d.ts} +1 -1
- package/dist/index.d.ts +175 -394
- package/dist/index.js +69 -1422
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as index_d_exports } from "./index-CMa6ZCtX.js";
|
|
2
|
-
import { $ as SpeechHostMap, A as assertValidVideoDocument, At as VideoDocumentValidationIssueCode, B as EntityRow, Bt as SpeedShift, C as isImplementedSemanticOpKind, Ct as Timeline, D as PartIdFactory, Dt as VideoClipPart, E as ValidationError, Et as TrackItemTimePosition, F as ResolvedEntityTrack, Ft as speedOf, G as SequenceDuration, H as CaptionSegmentSelection, Ht as Track$1, I as resolveEntityTimelineLayout, It as Attachment, J as JsonObject, K as SequenceRange, L as projectEntityTimeline, Lt as CaptionPart$1, M as EntityTimelineTrackRole, Mt as VideoDraftContent, N as ResolvedEntityClipPlacement, Nt as VideoDraftPartUnion, O as generatePartId, Ot as VideoDocument, P as ResolvedEntityTimelineLayout, Pt as effectiveVideoClipDurationMs, Q as DerivedItemPosition, R as EntityTimelineProjectionError, Rt as CaptionStyle, S as SemanticOpKind, St as SpeechPart, T as SnapshotReadable, Tt as TrackItem, U as CaptionStyleFields, Ut as TrackItem$1, V as RelationRow, Vt as Timeline$1, W as ScriptTextSegment, X as EntityId, Y as JsonValue, Z as buildInitialVideoDocument, _ as SemanticOpName, _t as CaptionDisplayCue, a as PlainMemoryAdapter, at as LaneKind, b as ImplementedSemanticOpKind, bt as PartKind, c as MirrorVideoDocumentAdapter, ct as findLaneTrack, d as createMirrorVideoDocumentAdapter, dt as TrackDraft, et as buildSpeechHostMap, f as CommitOptions, ft as TrackItemDraft, g as SemanticOpInput, gt as BgmPart, h as SemanticEditor, ht as videoDocumentMirrorSchema, i as JournalEntry, it as LANE_KINDS_IN_STACK_ORDER, j as validateVideoDocument, jt as VideoDraft, k as VideoDocumentValidationError, kt as VideoDocumentValidationIssue, l as MirrorVideoDocumentOptions, lt as laneTrackId, m as SemanticDocumentAdapter, mt as VideoDocumentMirrorSchema, n as videoDocumentSchema, nt as fromVideoDocument, o as PlainMemoryAdapterOptions, ot as SolvedVideoDocument, p as OpActor, pt as VideoDocumentDraft, q as VoiceDescriptor, r as readVideoDocumentFromDraft, rt as toVideoDocument, s as createPlainMemoryAdapter, st as ensureLaneTrack, t as partUnionSchema, tt as derivePositionFromAbs, u as createMirrorVideoDocument, ut as solveVideoDocument, v as TransactAudit, vt as CaptionPart, w as SchemaValidator, wt as Track, x as PlannedSemanticOpKind, xt as PartUnion, y as IMPLEMENTED_SEMANTIC_OP_KINDS, yt as DEFAULT_UNIT_TIME_MS, z as EntityRelationRows, zt as PartAggregation } from "./index-
|
|
2
|
+
import { $ as SpeechHostMap, A as assertValidVideoDocument, At as VideoDocumentValidationIssueCode, B as EntityRow, Bt as SpeedShift, C as isImplementedSemanticOpKind, Ct as Timeline, D as PartIdFactory, Dt as VideoClipPart, E as ValidationError, Et as TrackItemTimePosition, F as ResolvedEntityTrack, Ft as speedOf, G as SequenceDuration, H as CaptionSegmentSelection, Ht as Track$1, I as resolveEntityTimelineLayout, It as Attachment, J as JsonObject, K as SequenceRange, L as projectEntityTimeline, Lt as CaptionPart$1, M as EntityTimelineTrackRole, Mt as VideoDraftContent, N as ResolvedEntityClipPlacement, Nt as VideoDraftPartUnion, O as generatePartId, Ot as VideoDocument, P as ResolvedEntityTimelineLayout, Pt as effectiveVideoClipDurationMs, Q as DerivedItemPosition, R as EntityTimelineProjectionError, Rt as CaptionStyle, S as SemanticOpKind, St as SpeechPart, T as SnapshotReadable, Tt as TrackItem, U as CaptionStyleFields, Ut as TrackItem$1, V as RelationRow, Vt as Timeline$1, W as ScriptTextSegment, X as EntityId, Y as JsonValue, Z as buildInitialVideoDocument, _ as SemanticOpName, _t as CaptionDisplayCue, a as PlainMemoryAdapter, at as LaneKind, b as ImplementedSemanticOpKind, bt as PartKind, c as MirrorVideoDocumentAdapter, ct as findLaneTrack, d as createMirrorVideoDocumentAdapter, dt as TrackDraft, et as buildSpeechHostMap, f as CommitOptions, ft as TrackItemDraft, g as SemanticOpInput, gt as BgmPart, h as SemanticEditor, ht as videoDocumentMirrorSchema, i as JournalEntry, it as LANE_KINDS_IN_STACK_ORDER, j as validateVideoDocument, jt as VideoDraft, k as VideoDocumentValidationError, kt as VideoDocumentValidationIssue, l as MirrorVideoDocumentOptions, lt as laneTrackId, m as SemanticDocumentAdapter, mt as VideoDocumentMirrorSchema, n as videoDocumentSchema, nt as fromVideoDocument, o as PlainMemoryAdapterOptions, ot as SolvedVideoDocument, p as OpActor, pt as VideoDocumentDraft, q as VoiceDescriptor, r as readVideoDocumentFromDraft, rt as toVideoDocument, s as createPlainMemoryAdapter, st as ensureLaneTrack, t as partUnionSchema, tt as derivePositionFromAbs, u as createMirrorVideoDocument, ut as solveVideoDocument, v as TransactAudit, vt as CaptionPart, w as SchemaValidator, wt as Track, x as PlannedSemanticOpKind, xt as PartUnion, y as IMPLEMENTED_SEMANTIC_OP_KINDS, yt as DEFAULT_UNIT_TIME_MS, z as EntityRelationRows, zt as PartAggregation } from "./index-C0uUWqkz.js";
|
|
3
3
|
import { LoroDoc, PeerID } from "loro-crdt";
|
|
4
4
|
import { DocState } from "@mengine/sync";
|
|
5
5
|
import { BaseDocStorage, Connection, DocDiff, DocPushReceipt, DocSnapshotRecord, DocStorage, DocStorageOptions, DocUpdate, DocUpdateRecord } from "@mengine/storage";
|
|
@@ -262,169 +262,6 @@ declare class EntityGraphHttpClient {
|
|
|
262
262
|
private request;
|
|
263
263
|
}
|
|
264
264
|
//#endregion
|
|
265
|
-
//#region src/entity-crdt/field-changes.d.ts
|
|
266
|
-
/** List members are addressed by identity, never a transient array offset. */
|
|
267
|
-
type FieldPath = readonly (string | {
|
|
268
|
-
elementId: string;
|
|
269
|
-
})[];
|
|
270
|
-
type FieldChange = {
|
|
271
|
-
op: 'set';
|
|
272
|
-
path: FieldPath;
|
|
273
|
-
value: JsonValue;
|
|
274
|
-
} | {
|
|
275
|
-
op: 'unset';
|
|
276
|
-
path: FieldPath;
|
|
277
|
-
} | {
|
|
278
|
-
op: 'text.splice';
|
|
279
|
-
path: FieldPath;
|
|
280
|
-
index: number;
|
|
281
|
-
deleteCount: number;
|
|
282
|
-
text: string;
|
|
283
|
-
} | {
|
|
284
|
-
op: 'list.insert';
|
|
285
|
-
path: FieldPath;
|
|
286
|
-
value: JsonValue;
|
|
287
|
-
beforeElementId: string | null;
|
|
288
|
-
} | {
|
|
289
|
-
op: 'list.move';
|
|
290
|
-
path: FieldPath;
|
|
291
|
-
elementId: string;
|
|
292
|
-
beforeElementId: string | null;
|
|
293
|
-
} | {
|
|
294
|
-
op: 'list.remove';
|
|
295
|
-
path: FieldPath;
|
|
296
|
-
elementId: string;
|
|
297
|
-
};
|
|
298
|
-
declare function assertFieldChanges(changes: readonly FieldChange[]): void;
|
|
299
|
-
/** Resolve against the sequential causal view; the numeric path never crosses the API boundary. */
|
|
300
|
-
declare function resolveFieldPath(payload: JsonObject, path: FieldPath): (string | number)[];
|
|
301
|
-
/** Detached plan evaluation. Native compilation replays the original operations, not this snapshot. */
|
|
302
|
-
declare function applyFieldChanges(payload: JsonObject, changes: readonly FieldChange[]): JsonObject;
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region src/entity-crdt/entity-document.d.ts
|
|
305
|
-
declare const LORO_ENTITY_SCHEMA = "medeo.entities.loro.v1";
|
|
306
|
-
interface EntityDocumentState {
|
|
307
|
-
readonly rows: EntityRelationRows;
|
|
308
|
-
readonly project: Readonly<Record<string, string>>;
|
|
309
|
-
}
|
|
310
|
-
type Command = {
|
|
311
|
-
type: 'create';
|
|
312
|
-
row: EntityRow;
|
|
313
|
-
} | {
|
|
314
|
-
type: 'selection-baseline';
|
|
315
|
-
root: string;
|
|
316
|
-
fingerprint: string;
|
|
317
|
-
} | {
|
|
318
|
-
type: 'order';
|
|
319
|
-
group: string;
|
|
320
|
-
roots: string[];
|
|
321
|
-
token: string;
|
|
322
|
-
} | {
|
|
323
|
-
type: 'write';
|
|
324
|
-
root: string;
|
|
325
|
-
payload: JsonObject;
|
|
326
|
-
token: string;
|
|
327
|
-
} | {
|
|
328
|
-
type: 'text';
|
|
329
|
-
root: string;
|
|
330
|
-
path: readonly (string | number)[];
|
|
331
|
-
start: number;
|
|
332
|
-
deleteCount: number;
|
|
333
|
-
text: string;
|
|
334
|
-
token: string;
|
|
335
|
-
} | {
|
|
336
|
-
type: 'field';
|
|
337
|
-
root: string;
|
|
338
|
-
path: (string | number)[];
|
|
339
|
-
change: FieldChange;
|
|
340
|
-
token: string;
|
|
341
|
-
} | {
|
|
342
|
-
type: 'relation-field';
|
|
343
|
-
root: string;
|
|
344
|
-
path: (string | number)[];
|
|
345
|
-
change: FieldChange;
|
|
346
|
-
} | {
|
|
347
|
-
type: 'delete';
|
|
348
|
-
root: string;
|
|
349
|
-
} | {
|
|
350
|
-
type: 'relation';
|
|
351
|
-
row: RelationRow;
|
|
352
|
-
} | {
|
|
353
|
-
type: 'relation-fields';
|
|
354
|
-
root: string;
|
|
355
|
-
metadata: JsonObject;
|
|
356
|
-
trace: JsonObject;
|
|
357
|
-
} | {
|
|
358
|
-
type: 'unlink';
|
|
359
|
-
root: string;
|
|
360
|
-
} | {
|
|
361
|
-
type: 'attach';
|
|
362
|
-
slot: string;
|
|
363
|
-
entityId: string;
|
|
364
|
-
};
|
|
365
|
-
/** Plain domain objects assembled from native Loro state, never a second writable authority. */
|
|
366
|
-
declare function readEntityDocument(doc: LoroDoc, allowSelectionConflicts?: boolean): EntityDocumentState;
|
|
367
|
-
/** Native editing containers survive domain version changes and merge independently. */
|
|
368
|
-
declare class LoroEntityDocument {
|
|
369
|
-
readonly doc: LoroDoc;
|
|
370
|
-
private readonly validate?;
|
|
371
|
-
private readonly undoManager;
|
|
372
|
-
constructor(doc: LoroDoc, validate?: ((state: EntityDocumentState) => void) | undefined);
|
|
373
|
-
/** Open a causal snapshot using the same Loro runtime as the compiler. */
|
|
374
|
-
static fromSnapshot(snapshot: Uint8Array, validate?: (state: EntityDocumentState) => void): LoroEntityDocument;
|
|
375
|
-
static create(rows: EntityRelationRows, project?: Readonly<Record<string, string>>, peerId?: PeerID): LoroEntityDocument;
|
|
376
|
-
snapshot(): EntityDocumentState;
|
|
377
|
-
relationsOf(entityId: string): readonly RelationRow[];
|
|
378
|
-
/** Resolve a queued edit target through its native identity without changing history. */
|
|
379
|
-
resolveCurrentEntityId(id: string): string;
|
|
380
|
-
getVersion(id: string): EntityRow | undefined;
|
|
381
|
-
/** The callback and every domain validation execute on a causally complete fork first. */
|
|
382
|
-
transact(edit: (draft: LoroEntityDraft) => void): Uint8Array;
|
|
383
|
-
/** Import preserves native operation identities; projection errors never discard remote operations. */
|
|
384
|
-
import(update: Uint8Array): void;
|
|
385
|
-
/**
|
|
386
|
-
* Bind a saved snapshot without rewriting text operations or resolving
|
|
387
|
-
* selection conflicts. The script names the bytes the same way everything
|
|
388
|
-
* else does — an Asset entity plus a Relation — and keeps only the
|
|
389
|
-
* fingerprint that tells a stale snapshot from a current one. The Relation is
|
|
390
|
-
* `to-asset`: these bytes are the script's own content written out, not a
|
|
391
|
-
* source it was made from.
|
|
392
|
-
*/
|
|
393
|
-
bindAudioScriptAsset(entityId: string, assetId: string, expectedContentHash: string): Uint8Array;
|
|
394
|
-
canUndo(): boolean;
|
|
395
|
-
canRedo(): boolean;
|
|
396
|
-
undo(): boolean;
|
|
397
|
-
redo(): boolean;
|
|
398
|
-
private historyEdit;
|
|
399
|
-
}
|
|
400
|
-
declare class LoroEntityDraft {
|
|
401
|
-
private readonly doc;
|
|
402
|
-
readonly commands: Command[];
|
|
403
|
-
private readonly selectedRoots;
|
|
404
|
-
private readonly relationAliases;
|
|
405
|
-
constructor(doc: LoroDoc);
|
|
406
|
-
snapshot(): EntityDocumentState;
|
|
407
|
-
order(groupId: string, entityIds: readonly string[]): void;
|
|
408
|
-
/** Project the final scalar placement intents onto the existing native ordering containers. */
|
|
409
|
-
reconcileOrder(rows: EntityRelationRows): void;
|
|
410
|
-
create(row: EntityRow): void;
|
|
411
|
-
delete(entityId: string): void;
|
|
412
|
-
attach(slot: string, entityId: string): void;
|
|
413
|
-
link(row: RelationRow): void;
|
|
414
|
-
patchRelation(relationId: string, metadata: JsonObject, trace: JsonObject): void;
|
|
415
|
-
unlink(relationId: string): void;
|
|
416
|
-
private relationRoot;
|
|
417
|
-
update(entityId: string, fields: JsonObject): void;
|
|
418
|
-
declare(entityId: string, fields: JsonObject): void;
|
|
419
|
-
replaceOwned(entityId: string, payload: JsonObject): void;
|
|
420
|
-
editText(entityId: string, path: readonly (string | number)[], start: number, deleteCount: number, text: string): void;
|
|
421
|
-
/** Generic assembled-field edit compiled at the author's causal position. */
|
|
422
|
-
change(entityId: string, changes: readonly FieldChange[]): void;
|
|
423
|
-
changeRelation(relationId: string, changes: readonly FieldChange[]): void;
|
|
424
|
-
captureSelectionBaselines(): void;
|
|
425
|
-
private record;
|
|
426
|
-
}
|
|
427
|
-
//#endregion
|
|
428
265
|
//#region src/entity-editor/types.d.ts
|
|
429
266
|
/** Injectable domain-id mint shared by Entity and Relation authoring surfaces. */
|
|
430
267
|
type EntityTimelineIdFactory = (prefix: 'entity' | 'relation') => string;
|
|
@@ -446,9 +283,10 @@ interface AudioMediaAssetFact {
|
|
|
446
283
|
readonly storageKey: string;
|
|
447
284
|
}
|
|
448
285
|
/**
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
* which becomes its own Voice entity linked by a
|
|
286
|
+
* Speech. It materializes as a `voiceover` entity — its own kind, because only
|
|
287
|
+
* speech answers which words it said; `voice` names the timbre identity it was
|
|
288
|
+
* synthesized with, which becomes its own Voice entity linked by a
|
|
289
|
+
* `voice-timbre` Relation.
|
|
452
290
|
*/
|
|
453
291
|
interface VoiceoverMediaAssetFact {
|
|
454
292
|
/** Stable external speech result id, independent of the placed Clip id. */
|
|
@@ -456,76 +294,17 @@ interface VoiceoverMediaAssetFact {
|
|
|
456
294
|
readonly kind: 'voiceover';
|
|
457
295
|
readonly durationMs: number;
|
|
458
296
|
readonly storageKey: string;
|
|
297
|
+
/**
|
|
298
|
+
* The PhoneticScript this take was spoken from, when the caller minting it
|
|
299
|
+
* knows. A migration that rebuilds the whole chain relates it itself; either
|
|
300
|
+
* way a take that never names one is refused when a plan is built.
|
|
301
|
+
*/
|
|
302
|
+
readonly phoneticScriptEntityId?: string;
|
|
459
303
|
/** Present for synthesized speech, absent for original recorded audio. */
|
|
460
304
|
readonly voice?: VoiceDescriptor;
|
|
461
305
|
}
|
|
462
306
|
/** Facts resolved from media storage. A trim window never substitutes for intrinsic duration. */
|
|
463
307
|
type MediaAssetFact = ImageMediaAssetFact | VideoMediaAssetFact | AudioMediaAssetFact | VoiceoverMediaAssetFact;
|
|
464
|
-
/** Host-resolved ASR artifact. The SDK treats its storage fields as opaque facts. */
|
|
465
|
-
interface CaptionAssetFact {
|
|
466
|
-
readonly assetId: string;
|
|
467
|
-
readonly storageKey?: string;
|
|
468
|
-
}
|
|
469
|
-
interface AsrCaptionSegment extends ScriptTextSegment {
|
|
470
|
-
readonly startMs: number;
|
|
471
|
-
readonly endMs: number;
|
|
472
|
-
}
|
|
473
|
-
/** One closed host command for materializing an ASR result into the Entity graph. */
|
|
474
|
-
interface ApplyCaptionAssetsInput {
|
|
475
|
-
readonly effectId: string;
|
|
476
|
-
readonly timelineEntityId: string;
|
|
477
|
-
readonly trackEntityId: string;
|
|
478
|
-
readonly source: {
|
|
479
|
-
readonly entityId: string;
|
|
480
|
-
readonly entityKind: 'audio' | 'video';
|
|
481
|
-
};
|
|
482
|
-
/** The exact placed use whose source-relative ASR timing is being materialized. */
|
|
483
|
-
readonly sourceOccurrence: {
|
|
484
|
-
readonly clipEntityId: string;
|
|
485
|
-
readonly markerEntityId: string;
|
|
486
|
-
};
|
|
487
|
-
readonly captionAsset: CaptionAssetFact;
|
|
488
|
-
readonly segments: readonly AsrCaptionSegment[];
|
|
489
|
-
}
|
|
490
|
-
interface ApplyCaptionAssetsResult {
|
|
491
|
-
readonly audioScriptEntityId: string;
|
|
492
|
-
readonly audioScriptMarkerEntityId: string;
|
|
493
|
-
readonly captionAssetEntityId: string;
|
|
494
|
-
readonly captionEntityIds: readonly string[];
|
|
495
|
-
readonly captionClipEntityIds: readonly string[];
|
|
496
|
-
}
|
|
497
|
-
interface CaptionAssetsEffectEnvelope {
|
|
498
|
-
readonly version: 1;
|
|
499
|
-
readonly baselineFingerprint: string;
|
|
500
|
-
readonly effectId: string;
|
|
501
|
-
readonly signature: string;
|
|
502
|
-
readonly input: ApplyCaptionAssetsInput;
|
|
503
|
-
readonly decisions: {
|
|
504
|
-
readonly sourceOccurrence: {
|
|
505
|
-
readonly sourceStartMs: number;
|
|
506
|
-
readonly sourceEndMs: number;
|
|
507
|
-
readonly timelineStartMs: number;
|
|
508
|
-
readonly rate: number;
|
|
509
|
-
};
|
|
510
|
-
readonly targetRanges: readonly {
|
|
511
|
-
readonly segmentId: string;
|
|
512
|
-
readonly start: number;
|
|
513
|
-
readonly end: number;
|
|
514
|
-
}[];
|
|
515
|
-
readonly captionAsset: {
|
|
516
|
-
readonly mode: 'create' | 'reuse' | 'replace';
|
|
517
|
-
readonly priorAssetEntityId?: string;
|
|
518
|
-
readonly resultAssetEntityId: string;
|
|
519
|
-
readonly reboundRelationIds: readonly string[];
|
|
520
|
-
};
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
interface CompiledCaptionAssetsEffect {
|
|
524
|
-
readonly result: ApplyCaptionAssetsResult;
|
|
525
|
-
readonly replayed: boolean;
|
|
526
|
-
readonly update?: Uint8Array;
|
|
527
|
-
readonly rows: EntityRelationRows;
|
|
528
|
-
}
|
|
529
308
|
type ClipPlacement = {
|
|
530
309
|
readonly kind: 'sequential';
|
|
531
310
|
readonly order: number;
|
|
@@ -658,139 +437,6 @@ interface SetClipSpeedInput {
|
|
|
658
437
|
readonly clipEntityId: string;
|
|
659
438
|
readonly timeRemapping: LinearClipSpeed | null;
|
|
660
439
|
}
|
|
661
|
-
type VideoClipSpeedMode = '0.5x' | '0.75x' | '1.0x' | '1.5x' | '2.0x';
|
|
662
|
-
interface SetVideoClipSpeedEffectInput {
|
|
663
|
-
readonly clips: readonly {
|
|
664
|
-
readonly videoClipEntityId: string;
|
|
665
|
-
readonly mode: VideoClipSpeedMode;
|
|
666
|
-
}[];
|
|
667
|
-
}
|
|
668
|
-
interface GeneratedVisualClipFact {
|
|
669
|
-
readonly media: VisualMediaAssetFact;
|
|
670
|
-
/** Finite timeline use duration. Required for still images and bounded for video. */
|
|
671
|
-
readonly durationMs: number;
|
|
672
|
-
readonly generationJobId: string;
|
|
673
|
-
readonly sourceMediaEntityIds: readonly string[];
|
|
674
|
-
readonly volume?: number;
|
|
675
|
-
}
|
|
676
|
-
interface GeneratedVisualsInputBase {
|
|
677
|
-
readonly effectId: string;
|
|
678
|
-
readonly timelineEntityId: string;
|
|
679
|
-
readonly clips: readonly GeneratedVisualClipFact[];
|
|
680
|
-
}
|
|
681
|
-
/** Exactly one explicit occurrence anchor; the SDK never guesses a track edge. */
|
|
682
|
-
type AddGeneratedVisualsInput = GeneratedVisualsInputBase & ({
|
|
683
|
-
readonly beforeClipEntityId: string;
|
|
684
|
-
readonly afterClipEntityId?: never;
|
|
685
|
-
} | {
|
|
686
|
-
readonly beforeClipEntityId?: never;
|
|
687
|
-
readonly afterClipEntityId: string;
|
|
688
|
-
});
|
|
689
|
-
interface ContinueVideoInput {
|
|
690
|
-
readonly effectId: string;
|
|
691
|
-
readonly timelineEntityId: string;
|
|
692
|
-
readonly afterClipEntityId: string;
|
|
693
|
-
readonly tailFrameEntityId: string;
|
|
694
|
-
readonly sourceMediaEntityId: string;
|
|
695
|
-
readonly media: VideoMediaAssetFact;
|
|
696
|
-
}
|
|
697
|
-
interface GeneratedVisualEffectEnvelope {
|
|
698
|
-
readonly version: 1;
|
|
699
|
-
readonly baselineFingerprint: string;
|
|
700
|
-
readonly effectId: string;
|
|
701
|
-
readonly signature: string;
|
|
702
|
-
readonly input: AddGeneratedVisualsInput;
|
|
703
|
-
readonly decisions: {
|
|
704
|
-
readonly trackEntityId: string;
|
|
705
|
-
readonly anchorOrder: number;
|
|
706
|
-
readonly anchorPosition: 'before' | 'after';
|
|
707
|
-
readonly insertionOrders: readonly number[];
|
|
708
|
-
};
|
|
709
|
-
}
|
|
710
|
-
interface GeneratedVisualEffectResult {
|
|
711
|
-
readonly clipEntityIds: readonly string[];
|
|
712
|
-
readonly mediaEntityIds: readonly string[];
|
|
713
|
-
}
|
|
714
|
-
interface CompiledGeneratedVisualEffect {
|
|
715
|
-
readonly result: GeneratedVisualEffectResult;
|
|
716
|
-
readonly replayed: boolean;
|
|
717
|
-
readonly update?: Uint8Array;
|
|
718
|
-
readonly rows: EntityRelationRows;
|
|
719
|
-
}
|
|
720
|
-
interface GeneratedSpeechCaptionFact {
|
|
721
|
-
readonly startMs: number;
|
|
722
|
-
readonly endMs: number;
|
|
723
|
-
readonly selection: CaptionSegmentSelection;
|
|
724
|
-
}
|
|
725
|
-
/** Host-resolved current Loro segment; arbitrary immutable JSON fields remain owned by the script. */
|
|
726
|
-
type ResolvedSpeechScriptSegment = ScriptTextSegment & JsonObject;
|
|
727
|
-
type ResolvedAsrSpeechSegment = AsrCaptionSegment & JsonObject;
|
|
728
|
-
type GeneratedSpeechSourceFact = {
|
|
729
|
-
readonly kind: 'phonetic-script';
|
|
730
|
-
readonly audioScriptEntityId: string;
|
|
731
|
-
readonly phoneticScriptEntityId: string;
|
|
732
|
-
readonly segments: readonly ResolvedSpeechScriptSegment[];
|
|
733
|
-
readonly phonemeScript?: string;
|
|
734
|
-
} | {
|
|
735
|
-
readonly kind: 'audio-script';
|
|
736
|
-
readonly audioScriptEntityId?: string;
|
|
737
|
-
readonly segments: readonly ResolvedAsrSpeechSegment[];
|
|
738
|
-
readonly sourceMediaEntityIds: readonly string[];
|
|
739
|
-
readonly sourceStartMs: number;
|
|
740
|
-
};
|
|
741
|
-
interface GeneratedSpeechFact {
|
|
742
|
-
readonly media: VoiceoverMediaAssetFact;
|
|
743
|
-
readonly source: GeneratedSpeechSourceFact;
|
|
744
|
-
readonly captions: readonly GeneratedSpeechCaptionFact[];
|
|
745
|
-
readonly volume?: number;
|
|
746
|
-
}
|
|
747
|
-
interface AddSpeechAssetsInput {
|
|
748
|
-
readonly effectId: string;
|
|
749
|
-
readonly timelineEntityId: string;
|
|
750
|
-
readonly items: readonly (GeneratedSpeechFact & {
|
|
751
|
-
readonly placementStartMs: number;
|
|
752
|
-
})[];
|
|
753
|
-
}
|
|
754
|
-
interface ReplaceVoiceSpeechAssetsInput {
|
|
755
|
-
readonly effectId: string;
|
|
756
|
-
readonly timelineEntityId: string;
|
|
757
|
-
readonly items: readonly (GeneratedSpeechFact & {
|
|
758
|
-
readonly targetSpeechClipEntityId: string; /** Explicit current Caption uses replaced with this selected speech use. */
|
|
759
|
-
readonly targetCaptionClipEntityIds: readonly string[];
|
|
760
|
-
})[];
|
|
761
|
-
}
|
|
762
|
-
type SpeechAssetsEffectInput = {
|
|
763
|
-
readonly mode: 'add';
|
|
764
|
-
readonly value: AddSpeechAssetsInput;
|
|
765
|
-
} | {
|
|
766
|
-
readonly mode: 'replace-voice';
|
|
767
|
-
readonly value: ReplaceVoiceSpeechAssetsInput;
|
|
768
|
-
};
|
|
769
|
-
interface SpeechAssetsEffectEnvelope {
|
|
770
|
-
readonly version: 1;
|
|
771
|
-
readonly baselineFingerprint: string;
|
|
772
|
-
readonly effectId: string;
|
|
773
|
-
readonly signature: string;
|
|
774
|
-
readonly input: SpeechAssetsEffectInput;
|
|
775
|
-
readonly decisions: {
|
|
776
|
-
readonly speechTrackEntityId: string;
|
|
777
|
-
readonly captionTrackEntityId?: string;
|
|
778
|
-
readonly targetStartsMs: readonly number[];
|
|
779
|
-
};
|
|
780
|
-
}
|
|
781
|
-
interface SpeechAssetsEffectResult {
|
|
782
|
-
readonly speechClipEntityIds: readonly string[];
|
|
783
|
-
readonly speechAudioEntityIds: readonly string[];
|
|
784
|
-
readonly audioScriptEntityIds: readonly string[];
|
|
785
|
-
readonly phoneticScriptEntityIds: readonly string[];
|
|
786
|
-
readonly captionClipEntityIds: readonly (readonly string[])[];
|
|
787
|
-
}
|
|
788
|
-
interface CompiledSpeechAssetsEffect {
|
|
789
|
-
readonly result: SpeechAssetsEffectResult;
|
|
790
|
-
readonly replayed: boolean;
|
|
791
|
-
readonly update?: Uint8Array;
|
|
792
|
-
readonly rows: EntityRelationRows;
|
|
793
|
-
}
|
|
794
440
|
interface TrimClipInput {
|
|
795
441
|
readonly clipEntityId: string;
|
|
796
442
|
readonly sourceRange: SequenceRange<number>;
|
|
@@ -896,7 +542,6 @@ type ClipEntityId = EntityId;
|
|
|
896
542
|
* and committed only after validation succeeds.
|
|
897
543
|
*/
|
|
898
544
|
declare class EntityTimelineEditor {
|
|
899
|
-
#private;
|
|
900
545
|
private readonly idFactory;
|
|
901
546
|
private state;
|
|
902
547
|
constructor(initialRows: EntityRelationRows, idFactory?: EntityTimelineIdFactory);
|
|
@@ -914,9 +559,6 @@ declare class EntityTimelineEditor {
|
|
|
914
559
|
replaceMediaClip(input: ReplaceMediaClipInput): void;
|
|
915
560
|
setClipVolume(input: SetClipVolumeInput): void;
|
|
916
561
|
setClipSpeed(input: SetClipSpeedInput): void;
|
|
917
|
-
/** Apply one typed Director speed effect as a single graph transaction. */
|
|
918
|
-
setVideoClipSpeeds(input: SetVideoClipSpeedEffectInput): void;
|
|
919
|
-
private setClipSpeedIntoDraft;
|
|
920
562
|
trimClip(input: TrimClipInput): void;
|
|
921
563
|
replaceSequentialClips(input: ReplaceSequentialClipsInput): readonly ClipEntityId[];
|
|
922
564
|
deleteClip(input: DeleteClipInput): void;
|
|
@@ -937,9 +579,6 @@ declare class EntityTimelineEditor {
|
|
|
937
579
|
* never the Caption entity or the AudioScript.
|
|
938
580
|
*/
|
|
939
581
|
insertCaptionClip(input: InsertCaptionClipInput): ClipEntityId;
|
|
940
|
-
static compileCaptionAssetsEffect(base: LoroEntityDocument, envelope: CaptionAssetsEffectEnvelope): CompiledCaptionAssetsEffect;
|
|
941
|
-
static compileGeneratedVisualEffect(base: LoroEntityDocument, envelope: GeneratedVisualEffectEnvelope): CompiledGeneratedVisualEffect;
|
|
942
|
-
static compileSpeechAssetsEffect(base: LoroEntityDocument, envelope: SpeechAssetsEffectEnvelope): CompiledSpeechAssetsEffect;
|
|
943
582
|
private insertPlacedClipIntoDraft;
|
|
944
583
|
private ensureRoleTrack;
|
|
945
584
|
/** The existing pronunciation variant a voiceover consumes; composition is required. */
|
|
@@ -968,21 +607,6 @@ declare class EntityTimelineEditor {
|
|
|
968
607
|
private relinkRelation;
|
|
969
608
|
private mintRelationId;
|
|
970
609
|
}
|
|
971
|
-
/** Freeze every state-dependent choice once in the sole FE tool-effect handler. */
|
|
972
|
-
declare function prepareCaptionAssetsEffect(base: LoroEntityDocument, rawInput: ApplyCaptionAssetsInput): CaptionAssetsEffectEnvelope;
|
|
973
|
-
/**
|
|
974
|
-
* Compile only a frozen envelope on its exact causal baseline. Collaborators
|
|
975
|
-
* receive the resulting Loro update, never the raw effect.
|
|
976
|
-
*/
|
|
977
|
-
declare function compileCaptionAssetsEffect(base: LoroEntityDocument, envelope: CaptionAssetsEffectEnvelope): CompiledCaptionAssetsEffect;
|
|
978
|
-
/** Freeze the explicit insertion anchor and lineage on one causal baseline. */
|
|
979
|
-
declare function prepareGeneratedVisualEffect(base: LoroEntityDocument, rawInput: AddGeneratedVisualsInput): GeneratedVisualEffectEnvelope;
|
|
980
|
-
declare function prepareContinueVideoEffect(base: LoroEntityDocument, input: ContinueVideoInput): GeneratedVisualEffectEnvelope;
|
|
981
|
-
/** Compile once at the FE authority; retain the returned update bytes for retry and collaborators. */
|
|
982
|
-
declare function compileGeneratedVisualEffect(base: LoroEntityDocument, envelope: GeneratedVisualEffectEnvelope): CompiledGeneratedVisualEffect;
|
|
983
|
-
declare function prepareSpeechAssetsEffect(base: LoroEntityDocument, rawInput: SpeechAssetsEffectInput): SpeechAssetsEffectEnvelope;
|
|
984
|
-
/** Compile once at the FE authority; retain the returned update bytes for retry and collaborators. */
|
|
985
|
-
declare function compileSpeechAssetsEffect(base: LoroEntityDocument, envelope: SpeechAssetsEffectEnvelope): CompiledSpeechAssetsEffect;
|
|
986
610
|
//#endregion
|
|
987
611
|
//#region src/entity-editor/editor-resources.d.ts
|
|
988
612
|
declare const roleOrder: {
|
|
@@ -1035,12 +659,6 @@ interface ImportedMediaAsset {
|
|
|
1035
659
|
/** The timbre identity of a synthesized voiceover; absent for recorded media. */
|
|
1036
660
|
readonly voiceEntityId?: string;
|
|
1037
661
|
}
|
|
1038
|
-
interface ImportedCaptionAsset {
|
|
1039
|
-
readonly rows: EntityRelationRows;
|
|
1040
|
-
readonly assetEntityId: string;
|
|
1041
|
-
}
|
|
1042
|
-
/** Import only the fixed ASR artifact; Caption entities are authored separately. */
|
|
1043
|
-
declare function importCaptionAsset(initial: EntityRelationRows, fact: CaptionAssetFact, idFactory?: EntityTimelineIdFactory): ImportedCaptionAsset;
|
|
1044
662
|
/**
|
|
1045
663
|
* Import at the editor boundary, not at asset generation time. Existing
|
|
1046
664
|
* provenance is retained.
|
|
@@ -1083,6 +701,169 @@ interface DocumentAudioScriptState {
|
|
|
1083
701
|
/** Read only the attached version and preserve every segment; never aggregate other scripts. */
|
|
1084
702
|
declare function readDocumentAudioScript(state: DocumentAudioScriptState): DocumentAudioScript;
|
|
1085
703
|
//#endregion
|
|
704
|
+
//#region src/entity-crdt/field-changes.d.ts
|
|
705
|
+
/** List members are addressed by identity, never a transient array offset. */
|
|
706
|
+
type FieldPath = readonly (string | {
|
|
707
|
+
elementId: string;
|
|
708
|
+
})[];
|
|
709
|
+
type FieldChange = {
|
|
710
|
+
op: 'set';
|
|
711
|
+
path: FieldPath;
|
|
712
|
+
value: JsonValue;
|
|
713
|
+
} | {
|
|
714
|
+
op: 'unset';
|
|
715
|
+
path: FieldPath;
|
|
716
|
+
} | {
|
|
717
|
+
op: 'text.splice';
|
|
718
|
+
path: FieldPath;
|
|
719
|
+
index: number;
|
|
720
|
+
deleteCount: number;
|
|
721
|
+
text: string;
|
|
722
|
+
} | {
|
|
723
|
+
op: 'list.insert';
|
|
724
|
+
path: FieldPath;
|
|
725
|
+
value: JsonValue;
|
|
726
|
+
beforeElementId: string | null;
|
|
727
|
+
} | {
|
|
728
|
+
op: 'list.move';
|
|
729
|
+
path: FieldPath;
|
|
730
|
+
elementId: string;
|
|
731
|
+
beforeElementId: string | null;
|
|
732
|
+
} | {
|
|
733
|
+
op: 'list.remove';
|
|
734
|
+
path: FieldPath;
|
|
735
|
+
elementId: string;
|
|
736
|
+
};
|
|
737
|
+
declare function assertFieldChanges(changes: readonly FieldChange[]): void;
|
|
738
|
+
/** Resolve against the sequential causal view; the numeric path never crosses the API boundary. */
|
|
739
|
+
declare function resolveFieldPath(payload: JsonObject, path: FieldPath): (string | number)[];
|
|
740
|
+
/** Detached plan evaluation. Native compilation replays the original operations, not this snapshot. */
|
|
741
|
+
declare function applyFieldChanges(payload: JsonObject, changes: readonly FieldChange[]): JsonObject;
|
|
742
|
+
//#endregion
|
|
743
|
+
//#region src/entity-crdt/entity-document.d.ts
|
|
744
|
+
declare const LORO_ENTITY_SCHEMA = "medeo.entities.loro.v1";
|
|
745
|
+
interface EntityDocumentState {
|
|
746
|
+
readonly rows: EntityRelationRows;
|
|
747
|
+
readonly project: Readonly<Record<string, string>>;
|
|
748
|
+
}
|
|
749
|
+
type Command = {
|
|
750
|
+
type: 'create';
|
|
751
|
+
row: EntityRow;
|
|
752
|
+
} | {
|
|
753
|
+
type: 'selection-baseline';
|
|
754
|
+
root: string;
|
|
755
|
+
fingerprint: string;
|
|
756
|
+
} | {
|
|
757
|
+
type: 'order';
|
|
758
|
+
group: string;
|
|
759
|
+
roots: string[];
|
|
760
|
+
token: string;
|
|
761
|
+
} | {
|
|
762
|
+
type: 'write';
|
|
763
|
+
root: string;
|
|
764
|
+
payload: JsonObject;
|
|
765
|
+
token: string;
|
|
766
|
+
} | {
|
|
767
|
+
type: 'text';
|
|
768
|
+
root: string;
|
|
769
|
+
path: readonly (string | number)[];
|
|
770
|
+
start: number;
|
|
771
|
+
deleteCount: number;
|
|
772
|
+
text: string;
|
|
773
|
+
token: string;
|
|
774
|
+
} | {
|
|
775
|
+
type: 'field';
|
|
776
|
+
root: string;
|
|
777
|
+
path: (string | number)[];
|
|
778
|
+
change: FieldChange;
|
|
779
|
+
token: string;
|
|
780
|
+
} | {
|
|
781
|
+
type: 'relation-field';
|
|
782
|
+
root: string;
|
|
783
|
+
path: (string | number)[];
|
|
784
|
+
change: FieldChange;
|
|
785
|
+
} | {
|
|
786
|
+
type: 'delete';
|
|
787
|
+
root: string;
|
|
788
|
+
} | {
|
|
789
|
+
type: 'relation';
|
|
790
|
+
row: RelationRow;
|
|
791
|
+
} | {
|
|
792
|
+
type: 'relation-fields';
|
|
793
|
+
root: string;
|
|
794
|
+
metadata: JsonObject;
|
|
795
|
+
trace: JsonObject;
|
|
796
|
+
} | {
|
|
797
|
+
type: 'unlink';
|
|
798
|
+
root: string;
|
|
799
|
+
} | {
|
|
800
|
+
type: 'attach';
|
|
801
|
+
slot: string;
|
|
802
|
+
entityId: string;
|
|
803
|
+
};
|
|
804
|
+
/** Plain domain objects assembled from native Loro state, never a second writable authority. */
|
|
805
|
+
declare function readEntityDocument(doc: LoroDoc, allowSelectionConflicts?: boolean): EntityDocumentState;
|
|
806
|
+
/** Native editing containers survive domain version changes and merge independently. */
|
|
807
|
+
declare class LoroEntityDocument {
|
|
808
|
+
readonly doc: LoroDoc;
|
|
809
|
+
private readonly validate?;
|
|
810
|
+
private readonly undoManager;
|
|
811
|
+
constructor(doc: LoroDoc, validate?: ((state: EntityDocumentState) => void) | undefined);
|
|
812
|
+
/** Open a causal snapshot using the same Loro runtime as the compiler. */
|
|
813
|
+
static fromSnapshot(snapshot: Uint8Array, validate?: (state: EntityDocumentState) => void): LoroEntityDocument;
|
|
814
|
+
static create(rows: EntityRelationRows, project?: Readonly<Record<string, string>>, peerId?: PeerID): LoroEntityDocument;
|
|
815
|
+
snapshot(): EntityDocumentState;
|
|
816
|
+
relationsOf(entityId: string): readonly RelationRow[];
|
|
817
|
+
/** Resolve a queued edit target through its native identity without changing history. */
|
|
818
|
+
resolveCurrentEntityId(id: string): string;
|
|
819
|
+
getVersion(id: string): EntityRow | undefined;
|
|
820
|
+
/** The callback and every domain validation execute on a causally complete fork first. */
|
|
821
|
+
transact(edit: (draft: LoroEntityDraft) => void): Uint8Array;
|
|
822
|
+
/** Import preserves native operation identities; projection errors never discard remote operations. */
|
|
823
|
+
import(update: Uint8Array): void;
|
|
824
|
+
/**
|
|
825
|
+
* Bind a saved snapshot without rewriting text operations or resolving
|
|
826
|
+
* selection conflicts. The script names the bytes the same way everything
|
|
827
|
+
* else does — an Asset entity plus a Relation — and keeps only the
|
|
828
|
+
* fingerprint that tells a stale snapshot from a current one. The Relation is
|
|
829
|
+
* `to-asset`: these bytes are the script's own content written out, not a
|
|
830
|
+
* source it was made from.
|
|
831
|
+
*/
|
|
832
|
+
bindAudioScriptAsset(entityId: string, assetId: string, expectedContentHash: string): Uint8Array;
|
|
833
|
+
canUndo(): boolean;
|
|
834
|
+
canRedo(): boolean;
|
|
835
|
+
undo(): boolean;
|
|
836
|
+
redo(): boolean;
|
|
837
|
+
private historyEdit;
|
|
838
|
+
}
|
|
839
|
+
declare class LoroEntityDraft {
|
|
840
|
+
private readonly doc;
|
|
841
|
+
readonly commands: Command[];
|
|
842
|
+
private readonly selectedRoots;
|
|
843
|
+
private readonly relationAliases;
|
|
844
|
+
constructor(doc: LoroDoc);
|
|
845
|
+
snapshot(): EntityDocumentState;
|
|
846
|
+
order(groupId: string, entityIds: readonly string[]): void;
|
|
847
|
+
/** Project the final scalar placement intents onto the existing native ordering containers. */
|
|
848
|
+
reconcileOrder(rows: EntityRelationRows): void;
|
|
849
|
+
create(row: EntityRow): void;
|
|
850
|
+
delete(entityId: string): void;
|
|
851
|
+
attach(slot: string, entityId: string): void;
|
|
852
|
+
link(row: RelationRow): void;
|
|
853
|
+
patchRelation(relationId: string, metadata: JsonObject, trace: JsonObject): void;
|
|
854
|
+
unlink(relationId: string): void;
|
|
855
|
+
private relationRoot;
|
|
856
|
+
update(entityId: string, fields: JsonObject): void;
|
|
857
|
+
declare(entityId: string, fields: JsonObject): void;
|
|
858
|
+
replaceOwned(entityId: string, payload: JsonObject): void;
|
|
859
|
+
editText(entityId: string, path: readonly (string | number)[], start: number, deleteCount: number, text: string): void;
|
|
860
|
+
/** Generic assembled-field edit compiled at the author's causal position. */
|
|
861
|
+
change(entityId: string, changes: readonly FieldChange[]): void;
|
|
862
|
+
changeRelation(relationId: string, changes: readonly FieldChange[]): void;
|
|
863
|
+
captureSelectionBaselines(): void;
|
|
864
|
+
private record;
|
|
865
|
+
}
|
|
866
|
+
//#endregion
|
|
1086
867
|
//#region src/entity-crdt/compile-rows.d.ts
|
|
1087
868
|
/** Lower a detached ordinary-object edit against its actual causal Loro baseline. */
|
|
1088
869
|
declare function compileEntityRows(snapshot: Uint8Array, rows: EntityRelationRows, validate?: (state: EntityDocumentState) => void): {
|
|
@@ -1991,4 +1772,4 @@ declare function phoneticScriptAssetHash(rows: EntityRelationRows, entityId: str
|
|
|
1991
1772
|
/** The Asset a PhoneticScript was written out to, read from the graph. */
|
|
1992
1773
|
declare function phoneticScriptAssetOf(rows: EntityRelationRows, entityId: string): EntityRow | undefined;
|
|
1993
1774
|
//#endregion
|
|
1994
|
-
export { type
|
|
1775
|
+
export { type Aggregation, type AssembledCaptionContent, type AssembledPhoneticScriptContent, type Attachment, type AudioMediaAssetFact, type BgmPart, type CaptionContentInput, type CaptionDisplayCue, type CaptionPart, type CaptionSegmentSelection, type CaptionStyle, type ClipEntityId, type ClipPlacement, type CommitOptions, DEFAULT_UNIT_TIME_MS, type DeleteBgmInput, type DeleteClipInput, type DeleteClipTreeInput, type DeleteVoiceoverInput, type DerivedItemPosition, type DocStorageLike, type DocVersionMark, type DocumentAudioScript, type DocumentAudioScriptState, type EditorFoundation, EntityDocumentState, type EntityGraphCommitOptions, EntityGraphHttpClient, type EntityGraphState, EntityTimelineEditor, type EntityTimelineIdFactory, EntityTimelineProjectionError, type EntityTimelineTrackRole, type FieldChange, type FieldPath, IMPLEMENTED_SEMANTIC_OP_KINDS, type ImageMediaAssetFact, type ImplementedSemanticOpKind, type ImportedMediaAsset, type InsertCaptionClipInput, type InsertClipInput, type InsertMediaClipInput, type InsertMediaClipsInput, type InsertPlacedClipInput, type JournalEntry, LANE_KINDS_IN_STACK_ORDER, LORO_ENTITY_SCHEMA, type LaneKind, type LinearClipSpeed, LoroEntityDocument, LoroEntityDraft, type MainClipRange, type MakeEmptyPart, ManualSyncDoc, type ManualSyncDocOptions, MedeoHttpDocStorage, type MedeoHttpDocStorageOptions, type MediaAssetFact, type MediaClipInsertion, MemoryDocStorage, MengineAckFailedError, type MengineAuditEntry, type MengineAuditResponse, MengineDocSession, type MengineDocSessionOptions, type MengineDocSessionUpdateEvent, type MengineDocSyncState, type MengineDocumentVersion, type MengineEventStreamOptions, MengineHttpClient, type MengineHttpClientOptions, MengineHttpRequestError, MenginePushRejectedError, type MenginePushResponse, type MenginePushUpdateResponse, type MengineRejectedResponse, type MengineSnapshotResponse, type MengineSseUpdateEvent, type MengineSyncResponse, type MengineUndoState, type MengineUpdateMeta, MirrorVideoDocumentAdapter, type MirrorVideoDocumentOptions, type MoveClipInput, type MoveClipsToStartsInput, type MoveSequentialClipsInput, type MoveVoiceoverInput, type OpActor, type PartAggregation, type PartIdFactory, type PartKind, type PartUnion, type PatchCaptionStyleInput, PlainMemoryAdapter, type PlainMemoryAdapterOptions, type PlannedSemanticOpKind, type PullFailureReason, type PullResult, type PushOutcome, type PushOutcomeKind, type PushResult, type PushResultKind, type ReplaceClipContentInput, type ReplaceMediaClipInput, type ReplaceSequentialClipsInput, type ReplacementMediaClipInput, type ResolvedEntityClipPlacement, type ResolvedEntityTimelineLayout, type ResolvedEntityTrack, SchemaValidator, ScriptCompositionError, type SemanticDocumentAdapter, SemanticEditor, type SemanticOpInput, type SemanticOpKind, type SemanticOpName, type SequentialClipAnchor, type SetBgmInput, type SetCaptionVisibilityInput, type SetClipPlacementInput, type SetClipSpeedInput, type SetClipVolumeInput, type SnapshotReadable, type SolvedVideoDocument, type SpeechHostMap, type SpeechPart, type SpeedShift, TIMELINE_SKELETON_DURATION_MS, type Timeline, type TimelineDoc, type TimelineItem, type Track, type TrackDraft, type TrackItem, type TrackItemDraft, type TrackItemTimePosition, type TransactAudit, type TrimClipInput, type UpdateClipInput, type UpdateClipMarkerInput, ValidationError, type VideoClipPart, type VideoDocument, type VideoDocumentDraft, type VideoDocumentMirrorSchema, VideoDocumentValidationError, type VideoDocumentValidationIssue, type VideoDocumentValidationIssueCode, type VideoDraft, type CaptionPart$1 as VideoDraftCaptionPart, type VideoDraftContent, type VideoDraftPartUnion, type Timeline$1 as VideoDraftTimeline, type Track$1 as VideoDraftTrack, type TrackItem$1 as VideoDraftTrackItem, type VideoMediaAssetFact, type VisualMediaAssetFact, type VoiceoverCaptionFact, type VoiceoverMediaAssetFact, type VoiceoverTakeInput, type VoiceoverTakeResult, type WaitForServerAckOptions, applyEntityRows, applyFieldChanges, arrangeMainTrackSeamlessly, assembleCaptionContent, assembleEntityContent, assemblePhoneticScriptContent, assembleScriptText, assertCanonicalEditorResources, assertEntityProjectionPreservesLegacy, assertFieldChanges, assertMediaAssetWritePolicy, assertValidVideoDocument, audioScriptAssetContent, audioScriptAssetFields, audioScriptAssetHash, audioScriptAssetOf, base64ToBytes, buildInitialVideoDocument, buildSpeechHostMap, bytesToBase64, cascadeAfterVideoClipChanges, compileEntityRows, createEditSandbox, createMirrorVideoDocument, createMirrorVideoDocumentAdapter, createPlainMemoryAdapter, decodeDocVersionMark, derivePositionFromAbs, effectiveVideoClipDurationMs, encodeDocVersionMark, ensureEditorFoundation, ensureLaneTrack, fillMainTrackTimeGaps, findComposedAudioScript, findLaneTrack, fromVideoDocument, generatePartId, getAt, hostForAbsMs, importMediaAsset, isEmptyVideoClip, isImplementedSemanticOpKind, isMap, laneTrackId, mainTrackRanges, migrateLegacyTimelineToEntities, partDurationMs, partUnionSchema, phoneticScriptAssetContent, phoneticScriptAssetHash, phoneticScriptAssetOf, prepareCaptionContent, projectEntityTimeline, readDocumentAudioScript, readEntityDocument, readMainTrackItems, readMengineEventStream, readPart, readPartDurationMs, readVideoDocumentFromDraft, reassignSpeechesToVideoClipsByTime, recalculateTimelineDuration, relativePositionForAbs, replayJournal, resolveAllSpeechOverlaps, resolveEntityTimelineLayout, resolveFieldPath, resolveSpeechOverlapByShiftingVideos, safeDurationMs, index_d_exports as schemas, scriptSourceAssetOf, selectAudioScriptSegment, snapshotToPlain, solveVideoDocument, speedOf, syncAggregatedClipsTimePosition, toVideoDocument, validateVideoDocument, videoDocumentMirrorSchema, videoDocumentSchema };
|