@etaio/core-types 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/asset-adapter.d.ts +1 -1
- package/dist/assets/asset-adapter.d.ts.map +1 -1
- package/dist/editor/index.d.ts +653 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/validators/asset-schemas.d.ts +29 -29
- package/dist/validators/request-schemas.d.ts +2 -2
- package/package.json +1 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-adapter.d.ts","sourceRoot":"","sources":["../../src/assets/asset-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAa,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAmC,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAiC,MAAM,
|
|
1
|
+
{"version":3,"file":"asset-adapter.d.ts","sourceRoot":"","sources":["../../src/assets/asset-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAa,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAmC,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAiC,MAAM,mBAAmB,CAAC;AAMxF,qBAAa,YAAY;IAMvB;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,SAAS;IAqBzC;;;OAGG;IACH,MAAM,CAAC,UAAU,CACf,IAAI,EAAE,SAAS,EACf,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,GAC3B,QAAQ;IAkBX;;;OAGG;IACH,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,QAAQ;IAiBhD;;;OAGG;IACH,MAAM,CAAC,WAAW,CAChB,KAAK,EAAE,QAAQ,EACf,OAAO,CAAC,EAAE,QAAQ,EAClB,cAAc,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,GACnC,UAAU;IAwHb;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAkCjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAgBjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,UAAU;IAczB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAahC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAmB/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAO9B;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,UAAU;IAU/C;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ;CAQ7C"}
|
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
export type ItemType = "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "rect" | "progressBar" | "progressFrame" | "progressSquare" | "radialAudioBars" | "linealAudioBars" | "waveAudioBars" | "hillAudioBars";
|
|
2
|
+
export type ITrackType = "main" | "text" | "image" | "video" | "audio" | "helper" | "caption" | "template" | "composition" | "illustration" | "shape" | "rect" | "progressBar" | "progressSquare" | "progressFrame" | "radialAudioBars" | "linealAudioBars";
|
|
3
|
+
export type ITransitionType = "none" | "fade" | "slide" | "wipe" | "flip" | "clockWipe" | "star" | "circle" | "rectangle" | "slidingDoors";
|
|
4
|
+
export type IKindHistory = "add" | "remove" | "update" | "replace" | "update:details" | "layer:selection" | "undo" | "design:resize" | "design:load" | "redo" | "add:transition";
|
|
5
|
+
export interface ISize {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
type?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IDisplay {
|
|
12
|
+
from: number;
|
|
13
|
+
to: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ITrim {
|
|
16
|
+
from: number;
|
|
17
|
+
to: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IBoxShadow {
|
|
20
|
+
color: string;
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
blur: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IMetadata {
|
|
26
|
+
resourceId: string;
|
|
27
|
+
order: number;
|
|
28
|
+
}
|
|
29
|
+
export interface IBasicAnimation {
|
|
30
|
+
name: string;
|
|
31
|
+
composition: ICompositionAnimation[];
|
|
32
|
+
}
|
|
33
|
+
export interface ICompositionAnimation {
|
|
34
|
+
property: string;
|
|
35
|
+
from: number;
|
|
36
|
+
to: number;
|
|
37
|
+
durationInFrames: number;
|
|
38
|
+
ease?: (t: number) => number;
|
|
39
|
+
easing: string;
|
|
40
|
+
delay: number;
|
|
41
|
+
details?: {
|
|
42
|
+
fonts: {
|
|
43
|
+
fontFamily: string;
|
|
44
|
+
url: string;
|
|
45
|
+
}[];
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export interface ITransition {
|
|
49
|
+
id: string;
|
|
50
|
+
trackId: string;
|
|
51
|
+
fromId: string;
|
|
52
|
+
toId: string;
|
|
53
|
+
type: string;
|
|
54
|
+
name?: string;
|
|
55
|
+
duration: number;
|
|
56
|
+
preview?: string;
|
|
57
|
+
direction?: any;
|
|
58
|
+
kind: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ITrack {
|
|
61
|
+
id: string;
|
|
62
|
+
type: ITrackType;
|
|
63
|
+
items: string[];
|
|
64
|
+
metadata?: Partial<IMetadata>;
|
|
65
|
+
accepts?: string[];
|
|
66
|
+
index?: number;
|
|
67
|
+
magnetic?: boolean;
|
|
68
|
+
static?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface ITimelineScaleState {
|
|
71
|
+
unit: number;
|
|
72
|
+
zoom: number;
|
|
73
|
+
segments: number;
|
|
74
|
+
index: number;
|
|
75
|
+
}
|
|
76
|
+
export interface ITimelineScrollState {
|
|
77
|
+
/**
|
|
78
|
+
* Timeline scroll state by X-axis.
|
|
79
|
+
*/
|
|
80
|
+
left: number;
|
|
81
|
+
/**
|
|
82
|
+
* Timeline scroll state by Y-axis.
|
|
83
|
+
*/
|
|
84
|
+
top: number;
|
|
85
|
+
}
|
|
86
|
+
export interface CanvasSpacing {
|
|
87
|
+
left: number;
|
|
88
|
+
right: number;
|
|
89
|
+
}
|
|
90
|
+
export interface ItemStructure {
|
|
91
|
+
id: string;
|
|
92
|
+
items: string[];
|
|
93
|
+
transitions: string[];
|
|
94
|
+
tracks: ITrack[];
|
|
95
|
+
}
|
|
96
|
+
interface ICommonDetails {
|
|
97
|
+
width?: number;
|
|
98
|
+
height?: number;
|
|
99
|
+
transform?: string;
|
|
100
|
+
opacity?: number;
|
|
101
|
+
border?: string;
|
|
102
|
+
borderRadius?: number;
|
|
103
|
+
boxShadow?: IBoxShadow;
|
|
104
|
+
top?: number | string;
|
|
105
|
+
left?: number | string;
|
|
106
|
+
borderColor?: string;
|
|
107
|
+
borderWidth?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface ITrackItemBase {
|
|
110
|
+
id: string;
|
|
111
|
+
name: string;
|
|
112
|
+
type: ItemType;
|
|
113
|
+
preview?: string;
|
|
114
|
+
display: IDisplay;
|
|
115
|
+
duration?: number;
|
|
116
|
+
trim?: ITrim;
|
|
117
|
+
isMain?: boolean;
|
|
118
|
+
animations?: {
|
|
119
|
+
in: IBasicAnimation;
|
|
120
|
+
out: IBasicAnimation;
|
|
121
|
+
loop: IBasicAnimation;
|
|
122
|
+
};
|
|
123
|
+
playbackRate?: number;
|
|
124
|
+
modifier?: IDisplay;
|
|
125
|
+
details?: any;
|
|
126
|
+
activeEdit?: boolean;
|
|
127
|
+
metadata: Record<string, any>;
|
|
128
|
+
transitionInfo?: {
|
|
129
|
+
isFrom: boolean;
|
|
130
|
+
isTo: boolean;
|
|
131
|
+
transition: ITransition;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
export type ITrackItem = IAudio | IImage | IText | IVideo | ICaption | ITemplate | IComposition | IIllustration | IShape | IRect | IProgressBar | IProgressSquare | IProgressFrame | IRadialAudioBars | ILinealAudioBars | IWaveAudioBars | IHillAudioBars;
|
|
135
|
+
export interface ICaptionWord {
|
|
136
|
+
end: number;
|
|
137
|
+
start: number;
|
|
138
|
+
word: string;
|
|
139
|
+
}
|
|
140
|
+
export interface ICaptionDetails extends ICommonDetails {
|
|
141
|
+
skewX: number;
|
|
142
|
+
skewY: number;
|
|
143
|
+
text: string;
|
|
144
|
+
fontSize: number;
|
|
145
|
+
fontFamily: string;
|
|
146
|
+
fontUrl: string;
|
|
147
|
+
color: string;
|
|
148
|
+
lineHeight: number | string;
|
|
149
|
+
letterSpacing: number | string;
|
|
150
|
+
fontWeight: number;
|
|
151
|
+
fontStyle: string;
|
|
152
|
+
textDecoration: string;
|
|
153
|
+
textAlign: "center" | "left" | "right";
|
|
154
|
+
wordSpacing: number | string;
|
|
155
|
+
textShadow: string;
|
|
156
|
+
backgroundColor: string;
|
|
157
|
+
opacity: number;
|
|
158
|
+
width: number;
|
|
159
|
+
height: number;
|
|
160
|
+
top: number | string;
|
|
161
|
+
left: number | string;
|
|
162
|
+
border: string;
|
|
163
|
+
wordWrap: "normal" | "break-word";
|
|
164
|
+
wordBreak: "normal" | "break-word" | "break-all";
|
|
165
|
+
WebkitTextStrokeColor: string;
|
|
166
|
+
WebkitTextStrokeWidth: string;
|
|
167
|
+
borderWidth: number;
|
|
168
|
+
borderColor: string;
|
|
169
|
+
boxShadow: {
|
|
170
|
+
color: string;
|
|
171
|
+
x: number;
|
|
172
|
+
y: number;
|
|
173
|
+
blur: number;
|
|
174
|
+
};
|
|
175
|
+
textTransform: "capitalize" | "uppercase" | "lowercase";
|
|
176
|
+
words: ICaptionWord[];
|
|
177
|
+
appearedColor?: string;
|
|
178
|
+
activeColor?: string;
|
|
179
|
+
activeFillColor?: string;
|
|
180
|
+
animation?: string;
|
|
181
|
+
isKeywordColor?: string;
|
|
182
|
+
preservedColorKeyWord?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface ITextDetails extends ICommonDetails {
|
|
185
|
+
skewX: number;
|
|
186
|
+
skewY: number;
|
|
187
|
+
text: string;
|
|
188
|
+
fontSize: number;
|
|
189
|
+
fontFamily: string;
|
|
190
|
+
fontUrl: string;
|
|
191
|
+
color: string;
|
|
192
|
+
lineHeight: number | string;
|
|
193
|
+
letterSpacing: number | string;
|
|
194
|
+
fontWeight: number;
|
|
195
|
+
fontStyle: string;
|
|
196
|
+
textDecoration: string;
|
|
197
|
+
textAlign: "center" | "left" | "right";
|
|
198
|
+
wordSpacing: number | string;
|
|
199
|
+
textShadow: string;
|
|
200
|
+
backgroundColor: string;
|
|
201
|
+
opacity: number;
|
|
202
|
+
width: number;
|
|
203
|
+
textTransform: "capitalize" | "uppercase" | "lowercase";
|
|
204
|
+
height: number;
|
|
205
|
+
top: number | string;
|
|
206
|
+
left: number | string;
|
|
207
|
+
border: string;
|
|
208
|
+
wordWrap: "normal" | "break-word";
|
|
209
|
+
wordBreak: "normal" | "break-word" | "break-all";
|
|
210
|
+
WebkitTextStrokeColor: string;
|
|
211
|
+
WebkitTextStrokeWidth: string;
|
|
212
|
+
borderWidth: number;
|
|
213
|
+
borderColor: string;
|
|
214
|
+
boxShadow: {
|
|
215
|
+
color: string;
|
|
216
|
+
x: number;
|
|
217
|
+
y: number;
|
|
218
|
+
blur: number;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
export interface IImageDetails extends ICommonDetails {
|
|
222
|
+
src: string;
|
|
223
|
+
background: string;
|
|
224
|
+
width: number;
|
|
225
|
+
height: number;
|
|
226
|
+
opacity: number;
|
|
227
|
+
transform: string;
|
|
228
|
+
border: string;
|
|
229
|
+
borderRadius: number;
|
|
230
|
+
boxShadow: IBoxShadow;
|
|
231
|
+
top: string;
|
|
232
|
+
left: string;
|
|
233
|
+
transformOrigin: string;
|
|
234
|
+
crop: {
|
|
235
|
+
x: number;
|
|
236
|
+
y: number;
|
|
237
|
+
width: number;
|
|
238
|
+
height: number;
|
|
239
|
+
};
|
|
240
|
+
blur: number;
|
|
241
|
+
brightness: number;
|
|
242
|
+
flipX: boolean;
|
|
243
|
+
flipY: boolean;
|
|
244
|
+
rotate: string;
|
|
245
|
+
visibility: "visible" | "hidden";
|
|
246
|
+
}
|
|
247
|
+
export interface IVideoDetails extends ICommonDetails {
|
|
248
|
+
src: string;
|
|
249
|
+
frames?: number;
|
|
250
|
+
background?: string;
|
|
251
|
+
stream?: ReadableStream<Uint8Array>;
|
|
252
|
+
blob?: Blob;
|
|
253
|
+
width: number;
|
|
254
|
+
height: number;
|
|
255
|
+
volume?: number;
|
|
256
|
+
boxShadow?: IBoxShadow;
|
|
257
|
+
transformOrigin?: string;
|
|
258
|
+
crop?: {
|
|
259
|
+
x: number;
|
|
260
|
+
y: number;
|
|
261
|
+
width: number;
|
|
262
|
+
height: number;
|
|
263
|
+
};
|
|
264
|
+
blur: number;
|
|
265
|
+
brightness: number;
|
|
266
|
+
flipX: boolean;
|
|
267
|
+
flipY: boolean;
|
|
268
|
+
rotate: string;
|
|
269
|
+
visibility: "visible" | "hidden";
|
|
270
|
+
}
|
|
271
|
+
export interface IAudioDetails extends ICommonDetails {
|
|
272
|
+
src: string;
|
|
273
|
+
volume?: number;
|
|
274
|
+
}
|
|
275
|
+
export interface IIllustrationDetails extends ICommonDetails {
|
|
276
|
+
path: string;
|
|
277
|
+
src: string;
|
|
278
|
+
width: number;
|
|
279
|
+
height: number;
|
|
280
|
+
opacity: number;
|
|
281
|
+
transform: string;
|
|
282
|
+
border: string;
|
|
283
|
+
top: string;
|
|
284
|
+
left: string;
|
|
285
|
+
flipX: boolean;
|
|
286
|
+
flipY: boolean;
|
|
287
|
+
rotate: string;
|
|
288
|
+
svgString: string;
|
|
289
|
+
initialSvgString: string;
|
|
290
|
+
visibility: "visible" | "hidden";
|
|
291
|
+
colorMap: Record<string, string>;
|
|
292
|
+
}
|
|
293
|
+
export interface IShapeDetails extends ICommonDetails {
|
|
294
|
+
path: string;
|
|
295
|
+
src: string;
|
|
296
|
+
width: number;
|
|
297
|
+
height: number;
|
|
298
|
+
opacity: number;
|
|
299
|
+
transform: string;
|
|
300
|
+
border: string;
|
|
301
|
+
top: string;
|
|
302
|
+
left: string;
|
|
303
|
+
flipX: boolean;
|
|
304
|
+
flipY: boolean;
|
|
305
|
+
rotate: string;
|
|
306
|
+
visibility: "visible" | "hidden";
|
|
307
|
+
backgroundColor: string;
|
|
308
|
+
}
|
|
309
|
+
export interface IRectDetails extends ICommonDetails {
|
|
310
|
+
width: number;
|
|
311
|
+
height: number;
|
|
312
|
+
opacity: number;
|
|
313
|
+
transform: string;
|
|
314
|
+
border: string;
|
|
315
|
+
top: string;
|
|
316
|
+
left: string;
|
|
317
|
+
flipX: boolean;
|
|
318
|
+
flipY: boolean;
|
|
319
|
+
rotate: string;
|
|
320
|
+
visibility: "visible" | "hidden";
|
|
321
|
+
backgroundColor: string;
|
|
322
|
+
boxShadow: IBoxShadow;
|
|
323
|
+
blur: number;
|
|
324
|
+
brightness: number;
|
|
325
|
+
}
|
|
326
|
+
export interface IProgressBarDetails extends ICommonDetails {
|
|
327
|
+
width: number;
|
|
328
|
+
height: number;
|
|
329
|
+
top: string;
|
|
330
|
+
left: string;
|
|
331
|
+
backgroundColors: string[];
|
|
332
|
+
border: string;
|
|
333
|
+
borderRadius: number;
|
|
334
|
+
borderWidth: number;
|
|
335
|
+
borderColor: string;
|
|
336
|
+
opacity: number;
|
|
337
|
+
flipX: boolean;
|
|
338
|
+
flipY: boolean;
|
|
339
|
+
inverted: boolean;
|
|
340
|
+
}
|
|
341
|
+
export interface IProgressFrameDetails extends ICommonDetails {
|
|
342
|
+
width: number;
|
|
343
|
+
height: number;
|
|
344
|
+
top: string;
|
|
345
|
+
left: string;
|
|
346
|
+
backgroundColors: string[];
|
|
347
|
+
border: string;
|
|
348
|
+
borderRadius: number;
|
|
349
|
+
borderWidth: number;
|
|
350
|
+
borderColor: string;
|
|
351
|
+
opacity: number;
|
|
352
|
+
flipX: boolean;
|
|
353
|
+
flipY: boolean;
|
|
354
|
+
inverted: boolean;
|
|
355
|
+
barThickness: number;
|
|
356
|
+
}
|
|
357
|
+
export interface IProgressSquareDetails extends ICommonDetails {
|
|
358
|
+
width: number;
|
|
359
|
+
height: number;
|
|
360
|
+
top: string;
|
|
361
|
+
left: string;
|
|
362
|
+
strokeColors: string[];
|
|
363
|
+
strokeWidth: number;
|
|
364
|
+
inverted: boolean;
|
|
365
|
+
strokeBackground: string;
|
|
366
|
+
flipX: boolean;
|
|
367
|
+
flipY: boolean;
|
|
368
|
+
rotate: string;
|
|
369
|
+
transform: string;
|
|
370
|
+
opacity: number;
|
|
371
|
+
}
|
|
372
|
+
export interface IRadialAudioBarsDetails extends ICommonDetails {
|
|
373
|
+
width: number;
|
|
374
|
+
height: number;
|
|
375
|
+
top: string;
|
|
376
|
+
left: string;
|
|
377
|
+
border: string;
|
|
378
|
+
borderRadius: number;
|
|
379
|
+
borderWidth: number;
|
|
380
|
+
borderColor: string;
|
|
381
|
+
opacity: number;
|
|
382
|
+
flipX: boolean;
|
|
383
|
+
flipY: boolean;
|
|
384
|
+
srcs: string[];
|
|
385
|
+
reproduceAudio: boolean;
|
|
386
|
+
radialBarColor: string;
|
|
387
|
+
audioDatas: any[];
|
|
388
|
+
}
|
|
389
|
+
export interface ILinealAudioBarsDetails extends ICommonDetails {
|
|
390
|
+
width: number;
|
|
391
|
+
height: number;
|
|
392
|
+
top: string;
|
|
393
|
+
left: string;
|
|
394
|
+
border: string;
|
|
395
|
+
borderRadius: number;
|
|
396
|
+
borderWidth: number;
|
|
397
|
+
borderColor: string;
|
|
398
|
+
opacity: number;
|
|
399
|
+
flipX: boolean;
|
|
400
|
+
flipY: boolean;
|
|
401
|
+
srcs: string[];
|
|
402
|
+
reproduceAudio: boolean;
|
|
403
|
+
audioDatas: any[];
|
|
404
|
+
linealBarColor: string;
|
|
405
|
+
backgroundColor: string;
|
|
406
|
+
lineThickness: number;
|
|
407
|
+
gapSize: number;
|
|
408
|
+
roundness: number;
|
|
409
|
+
placement: string | null;
|
|
410
|
+
inverted: boolean;
|
|
411
|
+
strokeColor: string;
|
|
412
|
+
fillColor: string | null;
|
|
413
|
+
strokeWidth: number | null;
|
|
414
|
+
copies: number | null;
|
|
415
|
+
offsetPixelSpeed: number;
|
|
416
|
+
lineColor: string | string[];
|
|
417
|
+
lineGap: number;
|
|
418
|
+
topRoundness: number;
|
|
419
|
+
bottomRoundness: number;
|
|
420
|
+
lines: number;
|
|
421
|
+
sections: number;
|
|
422
|
+
}
|
|
423
|
+
export interface IWaveAudioBarsDetails extends ICommonDetails {
|
|
424
|
+
width: number;
|
|
425
|
+
height: number;
|
|
426
|
+
top: string;
|
|
427
|
+
left: string;
|
|
428
|
+
border: string;
|
|
429
|
+
borderRadius: number;
|
|
430
|
+
borderWidth: number;
|
|
431
|
+
borderColor: string;
|
|
432
|
+
opacity: number;
|
|
433
|
+
flipX: boolean;
|
|
434
|
+
flipY: boolean;
|
|
435
|
+
srcs: string[];
|
|
436
|
+
reproduceAudio: boolean;
|
|
437
|
+
radialBarColor: string;
|
|
438
|
+
audioDatas: any[];
|
|
439
|
+
offsetPixelSpeed: number;
|
|
440
|
+
lineColor: string | string[];
|
|
441
|
+
lineGap: number;
|
|
442
|
+
topRoundness: number;
|
|
443
|
+
bottomRoundness: number;
|
|
444
|
+
lines: number;
|
|
445
|
+
sections: number;
|
|
446
|
+
}
|
|
447
|
+
export interface IHillAudioBarsDetails extends ICommonDetails {
|
|
448
|
+
width: number;
|
|
449
|
+
height: number;
|
|
450
|
+
top: string;
|
|
451
|
+
left: string;
|
|
452
|
+
border: string;
|
|
453
|
+
borderRadius: number;
|
|
454
|
+
borderWidth: number;
|
|
455
|
+
borderColor: string;
|
|
456
|
+
opacity: number;
|
|
457
|
+
flipX: boolean;
|
|
458
|
+
flipY: boolean;
|
|
459
|
+
srcs: string[];
|
|
460
|
+
reproduceAudio: boolean;
|
|
461
|
+
radialBarColor: string;
|
|
462
|
+
audioDatas: any[];
|
|
463
|
+
strokeColor: string;
|
|
464
|
+
fillColor: string | null;
|
|
465
|
+
strokeWidth: number | null;
|
|
466
|
+
copies: number | null;
|
|
467
|
+
blendMode: string | null;
|
|
468
|
+
}
|
|
469
|
+
export interface IText extends ITrackItemBase {
|
|
470
|
+
type: "text";
|
|
471
|
+
details: ITextDetails;
|
|
472
|
+
}
|
|
473
|
+
export interface ICaption extends ITrackItemBase {
|
|
474
|
+
type: "caption";
|
|
475
|
+
details: ICaptionDetails;
|
|
476
|
+
}
|
|
477
|
+
export interface IImage extends ITrackItemBase {
|
|
478
|
+
type: "image";
|
|
479
|
+
details: IImageDetails;
|
|
480
|
+
}
|
|
481
|
+
export interface IVideo extends ITrackItemBase {
|
|
482
|
+
type: "video";
|
|
483
|
+
details: IVideoDetails;
|
|
484
|
+
}
|
|
485
|
+
export interface IAudio extends ITrackItemBase {
|
|
486
|
+
type: "audio";
|
|
487
|
+
details: IAudioDetails;
|
|
488
|
+
}
|
|
489
|
+
export interface IIllustration extends ITrackItemBase {
|
|
490
|
+
type: "illustration";
|
|
491
|
+
details: IIllustrationDetails;
|
|
492
|
+
}
|
|
493
|
+
export interface IShape extends ITrackItemBase {
|
|
494
|
+
type: "shape";
|
|
495
|
+
details: IShapeDetails;
|
|
496
|
+
}
|
|
497
|
+
export interface IRect extends ITrackItemBase {
|
|
498
|
+
type: "rect";
|
|
499
|
+
details: IRectDetails;
|
|
500
|
+
}
|
|
501
|
+
export interface IProgressBar extends ITrackItemBase {
|
|
502
|
+
type: "progressBar";
|
|
503
|
+
details: IProgressBarDetails;
|
|
504
|
+
}
|
|
505
|
+
export interface IProgressSquare extends ITrackItemBase {
|
|
506
|
+
type: "progressSquare";
|
|
507
|
+
details: IProgressSquareDetails;
|
|
508
|
+
}
|
|
509
|
+
export interface IProgressFrame extends ITrackItemBase {
|
|
510
|
+
type: "progressFrame";
|
|
511
|
+
details: IProgressFrameDetails;
|
|
512
|
+
}
|
|
513
|
+
export interface IRadialAudioBars extends ITrackItemBase {
|
|
514
|
+
type: "radialAudioBars";
|
|
515
|
+
details: IRadialAudioBarsDetails;
|
|
516
|
+
}
|
|
517
|
+
export interface ILinealAudioBars extends ITrackItemBase {
|
|
518
|
+
type: "linealAudioBars";
|
|
519
|
+
details: ILinealAudioBarsDetails;
|
|
520
|
+
}
|
|
521
|
+
export interface IWaveAudioBars extends ITrackItemBase {
|
|
522
|
+
type: "waveAudioBars";
|
|
523
|
+
details: IWaveAudioBarsDetails;
|
|
524
|
+
}
|
|
525
|
+
export interface IHillAudioBars extends ITrackItemBase {
|
|
526
|
+
type: "hillAudioBars";
|
|
527
|
+
details: IHillAudioBarsDetails;
|
|
528
|
+
}
|
|
529
|
+
export interface IComposition extends ITrackItemBase {
|
|
530
|
+
type: "composition";
|
|
531
|
+
trackItemIds: string[];
|
|
532
|
+
trackItemsMap: Record<string, ITrackItem>;
|
|
533
|
+
tracks: ITrack[];
|
|
534
|
+
size: ISize;
|
|
535
|
+
}
|
|
536
|
+
export interface ITemplate extends ITrackItemBase {
|
|
537
|
+
type: "template";
|
|
538
|
+
trackItemIds: string[];
|
|
539
|
+
trackItemsMap: Record<string, ITrackItem>;
|
|
540
|
+
transitionsMap: Record<string, ITransition>;
|
|
541
|
+
transitionIds: string[];
|
|
542
|
+
size: ISize;
|
|
543
|
+
tracks: ITrack[];
|
|
544
|
+
structure: ItemStructure[];
|
|
545
|
+
}
|
|
546
|
+
export interface State {
|
|
547
|
+
tracks: ITrack[];
|
|
548
|
+
trackItemIds: string[];
|
|
549
|
+
trackItemsMap: Record<string, ITrackItem>;
|
|
550
|
+
transitionIds: string[];
|
|
551
|
+
transitionsMap: Record<string, ITransition>;
|
|
552
|
+
scale: ITimelineScaleState;
|
|
553
|
+
duration: number;
|
|
554
|
+
activeIds: string[];
|
|
555
|
+
size: ISize;
|
|
556
|
+
structure: ItemStructure[];
|
|
557
|
+
fps: number;
|
|
558
|
+
background: {
|
|
559
|
+
type: "color" | "image";
|
|
560
|
+
value: string;
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
export interface IDesign {
|
|
564
|
+
id: string | number;
|
|
565
|
+
size: ISize;
|
|
566
|
+
duration?: number;
|
|
567
|
+
fps: number;
|
|
568
|
+
tracks: ITrack[];
|
|
569
|
+
trackItemIds: string[];
|
|
570
|
+
trackItemsMap: Record<string, ITrackItem>;
|
|
571
|
+
transitionIds: string[];
|
|
572
|
+
transitionsMap: Record<string, ITransition>;
|
|
573
|
+
structure?: ItemStructure[];
|
|
574
|
+
background?: {
|
|
575
|
+
type: "color" | "image";
|
|
576
|
+
value: string;
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
export interface IUpdateStateOptions {
|
|
580
|
+
updateHistory?: boolean;
|
|
581
|
+
kind?: IKindHistory;
|
|
582
|
+
}
|
|
583
|
+
export interface IStateManager {
|
|
584
|
+
getState(): State;
|
|
585
|
+
subscribe(callback: (state: State) => void): void;
|
|
586
|
+
updateState(partialState: Partial<State>, updateHistory?: IUpdateStateOptions): void;
|
|
587
|
+
subscribeToScale: (callback: (v: {
|
|
588
|
+
scale: State["scale"];
|
|
589
|
+
}) => void) => void;
|
|
590
|
+
subscribeToDuration: (callback: (duration: {
|
|
591
|
+
duration: State["duration"];
|
|
592
|
+
}) => void) => void;
|
|
593
|
+
subscribeToActiveIds: (callback: (activeIds: {
|
|
594
|
+
activeIds: State["activeIds"];
|
|
595
|
+
}) => void) => void;
|
|
596
|
+
subscribeToAddOrRemoveItems: (callback: (trackItemIds: {
|
|
597
|
+
trackItemIds: State["trackItemIds"];
|
|
598
|
+
}) => void) => void;
|
|
599
|
+
subscribeToHistory: (callback: (history: {
|
|
600
|
+
tracks: State["tracks"];
|
|
601
|
+
trackItemsMap: State["trackItemsMap"];
|
|
602
|
+
trackItemIds: State["trackItemIds"];
|
|
603
|
+
transitionIds: State["transitionIds"];
|
|
604
|
+
transitionsMap: State["transitionsMap"];
|
|
605
|
+
}) => void) => void;
|
|
606
|
+
subscribeToUpdateTrackItem: (callback: (trackItemUpdate: {
|
|
607
|
+
trackItemsMap: State["trackItemsMap"];
|
|
608
|
+
}) => void) => void;
|
|
609
|
+
subscribeToUpdateItemDetails: (callback: (trackItemUpdate: {
|
|
610
|
+
trackItemsMap: State["trackItemsMap"];
|
|
611
|
+
}) => void) => void;
|
|
612
|
+
subscribeToUpdateTrackItemTiming: (callback: (trackItemUpdate: {
|
|
613
|
+
trackItemsMap: State["trackItemsMap"];
|
|
614
|
+
changedTrimIds?: string[];
|
|
615
|
+
changedDisplayIds?: string[];
|
|
616
|
+
}) => void) => void;
|
|
617
|
+
subscribeToFps: (callback: (fps: {
|
|
618
|
+
fps: State["fps"];
|
|
619
|
+
}) => void) => void;
|
|
620
|
+
subscribeToUpdateAnimations: (callback: (trackItemUpdate: {
|
|
621
|
+
trackItemsMap: State["trackItemsMap"];
|
|
622
|
+
changedAnimationIds?: string[];
|
|
623
|
+
}) => void) => void;
|
|
624
|
+
subscribeToTracks: (callback: (tracksUpdate: {
|
|
625
|
+
tracks: State["tracks"];
|
|
626
|
+
changedTracks: string[];
|
|
627
|
+
}) => void) => void;
|
|
628
|
+
subscribeToState: (callback: (tracksInfo: {
|
|
629
|
+
tracks: State["tracks"];
|
|
630
|
+
trackItemIds: State["trackItemIds"];
|
|
631
|
+
trackItemsMap: State["trackItemsMap"];
|
|
632
|
+
transitionIds: State["transitionIds"];
|
|
633
|
+
transitionsMap: State["transitionsMap"];
|
|
634
|
+
structure: State["structure"];
|
|
635
|
+
}) => void) => void;
|
|
636
|
+
}
|
|
637
|
+
export interface ITrackItemsMap {
|
|
638
|
+
[id: string]: ITrackItem;
|
|
639
|
+
}
|
|
640
|
+
export interface IItemsDetailsMap {
|
|
641
|
+
[id: string]: ITrackItem;
|
|
642
|
+
}
|
|
643
|
+
export interface ItransitionsMap {
|
|
644
|
+
[id: string]: ITransition;
|
|
645
|
+
}
|
|
646
|
+
export type ITrackItemAndDetails = ITrackItem;
|
|
647
|
+
export type IRecordItemAndDetails = Record<string, ITrackItem>;
|
|
648
|
+
export interface IBulkAction {
|
|
649
|
+
type: string;
|
|
650
|
+
payload?: any;
|
|
651
|
+
}
|
|
652
|
+
export {};
|
|
653
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAChB,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,SAAS,GACT,UAAU,GACV,aAAa,GACb,cAAc,GACd,OAAO,GACP,MAAM,GACN,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,eAAe,CAAC;AAEpB,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,SAAS,GACT,UAAU,GACV,aAAa,GACb,cAAc,GACd,OAAO,GACP,MAAM,GACN,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,MAAM,MAAM,eAAe,GACvB,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,WAAW,GACX,MAAM,GACN,QAAQ,GACR,WAAW,GACX,cAAc,CAAC;AAEnB,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,gBAAgB,GAChB,iBAAiB,GACjB,MAAM,GACN,eAAe,GACf,aAAa,GACb,MAAM,GACN,gBAAgB,CAAC;AAMrB,MAAM,WAAW,KAAK;IACpB,KAAK,E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EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;QACtC,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACxC,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;KAC/B,KAAK,IAAI,KACP,IAAI,CAAC;CACX;AAMD,MAAM,WAAW,cAAc;IAC7B,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,CAAC;CAC3B;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC;AAC9C,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE/D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;CACf"}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* This package provides the foundation types that all other packages build upon.
|
|
6
6
|
*
|
|
7
7
|
* Architecture:
|
|
8
|
+
* - Editor Types: UI components, tracks, transitions (from editor-types)
|
|
8
9
|
* - BaseAsset: The fundamental asset type (ID, type, URL, project)
|
|
9
10
|
* - ApiAsset: Extends BaseAsset with API-specific metadata
|
|
10
11
|
* - AssetAdapter: Converts between different asset representations
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
* - Validation: Runtime type checking with Zod
|
|
13
14
|
* - Providers: Interface definitions for generation services
|
|
14
15
|
*/
|
|
16
|
+
export * from './editor';
|
|
15
17
|
export * from './base';
|
|
16
18
|
export * from './assets';
|
|
17
19
|
export * from './providers';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,cAAc,UAAU,CAAC;AAKzB,cAAc,QAAQ,CAAC;AAKvB,cAAc,UAAU,CAAC;AAKzB,cAAc,aAAa,CAAC;AAK5B,cAAc,cAAc,CAAC;AAK7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,YAAY,sBAAsB,CAAC"}
|
|
@@ -11,14 +11,14 @@ export declare const BaseAssetSchema: z.ZodObject<{
|
|
|
11
11
|
createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
12
12
|
updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
type: "
|
|
14
|
+
type: "text" | "image" | "video" | "audio" | "graphics";
|
|
15
15
|
id: string;
|
|
16
16
|
url: string;
|
|
17
17
|
projectId: string;
|
|
18
18
|
createdAt: Date;
|
|
19
19
|
updatedAt?: Date | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
type: "
|
|
21
|
+
type: "text" | "image" | "video" | "audio" | "graphics";
|
|
22
22
|
id: string;
|
|
23
23
|
url: string;
|
|
24
24
|
projectId: string;
|
|
@@ -89,13 +89,13 @@ export declare const UploadMetadataSchema: z.ZodObject<{
|
|
|
89
89
|
contentType: string;
|
|
90
90
|
source: "url" | "direct" | "presigned";
|
|
91
91
|
userId: string;
|
|
92
|
+
duration?: number | undefined;
|
|
92
93
|
originalName?: string | undefined;
|
|
93
94
|
size?: number | undefined;
|
|
94
95
|
dimensions?: {
|
|
95
96
|
width: number;
|
|
96
97
|
height: number;
|
|
97
98
|
} | undefined;
|
|
98
|
-
duration?: number | undefined;
|
|
99
99
|
projectId?: string | undefined;
|
|
100
100
|
uploadedAt?: string | undefined;
|
|
101
101
|
originalUrl?: string | undefined;
|
|
@@ -105,13 +105,13 @@ export declare const UploadMetadataSchema: z.ZodObject<{
|
|
|
105
105
|
contentType: string;
|
|
106
106
|
source: "url" | "direct" | "presigned";
|
|
107
107
|
userId: string;
|
|
108
|
+
duration?: number | undefined;
|
|
108
109
|
originalName?: string | undefined;
|
|
109
110
|
size?: number | undefined;
|
|
110
111
|
dimensions?: {
|
|
111
112
|
width: number;
|
|
112
113
|
height: number;
|
|
113
114
|
} | undefined;
|
|
114
|
-
duration?: number | undefined;
|
|
115
115
|
projectId?: string | undefined;
|
|
116
116
|
uploadedAt?: string | undefined;
|
|
117
117
|
originalUrl?: string | undefined;
|
|
@@ -158,13 +158,13 @@ export declare const ApiAssetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
158
158
|
contentType: string;
|
|
159
159
|
source: "url" | "direct" | "presigned";
|
|
160
160
|
userId: string;
|
|
161
|
+
duration?: number | undefined;
|
|
161
162
|
originalName?: string | undefined;
|
|
162
163
|
size?: number | undefined;
|
|
163
164
|
dimensions?: {
|
|
164
165
|
width: number;
|
|
165
166
|
height: number;
|
|
166
167
|
} | undefined;
|
|
167
|
-
duration?: number | undefined;
|
|
168
168
|
projectId?: string | undefined;
|
|
169
169
|
uploadedAt?: string | undefined;
|
|
170
170
|
originalUrl?: string | undefined;
|
|
@@ -174,13 +174,13 @@ export declare const ApiAssetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
174
174
|
contentType: string;
|
|
175
175
|
source: "url" | "direct" | "presigned";
|
|
176
176
|
userId: string;
|
|
177
|
+
duration?: number | undefined;
|
|
177
178
|
originalName?: string | undefined;
|
|
178
179
|
size?: number | undefined;
|
|
179
180
|
dimensions?: {
|
|
180
181
|
width: number;
|
|
181
182
|
height: number;
|
|
182
183
|
} | undefined;
|
|
183
|
-
duration?: number | undefined;
|
|
184
184
|
projectId?: string | undefined;
|
|
185
185
|
uploadedAt?: string | undefined;
|
|
186
186
|
originalUrl?: string | undefined;
|
|
@@ -306,32 +306,32 @@ export declare const ApiAssetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
306
306
|
owner?: string | undefined;
|
|
307
307
|
}>>;
|
|
308
308
|
}>, "strip", z.ZodTypeAny, {
|
|
309
|
-
type: "
|
|
309
|
+
type: "text" | "image" | "video" | "audio" | "graphics";
|
|
310
310
|
provider: string;
|
|
311
311
|
id: string;
|
|
312
312
|
url: string;
|
|
313
313
|
projectId: string;
|
|
314
314
|
createdAt: Date;
|
|
315
|
+
duration?: number | undefined;
|
|
315
316
|
contentType?: string | undefined;
|
|
316
317
|
size?: number | undefined;
|
|
317
318
|
dimensions?: {
|
|
318
319
|
width: number;
|
|
319
320
|
height: number;
|
|
320
321
|
} | undefined;
|
|
321
|
-
duration?: number | undefined;
|
|
322
322
|
name?: string | undefined;
|
|
323
323
|
sceneId?: string | undefined;
|
|
324
324
|
uploadMetadata?: {
|
|
325
325
|
contentType: string;
|
|
326
326
|
source: "url" | "direct" | "presigned";
|
|
327
327
|
userId: string;
|
|
328
|
+
duration?: number | undefined;
|
|
328
329
|
originalName?: string | undefined;
|
|
329
330
|
size?: number | undefined;
|
|
330
331
|
dimensions?: {
|
|
331
332
|
width: number;
|
|
332
333
|
height: number;
|
|
333
334
|
} | undefined;
|
|
334
|
-
duration?: number | undefined;
|
|
335
335
|
projectId?: string | undefined;
|
|
336
336
|
uploadedAt?: string | undefined;
|
|
337
337
|
originalUrl?: string | undefined;
|
|
@@ -373,32 +373,32 @@ export declare const ApiAssetSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
373
373
|
} | undefined;
|
|
374
374
|
updatedAt?: Date | undefined;
|
|
375
375
|
}, {
|
|
376
|
-
type: "
|
|
376
|
+
type: "text" | "image" | "video" | "audio" | "graphics";
|
|
377
377
|
provider: string;
|
|
378
378
|
id: string;
|
|
379
379
|
url: string;
|
|
380
380
|
projectId: string;
|
|
381
381
|
createdAt: string | Date;
|
|
382
|
+
duration?: number | undefined;
|
|
382
383
|
contentType?: string | undefined;
|
|
383
384
|
size?: number | undefined;
|
|
384
385
|
dimensions?: {
|
|
385
386
|
width: number;
|
|
386
387
|
height: number;
|
|
387
388
|
} | undefined;
|
|
388
|
-
duration?: number | undefined;
|
|
389
389
|
name?: string | undefined;
|
|
390
390
|
sceneId?: string | undefined;
|
|
391
391
|
uploadMetadata?: {
|
|
392
392
|
contentType: string;
|
|
393
393
|
source: "url" | "direct" | "presigned";
|
|
394
394
|
userId: string;
|
|
395
|
+
duration?: number | undefined;
|
|
395
396
|
originalName?: string | undefined;
|
|
396
397
|
size?: number | undefined;
|
|
397
398
|
dimensions?: {
|
|
398
399
|
width: number;
|
|
399
400
|
height: number;
|
|
400
401
|
} | undefined;
|
|
401
|
-
duration?: number | undefined;
|
|
402
402
|
projectId?: string | undefined;
|
|
403
403
|
uploadedAt?: string | undefined;
|
|
404
404
|
originalUrl?: string | undefined;
|
|
@@ -449,14 +449,14 @@ export declare function validateBaseAsset(data: unknown): ValidatedBaseAsset;
|
|
|
449
449
|
* Safely validate a base asset (returns validation result)
|
|
450
450
|
*/
|
|
451
451
|
export declare function safeValidateBaseAsset(data: unknown): z.SafeParseReturnType<{
|
|
452
|
-
type: "
|
|
452
|
+
type: "text" | "image" | "video" | "audio" | "graphics";
|
|
453
453
|
id: string;
|
|
454
454
|
url: string;
|
|
455
455
|
projectId: string;
|
|
456
456
|
createdAt: string | Date;
|
|
457
457
|
updatedAt?: string | Date | undefined;
|
|
458
458
|
}, {
|
|
459
|
-
type: "
|
|
459
|
+
type: "text" | "image" | "video" | "audio" | "graphics";
|
|
460
460
|
id: string;
|
|
461
461
|
url: string;
|
|
462
462
|
projectId: string;
|
|
@@ -471,32 +471,32 @@ export declare function validateApiAsset(data: unknown): ValidatedApiAsset;
|
|
|
471
471
|
* Safely validate an API asset (returns validation result)
|
|
472
472
|
*/
|
|
473
473
|
export declare function safeValidateApiAsset(data: unknown): z.SafeParseReturnType<{
|
|
474
|
-
type: "
|
|
474
|
+
type: "text" | "image" | "video" | "audio" | "graphics";
|
|
475
475
|
provider: string;
|
|
476
476
|
id: string;
|
|
477
477
|
url: string;
|
|
478
478
|
projectId: string;
|
|
479
479
|
createdAt: string | Date;
|
|
480
|
+
duration?: number | undefined;
|
|
480
481
|
contentType?: string | undefined;
|
|
481
482
|
size?: number | undefined;
|
|
482
483
|
dimensions?: {
|
|
483
484
|
width: number;
|
|
484
485
|
height: number;
|
|
485
486
|
} | undefined;
|
|
486
|
-
duration?: number | undefined;
|
|
487
487
|
name?: string | undefined;
|
|
488
488
|
sceneId?: string | undefined;
|
|
489
489
|
uploadMetadata?: {
|
|
490
490
|
contentType: string;
|
|
491
491
|
source: "url" | "direct" | "presigned";
|
|
492
492
|
userId: string;
|
|
493
|
+
duration?: number | undefined;
|
|
493
494
|
originalName?: string | undefined;
|
|
494
495
|
size?: number | undefined;
|
|
495
496
|
dimensions?: {
|
|
496
497
|
width: number;
|
|
497
498
|
height: number;
|
|
498
499
|
} | undefined;
|
|
499
|
-
duration?: number | undefined;
|
|
500
500
|
projectId?: string | undefined;
|
|
501
501
|
uploadedAt?: string | undefined;
|
|
502
502
|
originalUrl?: string | undefined;
|
|
@@ -538,32 +538,32 @@ export declare function safeValidateApiAsset(data: unknown): z.SafeParseReturnTy
|
|
|
538
538
|
} | undefined;
|
|
539
539
|
updatedAt?: string | Date | undefined;
|
|
540
540
|
}, {
|
|
541
|
-
type: "
|
|
541
|
+
type: "text" | "image" | "video" | "audio" | "graphics";
|
|
542
542
|
provider: string;
|
|
543
543
|
id: string;
|
|
544
544
|
url: string;
|
|
545
545
|
projectId: string;
|
|
546
546
|
createdAt: Date;
|
|
547
|
+
duration?: number | undefined;
|
|
547
548
|
contentType?: string | undefined;
|
|
548
549
|
size?: number | undefined;
|
|
549
550
|
dimensions?: {
|
|
550
551
|
width: number;
|
|
551
552
|
height: number;
|
|
552
553
|
} | undefined;
|
|
553
|
-
duration?: number | undefined;
|
|
554
554
|
name?: string | undefined;
|
|
555
555
|
sceneId?: string | undefined;
|
|
556
556
|
uploadMetadata?: {
|
|
557
557
|
contentType: string;
|
|
558
558
|
source: "url" | "direct" | "presigned";
|
|
559
559
|
userId: string;
|
|
560
|
+
duration?: number | undefined;
|
|
560
561
|
originalName?: string | undefined;
|
|
561
562
|
size?: number | undefined;
|
|
562
563
|
dimensions?: {
|
|
563
564
|
width: number;
|
|
564
565
|
height: number;
|
|
565
566
|
} | undefined;
|
|
566
|
-
duration?: number | undefined;
|
|
567
567
|
projectId?: string | undefined;
|
|
568
568
|
uploadedAt?: string | undefined;
|
|
569
569
|
originalUrl?: string | undefined;
|
|
@@ -609,6 +609,7 @@ export declare function safeValidateApiAsset(data: unknown): z.SafeParseReturnTy
|
|
|
609
609
|
* Partial validation for updates (all fields optional except ID)
|
|
610
610
|
*/
|
|
611
611
|
export declare const PartialAssetUpdateSchema: z.ZodObject<{
|
|
612
|
+
duration: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
612
613
|
contentType: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
613
614
|
size: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
614
615
|
dimensions: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -621,7 +622,6 @@ export declare const PartialAssetUpdateSchema: z.ZodObject<{
|
|
|
621
622
|
width: number;
|
|
622
623
|
height: number;
|
|
623
624
|
}>>>;
|
|
624
|
-
duration: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
625
625
|
type: z.ZodOptional<z.ZodEnum<["image", "video", "audio", "text", "graphics"]>>;
|
|
626
626
|
provider: z.ZodOptional<z.ZodString>;
|
|
627
627
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -652,13 +652,13 @@ export declare const PartialAssetUpdateSchema: z.ZodObject<{
|
|
|
652
652
|
contentType: string;
|
|
653
653
|
source: "url" | "direct" | "presigned";
|
|
654
654
|
userId: string;
|
|
655
|
+
duration?: number | undefined;
|
|
655
656
|
originalName?: string | undefined;
|
|
656
657
|
size?: number | undefined;
|
|
657
658
|
dimensions?: {
|
|
658
659
|
width: number;
|
|
659
660
|
height: number;
|
|
660
661
|
} | undefined;
|
|
661
|
-
duration?: number | undefined;
|
|
662
662
|
projectId?: string | undefined;
|
|
663
663
|
uploadedAt?: string | undefined;
|
|
664
664
|
originalUrl?: string | undefined;
|
|
@@ -668,13 +668,13 @@ export declare const PartialAssetUpdateSchema: z.ZodObject<{
|
|
|
668
668
|
contentType: string;
|
|
669
669
|
source: "url" | "direct" | "presigned";
|
|
670
670
|
userId: string;
|
|
671
|
+
duration?: number | undefined;
|
|
671
672
|
originalName?: string | undefined;
|
|
672
673
|
size?: number | undefined;
|
|
673
674
|
dimensions?: {
|
|
674
675
|
width: number;
|
|
675
676
|
height: number;
|
|
676
677
|
} | undefined;
|
|
677
|
-
duration?: number | undefined;
|
|
678
678
|
projectId?: string | undefined;
|
|
679
679
|
uploadedAt?: string | undefined;
|
|
680
680
|
originalUrl?: string | undefined;
|
|
@@ -793,14 +793,14 @@ export declare const PartialAssetUpdateSchema: z.ZodObject<{
|
|
|
793
793
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>>>;
|
|
794
794
|
}, "strip", z.ZodTypeAny, {
|
|
795
795
|
id: string;
|
|
796
|
+
duration?: number | undefined;
|
|
796
797
|
contentType?: string | undefined;
|
|
797
798
|
size?: number | undefined;
|
|
798
799
|
dimensions?: {
|
|
799
800
|
width: number;
|
|
800
801
|
height: number;
|
|
801
802
|
} | undefined;
|
|
802
|
-
|
|
803
|
-
type?: "image" | "video" | "audio" | "text" | "graphics" | undefined;
|
|
803
|
+
type?: "text" | "image" | "video" | "audio" | "graphics" | undefined;
|
|
804
804
|
provider?: string | undefined;
|
|
805
805
|
name?: string | undefined;
|
|
806
806
|
sceneId?: string | undefined;
|
|
@@ -808,13 +808,13 @@ export declare const PartialAssetUpdateSchema: z.ZodObject<{
|
|
|
808
808
|
contentType: string;
|
|
809
809
|
source: "url" | "direct" | "presigned";
|
|
810
810
|
userId: string;
|
|
811
|
+
duration?: number | undefined;
|
|
811
812
|
originalName?: string | undefined;
|
|
812
813
|
size?: number | undefined;
|
|
813
814
|
dimensions?: {
|
|
814
815
|
width: number;
|
|
815
816
|
height: number;
|
|
816
817
|
} | undefined;
|
|
817
|
-
duration?: number | undefined;
|
|
818
818
|
projectId?: string | undefined;
|
|
819
819
|
uploadedAt?: string | undefined;
|
|
820
820
|
originalUrl?: string | undefined;
|
|
@@ -860,14 +860,14 @@ export declare const PartialAssetUpdateSchema: z.ZodObject<{
|
|
|
860
860
|
updatedAt?: Date | undefined;
|
|
861
861
|
}, {
|
|
862
862
|
id: string;
|
|
863
|
+
duration?: number | undefined;
|
|
863
864
|
contentType?: string | undefined;
|
|
864
865
|
size?: number | undefined;
|
|
865
866
|
dimensions?: {
|
|
866
867
|
width: number;
|
|
867
868
|
height: number;
|
|
868
869
|
} | undefined;
|
|
869
|
-
|
|
870
|
-
type?: "image" | "video" | "audio" | "text" | "graphics" | undefined;
|
|
870
|
+
type?: "text" | "image" | "video" | "audio" | "graphics" | undefined;
|
|
871
871
|
provider?: string | undefined;
|
|
872
872
|
name?: string | undefined;
|
|
873
873
|
sceneId?: string | undefined;
|
|
@@ -875,13 +875,13 @@ export declare const PartialAssetUpdateSchema: z.ZodObject<{
|
|
|
875
875
|
contentType: string;
|
|
876
876
|
source: "url" | "direct" | "presigned";
|
|
877
877
|
userId: string;
|
|
878
|
+
duration?: number | undefined;
|
|
878
879
|
originalName?: string | undefined;
|
|
879
880
|
size?: number | undefined;
|
|
880
881
|
dimensions?: {
|
|
881
882
|
width: number;
|
|
882
883
|
height: number;
|
|
883
884
|
} | undefined;
|
|
884
|
-
duration?: number | undefined;
|
|
885
885
|
projectId?: string | undefined;
|
|
886
886
|
uploadedAt?: string | undefined;
|
|
887
887
|
originalUrl?: string | undefined;
|
|
@@ -475,6 +475,7 @@ export declare const VideoGenerationRequestSchema: z.ZodObject<z.objectUtil.exte
|
|
|
475
475
|
prompt: string;
|
|
476
476
|
projectId: string;
|
|
477
477
|
assetType: "video";
|
|
478
|
+
fps?: number | undefined;
|
|
478
479
|
provider?: string | undefined;
|
|
479
480
|
userId?: string | undefined;
|
|
480
481
|
style?: string | undefined;
|
|
@@ -487,12 +488,12 @@ export declare const VideoGenerationRequestSchema: z.ZodObject<z.objectUtil.exte
|
|
|
487
488
|
timestamp: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>>;
|
|
488
489
|
source: z.ZodOptional<z.ZodEnum<["web", "mobile", "api", "internal"]>>;
|
|
489
490
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
490
|
-
fps?: number | undefined;
|
|
491
491
|
}, {
|
|
492
492
|
duration: number;
|
|
493
493
|
prompt: string;
|
|
494
494
|
projectId: string;
|
|
495
495
|
assetType: "video";
|
|
496
|
+
fps?: number | undefined;
|
|
496
497
|
provider?: string | undefined;
|
|
497
498
|
userId?: string | undefined;
|
|
498
499
|
style?: string | undefined;
|
|
@@ -505,7 +506,6 @@ export declare const VideoGenerationRequestSchema: z.ZodObject<z.objectUtil.exte
|
|
|
505
506
|
timestamp: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>>;
|
|
506
507
|
source: z.ZodOptional<z.ZodEnum<["web", "mobile", "api", "internal"]>>;
|
|
507
508
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
508
|
-
fps?: number | undefined;
|
|
509
509
|
}>;
|
|
510
510
|
export type ValidatedVideoGenerationRequest = z.infer<typeof VideoGenerationRequestSchema>;
|
|
511
511
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etaio/core-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Core TypeScript type definitions for the Etaio generative AI ecosystem",
|
|
5
5
|
"author": "Etaio",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,8 +31,6 @@
|
|
|
31
31
|
"zod": "^3.22.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@etaio/editor-types": "workspace:*",
|
|
35
|
-
"@etaio/upload": "workspace:*",
|
|
36
34
|
"@etaio/editor-typescript-config": "workspace:*",
|
|
37
35
|
"@types/node": "^20.11.24",
|
|
38
36
|
"typescript": "5.4.5",
|