@saebyn/glowing-telegram-types 0.1.0 → 0.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.ts +51 -7
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.1.0",
4
+ "version": "0.3.0",
5
5
  "main": "src/types.ts",
6
6
  "files": [
7
7
  "src/types.ts"
package/src/types.ts CHANGED
@@ -34,10 +34,10 @@ export interface InputMedia {
34
34
  /**
35
35
  * Start/end frames to select
36
36
  */
37
- sections: Section[];
37
+ sections: MediaSection[];
38
38
  }
39
39
 
40
- export interface Section {
40
+ export interface MediaSection {
41
41
  /**
42
42
  * End frame is exclusive
43
43
  */
@@ -118,6 +118,10 @@ export interface OverlayTrack {
118
118
  * Start frame on the overlay track
119
119
  */
120
120
  startFrame: number;
121
+ /**
122
+ * Overlay type
123
+ */
124
+ type: OverlayTrackType;
121
125
  /**
122
126
  * X position of the overlay
123
127
  */
@@ -128,12 +132,39 @@ export interface OverlayTrack {
128
132
  y?: number;
129
133
  }
130
134
 
135
+ /**
136
+ * Overlay type
137
+ */
138
+ export type OverlayTrackType = "alpha" | "colorkey";
139
+
131
140
  export interface Episode {
132
- description?: string;
133
- id: string;
134
- stream_id?: string;
135
- title?: string;
136
- tracks?: Track[];
141
+ cut_list?: CutListClass;
142
+ description?: string;
143
+ id: string;
144
+ is_published?: boolean;
145
+ order_index?: number;
146
+ stream_id?: string;
147
+ title?: string;
148
+ tracks?: Track[];
149
+ }
150
+
151
+ export interface CutListClass {
152
+ /**
153
+ * List of input media sources
154
+ */
155
+ inputMedia: InputMedia[];
156
+ /**
157
+ * Ordered media sections to form the output timeline sequence
158
+ */
159
+ outputTrack: OutputTrack[];
160
+ /**
161
+ * One or more overlay tracks
162
+ */
163
+ overlayTracks?: OverlayTrack[];
164
+ /**
165
+ * Schema version
166
+ */
167
+ version: "1.0.0";
137
168
  }
138
169
 
139
170
  export interface Track {
@@ -149,6 +180,10 @@ export interface Profile {
149
180
  id: string;
150
181
  }
151
182
 
183
+ export interface RenderRequest {
184
+ episodeIds: string[];
185
+ }
186
+
152
187
  export interface Series {
153
188
  category?: number;
154
189
  created_at: string;
@@ -241,6 +276,15 @@ export interface TwitchCallbackResponse {
241
276
  url: string;
242
277
  }
243
278
 
279
+ export interface TwitchSessionSecret {
280
+ access_token?: string;
281
+ csrf_token: string;
282
+ redirect_url: string;
283
+ refresh_token?: string;
284
+ scopes: string[];
285
+ valid_until?: number;
286
+ }
287
+
244
288
  export interface VideoClip {
245
289
  /**
246
290
  * The path to the audio file extracted from the video clip.