@camera.ui/browser 0.0.110 → 0.0.112

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 (133) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +10 -1
  3. package/dist/index.d.ts +1269 -0
  4. package/dist/index.js +4179 -0
  5. package/package.json +55 -36
  6. package/CHANGELOG.md +0 -8
  7. package/dist/bundle.js +0 -2
  8. package/dist/bundle.js.LICENSE.txt +0 -23
  9. package/dist/types/packages/client/browser/src/api.d.ts +0 -8
  10. package/dist/types/packages/client/browser/src/client.d.ts +0 -23
  11. package/dist/types/packages/client/browser/src/index.d.ts +0 -2
  12. package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +0 -30
  13. package/dist/types/packages/client/browser/src/proxy/coreManager.d.ts +0 -16
  14. package/dist/types/packages/client/browser/src/proxy/deviceManager.d.ts +0 -18
  15. package/dist/types/packages/client/browser/src/proxy/index.d.ts +0 -3
  16. package/dist/types/packages/client/browser/src/socket.d.ts +0 -15
  17. package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +0 -71
  18. package/dist/types/packages/client/browser/src/types.d.ts +0 -58
  19. package/dist/types/packages/client/browser/src/utils.d.ts +0 -12
  20. package/dist/types/packages/common/src/nats/messageQueue.d.ts +0 -48
  21. package/dist/types/packages/common/src/nats/nats.d.ts +0 -30
  22. package/dist/types/packages/common/src/nats/packer.d.ts +0 -2
  23. package/dist/types/packages/common/src/utils/subscribed.d.ts +0 -18
  24. package/dist/types/packages/plugineer/src/polyglot/node/camera/index.d.ts +0 -91
  25. package/dist/types/packages/plugineer/src/polyglot/node/camera/interfaces/camera.d.ts +0 -8
  26. package/dist/types/packages/plugineer/src/polyglot/node/camera/interfaces/ptz.d.ts +0 -11
  27. package/dist/types/packages/plugineer/src/polyglot/node/camera/iou.d.ts +0 -2
  28. package/dist/types/packages/plugineer/src/polyglot/node/camera/polygon.d.ts +0 -4
  29. package/dist/types/packages/plugineer/src/polyglot/node/camera/types.d.ts +0 -18
  30. package/dist/types/packages/plugineer/src/polyglot/node/plugins/schema.d.ts +0 -62
  31. package/dist/types/packages/plugineer/src/polyglot/node/plugins/types.d.ts +0 -135
  32. package/dist/types/packages/plugineer/src/types.d.ts +0 -4
  33. package/dist/types/packages/types/src/index.d.ts +0 -730
  34. package/dist/types/server/src/api/controllers/api.controller.d.ts +0 -7
  35. package/dist/types/server/src/api/controllers/auth.controller.d.ts +0 -16
  36. package/dist/types/server/src/api/controllers/backup.controller.d.ts +0 -10
  37. package/dist/types/server/src/api/controllers/cameras.controller.d.ts +0 -38
  38. package/dist/types/server/src/api/controllers/config.controller.d.ts +0 -14
  39. package/dist/types/server/src/api/controllers/files.controller.d.ts +0 -8
  40. package/dist/types/server/src/api/controllers/frameWorkers.controller.d.ts +0 -11
  41. package/dist/types/server/src/api/controllers/plugins.controller.d.ts +0 -48
  42. package/dist/types/server/src/api/controllers/system.controller.d.ts +0 -23
  43. package/dist/types/server/src/api/controllers/users.controller.d.ts +0 -28
  44. package/dist/types/server/src/api/database/checks.d.ts +0 -55
  45. package/dist/types/server/src/api/database/constants.d.ts +0 -8
  46. package/dist/types/server/src/api/database/index.d.ts +0 -30
  47. package/dist/types/server/src/api/database/migration.d.ts +0 -15
  48. package/dist/types/server/src/api/database/selfcheck.d.ts +0 -48
  49. package/dist/types/server/src/api/database/types.d.ts +0 -88
  50. package/dist/types/server/src/api/go2rtc/api/application.d.ts +0 -9
  51. package/dist/types/server/src/api/go2rtc/api/config.d.ts +0 -8
  52. package/dist/types/server/src/api/go2rtc/api/index.d.ts +0 -1
  53. package/dist/types/server/src/api/go2rtc/api/snapshot.d.ts +0 -8
  54. package/dist/types/server/src/api/go2rtc/api/streams.d.ts +0 -12
  55. package/dist/types/server/src/api/go2rtc/index.d.ts +0 -14
  56. package/dist/types/server/src/api/go2rtc/queue.d.ts +0 -10
  57. package/dist/types/server/src/api/go2rtc/types.d.ts +0 -92
  58. package/dist/types/server/src/api/index.d.ts +0 -22
  59. package/dist/types/server/src/api/middlewares/authPermission.middleware.d.ts +0 -5
  60. package/dist/types/server/src/api/middlewares/authValidation.middleware.d.ts +0 -4
  61. package/dist/types/server/src/api/middlewares/pagination.middleware.d.ts +0 -3
  62. package/dist/types/server/src/api/middlewares/socketAuth.middleware.d.ts +0 -41
  63. package/dist/types/server/src/api/plugins/header.plugin.d.ts +0 -2
  64. package/dist/types/server/src/api/plugins/socket.plugin.d.ts +0 -11
  65. package/dist/types/server/src/api/plugins/system.plugin.d.ts +0 -20
  66. package/dist/types/server/src/api/plugins/useragent.plugin.d.ts +0 -8
  67. package/dist/types/server/src/api/routes/api.routes.d.ts +0 -2
  68. package/dist/types/server/src/api/routes/auth.routes.d.ts +0 -2
  69. package/dist/types/server/src/api/routes/backup.routes.d.ts +0 -2
  70. package/dist/types/server/src/api/routes/cameras.routes.d.ts +0 -2
  71. package/dist/types/server/src/api/routes/config.routes.d.ts +0 -2
  72. package/dist/types/server/src/api/routes/files.routes.d.ts +0 -2
  73. package/dist/types/server/src/api/routes/frameWorkers.routes.d.ts +0 -2
  74. package/dist/types/server/src/api/routes/index.d.ts +0 -6
  75. package/dist/types/server/src/api/routes/plugins.routes.d.ts +0 -2
  76. package/dist/types/server/src/api/routes/system.routes.d.ts +0 -2
  77. package/dist/types/server/src/api/routes/users.routes.d.ts +0 -2
  78. package/dist/types/server/src/api/schemas/backup.schema.d.ts +0 -211
  79. package/dist/types/server/src/api/schemas/cameras.schema.d.ts +0 -980
  80. package/dist/types/server/src/api/schemas/config.schema.d.ts +0 -114
  81. package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +0 -703
  82. package/dist/types/server/src/api/schemas/plugins.schema.d.ts +0 -72
  83. package/dist/types/server/src/api/schemas/system.schema.d.ts +0 -17
  84. package/dist/types/server/src/api/schemas/users.schema.d.ts +0 -1013
  85. package/dist/types/server/src/api/services/auth.service.d.ts +0 -24
  86. package/dist/types/server/src/api/services/backup.service.d.ts +0 -11
  87. package/dist/types/server/src/api/services/cameras.service.d.ts +0 -54
  88. package/dist/types/server/src/api/services/plugins.service.d.ts +0 -38
  89. package/dist/types/server/src/api/services/system.service.d.ts +0 -13
  90. package/dist/types/server/src/api/services/users.service.d.ts +0 -25
  91. package/dist/types/server/src/api/types/index.d.ts +0 -610
  92. package/dist/types/server/src/api/utils/cameraSource.d.ts +0 -6
  93. package/dist/types/server/src/api/utils/cert.d.ts +0 -11
  94. package/dist/types/server/src/api/utils/constants.d.ts +0 -13
  95. package/dist/types/server/src/api/utils/fetch.d.ts +0 -1
  96. package/dist/types/server/src/api/utils/moveFiles.d.ts +0 -4
  97. package/dist/types/server/src/api/utils/parse.d.ts +0 -2
  98. package/dist/types/server/src/api/websocket/go2rtc.d.ts +0 -21
  99. package/dist/types/server/src/api/websocket/index.d.ts +0 -16
  100. package/dist/types/server/src/api/websocket/nsp/logs.d.ts +0 -19
  101. package/dist/types/server/src/api/websocket/nsp/main.d.ts +0 -9
  102. package/dist/types/server/src/api/websocket/nsp/metrics.d.ts +0 -24
  103. package/dist/types/server/src/api/websocket/nsp/notifications.d.ts +0 -12
  104. package/dist/types/server/src/api/websocket/nsp/plugins.d.ts +0 -13
  105. package/dist/types/server/src/api/websocket/nsp/proxy.d.ts +0 -27
  106. package/dist/types/server/src/api/websocket/nsp/server.d.ts +0 -26
  107. package/dist/types/server/src/api/websocket/nsp/status.d.ts +0 -15
  108. package/dist/types/server/src/api/websocket/types.d.ts +0 -41
  109. package/dist/types/server/src/api.d.ts +0 -29
  110. package/dist/types/server/src/camera/controller.d.ts +0 -61
  111. package/dist/types/server/src/camera/frameWorker.d.ts +0 -45
  112. package/dist/types/server/src/camera/types.d.ts +0 -11
  113. package/dist/types/server/src/go2rtc/index.d.ts +0 -25
  114. package/dist/types/server/src/go2rtc/types.d.ts +0 -14
  115. package/dist/types/server/src/main.d.ts +0 -25
  116. package/dist/types/server/src/nats/index.d.ts +0 -40
  117. package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +0 -22
  118. package/dist/types/server/src/nats/proxy/coreManager.d.ts +0 -14
  119. package/dist/types/server/src/nats/proxy/deviceManager.d.ts +0 -14
  120. package/dist/types/server/src/nats/server.d.ts +0 -38
  121. package/dist/types/server/src/nats/types.d.ts +0 -18
  122. package/dist/types/server/src/nats/utils.d.ts +0 -2
  123. package/dist/types/server/src/plugins/index.d.ts +0 -33
  124. package/dist/types/server/src/plugins/plugin.d.ts +0 -35
  125. package/dist/types/server/src/plugins/schema.d.ts +0 -34
  126. package/dist/types/server/src/plugins/types.d.ts +0 -7
  127. package/dist/types/server/src/plugins/worker.d.ts +0 -55
  128. package/dist/types/server/src/services/config/constants.d.ts +0 -6
  129. package/dist/types/server/src/services/config/index.d.ts +0 -67
  130. package/dist/types/server/src/services/config/types.d.ts +0 -156
  131. package/dist/types/server/src/services/logger/index.d.ts +0 -16
  132. package/dist/types/server/src/types.d.ts +0 -31
  133. package/dist/types/shared/types/index.d.ts +0 -21
