@camera.ui/browser 0.0.88 → 0.0.89
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/dist/bundle.js +1 -1
- package/dist/types/server/src/api/database/index.d.ts +1 -2
- package/dist/types/server/src/api/database/types.d.ts +7 -2
- package/dist/types/server/src/api/go2rtc/api/streams.d.ts +2 -1
- package/dist/types/server/src/api/go2rtc/types.d.ts +44 -0
- package/dist/types/server/src/api/schemas/cameras.schema.d.ts +102 -102
- package/dist/types/server/src/api/schemas/config.schema.d.ts +24 -96
- package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +81 -81
- package/dist/types/server/src/api/schemas/users.schema.d.ts +158 -158
- package/dist/types/server/src/api/services/cameras.service.d.ts +1 -5
- package/dist/types/server/src/api/types/index.d.ts +5 -0
- package/dist/types/server/src/camera/iou.d.ts +2 -0
- package/dist/types/server/src/camera/streaming/peer-connection.d.ts +4 -2
- package/dist/types/server/src/camera/streaming/webrtc-connection.d.ts +2 -0
- package/dist/types/server/src/camera/streaming/werift-session.d.ts +1 -1
- package/dist/types/server/src/camera/types.d.ts +2 -1
- package/dist/types/server/src/plugins/worker.d.ts +1 -0
- package/dist/types/server/src/polyglot/node/plugins/cameraStorage.d.ts +3 -3
- package/dist/types/server/src/polyglot/node/plugins/configService.d.ts +1 -1
- package/dist/types/server/src/polyglot/node/plugins/pluginApi.d.ts +3 -2
- package/dist/types/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +4 -4
- package/dist/types/server/src/polyglot/node/plugins/storageController.d.ts +3 -1
- package/dist/types/server/src/services/config/index.d.ts +6 -3
- package/dist/types/server/src/services/config/types.d.ts +8 -8
- package/dist/types/server/src/types.d.ts +3 -0
- package/package.json +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { FastifyInstance } from 'fastify';
|
|
2
2
|
import type { Database as DB, RootDatabase as RootDB } from 'lmdb';
|
|
3
|
-
import type { Plugin } from '../../plugins/plugin.js';
|
|
4
3
|
import type { DBAuth, DBCamera, DBPlugin, DBSettings, DBSystem, DBUser } from './types.js';
|
|
5
4
|
export declare class Database {
|
|
6
5
|
static readonly VERSION = "1.0.0";
|
|
@@ -24,12 +23,12 @@ export declare class Database {
|
|
|
24
23
|
private app;
|
|
25
24
|
private configService;
|
|
26
25
|
private logger;
|
|
26
|
+
private authDbPath;
|
|
27
27
|
constructor(app: FastifyInstance);
|
|
28
28
|
initialize(): Promise<void>;
|
|
29
29
|
close(): Promise<void>;
|
|
30
30
|
getRootAdminId(): Promise<string | null>;
|
|
31
31
|
updateCameras(): Promise<void>;
|
|
32
|
-
createPluginDatabase(plugin: Plugin): Promise<void>;
|
|
33
32
|
private ensureDatabases;
|
|
34
33
|
private ensureAdmin;
|
|
35
34
|
private initializeRootAdmin;
|
|
@@ -187,9 +187,14 @@ export interface Go2RtcEndpoint {
|
|
|
187
187
|
readonly mjpeg: string;
|
|
188
188
|
readonly mjpegHtml: string;
|
|
189
189
|
}
|
|
190
|
+
export interface Go2RtcSource {
|
|
191
|
+
name: string;
|
|
192
|
+
src: string;
|
|
193
|
+
ws: string;
|
|
194
|
+
}
|
|
190
195
|
export interface Go2RtcFFMPEGSource {
|
|
191
|
-
readonly aac:
|
|
192
|
-
readonly opus:
|
|
196
|
+
readonly aac: Go2RtcSource;
|
|
197
|
+
readonly opus: Go2RtcSource;
|
|
193
198
|
}
|
|
194
199
|
export interface Go2RtcWSSource {
|
|
195
200
|
readonly webrtc: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RequestQueue } from '../queue.js';
|
|
2
|
-
import type { CreateStreamData, SourceData, UpdateStreamData } from '../types.js';
|
|
2
|
+
import type { CreateStreamData, Go2RTCProbe, SourceData, UpdateStreamData } from '../types.js';
|
|
3
3
|
export declare class StreamsApi {
|
|
4
4
|
private requestQueue;
|
|
5
5
|
constructor(requestQueue: RequestQueue);
|
|
@@ -7,4 +7,5 @@ export declare class StreamsApi {
|
|
|
7
7
|
deleteStream(data: SourceData): Promise<void>;
|
|
8
8
|
getStreamInfo(data: SourceData): Promise<any>;
|
|
9
9
|
updateStreamSource(data: UpdateStreamData): Promise<void>;
|
|
10
|
+
probeStreamSource(data: SourceData): Promise<Go2RTCProbe>;
|
|
10
11
|
}
|
|
@@ -62,3 +62,47 @@ export interface IntercomData {
|
|
|
62
62
|
name: string;
|
|
63
63
|
dst: string;
|
|
64
64
|
}
|
|
65
|
+
export interface Go2RTCCodec {
|
|
66
|
+
codec_name: string;
|
|
67
|
+
codec_type: string;
|
|
68
|
+
sample_rate?: number;
|
|
69
|
+
level?: number;
|
|
70
|
+
profile?: string;
|
|
71
|
+
channels?: number;
|
|
72
|
+
}
|
|
73
|
+
export interface Go2RTCReceiver {
|
|
74
|
+
id: string;
|
|
75
|
+
codec: Go2RTCCodec;
|
|
76
|
+
childs: number[];
|
|
77
|
+
}
|
|
78
|
+
export interface Go2RTCSender {
|
|
79
|
+
id: string;
|
|
80
|
+
codec: Go2RTCCodec;
|
|
81
|
+
parent: number;
|
|
82
|
+
}
|
|
83
|
+
export interface Go2RTCProducer {
|
|
84
|
+
id: string;
|
|
85
|
+
format_name: string;
|
|
86
|
+
protocol: string;
|
|
87
|
+
remote_addr: string;
|
|
88
|
+
url?: string;
|
|
89
|
+
sdp?: string;
|
|
90
|
+
user_agent?: string;
|
|
91
|
+
medias: string[];
|
|
92
|
+
receivers?: Go2RTCReceiver[];
|
|
93
|
+
senders?: Go2RTCSender[];
|
|
94
|
+
}
|
|
95
|
+
export interface Go2RTCConsumer {
|
|
96
|
+
id: string;
|
|
97
|
+
format_name: string;
|
|
98
|
+
protocol: string;
|
|
99
|
+
remote_addr: string;
|
|
100
|
+
user_agent: string;
|
|
101
|
+
medias: string[];
|
|
102
|
+
receivers?: Go2RTCReceiver[];
|
|
103
|
+
senders?: Go2RTCSender[];
|
|
104
|
+
}
|
|
105
|
+
export interface Go2RTCProbe {
|
|
106
|
+
producers: Go2RTCProducer[];
|
|
107
|
+
consumers: Go2RTCConsumer[];
|
|
108
|
+
}
|