@saebyn/glowing-telegram-types 0.6.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 +17 -0
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.6.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
@@ -277,6 +277,23 @@ export interface StreamIngestionRequest {
277
277
  streamId: string;
278
278
  }
279
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
+
280
297
  export interface TwitchAuthRequest {
281
298
  redirect_uri: string;
282
299
  scopes: string[];