googlevideo 2.0.0 → 3.0.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 (59) hide show
  1. package/LICENSE +9 -9
  2. package/README.md +79 -66
  3. package/dist/protos/generated/misc/common.d.ts +0 -15
  4. package/dist/protos/generated/misc/common.js +1 -134
  5. package/dist/protos/generated/video_streaming/buffered_range.d.ts +0 -15
  6. package/dist/protos/generated/video_streaming/buffered_range.js +1 -147
  7. package/dist/protos/generated/video_streaming/client_abr_state.d.ts +16 -38
  8. package/dist/protos/generated/video_streaming/client_abr_state.js +95 -319
  9. package/dist/protos/generated/video_streaming/crypto_params.d.ts +0 -17
  10. package/dist/protos/generated/video_streaming/crypto_params.js +1 -79
  11. package/dist/protos/generated/video_streaming/encrypted_player_request.d.ts +2 -19
  12. package/dist/protos/generated/video_streaming/encrypted_player_request.js +9 -106
  13. package/dist/protos/generated/video_streaming/format_initialization_metadata.d.ts +0 -15
  14. package/dist/protos/generated/video_streaming/format_initialization_metadata.js +1 -75
  15. package/dist/protos/generated/video_streaming/live_metadata.d.ts +17 -0
  16. package/dist/protos/generated/video_streaming/live_metadata.js +122 -0
  17. package/dist/protos/generated/video_streaming/media_capabilities.d.ts +0 -15
  18. package/dist/protos/generated/video_streaming/media_capabilities.js +1 -122
  19. package/dist/protos/generated/video_streaming/media_header.d.ts +0 -17
  20. package/dist/protos/generated/video_streaming/media_header.js +1 -128
  21. package/dist/protos/generated/video_streaming/next_request_policy.d.ts +0 -15
  22. package/dist/protos/generated/video_streaming/next_request_policy.js +1 -50
  23. package/dist/protos/generated/video_streaming/onesie_header.d.ts +0 -15
  24. package/dist/protos/generated/video_streaming/onesie_header.js +1 -123
  25. package/dist/protos/generated/video_streaming/onesie_header_type.d.ts +0 -2
  26. package/dist/protos/generated/video_streaming/onesie_header_type.js +1 -146
  27. package/dist/protos/generated/video_streaming/onesie_player_request.d.ts +1 -17
  28. package/dist/protos/generated/video_streaming/onesie_player_request.js +5 -50
  29. package/dist/protos/generated/video_streaming/onesie_player_response.d.ts +18 -16
  30. package/dist/protos/generated/video_streaming/onesie_player_response.js +19 -54
  31. package/dist/protos/generated/video_streaming/onesie_request.d.ts +2 -15
  32. package/dist/protos/generated/video_streaming/onesie_request.js +11 -84
  33. package/dist/protos/generated/video_streaming/playback_cookie.d.ts +0 -15
  34. package/dist/protos/generated/video_streaming/playback_cookie.js +1 -43
  35. package/dist/protos/generated/video_streaming/playback_start_policy.d.ts +0 -15
  36. package/dist/protos/generated/video_streaming/playback_start_policy.js +1 -66
  37. package/dist/protos/generated/video_streaming/proxy_status.d.ts +0 -2
  38. package/dist/protos/generated/video_streaming/proxy_status.js +1 -66
  39. package/dist/protos/generated/video_streaming/request_cancellation_policy.d.ts +0 -15
  40. package/dist/protos/generated/video_streaming/request_cancellation_policy.js +1 -66
  41. package/dist/protos/generated/video_streaming/sabr_error.d.ts +0 -15
  42. package/dist/protos/generated/video_streaming/sabr_error.js +1 -29
  43. package/dist/protos/generated/video_streaming/sabr_redirect.d.ts +0 -15
  44. package/dist/protos/generated/video_streaming/sabr_redirect.js +1 -22
  45. package/dist/protos/generated/video_streaming/stream_protection_status.d.ts +0 -15
  46. package/dist/protos/generated/video_streaming/stream_protection_status.js +1 -29
  47. package/dist/protos/generated/video_streaming/streamer_context.d.ts +0 -17
  48. package/dist/protos/generated/video_streaming/streamer_context.js +1 -351
  49. package/dist/protos/generated/video_streaming/time_range.d.ts +0 -15
  50. package/dist/protos/generated/video_streaming/time_range.js +1 -34
  51. package/dist/protos/generated/video_streaming/video_playback_abr_request.d.ts +1 -15
  52. package/dist/protos/generated/video_streaming/video_playback_abr_request.js +19 -257
  53. package/dist/src/core/ServerAbrStream.d.ts +1 -0
  54. package/dist/src/core/ServerAbrStream.js +34 -47
  55. package/dist/src/core/UMP.d.ts +25 -1
  56. package/dist/src/core/UMP.js +35 -19
  57. package/dist/src/utils/Protos.d.ts +3 -2
  58. package/dist/src/utils/Protos.js +3 -2
  59. package/package.json +59 -60
