@saebyn/glowing-telegram-types 0.3.0 → 0.5.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 +53 -9
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.3.0",
4
+ "version": "0.5.0",
5
5
  "main": "src/types.ts",
6
6
  "files": [
7
7
  "src/types.ts"
package/src/types.ts CHANGED
@@ -138,14 +138,29 @@ export interface OverlayTrack {
138
138
  export type OverlayTrackType = "alpha" | "colorkey";
139
139
 
140
140
  export interface Episode {
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[];
141
+ category?: number;
142
+ created_at?: string;
143
+ cut_list?: CutListClass;
144
+ description?: string;
145
+ error_message?: string;
146
+ id?: string;
147
+ is_published?: boolean;
148
+ notify_subscribers?: boolean;
149
+ order_index?: number;
150
+ render_uri?: string;
151
+ retry_after_seconds?: number;
152
+ series_id?: string;
153
+ stream_id?: string;
154
+ tags?: string[];
155
+ title?: string;
156
+ tracks?: Track[];
157
+ updated_at?: string;
158
+ upload_attempts?: number;
159
+ upload_resume_at_byte?: number;
160
+ upload_status?: UploadStatus;
161
+ user_id?: string;
162
+ youtube_upload_url?: string;
163
+ youtube_video_id?: string;
149
164
  }
150
165
 
151
166
  export interface CutListClass {
@@ -172,6 +187,8 @@ export interface Track {
172
187
  start: string;
173
188
  }
174
189
 
190
+ export type UploadStatus = "FAILED" | "SUCCESS" | "THROTTLED";
191
+
175
192
  export interface IDOnly {
176
193
  id: string;
177
194
  }
@@ -290,7 +307,7 @@ export interface VideoClip {
290
307
  * The path to the audio file extracted from the video clip.
291
308
  */
292
309
  audio?: string;
293
- id: string;
310
+ id?: string;
294
311
  /**
295
312
  * The S3 key of the video clip.
296
313
  */
@@ -382,3 +399,30 @@ export interface TranscriptSegment {
382
399
  text: string;
383
400
  tokens: number[];
384
401
  }
402
+
403
+ export interface YouTubeAuthRequest {
404
+ redirect_uri: string;
405
+ scopes: string[];
406
+ }
407
+
408
+ export interface YouTubeCallbackRequest {
409
+ code: string;
410
+ scope: string[];
411
+ state: string;
412
+ }
413
+
414
+ export interface YouTubeCallbackResponse {
415
+ /**
416
+ * The URL to redirect the client to after the authorization flow is complete.
417
+ */
418
+ url: string;
419
+ }
420
+
421
+ export interface YouTubeSessionSecret {
422
+ access_token?: string;
423
+ csrf_token: string;
424
+ redirect_url: string;
425
+ refresh_token?: string;
426
+ scopes: string[];
427
+ valid_until?: number;
428
+ }