@saebyn/glowing-telegram-types 0.1.0 → 0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.ts +36 -2
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.2.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
  */
@@ -129,13 +129,34 @@ export interface OverlayTrack {
129
129
  }
130
130
 
131
131
  export interface Episode {
132
+ cut_list?: CutListClass;
132
133
  description?: string;
133
134
  id: string;
135
+ order_index?: number;
134
136
  stream_id?: string;
135
137
  title?: string;
136
138
  tracks?: Track[];
137
139
  }
138
140
 
141
+ export interface CutListClass {
142
+ /**
143
+ * List of input media sources
144
+ */
145
+ inputMedia: InputMedia[];
146
+ /**
147
+ * Ordered media sections to form the output timeline sequence
148
+ */
149
+ outputTrack: OutputTrack[];
150
+ /**
151
+ * One or more overlay tracks
152
+ */
153
+ overlayTracks?: OverlayTrack[];
154
+ /**
155
+ * Schema version
156
+ */
157
+ version: "1.0.0";
158
+ }
159
+
139
160
  export interface Track {
140
161
  end: string;
141
162
  start: string;
@@ -149,6 +170,10 @@ export interface Profile {
149
170
  id: string;
150
171
  }
151
172
 
173
+ export interface RenderRequest {
174
+ episodeIds: string[];
175
+ }
176
+
152
177
  export interface Series {
153
178
  category?: number;
154
179
  created_at: string;
@@ -241,6 +266,15 @@ export interface TwitchCallbackResponse {
241
266
  url: string;
242
267
  }
243
268
 
269
+ export interface TwitchSessionSecret {
270
+ access_token?: string;
271
+ csrf_token: string;
272
+ redirect_url: string;
273
+ refresh_token?: string;
274
+ scopes: string[];
275
+ valid_until?: number;
276
+ }
277
+
244
278
  export interface VideoClip {
245
279
  /**
246
280
  * The path to the audio file extracted from the video clip.