videobook-engine 2.0.1 → 4.2.0
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/README.md +87 -41
- package/dist/artifact-names.d.ts +6 -0
- package/dist/artifact-names.d.ts.map +1 -0
- package/dist/artifact-names.js +56 -0
- package/dist/artifact-names.js.map +1 -0
- package/dist/artifacts.d.ts.map +1 -1
- package/dist/artifacts.js +57 -23
- package/dist/artifacts.js.map +1 -1
- package/dist/books.js +2 -1
- package/dist/books.js.map +1 -1
- package/dist/cas.d.ts +27 -1
- package/dist/cas.d.ts.map +1 -1
- package/dist/cas.js +78 -6
- package/dist/cas.js.map +1 -1
- package/dist/catalog-metadata.d.ts +56 -0
- package/dist/catalog-metadata.d.ts.map +1 -0
- package/dist/catalog-metadata.js +42 -0
- package/dist/catalog-metadata.js.map +1 -0
- package/dist/communications.js +4 -2
- package/dist/communications.js.map +1 -1
- package/dist/context.d.ts +6 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +35 -6
- package/dist/context.js.map +1 -1
- package/dist/domain.d.ts +4 -0
- package/dist/domain.d.ts.map +1 -1
- package/dist/domain.js +870 -58
- package/dist/domain.js.map +1 -1
- package/dist/edit-policy.d.ts +3 -0
- package/dist/edit-policy.d.ts.map +1 -0
- package/dist/edit-policy.js +6 -0
- package/dist/edit-policy.js.map +1 -0
- package/dist/edits.d.ts +10 -0
- package/dist/edits.d.ts.map +1 -0
- package/dist/edits.js +1392 -0
- package/dist/edits.js.map +1 -0
- package/dist/engine-types.d.ts +110 -60
- package/dist/engine-types.d.ts.map +1 -1
- package/dist/engine-types.js +33 -0
- package/dist/engine-types.js.map +1 -1
- package/dist/engine.d.ts +69 -8
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +24 -18
- package/dist/engine.js.map +1 -1
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +31 -27
- package/dist/files.js.map +1 -1
- package/dist/fork.d.ts +147 -0
- package/dist/fork.d.ts.map +1 -0
- package/dist/fork.js +609 -0
- package/dist/fork.js.map +1 -0
- package/dist/history.d.ts +0 -4
- package/dist/history.d.ts.map +1 -1
- package/dist/history.js +166 -595
- package/dist/history.js.map +1 -1
- package/dist/index.d.ts +16 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/job-queue.d.ts +2 -0
- package/dist/job-queue.d.ts.map +1 -1
- package/dist/job-queue.js +29 -2
- package/dist/job-queue.js.map +1 -1
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +1 -0
- package/dist/media.js.map +1 -1
- package/dist/merge-policy.d.ts +99 -0
- package/dist/merge-policy.d.ts.map +1 -0
- package/dist/merge-policy.js +310 -0
- package/dist/merge-policy.js.map +1 -0
- package/dist/metadata.d.ts.map +1 -1
- package/dist/metadata.js +15 -20
- package/dist/metadata.js.map +1 -1
- package/dist/migration.d.ts +9 -0
- package/dist/migration.d.ts.map +1 -0
- package/dist/migration.js +534 -0
- package/dist/migration.js.map +1 -0
- package/dist/mvp-contract-fixtures.d.ts +244 -0
- package/dist/mvp-contract-fixtures.d.ts.map +1 -0
- package/dist/mvp-contract-fixtures.js +556 -0
- package/dist/mvp-contract-fixtures.js.map +1 -0
- package/dist/mvp-contracts.d.ts +761 -0
- package/dist/mvp-contracts.d.ts.map +1 -0
- package/dist/mvp-contracts.js +59 -0
- package/dist/mvp-contracts.js.map +1 -0
- package/dist/mvp-time.d.ts +54 -0
- package/dist/mvp-time.d.ts.map +1 -0
- package/dist/mvp-time.js +148 -0
- package/dist/mvp-time.js.map +1 -0
- package/dist/notebook/types.d.ts +113 -8
- package/dist/notebook/types.d.ts.map +1 -1
- package/dist/order-keys.d.ts +22 -0
- package/dist/order-keys.d.ts.map +1 -0
- package/dist/order-keys.js +262 -0
- package/dist/order-keys.js.map +1 -0
- package/dist/runtime-services.js +4 -2
- package/dist/runtime-services.js.map +1 -1
- package/dist/schema.d.ts +24 -5
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +644 -132
- package/dist/schema.js.map +1 -1
- package/dist/search-benchmark.d.ts +4 -0
- package/dist/search-benchmark.d.ts.map +1 -0
- package/dist/search-benchmark.js +144 -0
- package/dist/search-benchmark.js.map +1 -0
- package/dist/sequences.d.ts +20 -0
- package/dist/sequences.d.ts.map +1 -0
- package/dist/sequences.js +825 -0
- package/dist/sequences.js.map +1 -0
- package/dist/similarity.js +1 -1
- package/dist/storage.d.ts +3 -1
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +388 -7
- package/dist/storage.js.map +1 -1
- package/dist/store.d.ts +63 -2
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +351 -65
- package/dist/store.js.map +1 -1
- package/dist/streams.d.ts +10 -0
- package/dist/streams.d.ts.map +1 -0
- package/dist/streams.js +183 -0
- package/dist/streams.js.map +1 -0
- package/dist/temporal-models.d.ts +48 -0
- package/dist/temporal-models.d.ts.map +1 -0
- package/dist/temporal-models.js +278 -0
- package/dist/temporal-models.js.map +1 -0
- package/dist/temporal-search.d.ts +29 -0
- package/dist/temporal-search.d.ts.map +1 -0
- package/dist/temporal-search.js +1507 -0
- package/dist/temporal-search.js.map +1 -0
- package/dist/transcripts.d.ts +16 -0
- package/dist/transcripts.d.ts.map +1 -0
- package/dist/transcripts.js +519 -0
- package/dist/transcripts.js.map +1 -0
- package/docs/engine-layout.md +346 -106
- package/docs/mvp-prd.md +918 -0
- package/fixtures/media/vancat.mp4 +0 -0
- package/fixtures/media/vancat_profile.jpg +0 -0
- package/fixtures/v5/contract-fixtures.json +1532 -0
- package/package.json +30 -5
- package/dist/history-types.d.ts +0 -74
- package/dist/history-types.d.ts.map +0 -1
- package/dist/history-types.js +0 -2
- package/dist/history-types.js.map +0 -1
- package/dist/timeline.d.ts +0 -9
- package/dist/timeline.d.ts.map +0 -1
- package/dist/timeline.js +0 -236
- package/dist/timeline.js.map +0 -1
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import type { EngineErrorCode } from "./engine-types.js";
|
|
2
|
+
import { MVP_CONTRACT_COMPATIBILITY, type ArtifactStream, type CaptionCue, type EditCommit, type EditIntent, type EditOperation, type EditPreview, type IndexBatchResult, type IndexManifest, type JobProgress, type MvpJobFailure, type SearchPage, type Sequence, type Transcript, type V4MigrationDryRun, type V4MigrationResult } from "./mvp-contracts.js";
|
|
3
|
+
import { type Rational, type SourceRange } from "./mvp-time.js";
|
|
4
|
+
export declare const MVP_EDIT_OPERATION_FIXTURES: readonly [{
|
|
5
|
+
readonly kind: "insert-clip";
|
|
6
|
+
readonly clipId: "0197-clip-video";
|
|
7
|
+
readonly placement: {
|
|
8
|
+
readonly trackId: "0197-track-video-1";
|
|
9
|
+
readonly timelineStartFrame: 0;
|
|
10
|
+
readonly durationFrames: 150;
|
|
11
|
+
readonly source: {
|
|
12
|
+
kind: "timed";
|
|
13
|
+
artifactId: string;
|
|
14
|
+
range: SourceRange;
|
|
15
|
+
};
|
|
16
|
+
readonly speed: {
|
|
17
|
+
readonly numerator: 1;
|
|
18
|
+
readonly denominator: 1;
|
|
19
|
+
};
|
|
20
|
+
readonly reverse: false;
|
|
21
|
+
readonly audioPolicy: "preserve-pitch";
|
|
22
|
+
readonly transform: {
|
|
23
|
+
readonly fit: "fill";
|
|
24
|
+
readonly positionX: 0;
|
|
25
|
+
readonly positionY: 0;
|
|
26
|
+
readonly scaleX: 1;
|
|
27
|
+
readonly scaleY: 1;
|
|
28
|
+
readonly anchorX: 0.5;
|
|
29
|
+
readonly anchorY: 0.5;
|
|
30
|
+
readonly rotationDegrees: 0;
|
|
31
|
+
readonly cropTop: 0;
|
|
32
|
+
readonly cropRight: 0;
|
|
33
|
+
readonly cropBottom: 0;
|
|
34
|
+
readonly cropLeft: 0;
|
|
35
|
+
readonly opacity: 1;
|
|
36
|
+
readonly blendMode: "normal";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
readonly mode: "insert";
|
|
40
|
+
}, {
|
|
41
|
+
readonly kind: "remove-range";
|
|
42
|
+
readonly trackIds: ["0197-track-video-1"];
|
|
43
|
+
readonly range: {
|
|
44
|
+
readonly sequenceId: "0197-sequence-main";
|
|
45
|
+
readonly startFrame: 60;
|
|
46
|
+
readonly durationFrames: 30;
|
|
47
|
+
};
|
|
48
|
+
readonly ripple: true;
|
|
49
|
+
}, {
|
|
50
|
+
readonly kind: "move-clip";
|
|
51
|
+
readonly clipId: "0197-clip-video";
|
|
52
|
+
readonly trackId: "0197-track-video-2";
|
|
53
|
+
readonly timelineStartFrame: 180;
|
|
54
|
+
}, {
|
|
55
|
+
readonly kind: "trim-clip";
|
|
56
|
+
readonly clipId: "0197-clip-video";
|
|
57
|
+
readonly timelineStartFrame: 0;
|
|
58
|
+
readonly durationFrames: 120;
|
|
59
|
+
readonly sourceRange: {
|
|
60
|
+
readonly durationTicks: 120000;
|
|
61
|
+
readonly streamId: string;
|
|
62
|
+
readonly objectHash: string;
|
|
63
|
+
readonly startTick: number;
|
|
64
|
+
readonly timeBase: Rational;
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
readonly kind: "split-clip";
|
|
68
|
+
readonly clipId: "0197-clip-video";
|
|
69
|
+
readonly splitFrame: 75;
|
|
70
|
+
readonly leftClipId: "0197-clip-left";
|
|
71
|
+
readonly rightClipId: "0197-clip-right";
|
|
72
|
+
}, {
|
|
73
|
+
readonly kind: "restore-clip";
|
|
74
|
+
readonly sourceActionId: "0197-action-remove";
|
|
75
|
+
readonly sourceClipId: "0197-clip-removed";
|
|
76
|
+
readonly placement: {
|
|
77
|
+
readonly trackId: "0197-track-video-1";
|
|
78
|
+
readonly timelineStartFrame: 210;
|
|
79
|
+
readonly durationFrames: 90;
|
|
80
|
+
readonly source: {
|
|
81
|
+
kind: "still";
|
|
82
|
+
artifactId: string;
|
|
83
|
+
sourcePath: string;
|
|
84
|
+
objectHash: string;
|
|
85
|
+
};
|
|
86
|
+
readonly transform: {
|
|
87
|
+
readonly fit: "fill";
|
|
88
|
+
readonly positionX: 0;
|
|
89
|
+
readonly positionY: 0;
|
|
90
|
+
readonly scaleX: 1;
|
|
91
|
+
readonly scaleY: 1;
|
|
92
|
+
readonly anchorX: 0.5;
|
|
93
|
+
readonly anchorY: 0.5;
|
|
94
|
+
readonly rotationDegrees: 0;
|
|
95
|
+
readonly cropTop: 0;
|
|
96
|
+
readonly cropRight: 0;
|
|
97
|
+
readonly cropBottom: 0;
|
|
98
|
+
readonly cropLeft: 0;
|
|
99
|
+
readonly opacity: 1;
|
|
100
|
+
readonly blendMode: "normal";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}, {
|
|
104
|
+
readonly kind: "set-clip-transform";
|
|
105
|
+
readonly clipId: "0197-clip-video";
|
|
106
|
+
readonly transform: {
|
|
107
|
+
readonly fit: "fill";
|
|
108
|
+
readonly positionX: 0;
|
|
109
|
+
readonly positionY: 0;
|
|
110
|
+
readonly scaleX: 1;
|
|
111
|
+
readonly scaleY: 1;
|
|
112
|
+
readonly anchorX: 0.5;
|
|
113
|
+
readonly anchorY: 0.5;
|
|
114
|
+
readonly rotationDegrees: 0;
|
|
115
|
+
readonly cropTop: 0;
|
|
116
|
+
readonly cropRight: 0;
|
|
117
|
+
readonly cropBottom: 0;
|
|
118
|
+
readonly cropLeft: 0;
|
|
119
|
+
readonly opacity: 1;
|
|
120
|
+
readonly blendMode: "normal";
|
|
121
|
+
};
|
|
122
|
+
}, {
|
|
123
|
+
readonly kind: "set-clip-audio";
|
|
124
|
+
readonly clipId: "0197-clip-video";
|
|
125
|
+
readonly audio: {
|
|
126
|
+
readonly gainDb: -3;
|
|
127
|
+
readonly muted: false;
|
|
128
|
+
readonly fadeInFrames: 6;
|
|
129
|
+
readonly fadeOutFrames: 6;
|
|
130
|
+
};
|
|
131
|
+
}, {
|
|
132
|
+
readonly kind: "set-clip-speed";
|
|
133
|
+
readonly clipId: "0197-clip-video";
|
|
134
|
+
readonly speed: {
|
|
135
|
+
readonly numerator: 2;
|
|
136
|
+
readonly denominator: 1;
|
|
137
|
+
};
|
|
138
|
+
readonly reverse: false;
|
|
139
|
+
readonly audioPolicy: "preserve-pitch";
|
|
140
|
+
}, {
|
|
141
|
+
readonly kind: "set-transition";
|
|
142
|
+
readonly outgoingClipId: "0197-clip-left";
|
|
143
|
+
readonly incomingClipId: "0197-clip-right";
|
|
144
|
+
readonly transition: {
|
|
145
|
+
readonly transitionId: "0197-transition";
|
|
146
|
+
readonly trackId: "0197-track-video-1";
|
|
147
|
+
readonly outgoingClipId: "0197-clip-left";
|
|
148
|
+
readonly incomingClipId: "0197-clip-right";
|
|
149
|
+
readonly kind: "dissolve";
|
|
150
|
+
readonly durationFrames: 12;
|
|
151
|
+
readonly alignment: "center";
|
|
152
|
+
};
|
|
153
|
+
}, {
|
|
154
|
+
readonly kind: "upsert-caption-cue";
|
|
155
|
+
readonly cue: CaptionCue;
|
|
156
|
+
}, {
|
|
157
|
+
readonly kind: "batch-replace-range";
|
|
158
|
+
readonly range: {
|
|
159
|
+
readonly sequenceId: "0197-sequence-main";
|
|
160
|
+
readonly startFrame: 0;
|
|
161
|
+
readonly durationFrames: 150;
|
|
162
|
+
};
|
|
163
|
+
readonly trackIds: ["0197-track-video-1"];
|
|
164
|
+
readonly placements: [{
|
|
165
|
+
readonly trackId: "0197-track-video-1";
|
|
166
|
+
readonly timelineStartFrame: 0;
|
|
167
|
+
readonly durationFrames: 90;
|
|
168
|
+
readonly source: {
|
|
169
|
+
kind: "still";
|
|
170
|
+
artifactId: string;
|
|
171
|
+
sourcePath: string;
|
|
172
|
+
objectHash: string;
|
|
173
|
+
};
|
|
174
|
+
readonly transform: {
|
|
175
|
+
readonly fit: "fill";
|
|
176
|
+
readonly positionX: 0;
|
|
177
|
+
readonly positionY: 0;
|
|
178
|
+
readonly scaleX: 1;
|
|
179
|
+
readonly scaleY: 1;
|
|
180
|
+
readonly anchorX: 0.5;
|
|
181
|
+
readonly anchorY: 0.5;
|
|
182
|
+
readonly rotationDegrees: 0;
|
|
183
|
+
readonly cropTop: 0;
|
|
184
|
+
readonly cropRight: 0;
|
|
185
|
+
readonly cropBottom: 0;
|
|
186
|
+
readonly cropLeft: 0;
|
|
187
|
+
readonly opacity: 1;
|
|
188
|
+
readonly blendMode: "normal";
|
|
189
|
+
};
|
|
190
|
+
}, {
|
|
191
|
+
readonly trackId: "0197-track-video-1";
|
|
192
|
+
readonly timelineStartFrame: 90;
|
|
193
|
+
readonly durationFrames: 60;
|
|
194
|
+
readonly source: {
|
|
195
|
+
kind: "timed";
|
|
196
|
+
artifactId: string;
|
|
197
|
+
range: SourceRange;
|
|
198
|
+
};
|
|
199
|
+
readonly speed: {
|
|
200
|
+
readonly numerator: 1;
|
|
201
|
+
readonly denominator: 1;
|
|
202
|
+
};
|
|
203
|
+
readonly reverse: false;
|
|
204
|
+
readonly audioPolicy: "preserve-pitch";
|
|
205
|
+
readonly transform: {
|
|
206
|
+
readonly fit: "fill";
|
|
207
|
+
readonly positionX: 0;
|
|
208
|
+
readonly positionY: 0;
|
|
209
|
+
readonly scaleX: 1;
|
|
210
|
+
readonly scaleY: 1;
|
|
211
|
+
readonly anchorX: 0.5;
|
|
212
|
+
readonly anchorY: 0.5;
|
|
213
|
+
readonly rotationDegrees: 0;
|
|
214
|
+
readonly cropTop: 0;
|
|
215
|
+
readonly cropRight: 0;
|
|
216
|
+
readonly cropBottom: 0;
|
|
217
|
+
readonly cropLeft: 0;
|
|
218
|
+
readonly opacity: 1;
|
|
219
|
+
readonly blendMode: "normal";
|
|
220
|
+
};
|
|
221
|
+
}];
|
|
222
|
+
readonly ripple: false;
|
|
223
|
+
}];
|
|
224
|
+
export interface MvpContractFixtures {
|
|
225
|
+
compatibility: typeof MVP_CONTRACT_COMPATIBILITY;
|
|
226
|
+
engineErrorCodes: EngineErrorCode[];
|
|
227
|
+
stream: ArtifactStream;
|
|
228
|
+
transcript: Transcript;
|
|
229
|
+
sequence: Sequence;
|
|
230
|
+
editOperations: EditOperation[];
|
|
231
|
+
editIntent: EditIntent;
|
|
232
|
+
editPreview: EditPreview;
|
|
233
|
+
editCommit: EditCommit;
|
|
234
|
+
indexManifest: IndexManifest;
|
|
235
|
+
searchPage: SearchPage;
|
|
236
|
+
indexBatch: IndexBatchResult;
|
|
237
|
+
jobProgress: JobProgress;
|
|
238
|
+
jobFailure: MvpJobFailure;
|
|
239
|
+
migrationDryRun: V4MigrationDryRun;
|
|
240
|
+
migrationResult: V4MigrationResult;
|
|
241
|
+
}
|
|
242
|
+
export declare const MVP_CONTRACT_FIXTURES: MvpContractFixtures;
|
|
243
|
+
export declare const MVP_CONTRACT_FIXTURES_JSON: string;
|
|
244
|
+
//# sourceMappingURL=mvp-contract-fixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mvp-contract-fixtures.d.ts","sourceRoot":"","sources":["../src/mvp-contract-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EACL,0BAA0B,EAG1B,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AA4EvB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6HK,CAAC;AAoV9C,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,OAAO,0BAA0B,CAAC;IACjD,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,aAAa,CAAC;IAC1B,eAAe,EAAE,iBAAiB,CAAC;IACnC,eAAe,EAAE,iBAAiB,CAAC;CACpC;AAmBD,eAAO,MAAM,qBAAqB,EAAE,mBAmBnC,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAEtC,CAAC"}
|