@mengine/medeo-client 2.0.1-alpha.27 → 2.0.1-alpha.29
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-BGYPKtJ3.js → document-B3RLmTzA.js} +297 -32
- package/dist/{index-CcIoMxs1.d.ts → index-DaabF2vA.d.ts} +342 -76
- package/dist/index.d.ts +88 -17
- package/dist/index.js +422 -32
- 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 derivePositionFromAbs, A as assertValidVideoDocument, At as VideoDraftContent, B as EntityRow, Bt as Track$1, C as isImplementedSemanticOpKind, Ct as TrackItem, D as PartIdFactory, Dt as VideoDocumentValidationIssue, E as ValidationError, Et as VideoDocument, F as ResolvedEntityTrack, Ft as CaptionPart$1, G as VoiceDescriptor, H as CaptionSegmentSelection, I as resolveEntityTimelineLayout, It as CaptionStyle, J as EntityId, K as JsonObject, L as projectEntityTimeline, Lt as PartAggregation, M as EntityTimelineTrackRole, Mt as effectiveVideoClipDurationMs, N as ResolvedEntityClipPlacement, Nt as speedOf, O as generatePartId, Ot as VideoDocumentValidationIssueCode, P as ResolvedEntityTimelineLayout, Pt as Attachment, Q as buildSpeechHostMap, R as EntityTimelineProjectionError, Rt as SpeedShift, S as SemanticOpKind, St as Track, T as SnapshotReadable, Tt as VideoClipPart, U as CaptionStyleFields, V as RelationRow, Vt as TrackItem$1, W as ScriptTextSegment, X as DerivedItemPosition, Y as buildInitialVideoDocument, Z as SpeechHostMap, _ as SemanticOpName, _t as DEFAULT_UNIT_TIME_MS, a as PlainMemoryAdapter, at as ensureLaneTrack, b as ImplementedSemanticOpKind, bt as SpeechPart, c as MirrorVideoDocumentAdapter, ct as solveVideoDocument, d as createMirrorVideoDocumentAdapter, dt as VideoDocumentDraft, et as fromVideoDocument, f as CommitOptions, ft as VideoDocumentMirrorSchema, g as SemanticOpInput, gt as CaptionPart, h as SemanticEditor, ht as CaptionDisplayCue, i as JournalEntry, it as SolvedVideoDocument, j as validateVideoDocument, jt as VideoDraftPartUnion, k as VideoDocumentValidationError, kt as VideoDraft, l as MirrorVideoDocumentOptions, lt as TrackDraft, m as SemanticDocumentAdapter, mt as BgmPart, n as videoDocumentSchema, nt as LANE_KINDS_IN_STACK_ORDER, o as PlainMemoryAdapterOptions, ot as findLaneTrack, p as OpActor, pt as videoDocumentMirrorSchema, q as JsonValue, r as readVideoDocumentFromDraft, rt as LaneKind, s as createPlainMemoryAdapter, st as laneTrackId, t as partUnionSchema, tt as toVideoDocument, u as createMirrorVideoDocument, ut as TrackItemDraft, v as TransactAudit, vt as PartKind, w as SchemaValidator, wt as TrackItemTimePosition, x as PlannedSemanticOpKind, xt as Timeline, y as IMPLEMENTED_SEMANTIC_OP_KINDS, yt as PartUnion, z as EntityRelationRows, zt as Timeline$1 } from "./index-
|
|
2
|
+
import { $ as derivePositionFromAbs, A as assertValidVideoDocument, At as VideoDraftContent, B as EntityRow, Bt as Track$1, C as isImplementedSemanticOpKind, Ct as TrackItem, D as PartIdFactory, Dt as VideoDocumentValidationIssue, E as ValidationError, Et as VideoDocument, F as ResolvedEntityTrack, Ft as CaptionPart$1, G as VoiceDescriptor, H as CaptionSegmentSelection, I as resolveEntityTimelineLayout, It as CaptionStyle, J as EntityId, K as JsonObject, L as projectEntityTimeline, Lt as PartAggregation, M as EntityTimelineTrackRole, Mt as effectiveVideoClipDurationMs, N as ResolvedEntityClipPlacement, Nt as speedOf, O as generatePartId, Ot as VideoDocumentValidationIssueCode, P as ResolvedEntityTimelineLayout, Pt as Attachment, Q as buildSpeechHostMap, R as EntityTimelineProjectionError, Rt as SpeedShift, S as SemanticOpKind, St as Track, T as SnapshotReadable, Tt as VideoClipPart, U as CaptionStyleFields, V as RelationRow, Vt as TrackItem$1, W as ScriptTextSegment, X as DerivedItemPosition, Y as buildInitialVideoDocument, Z as SpeechHostMap, _ as SemanticOpName, _t as DEFAULT_UNIT_TIME_MS, a as PlainMemoryAdapter, at as ensureLaneTrack, b as ImplementedSemanticOpKind, bt as SpeechPart, c as MirrorVideoDocumentAdapter, ct as solveVideoDocument, d as createMirrorVideoDocumentAdapter, dt as VideoDocumentDraft, et as fromVideoDocument, f as CommitOptions, ft as VideoDocumentMirrorSchema, g as SemanticOpInput, gt as CaptionPart, h as SemanticEditor, ht as CaptionDisplayCue, i as JournalEntry, it as SolvedVideoDocument, j as validateVideoDocument, jt as VideoDraftPartUnion, k as VideoDocumentValidationError, kt as VideoDraft, l as MirrorVideoDocumentOptions, lt as TrackDraft, m as SemanticDocumentAdapter, mt as BgmPart, n as videoDocumentSchema, nt as LANE_KINDS_IN_STACK_ORDER, o as PlainMemoryAdapterOptions, ot as findLaneTrack, p as OpActor, pt as videoDocumentMirrorSchema, q as JsonValue, r as readVideoDocumentFromDraft, rt as LaneKind, s as createPlainMemoryAdapter, st as laneTrackId, t as partUnionSchema, tt as toVideoDocument, u as createMirrorVideoDocument, ut as TrackItemDraft, v as TransactAudit, vt as PartKind, w as SchemaValidator, wt as TrackItemTimePosition, x as PlannedSemanticOpKind, xt as Timeline, y as IMPLEMENTED_SEMANTIC_OP_KINDS, yt as PartUnion, z as EntityRelationRows, zt as Timeline$1 } from "./index-DaabF2vA.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";
|
|
@@ -242,6 +242,19 @@ interface EntityGraphCommitOptions {
|
|
|
242
242
|
/** Server version vector proving the explicit legacy-to-Entity migration baseline. */
|
|
243
243
|
readonly migrationBaseVv?: string;
|
|
244
244
|
}
|
|
245
|
+
interface EntityGraphRevisionConflictPayload {
|
|
246
|
+
readonly error: {
|
|
247
|
+
readonly code: 'revision_conflict';
|
|
248
|
+
readonly message: string;
|
|
249
|
+
readonly expected_revision: number;
|
|
250
|
+
readonly current_revision: number;
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
declare class EntityGraphRevisionConflictError extends MengineHttpRequestError {
|
|
254
|
+
readonly expectedRevision: number;
|
|
255
|
+
readonly currentRevision: number;
|
|
256
|
+
constructor(expectedRevision: number, currentRevision: number, payload: EntityGraphRevisionConflictPayload);
|
|
257
|
+
}
|
|
245
258
|
/** Browser-safe authenticated Loro client for a document's Entity graph. */
|
|
246
259
|
declare class EntityGraphHttpClient {
|
|
247
260
|
private readonly options;
|
|
@@ -251,14 +264,16 @@ declare class EntityGraphHttpClient {
|
|
|
251
264
|
fetchState(): Promise<EntityGraphState>;
|
|
252
265
|
/**
|
|
253
266
|
* Compile edits against the original causal snapshot and publish native Loro operations.
|
|
267
|
+
* The base revision is sent as an optimistic precondition, so a stale adoption
|
|
268
|
+
* fails loudly instead of letting Loro choose between concurrent selections.
|
|
254
269
|
*
|
|
255
270
|
* Deletion intent is derived from baseline IDs omitted from `nextRows`, so a
|
|
256
271
|
* transient create-then-remove never becomes a request to delete unknown
|
|
257
272
|
* persisted data.
|
|
258
273
|
*/
|
|
259
274
|
commit(baseState: Pick<EntityGraphState, 'revision' | 'rows' | 'loroSnapshot'>, nextRows: EntityRelationRows, options?: EntityGraphCommitOptions): Promise<EntityGraphState>;
|
|
260
|
-
/** Send
|
|
261
|
-
commitUpdate(update: string): Promise<EntityGraphState>;
|
|
275
|
+
/** Send prepared bytes directly; omit `expectedRevision` for immutable fact publication. */
|
|
276
|
+
commitUpdate(update: string, expectedRevision?: number): Promise<EntityGraphState>;
|
|
262
277
|
private request;
|
|
263
278
|
}
|
|
264
279
|
//#endregion
|
|
@@ -282,12 +297,7 @@ interface AudioMediaAssetFact {
|
|
|
282
297
|
readonly durationMs: number;
|
|
283
298
|
readonly storageKey: string;
|
|
284
299
|
}
|
|
285
|
-
/**
|
|
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.
|
|
290
|
-
*/
|
|
300
|
+
/** A synthesized speech result. Uploaded recordings remain raw `audio`. */
|
|
291
301
|
interface VoiceoverMediaAssetFact {
|
|
292
302
|
/** Stable external speech result id, independent of the placed Clip id. */
|
|
293
303
|
readonly assetId: string;
|
|
@@ -300,7 +310,7 @@ interface VoiceoverMediaAssetFact {
|
|
|
300
310
|
* way a take that never names one is refused when a plan is built.
|
|
301
311
|
*/
|
|
302
312
|
readonly phoneticScriptEntityId?: string;
|
|
303
|
-
/**
|
|
313
|
+
/** Timbre identity used for synthesis, when the caller has it. */
|
|
304
314
|
readonly voice?: VoiceDescriptor;
|
|
305
315
|
}
|
|
306
316
|
/** Facts resolved from media storage. A trim window never substitutes for intrinsic duration. */
|
|
@@ -591,11 +601,10 @@ declare class EntityTimelineEditor {
|
|
|
591
601
|
private ensureRoleTrack;
|
|
592
602
|
/** The existing pronunciation variant a voiceover consumes; composition is required. */
|
|
593
603
|
private requireComposedPhoneticScript;
|
|
594
|
-
/** Preserve the factual synthesis input
|
|
604
|
+
/** Preserve the factual synthesis input as `[rendered Audio, PhoneticScript]`. */
|
|
595
605
|
private ensurePhoneticRender;
|
|
596
606
|
private reconcileVoiceoverCaptions;
|
|
597
607
|
private ensureRoleTrackForClip;
|
|
598
|
-
private replaceCaptionAlignment;
|
|
599
608
|
/**
|
|
600
609
|
* Remove one placed Caption use. The composed AudioScript outlives the
|
|
601
610
|
* caption: it may anchor further captions and remains the text owner.
|
|
@@ -616,6 +625,35 @@ declare class EntityTimelineEditor {
|
|
|
616
625
|
private mintRelationId;
|
|
617
626
|
}
|
|
618
627
|
//#endregion
|
|
628
|
+
//#region src/entity-editor/revise-audio-script.d.ts
|
|
629
|
+
interface ReviseAudioScriptInput {
|
|
630
|
+
readonly editId: string;
|
|
631
|
+
readonly sourceAudioScriptEntityId: string;
|
|
632
|
+
readonly edits: readonly {
|
|
633
|
+
readonly segmentId: string;
|
|
634
|
+
readonly text: string;
|
|
635
|
+
}[];
|
|
636
|
+
readonly captionUsages?: readonly {
|
|
637
|
+
readonly clipEntityId: string;
|
|
638
|
+
readonly captionEntityId: string;
|
|
639
|
+
readonly markerEntityId: string;
|
|
640
|
+
readonly selection?: CaptionSegmentSelection;
|
|
641
|
+
}[];
|
|
642
|
+
}
|
|
643
|
+
interface ReviseAudioScriptResult {
|
|
644
|
+
readonly rows: EntityRelationRows;
|
|
645
|
+
readonly audioScriptEntityId: string;
|
|
646
|
+
readonly captionUsages: readonly {
|
|
647
|
+
readonly clipEntityId: string;
|
|
648
|
+
readonly previousCaptionEntityId: string;
|
|
649
|
+
readonly captionEntityId: string;
|
|
650
|
+
readonly markerEntityId: string;
|
|
651
|
+
}[];
|
|
652
|
+
readonly changed: boolean;
|
|
653
|
+
}
|
|
654
|
+
/** Revise text as an independent authored document, never as a version-family mutation. */
|
|
655
|
+
declare function reviseAudioScript(rows: EntityRelationRows, input: ReviseAudioScriptInput): ReviseAudioScriptResult;
|
|
656
|
+
//#endregion
|
|
619
657
|
//#region src/entity-editor/editor-resources.d.ts
|
|
620
658
|
declare const roleOrder: {
|
|
621
659
|
readonly caption: 0;
|
|
@@ -753,7 +791,14 @@ declare const LORO_ENTITY_SCHEMA = "medeo.entities.loro.v1";
|
|
|
753
791
|
interface EntityDocumentState {
|
|
754
792
|
readonly rows: EntityRelationRows;
|
|
755
793
|
readonly project: Readonly<Record<string, string>>;
|
|
794
|
+
readonly phoneticScriptSelections?: Readonly<Record<string, string>>;
|
|
756
795
|
}
|
|
796
|
+
/** One stable native relation root, including records tombstoned from the active projection. */
|
|
797
|
+
interface EntityRelationRecord extends RelationRow {
|
|
798
|
+
readonly deleted: boolean;
|
|
799
|
+
}
|
|
800
|
+
/** Read persisted relation roots before current entity versions are projected. */
|
|
801
|
+
declare function readEntityRelationRecords(doc: LoroDoc): readonly EntityRelationRecord[];
|
|
757
802
|
type Command = {
|
|
758
803
|
type: 'create';
|
|
759
804
|
row: EntityRow;
|
|
@@ -804,6 +849,14 @@ type Command = {
|
|
|
804
849
|
} | {
|
|
805
850
|
type: 'unlink';
|
|
806
851
|
root: string;
|
|
852
|
+
} | {
|
|
853
|
+
type: 'select-clip-content';
|
|
854
|
+
clipRoot: string;
|
|
855
|
+
relationRoot: string;
|
|
856
|
+
} | {
|
|
857
|
+
type: 'select-phonetic-script';
|
|
858
|
+
clipRoot: string;
|
|
859
|
+
phoneticScriptRoot: string;
|
|
807
860
|
} | {
|
|
808
861
|
type: 'attach';
|
|
809
862
|
slot: string;
|
|
@@ -827,7 +880,7 @@ declare class LoroEntityDocument {
|
|
|
827
880
|
getVersion(id: string): EntityRow | undefined;
|
|
828
881
|
/** The callback and every domain validation execute on a causally complete fork first. */
|
|
829
882
|
transact(edit: (draft: LoroEntityDraft) => void): Uint8Array;
|
|
830
|
-
/**
|
|
883
|
+
/** Validate remote operations on a fork before importing their native identities. */
|
|
831
884
|
import(update: Uint8Array): void;
|
|
832
885
|
/**
|
|
833
886
|
* Bind a saved snapshot without rewriting text operations or resolving
|
|
@@ -858,8 +911,12 @@ declare class LoroEntityDraft {
|
|
|
858
911
|
delete(entityId: string): void;
|
|
859
912
|
attach(slot: string, entityId: string): void;
|
|
860
913
|
link(row: RelationRow): void;
|
|
861
|
-
|
|
914
|
+
patchRelationTrace(relationId: string, trace: JsonObject): void;
|
|
862
915
|
unlink(relationId: string): void;
|
|
916
|
+
/** Select the one content membership projected for this stable Clip identity. */
|
|
917
|
+
selectClipContent(relationId: string): void;
|
|
918
|
+
/** Select the pending immutable pronunciation variant for one stable Speech Clip. */
|
|
919
|
+
selectPhoneticScript(clipEntityId: string, phoneticScriptEntityId: string): void;
|
|
863
920
|
private relationRoot;
|
|
864
921
|
update(entityId: string, fields: JsonObject): void;
|
|
865
922
|
declare(entityId: string, fields: JsonObject): void;
|
|
@@ -867,23 +924,37 @@ declare class LoroEntityDraft {
|
|
|
867
924
|
editText(entityId: string, path: readonly (string | number)[], start: number, deleteCount: number, text: string): void;
|
|
868
925
|
/** Generic assembled-field edit compiled at the author's causal position. */
|
|
869
926
|
change(entityId: string, changes: readonly FieldChange[]): void;
|
|
927
|
+
private assertGenericMutationAllowed;
|
|
870
928
|
changeRelation(relationId: string, changes: readonly FieldChange[]): void;
|
|
871
929
|
captureSelectionBaselines(): void;
|
|
872
930
|
private record;
|
|
873
931
|
}
|
|
874
932
|
//#endregion
|
|
875
933
|
//#region src/entity-crdt/compile-rows.d.ts
|
|
934
|
+
interface ApplyEntityRowsOptions {
|
|
935
|
+
readonly projectAttachments?: Readonly<Record<string, string>>;
|
|
936
|
+
readonly phoneticScriptSelections?: Readonly<Record<string, string>>;
|
|
937
|
+
}
|
|
876
938
|
/** Lower a detached ordinary-object edit against its actual causal Loro baseline. */
|
|
877
|
-
declare function compileEntityRows(snapshot: Uint8Array, rows: EntityRelationRows, validate?: (state: EntityDocumentState) => void): {
|
|
939
|
+
declare function compileEntityRows(snapshot: Uint8Array, rows: EntityRelationRows, validate?: (state: EntityDocumentState) => void, options?: ApplyEntityRowsOptions): {
|
|
940
|
+
update: Uint8Array;
|
|
941
|
+
state: EntityDocumentState;
|
|
942
|
+
};
|
|
943
|
+
/** Publish final rows as imported causal operations, outside the caller's local undo history. */
|
|
944
|
+
declare function publishEntityRows(editor: LoroEntityDocument, rows: EntityRelationRows, options?: ApplyEntityRowsOptions): {
|
|
878
945
|
update: Uint8Array;
|
|
879
946
|
state: EntityDocumentState;
|
|
880
947
|
};
|
|
881
948
|
/** Compile an edit on an existing peer, retaining its native local undo history. */
|
|
882
|
-
declare function applyEntityRows(editor: LoroEntityDocument, rows: EntityRelationRows): {
|
|
949
|
+
declare function applyEntityRows(editor: LoroEntityDocument, rows: EntityRelationRows, options?: ApplyEntityRowsOptions): {
|
|
883
950
|
update: Uint8Array;
|
|
884
951
|
state: EntityDocumentState;
|
|
885
952
|
};
|
|
886
953
|
//#endregion
|
|
954
|
+
//#region src/entity-crdt/legacy-schema-migration.d.ts
|
|
955
|
+
/** Replace only the four positionally equivalent alpha23 relation kinds. */
|
|
956
|
+
declare function migrateAlpha23EntityDocument(doc: LoroDoc): Uint8Array | undefined;
|
|
957
|
+
//#endregion
|
|
887
958
|
//#region src/editor/journal.d.ts
|
|
888
959
|
/**
|
|
889
960
|
* Wire a plain-memory adapter + editor that share a recording id factory, so
|
|
@@ -1780,4 +1851,4 @@ declare function phoneticScriptAssetHash(rows: EntityRelationRows, entityId: str
|
|
|
1780
1851
|
/** The Asset a PhoneticScript was written out to, read from the graph. */
|
|
1781
1852
|
declare function phoneticScriptAssetOf(rows: EntityRelationRows, entityId: string): EntityRow | undefined;
|
|
1782
1853
|
//#endregion
|
|
1783
|
-
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 };
|
|
1854
|
+
export { type Aggregation, ApplyEntityRowsOptions, 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, EntityGraphRevisionConflictError, type EntityGraphRevisionConflictPayload, type EntityGraphState, EntityRelationRecord, 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, type ReviseAudioScriptInput, type ReviseAudioScriptResult, 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, migrateAlpha23EntityDocument, migrateLegacyTimelineToEntities, partDurationMs, partUnionSchema, phoneticScriptAssetContent, phoneticScriptAssetHash, phoneticScriptAssetOf, prepareCaptionContent, projectEntityTimeline, publishEntityRows, readDocumentAudioScript, readEntityDocument, readEntityRelationRecords, readMainTrackItems, readMengineEventStream, readPart, readPartDurationMs, readVideoDocumentFromDraft, reassignSpeechesToVideoClipsByTime, recalculateTimelineDuration, relativePositionForAbs, replayJournal, resolveAllSpeechOverlaps, resolveEntityTimelineLayout, resolveFieldPath, resolveSpeechOverlapByShiftingVideos, reviseAudioScript, safeDurationMs, index_d_exports as schemas, scriptSourceAssetOf, selectAudioScriptSegment, snapshotToPlain, solveVideoDocument, speedOf, syncAggregatedClipsTimePosition, toVideoDocument, validateVideoDocument, videoDocumentMirrorSchema, videoDocumentSchema };
|