@saebyn/glowing-telegram-types 0.5.0 → 0.7.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 +43 -24
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.5.0",
4
+ "version": "0.7.0",
5
5
  "main": "src/types.ts",
6
6
  "files": [
7
7
  "src/types.ts"
package/src/types.ts CHANGED
@@ -187,7 +187,7 @@ export interface Track {
187
187
  start: string;
188
188
  }
189
189
 
190
- export type UploadStatus = "FAILED" | "SUCCESS" | "THROTTLED";
190
+ export type UploadStatus = "FAILED" | "SUCCESS" | "THROTTLED" | "ready_to_upload" | "not_ready_to_upload";
191
191
 
192
192
  export interface IDOnly {
193
193
  id: string;
@@ -202,29 +202,31 @@ export interface RenderRequest {
202
202
  }
203
203
 
204
204
  export interface Series {
205
- category?: number;
206
- created_at: string;
207
- description?: string;
208
- end_date?: string;
209
- end_time?: string;
210
- id: string;
211
- is_active?: boolean;
212
- max_episode_order_index?: number;
213
- notify_subscribers?: boolean;
214
- playlist_id?: string;
215
- prep_notes?: string;
216
- recurrence?: Recurrence;
217
- skips?: Skip[];
218
- start_date?: string;
219
- start_time?: string;
220
- stream_count?: number;
221
- stream_title_template?: string;
222
- tags?: string[];
223
- thumbnail_url?: string;
224
- timezone?: string;
225
- title: string;
226
- twitch_category?: TwitchCategory;
227
- updated_at?: string;
205
+ category?: number;
206
+ created_at: string;
207
+ description?: string;
208
+ end_date?: string;
209
+ end_time?: string;
210
+ episode_description_template?: string;
211
+ episode_title_template?: string;
212
+ id: string;
213
+ is_active?: boolean;
214
+ max_episode_order_index?: number;
215
+ notify_subscribers?: boolean;
216
+ playlist_id?: string;
217
+ prep_notes?: string;
218
+ recurrence?: Recurrence;
219
+ skips?: Skip[];
220
+ start_date?: string;
221
+ start_time?: string;
222
+ stream_count?: number;
223
+ stream_title_template?: string;
224
+ tags?: string[];
225
+ thumbnail_url?: string;
226
+ timezone?: string;
227
+ title: string;
228
+ twitch_category?: TwitchCategory;
229
+ updated_at?: string;
228
230
  }
229
231
 
230
232
  export interface Recurrence {
@@ -275,6 +277,23 @@ export interface StreamIngestionRequest {
275
277
  streamId: string;
276
278
  }
277
279
 
280
+ /**
281
+ * A task represents a unit of work in the system, with a unique identifier, status,
282
+ * timestamps for creation and updates, type of task, and an associated record ID.
283
+ */
284
+ export interface Task {
285
+ created_at: string;
286
+ id: string;
287
+ record_id?: string;
288
+ status: Status;
289
+ task_type: TaskType;
290
+ updated_at?: string;
291
+ }
292
+
293
+ export type Status = "PENDING" | "RUNNING" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "ABORTED" | "PENDING_REDRIVE";
294
+
295
+ export type TaskType = "ingestion" | "upload" | "rendering";
296
+
278
297
  export interface TwitchAuthRequest {
279
298
  redirect_uri: string;
280
299
  scopes: string[];