@saebyn/glowing-telegram-types 0.10.3 → 0.10.20

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 +14 -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.10.3",
4
+ "version": "0.10.20",
5
5
  "main": "src/types.ts",
6
6
  "files": [
7
7
  "src/types.ts"
package/src/types.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export interface AccessTokenResponse {
2
2
  access_token: string;
3
3
  broadcaster_id: string;
4
+ login: string;
4
5
  }
5
6
 
6
7
  export interface AuthorizationURLResponse {
@@ -467,6 +468,10 @@ export interface StreamWidget {
467
468
  * Authentication token for WebSocket access to this widget
468
469
  */
469
470
  access_token?: string;
471
+ /**
472
+ * Whether widget is currently active and should receive scheduled updates
473
+ */
474
+ active?: boolean;
470
475
  /**
471
476
  * Widget configuration settings
472
477
  */
@@ -487,6 +492,10 @@ export interface StreamWidget {
487
492
  * Display title for the widget
488
493
  */
489
494
  title: string;
495
+ /**
496
+ * Widget type determines update behavior and available actions
497
+ */
498
+ type: StreamWidgetType;
490
499
  /**
491
500
  * ISO 8601 timestamp when the widget was last updated
492
501
  */
@@ -497,6 +506,11 @@ export interface StreamWidget {
497
506
  user_id: string;
498
507
  }
499
508
 
509
+ /**
510
+ * Widget type determines update behavior and available actions
511
+ */
512
+ export type StreamWidgetType = "countdown" | "text_overlay" | "poll" | "name_queue" | "bot_integration";
513
+
500
514
  export interface SubscribeChatRequest {
501
515
  }
502
516