@camstack/types 1.2.611 → 1.2.613
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/CHANGELOG.md +13 -0
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/automation/action.d.ts +12 -0
- package/dist/automation/index.d.ts +2 -2
- package/dist/automation/recipe.d.ts +3473 -0
- package/dist/automation/scheduler.d.ts +24 -0
- package/dist/automation/step-runner.d.ts +4 -0
- package/dist/capabilities/action-source.cap.d.ts +6 -0
- package/dist/capabilities/actions.cap.d.ts +42 -0
- package/dist/capabilities/camera-streams.cap.d.ts +2 -0
- package/dist/capabilities/error.cap.d.ts +44 -1
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +26 -0
- package/dist/capabilities/osd-manager.cap.d.ts +6 -0
- package/dist/capabilities/schedulers.cap.d.ts +48 -0
- package/dist/capabilities/schemas/streaming-shared.d.ts +1 -0
- package/dist/capabilities/stream-broker.cap.d.ts +8 -0
- package/dist/capabilities/stream-catalog.cap.d.ts +4 -0
- package/dist/client.js +64 -3
- package/dist/client.mjs +64 -3
- package/dist/device/base-device.d.ts +10 -1
- package/dist/enums/event-category.d.ts +8 -0
- package/dist/enums.js +2 -1
- package/dist/enums.mjs +2 -1
- package/dist/{event-category-7P4A3bYA.mjs → event-category-BEsBTS72.mjs} +8 -0
- package/dist/{event-category-CMA0-jGW.js → event-category-CbY1jgIP.js} +8 -0
- package/dist/generated/addon-api.d.ts +8 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +225 -12
- package/dist/index.mjs +221 -13
- package/dist/interfaces/event-bus.d.ts +11 -0
- package/dist/interfaces/stream-broker.d.ts +7 -0
- package/dist/notification/alert-episode.d.ts +23 -0
- package/dist/notification/system-event-filters.d.ts +1 -1
- package/dist/{runtime-capabilities-CK6y0W5U.mjs → runtime-capabilities-CG61dYnO.mjs} +14 -2
- package/dist/{runtime-capabilities-1FIC5jNX.js → runtime-capabilities-LaTKVCAw.js} +14 -2
- package/package.json +1 -1
|
@@ -1420,6 +1420,17 @@ export interface EventCatalog {
|
|
|
1420
1420
|
readonly deviceId: number;
|
|
1421
1421
|
readonly camStreamId: string;
|
|
1422
1422
|
};
|
|
1423
|
+
/**
|
|
1424
|
+
* The broker re-dialed a source (a declared `maxSessionMs` limit, a
|
|
1425
|
+
* stall): every reader that cannot see the cut itself (the recorder's
|
|
1426
|
+
* writer) recovers now — see `EventCategory.StreamBrokerOnSourceRestart`.
|
|
1427
|
+
*/
|
|
1428
|
+
'stream-broker.onSourceRestart': {
|
|
1429
|
+
readonly deviceId: number;
|
|
1430
|
+
readonly camStreamId: string;
|
|
1431
|
+
readonly brokerId: string;
|
|
1432
|
+
readonly reason: string;
|
|
1433
|
+
};
|
|
1423
1434
|
/**
|
|
1424
1435
|
* Low-latency nudge: a provider changed a device's stream parameters.
|
|
1425
1436
|
* Carries NO authoritative data — the stream-broker re-pulls that device's
|
|
@@ -49,6 +49,13 @@ export interface StreamSource {
|
|
|
49
49
|
* stall is an error).
|
|
50
50
|
*/
|
|
51
51
|
readonly allowStall?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The longest continuous session the source keeps open, in ms. When set, the
|
|
54
|
+
* broker performs a PLANNED re-dial of a live source just before it elapses
|
|
55
|
+
* and announces it to consumers (`onSourceRestart`). Absent = never re-dialed
|
|
56
|
+
* on a timer.
|
|
57
|
+
*/
|
|
58
|
+
readonly maxSessionMs?: number;
|
|
52
59
|
/**
|
|
53
60
|
* When set, the broker ingests this source THROUGH ffmpeg (`-c copy`) instead
|
|
54
61
|
* of a native TS client — the "ffmpeg parser". Carries the transport + operator
|
|
@@ -42,9 +42,32 @@ export declare const AlertEpisodePayloadSchema: z.ZodObject<{
|
|
|
42
42
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
43
43
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
44
44
|
actionUrl: z.ZodOptional<z.ZodString>;
|
|
45
|
+
action: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
label: z.ZodString;
|
|
47
|
+
href: z.ZodOptional<z.ZodString>;
|
|
48
|
+
invoke: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
addonId: z.ZodString;
|
|
50
|
+
action: z.ZodString;
|
|
51
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
navigation: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
app: "app";
|
|
55
|
+
server: "server";
|
|
56
|
+
}>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
faults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
|
+
code: z.ZodString;
|
|
60
|
+
label: z.ZodString;
|
|
61
|
+
severity: z.ZodEnum<{
|
|
62
|
+
error: "error";
|
|
63
|
+
warning: "warning";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
45
66
|
at: z.ZodNumber;
|
|
46
67
|
}, z.core.$strip>;
|
|
47
68
|
export type AlertEpisodePayload = z.infer<typeof AlertEpisodePayloadSchema>;
|
|
69
|
+
/** The alert's own action, as an episode carries it. */
|
|
70
|
+
export type AlertEpisodeAction = NonNullable<AlertEpisodePayload['action']>;
|
|
48
71
|
/** The payload of an `alert.episode` event's `data`, or `null` when it is not one. */
|
|
49
72
|
export declare function parseAlertEpisodePayload(data: unknown): AlertEpisodePayload | null;
|
|
50
73
|
/** An episode is closed once its alert is completed or dismissed. */
|
|
@@ -41,7 +41,7 @@ import { type NcSystemEventKind } from '../capabilities/notification-rules.cap.j
|
|
|
41
41
|
* two sides has to be able to say which field it is talking about without a
|
|
42
42
|
* translation table in the middle.
|
|
43
43
|
*/
|
|
44
|
-
export type NcSystemEventFilterKey = 'deviceIds' | 'deviceTypes' | 'nodeIds' | 'packageNames' | 'consumableLowPercent' | 'commandActions' | 'commandOutcomes' | 'commandActorKinds';
|
|
44
|
+
export type NcSystemEventFilterKey = 'deviceIds' | 'deviceTypes' | 'nodeIds' | 'packageNames' | 'consumableLowPercent' | 'commandActions' | 'commandOutcomes' | 'commandActorKinds' | 'faultCodes';
|
|
45
45
|
/**
|
|
46
46
|
* Every filter, for the callers that must cover all of them (guards, tests).
|
|
47
47
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-BEsBTS72.mjs";
|
|
2
2
|
import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-DIeNz933.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/audio/audio-chunk-format.ts
|
|
@@ -7535,6 +7535,15 @@ var CameraStreamSchema = z.object({
|
|
|
7535
7535
|
*/
|
|
7536
7536
|
autoEligible: z.boolean().optional(),
|
|
7537
7537
|
/**
|
|
7538
|
+
* The longest continuous session the SOURCE will keep open, in ms, declared by
|
|
7539
|
+
* the provider that knows it (a hub that cuts every child's session on a
|
|
7540
|
+
* timer). Absent = no limit. The broker re-dials a live source a little
|
|
7541
|
+
* BEFORE this elapses, on its own terms and announced to consumers, so the
|
|
7542
|
+
* source's cut never lands mid-recording. Declare slightly under what was
|
|
7543
|
+
* observed.
|
|
7544
|
+
*/
|
|
7545
|
+
maxSessionMs: z.number().int().positive().optional(),
|
|
7546
|
+
/**
|
|
7538
7547
|
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
7539
7548
|
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
7540
7549
|
* stream. Consulted by the broker's automatic ranking
|
|
@@ -22987,7 +22996,10 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
22987
22996
|
const doorbellInterface = { getStatus: (input, options) => dispatch("doorbell", "doorbell", "getStatus", "query", input, void 0, options) };
|
|
22988
22997
|
const energySystemInterface = { getStatus: (input, options) => dispatch("energy-system", "energySystem", "getStatus", "query", input, void 0, options) };
|
|
22989
22998
|
const enumSensorInterface = { getStatus: (input, options) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input, void 0, options) };
|
|
22990
|
-
const errorInterface = {
|
|
22999
|
+
const errorInterface = {
|
|
23000
|
+
listFaultTypes: (input, options) => dispatch("error", "error", "listFaultTypes", "query", input, void 0, options),
|
|
23001
|
+
getStatus: (input, options) => dispatch("error", "error", "getStatus", "query", input, void 0, options)
|
|
23002
|
+
};
|
|
22991
23003
|
const eventEmitterInterface = { getStatus: (input, options) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input, void 0, options) };
|
|
22992
23004
|
const fanControlInterface = {
|
|
22993
23005
|
setPercentage: (input, options) => dispatch("fan-control", "fanControl", "setPercentage", "mutation", input, void 0, options),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_event_category = require("./event-category-
|
|
1
|
+
const require_event_category = require("./event-category-CbY1jgIP.js");
|
|
2
2
|
const require_composed_stable_id = require("./composed-stable-id-DkF5-kuf.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region src/audio/audio-chunk-format.ts
|
|
@@ -7535,6 +7535,15 @@ var CameraStreamSchema = zod.z.object({
|
|
|
7535
7535
|
*/
|
|
7536
7536
|
autoEligible: zod.z.boolean().optional(),
|
|
7537
7537
|
/**
|
|
7538
|
+
* The longest continuous session the SOURCE will keep open, in ms, declared by
|
|
7539
|
+
* the provider that knows it (a hub that cuts every child's session on a
|
|
7540
|
+
* timer). Absent = no limit. The broker re-dials a live source a little
|
|
7541
|
+
* BEFORE this elapses, on its own terms and announced to consumers, so the
|
|
7542
|
+
* source's cut never lands mid-recording. Declare slightly under what was
|
|
7543
|
+
* observed.
|
|
7544
|
+
*/
|
|
7545
|
+
maxSessionMs: zod.z.number().int().positive().optional(),
|
|
7546
|
+
/**
|
|
7538
7547
|
* The profile slot the PUBLISHER says this stream is: `low` for a stream
|
|
7539
7548
|
* whose only sensible role is the low-bandwidth one, `high` for a main
|
|
7540
7549
|
* stream. Consulted by the broker's automatic ranking
|
|
@@ -22987,7 +22996,10 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
22987
22996
|
const doorbellInterface = { getStatus: (input, options) => dispatch("doorbell", "doorbell", "getStatus", "query", input, void 0, options) };
|
|
22988
22997
|
const energySystemInterface = { getStatus: (input, options) => dispatch("energy-system", "energySystem", "getStatus", "query", input, void 0, options) };
|
|
22989
22998
|
const enumSensorInterface = { getStatus: (input, options) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input, void 0, options) };
|
|
22990
|
-
const errorInterface = {
|
|
22999
|
+
const errorInterface = {
|
|
23000
|
+
listFaultTypes: (input, options) => dispatch("error", "error", "listFaultTypes", "query", input, void 0, options),
|
|
23001
|
+
getStatus: (input, options) => dispatch("error", "error", "getStatus", "query", input, void 0, options)
|
|
23002
|
+
};
|
|
22991
23003
|
const eventEmitterInterface = { getStatus: (input, options) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input, void 0, options) };
|
|
22992
23004
|
const fanControlInterface = {
|
|
22993
23005
|
setPercentage: (input, options) => dispatch("fan-control", "fanControl", "setPercentage", "mutation", input, void 0, options),
|