@camera.ui/sdk 0.0.8 → 0.0.10
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/index.d.ts +14 -16
- package/dist/internal/index.d.ts +6 -6
- package/dist/plugin/contract.js +6 -4
- package/dist/plugin/helper.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -110,8 +110,6 @@ interface CameraInputSettings {
|
|
|
110
110
|
hotMode: boolean;
|
|
111
111
|
/** Preload stream on startup */
|
|
112
112
|
preload: boolean;
|
|
113
|
-
/** Enable stream prebuffering */
|
|
114
|
-
prebuffer: boolean;
|
|
115
113
|
/** User-provided stream URLs */
|
|
116
114
|
urls: string[];
|
|
117
115
|
/** Child source ID (for snapshot fallback) */
|
|
@@ -3481,8 +3479,6 @@ interface Go2RtcRTSPSource {
|
|
|
3481
3479
|
pcma: string;
|
|
3482
3480
|
/** ONVIF URL */
|
|
3483
3481
|
onvif: string;
|
|
3484
|
-
/** Prebuffered stream URL */
|
|
3485
|
-
prebuffered: string;
|
|
3486
3482
|
/** Stream URL with GOP cache disabled */
|
|
3487
3483
|
noGop: string;
|
|
3488
3484
|
}
|
|
@@ -3616,8 +3612,6 @@ interface RTSPUrlOptions {
|
|
|
3616
3612
|
audio?: boolean | RTSPAudioCodec | RTSPAudioCodec[];
|
|
3617
3613
|
/** Request keyframe at start (GOP) */
|
|
3618
3614
|
gop?: boolean;
|
|
3619
|
-
/** Use prebuffered stream */
|
|
3620
|
-
prebuffer?: boolean;
|
|
3621
3615
|
/** Combine audio tracks into single track */
|
|
3622
3616
|
audioSingleTrack?: boolean;
|
|
3623
3617
|
/** Enable backchannel (two-way audio) */
|
|
@@ -3641,8 +3635,6 @@ interface SnapshotUrlOptions {
|
|
|
3641
3635
|
hw?: 'vaapi' | 'v4l2m2m' | 'cuda' | 'dxva2' | 'videotoolbox' | 'rkmpp';
|
|
3642
3636
|
/** Request keyframe at start (GOP) */
|
|
3643
3637
|
gop?: boolean;
|
|
3644
|
-
/** Use prebuffered stream */
|
|
3645
|
-
prebuffer?: boolean;
|
|
3646
3638
|
}
|
|
3647
3639
|
/**
|
|
3648
3640
|
* Hardware acceleration options.
|
|
@@ -3840,8 +3832,6 @@ interface CameraInput {
|
|
|
3840
3832
|
hotMode: boolean;
|
|
3841
3833
|
/** Preload stream on startup */
|
|
3842
3834
|
preload: boolean;
|
|
3843
|
-
/** Enable stream prebuffering */
|
|
3844
|
-
prebuffer: boolean;
|
|
3845
3835
|
/** Generated streaming URLs */
|
|
3846
3836
|
urls: StreamUrls;
|
|
3847
3837
|
/** Child source ID (for snapshot fallback) */
|
|
@@ -4427,10 +4417,12 @@ type PythonVersion = '3.11' | '3.12';
|
|
|
4427
4417
|
*/
|
|
4428
4418
|
declare enum PluginRole {
|
|
4429
4419
|
/**
|
|
4430
|
-
*
|
|
4431
|
-
*
|
|
4432
|
-
*
|
|
4433
|
-
*
|
|
4420
|
+
* System-wide aggregator that attaches to cameras owned by *other* plugins
|
|
4421
|
+
* to provide a cross-camera service (e.g. bridging cameras and sensors into a
|
|
4422
|
+
* smart-home platform, or recording and notifications). A hub creates no
|
|
4423
|
+
* cameras of its own and provides no sensors (`provides` must be empty); it
|
|
4424
|
+
* attaches to cameras via the `hub` assignment and typically reads camera and
|
|
4425
|
+
* sensor state through `consumes`.
|
|
4434
4426
|
*/
|
|
4435
4427
|
Hub = "hub",
|
|
4436
4428
|
/**
|
|
@@ -4849,6 +4841,7 @@ interface PluginAPI {
|
|
|
4849
4841
|
* Generic notification types — domain-agnostic. The NotificationManager and
|
|
4850
4842
|
* notifier plugins talk over RPC and JSON-encode these types directly.
|
|
4851
4843
|
*/
|
|
4844
|
+
|
|
4852
4845
|
/**
|
|
4853
4846
|
* Severity classifies how urgent a Notification is. Notifiers map this to
|
|
4854
4847
|
* platform-specific delivery characteristics; the host bypasses user-configured
|
|
@@ -4972,6 +4965,11 @@ interface NotifierInterface {
|
|
|
4972
4965
|
* manager can probe the next plugin.
|
|
4973
4966
|
*/
|
|
4974
4967
|
updateDevice(deviceId: string, patch: Record<string, unknown>): Promise<NotifierDevice | null>;
|
|
4968
|
+
/**
|
|
4969
|
+
* Returns the JSON schema used to render the notifier's settings form in
|
|
4970
|
+
* the UI, or undefined for no schema.
|
|
4971
|
+
*/
|
|
4972
|
+
notificationSettings?(): Promise<JsonSchema[] | undefined>;
|
|
4975
4973
|
}
|
|
4976
4974
|
|
|
4977
4975
|
/** Image metadata for detection test requests */
|
|
@@ -5540,8 +5538,8 @@ declare function getContractValidationErrors(contract: unknown): string[];
|
|
|
5540
5538
|
*/
|
|
5541
5539
|
declare function validateContractConsistency(contract: PluginContract, pluginName?: string): void;
|
|
5542
5540
|
/**
|
|
5543
|
-
* Reports whether the plugin's role is Hub (
|
|
5544
|
-
*
|
|
5541
|
+
* Reports whether the plugin's role is Hub (a cross-camera aggregator such as a
|
|
5542
|
+
* smart-home bridge or recorder, which owns no cameras of its own).
|
|
5545
5543
|
*
|
|
5546
5544
|
* @param contract - Plugin contract to inspect.
|
|
5547
5545
|
*
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -412,10 +412,12 @@ type PythonVersion = '3.11' | '3.12';
|
|
|
412
412
|
*/
|
|
413
413
|
declare enum PluginRole {
|
|
414
414
|
/**
|
|
415
|
-
*
|
|
416
|
-
*
|
|
417
|
-
*
|
|
418
|
-
*
|
|
415
|
+
* System-wide aggregator that attaches to cameras owned by *other* plugins
|
|
416
|
+
* to provide a cross-camera service (e.g. bridging cameras and sensors into a
|
|
417
|
+
* smart-home platform, or recording and notifications). A hub creates no
|
|
418
|
+
* cameras of its own and provides no sensors (`provides` must be empty); it
|
|
419
|
+
* attaches to cameras via the `hub` assignment and typically reads camera and
|
|
420
|
+
* sensor state through `consumes`.
|
|
419
421
|
*/
|
|
420
422
|
Hub = "hub",
|
|
421
423
|
/**
|
|
@@ -606,8 +608,6 @@ interface CameraInputSettings {
|
|
|
606
608
|
hotMode: boolean;
|
|
607
609
|
/** Preload stream on startup */
|
|
608
610
|
preload: boolean;
|
|
609
|
-
/** Enable stream prebuffering */
|
|
610
|
-
prebuffer: boolean;
|
|
611
611
|
/** User-provided stream URLs */
|
|
612
612
|
urls: string[];
|
|
613
613
|
/** Child source ID (for snapshot fallback) */
|
package/dist/plugin/contract.js
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
export var PluginRole;
|
|
6
6
|
(function (PluginRole) {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* System-wide aggregator that attaches to cameras owned by *other* plugins
|
|
9
|
+
* to provide a cross-camera service (e.g. bridging cameras and sensors into a
|
|
10
|
+
* smart-home platform, or recording and notifications). A hub creates no
|
|
11
|
+
* cameras of its own and provides no sensors (`provides` must be empty); it
|
|
12
|
+
* attaches to cameras via the `hub` assignment and typically reads camera and
|
|
13
|
+
* sensor state through `consumes`.
|
|
12
14
|
*/
|
|
13
15
|
PluginRole["Hub"] = "hub";
|
|
14
16
|
/**
|
package/dist/plugin/helper.js
CHANGED
|
@@ -182,8 +182,8 @@ export function validateContractConsistency(contract, pluginName) {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
|
-
* Reports whether the plugin's role is Hub (
|
|
186
|
-
*
|
|
185
|
+
* Reports whether the plugin's role is Hub (a cross-camera aggregator such as a
|
|
186
|
+
* smart-home bridge or recorder, which owns no cameras of its own).
|
|
187
187
|
*
|
|
188
188
|
* @param contract - Plugin contract to inspect.
|
|
189
189
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camera.ui/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "camera.ui sdk",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
35
35
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
36
36
|
"@types/multicast-dns": "^7.2.4",
|
|
37
|
-
"@types/node": "26.0.
|
|
37
|
+
"@types/node": "26.0.1",
|
|
38
38
|
"@typescript-eslint/parser": "^8.62.0",
|
|
39
39
|
"cpy-cli": "^7.0.0",
|
|
40
40
|
"eslint": "9.39.2",
|
|
41
|
-
"eslint-plugin-jsdoc": "^63.0.
|
|
41
|
+
"eslint-plugin-jsdoc": "^63.0.10",
|
|
42
42
|
"globals": "^17.7.0",
|
|
43
|
-
"prettier": "^3.
|
|
43
|
+
"prettier": "^3.9.1",
|
|
44
44
|
"rimraf": "^6.1.3",
|
|
45
45
|
"rollup": "^4.62.2",
|
|
46
46
|
"rollup-plugin-dts": "^6.4.1",
|