@camstack/types 1.2.539 → 1.2.541
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 +29 -0
- package/dist/addon.js +44 -12
- package/dist/addon.mjs +44 -12
- package/dist/capabilities/capability-definition.d.ts +4 -0
- package/dist/capabilities/climate-control.cap.d.ts +18 -6
- package/dist/capabilities/cluster-update.cap.d.ts +376 -0
- package/dist/capabilities/cover.cap.d.ts +9 -3
- package/dist/capabilities/device-manager.cap.d.ts +117 -0
- package/dist/capabilities/device-search.d.ts +168 -0
- package/dist/capabilities/fan-control.cap.d.ts +12 -4
- package/dist/capabilities/hero-layout.cap.d.ts +4 -0
- package/dist/capabilities/hub-address.d.ts +10 -0
- package/dist/capabilities/index.d.ts +8 -5
- package/dist/capabilities/lock-control.cap.d.ts +3 -1
- package/dist/capabilities/media-player.cap.d.ts +48 -16
- package/dist/capabilities/notification-output.cap.d.ts +40 -0
- package/dist/capabilities/notification-rules.cap.d.ts +366 -0
- package/dist/capabilities/osd-manager.cap.d.ts +40 -277
- package/dist/capabilities/valve.cap.d.ts +3 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.js +94 -8
- package/dist/client.mjs +94 -9
- package/dist/{composed-stable-id-C3J6LxC9.js → composed-stable-id-BtaMj_W7.js} +4 -0
- package/dist/{composed-stable-id-DLcPInGv.mjs → composed-stable-id-jnvhwGoH.mjs} +4 -0
- package/dist/device/container-primary-child.d.ts +39 -4
- package/dist/device/device-binding.d.ts +6 -0
- package/dist/device/device-feature-requirements.d.ts +137 -0
- package/dist/device/device-management.d.ts +9 -0
- package/dist/device/device-type.d.ts +5 -1
- package/dist/device/hero/hero-model.d.ts +14 -0
- package/dist/device/implemented-methods.d.ts +6 -0
- package/dist/device/linked-device-resolve.d.ts +2 -0
- package/dist/expression/device-template.d.ts +31 -1
- package/dist/generated/addon-api.d.ts +50 -7
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/device-proxy.d.ts +2 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +3 -1
- package/dist/{composition-BcVAbtBc.js → implemented-methods-C_iV6BiP.js} +17 -1
- package/dist/{composition-BFJq1Y88.mjs → implemented-methods-OitwyO1Y.mjs} +12 -2
- package/dist/index.d.ts +7 -3
- package/dist/index.js +1231 -444
- package/dist/index.mjs +944 -203
- package/dist/interfaces/addon.d.ts +7 -0
- package/dist/interfaces/event-bus.d.ts +2 -0
- package/dist/migrations/api/migration-api.v1.d.ts +11 -0
- package/dist/migrations/api/migration-api.v1.schema.d.ts +25 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.js +26 -25
- package/dist/node.mjs +3 -3
- package/dist/notification/degrade-engine.d.ts +7 -1
- package/dist/notification/notification-fields.d.ts +69 -0
- package/dist/notification/timelapse-rule.d.ts +69 -0
- package/dist/{sleep-VrfKAAGN.mjs → sleep-Cw1uUXvl.mjs} +5 -2
- package/dist/{sleep-DgCXXFc3.js → sleep-PfAAmxV-.js} +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,12 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.541] - 2026-11-10
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Hub id format and the hubId key of the hub's LAN announcement
|
|
15
|
+
- New deviceManager.search contract (DeviceSearchInput, DeviceSearchResult, DeviceValueOption) for the device-to-value picker
|
|
16
|
+
- A power source (switch, restart) can now be driven by any user who has access to the camera it powers, not only by administrators
|
|
17
|
+
- New cluster-update capability: preview, start and follow one cluster update job
|
|
18
|
+
- A notification rule's per-target settings now also carry the picture kind (none, image, clip, GIF) and a no-buttons switch, and timelapse, summary and calendar rules accept them.
|
|
19
|
+
- A container can declare which children stand for it, most preferred first (primaryChildPreference); the framework uses it after the operator's own pick and before the type rule
|
|
20
|
+
- The hero model marks scene-placed rows so a client draws their controls beside the animation instead of as rows
|
|
21
|
+
|
|
22
|
+
## [1.2.540] - 2026-11-10
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- Device templates can use now (server time, the time filter) and the reserved camera alias with thisDevice on renderDeviceTemplates and checkDeviceTemplates; checkDeviceTemplates reports reads and readsClock; the OSD manager capability drops getSourceCatalog and gains previewTemplate.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- OSD texts migrated onto device templates now cut decimals like before (new trunc filter), skip one bad row instead of blocking every camera, and read the same whether or not the device is online
|
|
31
|
+
- Device features are now derived from the capabilities a device is bound to; bindings report which optional methods a provider implements
|
|
32
|
+
- The kernel tells hub builtins whether a node is online in the cluster registry
|
|
33
|
+
- Notifier kinds declare which texts they deliver (caps.text), and rules gain optional per-target overrides (targetOverrides).
|
|
34
|
+
|
|
10
35
|
## [1.2.539] - 2026-11-10
|
|
11
36
|
|
|
12
37
|
### Changed
|
|
13
38
|
|
|
14
39
|
- holdVarSlots: the one helper that sets aside the {{ vars.x }} slots of a step text
|
|
15
40
|
|
|
41
|
+
### Added
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
16
45
|
## [1.2.538] - 2026-11-10
|
|
17
46
|
|
|
18
47
|
### Changed
|
package/dist/addon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-PfAAmxV-.js");
|
|
3
3
|
const require_event_category = require("./event-category-BC4RRerT.js");
|
|
4
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
4
|
+
const require_composed_stable_id = require("./composed-stable-id-BtaMj_W7.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
|
7
7
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -140,15 +140,8 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
"osd-manager": {
|
|
143
|
-
"setSlotBinding": { "binding": { "__nested__": {
|
|
144
|
-
|
|
145
|
-
"template": "${value}",
|
|
146
|
-
"maxDecimals": 1
|
|
147
|
-
} } },
|
|
148
|
-
"upsertTemplate": { "template": { "__nested__": {
|
|
149
|
-
"bindings": [],
|
|
150
|
-
"parser": ""
|
|
151
|
-
} } }
|
|
143
|
+
"setSlotBinding": { "binding": { "__nested__": { "enabled": true } } },
|
|
144
|
+
"upsertTemplate": { "template": { "__nested__": { "text": "" } } }
|
|
152
145
|
},
|
|
153
146
|
"pipeline-analytics": {
|
|
154
147
|
"getAudioEvents": { "limit": 1e3 },
|
|
@@ -460,21 +453,60 @@ function isCollectionArrayMethodName(capName, method) {
|
|
|
460
453
|
* Per capability, the methods declared `optionalMethod` — the ones whose
|
|
461
454
|
* ABSENCE on a provider is a fact about that provider, not a bug.
|
|
462
455
|
*
|
|
463
|
-
* Coverage:
|
|
456
|
+
* Coverage: 10 caps, 43 methods.
|
|
464
457
|
*/
|
|
465
458
|
var PROVIDER_OPTIONAL_METHODS = Object.freeze({
|
|
459
|
+
"climate-control": [
|
|
460
|
+
"setFanMode",
|
|
461
|
+
"setPreset",
|
|
462
|
+
"setSwingHorizontal",
|
|
463
|
+
"setSwingVertical",
|
|
464
|
+
"setTargetHumidity",
|
|
465
|
+
"setTargetRange"
|
|
466
|
+
],
|
|
467
|
+
"cover": [
|
|
468
|
+
"setPosition",
|
|
469
|
+
"setTiltPosition",
|
|
470
|
+
"stop"
|
|
471
|
+
],
|
|
466
472
|
"device-export": [
|
|
467
473
|
"exposeEntity",
|
|
468
474
|
"listExposedEntities",
|
|
469
475
|
"listSupportedEntityKinds",
|
|
470
476
|
"unexposeEntity"
|
|
471
477
|
],
|
|
478
|
+
"fan-control": [
|
|
479
|
+
"setDirection",
|
|
480
|
+
"setOscillating",
|
|
481
|
+
"setPercentage",
|
|
482
|
+
"setPreset"
|
|
483
|
+
],
|
|
472
484
|
"integration-instances": ["testInstance"],
|
|
485
|
+
"lock-control": ["open"],
|
|
473
486
|
"log-destination": [
|
|
474
487
|
"cancelRead",
|
|
475
488
|
"describeRead",
|
|
476
489
|
"read"
|
|
477
490
|
],
|
|
491
|
+
"media-player": [
|
|
492
|
+
"channelDown",
|
|
493
|
+
"channelUp",
|
|
494
|
+
"next",
|
|
495
|
+
"playMedia",
|
|
496
|
+
"previous",
|
|
497
|
+
"seek",
|
|
498
|
+
"selectSource",
|
|
499
|
+
"setMute",
|
|
500
|
+
"setRepeat",
|
|
501
|
+
"setShuffle",
|
|
502
|
+
"setVolume",
|
|
503
|
+
"stop",
|
|
504
|
+
"turnOff",
|
|
505
|
+
"turnOn",
|
|
506
|
+
"volumeDown",
|
|
507
|
+
"volumeUp"
|
|
508
|
+
],
|
|
509
|
+
"valve": ["setPosition"],
|
|
478
510
|
"videoclips": [
|
|
479
511
|
"dialClipStream",
|
|
480
512
|
"getPlaybackOptions",
|
package/dist/addon.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as DEVICE_CHILDREN_BATCH_MAX, $r as RECORD_DATABASES, A as CAP_ADVANCE_FIELDS, Ai as RecordSecretUnavailableError, An as CALLER_USERNAME_HEADER, Ar as nodeIdOfScopedKey, Bn as RecordKindNameSchema, Ci as FilterRequiredError, Cn as scrubKnownSecrets, Ct as createDebugEmitter, Di as PlaintextSecretError, Dn as PEER_BYTES_STALL_MS, Ei as NoCallerError, En as PEER_BYTES_MAX_OUTSTANDING, F as withoutCallerStamp, Fi as TransactRefusedError, Fn as entryBody, G as readNodePin, Gn as defineRecordKinds, Gr as parseSecretPath, H as commandOrigin, Hn as StoredRecordKindDeclarationSchema, Hr as REMOVE_LEAF, I as customAction, Ii as UnindexedFilterError, In as EntryDescriptorSchema, J as PipelineRunResultBridge, Jn as isZodSecret, Jr as recordSecretRef, Kr as recordArrayItemPath, L as defineCustomActions, Li as UnknownRecordKindError, Ln as RecordFieldPathSchema, Mi as RecordUniqueViolationError, Mr as resolvedValues, N as CAP_STATE_LEAVES, Ni as RecordsError, Nn as DisposerChain, O as HF_REPO, Oi as RECORDS_ERROR_CODES, On as PEER_BYTES_TICKET_TTL_MS, P as CALLER_STAMPED_CAPABILITIES, Pi as RevConflictError, Pn as defineEntryKind, Q as deviceOpsCapability, Qr as RECORD_CLASSES, R as describeCustomActions, Ri as asRecordsError, Rn as RecordIndexSchema, Sa as findMigrationsBlocked, Si as DeclarationRefusedError, Sn as registerKnownSecret, T as isCommand, Ti as InvalidRecordError, Tn as PEER_BYTES_CHUNK_BYTES, U as nodePin, Un as assertValidDeclaration, Ur as collectSecretLeaves, Vn as RecordRetentionSchema, Vr as secretViewsOf, W as readCommandOrigin, Wn as declarationsOf, Wr as mapSecretLeaves, X as MIGRATION_API_VERSION, Xi as emitReadiness, Xr as RECORD_BATCH_MAX, Y as PipelineStepInputSchema, Yi as createEvent, Yr as secretArrayPrefixes, Zr as RECORD_BATCH_MAX_BYTES, _i as parseSecretRef, _n as createSecretsAccess, ai as RECORD_MAX_INDEX_FIELDS, bn as forgetKnownSecret, c as asString, ca as isSecretClear, ci as RECORD_SETTINGS_MAX_ROWS, d as parseJsonUnknown, da as isSecretMarkerLike, di as arrayItemFieldPath, dn as ruleFireOfClaim, dr as ErrorI18nPayloadSchema, dt as ReadinessRegistry, ei as RECORD_DEFAULT_MAX_DATA_BYTES, et as adminUiCapability, f as hfModelUrl, fa as makeSecretMarker, fi as buildSecretRef, fn as makeInMemoryRecords, ft as ReadinessTimeoutError, g as createDeviceProxy, gi as normalizeSecretOwner, gn as REVALIDATE_AFTER_MS, gr as BaseAddon, h as isDeviceScopedCap, hi as isSecretRef, hn as resolveSecretViewsIn, ht as scopeKey, ii as RECORD_MAX_INDEXES, j as CAP_METHOD_TIMEOUTS_MS, ji as RecordTooLargeError, jn as DATAPLANE_SECRET_HEADER, jr as resolveDeviceSettings, ki as RecordNotFoundError, kr as SCOPED_SETTINGS_SCOPES, la as isSecretFieldView, li as RECORD_SWEEP_INTERVAL_MS, ln as CommandOriginClaimSchema, m as DEVICE_SCOPED_CAPS, mi as globalSecretScope, mn as assertTransactScope, mr as readErrorI18n, ni as RECORD_ID_MAX_LENGTH, nr as expandCapMethods, nt as addonPagesSourceCapability, o as asJsonObject, oa as SECRET_CLEAR, oi as RECORD_QUERY_MAX, p as BOOT_RECOVERY_BACKOFF_MS, pa as toSecretFieldView, pi as formatSecretScope, pn as createRecordsAccess, q as viewerUiCapability, qn as collectZodSecretPaths, qr as recordSecretCollection, r as maskUrlCredentials, ri as RECORD_MAX_DATA_BYTES, sa as classifySecretWrite, si as RECORD_SECRET_COLLECTION_PREFIX, t as sleep, ti as RECORD_DELETE_BATCH, ua as isSecretMarker, ui as SECRET_REF_SCHEME, un as RuleFireOriginSchema, ut as MODEL_FORMATS, v as addonSliceHandleApi, vn as MIN_SCRUBBED_LENGTH, wi as ForeignSecretMarkerError, wn as shortSecretRefHash, xa as AddonMigrationsBlockedError, xi as BatchTooLargeError, xn as knownSecretCount, y as createEventBusSliceSource, yn as clearKnownSecrets, yr as normalizeAddonInitResult, zi as recordsErrorFromMessage, zn as RecordKindDeclarationSchema } from "./sleep-
|
|
1
|
+
import { $ as DEVICE_CHILDREN_BATCH_MAX, $r as RECORD_DATABASES, A as CAP_ADVANCE_FIELDS, Ai as RecordSecretUnavailableError, An as CALLER_USERNAME_HEADER, Ar as nodeIdOfScopedKey, Bn as RecordKindNameSchema, Ci as FilterRequiredError, Cn as scrubKnownSecrets, Ct as createDebugEmitter, Di as PlaintextSecretError, Dn as PEER_BYTES_STALL_MS, Ei as NoCallerError, En as PEER_BYTES_MAX_OUTSTANDING, F as withoutCallerStamp, Fi as TransactRefusedError, Fn as entryBody, G as readNodePin, Gn as defineRecordKinds, Gr as parseSecretPath, H as commandOrigin, Hn as StoredRecordKindDeclarationSchema, Hr as REMOVE_LEAF, I as customAction, Ii as UnindexedFilterError, In as EntryDescriptorSchema, J as PipelineRunResultBridge, Jn as isZodSecret, Jr as recordSecretRef, Kr as recordArrayItemPath, L as defineCustomActions, Li as UnknownRecordKindError, Ln as RecordFieldPathSchema, Mi as RecordUniqueViolationError, Mr as resolvedValues, N as CAP_STATE_LEAVES, Ni as RecordsError, Nn as DisposerChain, O as HF_REPO, Oi as RECORDS_ERROR_CODES, On as PEER_BYTES_TICKET_TTL_MS, P as CALLER_STAMPED_CAPABILITIES, Pi as RevConflictError, Pn as defineEntryKind, Q as deviceOpsCapability, Qr as RECORD_CLASSES, R as describeCustomActions, Ri as asRecordsError, Rn as RecordIndexSchema, Sa as findMigrationsBlocked, Si as DeclarationRefusedError, Sn as registerKnownSecret, T as isCommand, Ti as InvalidRecordError, Tn as PEER_BYTES_CHUNK_BYTES, U as nodePin, Un as assertValidDeclaration, Ur as collectSecretLeaves, Vn as RecordRetentionSchema, Vr as secretViewsOf, W as readCommandOrigin, Wn as declarationsOf, Wr as mapSecretLeaves, X as MIGRATION_API_VERSION, Xi as emitReadiness, Xr as RECORD_BATCH_MAX, Y as PipelineStepInputSchema, Yi as createEvent, Yr as secretArrayPrefixes, Zr as RECORD_BATCH_MAX_BYTES, _i as parseSecretRef, _n as createSecretsAccess, ai as RECORD_MAX_INDEX_FIELDS, bn as forgetKnownSecret, c as asString, ca as isSecretClear, ci as RECORD_SETTINGS_MAX_ROWS, d as parseJsonUnknown, da as isSecretMarkerLike, di as arrayItemFieldPath, dn as ruleFireOfClaim, dr as ErrorI18nPayloadSchema, dt as ReadinessRegistry, ei as RECORD_DEFAULT_MAX_DATA_BYTES, et as adminUiCapability, f as hfModelUrl, fa as makeSecretMarker, fi as buildSecretRef, fn as makeInMemoryRecords, ft as ReadinessTimeoutError, g as createDeviceProxy, gi as normalizeSecretOwner, gn as REVALIDATE_AFTER_MS, gr as BaseAddon, h as isDeviceScopedCap, hi as isSecretRef, hn as resolveSecretViewsIn, ht as scopeKey, ii as RECORD_MAX_INDEXES, j as CAP_METHOD_TIMEOUTS_MS, ji as RecordTooLargeError, jn as DATAPLANE_SECRET_HEADER, jr as resolveDeviceSettings, ki as RecordNotFoundError, kr as SCOPED_SETTINGS_SCOPES, la as isSecretFieldView, li as RECORD_SWEEP_INTERVAL_MS, ln as CommandOriginClaimSchema, m as DEVICE_SCOPED_CAPS, mi as globalSecretScope, mn as assertTransactScope, mr as readErrorI18n, ni as RECORD_ID_MAX_LENGTH, nr as expandCapMethods, nt as addonPagesSourceCapability, o as asJsonObject, oa as SECRET_CLEAR, oi as RECORD_QUERY_MAX, p as BOOT_RECOVERY_BACKOFF_MS, pa as toSecretFieldView, pi as formatSecretScope, pn as createRecordsAccess, q as viewerUiCapability, qn as collectZodSecretPaths, qr as recordSecretCollection, r as maskUrlCredentials, ri as RECORD_MAX_DATA_BYTES, sa as classifySecretWrite, si as RECORD_SECRET_COLLECTION_PREFIX, t as sleep, ti as RECORD_DELETE_BATCH, ua as isSecretMarker, ui as SECRET_REF_SCHEME, un as RuleFireOriginSchema, ut as MODEL_FORMATS, v as addonSliceHandleApi, vn as MIN_SCRUBBED_LENGTH, wi as ForeignSecretMarkerError, wn as shortSecretRefHash, xa as AddonMigrationsBlockedError, xi as BatchTooLargeError, xn as knownSecretCount, y as createEventBusSliceSource, yn as clearKnownSecrets, yr as normalizeAddonInitResult, zi as recordsErrorFromMessage, zn as RecordKindDeclarationSchema } from "./sleep-Cw1uUXvl.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-78tcBemo.mjs";
|
|
3
|
-
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-
|
|
3
|
+
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-jnvhwGoH.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
5
5
|
/**
|
|
6
6
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -139,15 +139,8 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
"osd-manager": {
|
|
142
|
-
"setSlotBinding": { "binding": { "__nested__": {
|
|
143
|
-
|
|
144
|
-
"template": "${value}",
|
|
145
|
-
"maxDecimals": 1
|
|
146
|
-
} } },
|
|
147
|
-
"upsertTemplate": { "template": { "__nested__": {
|
|
148
|
-
"bindings": [],
|
|
149
|
-
"parser": ""
|
|
150
|
-
} } }
|
|
142
|
+
"setSlotBinding": { "binding": { "__nested__": { "enabled": true } } },
|
|
143
|
+
"upsertTemplate": { "template": { "__nested__": { "text": "" } } }
|
|
151
144
|
},
|
|
152
145
|
"pipeline-analytics": {
|
|
153
146
|
"getAudioEvents": { "limit": 1e3 },
|
|
@@ -459,21 +452,60 @@ function isCollectionArrayMethodName(capName, method) {
|
|
|
459
452
|
* Per capability, the methods declared `optionalMethod` — the ones whose
|
|
460
453
|
* ABSENCE on a provider is a fact about that provider, not a bug.
|
|
461
454
|
*
|
|
462
|
-
* Coverage:
|
|
455
|
+
* Coverage: 10 caps, 43 methods.
|
|
463
456
|
*/
|
|
464
457
|
var PROVIDER_OPTIONAL_METHODS = Object.freeze({
|
|
458
|
+
"climate-control": [
|
|
459
|
+
"setFanMode",
|
|
460
|
+
"setPreset",
|
|
461
|
+
"setSwingHorizontal",
|
|
462
|
+
"setSwingVertical",
|
|
463
|
+
"setTargetHumidity",
|
|
464
|
+
"setTargetRange"
|
|
465
|
+
],
|
|
466
|
+
"cover": [
|
|
467
|
+
"setPosition",
|
|
468
|
+
"setTiltPosition",
|
|
469
|
+
"stop"
|
|
470
|
+
],
|
|
465
471
|
"device-export": [
|
|
466
472
|
"exposeEntity",
|
|
467
473
|
"listExposedEntities",
|
|
468
474
|
"listSupportedEntityKinds",
|
|
469
475
|
"unexposeEntity"
|
|
470
476
|
],
|
|
477
|
+
"fan-control": [
|
|
478
|
+
"setDirection",
|
|
479
|
+
"setOscillating",
|
|
480
|
+
"setPercentage",
|
|
481
|
+
"setPreset"
|
|
482
|
+
],
|
|
471
483
|
"integration-instances": ["testInstance"],
|
|
484
|
+
"lock-control": ["open"],
|
|
472
485
|
"log-destination": [
|
|
473
486
|
"cancelRead",
|
|
474
487
|
"describeRead",
|
|
475
488
|
"read"
|
|
476
489
|
],
|
|
490
|
+
"media-player": [
|
|
491
|
+
"channelDown",
|
|
492
|
+
"channelUp",
|
|
493
|
+
"next",
|
|
494
|
+
"playMedia",
|
|
495
|
+
"previous",
|
|
496
|
+
"seek",
|
|
497
|
+
"selectSource",
|
|
498
|
+
"setMute",
|
|
499
|
+
"setRepeat",
|
|
500
|
+
"setShuffle",
|
|
501
|
+
"setVolume",
|
|
502
|
+
"stop",
|
|
503
|
+
"turnOff",
|
|
504
|
+
"turnOn",
|
|
505
|
+
"volumeDown",
|
|
506
|
+
"volumeUp"
|
|
507
|
+
],
|
|
508
|
+
"valve": ["setPosition"],
|
|
477
509
|
"videoclips": [
|
|
478
510
|
"dialClipStream",
|
|
479
511
|
"getPlaybackOptions",
|
|
@@ -1093,10 +1093,14 @@ type NativeMethodFn<M> = M extends CapabilityMethodSchema<infer TIn, infer TOut>
|
|
|
1093
1093
|
export type InferNativeProvider<T extends CapabilityDefinition> = {
|
|
1094
1094
|
readonly [K in keyof T['methods'] as T['methods'][K] extends {
|
|
1095
1095
|
systemOnly: true;
|
|
1096
|
+
} | {
|
|
1097
|
+
providerOptional: true;
|
|
1096
1098
|
} ? never : K]: NativeMethodFn<T['methods'][K]>;
|
|
1097
1099
|
} & {
|
|
1098
1100
|
readonly [K in keyof T['methods'] as T['methods'][K] extends {
|
|
1099
1101
|
systemOnly: true;
|
|
1102
|
+
} | {
|
|
1103
|
+
providerOptional: true;
|
|
1100
1104
|
} ? K : never]?: NativeMethodFn<T['methods'][K]>;
|
|
1101
1105
|
} & (T extends {
|
|
1102
1106
|
status: CapabilityStatusSchema;
|
|
@@ -109,11 +109,15 @@ export declare const climateControlCapability: {
|
|
|
109
109
|
readonly setFanMode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
110
110
|
deviceId: z.ZodNumber;
|
|
111
111
|
fanMode: z.ZodString;
|
|
112
|
-
}, z.core.$strip>, z.ZodVoid, "mutation"
|
|
112
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
113
|
+
readonly providerOptional: true;
|
|
114
|
+
};
|
|
113
115
|
readonly setPreset: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
114
116
|
deviceId: z.ZodNumber;
|
|
115
117
|
preset: z.ZodString;
|
|
116
|
-
}, z.core.$strip>, z.ZodVoid, "mutation"
|
|
118
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
119
|
+
readonly providerOptional: true;
|
|
120
|
+
};
|
|
117
121
|
readonly setTarget: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
118
122
|
deviceId: z.ZodNumber;
|
|
119
123
|
target: z.ZodNumber;
|
|
@@ -122,19 +126,27 @@ export declare const climateControlCapability: {
|
|
|
122
126
|
deviceId: z.ZodNumber;
|
|
123
127
|
targetLow: z.ZodNumber;
|
|
124
128
|
targetHigh: z.ZodNumber;
|
|
125
|
-
}, z.core.$strip>, z.ZodVoid, "mutation"
|
|
129
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
130
|
+
readonly providerOptional: true;
|
|
131
|
+
};
|
|
126
132
|
readonly setTargetHumidity: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
127
133
|
deviceId: z.ZodNumber;
|
|
128
134
|
targetHumidity: z.ZodNumber;
|
|
129
|
-
}, z.core.$strip>, z.ZodVoid, "mutation"
|
|
135
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
136
|
+
readonly providerOptional: true;
|
|
137
|
+
};
|
|
130
138
|
readonly setSwingVertical: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
131
139
|
deviceId: z.ZodNumber;
|
|
132
140
|
on: z.ZodBoolean;
|
|
133
|
-
}, z.core.$strip>, z.ZodVoid, "mutation"
|
|
141
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
142
|
+
readonly providerOptional: true;
|
|
143
|
+
};
|
|
134
144
|
readonly setSwingHorizontal: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
135
145
|
deviceId: z.ZodNumber;
|
|
136
146
|
on: z.ZodBoolean;
|
|
137
|
-
}, z.core.$strip>, z.ZodVoid, "mutation"
|
|
147
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
148
|
+
readonly providerOptional: true;
|
|
149
|
+
};
|
|
138
150
|
};
|
|
139
151
|
readonly status: {
|
|
140
152
|
readonly schema: z.ZodObject<{
|