@camstack/types 1.1.29 → 1.1.31
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/day-night.cap.d.ts +162 -0
- package/dist/capabilities/decoder.cap.d.ts +5 -0
- package/dist/capabilities/image-settings.cap.d.ts +357 -0
- package/dist/capabilities/index.d.ts +5 -1
- package/dist/capabilities/pipeline-runner.cap.d.ts +2 -0
- package/dist/generated/addon-api.d.ts +274 -0
- package/dist/generated/cap-status-types.d.ts +5 -1
- package/dist/generated/capability-router-map.d.ts +8 -2
- package/dist/generated/device-local-state.d.ts +6 -0
- package/dist/generated/device-proxy.d.ts +6 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.js +362 -9
- package/dist/index.mjs +350 -10
- package/dist/interfaces/decoder.d.ts +16 -0
- package/dist/interfaces/pipeline-runner-capability.d.ts +3 -1
- package/dist/interfaces/stream-broker.d.ts +5 -0
- package/dist/{sleep-BiDFW0E7.mjs → sleep-CZDdRBua.mjs} +12 -0
- package/dist/{sleep-B8cp-HUn.js → sleep-Dirr8nGw.js} +12 -0
- package/package.json +1 -1
|
@@ -68,7 +68,9 @@ export interface RunnerCameraConfig {
|
|
|
68
68
|
* to disable the dynamic analyzer for this camera.
|
|
69
69
|
*/
|
|
70
70
|
readonly onboardMotionDrivesAnalyzer: boolean;
|
|
71
|
-
/**
|
|
71
|
+
/** Master toggle — when false the occupancy recheck never arms (default). */
|
|
72
|
+
readonly occupancyRecheckEnabled: boolean;
|
|
73
|
+
/** Seconds between occupancy re-check bursts in watching phase. */
|
|
72
74
|
readonly occupancyRecheckSec: number;
|
|
73
75
|
/** Frames to sample per occupancy re-check burst. */
|
|
74
76
|
readonly occupancyRecheckFrames: number;
|
|
@@ -8,6 +8,9 @@ export declare const DecoderStatsSchema: z.ZodObject<{
|
|
|
8
8
|
outputFps: z.ZodNumber;
|
|
9
9
|
avgDecodeTimeMs: z.ZodNumber;
|
|
10
10
|
droppedFrames: z.ZodNumber;
|
|
11
|
+
lagMs: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
effectiveFps: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
adaptiveFps: z.ZodOptional<z.ZodNumber>;
|
|
11
14
|
}, z.core.$strip>;
|
|
12
15
|
export declare const DecoderSessionConfigSchema: z.ZodObject<{
|
|
13
16
|
codec: z.ZodString;
|
|
@@ -28,6 +31,7 @@ export declare const DecoderSessionConfigSchema: z.ZodObject<{
|
|
|
28
31
|
callback: "callback";
|
|
29
32
|
shm: "shm";
|
|
30
33
|
}>>;
|
|
34
|
+
debug: z.ZodOptional<z.ZodBoolean>;
|
|
31
35
|
}, z.core.$strip>;
|
|
32
36
|
export type Unsubscribe = () => void;
|
|
33
37
|
/**
|
|
@@ -421,6 +425,7 @@ export interface CameraDetectionConfig {
|
|
|
421
425
|
* default(true) in `resolveDeviceDetectionSettings`.
|
|
422
426
|
*/
|
|
423
427
|
readonly onboardMotionDrivesAnalyzer: boolean;
|
|
428
|
+
readonly occupancyRecheckEnabled: boolean;
|
|
424
429
|
readonly occupancyRecheckSec: number;
|
|
425
430
|
readonly occupancyRecheckFrames: number;
|
|
426
431
|
}
|
|
@@ -3048,6 +3048,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3048
3048
|
contact: createSliceHandle(stateSource, binding.deviceId, "contact"),
|
|
3049
3049
|
control: createSliceHandle(stateSource, binding.deviceId, "control"),
|
|
3050
3050
|
cover: createSliceHandle(stateSource, binding.deviceId, "cover"),
|
|
3051
|
+
dayNight: createSliceHandle(stateSource, binding.deviceId, "day-night"),
|
|
3051
3052
|
deviceDiscovery: createSliceHandle(stateSource, binding.deviceId, "device-discovery"),
|
|
3052
3053
|
deviceStatus: createSliceHandle(stateSource, binding.deviceId, "device-status"),
|
|
3053
3054
|
doorbell: createSliceHandle(stateSource, binding.deviceId, "doorbell"),
|
|
@@ -3060,6 +3061,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3060
3061
|
humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
|
|
3061
3062
|
humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
|
|
3062
3063
|
image: createSliceHandle(stateSource, binding.deviceId, "image"),
|
|
3064
|
+
imageSettings: createSliceHandle(stateSource, binding.deviceId, "image-settings"),
|
|
3063
3065
|
lawnMowerControl: createSliceHandle(stateSource, binding.deviceId, "lawn-mower-control"),
|
|
3064
3066
|
lockControl: createSliceHandle(stateSource, binding.deviceId, "lock-control"),
|
|
3065
3067
|
mediaPlayer: createSliceHandle(stateSource, binding.deviceId, "media-player"),
|
|
@@ -3174,6 +3176,11 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3174
3176
|
setTiltPosition: (input) => dispatch("cover", "cover", "setTiltPosition", "mutation", input),
|
|
3175
3177
|
getStatus: (input) => dispatch("cover", "cover", "getStatus", "query", input)
|
|
3176
3178
|
},
|
|
3179
|
+
dayNight: {
|
|
3180
|
+
getOptions: (input) => dispatch("day-night", "dayNight", "getOptions", "query", input),
|
|
3181
|
+
setSettings: (input) => dispatch("day-night", "dayNight", "setSettings", "mutation", input),
|
|
3182
|
+
getStatus: (input) => dispatch("day-night", "dayNight", "getStatus", "query", input)
|
|
3183
|
+
},
|
|
3177
3184
|
detectionPipeline: {
|
|
3178
3185
|
getDeviceSettingsContribution: (input) => dispatch("detection-pipeline", "detectionPipeline", "getDeviceSettingsContribution", "query", input),
|
|
3179
3186
|
getDeviceLiveContribution: (input) => dispatch("detection-pipeline", "detectionPipeline", "getDeviceLiveContribution", "query", input),
|
|
@@ -3222,6 +3229,11 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3222
3229
|
},
|
|
3223
3230
|
humiditySensor: { getStatus: (input) => dispatch("humidity-sensor", "humiditySensor", "getStatus", "query", input) },
|
|
3224
3231
|
image: { getStatus: (input) => dispatch("image", "image", "getStatus", "query", input) },
|
|
3232
|
+
imageSettings: {
|
|
3233
|
+
getOptions: (input) => dispatch("image-settings", "imageSettings", "getOptions", "query", input),
|
|
3234
|
+
setSettings: (input) => dispatch("image-settings", "imageSettings", "setSettings", "mutation", input),
|
|
3235
|
+
getStatus: (input) => dispatch("image-settings", "imageSettings", "getStatus", "query", input)
|
|
3236
|
+
},
|
|
3225
3237
|
intercom: {
|
|
3226
3238
|
startSession: (input) => dispatch("intercom", "intercom", "startSession", "mutation", input),
|
|
3227
3239
|
handleAnswer: (input) => dispatch("intercom", "intercom", "handleAnswer", "mutation", input),
|
|
@@ -3048,6 +3048,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3048
3048
|
contact: createSliceHandle(stateSource, binding.deviceId, "contact"),
|
|
3049
3049
|
control: createSliceHandle(stateSource, binding.deviceId, "control"),
|
|
3050
3050
|
cover: createSliceHandle(stateSource, binding.deviceId, "cover"),
|
|
3051
|
+
dayNight: createSliceHandle(stateSource, binding.deviceId, "day-night"),
|
|
3051
3052
|
deviceDiscovery: createSliceHandle(stateSource, binding.deviceId, "device-discovery"),
|
|
3052
3053
|
deviceStatus: createSliceHandle(stateSource, binding.deviceId, "device-status"),
|
|
3053
3054
|
doorbell: createSliceHandle(stateSource, binding.deviceId, "doorbell"),
|
|
@@ -3060,6 +3061,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3060
3061
|
humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
|
|
3061
3062
|
humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
|
|
3062
3063
|
image: createSliceHandle(stateSource, binding.deviceId, "image"),
|
|
3064
|
+
imageSettings: createSliceHandle(stateSource, binding.deviceId, "image-settings"),
|
|
3063
3065
|
lawnMowerControl: createSliceHandle(stateSource, binding.deviceId, "lawn-mower-control"),
|
|
3064
3066
|
lockControl: createSliceHandle(stateSource, binding.deviceId, "lock-control"),
|
|
3065
3067
|
mediaPlayer: createSliceHandle(stateSource, binding.deviceId, "media-player"),
|
|
@@ -3174,6 +3176,11 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3174
3176
|
setTiltPosition: (input) => dispatch("cover", "cover", "setTiltPosition", "mutation", input),
|
|
3175
3177
|
getStatus: (input) => dispatch("cover", "cover", "getStatus", "query", input)
|
|
3176
3178
|
},
|
|
3179
|
+
dayNight: {
|
|
3180
|
+
getOptions: (input) => dispatch("day-night", "dayNight", "getOptions", "query", input),
|
|
3181
|
+
setSettings: (input) => dispatch("day-night", "dayNight", "setSettings", "mutation", input),
|
|
3182
|
+
getStatus: (input) => dispatch("day-night", "dayNight", "getStatus", "query", input)
|
|
3183
|
+
},
|
|
3177
3184
|
detectionPipeline: {
|
|
3178
3185
|
getDeviceSettingsContribution: (input) => dispatch("detection-pipeline", "detectionPipeline", "getDeviceSettingsContribution", "query", input),
|
|
3179
3186
|
getDeviceLiveContribution: (input) => dispatch("detection-pipeline", "detectionPipeline", "getDeviceLiveContribution", "query", input),
|
|
@@ -3222,6 +3229,11 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
3222
3229
|
},
|
|
3223
3230
|
humiditySensor: { getStatus: (input) => dispatch("humidity-sensor", "humiditySensor", "getStatus", "query", input) },
|
|
3224
3231
|
image: { getStatus: (input) => dispatch("image", "image", "getStatus", "query", input) },
|
|
3232
|
+
imageSettings: {
|
|
3233
|
+
getOptions: (input) => dispatch("image-settings", "imageSettings", "getOptions", "query", input),
|
|
3234
|
+
setSettings: (input) => dispatch("image-settings", "imageSettings", "setSettings", "mutation", input),
|
|
3235
|
+
getStatus: (input) => dispatch("image-settings", "imageSettings", "getStatus", "query", input)
|
|
3236
|
+
},
|
|
3225
3237
|
intercom: {
|
|
3226
3238
|
startSession: (input) => dispatch("intercom", "intercom", "startSession", "mutation", input),
|
|
3227
3239
|
handleAnswer: (input) => dispatch("intercom", "intercom", "handleAnswer", "mutation", input),
|