@types/node-media-server 2.3.6 → 2.3.8

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.
@@ -44,6 +44,9 @@ interface AuthConfig {
44
44
  play?: boolean;
45
45
  publish?: boolean;
46
46
  secret?: string;
47
+ api?: boolean;
48
+ api_user?: string;
49
+ api_pass?: string;
47
50
  }
48
51
 
49
52
  interface TransConfig {
@@ -103,7 +106,14 @@ declare class NodeMediaServer {
103
106
  run(): void;
104
107
  on(eventName: string, listener: (id: string, StreamPath: string, args: object) => void): void;
105
108
  stop(): void;
106
- getSession(id: string): Map<string, unknown>;
109
+ /**
110
+ * Looks up a single session by its id.
111
+ *
112
+ * The returned value is one of the internal session objects (`NodeRtmpSession`,
113
+ * `NodeFlvSession`, `NodeRelaySession`, ...), which this package does not
114
+ * declare, or `undefined` when no session is registered for `id`.
115
+ */
116
+ getSession(id: string): unknown;
107
117
  }
108
118
 
109
119
  export = NodeMediaServer;
@@ -111,7 +121,7 @@ export = NodeMediaServer;
111
121
  ````
112
122
 
113
123
  ### Additional Details
114
- * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
124
+ * Last updated: Wed, 09 Sep 2026 17:32:37 GMT
115
125
  * Dependencies: none
116
126
 
117
127
  # Credits
@@ -34,6 +34,9 @@ interface AuthConfig {
34
34
  play?: boolean;
35
35
  publish?: boolean;
36
36
  secret?: string;
37
+ api?: boolean;
38
+ api_user?: string;
39
+ api_pass?: string;
37
40
  }
38
41
 
39
42
  interface TransConfig {
@@ -93,7 +96,14 @@ declare class NodeMediaServer {
93
96
  run(): void;
94
97
  on(eventName: string, listener: (id: string, StreamPath: string, args: object) => void): void;
95
98
  stop(): void;
96
- getSession(id: string): Map<string, unknown>;
99
+ /**
100
+ * Looks up a single session by its id.
101
+ *
102
+ * The returned value is one of the internal session objects (`NodeRtmpSession`,
103
+ * `NodeFlvSession`, `NodeRelaySession`, ...), which this package does not
104
+ * declare, or `undefined` when no session is registered for `id`.
105
+ */
106
+ getSession(id: string): unknown;
97
107
  }
98
108
 
99
109
  export = NodeMediaServer;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node-media-server",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "description": "TypeScript definitions for node-media-server",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-media-server",
6
6
  "license": "MIT",
@@ -25,6 +25,7 @@
25
25
  },
26
26
  "scripts": {},
27
27
  "dependencies": {},
28
- "typesPublisherContentHash": "3e1e8c908ddc9620cc0b173afa2e791b52f2b78fd644a754457cf527c280a392",
29
- "typeScriptVersion": "4.5"
28
+ "peerDependencies": {},
29
+ "typesPublisherContentHash": "f572e5170fb5124bd76eb80dce864e9c63b43142fbc66e25839c7b629d5f9b2c",
30
+ "typeScriptVersion": "5.6"
30
31
  }