@@ -1,610 +0,0 @@
1
- import type { AuthConfig } from '@camera.ui/common';
2
- import type { PLUGIN_STATUS, PluginContract } from '@camera.ui/plugineer';
3
- import type { CameraExtension, CameraZone, RootSchema } from '@camera.ui/types';
4
- import type { Readable } from 'node:stream';
5
- import type { LoggingLevel } from '../../services/config/types.js';
6
- import type { CameraExtensions, DBCamera, DBCamviewLayout, DBRoles, DBUser } from '../database/types.js';
7
- import type { ApplicationResponse } from '../go2rtc/types.js';
8
- import type { RestoreBackupInput } from '../schemas/backup.schema.js';
9
- import type { CreateCameraInput, PatchCameraInput, PreviewCameraInput } from '../schemas/cameras.schema.js';
10
- import type { PatchConfigInput } from '../schemas/config.schema.js';
11
- import type { PatchGo2RtcConfigInput } from '../schemas/go2rtc.schema.js';
12
- import type { DetectAudioInput, DetectMotionInput, DetectObjectInput } from '../schemas/plugins.schema.js';
13
- import type { PatchSystemInput } from '../schemas/system.schema.js';
14
- import type { CreateShortcutInput, CreateUserInput, CreateViewInput, LoginUserInput, PatchShortcutInput, PatchUserInput, PatchViewInput } from '../schemas/users.schema.js';
15
- export interface BusboyFileStream extends Readable {
16
- truncated: boolean;
17
- bytesRead: number;
18
- }
19
- export interface UiNotification {
20
- _id: string;
21
- title: string;
22
- text: string;
23
- timestamp: number;
24
- type: LoggingLevel;
25
- link?: string;
26
- }
27
- export interface JwtTokenEncoded {
28
- _id: string;
29
- access_token: string;
30
- refresh_token: string;
31
- token_type: string;
32
- expires_in: number;
33
- expires_at: Date;
34
- }
35
- export interface JwtPayload {
36
- _id: string;
37
- avatar: string;
38
- username: string;
39
- role: DBRoles;
40
- oneLogin: boolean;
41
- rememberMe: boolean;
42
- firstLogin: boolean;
43
- sessionTimer: number;
44
- }
45
- export interface JwtRefreshPayload {
46
- _id: string;
47
- }
48
- export interface ClientData {
49
- _id: string;
50
- access_token: string;
51
- address?: string;
52
- device?: string;
53
- }
54
- export declare const enum REFRESH_TOKEN {
55
- EXPIRES_IN = "7d"
56
- }
57
- export declare const PAGINATION_DEFAULTS: PaginationQuery;
58
- export interface CameraCamviewSettings {
59
- enabled: boolean;
60
- mode: InterfaceStreamMode;
61
- imageRefreshTimer: number;
62
- }
63
- export type InterfaceStreamMode = 'live' | 'snapshot';
64
- export interface JwtTokenDecoded {
65
- _id: string;
66
- username: string;
67
- avatar: string;
68
- role: DBRoles;
69
- oneLogin: boolean;
70
- firstLogin: boolean;
71
- rememberMe: boolean;
72
- sessionTimer: number;
73
- exp: Readonly<number>;
74
- iat: Readonly<number>;
75
- }
76
- export interface JwtRefreshTokenDecoded {
77
- _id: string;
78
- expires_in: number;
79
- expires_at: Date;
80
- exp: Readonly<number>;
81
- iat: Readonly<number>;
82
- }
83
- export interface JwtTokenResponse {
84
- access_token: string;
85
- refresh_token: string;
86
- }
87
- export interface JwtTokenClientData {
88
- token: JwtTokenEncoded;
89
- clientData?: ClientData;
90
- }
91
- export type LogoutResponse = 'OK';
92
- export interface SessionResponse {
93
- status: 'OK';
94
- statusCode: undefined;
95
- message: undefined;
96
- }
97
- export interface SessionExpiredResponse {
98
- status: undefined;
99
- statusCode: number;
100
- message: string;
101
- }
102
- export type SessionStatus = SessionResponse | SessionExpiredResponse;
103
- export interface Pagination {
104
- pageSize: number;
105
- startIndex: number;
106
- endIndex: number;
107
- totalItems: number;
108
- currentPage?: number;
109
- totalPages?: number;
110
- nextPageQuery?: string | null;
111
- prevPageQuery?: string | null;
112
- }
113
- export interface PaginationResponse {
114
- pagination: Pagination;
115
- result: any[];
116
- }
117
- export interface UsersResponse {
118
- pagination: Pagination;
119
- result: DBUser[];
120
- }
121
- export interface ViewsResponse {
122
- pagination: Pagination;
123
- result: DBCamviewLayout[];
124
- }
125
- export interface CamerasResponse {
126
- pagination: Pagination;
127
- result: DBCamera[];
128
- }
129
- export interface PluginExtension {
130
- pluginName: string;
131
- displayName: string;
132
- type: CameraExtension[];
133
- builtIn?: boolean;
134
- externPlugin?: boolean;
135
- }
136
- export interface PluginExtensionConfig extends PluginExtension {
137
- rootSchema?: RootSchema;
138
- config?: Record<string, any>;
139
- }
140
- export interface ExtensionsResponse {
141
- pagination: Pagination;
142
- result: PluginExtension[];
143
- }
144
- export interface PluginsResponse {
145
- pagination: Pagination;
146
- result: CameraUiPlugin[];
147
- }
148
- export interface FrameWorkerResponse {
149
- pagination: Pagination;
150
- result: FrameWorker[];
151
- }
152
- export interface PluginContractCamera {
153
- name: string;
154
- extensions: CameraExtensions;
155
- }
156
- export interface PluginContractResponse {
157
- contract: PluginContract;
158
- cameras: PluginContractCamera[];
159
- }
160
- export interface Go2RtcInfoAuth {
161
- username: string;
162
- password: string;
163
- }
164
- export interface Go2RtcInfo {
165
- url: string;
166
- wsURL: string;
167
- port: number;
168
- info: ApplicationResponse;
169
- auth: Partial<Go2RtcInfoAuth>;
170
- }
171
- export interface NatsInfo {
172
- servers: string[];
173
- auth: AuthConfig;
174
- }
175
- export interface TokenClientDataResponse {
176
- pagination: Pagination;
177
- result: JwtTokenClientData[];
178
- }
179
- export interface PaginationQuery {
180
- start?: number;
181
- page?: number;
182
- pageSize?: number;
183
- }
184
- export interface PaginationRequest {
185
- Querystring: PaginationQuery;
186
- }
187
- export interface AuthParamsRequest {
188
- Params: {
189
- id: string;
190
- username?: string;
191
- };
192
- }
193
- export interface AuthLoginRequest {
194
- Querystring: {
195
- username?: string;
196
- password?: string;
197
- token?: string;
198
- };
199
- }
200
- export interface AuthNewLoginRequest {
201
- Body: LoginUserInput;
202
- }
203
- export interface AuthRefreshRequest {
204
- Body: {
205
- refresh_token: string;
206
- };
207
- }
208
- export interface AuthTokensRequest {
209
- Querystring: {
210
- clientData?: boolean;
211
- };
212
- }
213
- export interface CamerasParamsRequest {
214
- Params: {
215
- cameraname: string;
216
- };
217
- }
218
- export interface CameraSnapshotQueryRequest {
219
- Querystring: {
220
- forceNew?: boolean;
221
- };
222
- }
223
- export interface CameraSourceParamsRequest {
224
- Params: {
225
- sourcename: string;
226
- };
227
- }
228
- export interface CamerasParamsIdRequest {
229
- Params: {
230
- cameraid: string;
231
- };
232
- }
233
- export interface CameraZonesParamsRequest {
234
- Params: {
235
- zonename: string;
236
- };
237
- }
238
- export interface CamerasExtensionsParamsRequest {
239
- Params: {
240
- cameraname: string;
241
- pluginname: string;
242
- scope?: string;
243
- };
244
- }
245
- export interface CamerasExtensionsRequest {
246
- Querystring: {
247
- type: CameraExtension;
248
- };
249
- }
250
- export interface CameraZoneInsertPatchRequest {
251
- Body: CameraZone;
252
- }
253
- export interface CamerasInsertRequest {
254
- Body: CreateCameraInput;
255
- }
256
- export interface CamerasPreviewRequest {
257
- Body: PreviewCameraInput;
258
- }
259
- export interface CamerasPatchRequest {
260
- Body: PatchCameraInput;
261
- }
262
- export interface ExtensionsPatchRequest {
263
- Body: Record<string, any>;
264
- }
265
- export interface ExtensionsSubmitRequest {
266
- Body: {
267
- configPath: string;
268
- };
269
- }
270
- export interface ConfigRequest {
271
- Querystring: {
272
- json?: boolean;
273
- };
274
- }
275
- export interface ConfigPatchRequest {
276
- Body: PatchConfigInput;
277
- }
278
- export interface Go2RtcConfigPatchRequest {
279
- Body: PatchGo2RtcConfigInput;
280
- }
281
- export interface FilesParamsRequest {
282
- Params: {
283
- file: string;
284
- };
285
- }
286
- export interface PluginsParamsIdRequest {
287
- Params: {
288
- pluginid: string;
289
- };
290
- }
291
- export interface PluginsParamsNameRequest {
292
- Params: {
293
- scope?: string;
294
- pluginname: string;
295
- };
296
- }
297
- export interface FrameWorkerParamsNameRequest {
298
- Params: {
299
- frameworkername: string;
300
- };
301
- }
302
- export interface PluginsParamsRemoveRequest {
303
- Querystring: {
304
- removeStorage?: boolean;
305
- };
306
- }
307
- export interface PluginsQuery {
308
- pluginname?: string;
309
- pluginversion?: string;
310
- }
311
- export interface PluginsQueryRequest {
312
- Querystring: PluginsQuery;
313
- }
314
- export interface PluginsInsertRequest {
315
- Body: {
316
- pluginname: string;
317
- pluginversion?: string;
318
- };
319
- }
320
- export interface PluginsConfigPatchRequest {
321
- Body: Record<string, any>;
322
- }
323
- export interface PluginsActionRequest {
324
- Body: {
325
- actionId: string;
326
- payload: any;
327
- };
328
- }
329
- export interface PluginsDetectMotionRequest {
330
- Body: DetectMotionInput;
331
- }
332
- export interface PluginsDetectObjectRequest {
333
- Body: DetectObjectInput;
334
- }
335
- export interface PluginsDetectAudioRequest {
336
- Body: DetectAudioInput;
337
- }
338
- export interface PluginsInterfaceQueryType {
339
- type: 'objectDetection' | 'motionDetection' | 'audioDetection';
340
- }
341
- export interface PluginsInterfaceQuery {
342
- Querystring: {
343
- type: PluginsInterfaceQueryType;
344
- };
345
- }
346
- export interface UsersParamsRequest {
347
- Params: {
348
- username: string;
349
- };
350
- }
351
- export interface UsersInsertRequest {
352
- Body: CreateUserInput & {
353
- avatar: string;
354
- };
355
- }
356
- export interface UsersPatchRequest {
357
- Body: PatchUserInput & {
358
- avatar: string;
359
- };
360
- }
361
- export interface SystemPatchRequest {
362
- Body: PatchSystemInput;
363
- }
364
- export interface ServerUpdateRequest {
365
- Body: {
366
- version: string;
367
- };
368
- }
369
- export interface ViewsParamsRequest {
370
- Params: {
371
- viewid: string;
372
- };
373
- }
374
- export interface ViewsInsertRequest {
375
- Body: CreateViewInput;
376
- }
377
- export interface ViewsPatchRequest {
378
- Body: PatchViewInput;
379
- }
380
- export interface ShortcutParamsRequest {
381
- Params: {
382
- shortcutid: string;
383
- };
384
- }
385
- export interface ShortcutInsertRequest {
386
- Body: CreateShortcutInput;
387
- }
388
- export interface ShortcutPatchRequest {
389
- Body: PatchShortcutInput;
390
- }
391
- export interface BackupCreateRequest {
392
- Body: {
393
- localStorage: Partial<UiLocalStorage>;
394
- };
395
- }
396
- export interface PluginBackupInfo {
397
- id: string;
398
- name: string;
399
- version: string;
400
- }
401
- export interface BackupInfo {
402
- timestamp: number;
403
- platform: string;
404
- node: string;
405
- version: string;
406
- plugins: PluginBackupInfo[];
407
- localStorage: Partial<UiLocalStorage>;
408
- }
409
- export interface BackupStorage {
410
- backupDirectory: string;
411
- backupFile: string;
412
- backupFileName: string;
413
- }
414
- export type SupportedLanguageAbbreviatons = 'de' | 'en';
415
- export type SupportedThemes = 'light' | 'dark';
416
- export interface ConfigSettings {
417
- zoom: number;
418
- }
419
- export interface ConsoleSettings {
420
- zoom: number;
421
- }
422
- export type CamviewSettingsLayoutMode = 'dnd' | 'view';
423
- export type SettingsViews = 'account' | 'appearance' | 'user' | 'recordings' | 'backup' | 'system';
424
- export interface CamviewSettings {
425
- dragDisabled?: boolean;
426
- viewid?: string;
427
- }
428
- export interface CamerasSettings {
429
- showEvents: boolean;
430
- }
431
- export interface InterfaceSettinges {
432
- showBottomBarOnMobile: boolean;
433
- selectedSettingsView: SettingsViews;
434
- }
435
- export interface UiSettingsLocalStorage {
436
- cameras: CamerasSettings;
437
- camview: CamviewSettings;
438
- config: ConfigSettings;
439
- console: ConsoleSettings;
440
- interface: InterfaceSettinges;
441
- }
442
- export interface ThemeLocalStorage {
443
- theme: SupportedThemes;
444
- autoMode: boolean;
445
- }
446
- export interface UiLocalStorage {
447
- ui: UiSettingsLocalStorage;
448
- theme: ThemeLocalStorage;
449
- locale: SupportedLanguageAbbreviatons;
450
- }
451
- export interface BackupRestoreRequest {
452
- Body: RestoreBackupInput;
453
- }
454
- export interface INpmPluginState {
455
- updateAvailable: boolean;
456
- betaUpdateAvailable: boolean;
457
- lastUpdated?: string;
458
- latestVersion?: string;
459
- }
460
- export interface INpmPerson {
461
- name?: string;
462
- email?: string;
463
- homepage?: string;
464
- username?: string;
465
- url?: string;
466
- }
467
- export interface IPackageJson {
468
- name: string;
469
- displayName?: string;
470
- version: string;
471
- description?: string;
472
- keywords?: string[];
473
- homepage?: string;
474
- bugs?: string | {
475
- email?: string;
476
- url?: string;
477
- };
478
- license?: string;
479
- author?: string | INpmPerson;
480
- maintainers?: INpmPerson[];
481
- contributors?: string[] | INpmPerson[];
482
- files?: string[];
483
- main?: string;
484
- bin?: string | Record<string, string>;
485
- repository?: string | {
486
- type: string;
487
- url: string;
488
- };
489
- scripts?: Record<string, string>;
490
- dependencies?: Record<string, string>;
491
- devDependencies?: Record<string, string>;
492
- peerDependencies?: Record<string, string>;
493
- optionalDependencies?: Record<string, string>;
494
- bundledDependencies?: string[];
495
- engines?: Record<string, string>;
496
- os?: string[];
497
- cpu?: string[];
498
- preferGlobal?: boolean;
499
- private?: boolean;
500
- publishConfig?: {
501
- registry?: string;
502
- };
503
- exports?: Record<string, any>;
504
- type?: 'module';
505
- 'camera.ui'?: PluginContract;
506
- }
507
- export interface INpmRegistryModule {
508
- _id: string;
509
- _rev: string;
510
- name: string;
511
- 'dist-tags': {
512
- latest: string;
513
- [key: string]: string;
514
- };
515
- versions: Record<string, IPackageJson>;
516
- time: {
517
- created: string;
518
- modified: string;
519
- [key: string]: string;
520
- };
521
- maintainers: INpmPerson[];
522
- description: string;
523
- homepage: string;
524
- keywords: string[];
525
- repository: {
526
- type: string;
527
- url: string;
528
- };
529
- author: INpmPerson;
530
- bugs: {
531
- email?: string;
532
- url?: string;
533
- };
534
- license: string;
535
- readme: string;
536
- readmeFilename: string;
537
- }
538
- export interface INpmSearchResults {
539
- objects: INpmSearchResultItem[];
540
- }
541
- export interface INpmSearchResultItem {
542
- package: {
543
- name: string;
544
- scoped: string;
545
- version: string;
546
- description: string;
547
- keywords: string[];
548
- date: string;
549
- links: {
550
- npm: string;
551
- homebridge?: string;
552
- repository?: string;
553
- bugs?: string;
554
- };
555
- author: INpmPerson;
556
- publisher: INpmPerson;
557
- maintainers: INpmPerson[];
558
- };
559
- flags: {
560
- unstable: boolean;
561
- };
562
- score: {
563
- final: number;
564
- detail: {
565
- quality: number;
566
- popularity: number;
567
- maintenance: number;
568
- };
569
- };
570
- searchScore: number;
571
- }
572
- export interface PluginLinks {
573
- npm: string;
574
- homepage: string;
575
- }
576
- export interface PluginEngines {
577
- node: string;
578
- 'camera.ui': string;
579
- }
580
- export interface CameraUiPlugin {
581
- id: string;
582
- pluginName: string;
583
- private: boolean;
584
- displayName: string;
585
- description?: string;
586
- publicPackage?: boolean;
587
- installedVersion?: string;
588
- latestVersion?: string;
589
- lastUpdated?: string;
590
- availableVersions?: string[];
591
- installPath?: string;
592
- globalInstall?: boolean;
593
- disabled?: boolean;
594
- links?: {
595
- npm?: string;
596
- homepage?: string;
597
- };
598
- author?: string;
599
- engines?: {
600
- 'camera.ui'?: string;
601
- node?: string;
602
- };
603
- 'camera.ui': PluginContract;
604
- isPython: boolean;
605
- isNode: boolean;
606
- }
607
- export interface FrameWorker {
608
- name: string;
609
- status: PLUGIN_STATUS;
610
- }
@@ -1,6 +0,0 @@
1
- import type { CameraInputSettings } from '@camera.ui/types';
2
- export interface InternalCameraInputSettings extends CameraInputSettings {
3
- convertedName: string;
4
- }
5
- export declare function isInternalSource(source: CameraInputSettings): boolean;
6
- export declare function generateInternalCameraSources(cameraName: string, source: CameraInputSettings): InternalCameraInputSettings[] | undefined;
@@ -1,11 +0,0 @@
1
- export interface Certificate {
2
- cert: string;
3
- key: string;
4
- certPath: string;
5
- keyPath: string;
6
- }
7
- export declare class CertificateGeneration {
8
- static createRootCA(customAddresses: string[]): Certificate;
9
- static createHostCert(customAddresses: string[], rootCAObject: Certificate): Certificate;
10
- static generateCert(forceNew?: boolean): Certificate;
11
- }
@@ -1,13 +0,0 @@
1
- export declare const HOST_CERT_FILENAME = "camera.ui.cert.pem";
2
- export declare const HOST_KEY_FILENAME = "camera.ui.key.pem";
3
- export declare const ROOT_CERT_FILENAME = "camera.ui.root.cert.pem";
4
- export declare const ROOT_KEY_FILENAME = "camera.ui.root.key.pem";
5
- export declare const DEFAULTS: {
6
- C: string;
7
- ST: string;
8
- L: string;
9
- O: string;
10
- OU: string;
11
- CN: string;
12
- ROOT_CN: string;
13
- };
@@ -1 +0,0 @@
1
- export declare function fetchWithTimeout(url: string, options?: RequestInit): Promise<Response>;
@@ -1,4 +0,0 @@
1
- export interface MoveOptions {
2
- overwrite?: boolean;
3
- }
4
- export declare function moveFiles(source: string, destination: string, options?: MoveOptions): Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { JwtTokenDecoded } from '../types/index.js';
2
- export declare function parseJwt(access_token: string): JwtTokenDecoded;
@@ -1,21 +0,0 @@
1
- import { WebSocket } from 'ws';
2
- import type { Socket } from 'socket.io';
3
- import type { StreamPayload } from '../../nats/types.js';
4
- import type { LoggerService } from '../../services/logger/index.js';
5
- import type { VideoStreamingMode } from '../database/types.js';
6
- export declare class Go2RTCBridge {
7
- private logger;
8
- private socket;
9
- private go2rtcApi;
10
- id: string;
11
- url: string;
12
- sourceName: string;
13
- ws?: WebSocket;
14
- mode?: VideoStreamingMode;
15
- constructor(id: string, sourceName: string, url: string, socket: Socket, logger: LoggerService);
16
- connect(): void;
17
- reconnect(): void;
18
- close(destroy?: boolean): void;
19
- send(data: StreamPayload): void;
20
- sendStreamInfo(): Promise<any>;
21
- }
@@ -1,16 +0,0 @@
1
- import { Server } from 'socket.io';
2
- import type { FastifyInstance } from 'fastify';
3
- import type { ServerOptions } from 'socket.io';
4
- import type { SocketNsp, SocketNspMap } from './types.js';
5
- export declare class SocketService {
6
- io: Server;
7
- namespaces: Map<SocketNsp, SocketNspMap>;
8
- adminNsp: SocketNsp[];
9
- private logger;
10
- private authService;
11
- private configService;
12
- private api;
13
- constructor(app: FastifyInstance, opts: Partial<ServerOptions>);
14
- private registerNamespaces;
15
- private setupConnection;
16
- }
@@ -1,19 +0,0 @@
1
- import type { Namespace, Server, Socket } from 'socket.io';
2
- import type { SocketNsp } from '../types.js';
3
- export declare class LogsNamespace {
4
- nsp: Namespace;
5
- nspName: SocketNsp;
6
- private tailInstances;
7
- private api;
8
- private configService;
9
- private pluginManager;
10
- constructor(io: Server);
11
- getAllLogs(socket: Socket): void;
12
- getCameraLog(socket: Socket, cameraName: string): void;
13
- getPluginLog(socket: Socket, pluginName: string): void;
14
- private tailLogFromFileNative;
15
- private setupTail;
16
- private filterLine;
17
- private removeName;
18
- private removeBracketedContent;
19
- }