@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.
- package/package.json +1 -1
- package/src/types.ts +43 -24
package/package.json
CHANGED
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?:
|
|
206
|
-
created_at:
|
|
207
|
-
description?:
|
|
208
|
-
end_date?:
|
|
209
|
-
end_time?:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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[];
|