package/package.json CHANGED
@@ -1,61 +1,60 @@
1
- {
2
- "name": "googlevideo",
3
- "version": "2.0.0",
4
- "description": "A set of utilities for working with Google Video APIs.",
5
- "main": "dist/index.js",
6
- "type": "module",
7
- "types": "./dist/src/index.d.ts",
8
- "module": "./dist/src/index.js",
9
- "scripts": {
10
- "watch": "npx tsc --watch",
11
- "lint": "npx eslint ./src/**/*.ts",
12
- "lint:fix": "npx eslint --fix ./src/**/*.ts",
13
- "clean": "npx rimraf ./dist ./protos/generated",
14
- "build": "npm run clean && npm run lint && npm run build:proto && npm run build:esm",
15
- "build:esm": "npx tsc",
16
- "build:proto": "node ./dev-scripts/generate-proto.mjs",
17
- "prepare": "npm run build"
18
- },
19
- "author": "LuanRT <luan.lrt4@gmail.com> (https://github.com/LuanRT)",
20
- "funding": [
21
- "https://github.com/sponsors/LuanRT"
22
- ],
23
- "keywords": [
24
- "UMP",
25
- "SABR",
26
- "Google",
27
- "YouTube"
28
- ],
29
- "license": "MIT",
30
- "exports": {
31
- ".": {
32
- "node": {
33
- "import": "./dist/src/index.js"
34
- },
35
- "types": "./dist/src/index.d.ts",
36
- "default": "./dist/src/index.js"
37
- }
38
- },
39
- "devDependencies": {
40
- "@eslint/js": "^9.9.0",
41
- "@stylistic/eslint-plugin": "^2.6.4",
42
- "@types/eslint__js": "^8.42.3",
43
- "esbuild": "^0.24.0",
44
- "eslint": "^9.9.0",
45
- "globals": "^15.9.0",
46
- "ts-proto": "^2.2.0",
47
- "typescript": "^5.5.4",
48
- "typescript-eslint": "^8.2.0"
49
- },
50
- "dependencies": {
51
- "@bufbuild/protobuf": "^2.0.0"
52
- },
53
- "bugs": {
54
- "url": "https://github.com/LuanRT/GoogleVideo/issues"
55
- },
56
- "homepage": "https://github.com/LuanRT/GoogleVideo#readme",
57
- "repository": {
58
- "type": "git",
59
- "url": "git+https://github.com/LuanRT/GoogleVideo.git"
60
- }
1
+ {
2
+ "name": "googlevideo",
3
+ "version": "3.0.0",
4
+ "description": "A set of utilities for working with Google Video APIs.",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "types": "./dist/src/index.d.ts",
8
+ "module": "./dist/src/index.js",
9
+ "scripts": {
10
+ "watch": "npx tsc --watch",
11
+ "lint": "npx eslint ./src/**/*.ts",
12
+ "lint:fix": "npx eslint --fix ./src/**/*.ts",
13
+ "clean": "npx rimraf ./dist ./protos/generated",
14
+ "build": "npm run clean && npm run lint && npm run build:proto && npm run build:esm",
15
+ "build:esm": "npx tsc",
16
+ "build:proto": "node ./dev-scripts/generate-proto.mjs",
17
+ "prepare": "npm run build"
18
+ },
19
+ "author": "LuanRT <luan.lrt4@gmail.com> (https://github.com/LuanRT)",
20
+ "funding": [
21
+ "https://github.com/sponsors/LuanRT"
22
+ ],
23
+ "keywords": [
24
+ "UMP",
25
+ "SABR",
26
+ "Google",
27
+ "YouTube"
28
+ ],
29
+ "license": "MIT",
30
+ "exports": {
31
+ ".": {
32
+ "node": {
33
+ "import": "./dist/src/index.js"
34
+ },
35
+ "types": "./dist/src/index.d.ts",
36
+ "default": "./dist/src/index.js"
37
+ }
38
+ },
39
+ "devDependencies": {
40
+ "@eslint/js": "^9.9.0",
41
+ "@stylistic/eslint-plugin": "^2.6.4",
42
+ "@types/eslint__js": "^8.42.3",
43
+ "eslint": "^9.9.0",
44
+ "globals": "^15.9.0",
45
+ "ts-proto": "^2.2.0",
46
+ "typescript": "^5.5.4",
47
+ "typescript-eslint": "^8.2.0"
48
+ },
49
+ "dependencies": {
50
+ "@bufbuild/protobuf": "^2.0.0"
51
+ },
52
+ "bugs": {
53
+ "url": "https://github.com/LuanRT/GoogleVideo/issues"
54
+ },
55
+ "homepage": "https://github.com/LuanRT/GoogleVideo#readme",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/LuanRT/GoogleVideo.git"
59
+ }
61
60
  }