@mengine/medeo-client 2.1.0 → 2.1.1-dsl.1

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.
@@ -0,0 +1,197 @@
1
+ import { G as ResourceSystem, et as TrackRole, z as MedeoDslSnapshot } from "./video-draft-types-c_shaRyq.js";
2
+ import { _ as MedeoDsl, f as DslEditor, i as VideoDraftProjection } from "./index-Cu7SdKN5.js";
3
+ import { a as MengineDocSessionOptions, h as ManualSyncTransport, m as ManualSyncDocOptions, n as DocumentSession, r as DocumentSessionUpdateEvent } from "./index-B7fC7q7P.js";
4
+
5
+ //#region src/manual-sync/manual-sync-doc.d.ts
6
+ /** Explicit synchronization over the same DSL/editor used by the live Session. */
7
+ declare class ManualSyncDoc extends ManualSyncTransport {
8
+ readonly dsl: MedeoDsl;
9
+ readonly editor: DslEditor;
10
+ private constructor();
11
+ static open(options: ManualSyncDocOptions): Promise<ManualSyncDoc>;
12
+ snapshot(): {
13
+ readonly "timeline-entities": {
14
+ readonly [x: string]: {
15
+ readonly [x: string]: never;
16
+ };
17
+ };
18
+ readonly "track-entities": {
19
+ readonly [x: string]: {
20
+ readonly role: TrackRole;
21
+ readonly hidden?: boolean | undefined;
22
+ };
23
+ };
24
+ readonly "clip-entities": {
25
+ readonly [x: string]: {
26
+ readonly seqMarker: {
27
+ readonly inMs: number;
28
+ readonly outMs: number;
29
+ readonly rate?: number | undefined;
30
+ readonly fillTimeline?: true | undefined;
31
+ };
32
+ readonly volume?: number | undefined;
33
+ };
34
+ };
35
+ readonly "media-entities": {
36
+ readonly [x: string]: {
37
+ readonly system: ResourceSystem;
38
+ readonly key: string;
39
+ readonly digest?: string | undefined;
40
+ readonly kind: "video";
41
+ readonly durationMs: number;
42
+ readonly storageKey?: string | undefined;
43
+ } | {
44
+ readonly system: ResourceSystem;
45
+ readonly key: string;
46
+ readonly digest?: string | undefined;
47
+ readonly kind: "audio" | "voiceover-recording";
48
+ readonly durationMs: number;
49
+ readonly storageKey: string;
50
+ } | {
51
+ readonly system: ResourceSystem;
52
+ readonly key: string;
53
+ readonly digest?: string | undefined;
54
+ readonly kind: "image";
55
+ readonly storageKey?: string | undefined;
56
+ };
57
+ };
58
+ readonly "audio-script-entities": {
59
+ readonly [x: string]: {
60
+ readonly body: string;
61
+ readonly defaultLanguage?: string | undefined;
62
+ };
63
+ };
64
+ readonly "caption-entities": {
65
+ readonly [x: string]: {
66
+ readonly text?: string | undefined;
67
+ readonly style?: {
68
+ readonly font?: {
69
+ readonly system: "font-library";
70
+ readonly key: string;
71
+ } | undefined;
72
+ readonly fontSize?: number | undefined;
73
+ readonly fontColor?: string | undefined;
74
+ readonly fontWeight?: number | undefined;
75
+ readonly entranceAnimation?: string | undefined;
76
+ readonly entranceAnimationDurationMs?: number | undefined;
77
+ readonly strokeColor?: string | undefined;
78
+ readonly strokeWidth?: number | undefined;
79
+ readonly positionX?: number | undefined;
80
+ readonly positionY?: number | undefined;
81
+ } | undefined;
82
+ };
83
+ };
84
+ readonly "voice-entities": {
85
+ readonly [x: string]: {
86
+ readonly system: "voice-library";
87
+ readonly key: string;
88
+ readonly name?: string | undefined;
89
+ };
90
+ };
91
+ readonly "asset-entities": {
92
+ readonly [x: string]: {
93
+ readonly system: ResourceSystem;
94
+ readonly key: string;
95
+ readonly storageKey?: string | undefined;
96
+ readonly digest?: string | undefined;
97
+ };
98
+ };
99
+ readonly "clip-source-relations": {
100
+ readonly [x: string]: {
101
+ readonly clipId: string;
102
+ readonly sourceId: string;
103
+ };
104
+ };
105
+ readonly "time-anchor-relations": {
106
+ readonly [x: string]: {
107
+ readonly from: string;
108
+ readonly to: string;
109
+ readonly offsetMs: number;
110
+ readonly fallback_abs_ms: number;
111
+ };
112
+ };
113
+ readonly "caption-content-relations": {
114
+ readonly [x: string]: {
115
+ readonly captionId: string;
116
+ readonly audioScriptId: string;
117
+ readonly start: import("loro-crdt").Cursor;
118
+ readonly end: import("loro-crdt").Cursor;
119
+ };
120
+ };
121
+ readonly "caption-alignment-relations": {
122
+ readonly [x: string]: {
123
+ readonly captionId: string;
124
+ readonly mediaId: string;
125
+ readonly startMs: number;
126
+ readonly endMs: number;
127
+ };
128
+ };
129
+ readonly "voice-timbre-relations": {
130
+ readonly [x: string]: {
131
+ readonly recordingId: string;
132
+ readonly voiceId: string;
133
+ };
134
+ };
135
+ readonly "derived-from-relations": {
136
+ readonly [x: string]: {
137
+ readonly entityId: string;
138
+ readonly sourceId: string;
139
+ };
140
+ };
141
+ readonly "from-asset-relations": {
142
+ readonly [x: string]: {
143
+ readonly audioScriptId: string;
144
+ readonly assetId: string;
145
+ };
146
+ };
147
+ readonly "to-asset-relations": {
148
+ readonly [x: string]: {
149
+ readonly audioScriptId: string;
150
+ readonly assetId: string;
151
+ };
152
+ };
153
+ readonly 'contain-relations': readonly {
154
+ readonly treeId: import("loro-crdt").TreeID;
155
+ readonly entityId: string;
156
+ readonly children: readonly /*elided*/any[];
157
+ }[];
158
+ readonly richText: {
159
+ readonly [x: string]: {
160
+ readonly bodyId: string;
161
+ readonly plainText: string;
162
+ readonly delta: readonly {
163
+ readonly insert: string;
164
+ readonly attributes?: {
165
+ readonly [x: string]: unknown;
166
+ } | undefined;
167
+ }[];
168
+ };
169
+ };
170
+ readonly captionText: {
171
+ readonly [x: string]: {
172
+ readonly text: string;
173
+ readonly start: number;
174
+ readonly end: number;
175
+ readonly bodyId: string;
176
+ };
177
+ };
178
+ readonly diagnostics: readonly {
179
+ readonly code: string;
180
+ readonly path: string;
181
+ readonly message: string;
182
+ }[];
183
+ };
184
+ projectVideoDraft(): VideoDraftProjection;
185
+ dispose(): void;
186
+ }
187
+ //#endregion
188
+ //#region src/session/mengine-doc-session.d.ts
189
+ type MengineDocSessionUpdateEvent = DocumentSessionUpdateEvent<MedeoDslSnapshot>;
190
+ /** Default collaborative session: one DSL handle and one editor over the synchronized LoroDoc. */
191
+ declare class MengineDocSession extends DocumentSession<MedeoDslSnapshot, DslEditor, MedeoDsl> {
192
+ constructor(options: MengineDocSessionOptions);
193
+ get dsl(): MedeoDsl;
194
+ projectVideoDraft(): VideoDraftProjection;
195
+ }
196
+ //#endregion
197
+ export { MengineDocSessionUpdateEvent as n, ManualSyncDoc as r, MengineDocSession as t };