@saebyn/glowing-telegram-types 0.3.0 → 0.4.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 +27 -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.3.0",
4
+ "version": "0.4.0",
5
5
  "main": "src/types.ts",
6
6
  "files": [
7
7
  "src/types.ts"
package/src/types.ts CHANGED
@@ -382,3 +382,30 @@ export interface TranscriptSegment {
382
382
  text: string;
383
383
  tokens: number[];
384
384
  }
385
+
386
+ export interface YouTubeAuthRequest {
387
+ redirect_uri: string;
388
+ scopes: string[];
389
+ }
390
+
391
+ export interface YouTubeCallbackRequest {
392
+ code: string;
393
+ scope: string[];
394
+ state: string;
395
+ }
396
+
397
+ export interface YouTubeCallbackResponse {
398
+ /**
399
+ * The URL to redirect the client to after the authorization flow is complete.
400
+ */
401
+ url: string;
402
+ }
403
+
404
+ export interface YouTubeSessionSecret {
405
+ access_token?: string;
406
+ csrf_token: string;
407
+ redirect_url: string;
408
+ refresh_token?: string;
409
+ scopes: string[];
410
+ valid_until?: number;
411
+ }