@mengine/medeo-client 2.1.1-dsl.2 → 2.1.1-dsl.21

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,4 +1,4 @@
1
- import { B as Media, E as CaptionStyle, J as TextEdit, M as DslDiagnostic, N as DslMutation, Q as TimeAnchor, R as FieldPatch, T as CaptionSelection, c as VideoDraftInput, et as TrackRole, h as DslIdFactory, o as VideoDraftContent, p as CommitOptions, tt as Voice, w as CaptionContent, z as MedeoDslSnapshot } from "./video-draft-types-c_shaRyq.js";
1
+ import { B as PhonemeSelection, J as SegmentSelection, L as FieldPatch, M as DslMutation, R as MedeoDslSnapshot, T as CaptionStyle, Y as StoredFile, Z as TextEdit, c as VideoDraftInput, h as DslIdFactory, it as Voice, j as DslDiagnostic, o as VideoDraftContent, p as CommitOptions, q as SegmentRange, rt as TrackRole, tt as TimeAnchor, w as CaptionSelection, z as Media } from "./video-draft-types-0J2vfXBu.js";
2
2
  import { ContainerType, Cursor, LoroDoc, PeerID, TreeID } from "loro-crdt";
3
3
 
4
4
  //#region src/dsl/action-context.d.ts
@@ -394,22 +394,12 @@ type InferBooleanType<S extends SchemaType> = S extends {
394
394
  transform: TransformDefinition<infer _C, infer D>;
395
395
  } ? WithOptionality<D, S> : WithOptionality<boolean, S>;
396
396
  //#endregion
397
- //#region ../medeo-dsl/src/schema/codec.d.ts
398
- interface InvalidAtomic {
399
- invalid: true;
400
- raw: string;
401
- reason: string;
402
- }
403
- declare function isInvalidAtomic(value: unknown): value is InvalidAtomic;
404
- interface AtomicCodec<T> {
405
- encode(value: T | InvalidAtomic): string;
406
- decode(raw: string): T | InvalidAtomic;
407
- }
408
- declare const timeAnchorCodec: AtomicCodec<TimeAnchor>;
409
- declare const captionContentCodec: AtomicCodec<CaptionContent>;
410
- //#endregion
411
397
  //#region ../medeo-dsl/src/schema/loro-shape.d.ts
