@saebyn/glowing-telegram-types 0.11.1 → 0.14.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/package.json +2 -2
- package/src/types.ts +23 -18
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saebyn/glowing-telegram-types",
|
|
3
3
|
"license": "AGPL-3.0-only",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.0",
|
|
5
5
|
"main": "src/types.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"src/types.ts"
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
"directory": "types"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"quicktype": "
|
|
15
|
+
"quicktype": "26"
|
|
16
16
|
}
|
|
17
17
|
}
|
package/src/types.ts
CHANGED
|
@@ -119,7 +119,7 @@ export interface CutList {
|
|
|
119
119
|
/**
|
|
120
120
|
* Ordered media sections to form the output timeline sequence
|
|
121
121
|
*/
|
|
122
|
-
outputTrack: OutputTrack[];
|
|
122
|
+
outputTrack: [OutputTrack, ...OutputTrack[]];
|
|
123
123
|
/**
|
|
124
124
|
* One or more overlay tracks
|
|
125
125
|
*/
|
|
@@ -313,7 +313,7 @@ export interface CutListClass {
|
|
|
313
313
|
/**
|
|
314
314
|
* Ordered media sections to form the output timeline sequence
|
|
315
315
|
*/
|
|
316
|
-
outputTrack: OutputTrack[];
|
|
316
|
+
outputTrack: [OutputTrack, ...OutputTrack[]];
|
|
317
317
|
/**
|
|
318
318
|
* One or more overlay tracks
|
|
319
319
|
*/
|
|
@@ -339,12 +339,15 @@ export interface Profile {
|
|
|
339
339
|
id: string;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
+
/**
|
|
343
|
+
* Represents a project that combines cuts from multiple streams for episode creation
|
|
344
|
+
*/
|
|
342
345
|
export interface Project {
|
|
343
346
|
created_at?: string;
|
|
344
347
|
/**
|
|
345
348
|
* List of cuts included in the project, with timing and source information
|
|
346
349
|
*/
|
|
347
|
-
cuts?:
|
|
350
|
+
cuts?: CutElement[];
|
|
348
351
|
/**
|
|
349
352
|
* Optional reference to the episode this project is linked to
|
|
350
353
|
*/
|
|
@@ -357,21 +360,20 @@ export interface Project {
|
|
|
357
360
|
title?: string;
|
|
358
361
|
updated_at?: string;
|
|
359
362
|
user_id?: string;
|
|
360
|
-
/**
|
|
361
|
-
* Array of video clip IDs that are part of this project
|
|
362
|
-
*/
|
|
363
|
-
video_clip_ids?: string[];
|
|
364
363
|
}
|
|
365
364
|
|
|
366
|
-
|
|
365
|
+
/**
|
|
366
|
+
* A clip representing a cut from a source stream, with start and end
|
|
367
|
+
*/
|
|
368
|
+
export interface CutElement {
|
|
367
369
|
/**
|
|
368
370
|
* End time of the cut in seconds (relative to the start of the stream)
|
|
369
371
|
*/
|
|
370
|
-
|
|
372
|
+
end_time: number;
|
|
371
373
|
/**
|
|
372
374
|
* Start time of the cut in seconds (relative to the start of the stream)
|
|
373
375
|
*/
|
|
374
|
-
|
|
376
|
+
start_time: number;
|
|
375
377
|
/**
|
|
376
378
|
* ID of the source stream for this cut
|
|
377
379
|
*/
|
|
@@ -457,15 +459,18 @@ export interface Stream {
|
|
|
457
459
|
video_clip_count?: number;
|
|
458
460
|
}
|
|
459
461
|
|
|
462
|
+
/**
|
|
463
|
+
* A clip representing a cut from a source stream, with start and end
|
|
464
|
+
*/
|
|
460
465
|
export interface StreamClip {
|
|
461
466
|
/**
|
|
462
467
|
* End time of the cut in seconds (relative to the start of the stream)
|
|
463
468
|
*/
|
|
464
|
-
|
|
469
|
+
end_time: number;
|
|
465
470
|
/**
|
|
466
471
|
* Start time of the cut in seconds (relative to the start of the stream)
|
|
467
472
|
*/
|
|
468
|
-
|
|
473
|
+
start_time: number;
|
|
469
474
|
/**
|
|
470
475
|
* ID of the source stream for this cut
|
|
471
476
|
*/
|
|
@@ -495,7 +500,7 @@ export interface StreamWidget {
|
|
|
495
500
|
/**
|
|
496
501
|
* Widget configuration settings
|
|
497
502
|
*/
|
|
498
|
-
config?: { [key: string]:
|
|
503
|
+
config?: { [key: string]: unknown };
|
|
499
504
|
/**
|
|
500
505
|
* ISO 8601 timestamp when the widget was created
|
|
501
506
|
*/
|
|
@@ -507,7 +512,7 @@ export interface StreamWidget {
|
|
|
507
512
|
/**
|
|
508
513
|
* Current widget state data
|
|
509
514
|
*/
|
|
510
|
-
state?: { [key: string]:
|
|
515
|
+
state?: { [key: string]: unknown };
|
|
511
516
|
/**
|
|
512
517
|
* Display title for the widget
|
|
513
518
|
*/
|
|
@@ -692,11 +697,11 @@ export interface WebSocketMessage {
|
|
|
692
697
|
type: WebSocketMessageType;
|
|
693
698
|
widgetId?: string;
|
|
694
699
|
action?: string;
|
|
695
|
-
payload?: { [key: string]:
|
|
696
|
-
config?: { [key: string]:
|
|
697
|
-
state?: { [key: string]:
|
|
700
|
+
payload?: { [key: string]: unknown };
|
|
701
|
+
config?: { [key: string]: unknown };
|
|
702
|
+
state?: { [key: string]: unknown };
|
|
698
703
|
error?: string;
|
|
699
|
-
result?: { [key: string]:
|
|
704
|
+
result?: { [key: string]: unknown };
|
|
700
705
|
success?: boolean;
|
|
701
706
|
task?: Task;
|
|
702
707
|
[property: string]: unknown;
|