@vivix-labs/media-tools 1.0.0-beta.2 → 1.0.0-beta.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.
- package/README.md +38 -12
- package/dist/assets/1-1-WUUPNDJP.svg +7 -0
- package/dist/assets/16-9-BAFQTZK7.svg +9 -0
- package/dist/assets/2-3-WPG3UQBV.svg +7 -0
- package/dist/assets/3-2-YZTSUZ37.svg +7 -0
- package/dist/assets/3-4-7YROL4JU.svg +7 -0
- package/dist/assets/4-3-YG4LTLGD.svg +7 -0
- package/dist/assets/9-16-CYXX6QAR.svg +9 -0
- package/dist/assets/add-circle-RPMXNTWW.svg +4 -0
- package/dist/assets/captions-16-55I6JRWY.svg +5 -0
- package/dist/assets/captions-24-4YNDEZZX.svg +5 -0
- package/dist/assets/chevrons-up-down-KDZMS6DI.svg +3 -0
- package/dist/assets/collapse-diagonal-16-2IRQGCLB.svg +6 -0
- package/dist/assets/collapse-diagonal-24-GHD6Z54K.svg +6 -0
- package/dist/assets/copy-document-EF4PHM7F.svg +10 -0
- package/dist/assets/crop-5JXWHIPN.svg +6 -0
- package/dist/assets/delete-4Y3OUMEL.svg +8 -0
- package/dist/assets/download-16-QVS2YNPN.svg +4 -0
- package/dist/assets/download-24-ARCWU2MF.svg +4 -0
- package/dist/assets/download-VTKCEAZG.svg +6 -0
- package/dist/assets/expand-diagonal-16-QUIZSPJN.svg +10 -0
- package/dist/assets/expand-diagonal-24-XPK72ILY.svg +10 -0
- package/dist/assets/favorite-6GMNHJCN.svg +5 -0
- package/dist/assets/favorite-filled-FR74TEBM.svg +3 -0
- package/dist/assets/filter-JSDZZVGN.svg +5 -0
- package/dist/assets/freeform-E5MLUKDE.svg +18 -0
- package/dist/assets/fullscreen-exit-ADYOPBYH.svg +3 -0
- package/dist/assets/grid-16-POIO22HZ.svg +6 -0
- package/dist/assets/grid-24-U6IRT56K.svg +6 -0
- package/dist/assets/inria-serif-latin-400-italic-ZCFRMMVP.woff2 +0 -0
- package/dist/assets/inria-serif-latin-700-italic-UNRIXGAH.woff2 +0 -0
- package/dist/assets/inter-latin-900-normal-FKACR3DR.woff2 +0 -0
- package/dist/assets/list-16-YAVTLHXZ.svg +8 -0
- package/dist/assets/list-24-O6WDB6WJ.svg +8 -0
- package/dist/assets/original-LBKLUQVV.svg +18 -0
- package/dist/assets/pause-16-444PD7SY.svg +4 -0
- package/dist/assets/pause-24-WQXRNLW3.svg +4 -0
- package/dist/assets/play-16-5B2LZITW.svg +3 -0
- package/dist/assets/play-24-3IPXXAC4.svg +3 -0
- package/dist/assets/refresh-WQ3CTB57.svg +3 -0
- package/dist/assets/replace-PJXDOQDX.svg +3 -0
- package/dist/assets/{search-JUOSGQRM.svg → search-FMYQZJWA.svg} +1 -1
- package/dist/assets/select-items-GJZIVO37.svg +6 -0
- package/dist/assets/trim-LQMHHN2M.svg +9 -0
- package/dist/assets/upload-U5RZT5QI.svg +5 -0
- package/dist/assets/volume-16-ENYWJAGG.svg +5 -0
- package/dist/assets/volume-24-MVQ6CAXW.svg +5 -0
- package/dist/assets/volume-off-16-ALKG7632.svg +4 -0
- package/dist/assets/volume-off-24-2R4VED3N.svg +4 -0
- package/dist/client.bundle.js +1517 -262
- package/dist/client.css +2368 -181
- package/dist/server.d.ts +2 -1
- package/dist/server.js +1463 -259
- package/dist/shared.d.ts +513 -3
- package/dist/shared.js +230 -7
- package/{skills/SKILL.md → docs/operations.md} +7 -7
- package/package.json +5 -4
- package/studio-plugin.json +2 -5
- package/dist/assets/player-cover-shade-LLH6KOCQ.png +0 -0
- /package/{skills/references → docs}/processing.md +0 -0
package/dist/shared.d.ts
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { ClientContext } from 'vivix-studio/sdk/client';
|
|
4
|
+
import { CallContext as CallContext$1, z } from 'vivix-studio/sdk/shared';
|
|
3
5
|
import { MenuItem } from '@vivix-labs/ui-system';
|
|
4
6
|
|
|
7
|
+
type SequenceSound = {
|
|
8
|
+
state: 'original' | 'loading';
|
|
9
|
+
} | {
|
|
10
|
+
state: 'error';
|
|
11
|
+
message: string;
|
|
12
|
+
} | {
|
|
13
|
+
state: 'mixed';
|
|
14
|
+
url?: string;
|
|
15
|
+
segments: Extract<AudioPreviewResult, {
|
|
16
|
+
state: 'ready';
|
|
17
|
+
}>['segments'];
|
|
18
|
+
};
|
|
19
|
+
declare function watchSequenceSound(client: ClientContext, instanceId: string, getInputs: () => SequenceVideoInput[] | Promise<SequenceVideoInput[]>, update: (sound: SequenceSound) => void): () => void;
|
|
20
|
+
|
|
5
21
|
type Scope = {
|
|
6
22
|
kind: 'user' | 'project';
|
|
7
23
|
id: string;
|
|
@@ -78,6 +94,17 @@ interface StagedFile {
|
|
|
78
94
|
originalName: string;
|
|
79
95
|
details: Record<string, any>;
|
|
80
96
|
}
|
|
97
|
+
interface UploadChunk {
|
|
98
|
+
uploadId: string;
|
|
99
|
+
originalName: string;
|
|
100
|
+
totalBytes: number;
|
|
101
|
+
offset: number;
|
|
102
|
+
bytes: Uint8Array;
|
|
103
|
+
}
|
|
104
|
+
interface UploadProgress {
|
|
105
|
+
nextOffset: number;
|
|
106
|
+
staged?: StagedFile;
|
|
107
|
+
}
|
|
81
108
|
type SqlScalar = null | string | number;
|
|
82
109
|
interface SqlInput {
|
|
83
110
|
sql: string;
|
|
@@ -100,9 +127,11 @@ interface MutationResult {
|
|
|
100
127
|
items: SqlRow[];
|
|
101
128
|
}
|
|
102
129
|
interface Query {
|
|
130
|
+
excludeArchived?: boolean;
|
|
103
131
|
typeId: string;
|
|
104
132
|
search?: string;
|
|
105
133
|
kind?: string;
|
|
134
|
+
purpose?: string | string[];
|
|
106
135
|
tag?: string;
|
|
107
136
|
targetAssetId?: string;
|
|
108
137
|
taskId?: string;
|
|
@@ -133,6 +162,14 @@ interface Transaction {
|
|
|
133
162
|
removeRelations(sourceObjectId: string, kind: 'reference'): void;
|
|
134
163
|
relation(sourceObjectId: string, sourceVersionId: string | null, target: VersionRef, kind: 'source' | 'input' | 'reference'): void;
|
|
135
164
|
}
|
|
165
|
+
/** Bytes supplied by an installed plugin, with build-time media metadata and digest. */
|
|
166
|
+
interface BundledFile {
|
|
167
|
+
fileId: string;
|
|
168
|
+
originalName: string;
|
|
169
|
+
mimeType: string;
|
|
170
|
+
sha256: string;
|
|
171
|
+
bytes: Uint8Array;
|
|
172
|
+
}
|
|
136
173
|
interface DataAPI {
|
|
137
174
|
readonly storeId: string;
|
|
138
175
|
readonly scope: Scope;
|
|
@@ -141,8 +178,14 @@ interface DataAPI {
|
|
|
141
178
|
items: RecordValue[];
|
|
142
179
|
nextOffset: number | null;
|
|
143
180
|
};
|
|
181
|
+
countVersionedRecords?(typeId: string): number;
|
|
144
182
|
query(input: SqlInput): Promise<SqlRow[]>;
|
|
145
183
|
mutate(input: MutationInput, call: CallContext): Promise<MutationResult>;
|
|
184
|
+
incomingRelations(targetObjectId: string, kind: 'input'): {
|
|
185
|
+
objectId: string;
|
|
186
|
+
versionId: string;
|
|
187
|
+
targetVersionId: string;
|
|
188
|
+
}[];
|
|
146
189
|
versions(id: string): VersionValue[];
|
|
147
190
|
version(ref: VersionRef): VersionValue;
|
|
148
191
|
files(ref: VersionRef): FileValue[];
|
|
@@ -160,7 +203,10 @@ interface DataAPI {
|
|
|
160
203
|
observedCount: number;
|
|
161
204
|
}[];
|
|
162
205
|
stage(source: AsyncIterable<Uint8Array>, originalName: string, actorId: string, options?: StageOptions): Promise<StagedFile>;
|
|
206
|
+
prepareBundledFiles(operationId: string, files: BundledFile[]): Promise<FileValue[]>;
|
|
163
207
|
stageText(text: string, actorId: string): Promise<StagedFile>;
|
|
208
|
+
/** Bounded JSON transport into the existing staging area; does not publish a version. */
|
|
209
|
+
stageChunk(input: UploadChunk, actorId: string): Promise<UploadProgress>;
|
|
164
210
|
publish(stagingIds: string[], objectId: string, versionId: string, operationId: string, actorId: string, fileRoles?: string[]): Promise<{
|
|
165
211
|
files: FileValue[];
|
|
166
212
|
details: any;
|
|
@@ -253,6 +299,16 @@ declare const sequenceVideoInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
253
299
|
}, z.core.$strict>;
|
|
254
300
|
}, z.core.$strict>], "kind">;
|
|
255
301
|
type SequenceVideoInput = z.infer<typeof sequenceVideoInput>;
|
|
302
|
+
declare const colorAdjustment: z.ZodObject<{
|
|
303
|
+
brightness: z.ZodNumber;
|
|
304
|
+
contrast: z.ZodNumber;
|
|
305
|
+
saturation: z.ZodNumber;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
declare const neutralColor: {
|
|
308
|
+
readonly brightness: 0;
|
|
309
|
+
readonly contrast: 1;
|
|
310
|
+
readonly saturation: 1;
|
|
311
|
+
};
|
|
256
312
|
declare const recipe: z.ZodObject<{
|
|
257
313
|
trim: z.ZodObject<{
|
|
258
314
|
inMs: z.ZodNumber;
|
|
@@ -264,8 +320,21 @@ declare const recipe: z.ZodObject<{
|
|
|
264
320
|
width: z.ZodNumber;
|
|
265
321
|
height: z.ZodNumber;
|
|
266
322
|
}, z.core.$strict>;
|
|
323
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
brightness: z.ZodNumber;
|
|
325
|
+
contrast: z.ZodNumber;
|
|
326
|
+
saturation: z.ZodNumber;
|
|
327
|
+
}, z.core.$strict>>;
|
|
328
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
267
329
|
}, z.core.$strict>;
|
|
268
330
|
type Recipe = z.infer<typeof recipe>;
|
|
331
|
+
declare function recipeDurationMs(value: Recipe): number;
|
|
332
|
+
declare const videoEditorTitles: {
|
|
333
|
+
readonly crop: "Crop Video";
|
|
334
|
+
readonly trim: "Trim Video";
|
|
335
|
+
readonly color: "Adjust Color";
|
|
336
|
+
readonly speed: "Video Speed";
|
|
337
|
+
};
|
|
269
338
|
declare const pixelRect: z.ZodObject<{
|
|
270
339
|
x: z.ZodNumber;
|
|
271
340
|
y: z.ZodNumber;
|
|
@@ -326,6 +395,12 @@ declare const editDescriptor: z.ZodObject<{
|
|
|
326
395
|
width: z.ZodNumber;
|
|
327
396
|
height: z.ZodNumber;
|
|
328
397
|
}, z.core.$strict>;
|
|
398
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
399
|
+
brightness: z.ZodNumber;
|
|
400
|
+
contrast: z.ZodNumber;
|
|
401
|
+
saturation: z.ZodNumber;
|
|
402
|
+
}, z.core.$strict>>;
|
|
403
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
329
404
|
}, z.core.$strict>;
|
|
330
405
|
geometry: z.ZodObject<{
|
|
331
406
|
displayWidth: z.ZodNumber;
|
|
@@ -400,11 +475,179 @@ declare const saveEdit: z.ZodObject<{
|
|
|
400
475
|
width: z.ZodNumber;
|
|
401
476
|
height: z.ZodNumber;
|
|
402
477
|
}, z.core.$strict>;
|
|
478
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
479
|
+
brightness: z.ZodNumber;
|
|
480
|
+
contrast: z.ZodNumber;
|
|
481
|
+
saturation: z.ZodNumber;
|
|
482
|
+
}, z.core.$strict>>;
|
|
483
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
403
484
|
}, z.core.$strict>;
|
|
404
485
|
editId: z.ZodOptional<z.ZodUUID>;
|
|
405
486
|
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
406
487
|
}, z.core.$strict>;
|
|
407
488
|
type SaveEdit = z.infer<typeof saveEdit>;
|
|
489
|
+
declare const audioMix: z.ZodObject<{
|
|
490
|
+
version: z.ZodLiteral<1>;
|
|
491
|
+
originalGainDb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
492
|
+
originals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
493
|
+
inputIndex: z.ZodNumber;
|
|
494
|
+
gainDb: z.ZodNullable<z.ZodNumber>;
|
|
495
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
496
|
+
dialogue: "dialogue";
|
|
497
|
+
ambience: "ambience";
|
|
498
|
+
}>>;
|
|
499
|
+
}, z.core.$strict>>>;
|
|
500
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
501
|
+
id: z.ZodString;
|
|
502
|
+
file: z.ZodObject<{
|
|
503
|
+
source: z.ZodObject<{
|
|
504
|
+
storeId: z.ZodUUID;
|
|
505
|
+
objectId: z.ZodUUID;
|
|
506
|
+
versionId: z.ZodUUID;
|
|
507
|
+
}, z.core.$strict>;
|
|
508
|
+
fileId: z.ZodUUID;
|
|
509
|
+
}, z.core.$strict>;
|
|
510
|
+
role: z.ZodEnum<{
|
|
511
|
+
narration: "narration";
|
|
512
|
+
music: "music";
|
|
513
|
+
sfx: "sfx";
|
|
514
|
+
}>;
|
|
515
|
+
atMs: z.ZodNumber;
|
|
516
|
+
inMs: z.ZodOptional<z.ZodNumber>;
|
|
517
|
+
outMs: z.ZodOptional<z.ZodNumber>;
|
|
518
|
+
gainDb: z.ZodOptional<z.ZodNumber>;
|
|
519
|
+
fadeInMs: z.ZodOptional<z.ZodNumber>;
|
|
520
|
+
fadeOutMs: z.ZodOptional<z.ZodNumber>;
|
|
521
|
+
}, z.core.$strict>>;
|
|
522
|
+
ducking: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
+
loudness: z.ZodOptional<z.ZodEnum<{
|
|
524
|
+
"studio-web-v1": "studio-web-v1";
|
|
525
|
+
off: "off";
|
|
526
|
+
}>>;
|
|
527
|
+
}, z.core.$strict>;
|
|
528
|
+
type AudioMix = z.infer<typeof audioMix>;
|
|
529
|
+
declare const maxSequenceInputs = 64;
|
|
530
|
+
declare const audioQuery: z.ZodObject<{
|
|
531
|
+
inputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
532
|
+
kind: z.ZodLiteral<"source">;
|
|
533
|
+
file: z.ZodObject<{
|
|
534
|
+
source: z.ZodObject<{
|
|
535
|
+
storeId: z.ZodUUID;
|
|
536
|
+
objectId: z.ZodUUID;
|
|
537
|
+
versionId: z.ZodUUID;
|
|
538
|
+
}, z.core.$strict>;
|
|
539
|
+
fileId: z.ZodUUID;
|
|
540
|
+
}, z.core.$strict>;
|
|
541
|
+
trimEndMs: z.ZodOptional<z.ZodNumber>;
|
|
542
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
543
|
+
kind: z.ZodLiteral<"edit">;
|
|
544
|
+
editRef: z.ZodObject<{
|
|
545
|
+
storeId: z.ZodUUID;
|
|
546
|
+
objectId: z.ZodUUID;
|
|
547
|
+
versionId: z.ZodUUID;
|
|
548
|
+
}, z.core.$strict>;
|
|
549
|
+
}, z.core.$strict>], "kind">>;
|
|
550
|
+
}, z.core.$strict>;
|
|
551
|
+
declare const previewQuery: z.ZodObject<{
|
|
552
|
+
inputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
553
|
+
kind: z.ZodLiteral<"source">;
|
|
554
|
+
file: z.ZodObject<{
|
|
555
|
+
source: z.ZodObject<{
|
|
556
|
+
storeId: z.ZodUUID;
|
|
557
|
+
objectId: z.ZodUUID;
|
|
558
|
+
versionId: z.ZodUUID;
|
|
559
|
+
}, z.core.$strict>;
|
|
560
|
+
fileId: z.ZodUUID;
|
|
561
|
+
}, z.core.$strict>;
|
|
562
|
+
trimEndMs: z.ZodOptional<z.ZodNumber>;
|
|
563
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
564
|
+
kind: z.ZodLiteral<"edit">;
|
|
565
|
+
editRef: z.ZodObject<{
|
|
566
|
+
storeId: z.ZodUUID;
|
|
567
|
+
objectId: z.ZodUUID;
|
|
568
|
+
versionId: z.ZodUUID;
|
|
569
|
+
}, z.core.$strict>;
|
|
570
|
+
}, z.core.$strict>], "kind">>;
|
|
571
|
+
knownRevision: z.ZodOptional<z.ZodNumber>;
|
|
572
|
+
}, z.core.$strict>;
|
|
573
|
+
declare const audioPreviewResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
574
|
+
state: z.ZodLiteral<"original">;
|
|
575
|
+
revision: z.ZodNumber;
|
|
576
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
577
|
+
state: z.ZodLiteral<"unchanged">;
|
|
578
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
579
|
+
state: z.ZodLiteral<"preparing">;
|
|
580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
581
|
+
state: z.ZodLiteral<"ready">;
|
|
582
|
+
revision: z.ZodNumber;
|
|
583
|
+
file: z.ZodNullable<z.ZodType<`vivix-resource://file/${string}`, unknown, z.core.$ZodTypeInternals<`vivix-resource://file/${string}`, unknown>>>;
|
|
584
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
585
|
+
startMs: z.ZodNumber;
|
|
586
|
+
durationMs: z.ZodNumber;
|
|
587
|
+
}, z.core.$strip>>;
|
|
588
|
+
}, z.core.$strip>], "state">;
|
|
589
|
+
type AudioPreviewResult = z.infer<typeof audioPreviewResult>;
|
|
590
|
+
declare const saveAudio: z.ZodObject<{
|
|
591
|
+
inputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
592
|
+
kind: z.ZodLiteral<"source">;
|
|
593
|
+
file: z.ZodObject<{
|
|
594
|
+
source: z.ZodObject<{
|
|
595
|
+
storeId: z.ZodUUID;
|
|
596
|
+
objectId: z.ZodUUID;
|
|
597
|
+
versionId: z.ZodUUID;
|
|
598
|
+
}, z.core.$strict>;
|
|
599
|
+
fileId: z.ZodUUID;
|
|
600
|
+
}, z.core.$strict>;
|
|
601
|
+
trimEndMs: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
603
|
+
kind: z.ZodLiteral<"edit">;
|
|
604
|
+
editRef: z.ZodObject<{
|
|
605
|
+
storeId: z.ZodUUID;
|
|
606
|
+
objectId: z.ZodUUID;
|
|
607
|
+
versionId: z.ZodUUID;
|
|
608
|
+
}, z.core.$strict>;
|
|
609
|
+
}, z.core.$strict>], "kind">>;
|
|
610
|
+
expectedRevision: z.ZodNumber;
|
|
611
|
+
mix: z.ZodNullable<z.ZodObject<{
|
|
612
|
+
version: z.ZodLiteral<1>;
|
|
613
|
+
originalGainDb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
614
|
+
originals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
615
|
+
inputIndex: z.ZodNumber;
|
|
616
|
+
gainDb: z.ZodNullable<z.ZodNumber>;
|
|
617
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
dialogue: "dialogue";
|
|
619
|
+
ambience: "ambience";
|
|
620
|
+
}>>;
|
|
621
|
+
}, z.core.$strict>>>;
|
|
622
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
623
|
+
id: z.ZodString;
|
|
624
|
+
file: z.ZodObject<{
|
|
625
|
+
source: z.ZodObject<{
|
|
626
|
+
storeId: z.ZodUUID;
|
|
627
|
+
objectId: z.ZodUUID;
|
|
628
|
+
versionId: z.ZodUUID;
|
|
629
|
+
}, z.core.$strict>;
|
|
630
|
+
fileId: z.ZodUUID;
|
|
631
|
+
}, z.core.$strict>;
|
|
632
|
+
role: z.ZodEnum<{
|
|
633
|
+
narration: "narration";
|
|
634
|
+
music: "music";
|
|
635
|
+
sfx: "sfx";
|
|
636
|
+
}>;
|
|
637
|
+
atMs: z.ZodNumber;
|
|
638
|
+
inMs: z.ZodOptional<z.ZodNumber>;
|
|
639
|
+
outMs: z.ZodOptional<z.ZodNumber>;
|
|
640
|
+
gainDb: z.ZodOptional<z.ZodNumber>;
|
|
641
|
+
fadeInMs: z.ZodOptional<z.ZodNumber>;
|
|
642
|
+
fadeOutMs: z.ZodOptional<z.ZodNumber>;
|
|
643
|
+
}, z.core.$strict>>;
|
|
644
|
+
ducking: z.ZodOptional<z.ZodBoolean>;
|
|
645
|
+
loudness: z.ZodOptional<z.ZodEnum<{
|
|
646
|
+
"studio-web-v1": "studio-web-v1";
|
|
647
|
+
off: "off";
|
|
648
|
+
}>>;
|
|
649
|
+
}, z.core.$strict>>;
|
|
650
|
+
}, z.core.$strict>;
|
|
408
651
|
declare const processVideo: z.ZodObject<{
|
|
409
652
|
input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
410
653
|
kind: z.ZodLiteral<"source">;
|
|
@@ -426,11 +669,88 @@ declare const processVideo: z.ZodObject<{
|
|
|
426
669
|
}, z.core.$strict>], "kind">;
|
|
427
670
|
outputName: z.ZodString;
|
|
428
671
|
retryOfJobId: z.ZodOptional<z.ZodUUID>;
|
|
672
|
+
remix: z.ZodOptional<z.ZodObject<{
|
|
673
|
+
basis: z.ZodEnum<{
|
|
674
|
+
sources: "sources";
|
|
675
|
+
master: "master";
|
|
676
|
+
}>;
|
|
677
|
+
mix: z.ZodObject<{
|
|
678
|
+
version: z.ZodLiteral<1>;
|
|
679
|
+
originalGainDb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
680
|
+
originals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
681
|
+
inputIndex: z.ZodNumber;
|
|
682
|
+
gainDb: z.ZodNullable<z.ZodNumber>;
|
|
683
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
684
|
+
dialogue: "dialogue";
|
|
685
|
+
ambience: "ambience";
|
|
686
|
+
}>>;
|
|
687
|
+
}, z.core.$strict>>>;
|
|
688
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
689
|
+
id: z.ZodString;
|
|
690
|
+
file: z.ZodObject<{
|
|
691
|
+
source: z.ZodObject<{
|
|
692
|
+
storeId: z.ZodUUID;
|
|
693
|
+
objectId: z.ZodUUID;
|
|
694
|
+
versionId: z.ZodUUID;
|
|
695
|
+
}, z.core.$strict>;
|
|
696
|
+
fileId: z.ZodUUID;
|
|
697
|
+
}, z.core.$strict>;
|
|
698
|
+
role: z.ZodEnum<{
|
|
699
|
+
narration: "narration";
|
|
700
|
+
music: "music";
|
|
701
|
+
sfx: "sfx";
|
|
702
|
+
}>;
|
|
703
|
+
atMs: z.ZodNumber;
|
|
704
|
+
inMs: z.ZodOptional<z.ZodNumber>;
|
|
705
|
+
outMs: z.ZodOptional<z.ZodNumber>;
|
|
706
|
+
gainDb: z.ZodOptional<z.ZodNumber>;
|
|
707
|
+
fadeInMs: z.ZodOptional<z.ZodNumber>;
|
|
708
|
+
fadeOutMs: z.ZodOptional<z.ZodNumber>;
|
|
709
|
+
}, z.core.$strict>>;
|
|
710
|
+
ducking: z.ZodOptional<z.ZodBoolean>;
|
|
711
|
+
loudness: z.ZodOptional<z.ZodEnum<{
|
|
712
|
+
"studio-web-v1": "studio-web-v1";
|
|
713
|
+
off: "off";
|
|
714
|
+
}>>;
|
|
715
|
+
}, z.core.$strict>;
|
|
716
|
+
expectedAssetRevision: z.ZodNumber;
|
|
717
|
+
expectedMixRevision: z.ZodNumber;
|
|
718
|
+
}, z.core.$strict>>;
|
|
429
719
|
}, z.core.$strict>;
|
|
430
720
|
declare const canvas: z.ZodObject<{
|
|
431
721
|
width: z.ZodNumber;
|
|
432
722
|
height: z.ZodNumber;
|
|
433
723
|
}, z.core.$strict>;
|
|
724
|
+
declare const exportFormat: z.ZodEnum<{
|
|
725
|
+
h264: "h264";
|
|
726
|
+
hevc: "hevc";
|
|
727
|
+
vp9: "vp9";
|
|
728
|
+
}>;
|
|
729
|
+
declare const exportSettings: z.ZodObject<{
|
|
730
|
+
format: z.ZodEnum<{
|
|
731
|
+
h264: "h264";
|
|
732
|
+
hevc: "hevc";
|
|
733
|
+
vp9: "vp9";
|
|
734
|
+
}>;
|
|
735
|
+
aspect: z.ZodEnum<{
|
|
736
|
+
source: "source";
|
|
737
|
+
"16:9": "16:9";
|
|
738
|
+
"9:16": "9:16";
|
|
739
|
+
"1:1": "1:1";
|
|
740
|
+
"4:3": "4:3";
|
|
741
|
+
"3:4": "3:4";
|
|
742
|
+
"21:9": "21:9";
|
|
743
|
+
}>;
|
|
744
|
+
resolution: z.ZodUnion<readonly [z.ZodLiteral<"source">, z.ZodLiteral<480>, z.ZodLiteral<720>, z.ZodLiteral<1080>, z.ZodLiteral<2160>]>;
|
|
745
|
+
frameRate: z.ZodUnion<readonly [z.ZodLiteral<"source">, z.ZodLiteral<24>, z.ZodLiteral<25>, z.ZodLiteral<30>, z.ZodLiteral<50>, z.ZodLiteral<60>]>;
|
|
746
|
+
quality: z.ZodEnum<{
|
|
747
|
+
high: "high";
|
|
748
|
+
standard: "standard";
|
|
749
|
+
small: "small";
|
|
750
|
+
}>;
|
|
751
|
+
audio: z.ZodBoolean;
|
|
752
|
+
}, z.core.$strict>;
|
|
753
|
+
type ExportSettings = z.infer<typeof exportSettings>;
|
|
434
754
|
declare const processSequence: z.ZodObject<{
|
|
435
755
|
inputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
436
756
|
kind: z.ZodLiteral<"source">;
|
|
@@ -456,6 +776,30 @@ declare const processSequence: z.ZodObject<{
|
|
|
456
776
|
width: z.ZodNumber;
|
|
457
777
|
height: z.ZodNumber;
|
|
458
778
|
}, z.core.$strict>;
|
|
779
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
780
|
+
format: z.ZodEnum<{
|
|
781
|
+
h264: "h264";
|
|
782
|
+
hevc: "hevc";
|
|
783
|
+
vp9: "vp9";
|
|
784
|
+
}>;
|
|
785
|
+
aspect: z.ZodEnum<{
|
|
786
|
+
source: "source";
|
|
787
|
+
"16:9": "16:9";
|
|
788
|
+
"9:16": "9:16";
|
|
789
|
+
"1:1": "1:1";
|
|
790
|
+
"4:3": "4:3";
|
|
791
|
+
"3:4": "3:4";
|
|
792
|
+
"21:9": "21:9";
|
|
793
|
+
}>;
|
|
794
|
+
resolution: z.ZodUnion<readonly [z.ZodLiteral<"source">, z.ZodLiteral<480>, z.ZodLiteral<720>, z.ZodLiteral<1080>, z.ZodLiteral<2160>]>;
|
|
795
|
+
frameRate: z.ZodUnion<readonly [z.ZodLiteral<"source">, z.ZodLiteral<24>, z.ZodLiteral<25>, z.ZodLiteral<30>, z.ZodLiteral<50>, z.ZodLiteral<60>]>;
|
|
796
|
+
quality: z.ZodEnum<{
|
|
797
|
+
high: "high";
|
|
798
|
+
standard: "standard";
|
|
799
|
+
small: "small";
|
|
800
|
+
}>;
|
|
801
|
+
audio: z.ZodBoolean;
|
|
802
|
+
}, z.core.$strict>>;
|
|
459
803
|
retryOfJobId: z.ZodOptional<z.ZodUUID>;
|
|
460
804
|
}, z.core.$strict>;
|
|
461
805
|
type ProcessVideo = z.infer<typeof processVideo>;
|
|
@@ -490,6 +834,53 @@ declare const mediaRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
490
834
|
}, z.core.$strict>], "kind">;
|
|
491
835
|
outputName: z.ZodString;
|
|
492
836
|
retryOfJobId: z.ZodOptional<z.ZodUUID>;
|
|
837
|
+
remix: z.ZodOptional<z.ZodObject<{
|
|
838
|
+
basis: z.ZodEnum<{
|
|
839
|
+
sources: "sources";
|
|
840
|
+
master: "master";
|
|
841
|
+
}>;
|
|
842
|
+
mix: z.ZodObject<{
|
|
843
|
+
version: z.ZodLiteral<1>;
|
|
844
|
+
originalGainDb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
845
|
+
originals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
846
|
+
inputIndex: z.ZodNumber;
|
|
847
|
+
gainDb: z.ZodNullable<z.ZodNumber>;
|
|
848
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
849
|
+
dialogue: "dialogue";
|
|
850
|
+
ambience: "ambience";
|
|
851
|
+
}>>;
|
|
852
|
+
}, z.core.$strict>>>;
|
|
853
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
854
|
+
id: z.ZodString;
|
|
855
|
+
file: z.ZodObject<{
|
|
856
|
+
source: z.ZodObject<{
|
|
857
|
+
storeId: z.ZodUUID;
|
|
858
|
+
objectId: z.ZodUUID;
|
|
859
|
+
versionId: z.ZodUUID;
|
|
860
|
+
}, z.core.$strict>;
|
|
861
|
+
fileId: z.ZodUUID;
|
|
862
|
+
}, z.core.$strict>;
|
|
863
|
+
role: z.ZodEnum<{
|
|
864
|
+
narration: "narration";
|
|
865
|
+
music: "music";
|
|
866
|
+
sfx: "sfx";
|
|
867
|
+
}>;
|
|
868
|
+
atMs: z.ZodNumber;
|
|
869
|
+
inMs: z.ZodOptional<z.ZodNumber>;
|
|
870
|
+
outMs: z.ZodOptional<z.ZodNumber>;
|
|
871
|
+
gainDb: z.ZodOptional<z.ZodNumber>;
|
|
872
|
+
fadeInMs: z.ZodOptional<z.ZodNumber>;
|
|
873
|
+
fadeOutMs: z.ZodOptional<z.ZodNumber>;
|
|
874
|
+
}, z.core.$strict>>;
|
|
875
|
+
ducking: z.ZodOptional<z.ZodBoolean>;
|
|
876
|
+
loudness: z.ZodOptional<z.ZodEnum<{
|
|
877
|
+
"studio-web-v1": "studio-web-v1";
|
|
878
|
+
off: "off";
|
|
879
|
+
}>>;
|
|
880
|
+
}, z.core.$strict>;
|
|
881
|
+
expectedAssetRevision: z.ZodNumber;
|
|
882
|
+
expectedMixRevision: z.ZodNumber;
|
|
883
|
+
}, z.core.$strict>>;
|
|
493
884
|
}, z.core.$strict>;
|
|
494
885
|
}, z.core.$strict>, z.ZodObject<{
|
|
495
886
|
operation: z.ZodLiteral<"sequence.process">;
|
|
@@ -518,6 +909,30 @@ declare const mediaRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
518
909
|
width: z.ZodNumber;
|
|
519
910
|
height: z.ZodNumber;
|
|
520
911
|
}, z.core.$strict>;
|
|
912
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
913
|
+
format: z.ZodEnum<{
|
|
914
|
+
h264: "h264";
|
|
915
|
+
hevc: "hevc";
|
|
916
|
+
vp9: "vp9";
|
|
917
|
+
}>;
|
|
918
|
+
aspect: z.ZodEnum<{
|
|
919
|
+
source: "source";
|
|
920
|
+
"16:9": "16:9";
|
|
921
|
+
"9:16": "9:16";
|
|
922
|
+
"1:1": "1:1";
|
|
923
|
+
"4:3": "4:3";
|
|
924
|
+
"3:4": "3:4";
|
|
925
|
+
"21:9": "21:9";
|
|
926
|
+
}>;
|
|
927
|
+
resolution: z.ZodUnion<readonly [z.ZodLiteral<"source">, z.ZodLiteral<480>, z.ZodLiteral<720>, z.ZodLiteral<1080>, z.ZodLiteral<2160>]>;
|
|
928
|
+
frameRate: z.ZodUnion<readonly [z.ZodLiteral<"source">, z.ZodLiteral<24>, z.ZodLiteral<25>, z.ZodLiteral<30>, z.ZodLiteral<50>, z.ZodLiteral<60>]>;
|
|
929
|
+
quality: z.ZodEnum<{
|
|
930
|
+
high: "high";
|
|
931
|
+
standard: "standard";
|
|
932
|
+
small: "small";
|
|
933
|
+
}>;
|
|
934
|
+
audio: z.ZodBoolean;
|
|
935
|
+
}, z.core.$strict>>;
|
|
521
936
|
retryOfJobId: z.ZodOptional<z.ZodUUID>;
|
|
522
937
|
}, z.core.$strict>;
|
|
523
938
|
}, z.core.$strict>], "operation">;
|
|
@@ -573,6 +988,53 @@ declare const jobsQuery: z.ZodObject<{
|
|
|
573
988
|
}, z.core.$strict>], "kind">;
|
|
574
989
|
outputName: z.ZodString;
|
|
575
990
|
retryOfJobId: z.ZodOptional<z.ZodUUID>;
|
|
991
|
+
remix: z.ZodOptional<z.ZodObject<{
|
|
992
|
+
basis: z.ZodEnum<{
|
|
993
|
+
sources: "sources";
|
|
994
|
+
master: "master";
|
|
995
|
+
}>;
|
|
996
|
+
mix: z.ZodObject<{
|
|
997
|
+
version: z.ZodLiteral<1>;
|
|
998
|
+
originalGainDb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
999
|
+
originals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1000
|
+
inputIndex: z.ZodNumber;
|
|
1001
|
+
gainDb: z.ZodNullable<z.ZodNumber>;
|
|
1002
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
1003
|
+
dialogue: "dialogue";
|
|
1004
|
+
ambience: "ambience";
|
|
1005
|
+
}>>;
|
|
1006
|
+
}, z.core.$strict>>>;
|
|
1007
|
+
tracks: z.ZodArray<z.ZodObject<{
|
|
1008
|
+
id: z.ZodString;
|
|
1009
|
+
file: z.ZodObject<{
|
|
1010
|
+
source: z.ZodObject<{
|
|
1011
|
+
storeId: z.ZodUUID;
|
|
1012
|
+
objectId: z.ZodUUID;
|
|
1013
|
+
versionId: z.ZodUUID;
|
|
1014
|
+
}, z.core.$strict>;
|
|
1015
|
+
fileId: z.ZodUUID;
|
|
1016
|
+
}, z.core.$strict>;
|
|
1017
|
+
role: z.ZodEnum<{
|
|
1018
|
+
narration: "narration";
|
|
1019
|
+
music: "music";
|
|
1020
|
+
sfx: "sfx";
|
|
1021
|
+
}>;
|
|
1022
|
+
atMs: z.ZodNumber;
|
|
1023
|
+
inMs: z.ZodOptional<z.ZodNumber>;
|
|
1024
|
+
outMs: z.ZodOptional<z.ZodNumber>;
|
|
1025
|
+
gainDb: z.ZodOptional<z.ZodNumber>;
|
|
1026
|
+
fadeInMs: z.ZodOptional<z.ZodNumber>;
|
|
1027
|
+
fadeOutMs: z.ZodOptional<z.ZodNumber>;
|
|
1028
|
+
}, z.core.$strict>>;
|
|
1029
|
+
ducking: z.ZodOptional<z.ZodBoolean>;
|
|
1030
|
+
loudness: z.ZodOptional<z.ZodEnum<{
|
|
1031
|
+
"studio-web-v1": "studio-web-v1";
|
|
1032
|
+
off: "off";
|
|
1033
|
+
}>>;
|
|
1034
|
+
}, z.core.$strict>;
|
|
1035
|
+
expectedAssetRevision: z.ZodNumber;
|
|
1036
|
+
expectedMixRevision: z.ZodNumber;
|
|
1037
|
+
}, z.core.$strict>>;
|
|
576
1038
|
}, z.core.$strict>, z.ZodObject<{
|
|
577
1039
|
inputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
578
1040
|
kind: z.ZodLiteral<"source">;
|
|
@@ -598,6 +1060,30 @@ declare const jobsQuery: z.ZodObject<{
|
|
|
598
1060
|
width: z.ZodNumber;
|
|
599
1061
|
height: z.ZodNumber;
|
|
600
1062
|
}, z.core.$strict>;
|
|
1063
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1064
|
+
format: z.ZodEnum<{
|
|
1065
|
+
h264: "h264";
|
|
1066
|
+
hevc: "hevc";
|
|
1067
|
+
vp9: "vp9";
|
|
1068
|
+
}>;
|
|
1069
|
+
aspect: z.ZodEnum<{
|
|
1070
|
+
source: "source";
|
|
1071
|
+
"16:9": "16:9";
|
|
1072
|
+
"9:16": "9:16";
|
|
1073
|
+
"1:1": "1:1";
|
|
1074
|
+
"4:3": "4:3";
|
|
1075
|
+
"3:4": "3:4";
|
|
1076
|
+
"21:9": "21:9";
|
|
1077
|
+
}>;
|
|
1078
|
+
resolution: z.ZodUnion<readonly [z.ZodLiteral<"source">, z.ZodLiteral<480>, z.ZodLiteral<720>, z.ZodLiteral<1080>, z.ZodLiteral<2160>]>;
|
|
1079
|
+
frameRate: z.ZodUnion<readonly [z.ZodLiteral<"source">, z.ZodLiteral<24>, z.ZodLiteral<25>, z.ZodLiteral<30>, z.ZodLiteral<50>, z.ZodLiteral<60>]>;
|
|
1080
|
+
quality: z.ZodEnum<{
|
|
1081
|
+
high: "high";
|
|
1082
|
+
standard: "standard";
|
|
1083
|
+
small: "small";
|
|
1084
|
+
}>;
|
|
1085
|
+
audio: z.ZodBoolean;
|
|
1086
|
+
}, z.core.$strict>>;
|
|
601
1087
|
retryOfJobId: z.ZodOptional<z.ZodUUID>;
|
|
602
1088
|
}, z.core.$strict>]>;
|
|
603
1089
|
}, z.core.$strict>>;
|
|
@@ -606,9 +1092,30 @@ interface JobPage {
|
|
|
606
1092
|
items: MediaJob[];
|
|
607
1093
|
nextOffset: number | null;
|
|
608
1094
|
}
|
|
1095
|
+
interface VideoExportProps {
|
|
1096
|
+
title: string;
|
|
1097
|
+
preview: React.ReactNode;
|
|
1098
|
+
aspectRatio?: string;
|
|
1099
|
+
canvas?: ProcessSequence['canvas'];
|
|
1100
|
+
issue?: string;
|
|
1101
|
+
legacyTracking?: {
|
|
1102
|
+
jobId?: string;
|
|
1103
|
+
pending?: {
|
|
1104
|
+
key: string;
|
|
1105
|
+
request: MediaRequest;
|
|
1106
|
+
};
|
|
1107
|
+
recoverIntent?(): Promise<{
|
|
1108
|
+
key: string;
|
|
1109
|
+
request: MediaRequest;
|
|
1110
|
+
}>;
|
|
1111
|
+
};
|
|
1112
|
+
prepare(): Promise<Omit<ProcessSequence, 'outputName'>>;
|
|
1113
|
+
resolveDownload(result: VideoFileRef, name?: string): Promise<string | null | undefined>;
|
|
1114
|
+
onClose(): void;
|
|
1115
|
+
}
|
|
609
1116
|
interface VideoEditorProps {
|
|
610
1117
|
input: VideoInput;
|
|
611
|
-
mode:
|
|
1118
|
+
mode: keyof typeof videoEditorTitles;
|
|
612
1119
|
onApply(saved: SavedEdit): Promise<void>;
|
|
613
1120
|
onClose(): void;
|
|
614
1121
|
}
|
|
@@ -630,7 +1137,10 @@ interface VideoCompareProps {
|
|
|
630
1137
|
label: string;
|
|
631
1138
|
input: VideoInput;
|
|
632
1139
|
context?: CompareSlot['context'];
|
|
1140
|
+
preview?: ReactNode;
|
|
633
1141
|
}[];
|
|
1142
|
+
/** Allow an occupied candidate to exchange places with the target column. */
|
|
1143
|
+
allowCandidateSwap?: boolean;
|
|
634
1144
|
onRequestReplacement?(slotId: string): Promise<VideoInput | null>;
|
|
635
1145
|
onOpenDetails(input: VideoInput, back: {
|
|
636
1146
|
slots: CompareSlot[];
|
|
@@ -664,4 +1174,4 @@ interface MediaToolsClient {
|
|
|
664
1174
|
resolve(input: VideoInput): Promise<ResolvedVideo>;
|
|
665
1175
|
}
|
|
666
1176
|
|
|
667
|
-
export { type AcceptedJob, type CompareSlot, Config, type EditDescriptor, type EditReadData, type Geometry, type JobPage, type JobState, type MediaJob, type MediaJobsProps, type MediaRequest, type MediaToolsClient, type MediaToolsConfig, type MediaToolsService, type PixelRect, type ProcessSequence, type ProcessVideo, type Recipe, type ResolvedVideo, type SaveEdit, type SavedEdit, type SequenceVideoInput, type VideoCompareProps, type VideoEditorProps, type VideoFileRef, type VideoInput, type VideoMetadata, canvas, editDescriptor, geometry, jobStates, jobsQuery, mediaError, mediaRequest, metadata, normalizeRecipe, packageVersion, processSequence, processVideo, readSavedEdit, recipe, sameFile, saveEdit, versionRef, videoFileRef, videoInput };
|
|
1177
|
+
export { type AcceptedJob, type AudioMix, type AudioPreviewResult, type CompareSlot, Config, type EditDescriptor, type EditReadData, type ExportSettings, type Geometry, type JobPage, type JobState, type MediaJob, type MediaJobsProps, type MediaRequest, type MediaToolsClient, type MediaToolsConfig, type MediaToolsService, type PixelRect, type ProcessSequence, type ProcessVideo, type Recipe, type ResolvedVideo, type SaveEdit, type SavedEdit, type SequenceSound, type SequenceVideoInput, type VideoCompareProps, type VideoEditorProps, type VideoExportProps, type VideoFileRef, type VideoInput, type VideoMetadata, audioMix, audioPreviewResult, audioQuery, canvas, colorAdjustment, editDescriptor, exportFormat, exportSettings, geometry, jobStates, jobsQuery, maxSequenceInputs, mediaError, mediaRequest, metadata, neutralColor, normalizeRecipe, packageVersion, previewQuery, processSequence, processVideo, readSavedEdit, recipe, recipeDurationMs, sameFile, saveAudio, saveEdit, sequenceVideoInput, versionRef, videoEditorTitles, videoFileRef, videoInput, watchSequenceSound };
|