412
- /** Only direct children inherit mergeable identity. Body and ordinary entity rows keep normal identities. */
398
+ /**
399
+ * Only direct children inherit mergeable identity. Text and ordinary entity rows keep normal
400
+ * identities, so deleting a row also drops what a peer wrote into it concurrently: a relation an
401
+ * entity holds at most one of is a field of that row and never outlives it.
402
+ */
413
403
  declare const medeoDslLoroShape: RootSchemaType<{
414
404
  'timeline-entities': LoroMapSchemaWithCatchall<{}, LoroMapSchema<{}> & {
415
405
  options: {};
@@ -434,12 +424,16 @@ declare const medeoDslLoroShape: RootSchemaType<{
434
424
  'clip-entities': LoroMapSchemaWithCatchall<{}, LoroMapSchema<{
435
425
  seqMarker: /*elided*/any;
436
426
  volume: /*elided*/any;
427
+ source: /*elided*/any;
428
+ anchor: /*elided*/any;
437
429
  }> & {
438
430
  options: {};
439
431
  } & {
440
432
  catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<{
441
433
  seqMarker: /*elided*/any;
442
434
  volume: /*elided*/any;
435
+ source: /*elided*/any;
436
+ anchor: /*elided*/any;
443
437
  }, C>;
444
438
  }> & {
445
439
  options: {};
@@ -468,19 +462,47 @@ declare const medeoDslLoroShape: RootSchemaType<{
468
462
  };
469
463
  };
470
464
  'audio-script-entities': LoroMapSchemaWithCatchall<{}, LoroMapSchema<{
471
- body: /*elided*/any;
465
+ segments: /*elided*/any;
472
466
  defaultLanguage: /*elided*/any;
467
+ system: /*elided*/any;
468
+ key: /*elided*/any;
469
+ storageKey: /*elided*/any;
470
+ digest: /*elided*/any;
473
471
  }> & {
474
472
  options: {};
475
473
  } & {
476
474
  catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<{
477
- body: /*elided*/any;
475
+ segments: /*elided*/any;
478
476
  defaultLanguage: /*elided*/any;
477
+ system: /*elided*/any;
478
+ key: /*elided*/any;
479
+ storageKey: /*elided*/any;
480
+ digest: /*elided*/any;
481
+ }, C>;
482
+ }> & {
483
+ options: {};
484
+ };
485
+ 'phonetic-script-entities': LoroMapSchemaWithCatchall<{}, LoroMapSchema<{
486
+ phoneme: /*elided*/any;
487
+ system: /*elided*/any;
488
+ key: /*elided*/any;
489
+ storageKey: /*elided*/any;
490
+ digest: /*elided*/any;
491
+ }> & {
492
+ options: {};
493
+ } & {
494
+ catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<{
495
+ phoneme: /*elided*/any;
496
+ system: /*elided*/any;
497
+ key: /*elided*/any;
498
+ storageKey: /*elided*/any;
499
+ digest: /*elided*/any;
479
500
  }, C>;
480
501
  }> & {
481
502
  options: {};
482
503
  };
483
504
  'caption-entities': LoroMapSchemaWithCatchall<{}, LoroMapSchema<{
505
+ selection: /*elided*/any;
484
506
  text: /*elided*/any;
485
507
  style: /*elided*/any;
486
508
  }> & {
@@ -489,6 +511,7 @@ declare const medeoDslLoroShape: RootSchemaType<{
489
511
  };
490
512
  } & {
491
513
  catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<{
514
+ selection: /*elided*/any;
492
515
  text: /*elided*/any;
493
516
  style: /*elided*/any;
494
517
  }, C>;
@@ -512,29 +535,10 @@ declare const medeoDslLoroShape: RootSchemaType<{
512
535
  readonly mergeableMapChildContainers: true;
513
536
  };
514
537
  };
515
- 'asset-entities': LoroMapSchemaWithCatchall<{}, LoroMapSchema<{
516
- system: /*elided*/any;
517
- key: /*elided*/any;
518
- storageKey: /*elided*/any;
519
- digest: /*elided*/any;
520
- }> & {
521
- options: {};
522
- } & {
523
- catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<{
524
- system: /*elided*/any;
525
- key: /*elided*/any;
526
- storageKey: /*elided*/any;
527
- digest: /*elided*/any;
528
- }, C>;
529
- }> & {
530
- options: {
531
- readonly mergeableMapChildContainers: true;
532
- };
533
- };
534
538
  'contain-relations': LoroTreeSchema<{
535
539
  entityId: /*elided*/any;
536
540
  }>;
537
- 'clip-source-relations': LoroMapSchemaWithCatchall<{}, LoroMapSchema<Record<string, StringSchemaType<string> & {
541
+ 'voice-timbre-relations': LoroMapSchemaWithCatchall<{}, LoroMapSchema<Record<string, StringSchemaType<string> & {
538
542
  options: {};
539
543
  } & {
540
544
  transform: <D>(def: TransformDefinition<string, D>) => StringSchemaType<string> & {
@@ -557,129 +561,23 @@ declare const medeoDslLoroShape: RootSchemaType<{
557
561
  readonly mergeableMapChildContainers: true;
558
562
  };
559
563
  };
560
- 'time-anchor-relations': LoroMapSchemaWithCatchall<{}, StringSchemaType<string> & {
561
- options: {};
562
- transform: TransformDefinition<string, TimeAnchor | InvalidAtomic>;
563
- }> & {
564
- options: {};
565
- };
566
- 'caption-content-relations': LoroMapSchemaWithCatchall<{}, StringSchemaType<string> & {
567
- options: {};
568
- transform: TransformDefinition<string, CaptionContent | InvalidAtomic>;
569
- }> & {
570
- options: {};
571
- };
572
- 'caption-alignment-relations': LoroMapSchemaWithCatchall<{}, LoroMapSchema<{
573
- captionId: /*elided*/any;
574
- mediaId: /*elided*/any;
575
- startMs: /*elided*/any;
576
- endMs: /*elided*/any;
564
+ 'derived-from-relations': LoroMapSchemaWithCatchall<{}, LoroMapSchema<{
565
+ entityId: /*elided*/any;
566
+ sourceId: /*elided*/any;
567
+ sourceDigest: /*elided*/any;
577
568
  }> & {
578
569
  options: {};
579
570
  } & {
580
571
  catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<{
581
- captionId: /*elided*/any;
582
- mediaId: /*elided*/any;
583
- startMs: /*elided*/any;
584
- endMs: /*elided*/any;
572
+ entityId: /*elided*/any;
573
+ sourceId: /*elided*/any;
574
+ sourceDigest: /*elided*/any;
585
575
  }, C>;
586
576
  }> & {
587
577
  options: {
588
578
  readonly mergeableMapChildContainers: true;
589
579
  };
590
580
  };
591
- 'voice-timbre-relations': LoroMapSchemaWithCatchall<{}, LoroMapSchema<Record<string, StringSchemaType<string> & {
592
- options: {};
593
- } & {
594
- transform: <D>(def: TransformDefinition<string, D>) => StringSchemaType<string> & {
595
- options: {};
596
- transform: TransformDefinition<string, D>;
597
- };
598
- }>> & {
599
- options: {};
600
- } & {
601
- catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<Record<string, StringSchemaType<string> & {
602
- options: {};
603
- } & {
604
- transform: <D>(def: TransformDefinition<string, D>) => StringSchemaType<string> & {
605
- options: {};
606
- transform: TransformDefinition<string, D>;
607
- };
608
- }>, C>;
609
- }> & {
610
- options: {
611
- readonly mergeableMapChildContainers: true;
612
- };
613
- };
614
- 'derived-from-relations': LoroMapSchemaWithCatchall<{}, LoroMapSchema<Record<string, StringSchemaType<string> & {
615
- options: {};
616
- } & {
617
- transform: <D>(def: TransformDefinition<string, D>) => StringSchemaType<string> & {
618
- options: {};
619
- transform: TransformDefinition<string, D>;
620
- };
621
- }>> & {
622
- options: {};
623
- } & {
624
- catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<Record<string, StringSchemaType<string> & {
625
- options: {};
626
- } & {
627
- transform: <D>(def: TransformDefinition<string, D>) => StringSchemaType<string> & {
628
- options: {};
629
- transform: TransformDefinition<string, D>;
630
- };
631
- }>, C>;
632
- }> & {
633
- options: {
634
- readonly mergeableMapChildContainers: true;
635
- };
636
- };
637
- 'from-asset-relations': LoroMapSchemaWithCatchall<{}, LoroMapSchema<Record<string, StringSchemaType<string> & {
638
- options: {};
639
- } & {
640
- transform: <D>(def: TransformDefinition<string, D>) => StringSchemaType<string> & {
641
- options: {};
642
- transform: TransformDefinition<string, D>;
643
- };
644
- }>> & {
645
- options: {};
646
- } & {
647
- catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<Record<string, StringSchemaType<string> & {
648
- options: {};
649
- } & {
650
- transform: <D>(def: TransformDefinition<string, D>) => StringSchemaType<string> & {
651
- options: {};
652
- transform: TransformDefinition<string, D>;
653
- };
654
- }>, C>;
655
- }> & {
656
- options: {
657
- readonly mergeableMapChildContainers: true;
658
- };
659
- };
660
- 'to-asset-relations': LoroMapSchemaWithCatchall<{}, LoroMapSchema<Record<string, StringSchemaType<string> & {
661
- options: {};
662
- } & {
663
- transform: <D>(def: TransformDefinition<string, D>) => StringSchemaType<string> & {
664
- options: {};
665
- transform: TransformDefinition<string, D>;
666
- };
667
- }>> & {
668
- options: {};
669
- } & {
670
- catchall: <C extends SchemaType>(catchallSchema: C) => LoroMapSchemaWithCatchall<Record<string, StringSchemaType<string> & {
671
- options: {};
672
- } & {
673
- transform: <D>(def: TransformDefinition<string, D>) => StringSchemaType<string> & {
674
- options: {};
675
- transform: TransformDefinition<string, D>;
676
- };
677
- }>, C>;
678
- }> & {
679
- options: {
680
- readonly mergeableMapChildContainers: true;
681
- };
682
- };
683
581
  }> & {
684
582
  options: {};
685
583
  };
@@ -695,6 +593,22 @@ type MedeoDslDraft = DraftFields<Omit<Input, 'contain-relations'>> & {
695
593
  'contain-relations': ContainDraftNode[];
696
594
  };
697
595
  //#endregion
596
+ //#region ../medeo-dsl/src/schema/codec.d.ts
597
+ interface InvalidAtomic {
598
+ invalid: true;
599
+ raw: string;
600
+ reason: string;
601
+ }
602
+ declare function isInvalidAtomic(value: unknown): value is InvalidAtomic;
603
+ interface AtomicCodec<T> {
604
+ encode(value: T | InvalidAtomic): string;
605
+ decode(raw: string): T | InvalidAtomic;
606
+ }
607
+ /** A Clip's time anchor; the Clip holding it is the anchored end. */
608
+ declare const timeAnchorCodec: AtomicCodec<TimeAnchor>;
609
+ /** A Caption's selection. */
610
+ declare const captionContentCodec: AtomicCodec<SegmentSelection>;
611
+ //#endregion
698
612
  //#region ../medeo-dsl/src/schema/document-format.d.ts
699
613
  /** Format discrimination does not register containers or alter the document. */
700
614
  declare function documentFormat(doc: LoroDoc): 'dsl' | 'legacy' | 'mixed' | 'unknown';
@@ -721,10 +635,23 @@ interface DslTransaction {
721
635
  readonly draft: MedeoDslDraft;
722
636
  applyMutations(mutations: readonly DslMutation[]): void;
723
637
  /** Offsets use the preview after preceding edits. Existing Text identities are checked when supplied. */
724
- editText(audioScriptId: string, edits: readonly TextEdit[], expectedBodyId?: string): void;
725
- /** Creates real Cursors during application; pending ranges are not exposed as draft Cursor objects. */
638
+ editText(audioScriptId: string, segmentId: string, edits: readonly TextEdit[], expectedBodyId?: string): void;
726
639
  editCaptionText(captionId: string, edits: readonly TextEdit[], expectedBodyId?: string): void;
640
+ /**
641
+ * Adds a segment at `index` (the end by default); its id must be new to the script. A transcript's
642
+ * segment states where its words were spoken in the medium, as its transcription file gave them.
643
+ */
644
+ insertSegment(audioScriptId: string, segmentId: string, text: string, index?: number, time?: {
645
+ startMs: number;
646
+ endMs: number;
647
+ }): void;
648
+ /** `index` is measured after removing the segment. */
649
+ moveSegment(audioScriptId: string, segmentId: string, index: number): void;
650
+ deleteSegment(audioScriptId: string, segmentId: string): void;
651
+ /** Creates real Cursors during application; pending ranges are not exposed as draft Cursor objects. */
727
652
  setCaptionContent(selection: CaptionSelection): void;
653
+ /** Writes a PhoneticScript's phoneme, its run turned into Cursors like a Caption's. */
654
+ setPhoneme(selection: PhonemeSelection): void;
728
655
  }
729
656
  //#endregion
730
657
  //#region src/dsl/document/medeo-dsl.d.ts
@@ -762,10 +689,13 @@ declare class MedeoDsl {
762
689
  transact(edit: (tx: DslTransaction) => void, audit: DslAudit): void;
763
690
  /** Preferred vocabulary for ordinary entity/relation/Tree edits and serializable native commands. */
764
691
  applyMutations(mutations: readonly DslMutation[], audit: DslAudit): void;
765
- editText(scriptId: string, expectedBodyId: string, edits: readonly TextEdit[], audit: DslAudit): void;
692
+ editText(scriptId: string, segmentId: string, expectedBodyId: string, edits: readonly TextEdit[], audit: DslAudit): void;
766
693
  editCaptionText(captionId: string, expectedBodyId: string, edits: readonly TextEdit[], audit: DslAudit): void;
767
- /** Local ranges exclude insertions at their start and include insertions at their end. K01 remains deferred. */
768
- textRange(scriptId: string, start: number, end: number): Omit<CaptionContent, 'captionId'>;
694
+ /**
695
+ * A run inside one segment as native Cursors. Local ranges exclude insertions at their start and
696
+ * include insertions at their end. K01 remains deferred.
697
+ */
698
+ textRange(scriptId: string, segmentId: string, start: number, end: number): SegmentSelection;
769
699
  dispose(): void;
770
700
  private mutate;
771
701
  private notify;
@@ -777,8 +707,10 @@ interface VoiceoverCaptionInput {
777
707
  clipId?: string;
778
708
  startMs: number;
779
709
  durationMs: number;
780
- /** UTF-16 selection in the supplied AudioScript; timing remains a separate fact. */
781
- range: {
710
+ /** The segment of the voiceover's script it shows, by index; timing remains a separate fact. */
711
+ segment: number;
712
+ /** A UTF-16 run inside that segment; without one the whole segment shows. */
713
+ range?: {
782
714
  start: number;
783
715
  end: number;
784
716
  };
@@ -793,34 +725,61 @@ interface ApplyVoiceoverInput {
793
725
  }> & {
794
726
  kind: 'voiceover-recording';
795
727
  };
728
+ /**
729
+ * What the recording says: an existing AudioScript, a new one of these `segments`, or a
730
+ * PhoneticScript it was spoken from. A recording spoken from a PhoneticScript is derived-from it,
731
+ * and its captions select segments of that variant's base script.
732
+ */
796
733
  script: {
797
734
  audioScriptId: string;
798
- body?: never;
735
+ segments?: never;
736
+ phoneticScriptId?: never;
799
737
  } | {
800
- body: string;
738
+ segments: string[];
801
739
  audioScriptId?: never;
740
+ phoneticScriptId?: never;
802
741
  defaultLanguage?: string;
742
+ } | {
743
+ phoneticScriptId: string;
744
+ audioScriptId?: never;
745
+ segments?: never;
803
746
  };
804
747
  placement: ClipPlacement;
748
+ /**
749
+ * The digest of what the recording was synthesized from (D177): the PhoneticScript as it was
750
+ * read for synthesis. Absent, the source's digest as this voiceover leaves it is recorded.
751
+ */
752
+ sourceDigest?: string;
805
753
  volume?: number;
806
754
  voice?: Voice;
807
- /** Complete generated caption set for this use. Other uses of the recording are untouched. */
755
+ /**
756
+ * Complete generated caption set for this use. It replaces the Caption Clips showing what the
757
+ * use's current take says: those whose Caption selects it (D183).
758
+ */
808
759
  captions: readonly VoiceoverCaptionInput[];
809
760
  }
810
761
  interface VoiceoverResult {
811
762
  clipId: string;
812
763
  mediaId: string;
813
764
  audioScriptId: string;
765
+ /** Ids of a new script's segments, in order; empty when the script already exists. */
766
+ segmentIds: string[];
814
767
  captionClipIds: string[];
815
768
  captionIds: string[];
816
769
  }
817
770
  //#endregion
818
771
  //#region src/dsl/dsl-editor.d.ts
772
+ /**
773
+ * Stores raw content in Memota as a text file and returns the file's facts. The host owns the
774
+ * store; an entity with the Media File trait keeps the facts beside the content (D178).
775
+ */
776
+ type UploadText = (text: string) => Promise<StoredFile>;
819
777
  /** Business edits write DSL facts in one audited transaction; layout is derived on read. */
820
778
  declare class DslEditor {
821
779
  readonly dsl: MedeoDsl;
822
780
  private readonly idFactory;
823
- constructor(dsl: MedeoDsl, idFactory?: DslIdFactory);
781
+ private readonly uploadText?;
782
+ constructor(dsl: MedeoDsl, idFactory?: DslIdFactory, uploadText?: UploadText | undefined);
824
783
  createTrack(role: TrackRole, options?: CommitOptions): string;
825
784
  registerMedia(media: Media, options?: CommitOptions): string;
826
785
  addClips(input: AddDslClipsInput, options?: CommitOptions): string[];
@@ -834,22 +793,28 @@ declare class DslEditor {
834
793
  rate: number;
835
794
  } | undefined, options?: CommitOptions): void;
836
795
  setClipVolume(clipId: string, volume: number | undefined, options?: CommitOptions): void;
837
- createAudioScript(body: string, defaultLanguage?: string, options?: CommitOptions): string;
838
- editAudioScript(scriptId: string, expectedBodyId: string, edits: readonly TextEdit[], options?: CommitOptions): void;
839
- createCaption(input: ({
840
- audioScriptId: string;
841
- start: number;
842
- end: number;
796
+ /** A script of these segments, in order; each segment gets its own id. */
797
+ createAudioScript(segments: readonly string[], defaultLanguage?: string, options?: CommitOptions): string;
798
+ editAudioScript(scriptId: string, segmentId: string, expectedBodyId: string, edits: readonly TextEdit[], options?: CommitOptions): void;
799
+ /** Adds a segment at `index`, the end by default, and returns its id. */
800
+ insertScriptSegment(scriptId: string, text: string, index?: number, options?: CommitOptions): string;
801
+ /** `index` is measured after removing the segment. */
802
+ moveScriptSegment(scriptId: string, segmentId: string, index: number, options?: CommitOptions): void;
803
+ /** Captions and PhoneticScripts selecting the segment keep their selection, which then shows nothing (D72). */
804
+ deleteScriptSegment(scriptId: string, segmentId: string, options?: CommitOptions): void;
805
+ createCaption(input: ((SegmentRange & {
843
806
  text?: never;
844
- } | {
807
+ }) | {
845
808
  text: string;
846
809
  audioScriptId?: never;
810
+ segmentId?: never;
847
811
  start?: never;
848
812
  end?: never;
849
813
  }) & {
850
814
  style?: CaptionStyle;
851
815
  }, options?: CommitOptions): string;
852
- setCaptionContent(captionId: string, audioScriptId: string, start: number, end: number, options?: CommitOptions): void;
816
+ /** Show a segment of a script, or a run of it, in place of the Caption's own text. */
817
+ setCaptionContent(captionId: string, selection: SegmentRange, options?: CommitOptions): void;
853
818
  setCaptionText(captionId: string, text: string, options?: CommitOptions): void;
854
819
  editCaptionText(captionId: string, expectedBodyId: string, edits: readonly TextEdit[], options?: CommitOptions): void;
855
820
  moveTrack(trackId: string, index: number, options?: CommitOptions): void;
@@ -866,6 +831,19 @@ declare class DslEditor {
866
831
  updateClips(updates: readonly DslClipUpdate[], options?: CommitOptions): void;
867
832
  patchCaptionStyle(captionIds: readonly string[], patch: FieldPatch<CaptionStyle>, options?: CommitOptions): void;
868
833
  applyVoiceover(input: ApplyVoiceoverInput, options?: CommitOptions): VoiceoverResult;
834
+ private voiceoverScriptId;
835
+ /**
836
+ * Write a PhoneticScript: create one for a segment of a script, or a run of it, or, given
837
+ * `phoneticScriptId`, replace its selection and what to synthesize together (D181). A
838
+ * `phonemeScript` is stored as a Memota text file first, and the file's facts are written with
839
+ * it; an unchanged one keeps its file. Recordings already spoken from it keep their derived-from.
840
+ */
841
+ setPhoneticScript(input: SegmentRange & {
842
+ phoneticScriptId?: string;
843
+ phonemeScript?: string;
844
+ }, options?: CommitOptions): Promise<string>;
845
+ /** The file holding `text`: the one the PhoneticScript keeps while its text is unchanged, else a new upload. */
846
+ private fileFor;
869
847
  setBgm(input: ClipSource & {
870
848
  trackId: string;
871
849
  clipId?: string;
@@ -924,6 +902,65 @@ interface VideoDraftProjection {
924
902
  /** A content read view, not an archive of authoring identities, rich-text marks or provenance. */
925
903
  declare function toVideoDraft(snapshot: MedeoDslSnapshot): VideoDraftProjection;
926
904
  //#endregion
905
+ //#region src/dsl/projection/audio-scripts.d.ts
906
+ /**
907
+ * An AudioScript with everything that says or shows it, read from the same snapshot as the
908
+ * VideoDraft. Speeches and captions come in playback order.
909
+ */
910
+ interface AudioScriptView {
911
+ id: string;
912
+ /** Its segments, in order. */
913
+ segments: {
914
+ id: string;
915
+ text: string;
916
+ language?: string; /** A transcript's segment: where its words were spoken in the medium, as its transcription file gave them. */
917
+ startMs?: number;
918
+ endMs?: number;
919
+ /**
920
+ * Where that falls on the Timeline (D186): through the Clip playing the medium the script was
921
+ * read off whose window holds `startMs`. Absent when no Clip plays that moment.
922
+ */
923
+ timelineMs?: number;
924
+ }[];
925
+ /** Media the script was read off (a transcript), through derived-from. */
926
+ sourceMediaIds: string[];
927
+ /**
928
+ * Its variants written for synthesis: the segment each is for (by index, absent once that
929
+ * segment is gone), what its selection holds, what to synthesize, and its file's digest.
930
+ */
931
+ phoneticScripts: {
932
+ id: string;
933
+ segment?: number;
934
+ text?: string;
935
+ phonemeScript?: string;
936
+ digest?: string;
937
+ }[];
938
+ /** Speech Clips playing a recording of these words. */
939
+ speeches: {
940
+ clipId: string;
941
+ recordingId: string; /** The PhoneticScript the recording was spoken from; absent when it derives from the script directly. */
942
+ phoneticScriptId?: string;
943
+ voices: {
944
+ voiceId: string;
945
+ key: string;
946
+ name?: string;
947
+ }[];
948
+ /**
949
+ * Whether the recording was synthesized from its source as it is now: the digest its
950
+ * derived-from records equals the source's digest (D177). Absent when either has none.
951
+ */
952
+ applied?: boolean;
953
+ }[];
954
+ /** Caption Clips showing one of its segments. A Caption with its own text shows none. */
955
+ captions: {
956
+ clipId: string;
957
+ captionId: string;
958
+ segment: number;
959
+ }[];
960
+ }
961
+ /** Every AudioScript in the document with its PhoneticScripts, the Speech Clips saying it and the Caption Clips showing it. */
962
+ declare function toAudioScriptViews(snapshot: MedeoDslSnapshot): AudioScriptView[];
963
+ //#endregion
927
964
  //#region src/dsl/projection/from-video-draft.d.ts
928
965
  interface FromVideoDraftOptions extends CreateMedeoDslOptions {
929
966
  /** Complete physical media facts, keyed by their external system/key; no IO runs in the converter. */
@@ -937,4 +974,4 @@ interface ImportedVideoDraft {
937
974
  /** One-time import into a newly owned document; never reverse-diff a live collaborative document. */
938
975
  declare function fromVideoDraft(input: VideoDraftInput, options: FromVideoDraftOptions): ImportedVideoDraft;
939
976
  //#endregion
940
- export { AddDslClip as A, MedeoDslDraft as C, captionContentCodec as D, InvalidAtomic as E, ReplaceDslClipsInput as F, ClipPlacement as I, ClipSource as M, DslClipUpdate as N, isInvalidAtomic as O, MoveDslClipsInput as P, documentFormat as S, medeoDslLoroShape as T, MedeoDsl as _, toVideoDraft as a, UnsupportedDocumentFormatError as b, DslLayout as c, createInitialMedeoDsl as d, DslEditor as f, CreateMedeoDslOptions as g, VoiceoverResult as h, VideoDraftProjection as i, AddDslClipsInput as j, timeAnchorCodec as k, DslProjectionError as l, VoiceoverCaptionInput as m, ImportedVideoDraft as n, resolveDslLayout as o, ApplyVoiceoverInput as p, fromVideoDraft as r, DslClipLayout as s, FromVideoDraftOptions as t, DslTrackLayout as u, DslAudit as v, MedeoDslLoroState as w, assertDslDocument as x, DslTransaction as y };
977
+ export { MedeoDslDraft as A, UnsupportedDocumentFormatError as C, captionContentCodec as D, InvalidAtomic as E, ClipSource as F, DslClipUpdate as I, MoveDslClipsInput as L, medeoDslLoroShape as M, AddDslClip as N, isInvalidAtomic as O, AddDslClipsInput as P, ReplaceDslClipsInput as R, DslTransaction as S, documentFormat as T, VoiceoverCaptionInput as _, toAudioScriptViews as a, MedeoDsl as b, resolveDslLayout as c, DslProjectionError as d, DslTrackLayout as f, ApplyVoiceoverInput as g, UploadText as h, AudioScriptView as i, MedeoDslLoroState as j, timeAnchorCodec as k, DslClipLayout as l, DslEditor as m, ImportedVideoDraft as n, VideoDraftProjection as o, createInitialMedeoDsl as p, fromVideoDraft as r, toVideoDraft as s, FromVideoDraftOptions as t, DslLayout as u, VoiceoverResult as v, assertDslDocument as w, DslAudit as x, CreateMedeoDslOptions as y, ClipPlacement as z };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as Track, A as ContainNode, B as Media, C as Caption, D as CaptionText, E as CaptionStyle, F as EntityTable, G as ResourceSystem, H as RelationTable, I as EntityTables, J as TextEdit, K as RichTextSnapshot, L as EntityValues, M as DslDiagnostic, N as DslMutation, O as Clip, P as EntityMutation, Q as TimeAnchor, R as FieldPatch, S as AudioScript, T as CaptionSelection, U as RelationTables, V as RelationMutation, W as RelationValues, X as TextMutation, Y as TextMark, Z as TextRun, _ as defaultIdFactory, a as VideoDraftCaptionStyle, b as tupleHash, c as VideoDraftInput, d as VideoDraftTrack, et as TrackRole, f as VideoDraftTrackItem, g as EntityIdKind, h as DslIdFactory, i as VideoDraft, j as DeepReadonly, k as ContainMutation, l as VideoDraftPartUnion, m as OpActor, n as DEFAULT_UNIT_TIME_MS, o as VideoDraftContent, p as CommitOptions, q as TextDelta, r as VideoCreationSettings, s as VideoDraftContentPartUnion, t as CaptionDisplayCue, tt as Voice, u as VideoDraftTimeline, v as relationId, w as CaptionContent, x as Asset, y as resourceId, z as MedeoDslSnapshot } from "./video-draft-types-c_shaRyq.js";
2
- import { A as AddDslClip, C as MedeoDslDraft, D as captionContentCodec, E as InvalidAtomic, F as ReplaceDslClipsInput, I as ClipPlacement, M as ClipSource, N as DslClipUpdate, O as isInvalidAtomic, P as MoveDslClipsInput, S as documentFormat, T as medeoDslLoroShape, _ as MedeoDsl, a as toVideoDraft, b as UnsupportedDocumentFormatError, c as DslLayout, d as createInitialMedeoDsl, f as DslEditor, g as CreateMedeoDslOptions, h as VoiceoverResult, i as VideoDraftProjection, j as AddDslClipsInput, k as timeAnchorCodec, l as DslProjectionError, m as VoiceoverCaptionInput, n as ImportedVideoDraft, o as resolveDslLayout, p as ApplyVoiceoverInput, r as fromVideoDraft, s as DslClipLayout, t as FromVideoDraftOptions, u as DslTrackLayout, v as DslAudit, w as MedeoDslLoroState, x as assertDslDocument, y as DslTransaction } from "./index-Cu7SdKN5.js";
3
- import { A as MenginePushRejectedError, B as MengineSyncResponse, C as PushResult, D as MengineHttpClient, E as readMengineEventStream, F as MenginePushResponse, H as base64ToBytes, I as MenginePushUpdateResponse, L as MengineRejectedResponse, M as MengineAuditResponse, N as MengineDocumentVersion, O as MengineHttpClientOptions, P as MengineDraftResponse, R as MengineSnapshotResponse, S as PullResult, T as MengineEventStreamOptions, U as bytesToBase64, V as MengineUpdateMeta, a as MengineDocSessionOptions, b as DocVersionMark, c as WaitForLocalSaveOptions, d as MengineUndoState, f as MedeoHttpDocStorage, g as ManualSyncDocOptions, h as PushOutcomeKind, i as MengineAckFailedError, j as MengineAuditEntry, k as MengineHttpRequestError, l as WaitForServerAckOptions, m as PushOutcome, o as MengineDocSyncState, p as MedeoHttpDocStorageOptions, s as MengineLocalSaveState, t as MemoryDocStorage, u as DocStorageLike, v as decodeDocVersionMark, w as PushResultKind, x as PullFailureReason, y as encodeDocVersionMark, z as MengineSseUpdateEvent } from "./index-D-3rdfUP.js";
4
- import { n as MengineDocSessionUpdateEvent, r as ManualSyncDoc, t as MengineDocSession } from "./index-D-6uebu4.js";
5
- export { type AddDslClip, type AddDslClipsInput, type ApplyVoiceoverInput, type Asset, type AudioScript, type Caption, type CaptionContent, type CaptionDisplayCue, type CaptionSelection, type CaptionStyle, type CaptionText, type Clip, type ClipPlacement, type ClipSource, type CommitOptions, type ContainMutation, type ContainNode, type CreateMedeoDslOptions, DEFAULT_UNIT_TIME_MS, type DeepReadonly, type DocStorageLike, type DocVersionMark, type DslAudit, type DslClipLayout, type DslClipUpdate, type DslDiagnostic, DslEditor, type DslIdFactory, type DslLayout, type DslMutation, DslProjectionError, type DslTrackLayout, type DslTransaction, type EntityIdKind, type EntityMutation, type EntityTable, type EntityTables, type EntityValues, type FieldPatch, type FromVideoDraftOptions, type ImportedVideoDraft, type InvalidAtomic, ManualSyncDoc, type ManualSyncDocOptions, MedeoDsl, type MedeoDslDraft, type MedeoDslLoroState, type MedeoDslSnapshot, MedeoHttpDocStorage, type MedeoHttpDocStorageOptions, type Media, MemoryDocStorage, MengineAckFailedError, type MengineAuditEntry, type MengineAuditResponse, MengineDocSession, type MengineDocSessionOptions, type MengineDocSessionUpdateEvent, type MengineDocSyncState, type MengineDocumentVersion, type MengineDraftResponse, type MengineEventStreamOptions, MengineHttpClient, type MengineHttpClientOptions, MengineHttpRequestError, type MengineLocalSaveState, MenginePushRejectedError, type MenginePushResponse, type MenginePushUpdateResponse, type MengineRejectedResponse, type MengineSnapshotResponse, type MengineSseUpdateEvent, type MengineSyncResponse, type MengineUndoState, type MengineUpdateMeta, type MoveDslClipsInput, type OpActor, type PullFailureReason, type PullResult, type PushOutcome, type PushOutcomeKind, type PushResult, type PushResultKind, type RelationMutation, type RelationTable, type RelationTables, type RelationValues, type ReplaceDslClipsInput, type ResourceSystem, type RichTextSnapshot, type TextDelta, type TextEdit, type TextMark, type TextMutation, type TextRun, type TimeAnchor, type Track, type TrackRole, UnsupportedDocumentFormatError, type VideoCreationSettings, type VideoDraft, type VideoDraftCaptionStyle, type VideoDraftContent, type VideoDraftContentPartUnion, type VideoDraftInput, type VideoDraftPartUnion, type VideoDraftProjection, type VideoDraftTimeline, type VideoDraftTrack, type VideoDraftTrackItem, type Voice, type VoiceoverCaptionInput, type VoiceoverResult, type WaitForLocalSaveOptions, type WaitForServerAckOptions, assertDslDocument, base64ToBytes, bytesToBase64, captionContentCodec, createInitialMedeoDsl, decodeDocVersionMark, defaultIdFactory, documentFormat, encodeDocVersionMark, fromVideoDraft, isInvalidAtomic, medeoDslLoroShape, readMengineEventStream, relationId, resolveDslLayout, resourceId, timeAnchorCodec, toVideoDraft, tupleHash };
1
+ import { $ as TextMutation, A as DeepReadonly, C as CaptionContent, D as Clip, E as CaptionText, F as EntityTables, G as ResourceSystem, H as RelationTable, I as EntityValues, K as RichTextSnapshot, L as FieldPatch, M as DslMutation, N as EntityMutation, O as ContainMutation, P as EntityTable, Q as TextMark, R as MedeoDslSnapshot, S as Caption, T as CaptionStyle, U as RelationTables, V as RelationMutation, W as RelationValues, X as TextDelta, Y as StoredFile, Z as TextEdit, _ as defaultIdFactory, a as VideoDraftCaptionStyle, b as tupleHash, c as VideoDraftInput, d as VideoDraftTrack, et as TextRun, f as VideoDraftTrackItem, g as EntityIdKind, h as DslIdFactory, i as VideoDraft, it as Voice, j as DslDiagnostic, k as ContainNode, l as VideoDraftPartUnion, m as OpActor, n as DEFAULT_UNIT_TIME_MS, nt as Track, o as VideoDraftContent, p as CommitOptions, r as VideoCreationSettings, rt as TrackRole, s as VideoDraftContentPartUnion, t as CaptionDisplayCue, tt as TimeAnchor, u as VideoDraftTimeline, v as relationId, w as CaptionSelection, x as AudioScript, y as resourceId, z as Media } from "./video-draft-types-0J2vfXBu.js";
2
+ import { A as MedeoDslDraft, C as UnsupportedDocumentFormatError, D as captionContentCodec, E as InvalidAtomic, F as ClipSource, I as DslClipUpdate, L as MoveDslClipsInput, M as medeoDslLoroShape, N as AddDslClip, O as isInvalidAtomic, P as AddDslClipsInput, R as ReplaceDslClipsInput, S as DslTransaction, T as documentFormat, _ as VoiceoverCaptionInput, a as toAudioScriptViews, b as MedeoDsl, c as resolveDslLayout, d as DslProjectionError, f as DslTrackLayout, g as ApplyVoiceoverInput, h as UploadText, i as AudioScriptView, j as MedeoDslLoroState, k as timeAnchorCodec, l as DslClipLayout, m as DslEditor, n as ImportedVideoDraft, o as VideoDraftProjection, p as createInitialMedeoDsl, r as fromVideoDraft, s as toVideoDraft, t as FromVideoDraftOptions, u as DslLayout, v as VoiceoverResult, w as assertDslDocument, x as DslAudit, y as CreateMedeoDslOptions, z as ClipPlacement } from "./index-DVmvFhEn.js";
3
+ import { A as MenginePushRejectedError, B as MengineSyncResponse, C as PushResult, D as MengineHttpClient, E as readMengineEventStream, F as MenginePushResponse, H as base64ToBytes, I as MenginePushUpdateResponse, L as MengineRejectedResponse, M as MengineAuditResponse, N as MengineDocumentVersion, O as MengineHttpClientOptions, P as MengineDraftResponse, R as MengineSnapshotResponse, S as PullResult, T as MengineEventStreamOptions, U as bytesToBase64, V as MengineUpdateMeta, a as MengineDocSessionOptions, b as DocVersionMark, c as WaitForLocalSaveOptions, d as MengineUndoState, f as MedeoHttpDocStorage, g as ManualSyncDocOptions, h as PushOutcomeKind, i as MengineAckFailedError, j as MengineAuditEntry, k as MengineHttpRequestError, l as WaitForServerAckOptions, m as PushOutcome, o as MengineDocSyncState, p as MedeoHttpDocStorageOptions, s as MengineLocalSaveState, t as MemoryDocStorage, u as DocStorageLike, v as decodeDocVersionMark, w as PushResultKind, x as PullFailureReason, y as encodeDocVersionMark, z as MengineSseUpdateEvent } from "./index-D4Bgukns.js";
4
+ import { n as MengineDocSessionUpdateEvent, r as ManualSyncDoc, t as MengineDocSession } from "./index-CcNkkQll.js";
5
+ export { type AddDslClip, type AddDslClipsInput, type ApplyVoiceoverInput, type AudioScript, type AudioScriptView, type Caption, type CaptionContent, type CaptionDisplayCue, type CaptionSelection, type CaptionStyle, type CaptionText, type Clip, type ClipPlacement, type ClipSource, type CommitOptions, type ContainMutation, type ContainNode, type CreateMedeoDslOptions, DEFAULT_UNIT_TIME_MS, type DeepReadonly, type DocStorageLike, type DocVersionMark, type DslAudit, type DslClipLayout, type DslClipUpdate, type DslDiagnostic, DslEditor, type DslIdFactory, type DslLayout, type DslMutation, DslProjectionError, type DslTrackLayout, type DslTransaction, type EntityIdKind, type EntityMutation, type EntityTable, type EntityTables, type EntityValues, type FieldPatch, type FromVideoDraftOptions, type ImportedVideoDraft, type InvalidAtomic, ManualSyncDoc, type ManualSyncDocOptions, MedeoDsl, type MedeoDslDraft, type MedeoDslLoroState, type MedeoDslSnapshot, MedeoHttpDocStorage, type MedeoHttpDocStorageOptions, type Media, MemoryDocStorage, MengineAckFailedError, type MengineAuditEntry, type MengineAuditResponse, MengineDocSession, type MengineDocSessionOptions, type MengineDocSessionUpdateEvent, type MengineDocSyncState, type MengineDocumentVersion, type MengineDraftResponse, type MengineEventStreamOptions, MengineHttpClient, type MengineHttpClientOptions, MengineHttpRequestError, type MengineLocalSaveState, MenginePushRejectedError, type MenginePushResponse, type MenginePushUpdateResponse, type MengineRejectedResponse, type MengineSnapshotResponse, type MengineSseUpdateEvent, type MengineSyncResponse, type MengineUndoState, type MengineUpdateMeta, type MoveDslClipsInput, type OpActor, type PullFailureReason, type PullResult, type PushOutcome, type PushOutcomeKind, type PushResult, type PushResultKind, type RelationMutation, type RelationTable, type RelationTables, type RelationValues, type ReplaceDslClipsInput, type ResourceSystem, type RichTextSnapshot, type StoredFile, type TextDelta, type TextEdit, type TextMark, type TextMutation, type TextRun, type TimeAnchor, type Track, type TrackRole, UnsupportedDocumentFormatError, type UploadText, type VideoCreationSettings, type VideoDraft, type VideoDraftCaptionStyle, type VideoDraftContent, type VideoDraftContentPartUnion, type VideoDraftInput, type VideoDraftPartUnion, type VideoDraftProjection, type VideoDraftTimeline, type VideoDraftTrack, type VideoDraftTrackItem, type Voice, type VoiceoverCaptionInput, type VoiceoverResult, type WaitForLocalSaveOptions, type WaitForServerAckOptions, assertDslDocument, base64ToBytes, bytesToBase64, captionContentCodec, createInitialMedeoDsl, decodeDocVersionMark, defaultIdFactory, documentFormat, encodeDocVersionMark, fromVideoDraft, isInvalidAtomic, medeoDslLoroShape, readMengineEventStream, relationId, resolveDslLayout, resourceId, timeAnchorCodec, toAudioScriptViews, toVideoDraft, tupleHash };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as bytesToBase64, t as base64ToBytes } from "./base64-D-jd-dr5.js";
2
2
  import { a as covers, c as readMengineEventStream, d as MenginePushRejectedError, i as openManualDocument, l as MengineHttpClient, n as MedeoHttpDocStorage, o as decodeDocVersionMark, r as ManualSyncTransport, s as encodeDocVersionMark, t as MemoryDocStorage, u as MengineHttpRequestError } from "./storage-BW3tI_ER.js";
3
- import { a as documentFormat, c as isInvalidAtomic, ct as relationId, i as assertDslDocument, l as timeAnchorCodec, lt as resourceId, o as medeoDslLoroShape, r as UnsupportedDocumentFormatError, s as captionContentCodec, st as defaultIdFactory, t as DEFAULT_UNIT_TIME_MS, ut as tupleHash } from "./video-draft-types-TXRv3wS6.js";
4
- import { a as MedeoDsl, i as DslEditor, n as toVideoDraft, o as resolveDslLayout, r as createInitialMedeoDsl, s as DslProjectionError, t as fromVideoDraft } from "./dsl-EV6kCdr6.js";
3
+ import { _t as resourceId, a as documentFormat, c as isInvalidAtomic, gt as relationId, ht as defaultIdFactory, i as assertDslDocument, o as medeoDslLoroShape, r as UnsupportedDocumentFormatError, s as captionContentCodec, t as DEFAULT_UNIT_TIME_MS, u as timeAnchorCodec, vt as tupleHash } from "./video-draft-types-BfIXM8q3.js";
4
+ import { a as toAudioScriptViews, c as DslProjectionError, i as DslEditor, n as toVideoDraft, o as MedeoDsl, r as createInitialMedeoDsl, s as resolveDslLayout, t as fromVideoDraft } from "./dsl-B7-4dMjr.js";
5
5
  import { UndoManager, VersionVector, decodeImportBlobMeta } from "loro-crdt";
6
6
  import { ClientServerSynchronizer, DocManager } from "@mengine/sync";
7
7
  import { DisposableSet, EventBus } from "@mengine/utils";
@@ -10,14 +10,15 @@ import { DisposableSet, EventBus } from "@mengine/utils";
10
10
  var ManualSyncDoc = class ManualSyncDoc extends ManualSyncTransport {
11
11
  dsl;
12
12
  editor;
13
- constructor(client, doc, watermark) {
13
+ constructor(client, doc, watermark, uploadText) {
14
14
  super(client, doc, watermark);
15
15
  assertDslDocument(doc);
16
16
  this.dsl = new MedeoDsl(doc);
17
- this.editor = new DslEditor(this.dsl);
17
+ this.editor = new DslEditor(this.dsl, void 0, uploadText);
18
18
  }
19
+ /** `uploadText` stores raw content the editor writes, such as a PhoneticScript's text, in Memota. */
19
20
  static open(options) {
20
- return openManualDocument(options, (doc, watermark) => new ManualSyncDoc(options.client, doc, watermark));
21
+ return openManualDocument(options, (doc, watermark) => new ManualSyncDoc(options.client, doc, watermark, options.uploadText));
21
22
  }
22
23
  snapshot() {
23
24
  this.assertActive();
@@ -623,6 +624,7 @@ function serverCovers(serverVV, target) {
623
624
  //#region src/session/mengine-doc-session.ts
624
625
  /** Default collaborative session: one DSL handle and one editor over the synchronized LoroDoc. */
625
626
  var MengineDocSession = class extends DocumentSession {
627
+ /** `uploadText` stores raw content the editor writes, such as a PhoneticScript's text, in Memota. */
626
628
  constructor(options) {
627
629
  super(options, (doc, guard) => {
628
630
  assertDslDocument(doc);
@@ -630,7 +632,7 @@ var MengineDocSession = class extends DocumentSession {
630
632
  return {
631
633
  doc,
632
634
  document: dsl,
633
- editor: new DslEditor(dsl),
635
+ editor: new DslEditor(dsl, void 0, options.uploadText),
634
636
  snapshot: () => dsl.getSnapshot(),
635
637
  subscribe: (listener) => dsl.subscribe(listener),
636
638
  dispose: () => dsl.dispose()
@@ -643,6 +645,10 @@ var MengineDocSession = class extends DocumentSession {
643
645
  projectVideoDraft() {
644
646
  return toVideoDraft(this.snapshot());
645
647
  }
648
+ /** The document's AudioScripts with what says and shows them; read from the same snapshot as the VideoDraft. */
649
+ projectAudioScripts() {
650
+ return toAudioScriptViews(this.snapshot());
651
+ }
646
652
  };
647
653
  //#endregion
648
- export { DEFAULT_UNIT_TIME_MS, DslEditor, DslProjectionError, ManualSyncDoc, MedeoDsl, MedeoHttpDocStorage, MemoryDocStorage, MengineAckFailedError, MengineDocSession, MengineHttpClient, MengineHttpRequestError, MenginePushRejectedError, UnsupportedDocumentFormatError, assertDslDocument, base64ToBytes, bytesToBase64, captionContentCodec, createInitialMedeoDsl, decodeDocVersionMark, defaultIdFactory, documentFormat, encodeDocVersionMark, fromVideoDraft, isInvalidAtomic, medeoDslLoroShape, readMengineEventStream, relationId, resolveDslLayout, resourceId, timeAnchorCodec, toVideoDraft, tupleHash };
654
+ export { DEFAULT_UNIT_TIME_MS, DslEditor, DslProjectionError, ManualSyncDoc, MedeoDsl, MedeoHttpDocStorage, MemoryDocStorage, MengineAckFailedError, MengineDocSession, MengineHttpClient, MengineHttpRequestError, MenginePushRejectedError, UnsupportedDocumentFormatError, assertDslDocument, base64ToBytes, bytesToBase64, captionContentCodec, createInitialMedeoDsl, decodeDocVersionMark, defaultIdFactory, documentFormat, encodeDocVersionMark, fromVideoDraft, isInvalidAtomic, medeoDslLoroShape, readMengineEventStream, relationId, resolveDslLayout, resourceId, timeAnchorCodec, toAudioScriptViews, toVideoDraft, tupleHash };
package/dist/legacy.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { i as VideoDraft, l as VideoDraftPartUnion, o as VideoDraftContent, p as CommitOptions, t as CaptionDisplayCue } from "./video-draft-types-c_shaRyq.js";
2
- import { A as MenginePushRejectedError, B as MengineSyncResponse, C as PushResult, D as MengineHttpClient, E as readMengineEventStream, F as MenginePushResponse, H as base64ToBytes, I as MenginePushUpdateResponse, L as MengineRejectedResponse, M as MengineAuditResponse, N as MengineDocumentVersion, O as MengineHttpClientOptions, P as MengineDraftResponse, R as MengineSnapshotResponse, S as PullResult, T as MengineEventStreamOptions, U as bytesToBase64, V as MengineUpdateMeta, _ as ManualSyncTransport, a as MengineDocSessionOptions, b as DocVersionMark, d as MengineUndoState, f as MedeoHttpDocStorage, g as ManualSyncDocOptions, h as PushOutcomeKind, j as MengineAuditEntry, k as MengineHttpRequestError, l as WaitForServerAckOptions, m as PushOutcome, o as MengineDocSyncState, p as MedeoHttpDocStorageOptions, t as MemoryDocStorage, u as DocStorageLike, v as decodeDocVersionMark, w as PushResultKind, x as PullFailureReason, y as encodeDocVersionMark, z as MengineSseUpdateEvent } from "./index-D-3rdfUP.js";
1
+ import { i as VideoDraft, l as VideoDraftPartUnion, o as VideoDraftContent, p as CommitOptions, t as CaptionDisplayCue } from "./video-draft-types-0J2vfXBu.js";
2
+ import { A as MenginePushRejectedError, B as MengineSyncResponse, C as PushResult, D as MengineHttpClient, E as readMengineEventStream, F as MenginePushResponse, H as base64ToBytes, I as MenginePushUpdateResponse, L as MengineRejectedResponse, M as MengineAuditResponse, N as MengineDocumentVersion, O as MengineHttpClientOptions, P as MengineDraftResponse, R as MengineSnapshotResponse, S as PullResult, T as MengineEventStreamOptions, U as bytesToBase64, V as MengineUpdateMeta, _ as ManualSyncTransport, a as MengineDocSessionOptions, b as DocVersionMark, d as MengineUndoState, f as MedeoHttpDocStorage, g as ManualSyncDocOptions, h as PushOutcomeKind, j as MengineAuditEntry, k as MengineHttpRequestError, l as WaitForServerAckOptions, m as PushOutcome, o as MengineDocSyncState, p as MedeoHttpDocStorageOptions, t as MemoryDocStorage, u as DocStorageLike, v as decodeDocVersionMark, w as PushResultKind, x as PullFailureReason, y as encodeDocVersionMark, z as MengineSseUpdateEvent } from "./index-D4Bgukns.js";
3
3
  import { LoroDoc, PeerID } from "loro-crdt";
4
4
 
5
5
  //#region ../medeo-dsl/depreacted/sandbox.d.ts