@camstack/types 1.2.584 → 1.2.586
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 +20 -1
- package/dist/addon/instance-link.d.ts +3 -1
- package/dist/addon.d.ts +3 -2
- package/dist/addon.js +3 -1
- package/dist/addon.mjs +2 -2
- package/dist/audit/command-origin-claim.d.ts +33 -0
- package/dist/audit/device-transition.d.ts +35 -2
- package/dist/capabilities/capability-definition.d.ts +2 -1
- package/dist/capabilities/device-transitions.cap.d.ts +44 -0
- package/dist/capabilities/index.d.ts +6 -3
- package/dist/capabilities/notification-rules.cap.d.ts +70 -0
- package/dist/capabilities/siren-duration.d.ts +15 -0
- package/dist/capabilities/siren.cap.d.ts +175 -0
- package/dist/capabilities/tags.cap.d.ts +42 -16
- package/dist/capabilities/terminal-session.cap.d.ts +7 -1
- package/dist/client.js +682 -614
- package/dist/client.mjs +682 -614
- package/dist/generated/addon-api.d.ts +50 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/cap-vocabulary.d.ts +1 -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/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- 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/generated/system-proxy.d.ts +1 -1
- package/dist/helpers/trpc-leaf.d.ts +4 -3
- package/dist/index.js +387 -17
- package/dist/index.mjs +373 -18
- package/dist/notification/timelapse-rule.d.ts +3 -0
- package/dist/{sleep-DnhxKL99.mjs → sleep-Ch7Q7UtE.mjs} +728 -620
- package/dist/{sleep-Coq9CYAH.js → sleep-DwRtgB2i.js} +739 -619
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.586] - 2026-11-16
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Notification rules have an optional tags field and a setRuleTags method; tag counts include notification rules
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- terminalSession.listSessions names who opened each session (openedBy) and when it last saw input or output (lastActivityAt).
|
|
19
|
+
- Summaries, timelapses and calendar-events rules carry tags too; the tags list shows an unreachable owner's count as unknown
|
|
20
|
+
|
|
21
|
+
## [1.2.585] - 2026-11-16
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- A kind that does not say whether it can be tested now follows its own provider, so Calendar, Alexa, Matter and Home Assistant integration rows no longer offer a Test that answered 'no connection test'
|
|
26
|
+
- Device Interactions can record which ecosystem principal an exporter acted for.
|
|
27
|
+
- A device proxy command accepts an optional call origin, so an exporter can state who it acted for.
|
|
28
|
+
- New timed siren capability: sound a siren for a chosen duration and read until when it sounds
|
|
29
|
+
|
|
10
30
|
## [1.2.584] - 2026-11-16
|
|
11
31
|
|
|
12
32
|
### Changed
|
|
@@ -172,7 +192,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
172
192
|
- A cluster update can name a server install that stalled or hit its time limit.
|
|
173
193
|
### Changed
|
|
174
194
|
|
|
175
|
-
|
|
176
195
|
## [1.2.562] - 2026-11-13
|
|
177
196
|
|
|
178
197
|
### Added
|
|
@@ -12,7 +12,7 @@ import type { DefinedRecordKind } from '../records/record-kind.js';
|
|
|
12
12
|
import type { RecordsAccess } from '../records/records-access.js';
|
|
13
13
|
import type { InstanceUserFinder } from './instance-in-use.js';
|
|
14
14
|
import { linkField, linksOfKind, optionalLinkField, type KindLink, type LinkTarget } from './instance-link-meta.js';
|
|
15
|
-
import { type InstanceBody, type InstanceChange, RecordIntegrationInstances } from './record-integration-instances.js';
|
|
15
|
+
import { type InstanceBody, type InstanceChange, RecordIntegrationInstances, type RecordIntegrationInstancesHooks } from './record-integration-instances.js';
|
|
16
16
|
export { linkField, linksOfKind, optionalLinkField };
|
|
17
17
|
export type { KindLink, LinkTarget };
|
|
18
18
|
type FormSections = ConfigUISchema['sections'];
|
|
@@ -74,6 +74,8 @@ export interface LinkedInstancesSpec<TBody extends InstanceBody> {
|
|
|
74
74
|
* a field of the kind's own that has no sensible empty value.
|
|
75
75
|
*/
|
|
76
76
|
readonly alsoConfigured?: (body: TBody) => boolean;
|
|
77
|
+
/** The kind's Test (draft values in, one verdict out); absent: the kind is not testable. */
|
|
78
|
+
readonly test?: RecordIntegrationInstancesHooks<TBody>['test'];
|
|
77
79
|
/** The id of a new instance when the caller sent none; absent refuses such a create. */
|
|
78
80
|
readonly mintId?: (input: {
|
|
79
81
|
readonly name: string;
|
package/dist/addon.d.ts
CHANGED
|
@@ -22,8 +22,9 @@ export { MIGRATION_API_VERSION } from './migrations/api/migration-api-version.js
|
|
|
22
22
|
export { ErrorI18nPayloadSchema, readErrorI18n } from './i18n/camstack-error.js';
|
|
23
23
|
export type { ErrorI18nPayload } from './i18n/camstack-error.js';
|
|
24
24
|
export { commandOrigin, nodePin, readCommandOrigin, readNodePin } from './cap-call-context.js';
|
|
25
|
-
export {
|
|
26
|
-
export
|
|
25
|
+
export type { CommandOriginRequestOptions } from './cap-call-context.js';
|
|
26
|
+
export { CommandOriginClaimSchema, OnBehalfSchema, OnBehalfSourceSchema, RuleFireOriginSchema, ruleFireOfClaim, } from './audit/command-origin-claim.js';
|
|
27
|
+
export type { CommandOriginClaim, OnBehalf, OnBehalfSource, RuleFireOrigin, } from './audit/command-origin-claim.js';
|
|
27
28
|
export { isCommand } from './device/cap-vocabulary/command-catalog.js';
|
|
28
29
|
export { nodeIdOfScopedKey, resolveDeviceSettings, resolvedValues, SCOPED_SETTINGS_SCOPES, } from './addon/scoped-settings.js';
|
|
29
30
|
export type { DeviceSettingsLayers, ResolvedSetting, ResolvedSettings, ScopedSettings, ScopedSettingsDeclaration, ScopedSettingsScope, SettingSource, } from './addon/scoped-settings.js';
|
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-DwRtgB2i.js");
|
|
3
3
|
const require_event_category = require("./event-category-d9kiqCqC.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -572,6 +572,8 @@ exports.MIGRATION_API_VERSION = require_sleep.MIGRATION_API_VERSION;
|
|
|
572
572
|
exports.MIN_SCRUBBED_LENGTH = require_sleep.MIN_SCRUBBED_LENGTH;
|
|
573
573
|
exports.MODEL_FORMATS = require_sleep.MODEL_FORMATS;
|
|
574
574
|
exports.NoCallerError = require_sleep.NoCallerError;
|
|
575
|
+
exports.OnBehalfSchema = require_sleep.OnBehalfSchema;
|
|
576
|
+
exports.OnBehalfSourceSchema = require_sleep.OnBehalfSourceSchema;
|
|
575
577
|
exports.PEER_BYTES_CHUNK_BYTES = require_sleep.PEER_BYTES_CHUNK_BYTES;
|
|
576
578
|
exports.PEER_BYTES_MAX_OUTSTANDING = require_sleep.PEER_BYTES_MAX_OUTSTANDING;
|
|
577
579
|
exports.PEER_BYTES_STALL_MS = require_sleep.PEER_BYTES_STALL_MS;
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as DEVICE_CHILDREN_BATCH_MAX, $
|
|
1
|
+
import { $ as DEVICE_CHILDREN_BATCH_MAX, $r as recordArrayItemPath, A as CAP_ADVANCE_FIELDS, Ai as FilterRequiredError, An as scrubKnownSecrets, Bi as RecordsError, Bn as DisposerChain, Ci as normalizeSecretOwner, Cn as REVALIDATE_AFTER_MS, Cr as BaseAddon, Dn as forgetKnownSecret, En as clearKnownSecrets, Er as normalizeAddonInitResult, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RECORDS_ERROR_CODES, Fn as PEER_BYTES_TICKET_TTL_MS, G as readNodePin, Gi as asRecordsError, Gn as RecordIndexSchema, H as commandOrigin, Hi as TransactRefusedError, Hn as entryBody, I as customAction, Ii as RecordNotFoundError, Ir as SCOPED_SETTINGS_SCOPES, J as PipelineRunResultBridge, Jn as RecordRetentionSchema, Jr as secretViewsOf, Ki as recordsErrorFromMessage, Kn as RecordKindDeclarationSchema, L as defineCustomActions, Li as RecordSecretUnavailableError, Ln as CALLER_USERNAME_HEADER, Lr as nodeIdOfScopedKey, Mi as InvalidRecordError, Mn as PEER_BYTES_CHUNK_BYTES, N as CAP_STATE_LEAVES, Ni as NoCallerError, Nn as PEER_BYTES_MAX_OUTSTANDING, O as HF_REPO, Oa as AddonMigrationsBlockedError, Oi as BatchTooLargeError, On as knownSecretCount, P as CALLER_STAMPED_CAPABILITIES, Pi as PlaintextSecretError, Pn as PEER_BYTES_STALL_MS, Q as deviceOpsCapability, Qn as defineRecordKinds, Qr as parseSecretPath, R as describeCustomActions, Ri as RecordTooLargeError, Rn as DATAPLANE_SECRET_HEADER, Rr as resolveDeviceSettings, Si as isSecretRef, Sn as resolveSecretViewsIn, T as isCommand, Tn as MIN_SCRUBBED_LENGTH, U as nodePin, Ui as UnindexedFilterError, Un as EntryDescriptorSchema, Vi as RevConflictError, Vn as defineEntryKind, W as readCommandOrigin, Wi as UnknownRecordKindError, Wn as RecordFieldPathSchema, X as MIGRATION_API_VERSION, Xn as assertValidDeclaration, Xr as collectSecretLeaves, Y as PipelineStepInputSchema, Yn as StoredRecordKindDeclarationSchema, Yr as REMOVE_LEAF, Zn as declarationsOf, Zr as mapSecretLeaves, _a as isSecretMarker, _i as SECRET_REF_SCHEME, _n as RuleFireOriginSchema, ai as RECORD_CLASSES, ba as toSecretFieldView, bi as formatSecretScope, bn as createRecordsAccess, c as asString, ci as RECORD_DELETE_BATCH, d as parseJsonUnknown, di as RECORD_MAX_INDEXES, ei as recordSecretCollection, er as collectZodSecretPaths, et as adminUiCapability, f as hfModelUrl, fi as RECORD_MAX_INDEX_FIELDS, g as createDeviceProxy, ga as isSecretFieldView, gi as RECORD_SWEEP_INTERVAL_MS, gn as OnBehalfSourceSchema, h as isDeviceScopedCap, ha as isSecretClear, hi as RECORD_SETTINGS_MAX_ROWS, hn as OnBehalfSchema, ht as ReadinessTimeoutError, ii as RECORD_BATCH_MAX_BYTES, j as CAP_METHOD_TIMEOUTS_MS, ji as ForeignSecretMarkerError, jn as shortSecretRefHash, ka as findMigrationsBlocked, ki as DeclarationRefusedError, kn as registerKnownSecret, li as RECORD_ID_MAX_LENGTH, lr as expandCapMethods, m as DEVICE_SCOPED_CAPS, ma as classifySecretWrite, mi as RECORD_SECRET_COLLECTION_PREFIX, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, na as createEvent, ni as secretArrayPrefixes, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DATABASES, p as BOOT_RECOVERY_BACKOFF_MS, pa as SECRET_CLEAR, pi as RECORD_QUERY_MAX, pt as MODEL_FORMATS, q as viewerUiCapability, qn as RecordKindNameSchema, r as maskUrlCredentials, ra as emitReadiness, ri as RECORD_BATCH_MAX, si as RECORD_DEFAULT_MAX_DATA_BYTES, t as sleep, ti as recordSecretRef, tr as isZodSecret, ui as RECORD_MAX_DATA_BYTES, v as addonSliceHandleApi, va as isSecretMarkerLike, vi as arrayItemFieldPath, vn as ruleFireOfClaim, vr as ErrorI18nPayloadSchema, vt as scopeKey, wi as parseSecretRef, wn as createSecretsAccess, xi as globalSecretScope, xn as assertTransactScope, xr as readErrorI18n, y as createEventBusSliceSource, ya as makeSecretMarker, yi as buildSecretRef, yn as makeInMemoryRecords, zi as RecordUniqueViolationError, zr as resolvedValues } from "./sleep-Ch7Q7UtE.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
|
|
3
3
|
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-RvQIEpqg.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -541,4 +541,4 @@ function isProviderOptionalMethodName(capName, method) {
|
|
|
541
541
|
return methods !== void 0 && methods.includes(method);
|
|
542
542
|
}
|
|
543
543
|
//#endregion
|
|
544
|
-
export { AddonMigrationsBlockedError, BOOT_RECOVERY_BACKOFF_MS, BaseAddon, BatchTooLargeError, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAP_ADVANCE_FIELDS, CAP_INPUT_DEFAULTS, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_LEAVES, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_SCOPED_CAPS, DeclarationRefusedError, DeviceType, DisposerChain, EntryDescriptorSchema, ErrorI18nPayloadSchema, EventCategory, FilterRequiredError, ForeignSecretMarkerError, HF_REPO, InvalidRecordError, MIGRATION_API_VERSION, MIN_SCRUBBED_LENGTH, MODEL_FORMATS, NoCallerError, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PROVIDER_OPTIONAL_METHODS, PipelineRunResultBridge, PipelineStepInputSchema, PlaintextSecretError, RECORDS_ERROR_CODES, RECORD_BATCH_MAX, RECORD_BATCH_MAX_BYTES, RECORD_CLASSES, RECORD_DATABASES, RECORD_DEFAULT_MAX_DATA_BYTES, RECORD_DELETE_BATCH, RECORD_ID_MAX_LENGTH, RECORD_MAX_DATA_BYTES, RECORD_MAX_INDEXES, RECORD_MAX_INDEX_FIELDS, RECORD_QUERY_MAX, RECORD_SECRET_COLLECTION_PREFIX, RECORD_SETTINGS_MAX_ROWS, RECORD_SWEEP_INTERVAL_MS, REMOVE_LEAF, REVALIDATE_AFTER_MS, ReadinessRegistry, ReadinessTimeoutError, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordRetentionSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordUniqueViolationError, RecordsError, RevConflictError, RuleFireOriginSchema, SCOPED_SETTINGS_SCOPES, SECRET_CLEAR, SECRET_REF_SCHEME, StoredRecordKindDeclarationSchema, TransactRefusedError, UnindexedFilterError, UnknownRecordKindError, addonPagesSourceCapability, addonSliceHandleApi, adminUiCapability, arrayItemFieldPath, asJsonObject, asRecordsError, asString, assertTransactScope, assertValidDeclaration, buildSecretRef, classifySecretWrite, clearKnownSecrets, collectSecretLeaves, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, customAction, declarationsOf, defineCustomActions, defineEntryKind, defineRecordKinds, describeCustomActions, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, findMigrationsBlocked, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCollectionArrayMethodName, isCommand, isDeviceScopedCap, isProviderOptionalMethodName, isSecretClear, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isZodSecret, knownSecretCount, makeInMemoryRecords, makeSecretMarker, mapSecretLeaves, maskUrlCredentials, nodeIdOfScopedKey, nodePin, normalizeAddonInitResult, normalizeSecretOwner, parseJsonUnknown, parseSecretPath, parseSecretRef, readCommandOrigin, readErrorI18n, readNodePin, recordArrayItemPath, recordSecretCollection, recordSecretRef, recordsErrorFromMessage, registerKnownSecret, resolveDeviceSettings, resolveSecretViewsIn, resolvedValues, ruleFireOfClaim, scopeKey, scrubKnownSecrets, secretArrayPrefixes, secretViewsOf, shortSecretRefHash, sleep, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
|
|
544
|
+
export { AddonMigrationsBlockedError, BOOT_RECOVERY_BACKOFF_MS, BaseAddon, BatchTooLargeError, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAP_ADVANCE_FIELDS, CAP_INPUT_DEFAULTS, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_LEAVES, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_SCOPED_CAPS, DeclarationRefusedError, DeviceType, DisposerChain, EntryDescriptorSchema, ErrorI18nPayloadSchema, EventCategory, FilterRequiredError, ForeignSecretMarkerError, HF_REPO, InvalidRecordError, MIGRATION_API_VERSION, MIN_SCRUBBED_LENGTH, MODEL_FORMATS, NoCallerError, OnBehalfSchema, OnBehalfSourceSchema, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PROVIDER_OPTIONAL_METHODS, PipelineRunResultBridge, PipelineStepInputSchema, PlaintextSecretError, RECORDS_ERROR_CODES, RECORD_BATCH_MAX, RECORD_BATCH_MAX_BYTES, RECORD_CLASSES, RECORD_DATABASES, RECORD_DEFAULT_MAX_DATA_BYTES, RECORD_DELETE_BATCH, RECORD_ID_MAX_LENGTH, RECORD_MAX_DATA_BYTES, RECORD_MAX_INDEXES, RECORD_MAX_INDEX_FIELDS, RECORD_QUERY_MAX, RECORD_SECRET_COLLECTION_PREFIX, RECORD_SETTINGS_MAX_ROWS, RECORD_SWEEP_INTERVAL_MS, REMOVE_LEAF, REVALIDATE_AFTER_MS, ReadinessRegistry, ReadinessTimeoutError, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordRetentionSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordUniqueViolationError, RecordsError, RevConflictError, RuleFireOriginSchema, SCOPED_SETTINGS_SCOPES, SECRET_CLEAR, SECRET_REF_SCHEME, StoredRecordKindDeclarationSchema, TransactRefusedError, UnindexedFilterError, UnknownRecordKindError, addonPagesSourceCapability, addonSliceHandleApi, adminUiCapability, arrayItemFieldPath, asJsonObject, asRecordsError, asString, assertTransactScope, assertValidDeclaration, buildSecretRef, classifySecretWrite, clearKnownSecrets, collectSecretLeaves, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, customAction, declarationsOf, defineCustomActions, defineEntryKind, defineRecordKinds, describeCustomActions, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, findMigrationsBlocked, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCollectionArrayMethodName, isCommand, isDeviceScopedCap, isProviderOptionalMethodName, isSecretClear, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isZodSecret, knownSecretCount, makeInMemoryRecords, makeSecretMarker, mapSecretLeaves, maskUrlCredentials, nodeIdOfScopedKey, nodePin, normalizeAddonInitResult, normalizeSecretOwner, parseJsonUnknown, parseSecretPath, parseSecretRef, readCommandOrigin, readErrorI18n, readNodePin, recordArrayItemPath, recordSecretCollection, recordSecretRef, recordsErrorFromMessage, registerKnownSecret, resolveDeviceSettings, resolveSecretViewsIn, resolvedValues, ruleFireOfClaim, scopeKey, scrubKnownSecrets, secretArrayPrefixes, secretViewsOf, shortSecretRefHash, sleep, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
|
|
@@ -28,6 +28,28 @@ export declare const RuleFireOriginSchema: z.ZodObject<{
|
|
|
28
28
|
}, z.core.$strip>>>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
export type RuleFireOrigin = z.infer<typeof RuleFireOriginSchema>;
|
|
31
|
+
/** The ecosystems an exporter speaks for. */
|
|
32
|
+
export declare const OnBehalfSourceSchema: z.ZodEnum<{
|
|
33
|
+
alexa: "alexa";
|
|
34
|
+
google: "google";
|
|
35
|
+
homeassistant: "homeassistant";
|
|
36
|
+
homekit: "homekit";
|
|
37
|
+
matter: "matter";
|
|
38
|
+
}>;
|
|
39
|
+
export type OnBehalfSource = z.infer<typeof OnBehalfSourceSchema>;
|
|
40
|
+
/** WHO an exporter acts for: the ecosystem and the principal it reported, never invented. */
|
|
41
|
+
export declare const OnBehalfSchema: z.ZodObject<{
|
|
42
|
+
source: z.ZodEnum<{
|
|
43
|
+
alexa: "alexa";
|
|
44
|
+
google: "google";
|
|
45
|
+
homeassistant: "homeassistant";
|
|
46
|
+
homekit: "homekit";
|
|
47
|
+
matter: "matter";
|
|
48
|
+
}>;
|
|
49
|
+
principalId: z.ZodString;
|
|
50
|
+
principalName: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type OnBehalf = z.infer<typeof OnBehalfSchema>;
|
|
31
53
|
/** Where a command's origin claim comes from: an addon states WHY it called, never WHO it is. */
|
|
32
54
|
export declare const CommandOriginClaimSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
55
|
kind: z.ZodLiteral<"action">;
|
|
@@ -85,6 +107,17 @@ export declare const CommandOriginClaimSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
85
107
|
cameraId: z.ZodNumber;
|
|
86
108
|
}, z.core.$strip>>>;
|
|
87
109
|
}, z.core.$strip>;
|
|
110
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
111
|
+
source: z.ZodEnum<{
|
|
112
|
+
alexa: "alexa";
|
|
113
|
+
google: "google";
|
|
114
|
+
homeassistant: "homeassistant";
|
|
115
|
+
homekit: "homekit";
|
|
116
|
+
matter: "matter";
|
|
117
|
+
}>;
|
|
118
|
+
principalId: z.ZodString;
|
|
119
|
+
principalName: z.ZodOptional<z.ZodString>;
|
|
120
|
+
kind: z.ZodLiteral<"on-behalf">;
|
|
88
121
|
}, z.core.$strip>], "kind">;
|
|
89
122
|
export type CommandOriginClaim = z.infer<typeof CommandOriginClaimSchema>;
|
|
90
123
|
/** The rule fire a claim carries, if it carries one. */
|
|
@@ -27,6 +27,17 @@ export declare const TransitionActorSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
27
27
|
kind: z.ZodLiteral<"addon">;
|
|
28
28
|
addonId: z.ZodString;
|
|
29
29
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
onBehalf: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
source: z.ZodEnum<{
|
|
32
|
+
alexa: "alexa";
|
|
33
|
+
google: "google";
|
|
34
|
+
homeassistant: "homeassistant";
|
|
35
|
+
homekit: "homekit";
|
|
36
|
+
matter: "matter";
|
|
37
|
+
}>;
|
|
38
|
+
principalId: z.ZodString;
|
|
39
|
+
principalName: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
30
41
|
}, z.core.$strip>, z.ZodObject<{
|
|
31
42
|
kind: z.ZodLiteral<"action">;
|
|
32
43
|
addonId: z.ZodString;
|
|
@@ -105,6 +116,17 @@ export declare const DeviceTransitionSchema: z.ZodObject<{
|
|
|
105
116
|
kind: z.ZodLiteral<"addon">;
|
|
106
117
|
addonId: z.ZodString;
|
|
107
118
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
onBehalf: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
source: z.ZodEnum<{
|
|
121
|
+
alexa: "alexa";
|
|
122
|
+
google: "google";
|
|
123
|
+
homeassistant: "homeassistant";
|
|
124
|
+
homekit: "homekit";
|
|
125
|
+
matter: "matter";
|
|
126
|
+
}>;
|
|
127
|
+
principalId: z.ZodString;
|
|
128
|
+
principalName: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
108
130
|
}, z.core.$strip>, z.ZodObject<{
|
|
109
131
|
kind: z.ZodLiteral<"action">;
|
|
110
132
|
addonId: z.ZodString;
|
|
@@ -165,6 +187,17 @@ export declare const DeviceCommandSettledEventSchema: z.ZodObject<{
|
|
|
165
187
|
kind: z.ZodLiteral<"addon">;
|
|
166
188
|
addonId: z.ZodString;
|
|
167
189
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
190
|
+
onBehalf: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
source: z.ZodEnum<{
|
|
192
|
+
alexa: "alexa";
|
|
193
|
+
google: "google";
|
|
194
|
+
homeassistant: "homeassistant";
|
|
195
|
+
homekit: "homekit";
|
|
196
|
+
matter: "matter";
|
|
197
|
+
}>;
|
|
198
|
+
principalId: z.ZodString;
|
|
199
|
+
principalName: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
168
201
|
}, z.core.$strip>, z.ZodObject<{
|
|
169
202
|
kind: z.ZodLiteral<"action">;
|
|
170
203
|
addonId: z.ZodString;
|
|
@@ -187,8 +220,8 @@ export declare const DeviceCommandSettledEventSchema: z.ZodObject<{
|
|
|
187
220
|
at: z.ZodNumber;
|
|
188
221
|
}, z.core.$strip>;
|
|
189
222
|
export type DeviceCommandSettledEvent = z.infer<typeof DeviceCommandSettledEventSchema>;
|
|
190
|
-
export { CommandOriginClaimSchema, RuleFireOriginSchema, ruleFireOfClaim, } from './command-origin-claim.js';
|
|
191
|
-
export type { CommandOriginClaim, RuleFireOrigin } from './command-origin-claim.js';
|
|
223
|
+
export { CommandOriginClaimSchema, OnBehalfSchema, OnBehalfSourceSchema, RuleFireOriginSchema, ruleFireOfClaim, } from './command-origin-claim.js';
|
|
224
|
+
export type { CommandOriginClaim, OnBehalf, OnBehalfSource, RuleFireOrigin, } from './command-origin-claim.js';
|
|
192
225
|
/** The actor of a command: every kind but `device`, which is what nobody asked for. */
|
|
193
226
|
export type CommandActor = Exclude<TransitionActor, {
|
|
194
227
|
readonly kind: 'device';
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { z } from 'zod';
|
|
15
15
|
import { type DeviceRole, DeviceType } from '../device/device-type.js';
|
|
16
|
+
import type { CommandOriginRequestOptions } from '../cap-call-context.js';
|
|
16
17
|
import type { ConfigUISchemaWithValues } from '../interfaces/config-ui.js';
|
|
17
18
|
import type { ExtensionSlotDescriptor } from '../device-extension/slot-descriptor.js';
|
|
18
19
|
import type { MethodRoleDecl } from '../auth/viewer-access.js';
|
|
@@ -1213,7 +1214,7 @@ export type InferEvents<T extends CapabilityDefinition> = T['events'] extends Re
|
|
|
1213
1214
|
* the push-based shape, without `deviceId` in the input payload.
|
|
1214
1215
|
*/
|
|
1215
1216
|
export type InferDeviceProxyCap<T extends CapabilityDefinition> = {
|
|
1216
|
-
readonly [K in keyof T['methods']]: T['methods'][K] extends CapabilityMethodSchema<infer TIn, infer TOut> ? T['methods'][K]['kind'] extends 'subscription' ? (input: Omit<z.infer<TIn>, 'deviceId'>, push: (value: z.infer<TOut>) => void) => (() => void) | void : (input: Omit<z.infer<TIn>, 'deviceId'
|
|
1217
|
+
readonly [K in keyof T['methods']]: T['methods'][K] extends CapabilityMethodSchema<infer TIn, infer TOut> ? T['methods'][K]['kind'] extends 'subscription' ? (input: Omit<z.infer<TIn>, 'deviceId'>, push: (value: z.infer<TOut>) => void) => (() => void) | void : (input: Omit<z.infer<TIn>, 'deviceId'>, options?: CommandOriginRequestOptions) => Promise<z.infer<TOut>> : never;
|
|
1217
1218
|
} & (T['status'] extends {
|
|
1218
1219
|
schema: infer S;
|
|
1219
1220
|
} ? {
|
|
@@ -106,6 +106,17 @@ export declare const deviceTransitionsCapability: {
|
|
|
106
106
|
kind: z.ZodLiteral<"addon">;
|
|
107
107
|
addonId: z.ZodString;
|
|
108
108
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
109
|
+
onBehalf: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
source: z.ZodEnum<{
|
|
111
|
+
alexa: "alexa";
|
|
112
|
+
google: "google";
|
|
113
|
+
homeassistant: "homeassistant";
|
|
114
|
+
homekit: "homekit";
|
|
115
|
+
matter: "matter";
|
|
116
|
+
}>;
|
|
117
|
+
principalId: z.ZodString;
|
|
118
|
+
principalName: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
109
120
|
}, z.core.$strip>, z.ZodObject<{
|
|
110
121
|
kind: z.ZodLiteral<"action">;
|
|
111
122
|
addonId: z.ZodString;
|
|
@@ -168,6 +179,17 @@ export declare const deviceTransitionsCapability: {
|
|
|
168
179
|
kind: z.ZodLiteral<"addon">;
|
|
169
180
|
addonId: z.ZodString;
|
|
170
181
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
182
|
+
onBehalf: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
source: z.ZodEnum<{
|
|
184
|
+
alexa: "alexa";
|
|
185
|
+
google: "google";
|
|
186
|
+
homeassistant: "homeassistant";
|
|
187
|
+
homekit: "homekit";
|
|
188
|
+
matter: "matter";
|
|
189
|
+
}>;
|
|
190
|
+
principalId: z.ZodString;
|
|
191
|
+
principalName: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
171
193
|
}, z.core.$strip>, z.ZodObject<{
|
|
172
194
|
kind: z.ZodLiteral<"action">;
|
|
173
195
|
addonId: z.ZodString;
|
|
@@ -248,6 +270,17 @@ export declare const deviceTransitionsCapability: {
|
|
|
248
270
|
kind: z.ZodLiteral<"addon">;
|
|
249
271
|
addonId: z.ZodString;
|
|
250
272
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
273
|
+
onBehalf: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
source: z.ZodEnum<{
|
|
275
|
+
alexa: "alexa";
|
|
276
|
+
google: "google";
|
|
277
|
+
homeassistant: "homeassistant";
|
|
278
|
+
homekit: "homekit";
|
|
279
|
+
matter: "matter";
|
|
280
|
+
}>;
|
|
281
|
+
principalId: z.ZodString;
|
|
282
|
+
principalName: z.ZodOptional<z.ZodString>;
|
|
283
|
+
}, z.core.$strip>>;
|
|
251
284
|
}, z.core.$strip>, z.ZodObject<{
|
|
252
285
|
kind: z.ZodLiteral<"action">;
|
|
253
286
|
addonId: z.ZodString;
|
|
@@ -311,6 +344,17 @@ export declare const deviceTransitionsCapability: {
|
|
|
311
344
|
kind: z.ZodLiteral<"addon">;
|
|
312
345
|
addonId: z.ZodString;
|
|
313
346
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
347
|
+
onBehalf: z.ZodOptional<z.ZodObject<{
|
|
348
|
+
source: z.ZodEnum<{
|
|
349
|
+
alexa: "alexa";
|
|
350
|
+
google: "google";
|
|
351
|
+
homeassistant: "homeassistant";
|
|
352
|
+
homekit: "homekit";
|
|
353
|
+
matter: "matter";
|
|
354
|
+
}>;
|
|
355
|
+
principalId: z.ZodString;
|
|
356
|
+
principalName: z.ZodOptional<z.ZodString>;
|
|
357
|
+
}, z.core.$strip>>;
|
|
314
358
|
}, z.core.$strip>, z.ZodObject<{
|
|
315
359
|
kind: z.ZodLiteral<"action">;
|
|
316
360
|
addonId: z.ZodString;
|
|
@@ -111,7 +111,7 @@ export { BoardKeyFailureReasonSchema, boardKeySourceCapability } from './board-k
|
|
|
111
111
|
export type { NetworkAccessStatus, NetworkEndpoint, NetworkTunnelStartedData, } from './network-access.cap.js';
|
|
112
112
|
export { NetworkAccessStatusSchema, NetworkEndpointSchema, NetworkTunnelStartedDataSchema, networkAccessCapability, } from './network-access.cap.js';
|
|
113
113
|
export { type Attachment, type AttachmentMediaType, AttachmentMediaTypeSchema, AttachmentSchema, type DeliveryParam, DeliveryParamSchema, type DeliveryParamValue, DeliveryParamValueSchema, type DiscoveredTarget, DiscoveredTargetSchema, type INotificationOutputProvider, type NotificationAction, type NotificationActionIcon, NotificationActionIconSchema, NotificationActionSchema, type NotificationField, NotificationFieldSchema, type NotificationFormat, NotificationFormatSchema, NotificationSchema, notificationOutputCapability, type ProbeTargetConfigResult, ProbeTargetConfigResultSchema, type RenderedAs, RenderedAsSchema, type SendResult, SendResultSchema, type Target, type TargetKind, type TargetKindCaps, TargetKindCapsSchema, type TargetKindLevel, TargetKindLevelSchema, TargetKindSchema, type TargetKindTextCaps, TargetKindTextCapsSchema, TargetSchema, type TestResult, TestResultSchema, } from './notification-output.cap.js';
|
|
114
|
-
export { consumableLowPercentOf, type INotificationRulesProvider, isRetiredClearKey, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_NONBLOCKING_MAX, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_LEGACY_SYSTEM_EVENT_KINDS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_POST_ROLL_DEFAULT_SEC, NC_CLIP_PRE_ROLL_DEFAULT_SEC, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_DEFAULT_SNOOZE_MINUTES, NC_GROUPING_DEFAULT_SEC, NC_GROUPING_MAX_SEC, NC_GROUPING_MIN_SEC, NC_GROUP_WITHIN_MAX_SEC, NC_GROUP_WITHIN_OTHER_DEFAULT_SEC, NC_GROUP_WITHIN_SYSTEM_DEFAULT_SEC, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_RULE_CLEARABLE_KEYS, NC_RULE_RETIRED_CLEAR_KEYS, NC_SNOOZE_MAX_MINUTES, type NcAlarmBlocking, type NcAlarmBlockingEdit, NcAlarmBlockingEditSchema, NcAlarmBlockingSchema, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmCreateProfileInput, NcAlarmCreateProfileInputSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, type NcAlarmModeDelays, type NcAlarmModeDelaysEdit, NcAlarmModeDelaysEditSchema, NcAlarmModeDelaysSchema, type NcAlarmModeDeviceList, NcAlarmModeDeviceListSchema, type NcAlarmNonBlocking, type NcAlarmNonBlockingEdit, NcAlarmNonBlockingEditSchema, NcAlarmNonBlockingSchema, type NcAlarmPostTriggeredAction, NcAlarmPostTriggeredActionSchema, type NcAlarmProfileIdInput, NcAlarmProfileIdInputSchema, type NcAlarmProfileMeta, NcAlarmProfileMetaSchema, type NcAlarmProfilesView, NcAlarmProfilesViewSchema, type NcAlarmRenameProfileInput, NcAlarmRenameProfileInputSchema, type NcAlarmSecureOnArmEdit, NcAlarmSecureOnArmEditSchema, type NcAlarmSecureOnArmOff, NcAlarmSecureOnArmOffSchema, type NcAlarmSensorReading, NcAlarmSensorReadingSchema, type NcAlarmSensorState, NcAlarmSensorStateSchema, type NcAlarmSensors, type NcAlarmSensorsInput, NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, type NcAlarmSettings, type NcAlarmSettingsPatch, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, type NcAlarmSkippedDevice, NcAlarmSkippedDeviceSchema, type NcAlarmSkipReason, NcAlarmSkipReasonSchema, type NcAudioCondition, NcAudioConditionSchema, type NcClipRetentionAsk, NcClipRetentionAskSchema, type NcClipRetentionPlan, NcClipRetentionPlanSchema, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcConfirm, type NcConfirmExpect, NcConfirmExpectSchema, NcConfirmSchema, type NcCrossing, NcCrossingSchema, type NcDelivery, NcDeliverySchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcLinkedCameraMode, NcLinkedCameraModeSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaImage, NcMediaImageSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleActions, NcRuleActionsSchema, NcActionIdSchema, type NcHookActionIds, NcHookActionIdsSchema, type NcRuleClearableKey, NcRuleClearableKeySchema, type NcRuleInput, NcRuleInputSchema, NcRuleKindSchema, type NcRuleLastRun, NcRuleLastRunSchema, type NcRuleLastRuns, NcRuleLastRunsSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcTargetAttachment, NcTargetAttachmentSchema, type NcTargetOverride, NcTargetOverrideSchema, NC_TEMPLATE_TITLE_MAX_CHARS, type NcTargetOverrides, NcTargetOverridesSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, type NcSceneCondition, NcSceneConditionSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSensorTransition, NcSensorTransitionSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcStateSummaryPreview, type NcStateSummaryPreviewRow, NcStateSummaryPreviewRowSchema, NcStateSummaryPreviewSchema, type NcStateSummaryPreviewSection, NcStateSummaryPreviewSectionSchema, type NcStateSummarySectionId, NC_STATE_SUMMARY_SECTION_IDS, NcStateSummarySectionIdSchema, type NcStateSummarySplit, NcStateSummarySplitSchema, type NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventDelivery, type NcSystemEventDeliveryMode, NcSystemEventDeliveryModeSchema, type NcSystemEventDeliveryToggle, NcSystemEventDeliveryToggleSchema, type NcSystemEventModesDelivery, NcSystemEventDeliverySchema, type NcSystemEventKind, NcSystemEventKindSchema, NC_COMMAND_ACTOR_KINDS, NC_COMMAND_OUTCOMES, type NcTemplateDefault, NcTemplateDefaultSchema, type NcTemplateFamily, NcTemplateFamilySchema, type NcTemplateField, NcTemplateFieldSchema, type NcTemplatePreview, type NcTemplatePreviewInput, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, type NcTemplateVarContext, NcTemplateVarContextSchema, type NcTemplateVarDescriptor, NcTemplateVarDescriptorSchema, type NcTemplateVarGroup, NcTemplateVarGroupSchema, type NcTemplateVarKind, NcTemplateVarKindSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
|
|
114
|
+
export { consumableLowPercentOf, type INotificationRulesProvider, isRetiredClearKey, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_NONBLOCKING_MAX, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_LEGACY_SYSTEM_EVENT_KINDS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_POST_ROLL_DEFAULT_SEC, NC_CLIP_PRE_ROLL_DEFAULT_SEC, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_DEFAULT_SNOOZE_MINUTES, NC_GROUPING_DEFAULT_SEC, NC_GROUPING_MAX_SEC, NC_GROUPING_MIN_SEC, NC_GROUP_WITHIN_MAX_SEC, NC_GROUP_WITHIN_OTHER_DEFAULT_SEC, NC_GROUP_WITHIN_SYSTEM_DEFAULT_SEC, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_RULE_CLEARABLE_KEYS, NC_RULE_RETIRED_CLEAR_KEYS, NC_SNOOZE_MAX_MINUTES, type NcAlarmBlocking, type NcAlarmBlockingEdit, NcAlarmBlockingEditSchema, NcAlarmBlockingSchema, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmCreateProfileInput, NcAlarmCreateProfileInputSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, type NcAlarmModeDelays, type NcAlarmModeDelaysEdit, NcAlarmModeDelaysEditSchema, NcAlarmModeDelaysSchema, type NcAlarmModeDeviceList, NcAlarmModeDeviceListSchema, type NcAlarmNonBlocking, type NcAlarmNonBlockingEdit, NcAlarmNonBlockingEditSchema, NcAlarmNonBlockingSchema, type NcAlarmPostTriggeredAction, NcAlarmPostTriggeredActionSchema, type NcAlarmProfileIdInput, NcAlarmProfileIdInputSchema, type NcAlarmProfileMeta, NcAlarmProfileMetaSchema, type NcAlarmProfilesView, NcAlarmProfilesViewSchema, type NcAlarmRenameProfileInput, NcAlarmRenameProfileInputSchema, type NcAlarmSecureOnArmEdit, NcAlarmSecureOnArmEditSchema, type NcAlarmSecureOnArmOff, NcAlarmSecureOnArmOffSchema, type NcAlarmSensorReading, NcAlarmSensorReadingSchema, type NcAlarmSensorState, NcAlarmSensorStateSchema, type NcAlarmSensors, type NcAlarmSensorsInput, NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, type NcAlarmSettings, type NcAlarmSettingsPatch, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, type NcAlarmSkippedDevice, NcAlarmSkippedDeviceSchema, type NcAlarmSkipReason, NcAlarmSkipReasonSchema, type NcAudioCondition, NcAudioConditionSchema, type NcClipRetentionAsk, NcClipRetentionAskSchema, type NcClipRetentionPlan, NcClipRetentionPlanSchema, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcConfirm, type NcConfirmExpect, NcConfirmExpectSchema, NcConfirmSchema, type NcCrossing, NcCrossingSchema, type NcDelivery, NcDeliverySchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcLinkedCameraMode, NcLinkedCameraModeSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaImage, NcMediaImageSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleActions, NcRuleActionsSchema, NcActionIdSchema, type NcHookActionIds, NcHookActionIdsSchema, type NcRuleClearableKey, NcRuleClearableKeySchema, type NcRuleInput, NcRuleInputSchema, type NcRuleTagsEntry, NcRuleTagsEntrySchema, type NcTaggedRuleKind, NcTaggedRuleKindSchema, NcRuleKindSchema, type NcRuleLastRun, NcRuleLastRunSchema, type NcRuleLastRuns, NcRuleLastRunsSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcTargetAttachment, NcTargetAttachmentSchema, type NcTargetOverride, NcTargetOverrideSchema, NC_TEMPLATE_TITLE_MAX_CHARS, type NcTargetOverrides, NcTargetOverridesSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, type NcSceneCondition, NcSceneConditionSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSensorTransition, NcSensorTransitionSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcStateSummaryPreview, type NcStateSummaryPreviewRow, NcStateSummaryPreviewRowSchema, NcStateSummaryPreviewSchema, type NcStateSummaryPreviewSection, NcStateSummaryPreviewSectionSchema, type NcStateSummarySectionId, NC_STATE_SUMMARY_SECTION_IDS, NcStateSummarySectionIdSchema, type NcStateSummarySplit, NcStateSummarySplitSchema, type NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventDelivery, type NcSystemEventDeliveryMode, NcSystemEventDeliveryModeSchema, type NcSystemEventDeliveryToggle, NcSystemEventDeliveryToggleSchema, type NcSystemEventModesDelivery, NcSystemEventDeliverySchema, type NcSystemEventKind, NcSystemEventKindSchema, NC_COMMAND_ACTOR_KINDS, NC_COMMAND_OUTCOMES, type NcTemplateDefault, NcTemplateDefaultSchema, type NcTemplateFamily, NcTemplateFamilySchema, type NcTemplateField, NcTemplateFieldSchema, type NcTemplatePreview, type NcTemplatePreviewInput, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, type NcTemplateVarContext, NcTemplateVarContextSchema, type NcTemplateVarDescriptor, NcTemplateVarDescriptorSchema, type NcTemplateVarGroup, NcTemplateVarGroupSchema, type NcTemplateVarKind, NcTemplateVarKindSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
|
|
115
115
|
export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
|
|
116
116
|
export { type IIntegrationInstancesProvider, type IntegrationInstance, type IntegrationInstanceDescription, IntegrationInstanceDescriptionSchema, type IntegrationInstanceDiscovery, IntegrationInstanceDiscoverySchema, IntegrationInstanceIdSchema, type IntegrationInstanceKind, type IntegrationInstanceLink, IntegrationInstanceLinkSchema, IntegrationInstanceKindSchema, type IntegrationInstanceMode, IntegrationInstanceModeSchema, type IntegrationInstancePatch, IntegrationInstancePatchSchema, type IntegrationInstanceRole, IntegrationInstanceRoleSchema, IntegrationInstanceSchema, type IntegrationInstanceStatus, IntegrationInstanceStatusSchema, integrationInstancesCapability, } from './integration-instances.cap.js';
|
|
117
117
|
export { AnalyticsLtsSeriesSchema, type AudioEvent, type AudioEventDraft, AudioEventSchema, type DetectionSource, DetectionSourceSchema, EVENT_DENSITY_BATCH_MAX, type EventDensityBucket, EventDensityBucketSchema, type EventDensityForDevice, EventDensityForDeviceSchema, type EventKind, type EventKindCategory, EventKindCategorySchema, type EventKindDescriptor, EventKindDescriptorSchema, type EventKindIcon, EventKindIconSchema, EventKindSchema, type EventKindsForDevice, EventKindsForDeviceSchema, type EventMediaKindBreakdown, type EventMediaKindFootprint, type EventPruneCounts, type EventStoreDeviceFootprint, type EventStoreFootprint, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type KeyEventsForDevice, type LabelAttribution, LabelAttributionSchema, type LabelTier, LabelTierSchema, LTS_SCOPE_CLASS_SEPARATOR, type LtsBucket, LtsBucketSchema, MAX_TRACK_DEBUG_NOTE_LEN, type MediaFile, type MediaFileBytes, type MediaFileInfo, MediaFileInfoSchema, type MediaFileKind, MediaFileKindEnum, type MediaFileRef, MediaFileRefSchema, MediaFileSchema, type MotionEvent, type MotionEventDraft, MotionEventSchema, type ObjectEvent, type ObjectEventDraft, ObjectEventSchema, occupancyScope, parseOccupancyScope, pipelineAnalyticsCapability, type RebuildObjectEmbeddingsRefusal, RebuildObjectEmbeddingsRefusalSchema, type RecentTracksPage, RecentTracksPageSchema, type RecentTracksQuery, RecentTracksQueryInput, type RetrainBoxReview, RetrainBoxReviewSchema, type RetrainDismissed, RetrainDismissedSchema, type RetrainFrameReview, RetrainFrameReviewSchema, type RetrainOrigin, RetrainOriginSchema, type RetrainReviewStatus, RetrainReviewStatusSchema, type RetrainAnnotation, type RetrainAnnotationDraft, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, type RetrainAnnotationSource, RetrainAnnotationSourceSchema, type RetrainArchiveResult, RetrainArchiveResultSchema, type RetrainArchiveTarget, RetrainArchiveTargetSchema, type RetrainAssistResult, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, type RetrainExportFilter, RetrainExportFilterSchema, type RetrainExportLayout, RetrainExportLayoutSchema, type AddRetrainFrameFromRecordingResult, AddRetrainFrameFromRecordingResultSchema, type RetrainDatasetSelection, RetrainDatasetSelectionSchema, type RetrainDatasetStats, RetrainDatasetStatsSchema, type RetrainDatasetVersion, RetrainDatasetVersionSchema, type RetrainTrainingCorpusResolveResult, RetrainTrainingCorpusResolveResultSchema, type RetrainTrainingCorpusSelection, RetrainTrainingCorpusSelectionSchema, type RetrainAssistProfile, RetrainAssistProfileSchema, type RetrainLlmAssistResult, RetrainLlmAssistResultSchema, type RetrainLlmProposal, RetrainLlmProposalSchema, type RetrainLlmReview, RetrainLlmReviewSchema, type RetrainCollection, type RetrainCollectionCreateResult, RetrainCollectionCreateResultSchema, type RetrainCollectionRenameResult, RetrainCollectionRenameResultSchema, RetrainCollectionSchema, type RetrainCorpusFilter, RetrainCorpusFilterSchema, type RetrainCorpusKpi, RetrainCorpusKpiSchema, type RetrainCorpusKpiCameraRow, RetrainCorpusKpiCameraRowSchema, type RetrainCorpusPage, RetrainCorpusPageSchema, type RetrainCorpusPageFrame, RetrainCorpusPageFrameSchema, type RetrainFrame, type RetrainFrameCandidate, RetrainFrameCandidateSchema, type RetrainFrameList, RetrainFrameListSchema, type RetrainFrameOrigin, RetrainFrameOriginSchema, RetrainFrameSchema, type RetrainFrameSelection, RetrainFrameSelectionSchema, type RetrainFrameWorkState, RetrainFrameWorkStateSchema, type RetrainMacroClass, RetrainMacroClassSchema, type RetrainPipelineBox, RetrainPipelineBoxSchema, type RetrainStatus, RetrainStatusSchema, type RetrainTrack, RetrainTrackSchema, type RetrainTransitionResult, RetrainTransitionResultSchema, type RetrainVerdict, RetrainVerdictSchema, type RetrainVerdictSubject, RetrainVerdictSubjectSchema, type RetrainVerdictValue, RetrainVerdictValueSchema, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, type TrackEnvelope, TrackEnvelopeSchema, TrackedDetectionSchema, type TrackFlags, type TrackFlagsPatch, TrackFlagsPatchSchema, TrackFlagsSchema, type TrackPlacement, TrackPlacementSchema, type TrackProjection, TrackProjectionSchema, TrackSchema, type TrackSource, TrackSourceSchema, type TrackState, TrackStateSchema, type TrackZoneFilter, TrackZoneFilterSchema, type TrainingExportDeviceTotals, TrainingExportDeviceTotalsSchema, type TrainingExportSummary, TrainingExportSummarySchema, type ZoneCrossing, type ZoneCrossingDirection, ZoneCrossingDirectionSchema, ZoneCrossingSchema, } from './pipeline-analytics.cap.js';
|
|
@@ -175,7 +175,7 @@ export { FAN_CAPTURE_FIELDS, FAN_PRESETS_MAX, FAN_PRESETS_REFUSALS, type FanCapt
|
|
|
175
175
|
export { type IRemoteProvider, REMOTE_CONFIG_REFUSALS, REMOTE_MAX_REPEAT, REMOTE_MEDIA_COMMANDS, REMOTE_REFUSAL_REASONS, type RemoteBoundCommand, type RemoteCommandList, RemoteCommandListSchema, RemoteBoundCommandSchema, type RemoteMediaCommand, type RemoteMediaCommandResult, RemoteMediaCommandResultSchema, RemoteMediaCommandSchema, type RemoteRefusalReason, RemoteRefusalReasonSchema, type RemoteSendResult, RemoteSendResultSchema, type RemoteSetConfigResult, RemoteSetConfigResultSchema, remoteCapability, } from './remote.cap.js';
|
|
176
176
|
export { HERO_ROW_MODELS_MAX, heroLayoutCapability, type HeroLayoutRows, HeroLayoutRowsSchema, type IHeroLayoutProvider, } from './hero-layout.cap.js';
|
|
177
177
|
export { type ITemplateProvider, TEMPLATE_WRITE_REFUSALS, type TemplateAutomationUser, TemplateAutomationUserSchema, type TemplateDeleteResult, TemplateDeleteResultSchema, type TemplateRecord, TemplateRecordSchema, type TemplateUser, TemplateUserSchema, type TemplateWriteResult, TemplateWriteResultSchema, templateCapability, } from './template.cap.js';
|
|
178
|
-
export { type ITagsProvider, type TagEntry, TagEntrySchema, type TagUsageCounts, TagUsageCountsSchema, tagsCapability, } from './tags.cap.js';
|
|
178
|
+
export { type ITagsProvider, type TagEntry, TagEntrySchema, type TagListCounts, TagListCountsSchema, type TagUsageCounts, TagUsageCountsSchema, tagsCapability, } from './tags.cap.js';
|
|
179
179
|
export { type IRemoteLayoutComponentsProvider, remoteLayoutComponentsCapability, } from './remote-layout-components.cap.js';
|
|
180
180
|
export { buttonCapability, type IButtonProvider } from './button.cap.js';
|
|
181
181
|
export { irTransmitterCapability, TransmitSettingKeySchema, IrMediumSchema, IrSendResultSchema, IrTransmitterInfoSchema, type IIrTransmitterProvider, type TransmitSettingKey, type IrMedium, type IrSendResult, type IrTransmitterInfo, IrLearnResultSchema, type IrLearnResult, IrTransmitterAttemptSchema, IrTransmitterSendRecordSchema, IrTransmitterRuntimeStateSchema, type IrTransmitterAttempt, type IrTransmitterSendRecord, type IrTransmitterRuntimeState, type IrTransmitterStateUpdate, irTransmitterStateAfter, irTransmitterRecordsUpdate, irTransmitterErrorCode, IR_LEARN_TIMEOUT_DEFAULT_MS, IR_LEARN_TIMEOUT_MAX_MS, } from './ir-transmitter.cap.js';
|
|
@@ -230,6 +230,8 @@ export { type MeterStatus, MeterStatusSchema, meterCapability, type IMeterProvid
|
|
|
230
230
|
export { type IMediaPlayerProvider, type MediaInfo, type MediaPlayerRepeat, MediaPlayerRepeatSchema, type MediaPlayerState, MediaPlayerStateSchema, type MediaPlayerStateSource, MediaPlayerStateSourceSchema, MediaPlayerAssumedFieldSchema, type MediaPlayerAssumedField, type MediaPlayerStatus, MediaPlayerStatusSchema, mediaPlayerCapability, MEDIA_PLAYER_MAX_STEPS, } from './media-player.cap.js';
|
|
231
231
|
export { type IMeshNetworkProvider, type MeshEndpoint, type MeshPeer, MeshPeerSchema, type MeshStatus, MeshStatusSchema, meshNetworkCapability, } from './mesh-network.cap.js';
|
|
232
232
|
export { type IMotionProvider, MOTION_CLOSE_AFTER_MS, MOTION_SPAN_TIMEOUT_MS, type MotionOnMotionChangedData, MotionOnMotionChangedDataSchema, type MotionStatus, MotionStatusSchema, motionCapability, } from './motion.cap.js';
|
|
233
|
+
export { resolveSirenSeconds, sirenIdleStatus, sirenTriggeredStatus } from './siren-duration.js';
|
|
234
|
+
export { type ISirenProvider, type SirenDurationRange, SirenDurationRangeSchema, SirenDurationUnit, type SirenDurationUnitValue, type SirenOptions, SirenOptionsSchema, SirenOptionsSource, type SirenOptionsSourceValue, type SirenRuntimeState, SirenRuntimeStateSchema, type SirenStatus, SirenStatusSchema, sirenCapability, } from './siren.cap.js';
|
|
233
235
|
export { type IMotionTriggerProvider, type MotionTriggerRuntimeState, MotionTriggerRuntimeStateSchema, type MotionTriggerStatus, MotionTriggerStatusSchema, motionTriggerCapability, } from './motion-trigger.cap.js';
|
|
234
236
|
export { type IMotionZonesProvider, type MotionZoneOptions, MotionZoneOptionsSchema, type MotionZonePatch, MotionZonePatchSchema, type MotionZoneRegion, MotionZoneRegionSchema, type MotionZoneStatus, MotionZoneStatusSchema, motionZonesCapability, } from './motion-zones.cap.js';
|
|
235
237
|
export { type INativeObjectDetectionProvider, type NativeDetection, NativeDetectionSchema, type NativeObjectClass, NativeObjectClassEnum, type NativeObjectDetectionOptions, NativeObjectDetectionOptionsSchema, type NativeObjectDetectionRuntimeState, NativeObjectDetectionRuntimeStateSchema, type NativeObjectDetectionSettingsPatch, NativeObjectDetectionSettingsPatchSchema, type NativeObjectDetectionStatus, NativeObjectDetectionStatusSchema, type NativeObjectGeometry, NativeObjectGeometryEnum, nativeObjectDetectionCapability, } from './native-object-detection.cap.js';
|
|
@@ -418,6 +420,7 @@ import type { modelDistributorCapability } from './model-distributor.cap.js';
|
|
|
418
420
|
import type { motionCapability } from './motion.cap.js';
|
|
419
421
|
import type { motionDetectionCapability } from './motion-detection.cap.js';
|
|
420
422
|
import type { motionTriggerCapability } from './motion-trigger.cap.js';
|
|
423
|
+
import type { sirenCapability } from './siren.cap.js';
|
|
421
424
|
import type { motionZonesCapability } from './motion-zones.cap.js';
|
|
422
425
|
import type { mqttBrokerCapability } from './mqtt-broker.cap.js';
|
|
423
426
|
import type { nativeObjectDetectionCapability } from './native-object-detection.cap.js';
|
|
@@ -500,6 +503,6 @@ import type { trainingProviderCapability } from './training-provider.cap.js';
|
|
|
500
503
|
import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
|
|
501
504
|
import type { zoneRulesCapability } from './zone-rules.cap.js';
|
|
502
505
|
import type { zonesCapability } from './zones.cap.js';
|
|
503
|
-
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof weatherStationCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof energySystemCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof errorCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof tagsCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
506
|
+
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof migrationsCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof deviceRunsCapability | typeof deviceTransitionsCapability | typeof timedRunCapability | typeof doNotDisturbCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof nodeRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof boardKeySourceCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof runningStateCapability | typeof rebootCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof weatherStationCapability | typeof imageCapability | typeof lockControlCapability | typeof powerSourceCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof petFountainCapability | typeof pumpCycleCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof meterCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof actionSourceCapability | typeof actionsCapability | typeof schedulersCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof sirenCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupActiveCapability | typeof groupCommandsCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof heatPumpStatusCapability | typeof energySystemCapability | typeof heatPumpControlCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof clusterUpdateCapability | typeof integrationsCapability | typeof integrationInstancesCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof errorCapability | typeof networkLinkCapability | typeof buttonCapability | typeof irTransmitterCapability | typeof remoteCapability | typeof heroLayoutCapability | typeof fanPresetsCapability | typeof templateCapability | typeof tagsCapability | typeof remoteLayoutComponentsCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
504
507
|
export type CapabilityName = AnyCapability['name'];
|
|
505
508
|
export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
|
|
@@ -1586,8 +1586,32 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
1586
1586
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
1587
1587
|
groupWithinSec: z.ZodOptional<z.ZodNumber>;
|
|
1588
1588
|
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
1589
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1589
1590
|
}, z.core.$strip>;
|
|
1590
1591
|
export type NcRuleInput = z.infer<typeof NcRuleInputSchema>;
|
|
1592
|
+
/**
|
|
1593
|
+
* The rule kinds that carry tags (D1054) — each one its own store. Every kind
|
|
1594
|
+
* labels its rules the same way; this names which store a tag write goes to.
|
|
1595
|
+
*/
|
|
1596
|
+
export declare const NcTaggedRuleKindSchema: z.ZodEnum<{
|
|
1597
|
+
"calendar-events": "calendar-events";
|
|
1598
|
+
event: "event";
|
|
1599
|
+
summary: "summary";
|
|
1600
|
+
timelapse: "timelapse";
|
|
1601
|
+
}>;
|
|
1602
|
+
export type NcTaggedRuleKind = z.infer<typeof NcTaggedRuleKindSchema>;
|
|
1603
|
+
/** One rule's tags, as the `tags` cap reads them across every kind. */
|
|
1604
|
+
export declare const NcRuleTagsEntrySchema: z.ZodObject<{
|
|
1605
|
+
kind: z.ZodEnum<{
|
|
1606
|
+
"calendar-events": "calendar-events";
|
|
1607
|
+
event: "event";
|
|
1608
|
+
summary: "summary";
|
|
1609
|
+
timelapse: "timelapse";
|
|
1610
|
+
}>;
|
|
1611
|
+
ruleId: z.ZodString;
|
|
1612
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1613
|
+
}, z.core.$strip>;
|
|
1614
|
+
export type NcRuleTagsEntry = z.infer<typeof NcRuleTagsEntrySchema>;
|
|
1591
1615
|
/**
|
|
1592
1616
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
1593
1617
|
* persisted-only {@link NcRuleSchema} `disabledTargetIds` set. The latter is
|
|
@@ -1743,6 +1767,7 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1743
1767
|
groupingSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1744
1768
|
groupWithinSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1745
1769
|
askVerdict: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1770
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1746
1771
|
disabledTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1747
1772
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1748
1773
|
conditions: z.ZodOptional<z.ZodObject<{
|
|
@@ -2151,6 +2176,7 @@ export declare const NcRuleUpdateInputSchema: z.ZodObject<{
|
|
|
2151
2176
|
groupingSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2152
2177
|
groupWithinSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2153
2178
|
askVerdict: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2179
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2154
2180
|
disabledTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2155
2181
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2156
2182
|
conditions: z.ZodOptional<z.ZodObject<{
|
|
@@ -2754,6 +2780,7 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
2754
2780
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
2755
2781
|
groupWithinSec: z.ZodOptional<z.ZodNumber>;
|
|
2756
2782
|
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
2783
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2757
2784
|
id: z.ZodString;
|
|
2758
2785
|
createdBy: z.ZodString;
|
|
2759
2786
|
createdAt: z.ZodNumber;
|
|
@@ -4960,6 +4987,7 @@ export declare const notificationRulesCapability: {
|
|
|
4960
4987
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
4961
4988
|
groupWithinSec: z.ZodOptional<z.ZodNumber>;
|
|
4962
4989
|
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
4990
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4963
4991
|
id: z.ZodString;
|
|
4964
4992
|
createdBy: z.ZodString;
|
|
4965
4993
|
createdAt: z.ZodNumber;
|
|
@@ -5336,6 +5364,7 @@ export declare const notificationRulesCapability: {
|
|
|
5336
5364
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
5337
5365
|
groupWithinSec: z.ZodOptional<z.ZodNumber>;
|
|
5338
5366
|
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
5367
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5339
5368
|
id: z.ZodString;
|
|
5340
5369
|
createdBy: z.ZodString;
|
|
5341
5370
|
createdAt: z.ZodNumber;
|
|
@@ -5710,6 +5739,7 @@ export declare const notificationRulesCapability: {
|
|
|
5710
5739
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
5711
5740
|
groupWithinSec: z.ZodOptional<z.ZodNumber>;
|
|
5712
5741
|
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
5742
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5713
5743
|
}, z.core.$strip>;
|
|
5714
5744
|
}, z.core.$strip>, z.ZodObject<{
|
|
5715
5745
|
rule: z.ZodObject<{
|
|
@@ -6078,6 +6108,7 @@ export declare const notificationRulesCapability: {
|
|
|
6078
6108
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
6079
6109
|
groupWithinSec: z.ZodOptional<z.ZodNumber>;
|
|
6080
6110
|
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
6111
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6081
6112
|
id: z.ZodString;
|
|
6082
6113
|
createdBy: z.ZodString;
|
|
6083
6114
|
createdAt: z.ZodNumber;
|
|
@@ -6235,6 +6266,7 @@ export declare const notificationRulesCapability: {
|
|
|
6235
6266
|
groupingSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
6236
6267
|
groupWithinSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
6237
6268
|
askVerdict: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
6269
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
6238
6270
|
disabledTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6239
6271
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
6240
6272
|
conditions: z.ZodOptional<z.ZodObject<{
|
|
@@ -6836,6 +6868,7 @@ export declare const notificationRulesCapability: {
|
|
|
6836
6868
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
6837
6869
|
groupWithinSec: z.ZodOptional<z.ZodNumber>;
|
|
6838
6870
|
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
6871
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6839
6872
|
id: z.ZodString;
|
|
6840
6873
|
createdBy: z.ZodString;
|
|
6841
6874
|
createdAt: z.ZodNumber;
|
|
@@ -6856,6 +6889,41 @@ export declare const notificationRulesCapability: {
|
|
|
6856
6889
|
}, z.core.$strip>, z.ZodObject<{
|
|
6857
6890
|
success: z.ZodLiteral<true>;
|
|
6858
6891
|
}, z.core.$strip>, "mutation">;
|
|
6892
|
+
/**
|
|
6893
|
+
* Every rule of every kind with its tags (D1054) — event rules, summaries,
|
|
6894
|
+
* timelapses and calendar-events rules. The `tags` cap counts and rewrites
|
|
6895
|
+
* from this one read; a rule without tags is listed with `[]`.
|
|
6896
|
+
*/
|
|
6897
|
+
readonly listRuleTags: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
6898
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
6899
|
+
kind: z.ZodEnum<{
|
|
6900
|
+
"calendar-events": "calendar-events";
|
|
6901
|
+
event: "event";
|
|
6902
|
+
summary: "summary";
|
|
6903
|
+
timelapse: "timelapse";
|
|
6904
|
+
}>;
|
|
6905
|
+
ruleId: z.ZodString;
|
|
6906
|
+
tags: z.ZodArray<z.ZodString>;
|
|
6907
|
+
}, z.core.$strip>>;
|
|
6908
|
+
}, z.core.$strip>, "query">;
|
|
6909
|
+
/**
|
|
6910
|
+
* Replace ONE rule's tags (D1054) and nothing else — the `tags` cap's rename
|
|
6911
|
+
* and remove write through this. `kind` names the store the rule lives in.
|
|
6912
|
+
* Normalised on write (trimmed, deduplicated case-insensitively); `[]`
|
|
6913
|
+
* clears them.
|
|
6914
|
+
*/
|
|
6915
|
+
readonly setRuleTags: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
6916
|
+
kind: z.ZodEnum<{
|
|
6917
|
+
"calendar-events": "calendar-events";
|
|
6918
|
+
event: "event";
|
|
6919
|
+
summary: "summary";
|
|
6920
|
+
timelapse: "timelapse";
|
|
6921
|
+
}>;
|
|
6922
|
+
ruleId: z.ZodString;
|
|
6923
|
+
tags: z.ZodArray<z.ZodString>;
|
|
6924
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6925
|
+
success: z.ZodLiteral<true>;
|
|
6926
|
+
}, z.core.$strip>, "mutation">;
|
|
6859
6927
|
/**
|
|
6860
6928
|
* WHAT THE RULES ACTUALLY ASK the stream broker to retain, per camera.
|
|
6861
6929
|
*
|
|
@@ -7292,6 +7360,7 @@ export declare const notificationRulesCapability: {
|
|
|
7292
7360
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
7293
7361
|
groupWithinSec: z.ZodOptional<z.ZodNumber>;
|
|
7294
7362
|
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
7363
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7295
7364
|
}, z.core.$strip>;
|
|
7296
7365
|
lookbackMinutes: z.ZodDefault<z.ZodNumber>;
|
|
7297
7366
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -7685,6 +7754,7 @@ export declare const notificationRulesCapability: {
|
|
|
7685
7754
|
groupingSec: z.ZodOptional<z.ZodNumber>;
|
|
7686
7755
|
groupWithinSec: z.ZodOptional<z.ZodNumber>;
|
|
7687
7756
|
askVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
7757
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7688
7758
|
}, z.core.$strip>;
|
|
7689
7759
|
}, z.core.$strip>, z.ZodObject<{
|
|
7690
7760
|
empty: z.ZodBoolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SirenOptions, SirenStatus } from './siren.cap.js';
|
|
2
|
+
/**
|
|
3
|
+
* Pure duration maths for the `siren` cap, shared by every provider so a
|
|
4
|
+
* trigger and the countdown it publishes mean the same thing everywhere.
|
|
5
|
+
*/
|
|
6
|
+
/** The state of a siren that is not sounding. Keeps the last activation's facts. */
|
|
7
|
+
export declare function sirenIdleStatus(previous: SirenStatus | undefined): SirenStatus;
|
|
8
|
+
/** The state right after a timed trigger: sounding until `now + seconds`. */
|
|
9
|
+
export declare function sirenTriggeredStatus(nowMs: number, seconds: number): SirenStatus;
|
|
10
|
+
/**
|
|
11
|
+
* The duration a trigger will really use: the request (or the camera default)
|
|
12
|
+
* snapped to what the camera allows — the nearest listed value, or clamped and
|
|
13
|
+
* stepped inside the range. Never longer or shorter than the camera can play.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveSirenSeconds(options: SirenOptions, requested: number | undefined): number;
|