@camstack/types 1.2.154 → 1.2.156
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/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/camera-streams.cap.d.ts +10 -0
- package/dist/capabilities/index.d.ts +3 -1
- package/dist/capabilities/recording-signal.cap.d.ts +91 -0
- package/dist/capabilities/recording.cap.d.ts +3 -0
- package/dist/capabilities/schemas/streaming-shared.d.ts +5 -0
- package/dist/capabilities/stream-broker.cap.d.ts +10 -0
- package/dist/capabilities/stream-catalog.cap.d.ts +20 -0
- package/dist/generated/addon-api.d.ts +15 -0
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +3 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/index.js +123 -3
- package/dist/index.mjs +121 -4
- package/dist/interfaces/config-ui.d.ts +1 -1
- package/dist/interfaces/recording-config.d.ts +4 -0
- package/dist/{sleep-Dp0uukHR.js → sleep-BGiOgxye.js} +23 -0
- package/dist/{sleep-CgijQHtG.mjs → sleep-IaOr7P-z.mjs} +23 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import type { CustomModelMetadata, ModelCatalogEntry, ModelFormat, ModelOutputFo
|
|
|
9
9
|
* Multiple addons can contribute sections to the same tab.
|
|
10
10
|
*/
|
|
11
11
|
/** Predefined tab identifiers that addons reference by ID. */
|
|
12
|
-
export type WellKnownTabId = 'overview' | 'general' | 'image' | 'light' | 'motion' | 'audio' | 'snapshot' | 'osd' | 'alarms' | 'pipeline' | 'detection-pipeline' | 'stream-broker' | 'streaming' | 'ptz' | 'consumables' | 'zones' | 'analytics' | 'live-stats' | 'recording' | 'notifications' | 'network' | 'storage' | 'engine' | 'scheduler' | 'decoder' | 'advanced';
|
|
12
|
+
export type WellKnownTabId = 'overview' | 'general' | 'image' | 'light' | 'motion' | 'audio' | 'snapshot' | 'osd' | 'alarms' | 'pipeline' | 'detection-pipeline' | 'stream-broker' | 'streaming' | 'ptz' | 'navigation' | 'consumables' | 'zones' | 'analytics' | 'live-stats' | 'recording' | 'notifications' | 'network' | 'storage' | 'engine' | 'scheduler' | 'decoder' | 'advanced';
|
|
13
13
|
export interface WellKnownTab {
|
|
14
14
|
readonly id: WellKnownTabId;
|
|
15
15
|
readonly label: string;
|
|
@@ -72,6 +72,7 @@ export declare const RecordingTriggersSchema: z.ZodObject<{
|
|
|
72
72
|
animal: "animal";
|
|
73
73
|
}>>>;
|
|
74
74
|
sensorDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
75
|
+
deviceSignal: z.ZodOptional<z.ZodBoolean>;
|
|
75
76
|
}, z.core.$strip>;
|
|
76
77
|
export type RecordingTriggers = z.infer<typeof RecordingTriggersSchema>;
|
|
77
78
|
/**
|
|
@@ -100,6 +101,7 @@ export declare const RecordingBandTriggersSchema: z.ZodObject<{
|
|
|
100
101
|
animal: "animal";
|
|
101
102
|
}>>>;
|
|
102
103
|
sensorDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
104
|
+
deviceSignal: z.ZodOptional<z.ZodBoolean>;
|
|
103
105
|
}, z.core.$strip>;
|
|
104
106
|
export type RecordingBandTriggers = z.infer<typeof RecordingBandTriggersSchema>;
|
|
105
107
|
/**
|
|
@@ -127,6 +129,7 @@ export declare const RecordingBandSchema: z.ZodObject<{
|
|
|
127
129
|
animal: "animal";
|
|
128
130
|
}>>>;
|
|
129
131
|
sensorDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
132
|
+
deviceSignal: z.ZodOptional<z.ZodBoolean>;
|
|
130
133
|
}, z.core.$strip>>;
|
|
131
134
|
preBufferSec: z.ZodOptional<z.ZodNumber>;
|
|
132
135
|
postBufferSec: z.ZodOptional<z.ZodNumber>;
|
|
@@ -244,6 +247,7 @@ export declare const RecordingConfigSchema: z.ZodObject<{
|
|
|
244
247
|
animal: "animal";
|
|
245
248
|
}>>>;
|
|
246
249
|
sensorDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
250
|
+
deviceSignal: z.ZodOptional<z.ZodBoolean>;
|
|
247
251
|
}, z.core.$strip>>;
|
|
248
252
|
preBufferSec: z.ZodOptional<z.ZodNumber>;
|
|
249
253
|
postBufferSec: z.ZodOptional<z.ZodNumber>;
|
|
@@ -80,6 +80,12 @@ var WELL_KNOWN_TABS = [
|
|
|
80
80
|
icon: "move",
|
|
81
81
|
order: 40
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
id: "navigation",
|
|
85
|
+
label: "Navigation",
|
|
86
|
+
icon: "compass",
|
|
87
|
+
order: 41
|
|
88
|
+
},
|
|
83
89
|
{
|
|
84
90
|
id: "consumables",
|
|
85
91
|
label: "Consumables",
|
|
@@ -1289,6 +1295,21 @@ var CameraStreamSchema = zod.z.object({
|
|
|
1289
1295
|
*/
|
|
1290
1296
|
autoEligible: zod.z.boolean().optional(),
|
|
1291
1297
|
/**
|
|
1298
|
+
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
1299
|
+
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
1300
|
+
* stream. Consulted by the broker's automatic ranking
|
|
1301
|
+
* (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
|
|
1302
|
+
* an operator's manual assignment still wins, and an absent hint is the
|
|
1303
|
+
* pixel-ranked default every camera had before this field existed.
|
|
1304
|
+
*
|
|
1305
|
+
* Why it exists: a camera with ONE stream ranked to `mid` — the slot no
|
|
1306
|
+
* storage class is written for on its own (`recordings` is high|mid,
|
|
1307
|
+
* `recordingsLow` is low) and the one profile scrub does not read. The robot
|
|
1308
|
+
* camera's single 720p relay is a `low` in every respect except the slot the
|
|
1309
|
+
* heuristic put it in.
|
|
1310
|
+
*/
|
|
1311
|
+
profileHint: CamProfileSchema.optional(),
|
|
1312
|
+
/**
|
|
1292
1313
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
1293
1314
|
* the source reader without inspecting it. Currently used by
|
|
1294
1315
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -3191,6 +3212,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3191
3212
|
pressureSensor: createSliceHandle(stateSource, binding.deviceId, "pressure-sensor"),
|
|
3192
3213
|
privacyMask: createSliceHandle(stateSource, binding.deviceId, "privacy-mask"),
|
|
3193
3214
|
ptzAutotrack: createSliceHandle(stateSource, binding.deviceId, "ptz-autotrack"),
|
|
3215
|
+
recordingSignal: createSliceHandle(stateSource, binding.deviceId, "recording-signal"),
|
|
3194
3216
|
sceneMonitor: createSliceHandle(stateSource, binding.deviceId, "scene-monitor"),
|
|
3195
3217
|
scriptRunner: createSliceHandle(stateSource, binding.deviceId, "script-runner"),
|
|
3196
3218
|
smoke: createSliceHandle(stateSource, binding.deviceId, "smoke"),
|
|
@@ -3570,6 +3592,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3570
3592
|
setSettings: (input) => dispatch("ptz-autotrack", "ptzAutotrack", "setSettings", "mutation", input)
|
|
3571
3593
|
},
|
|
3572
3594
|
reboot: { reboot: (input) => dispatch("reboot", "reboot", "reboot", "mutation", input) },
|
|
3595
|
+
recordingSignal: { getStatus: (input) => dispatch("recording-signal", "recordingSignal", "getStatus", "query", input) },
|
|
3573
3596
|
sceneMonitor: {
|
|
3574
3597
|
listScenes: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenes", "query", input),
|
|
3575
3598
|
listScenesBatch: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenesBatch", "query", input),
|
|
@@ -80,6 +80,12 @@ var WELL_KNOWN_TABS = [
|
|
|
80
80
|
icon: "move",
|
|
81
81
|
order: 40
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
id: "navigation",
|
|
85
|
+
label: "Navigation",
|
|
86
|
+
icon: "compass",
|
|
87
|
+
order: 41
|
|
88
|
+
},
|
|
83
89
|
{
|
|
84
90
|
id: "consumables",
|
|
85
91
|
label: "Consumables",
|
|
@@ -1289,6 +1295,21 @@ var CameraStreamSchema = z.object({
|
|
|
1289
1295
|
*/
|
|
1290
1296
|
autoEligible: z.boolean().optional(),
|
|
1291
1297
|
/**
|
|
1298
|
+
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
1299
|
+
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
1300
|
+
* stream. Consulted by the broker's automatic ranking
|
|
1301
|
+
* (`rankInitialAssignment`) BEFORE the pixel-count heuristic, and only there:
|
|
1302
|
+
* an operator's manual assignment still wins, and an absent hint is the
|
|
1303
|
+
* pixel-ranked default every camera had before this field existed.
|
|
1304
|
+
*
|
|
1305
|
+
* Why it exists: a camera with ONE stream ranked to `mid` — the slot no
|
|
1306
|
+
* storage class is written for on its own (`recordings` is high|mid,
|
|
1307
|
+
* `recordingsLow` is low) and the one profile scrub does not read. The robot
|
|
1308
|
+
* camera's single 720p relay is a `low` in every respect except the slot the
|
|
1309
|
+
* heuristic put it in.
|
|
1310
|
+
*/
|
|
1311
|
+
profileHint: CamProfileSchema.optional(),
|
|
1312
|
+
/**
|
|
1292
1313
|
* Transport-specific opaque metadata. The broker passes it through to
|
|
1293
1314
|
* the source reader without inspecting it. Currently used by
|
|
1294
1315
|
* `pull-rfc4571` streams to carry the upstream SDP (so the reader can
|
|
@@ -3191,6 +3212,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3191
3212
|
pressureSensor: createSliceHandle(stateSource, binding.deviceId, "pressure-sensor"),
|
|
3192
3213
|
privacyMask: createSliceHandle(stateSource, binding.deviceId, "privacy-mask"),
|
|
3193
3214
|
ptzAutotrack: createSliceHandle(stateSource, binding.deviceId, "ptz-autotrack"),
|
|
3215
|
+
recordingSignal: createSliceHandle(stateSource, binding.deviceId, "recording-signal"),
|
|
3194
3216
|
sceneMonitor: createSliceHandle(stateSource, binding.deviceId, "scene-monitor"),
|
|
3195
3217
|
scriptRunner: createSliceHandle(stateSource, binding.deviceId, "script-runner"),
|
|
3196
3218
|
smoke: createSliceHandle(stateSource, binding.deviceId, "smoke"),
|
|
@@ -3570,6 +3592,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3570
3592
|
setSettings: (input) => dispatch("ptz-autotrack", "ptzAutotrack", "setSettings", "mutation", input)
|
|
3571
3593
|
},
|
|
3572
3594
|
reboot: { reboot: (input) => dispatch("reboot", "reboot", "reboot", "mutation", input) },
|
|
3595
|
+
recordingSignal: { getStatus: (input) => dispatch("recording-signal", "recordingSignal", "getStatus", "query", input) },
|
|
3573
3596
|
sceneMonitor: {
|
|
3574
3597
|
listScenes: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenes", "query", input),
|
|
3575
3598
|
listScenesBatch: (input) => dispatch("scene-monitor", "sceneMonitor", "listScenesBatch", "query", input),
|