@camstack/types 1.2.548 → 1.2.550
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 +33 -0
- package/dist/addon/addon-instance.d.ts +24 -0
- package/dist/addon/build-addon-route-provider.d.ts +2 -0
- package/dist/addon.js +5 -5
- package/dist/addon.mjs +5 -5
- package/dist/automation/index.d.ts +4 -3
- package/dist/automation/recipe.d.ts +12105 -604
- package/dist/automation/scheduler.d.ts +7 -0
- package/dist/automation/step-runner.d.ts +70 -0
- package/dist/automation/trace.d.ts +252 -145
- package/dist/automation/wait-until.d.ts +32 -0
- package/dist/automation/when-site.d.ts +1 -1
- package/dist/capabilities/accessories.cap.d.ts +1 -1
- package/dist/capabilities/actions.cap.d.ts +1 -178
- package/dist/capabilities/addon-routes.cap.d.ts +3 -0
- package/dist/capabilities/battery.cap.d.ts +2 -2
- package/dist/capabilities/capability-definition.d.ts +47 -1
- package/dist/capabilities/climate-control.cap.d.ts +8 -1
- package/dist/capabilities/core-blocks.cap.d.ts +119 -8723
- package/dist/capabilities/customize-catalog.d.ts +3 -1
- package/dist/capabilities/customize-spec.d.ts +26 -2
- package/dist/capabilities/device-manager.cap.d.ts +6 -0
- package/dist/capabilities/event-emitter.cap.d.ts +99 -3
- package/dist/capabilities/event-vocabulary.d.ts +99 -0
- package/dist/capabilities/fan-control.cap.d.ts +248 -0
- package/dist/capabilities/fan-presets.cap.d.ts +172 -536
- package/dist/capabilities/group-active.cap.d.ts +1 -1
- package/dist/capabilities/group-commands.cap.d.ts +1 -1
- package/dist/capabilities/group-status.cap.d.ts +1 -1
- package/dist/capabilities/heating-valve.cap.d.ts +1 -1
- package/dist/capabilities/hero-layout.cap.d.ts +2 -0
- package/dist/capabilities/humidifier.cap.d.ts +5 -0
- package/dist/capabilities/humidity-sensor.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +5 -4
- package/dist/capabilities/media-player.cap.d.ts +7 -0
- package/dist/capabilities/oauth-integration.cap.d.ts +8 -0
- package/dist/capabilities/pet-fountain.cap.d.ts +5 -0
- package/dist/capabilities/power-meter.cap.d.ts +5 -5
- package/dist/capabilities/power-source.cap.d.ts +5 -0
- package/dist/capabilities/running-state.cap.d.ts +2 -2
- package/dist/capabilities/schedulers.cap.d.ts +1 -178
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -0
- package/dist/capabilities/switch.cap.d.ts +1 -1
- package/dist/capabilities/temperature-sensor.cap.d.ts +1 -1
- package/dist/capabilities/timed-run.cap.d.ts +19 -5
- package/dist/capabilities/user-management.cap.d.ts +4 -0
- package/dist/capabilities/water-heater.cap.d.ts +7 -0
- package/dist/client.js +7 -11
- package/dist/client.mjs +7 -11
- package/dist/{composed-stable-id-DrGLxjVF.js → composed-stable-id-CDNLq7Y8.js} +27 -10
- package/dist/{composed-stable-id-DFNyOFzz.mjs → composed-stable-id-CPp3votu.mjs} +27 -10
- package/dist/composition/composition-report.d.ts +6 -0
- package/dist/composition/evaluate-field.d.ts +7 -0
- package/dist/composition/field-kinds.d.ts +12 -1
- package/dist/composition/helpers/index.d.ts +1 -1
- package/dist/composition/helpers/source-pick.d.ts +0 -5
- package/dist/composition/power-source-link.d.ts +15 -0
- package/dist/composition/state-fields.d.ts +2 -0
- package/dist/composition/validate-composition.d.ts +15 -1
- package/dist/device/base-device-provider.d.ts +13 -0
- package/dist/device/device-control-resolution.d.ts +1 -33
- package/dist/device/device-kind.d.ts +36 -0
- package/dist/device/device-management.d.ts +3 -0
- package/dist/device/device-type.d.ts +27 -10
- package/dist/device/hero/hero-fragment.d.ts +2 -0
- package/dist/device/hero/hero-layout.d.ts +1 -3
- package/dist/device/hero/hero-look.d.ts +18 -12
- package/dist/device/hero/hero-scene.d.ts +9 -3
- package/dist/device/index.d.ts +2 -1
- package/dist/device/power-switch.d.ts +82 -0
- package/dist/device/schema-fields.d.ts +10 -1
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +257 -8
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/{implemented-methods-M5aguGon.mjs → implemented-methods-5YMDeE3f.mjs} +1 -1
- package/dist/{implemented-methods-8AU92riC.js → implemented-methods-Cj65uy2F.js} +1 -1
- package/dist/index.d.ts +11 -6
- package/dist/index.js +2386 -494
- package/dist/index.mjs +2312 -488
- package/dist/interfaces/addon-routes.d.ts +13 -0
- package/dist/interfaces/config-ui.d.ts +15 -24
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-D_NpiLFP.mjs → sleep-D0roI_CZ.mjs} +50 -1
- package/dist/{sleep-vzHEmsrO.js → sleep-dcR4vBFG.js} +50 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as DEVICE_CHILDREN_BATCH_MAX, $i as WELL_KNOWN_TAB_MAP, $n as HISTORY_UNIT_LABELS, $r as RECORD_DATABASES, $t as displayUnitFor, Ai as RecordSecretUnavailableError, An as CALLER_USERNAME_HEADER, Ar as nodeIdOfScopedKey, At as CAM_PROFILE_ORDER, B as CAP_COMMAND_ORIGIN_CONTEXT_KEY, Bi as defaultIntegrationDepsOver, Bn as RecordKindNameSchema, Br as isInstanceEnabled, Bt as StreamSourceEntrySchema, C as auditedFields, Ca as AUDIO_CHUNK_FORMATS, Ci as FilterRequiredError, Cn as scrubKnownSecrets, Cr as secretTreeFromSchema, Ct as createDebugEmitter, D as HF_BASE_URL, Di as PlaintextSecretError, Dn as PEER_BYTES_STALL_MS, Dr as resolveSecretMarkers, Dt as AudioStreamPickSchema, E as DEFAULT_TOKEN_EXPIRY, Ea as isAudioChunkFormat, Ei as NoCallerError, En as PEER_BYTES_MAX_OUTSTANDING, Er as isSecretRefOwnedBy, Et as AudioChunkFormatSchema, F as withoutCallerStamp, Fi as TransactRefusedError, Fn as entryBody, Fr as moveRegistrySwitchToBody, Ft as DecodedAudioChunkSchema, G as readNodePin, Gi as switchRecordsOverMigrationApi, Gn as defineRecordKinds, Gr as parseSecretPath, Gt as makeSourceBrokerId, H as commandOrigin, Hi as recordsOverMigrationApi, Hn as StoredRecordKindDeclarationSchema, Hr as REMOVE_LEAF, Ht as SubscribeAudioChunksInputSchema, I as customAction, Ii as UnindexedFilterError, In as EntryDescriptorSchema, Ir as registrySwitchPortsOver, It as FrameHandleSchema, J as PipelineRunResultBridge, Ji as runAddonMigrations, Jn as isZodSecret, Jr as recordSecretRef, Jt as DEFAULT_DISPLAY_PREFERENCE, K as toNodeId, Ki as AddonMigrationDefinitionError, Kn as SECRET_META, Kr as recordArrayItemPath, Kt as parseProfileBrokerId, L as defineCustomActions, Li as UnknownRecordKindError, Ln as RecordFieldPathSchema, Lr as registrySwitchToBodyId, Lt as ProfileRtspEntrySchema, M as CAP_NAMES, Mi as RecordUniqueViolationError, Mn as SHARE_VIEW_KINDS, Mr as resolvedValues, Mt as CamStreamKindSchema, Ni as RecordsError, Nn as DisposerChain, Nr as normalizeNodeId, Nt as CamStreamResolutionSchema, O as HF_REPO, Oi as RECORDS_ERROR_CODES, On as PEER_BYTES_TICKET_TTL_MS, Or as transformSecretWrite, Ot as BrokerStatsSchema, P as CALLER_STAMPED_CAPABILITIES, Pi as RevConflictError, Pn as defineEntryKind, Pr as createDurableState, Pt as CameraStreamSchema, Q as deviceOpsCapability, Qi as WELL_KNOWN_TABS, Qn as HISTORY_DEFAULT_MIN_INTERVAL_MS, Qr as RECORD_CLASSES, Qt as baseUnitOf, R as describeCustomActions, Ri as asRecordsError, Rn as RecordIndexSchema, Rr as registrySwitchToBodyMigration, Rt as ProfileSlotSchema, S as createSliceHandle, Sa as findMigrationsBlocked, Si as DeclarationRefusedError, Sn as registerKnownSecret, Sr as secretTreeFromPaths, St as __resetDebugInterestForTests, T as isCommand, Ta as expandAudioChunkToF32le, Ti as InvalidRecordError, Tn as PEER_BYTES_CHUNK_BYTES, Tr as collectSecretMarkerRefs, Tt as isDebugChannelName, U as nodePin, Ui as rowsDepsOver, Un as assertValidDeclaration, Ur as collectSecretLeaves, Ut as SubscribeAudioChunksResultSchema, V as CAP_NODE_PIN_CONTEXT_KEY, Vi as integrationRowsApiOver, Vn as RecordRetentionSchema, Vr as secretViewsOf, Vt as StreamSourceSchema, W as readCommandOrigin, Wi as secretsOverMigrationApi, Wn as declarationsOf, Wr as mapSecretLeaves, Wt as makeProfileBrokerId, X as MIGRATION_API_VERSION, Xi as emitReadiness, Xn as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Xr as RECORD_BATCH_MAX, Xt as QUANTITY_BASE, Y as PipelineStepInputSchema, Yi as createEvent, Yn as DEFAULT_RUNTIME_STATE_DURABILITY, Yr as secretArrayPrefixes, Yt as DISPLAY_PREFERENCES, Z as RawStateResultSchema, Zi as isEvent, Zn as DEVICE_STATUS_METHOD, Zr as RECORD_BATCH_MAX_BYTES, Zt as ReadingQuantitySchema, _ as invokeTrpcLeaf, _a as isKeychainStoredField, _i as parseSecretRef, _n as createSecretsAccess, _r as classifyStoreError, _t as DEBUG_WATCH_HARD_CAP_MS, a as asJsonArray, aa as resolveHydratedFieldValue, ai as RECORD_MAX_INDEX_FIELDS, an as TransitionActorSchema, ar as method, at as findVocabAction, b as createLazyTrpcSource, ba as schemaDeclaresAnyField, bi as optionalLinkField, bn as forgetKnownSecret, br as mergeSecretStatePaths, bt as DebugInterest, c as asString, ca as isSecretClear, ci as RECORD_SETTINGS_MAX_ROWS, cn as TransitionValueSchema, cr as systemMethod, ct as CAP_VOCABULARY_BY_NAME, d as parseJsonUnknown, da as isSecretMarkerLike, di as arrayItemFieldPath, dn as ruleFireOfClaim, dr as ErrorI18nPayloadSchema, dt as ReadinessRegistry, ea as collectHydratedFieldEntries, ei as RECORD_DEFAULT_MAX_DATA_BYTES, en as historyUnitFor, er as PROVIDER_PIN_FIELD, et as adminUiCapability, f as hfModelUrl, fa as makeSecretMarker, fi as buildSecretRef, fn as makeInMemoryRecords, fr as FORBIDDEN_MESSAGE_PREFIX, ft as ReadinessTimeoutError, g as createDeviceProxy, ga as collectSecretConfigKeys, gi as normalizeSecretOwner, gn as REVALIDATE_AFTER_MS, gr as BaseAddon, gt as DEBUG_CHANNEL_PREFIX, h as isDeviceScopedCap, ha as collectKeychainStoredKeys, hi as isSecretRef, hn as resolveSecretViewsIn, hr as userError, ht as scopeKey, i as asBoolean, ia as hydrateSchema, ii as RECORD_MAX_INDEXES, in as TransitionActorKindSchema, ir as isDeviceConfigCap, it as allVocabActions, ji as RecordTooLargeError, jn as DATAPLANE_SECRET_HEADER, jr as resolveDeviceSettings, jt as CamProfileSchema, k as RUNTIME_DEFAULTS, ki as RecordNotFoundError, kn as PeerBytesTicketSchema, kr as SCOPED_SETTINGS_SCOPES, kt as BrokerStatusSchema, l as parseJsonArray, la as isSecretFieldView, li as RECORD_SWEEP_INTERVAL_MS, ln as CommandOriginClaimSchema, lr as CamstackError, lt as t, m as DEVICE_SCOPED_CAPS, ma as REDACTED_SECRET, mi as globalSecretScope, mn as assertTransactScope, mr as readErrorI18n, mt as readinessKey, n as sleepCancellable, na as dehydrateConfigField, ni as RECORD_ID_MAX_LENGTH, nn as readingMeta, nr as expandCapMethods, nt as addonPagesSourceCapability, o as asJsonObject, oa as SECRET_CLEAR, oi as RECORD_QUERY_MAX, on as TransitionCommandSchema, or as optionalMethod, ot as vocabActionIdFor, p as BOOT_RECOVERY_BACKOFF_MS, pa as toSecretFieldView, pi as formatSecretScope, pn as createRecordsAccess, pr as forbiddenError, pt as emitDownForOwnedCaps, q as viewerUiCapability, qi as defineAddonMigrations, qn as collectZodSecretPaths, qr as recordSecretCollection, qt as selectAssignedProfileSlots, r as maskUrlCredentials, ra as dehydrateSchema, ri as RECORD_MAX_DATA_BYTES, rn as DeviceTransitionSchema, rr as historyItemFieldPath, rt as actionEffect, s as asNumber, sa as classifySecretWrite, si as RECORD_SECRET_COLLECTION_PREFIX, sn as TransitionOutcomeSchema, sr as resolveCapMount, st as CAP_VOCABULARY, t as sleep, ta as collectHydratedFieldValues, ti as RECORD_DELETE_BATCH, tn as isReadingQuantity, tr as event, tt as AddonPageDeclarationSchema, u as parseJsonObject, ua as isSecretMarker, ui as SECRET_REF_SCHEME, un as RuleFireOriginSchema, ur as ErrorCodeSchema, ut as MODEL_FORMATS, va as isSecretConfigField, vi as linkField, vn as MIN_SCRUBBED_LENGTH, vr as migrationSet, vt as DEBUG_WATCH_REARM_EVERY_MS, w as commandEffect, wa as audioChunkBytesPerSample, wi as ForeignSecretMarkerError, wn as shortSecretRefHash, wr as KeychainWriteRefusedError, wt as getDebugInterest, x as createMirrorSource, xa as AddonMigrationsBlockedError, xi as BatchTooLargeError, xn as knownSecretCount, xr as parseSecretStatePath, xt as DebugWatchTable, y as createEventBusSliceSource, ya as omitTransientConfig, yi as linksOfKind, yn as clearKnownSecrets, yr as normalizeAddonInitResult, yt as DEBUG_WATCH_WINDOW_MS, z as deviceCustomAction, zi as recordsErrorFromMessage, zn as RecordKindDeclarationSchema, zr as RecordIntegrationInstances, zt as ProfileSlotStatusSchema } from "./sleep-
|
|
1
|
+
import { $ as DEVICE_CHILDREN_BATCH_MAX, $i as WELL_KNOWN_TAB_MAP, $n as HISTORY_UNIT_LABELS, $r as RECORD_DATABASES, $t as displayUnitFor, Ai as RecordSecretUnavailableError, An as CALLER_USERNAME_HEADER, Ar as nodeIdOfScopedKey, At as CAM_PROFILE_ORDER, B as CAP_COMMAND_ORIGIN_CONTEXT_KEY, Bi as defaultIntegrationDepsOver, Bn as RecordKindNameSchema, Br as isInstanceEnabled, Bt as StreamSourceEntrySchema, C as auditedFields, Ca as AUDIO_CHUNK_FORMATS, Ci as FilterRequiredError, Cn as scrubKnownSecrets, Cr as secretTreeFromSchema, Ct as createDebugEmitter, D as HF_BASE_URL, Di as PlaintextSecretError, Dn as PEER_BYTES_STALL_MS, Dr as resolveSecretMarkers, Dt as AudioStreamPickSchema, E as DEFAULT_TOKEN_EXPIRY, Ea as isAudioChunkFormat, Ei as NoCallerError, En as PEER_BYTES_MAX_OUTSTANDING, Er as isSecretRefOwnedBy, Et as AudioChunkFormatSchema, F as withoutCallerStamp, Fi as TransactRefusedError, Fn as entryBody, Fr as moveRegistrySwitchToBody, Ft as DecodedAudioChunkSchema, G as readNodePin, Gi as switchRecordsOverMigrationApi, Gn as defineRecordKinds, Gr as parseSecretPath, Gt as makeSourceBrokerId, H as commandOrigin, Hi as recordsOverMigrationApi, Hn as StoredRecordKindDeclarationSchema, Hr as REMOVE_LEAF, Ht as SubscribeAudioChunksInputSchema, I as customAction, Ii as UnindexedFilterError, In as EntryDescriptorSchema, Ir as registrySwitchPortsOver, It as FrameHandleSchema, J as PipelineRunResultBridge, Ji as runAddonMigrations, Jn as isZodSecret, Jr as recordSecretRef, Jt as DEFAULT_DISPLAY_PREFERENCE, K as toNodeId, Ki as AddonMigrationDefinitionError, Kn as SECRET_META, Kr as recordArrayItemPath, Kt as parseProfileBrokerId, L as defineCustomActions, Li as UnknownRecordKindError, Ln as RecordFieldPathSchema, Lr as registrySwitchToBodyId, Lt as ProfileRtspEntrySchema, M as CAP_NAMES, Mi as RecordUniqueViolationError, Mn as SHARE_VIEW_KINDS, Mr as resolvedValues, Mt as CamStreamKindSchema, Ni as RecordsError, Nn as DisposerChain, Nr as normalizeNodeId, Nt as CamStreamResolutionSchema, O as HF_REPO, Oi as RECORDS_ERROR_CODES, On as PEER_BYTES_TICKET_TTL_MS, Or as transformSecretWrite, Ot as BrokerStatsSchema, P as CALLER_STAMPED_CAPABILITIES, Pi as RevConflictError, Pn as defineEntryKind, Pr as createDurableState, Pt as CameraStreamSchema, Q as deviceOpsCapability, Qi as WELL_KNOWN_TABS, Qn as HISTORY_DEFAULT_MIN_INTERVAL_MS, Qr as RECORD_CLASSES, Qt as baseUnitOf, R as describeCustomActions, Ri as asRecordsError, Rn as RecordIndexSchema, Rr as registrySwitchToBodyMigration, Rt as ProfileSlotSchema, S as createSliceHandle, Sa as findMigrationsBlocked, Si as DeclarationRefusedError, Sn as registerKnownSecret, Sr as secretTreeFromPaths, St as __resetDebugInterestForTests, T as isCommand, Ta as expandAudioChunkToF32le, Ti as InvalidRecordError, Tn as PEER_BYTES_CHUNK_BYTES, Tr as collectSecretMarkerRefs, Tt as isDebugChannelName, U as nodePin, Ui as rowsDepsOver, Un as assertValidDeclaration, Ur as collectSecretLeaves, Ut as SubscribeAudioChunksResultSchema, V as CAP_NODE_PIN_CONTEXT_KEY, Vi as integrationRowsApiOver, Vn as RecordRetentionSchema, Vr as secretViewsOf, Vt as StreamSourceSchema, W as readCommandOrigin, Wi as secretsOverMigrationApi, Wn as declarationsOf, Wr as mapSecretLeaves, Wt as makeProfileBrokerId, X as MIGRATION_API_VERSION, Xi as emitReadiness, Xn as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Xr as RECORD_BATCH_MAX, Xt as QUANTITY_BASE, Y as PipelineStepInputSchema, Yi as createEvent, Yn as DEFAULT_RUNTIME_STATE_DURABILITY, Yr as secretArrayPrefixes, Yt as DISPLAY_PREFERENCES, Z as RawStateResultSchema, Zi as isEvent, Zn as DEVICE_STATUS_METHOD, Zr as RECORD_BATCH_MAX_BYTES, Zt as ReadingQuantitySchema, _ as invokeTrpcLeaf, _a as isKeychainStoredField, _i as parseSecretRef, _n as createSecretsAccess, _r as classifyStoreError, _t as DEBUG_WATCH_HARD_CAP_MS, a as asJsonArray, aa as resolveHydratedFieldValue, ai as RECORD_MAX_INDEX_FIELDS, an as TransitionActorSchema, ar as method, at as findVocabAction, b as createLazyTrpcSource, ba as schemaDeclaresAnyField, bi as optionalLinkField, bn as forgetKnownSecret, br as mergeSecretStatePaths, bt as DebugInterest, c as asString, ca as isSecretClear, ci as RECORD_SETTINGS_MAX_ROWS, cn as TransitionValueSchema, cr as systemMethod, ct as CAP_VOCABULARY_BY_NAME, d as parseJsonUnknown, da as isSecretMarkerLike, di as arrayItemFieldPath, dn as ruleFireOfClaim, dr as ErrorI18nPayloadSchema, dt as ReadinessRegistry, ea as collectHydratedFieldEntries, ei as RECORD_DEFAULT_MAX_DATA_BYTES, en as historyUnitFor, er as PROVIDER_PIN_FIELD, et as adminUiCapability, f as hfModelUrl, fa as makeSecretMarker, fi as buildSecretRef, fn as makeInMemoryRecords, fr as FORBIDDEN_MESSAGE_PREFIX, ft as ReadinessTimeoutError, g as createDeviceProxy, ga as collectSecretConfigKeys, gi as normalizeSecretOwner, gn as REVALIDATE_AFTER_MS, gr as BaseAddon, gt as DEBUG_CHANNEL_PREFIX, h as isDeviceScopedCap, ha as collectKeychainStoredKeys, hi as isSecretRef, hn as resolveSecretViewsIn, hr as userError, ht as scopeKey, i as asBoolean, ia as hydrateSchema, ii as RECORD_MAX_INDEXES, in as TransitionActorKindSchema, ir as isDeviceConfigCap, it as allVocabActions, ji as RecordTooLargeError, jn as DATAPLANE_SECRET_HEADER, jr as resolveDeviceSettings, jt as CamProfileSchema, k as RUNTIME_DEFAULTS, ki as RecordNotFoundError, kn as PeerBytesTicketSchema, kr as SCOPED_SETTINGS_SCOPES, kt as BrokerStatusSchema, l as parseJsonArray, la as isSecretFieldView, li as RECORD_SWEEP_INTERVAL_MS, ln as CommandOriginClaimSchema, lr as CamstackError, lt as t, m as DEVICE_SCOPED_CAPS, ma as REDACTED_SECRET, mi as globalSecretScope, mn as assertTransactScope, mr as readErrorI18n, mt as readinessKey, n as sleepCancellable, na as dehydrateConfigField, ni as RECORD_ID_MAX_LENGTH, nn as readingMeta, nr as expandCapMethods, nt as addonPagesSourceCapability, o as asJsonObject, oa as SECRET_CLEAR, oi as RECORD_QUERY_MAX, on as TransitionCommandSchema, or as optionalMethod, ot as vocabActionIdFor, p as BOOT_RECOVERY_BACKOFF_MS, pa as toSecretFieldView, pi as formatSecretScope, pn as createRecordsAccess, pr as forbiddenError, pt as emitDownForOwnedCaps, q as viewerUiCapability, qi as defineAddonMigrations, qn as collectZodSecretPaths, qr as recordSecretCollection, qt as selectAssignedProfileSlots, r as maskUrlCredentials, ra as dehydrateSchema, ri as RECORD_MAX_DATA_BYTES, rn as DeviceTransitionSchema, rr as historyItemFieldPath, rt as actionEffect, s as asNumber, sa as classifySecretWrite, si as RECORD_SECRET_COLLECTION_PREFIX, sn as TransitionOutcomeSchema, sr as resolveCapMount, st as CAP_VOCABULARY, t as sleep, ta as collectHydratedFieldValues, ti as RECORD_DELETE_BATCH, tn as isReadingQuantity, tr as event, tt as AddonPageDeclarationSchema, u as parseJsonObject, ua as isSecretMarker, ui as SECRET_REF_SCHEME, un as RuleFireOriginSchema, ur as ErrorCodeSchema, ut as MODEL_FORMATS, va as isSecretConfigField, vi as linkField, vn as MIN_SCRUBBED_LENGTH, vr as migrationSet, vt as DEBUG_WATCH_REARM_EVERY_MS, w as commandEffect, wa as audioChunkBytesPerSample, wi as ForeignSecretMarkerError, wn as shortSecretRefHash, wr as KeychainWriteRefusedError, wt as getDebugInterest, x as createMirrorSource, xa as AddonMigrationsBlockedError, xi as BatchTooLargeError, xn as knownSecretCount, xr as parseSecretStatePath, xt as DebugWatchTable, y as createEventBusSliceSource, ya as omitTransientConfig, yi as linksOfKind, yn as clearKnownSecrets, yr as normalizeAddonInitResult, yt as DEBUG_WATCH_WINDOW_MS, z as deviceCustomAction, zi as recordsErrorFromMessage, zn as RecordKindDeclarationSchema, zr as RecordIntegrationInstances, zt as ProfileSlotStatusSchema } from "./sleep-D0roI_CZ.mjs";
|
|
2
2
|
import { i as publicEventCategories, n as OWNER_ONLY_EVENT_CATEGORIES, r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-78tcBemo.mjs";
|
|
3
|
-
import { a as DeviceType, i as DeviceRole, n as ChargingStatus, o as featuresOfBoundCaps, r as DeviceFeature, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-
|
|
4
|
-
import { $ as ExpressionHelperSpecSchema, $t as evaluateAst, A as MAX_COMPOSITION_FIELDS_PER_FEATURE, An as sliceChangedAt, At as maxDurationMs, B as featureSources, Bn as RESTREAM_INPUT_PROBE, Bt as evaluateDerivative, C as CompositionPassthroughFeatureSchema, Cn as SOURCE_CAP_ACTIVE_FIELD, Ct as MIN_CUSTOM_MINUTES, D as FORWARD_INPUT_KEY, Dn as evaluateSensorLevelEdge, Dt as StatisticWindowSchema, E as CompositionTargetSchema, En as evaluateSensorEdge, Et as RollingWindowSchema, F as compositionItemFieldPath, Ft as planStatisticTier, G as ARITHMETIC_OPS, Gn as buildVideoArgs, Gt as EXPRESSION_INJECTED_NOW, H as isForwardInputRef, Hn as buildAudioArgs, Ht as integrateReading, I as compositionReadKey, It as rollingDurationMs, J as ArithmeticHelperSpecSchema, Jn as logBannerArgs, Jt as evaluateExpressionSource, K as ActiveCriterionSchema, Kn as invocationFromEncodeProfile, Kt as cloneStatefulExpressionMemory, L as compositionSliceKey, Ln as canonicalHash, Lt as statisticCadenceMs, M as composedDeviceRef, Mt as openReset, N as composedDeviceStableId, Nt as openStatistic, O as MAX_COMPOSITION_CODE_LENGTH, On as isSourceCap, Ot as historyRetentionFromSettings, P as compositionFeatureEnabled, Pt as planResetTier, Q as EXPRESSION_OUTPUTS, Qt as createExpressionScope, R as compositionSourceKey, Rn as Fmp4BoxSplitter, Rt as SERIES_KINDS, S as CompositionNewTargetSchema, Sn as SOURCE_CAPS, St as MINUTE_MS, T as CompositionSeriesSourceSchema, Tn as SOURCE_DEVICE_TYPES, Tt as ROLLING_SPANS, U as ACTIVE_CRITERIA, Un as buildFfmpegArgs, Ut as KWH_PER_WATT_MS, V as fieldReads, Vn as audioPlanFromEncodeProfile, Vt as evaluateStatistic, W as AGGREGATE_REDUCERS, Wn as buildInputArgs, Wt as wattMillisecondsToKwh, X as DERIVATIVE_UNITS, Xn as resolveStreamMaps, Xt as toExpressionValue, Y as BINARY_AGGREGATES, Yn as pickVideoEncoder, Yt as evaluateStatefulExpressionCall, Z as DerivativeHelperSpecSchema, Zt as validateExpressionSource, _ as CompositionForwardArgSchema, _n as evaluateRose, _t as DEFAULT_HISTORY_RETENTION, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, an as EXPRESSION_IDENTIFIER_RE, at as INTEGRAL_OUTPUTS, b as CompositionItemEntrySchema, bn as ExpressionParseError, bt as HISTORY_TIERS, c as CompositionCodeSourceSchema, cn as MAX_EXPRESSION_CALL_ARGS, ct as NUMERIC_AGGREGATES, d as CompositionExpressionSourceSchema, dn as RESERVED_BINDING_NAMES, dt as helperMembers, en as compileExpression, et as GROUP_TEMPLATE_IDS, f as CompositionExtensionCommandSchema, fn as EXPRESSION_BUILTINS, ft as isHistoryHelper, g as CompositionFieldsFeatureSchema, gn as evaluateDwell, gt as DAY_MS, h as CompositionFieldSourceSchema, hn as evaluateCount, ht as CalendarWindowSchema, i as COMPOSITION_ITEM_KEY_RE, in as EXPRESSION_COMPILE_CACHE_CAPACITY, it as HelperSpecSchema, j as MAX_COMPOSITION_ITEMS, jn as FFMPEG_PATH_ENV, jt as nextLocalMidnight, k as MAX_COMPOSITION_FEATURES, kn as sliceActiveValue, kt as integralCadenceMs, l as CompositionCommandTargetSchema, ln as MAX_EXPRESSION_EVAL_STEPS, lt as StatisticHelperSpecSchema, m as CompositionFieldReadSchema, mn as disarmRoseMemory, mt as CALENDAR_PERIODS, n as COMPOSER_ADDON_ID, nn as parseExpression, nt as GroupTemplateIdSchema, o as CompositionAggregateSourceSchema, on as MAX_EXPRESSION_AST_NODES, ot as IntegralHelperSpecSchema, p as CompositionFeatureSchema, pn as EXPRESSION_BUILTIN_NAMES, pt as CompositionSourceRefSchema, q as AggregateReducerSchema, qn as isSoftwareDecode, qt as createStatefulExpressionMemory, r as COMPOSITION_ITEM_ARRAY_PATH, rn as tokenize, rt as HelperMemberSchema, s as CompositionBindingSchema, sn as MAX_EXPRESSION_BINDINGS, st as MAX_HELPER_MEMBERS, t as implementedMethodsOf, tn as compileExpressionSafe, tt as GroupHelperSpecSchema, u as CompositionExistingTargetSchema, un as MAX_EXPRESSION_SOURCE_LENGTH, ut as ThresholdHelperSpecSchema, v as CompositionForwardCommandSchema, vn as isStatefulBuiltin, vt as HISTORY_FAST_MS, w as CompositionSchema, wn as SOURCE_CAP_CHANGED_AT_FIELD, wt as RESET_PERIODS, x as CompositionLiteralBindingSchema, xn as DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, xt as HOUR_MS, y as CompositionFromSourceSchema, yn as ExpressionEvalError, yt as HISTORY_SLOW_MS, z as featureFieldEntries, zn as AUDIO_PRESETS, zt as STATISTIC_STATS } from "./implemented-methods-
|
|
3
|
+
import { a as DeviceType, i as DeviceRole, n as ChargingStatus, o as featuresOfBoundCaps, r as DeviceFeature, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-CPp3votu.mjs";
|
|
4
|
+
import { $ as ExpressionHelperSpecSchema, $t as evaluateAst, A as MAX_COMPOSITION_FIELDS_PER_FEATURE, An as sliceChangedAt, At as maxDurationMs, B as featureSources, Bn as RESTREAM_INPUT_PROBE, Bt as evaluateDerivative, C as CompositionPassthroughFeatureSchema, Cn as SOURCE_CAP_ACTIVE_FIELD, Ct as MIN_CUSTOM_MINUTES, D as FORWARD_INPUT_KEY, Dn as evaluateSensorLevelEdge, Dt as StatisticWindowSchema, E as CompositionTargetSchema, En as evaluateSensorEdge, Et as RollingWindowSchema, F as compositionItemFieldPath, Ft as planStatisticTier, G as ARITHMETIC_OPS, Gn as buildVideoArgs, Gt as EXPRESSION_INJECTED_NOW, H as isForwardInputRef, Hn as buildAudioArgs, Ht as integrateReading, I as compositionReadKey, It as rollingDurationMs, J as ArithmeticHelperSpecSchema, Jn as logBannerArgs, Jt as evaluateExpressionSource, K as ActiveCriterionSchema, Kn as invocationFromEncodeProfile, Kt as cloneStatefulExpressionMemory, L as compositionSliceKey, Ln as canonicalHash, Lt as statisticCadenceMs, M as composedDeviceRef, Mt as openReset, N as composedDeviceStableId, Nt as openStatistic, O as MAX_COMPOSITION_CODE_LENGTH, On as isSourceCap, Ot as historyRetentionFromSettings, P as compositionFeatureEnabled, Pt as planResetTier, Q as EXPRESSION_OUTPUTS, Qt as createExpressionScope, R as compositionSourceKey, Rn as Fmp4BoxSplitter, Rt as SERIES_KINDS, S as CompositionNewTargetSchema, Sn as SOURCE_CAPS, St as MINUTE_MS, T as CompositionSeriesSourceSchema, Tn as SOURCE_DEVICE_TYPES, Tt as ROLLING_SPANS, U as ACTIVE_CRITERIA, Un as buildFfmpegArgs, Ut as KWH_PER_WATT_MS, V as fieldReads, Vn as audioPlanFromEncodeProfile, Vt as evaluateStatistic, W as AGGREGATE_REDUCERS, Wn as buildInputArgs, Wt as wattMillisecondsToKwh, X as DERIVATIVE_UNITS, Xn as resolveStreamMaps, Xt as toExpressionValue, Y as BINARY_AGGREGATES, Yn as pickVideoEncoder, Yt as evaluateStatefulExpressionCall, Z as DerivativeHelperSpecSchema, Zt as validateExpressionSource, _ as CompositionForwardArgSchema, _n as evaluateRose, _t as DEFAULT_HISTORY_RETENTION, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, an as EXPRESSION_IDENTIFIER_RE, at as INTEGRAL_OUTPUTS, b as CompositionItemEntrySchema, bn as ExpressionParseError, bt as HISTORY_TIERS, c as CompositionCodeSourceSchema, cn as MAX_EXPRESSION_CALL_ARGS, ct as NUMERIC_AGGREGATES, d as CompositionExpressionSourceSchema, dn as RESERVED_BINDING_NAMES, dt as helperMembers, en as compileExpression, et as GROUP_TEMPLATE_IDS, f as CompositionExtensionCommandSchema, fn as EXPRESSION_BUILTINS, ft as isHistoryHelper, g as CompositionFieldsFeatureSchema, gn as evaluateDwell, gt as DAY_MS, h as CompositionFieldSourceSchema, hn as evaluateCount, ht as CalendarWindowSchema, i as COMPOSITION_ITEM_KEY_RE, in as EXPRESSION_COMPILE_CACHE_CAPACITY, it as HelperSpecSchema, j as MAX_COMPOSITION_ITEMS, jn as FFMPEG_PATH_ENV, jt as nextLocalMidnight, k as MAX_COMPOSITION_FEATURES, kn as sliceActiveValue, kt as integralCadenceMs, l as CompositionCommandTargetSchema, ln as MAX_EXPRESSION_EVAL_STEPS, lt as StatisticHelperSpecSchema, m as CompositionFieldReadSchema, mn as disarmRoseMemory, mt as CALENDAR_PERIODS, n as COMPOSER_ADDON_ID, nn as parseExpression, nt as GroupTemplateIdSchema, o as CompositionAggregateSourceSchema, on as MAX_EXPRESSION_AST_NODES, ot as IntegralHelperSpecSchema, p as CompositionFeatureSchema, pn as EXPRESSION_BUILTIN_NAMES, pt as CompositionSourceRefSchema, q as AggregateReducerSchema, qn as isSoftwareDecode, qt as createStatefulExpressionMemory, r as COMPOSITION_ITEM_ARRAY_PATH, rn as tokenize, rt as HelperMemberSchema, s as CompositionBindingSchema, sn as MAX_EXPRESSION_BINDINGS, st as MAX_HELPER_MEMBERS, t as implementedMethodsOf, tn as compileExpressionSafe, tt as GroupHelperSpecSchema, u as CompositionExistingTargetSchema, un as MAX_EXPRESSION_SOURCE_LENGTH, ut as ThresholdHelperSpecSchema, v as CompositionForwardCommandSchema, vn as isStatefulBuiltin, vt as HISTORY_FAST_MS, w as CompositionSchema, wn as SOURCE_CAP_CHANGED_AT_FIELD, wt as RESET_PERIODS, x as CompositionLiteralBindingSchema, xn as DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, xt as HOUR_MS, y as CompositionFromSourceSchema, yn as ExpressionEvalError, yt as HISTORY_SLOW_MS, z as featureFieldEntries, zn as AUDIO_PRESETS, zt as STATISTIC_STATS } from "./implemented-methods-5YMDeE3f.mjs";
|
|
5
5
|
import { NODE_COLOR_IDS, NodeColorIdSchema, assignNodeColorId } from "./node-color.mjs";
|
|
6
6
|
import { a as tryConvertUnit, c as UNIT_TABLE, i as tryConvertDelta, n as canConvertUnit, o as unitDimension, r as convertUnit, s as unitsForDimension, t as UnitConversionError } from "./convert-BAzH15HU.mjs";
|
|
7
7
|
import { EventSourceType } from "./enums.mjs";
|
|
@@ -460,6 +460,7 @@ function buildAddonRouteProvider(id, routes) {
|
|
|
460
460
|
query: input.query,
|
|
461
461
|
body: input.body,
|
|
462
462
|
headers: input.headers,
|
|
463
|
+
...match.route.perInstance === true && input.instanceId !== void 0 ? { instanceId: input.instanceId } : {},
|
|
463
464
|
...input.user ? { user: input.user } : {},
|
|
464
465
|
...input.scopedToken !== void 0 ? { scopedToken: input.scopedToken } : {}
|
|
465
466
|
};
|
|
@@ -528,6 +529,36 @@ function buildCapturingReply(envelope) {
|
|
|
528
529
|
return wrapper;
|
|
529
530
|
}
|
|
530
531
|
//#endregion
|
|
532
|
+
//#region src/addon/addon-instance.ts
|
|
533
|
+
/**
|
|
534
|
+
* The integration instance of an addon, as it appears in an address or on an
|
|
535
|
+
* OAuth link (planning#415, D1046).
|
|
536
|
+
*
|
|
537
|
+
* The DEFAULT instance has two spellings on the wire and one in the code: a
|
|
538
|
+
* path with no instance segment and a link with no instance both mean it, and
|
|
539
|
+
* its id is the addon id. {@link oauthLinkServesInstance} is the one
|
|
540
|
+
* comparison a per-instance route is meant to call, so nobody compares
|
|
541
|
+
* `undefined` with an id. Nothing calls it yet: no route declares
|
|
542
|
+
* `perInstance` (the Alexa per-instance route, T3, is the first consumer).
|
|
543
|
+
*/
|
|
544
|
+
/** An instance id as it may appear in a path or a query: no separator, no escape, bounded. */
|
|
545
|
+
var ADDON_INSTANCE_ID_RE = /^[A-Za-z0-9._-]{1,64}$/;
|
|
546
|
+
function isAddonInstanceId(value) {
|
|
547
|
+
return ADDON_INSTANCE_ID_RE.test(value);
|
|
548
|
+
}
|
|
549
|
+
/** The instance a link was made for, with the default one spelled as the addon id. */
|
|
550
|
+
function oauthLinkInstanceId(link, addonId) {
|
|
551
|
+
return link.instanceId ?? addonId;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* True when a verified link may be used on a request addressed to
|
|
555
|
+
* `requestInstanceId` (`AddonHttpRequest.instanceId`, absent on a route that
|
|
556
|
+
* is not per-instance, which is the default instance).
|
|
557
|
+
*/
|
|
558
|
+
function oauthLinkServesInstance(link, requestInstanceId, addonId) {
|
|
559
|
+
return oauthLinkInstanceId(link, addonId) === (requestInstanceId ?? addonId);
|
|
560
|
+
}
|
|
561
|
+
//#endregion
|
|
531
562
|
//#region src/addon/session-health.ts
|
|
532
563
|
var SESSION_LOST_ALERT_CATEGORY = "integration.session-lost";
|
|
533
564
|
var SESSION_EPISODE_KEY = "session-lost";
|
|
@@ -31186,16 +31217,39 @@ function metaQuantity(schema) {
|
|
|
31186
31217
|
function quantityOfField(schema) {
|
|
31187
31218
|
return metaQuantity(schema) ?? metaQuantity(unwrapSchema(schema));
|
|
31188
31219
|
}
|
|
31220
|
+
function scalarKind(schema) {
|
|
31221
|
+
const s = unwrapSchema(schema);
|
|
31222
|
+
if (s instanceof z.ZodNumber) return "number";
|
|
31223
|
+
if (s instanceof z.ZodString) return "string";
|
|
31224
|
+
if (s instanceof z.ZodBoolean) return "boolean";
|
|
31225
|
+
return null;
|
|
31226
|
+
}
|
|
31227
|
+
/** A union is a leaf only when EVERY member is a scalar; one object or array member keeps it out. */
|
|
31228
|
+
function unionMembersOf(s) {
|
|
31229
|
+
const members = [];
|
|
31230
|
+
for (const option of s.options) {
|
|
31231
|
+
if (!(option instanceof z.ZodType)) return null;
|
|
31232
|
+
const kind = scalarKind(option);
|
|
31233
|
+
if (kind === null) return null;
|
|
31234
|
+
if (!members.includes(kind)) members.push(kind);
|
|
31235
|
+
}
|
|
31236
|
+
return members.length > 0 ? members : null;
|
|
31237
|
+
}
|
|
31189
31238
|
function leafKind(schema) {
|
|
31190
31239
|
const s = unwrapSchema(schema);
|
|
31191
31240
|
if (s instanceof z.ZodEnum) return {
|
|
31192
31241
|
kind: "enum",
|
|
31193
31242
|
enumValues: s.options
|
|
31194
31243
|
};
|
|
31195
|
-
if (s instanceof z.
|
|
31196
|
-
|
|
31197
|
-
|
|
31198
|
-
|
|
31244
|
+
if (s instanceof z.ZodUnion) {
|
|
31245
|
+
const members = unionMembersOf(s);
|
|
31246
|
+
return members === null ? null : {
|
|
31247
|
+
kind: "union",
|
|
31248
|
+
unionMembers: members
|
|
31249
|
+
};
|
|
31250
|
+
}
|
|
31251
|
+
const scalar = scalarKind(s);
|
|
31252
|
+
return scalar === null ? null : { kind: scalar };
|
|
31199
31253
|
}
|
|
31200
31254
|
/** Walk a cap status schema into flat wireable leaf fields (dotted paths).
|
|
31201
31255
|
* Recurses into nested ZodObject (unwrapping nullable/optional/default first),
|
|
@@ -31220,6 +31274,7 @@ function enumerateSchemaFields(schema, prefix = "") {
|
|
|
31220
31274
|
path,
|
|
31221
31275
|
kind: leaf.kind,
|
|
31222
31276
|
...leaf.enumValues ? { enumValues: leaf.enumValues } : {},
|
|
31277
|
+
...leaf.unionMembers ? { unionMembers: leaf.unionMembers } : {},
|
|
31223
31278
|
...quantity !== void 0 ? { quantity } : {}
|
|
31224
31279
|
});
|
|
31225
31280
|
}
|
|
@@ -33390,9 +33445,12 @@ function convertLegacyWhen(half) {
|
|
|
33390
33445
|
* every caller — automations, Actions, and the notification centre, which runs
|
|
33391
33446
|
* only Actions (planning#473).
|
|
33392
33447
|
*/
|
|
33448
|
+
/** The longest one `wait` step lasts. It is cut by a restart of the run and does not survive a hub restart. */
|
|
33449
|
+
var WAIT_MAX_SECONDS = 3600;
|
|
33450
|
+
var WAIT_TOO_LONG = `a wait is at most one hour (${WAIT_MAX_SECONDS} s)`;
|
|
33393
33451
|
var AutomationWaitStepSchema = z.object({
|
|
33394
33452
|
kind: z.literal("wait"),
|
|
33395
|
-
seconds: z.number().min(0).max(
|
|
33453
|
+
seconds: z.number().min(0).max(WAIT_MAX_SECONDS, WAIT_TOO_LONG)
|
|
33396
33454
|
});
|
|
33397
33455
|
/** The legacy `deviceId` of a cap step: still READ, never written (D983). */
|
|
33398
33456
|
var LegacyStepDeviceSchema = z.union([
|
|
@@ -33522,20 +33580,224 @@ var ActionStepSchema = z.discriminatedUnion("kind", [GuardedWaitStepSchema, Guar
|
|
|
33522
33580
|
path: ["if"]
|
|
33523
33581
|
});
|
|
33524
33582
|
});
|
|
33583
|
+
/**
|
|
33584
|
+
* Flow control of an AUTOMATION's list (#500). A standalone list (an action, a
|
|
33585
|
+
* scheduler point, a preset) stays `wait` and `cap`: it has no run of its own
|
|
33586
|
+
* to end and no variable bag to write.
|
|
33587
|
+
*/
|
|
33588
|
+
var continueOnErrorShape = {
|
|
33589
|
+
/** A failure of this step is traced `failed-continued` and the next step runs. */
|
|
33590
|
+
continueOnError: z.literal(true).optional() };
|
|
33591
|
+
/** An automation's cap step: the shared guarded cap step, plus `continueOnError`. */
|
|
33592
|
+
var AutomationGuardedCapStepSchema = AutomationCapStepBaseSchema.extend({
|
|
33593
|
+
...stepGuardShape,
|
|
33594
|
+
...continueOnErrorShape
|
|
33595
|
+
}).refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
|
|
33596
|
+
message: "a cap step needs a target",
|
|
33597
|
+
path: ["target"]
|
|
33598
|
+
}).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
|
|
33599
|
+
message: "a domain target needs the vocabulary action it applies to (actionId)",
|
|
33600
|
+
path: ["actionId"]
|
|
33601
|
+
}).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
|
|
33602
|
+
var STOP_REASON_MAX = 200;
|
|
33603
|
+
/** End the run here, on purpose. `reason` may carry `{{vars.x}}` slots. */
|
|
33604
|
+
var AutomationStopStepSchema = z.object({
|
|
33605
|
+
kind: z.literal("stop"),
|
|
33606
|
+
reason: z.string().min(1, "a stop needs a reason: it is what the run trace shows").max(200),
|
|
33607
|
+
/** `ok`: the run ends as a success. `failed`: it ends as a failure, with the reason. */
|
|
33608
|
+
outcome: z.enum(["ok", "failed"]),
|
|
33609
|
+
/** Stop only when this reads true; false or unknown does not stop. */
|
|
33610
|
+
if: AutomationWhenSchema.optional()
|
|
33611
|
+
});
|
|
33612
|
+
var SET_VARS_MAX = 20;
|
|
33613
|
+
var SET_VAR_VALUE_MAX = 500;
|
|
33614
|
+
var SET_VAR_NAME_RE = /^[A-Za-z_][A-Za-z0-9_]{0,39}$/;
|
|
33615
|
+
/** Names the run itself writes and reads (`leaf` is what `triggered-by` judges): a step may not overwrite them. */
|
|
33616
|
+
var RESERVED_RUN_VARS = [
|
|
33617
|
+
"kind",
|
|
33618
|
+
"leaf",
|
|
33619
|
+
"at"
|
|
33620
|
+
];
|
|
33621
|
+
/**
|
|
33622
|
+
* Write variables into the run's bag, for the steps after it. SUBSTITUTION
|
|
33623
|
+
* only, never evaluation: a text value may carry `{{vars.x}}` slots.
|
|
33624
|
+
*/
|
|
33625
|
+
var AutomationSetStepSchema = z.object({
|
|
33626
|
+
kind: z.literal("set"),
|
|
33627
|
+
vars: z.record(z.string(), z.union([
|
|
33628
|
+
z.string().max(500),
|
|
33629
|
+
z.number(),
|
|
33630
|
+
z.boolean()
|
|
33631
|
+
])).refine((vars) => Object.keys(vars).every((name) => SET_VAR_NAME_RE.test(name)), { message: "a variable name is letters, digits and _, not starting with a digit (max 40)" }).refine((vars) => Object.keys(vars).length >= 1, { message: "set needs at least one variable" }).refine((vars) => Object.keys(vars).length <= 20, { message: `set holds at most 20 variables` }).refine((vars) => Object.keys(vars).every((name) => !RESERVED_RUN_VARS.includes(name)), { message: `the names ${RESERVED_RUN_VARS.join(", ")} belong to the run and cannot be set` }),
|
|
33632
|
+
/** Set only when this reads true; false or unknown leaves the bag as it is. */
|
|
33633
|
+
if: AutomationWhenSchema.optional()
|
|
33634
|
+
});
|
|
33635
|
+
var AutomationRunActionStepSchema = z.object({
|
|
33636
|
+
kind: z.literal("action"),
|
|
33637
|
+
/** An entry of the `actions` surface (`internal:<uuid>` or `<addonId>:<localId>`). */
|
|
33638
|
+
actionId: z.string().min(1),
|
|
33639
|
+
/** Values for the action's declared variables; the others take their default. */
|
|
33640
|
+
variables: z.record(z.string(), z.union([
|
|
33641
|
+
z.string(),
|
|
33642
|
+
z.number(),
|
|
33643
|
+
z.boolean()
|
|
33644
|
+
])).optional(),
|
|
33645
|
+
...continueOnErrorShape
|
|
33646
|
+
});
|
|
33647
|
+
/** How many branches one `choose` holds. */
|
|
33648
|
+
var CHOOSE_BRANCHES_MAX = 6;
|
|
33649
|
+
/**
|
|
33650
|
+
* A step INSIDE a branch of a `choose`: a flow step with no condition of its
|
|
33651
|
+
* own (the branch is the condition) and no block inside it. Strict, so an `if`
|
|
33652
|
+
* written on such a step is refused rather than dropped.
|
|
33653
|
+
*/
|
|
33654
|
+
/** The longest a `wait-until` may wait: six hours. */
|
|
33655
|
+
var WAIT_UNTIL_TIMEOUT_MAX_S = 21600;
|
|
33656
|
+
/**
|
|
33657
|
+
* Pause the run until a condition is true (#500). The timeout is mandatory: a
|
|
33658
|
+
* run never waits without an end. `onTimeout` says what a wait that ran out
|
|
33659
|
+
* does: `continue` goes on to the next step, `stop` ends the run as a failure.
|
|
33660
|
+
* A condition that cannot be read is not "true": the wait goes on (D49).
|
|
33661
|
+
*/
|
|
33662
|
+
var AutomationWaitUntilStepSchema = z.object({
|
|
33663
|
+
kind: z.literal("wait-until"),
|
|
33664
|
+
when: AutomationWhenSchema,
|
|
33665
|
+
timeoutS: z.number().int().min(1, "a wait needs a timeout of at least one second").max(WAIT_UNTIL_TIMEOUT_MAX_S, `a wait for a condition is at most six hours (${WAIT_UNTIL_TIMEOUT_MAX_S} s)`),
|
|
33666
|
+
onTimeout: z.enum(["continue", "stop"])
|
|
33667
|
+
}).strict();
|
|
33668
|
+
/** The step kinds that hold steps of their own, or pause on a condition: they nest two levels at most. */
|
|
33669
|
+
var BLOCK_STEP_KINDS = [
|
|
33670
|
+
"choose",
|
|
33671
|
+
"repeat",
|
|
33672
|
+
"parallel",
|
|
33673
|
+
"wait-until"
|
|
33674
|
+
];
|
|
33675
|
+
var STEP_NEST_MAX = 2;
|
|
33676
|
+
var NEST_TOO_DEEP = `steps nest two levels at most: a step inside a nested choose or repeat can be a plain step only`;
|
|
33677
|
+
function kindOf(input) {
|
|
33678
|
+
return typeof input === "object" && input !== null ? Reflect.get(input, "kind") : void 0;
|
|
33679
|
+
}
|
|
33680
|
+
/** Where the nesting ends, a block step is refused in words rather than as an unknown kind. */
|
|
33681
|
+
function nestTooDeep(issue) {
|
|
33682
|
+
const kind = kindOf(issue.input);
|
|
33683
|
+
return typeof kind === "string" && BLOCK_STEP_KINDS.includes(kind) ? NEST_TOO_DEEP : void 0;
|
|
33684
|
+
}
|
|
33685
|
+
var plainStepSchemas = [
|
|
33686
|
+
AutomationWaitStepSchema.strict(),
|
|
33687
|
+
AutomationCapStepBaseSchema.extend(continueOnErrorShape).strict().refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
|
|
33688
|
+
message: "a cap step needs a target",
|
|
33689
|
+
path: ["target"]
|
|
33690
|
+
}).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
|
|
33691
|
+
message: "a domain target needs the vocabulary action it applies to (actionId)",
|
|
33692
|
+
path: ["actionId"]
|
|
33693
|
+
}),
|
|
33694
|
+
AutomationStopStepSchema.omit({ if: true }).strict(),
|
|
33695
|
+
AutomationSetStepSchema.omit({ if: true }).strict(),
|
|
33696
|
+
AutomationRunActionStepSchema.strict()
|
|
33697
|
+
];
|
|
33698
|
+
/**
|
|
33699
|
+
* A plain step: a flow step with no condition of its own and no step inside
|
|
33700
|
+
* it. The second (last) level of nesting holds these only.
|
|
33701
|
+
*/
|
|
33702
|
+
var AutomationBranchStepSchema = z.discriminatedUnion("kind", plainStepSchemas, { error: nestTooDeep });
|
|
33703
|
+
var PARALLEL_STEPS_MIN = 2;
|
|
33704
|
+
var PARALLEL_STEPS_MAX = 5;
|
|
33705
|
+
/** A step that can run beside others: it writes no variable and does not end the run. */
|
|
33706
|
+
var AutomationParallelMemberSchema = AutomationBranchStepSchema.refine((step) => step.kind === "cap" || step.kind === "action" || step.kind === "wait", "a parallel holds device commands, actions and waits only: a set or a stop beside other steps has no order");
|
|
33707
|
+
/**
|
|
33708
|
+
* Several steps at once (#500): all are started together and all are awaited.
|
|
33709
|
+
* A failure fails the run once the others finished, as in a sequence; a member
|
|
33710
|
+
* marked "continue if this fails" does not.
|
|
33711
|
+
*/
|
|
33712
|
+
var AutomationParallelStepSchema = z.object({
|
|
33713
|
+
kind: z.literal("parallel"),
|
|
33714
|
+
steps: z.array(AutomationParallelMemberSchema).min(2, "a parallel needs at least two steps").max(5, `a parallel takes at most 5 steps`)
|
|
33715
|
+
}).strict();
|
|
33716
|
+
var REPEAT_COUNT_MAX = 20;
|
|
33717
|
+
var REPEAT_ITERATIONS_MAX = 50;
|
|
33718
|
+
var REPEAT_STEPS_MAX = 10;
|
|
33719
|
+
var REPEAT_DEVICES_MAX = 50;
|
|
33720
|
+
/** The run variable a loop over devices writes before each iteration: the device id. */
|
|
33721
|
+
var REPEAT_ITEM_VAR = "item";
|
|
33722
|
+
var REPEAT_NEEDS_MAX = "a repeat on a condition needs a maximum number of iterations";
|
|
33723
|
+
/** A loop on a condition: the bound is mandatory, so a run never loops without an end. */
|
|
33724
|
+
var repeatConditionShape = {
|
|
33725
|
+
when: AutomationWhenSchema,
|
|
33726
|
+
maxIterations: z.number({ error: REPEAT_NEEDS_MAX }).int().min(1, REPEAT_NEEDS_MAX).max(50, `a repeat on a condition runs at most 50 times`),
|
|
33727
|
+
/** A pause between two iterations, never after the last. */
|
|
33728
|
+
waitS: z.number().int().min(1).max(WAIT_MAX_SECONDS, WAIT_TOO_LONG).optional()
|
|
33729
|
+
};
|
|
33730
|
+
/** What decides how many times a `repeat` runs. */
|
|
33731
|
+
var AutomationRepeatLoopSchema = z.discriminatedUnion("by", [
|
|
33732
|
+
z.object({
|
|
33733
|
+
by: z.literal("count"),
|
|
33734
|
+
count: z.number().int().min(1).max(20, `a repeat runs at most 20 times`)
|
|
33735
|
+
}).strict(),
|
|
33736
|
+
z.object({
|
|
33737
|
+
by: z.literal("while"),
|
|
33738
|
+
...repeatConditionShape
|
|
33739
|
+
}).strict(),
|
|
33740
|
+
z.object({
|
|
33741
|
+
by: z.literal("until"),
|
|
33742
|
+
...repeatConditionShape
|
|
33743
|
+
}).strict(),
|
|
33744
|
+
z.object({
|
|
33745
|
+
by: z.literal("forEach"),
|
|
33746
|
+
target: z.object({
|
|
33747
|
+
kind: z.literal("devices"),
|
|
33748
|
+
ids: z.array(z.number().int()).min(1, "a repeat over devices needs at least one device").max(50, `a repeat over devices takes at most 50 devices`)
|
|
33749
|
+
}).strict()
|
|
33750
|
+
}).strict()
|
|
33751
|
+
]);
|
|
33752
|
+
/**
|
|
33753
|
+
* The same steps several times (#500). Every form is bounded at save, so a
|
|
33754
|
+
* run cannot loop without an end. A failure or a `stop` in the steps ends the
|
|
33755
|
+
* loop and the run, as in a sequence.
|
|
33756
|
+
*/
|
|
33757
|
+
function repeatSchemaOf(step) {
|
|
33758
|
+
return z.object({
|
|
33759
|
+
kind: z.literal("repeat"),
|
|
33760
|
+
loop: AutomationRepeatLoopSchema,
|
|
33761
|
+
steps: z.array(step).min(1, "a repeat needs at least one step").max(10, `a repeat takes at most 10 steps`)
|
|
33762
|
+
}).strict();
|
|
33763
|
+
}
|
|
33764
|
+
/**
|
|
33765
|
+
* One step, several ways (#500): the branches are read in order and the FIRST
|
|
33766
|
+
* whose condition is true runs; `else` runs when every branch is false. A
|
|
33767
|
+
* branch that cannot be read ends the choice: nothing runs, not the branches
|
|
33768
|
+
* after it and not the else (D49). The #472 `if` / `else` of a wait or cap
|
|
33769
|
+
* step is the one-branch case and stays as it is stored.
|
|
33770
|
+
*/
|
|
33771
|
+
function chooseSchemaOf(step) {
|
|
33772
|
+
const steps = z.array(step).max(10);
|
|
33773
|
+
return z.object({
|
|
33774
|
+
kind: z.literal("choose"),
|
|
33775
|
+
branches: z.array(z.object({
|
|
33776
|
+
if: AutomationWhenSchema,
|
|
33777
|
+
steps: steps.min(1, "a branch needs at least one step")
|
|
33778
|
+
})).min(1, "a choose needs at least one branch").max(6, `a choose takes at most 6 branches`),
|
|
33779
|
+
else: steps.optional()
|
|
33780
|
+
});
|
|
33781
|
+
}
|
|
33782
|
+
var AutomationBodyStepSchema = z.discriminatedUnion("kind", [
|
|
33783
|
+
...plainStepSchemas,
|
|
33784
|
+
AutomationWaitUntilStepSchema,
|
|
33785
|
+
AutomationParallelStepSchema,
|
|
33786
|
+
chooseSchemaOf(AutomationBranchStepSchema),
|
|
33787
|
+
repeatSchemaOf(AutomationBranchStepSchema)
|
|
33788
|
+
]);
|
|
33789
|
+
var AutomationRepeatStepSchema = repeatSchemaOf(AutomationBodyStepSchema);
|
|
33790
|
+
var AutomationChooseStepSchema = chooseSchemaOf(AutomationBodyStepSchema);
|
|
33525
33791
|
var AutomationActionSchema = z.discriminatedUnion("kind", [
|
|
33526
33792
|
GuardedWaitStepSchema,
|
|
33527
|
-
|
|
33528
|
-
|
|
33529
|
-
|
|
33530
|
-
|
|
33531
|
-
|
|
33532
|
-
|
|
33533
|
-
|
|
33534
|
-
|
|
33535
|
-
z.number(),
|
|
33536
|
-
z.boolean()
|
|
33537
|
-
])).optional()
|
|
33538
|
-
}),
|
|
33793
|
+
AutomationGuardedCapStepSchema,
|
|
33794
|
+
AutomationStopStepSchema,
|
|
33795
|
+
AutomationSetStepSchema,
|
|
33796
|
+
AutomationChooseStepSchema,
|
|
33797
|
+
AutomationWaitUntilStepSchema,
|
|
33798
|
+
AutomationParallelStepSchema,
|
|
33799
|
+
AutomationRepeatStepSchema,
|
|
33800
|
+
AutomationRunActionStepSchema,
|
|
33539
33801
|
z.object({
|
|
33540
33802
|
kind: z.literal("code"),
|
|
33541
33803
|
/** Compiled into the automation's OWN block by esbuild — not a third
|
|
@@ -33601,12 +33863,47 @@ function convertLegacyRecipe(legacy) {
|
|
|
33601
33863
|
...rest
|
|
33602
33864
|
};
|
|
33603
33865
|
}
|
|
33604
|
-
/**
|
|
33605
|
-
* Where recipes are PARSED (the core-blocks cap, the MCP tool, the literal a
|
|
33606
|
-
* saved block carries): the new shape as it is, or the old shape converted to
|
|
33607
|
-
* it. The output type is always the new one.
|
|
33608
|
-
*/
|
|
33609
33866
|
var AutomationRecipeSchema = z.union([CurrentAutomationRecipeSchema, LegacyAutomationRecipeSchema.transform(convertLegacyRecipe)]);
|
|
33867
|
+
/** The `if` of a step that can carry one (`action`, `code`, `choose` and `wait-until` steps cannot). */
|
|
33868
|
+
function stepGuardOf(action) {
|
|
33869
|
+
switch (action.kind) {
|
|
33870
|
+
case "action":
|
|
33871
|
+
case "code":
|
|
33872
|
+
case "choose":
|
|
33873
|
+
case "wait-until":
|
|
33874
|
+
case "parallel":
|
|
33875
|
+
case "repeat": return;
|
|
33876
|
+
default: return action.if;
|
|
33877
|
+
}
|
|
33878
|
+
}
|
|
33879
|
+
/** Every condition of a step: its own `if`, or the `if` of each branch of a `choose`. */
|
|
33880
|
+
function stepConditionsOf(action) {
|
|
33881
|
+
const under = (prefix, steps) => steps.flatMap((step, at) => stepConditionsOf(step).map((ref) => ({
|
|
33882
|
+
...ref,
|
|
33883
|
+
path: `${prefix}.${at}.${ref.path}`
|
|
33884
|
+
})));
|
|
33885
|
+
if (action.kind === "choose") return [...action.branches.flatMap((branch, i) => [{
|
|
33886
|
+
path: `branches.${i}.if`,
|
|
33887
|
+
when: branch.if
|
|
33888
|
+
}, ...under(`branches.${i}.steps`, branch.steps)]), ...under("else", action.else ?? [])];
|
|
33889
|
+
if (action.kind === "wait-until") return [{
|
|
33890
|
+
path: "when",
|
|
33891
|
+
when: action.when
|
|
33892
|
+
}];
|
|
33893
|
+
if (action.kind === "repeat") return [...action.loop.by === "while" || action.loop.by === "until" ? [{
|
|
33894
|
+
path: "loop.when",
|
|
33895
|
+
when: action.loop.when
|
|
33896
|
+
}] : [], ...under("steps", action.steps)];
|
|
33897
|
+
const when = stepGuardOf(action);
|
|
33898
|
+
return when === void 0 ? [] : [{
|
|
33899
|
+
path: "if",
|
|
33900
|
+
when
|
|
33901
|
+
}];
|
|
33902
|
+
}
|
|
33903
|
+
/** Every step a block step holds, at both levels, in the order they are written; none for a plain step. */
|
|
33904
|
+
function nestedStepsOf(action) {
|
|
33905
|
+
return (action.kind === "parallel" || action.kind === "repeat" ? action.steps : action.kind === "choose" ? [...action.branches.flatMap((branch) => branch.steps), ...action.else ?? []] : []).flatMap((step) => [step, ...nestedStepsOf(step)]);
|
|
33906
|
+
}
|
|
33610
33907
|
/** Bounds, shared by `when` and the old names the guards still know. */
|
|
33611
33908
|
var MAX_CONDITION_DEPTH = 4;
|
|
33612
33909
|
var MAX_CONDITION_LEAVES = 32;
|
|
@@ -33622,9 +33919,8 @@ function validateRecipeBounds(recipe) {
|
|
|
33622
33919
|
const ids = new Set(identifiedEventLeaves(recipe.when).map((entry) => entry.id));
|
|
33623
33920
|
const inRules = triggeredByIssue(recipe.when, ids, "the rules");
|
|
33624
33921
|
if (inRules !== null) return inRules;
|
|
33625
|
-
for (const [index, action] of recipe.actions.entries()) {
|
|
33626
|
-
|
|
33627
|
-
const issue = triggeredByIssue(action.if, ids, `step ${index + 1}`);
|
|
33922
|
+
for (const [index, action] of recipe.actions.entries()) for (const condition of stepConditionsOf(action)) {
|
|
33923
|
+
const issue = triggeredByIssue(condition.when, ids, `step ${index + 1}`);
|
|
33628
33924
|
if (issue !== null) return issue;
|
|
33629
33925
|
}
|
|
33630
33926
|
return null;
|
|
@@ -34400,6 +34696,12 @@ function stepMetaOf(action) {
|
|
|
34400
34696
|
case "wait": return { kind: "wait" };
|
|
34401
34697
|
case "code": return { kind: "code" };
|
|
34402
34698
|
case "action": return { kind: "action" };
|
|
34699
|
+
case "stop": return { kind: "stop" };
|
|
34700
|
+
case "wait-until": return { kind: "wait-until" };
|
|
34701
|
+
case "parallel": return { kind: "parallel" };
|
|
34702
|
+
case "repeat": return { kind: "repeat" };
|
|
34703
|
+
case "set": return { kind: "set" };
|
|
34704
|
+
case "choose": return { kind: "choose" };
|
|
34403
34705
|
case "cap": {
|
|
34404
34706
|
const { target, actionId } = normalizeCapStep(action);
|
|
34405
34707
|
return {
|
|
@@ -34620,42 +34922,15 @@ function emitLeaf(trigger, path) {
|
|
|
34620
34922
|
}`;
|
|
34621
34923
|
}
|
|
34622
34924
|
}
|
|
34623
|
-
/**
|
|
34624
|
-
function
|
|
34925
|
+
/** What a plain step does when it runs: the body of its `run`, wherever the step sits. */
|
|
34926
|
+
function emitStepBody(action) {
|
|
34625
34927
|
switch (action.kind) {
|
|
34626
34928
|
case "wait": return ` await sleep(${j(action.seconds * 1e3)})`;
|
|
34627
34929
|
case "cap": {
|
|
34628
34930
|
const { target, actionId } = normalizeCapStep(action);
|
|
34629
34931
|
return ` await actuateTarget(scope, ${j(target)}, ${j(actionId)}, ${j(action.cap)}, ${j(action.method)}, ${j(action.args ?? {})}, vars)`;
|
|
34630
34932
|
}
|
|
34631
|
-
|
|
34632
|
-
}
|
|
34633
|
-
}
|
|
34634
|
-
/** A step's `if` (#472) and its else list, as the fields of a RunnableStep. */
|
|
34635
|
-
function emitGuard(action, index) {
|
|
34636
|
-
if (action.kind !== "wait" && action.kind !== "cap") return "";
|
|
34637
|
-
if (action.if === void 0) return "";
|
|
34638
|
-
const otherwise = (action.else ?? []).map((el) => {
|
|
34639
|
-
const body = emitLeafBody(el);
|
|
34640
|
-
return `{ meta: ${j(stepMetaOf(el))}, run: async (scope) => {\n${body ?? ""}\n } }`;
|
|
34641
|
-
}).join(", ");
|
|
34642
|
-
return ` guard: () => evaluateCondition(${j(action.if)}, ${j(`actions.${index}.if`)}, vars),${otherwise === "" ? "" : `\n otherwise: [${otherwise}],`}
|
|
34643
|
-
`;
|
|
34644
|
-
}
|
|
34645
|
-
function emitAction(action, index) {
|
|
34646
|
-
const step = (body) => ` {
|
|
34647
|
-
meta: STEP_META[${index}]!,
|
|
34648
|
-
${emitGuard(action, index)} run: async (scope) => {
|
|
34649
|
-
${body}
|
|
34650
|
-
},
|
|
34651
|
-
},`;
|
|
34652
|
-
switch (action.kind) {
|
|
34653
|
-
case "wait": return step(` await sleep(${j(action.seconds * 1e3)})`);
|
|
34654
|
-
case "cap": {
|
|
34655
|
-
const { target, actionId } = normalizeCapStep(action);
|
|
34656
|
-
return step(` await actuateTarget(scope, ${j(target)}, ${j(actionId)}, ${j(action.cap)}, ${j(action.method)}, ${j(action.args ?? {})}, vars)`);
|
|
34657
|
-
}
|
|
34658
|
-
case "action": return step(` // an Action run, awaited: the step takes THAT run's outcome
|
|
34933
|
+
case "action": return ` // an Action run, awaited: the step takes THAT run's outcome
|
|
34659
34934
|
const result = await ctx.api.actions.run.mutate({
|
|
34660
34935
|
actionId: ${j(action.actionId)},
|
|
34661
34936
|
variables: substituteVariables(${j(action.variables ?? {})}, vars),
|
|
@@ -34664,13 +34939,153 @@ ${body}
|
|
|
34664
34939
|
})
|
|
34665
34940
|
if (result.outcome !== 'ran') {
|
|
34666
34941
|
throw new Error('action ' + ${j(action.actionId)} + ' ' + result.outcome + (result.message === undefined ? '' : ': ' + result.message))
|
|
34667
|
-
}
|
|
34668
|
-
case "
|
|
34942
|
+
}`;
|
|
34943
|
+
case "stop": return ` // end the run here, on purpose: the steps after it are not-run with this reason
|
|
34944
|
+
scope.stop(String(substitute(${j(action.reason)}, vars)), ${j(action.outcome)})`;
|
|
34945
|
+
case "set": return ` // write the run's own bag, for the steps after this one — substitution only
|
|
34946
|
+
Object.assign(vars, substituteVariables(${j(action.vars)}, vars))`;
|
|
34947
|
+
case "code": return ` // inline code action — a fragment of THIS block, bundled by esbuild
|
|
34669
34948
|
await (async () => {
|
|
34670
34949
|
${action.code.split("\n").map((line) => ` ${line}`).join("\n")}
|
|
34671
|
-
})()
|
|
34950
|
+
})()`;
|
|
34951
|
+
}
|
|
34952
|
+
}
|
|
34953
|
+
function continues(action) {
|
|
34954
|
+
return (action.kind === "cap" || action.kind === "action") && action.continueOnError === true;
|
|
34955
|
+
}
|
|
34956
|
+
/** Whether the site is inside a block step: the automation's own steps sit at `actions.<n>`. */
|
|
34957
|
+
function isNestedSite(site) {
|
|
34958
|
+
return site.path.split(".").length > 2;
|
|
34959
|
+
}
|
|
34960
|
+
/** A list of steps under `path` (a branch, an else list, the steps of a repeat or a parallel). */
|
|
34961
|
+
function emitList(steps, path) {
|
|
34962
|
+
return steps.map((step, at) => emitStep(step, {
|
|
34963
|
+
meta: j(stepMetaOf(step)),
|
|
34964
|
+
path: `${path}.${at}`
|
|
34965
|
+
})).join("\n");
|
|
34966
|
+
}
|
|
34967
|
+
/** A step's `if` (#472) and its else list, as the fields of a RunnableStep. */
|
|
34968
|
+
function emitGuard(action, site) {
|
|
34969
|
+
const when = stepGuardOf(action);
|
|
34970
|
+
if (when === void 0) return "";
|
|
34971
|
+
const otherwise = emitList(action.kind === "wait" || action.kind === "cap" ? action.else ?? [] : [], `${site.path}.else`);
|
|
34972
|
+
return ` guard: () => evaluateCondition(${j(when)}, ${j(`${site.path}.if`)}, vars),${otherwise === "" ? "" : `\n otherwise: [\n${otherwise}\n],`}
|
|
34973
|
+
`;
|
|
34974
|
+
}
|
|
34975
|
+
/** A `choose` step: its branches, each a condition and a list, and its else list. */
|
|
34976
|
+
function emitChoose(action, site) {
|
|
34977
|
+
const branches = action.branches.map((branch, b) => ` {
|
|
34978
|
+
guard: () => evaluateCondition(${j(branch.if)}, ${j(`${site.path}.branches.${b}.if`)}, vars),
|
|
34979
|
+
steps: [
|
|
34980
|
+
${emitList(branch.steps, `${site.path}.branches.${b}.steps`)}
|
|
34981
|
+
],
|
|
34982
|
+
},`).join("\n");
|
|
34983
|
+
const otherwise = emitList(action.else ?? [], `${site.path}.else`);
|
|
34984
|
+
return ` {
|
|
34985
|
+
meta: ${site.meta},
|
|
34986
|
+
// a choose step: the runner reads the branches in order and runs the first that is true
|
|
34987
|
+
run: async () => {},
|
|
34988
|
+
choose: {
|
|
34989
|
+
branches: [
|
|
34990
|
+
${branches}
|
|
34991
|
+
],${otherwise === "" ? "" : `\n otherwise: [\n${otherwise}\n],`}
|
|
34992
|
+
},
|
|
34993
|
+
},`;
|
|
34994
|
+
}
|
|
34995
|
+
/** The devices whose report can change a tree's answer; null when one is named by a stable id (any report wakes it). */
|
|
34996
|
+
function wakeDevicesOf(when) {
|
|
34997
|
+
const ids = [];
|
|
34998
|
+
for (const source of collectWhenMirrorSources(when)) {
|
|
34999
|
+
if (source.kind !== "device") return null;
|
|
35000
|
+
if (!ids.includes(source.deviceId)) ids.push(source.deviceId);
|
|
35001
|
+
}
|
|
35002
|
+
return ids;
|
|
35003
|
+
}
|
|
35004
|
+
/** A `wait-until` step: read the condition, wait for a wake, read again, until the timeout. */
|
|
35005
|
+
function emitWaitUntil(action, site) {
|
|
35006
|
+
const onTimeout = action.onTimeout === "stop" ? `scope.stop(message, 'failed')` : "scope.markTimedOut(message)";
|
|
35007
|
+
return ` {
|
|
35008
|
+
meta: ${site.meta},
|
|
35009
|
+
run: async (scope) => {
|
|
35010
|
+
// woken by a report of one of its devices, by the reconcile tick, or by a restart
|
|
35011
|
+
const waited = await waitUntil({
|
|
35012
|
+
read: () => evaluateCondition(${j(action.when)}, ${j(`${site.path}.when`)}, vars),
|
|
35013
|
+
timeoutMs: ${j(action.timeoutS * 1e3)},
|
|
35014
|
+
now: () => Date.now(),
|
|
35015
|
+
isAborted: () => token.aborted,
|
|
35016
|
+
nextWake: (ms) => waitForWake(ms, token, ${j(wakeDevicesOf(action.when))}),
|
|
35017
|
+
})
|
|
35018
|
+
if (waited.result === 'timed-out') {
|
|
35019
|
+
const message = waitTimedOutMessage(${j(action.timeoutS)}, waited.lastReason)
|
|
35020
|
+
ctx.logger.info('wait-until timed out', { step: ${j(site.path)}, onTimeout: ${j(action.onTimeout)}, reason: waited.lastReason })
|
|
35021
|
+
${onTimeout}
|
|
35022
|
+
}
|
|
35023
|
+
},
|
|
35024
|
+
},`;
|
|
35025
|
+
}
|
|
35026
|
+
/** How a `repeat` decides its iterations, as the fields of a RunnableRepeat. */
|
|
35027
|
+
function emitRepeatLoop(loop, site) {
|
|
35028
|
+
switch (loop.by) {
|
|
35029
|
+
case "count": return `limit: ${j(loop.count)}, limitIsTimeout: false,`;
|
|
35030
|
+
case "forEach": return `// once per device: the device id is in vars.${REPEAT_ITEM_VAR} for the steps of that iteration
|
|
35031
|
+
limit: ${j(loop.target.ids.length)}, limitIsTimeout: false,
|
|
35032
|
+
...(() => {
|
|
35033
|
+
const ids = ${j(loop.target.ids)}
|
|
35034
|
+
let outer: unknown
|
|
35035
|
+
return {
|
|
35036
|
+
before: async (iteration) => {
|
|
35037
|
+
if (iteration === 0) outer = vars[${j(REPEAT_ITEM_VAR)}]
|
|
35038
|
+
if (iteration < ids.length) vars[${j(REPEAT_ITEM_VAR)}] = ids[iteration]
|
|
35039
|
+
else if (${j(isNestedSite(site))} && outer !== undefined) vars[${j(REPEAT_ITEM_VAR)}] = outer
|
|
35040
|
+
return { go: true }
|
|
35041
|
+
},
|
|
35042
|
+
}
|
|
35043
|
+
})(),`;
|
|
35044
|
+
case "while":
|
|
35045
|
+
case "until": {
|
|
35046
|
+
const read = `repeatCheck(${j(loop.by)}, await evaluateCondition(${j(loop.when)}, ${j(`${site.path}.loop.when`)}, vars))`;
|
|
35047
|
+
const pause = loop.waitS === void 0 ? "" : `\n between: () => sleep(${j(loop.waitS * 1e3)}),`;
|
|
35048
|
+
return `limit: ${j(loop.maxIterations)}, limitIsTimeout: true,
|
|
35049
|
+
${loop.by === "while" ? "before" : "after"}: async () => ${read},${pause}`;
|
|
35050
|
+
}
|
|
34672
35051
|
}
|
|
34673
35052
|
}
|
|
35053
|
+
/** One step, wherever it sits: a block step emits its own steps one level down, under its path. */
|
|
35054
|
+
function emitStep(action, site) {
|
|
35055
|
+
if (action.kind === "repeat") return ` {
|
|
35056
|
+
meta: ${site.meta},
|
|
35057
|
+
// a repeat step: the runner runs these once per iteration, under the bound
|
|
35058
|
+
run: async () => {},
|
|
35059
|
+
repeat: {
|
|
35060
|
+
steps: [
|
|
35061
|
+
${emitList(action.steps, `${site.path}.steps`)}
|
|
35062
|
+
],
|
|
35063
|
+
${emitRepeatLoop(action.loop, site)}
|
|
35064
|
+
},
|
|
35065
|
+
},`;
|
|
35066
|
+
if (action.kind === "choose") return emitChoose(action, site);
|
|
35067
|
+
if (action.kind === "wait-until") return emitWaitUntil(action, site);
|
|
35068
|
+
if (action.kind === "parallel") return ` {
|
|
35069
|
+
meta: ${site.meta},
|
|
35070
|
+
// a parallel step: the runner starts these together and awaits them all
|
|
35071
|
+
run: async () => {},
|
|
35072
|
+
parallel: [
|
|
35073
|
+
${emitList(action.steps, `${site.path}.steps`)}
|
|
35074
|
+
],
|
|
35075
|
+
},`;
|
|
35076
|
+
return ` {
|
|
35077
|
+
meta: ${site.meta},
|
|
35078
|
+
${emitGuard(action, site)}${continues(action) ? " continueOnError: true,\n" : ""} run: async (scope) => {
|
|
35079
|
+
${emitStepBody(action)}
|
|
35080
|
+
},
|
|
35081
|
+
},`;
|
|
35082
|
+
}
|
|
35083
|
+
function emitAction(action, index) {
|
|
35084
|
+
return emitStep(action, {
|
|
35085
|
+
meta: `STEP_META[${index}]!`,
|
|
35086
|
+
path: `actions.${index}`
|
|
35087
|
+
});
|
|
35088
|
+
}
|
|
34674
35089
|
/**
|
|
34675
35090
|
* Compile a recipe to the TypeScript of a core block.
|
|
34676
35091
|
*
|
|
@@ -34684,12 +35099,18 @@ function generateAutomationBlock(input) {
|
|
|
34684
35099
|
const { name, recipe } = input;
|
|
34685
35100
|
const runMode = recipe.runMode ?? { mode: "single" };
|
|
34686
35101
|
const stepMeta = recipe.actions.map(stepMetaOf);
|
|
34687
|
-
const
|
|
34688
|
-
const
|
|
34689
|
-
|
|
34690
|
-
|
|
34691
|
-
|
|
34692
|
-
|
|
35102
|
+
const elseSteps = (a) => a.kind === "wait" || a.kind === "cap" ? a.else ?? [] : [];
|
|
35103
|
+
const hasDomainTarget = recipe.actions.flatMap((a) => [
|
|
35104
|
+
a,
|
|
35105
|
+
...elseSteps(a),
|
|
35106
|
+
...nestedStepsOf(a)
|
|
35107
|
+
]).some((a) => a.kind === "cap" && normalizeCapStep(a).target.kind === "domain");
|
|
35108
|
+
const guardHoldTrees = recipe.actions.flatMap((a, i) => stepConditionsOf(a).flatMap(({ path, when }) => hasHoldLeaves(when) ? [{
|
|
35109
|
+
path: `actions.${i}.${path}`,
|
|
35110
|
+
when
|
|
35111
|
+
}] : []));
|
|
35112
|
+
const hasTime = hasTimeLeaves(recipe.when) || recipe.actions.some((a) => stepConditionsOf(a).some(({ when }) => hasTimeLeaves(when)));
|
|
35113
|
+
const hasWaitUntil = recipe.actions.some((a) => a.kind === "wait-until" || nestedStepsOf(a).some((n) => n.kind === "wait-until"));
|
|
34693
35114
|
const eventLeaves = [];
|
|
34694
35115
|
forEachLeaf(recipe.when, (leaf, path) => {
|
|
34695
35116
|
if (isEventLeaf(leaf)) eventLeaves.push({
|
|
@@ -34738,6 +35159,9 @@ import {
|
|
|
34738
35159
|
runForDevices,
|
|
34739
35160
|
evaluateStepCondition,
|
|
34740
35161
|
runSteps,
|
|
35162
|
+
repeatCheck,
|
|
35163
|
+
waitUntil,
|
|
35164
|
+
waitTimedOutMessage,
|
|
34741
35165
|
siteFor,
|
|
34742
35166
|
validateTimeSpecForSite,
|
|
34743
35167
|
zoneOnlySite,
|
|
@@ -34865,7 +35289,8 @@ ${hasTime ? ` /** The site clock a \`time-is\` leaf reads: memory only at evalu
|
|
|
34865
35289
|
|
|
34866
35290
|
interface RunToken {
|
|
34867
35291
|
aborted: boolean
|
|
34868
|
-
|
|
35292
|
+
/** What cuts short whatever the run is paused on; several at once inside a \`parallel\`. */
|
|
35293
|
+
readonly wakes: Set<() => void>
|
|
34869
35294
|
}
|
|
34870
35295
|
interface QueuedRun {
|
|
34871
35296
|
readonly trigger: Record<string, unknown>
|
|
@@ -34876,11 +35301,29 @@ ${hasTime ? ` /** The site clock a \`time-is\` leaf reads: memory only at evalu
|
|
|
34876
35301
|
/** Sleep that a restart can cut short. */
|
|
34877
35302
|
const abortableSleep = (ms: number, token: RunToken): Promise<void> =>
|
|
34878
35303
|
new Promise((resolve) => {
|
|
34879
|
-
const
|
|
34880
|
-
|
|
35304
|
+
const done = (): void => {
|
|
35305
|
+
clearTimeout(timer)
|
|
35306
|
+
token.wakes.delete(done)
|
|
35307
|
+
resolve()
|
|
35308
|
+
}
|
|
35309
|
+
const timer = setTimeout(done, ms)
|
|
35310
|
+
token.wakes.add(done)
|
|
35311
|
+
})
|
|
35312
|
+
|
|
35313
|
+
/** The runs paused on a \`wait-until\`, each with the devices whose report wakes it (null = any). */
|
|
35314
|
+
const stateWaiters = new Map<() => void, readonly number[] | null>()
|
|
35315
|
+
/** Resolve at a report of one of \`deviceIds\`, at the reconcile tick, at a restart, or after \`ms\`. */
|
|
35316
|
+
const waitForWake = (ms: number, token: RunToken, deviceIds: readonly number[] | null): Promise<void> =>
|
|
35317
|
+
new Promise((resolve) => {
|
|
35318
|
+
const done = (): void => {
|
|
34881
35319
|
clearTimeout(timer)
|
|
35320
|
+
stateWaiters.delete(done)
|
|
35321
|
+
token.wakes.delete(done)
|
|
34882
35322
|
resolve()
|
|
34883
35323
|
}
|
|
35324
|
+
const timer = setTimeout(done, Math.min(ms, RECONCILE_MS))
|
|
35325
|
+
stateWaiters.set(done, deviceIds)
|
|
35326
|
+
token.wakes.add(done)
|
|
34884
35327
|
})
|
|
34885
35328
|
|
|
34886
35329
|
// ── the hub's runs ledger: the stamp is read ONCE here, the ring is written through RPC ──
|
|
@@ -35208,6 +35651,13 @@ ${recipe.actions.map((a, i) => emitAction(a, i)).join("\n")}
|
|
|
35208
35651
|
error: failure.message,
|
|
35209
35652
|
})
|
|
35210
35653
|
},
|
|
35654
|
+
onContinuedFailure: (failure) => {
|
|
35655
|
+
ctx.logger.warn('action failed — continuing, the step is marked to be passed over', {
|
|
35656
|
+
...(failure.deviceId === undefined ? {} : { tags: { deviceId: failure.deviceId } }),
|
|
35657
|
+
step: failure.index,
|
|
35658
|
+
error: failure.message,
|
|
35659
|
+
})
|
|
35660
|
+
},
|
|
35211
35661
|
onGuardUnknown: (skipped) => {
|
|
35212
35662
|
ctx.logger.warn('step skipped — its condition could not be read', {
|
|
35213
35663
|
...(skipped.deviceId === undefined ? {} : { tags: { deviceId: skipped.deviceId } }),
|
|
@@ -35257,7 +35707,7 @@ ${recipe.actions.map((a, i) => emitAction(a, i)).join("\n")}
|
|
|
35257
35707
|
reason: string,
|
|
35258
35708
|
admission: AutomationRunVerdict,
|
|
35259
35709
|
): Promise<void> {
|
|
35260
|
-
const token: RunToken = { aborted: false }
|
|
35710
|
+
const token: RunToken = { aborted: false, wakes: new Set() }
|
|
35261
35711
|
runningTokens.add(token)
|
|
35262
35712
|
const startedAt = Date.now()
|
|
35263
35713
|
const runId = newRunId(startedAt)
|
|
@@ -35371,7 +35821,7 @@ ${recipe.actions.map((a, i) => emitAction(a, i)).join("\n")}
|
|
|
35371
35821
|
ctx.logger.info('automation restarting — ' + admission.reason, deviceTags(trigger))
|
|
35372
35822
|
for (const running of runningTokens) {
|
|
35373
35823
|
running.aborted = true
|
|
35374
|
-
running.wake
|
|
35824
|
+
for (const wake of [...running.wakes]) wake()
|
|
35375
35825
|
}
|
|
35376
35826
|
break
|
|
35377
35827
|
case 'run':
|
|
@@ -35430,6 +35880,16 @@ ${hasTime ? " await refreshSite()\n" : ""} await refreshMirror()
|
|
|
35430
35880
|
disposers.push(() => clearInterval(mirrorReconcile))
|
|
35431
35881
|
}
|
|
35432
35882
|
|
|
35883
|
+
${hasWaitUntil ? ` // a paused run reads its condition again when one of its devices reports
|
|
35884
|
+
disposers.push(
|
|
35885
|
+
ctx.eventBus.subscribe({ category: EventCategory.DeviceStateChanged }, (event) => {
|
|
35886
|
+
const deviceId = event.data['deviceId']
|
|
35887
|
+
for (const [wake, deviceIds] of [...stateWaiters]) {
|
|
35888
|
+
if (deviceIds === null || (typeof deviceId === 'number' && deviceIds.includes(deviceId))) wake()
|
|
35889
|
+
}
|
|
35890
|
+
}),
|
|
35891
|
+
)
|
|
35892
|
+
` : ""}
|
|
35433
35893
|
${eventLeaves.map(({ leaf, path }) => emitLeaf(leaf, path)).join("\n\n")}
|
|
35434
35894
|
|
|
35435
35895
|
return () => {
|
|
@@ -35439,7 +35899,7 @@ ${eventLeaves.map(({ leaf, path }) => emitLeaf(leaf, path)).join("\n\n")}
|
|
|
35439
35899
|
flushSkip()
|
|
35440
35900
|
for (const running of runningTokens) {
|
|
35441
35901
|
running.aborted = true
|
|
35442
|
-
running.wake
|
|
35902
|
+
for (const wake of [...running.wakes]) wake()
|
|
35443
35903
|
}
|
|
35444
35904
|
for (const dispose of disposers) dispose()
|
|
35445
35905
|
}
|
|
@@ -35784,7 +36244,7 @@ function stepGuardSiteIssues(steps, reading, rootPath) {
|
|
|
35784
36244
|
}
|
|
35785
36245
|
/** The whole recipe: its `when` tree and every step guard. */
|
|
35786
36246
|
function recipeSiteIssues(recipe, reading) {
|
|
35787
|
-
return [...whenSiteIssues(recipe.when, reading), ...
|
|
36247
|
+
return [...whenSiteIssues(recipe.when, reading), ...recipe.actions.flatMap((action, i) => stepConditionsOf(action).flatMap((condition) => whenSiteIssues(condition.when, reading, `actions.${i}.${condition.path}`)))];
|
|
35788
36248
|
}
|
|
35789
36249
|
//#endregion
|
|
35790
36250
|
//#region src/automation/scheduler.ts
|
|
@@ -35843,12 +36303,23 @@ var DEFAULT_MAX_HOLD_ATTEMPTS = 3;
|
|
|
35843
36303
|
var MAX_HOLD_ATTEMPTS_LIMIT = 20;
|
|
35844
36304
|
/** A missed edge up to this late still runs. */
|
|
35845
36305
|
var DEFAULT_MAX_LATE_MS = 10 * 6e4;
|
|
36306
|
+
/**
|
|
36307
|
+
* The longest one `wait` of a scheduler point lasts. A point's steps run in
|
|
36308
|
+
* the scheduler's one serial queue, with no run ceiling: a wait holds every
|
|
36309
|
+
* other scheduler's points for as long as it lasts. An action (one hour) has
|
|
36310
|
+
* its own run and ceiling; a point keeps the five minutes it always had.
|
|
36311
|
+
*/
|
|
36312
|
+
var SCHEDULER_WAIT_MAX_SECONDS = 300;
|
|
36313
|
+
var SchedulerStepSchema = ActionStepSchema.refine((step) => step.kind !== "wait" || step.seconds <= 300, {
|
|
36314
|
+
message: `a scheduler point waits at most five minutes (300 s); put a longer wait in an action`,
|
|
36315
|
+
path: ["seconds"]
|
|
36316
|
+
});
|
|
35846
36317
|
var SchedulerPointSchema = z.object({
|
|
35847
36318
|
id: z.string().min(1).max(64),
|
|
35848
36319
|
at: SchedulerTimeSpecSchema,
|
|
35849
36320
|
mode: SchedulerPointModeSchema,
|
|
35850
36321
|
/** The actions of an `edge` or `hold`; a `release` has none. */
|
|
35851
|
-
steps: z.array(
|
|
36322
|
+
steps: z.array(SchedulerStepSchema).max(20).default([]),
|
|
35852
36323
|
/** Checked when the point runs (an edge) or is applied (a hold). */
|
|
35853
36324
|
conditions: SchedulerStateTreeSchema.optional(),
|
|
35854
36325
|
/** Hold only; absent means `respect`. */
|
|
@@ -36225,18 +36696,46 @@ var StepTraceBaseSchema = z.object({
|
|
|
36225
36696
|
]).optional(),
|
|
36226
36697
|
/** Why the condition read what it read, in the evaluator's own words. */
|
|
36227
36698
|
conditionReason: z.string().optional(),
|
|
36228
|
-
/** `empty`: the target resolved to no device, so nothing was done — never silently `ok`. `skipped`: its `if` was false (or unknown) and nothing ran in its place. */
|
|
36699
|
+
/** `empty`: the target resolved to no device, so nothing was done — never silently `ok`. `skipped`: its `if` was false (or unknown) and nothing ran in its place. `failed-continued`: it failed and was marked to be passed over (#500). */
|
|
36229
36700
|
outcome: z.enum([
|
|
36230
36701
|
"ok",
|
|
36231
36702
|
"error",
|
|
36232
36703
|
"not-run",
|
|
36233
36704
|
"empty",
|
|
36234
|
-
"skipped"
|
|
36705
|
+
"skipped",
|
|
36706
|
+
"failed-continued",
|
|
36707
|
+
"timed-out"
|
|
36235
36708
|
]),
|
|
36236
36709
|
message: z.string().optional()
|
|
36237
36710
|
});
|
|
36711
|
+
/** What a block step adds to its row: which list ran, what each branch read, how many rounds. */
|
|
36712
|
+
var blockTraceShape = {
|
|
36713
|
+
/** A `choose` step (#500): the list that ran, `branches.<n>` or `else`. Absent when none did. */
|
|
36714
|
+
branch: z.string().optional(),
|
|
36715
|
+
/** A `choose` step: what each branch read, in order, up to the one that decided. */
|
|
36716
|
+
branchChecks: z.array(z.object({
|
|
36717
|
+
condition: z.enum([
|
|
36718
|
+
"true",
|
|
36719
|
+
"false",
|
|
36720
|
+
"unknown"
|
|
36721
|
+
]),
|
|
36722
|
+
conditionReason: z.string().optional()
|
|
36723
|
+
})).optional(),
|
|
36724
|
+
/** A `repeat` step (#500): how many times its steps ran. */
|
|
36725
|
+
iterations: z.number().int().optional()
|
|
36726
|
+
};
|
|
36727
|
+
/** A step one level down: it may be a block step itself, whose own steps are plain rows (the nesting ends there). */
|
|
36728
|
+
var NestedStepTraceSchema = StepTraceBaseSchema.extend({
|
|
36729
|
+
...blockTraceShape,
|
|
36730
|
+
steps: z.array(StepTraceBaseSchema).optional()
|
|
36731
|
+
});
|
|
36238
36732
|
/** A step trace; the `else` steps that ran are one level of the same shape (the nesting is bounded at one). */
|
|
36239
|
-
var AutomationStepTraceSchema = StepTraceBaseSchema.extend({
|
|
36733
|
+
var AutomationStepTraceSchema = StepTraceBaseSchema.extend({
|
|
36734
|
+
else: z.array(StepTraceBaseSchema).optional(),
|
|
36735
|
+
...blockTraceShape,
|
|
36736
|
+
/** A `choose` step: the steps of the list that ran. A `parallel`: its members. A `repeat`: the LAST iteration. */
|
|
36737
|
+
steps: z.array(NestedStepTraceSchema).optional()
|
|
36738
|
+
});
|
|
36240
36739
|
var AutomationRunTraceSchema = z.object({
|
|
36241
36740
|
runId: z.string().min(1),
|
|
36242
36741
|
startedAt: z.number(),
|
|
@@ -36639,6 +37138,46 @@ async function evaluateStepCondition(when, fetchers, now = Date.now, history, si
|
|
|
36639
37138
|
}
|
|
36640
37139
|
//#endregion
|
|
36641
37140
|
//#region src/automation/step-runner.ts
|
|
37141
|
+
/**
|
|
37142
|
+
* Read the branches in order and stop at the first that decides: `true` runs
|
|
37143
|
+
* it, `unknown` ends the choice with nothing run (D49). All `false` runs the
|
|
37144
|
+
* else list, when there is one.
|
|
37145
|
+
*/
|
|
37146
|
+
async function readChoose(choose) {
|
|
37147
|
+
const checks = [];
|
|
37148
|
+
for (const [index, branch] of choose.branches.entries()) {
|
|
37149
|
+
const verdict = await readGuard(branch.guard);
|
|
37150
|
+
checks.push({
|
|
37151
|
+
condition: verdict.result,
|
|
37152
|
+
conditionReason: verdict.reason
|
|
37153
|
+
});
|
|
37154
|
+
if (verdict.result === "true") return {
|
|
37155
|
+
checks,
|
|
37156
|
+
decision: {
|
|
37157
|
+
kind: "run",
|
|
37158
|
+
branch: `branches.${index}`,
|
|
37159
|
+
steps: branch.steps
|
|
37160
|
+
}
|
|
37161
|
+
};
|
|
37162
|
+
if (verdict.result === "unknown") return {
|
|
37163
|
+
checks,
|
|
37164
|
+
decision: {
|
|
37165
|
+
kind: "unknown",
|
|
37166
|
+
index,
|
|
37167
|
+
reason: verdict.reason
|
|
37168
|
+
}
|
|
37169
|
+
};
|
|
37170
|
+
}
|
|
37171
|
+
const otherwise = choose.otherwise ?? [];
|
|
37172
|
+
return {
|
|
37173
|
+
checks,
|
|
37174
|
+
decision: otherwise.length === 0 ? { kind: "none" } : {
|
|
37175
|
+
kind: "run",
|
|
37176
|
+
branch: "else",
|
|
37177
|
+
steps: otherwise
|
|
37178
|
+
}
|
|
37179
|
+
};
|
|
37180
|
+
}
|
|
36642
37181
|
function errorMessage(err) {
|
|
36643
37182
|
return err instanceof Error ? err.message : String(err);
|
|
36644
37183
|
}
|
|
@@ -36653,17 +37192,125 @@ async function readGuard(guard) {
|
|
|
36653
37192
|
};
|
|
36654
37193
|
}
|
|
36655
37194
|
}
|
|
37195
|
+
/**
|
|
37196
|
+
* What a loop's condition says about going on. A `while` goes on while it
|
|
37197
|
+
* reads true, an `until` goes on while it reads false; `unknown` ends either,
|
|
37198
|
+
* with the reason (D49): a loop never runs on a value it could not read.
|
|
37199
|
+
*/
|
|
37200
|
+
function repeatCheck(by, verdict) {
|
|
37201
|
+
if (verdict.result === "unknown") return {
|
|
37202
|
+
go: false,
|
|
37203
|
+
reason: `the condition could not be read: ${verdict.reason}`,
|
|
37204
|
+
unknown: true
|
|
37205
|
+
};
|
|
37206
|
+
if (by === "while") return verdict.result === "true" ? { go: true } : {
|
|
37207
|
+
go: false,
|
|
37208
|
+
reason: "the condition is no longer true"
|
|
37209
|
+
};
|
|
37210
|
+
return verdict.result === "true" ? {
|
|
37211
|
+
go: false,
|
|
37212
|
+
reason: "the condition is true"
|
|
37213
|
+
} : { go: true };
|
|
37214
|
+
}
|
|
37215
|
+
/** A loop condition that throws ends the loop as unreadable, never a crash of the run. */
|
|
37216
|
+
async function readRepeatCheck(check, iteration) {
|
|
37217
|
+
if (check === void 0) return { go: true };
|
|
37218
|
+
try {
|
|
37219
|
+
return await check(iteration);
|
|
37220
|
+
} catch (err) {
|
|
37221
|
+
return {
|
|
37222
|
+
go: false,
|
|
37223
|
+
reason: `the condition could not be read: ${errorMessage(err)}`,
|
|
37224
|
+
unknown: true
|
|
37225
|
+
};
|
|
37226
|
+
}
|
|
37227
|
+
}
|
|
37228
|
+
/** Run a loop's steps until its count, its condition, its bound, a failure, a stop or an abort ends it. */
|
|
37229
|
+
async function runRepeat(repeat, options, path) {
|
|
37230
|
+
let iterations = 0;
|
|
37231
|
+
let last;
|
|
37232
|
+
for (;;) {
|
|
37233
|
+
if (options.isAborted()) return {
|
|
37234
|
+
iterations,
|
|
37235
|
+
last,
|
|
37236
|
+
timedOut: false
|
|
37237
|
+
};
|
|
37238
|
+
const before = await readRepeatCheck(repeat.before, iterations);
|
|
37239
|
+
if (!before.go) return {
|
|
37240
|
+
iterations,
|
|
37241
|
+
last,
|
|
37242
|
+
ended: before.reason,
|
|
37243
|
+
timedOut: false,
|
|
37244
|
+
...before.unknown === true ? { unknown: before.reason } : {}
|
|
37245
|
+
};
|
|
37246
|
+
if (iterations >= repeat.limit) return repeat.limitIsTimeout ? {
|
|
37247
|
+
iterations,
|
|
37248
|
+
last,
|
|
37249
|
+
ended: `stopped at ${repeat.limit} iterations`,
|
|
37250
|
+
timedOut: true
|
|
37251
|
+
} : {
|
|
37252
|
+
iterations,
|
|
37253
|
+
last,
|
|
37254
|
+
ended: "",
|
|
37255
|
+
timedOut: false
|
|
37256
|
+
};
|
|
37257
|
+
last = await runSteps(repeat.steps, {
|
|
37258
|
+
...options,
|
|
37259
|
+
pathPrefix: `${path}.steps`,
|
|
37260
|
+
indexOffset: 0
|
|
37261
|
+
});
|
|
37262
|
+
iterations += 1;
|
|
37263
|
+
if (last.failed || last.aborted || last.stopped !== void 0) return {
|
|
37264
|
+
iterations,
|
|
37265
|
+
last,
|
|
37266
|
+
timedOut: false
|
|
37267
|
+
};
|
|
37268
|
+
const after = await readRepeatCheck(repeat.after, iterations - 1);
|
|
37269
|
+
if (!after.go) return {
|
|
37270
|
+
iterations,
|
|
37271
|
+
last,
|
|
37272
|
+
ended: after.reason,
|
|
37273
|
+
timedOut: false,
|
|
37274
|
+
...after.unknown === true ? { unknown: after.reason } : {}
|
|
37275
|
+
};
|
|
37276
|
+
if (repeat.between !== void 0 && iterations < repeat.limit) await repeat.between();
|
|
37277
|
+
}
|
|
37278
|
+
}
|
|
36656
37279
|
/** The else level of a trace is one level deep: a nested trace carries no `else` of its own. */
|
|
36657
37280
|
function withoutElse(trace) {
|
|
36658
37281
|
const { else: _else, ...rest } = trace;
|
|
36659
37282
|
return rest;
|
|
36660
37283
|
}
|
|
37284
|
+
/** A plain row: the last level of a trace carries no list of its own. */
|
|
37285
|
+
function plainRow(trace) {
|
|
37286
|
+
const { else: _else, steps: _steps, ...rest } = trace;
|
|
37287
|
+
return rest;
|
|
37288
|
+
}
|
|
37289
|
+
/** A row one level down: it keeps its own steps as plain rows, and no `else`. */
|
|
37290
|
+
function withoutNested(trace) {
|
|
37291
|
+
const { else: _else, steps, ...rest } = trace;
|
|
37292
|
+
return steps === void 0 ? rest : {
|
|
37293
|
+
...rest,
|
|
37294
|
+
steps: steps.map(plainRow)
|
|
37295
|
+
};
|
|
37296
|
+
}
|
|
36661
37297
|
async function runSteps(steps, options) {
|
|
36662
37298
|
const traces = [];
|
|
36663
37299
|
let failed = false;
|
|
36664
37300
|
let aborted = false;
|
|
36665
|
-
|
|
37301
|
+
let stopped;
|
|
37302
|
+
for (const [position, step] of steps.entries()) {
|
|
37303
|
+
const index = position + (options.indexOffset ?? 0);
|
|
36666
37304
|
const path = `${options.pathPrefix}.${index}`;
|
|
37305
|
+
if (stopped !== void 0) {
|
|
37306
|
+
traces.push({
|
|
37307
|
+
...step.meta,
|
|
37308
|
+
path,
|
|
37309
|
+
outcome: "not-run",
|
|
37310
|
+
message: `stopped at ${stopped.path}: ${stopped.reason}`
|
|
37311
|
+
});
|
|
37312
|
+
continue;
|
|
37313
|
+
}
|
|
36667
37314
|
if (failed || aborted || options.isAborted()) {
|
|
36668
37315
|
if (!failed) aborted = true;
|
|
36669
37316
|
traces.push({
|
|
@@ -36675,6 +37322,96 @@ async function runSteps(steps, options) {
|
|
|
36675
37322
|
continue;
|
|
36676
37323
|
}
|
|
36677
37324
|
const startedAt = options.now();
|
|
37325
|
+
if (step.parallel !== void 0) {
|
|
37326
|
+
const members = await Promise.all(step.parallel.map((member, at) => runSteps([member], {
|
|
37327
|
+
...options,
|
|
37328
|
+
pathPrefix: `${path}.steps`,
|
|
37329
|
+
indexOffset: at
|
|
37330
|
+
})));
|
|
37331
|
+
const anyFailed = members.some((m) => m.failed);
|
|
37332
|
+
if (anyFailed) failed = true;
|
|
37333
|
+
else if (members.some((m) => m.aborted)) aborted = true;
|
|
37334
|
+
traces.push({
|
|
37335
|
+
...step.meta,
|
|
37336
|
+
path,
|
|
37337
|
+
startedAt,
|
|
37338
|
+
endedAt: options.now(),
|
|
37339
|
+
outcome: anyFailed ? "error" : "ok",
|
|
37340
|
+
...anyFailed ? { message: "a parallel step failed" } : {},
|
|
37341
|
+
steps: members.flatMap((m) => m.steps.map(withoutNested))
|
|
37342
|
+
});
|
|
37343
|
+
continue;
|
|
37344
|
+
}
|
|
37345
|
+
if (step.repeat !== void 0) {
|
|
37346
|
+
const loop = await runRepeat(step.repeat, options, path);
|
|
37347
|
+
const sub = loop.last;
|
|
37348
|
+
if (loop.unknown !== void 0) options.onGuardUnknown?.({
|
|
37349
|
+
index,
|
|
37350
|
+
path: `${path}.loop.when`,
|
|
37351
|
+
reason: loop.unknown,
|
|
37352
|
+
deviceId: step.meta.deviceId
|
|
37353
|
+
});
|
|
37354
|
+
const bodyFailed = loop.ended === void 0 && sub?.failed === true;
|
|
37355
|
+
if (bodyFailed) failed = true;
|
|
37356
|
+
else if (loop.ended === void 0 && sub?.stopped !== void 0) stopped = sub.stopped;
|
|
37357
|
+
else if (loop.ended === void 0) aborted = true;
|
|
37358
|
+
const times = `ran ${loop.iterations} times`;
|
|
37359
|
+
const message = bodyFailed ? `a step failed in iteration ${loop.iterations}` : loop.ended === void 0 ? times : loop.timedOut ? loop.ended : loop.ended === "" ? times : `${times}: ${loop.ended}`;
|
|
37360
|
+
traces.push({
|
|
37361
|
+
...step.meta,
|
|
37362
|
+
path,
|
|
37363
|
+
startedAt,
|
|
37364
|
+
endedAt: options.now(),
|
|
37365
|
+
outcome: bodyFailed ? "error" : loop.timedOut ? "timed-out" : "ok",
|
|
37366
|
+
message,
|
|
37367
|
+
iterations: loop.iterations,
|
|
37368
|
+
...sub === void 0 ? {} : { steps: sub.steps.map(withoutNested) }
|
|
37369
|
+
});
|
|
37370
|
+
continue;
|
|
37371
|
+
}
|
|
37372
|
+
if (step.choose !== void 0) {
|
|
37373
|
+
const reading = await readChoose(step.choose);
|
|
37374
|
+
const base = {
|
|
37375
|
+
...step.meta,
|
|
37376
|
+
path,
|
|
37377
|
+
startedAt,
|
|
37378
|
+
branchChecks: [...reading.checks]
|
|
37379
|
+
};
|
|
37380
|
+
const { decision } = reading;
|
|
37381
|
+
if (decision.kind !== "run") {
|
|
37382
|
+
if (decision.kind === "unknown") options.onGuardUnknown?.({
|
|
37383
|
+
index,
|
|
37384
|
+
path: `${path}.branches.${decision.index}.if`,
|
|
37385
|
+
reason: decision.reason,
|
|
37386
|
+
deviceId: step.meta.deviceId
|
|
37387
|
+
});
|
|
37388
|
+
traces.push({
|
|
37389
|
+
...base,
|
|
37390
|
+
endedAt: options.now(),
|
|
37391
|
+
outcome: "skipped",
|
|
37392
|
+
message: decision.kind === "unknown" ? `not run: branch ${decision.index + 1} could not be read (${decision.reason})` : "not run: no branch is true"
|
|
37393
|
+
});
|
|
37394
|
+
continue;
|
|
37395
|
+
}
|
|
37396
|
+
const listPath = decision.branch === "else" ? `${path}.else` : `${path}.${decision.branch}.steps`;
|
|
37397
|
+
const sub = await runSteps(decision.steps, {
|
|
37398
|
+
...options,
|
|
37399
|
+
pathPrefix: listPath,
|
|
37400
|
+
indexOffset: 0
|
|
37401
|
+
});
|
|
37402
|
+
if (sub.failed) failed = true;
|
|
37403
|
+
else if (sub.aborted) aborted = true;
|
|
37404
|
+
if (sub.stopped !== void 0) stopped = sub.stopped;
|
|
37405
|
+
traces.push({
|
|
37406
|
+
...base,
|
|
37407
|
+
endedAt: options.now(),
|
|
37408
|
+
outcome: sub.failed ? "error" : "ok",
|
|
37409
|
+
...sub.failed ? { message: "a step of the branch failed" } : {},
|
|
37410
|
+
branch: decision.branch,
|
|
37411
|
+
steps: sub.steps.map(withoutNested)
|
|
37412
|
+
});
|
|
37413
|
+
continue;
|
|
37414
|
+
}
|
|
36678
37415
|
let guardTrace = {};
|
|
36679
37416
|
if (step.guard !== void 0) {
|
|
36680
37417
|
const verdict = await readGuard(step.guard);
|
|
@@ -36704,10 +37441,12 @@ async function runSteps(steps, options) {
|
|
|
36704
37441
|
}
|
|
36705
37442
|
const sub = await runSteps(branch, {
|
|
36706
37443
|
...options,
|
|
36707
|
-
pathPrefix: `${path}.else
|
|
37444
|
+
pathPrefix: `${path}.else`,
|
|
37445
|
+
indexOffset: 0
|
|
36708
37446
|
});
|
|
36709
37447
|
if (sub.failed) failed = true;
|
|
36710
37448
|
else if (sub.aborted) aborted = true;
|
|
37449
|
+
if (sub.stopped !== void 0) stopped = sub.stopped;
|
|
36711
37450
|
traces.push({
|
|
36712
37451
|
...step.meta,
|
|
36713
37452
|
...guardTrace,
|
|
@@ -36725,6 +37464,7 @@ async function runSteps(steps, options) {
|
|
|
36725
37464
|
let sent;
|
|
36726
37465
|
const perDevice = [];
|
|
36727
37466
|
let emptyReason;
|
|
37467
|
+
let timedOutReason;
|
|
36728
37468
|
let templateNotes = [];
|
|
36729
37469
|
const scope = {
|
|
36730
37470
|
setDeviceId: (id) => {
|
|
@@ -36741,6 +37481,16 @@ async function runSteps(steps, options) {
|
|
|
36741
37481
|
},
|
|
36742
37482
|
setTemplateNotes: (notes) => {
|
|
36743
37483
|
templateNotes = notes.slice(0, 20);
|
|
37484
|
+
},
|
|
37485
|
+
stop: (reason, outcome) => {
|
|
37486
|
+
stopped = {
|
|
37487
|
+
reason,
|
|
37488
|
+
outcome,
|
|
37489
|
+
path
|
|
37490
|
+
};
|
|
37491
|
+
},
|
|
37492
|
+
markTimedOut: (reason) => {
|
|
37493
|
+
timedOutReason = reason;
|
|
36744
37494
|
}
|
|
36745
37495
|
};
|
|
36746
37496
|
const templatesTrace = () => templateNotes.length === 0 ? {} : { templates: [...templateNotes] };
|
|
@@ -36748,6 +37498,29 @@ async function runSteps(steps, options) {
|
|
|
36748
37498
|
const devicesTrace = () => perDevice.length === 0 ? {} : { devices: perDevice.slice(0, 200) };
|
|
36749
37499
|
try {
|
|
36750
37500
|
await step.run(scope);
|
|
37501
|
+
const stop = (() => stopped)();
|
|
37502
|
+
if (stop !== void 0) {
|
|
37503
|
+
const message = `stopped: ${stop.reason}`;
|
|
37504
|
+
if (stop.outcome === "failed") {
|
|
37505
|
+
failed = true;
|
|
37506
|
+
options.onFailure({
|
|
37507
|
+
index,
|
|
37508
|
+
path,
|
|
37509
|
+
message,
|
|
37510
|
+
deviceId
|
|
37511
|
+
});
|
|
37512
|
+
}
|
|
37513
|
+
traces.push({
|
|
37514
|
+
...step.meta,
|
|
37515
|
+
...guardTrace,
|
|
37516
|
+
path,
|
|
37517
|
+
startedAt,
|
|
37518
|
+
endedAt: options.now(),
|
|
37519
|
+
outcome: stop.outcome === "failed" ? "error" : "ok",
|
|
37520
|
+
message
|
|
37521
|
+
});
|
|
37522
|
+
continue;
|
|
37523
|
+
}
|
|
36751
37524
|
traces.push({
|
|
36752
37525
|
...step.meta,
|
|
36753
37526
|
...deviceId === void 0 || perDevice.length > 1 ? {} : { deviceId },
|
|
@@ -36758,18 +37531,27 @@ async function runSteps(steps, options) {
|
|
|
36758
37531
|
path,
|
|
36759
37532
|
startedAt,
|
|
36760
37533
|
endedAt: options.now(),
|
|
36761
|
-
outcome: emptyReason === void 0 ? "ok" : "empty",
|
|
36762
|
-
...emptyReason === void 0 ? {} : { message: emptyReason }
|
|
37534
|
+
outcome: timedOutReason !== void 0 ? "timed-out" : emptyReason === void 0 ? "ok" : "empty",
|
|
37535
|
+
...timedOutReason !== void 0 ? { message: timedOutReason } : emptyReason === void 0 ? {} : { message: emptyReason }
|
|
36763
37536
|
});
|
|
36764
37537
|
} catch (err) {
|
|
36765
|
-
failed = true;
|
|
36766
37538
|
const message = errorMessage(err);
|
|
36767
|
-
|
|
37539
|
+
const continued = step.continueOnError === true;
|
|
37540
|
+
if (continued) options.onContinuedFailure?.({
|
|
36768
37541
|
index,
|
|
36769
37542
|
path,
|
|
36770
37543
|
message,
|
|
36771
37544
|
deviceId
|
|
36772
37545
|
});
|
|
37546
|
+
else {
|
|
37547
|
+
failed = true;
|
|
37548
|
+
options.onFailure({
|
|
37549
|
+
index,
|
|
37550
|
+
path,
|
|
37551
|
+
message,
|
|
37552
|
+
deviceId
|
|
37553
|
+
});
|
|
37554
|
+
}
|
|
36773
37555
|
traces.push({
|
|
36774
37556
|
...step.meta,
|
|
36775
37557
|
...deviceId === void 0 || perDevice.length > 1 ? {} : { deviceId },
|
|
@@ -36780,7 +37562,7 @@ async function runSteps(steps, options) {
|
|
|
36780
37562
|
path,
|
|
36781
37563
|
startedAt,
|
|
36782
37564
|
endedAt: options.now(),
|
|
36783
|
-
outcome: "error",
|
|
37565
|
+
outcome: continued ? "failed-continued" : "error",
|
|
36784
37566
|
message
|
|
36785
37567
|
});
|
|
36786
37568
|
}
|
|
@@ -36788,7 +37570,8 @@ async function runSteps(steps, options) {
|
|
|
36788
37570
|
return {
|
|
36789
37571
|
steps: traces,
|
|
36790
37572
|
failed,
|
|
36791
|
-
aborted: aborted && !failed
|
|
37573
|
+
aborted: aborted && !failed,
|
|
37574
|
+
...stopped === void 0 ? {} : { stopped }
|
|
36792
37575
|
};
|
|
36793
37576
|
}
|
|
36794
37577
|
function isVarRef(value) {
|
|
@@ -37070,6 +37853,49 @@ function buildActionSteps(steps, vars, deps) {
|
|
|
37070
37853
|
});
|
|
37071
37854
|
}
|
|
37072
37855
|
//#endregion
|
|
37856
|
+
//#region src/automation/wait-until.ts
|
|
37857
|
+
async function readSafely(read) {
|
|
37858
|
+
try {
|
|
37859
|
+
return await read();
|
|
37860
|
+
} catch (err) {
|
|
37861
|
+
return {
|
|
37862
|
+
result: "unknown",
|
|
37863
|
+
reason: err instanceof Error ? err.message : String(err)
|
|
37864
|
+
};
|
|
37865
|
+
}
|
|
37866
|
+
}
|
|
37867
|
+
async function waitUntil(input) {
|
|
37868
|
+
const startedAt = input.now();
|
|
37869
|
+
const deadline = startedAt + input.timeoutMs;
|
|
37870
|
+
for (;;) {
|
|
37871
|
+
const verdict = await readSafely(input.read);
|
|
37872
|
+
const waitedMs = input.now() - startedAt;
|
|
37873
|
+
if (input.isAborted()) return {
|
|
37874
|
+
result: "aborted",
|
|
37875
|
+
waitedMs
|
|
37876
|
+
};
|
|
37877
|
+
if (verdict.result === "true") return {
|
|
37878
|
+
result: "met",
|
|
37879
|
+
waitedMs
|
|
37880
|
+
};
|
|
37881
|
+
const remaining = deadline - input.now();
|
|
37882
|
+
if (remaining <= 0) return {
|
|
37883
|
+
result: "timed-out",
|
|
37884
|
+
waitedMs,
|
|
37885
|
+
lastReason: verdict.reason
|
|
37886
|
+
};
|
|
37887
|
+
await input.nextWake(remaining);
|
|
37888
|
+
if (input.isAborted()) return {
|
|
37889
|
+
result: "aborted",
|
|
37890
|
+
waitedMs: input.now() - startedAt
|
|
37891
|
+
};
|
|
37892
|
+
}
|
|
37893
|
+
}
|
|
37894
|
+
/** What the run trace says of a wait that ran out. */
|
|
37895
|
+
function waitTimedOutMessage(timeoutS, lastReason) {
|
|
37896
|
+
return `timed out after ${timeoutS} s: ${lastReason}`;
|
|
37897
|
+
}
|
|
37898
|
+
//#endregion
|
|
37073
37899
|
//#region src/units/quantity-units.ts
|
|
37074
37900
|
/**
|
|
37075
37901
|
* Which units a person may pick for a number of a given quantity. The
|
|
@@ -37931,7 +38757,7 @@ var accessoriesCapability = {
|
|
|
37931
38757
|
DeviceType.Switch,
|
|
37932
38758
|
DeviceType.Light,
|
|
37933
38759
|
DeviceType.Sensor,
|
|
37934
|
-
DeviceType.
|
|
38760
|
+
DeviceType.Climate,
|
|
37935
38761
|
DeviceType.Cover,
|
|
37936
38762
|
DeviceType.Lock,
|
|
37937
38763
|
DeviceType.Fan,
|
|
@@ -38242,7 +39068,9 @@ var AddonHttpRouteSchema = z.object({
|
|
|
38242
39068
|
]).optional(),
|
|
38243
39069
|
description: z.string().optional(),
|
|
38244
39070
|
/** The hub limits this route per client address before the handler runs. */
|
|
38245
|
-
rateLimit: z.enum(["auth"]).optional()
|
|
39071
|
+
rateLimit: z.enum(["auth"]).optional(),
|
|
39072
|
+
/** Served once per integration instance; the handler reads `instanceId`. */
|
|
39073
|
+
perInstance: z.boolean().optional()
|
|
38246
39074
|
});
|
|
38247
39075
|
/**
|
|
38248
39076
|
* Cross-process route invocation envelope. The hub captures the
|
|
@@ -38259,6 +39087,8 @@ var InvokeRequestSchema = z.object({
|
|
|
38259
39087
|
query: z.record(z.string(), z.string()),
|
|
38260
39088
|
body: z.unknown(),
|
|
38261
39089
|
headers: z.record(z.string(), z.string()),
|
|
39090
|
+
/** The instance the hub resolved for a `perInstance` route. */
|
|
39091
|
+
instanceId: z.string().optional(),
|
|
38262
39092
|
user: z.object({
|
|
38263
39093
|
id: z.string(),
|
|
38264
39094
|
username: z.string(),
|
|
@@ -41060,7 +41890,7 @@ var BATTERY_DEVICE_TYPES = [
|
|
|
41060
41890
|
DeviceType.Switch,
|
|
41061
41891
|
DeviceType.PetFeeder,
|
|
41062
41892
|
DeviceType.Container,
|
|
41063
|
-
DeviceType.
|
|
41893
|
+
DeviceType.Climate,
|
|
41064
41894
|
DeviceType.EventEmitter
|
|
41065
41895
|
];
|
|
41066
41896
|
/** Generic Customize target for the percentage reading (D936). */
|
|
@@ -43331,7 +44161,14 @@ var climateControlCapability = {
|
|
|
43331
44161
|
scope: "device",
|
|
43332
44162
|
deviceNative: true,
|
|
43333
44163
|
mode: "singleton",
|
|
43334
|
-
deviceTypes: [DeviceType.
|
|
44164
|
+
deviceTypes: [DeviceType.Climate],
|
|
44165
|
+
power: {
|
|
44166
|
+
kind: "mode",
|
|
44167
|
+
field: "mode",
|
|
44168
|
+
offValue: "off",
|
|
44169
|
+
set: "setMode",
|
|
44170
|
+
lastField: "lastActiveMode"
|
|
44171
|
+
},
|
|
43335
44172
|
methods: {
|
|
43336
44173
|
setMode: method(z.object({
|
|
43337
44174
|
deviceId: z.number().int().nonnegative(),
|
|
@@ -43751,7 +44588,8 @@ function describeStateField(schema, path) {
|
|
|
43751
44588
|
kind: leaf.kind,
|
|
43752
44589
|
nullable: field.safeParse(null).success,
|
|
43753
44590
|
required: !field.safeParse(void 0).success,
|
|
43754
|
-
...leaf.enumValues === void 0 ? {} : { enumValues: leaf.enumValues }
|
|
44591
|
+
...leaf.enumValues === void 0 ? {} : { enumValues: leaf.enumValues },
|
|
44592
|
+
...leaf.unionMembers === void 0 ? {} : { unionMembers: leaf.unionMembers }
|
|
43755
44593
|
};
|
|
43756
44594
|
}
|
|
43757
44595
|
function describeTopLevelStateFields(schema) {
|
|
@@ -43874,6 +44712,7 @@ var CompositionProblemCodeSchema = z.enum([
|
|
|
43874
44712
|
"nested-field",
|
|
43875
44713
|
"missing-field",
|
|
43876
44714
|
"kind-mismatch",
|
|
44715
|
+
"source-kind-mismatch",
|
|
43877
44716
|
"may-be-null",
|
|
43878
44717
|
"source-missing",
|
|
43879
44718
|
"source-unreadable",
|
|
@@ -43895,7 +44734,8 @@ var CompositionProblemCodeSchema = z.enum([
|
|
|
43895
44734
|
"command-method-unknown",
|
|
43896
44735
|
"command-source-unknown",
|
|
43897
44736
|
"command-input-unknown",
|
|
43898
|
-
"command-input-missing"
|
|
44737
|
+
"command-input-missing",
|
|
44738
|
+
"power-source-is-actuator"
|
|
43899
44739
|
]);
|
|
43900
44740
|
/** One refusal, named (D391). `path` points into the composition, e.g. `features[0].fields.temperature`. */
|
|
43901
44741
|
var CompositionProblemSchema = z.object({
|
|
@@ -45070,6 +45910,13 @@ var mediaPlayerCapability = {
|
|
|
45070
45910
|
deviceNative: true,
|
|
45071
45911
|
mode: "singleton",
|
|
45072
45912
|
deviceTypes: [DeviceType.MediaPlayer],
|
|
45913
|
+
power: {
|
|
45914
|
+
kind: "methods",
|
|
45915
|
+
field: "state",
|
|
45916
|
+
offValues: ["off", "standby"],
|
|
45917
|
+
on: "turnOn",
|
|
45918
|
+
off: "turnOff"
|
|
45919
|
+
},
|
|
45073
45920
|
methods: {
|
|
45074
45921
|
turnOn: optionalMethod(deviceOnly, z.void(), {
|
|
45075
45922
|
kind: "mutation",
|
|
@@ -45204,7 +46051,7 @@ var mediaPlayerCapability = {
|
|
|
45204
46051
|
//#region src/generated/customize-catalog.ts
|
|
45205
46052
|
/**
|
|
45206
46053
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
45207
|
-
*
|
|
46054
|
+
* 11 caps. Field keys are `runtimeState` paths. No Zod.
|
|
45208
46055
|
*/
|
|
45209
46056
|
var CAP_CUSTOMIZE_CATALOG = {
|
|
45210
46057
|
"battery": {
|
|
@@ -45219,7 +46066,7 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45219
46066
|
DeviceType.Switch,
|
|
45220
46067
|
DeviceType.PetFeeder,
|
|
45221
46068
|
DeviceType.Container,
|
|
45222
|
-
DeviceType.
|
|
46069
|
+
DeviceType.Climate,
|
|
45223
46070
|
DeviceType.EventEmitter
|
|
45224
46071
|
],
|
|
45225
46072
|
apply: "add",
|
|
@@ -45275,7 +46122,6 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45275
46122
|
DeviceType.Siren,
|
|
45276
46123
|
DeviceType.Switch,
|
|
45277
46124
|
DeviceType.Sensor,
|
|
45278
|
-
DeviceType.Thermostat,
|
|
45279
46125
|
DeviceType.Climate,
|
|
45280
46126
|
DeviceType.Button,
|
|
45281
46127
|
DeviceType.EventEmitter,
|
|
@@ -45303,7 +46149,6 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45303
46149
|
DeviceType.PetFountain,
|
|
45304
46150
|
DeviceType.Dishwasher,
|
|
45305
46151
|
DeviceType.Washer,
|
|
45306
|
-
DeviceType.Heater,
|
|
45307
46152
|
DeviceType.Dryer,
|
|
45308
46153
|
DeviceType.Gateway,
|
|
45309
46154
|
DeviceType.HeatPump
|
|
@@ -45437,6 +46282,247 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45437
46282
|
debounceMs: 2e3
|
|
45438
46283
|
}]
|
|
45439
46284
|
},
|
|
46285
|
+
"fan-control": {
|
|
46286
|
+
version: 1,
|
|
46287
|
+
targets: [
|
|
46288
|
+
{
|
|
46289
|
+
id: "horizontal-oscillating",
|
|
46290
|
+
cardinality: "scalar",
|
|
46291
|
+
deviceTypes: [DeviceType.Fan],
|
|
46292
|
+
apply: "replace",
|
|
46293
|
+
vocabularyCap: "fan-control",
|
|
46294
|
+
vocabularyStateField: "oscillating",
|
|
46295
|
+
sources: [{
|
|
46296
|
+
kind: "switch",
|
|
46297
|
+
transformKinds: ["identity"],
|
|
46298
|
+
transforms: [{ kind: "identity" }]
|
|
46299
|
+
}],
|
|
46300
|
+
sourceReport: { status: "assignment-status" },
|
|
46301
|
+
advancedExpression: false,
|
|
46302
|
+
section: "oscillation-axes",
|
|
46303
|
+
path: "oscillationAxes.horizontal.oscillating",
|
|
46304
|
+
valueKind: "boolean",
|
|
46305
|
+
nullable: true
|
|
46306
|
+
},
|
|
46307
|
+
{
|
|
46308
|
+
id: "horizontal-angle",
|
|
46309
|
+
cardinality: "scalar",
|
|
46310
|
+
deviceTypes: [DeviceType.Fan],
|
|
46311
|
+
apply: "replace",
|
|
46312
|
+
vocabularyCap: "fan-control",
|
|
46313
|
+
sources: [{
|
|
46314
|
+
kind: "numeric",
|
|
46315
|
+
transformKinds: ["identity"],
|
|
46316
|
+
transforms: [{ kind: "identity" }]
|
|
46317
|
+
}],
|
|
46318
|
+
sourceReport: { status: "assignment-status" },
|
|
46319
|
+
advancedExpression: false,
|
|
46320
|
+
section: "oscillation-axes",
|
|
46321
|
+
path: "oscillationAxes.horizontal.angle",
|
|
46322
|
+
valueKind: "number",
|
|
46323
|
+
nullable: true,
|
|
46324
|
+
companions: [
|
|
46325
|
+
{
|
|
46326
|
+
kind: "source-field",
|
|
46327
|
+
path: "oscillationAxes.horizontal.min",
|
|
46328
|
+
field: "min"
|
|
46329
|
+
},
|
|
46330
|
+
{
|
|
46331
|
+
kind: "source-field",
|
|
46332
|
+
path: "oscillationAxes.horizontal.max",
|
|
46333
|
+
field: "max"
|
|
46334
|
+
},
|
|
46335
|
+
{
|
|
46336
|
+
kind: "source-field",
|
|
46337
|
+
path: "oscillationAxes.horizontal.step",
|
|
46338
|
+
field: "step"
|
|
46339
|
+
}
|
|
46340
|
+
]
|
|
46341
|
+
},
|
|
46342
|
+
{
|
|
46343
|
+
id: "horizontal-sweepFrom",
|
|
46344
|
+
cardinality: "scalar",
|
|
46345
|
+
deviceTypes: [DeviceType.Fan],
|
|
46346
|
+
apply: "replace",
|
|
46347
|
+
vocabularyCap: "fan-control",
|
|
46348
|
+
sources: [{
|
|
46349
|
+
kind: "numeric",
|
|
46350
|
+
transformKinds: ["identity"],
|
|
46351
|
+
transforms: [{ kind: "identity" }]
|
|
46352
|
+
}],
|
|
46353
|
+
sourceReport: { status: "assignment-status" },
|
|
46354
|
+
advancedExpression: false,
|
|
46355
|
+
section: "oscillation-axes",
|
|
46356
|
+
path: "oscillationAxes.horizontal.sweepFrom",
|
|
46357
|
+
valueKind: "number",
|
|
46358
|
+
nullable: true
|
|
46359
|
+
},
|
|
46360
|
+
{
|
|
46361
|
+
id: "horizontal-sweepTo",
|
|
46362
|
+
cardinality: "scalar",
|
|
46363
|
+
deviceTypes: [DeviceType.Fan],
|
|
46364
|
+
apply: "replace",
|
|
46365
|
+
vocabularyCap: "fan-control",
|
|
46366
|
+
sources: [{
|
|
46367
|
+
kind: "numeric",
|
|
46368
|
+
transformKinds: ["identity"],
|
|
46369
|
+
transforms: [{ kind: "identity" }]
|
|
46370
|
+
}],
|
|
46371
|
+
sourceReport: { status: "assignment-status" },
|
|
46372
|
+
advancedExpression: false,
|
|
46373
|
+
section: "oscillation-axes",
|
|
46374
|
+
path: "oscillationAxes.horizontal.sweepTo",
|
|
46375
|
+
valueKind: "number",
|
|
46376
|
+
nullable: true
|
|
46377
|
+
},
|
|
46378
|
+
{
|
|
46379
|
+
id: "vertical-oscillating",
|
|
46380
|
+
cardinality: "scalar",
|
|
46381
|
+
deviceTypes: [DeviceType.Fan],
|
|
46382
|
+
apply: "replace",
|
|
46383
|
+
vocabularyCap: "fan-control",
|
|
46384
|
+
vocabularyStateField: "oscillating",
|
|
46385
|
+
sources: [{
|
|
46386
|
+
kind: "switch",
|
|
46387
|
+
transformKinds: ["identity"],
|
|
46388
|
+
transforms: [{ kind: "identity" }]
|
|
46389
|
+
}],
|
|
46390
|
+
sourceReport: { status: "assignment-status" },
|
|
46391
|
+
advancedExpression: false,
|
|
46392
|
+
section: "oscillation-axes",
|
|
46393
|
+
path: "oscillationAxes.vertical.oscillating",
|
|
46394
|
+
valueKind: "boolean",
|
|
46395
|
+
nullable: true
|
|
46396
|
+
},
|
|
46397
|
+
{
|
|
46398
|
+
id: "vertical-angle",
|
|
46399
|
+
cardinality: "scalar",
|
|
46400
|
+
deviceTypes: [DeviceType.Fan],
|
|
46401
|
+
apply: "replace",
|
|
46402
|
+
vocabularyCap: "fan-control",
|
|
46403
|
+
sources: [{
|
|
46404
|
+
kind: "numeric",
|
|
46405
|
+
transformKinds: ["identity"],
|
|
46406
|
+
transforms: [{ kind: "identity" }]
|
|
46407
|
+
}],
|
|
46408
|
+
sourceReport: { status: "assignment-status" },
|
|
46409
|
+
advancedExpression: false,
|
|
46410
|
+
section: "oscillation-axes",
|
|
46411
|
+
path: "oscillationAxes.vertical.angle",
|
|
46412
|
+
valueKind: "number",
|
|
46413
|
+
nullable: true,
|
|
46414
|
+
companions: [
|
|
46415
|
+
{
|
|
46416
|
+
kind: "source-field",
|
|
46417
|
+
path: "oscillationAxes.vertical.min",
|
|
46418
|
+
field: "min"
|
|
46419
|
+
},
|
|
46420
|
+
{
|
|
46421
|
+
kind: "source-field",
|
|
46422
|
+
path: "oscillationAxes.vertical.max",
|
|
46423
|
+
field: "max"
|
|
46424
|
+
},
|
|
46425
|
+
{
|
|
46426
|
+
kind: "source-field",
|
|
46427
|
+
path: "oscillationAxes.vertical.step",
|
|
46428
|
+
field: "step"
|
|
46429
|
+
}
|
|
46430
|
+
]
|
|
46431
|
+
},
|
|
46432
|
+
{
|
|
46433
|
+
id: "vertical-sweepFrom",
|
|
46434
|
+
cardinality: "scalar",
|
|
46435
|
+
deviceTypes: [DeviceType.Fan],
|
|
46436
|
+
apply: "replace",
|
|
46437
|
+
vocabularyCap: "fan-control",
|
|
46438
|
+
sources: [{
|
|
46439
|
+
kind: "numeric",
|
|
46440
|
+
transformKinds: ["identity"],
|
|
46441
|
+
transforms: [{ kind: "identity" }]
|
|
46442
|
+
}],
|
|
46443
|
+
sourceReport: { status: "assignment-status" },
|
|
46444
|
+
advancedExpression: false,
|
|
46445
|
+
section: "oscillation-axes",
|
|
46446
|
+
path: "oscillationAxes.vertical.sweepFrom",
|
|
46447
|
+
valueKind: "number",
|
|
46448
|
+
nullable: true
|
|
46449
|
+
},
|
|
46450
|
+
{
|
|
46451
|
+
id: "vertical-sweepTo",
|
|
46452
|
+
cardinality: "scalar",
|
|
46453
|
+
deviceTypes: [DeviceType.Fan],
|
|
46454
|
+
apply: "replace",
|
|
46455
|
+
vocabularyCap: "fan-control",
|
|
46456
|
+
sources: [{
|
|
46457
|
+
kind: "numeric",
|
|
46458
|
+
transformKinds: ["identity"],
|
|
46459
|
+
transforms: [{ kind: "identity" }]
|
|
46460
|
+
}],
|
|
46461
|
+
sourceReport: { status: "assignment-status" },
|
|
46462
|
+
advancedExpression: false,
|
|
46463
|
+
section: "oscillation-axes",
|
|
46464
|
+
path: "oscillationAxes.vertical.sweepTo",
|
|
46465
|
+
valueKind: "number",
|
|
46466
|
+
nullable: true
|
|
46467
|
+
},
|
|
46468
|
+
{
|
|
46469
|
+
id: "preset",
|
|
46470
|
+
cardinality: "scalar",
|
|
46471
|
+
deviceTypes: [DeviceType.Fan],
|
|
46472
|
+
apply: "replace",
|
|
46473
|
+
vocabularyCap: "fan-control",
|
|
46474
|
+
sources: [{
|
|
46475
|
+
kind: "field",
|
|
46476
|
+
valueKinds: ["string"],
|
|
46477
|
+
transformKinds: ["identity"],
|
|
46478
|
+
transforms: [{ kind: "identity" }]
|
|
46479
|
+
}],
|
|
46480
|
+
sourceReport: { status: "assignment-status" },
|
|
46481
|
+
advancedExpression: false,
|
|
46482
|
+
path: "preset",
|
|
46483
|
+
valueKind: "string",
|
|
46484
|
+
nullable: false
|
|
46485
|
+
}
|
|
46486
|
+
],
|
|
46487
|
+
overridable: [
|
|
46488
|
+
{
|
|
46489
|
+
path: "oscillationAxes.horizontal.oscillating",
|
|
46490
|
+
by: "horizontal-oscillating"
|
|
46491
|
+
},
|
|
46492
|
+
{
|
|
46493
|
+
path: "oscillationAxes.horizontal.angle",
|
|
46494
|
+
by: "horizontal-angle"
|
|
46495
|
+
},
|
|
46496
|
+
{
|
|
46497
|
+
path: "oscillationAxes.horizontal.sweepFrom",
|
|
46498
|
+
by: "horizontal-sweepFrom"
|
|
46499
|
+
},
|
|
46500
|
+
{
|
|
46501
|
+
path: "oscillationAxes.horizontal.sweepTo",
|
|
46502
|
+
by: "horizontal-sweepTo"
|
|
46503
|
+
},
|
|
46504
|
+
{
|
|
46505
|
+
path: "oscillationAxes.vertical.oscillating",
|
|
46506
|
+
by: "vertical-oscillating"
|
|
46507
|
+
},
|
|
46508
|
+
{
|
|
46509
|
+
path: "oscillationAxes.vertical.angle",
|
|
46510
|
+
by: "vertical-angle"
|
|
46511
|
+
},
|
|
46512
|
+
{
|
|
46513
|
+
path: "oscillationAxes.vertical.sweepFrom",
|
|
46514
|
+
by: "vertical-sweepFrom"
|
|
46515
|
+
},
|
|
46516
|
+
{
|
|
46517
|
+
path: "oscillationAxes.vertical.sweepTo",
|
|
46518
|
+
by: "vertical-sweepTo"
|
|
46519
|
+
},
|
|
46520
|
+
{
|
|
46521
|
+
path: "preset",
|
|
46522
|
+
by: "preset"
|
|
46523
|
+
}
|
|
46524
|
+
]
|
|
46525
|
+
},
|
|
45440
46526
|
"fan-presets": {
|
|
45441
46527
|
version: 1,
|
|
45442
46528
|
targets: [{
|
|
@@ -45537,7 +46623,6 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45537
46623
|
DeviceType.Light,
|
|
45538
46624
|
DeviceType.Fan,
|
|
45539
46625
|
DeviceType.Climate,
|
|
45540
|
-
DeviceType.Thermostat,
|
|
45541
46626
|
DeviceType.Humidifier,
|
|
45542
46627
|
DeviceType.WaterHeater,
|
|
45543
46628
|
DeviceType.MediaPlayer,
|
|
@@ -45546,8 +46631,7 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45546
46631
|
DeviceType.Dishwasher,
|
|
45547
46632
|
DeviceType.Vacuum,
|
|
45548
46633
|
DeviceType.LawnMower,
|
|
45549
|
-
DeviceType.PetFeeder
|
|
45550
|
-
DeviceType.Heater
|
|
46634
|
+
DeviceType.PetFeeder
|
|
45551
46635
|
],
|
|
45552
46636
|
apply: "add",
|
|
45553
46637
|
vocabularyCap: "power-meter",
|
|
@@ -45577,7 +46661,6 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45577
46661
|
DeviceType.Light,
|
|
45578
46662
|
DeviceType.Fan,
|
|
45579
46663
|
DeviceType.Climate,
|
|
45580
|
-
DeviceType.Thermostat,
|
|
45581
46664
|
DeviceType.Humidifier,
|
|
45582
46665
|
DeviceType.WaterHeater,
|
|
45583
46666
|
DeviceType.MediaPlayer,
|
|
@@ -45586,8 +46669,7 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45586
46669
|
DeviceType.Dishwasher,
|
|
45587
46670
|
DeviceType.Vacuum,
|
|
45588
46671
|
DeviceType.LawnMower,
|
|
45589
|
-
DeviceType.PetFeeder
|
|
45590
|
-
DeviceType.Heater
|
|
46672
|
+
DeviceType.PetFeeder
|
|
45591
46673
|
],
|
|
45592
46674
|
apply: "add",
|
|
45593
46675
|
vocabularyCap: "power-meter",
|
|
@@ -45617,7 +46699,6 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45617
46699
|
DeviceType.Light,
|
|
45618
46700
|
DeviceType.Fan,
|
|
45619
46701
|
DeviceType.Climate,
|
|
45620
|
-
DeviceType.Thermostat,
|
|
45621
46702
|
DeviceType.Humidifier,
|
|
45622
46703
|
DeviceType.WaterHeater,
|
|
45623
46704
|
DeviceType.MediaPlayer,
|
|
@@ -45626,8 +46707,7 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45626
46707
|
DeviceType.Dishwasher,
|
|
45627
46708
|
DeviceType.Vacuum,
|
|
45628
46709
|
DeviceType.LawnMower,
|
|
45629
|
-
DeviceType.PetFeeder
|
|
45630
|
-
DeviceType.Heater
|
|
46710
|
+
DeviceType.PetFeeder
|
|
45631
46711
|
],
|
|
45632
46712
|
apply: "add",
|
|
45633
46713
|
vocabularyCap: "power-meter",
|
|
@@ -45657,7 +46737,6 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45657
46737
|
DeviceType.Light,
|
|
45658
46738
|
DeviceType.Fan,
|
|
45659
46739
|
DeviceType.Climate,
|
|
45660
|
-
DeviceType.Thermostat,
|
|
45661
46740
|
DeviceType.Humidifier,
|
|
45662
46741
|
DeviceType.WaterHeater,
|
|
45663
46742
|
DeviceType.MediaPlayer,
|
|
@@ -45666,8 +46745,7 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45666
46745
|
DeviceType.Dishwasher,
|
|
45667
46746
|
DeviceType.Vacuum,
|
|
45668
46747
|
DeviceType.LawnMower,
|
|
45669
|
-
DeviceType.PetFeeder
|
|
45670
|
-
DeviceType.Heater
|
|
46748
|
+
DeviceType.PetFeeder
|
|
45671
46749
|
],
|
|
45672
46750
|
apply: "add",
|
|
45673
46751
|
vocabularyCap: "power-meter",
|
|
@@ -45769,9 +46847,7 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
45769
46847
|
DeviceType.Humidifier,
|
|
45770
46848
|
DeviceType.Fan,
|
|
45771
46849
|
DeviceType.Climate,
|
|
45772
|
-
DeviceType.
|
|
45773
|
-
DeviceType.PetFeeder,
|
|
45774
|
-
DeviceType.Heater
|
|
46850
|
+
DeviceType.PetFeeder
|
|
45775
46851
|
],
|
|
45776
46852
|
apply: "add",
|
|
45777
46853
|
vocabularyCap: "running-state",
|
|
@@ -46090,12 +47166,37 @@ function readKinds(read, lookupCap) {
|
|
|
46090
47166
|
code: "source-field-unknown",
|
|
46091
47167
|
message: `\`${read.cap}\` has no field \`${read.fieldPath}\``
|
|
46092
47168
|
};
|
|
46093
|
-
const
|
|
47169
|
+
const bases = field.kind === "union" ? field.unionMembers ?? [] : [field.kind === "enum" ? "string" : field.kind];
|
|
46094
47170
|
return {
|
|
46095
47171
|
ok: true,
|
|
46096
|
-
kinds: new Set(field.nullable ? [
|
|
47172
|
+
kinds: new Set(field.nullable ? [...bases, "null"] : bases)
|
|
46097
47173
|
};
|
|
46098
47174
|
}
|
|
47175
|
+
/** A union field is read as a source (D1034), never written: no single kind to check a source against. */
|
|
47176
|
+
function unionTargetProblem(cap, path, at) {
|
|
47177
|
+
return problem("kind-mismatch", at, `\`${cap}.${path}\` is a union — it is read as a source, never written`);
|
|
47178
|
+
}
|
|
47179
|
+
/** The one value kind a target field accepts. */
|
|
47180
|
+
function acceptedKind(target) {
|
|
47181
|
+
if (target.kind === "union") return null;
|
|
47182
|
+
return target.kind === "enum" ? "string" : target.kind;
|
|
47183
|
+
}
|
|
47184
|
+
/**
|
|
47185
|
+
* A direct read of a UNION source field (D1034) is judged by the member that
|
|
47186
|
+
* fits the target: when one does, the read produces that kind only (a reading
|
|
47187
|
+
* of another kind is UNAVAILABLE at read time, never a coerced value); when
|
|
47188
|
+
* none does, the kinds stay as they are and `compatibility` names the mismatch.
|
|
47189
|
+
*/
|
|
47190
|
+
function narrowUnionRead(source, target, kinds, lookupCap) {
|
|
47191
|
+
if (source.kind !== "from") return kinds;
|
|
47192
|
+
const def = lookupCap(source.cap);
|
|
47193
|
+
const schema = def?.runtimeState ?? def?.status?.schema;
|
|
47194
|
+
if (schema === void 0) return kinds;
|
|
47195
|
+
const field = describeStateField(schema, source.fieldPath);
|
|
47196
|
+
const accepted = acceptedKind(target);
|
|
47197
|
+
if (field?.kind !== "union" || accepted === null || !kinds.has(accepted)) return kinds;
|
|
47198
|
+
return new Set(kinds.has("null") ? [accepted, "null"] : [accepted]);
|
|
47199
|
+
}
|
|
46099
47200
|
function sourceKinds(source, lookupCap) {
|
|
46100
47201
|
if (source.kind === "from") return readKinds(source, lookupCap);
|
|
46101
47202
|
if (source.kind === "code") return {
|
|
@@ -46132,7 +47233,8 @@ function sourceKinds(source, lookupCap) {
|
|
|
46132
47233
|
};
|
|
46133
47234
|
}
|
|
46134
47235
|
function compatibility(cap, target, kinds, at) {
|
|
46135
|
-
const allowed = target
|
|
47236
|
+
const allowed = acceptedKind(target);
|
|
47237
|
+
if (allowed === null) return [unionTargetProblem(cap, target.path, at)];
|
|
46136
47238
|
const offending = [...kinds].filter((k) => k !== "null" && k !== allowed);
|
|
46137
47239
|
const problems = [];
|
|
46138
47240
|
if (offending.length > 0) problems.push(problem("kind-mismatch", at, `\`${cap}.${target.path}\` is a ${target.kind}; this source can produce ${offending.join(" or ")}`));
|
|
@@ -46243,6 +47345,7 @@ function planItemField(ctx, leaf) {
|
|
|
46243
47345
|
if (ctx.reserved.has(path)) return refused(problem("item-field-reserved", at, `\`${capName}.${itemArray.path}[].${path}\` is set by the composer itself — it takes no source`));
|
|
46244
47346
|
const tf = describeStateField(itemArray.itemSchema, path);
|
|
46245
47347
|
if (tf === null) return refused(problem("unknown-field", at, `a \`${capName}\` item has no field \`${path}\``));
|
|
47348
|
+
if (tf.kind === "union") return refused(unionTargetProblem(capName, path, at));
|
|
46246
47349
|
const kinds = sourceKinds(source, lookupCap);
|
|
46247
47350
|
if (!kinds.ok) return refused(problem(kinds.code, at, kinds.message));
|
|
46248
47351
|
const role = roleOf(source);
|
|
@@ -46268,7 +47371,7 @@ function planItemField(ctx, leaf) {
|
|
|
46268
47371
|
};
|
|
46269
47372
|
const enumProblem = enumLiteralProblem(capName, tf, source, at);
|
|
46270
47373
|
return {
|
|
46271
|
-
problems: [...compatibility(capName, tf, kinds.kinds, at), ...enumProblem === null ? [] : [enumProblem]],
|
|
47374
|
+
problems: [...compatibility(capName, tf, narrowUnionRead(source, tf, kinds.kinds, lookupCap), at), ...enumProblem === null ? [] : [enumProblem]],
|
|
46272
47375
|
fields: [plan],
|
|
46273
47376
|
features: [],
|
|
46274
47377
|
events: []
|
|
@@ -46500,7 +47603,7 @@ function numeric(input) {
|
|
|
46500
47603
|
}, ...alsoFrom === void 0 ? [] : [alsoFrom.accept]]
|
|
46501
47604
|
};
|
|
46502
47605
|
}
|
|
46503
|
-
var CLIMATE_DEVICES = [DeviceType.
|
|
47606
|
+
var CLIMATE_DEVICES = [DeviceType.Climate];
|
|
46504
47607
|
function binary(input) {
|
|
46505
47608
|
return {
|
|
46506
47609
|
...input,
|
|
@@ -46822,8 +47925,8 @@ var GROUP_TEMPLATES = [
|
|
|
46822
47925
|
actuator({
|
|
46823
47926
|
id: "climate",
|
|
46824
47927
|
summary: "Running when at least one thermostat or air conditioner is not off, or only when all of them are. Target temperature and fan are offered only when every device has them. A device that reports nothing is left out, never read as off.",
|
|
46825
|
-
deviceType: DeviceType.
|
|
46826
|
-
memberDeviceTypes: [DeviceType.
|
|
47928
|
+
deviceType: DeviceType.Climate,
|
|
47929
|
+
memberDeviceTypes: [DeviceType.Climate],
|
|
46827
47930
|
outputCap: "group-active",
|
|
46828
47931
|
outputField: "active",
|
|
46829
47932
|
member: {
|
|
@@ -48287,6 +49390,233 @@ function findCandidateCycles(candidate, stored) {
|
|
|
48287
49390
|
});
|
|
48288
49391
|
}
|
|
48289
49392
|
//#endregion
|
|
49393
|
+
//#region src/capabilities/power-source.cap.ts
|
|
49394
|
+
/**
|
|
49395
|
+
* power-source — a device that hangs is powered by a smart switch, and the
|
|
49396
|
+
* operator picks that switch in the device's Customize. The device then offers
|
|
49397
|
+
* power on, power off and a forced restart (switch off, wait, switch on).
|
|
49398
|
+
*
|
|
49399
|
+
* Manual by default: nothing here restarts a device by itself. The one
|
|
49400
|
+
* exception (D997) is a device's OWN provider calling `forceRestart` for its own
|
|
49401
|
+
* device as a bounded self-recovery (unreachable for a long stretch, linked,
|
|
49402
|
+
* one attempt per cooldown, never with a live session); Velux is the first. It
|
|
49403
|
+
* is not the native `reboot` cap and never replaces or wraps it: `reboot` talks
|
|
49404
|
+
* to the device, this cuts the power of the device that no longer answers.
|
|
49405
|
+
*
|
|
49406
|
+
* The link is a Customize extension (`add`): one scalar target whose source is
|
|
49407
|
+
* the switch. The stored composition is the ONE copy of the link and of
|
|
49408
|
+
* `offSeconds` (`powerSourceLinkOfComposition`, D676); the composed slice only
|
|
49409
|
+
* mirrors the switch state for the UI. The methods are served by the
|
|
49410
|
+
* `core-blocks` system provider, so they are `systemMethod`s and carry a
|
|
49411
|
+
* top-level `deviceId`.
|
|
49412
|
+
*
|
|
49413
|
+
* Every action answers a typed result and never throws for an expected
|
|
49414
|
+
* refusal, so a caller tells "the switch is offline" from "a restart is
|
|
49415
|
+
* already running" without parsing text.
|
|
49416
|
+
*/
|
|
49417
|
+
/** Bounds of the off time of a forced restart, in seconds. */
|
|
49418
|
+
var POWER_SOURCE_OFF_SECONDS_MIN = 3;
|
|
49419
|
+
var POWER_SOURCE_OFF_SECONDS_MAX = 120;
|
|
49420
|
+
var POWER_SOURCE_OFF_SECONDS_DEFAULT = 10;
|
|
49421
|
+
var PowerSourceRefusalReasonSchema = z.enum([
|
|
49422
|
+
"no-power-source",
|
|
49423
|
+
"switch-missing",
|
|
49424
|
+
"switch-offline",
|
|
49425
|
+
"switch-unknown",
|
|
49426
|
+
"restart-in-progress",
|
|
49427
|
+
"switch-call-failed",
|
|
49428
|
+
"switch-is-actuator"
|
|
49429
|
+
]);
|
|
49430
|
+
var PowerSourceActionResultSchema = z.discriminatedUnion("accepted", [z.object({ accepted: z.literal(true) }), z.object({
|
|
49431
|
+
accepted: z.literal(false),
|
|
49432
|
+
reason: PowerSourceRefusalReasonSchema,
|
|
49433
|
+
/** One line for the operator, naming the switch. */
|
|
49434
|
+
message: z.string()
|
|
49435
|
+
})]);
|
|
49436
|
+
var PowerSourceInfoSchema = z.object({
|
|
49437
|
+
/** False when the device has no power source linked; the rest is then empty. */
|
|
49438
|
+
linked: z.boolean(),
|
|
49439
|
+
switchDeviceId: z.number().nullable(),
|
|
49440
|
+
switchName: z.string().nullable(),
|
|
49441
|
+
/** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
|
|
49442
|
+
switchOn: z.boolean().nullable(),
|
|
49443
|
+
switchOnline: z.boolean().nullable(),
|
|
49444
|
+
restartInProgress: z.boolean(),
|
|
49445
|
+
offSeconds: z.number().int()
|
|
49446
|
+
});
|
|
49447
|
+
/** The composed slice: the switch state the link mirrors, plus the stored off time. */
|
|
49448
|
+
var PowerSourceStateSchema = z.object({
|
|
49449
|
+
/** Null while the switch has not reported: unknown is never `false` (D393). */
|
|
49450
|
+
switchOn: z.boolean().nullable(),
|
|
49451
|
+
offSeconds: z.number().int(),
|
|
49452
|
+
lastFetchedAt: z.number()
|
|
49453
|
+
});
|
|
49454
|
+
var POWER_SOURCE_DEVICE_TYPES = [
|
|
49455
|
+
DeviceType.Gateway,
|
|
49456
|
+
DeviceType.Camera,
|
|
49457
|
+
DeviceType.Sensor,
|
|
49458
|
+
DeviceType.MediaPlayer,
|
|
49459
|
+
DeviceType.Vacuum,
|
|
49460
|
+
DeviceType.Generic,
|
|
49461
|
+
DeviceType.Washer,
|
|
49462
|
+
DeviceType.Dryer,
|
|
49463
|
+
DeviceType.Dishwasher,
|
|
49464
|
+
DeviceType.PetFountain,
|
|
49465
|
+
DeviceType.Fan,
|
|
49466
|
+
DeviceType.Humidifier,
|
|
49467
|
+
DeviceType.Climate,
|
|
49468
|
+
DeviceType.WaterHeater
|
|
49469
|
+
];
|
|
49470
|
+
var powerSourceCustomize = {
|
|
49471
|
+
version: 1,
|
|
49472
|
+
targets: [{
|
|
49473
|
+
id: "switch",
|
|
49474
|
+
cardinality: "scalar",
|
|
49475
|
+
vocabulary: {
|
|
49476
|
+
cap: "power-source",
|
|
49477
|
+
stateField: "switchOn"
|
|
49478
|
+
},
|
|
49479
|
+
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
49480
|
+
apply: "add",
|
|
49481
|
+
path: "switchOn",
|
|
49482
|
+
sources: [{
|
|
49483
|
+
kind: "switch",
|
|
49484
|
+
transforms: [{ kind: "identity" }]
|
|
49485
|
+
}],
|
|
49486
|
+
companions: [{
|
|
49487
|
+
kind: "constant",
|
|
49488
|
+
path: "offSeconds",
|
|
49489
|
+
value: 10,
|
|
49490
|
+
when: "add",
|
|
49491
|
+
formerValues: [0]
|
|
49492
|
+
}, {
|
|
49493
|
+
kind: "clock",
|
|
49494
|
+
path: "lastFetchedAt",
|
|
49495
|
+
when: "always"
|
|
49496
|
+
}],
|
|
49497
|
+
sourceReport: { status: "assignment-status" }
|
|
49498
|
+
}]
|
|
49499
|
+
};
|
|
49500
|
+
var deviceInput$2 = z.object({ deviceId: z.number().int().nonnegative() });
|
|
49501
|
+
var powerSourceCapability = {
|
|
49502
|
+
name: "power-source",
|
|
49503
|
+
scope: "device",
|
|
49504
|
+
mode: "singleton",
|
|
49505
|
+
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
49506
|
+
methods: {
|
|
49507
|
+
getStatus: systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }),
|
|
49508
|
+
powerOn: systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
|
|
49509
|
+
kind: "mutation",
|
|
49510
|
+
auth: "protected"
|
|
49511
|
+
}),
|
|
49512
|
+
powerOff: systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
|
|
49513
|
+
kind: "mutation",
|
|
49514
|
+
auth: "protected"
|
|
49515
|
+
}),
|
|
49516
|
+
forceRestart: systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
|
|
49517
|
+
kind: "mutation",
|
|
49518
|
+
auth: "protected"
|
|
49519
|
+
})
|
|
49520
|
+
},
|
|
49521
|
+
runtimeState: PowerSourceStateSchema,
|
|
49522
|
+
customize: powerSourceCustomize,
|
|
49523
|
+
/**
|
|
49524
|
+
* Runtime-state durability: **session** — mirrored from the linked switch on
|
|
49525
|
+
* its next report; a restored value would outlive the reading it names.
|
|
49526
|
+
*
|
|
49527
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
49528
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
49529
|
+
*/
|
|
49530
|
+
durability: "session",
|
|
49531
|
+
history: "none"
|
|
49532
|
+
};
|
|
49533
|
+
//#endregion
|
|
49534
|
+
//#region src/composition/power-source-link.ts
|
|
49535
|
+
/**
|
|
49536
|
+
* Which smart switch powers a device (the `power-source` Customize extension):
|
|
49537
|
+
* the source its stored `power-source.switchOn` field reads, and the off time of
|
|
49538
|
+
* a forced restart stored beside it. Read from the STORED composition, never kept
|
|
49539
|
+
* as a second copy (D676). Shared by the hub (which acts on the switch) and the
|
|
49540
|
+
* admin UI (which shows it).
|
|
49541
|
+
*/
|
|
49542
|
+
/**
|
|
49543
|
+
* The stored off time, or the default when none is stored. A stored number out
|
|
49544
|
+
* of range is CLAMPED to the bounds (a hand-written value never refuses the
|
|
49545
|
+
* link, it just cannot cut power for an absurd time); a non-integer is rounded.
|
|
49546
|
+
*/
|
|
49547
|
+
function normalizeOffSeconds(value) {
|
|
49548
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return 10;
|
|
49549
|
+
return Math.min(120, Math.max(3, Math.round(value)));
|
|
49550
|
+
}
|
|
49551
|
+
/** The constant a stored `offSeconds` field carries, or undefined when it is not a literal number. */
|
|
49552
|
+
function storedOffSeconds(composition) {
|
|
49553
|
+
const feature = composition.features.find((f) => f.cap === "power-source");
|
|
49554
|
+
if (feature === void 0 || feature.kind !== "fields") return void 0;
|
|
49555
|
+
const field = feature.fields["offSeconds"];
|
|
49556
|
+
if (field === void 0 || field.kind !== "expression") return void 0;
|
|
49557
|
+
const n = Number(field.expr);
|
|
49558
|
+
return field.expr.trim() === "" || !Number.isFinite(n) ? void 0 : n;
|
|
49559
|
+
}
|
|
49560
|
+
/**
|
|
49561
|
+
* The link a composition stores. An `existing` target names its own device; a
|
|
49562
|
+
* `new` target (a composed device) is the composer's own device, so the caller
|
|
49563
|
+
* passes the block id and a new-target composition without one has no link.
|
|
49564
|
+
*/
|
|
49565
|
+
function powerSourceLinkOfComposition(composition, blockId) {
|
|
49566
|
+
if (composition === null) return null;
|
|
49567
|
+
let device;
|
|
49568
|
+
if (composition.target.kind === "existing") device = composition.target.device;
|
|
49569
|
+
else if (blockId !== void 0) device = composedDeviceRef(blockId);
|
|
49570
|
+
else return null;
|
|
49571
|
+
const feature = composition.features.find((f) => f.cap === "power-source");
|
|
49572
|
+
if (feature === void 0 || feature.kind !== "fields" || feature.enabled === false) return null;
|
|
49573
|
+
const field = feature.fields["switchOn"];
|
|
49574
|
+
if (field === void 0) return null;
|
|
49575
|
+
const read = fieldReads(field).find((r) => r.cap === "switch");
|
|
49576
|
+
if (read === void 0) return null;
|
|
49577
|
+
return {
|
|
49578
|
+
device,
|
|
49579
|
+
switch: read.source,
|
|
49580
|
+
offSeconds: normalizeOffSeconds(storedOffSeconds(composition))
|
|
49581
|
+
};
|
|
49582
|
+
}
|
|
49583
|
+
var ACTUATOR_CAP = "switch";
|
|
49584
|
+
/**
|
|
49585
|
+
* The devices that ACT for this composition: the device itself when it is an
|
|
49586
|
+
* existing one, and every source its own `switch` feature reads or forwards a
|
|
49587
|
+
* command to (a heater's plug, every member of a switch group).
|
|
49588
|
+
*/
|
|
49589
|
+
function actuatorKeys(composition) {
|
|
49590
|
+
const keys = /* @__PURE__ */ new Set();
|
|
49591
|
+
if (composition.target.kind === "existing") keys.add(compositionSourceKey(composition.target.device));
|
|
49592
|
+
composition.features.forEach((feature, index) => {
|
|
49593
|
+
if (feature.kind !== "fields" || feature.cap !== ACTUATOR_CAP) return;
|
|
49594
|
+
if (!compositionFeatureEnabled(feature)) return;
|
|
49595
|
+
for (const source of featureSources(feature)) for (const read of fieldReads(source)) keys.add(compositionSourceKey(read.source));
|
|
49596
|
+
for (const forward of featureForwards(feature, index)) keys.add(compositionSourceKey(forward.command.source));
|
|
49597
|
+
});
|
|
49598
|
+
return keys;
|
|
49599
|
+
}
|
|
49600
|
+
/**
|
|
49601
|
+
* The supply plug is never one of the device's own actuators (#462): cutting
|
|
49602
|
+
* power through the switch that IS the device's on/off leaves nothing to
|
|
49603
|
+
* restart, and makes "power off" and "turn off" the same press. Refused at save
|
|
49604
|
+
* time (`power-source-is-actuator`) and again by the power-source provider for a
|
|
49605
|
+
* link stored before this check existed (`switch-is-actuator`).
|
|
49606
|
+
*/
|
|
49607
|
+
function powerSourceActuatorConflicts(composition) {
|
|
49608
|
+
const index = composition.features.findIndex((f) => f.cap === "power-source");
|
|
49609
|
+
const feature = composition.features[index];
|
|
49610
|
+
if (feature === void 0 || feature.kind !== "fields" || feature.enabled === false) return [];
|
|
49611
|
+
const field = feature.fields["switchOn"];
|
|
49612
|
+
if (field === void 0) return [];
|
|
49613
|
+
const actuators = actuatorKeys(composition);
|
|
49614
|
+
return fieldReads(field).filter((read) => read.cap === ACTUATOR_CAP && actuators.has(compositionSourceKey(read.source))).map((read) => ({
|
|
49615
|
+
path: `features[${index}].fields.switchOn`,
|
|
49616
|
+
switch: read.source
|
|
49617
|
+
}));
|
|
49618
|
+
}
|
|
49619
|
+
//#endregion
|
|
48290
49620
|
//#region src/composition/validate-composition.ts
|
|
48291
49621
|
function buildCapabilityLookup(defs) {
|
|
48292
49622
|
const byName = new Map(defs.map((d) => [d.name, d]));
|
|
@@ -48348,12 +49678,25 @@ function builtCapProblems({ def, state, fields: targetFields }, feature, at, dev
|
|
|
48348
49678
|
}
|
|
48349
49679
|
return problems;
|
|
48350
49680
|
}
|
|
48351
|
-
|
|
49681
|
+
/**
|
|
49682
|
+
* A dotted leaf is planned only on a `replace` (D1034): the feature already
|
|
49683
|
+
* passed `overridesOnlyDeclared`, so the leaf is one the cap lists in its
|
|
49684
|
+
* `overridable`, and the hub sets it into the native object. Anywhere else a
|
|
49685
|
+
* nested field is still refused.
|
|
49686
|
+
*/
|
|
49687
|
+
function stateFieldOf({ fields, state }, path, mode) {
|
|
49688
|
+
if (!path.includes(".")) return fields.get(path);
|
|
49689
|
+
if (mode !== "replace") return "nested";
|
|
49690
|
+
return describeStateField(state, path) ?? void 0;
|
|
49691
|
+
}
|
|
49692
|
+
function planTopLevelField(cap, field, mode, lookupCap) {
|
|
49693
|
+
const { def } = cap;
|
|
48352
49694
|
const { featureIndex, path, source } = field;
|
|
48353
49695
|
const fieldAt = `features[${featureIndex}].fields.${path}`;
|
|
48354
|
-
|
|
48355
|
-
|
|
49696
|
+
const tf = stateFieldOf(cap, path, mode);
|
|
49697
|
+
if (tf === "nested") return refused(problem("nested-field", fieldAt, `\`${path}\` is nested — a nested field is planned only on a declared replace (D1034)`));
|
|
48356
49698
|
if (tf === void 0) return refused(problem("unknown-field", fieldAt, `\`${def.name}\` has no field \`${path}\``));
|
|
49699
|
+
if (tf.kind === "union") return refused(unionTargetProblem(def.name, path, fieldAt));
|
|
48357
49700
|
const kinds = sourceKinds(source, lookupCap);
|
|
48358
49701
|
if (!kinds.ok) return refused(problem(kinds.code, fieldAt, kinds.message));
|
|
48359
49702
|
const role = roleOf(source);
|
|
@@ -48374,7 +49717,7 @@ function planTopLevelField({ def, fields }, field, mode, lookupCap) {
|
|
|
48374
49717
|
};
|
|
48375
49718
|
const enumProblem = enumLiteralProblem(def.name, tf, source, fieldAt);
|
|
48376
49719
|
return {
|
|
48377
|
-
problems: [...compatibility(def.name, tf, kinds.kinds, fieldAt), ...enumProblem === null ? [] : [enumProblem]],
|
|
49720
|
+
problems: [...compatibility(def.name, tf, narrowUnionRead(source, tf, kinds.kinds, lookupCap), fieldAt), ...enumProblem === null ? [] : [enumProblem]],
|
|
48378
49721
|
fields: [plan],
|
|
48379
49722
|
features: [],
|
|
48380
49723
|
events: []
|
|
@@ -48477,7 +49820,7 @@ var customizeCatalog = CAP_CUSTOMIZE_CATALOG;
|
|
|
48477
49820
|
function overridesOnlyDeclared(feature) {
|
|
48478
49821
|
const entry = customizeCatalog[feature.cap];
|
|
48479
49822
|
const allowed = new Set((entry?.overridable ?? []).flatMap((o) => {
|
|
48480
|
-
const companions = ((entry?.targets.find((t) => t.id === o.by && t.path === o.path))?.companions ?? []).filter((c) => c.kind === "transition-time" || c.when === "always");
|
|
49823
|
+
const companions = ((entry?.targets.find((t) => t.id === o.by && t.path === o.path))?.companions ?? []).filter((c) => c.kind === "transition-time" || c.kind === "source-field" || c.when === "always");
|
|
48481
49824
|
return [o.path, ...companions.map((c) => c.path)];
|
|
48482
49825
|
}));
|
|
48483
49826
|
const paths = Object.keys(feature.fields);
|
|
@@ -48548,6 +49891,20 @@ function compositionSourceRefs(composition) {
|
|
|
48548
49891
|
return [...new Map([...refs, ...forwardSourceRefs(composition)].map((r) => [compositionSourceKey(r), r])).values()];
|
|
48549
49892
|
}
|
|
48550
49893
|
/**
|
|
49894
|
+
* Every DIRECT read (`from`) of a union source field (D1034): the reads whose
|
|
49895
|
+
* source's live kind a save looks up, so a numeric control is never linked to
|
|
49896
|
+
* a string field. A read inside an expression is judged by the expression.
|
|
49897
|
+
*/
|
|
49898
|
+
function compositionUnionReads(composition, lookupCap) {
|
|
49899
|
+
return composition.features.flatMap((f) => compositionFeatureEnabled(f) && f.kind === "fields" ? featureSources(f).flatMap((source) => {
|
|
49900
|
+
if (source.kind !== "from") return [];
|
|
49901
|
+
const def = lookupCap(source.cap);
|
|
49902
|
+
const schema = def?.runtimeState ?? def?.status?.schema;
|
|
49903
|
+
if (schema === void 0) return [];
|
|
49904
|
+
return describeStateField(schema, source.fieldPath)?.kind === "union" ? [source] : [];
|
|
49905
|
+
}) : []);
|
|
49906
|
+
}
|
|
49907
|
+
/**
|
|
48551
49908
|
* The candidate's device: the existing target itself, else `self`, else a
|
|
48552
49909
|
* placeholder that cannot collide with a stored target. An existing target is
|
|
48553
49910
|
* known even on create, so a second customization of it is refused on create too.
|
|
@@ -48581,6 +49938,18 @@ function selfReadProblems(read, at, fields, self) {
|
|
|
48581
49938
|
if (isNativeCap(self.native, read.cap)) return [];
|
|
48582
49939
|
return [problem("source-capability-missing", at, `the target device (device ${self.native.deviceId}) has no native \`${read.cap}\``)];
|
|
48583
49940
|
}
|
|
49941
|
+
/**
|
|
49942
|
+
* A direct read of a union field is judged by the source's LIVE kind when the
|
|
49943
|
+
* save knew it (D1034): a numeric control feeds only a number field, a select
|
|
49944
|
+
* only a string or enum one.
|
|
49945
|
+
*/
|
|
49946
|
+
function liveKindProblems(field, read, desc, at) {
|
|
49947
|
+
if (field.source.kind !== "from") return [];
|
|
49948
|
+
const live = desc.liveKinds?.get(`${read.cap}.${read.fieldPath}`);
|
|
49949
|
+
const accepted = field.kind === "enum" ? "string" : field.kind;
|
|
49950
|
+
if (live === void 0 || live === accepted) return [];
|
|
49951
|
+
return [problem("source-kind-mismatch", at, `\`${read.cap}.${read.fieldPath}\` of device ${desc.deviceId} reads a ${live} now; \`${field.cap}.${field.path}\` takes a ${accepted}`)];
|
|
49952
|
+
}
|
|
48584
49953
|
function sourceProblems(fields, ctx, self) {
|
|
48585
49954
|
const selfKey = compositionSourceKey(self.ref);
|
|
48586
49955
|
return fields.flatMap((field) => field.reads.flatMap((read) => {
|
|
@@ -48591,7 +49960,7 @@ function sourceProblems(fields, ctx, self) {
|
|
|
48591
49960
|
if (desc === void 0 || desc.kind === "unreadable") return [problem("source-unreadable", at, `could not read source \`${key}\` (${desc === void 0 ? "it was not read" : desc.error}) — the save is refused rather than stored unchecked`)];
|
|
48592
49961
|
if (desc.kind === "absent") return [problem("source-missing", at, `source \`${key}\` does not exist`)];
|
|
48593
49962
|
if (!desc.caps.has(read.cap)) return [problem("source-capability-missing", at, `source \`${key}\` (device ${desc.deviceId}) has no \`${read.cap}\``)];
|
|
48594
|
-
return
|
|
49963
|
+
return liveKindProblems(field, read, desc, at);
|
|
48595
49964
|
}));
|
|
48596
49965
|
}
|
|
48597
49966
|
/**
|
|
@@ -48683,7 +50052,8 @@ function validateComposition(composition, ctx) {
|
|
|
48683
50052
|
...sourceProblems(plan.fields, ctx, self),
|
|
48684
50053
|
...forwardSourceProblems(composition, ctx.sources),
|
|
48685
50054
|
...cycles,
|
|
48686
|
-
...helperSaveProblems(composition, facts)
|
|
50055
|
+
...helperSaveProblems(composition, facts),
|
|
50056
|
+
...powerSourceActuatorConflicts(composition).map((c) => problem("power-source-is-actuator", c.path, `the power source \`${c.switch.stableId}\` is one of this device's own switches — pick the plug that feeds it`))
|
|
48687
50057
|
];
|
|
48688
50058
|
return {
|
|
48689
50059
|
ok: problems.length === 0,
|
|
@@ -48745,13 +50115,13 @@ function describeComposableCaps(defs, deviceType) {
|
|
|
48745
50115
|
const itemArray = def.status?.itemArray;
|
|
48746
50116
|
return {
|
|
48747
50117
|
cap: def.name,
|
|
48748
|
-
fields: fields.
|
|
50118
|
+
fields: fields.flatMap((f) => f.kind === "union" ? [] : [{
|
|
48749
50119
|
path: f.path,
|
|
48750
50120
|
kind: f.kind,
|
|
48751
50121
|
nullable: f.nullable,
|
|
48752
50122
|
required: f.required,
|
|
48753
50123
|
...f.enumValues === void 0 ? {} : { enumValues: [...f.enumValues] }
|
|
48754
|
-
})
|
|
50124
|
+
}]),
|
|
48755
50125
|
...itemArray === void 0 ? {} : { itemArray: {
|
|
48756
50126
|
path: itemArray.path,
|
|
48757
50127
|
keyField: itemArray.keyField
|
|
@@ -52350,8 +53720,14 @@ var deviceManagerCapability = {
|
|
|
52350
53720
|
"string",
|
|
52351
53721
|
"number",
|
|
52352
53722
|
"boolean",
|
|
52353
|
-
"enum"
|
|
53723
|
+
"enum",
|
|
53724
|
+
"union"
|
|
52354
53725
|
]),
|
|
53726
|
+
unionMembers: z.array(z.enum([
|
|
53727
|
+
"string",
|
|
53728
|
+
"number",
|
|
53729
|
+
"boolean"
|
|
53730
|
+
])).optional(),
|
|
52355
53731
|
enumValues: z.array(z.string()).optional(),
|
|
52356
53732
|
item: z.boolean().optional(),
|
|
52357
53733
|
quantity: ReadingQuantitySchema.optional()
|
|
@@ -55776,26 +57152,174 @@ var enumSensorCapability = {
|
|
|
55776
57152
|
volatileStateFields: ["lastFetchedAt", "timestamp"]
|
|
55777
57153
|
};
|
|
55778
57154
|
//#endregion
|
|
57155
|
+
//#region src/capabilities/event-vocabulary.ts
|
|
57156
|
+
/**
|
|
57157
|
+
* The declared vocabulary of an `event-emitter` device (D1044): what the
|
|
57158
|
+
* device can fire, named for a person and typed for a rule.
|
|
57159
|
+
*
|
|
57160
|
+
* `id` is the native token, verbatim. `kind` is the meaning shared by every
|
|
57161
|
+
* integration, so "any long press" can be asked without knowing a vendor's
|
|
57162
|
+
* token. A device with several buttons declares one entry per button and
|
|
57163
|
+
* token: an entry is identified by its token AND its source.
|
|
57164
|
+
*/
|
|
57165
|
+
/** The cross-integration meaning of an event. */
|
|
57166
|
+
var EVENT_VOCABULARY_KINDS = [
|
|
57167
|
+
"press",
|
|
57168
|
+
"long-press",
|
|
57169
|
+
"long-press-start",
|
|
57170
|
+
"release",
|
|
57171
|
+
"repeat",
|
|
57172
|
+
"double-press",
|
|
57173
|
+
"other"
|
|
57174
|
+
];
|
|
57175
|
+
var EventVocabularyKindSchema = z.enum(EVENT_VOCABULARY_KINDS);
|
|
57176
|
+
/** The part of the device an event comes from: a button, a channel. */
|
|
57177
|
+
var EventVocabularySourceSchema = z.object({
|
|
57178
|
+
id: z.string().min(1),
|
|
57179
|
+
label: z.string().min(1)
|
|
57180
|
+
});
|
|
57181
|
+
/** One scalar field of an event's `data`, by dotted path. */
|
|
57182
|
+
var EventVocabularyFieldSchema = z.object({
|
|
57183
|
+
path: z.string().min(1),
|
|
57184
|
+
kind: z.enum([
|
|
57185
|
+
"string",
|
|
57186
|
+
"number",
|
|
57187
|
+
"boolean",
|
|
57188
|
+
"enum"
|
|
57189
|
+
]),
|
|
57190
|
+
enumValues: z.array(z.string()).optional(),
|
|
57191
|
+
label: z.string().min(1).optional()
|
|
57192
|
+
});
|
|
57193
|
+
var EventVocabularyEntrySchema = z.object({
|
|
57194
|
+
/** The native token, verbatim. */
|
|
57195
|
+
id: z.string().min(1),
|
|
57196
|
+
source: EventVocabularySourceSchema.optional(),
|
|
57197
|
+
label: z.string().min(1),
|
|
57198
|
+
description: z.string().optional(),
|
|
57199
|
+
kind: EventVocabularyKindSchema.optional(),
|
|
57200
|
+
payload: z.array(EventVocabularyFieldSchema).optional()
|
|
57201
|
+
});
|
|
57202
|
+
/**
|
|
57203
|
+
* The vocabulary of a source that declares tokens and nothing else: one
|
|
57204
|
+
* entry per token, labelled with the token itself.
|
|
57205
|
+
*/
|
|
57206
|
+
function plainEventVocabulary(eventTypes) {
|
|
57207
|
+
return [...new Set(eventTypes)].filter((eventType) => eventType !== "").map((eventType) => ({
|
|
57208
|
+
id: eventType,
|
|
57209
|
+
label: eventType
|
|
57210
|
+
}));
|
|
57211
|
+
}
|
|
57212
|
+
/**
|
|
57213
|
+
* Tokens many integrations use for a button, by their normalised spelling
|
|
57214
|
+
* (lower case, words joined by `_`). Exact matches only: a token that
|
|
57215
|
+
* merely contains one of these words gets no kind.
|
|
57216
|
+
*/
|
|
57217
|
+
var CONVENTIONAL_KINDS = {
|
|
57218
|
+
press: "press",
|
|
57219
|
+
pressed: "press",
|
|
57220
|
+
single: "press",
|
|
57221
|
+
single_press: "press",
|
|
57222
|
+
single_click: "press",
|
|
57223
|
+
short_press: "press",
|
|
57224
|
+
press_short: "press",
|
|
57225
|
+
click: "press",
|
|
57226
|
+
initial_press: "press",
|
|
57227
|
+
long_press: "long-press",
|
|
57228
|
+
press_long: "long-press",
|
|
57229
|
+
long_click: "long-press",
|
|
57230
|
+
hold: "long-press",
|
|
57231
|
+
long_press_start: "long-press-start",
|
|
57232
|
+
press_long_start: "long-press-start",
|
|
57233
|
+
release: "release",
|
|
57234
|
+
released: "release",
|
|
57235
|
+
long_release: "release",
|
|
57236
|
+
long_press_release: "release",
|
|
57237
|
+
press_long_release: "release",
|
|
57238
|
+
short_release: "release",
|
|
57239
|
+
repeat: "repeat",
|
|
57240
|
+
hold_repeat: "repeat",
|
|
57241
|
+
press_cont: "repeat",
|
|
57242
|
+
double_press: "double-press",
|
|
57243
|
+
double_click: "double-press",
|
|
57244
|
+
double: "double-press",
|
|
57245
|
+
multi_press_2: "double-press"
|
|
57246
|
+
};
|
|
57247
|
+
function normalisedToken(token) {
|
|
57248
|
+
return token.trim().toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
|
|
57249
|
+
}
|
|
57250
|
+
function readableToken(token) {
|
|
57251
|
+
const words = normalisedToken(token).replace(/_/g, " ");
|
|
57252
|
+
if (words === "") return token;
|
|
57253
|
+
return `${words.charAt(0).toUpperCase()}${words.slice(1)}`;
|
|
57254
|
+
}
|
|
57255
|
+
/**
|
|
57256
|
+
* The vocabulary of a source that declares tokens only, read by convention:
|
|
57257
|
+
* a readable label, and the shared kind when the token is one many
|
|
57258
|
+
* integrations use for a button. The token itself is kept verbatim.
|
|
57259
|
+
*/
|
|
57260
|
+
function conventionalEventVocabulary(eventTypes) {
|
|
57261
|
+
return plainEventVocabulary(eventTypes).map((entry) => {
|
|
57262
|
+
const kind = CONVENTIONAL_KINDS[normalisedToken(entry.id)];
|
|
57263
|
+
const label = readableToken(entry.id);
|
|
57264
|
+
return kind === void 0 ? {
|
|
57265
|
+
id: entry.id,
|
|
57266
|
+
label
|
|
57267
|
+
} : {
|
|
57268
|
+
id: entry.id,
|
|
57269
|
+
label,
|
|
57270
|
+
kind
|
|
57271
|
+
};
|
|
57272
|
+
});
|
|
57273
|
+
}
|
|
57274
|
+
/** The native tokens of a vocabulary, each once, in declaration order. */
|
|
57275
|
+
function eventTypesOfVocabulary(vocabulary) {
|
|
57276
|
+
return [...new Set(vocabulary.map((entry) => entry.id))];
|
|
57277
|
+
}
|
|
57278
|
+
/**
|
|
57279
|
+
* The vocabulary to show and match against. A status with none declared
|
|
57280
|
+
* answers with its plain tokens, so an older provider is still usable.
|
|
57281
|
+
*/
|
|
57282
|
+
function readEventVocabulary(status) {
|
|
57283
|
+
const declared = status.vocabulary;
|
|
57284
|
+
if (declared !== void 0 && declared.length > 0) return declared;
|
|
57285
|
+
return plainEventVocabulary(status.eventTypes);
|
|
57286
|
+
}
|
|
57287
|
+
/** The entry a fire belongs to: same token, same source (or both without one). */
|
|
57288
|
+
function findVocabularyEntry(vocabulary, eventType, sourceId) {
|
|
57289
|
+
return vocabulary.find((entry) => entry.id === eventType && entry.source?.id === sourceId);
|
|
57290
|
+
}
|
|
57291
|
+
//#endregion
|
|
55779
57292
|
//#region src/capabilities/event-emitter.cap.ts
|
|
55780
57293
|
/**
|
|
55781
57294
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
55782
57295
|
* device. Carries the device's EXACT declared event vocabulary verbatim
|
|
55783
57296
|
* (NO normalization). Two shapes:
|
|
55784
|
-
* - structured source (HA `event.*` entity) → `
|
|
55785
|
-
* declared
|
|
55786
|
-
* - generic/legacy source (HA bus events, e.g. zha_event) → `
|
|
57297
|
+
* - structured source (HA `event.*` entity) → `vocabulary` is the fixed
|
|
57298
|
+
* declared set (e.g. press_short, press_long, …).
|
|
57299
|
+
* - generic/legacy source (HA bus events, e.g. zha_event) → `vocabulary`
|
|
55787
57300
|
* is [] (open) and `lastEvent.data` carries the complex payload.
|
|
57301
|
+
* `vocabulary` (D1044) names each event for a person and types it for a
|
|
57302
|
+
* rule; `eventTypes` is its list of native tokens, kept for older readers.
|
|
57303
|
+
* A fire names the part of the device it came from in `sourceId` when the
|
|
57304
|
+
* vocabulary declares sources (a remote's buttons).
|
|
55788
57305
|
* `seq` is monotonic so two identical events still produce distinct slice writes.
|
|
55789
57306
|
*/
|
|
55790
57307
|
var EventFireSchema = z.object({
|
|
55791
57308
|
deviceId: z.number(),
|
|
55792
57309
|
eventType: z.string(),
|
|
57310
|
+
sourceId: z.string().optional(),
|
|
55793
57311
|
data: z.record(z.string(), z.unknown()).nullable(),
|
|
55794
57312
|
timestamp: z.number().meta(readingMeta("none")),
|
|
55795
57313
|
seq: z.number().meta(readingMeta("count"))
|
|
55796
57314
|
});
|
|
55797
57315
|
var EventEmitterStatusSchema = z.object({
|
|
55798
57316
|
eventTypes: z.array(z.string()),
|
|
57317
|
+
/**
|
|
57318
|
+
* Required of a provider by the type. A status written before the field
|
|
57319
|
+
* existed still parses, as an empty vocabulary: read it through
|
|
57320
|
+
* `readEventVocabulary`, which then answers with the plain tokens.
|
|
57321
|
+
*/
|
|
57322
|
+
vocabulary: z.array(EventVocabularyEntrySchema).default([]),
|
|
55799
57323
|
lastEvent: EventFireSchema.nullable(),
|
|
55800
57324
|
eventCountSinceStart: z.number().meta(readingMeta("count"))
|
|
55801
57325
|
});
|
|
@@ -56378,8 +57902,88 @@ list: method(z.void(), z.array(FailureContributionSchema).readonly()) },
|
|
|
56378
57902
|
* - `FanPreset` — preset selector
|
|
56379
57903
|
* - `FanDirection` — direction toggle (ceiling fans)
|
|
56380
57904
|
* - `FanOscillating` — oscillation toggle
|
|
57905
|
+
*
|
|
57906
|
+
* Per-axis oscillation (`oscillationAxes`, `setOscillationAxis`, D1034): an air
|
|
57907
|
+
* circulator sweeps horizontally and vertically, each axis with its own
|
|
57908
|
+
* switch, fixed angle, sweep bounds and limits. A provider may report them
|
|
57909
|
+
* natively; otherwise the OPERATOR links sibling devices to each field in
|
|
57910
|
+
* Customize (a `replace` over the fields listed in `overridable` — nothing is
|
|
57911
|
+
* linked or inferred by itself), and a write to a linked field is forwarded to
|
|
57912
|
+
* its source. `oscillating` stays the single summary flag: when axes exist it
|
|
57913
|
+
* means "any axis oscillates" (`anyAxisOscillating`).
|
|
56381
57914
|
*/
|
|
56382
57915
|
var FanDirectionSchema = z.enum(["forward", "reverse"]);
|
|
57916
|
+
var FAN_OSCILLATION_AXES = ["horizontal", "vertical"];
|
|
57917
|
+
var FanOscillationAxisNameSchema = z.enum(FAN_OSCILLATION_AXES);
|
|
57918
|
+
/** The fields of one axis a caller may set. */
|
|
57919
|
+
var FAN_OSCILLATION_AXIS_SETTABLE = [
|
|
57920
|
+
"oscillating",
|
|
57921
|
+
"angle",
|
|
57922
|
+
"sweepFrom",
|
|
57923
|
+
"sweepTo"
|
|
57924
|
+
];
|
|
57925
|
+
var FanOscillationAxisFieldSchema = z.enum(FAN_OSCILLATION_AXIS_SETTABLE);
|
|
57926
|
+
/** The limits of one axis, read from the source that serves its angle. */
|
|
57927
|
+
var FAN_OSCILLATION_AXIS_LIMITS = [
|
|
57928
|
+
"min",
|
|
57929
|
+
"max",
|
|
57930
|
+
"step"
|
|
57931
|
+
];
|
|
57932
|
+
/**
|
|
57933
|
+
* One oscillation axis. Every reading the device has not reported is `null`,
|
|
57934
|
+
* never `0` (D393): `0°` is a real position. Each leaf defaults to `null`, so
|
|
57935
|
+
* a slice that names only the leaves it knows (a Customize link of one field)
|
|
57936
|
+
* is still a whole axis.
|
|
57937
|
+
*/
|
|
57938
|
+
var FanOscillationAxisSchema = z.object({
|
|
57939
|
+
/** Whether the axis sweeps. */
|
|
57940
|
+
oscillating: z.boolean().nullable().default(null),
|
|
57941
|
+
/** The fixed position (degrees) the axis holds when it does not sweep. */
|
|
57942
|
+
angle: z.number().nullable().default(null),
|
|
57943
|
+
/** The sweep bounds (degrees): left → right, bottom → top. */
|
|
57944
|
+
sweepFrom: z.number().nullable().default(null),
|
|
57945
|
+
sweepTo: z.number().nullable().default(null),
|
|
57946
|
+
/** The angles the axis accepts. Null when the device states none. */
|
|
57947
|
+
min: z.number().nullable().default(null),
|
|
57948
|
+
max: z.number().nullable().default(null),
|
|
57949
|
+
step: z.number().nullable().default(null)
|
|
57950
|
+
});
|
|
57951
|
+
/** Both axes; an axis the device does not have is `null`. */
|
|
57952
|
+
var FanOscillationAxesSchema = z.object({
|
|
57953
|
+
horizontal: FanOscillationAxisSchema.nullable().default(null),
|
|
57954
|
+
vertical: FanOscillationAxisSchema.nullable().default(null)
|
|
57955
|
+
});
|
|
57956
|
+
var FAN_OSCILLATION_AXIS_REFUSALS = [
|
|
57957
|
+
"nothing-to-set",
|
|
57958
|
+
"axis-not-linked",
|
|
57959
|
+
"out-of-range",
|
|
57960
|
+
"source-gone",
|
|
57961
|
+
"source-unknown",
|
|
57962
|
+
"source-call-failed"
|
|
57963
|
+
];
|
|
57964
|
+
var FanOscillationAxisRefusalSchema = z.enum(FAN_OSCILLATION_AXIS_REFUSALS);
|
|
57965
|
+
var FanOscillationAxisResultSchema = z.discriminatedUnion("status", [z.object({ status: z.literal("applied") }), z.object({
|
|
57966
|
+
status: z.literal("refused"),
|
|
57967
|
+
reason: FanOscillationAxisRefusalSchema,
|
|
57968
|
+
/** The field at fault, when one is. */
|
|
57969
|
+
field: FanOscillationAxisFieldSchema.optional(),
|
|
57970
|
+
/** One line for the operator, naming the axis, the field and the source. */
|
|
57971
|
+
detail: z.string(),
|
|
57972
|
+
/** Fields that DID land before the refusal (writes run in order, stop at the first failure). */
|
|
57973
|
+
applied: z.array(FanOscillationAxisFieldSchema)
|
|
57974
|
+
})]);
|
|
57975
|
+
var SetOscillationAxisInputSchema = z.object({
|
|
57976
|
+
deviceId: z.number().int().nonnegative(),
|
|
57977
|
+
axis: FanOscillationAxisNameSchema,
|
|
57978
|
+
oscillating: z.boolean().optional(),
|
|
57979
|
+
angle: z.number().optional(),
|
|
57980
|
+
sweepFrom: z.number().optional(),
|
|
57981
|
+
sweepTo: z.number().optional()
|
|
57982
|
+
});
|
|
57983
|
+
/** The state path of one axis field: `oscillationAxes.<axis>.<field>`. */
|
|
57984
|
+
function fanAxisPath(axis, field) {
|
|
57985
|
+
return `oscillationAxes.${axis}.${field}`;
|
|
57986
|
+
}
|
|
56383
57987
|
var FanControlStatusSchema = z.object({
|
|
56384
57988
|
/** Active speed as 0..100 inclusive. Null when the device has no
|
|
56385
57989
|
* speed surface (single-speed fan). */
|
|
@@ -56398,9 +58002,116 @@ var FanControlStatusSchema = z.object({
|
|
|
56398
58002
|
/** Oscillation toggle. Null when the device has no oscillation
|
|
56399
58003
|
* surface. */
|
|
56400
58004
|
oscillating: z.boolean().nullable(),
|
|
58005
|
+
/**
|
|
58006
|
+
* Per-axis oscillation (air circulators). Absent when the device has no
|
|
58007
|
+
* per-axis surface and nothing is linked in Customize.
|
|
58008
|
+
*/
|
|
58009
|
+
oscillationAxes: FanOscillationAxesSchema.optional(),
|
|
56401
58010
|
/** Ms epoch when the slice was last updated. */
|
|
56402
58011
|
lastChangedAt: z.number()
|
|
56403
58012
|
});
|
|
58013
|
+
/**
|
|
58014
|
+
* The summary flag: with axes, "any axis oscillates"; without an axis that
|
|
58015
|
+
* reports, the device's own `oscillating`.
|
|
58016
|
+
*/
|
|
58017
|
+
function anyAxisOscillating(status) {
|
|
58018
|
+
const axes = status.oscillationAxes;
|
|
58019
|
+
if (axes === void 0) return status.oscillating;
|
|
58020
|
+
const known = FAN_OSCILLATION_AXES.flatMap((axis) => {
|
|
58021
|
+
const value = axes[axis]?.oscillating;
|
|
58022
|
+
return value === null || value === void 0 ? [] : [value];
|
|
58023
|
+
});
|
|
58024
|
+
if (known.length === 0) return status.oscillating;
|
|
58025
|
+
return known.some(Boolean);
|
|
58026
|
+
}
|
|
58027
|
+
var FAN_CUSTOMIZE_DEVICE_TYPES = [DeviceType.Fan];
|
|
58028
|
+
/** The Customize section the axis targets are listed under. */
|
|
58029
|
+
var AXES_SECTION = "oscillation-axes";
|
|
58030
|
+
function axisOscillatingTarget(axis) {
|
|
58031
|
+
return {
|
|
58032
|
+
id: `${axis}-oscillating`,
|
|
58033
|
+
cardinality: "scalar",
|
|
58034
|
+
vocabulary: {
|
|
58035
|
+
cap: "fan-control",
|
|
58036
|
+
stateField: "oscillating"
|
|
58037
|
+
},
|
|
58038
|
+
deviceTypes: FAN_CUSTOMIZE_DEVICE_TYPES,
|
|
58039
|
+
apply: "replace",
|
|
58040
|
+
section: AXES_SECTION,
|
|
58041
|
+
path: fanAxisPath(axis, "oscillating"),
|
|
58042
|
+
sources: [{
|
|
58043
|
+
kind: "switch",
|
|
58044
|
+
transforms: [{ kind: "identity" }]
|
|
58045
|
+
}],
|
|
58046
|
+
sourceReport: { status: "assignment-status" }
|
|
58047
|
+
};
|
|
58048
|
+
}
|
|
58049
|
+
/**
|
|
58050
|
+
* A numeric axis field. The `angle` link also carries the axis limits, read
|
|
58051
|
+
* from the SAME linked control's own range (`min`/`max`/`step`), so the limits
|
|
58052
|
+
* are the source's, never guessed.
|
|
58053
|
+
*/
|
|
58054
|
+
function axisNumericTarget(axis, field) {
|
|
58055
|
+
const base = {
|
|
58056
|
+
id: `${axis}-${field}`,
|
|
58057
|
+
cardinality: "scalar",
|
|
58058
|
+
vocabulary: { cap: "fan-control" },
|
|
58059
|
+
deviceTypes: FAN_CUSTOMIZE_DEVICE_TYPES,
|
|
58060
|
+
apply: "replace",
|
|
58061
|
+
section: AXES_SECTION,
|
|
58062
|
+
path: fanAxisPath(axis, field),
|
|
58063
|
+
sources: [{
|
|
58064
|
+
kind: "numeric",
|
|
58065
|
+
transforms: [{ kind: "identity" }]
|
|
58066
|
+
}],
|
|
58067
|
+
sourceReport: { status: "assignment-status" }
|
|
58068
|
+
};
|
|
58069
|
+
if (field !== "angle") return base;
|
|
58070
|
+
return {
|
|
58071
|
+
...base,
|
|
58072
|
+
companions: FAN_OSCILLATION_AXIS_LIMITS.map((limit) => ({
|
|
58073
|
+
kind: "source-field",
|
|
58074
|
+
path: fanAxisPath(axis, limit),
|
|
58075
|
+
field: limit
|
|
58076
|
+
}))
|
|
58077
|
+
};
|
|
58078
|
+
}
|
|
58079
|
+
var AXIS_TARGETS = FAN_OSCILLATION_AXES.flatMap((axis) => [
|
|
58080
|
+
axisOscillatingTarget(axis),
|
|
58081
|
+
axisNumericTarget(axis, "angle"),
|
|
58082
|
+
axisNumericTarget(axis, "sweepFrom"),
|
|
58083
|
+
axisNumericTarget(axis, "sweepTo")
|
|
58084
|
+
]);
|
|
58085
|
+
/** A select (an enum control) the operator links to the fan's `preset`. */
|
|
58086
|
+
var PRESET_TARGET = {
|
|
58087
|
+
id: "preset",
|
|
58088
|
+
cardinality: "scalar",
|
|
58089
|
+
vocabulary: { cap: "fan-control" },
|
|
58090
|
+
deviceTypes: FAN_CUSTOMIZE_DEVICE_TYPES,
|
|
58091
|
+
apply: "replace",
|
|
58092
|
+
path: "preset",
|
|
58093
|
+
sources: [{
|
|
58094
|
+
kind: "field",
|
|
58095
|
+
valueKinds: ["string"],
|
|
58096
|
+
transforms: [{ kind: "identity" }]
|
|
58097
|
+
}],
|
|
58098
|
+
sourceReport: { status: "assignment-status" }
|
|
58099
|
+
};
|
|
58100
|
+
var FAN_CONTROL_TARGETS = [...AXIS_TARGETS, PRESET_TARGET];
|
|
58101
|
+
/**
|
|
58102
|
+
* Customize (D1034): the fan already serves `fan-control` natively, so every
|
|
58103
|
+
* target is a `replace` over a field listed in `overridable` — the axis leaves
|
|
58104
|
+
* and `preset`, nothing else. Nothing is pre-linked: the operator picks each
|
|
58105
|
+
* source (D356).
|
|
58106
|
+
*/
|
|
58107
|
+
var fanControlCustomize = {
|
|
58108
|
+
version: 1,
|
|
58109
|
+
overridable: FAN_CONTROL_TARGETS.map((target) => ({
|
|
58110
|
+
path: target.path,
|
|
58111
|
+
by: target.id
|
|
58112
|
+
})),
|
|
58113
|
+
targets: FAN_CONTROL_TARGETS
|
|
58114
|
+
};
|
|
56404
58115
|
var fanControlCapability = {
|
|
56405
58116
|
name: "fan-control",
|
|
56406
58117
|
scope: "device",
|
|
@@ -56435,6 +58146,18 @@ var fanControlCapability = {
|
|
|
56435
58146
|
}), z.void(), {
|
|
56436
58147
|
kind: "mutation",
|
|
56437
58148
|
auth: "protected"
|
|
58149
|
+
}),
|
|
58150
|
+
/**
|
|
58151
|
+
* Sets one oscillation axis: its switch, fixed angle and/or sweep bounds.
|
|
58152
|
+
* Fields left out are untouched. A field linked in Customize is forwarded
|
|
58153
|
+
* to its linked source (D1034); otherwise the native provider serves it;
|
|
58154
|
+
* neither → `axis-not-linked`. Ranges are checked against the axis limits
|
|
58155
|
+
* before anything is written; writes run in order and stop at the first
|
|
58156
|
+
* failure, which the result names.
|
|
58157
|
+
*/
|
|
58158
|
+
setOscillationAxis: optionalMethod(SetOscillationAxisInputSchema, FanOscillationAxisResultSchema, {
|
|
58159
|
+
kind: "mutation",
|
|
58160
|
+
auth: "protected"
|
|
56438
58161
|
})
|
|
56439
58162
|
},
|
|
56440
58163
|
status: {
|
|
@@ -56446,6 +58169,7 @@ var fanControlCapability = {
|
|
|
56446
58169
|
* sliders read `speed` for live updates.
|
|
56447
58170
|
*/
|
|
56448
58171
|
runtimeState: FanControlStatusSchema,
|
|
58172
|
+
customize: fanControlCustomize,
|
|
56449
58173
|
/**
|
|
56450
58174
|
* Runtime-state durability: **session** — as `brightness`.
|
|
56451
58175
|
*
|
|
@@ -56468,12 +58192,15 @@ var fanControlCapability = {
|
|
|
56468
58192
|
//#endregion
|
|
56469
58193
|
//#region src/capabilities/fan-presets.cap.ts
|
|
56470
58194
|
/**
|
|
56471
|
-
* fan-presets — named settings the operator
|
|
56472
|
-
*
|
|
56473
|
-
*
|
|
56474
|
-
*
|
|
56475
|
-
*
|
|
56476
|
-
*
|
|
58195
|
+
* fan-presets — named settings the operator keeps for a fan ("Night": speed
|
|
58196
|
+
* 25 %, horizontal sweep off, angle 30°). A preset is a DESIRED fan-control
|
|
58197
|
+
* state (D1034): the fields it names, nothing else. Applying it calls the
|
|
58198
|
+
* fan's own `fan-control` methods — `setPreset`, `setPercentage`,
|
|
58199
|
+
* `setDirection`, `setOscillationAxis` — and an axis the operator linked in
|
|
58200
|
+
* Customize reaches its sibling device through that link, never through a
|
|
58201
|
+
* step the preset stores. Every field is reported (applied / failed / not-run
|
|
58202
|
+
* / refused), so a caller tells "applied" from "the speed was set but the
|
|
58203
|
+
* angle was refused" without parsing text.
|
|
56477
58204
|
*
|
|
56478
58205
|
* It is a Customize `config` extension of a fan: the presets are the
|
|
56479
58206
|
* operator's, stored per device (D865), and the editor is derived from the
|
|
@@ -56482,17 +58209,33 @@ var fanControlCapability = {
|
|
|
56482
58209
|
* (a scene, a switch, a button) offer it.
|
|
56483
58210
|
*/
|
|
56484
58211
|
var FAN_PRESETS_MAX = 12;
|
|
56485
|
-
|
|
58212
|
+
/** One axis as a preset wants it; an absent field is left as it is. */
|
|
58213
|
+
var FanPresetAxisSchema = z.object({
|
|
58214
|
+
oscillating: z.boolean().optional(),
|
|
58215
|
+
angle: z.number().optional(),
|
|
58216
|
+
sweepFrom: z.number().optional(),
|
|
58217
|
+
sweepTo: z.number().optional()
|
|
58218
|
+
});
|
|
58219
|
+
/** The fan-control state a preset sets; an absent field is left as it is. */
|
|
58220
|
+
var FanPresetStateSchema = z.object({
|
|
58221
|
+
speed: z.number().min(0).max(100).optional(),
|
|
58222
|
+
/** The fan's own preset mode (or the linked select's option). */
|
|
58223
|
+
preset: z.string().min(1).optional(),
|
|
58224
|
+
direction: FanDirectionSchema.optional(),
|
|
58225
|
+
oscillationAxes: z.object({
|
|
58226
|
+
horizontal: FanPresetAxisSchema.optional(),
|
|
58227
|
+
vertical: FanPresetAxisSchema.optional()
|
|
58228
|
+
}).optional()
|
|
58229
|
+
});
|
|
56486
58230
|
var FanPresetSchema = z.object({
|
|
56487
58231
|
/** Stable key; never reused after a delete within one device's list. */
|
|
56488
58232
|
id: z.string().min(1).max(64),
|
|
56489
58233
|
/** What the operator and a voice assistant call it. */
|
|
56490
58234
|
name: z.string().trim().min(1).max(40),
|
|
56491
|
-
|
|
58235
|
+
state: FanPresetStateSchema
|
|
56492
58236
|
});
|
|
56493
58237
|
var FAN_PRESETS_REFUSALS = [
|
|
56494
|
-
"
|
|
56495
|
-
"bad-target",
|
|
58238
|
+
"empty-state",
|
|
56496
58239
|
"duplicate-name",
|
|
56497
58240
|
"duplicate-id",
|
|
56498
58241
|
"too-many",
|
|
@@ -56505,66 +58248,50 @@ var FanPresetsSetResultSchema = z.discriminatedUnion("status", [z.object({
|
|
|
56505
58248
|
}), z.object({
|
|
56506
58249
|
status: z.literal("refused"),
|
|
56507
58250
|
reason: FanPresetsRefusalSchema,
|
|
56508
|
-
/** Names the preset
|
|
58251
|
+
/** Names the preset at fault. */
|
|
56509
58252
|
detail: z.string()
|
|
56510
58253
|
})]);
|
|
56511
|
-
var
|
|
56512
|
-
|
|
58254
|
+
var FanPresetFieldResultSchema = z.object({
|
|
58255
|
+
/** The state path: `speed`, `preset`, `direction`, `oscillationAxes.horizontal.angle`. */
|
|
58256
|
+
field: z.string(),
|
|
56513
58257
|
outcome: z.enum([
|
|
56514
58258
|
"applied",
|
|
56515
58259
|
"failed",
|
|
56516
58260
|
"not-run",
|
|
56517
58261
|
"refused"
|
|
56518
58262
|
]),
|
|
56519
|
-
deviceId: z.number().int().nonnegative().optional(),
|
|
56520
|
-
cap: z.string().optional(),
|
|
56521
|
-
method: z.string().optional(),
|
|
56522
58263
|
/** The cause, for every outcome but `applied`. */
|
|
56523
58264
|
message: z.string().optional()
|
|
56524
58265
|
});
|
|
56525
58266
|
var FanPresetApplyResultSchema = z.object({
|
|
56526
|
-
/** `applied`: every
|
|
58267
|
+
/** `applied`: every field landed. `partial`: some did, one did not. `refused`: nothing ran. */
|
|
56527
58268
|
status: z.enum([
|
|
56528
58269
|
"applied",
|
|
56529
58270
|
"partial",
|
|
56530
58271
|
"refused"
|
|
56531
58272
|
]),
|
|
56532
|
-
|
|
58273
|
+
fields: z.array(FanPresetFieldResultSchema)
|
|
56533
58274
|
});
|
|
56534
|
-
/** The fan
|
|
58275
|
+
/** The fan-control fields a capture may take. */
|
|
56535
58276
|
var FAN_CAPTURE_FIELDS = [
|
|
56536
58277
|
"speed",
|
|
56537
|
-
"oscillating",
|
|
56538
58278
|
"direction",
|
|
56539
|
-
"preset"
|
|
58279
|
+
"preset",
|
|
58280
|
+
"oscillationAxes"
|
|
56540
58281
|
];
|
|
56541
58282
|
var FanCaptureFieldSchema = z.enum(FAN_CAPTURE_FIELDS);
|
|
56542
58283
|
var FanCaptureOmissionSchema = z.object({
|
|
56543
|
-
/** A
|
|
58284
|
+
/** A state path (`speed`, `oscillationAxes.vertical.angle`). */
|
|
56544
58285
|
what: z.string(),
|
|
56545
|
-
/** Why no value was taken: unknown reading
|
|
58286
|
+
/** Why no value was taken: an unknown reading is never stored as 0 (D393). */
|
|
56546
58287
|
reason: z.string()
|
|
56547
58288
|
});
|
|
56548
|
-
/** Where a proposed step belongs in the review list. */
|
|
56549
|
-
var FAN_CAPTURE_GROUPS = [
|
|
56550
|
-
"fan",
|
|
56551
|
-
"oscillation",
|
|
56552
|
-
"angles"
|
|
56553
|
-
];
|
|
56554
|
-
var FanCaptureGroupSchema = z.enum(FAN_CAPTURE_GROUPS);
|
|
56555
|
-
var FanCaptureItemSchema = z.object({
|
|
56556
|
-
group: FanCaptureGroupSchema,
|
|
56557
|
-
/** What the step sets, in the operator's words (a device name, a fan field). */
|
|
56558
|
-
label: z.string()
|
|
56559
|
-
});
|
|
56560
58289
|
var FanPresetCaptureResultSchema = z.object({
|
|
56561
|
-
/** The
|
|
56562
|
-
|
|
56563
|
-
/** One entry per step, same order: its review group and label. */
|
|
56564
|
-
items: z.array(FanCaptureItemSchema),
|
|
58290
|
+
/** The fan's CURRENT fan-control state, as a preset; NOT saved. */
|
|
58291
|
+
state: FanPresetStateSchema,
|
|
56565
58292
|
omitted: z.array(FanCaptureOmissionSchema)
|
|
56566
58293
|
});
|
|
56567
|
-
var deviceInput$
|
|
58294
|
+
var deviceInput$1 = z.object({ deviceId: z.number().int().nonnegative() });
|
|
56568
58295
|
var fanPresetsCustomize = {
|
|
56569
58296
|
version: 1,
|
|
56570
58297
|
targets: [{
|
|
@@ -56582,28 +58309,22 @@ var fanPresetsCapability = {
|
|
|
56582
58309
|
scope: "system",
|
|
56583
58310
|
mode: "singleton",
|
|
56584
58311
|
methods: {
|
|
56585
|
-
getPresets: method(deviceInput$
|
|
56586
|
-
setPresets: method(deviceInput$
|
|
58312
|
+
getPresets: method(deviceInput$1, z.array(FanPresetSchema), { auth: "protected" }),
|
|
58313
|
+
setPresets: method(deviceInput$1.extend({ presets: z.array(FanPresetSchema).max(12) }), FanPresetsSetResultSchema, {
|
|
56587
58314
|
kind: "mutation",
|
|
56588
58315
|
auth: "admin"
|
|
56589
58316
|
}),
|
|
56590
|
-
applyPreset: method(deviceInput$
|
|
58317
|
+
applyPreset: method(deviceInput$1.extend({ presetId: z.string().min(1) }), FanPresetApplyResultSchema, {
|
|
56591
58318
|
kind: "mutation",
|
|
56592
58319
|
auth: "protected"
|
|
56593
58320
|
}),
|
|
56594
58321
|
/**
|
|
56595
|
-
*
|
|
56596
|
-
* `fields` (all when absent)
|
|
56597
|
-
*
|
|
56598
|
-
*
|
|
56599
|
-
* oscillation, fixed angles, fan fields, speed last. A reading that is
|
|
56600
|
-
* unknown is left out and named in `omitted`, never captured as 0. Nothing
|
|
56601
|
-
* is saved.
|
|
58322
|
+
* The fan's CURRENT fan-control state as a preset: the fields named in
|
|
58323
|
+
* `fields` (all when absent), read from its merged slice — a field linked
|
|
58324
|
+
* in Customize reads its link. A reading that is unknown is left out and
|
|
58325
|
+
* named in `omitted`, never captured as 0. Nothing is saved.
|
|
56602
58326
|
*/
|
|
56603
|
-
capturePreset: method(deviceInput$
|
|
56604
|
-
fields: z.array(FanCaptureFieldSchema).optional(),
|
|
56605
|
-
steps: z.array(ActionStepSchema).max(20).default([])
|
|
56606
|
-
}), FanPresetCaptureResultSchema, { auth: "protected" })
|
|
58327
|
+
capturePreset: method(deviceInput$1.extend({ fields: z.array(FanCaptureFieldSchema).optional() }), FanPresetCaptureResultSchema, { auth: "protected" })
|
|
56607
58328
|
},
|
|
56608
58329
|
customize: fanPresetsCustomize
|
|
56609
58330
|
};
|
|
@@ -56841,8 +58562,7 @@ var groupActiveCapability = {
|
|
|
56841
58562
|
DeviceType.Valve,
|
|
56842
58563
|
DeviceType.Lock,
|
|
56843
58564
|
DeviceType.MediaPlayer,
|
|
56844
|
-
DeviceType.Climate
|
|
56845
|
-
DeviceType.Thermostat
|
|
58565
|
+
DeviceType.Climate
|
|
56846
58566
|
],
|
|
56847
58567
|
methods: {},
|
|
56848
58568
|
status: {
|
|
@@ -56893,7 +58613,6 @@ var groupCommandsCapability = {
|
|
|
56893
58613
|
DeviceType.Valve,
|
|
56894
58614
|
DeviceType.Lock,
|
|
56895
58615
|
DeviceType.MediaPlayer,
|
|
56896
|
-
DeviceType.Thermostat,
|
|
56897
58616
|
DeviceType.Climate
|
|
56898
58617
|
],
|
|
56899
58618
|
methods: {},
|
|
@@ -56951,7 +58670,6 @@ var groupStatusCapability = {
|
|
|
56951
58670
|
DeviceType.Valve,
|
|
56952
58671
|
DeviceType.Lock,
|
|
56953
58672
|
DeviceType.MediaPlayer,
|
|
56954
|
-
DeviceType.Thermostat,
|
|
56955
58673
|
DeviceType.Climate
|
|
56956
58674
|
],
|
|
56957
58675
|
methods: {},
|
|
@@ -57327,7 +59045,7 @@ var heatingValveCapability = {
|
|
|
57327
59045
|
scope: "device",
|
|
57328
59046
|
deviceNative: true,
|
|
57329
59047
|
mode: "singleton",
|
|
57330
|
-
deviceTypes: [DeviceType.
|
|
59048
|
+
deviceTypes: [DeviceType.Climate],
|
|
57331
59049
|
methods: {},
|
|
57332
59050
|
status: {
|
|
57333
59051
|
schema: HeatingValveStatusSchema,
|
|
@@ -57359,30 +59077,42 @@ var heatingValveCapability = {
|
|
|
57359
59077
|
* retried in a loop - D49); a future one is re-armed.
|
|
57360
59078
|
*
|
|
57361
59079
|
* What a device may be run for, and for how long at most, is per device type
|
|
57362
|
-
* ({@link
|
|
59080
|
+
* and role ({@link timedRunLimitOf}): the maximum is a safety bound, not a preference,
|
|
57363
59081
|
* so a request above it is REFUSED with a typed reason, never clamped.
|
|
57364
59082
|
*/
|
|
57365
59083
|
var TimedRunUnitSchema = z.enum(["s", "min"]);
|
|
57366
59084
|
/** What a timed run switches: the `switch` cap's `setState` or the fountain's `setPump`. */
|
|
57367
59085
|
var TimedRunActuatorSchema = z.enum(["switch", "pet-fountain"]);
|
|
57368
|
-
/**
|
|
57369
|
-
var
|
|
57370
|
-
|
|
57371
|
-
|
|
57372
|
-
|
|
57373
|
-
|
|
57374
|
-
quickRunDefault: 30
|
|
57375
|
-
},
|
|
57376
|
-
[DeviceType.PetFountain]: {
|
|
57377
|
-
actuator: "pet-fountain",
|
|
57378
|
-
maxSeconds: 300,
|
|
57379
|
-
unit: "s",
|
|
57380
|
-
quickRunDefault: 60
|
|
57381
|
-
}
|
|
59086
|
+
/** A plug-in heater (switch + `switch-heater`): up to 3 h, in minutes. */
|
|
59087
|
+
var TIMED_RUN_HEATER_LIMIT = {
|
|
59088
|
+
actuator: "switch",
|
|
59089
|
+
maxSeconds: 10800,
|
|
59090
|
+
unit: "min",
|
|
59091
|
+
quickRunDefault: 30
|
|
57382
59092
|
};
|
|
57383
|
-
|
|
57384
|
-
|
|
57385
|
-
|
|
59093
|
+
/** A pet fountain's pump: up to 5 min, in seconds. */
|
|
59094
|
+
var TIMED_RUN_PET_FOUNTAIN_LIMIT = {
|
|
59095
|
+
actuator: "pet-fountain",
|
|
59096
|
+
maxSeconds: 300,
|
|
59097
|
+
unit: "s",
|
|
59098
|
+
quickRunDefault: 60
|
|
59099
|
+
};
|
|
59100
|
+
/**
|
|
59101
|
+
* The device types `timed-run` may be offered on. A `switch` is narrowed by
|
|
59102
|
+
* role ({@link TIMED_RUN_DEVICE_ROLES}): only a plug-in heater runs on a timer.
|
|
59103
|
+
*/
|
|
59104
|
+
var TIMED_RUN_DEVICE_TYPES = [DeviceType.Switch, DeviceType.PetFountain];
|
|
59105
|
+
/** The roles that make a device of these types timed-run-able (D1033). */
|
|
59106
|
+
var TIMED_RUN_DEVICE_ROLES = { [DeviceType.Switch]: [DeviceRole.SwitchHeater] };
|
|
59107
|
+
/**
|
|
59108
|
+
* The longest run of a device, by its type AND role (D1033): a `switch` is a
|
|
59109
|
+
* heater only with role `switch-heater`, a pet fountain always is what it is.
|
|
59110
|
+
* `null` - the device is not offered `timed-run`.
|
|
59111
|
+
*/
|
|
59112
|
+
function timedRunLimitOf(deviceType, role) {
|
|
59113
|
+
if (deviceType === DeviceType.PetFountain) return TIMED_RUN_PET_FOUNTAIN_LIMIT;
|
|
59114
|
+
if (deviceType === DeviceType.Switch && role === DeviceRole.SwitchHeater) return TIMED_RUN_HEATER_LIMIT;
|
|
59115
|
+
return null;
|
|
57386
59116
|
}
|
|
57387
59117
|
var MS_PER_SECOND = 1e3;
|
|
57388
59118
|
var MS_PER_MINUTE = 6e4;
|
|
@@ -57464,6 +59194,7 @@ var timedRunCapability = {
|
|
|
57464
59194
|
kind: "wrapper",
|
|
57465
59195
|
defaultActive: true,
|
|
57466
59196
|
deviceTypes: TIMED_RUN_DEVICE_TYPES,
|
|
59197
|
+
deviceRoles: TIMED_RUN_DEVICE_ROLES,
|
|
57467
59198
|
deviceConfig: { ui: {
|
|
57468
59199
|
kind: "derived-form",
|
|
57469
59200
|
builderId: "timed-run",
|
|
@@ -57655,8 +59386,7 @@ var HERO_SCENE_BY_TYPE = {
|
|
|
57655
59386
|
[DeviceType.Siren]: "siren",
|
|
57656
59387
|
[DeviceType.Switch]: "plug",
|
|
57657
59388
|
[DeviceType.Sensor]: "sensor-sparkline",
|
|
57658
|
-
[DeviceType.
|
|
57659
|
-
[DeviceType.Climate]: "ac",
|
|
59389
|
+
[DeviceType.Climate]: "thermostat",
|
|
57660
59390
|
[DeviceType.Button]: "button",
|
|
57661
59391
|
[DeviceType.EventEmitter]: "event-stream",
|
|
57662
59392
|
[DeviceType.Update]: "update",
|
|
@@ -57684,7 +59414,6 @@ var HERO_SCENE_BY_TYPE = {
|
|
|
57684
59414
|
[DeviceType.PetFountain]: "pet-fountain",
|
|
57685
59415
|
[DeviceType.Dishwasher]: "dishwasher",
|
|
57686
59416
|
[DeviceType.Washer]: "washer",
|
|
57687
|
-
[DeviceType.Heater]: "heater",
|
|
57688
59417
|
[DeviceType.Dryer]: "dryer",
|
|
57689
59418
|
[DeviceType.Gateway]: "gateway"
|
|
57690
59419
|
};
|
|
@@ -57709,6 +59438,14 @@ var HERO_SCENE_BY_ROLE = {
|
|
|
57709
59438
|
[DeviceRole.CoverWindow]: "inherit",
|
|
57710
59439
|
[DeviceRole.BinaryHelper]: "inherit",
|
|
57711
59440
|
[DeviceRole.Outlet]: "plug",
|
|
59441
|
+
[DeviceRole.SwitchHeater]: "heater",
|
|
59442
|
+
[DeviceRole.SwitchFan]: "fan",
|
|
59443
|
+
[DeviceRole.ClimateAc]: "ac",
|
|
59444
|
+
[DeviceRole.ClimateThermostat]: "inherit",
|
|
59445
|
+
[DeviceRole.ClimateFloor]: "inherit",
|
|
59446
|
+
[DeviceRole.ClimateRadiator]: "inherit",
|
|
59447
|
+
[DeviceRole.ClimateHeater]: "inherit",
|
|
59448
|
+
[DeviceRole.ClimateHeatPumpCircuit]: "inherit",
|
|
57712
59449
|
[DeviceRole.MotionSensor]: "presence",
|
|
57713
59450
|
[DeviceRole.ContactSensor]: "contact",
|
|
57714
59451
|
[DeviceRole.LeakSensor]: "inherit",
|
|
@@ -58272,10 +60009,7 @@ function trailingOf(facts) {
|
|
|
58272
60009
|
* A type whose primary is a named control, not its power: a climate row is the mode
|
|
58273
60010
|
* (which carries "off") and the setpoint, with no power toggle.
|
|
58274
60011
|
*/
|
|
58275
|
-
var ROW_PRIMARY_BY_TYPE = {
|
|
58276
|
-
[DeviceType.Climate]: "climate.mode",
|
|
58277
|
-
[DeviceType.Thermostat]: "climate.mode"
|
|
58278
|
-
};
|
|
60012
|
+
var ROW_PRIMARY_BY_TYPE = { [DeviceType.Climate]: "climate.mode" };
|
|
58279
60013
|
function primaryOf(model) {
|
|
58280
60014
|
const named = ROW_PRIMARY_BY_TYPE[model.type];
|
|
58281
60015
|
if (named !== void 0) {
|
|
@@ -58308,7 +60042,6 @@ function primaryOf(model) {
|
|
|
58308
60042
|
*/
|
|
58309
60043
|
var ROW_EXTRAS_BY_TYPE = {
|
|
58310
60044
|
[DeviceType.Climate]: ["climate.target"],
|
|
58311
|
-
[DeviceType.Thermostat]: ["climate.target"],
|
|
58312
60045
|
[DeviceType.Vacuum]: ["vacuum.base"],
|
|
58313
60046
|
[DeviceType.LawnMower]: ["mower.dock"],
|
|
58314
60047
|
[DeviceType.MediaPlayer]: ["volume.level", REMOTE_OPEN_ACTION_ID]
|
|
@@ -58431,7 +60164,11 @@ var heroLayoutCapability = {
|
|
|
58431
60164
|
auth: "protected",
|
|
58432
60165
|
role: "viewer"
|
|
58433
60166
|
}),
|
|
58434
|
-
|
|
60167
|
+
/** The fixed rows of a kind: the type, refined by the role (D1033 — a heater is a switch). */
|
|
60168
|
+
getLayout: method(z.object({
|
|
60169
|
+
deviceType: z.string(),
|
|
60170
|
+
role: z.string().nullable().optional()
|
|
60171
|
+
}), HeroLayoutRowsSchema, {
|
|
58435
60172
|
auth: "protected",
|
|
58436
60173
|
role: "viewer"
|
|
58437
60174
|
})
|
|
@@ -58482,6 +60219,11 @@ var humidifierCapability = {
|
|
|
58482
60219
|
deviceNative: true,
|
|
58483
60220
|
mode: "singleton",
|
|
58484
60221
|
deviceTypes: [DeviceType.Humidifier],
|
|
60222
|
+
power: {
|
|
60223
|
+
kind: "field",
|
|
60224
|
+
field: "on",
|
|
60225
|
+
set: "setOn"
|
|
60226
|
+
},
|
|
58485
60227
|
methods: {
|
|
58486
60228
|
setOn: method(z.object({
|
|
58487
60229
|
deviceId: z.number().int().nonnegative(),
|
|
@@ -58557,7 +60299,7 @@ var humiditySensorCapability = {
|
|
|
58557
60299
|
scope: "device",
|
|
58558
60300
|
deviceNative: true,
|
|
58559
60301
|
mode: "singleton",
|
|
58560
|
-
deviceTypes: [DeviceType.Sensor, DeviceType.
|
|
60302
|
+
deviceTypes: [DeviceType.Sensor, DeviceType.Climate],
|
|
58561
60303
|
methods: {},
|
|
58562
60304
|
status: {
|
|
58563
60305
|
schema: HumiditySensorStatusSchema,
|
|
@@ -76451,7 +78193,18 @@ var OauthIntegrationDescriptorSchema = z.object({
|
|
|
76451
78193
|
* The value is baked into the authorization code at `/authorize` and travels
|
|
76452
78194
|
* on the tokens, so editing this field changes FUTURE links only.
|
|
76453
78195
|
*/
|
|
76454
|
-
refreshTokenTtlSec: z.union([z.number().int().positive(), z.literal("never")]).optional()
|
|
78196
|
+
refreshTokenTtlSec: z.union([z.number().int().positive(), z.literal("never")]).optional(),
|
|
78197
|
+
/**
|
|
78198
|
+
* The integration instances an account can be linked to (planning#415),
|
|
78199
|
+
* beside the default one. `/api/oauth2/authorize?instance=<id>` is accepted
|
|
78200
|
+
* only for an id listed here; with no `instance=` the link is made to the
|
|
78201
|
+
* default instance, which is never listed and always accepted — it is the
|
|
78202
|
+
* address third parties already hold. Omit for a single-instance integration.
|
|
78203
|
+
*/
|
|
78204
|
+
instances: z.array(z.object({
|
|
78205
|
+
id: z.string(),
|
|
78206
|
+
displayName: z.string()
|
|
78207
|
+
})).optional()
|
|
76455
78208
|
});
|
|
76456
78209
|
var oauthIntegrationCapability = {
|
|
76457
78210
|
name: "oauth-integration",
|
|
@@ -77127,6 +78880,11 @@ var petFountainCapability = {
|
|
|
77127
78880
|
deviceNative: true,
|
|
77128
78881
|
mode: "singleton",
|
|
77129
78882
|
deviceTypes: [DeviceType.PetFountain],
|
|
78883
|
+
power: {
|
|
78884
|
+
kind: "field",
|
|
78885
|
+
field: "pumpRunning",
|
|
78886
|
+
set: "setPump"
|
|
78887
|
+
},
|
|
77130
78888
|
methods: {
|
|
77131
78889
|
/** Start or stop the pump. */
|
|
77132
78890
|
setPump: method(z.object({
|
|
@@ -80041,7 +81799,6 @@ var POWER_METER_DEVICE_TYPES = [
|
|
|
80041
81799
|
DeviceType.Light,
|
|
80042
81800
|
DeviceType.Fan,
|
|
80043
81801
|
DeviceType.Climate,
|
|
80044
|
-
DeviceType.Thermostat,
|
|
80045
81802
|
DeviceType.Humidifier,
|
|
80046
81803
|
DeviceType.WaterHeater,
|
|
80047
81804
|
DeviceType.MediaPlayer,
|
|
@@ -80050,8 +81807,7 @@ var POWER_METER_DEVICE_TYPES = [
|
|
|
80050
81807
|
DeviceType.Dishwasher,
|
|
80051
81808
|
DeviceType.Vacuum,
|
|
80052
81809
|
DeviceType.LawnMower,
|
|
80053
|
-
DeviceType.PetFeeder
|
|
80054
|
-
DeviceType.Heater
|
|
81810
|
+
DeviceType.PetFeeder
|
|
80055
81811
|
];
|
|
80056
81812
|
/** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
|
|
80057
81813
|
var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
|
|
@@ -80165,146 +81921,6 @@ var powerMeterCapability = {
|
|
|
80165
81921
|
customize: powerMeterCustomize
|
|
80166
81922
|
};
|
|
80167
81923
|
//#endregion
|
|
80168
|
-
//#region src/capabilities/power-source.cap.ts
|
|
80169
|
-
/**
|
|
80170
|
-
* power-source — a device that hangs is powered by a smart switch, and the
|
|
80171
|
-
* operator picks that switch in the device's Customize. The device then offers
|
|
80172
|
-
* power on, power off and a forced restart (switch off, wait, switch on).
|
|
80173
|
-
*
|
|
80174
|
-
* Manual by default: nothing here restarts a device by itself. The one
|
|
80175
|
-
* exception (D997) is a device's OWN provider calling `forceRestart` for its own
|
|
80176
|
-
* device as a bounded self-recovery (unreachable for a long stretch, linked,
|
|
80177
|
-
* one attempt per cooldown, never with a live session); Velux is the first. It
|
|
80178
|
-
* is not the native `reboot` cap and never replaces or wraps it: `reboot` talks
|
|
80179
|
-
* to the device, this cuts the power of the device that no longer answers.
|
|
80180
|
-
*
|
|
80181
|
-
* The link is a Customize extension (`add`): one scalar target whose source is
|
|
80182
|
-
* the switch. The stored composition is the ONE copy of the link and of
|
|
80183
|
-
* `offSeconds` (`powerSourceLinkOfComposition`, D676); the composed slice only
|
|
80184
|
-
* mirrors the switch state for the UI. The methods are served by the
|
|
80185
|
-
* `core-blocks` system provider, so they are `systemMethod`s and carry a
|
|
80186
|
-
* top-level `deviceId`.
|
|
80187
|
-
*
|
|
80188
|
-
* Every action answers a typed result and never throws for an expected
|
|
80189
|
-
* refusal, so a caller tells "the switch is offline" from "a restart is
|
|
80190
|
-
* already running" without parsing text.
|
|
80191
|
-
*/
|
|
80192
|
-
/** Bounds of the off time of a forced restart, in seconds. */
|
|
80193
|
-
var POWER_SOURCE_OFF_SECONDS_MIN = 3;
|
|
80194
|
-
var POWER_SOURCE_OFF_SECONDS_MAX = 120;
|
|
80195
|
-
var POWER_SOURCE_OFF_SECONDS_DEFAULT = 10;
|
|
80196
|
-
var PowerSourceRefusalReasonSchema = z.enum([
|
|
80197
|
-
"no-power-source",
|
|
80198
|
-
"switch-missing",
|
|
80199
|
-
"switch-offline",
|
|
80200
|
-
"switch-unknown",
|
|
80201
|
-
"restart-in-progress",
|
|
80202
|
-
"switch-call-failed"
|
|
80203
|
-
]);
|
|
80204
|
-
var PowerSourceActionResultSchema = z.discriminatedUnion("accepted", [z.object({ accepted: z.literal(true) }), z.object({
|
|
80205
|
-
accepted: z.literal(false),
|
|
80206
|
-
reason: PowerSourceRefusalReasonSchema,
|
|
80207
|
-
/** One line for the operator, naming the switch. */
|
|
80208
|
-
message: z.string()
|
|
80209
|
-
})]);
|
|
80210
|
-
var PowerSourceInfoSchema = z.object({
|
|
80211
|
-
/** False when the device has no power source linked; the rest is then empty. */
|
|
80212
|
-
linked: z.boolean(),
|
|
80213
|
-
switchDeviceId: z.number().nullable(),
|
|
80214
|
-
switchName: z.string().nullable(),
|
|
80215
|
-
/** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
|
|
80216
|
-
switchOn: z.boolean().nullable(),
|
|
80217
|
-
switchOnline: z.boolean().nullable(),
|
|
80218
|
-
restartInProgress: z.boolean(),
|
|
80219
|
-
offSeconds: z.number().int()
|
|
80220
|
-
});
|
|
80221
|
-
/** The composed slice: the switch state the link mirrors, plus the stored off time. */
|
|
80222
|
-
var PowerSourceStateSchema = z.object({
|
|
80223
|
-
/** Null while the switch has not reported: unknown is never `false` (D393). */
|
|
80224
|
-
switchOn: z.boolean().nullable(),
|
|
80225
|
-
offSeconds: z.number().int(),
|
|
80226
|
-
lastFetchedAt: z.number()
|
|
80227
|
-
});
|
|
80228
|
-
var POWER_SOURCE_DEVICE_TYPES = [
|
|
80229
|
-
DeviceType.Gateway,
|
|
80230
|
-
DeviceType.Camera,
|
|
80231
|
-
DeviceType.Sensor,
|
|
80232
|
-
DeviceType.MediaPlayer,
|
|
80233
|
-
DeviceType.Vacuum,
|
|
80234
|
-
DeviceType.Generic,
|
|
80235
|
-
DeviceType.Washer,
|
|
80236
|
-
DeviceType.Dryer,
|
|
80237
|
-
DeviceType.Dishwasher,
|
|
80238
|
-
DeviceType.PetFountain,
|
|
80239
|
-
DeviceType.Fan,
|
|
80240
|
-
DeviceType.Humidifier,
|
|
80241
|
-
DeviceType.Climate,
|
|
80242
|
-
DeviceType.WaterHeater
|
|
80243
|
-
];
|
|
80244
|
-
var powerSourceCustomize = {
|
|
80245
|
-
version: 1,
|
|
80246
|
-
targets: [{
|
|
80247
|
-
id: "switch",
|
|
80248
|
-
cardinality: "scalar",
|
|
80249
|
-
vocabulary: {
|
|
80250
|
-
cap: "power-source",
|
|
80251
|
-
stateField: "switchOn"
|
|
80252
|
-
},
|
|
80253
|
-
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
80254
|
-
apply: "add",
|
|
80255
|
-
path: "switchOn",
|
|
80256
|
-
sources: [{
|
|
80257
|
-
kind: "switch",
|
|
80258
|
-
transforms: [{ kind: "identity" }]
|
|
80259
|
-
}],
|
|
80260
|
-
companions: [{
|
|
80261
|
-
kind: "constant",
|
|
80262
|
-
path: "offSeconds",
|
|
80263
|
-
value: 10,
|
|
80264
|
-
when: "add",
|
|
80265
|
-
formerValues: [0]
|
|
80266
|
-
}, {
|
|
80267
|
-
kind: "clock",
|
|
80268
|
-
path: "lastFetchedAt",
|
|
80269
|
-
when: "always"
|
|
80270
|
-
}],
|
|
80271
|
-
sourceReport: { status: "assignment-status" }
|
|
80272
|
-
}]
|
|
80273
|
-
};
|
|
80274
|
-
var deviceInput$1 = z.object({ deviceId: z.number().int().nonnegative() });
|
|
80275
|
-
var powerSourceCapability = {
|
|
80276
|
-
name: "power-source",
|
|
80277
|
-
scope: "device",
|
|
80278
|
-
mode: "singleton",
|
|
80279
|
-
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
80280
|
-
methods: {
|
|
80281
|
-
getStatus: systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "protected" }),
|
|
80282
|
-
powerOn: systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
80283
|
-
kind: "mutation",
|
|
80284
|
-
auth: "protected"
|
|
80285
|
-
}),
|
|
80286
|
-
powerOff: systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
80287
|
-
kind: "mutation",
|
|
80288
|
-
auth: "protected"
|
|
80289
|
-
}),
|
|
80290
|
-
forceRestart: systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
80291
|
-
kind: "mutation",
|
|
80292
|
-
auth: "protected"
|
|
80293
|
-
})
|
|
80294
|
-
},
|
|
80295
|
-
runtimeState: PowerSourceStateSchema,
|
|
80296
|
-
customize: powerSourceCustomize,
|
|
80297
|
-
/**
|
|
80298
|
-
* Runtime-state durability: **session** — mirrored from the linked switch on
|
|
80299
|
-
* its next report; a restored value would outlive the reading it names.
|
|
80300
|
-
*
|
|
80301
|
-
* See `RuntimeStateDurability`. Enforced by
|
|
80302
|
-
* `scripts/check-runtime-state-durability.ts`.
|
|
80303
|
-
*/
|
|
80304
|
-
durability: "session",
|
|
80305
|
-
history: "none"
|
|
80306
|
-
};
|
|
80307
|
-
//#endregion
|
|
80308
81924
|
//#region src/capabilities/presence.cap.ts
|
|
80309
81925
|
/**
|
|
80310
81926
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -85272,9 +86888,7 @@ var RUNNING_CUSTOMIZE_DEVICE_TYPES = [
|
|
|
85272
86888
|
DeviceType.Humidifier,
|
|
85273
86889
|
DeviceType.Fan,
|
|
85274
86890
|
DeviceType.Climate,
|
|
85275
|
-
DeviceType.
|
|
85276
|
-
DeviceType.PetFeeder,
|
|
85277
|
-
DeviceType.Heater
|
|
86891
|
+
DeviceType.PetFeeder
|
|
85278
86892
|
];
|
|
85279
86893
|
var runningStateCapability = {
|
|
85280
86894
|
name: "running-state",
|
|
@@ -86845,6 +88459,13 @@ var SsoBridgeClaimsSchema = z.object({
|
|
|
86845
88459
|
/** OAuth authorization-code binding — set only on `oauth-code` tokens. */
|
|
86846
88460
|
redirectUri: z.string().optional(),
|
|
86847
88461
|
integrationId: z.string().optional(),
|
|
88462
|
+
/**
|
|
88463
|
+
* The integration INSTANCE an OAuth link was made for (planning#415). Set on
|
|
88464
|
+
* `oauth-code`, `oauth-access` and `oauth-refresh` tokens of a link made
|
|
88465
|
+
* with `instance=`; absent on a link to the default instance. A cloud relay
|
|
88466
|
+
* reads it off the access token to route; the hub answers from the session.
|
|
88467
|
+
*/
|
|
88468
|
+
instanceId: z.string().optional(),
|
|
86848
88469
|
/** JWT ID — unique per issued code; consumed-set enforces single-use. */
|
|
86849
88470
|
jti: z.string().optional(),
|
|
86850
88471
|
/** PKCE S256 challenge — set only on `oauth-code` tokens issued to a public
|
|
@@ -87962,8 +89583,7 @@ var switchCapability = {
|
|
|
87962
89583
|
DeviceType.Switch,
|
|
87963
89584
|
DeviceType.Siren,
|
|
87964
89585
|
DeviceType.Light,
|
|
87965
|
-
DeviceType.Fan
|
|
87966
|
-
DeviceType.Heater
|
|
89586
|
+
DeviceType.Fan
|
|
87967
89587
|
],
|
|
87968
89588
|
methods: { setState: method(z.object({
|
|
87969
89589
|
deviceId: z.number(),
|
|
@@ -88827,7 +90447,7 @@ var temperatureSensorCapability = {
|
|
|
88827
90447
|
scope: "device",
|
|
88828
90448
|
deviceNative: true,
|
|
88829
90449
|
mode: "singleton",
|
|
88830
|
-
deviceTypes: [DeviceType.Sensor, DeviceType.
|
|
90450
|
+
deviceTypes: [DeviceType.Sensor, DeviceType.Climate],
|
|
88831
90451
|
methods: {},
|
|
88832
90452
|
status: {
|
|
88833
90453
|
schema: TemperatureSensorStatusSchema,
|
|
@@ -89907,6 +91527,8 @@ var OauthSessionSummarySchema = z.object({
|
|
|
89907
91527
|
userId: z.string(),
|
|
89908
91528
|
username: z.string(),
|
|
89909
91529
|
integrationId: z.string(),
|
|
91530
|
+
/** The instance the link was made for; `null` = the default instance. */
|
|
91531
|
+
instanceId: z.string().nullable().optional(),
|
|
89910
91532
|
scopes: z.array(TokenScopeSchema),
|
|
89911
91533
|
createdAt: z.number(),
|
|
89912
91534
|
lastUsedAt: z.number(),
|
|
@@ -90035,6 +91657,9 @@ var userManagementCapability = {
|
|
|
90035
91657
|
}),
|
|
90036
91658
|
oauthIssueCode: method(z.object({
|
|
90037
91659
|
integrationId: z.string(),
|
|
91660
|
+
/** The integration instance the link is for. Omit for the default
|
|
91661
|
+
* instance — never pass the addon id to mean it. */
|
|
91662
|
+
instanceId: z.string().optional(),
|
|
90038
91663
|
userId: z.string(),
|
|
90039
91664
|
username: z.string(),
|
|
90040
91665
|
scopes: z.array(TokenScopeSchema),
|
|
@@ -90076,7 +91701,13 @@ var userManagementCapability = {
|
|
|
90076
91701
|
oauthVerifyAccessToken: method(z.object({ token: z.string() }), z.object({
|
|
90077
91702
|
userId: z.string(),
|
|
90078
91703
|
username: z.string(),
|
|
90079
|
-
scopes: z.array(TokenScopeSchema)
|
|
91704
|
+
scopes: z.array(TokenScopeSchema),
|
|
91705
|
+
/** The instance the link was made for, read from the SESSION.
|
|
91706
|
+
* Absent = the default instance. `oauthLinkServesInstance` is the
|
|
91707
|
+
* helper a per-instance route calls to compare it with the instance
|
|
91708
|
+
* of its path; no route declares `perInstance` yet (the Alexa
|
|
91709
|
+
* per-instance route, T3, is the first consumer). */
|
|
91710
|
+
instanceId: z.string().optional()
|
|
90080
91711
|
}).nullable(), { access: "view" }),
|
|
90081
91712
|
listExternalIdentities: method(z.object({ userId: z.string() }), z.array(ExternalIdentitySchema), { auth: "admin" }),
|
|
90082
91713
|
/** The user an identity is linked to, or `null`. */
|
|
@@ -90859,6 +92490,13 @@ var waterHeaterCapability = {
|
|
|
90859
92490
|
deviceNative: true,
|
|
90860
92491
|
mode: "singleton",
|
|
90861
92492
|
deviceTypes: [DeviceType.WaterHeater],
|
|
92493
|
+
power: {
|
|
92494
|
+
kind: "mode",
|
|
92495
|
+
field: "operationMode",
|
|
92496
|
+
offValue: "off",
|
|
92497
|
+
set: "setOperationMode",
|
|
92498
|
+
lastField: "lastActiveMode"
|
|
92499
|
+
},
|
|
90862
92500
|
methods: {
|
|
90863
92501
|
setTargetTemp: method(z.object({
|
|
90864
92502
|
deviceId: z.number().int().nonnegative(),
|
|
@@ -97464,11 +99102,6 @@ function evaluateAggregate(input) {
|
|
|
97464
99102
|
}
|
|
97465
99103
|
//#endregion
|
|
97466
99104
|
//#region src/composition/helpers/source-pick.ts
|
|
97467
|
-
/**
|
|
97468
|
-
* The request the common source selector (#236) accepts for a helper (D944 §5).
|
|
97469
|
-
* The selector's layout is not specified here. Groups ask for one device type
|
|
97470
|
-
* and the catalog field; they do not opt into incompatible fields.
|
|
97471
|
-
*/
|
|
97472
99105
|
/** What the member step asks the selector for this template. */
|
|
97473
99106
|
function sourcePickForTemplate(template) {
|
|
97474
99107
|
const valueKind = template.family === "numeric" ? "number" : template.activeWhen === void 0 ? "boolean" : "state";
|
|
@@ -97550,30 +99183,6 @@ function sourcePickForMath(kind) {
|
|
|
97550
99183
|
function numericAccept() {
|
|
97551
99184
|
return historyAccept("statistic").filter((field) => field.valueKind === "number");
|
|
97552
99185
|
}
|
|
97553
|
-
/**
|
|
97554
|
-
* The one thing a naked heater needs at creation (D1004 point 5): the plug it
|
|
97555
|
-
* switches. On and off forward to that plug; no other facet is attached.
|
|
97556
|
-
*/
|
|
97557
|
-
function sourcePickForHeaterPlug() {
|
|
97558
|
-
return {
|
|
97559
|
-
fieldChoice: "operator",
|
|
97560
|
-
purpose: "member",
|
|
97561
|
-
multiple: false,
|
|
97562
|
-
max: 1,
|
|
97563
|
-
deviceTypes: [DeviceType.Switch],
|
|
97564
|
-
accept: [{
|
|
97565
|
-
cap: "switch",
|
|
97566
|
-
fieldPath: "on",
|
|
97567
|
-
valueKind: "boolean"
|
|
97568
|
-
}],
|
|
97569
|
-
history: {
|
|
97570
|
-
required: false,
|
|
97571
|
-
minRetentionMs: null
|
|
97572
|
-
},
|
|
97573
|
-
mustBindCaps: ["switch"],
|
|
97574
|
-
exclude: []
|
|
97575
|
-
};
|
|
97576
|
-
}
|
|
97577
99186
|
//#endregion
|
|
97578
99187
|
//#region src/composition/customize/field-source.ts
|
|
97579
99188
|
function fromRead(source, cap, fieldPath) {
|
|
@@ -97669,7 +99278,7 @@ function compileValue$1(input) {
|
|
|
97669
99278
|
const transform = input.draft.transform;
|
|
97670
99279
|
if (transform.kind === "identity" || transform.kind === "number") return {
|
|
97671
99280
|
ok: true,
|
|
97672
|
-
value: identityValue(read, input.sourceValueKind)
|
|
99281
|
+
value: identityValue(read, input.sourceValueKind, targetValueKind(input))
|
|
97673
99282
|
};
|
|
97674
99283
|
if (transform.kind === "invert") {
|
|
97675
99284
|
if (input.sourceValueKind !== "boolean") return fail$2("source-kind");
|
|
@@ -97682,8 +99291,16 @@ function compileValue$1(input) {
|
|
|
97682
99291
|
if (transform.kind === "linear") return linearValue$1(transform, read, input.sourceValueKind);
|
|
97683
99292
|
return fail$2("transform");
|
|
97684
99293
|
}
|
|
97685
|
-
|
|
97686
|
-
|
|
99294
|
+
/** The kind of the field a draft writes, from the catalog. */
|
|
99295
|
+
function targetValueKind(input) {
|
|
99296
|
+
return catalogTarget$4(input.draft.cap, input.draft.targetId)?.valueKind;
|
|
99297
|
+
}
|
|
99298
|
+
/**
|
|
99299
|
+
* A string reading feeds a NUMBER field through `number(x)`; a string field
|
|
99300
|
+
* (a fan `preset` linked to a select, D1034) takes the string as it is.
|
|
99301
|
+
*/
|
|
99302
|
+
function identityValue(read, valueKind, targetKind) {
|
|
99303
|
+
if (valueKind === "string" && targetKind !== "string" && targetKind !== "enum") return expression("number(x)", { x: read });
|
|
97687
99304
|
return read;
|
|
97688
99305
|
}
|
|
97689
99306
|
/**
|
|
@@ -97765,7 +99382,7 @@ function compileCompanions$1(input, target, value) {
|
|
|
97765
99382
|
});
|
|
97766
99383
|
}
|
|
97767
99384
|
function companionIncluded$1(companion, apply) {
|
|
97768
|
-
if (companion.kind === "transition-time") return true;
|
|
99385
|
+
if (companion.kind === "transition-time" || companion.kind === "source-field") return true;
|
|
97769
99386
|
return companion.when === "always" || apply === "add";
|
|
97770
99387
|
}
|
|
97771
99388
|
function companionField(input, path, companion, value) {
|
|
@@ -97781,6 +99398,10 @@ function companionField(input, path, companion, value) {
|
|
|
97781
99398
|
ok: true,
|
|
97782
99399
|
value: literal("now")
|
|
97783
99400
|
};
|
|
99401
|
+
if (companion.kind === "source-field") return {
|
|
99402
|
+
ok: true,
|
|
99403
|
+
value: fromRead(refOf$1(input.draft), input.draft.source.cap, companion.field)
|
|
99404
|
+
};
|
|
97784
99405
|
return transitionField(input, path, companion.sourceChangedAt, value);
|
|
97785
99406
|
}
|
|
97786
99407
|
function transitionField(input, path, sourceChangedAt, value) {
|
|
@@ -97974,7 +99595,12 @@ function describeRead(read) {
|
|
|
97974
99595
|
function isConfirmed(reading) {
|
|
97975
99596
|
return reading.fatal || reading.confirmed === true;
|
|
97976
99597
|
}
|
|
97977
|
-
|
|
99598
|
+
/** Whether a non-null value is of the kind a field of `kind` holds. */
|
|
99599
|
+
function valueFitsKind(value, kind) {
|
|
99600
|
+
if (value === null) return true;
|
|
99601
|
+
return typeof value === (kind === "enum" ? "string" : kind);
|
|
99602
|
+
}
|
|
99603
|
+
function fromReading(reading, read, targetKind) {
|
|
97978
99604
|
if (reading.state === "unavailable") return {
|
|
97979
99605
|
state: "unavailable",
|
|
97980
99606
|
value: null,
|
|
@@ -97982,6 +99608,13 @@ function fromReading(reading, read) {
|
|
|
97982
99608
|
fatal: reading.fatal,
|
|
97983
99609
|
confirmed: isConfirmed(reading)
|
|
97984
99610
|
};
|
|
99611
|
+
if (targetKind !== void 0 && !valueFitsKind(reading.value, targetKind)) return {
|
|
99612
|
+
state: "unavailable",
|
|
99613
|
+
value: null,
|
|
99614
|
+
reason: `${describeRead(read)}: source-kind-mismatch, it reads a ${typeof reading.value} and the field takes a ${targetKind}`,
|
|
99615
|
+
fatal: false,
|
|
99616
|
+
confirmed: true
|
|
99617
|
+
};
|
|
97985
99618
|
return {
|
|
97986
99619
|
state: reading.state,
|
|
97987
99620
|
value: reading.value,
|
|
@@ -98105,7 +99738,7 @@ function aggregateField(source, read) {
|
|
|
98105
99738
|
function evaluateCompositionField(input) {
|
|
98106
99739
|
const { source } = input;
|
|
98107
99740
|
switch (source.kind) {
|
|
98108
|
-
case "from": return fromReading(input.read(source), source);
|
|
99741
|
+
case "from": return fromReading(input.read(source), source, input.targetKind);
|
|
98109
99742
|
case "expression": return expressionOutcome(source, input.read, input.now, input.stateful);
|
|
98110
99743
|
case "aggregate": return aggregateField(source, input.read);
|
|
98111
99744
|
case "series": return {
|
|
@@ -98341,56 +99974,6 @@ function lockDoorLinkOfComposition(composition) {
|
|
|
98341
99974
|
};
|
|
98342
99975
|
}
|
|
98343
99976
|
//#endregion
|
|
98344
|
-
//#region src/composition/power-source-link.ts
|
|
98345
|
-
/**
|
|
98346
|
-
* Which smart switch powers a device (the `power-source` Customize extension):
|
|
98347
|
-
* the source its stored `power-source.switchOn` field reads, and the off time of
|
|
98348
|
-
* a forced restart stored beside it. Read from the STORED composition, never kept
|
|
98349
|
-
* as a second copy (D676). Shared by the hub (which acts on the switch) and the
|
|
98350
|
-
* admin UI (which shows it).
|
|
98351
|
-
*/
|
|
98352
|
-
/**
|
|
98353
|
-
* The stored off time, or the default when none is stored. A stored number out
|
|
98354
|
-
* of range is CLAMPED to the bounds (a hand-written value never refuses the
|
|
98355
|
-
* link, it just cannot cut power for an absurd time); a non-integer is rounded.
|
|
98356
|
-
*/
|
|
98357
|
-
function normalizeOffSeconds(value) {
|
|
98358
|
-
if (typeof value !== "number" || !Number.isFinite(value)) return 10;
|
|
98359
|
-
return Math.min(120, Math.max(3, Math.round(value)));
|
|
98360
|
-
}
|
|
98361
|
-
/** The constant a stored `offSeconds` field carries, or undefined when it is not a literal number. */
|
|
98362
|
-
function storedOffSeconds(composition) {
|
|
98363
|
-
const feature = composition.features.find((f) => f.cap === "power-source");
|
|
98364
|
-
if (feature === void 0 || feature.kind !== "fields") return void 0;
|
|
98365
|
-
const field = feature.fields["offSeconds"];
|
|
98366
|
-
if (field === void 0 || field.kind !== "expression") return void 0;
|
|
98367
|
-
const n = Number(field.expr);
|
|
98368
|
-
return field.expr.trim() === "" || !Number.isFinite(n) ? void 0 : n;
|
|
98369
|
-
}
|
|
98370
|
-
/**
|
|
98371
|
-
* The link a composition stores. An `existing` target names its own device; a
|
|
98372
|
-
* `new` target (a composed device) is the composer's own device, so the caller
|
|
98373
|
-
* passes the block id and a new-target composition without one has no link.
|
|
98374
|
-
*/
|
|
98375
|
-
function powerSourceLinkOfComposition(composition, blockId) {
|
|
98376
|
-
if (composition === null) return null;
|
|
98377
|
-
let device;
|
|
98378
|
-
if (composition.target.kind === "existing") device = composition.target.device;
|
|
98379
|
-
else if (blockId !== void 0) device = composedDeviceRef(blockId);
|
|
98380
|
-
else return null;
|
|
98381
|
-
const feature = composition.features.find((f) => f.cap === "power-source");
|
|
98382
|
-
if (feature === void 0 || feature.kind !== "fields" || feature.enabled === false) return null;
|
|
98383
|
-
const field = feature.fields["switchOn"];
|
|
98384
|
-
if (field === void 0) return null;
|
|
98385
|
-
const read = fieldReads(field).find((r) => r.cap === "switch");
|
|
98386
|
-
if (read === void 0) return null;
|
|
98387
|
-
return {
|
|
98388
|
-
device,
|
|
98389
|
-
switch: read.source,
|
|
98390
|
-
offSeconds: normalizeOffSeconds(storedOffSeconds(composition))
|
|
98391
|
-
};
|
|
98392
|
-
}
|
|
98393
|
-
//#endregion
|
|
98394
99977
|
//#region src/composition/presets/numeric-transforms.ts
|
|
98395
99978
|
/**
|
|
98396
99979
|
* Self-only invert / unit-convert composition features (D663, D939).
|
|
@@ -99218,7 +100801,7 @@ function drafted(field, transform, sourceValueKind, cap, targetId) {
|
|
|
99218
100801
|
};
|
|
99219
100802
|
}
|
|
99220
100803
|
function inferApply$1(target, fields) {
|
|
99221
|
-
const addPaths = (target.companions ?? []).flatMap((companion) => companion.kind
|
|
100804
|
+
const addPaths = (target.companions ?? []).flatMap((companion) => (companion.kind === "constant" || companion.kind === "clock") && companion.when === "add" ? [companion.path] : []);
|
|
99222
100805
|
if (addPaths.length === 0) return "replace";
|
|
99223
100806
|
const present = addPaths.filter((path) => fields[path] !== void 0);
|
|
99224
100807
|
if (present.length === addPaths.length) return "add";
|
|
@@ -99563,7 +101146,7 @@ function compileCompanions(target, apply) {
|
|
|
99563
101146
|
});
|
|
99564
101147
|
}
|
|
99565
101148
|
function companionIncluded(companion, apply) {
|
|
99566
|
-
if (companion.kind === "transition-time") return false;
|
|
101149
|
+
if (companion.kind === "transition-time" || companion.kind === "source-field") return false;
|
|
99567
101150
|
return companion.when === "always" || apply === "add";
|
|
99568
101151
|
}
|
|
99569
101152
|
function refOf(draft) {
|
|
@@ -99742,7 +101325,7 @@ function isConstant(source) {
|
|
|
99742
101325
|
return source?.kind === "expression" && Object.keys(source.bindings).length === 0;
|
|
99743
101326
|
}
|
|
99744
101327
|
function inferApply(target, fields) {
|
|
99745
|
-
const addPaths = (target.companions ?? []).flatMap((companion) => companion.kind
|
|
101328
|
+
const addPaths = (target.companions ?? []).flatMap((companion) => (companion.kind === "constant" || companion.kind === "clock") && companion.when === "add" ? [companion.path] : []);
|
|
99746
101329
|
if (addPaths.length === 0) return "replace";
|
|
99747
101330
|
const present = addPaths.filter((path) => fields[path] !== void 0);
|
|
99748
101331
|
if (present.length === addPaths.length) return "add";
|
|
@@ -99751,7 +101334,7 @@ function inferApply(target, fields) {
|
|
|
99751
101334
|
}
|
|
99752
101335
|
function companionsMatch(target, fields, apply) {
|
|
99753
101336
|
const expected = (target.companions ?? []).flatMap((companion) => {
|
|
99754
|
-
if (companion.kind === "transition-time") return [];
|
|
101337
|
+
if (companion.kind === "transition-time" || companion.kind === "source-field") return [];
|
|
99755
101338
|
if (companion.when === "always" || apply === "add") return [companion.path];
|
|
99756
101339
|
return [];
|
|
99757
101340
|
});
|
|
@@ -101815,15 +103398,16 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
101815
103398
|
});
|
|
101816
103399
|
const meta = await this.ctx.api.deviceManager.loadMeta.query({ deviceId: id });
|
|
101817
103400
|
if (meta === null) throw new Error(`${this.providerName}: no persisted meta for "${stableId}" (id ${id}) — cannot reload`);
|
|
101818
|
-
const
|
|
101819
|
-
|
|
103401
|
+
const Class = this.deviceClassForRow({
|
|
103402
|
+
type: meta.type,
|
|
103403
|
+
stableId
|
|
103404
|
+
});
|
|
101820
103405
|
if (!Class) throw new Error(`${this.providerName}: no device class for type "${meta.type}" — "${stableId}" is an accessory child; reload its parent instead`);
|
|
101821
103406
|
await devices.create(stableId, Class, {}, meta.parentDeviceId ?? null);
|
|
101822
103407
|
const rows = await this.ctx.api.deviceManager.listPersistedByAddon.query({ addonId: this.addonId });
|
|
101823
103408
|
for (const row of rows) {
|
|
101824
103409
|
if (row.parentDeviceId !== id) continue;
|
|
101825
|
-
const
|
|
101826
|
-
const ChildClass = childType !== void 0 ? this.deviceClasses[childType] : void 0;
|
|
103410
|
+
const ChildClass = this.deviceClassForRow(row);
|
|
101827
103411
|
if (!ChildClass) continue;
|
|
101828
103412
|
try {
|
|
101829
103413
|
await devices.create(row.stableId, ChildClass, {}, id);
|
|
@@ -101850,6 +103434,16 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
101850
103434
|
return { deviceId: id };
|
|
101851
103435
|
}
|
|
101852
103436
|
/**
|
|
103437
|
+
* The class a PERSISTED row is rebuilt with. Default: by type, from
|
|
103438
|
+
* `deviceClasses`. A provider whose distinct devices share one type (D1033:
|
|
103439
|
+
* a radiator valve and a room climate are both `climate`) overrides this
|
|
103440
|
+
* and tells them apart by the row's stable id or config.
|
|
103441
|
+
*/
|
|
103442
|
+
deviceClassForRow(row) {
|
|
103443
|
+
const type = Object.values(DeviceType).find((t) => t === row.type);
|
|
103444
|
+
return type !== void 0 ? this.deviceClasses[type] : void 0;
|
|
103445
|
+
}
|
|
103446
|
+
/**
|
|
101853
103447
|
* Restore devices from persisted state. Two-pass:
|
|
101854
103448
|
*
|
|
101855
103449
|
* 1. **Top-level pass** — invokes `kernel.devices.create()` for every
|
|
@@ -101910,7 +103504,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
101910
103504
|
restored.add(saved.id);
|
|
101911
103505
|
return;
|
|
101912
103506
|
}
|
|
101913
|
-
const Class = this.
|
|
103507
|
+
const Class = this.deviceClassForRow(saved);
|
|
101914
103508
|
if (!Class) throw new Error(`no device class registered for type "${saved.type}"`);
|
|
101915
103509
|
if (saved.parentDeviceId !== null && !restored.has(saved.parentDeviceId)) throw new Error(`parent device ${saved.parentDeviceId} not restored`);
|
|
101916
103510
|
await this.healSavedConfig(saved, savedDevices);
|
|
@@ -101927,7 +103521,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
101927
103521
|
};
|
|
101928
103522
|
const topLevel = savedDevices.filter((saved) => saved.parentDeviceId === null);
|
|
101929
103523
|
const restoreOne = async (saved) => {
|
|
101930
|
-
if (!this.
|
|
103524
|
+
if (!this.deviceClassForRow(saved)) {
|
|
101931
103525
|
this.ctx.logger.warn("No device class registered for restored type — skipping", {
|
|
101932
103526
|
tags: {
|
|
101933
103527
|
deviceId: saved.id,
|
|
@@ -101966,7 +103560,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
101966
103560
|
const failedTopLevelIds = new Set(failures.map((failure) => failure.saved.id));
|
|
101967
103561
|
const childRows = savedDevices.filter((s) => s.parentDeviceId !== null);
|
|
101968
103562
|
for (const saved of childRows) {
|
|
101969
|
-
if (!this.
|
|
103563
|
+
if (!this.deviceClassForRow(saved)) continue;
|
|
101970
103564
|
if (saved.parentDeviceId === null) continue;
|
|
101971
103565
|
if (restored.has(saved.parentDeviceId)) {
|
|
101972
103566
|
try {
|
|
@@ -102157,7 +103751,6 @@ function applyPrimaryChildRule(rule, children) {
|
|
|
102157
103751
|
var CONTAINER_CHILD_PRIORITY = [
|
|
102158
103752
|
"media-player",
|
|
102159
103753
|
"alarm-panel",
|
|
102160
|
-
"thermostat",
|
|
102161
103754
|
"climate",
|
|
102162
103755
|
"humidifier",
|
|
102163
103756
|
"water-heater",
|
|
@@ -102777,6 +104370,73 @@ function widenDeviceConstructor(ctor) {
|
|
|
102777
104370
|
return ctor;
|
|
102778
104371
|
}
|
|
102779
104372
|
//#endregion
|
|
104373
|
+
//#region src/device/device-kind.ts
|
|
104374
|
+
/**
|
|
104375
|
+
* A device's KIND is its type plus its role (D1033): the type is the set of
|
|
104376
|
+
* controls it has, the role says which thing it is among the devices that
|
|
104377
|
+
* share those controls. A plug-in heater is a `switch` with role
|
|
104378
|
+
* `switch-heater`; an air conditioner and a radiator valve are both `climate`,
|
|
104379
|
+
* told apart by their `climate-*` role.
|
|
104380
|
+
*/
|
|
104381
|
+
/**
|
|
104382
|
+
* Type values a persisted row may still carry after the type was retired, and
|
|
104383
|
+
* the type each one is read as. The row is rewritten by the next registration
|
|
104384
|
+
* of the device (its provider stamps the live type), so this is a read alias,
|
|
104385
|
+
* not a migration.
|
|
104386
|
+
*
|
|
104387
|
+
* `heater` is deliberately absent: the only heaters were composed devices the
|
|
104388
|
+
* operator deletes. Such a row stays an unknown type, which every reader
|
|
104389
|
+
* treats as a generic device.
|
|
104390
|
+
*/
|
|
104391
|
+
var RETIRED_DEVICE_TYPES = { thermostat: DeviceType.Climate };
|
|
104392
|
+
/** The live type a stored `type` value stands for (itself unless retired). */
|
|
104393
|
+
function canonicalStoredDeviceType(stored) {
|
|
104394
|
+
return RETIRED_DEVICE_TYPES[stored] ?? stored;
|
|
104395
|
+
}
|
|
104396
|
+
/** The `climate-*` roles, in the order the role picker lists them. */
|
|
104397
|
+
var CLIMATE_ROLES = [
|
|
104398
|
+
DeviceRole.ClimateThermostat,
|
|
104399
|
+
DeviceRole.ClimateAc,
|
|
104400
|
+
DeviceRole.ClimateRadiator,
|
|
104401
|
+
DeviceRole.ClimateFloor,
|
|
104402
|
+
DeviceRole.ClimateHeater,
|
|
104403
|
+
DeviceRole.ClimateHeatPumpCircuit
|
|
104404
|
+
];
|
|
104405
|
+
function isClimateRole(role) {
|
|
104406
|
+
return CLIMATE_ROLES.some((candidate) => candidate === role);
|
|
104407
|
+
}
|
|
104408
|
+
/**
|
|
104409
|
+
* Which climate device this is. A climate device with no role, or a role that
|
|
104410
|
+
* is not a climate one, is a room thermostat: that is what most of them are,
|
|
104411
|
+
* and it is the presentation a thermostat had before the types were folded.
|
|
104412
|
+
*/
|
|
104413
|
+
function climateRoleOf(role) {
|
|
104414
|
+
return role !== null && role !== void 0 && isClimateRole(role) ? role : DeviceRole.ClimateThermostat;
|
|
104415
|
+
}
|
|
104416
|
+
/** An air conditioner: exports present it as an AC unit, not a thermostat. */
|
|
104417
|
+
function isAirConditioner(type, role) {
|
|
104418
|
+
return type === DeviceType.Climate && climateRoleOf(role) === DeviceRole.ClimateAc;
|
|
104419
|
+
}
|
|
104420
|
+
/**
|
|
104421
|
+
* Is a capability offered on a device of this type and role?
|
|
104422
|
+
*
|
|
104423
|
+
* Fails open where the old type-only gate did: no `deviceTypes` (or an empty
|
|
104424
|
+
* list) applies to every device, and an unknown type never filters (a failed
|
|
104425
|
+
* meta read must not destroy work, D49). A type the cap's `deviceRoles` names
|
|
104426
|
+
* is offered only to the roles listed there; an unknown role is NOT one of
|
|
104427
|
+
* them, so a `switch` whose role could not be read is not a heater.
|
|
104428
|
+
*/
|
|
104429
|
+
function capAppliesToDeviceKind(gate, deviceType, role) {
|
|
104430
|
+
if (deviceType === void 0) return true;
|
|
104431
|
+
const types = gate?.deviceTypes;
|
|
104432
|
+
if (!types || types.length === 0) return true;
|
|
104433
|
+
const type = types.find((candidate) => candidate === deviceType);
|
|
104434
|
+
if (type === void 0) return false;
|
|
104435
|
+
const roles = gate?.deviceRoles?.[type];
|
|
104436
|
+
if (roles === void 0) return true;
|
|
104437
|
+
return role !== null && role !== void 0 && roles.some((candidate) => candidate === role);
|
|
104438
|
+
}
|
|
104439
|
+
//#endregion
|
|
102780
104440
|
//#region src/device/device-control-resolution.ts
|
|
102781
104441
|
/**
|
|
102782
104442
|
* Device-control RESOLUTION LOGIC — the single, presentation-free source of
|
|
@@ -102829,8 +104489,7 @@ var DEVICE_TYPE_CONTROL_KIND = {
|
|
|
102829
104489
|
[DeviceType.Light]: "light",
|
|
102830
104490
|
[DeviceType.Fan]: "fan",
|
|
102831
104491
|
[DeviceType.Sensor]: "sensor",
|
|
102832
|
-
[DeviceType.
|
|
102833
|
-
[DeviceType.Climate]: "climate",
|
|
104492
|
+
[DeviceType.Climate]: "thermostat",
|
|
102834
104493
|
[DeviceType.Button]: "button",
|
|
102835
104494
|
[DeviceType.EventEmitter]: "dummy",
|
|
102836
104495
|
[DeviceType.Update]: "update",
|
|
@@ -102850,7 +104509,6 @@ var DEVICE_TYPE_CONTROL_KIND = {
|
|
|
102850
104509
|
[DeviceType.Image]: "image",
|
|
102851
104510
|
[DeviceType.PetFeeder]: "pet-feeder",
|
|
102852
104511
|
[DeviceType.PetFountain]: "pet-fountain",
|
|
102853
|
-
[DeviceType.Heater]: "heater",
|
|
102854
104512
|
[DeviceType.Dishwasher]: "dishwasher",
|
|
102855
104513
|
[DeviceType.Washer]: "appliance",
|
|
102856
104514
|
[DeviceType.Dryer]: "appliance",
|
|
@@ -102864,8 +104522,11 @@ var DEVICE_TYPE_VALUES = new Set(Object.values(DeviceType));
|
|
|
102864
104522
|
* narrows the string to a `DeviceType` before indexing (documented enum-string
|
|
102865
104523
|
* boundary).
|
|
102866
104524
|
*/
|
|
102867
|
-
function resolveDeviceControlKind(type) {
|
|
102868
|
-
|
|
104525
|
+
function resolveDeviceControlKind(type, role) {
|
|
104526
|
+
if (!DEVICE_TYPE_VALUES.has(type)) return null;
|
|
104527
|
+
if (isAirConditioner(type, role)) return "climate";
|
|
104528
|
+
if (type === DeviceType.Switch && role === DeviceRole.SwitchHeater) return "heater";
|
|
104529
|
+
return DEVICE_TYPE_CONTROL_KIND[type];
|
|
102869
104530
|
}
|
|
102870
104531
|
/** Kebab feature flag advertised by an accessory that auto-activates when its
|
|
102871
104532
|
* parent camera detects motion. The cap's kebab name is `motion-trigger` (see
|
|
@@ -105187,9 +106848,6 @@ function durationText(seconds) {
|
|
|
105187
106848
|
const text = `${Math.floor(m / 60)} h ${String(m % 60).padStart(2, "0")}`;
|
|
105188
106849
|
return t(text, text);
|
|
105189
106850
|
}
|
|
105190
|
-
function deviceTypeOf(type) {
|
|
105191
|
-
return Object.values(DeviceType).find((t) => t === type);
|
|
105192
|
-
}
|
|
105193
106851
|
var switchContribution = contribution("switch", SwitchStatusSchema, (slice) => {
|
|
105194
106852
|
const on = slice?.on ?? null;
|
|
105195
106853
|
return {
|
|
@@ -105370,8 +107028,7 @@ function remainingWords(amount, unit) {
|
|
|
105370
107028
|
return t(`${amount} ${word}`, `${amount} ${word}`);
|
|
105371
107029
|
}
|
|
105372
107030
|
var timedRunContribution = contribution("timed-run", TimedRunStatusSchema, (slice, ctx) => {
|
|
105373
|
-
const
|
|
105374
|
-
const limit = type === void 0 ? null : timedRunLimitOf(type);
|
|
107031
|
+
const limit = timedRunLimitOf(ctx.type, ctx.role);
|
|
105375
107032
|
if (limit === null) return {};
|
|
105376
107033
|
const quickRun = slice?.quickRun ?? timedRunQuickRun(limit, null);
|
|
105377
107034
|
const activeUntil = slice?.activeUntil != null && slice.activeUntil > ctx.now ? slice.activeUntil : null;
|
|
@@ -105812,7 +107469,6 @@ var HERO_LAYOUT_BY_TYPE = {
|
|
|
105812
107469
|
[DeviceType.Siren]: HERO_LAYOUT_DEFAULT,
|
|
105813
107470
|
[DeviceType.Switch]: SWITCH_LAYOUT,
|
|
105814
107471
|
[DeviceType.Sensor]: HERO_LAYOUT_DEFAULT,
|
|
105815
|
-
[DeviceType.Thermostat]: CLIMATE_LAYOUT,
|
|
105816
107472
|
[DeviceType.Climate]: CLIMATE_LAYOUT,
|
|
105817
107473
|
[DeviceType.Button]: BUTTON_LAYOUT,
|
|
105818
107474
|
[DeviceType.EventEmitter]: HERO_LAYOUT_DEFAULT,
|
|
@@ -105841,7 +107497,6 @@ var HERO_LAYOUT_BY_TYPE = {
|
|
|
105841
107497
|
[DeviceType.PetFountain]: FOUNTAIN_LAYOUT,
|
|
105842
107498
|
[DeviceType.Dishwasher]: DISHWASHER_LAYOUT,
|
|
105843
107499
|
[DeviceType.Washer]: APPLIANCE_LAYOUT,
|
|
105844
|
-
[DeviceType.Heater]: HEATER_LAYOUT,
|
|
105845
107500
|
[DeviceType.Dryer]: APPLIANCE_LAYOUT,
|
|
105846
107501
|
[DeviceType.Gateway]: HERO_LAYOUT_DEFAULT
|
|
105847
107502
|
};
|
|
@@ -105849,7 +107504,8 @@ function isDeviceType$1(type) {
|
|
|
105849
107504
|
return Object.values(DeviceType).includes(type);
|
|
105850
107505
|
}
|
|
105851
107506
|
/** The layout of a type; a type this build does not know gets the default. */
|
|
105852
|
-
function resolveHeroLayout(type) {
|
|
107507
|
+
function resolveHeroLayout(type, role = null) {
|
|
107508
|
+
if (type === DeviceType.Switch && role === DeviceRole.SwitchHeater) return HEATER_LAYOUT;
|
|
105853
107509
|
return isDeviceType$1(type) ? HERO_LAYOUT_BY_TYPE[type] : HERO_LAYOUT_DEFAULT;
|
|
105854
107510
|
}
|
|
105855
107511
|
//#endregion
|
|
@@ -106530,7 +108186,7 @@ var HERO_MODE_LOOK = {
|
|
|
106530
108186
|
open: null,
|
|
106531
108187
|
closed: null
|
|
106532
108188
|
};
|
|
106533
|
-
var MODE_LOOK_TYPES = [DeviceType.Climate
|
|
108189
|
+
var MODE_LOOK_TYPES = [DeviceType.Climate];
|
|
106534
108190
|
var HERO_LOOK_BY_TYPE = {
|
|
106535
108191
|
[DeviceType.Camera]: CAMERA_LOOK,
|
|
106536
108192
|
[DeviceType.Hub]: HERO_LOOK_DEFAULT,
|
|
@@ -106538,8 +108194,7 @@ var HERO_LOOK_BY_TYPE = {
|
|
|
106538
108194
|
[DeviceType.Siren]: HERO_LOOK_DEFAULT,
|
|
106539
108195
|
[DeviceType.Switch]: SWITCH_LOOK,
|
|
106540
108196
|
[DeviceType.Sensor]: READING_SENSOR_LOOK,
|
|
106541
|
-
[DeviceType.
|
|
106542
|
-
[DeviceType.Climate]: CLIMATE_LOOK,
|
|
108197
|
+
[DeviceType.Climate]: THERMOSTAT_LOOK,
|
|
106543
108198
|
[DeviceType.Button]: BUTTON_LOOK,
|
|
106544
108199
|
[DeviceType.EventEmitter]: EVENT_EMITTER_LOOK,
|
|
106545
108200
|
[DeviceType.Update]: UPDATE_LOOK,
|
|
@@ -106567,7 +108222,6 @@ var HERO_LOOK_BY_TYPE = {
|
|
|
106567
108222
|
[DeviceType.PetFountain]: FOUNTAIN_LOOK,
|
|
106568
108223
|
[DeviceType.Dishwasher]: DISHWASHER_LOOK,
|
|
106569
108224
|
[DeviceType.Washer]: WASHER_LOOK,
|
|
106570
|
-
[DeviceType.Heater]: HEATER_LOOK,
|
|
106571
108225
|
[DeviceType.Dryer]: DRYER_LOOK,
|
|
106572
108226
|
[DeviceType.Gateway]: HERO_LOOK_DEFAULT
|
|
106573
108227
|
};
|
|
@@ -106592,6 +108246,14 @@ var HERO_LOOK_BY_ROLE = {
|
|
|
106592
108246
|
[DeviceRole.CoverWindow]: "inherit",
|
|
106593
108247
|
[DeviceRole.BinaryHelper]: "inherit",
|
|
106594
108248
|
[DeviceRole.Outlet]: "inherit",
|
|
108249
|
+
[DeviceRole.SwitchHeater]: HEATER_LOOK,
|
|
108250
|
+
[DeviceRole.SwitchFan]: FAN_LOOK,
|
|
108251
|
+
[DeviceRole.ClimateAc]: "inherit",
|
|
108252
|
+
[DeviceRole.ClimateThermostat]: "inherit",
|
|
108253
|
+
[DeviceRole.ClimateFloor]: "inherit",
|
|
108254
|
+
[DeviceRole.ClimateRadiator]: "inherit",
|
|
108255
|
+
[DeviceRole.ClimateHeater]: "inherit",
|
|
108256
|
+
[DeviceRole.ClimateHeatPumpCircuit]: "inherit",
|
|
106595
108257
|
[DeviceRole.MotionSensor]: MOTION_LOOK,
|
|
106596
108258
|
[DeviceRole.ContactSensor]: "inherit",
|
|
106597
108259
|
[DeviceRole.LeakSensor]: LEAK_LOOK,
|
|
@@ -106649,6 +108311,7 @@ function resolveHeroLook(role, type, state, mode = null) {
|
|
|
106649
108311
|
const byMode = HERO_MODE_LOOK[mode];
|
|
106650
108312
|
if (byMode !== null) return byMode;
|
|
106651
108313
|
}
|
|
108314
|
+
if (isAirConditioner(type, role)) return CLIMATE_LOOK[state];
|
|
106652
108315
|
return ((isDeviceType(type) ? HERO_LOOK_BY_TYPE[type] : void 0) ?? HERO_LOOK_DEFAULT)[state];
|
|
106653
108316
|
}
|
|
106654
108317
|
/** Every look the model declares, for the exhaustiveness guard and its spec. */
|
|
@@ -106831,6 +108494,7 @@ function buildHeroModel(input) {
|
|
|
106831
108494
|
const ctx = {
|
|
106832
108495
|
deviceId: device.id,
|
|
106833
108496
|
type: device.type,
|
|
108497
|
+
role: device.role,
|
|
106834
108498
|
features: input.features,
|
|
106835
108499
|
now: input.now,
|
|
106836
108500
|
running: runningOf(input),
|
|
@@ -106859,7 +108523,7 @@ function buildHeroModel(input) {
|
|
|
106859
108523
|
}
|
|
106860
108524
|
};
|
|
106861
108525
|
const allRows = fragments.flatMap((f) => f.rows ?? []);
|
|
106862
|
-
const rows = resolveHeroLayout(device.type).rows.flatMap((id) => {
|
|
108526
|
+
const rows = resolveHeroLayout(device.type, device.role).rows.flatMap((id) => {
|
|
106863
108527
|
return allRows.filter((r) => r.id === id).map((r) => HERO_SCENE_ROW_IDS.has(r.id) ? {
|
|
106864
108528
|
...r,
|
|
106865
108529
|
placement: "scene"
|
|
@@ -110436,6 +112100,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
110436
112100
|
access: "create",
|
|
110437
112101
|
role: "viewer"
|
|
110438
112102
|
},
|
|
112103
|
+
"fanControl.setOscillationAxis": {
|
|
112104
|
+
capName: "fan-control",
|
|
112105
|
+
capScope: "device",
|
|
112106
|
+
addonId: null,
|
|
112107
|
+
access: "create",
|
|
112108
|
+
role: "viewer"
|
|
112109
|
+
},
|
|
110439
112110
|
"fanControl.setPercentage": {
|
|
110440
112111
|
capName: "fan-control",
|
|
110441
112112
|
capScope: "device",
|
|
@@ -117955,7 +119626,6 @@ var DEVICE_TYPE_DO_CAPS = {
|
|
|
117955
119626
|
[DeviceType.Siren]: ["switch", "motion-trigger"],
|
|
117956
119627
|
[DeviceType.Switch]: ["switch", "motion-trigger"],
|
|
117957
119628
|
[DeviceType.Sensor]: [],
|
|
117958
|
-
[DeviceType.Thermostat]: ["climate-control"],
|
|
117959
119629
|
[DeviceType.Climate]: ["climate-control"],
|
|
117960
119630
|
[DeviceType.Button]: ["button"],
|
|
117961
119631
|
[DeviceType.EventEmitter]: [],
|
|
@@ -117982,7 +119652,6 @@ var DEVICE_TYPE_DO_CAPS = {
|
|
|
117982
119652
|
[DeviceType.Image]: [],
|
|
117983
119653
|
[DeviceType.PetFeeder]: ["pet-feeder"],
|
|
117984
119654
|
[DeviceType.PetFountain]: ["pet-fountain", "timed-run"],
|
|
117985
|
-
[DeviceType.Heater]: ["switch", "timed-run"],
|
|
117986
119655
|
[DeviceType.Dishwasher]: ["dishwasher"],
|
|
117987
119656
|
[DeviceType.Washer]: [],
|
|
117988
119657
|
[DeviceType.Dryer]: [],
|
|
@@ -118007,7 +119676,6 @@ function isDoPickerDeviceType(type) {
|
|
|
118007
119676
|
function deviceDoFamily(type) {
|
|
118008
119677
|
switch (type) {
|
|
118009
119678
|
case DeviceType.Climate:
|
|
118010
|
-
case DeviceType.Thermostat:
|
|
118011
119679
|
case DeviceType.Humidifier:
|
|
118012
119680
|
case DeviceType.WaterHeater:
|
|
118013
119681
|
case DeviceType.HeatPump: return "climate-family";
|
|
@@ -118930,6 +120598,151 @@ function createRuntimeStateBridge(params) {
|
|
|
118930
120598
|
};
|
|
118931
120599
|
}
|
|
118932
120600
|
//#endregion
|
|
120601
|
+
//#region src/device/power-switch.ts
|
|
120602
|
+
var PowerSwitchRefusedError = class extends Error {
|
|
120603
|
+
reason;
|
|
120604
|
+
constructor(reason, message) {
|
|
120605
|
+
super(message);
|
|
120606
|
+
this.name = "PowerSwitchRefusedError";
|
|
120607
|
+
this.reason = reason;
|
|
120608
|
+
}
|
|
120609
|
+
};
|
|
120610
|
+
/** `true` / `false` from the owner slice, `null` when the hinted field is
|
|
120611
|
+
* absent or not of the hinted shape. */
|
|
120612
|
+
function powerOnFromSlice(hint, slice) {
|
|
120613
|
+
const value = slice?.[hint.field];
|
|
120614
|
+
switch (hint.kind) {
|
|
120615
|
+
case "field": return typeof value === "boolean" ? value : null;
|
|
120616
|
+
case "methods": return typeof value === "string" ? !hint.offValues.includes(value) : null;
|
|
120617
|
+
case "mode": return typeof value === "string" ? value !== hint.offValue : null;
|
|
120618
|
+
}
|
|
120619
|
+
}
|
|
120620
|
+
function ownerMethod(owner, name, capName) {
|
|
120621
|
+
const fn = Reflect.get(owner, name);
|
|
120622
|
+
if (typeof fn !== "function") throw new PowerSwitchRefusedError("owner-method-missing", `${capName} provider does not serve '${name}', which its power hint names`);
|
|
120623
|
+
return async (input) => fn.call(owner, input);
|
|
120624
|
+
}
|
|
120625
|
+
async function lastNonOffMode(host, capName, hint) {
|
|
120626
|
+
const isMode = (v) => typeof v === "string" && v.length > 0 && v !== hint.offValue;
|
|
120627
|
+
const fromHub = (await host.readHubSlice(capName).catch(() => null))?.[hint.lastField];
|
|
120628
|
+
if (isMode(fromHub)) return fromHub;
|
|
120629
|
+
const local = host.runtimeState.getCapState(capName)?.[hint.lastField];
|
|
120630
|
+
return isMode(local) ? local : null;
|
|
120631
|
+
}
|
|
120632
|
+
async function applyPower(host, capName, hint, owner, on) {
|
|
120633
|
+
const deviceId = host.deviceId;
|
|
120634
|
+
switch (hint.kind) {
|
|
120635
|
+
case "field":
|
|
120636
|
+
await ownerMethod(owner, hint.set, capName)({
|
|
120637
|
+
deviceId,
|
|
120638
|
+
on
|
|
120639
|
+
});
|
|
120640
|
+
return;
|
|
120641
|
+
case "methods":
|
|
120642
|
+
await ownerMethod(owner, on ? hint.on : hint.off, capName)({ deviceId });
|
|
120643
|
+
return;
|
|
120644
|
+
case "mode": {
|
|
120645
|
+
const set = ownerMethod(owner, hint.set, capName);
|
|
120646
|
+
if (!on) {
|
|
120647
|
+
await set({
|
|
120648
|
+
deviceId,
|
|
120649
|
+
mode: hint.offValue
|
|
120650
|
+
});
|
|
120651
|
+
return;
|
|
120652
|
+
}
|
|
120653
|
+
const mode = await lastNonOffMode(host, capName, hint);
|
|
120654
|
+
if (mode === null) throw new PowerSwitchRefusedError("no-last-mode", `device ${deviceId}: ${capName} has no last non-off mode to restore; pick a mode instead`);
|
|
120655
|
+
await set({
|
|
120656
|
+
deviceId,
|
|
120657
|
+
mode
|
|
120658
|
+
});
|
|
120659
|
+
return;
|
|
120660
|
+
}
|
|
120661
|
+
}
|
|
120662
|
+
}
|
|
120663
|
+
function hintedMethods(hint) {
|
|
120664
|
+
return hint.kind === "methods" ? [hint.on, hint.off] : [hint.set];
|
|
120665
|
+
}
|
|
120666
|
+
/** Whether `owner` serves every method its cap's power hint names. A media
|
|
120667
|
+
* player whose `turnOn` / `turnOff` are not served has no power, so no switch. */
|
|
120668
|
+
function powerServedBy(hint, owner) {
|
|
120669
|
+
if (hint === void 0) return false;
|
|
120670
|
+
return hintedMethods(hint).every((name) => typeof Reflect.get(owner, name) === "function");
|
|
120671
|
+
}
|
|
120672
|
+
/** Builds the `switch` provider and starts the slice projection. Exported
|
|
120673
|
+
* for the specs; providers call `registerPowerSwitch`. */
|
|
120674
|
+
function buildPowerSwitch(host, cap, owner) {
|
|
120675
|
+
const hint = cap.power;
|
|
120676
|
+
if (hint === void 0) throw new Error(`capability '${cap.name}' has no power hint: it has no switch to project`);
|
|
120677
|
+
const read = () => powerOnFromSlice(hint, host.runtimeState.getCapState(cap.name));
|
|
120678
|
+
const project = () => {
|
|
120679
|
+
const on = read();
|
|
120680
|
+
const current = host.runtimeState.getCapState(switchCapability.name);
|
|
120681
|
+
if (current !== void 0 && current["on"] === on) return;
|
|
120682
|
+
const next = {
|
|
120683
|
+
on,
|
|
120684
|
+
lastChangedAt: Date.now()
|
|
120685
|
+
};
|
|
120686
|
+
host.runtimeState.setCapState(switchCapability.name, next);
|
|
120687
|
+
};
|
|
120688
|
+
const stop = host.runtimeState.subscribeCap(cap.name, project);
|
|
120689
|
+
if (host.runtimeState.getCapState(cap.name) !== void 0) project();
|
|
120690
|
+
return {
|
|
120691
|
+
provider: {
|
|
120692
|
+
getStatus: async () => {
|
|
120693
|
+
const current = host.runtimeState.getCapState(switchCapability.name);
|
|
120694
|
+
const lastChangedAt = typeof current?.["lastChangedAt"] === "number" ? current["lastChangedAt"] : 0;
|
|
120695
|
+
return {
|
|
120696
|
+
on: read(),
|
|
120697
|
+
lastChangedAt
|
|
120698
|
+
};
|
|
120699
|
+
},
|
|
120700
|
+
setState: async ({ on }) => applyPower(host, cap.name, hint, owner, on)
|
|
120701
|
+
},
|
|
120702
|
+
dispose: stop
|
|
120703
|
+
};
|
|
120704
|
+
}
|
|
120705
|
+
/**
|
|
120706
|
+
* Registers `switch` for a device whose `cap` carries a `power` hint, built
|
|
120707
|
+
* from `owner` (the provider the device registered for `cap`). Call it right
|
|
120708
|
+
* after `registerNativeCap(cap, owner)`.
|
|
120709
|
+
*/
|
|
120710
|
+
function registerPowerSwitch(device, cap, owner) {
|
|
120711
|
+
const deviceId = device.ctx.id;
|
|
120712
|
+
if (cap.power !== void 0 && !powerServedBy(cap.power, owner)) {
|
|
120713
|
+
device.ctx.logger.debug("power switch: owner serves no power control, no switch registered", {
|
|
120714
|
+
tags: { deviceId },
|
|
120715
|
+
meta: { capName: cap.name }
|
|
120716
|
+
});
|
|
120717
|
+
return () => {};
|
|
120718
|
+
}
|
|
120719
|
+
const host = {
|
|
120720
|
+
deviceId,
|
|
120721
|
+
runtimeState: device.runtimeState,
|
|
120722
|
+
registerNativeCap: (c, p) => device.ctx.registerNativeCap(c, p),
|
|
120723
|
+
readHubSlice: async (capName) => {
|
|
120724
|
+
try {
|
|
120725
|
+
return await device.ctx.api.deviceState.getCapSlice.query({
|
|
120726
|
+
deviceId,
|
|
120727
|
+
capName
|
|
120728
|
+
});
|
|
120729
|
+
} catch (err) {
|
|
120730
|
+
device.ctx.logger.warn("power switch: hub slice read failed", {
|
|
120731
|
+
tags: { deviceId },
|
|
120732
|
+
meta: {
|
|
120733
|
+
capName,
|
|
120734
|
+
error: err instanceof Error ? err.message : String(err)
|
|
120735
|
+
}
|
|
120736
|
+
});
|
|
120737
|
+
return null;
|
|
120738
|
+
}
|
|
120739
|
+
}
|
|
120740
|
+
};
|
|
120741
|
+
const built = buildPowerSwitch(host, cap, owner);
|
|
120742
|
+
host.registerNativeCap(switchCapability, built.provider);
|
|
120743
|
+
return built.dispose;
|
|
120744
|
+
}
|
|
120745
|
+
//#endregion
|
|
118933
120746
|
//#region src/device/system-mirror.ts
|
|
118934
120747
|
var STATE_CHANGED_CATEGORY = "device.state-changed";
|
|
118935
120748
|
var BINDING_CHANGED_CATEGORY = "capability.binding-changed";
|
|
@@ -120803,6 +122616,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
120803
122616
|
form: "single",
|
|
120804
122617
|
optional: false
|
|
120805
122618
|
}],
|
|
122619
|
+
"fanControl.setOscillationAxis": [{
|
|
122620
|
+
name: "deviceId",
|
|
122621
|
+
form: "single",
|
|
122622
|
+
optional: false
|
|
122623
|
+
}],
|
|
120806
122624
|
"fanControl.setPercentage": [{
|
|
120807
122625
|
name: "deviceId",
|
|
120808
122626
|
form: "single",
|
|
@@ -123658,6 +125476,12 @@ var CUSTOMIZE_CARDINALITIES = [
|
|
|
123658
125476
|
var CUSTOMIZE_EVENT_SHAPES = ["pulse", "span"];
|
|
123659
125477
|
/** Who applies a stored event or scalar assignment; the table branches on it. */
|
|
123660
125478
|
var CUSTOMIZE_APPLY_AUTHORITY_KINDS = ["composition-claim", "camera-sensors"];
|
|
125479
|
+
/**
|
|
125480
|
+
* A named group a cap may file its targets under in the Customize table
|
|
125481
|
+
* (D1034). Admin-ui keys a section title off this list; a target without one
|
|
125482
|
+
* lands in the section its cardinality implies.
|
|
125483
|
+
*/
|
|
125484
|
+
var CUSTOMIZE_TARGET_SECTIONS = ["oscillation-axes"];
|
|
123661
125485
|
//#endregion
|
|
123662
125486
|
//#region src/composition/customize/scalar-status.ts
|
|
123663
125487
|
function projectScalarAssignment(input) {
|
|
@@ -136701,4 +138525,4 @@ function brokerLinkPortsOver(deps) {
|
|
|
136701
138525
|
};
|
|
136702
138526
|
}
|
|
136703
138527
|
//#endregion
|
|
136704
|
-
export { ACCESSORY_LABEL, ACCESS_ROLES, ACTION_RUN_MAX_MS, ACTION_RUN_TIMEOUT_MS, ACTION_RUN_TRANSPORT_MARGIN_MS, ACTION_TARGET_INVALIDATION_EVENTS, ACTIVE_CRITERIA, ACTUATOR_METHODS, ACTUATOR_TEMPLATE_IDS, ADMIN_SCOPE, AGENT_MDNS_QUERY_NAME, AGENT_MDNS_SERVICE_TYPE, AGENT_MDNS_TXT_KEYS, AGGREGATE_REDUCERS, AGGREGATE_THROUGHPUT_BY_KIND, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, ALL_METHOD_ACCESS, APPEARANCE_BIN_COUNT, APPEARANCE_BLOCKS, APPEARANCE_DESCRIPTOR_VERSION, APPEARANCE_RESOLVES_AMBIGUITY_DEFAULT, APPLE_SA_TO_MACRO, APPLIANCE_EXPORT, APP_AUTH_CALLBACK_MAX_LENGTH, APP_AUTH_CALLBACK_URLS, APP_FLOW_DEFAULT_REDIRECT, APP_FLOW_REFUSAL_MESSAGES, APP_FLOW_STATE_PREFIX, APP_REFUSED_PATH, APP_START_REFUSAL_MESSAGES, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT, ARITHMETIC_OPS, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_CHUNK_FORMATS, AUDIO_GRADIENT_ALPHAS, AUDIO_MACRO_LABELS, AUDIO_NOT_CLASSIFIED_REASONS, AUDIO_PRESETS, AUDIO_SCALE_EPOCH_ISO, AUDIO_SCALE_EPOCH_MS, AUTOMATIC_HUB_ADDRESS_FLAGS, AUTOMATION_LEAF_CATALOG, AUTOMATION_LEAF_CATEGORIES, AUTOMATION_LEAF_KINDS, AUTO_SHARE_HEADROOM, AUTO_TUNE_FAMILY, AcceleratorComputeSchema, AcceleratorKindSchema, AccessoriesStatusSchema, AccessoryKind, ActionEntrySchema, ActionError, ActionErrorCodeSchema, ActionInputSchema, ActionLinksSchema, ActionMinDelaySecSchema, ActionRunChangedSchema, ActionRunOriginSchema, ActionRunOutcomeSchema, ActionRunResultSchema, ActionSourceKindSchema, ActionStatusSchema, ActionStepSchema, ActionTargetResolver, ActionTargetSchema, ActionVariableSchema, ActionVariableTypeSchema, ActionVariableValueSchema, ActiveCriterionSchema, AddBrokerInputSchema, AddRetrainFrameFromRecordingResultSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonMigrationDefinitionError, AddonMigrationsBlockedError, AddonPageDeclarationSchema, AddonPageInfoSchema, AddonRoutesScopeSchema, AdminLinkTargetEnum, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionCandidateResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, AdoptionJobSchema, AdoptionJobStateSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, AdoptionOutcomeSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AggregateReducerSchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertEpisodePayloadSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, AnalyticsLtsSeriesSchema, AppFlowPurposeSchema, AppLoginPathSchema, AppPageLangSchema, AppleFmAvailabilitySchema, AppleFmUnavailableReasonSchema, ApplianceRunDetailSchema, ArchiveEntrySchema, ArchiveManifestSchema, ArchiveSqliteSnapshotSchema, ArchivedDebugNoteQueryInputSchema, ArchivedDebugNoteSchema, ArithmeticHelperSpecSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioAttachDeviceInputSchema, AudioAttachDeviceResultSchema, AudioChunkFormatSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioClassifyOutcomeSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioDetachDeviceResultSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AudioStreamPickSchema, AuthResultSchema, AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, AutoTuneOptionsSchema, AutoTunePhaseResultSchema, AutoTunePlanSchema, AutoTuneWarningSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationCapStepSchema, AutomationConditionOperatorSchema, AutomationConditionTraceNodeSchema, AutomationControlStatusSchema, AutomationRecipeSchema, AutomationRunModeSchema, AutomationRunOutcomeSchema, AutomationRunTraceSchema, AutomationRunVerdictSchema, AutomationStateDocSchema, AutomationStepTraceSchema, AutomationTriggerTraceSchema, AutomationWaitStepSchema, AutomationWhenSchema, AvailableIntegrationTypeSchema, BASE_DEVICE_CAPS, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BATTERY_UNREACHABLE_AFTER_MS, BENCH_ROOT_STEP_ID, BINARY_AGGREGATES, BIRTH_DECISION_DEFAULT_LIMIT, BOOT_RECOVERY_BACKOFF_MS, BUILTIN_REMOTE_COMPONENTS, BUILTIN_RESULT_KINDS, BackgroundRunRegistry, BacklightModeSchema, BackupArchiveEncryptionSchema, BackupDestinationInfoSchema, BackupEncryptionStatusSchema, BackupEntrySchema, BackupRunPhaseSchema, BackupRunSchema, BackupRunStateSchema, BackupTriggerResultSchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatchTooLargeError, BatteryStatusSchema, BecomesOperatorSchema, BecomesWatch, BinaryStatusSchema, BirthDecisionCropSourceSchema, BirthDecisionQueryInputSchema, BirthDecisionRecordSchema, BirthDecisionVerdictSchema, BoardKeyFailureReasonSchema, BoundingBoxSchema, BrightnessStatusSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, BucketAccumulator, BulkRecordSchema, CALENDAR_PERIODS, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAMERA_SENSORS_NOT_LOADED, CAMERA_SENSORS_SETTINGS_KEY, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAMERA_TRIGGER, CAMSTACK_APP_LINK_ORIGIN, CAMSTACK_EVENT_PREFIX, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_COMMAND_ORIGIN_CONTEXT_KEY, CAP_CUSTOMIZE_CATALOG, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, CAP_RUNTIME_FIELD_UNITS, CAP_VOCABULARY, CAP_VOCABULARY_BY_NAME, CATALOG_LANGS, CIVIL_TWILIGHT_ALTITUDE_DEG, CLASS_MAP_MACRO_TARGETS, CLIP_BROKER_PACED_RATES, CLIP_LABEL_EVENT_FETCH_LIMIT, CLIP_PLAYBACK_OPTIONS, CLIP_REALTIME_SOURCE_RATES, CLIP_REASON_HEADER_MAX, CLIP_SEARCH_STRICTNESS, CLIP_STILL_DISPOSITION_HEADER, CLIP_STILL_REASON_CODE_HEADER, CLIP_STILL_REASON_HEADER, CLIP_STREAM_SOURCE_RATES, CLIP_STREAM_TRANSPORT_HEADER, CLIP_STRICTNESS_FACTOR, CLIP_VECTOR_INDEX_PATTERN, CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, CLUSTER_STEP_SETTING_FIELDS, COCO_80_LABELS, COCO_TO_MACRO, COMPOSED_DEVICE_STABLE_ID_PREFIX, COMPOSED_ITEM_FIXED_FIELDS, COMPOSER_ADDON_ID, COMPOSER_RUNNER_ID, COMPOSITION_EVENT_CATEGORY, COMPOSITION_ITEM_ARRAY_PATH, COMPOSITION_ITEM_KEY_RE, COMPOSITION_LINK_KINDS, COMPOSITION_TARGET_CAP_NAMES, CONNECTION_TEST_TIMEOUT_MS, CONTAINER_CHILD_PRIORITY, CONTAINER_PRIMARY_CHILD_RULES, CORAL_DEFAULT_MODEL_ID, CORE_BLOCKS_ADDON_ID, CORE_BLOCK_ADDON_PREFIX, CORE_ULTRA_265K_IGPU_CLOCK_MHZ, CORE_ULTRA_265K_IGPU_EU, CREDENTIAL_TOKEN_AUDIENCE, CREDENTIAL_TOKEN_KIND, CROP_CLASS_FLOORS, CROP_SUPPLY_SOURCES, CROP_SUPPLY_STEP_IDS, CUSTOMIZATION_BLOCK_NAME_PREFIX, CUSTOMIZE_APPLY_AUTHORITY_KINDS, CUSTOMIZE_CARDINALITIES, CUSTOMIZE_EVENT_SHAPES, CalendarColorSchema, CalendarEntrySchema, CalendarEventSchema, CalendarInfoSchema, CalendarListEventsInputSchema, CalendarPreferenceEntrySchema, CalendarPreferencesSchema, CalendarSetPreferenceInputSchema, CalendarSourceKindSchema, CalendarWindowSchema, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionSourceSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraOccupancySnapshotForDeviceSchema, CameraOwnMotionSchema, CameraRawLevelSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSensorAttachmentSchema, CameraSensorEntrySchema, CameraSensorModeSchema, CameraSensorRefSchema, CameraSensorsConfigSchema, CameraSensorsNotEnforcedSchema, CameraSensorsNotForwardedSchema, CameraSensorsStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CameraSwitchWarningSchema, CamstackError, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CapacityFallbackSchema, CapacitySourceSchema, CarbonMonoxideStatusSchema, CatalogFileSchema, CatalogLangSchema, ChargingStatus, ClaimOutcomeSchema, ClaimsListingSchema, CleanupDeletedDevicesResultSchema, ClearTrackRelationInputSchema, ClearTrackRelationResultSchema, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipBytesOfferSchema, ClipBytesSchema, ClipExportFailureSchema, ClipModelMetaSchema, ClipPlaybackOptionsSchema, ClipPlaybackSchema, ClipSchema, ClipSearchStrictnessSchema, ClipSourceAvailabilitySchema, ClipSourceSchema, ClipStillDispositionSchema, ClipStillRefusalCodeSchema, ClipStreamAudioReasonSchema, ClipStreamAudioSchema, ClipStreamDialSchema, ClipWakeSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, ClusterModelChoiceSchema, ClusterUpdateBlockerSchema, ClusterUpdateFailureReasonSchema, ClusterUpdateJobSchema, ClusterUpdateJobStateSchema, ClusterUpdateOptionsSchema, ClusterUpdatePlanSchema, ClusterUpdateStepKindSchema, ClusterUpdateStepSchema, ClusterUpdateStepStatusSchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, CommandOriginClaimSchema, CompleteEnrollmentInputSchema, CompleteEnrollmentOutputSchema, CompleteEnrollmentResultSchema, ComposableCapabilitiesSchema, ComposableCapabilitySchema, ComposableFieldSchema, ComposerApplyInputSchema, ComposerApplyResultSchema, ComposerBlockSchema, ComposerBlockVerdictSchema, ComposerUnreadableBlockSchema, CompositionAggregateSourceSchema, CompositionBindingSchema, CompositionBlockInputSchema, CompositionBlockStateSchema, CompositionCodeSourceSchema, CompositionCommandTargetSchema, CompositionCustomizationReadSchema, CompositionEventPlanSchema, CompositionExistingTargetSchema, CompositionExpressionSourceSchema, CompositionExtensionCommandSchema, CompositionFeatureModeSchema, CompositionFeaturePlanSchema, CompositionFeatureSchema, CompositionFieldItemSchema, CompositionFieldKindSchema, CompositionFieldPlanSchema, CompositionFieldReadSchema, CompositionFieldRoleSchema, CompositionFieldSourceSchema, CompositionFieldStateKindSchema, CompositionFieldStateSchema, CompositionFieldsFeatureSchema, CompositionForwardArgSchema, CompositionForwardCommandSchema, CompositionFromSourceSchema, CompositionGetReadSchema, CompositionGraphError, CompositionItemEntrySchema, CompositionListReadSchema, CompositionLiteralBindingSchema, CompositionNewTargetSchema, CompositionPassthroughFeatureSchema, CompositionProblemCodeSchema, CompositionProblemSchema, CompositionRunStatusSchema, CompositionSchema, CompositionSeriesSourceSchema, CompositionSourceRefSchema, CompositionStateReadSchema, CompositionTargetSchema, CompositionUnavailableModeSchema, CompositionValidationSchema, CompositionViewSchema, ConditionMirror, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableFormSchema, ConsumableItemSchema, ConsumableKindSchema, ConsumableLevelSchema, ConsumableRemainingKindSchema, ConsumableRemainingSchema, ConsumableStatusSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileInputSchema, CoreBlockCompileResultSchema, CoreBlockFilesSchema, CoreBlockInputFieldsSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockSourceSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateUserInputSchema, CredentialScopeSchema, CredentialTokenClaimsSchema, CurrentAutomationRecipeSchema, CustomActionInputSchema, CustomModelDescriptorSchema, CustomizeAssignmentStatusSchema, DATABASE_SNAPSHOT_PARTIAL_SUFFIX, DATABASE_SNAPSHOT_SUFFIX, DATABASE_SNAPSHOT_TIMEOUT_MS, DATAPLANE_SECRET_HEADER, DATA_STORE_DATABASES, DAYS_PER_WEEK, DAY_MS, DAY_NAMES, DEBUG_CHANNEL_PREFIX, DEBUG_WATCH_HARD_CAP_MS, DEBUG_WATCH_REARM_EVERY_MS, DEBUG_WATCH_WINDOW_MS, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_CAMERA_FPS, DEFAULT_CAMERA_SENSOR_MODE, DEFAULT_CATALOG_LANG, DEFAULT_CLUSTER_STEP_MODELS, DEFAULT_CLUSTER_STEP_SETTINGS, DEFAULT_CORE_BLOCK_ENTRY, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_DISPLAY_PREFERENCE, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, DEFAULT_HEADROOM, DEFAULT_HISTORY_RETENTION, DEFAULT_HOLD_OVERRIDE, DEFAULT_MAX_HOLD_ATTEMPTS, DEFAULT_MAX_LATE_MS, DEFAULT_MIN_LANDMARK_FACE_SIZE_PX, DEFAULT_MIN_SESSIONS_PER_DEVICE, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_OVERLAY_LAYERS, DEFAULT_POOL_MEMORY_POLICY, DEFAULT_RECORDING_PROFILES, DEFAULT_RETENTION, DEFAULT_RUNTIME_STATE_DURABILITY, DEFAULT_SESSION_LOST_DEBOUNCE_MS, DEFAULT_SESSION_PLACEMENT_POLICY, DEFAULT_SHARE_SOURCE, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DEFAULT_TOKEN_EXPIRY, DEFAULT_TRACE_KEEP, DEFAULT_VIEWER_SCOPE, DEFINITIVE_DEVICE_REFUSALS, DERIVATIVE_UNITS, DERIVED_CAMERA_SILENCED_CAP_NAMES, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_LABEL_SOURCES, DETECTION_MACRO_CLASSES, DETECTION_PIPELINE_CAP_NAME, DETECTOR_ACCURACY, DETECTOR_PERF, DEVICE_ALIAS_MAX_LENGTH, DEVICE_ALIAS_PATTERN, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_CERT_RENEW_WINDOW_DAYS, DEVICE_CERT_SIGNATURE, DEVICE_CERT_VALIDITY_DAYS, DEVICE_CHILDREN_BATCH_MAX, DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE, DEVICE_DO_ACTIONS, DEVICE_ENROLLMENT_TTL_MS, DEVICE_FEATURE_REQUIREMENTS, DEVICE_HISTORY_ENERGY_KEY, DEVICE_HISTORY_ORPHAN_DELETE_MAX, DEVICE_HISTORY_ORPHAN_LIST_MAX, DEVICE_HISTORY_QUERY_MANY_MAX_ITEMS, DEVICE_ID_FIELD, DEVICE_NONCE_TTL_MS, DEVICE_PROFILES, DEVICE_RAMP, DEVICE_REFRESH_REFUSAL_PREFIX, DEVICE_RESTORE_RETRY_CONCURRENCY, DEVICE_RESTORE_RETRY_DELAYS_MS, DEVICE_RUNS_MAX_PAGE, DEVICE_SAN_CREDENTIAL_PREFIX, DEVICE_SAN_USER_PREFIX, DEVICE_SCOPED_CAPS, DEVICE_SEARCH_DEFAULT_LIMIT, DEVICE_SEARCH_MAX_LIMIT, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_SIGNATURE_MESSAGE_VERSION, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TEMPLATE_BUDGET_MS, DEVICE_TEMPLATE_FILTERS, DEVICE_TEMPLATE_MAX_LENGTH, DEVICE_TEMPLATE_MAX_OUTPUT, DEVICE_TEMPLATE_NOW_ALIAS, DEVICE_TEMPLATE_REFUSAL_REASONS, DEVICE_TEMPLATE_THIS_ALIAS, DEVICE_TEMPLATE_TRACE_REASONS, DEVICE_TEMPLATE_UNAVAILABLE, DEVICE_TEMPLATE_VALUES_CAP, DEVICE_TOMBSTONE_RETENTION_MS, DEVICE_TRANSITIONS_MAX_PAGE, DEVICE_TRANSITIONS_RECORD_BATCH_MAX, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_DO_CAPS, DEVICE_TYPE_INFO, DISPLAY_PREFERENCES, DISPLAY_PRESETS, DOORBELL_RISE_DEBOUNCE_MS, DRAFT_KINDS, DataStoreDatabaseSchema, EngineInfoSchema as DataStoreEngineInfoSchema, DatabaseSnapshotRequestSchema, DatabaseSnapshotResultSchema, DatabaseSnapshotTableSchema, DatabaseSnapshotTargetsSchema, DatabaseSnapshotWrittenSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DebugInterest, DebugWatchTable, DeclarationRefusedError, DeclareCollectionInputSchema, DeclareKindResultSchema, DeclaredDevices, DecodedAudioChunkSchema, DeleteIntegrationResultSchema, DeliveryParamSchema, DeliveryParamValueSchema, DerivativeHelperSpecSchema, DesktopAppStatusSchema, DetailCropConventionSchema, DetectionCatalogClassMapSchema, DetectionSourceSchema, DetectionSourcesSchema, DetectionSubjectSchema, DetectionTriggerFilter, DeviceAdminLinkSchema, DeviceAliasSchema, DeviceCaStatusSchema, DeviceCertificateLoginMethodSchema, DeviceCertificateSettingsSchema, DeviceChallengeResultSchema, DeviceChallengeSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceCredentialSchema, DeviceCredentialStatusSchema, DeviceDataEntrySchema, DeviceEnrollProofSchema, ExposeInputSchema as DeviceExportExposeInputSchema, InstancePinSchema as DeviceExportInstancePinSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceHistoryKindSchema, DeviceHistoryOrphanDeleteRefusalSchema, DeviceHistoryOrphanReasonSchema, DeviceHistoryProducerKindSchema, DeviceHistoryRefusalReasonSchema, DeviceHistoryResolutionSchema, DeviceHistoryStatusSchema, DeviceHistorySubjectSchema, DeviceInfoSchema, DeviceModelChoiceSchema, DeviceNetworkStatsSchema, DevicePlatformSchema, DeviceProofInputSchema, DeviceRecommendationSchema, DeviceRefusalReasonSchema, DeviceRefusalSchema, DeviceRemovedInputSchema, DeviceRemovedResultSchema, DeviceRestoreRetryScheduler, DeviceRole, DeviceRunDetailSchema, DeviceRunEnergyMethodSchema, DeviceRunKindSchema, DeviceRunOutcomeSchema, DeviceRunPhaseSchema, DeviceRunSchema, DeviceRunSourceSchema, DeviceRunStateSchema, DeviceRuntimeState, DeviceSearchFacetIntegrationSchema, DeviceSearchFacetValueSchema, DeviceSearchFacetsSchema, DeviceSearchFiltersSchema, DeviceSearchInputSchema, DeviceSearchItemSchema, DeviceSearchRequiresSchema, DeviceSearchResultSchema, DeviceSelectorSchema, DeviceSignaturePurposeSchema, DeviceStatusSchema, DeviceTemplateRefusalSchema, DeviceTemplateRenderSchema, DeviceTemplateSchema, DeviceTemplateThisDeviceSchema, DeviceTemplateTraceEntrySchema, DeviceTemplateValueSchema, DeviceTombstoneSchema, DeviceTransitionSchema, DeviceType, DeviceValueOptionSchema, DiagnosticIdSchema, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DiscoveryHitSchema, DiscoveryModeSchema, DiscoveryObservationSchema, DiscoveryProposalBodySchema, DiscoveryProposalSchema, DishwasherAccessSchema, DishwasherAvailabilitySchema, DishwasherOperationStateSchema, DishwasherOptionDescriptorSchema, DishwasherOptionsSchema, DishwasherProgramSchema, DishwasherStateSchema, DishwasherStatusSchema, DishwasherValueSchema, DiskReconcileJobSchema, DisposerChain, DoNotDisturbStatusSchema, DoorbellPressEventSchema, DoorbellStatusSchema, DraftKindSchema, DraftSiteDeviceSchema, DraftSiteSchema, EMBEDDING_MODEL_FAILED, EMBEDDING_REQUIREMENTS_FAILED, EMBEDDING_REQUIREMENTS_UNAVAILABLE, EMPTY_AUTOMATION_STATE, EMPTY_REMOTE_ASSUMED_STATE, EMPTY_REMOTE_CONFIG, ESTIMATE_COMPUTE_RATIO_MAX, ESTIMATE_COMPUTE_RATIO_MIN, EVENTFUL_CAP_NAMES, EVENT_DENSITY_BATCH_MAX, EVENT_KIND_BY_CAP, EVENT_KIND_LABELS, EVENT_KIND_LABEL_KEYS, EVENT_LEAF_ID_RE, EVENT_OWNER_TYPES, EVENT_PAD_MS, EVENT_TAXONOMY, EXPORT_DENSE_MAX_RANGES, EXPORT_INSTANCE_UNKNOWN, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EXPRESSION_OUTPUTS, EXTENSION_HOST_DEVICE_TYPES, EXTENSION_SLOTS, EXTENSION_SLOT_IDS, EXTENSION_SLOT_LISTING_METHOD, EXTENSION_SLOT_REF_SEPARATOR, EffectiveDeviceShareSchema, EffectiveNodeShareSchema, EffectiveSharesSchema, EffectiveTuningSchema, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingFailedModelSchema, EmbeddingFailedRequirementSchema, EmbeddingInfoSchema, EmbeddingRefusalCodeSchema, EmbeddingResultSchema, EmbeddingTowerSchema, EncodeProfileSchema, EnrichedWidgetMetadataSchema, EnrollSelfInputSchema, EntryDescriptorSchema, EntryKindInfoSchema, EntryViewSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, ErrorCodeSchema, ErrorI18nPayloadSchema, EventCategory, EventDensityBucketSchema, EventDensityForDeviceSchema, EventEmitterStatusSchema, EventFireSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventOwnerTypeSchema, EventSourceType, ExportBytesSchema, ExportClipSubjectSchema, ExportDenseRangeSchema, ExportDenseSchema, ExportDownloadSchema, ExportEntityKindSchema, ExportEntityRefSchema, ExportFootageSubjectSchema, ExportInstanceSchema, ExportInstanceUnknownError, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportSubjectSchema, ExportTimelapseSchema, ExposeEntityInputSchema, ExposedDeviceSchema, ExposedEntitySchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionHelperSpecSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, ExtensionCandidateSchema, ExtensionCandidatesSchema, ExtensionSetResultSchema, ExtensionSetSlotInputSchema, ExtensionSlotActivationSchema, ExtensionSlotIdSchema, ExtensionSlotRefInputSchema, ExtensionSlotRowSchema, ExtensionSlotSourceSchema, ExtensionSlotStateSchema, ExtensionSlotUnreachableSchema, ExtensionSlotValueSchema, ExtensionSourceAvailabilitySchema, ExtensionSourceHealthSchema, ExtensionSourceSchema, ExternalIdentityKeySchema, ExternalIdentitySchema, FACE_RESCORE_INTERVAL_FIELD, FACE_RESCORE_INTERVAL_KEY, FACE_RESCORE_INTERVAL_MIN_RUNNING, FACE_RESCORE_SECTION_ID, FAN_CAPTURE_FIELDS, FAN_CAPTURE_GROUPS, FAN_OUT_CONCURRENCY, FAN_PRESETS_MAX, FAN_PRESETS_REFUSALS, FAN_PRESET_STEPS_MAX, FEEDER_EXAMPLE_ADDON_ID, FEEDER_EXAMPLE_HA_DEVICE_ID, FEW_SHOT_COUNT, FFMPEG_PATH_ENV, FIRST_LEVEL_MACRO_CLASSES, FORBIDDEN_MESSAGE_PREFIX, FORWARD_INPUT_KEY, FULL_IMAGE_BBOX, FailureContributionSchema, FailureCounters, FailureReasonCountSchema, FanCaptureFieldSchema, FanCaptureGroupSchema, FanCaptureItemSchema, FanCaptureOmissionSchema, FanControlStatusSchema, FanDirectionSchema, FanPresetApplyResultSchema, FanPresetCaptureResultSchema, FanPresetSchema, FanPresetStepResultSchema, FanPresetsRefusalSchema, FanPresetsSetResultSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FieldClaimModeSchema, FieldClaimSchema, FilterRequiredError, FloodStatusSchema, Fmp4BoxSplitter, ForeignSecretMarkerError, FrameHandleSchema, FrameInputSchema, FrameLazyCountersSchema, FrameLazyMetricsSchema, G711_SCALE_CORRECTION_DB, GRAMMAR_MAX_LINES, GROUP_TEMPLATES, GROUP_TEMPLATE_IDS, GasStatusSchema, GetLoggingSettingsInputSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, GridLayoutPatchSchema, GridLayoutViewSchema, GroupActiveSchema, GroupCommandResultSchema, GroupCommandsSchema, GroupHelperSpecSchema, GroupStatusSchema, GroupTemplateIdSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HEAT_PUMP_CIRCUIT_KINDS, HERO_ANIMATIONS, HERO_BACKGROUNDS, HERO_CAP_CONTRIBUTIONS, HERO_CAP_COVERAGE, HERO_LAYOUT_BY_TYPE, HERO_LAYOUT_DEFAULT, HERO_LOOK_BY_ROLE, HERO_LOOK_BY_TYPE, HERO_LOOK_DEFAULT, HERO_ROW_IDS, HERO_ROW_LABELS, HERO_ROW_MODELS_MAX, HERO_SCENES, HERO_SCENE_BY_ROLE, HERO_SCENE_BY_TYPE, HERO_SCENE_MODES, HERO_STATES, HERO_TONES, HF_BASE_URL, HF_REPO, HISTORY_BUCKET_MS, HISTORY_CATALOG, HISTORY_DEFAULT_MIN_INTERVAL_MS, HISTORY_FAST_MS, HISTORY_ITEM_CATALOG, HISTORY_NONE_CAPS, HISTORY_SLOW_MS, HISTORY_TIERS, HISTORY_UNIT_LABELS, HOURS_PER_DAY, HOUR_MS, HUB_ADDRESS_ROLES, HUB_ID_PATTERN, HUB_MDNS_QUERY_NAME, HUB_MDNS_ROLE, HUB_MDNS_SERVICE_TYPE, HUB_MDNS_TXT_KEYS, HUB_VIEWER_MOUNT, HWACCEL_OPTIONS, HardwareClassIdSchema, HealthStatusSchema, HeatPumpCircuitKindSchema, HeatPumpCircuitSchema, HeatPumpEnergySchema, HeatPumpOptionSettingSchema, HeatPumpPowerSchema, HeatPumpRangeSettingSchema, HeatPumpStatusSchema, HeatPumpSystemSchema, HeatPumpTemperaturesSchema, HeatingValveStatusSchema, HelperMemberSchema, HelperSpecSchema, HeroLayoutRowsSchema, HeroRowModelSchema, HfModelResolutionSchema, HistoryPointSchema, HistoryResolutionEnum, HoldCore, HoldOverrideSchema, HoldSpecSchema, HoldTargetStatusSchema, HoldTraceSchema, HoldTracker, HttpsLeafInfoSchema, HubAddressRoleSchema, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ICON_CATALOG_SOURCE, ICON_CATEGORIES, ICON_ENTRIES, ICON_KEYS, ICON_VIEWER_MODULES, IDLE_ACTION_STATUS, INFERENCE_DEVICE_EXCLUSION_REASONS, INITIAL_PULSE, INITIAL_SPAN, INTEGRAL_OUTPUTS, INTERNAL_ACTION_PREFIX, INVERTIBLE_CAPS, IR_TIMINGS_MAX, IconKeySchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, ImportModelBundleInputSchema, ImportModelBundleResultSchema, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, InstallDesktopUpdateReasonSchema, InstallDesktopUpdateResultSchema, InstalledPackageSchema, InstanceInUseError, IntegralHelperSpecSchema, IntegrationInstanceDescriptionSchema, IntegrationInstanceDiscoverySchema, IntegrationInstanceIdSchema, IntegrationInstanceKindSchema, IntegrationInstanceLinkSchema, IntegrationInstanceModeSchema, IntegrationInstancePatchSchema, IntegrationInstanceRoleSchema, IntegrationInstanceSchema, IntegrationInstanceStatusSchema, IntegrationLiteSchema, IntegrationSessionReporter, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, InvalidRecordError, IrCodecError, IrMediumSchema, IrPayloadSchema, IrSendResultSchema, IrTimingsSchema, IrTransmitterInfoSchema, KEYCHAIN_MAX_REFS_PER_CALL, KEYCHAIN_RESET_CONFIRMATION, KEYCHAIN_RESET_TRIGGER_ACTOR, KNOWN_CAP_NAMES, KWH_PER_WATT_MS, KeptReasonSchema, KeyEventSchema, KeychainAdminSecretSchema, KeychainAuditActionSchema, KeychainAuditEntrySchema, KeychainKeySourceKindSchema, KeychainKeySourceSchema, KeychainResetRecordSchema, KeychainResolveEntrySchema, KeychainResolveResultSchema, KeychainSecretMetaSchema, KeychainSecretUsageSchema, KeychainStateSchema, KeychainStatusSchema, KeychainUnavailableReasonSchema, KeychainWriteRefusedError, LABEL_SUPPLY_MACRO, LABEL_SUPPLY_STEP_IDS, LABEL_SUPPLY_VOCABULARIES, LATER_PHASE, LAYOUT_EDIT_REFUSALS, LEGACY_READ_ONLY_CONFIG_KEY, LIGHT_SHARED_CAPS, LINKED_DEVICES_SLOT, LINKED_LABEL_STEP_PREFIX, LLM_PROFILE_KIND_PATTERN, LOAD_CONTRIBUTION_ATTRIBUTIONS, LOAD_CONTRIBUTION_ROLES, LOCAL_DATE_PATTERN, LOCATION_DESCRIPTION_MAX, LOCATION_ICON_FALLBACK, LOG_CHANNEL_TICK_MS, LOG_LEVEL_RANK, LTS_SCOPE_CLASS_SEPARATOR, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LatencySourceSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LedgerWalkDeviceReportSchema, LedgerWalkInputSchema, LedgerWalkRefusalSchema, LedgerWalkReportSchema, LedgerWalkSkipCountsSchema, LedgerWalkSkipReasonSchema, LegacyAutomationRecipeSchema, LegacyConditionSchema, LegacyTriggerSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LinkedDevicesSlotValueSchema, ListNodeBenchmarkResultsInputSchema, ListTrackRelationsInputSchema, ListTrackRelationsResultSchema, LiveViewerCountSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmDownloadProgressSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmListModelsErrorCodeSchema, LlmListModelsInputSchema, LlmListModelsResultSchema, LlmModelFeaturesSchema, LlmModelInfoSchema, LlmNodeModelSchema, LlmProfileFieldSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmProviderConfigSchema, LlmProviderWidgetSchema, LlmRefusalSourceSchema, LlmRetryPolicySchema, LlmRuntimeAppleCompleteInputSchema, LlmRuntimeCancelInputSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmTimeoutDefaults, LlmUsageRollupSchema, LlmUsageSchema, LoadBalancingSharesInputSchema, LoadContributionSchema, LocateSegmentResultSchema, LocationDescriptionAssignmentSchema, LocationIconAssignmentSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogChannelApplyResultSchema, LogChannelDescriptorSchema, LogChannelGate, LogChannelLevelSchema, LogChannelRegistry, LogChannelWindowPatchSchema, LogChannelWindowSchema, LogChannelWindowStateSchema, LogEntrySchema, LogLevelSchema, LogReadCapabilitiesSchema, LogReadEntrySchema, LogReadQuerySchema, LogReadResultSchema, LogStreamEntrySchema, LoggingEffectiveSchema, LoggingExplicitSchema, LoggingLevelLayerSchema, LoggingLevelSourceSchema, LoggingScopeKindSchema, LoggingSettingsPatchSchema, LoggingSettingsStateSchema, LoginMethodContributionSchema, LoginStageEnum, LtsBucketSchema, MACRO_LABELS, MASK_EMITTING_POSTPROCESSORS, MASK_SUPPLY_STEP_IDS, MAX_ARCHIVED_DEBUG_NOTES, MAX_BIRTH_DECISION_RECORDS, MAX_BIRTH_LATENCY_PROXY_MS, MAX_CAMERA_SENSORS, MAX_CLIP_EVENT_IDS, MAX_CLIP_LABELS, MAX_COMPONENT_BUTTONS, MAX_COMPOSITION_CODE_LENGTH, MAX_COMPOSITION_FEATURES, MAX_COMPOSITION_FIELDS_PER_FEATURE, MAX_COMPOSITION_ITEMS, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, MAX_HELPER_MEMBERS, MAX_HOLD_ATTEMPTS_LIMIT, MAX_KEYS, MAX_LAYOUT_GROUPS, MAX_LAYOUT_SPAN, MAX_REASONS_PER_KEY, MAX_REMOTE_BINDINGS, MAX_REMOTE_CHANNEL_DIGITS, MAX_REMOTE_CUSTOM_BUTTONS, MAX_REMOTE_SOURCES, MAX_REMOTE_SOURCE_STEPS, MAX_REQUEUED_BUCKETS_PER_SERIES, MAX_SENSOR_TRIGGER_DEVICES, MAX_STEP_DEVICE_OUTCOMES, MAX_TRACE_ARGS, MAX_TRACE_ARG_LENGTH, MAX_TRACE_KEEP, MAX_TRACK_DEBUG_NOTE_LEN, MAX_TRACK_PURITIES, MAX_TRACK_RELATIONS, MAX_WHEN_DEPTH, MAX_WHEN_LEAVES, MEDIA_OWNER_TYPES, MEDIA_PLAYER_MAX_STEPS, MEDIA_PRESENCE_OWNER_KINDS, METHOD_ACCESS_MAP, METHOD_DEVICE_SELECTORS, MIGRATION_API_V1_METHODS, MIGRATION_API_VERSION, MIGRATION_ID_PATTERN, MINUTES_PER_DAY, MINUTE_MS, MIN_CUSTOM_MINUTES, MIN_RUN_MS, MIN_SCRUBBED_LENGTH, MIN_SESSIONS_PER_DEVICE_RANGE, MODEL_FORMATS, MODEL_HOSTING, MODEL_PROVIDER_IDS, MOTION_CLOSE_AFTER_MS, MOTION_CROP_DISPATCH_KEY, MOTION_CROP_MAX_REGIONS, MOTION_CROP_MOTION_PAD, MOTION_CROP_TRACKED_PAD, MOTION_SOURCE_LABELS, MOTION_SPAN_TIMEOUT_MS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelExtraFileSchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileKindEnum, MediaFileRefSchema, MediaFileSchema, MediaLocationCensusInputSchema, MediaLocationCensusRowSchema, MediaLocationCensusSchema, MediaPlayerAssumedFieldSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStateSourceSchema, MediaPlayerStatusSchema, MediaPresenceOwnerKindSchema, MediaRelocateModeSchema, MeshLeafInfoSchema, MeshPeerSchema, MeshStatusSchema, MeterStatusSchema, MethodAccessSchema, MigrateDeviceResultSchema, MigrateSwitchOutcomeSchema, MigrateSwitchReportSchema, MigrationApiInfoSchema, MigrationBodyKindSchema, MigrationCatalogueSchema, MigrationCycleError, MigrationDryRunResultSchema, MigrationEditSchema, MigrationIdSchema, MigrationLedgerEntrySchema, MigrationLevelSchema, MigrationMetaSchema, MigrationOnFailureSchema, MigrationOwnerResultSchema, MigrationOwnerStepSchema, MigrationPendingEntrySchema, MigrationPlanSchema, MigrationProcedureResultSchema, MigrationScopeSchema, MigrationStatusSchema, MigrationStoreSchema, MinVersionSchema, ModelBundleFileSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatPrecisionSchema, ModelFormatsSchema, ModelLicenseSchema, ModelOnDiskStateSchema, ModelPinChangeSchema, ModelProviderIdSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionTriggeredBySchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, BrokerInfoSchema as MqttBrokerInfoSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, N100_IGPU_CLOCK_MHZ, N100_IGPU_EU, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SCENE_BUDGET_FIELD, NATIVE_LEASE_SCENE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, NAVIGATION_ACTION_CATALOG, NAVIGATION_LIGHT_LEVEL_MAX, NAVIGATION_LIGHT_LEVEL_MIN, NC_ALARM_CONTROLLABLE_CAPS, NC_ALARM_DEFAULT_PROFILE_ID, NC_ALARM_DEFAULT_PROFILE_NAME, NC_ALARM_DEFAULT_TRIGGERED_DURATION_SEC, NC_ALARM_DELAY_FIELDS, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_NONBLOCKING_MAX, NC_ALARM_NOTIFY_FIELDS, NC_ALARM_OPENING_EVENT_KINDS, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_DEFAULT_DELAYS, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_AUDIO_CONFIRM_HITS_DEFAULT, NC_AUDIO_CONFIRM_HITS_MAX, NC_AUDIO_CONFIRM_HITS_MIN, NC_AUDIO_CONFIRM_WINDOW_MAX_SEC, NC_AUDIO_CONFIRM_WINDOW_MIN_SEC, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT, NC_AUDIO_DBFS_FLOOR, NC_AUDIO_DB_MAX, NC_AUDIO_DB_MIN, NC_AUDIO_DB_OFFERED, NC_AUDIO_DB_STEP, NC_AUDIO_DEFAULTS, NC_AUDIO_HIT_PERCENT_MAX, NC_AUDIO_HIT_PERCENT_MIN, NC_AUDIO_SAMPLING_MAX_SEC, NC_AUDIO_SAMPLING_MIN_SEC, NC_AUDIO_SEED, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BASE_CONDITION_KEYS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CAMERA_SCOPE_CAP_NAME, 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_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_LEGACY_SYSTEM_EVENT_KINDS, NC_MAX_PER_TRACK_IMMEDIATE, NC_MEDIA_IMAGE_MODES, NC_OCCUPANCY_DEFAULTS, NC_RULE_CLEARABLE_KEYS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_RETIRED_CLEAR_KEYS, NC_RULE_SECTIONS, NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_TRANSITION_MEANINGS, NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SERVER_PACKAGE_NAME, NC_SNOOZE_MAX_MINUTES, NC_STATE_SUMMARY_SECTION_IDS, NC_SYSTEM_DELIVERY, NC_SYSTEM_EVENT_CLASS_SPECS, NC_SYSTEM_EVENT_CONDITION_FILTER_KEYS, NC_SYSTEM_EVENT_FAMILIES, NC_SYSTEM_EVENT_FAMILY, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_FILTER_KEYS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, NC_SYSTEM_RULE_KINDS, NC_TAXONOMY, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_TITLE_MAX_CHARS, NC_TEMPLATE_VARS, NC_UPDATE_EVENT_PACKAGE_NAMES, NETWORK_LINK_TYPES, NETWORK_LINK_UNKNOWN, NEXT_OCCURRENCE_HORIZON_DAYS, NODE_BENCHMARK_DEFAULTS, NODE_COLOR_IDS, NOTIFICATION_FIELDS, NOTIFICATION_OUTPUT_CAP, NOT_A_HERO_FACT, NO_MEASURED_CAPACITY, NUMERIC_AGGREGATES, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionOptionsSchema, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionSettingsPatchSchema, NativeObjectDetectionStatusSchema, NativeObjectGeometryEnum, NavigationActionEntrySchema, NavigationActionIdSchema, NavigationEntryKindSchema, NavigationFeaturesSchema, NavigationLightModeSchema, NavigationModeSchema, NavigationMoveCommandSchema, NavigationPointSchema, NavigationRuntimeStateSchema, NavigationStatusSchema, NcActionIdSchema, NcAlarmBlockingEditSchema, NcAlarmBlockingSchema, NcAlarmConfigSchema, NcAlarmCreateProfileInputSchema, NcAlarmModeCoverageSchema, NcAlarmModeDelaysEditSchema, NcAlarmModeDelaysSchema, NcAlarmModeDeviceListSchema, NcAlarmNonBlockingEditSchema, NcAlarmNonBlockingSchema, NcAlarmPostTriggeredActionSchema, NcAlarmProfileIdInputSchema, NcAlarmProfileMetaSchema, NcAlarmProfilesViewSchema, NcAlarmRenameProfileInputSchema, NcAlarmSecureOnArmEditSchema, NcAlarmSecureOnArmOffSchema, NcAlarmSensorReadingSchema, NcAlarmSensorStateSchema, NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcAlarmSkipReasonSchema, NcAlarmSkippedDeviceSchema, NcAudioConditionSchema, NcClipRetentionAskSchema, NcClipRetentionPlanSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcConfirmExpectSchema, NcConfirmSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcHookActionIdsSchema, NcLinkedCameraModeSchema, NcMediaFrameSchema, NcMediaImageSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionsSchema, NcRuleClearableKeySchema, NcRuleInputSchema, NcRuleKindSchema, NcRuleLastRunSchema, NcRuleLastRunsSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcRuleUpdateInputSchema, NcSceneConditionSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSensorTransitionSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcStateSummaryPreviewRowSchema, NcStateSummaryPreviewSchema, NcStateSummaryPreviewSectionSchema, NcStateSummarySectionIdSchema, NcStateSummarySplitSchema, NcSystemEventConditionSchema, NcSystemEventDeliveryModeSchema, NcSystemEventDeliverySchema, NcSystemEventDeliveryToggleSchema, NcSystemEventKindSchema, NcTargetAttachmentSchema, NcTargetOverrideSchema, NcTargetOverridesSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTemplateDefaultSchema, NcTemplateFamilySchema, NcTemplateFieldSchema, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, NcTemplateVarContextSchema, NcTemplateVarDescriptorSchema, NcTemplateVarGroupSchema, NcTemplateVarKindSchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NetworkLinkStatusSchema, NetworkTunnelStartedDataSchema, NoCallerError, NodeBenchCellSchema, NodeBenchClipSchema, NodeBenchDeviceCellSchema, NodeBenchFingerprintSchema, NodeBenchLimitSchema, NodeBenchPipelineCellSchema, NodeBenchProgressSchema, NodeBenchRampStepSchema, NodeBenchRunnerInputSchema, NodeBenchRunnerStateSchema, NodeBenchRunnerStatusSchema, NodeBenchmarkCandidatesSchema, NodeBenchmarkDevicePlanSchema, NodeBenchmarkEndReasonSchema, NodeBenchmarkManifestSchema, NodeBenchmarkMovingCameraSchema, NodeBenchmarkPhaseSchema, NodeBenchmarkPlanSchema, NodeBenchmarkPreflightSchema, NodeBenchmarkRefusalKindSchema, NodeBenchmarkRefusalSchema, NodeBenchmarkResultSchema, NodeBenchmarkResultViewSchema, NodeBenchmarkRunSchema, NodeBenchmarkStateSchema, NodeBenchmarkStatusSchema, NodeBenchmarkStayingCameraSchema, NodeColorIdSchema, NodeDeviceChangeSchema, NodeDirectoryEntrySchema, NodeDirectorySchema, NodeHttpsStateSchema, NodeRecommendationSchema, NodeRemovedInputSchema, NodeRemovedResultSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFieldSchema, NotificationFormatSchema, NotificationSchema, NotificationTargetStore, NotifierStatusSchema, NumericSensorStatusSchema, OAUTH_LANDING_PATH, OAUTH_LANDING_REASONS, OBJECT_DETECTION_STEP_ID, OPERATOR_WRITTEN_STALE_MS, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, ORPHAN_SWEEP_MIN_INTERVAL_MS, OSD_TEMPLATE_TEXT_MAX, OVERFLOW_REASON, OVERLAY_LAYERS, OWNER_ONLY_EVENT_CATEGORIES, OauthIntegrationDescriptorSchema, ObjectEventSchema, OccupancyBurstRefusalSchema, OccupancyLookAnswerSchema, OccupancyLookRefusalSchema, OccupancyLookRequestSchema, OldTargetBodySchema, OnboardFieldSupportSchema, OnboardRecordTrackSchema, OnboardScheduleSupportSchema, OnboardStorageSchema, OnboardStorageVolumeSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OrphanDeviceDataSchema, OrphanIntegrationSweep, OsdNamedTemplateSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceSchema, OsdStatusSchema, OsdTemplatePreviewSchema, OverrideDraftSchema, PALETTE_BACKGROUNDS, PALETTE_ENTRY_IDS, PALETTE_MIN_CONTRAST, PALETTE_MIN_DELTA_E, PALETTE_MIN_DELTA_E_MARK, PALETTE_PRESET_IDS, PAUSE_MAX_MS, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PENDING_BLOCK_ID, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PET_FOUNTAIN_WATER_KEY, PHOENIX_780M_CU, PIPELINE_ANALYTICS_CAP_NAME, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PIPELINE_RAMP, PLUG_APPLIANCE_TYPES, PLUS_CATALOG_CLASS_FLOORS, PLUS_CATALOG_STOCK_CLASS_FLOORS, PLUS_CATALOG_TO_MACRO, PLUS_CATALOG_UNMAPPED_LABELS, POWER_SOURCE_OFF_SECONDS_DEFAULT, POWER_SOURCE_OFF_SECONDS_MAX, POWER_SOURCE_OFF_SECONDS_MIN, PREFERENCES_MAX_DEVICE_ID_LENGTH, PREFERENCES_MAX_NAMESPACES, PREFERENCES_MAX_VALUE_BYTES, PREFERENCES_NAMESPACE_PATTERN, PREFERENCES_SELF_SCOPE, PRIVACY_MASK_CAP_NAME, PROPOSAL_MIN_SPAN_MS, PROVIDER_KIND_CAP_NAMES, PROVIDER_PIN_FIELD, PUBLIC_ENDPOINT_HTTP_REASON, PULSE_MAX_MS, PYTHON_SCRIPT, PackageInstallationSchema, PackageInstallationsSchema, PackageLlmVerdictSchema, PackageRequiresSchema, PackageUpdateSchema, PackageVersionInfoSchema, PaletteRejectedError, ParkRefusalSchema, ParkTrackFrameResultSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PeerBytesTicketSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PetFountainStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineModelFormatStatusSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PlacementDeviceStatsSchema, PlacementNodeStatsSchema, PlacementStatsInputSchema, PlacementStatsSchema, PlaintextSecretError, PolygonPointSchema, PoolMemoryWatchdog, PowerMeterStatusSchema, PowerSourceActionResultSchema, PowerSourceInfoSchema, PowerSourceRefusalReasonSchema, PowerSourceStateSchema, PrecisionGopsSchema, PreferenceDeviceIdSchema, PreferenceNamespaceSchema, PreferenceRowSchema, PreferenceValueSchema, PreferencesChangedSinceInputSchema, PreferencesChangedSinceOutputSchema, PreferencesDeleteInputSchema, PreferencesDeleteOutputSchema, PreferencesGetInputSchema, PreferencesGetOutputSchema, PreferencesPutInputSchema, PreferencesPutOutputSchema, PreferencesSelfScopeSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProbeTargetConfigResultSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderJobStateSchema, ProviderJobStatusSchema, ProviderMotionDataSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzHomePresetSchema, PtzHomeReturnSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetFunctionSchema, PtzPresetSchema, PtzStatusSchema, PumpCycleStatusSchema, QUANTITY_BASE, QuantityUnitError, QuantityValueSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECALL_TIE, RECOGNITION_TYPES, RECORDING_AUDIO_TRIGGER_OFFERED_DBFS, RECORDING_EXPORT_MAX_READ_BYTES, RECORDING_SOURCE_CAMSTACK, RECORDING_SOURCE_CAMSTACK_ADDON, RECORDING_TIMELINE_BATCH_MAX, 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, RECOVERY_CROP_MAX_SIDE_PX, RECOVERY_CROP_MIN_SIDE_PX, RECOVERY_CROP_PADDING_RATIO, RECOVERY_EDGE_MARGIN_PX, RECOVERY_FUSE_CONTAINMENT, RECOVERY_FUSE_IOU, RECOVERY_MAX_CROPS_PER_FRAME, RECOVERY_MAX_REGION_FRAME_FRACTION, RECOVERY_MIN_INTERVAL_MS, RECOVERY_MIN_UNCOVERED_FRACTION, RECOVERY_MOTION_MAX_AGE_MS, RECOVERY_VIEW_PX, REDACTED_ARG, REDACTED_SECRET, REFERENCE_COMPUTE, REFERENCE_MATCH_FRACTION, REMOTE_BUTTON_SHAPES, REMOTE_BUTTON_TONES, REMOTE_COMPONENT_CATEGORIES, REMOTE_CONFIG_REFUSALS, REMOTE_CUSTOM_ROLE_ICON, REMOTE_CUSTOM_ROLE_PREFIX, REMOTE_GROUP_FRAMES, REMOTE_KNOWN_ROLES, REMOTE_MAX_REPEAT, REMOTE_MEDIA_COMMANDS, REMOTE_OPEN_ACTION_ID, REMOTE_REFUSAL_REASONS, REMOTE_ROLE_VOCABULARY, REMOTE_SOURCE_KINDS, REMOTE_STEP_DELAY_DEFAULT_MS, REMOTE_STEP_DELAY_MAX_MS, REMOTE_STEP_DELAY_MIN_MS, REMOTE_WIDGET_ROLES, REMOVAL_RECONCILE_INTERVAL_MS, REMOVED_MODEL_IDS, REMOVE_LEAF, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_SOURCES, RESET_PERIODS, RESTORED_CAP_NAMES, RESTREAM_INPUT_PROBE, RETRAIN_REVIEW_ADJUSTED_IOU, RETRAIN_REVIEW_MATCH_IOU, RETRAIN_REVIEW_STATUSES, RETRAIN_REVISION_CONFLICT, REVALIDATE_AFTER_MS, ROLLING_SPANS, ROOM_EXAMPLE_MOTION_SOURCES, ROOM_EXAMPLE_TEMPERATURE_SOURCES, ROOM_OCCUPANCY_WINDOW_MS, ROOT_BUCKET_KEY, ROOT_CHILD_CONTAINMENT_MIN, ROOT_FACE_REFINE_INPUT_PX, ROOT_FACE_REFINE_SCALE, ROOT_SUPPLIABLE_STEP_IDS, RUNNING_POWER_DEFAULTS_BY_TYPE, RUNNING_POWER_GLOBAL_DEFAULTS, RUNNING_POWER_MIN_SAMPLES, RUNNING_POWER_START_DELAY_MS, RUNNING_POWER_STOP_DELAY_MS, RUNNING_POWER_THRESHOLD_WATTS, RUNNING_STATE_COLD, RUNTIME_DEFAULTS, RUNTIME_STATE_POLICY, RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS, RUNTIME_TO_FORMAT, RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadWindowBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, ReadingQuantitySchema, RebuildObjectEmbeddingsRefusalSchema, RecentTracksPageSchema, RecentTracksQueryInput, RecommendationReasonSchema, RecordBodySchema, RecordFieldPathSchema, RecordIdSchema, RecordIndexSchema, RecordInputSchema, RecordIntegrationInstances, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordQueryInputSchema, RecordQueryResultSchema, RecordRetentionSchema, RecordSecretRefsSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordTransactOpSchema, RecordTriggerSchema, RecordUniqueViolationError, RecordViewSchema, RecordWhereSchema, RecordWindowSchema, RecordingAvailabilityForDeviceSchema, RecordingAvailabilitySchema, RecordingBandAudioSchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysForDeviceSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingObjectTriggerClassSchema, RecordingOnboardOptionsSchema, RecordingOnboardPatchSchema, RecordingOnboardStatusSchema, RecordingPlaybackSchema, RecordingRangeSchema, RecordingReadSchema, RecordingRebalanceInputSchema, RecordingRebalanceMoveSchema, RecordingRebalancePlanSchema, RecordingRebalanceSkipReasonSchema, RecordingRebalanceSkipSchema, RecordingRetentionSchema, RecordingSignalRuntimeStateSchema, RecordingSignalStatusSchema, RecordingSourceAvailabilitySchema, RecordingSourceOptionsSchema, RecordingSourceSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RecordsError, RedirectLoginMethodSchema, RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RelocateResidueInputSchema, RelocateResidueSchema, RemoteAssumedStateSchema, RemoteBindingActionSchema, RemoteBindingSchema, RemoteBoundCommandSchema, RemoteButtonShapeSchema, RemoteButtonToneSchema, RemoteCommandListSchema, RemoteComponentButtonSchema, RemoteComponentCategorySchema, RemoteConfigSchema, RemoteCustomButtonSchema, RemoteDigitsSourceSchema, RemoteGroupFrameSchema, RemoteIrSourceSchema, RemoteLayoutButtonSchema, RemoteLayoutComponentSchema, RemoteLayoutGroupSchema, RemoteLayoutPayloadSchema, RemoteMediaCommandResultSchema, RemoteMediaCommandSchema, RemoteRefusalReasonSchema, RemoteRefusedSourceSchema, RemoteRoleSchema, RemoteSendResultSchema, RemoteSequenceSourceSchema, RemoteSetConfigResultSchema, RemoteSourceKindSchema, RemoteSourceSchema, RenderedAsSchema, RenewDeviceCertificateOutputSchema, RenewDeviceCertificateResultSchema, ReportMotionInputSchema, ReportedFailureContributionSchema, ReportedLoadContributionSchema, RequestCensusGroupSchema, RequestCensusProcedureSchema, RequestCensusSnapshotSchema, RequestCensusStatusSchema, RequiredAddonUpdateSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainArchiveResultSchema, RetrainArchiveTargetSchema, RetrainAssistProfileSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainBoxReviewSchema, RetrainCollectionCreateResultSchema, RetrainCollectionRenameResultSchema, RetrainCollectionSchema, RetrainCopyRefusalSchema, RetrainCorpusFilterSchema, RetrainCorpusKpiCameraRowSchema, RetrainCorpusKpiSchema, RetrainCorpusPageFrameSchema, RetrainCorpusPageSchema, RetrainDatasetSelectionSchema, RetrainDatasetStatsSchema, RetrainDatasetVersionSchema, RetrainDismissedSchema, RetrainExportFilterSchema, RetrainExportLayoutSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameOriginSchema, RetrainFrameReviewSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainFrameWorkStateSchema, RetrainLlmAssistResultSchema, RetrainLlmProposalSchema, RetrainLlmReviewSchema, RetrainMacroClassSchema, RetrainOriginSchema, RetrainPipelineBoxSchema, RetrainReviewStatusSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTrainingCorpusResolveResultSchema, RetrainTrainingCorpusSelectionSchema, RetrainTransitionResultSchema, RetrainVerdictSchema, RetrainVerdictSubjectSchema, RetrainVerdictValueSchema, RevConflictError, RevokeOwnDeviceCertificateResultSchema, RingBuffer, RollingWindowSchema, RootStepSupplySchema, RtpSourceSchema, RtspRestreamEntrySchema, RuleFireOriginSchema, RunGate, RunnerBootCheckSchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerJumpStepProvisioningSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, RunnerRefusalSchema, RunningProposalConfidenceSchema, RunningProposalEvidenceSchema, RunningProposalInsufficientEvidenceSchema, RunningProposalInsufficientReasonSchema, RunningProposalReplaySchema, RunningProposalTierSchema, RunningStateSourceSchema, RunningStateStatusSchema, RunningThresholdProposalSchema, SAMSUNG_CARRIER_HZ, SAMSUNG_MAX_BITS, SCENE_CONDITIONS, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS, SCENE_DEFAULT_ANCHOR_THRESHOLD, SCENE_DEFAULT_CHECK_INTERVAL_SEC, SCENE_DEFAULT_OBSERVATION_SPACING_SEC, SCENE_DEFAULT_QUIET_SECONDS, SCENE_DEFAULT_UNCOVERED_POLICY, SCENE_DIVERGED, SCENE_RESET_RECAPTURES, SCOPED_SETTINGS_SCOPES, SCOPE_PRESETS, SECRET_CLEAR, SECRET_META, SECRET_REF_SCHEME, SENSOR_FEATURES, SENSOR_MAP, SERIAL_CAPACITY_CAMERA_FPS, SERIES_KINDS, SERVER_NAME_MAX_LENGTH, SERVER_NAME_SETTING_KEY, SESSION_LOST_ALERT_CATEGORY, SESSION_PLACEMENT_SETTING_KEY, SHARE_AFFINITY_TOLERANCE_SESSIONS, SHARE_SOURCE_SETTING_KEY, SHARE_VIEW_KINDS, SHARE_VIEW_MAX_DEVICES, SINGLE_HUB_ADDRESS_ROLES, SLICE_MAX_LINES, SMTP_INBOUND_DEFAULT_DOMAIN, SMTP_INBOUND_DEFAULT_ID, SMTP_INBOUND_DEFAULT_MAX_MESSAGE_BYTES, SMTP_INBOUND_DEFAULT_PORT, SMTP_INBOUND_KIND, SMTP_INBOUND_RING_MAX_AGE_MS, SMTP_INBOUND_RING_MAX_MESSAGES, SMTP_INBOUND_TEXT_MAX_CHARS, SMTP_RECIPIENT_CLAIMED, SOURCE_CAPS, SOURCE_CAP_ACTIVE_FIELD, SOURCE_CAP_CHANGED_AT_FIELD, SOURCE_DEVICE_TYPES, SOURCE_INFO_METADATA_KEY, SSO_STATE_COOKIE, SSO_STATE_COOKIE_MAX_AGE_SEC, STATE_LABELS, STATE_LABEL_KEYS, STATIONARY_OVERLAY_STYLE, STATISTIC_STATS, STEP_DEVICE_CONCURRENCY, STORAGE_ACCESS_FALLBACK, STORAGE_BYTES_PER_GB, STORAGE_LOCATION_MODES, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUBJECT_PATH_DWELL_EPS, SUBJECT_PATH_FULL_FRAME_COVERAGE, SUBJECT_PATH_MAX_POINTS, SUB_DETECTION_TYPES, SUNRISE_ALTITUDE_DEG, SYSTEM_CAP_NAMES, SYSTEM_SCOPE_DEVICE_METHODS, SceneCheckSchema, SceneConditionSchema, SceneConfirmSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusForDeviceSchema, SceneMonitorStatusSchema, SceneReferenceSchema, SceneUnavailableSchema, SceneUncoveredPolicySchema, SceneVerdictSchema, SchedulerConflictSchema, SchedulerError, SchedulerErrorCodeSchema, SchedulerInputSchema, SchedulerOutcomeSchema, SchedulerPointModeSchema, SchedulerPointSchema, SchedulerPreviewPointSchema, SchedulerPreviewSchema, SchedulerProfileSchema, SchedulerSchema, SchedulerStateTreeSchema, SchedulerStatusSchema, SchedulerTimeSpecSchema, ScopedTokenSchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerNameInfoSchema, ServerNameSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateOutcomeSchema, ServerUpdateStateSchema, SessionHealthTracker, SessionPlacementPolicySchema, SessionTriggerSchema, SetCameraSensorsInputSchema, SetLoggingSettingsInputSchema, SetShareSourceInputSchema, SetSiteLocationInputSchema, SetTrackPurityInputSchema, SetTrackPurityResultSchema, SetTrackRelationInputSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShareSourceSchema, ShareViewGrantSchema, ShareViewScopeSchema, ShareWeightsSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, SiteZoneSchema, SmokeStatusSchema, SmtpInboundAttachmentSchema, SmtpInboundConfigSchema, SmtpInboundFilterSchema, SmtpInboundMessageSchema, SmtpInboundSettingsSchema, SmtpInboundSinceSchema, SmtpRecipientSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StaleDataReportSchema, StaleDevicePinSchema, StaleKindFindingSchema, StaleSettingsKeyFindingSchema, StartClusterUpdateResultSchema, StartEmbeddedInputSchema, StartEnrollmentOutputSchema, StationaryObjectSchema, StationarySubjectSchema, StatisticHelperSpecSchema, StatisticWindowSchema, StepDeviceTraceSchema, StepTemplateError, AbortUploadInputSchema as StorageAbortUploadInputSchema, StorageAccessSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, StorageCleanupInputSchema, StorageCleanupJobSchema, StorageCleanupPhaseSchema, StorageCleanupStatusInputSchema, StorageDrainProgressSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, StorageEvictionPolicySchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageKindSchema, StorageLocationDeclarationSchema, StorageLocationModeSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationDrainInputSchema, StorageMigrationFindingCodeSchema, StorageMigrationFindingSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLaneSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationModeSchema, StorageMigrationMoveProgressSchema, StorageMigrationMoveSchema, StorageMigrationMoverSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, StorageMigrationResidueSchema, StorageMigrationSourcesSchema, StorageOccupancyReportSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, StorageTableSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StoredRecordKindDeclarationSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSignalSchema, StreamSignalsStatusSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SuggestSharesInputSchema, SuggestSharesResultSchema, SuggestedDeviceShareSchema, SuggestedNodeShareSchema, SunEventSchema, SuppliedRootOutputSchema, SwitchStatusSchema, SystemHeldSecretNameSchema, SystemMetricsSchema, SystemMirror, TARGET_OWNER_KEY, TEMPLATE_KINDS, TEMPLATE_PAYLOAD_SCHEMAS, TEMPLATE_WRITE_REFUSALS, THRESHOLD_GRID_W, TIMED_RUN_DEVICE_TYPES, TIMED_RUN_LIMITS, TIMELAPSE_DENSE_FLOOR_SEC, TIMEZONES, TRACK_RELATIONS_DEFAULT_LIMIT, TRAINING_JOB_SCHEMA, TRAINING_RESULT_SCHEMA, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TRIGGERED_BY_MAX_IDS, TamperStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetKindTextCapsSchema, TargetSchema, TemperatureSensorStatusSchema, TemplateDeleteResultSchema, TemplateKindSchema, TemplateRecordSchema, TemplateUserSchema, TemplateWriteResultSchema, TerminalInstanceInfoSchema, TerminalLegacyCameraSchema, TerminalOutputBatchSchema, TerminalOutputEventSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema, TestConnectionStatusEnum, TestResultSchema, ThresholdHelperSpecSchema, TimeSpecSchema, TimedRunActuatorSchema, TimedRunOptionsSchema, TimedRunQuickRunSchema, TimedRunRefusalSchema, TimedRunResultSchema, TimedRunSettingsPatchSchema, TimedRunStatusSchema, TimedRunUnitSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TraceNodeOutcomeSchema, TraceValueSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackPlacementSchema, TrackProjectionSchema, TrackPuritySchema, TrackPurityValueSchema, TrackRelationKindSchema, TrackRelationRefusalSchema, TrackRelationSchema, TrackSchema, TrackSideSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainerSourceRefSchema, TrainingAcceleratorRefSchema, TrainingBaseModelSchema, TrainingCanarySchema, TrainingCanaryTargetSchema, TrainingCatalogDraftSchema, TrainingCorpusSelectionSchema, TrainingEvalClassSchema, TrainingEvalReportSchema, TrainingEventSchema, TrainingExportDeviceTotalsSchema, TrainingExportSchema, TrainingExportSummarySchema, TrainingFailureReasonSchema, TrainingGpuOptionSchema, TrainingJobPlanSchema, TrainingJobRequestSchema, TrainingJobSchema, TrainingJobSpecSchema, TrainingJobStateSchema, TrainingLogLineSchema, TrainingPresetSchema, TrainingProgressPointSchema, TrainingProviderDefaultsSchema, TrainingProviderDescriptorSchema, TrainingProviderEntrySchema, TrainingProviderTypeSchema, TrainingRefusalReasonSchema, TrainingRegionOptionSchema, TrainingResultFileSchema, TrainingResultSchema, TrainingSplitPlanSchema, TrainingStageSchema, TransactRefusedError, TransitionActorKindSchema, TransitionActorSchema, TransitionCommandSchema, TransitionOutcomeSchema, TransitionRecordResultSchema, TransitionRefusalReasonSchema, TransitionValueSchema, TransitionsStatusSchema, TransmitSettingKeySchema, TransmitSettingsSchema, TransportPlaneCountsSchema, TransportPlaneSchema, TurnServerSchema, UNATTRIBUTED_BUCKET_KEY, UNIT_TABLE, UNLOCK_CONFIRMATION, USE_ROOT_MODEL_DEFAULTS, USE_ROOT_MODEL_SETTING_KEY, UnexposeEntityInputSchema, UnindexedFilterError, UninstallNodeOutcomeSchema, UninstallNodeResultSchema, UninstallPackageResultSchema, UnitConversionError, UnitWarningSchema, UnknownInstanceError, UnknownInstanceKindError, UnknownRecordKindError, UnmetRequirementSchema, UnreleasedClaimSchema, UnstampedEventMediaCountSchema, UnstampedRowsSchema, UpdateBlockerSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserScopeSchema, UserSummarySchema, VECTOR_INDEX_DIM_CONFLICT, VENDOR_LOGIN_PROXY_PREFIX, VIDEOCLIPS_MAX_OFFER_BYTES, VIDEOCLIPS_MAX_READ_BYTES, VIEWER_FEATURES, VIEWER_FEATURE_IDS, VISIT_MERGE_GAP_MS, VOCAB_TEMPLATES, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VendorLoginProxy, VibrationStatusSchema, VideoEncodeSchema, ViewerDeviceAllowSchema, ViewerFeatureIdSchema, ViewerTokenScopeSchema, WEBRTC_CLIMB_HOLD_CODES, WEBRTC_EGRESS_PROFILE, WEBRTC_TRY_BLOCKERS, WEEKLY_MASK_LENGTH, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WHEN_UNROLL_DEPTH, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcClimbHoldSchema, WebrtcLadderDecisionSchema, WebrtcSessionDebugSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WebrtcTierFailureSchema, WeekdayKeySchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, WrapperActivationReadSchema, WrapperEvidenceSchema, WrapperIdentitySchema, WrapperKindSchema, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, __resetDebugInterestForTests, __resetLogChannelRegistryForTests, acceleratorKindOf, accessoriesCapability, accessoryChildrenComplete, accessoryChildrenUnknown, accessoryStableId, actionEffect, actionSourceCapability, actionWaitTotalMs, actionsCapability, actionsForBoundCaps, actionsForDevice, actionsForDeviceType, actionsForDevices, activateAlarmProfile, activeForReducer, actuatorMethodRow, actuatorSwitchDrivesRunning, actuatorSwitchRead, addonCatalogHref, addonIdOfActionId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advertisedHubOrigins, aggregateThroughputFactor, airQualitySensorCapability, alarmDeviceBlocksArming, alarmDeviceSecureOnArm, alarmPanelCapability, alarmPatchLanded, alarmProfileById, alertEpisodeId, alertEpisodeKind, alertEpisodePayload, alertNodeId, alertsCapability, allDoActions, allHeroLooks, allVocabActions, allowedSuppliedEffect, ambientLightSensorCapability, annotateClipsWithEventLabels, anySubjectMatches, appFlowLocation, appendTrace, applianceExport, applyBlockingEdit, applyCropClassFloors, applyModeDelaysEdits, applyModeDeviceListEdit, applyModelBoundSettings, applyNonBlockingEdit, applyPrimaryChildPreference, applyPrimaryChildRule, applySecureOnArmEdit, arithmeticDraft, armRemovalReconcile, arrayItemFieldPath, asBoolean, asJsonArray, asJsonObject, asNumber, asRecordsError, asString, assertInstanceUnused, assertOwnExportInstance, assertTimelapseCadences, assertTransactScope, assertValidDeclaration, assignNodeColorId, attachmentKindsOf, audioAnalysisCapability, audioAnalyzerCapability, audioChunkBytesPerSample, audioCodecCapability, audioIsFailClosed, audioKindId, audioLabelChoices, audioMetricsCapability, audioModeOf, audioOrDefaults, audioPlanFromEncodeProfile, audioScaleEraOf, auditedFields, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, baseUnitForQuantity, baseUnitOf, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, boardKeySourceCapability, brightnessCapability, brokerCapability, brokerLinkPortsOver, bucketStartOf, buildActionSteps, buildAddonRouteProvider, buildAudioArgs, buildBenchStepTree, buildCapabilityLookup, buildDeviceAdminUrl, buildDeviceEnrollmentLink, buildDeviceSignatureMessage, buildDraftJsonSchema, buildDraftPrompt, buildEventKindDescriptor, buildFfmpegArgs, buildHeroModel, buildInputArgs, buildLinkedInstances, buildModelVariantGroups, buildNcTaxonomy, buildNotificationTargetInstances, buildPlusCatalogClassMap, buildRepairPrompt, buildRoleScopes, buildSecretRef, buildSessionLostAlert, buildStepArgsTrace, buildStreamParamsConfigSchema, buildSubjectPath, buildTriggerTrace, buildUserScopedNotificationTargetInstances, buildVideoArgs, buildViewerLink, buildVocabularySlice, builtCapabilityBlockers, builtinRemoteComponent, bundledCamstack, buttonCapability, calendarEventLocalSpan, calendarEventOnLocalDay, calendarRecordId, calendarSourceCapability, calendarsCapability, cameraCredentialsCapability, cameraGridLayoutCapability, cameraOwnsMotionViaSensor, cameraPipelineConfigCapability, cameraScopedStepSettings, cameraSensorRefKey, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, canonicalIconKey, canonicalJson, canonicalizeAppCallback, capUnitResolver, capabilityScopesOf, capacityForModel, capacitySessionsOf, carbonMonoxideCapability, carriesDeviceTemplate, catalogueIssues, cellsToRects, checkDeviceAlias, checkRoleAddress, checkTemplatePayload, claimDevicesMigration, claimDevicesPortsOver, claimDevicesToDefaultIntegration, claimedRequestOrigins, classifyBearerPrincipal, classifyCamerasForBenchmark, classifyFieldSource, classifyInferenceHardware, classifyRetrainReview, classifySecretWrite, classifyStoreError, classifyStream, classifyStreams, clearKnownSecrets, clearModelBoundOverrides, clearModelBoundSetting, climateControlCapability, clipEventLabelDepsFromApi, clipExportFailure, clipExportFailureOf, clipLabelsForWindow, clipReasonHeaderValue, cloneAlarmSettings, cloneStatefulExpressionMemory, clusterModelSettingKey, clusterStepSettingFieldsFor, clusterStepSettingKey, clusterUpdateCapability, codecIsAccepted, collectDeviceTemplates, collectHydratedFieldEntries, collectHydratedFieldValues, collectKeychainStoredKeys, collectMirrorSources, collectModelBoundKeys, collectOwnerIntegrationIds, collectSecretConfigKeys, collectSecretLeaves, collectSecretMarkerRefs, collectWhenMirrorSources, collectZodSecretPaths, colorCapability, colorForKind, commandEffect, commandMethodProblems, commandOrigin, commandedMethods, commitWatchdogRestart, compareDraft, compareToTarget, compareVersions, compileExpression, compileExpressionSafe, compileHelper, compileKeyedArrayOverride, compilePulseOverride, compileScalarOverride, compileSpanOverride, composeInstanceKinds, composeSwitchedOff, composedDeviceRef, composedDeviceStableId, composerCapability, compositionEdges, compositionFeatureEnabled, compositionFieldKey, compositionFillStatus, compositionItemFieldPath, compositionReadKey, compositionSliceKey, compositionSourceKey, compositionSourceRefs, compositionTargetCaps, computeCapacityShares, computeScores, conditionExclusionReason, conditionVisibleForKind, connectivityCapability, consumableFormOf, consumableKindOf, consumableLowPercentOf, consumablesCapability, contactCapability, containingParentIndex, controlCapability, convertLegacyCondition, convertLegacyRecipe, convertLegacyWhen, convertPresetFeature, convertQuantityInput, convertUnit, convertUnitTargets, coralUsableUnits, coreBlockAddonId, coreBlockComposition, coreBlockIdFromAddonId, coreBlockSourceKind, coreBlocksCapability, cosineSimilarity, countRecoverySkips, countWhenLeaves, coverCapability, createAlarmProfile, createDebugEmitter, createDeviceExtensionProvider, createDeviceProxy, createDurableState, createEvent, createEventBusSliceSource, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createLogChannelsProvider, createMirrorSource, createRecordsAccess, createRuntimeStateBridge, createSecretsAccess, createSliceHandle, createStatefulExpressionMemory, createSystemProxy, customAction, customKeyOfRole, customModelRegistryCapability, customRole, dataStoreProviderCapability, databaseSnapshotCapability, dayNightCapability, dayOfWeekToIndex, declarationOwnerNodeId, declarationsOf, declareLinkKind, declareLogChannel, declaredSeriesKind, decodeCompositionToCards, decodeKeyedArrayOverride, decodePronto, decodePulseOverride, decodeScalarOverride, decodeVectorBase64, decoderCapability, defaultDeliveryForSection, defaultDeviceFor, defaultIntegrationApiOver, defaultIntegrationDepsOver, defaultIntegrationMigrationIds, defaultIntegrationMigrations, defaultIntegrationOf, defaultIntegrationPortsOver, defaultThresholdSamples, defineAddonMigrations, defineCustomActions, defineEntryKind, defineExtensionSlotProvider, defineNotificationTargetKind, defineRecordKinds, dehydrateConfigField, dehydrateSchema, deleteAlarmProfile, deliverableFields, deliveryParamsDeclaredBy, derivativeDraft, derivativeUnitLabel, deriveBatteryPresence, deriveCameraSwitches, deriveDetailCropRect, deriveFeatureProvenance, deriveMaskSupplies, deriveMediaPlayerView, derivePostTriggeredAction, deriveRecordingMode, deriveRootFaceRefineRect, deriveRootSupplies, describeComposableCaps, describeCustomActions, describeHold, describeHoldMs, describeModelVariant, describeOnboardClamp, describeOnboardRefusal, describeRootSupplies, describeRootSupply, describeStateField, describeSubject, describeSystemEventDeliveryProblem, describeSystemEventFamilyProblem, describeTopLevelStateFields, describeUnmet, detectAccessRole, detectionClassMatches, detectionPipelineCapability, deviceAdminLinkCapability, deviceAdoptionCapability, deviceAttentionKind, deviceBackendToFormat, deviceCredentialsCapability, deviceCustomAction, deviceDoFamily, deviceExportCapability, statusInstanceOf as deviceExportStatusInstanceOf, statusInstanceOf, deviceExtensionCapability, deviceHistoryCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceRefusalFromMessage, deviceRemovalHookCapability, deviceRunsCapability, deviceSelectorMatches, deviceStateCapability, deviceStatusCapability, deviceTransitionsCapability, diffStepSettings, disarmRoseMemory, dishwasherCapability, displayPaletteCapability, displayUnitFor, doActionSelectValue, doNotDisturbCapability, dominantClipLabels, doorbellCapability, droppedConditionsForKind, edgetpuDelegateDevice, effectiveStepSettings, egressTranscodeSharingKey, egressTransportFromRequest, electByShare, electByShareWithAffinity, eligibleUnderBenchmark, embeddingEncoderCapability, embeddingModelFailedError, embeddingModelFailedOf, embeddingRefusalOf, embeddingRequirementsFailedError, embeddingRequirementsUnavailableError, emitDownForOwnedCaps, emitReadiness, emitsCollectionSelector, encodeCardsToComposition, encodeFlipperParsed, encodeProfileFromStreamShape, encodeSamsung, encodeVectorBase64, ensureAlarmProfiles, entryBody, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, estimateNodeBenchmarkDurationMs, evaluateAggregate, evaluateAst, evaluateCompositionField, evaluateConditionTree, evaluateCount, evaluateDerivative, evaluateExpressionSource, evaluatePoolMemory, evaluateRose, evaluateSensorEdge, evaluateSensorLevelEdge, evaluateStatefulExpressionCall, evaluateStationaryTrigger, evaluateStatistic, evaluateStepCondition, evaluateWhenTree, evaluateZoneRules, event, eventEmitterCapability, eventKindLabel, eventLeafIdAt, eventOverlapsClipWindow, evictionPolicyForMode, evictionPolicyOfLocation, expandAudioChunkToF32le, expandCapMethods, expandContainer, expandDraft, expandSystemEventClasses, exportSubjectOf, exposeBlockDevices, expressionContainsBuiltinCall, expressionDraft, extensionSlotRef, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, failureContributionCapability, failureRate, fanControlCapability, fanOutTargets, fanPresetsCapability, featureFieldEntries, featureForwards, featureOfRole, featureProbeCapability, featureSources, featuresOfBoundCaps, feederCustomizationExample, feederExampleSources, ffmpegRate, fieldEntryToSource, fieldReads, fieldSupportForTargets, fieldUnitKeys, fieldUserFinder, fieldsPinnedAtValueBelow, filesystemBrowseCapability, fillWidthScale, findCandidateCycles, findChannelSource, findCompositionCycles, findMigrationsBlocked, findTimezone, findVocabAction, flattenNestedRecords, flattenPortsOver, flipperIrDraft, flipperIrTable, flipperRole, floodCapability, foldSnapshotByFunction, followSwitchRunningFeature, forEachLeaf, forbiddenError, foreignCapacityCells, forgetKnownSecret, formatDeviceRevoker, formatForRuntime, formatMediaOwnerKey, formatMinutes, formatPaletteViolations, formatParkedFor, formatReading, formatSecretScope, formulaProblem, forwardProblems, forwardSourceProblems, forwardSourceRefs, freshResults, fuseRecoveredDetections, gasCapability, gbToBytes, generateAutomationBlock, generateDeviceAlias, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getDebugInterest, getLogChannelRegistry, getTaxonomyEntry, gifDeriveSpeed, gifFilterComplex, gifFromMp4Args, globalSecretScope, grammarFor, grantRowsOf, groupActiveCapability, groupCommandsCapability, groupStatusCapability, groupTemplate, guardInstanceDelete, hasEventLeaves, hasHoldLeaves, hasModelBoundOverrides, hasMotionTrigger, hasOwnRunningPowerDefaults, hasTimeLeaves, hasTriggeredByLeaves, hasUrlScheme, heatPumpControlCapability, heatPumpInstantCop, heatPumpStatusCapability, heatingValveCapability, helperMembers, helperSaveProblems, heroArgsWithValue, heroLayoutCapability, t as heroText, hfModelUrl, historyFieldsFor, historyItemFieldPath, historyRetentionFromSettings, historyUnitFor, holdOf, holdRefusalOf, holdVarSlots, htmlToText, hubAddressHostname, hubMotionNativeProvider, humidifierCapability, humiditySensorCapability, hydrateSchema, iconCategoryLabel, iconEntry, iconsInCategory, identifiedEventLeaves, imageCapability, imageModesForKind, imageSettingsCapability, implementedMethodsOf, inferExpressionKinds, inferModelProvider, ingestReading, initialPoolMemoryState, insertComponent, instanceApiOverTargets, instanceSourceOverApi, instancesOfCap, instantKindsOf, integralCadenceMs, integralDraft, integrateReading, integrationBodyFromRows, integrationInstancesCapability, integrationRowsApiOver, integrationRowsMigration, integrationRowsPortsOver, integrationRowsPortsOverApi, integrationRowsToRecordId, integrationsCapability, intercomCapability, internalActionId, interpolate, interpretStoredClusterModel, invalidClusterStepModelEntries, invertPresetFeature, invocationFromEncodeProfile, irSourceProblem, irTransmitterCapability, isAgentOnlyPlacement, isAlarmControllableCap, isAlertEpisodeOpen, isAlertEpisodeSeverity, isAppLinkBase, isAppStartRefusal, isArrayOutputSchema, isAudioChunkFormat, isAudioClassName, isAudioLabelSelected, isAudioRule, isAutomaticShareSource, isBaseConditionKey, isBatteryPresenceFault, isClusterScopedStep, isCollectionArrayMethod, isCommand, isCredentialTokenPayload, isDebugChannelName, isDefaultAlarmProfileId, isDefaultAppConnectionEndpoint, isDefinitiveDeviceRefusal, isDeployableToAgent, isDetectionMacroClass, isDeviceConfigCap, isDeviceScopedCap, isDoActionActuatable, isDoPickerDeviceType, isDrawableSubjectPath, isEmbeddingModelFailed, isEvent, isEventKindLabelKey, isEventLeaf, isEventOwnerType, isFirstLevelMacroClass, isForwardInputRef, isHeldBackTemplateVar, isHistoryHelper, isHubId, isIconKey, isInstanceEnabled, isInternalActionId, isIsolatedBuiltin, isKernelDerivedFeature, isKeychainStoredField, isKnownTemplateVar, isKnownTimeZone, isLabelSupplyStepId, isLeaf, isLocationEnabled, isMediaOwnerType, isModelScopedStepSettingKey, isNode, isOauthLandingReason, isObjectInput, isOccupancyRule, isOwnerOnlyEventCategory, isPlugApplianceType, isPositionTicking, isQuantityValue, isReadingQuantity, isRemoteCustomKey, isRemoteKnownRole, isRemoteRole, isRemoteWidgetRole, isRemovedModelId, isReservedDeviceAlias, isRestoredCap, isRetiredClearKey, isRootRelativeUrl, isRootSuppliableStepId, isRunningOptOut, isSameAddonId, isScheduleActive, isScheduleOnlySystemRule, isSecretClear, isSecretConfigField, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isSecretRefOwnedBy, isSingleHubAddressRole, isSkippedTrace, isSoftwareDecode, isSourceCap, isStateLabelKey, isStatefulBuiltin, isStorageLocationMode, isSystemDelivery, isSystemEventFamily, isSystemEventRecoveryKind, isSystemEventSummaryRule, isSystemRuleKind, isTemplateKind, isUnfilledRequiredProblem, isUsableTimeZone, isVectorIndexDimConflict, isVoidInput, isZodSecret, ituDbfsFromPreEpoch, jobKindSchema, judgeTimeWindow, kebabToCamel, keychainAdminCapability, keychainCapability, kindOfValue, kindsForDiscriminator, knownSecretCount, knownValues, lawnMowerControlCapability, leafCatalogEntry, leafKindsFor, legacyAutoLinkIds, legacyImageMode, legacyModeOf, legacyTargetsOver, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, linkField, linkFieldDescriptor, linkUserFinder, linkedId, linkedIdOf, linkedLabelStepId, linkedStepOf, linksOfKind, listBenchDetailSteps, listNotificationTargets, llmCapability, llmRuntimeCapability, loadContributionCapability, localDateOf, localNetworkCapability, localizeConfigTree, locationIconKey, locationSimilarity, lockControlCapability, lockDoorLinkOfComposition, logBannerArgs, logChannelsCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeInMemoryRecords, makeProfileBrokerId, makeSecretMarker, makeSourceBrokerId, mapAudioLabelToMacro, mapSecretLeaves, markFieldEdited, markdownToHtmlLite, markdownToText, maskUrlCredentials, matchDoAction, maxDurationMs, mayReadLocation, mayWriteToLocation, measuredCapacityFromResults, measuredDetectorCells, mediaPlayerCapability, mediaPlayerExtensionCommands, mediaPlayerFeaturesOfRoles, memoizePinnedFfmpeg, mergeClipLabels, mergeKeyedArrayItem, mergeOverrides, mergeScalarTarget, mergeSecretStatePaths, mergeSettingsBags, mergeSkipTraces, mergeSourceInfo, meshNetworkCapability, meterCapability, method, methodAccessForHttpMethod, methodRefusal, methodRoleOf, metricsProviderCapability, migrateLegacyDeviceSignalConfig, migrationSet, migrationsCapability, minimumOf, minutesToTimeOfDay, modeForSwitch, modeMayRead, modeMayWrite, modelBindingKey, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, modelScopedStepSettingKeys, motionCapability, motionDetectionCapability, motionSourceLabel, motionTriggerCapability, motionZonesCapability, moveBrokerLinksToConnections, moveCalendarIdsToRecords, moveGroup, moveIntegrationRowsToRecords, moveRegistrySwitchToBody, moveTargetRows, mqttBrokerCapability, nativeObjectDetectionCapability, navigationCapability, ncAlarmSystemDefaultSettings, ncMediaPolicyError, networkAccessCapability, networkLinkCapability, networkQualityCapability, nextLocalMidnight, nextOccurrence, nextTimeBoundaryInMs, nodeBenchmarkRefusals, nodeCertificatesCapability, nodeIdOfScopedKey, nodePickerItems, nodePin, nodeRemovalHookCapability, nodesCapability, normalizeActionUnits, normalizeAddonInitResult, normalizeAudioLabel, normalizeCapStep, normalizeConditionUnits, normalizeCoreBlockWrite, normalizeNcMediaPolicy, normalizeNodeId, normalizeOffSeconds, normalizeOrigin, normalizeRecipeUnits, normalizeSecretOwner, normalizeStepTargets, normalizeTokenScopes, normalizeUnit, normalizedArea, notificationOutputCapability, notificationRulesCapability, notificationTargetKindName, notificationTargetKindOf, notificationTargetKinds, notificationTargetParts, notifierCapability, numericSensorCapability, oauthIntegrationCapability, oauthLandingUrl, objectInputDeclaresAddonId, objectInputDeclaresRequiredDeviceId, observeHoldLeaves, occupancyScope, occurrenceOn, omitTransientConfig, openReset, openStatistic, optionalAncestors, optionalLinkField, optionalMethod, orderMigrations, osdCapability, osdManagerCapability, overlayClusterStepSettings, ownedSlice, packagePickerItems, paintHex, paletteEntryLabel, paletteFromInput, paletteFromStored, paletteLegend, paletteResultSchema, paletteSwatchSchema, paramMeta, paramMetaOf, parseAcceleratorFactsJson, parseAdminBase, parseAlertEpisodePayload, parseAppAuthCallback, parseAppFlowRequest, parseAppPageLang, parseCameraStreamConfig, parseColorInput, parseCredentialScopes, parseDeviceEnrollmentLink, parseExpression, parseFlipperIr, parseJsonArray, parseJsonObject, parseJsonUnknown, parseMediaOwnerKey, parseOauthLandingFragment, parseOccupancyScope, parseProcStatus, parseProfileBrokerId, parseRetrainRevisionConflict, parseRuleSection, parseSecretPath, parseSecretRef, parseSecretStatePath, parseSessionPlacementPolicy, parseShareSource, parseSmartIr, parseSmtpSinceKey, parseStreamParamsFormPatch, parseTrainingEventLine, patchAudio, petFeederCapability, petFountainCapability, petFountainFromEntitiesComposition, petFountainWaterItem, pickAccessoryControl, pickAppLinkHub, pickClusterStepModels, pickClusterStepSettings, pickDetailCropConvention, pickFaceRescoreIntervalMinutes, pickInvalidClusterStepModels, pickNativeLeaseOverride, pickPreferredRtspEntry, pickRequestOrigin, pickRestartCandidate, pickVideoEncoder, pickerForCondition, pickerForRuleClasses, pinUnderBenchmark, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, planComposition, planCompositionEvents, planItems, planMotionCropRegions, planMotionCrops, planRecoveryCrops, planResetTier, planStatisticTier, plateGalleryCapability, platformProbeCapability, plusCatalogDefaultClassFloors, plusCatalogLabelFields, poolMemoryThreshold, powerMeterCapability, powerSourceCapability, powerSourceLinkOfComposition, preconditionOf, prepareNotification, prepareRecipeUnits, presenceCapability, presetById, pressureSensorCapability, primaryCapForRole, primaryChildPreferenceOf, principalMayReachAddon, priorityLevelsOf, privacyMaskCapability, probeToTestResult, problemsBlockSave, procedureAuthKey, processTimeZoneOr, projectDeviceRow, projectKeyedArrayAssignment, projectPulseAssignment, projectScalarAssignment, projectSpanAssignment, projectSubjectPath, projectedPositionMs, proposeRunningThreshold, providerMotionEvent, pruneDeletedEntities, ptzAutotrackCapability, ptzCapability, publicEndpointReaderFrom, publicEventCategories, pumpCycleCapability, pythonScriptForBackend, quantityFromUnit, rankStreams, readClusterStepModels, readClusterStepSettings, readCommandOrigin, readDetailCropConvention, readDeviceStateFrom, readErrorI18n, readFaceRescoreIntervalMinutes, readHubMotionDetected, readHubMotionStatus, readKeyedArrayItems, readMotionTriggeredBy, readNativeLeaseOverride, readNodePin, readRecoveryRecipe, readRecoveryRecipeForSteps, readStoredRemoteConfig, readTimelapseGeneratedAt, readUseRootModel, readinessKey, readingMeta, rebootCapability, recipeSiteIssues, recommendNode, reconcileBlockDevices, reconcileRemovedDevices, reconcileReportedFeatures, recordArrayItemPath, recordEntriesCapability, recordSecretCollection, recordSecretRef, recordingArchiveCapability, recordingCapability, recordingExportCapability, recordingOnboardCapability, recordingSignalCapability, recordsCapability, recordsErrorFromMessage, recordsOverMigrationApi, rectContains, rectsOverlap, rectsToCells, reducePoints, reducerForActive, registerKnownSecret, registrySwitchPortsOver, registrySwitchToBodyId, registrySwitchToBodyMigration, remapCropDetections, remoteCapability, remoteLayoutComponentsCapability, remoteRoleIcon, remoteRoleLabel, remoteRoleLegend, remoteSourceSteps, removeGroup, removeScalarTarget, renameAlarmProfile, renderVocabPhrase, replacedFieldKeys, replayDwellIntervals, reportIsScalable, requestMountPrefix, requiredTopLevelKeys, requiresPython, reservedSourceOwner, resetPoolBaseline, resolveActionVariables, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAppConnections, resolveAttachmentUrls, resolveBucketMs, resolveCapMount, resolveClipSearchMinScore, resolveClusterStepModelId, resolveContainerPrimaryChild, resolveCoreBlockEntry, resolveCoreBlockFiles, resolveCreateExportSubject, resolveDeliveryParams, resolveDeviceControlKind, resolveDeviceProfile, resolveDeviceSettings, resolveDeviceTarget, resolveEffectiveShares, resolveEgressDecodeHwAccel, resolveExportProfiles, resolveFormat, resolveHeroLayout, resolveHeroLook, resolveHeroSceneId, resolveHubAddressRoles, resolveHydratedFieldValue, resolveIconKey, resolveInternalAddress, resolveLatencyColumn, resolveLocationMode, resolveMethodAuth, resolveMethodRole, resolveModeDelays, resolveModeNotifyPolicy, resolveModelBoundSetting, resolveMutate, resolveNcMediaImage, resolveNotificationTapAddress, resolveOwnPower, resolvePoolMemoryPolicy, resolvePublicEndpoint, resolveRecordingProfiles, resolveRemoteSource, resolveRootSupply, resolveRunnerId, resolveSecretMarkers, resolveSecretViewsIn, resolveServerName, resolveStepArgs, resolveStepArgsWithTemplates, resolveStreamMaps, resolveTemplateRef, resolveVariantModelId, resolveViewableDeviceIds, resolvedValues, resultCellKey, resultStandings, retiredTargetsOver, retrainBoxIou, retrainRevisionConflictMessage, rewriteBody as rewriteLoginProxyBody, rewriteLocation as rewriteLoginProxyLocation, rewriteReferer as rewriteLoginProxyReferer, rewriteSetCookie as rewriteLoginProxySetCookie, roleSpec, rollingDurationMs, roomCompositionExample, rootSuppliesOf, rootSupplyServes, rowsDepsOver, ruleAutoTriggersAlarm, ruleBelongsToAlarm, ruleDeviceCompatCapNames, ruleDeviceCompatCapQueries, ruleEditorSectionsForKind, ruleFireOfClaim, ruleGatedOnArmedState, ruleGroupingApplies, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, ruleTriggerZoneIds, runAddonMigrations, runExportedAction, runFanOut, runForDevices, runInferenceStep, runSteps, runningFollowsSwitch, runningFromDishwasherOperation, runningFromLawnMower, runningFromMediaPlayer, runningFromVacuumState, runningOptOutFeature, runningPowerDefaultsFor, runningStateCapability, runtimeDevices, runtimeFieldUnit, runtimeStatePolicyFor, sameDoFamily, sameHelperBody, sameRead, sanitizeTargetOverride, scalarTargetCount, sceneMonitorCapability, scheduleForSendTimes, schedulersCapability, schemaDeclaresAnyField, scopeInherits, scopeInstancesToCaller, scopeKey, scopesAllowAddon, scopesAllowAddonRoutes, scopesAllowDeviceCap, scopesAllowOwnPreferences, scopesGrantAdmin, scoreRuntimes, scriptRunnerCapability, scrubKnownSecrets, searchIcons, secretArrayPrefixes, secretKeysOf, secretTreeFromPaths, secretTreeFromSchema, secretViewsOf, secretsOverMigrationApi, secureActuationFor, seedInstanceOnce, seedLeaf, seekPatch, selectAppConnectionEndpoints, selectAssignedProfileSlots, selectFewShots, selectRecoveryStep, sendTimesForEditor, sendTimesOfSchedule, sendToExportedTarget, sensorRaisedOf, sensorTransitionMeaning, sensorTransitionNeverFires, sensorTransitionOffered, servedTemplateVars, serverManagementCapability, sessionLostAlertId, sessionsOfDeviceCell, setByPath, setFormulaExpr, setPaletteInputSchema, settingValuesEqual, settingsBelow, settingsStoreCapability, settleDeviceFeatures, shareViewGrantOf, sharedActuatorFeatures, sharedActuatorMethods, sharedColorModes, sharedLightCaps, shortHostname, shortSecretRefHash, signalPercentFromBars, signalPercentFromRssi, siteFor, siteZoneKey, skipSignature, sleep, sleepCancellable, sliceActiveValue, sliceCapOf, sliceChangedAt, slugifyDeviceAlias, smartIrDraft, smokeCapability, smtpProviderCapability, smtpSinceKey, snapshotCapability, sourcePickForHeaterPlug, sourcePickForHistory, sourcePickForMath, sourcePickForTemplate, splitTranslationRef, squareAround, ssoBridgeCapability, stableIdKey, stableIdMapOf, startMoverUnderClearance, startReachabilityPoll, stateLabel, stateVocabularyFor, statisticCadenceMs, statisticDraft, stepGuardSiteIssues, stepModelRunsOnFormat, stepPulse, stepSettingSource, stepSpan, storageAdminCapability, storageCapability, storageEvictableCapability, storageMigrationCapability, storageOccupancyCapability, storageProviderCapability, storedFromReady, storedPaletteSchema, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamSignalsCapability, stripRetiredBandPreBufferSec, strippedOfLegacyReadOnly, subClassesOf, subKindsOf, subjectFromClassName, subjectHasPath, subjectMatches, subjectPathSampleFromBox, subjectPathSvgPoints, summarisePrivacyAudio, summarizeEffectiveScope, summarizeReview, sunCrossings, sunTimes, supplyFor, supportedRuntimes, swatchHex, switchCapability, switchRecordsOverMigrationApi, switchStateOfMode, switchedOffIds, syncActiveAlarmProfileSettings, synthesizeSourceInfo, systemCapability, systemEventClassKinds, systemEventClassOf, systemEventClassesFor, systemEventDeliveryAsModes, systemEventDeliveryModesOf, systemEventDeliveryProblems, systemEventFamilyOf, systemEventFamilyProblems, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, systemEventKindNamesOf, systemEventKindsOfFamily, systemEventSummaryScheduleOf, systemEventSummarySplitOf, systemFamilyOfKind, systemRuleKindOf, tamperCapability, targetAttachmentAllows, targetBody, targetFeature, targetOfRecord, targetRowPortsOver, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, templateCapKey, templateCapability, templateCarriesSummary, templateDeviceType, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, terminalSessionCapability, textToHtml, thresholdDraft, thresholdToBase, thresholdToDisplay, timeOfDayToMinutes, timedRunCapability, timedRunLimitOf, timedRunMaxIn, timedRunQuickRun, timedRunRemaining, timedRunSeconds, toAppLinkHubOrigin, toDeviceSummary, toExpressionValue, toNodeId, toPercentShares, toSecretFieldView, toStreamSourceEntry, toTimings, toastCapability, toggleAudioLabel, tokenize, trainingCapability, trainingProviderCapability, transcodeBody, transformSecretWrite, triggerLeafVariables, triggerVariablesOf, triggeredByIssue, tryConvertDelta, tryConvertUnit, turnProviderCapability, twilightTimes, ungroup, unitCompanionField, unitDimension, unitsForDimension, unitsForQuantity, unmetRequirements, unreachableExtensionSlotRow, unwrapSchema, updateCapability, usableProcessTimeZone, userError, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateComposition, validateCustomAddress, validateDraft, validateExpressionSource, validatePalette, validateRecipeBounds, validateSchedulerInput, validateTimeSpecForSite, validateWhenTree, valveCapability, vectorDimFromBase64, vectorIndexDimConflictError, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerAdmitsDevice, viewerHoldsRole, viewerLinkBaseOf, viewerScopeOf, viewerUiCapability, vocabActionIdFor, actionsForDevice$1 as vocabularyActionsForDevice, triggersForDevice as vocabularyTriggersForDevice, waterHeaterCapability, wattMillisecondsToKwh, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, weekdayOfLocalDate, weeklyMaskIndex, weeklyMaskIsUniform, weeklyMaskToWindows, whenDepth, whenSiteIssues, widenDeviceConstructor, windowsToWeeklyMask, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, withClipEventLabels, withDefaultRunning, withFieldFrom, withLocationMode, withSystemEventClasses, withSystemEventModes, withoutCallerStamp, withoutField, withoutKeyedArrayItem, writeModelBoundSetting, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneOnlySite, zoneRulesCapability, zonesCapability };
|
|
138528
|
+
export { ACCESSORY_LABEL, ACCESS_ROLES, ACTION_RUN_MAX_MS, ACTION_RUN_TIMEOUT_MS, ACTION_RUN_TRANSPORT_MARGIN_MS, ACTION_TARGET_INVALIDATION_EVENTS, ACTIVE_CRITERIA, ACTUATOR_METHODS, ACTUATOR_TEMPLATE_IDS, ADMIN_SCOPE, AGENT_MDNS_QUERY_NAME, AGENT_MDNS_SERVICE_TYPE, AGENT_MDNS_TXT_KEYS, AGGREGATE_REDUCERS, AGGREGATE_THROUGHPUT_BY_KIND, ALEXA_EGRESS_PROFILE, ALL_CAPABILITY_DEFINITIONS, ALL_METHOD_ACCESS, APPEARANCE_BIN_COUNT, APPEARANCE_BLOCKS, APPEARANCE_DESCRIPTOR_VERSION, APPEARANCE_RESOLVES_AMBIGUITY_DEFAULT, APPLE_SA_TO_MACRO, APPLIANCE_EXPORT, APP_AUTH_CALLBACK_MAX_LENGTH, APP_AUTH_CALLBACK_URLS, APP_FLOW_DEFAULT_REDIRECT, APP_FLOW_REFUSAL_MESSAGES, APP_FLOW_STATE_PREFIX, APP_REFUSED_PATH, APP_START_REFUSAL_MESSAGES, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT, ARITHMETIC_OPS, AUDIO_ANALYSIS_CAP_NAME, AUDIO_BACKEND_CHOICES, AUDIO_CHUNK_FORMATS, AUDIO_GRADIENT_ALPHAS, AUDIO_MACRO_LABELS, AUDIO_NOT_CLASSIFIED_REASONS, AUDIO_PRESETS, AUDIO_SCALE_EPOCH_ISO, AUDIO_SCALE_EPOCH_MS, AUTOMATIC_HUB_ADDRESS_FLAGS, AUTOMATION_LEAF_CATALOG, AUTOMATION_LEAF_CATEGORIES, AUTOMATION_LEAF_KINDS, AUTO_SHARE_HEADROOM, AUTO_TUNE_FAMILY, AcceleratorComputeSchema, AcceleratorKindSchema, AccessoriesStatusSchema, AccessoryKind, ActionEntrySchema, ActionError, ActionErrorCodeSchema, ActionInputSchema, ActionLinksSchema, ActionMinDelaySecSchema, ActionRunChangedSchema, ActionRunOriginSchema, ActionRunOutcomeSchema, ActionRunResultSchema, ActionSourceKindSchema, ActionStatusSchema, ActionStepSchema, ActionTargetResolver, ActionTargetSchema, ActionVariableSchema, ActionVariableTypeSchema, ActionVariableValueSchema, ActiveCriterionSchema, AddBrokerInputSchema, AddRetrainFrameFromRecordingResultSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonMigrationDefinitionError, AddonMigrationsBlockedError, AddonPageDeclarationSchema, AddonPageInfoSchema, AddonRoutesScopeSchema, AdminLinkTargetEnum, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionCandidateResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, AdoptionJobSchema, AdoptionJobStateSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, AdoptionOutcomeSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AggregateReducerSchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertEpisodePayloadSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, AnalyticsLtsSeriesSchema, AppFlowPurposeSchema, AppLoginPathSchema, AppPageLangSchema, AppleFmAvailabilitySchema, AppleFmUnavailableReasonSchema, ApplianceRunDetailSchema, ArchiveEntrySchema, ArchiveManifestSchema, ArchiveSqliteSnapshotSchema, ArchivedDebugNoteQueryInputSchema, ArchivedDebugNoteSchema, ArithmeticHelperSpecSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioAttachDeviceInputSchema, AudioAttachDeviceResultSchema, AudioChunkFormatSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioClassifyOutcomeSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioDetachDeviceResultSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AudioStreamPickSchema, AuthResultSchema, AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, AutoTuneOptionsSchema, AutoTunePhaseResultSchema, AutoTunePlanSchema, AutoTuneWarningSchema, AutoUpdateSettingsSchema, AutomationActionSchema, AutomationCapStepSchema, AutomationChooseStepSchema, AutomationConditionOperatorSchema, AutomationConditionTraceNodeSchema, AutomationControlStatusSchema, AutomationParallelStepSchema, AutomationRecipeSchema, AutomationRepeatLoopSchema, AutomationRepeatStepSchema, AutomationRunModeSchema, AutomationRunOutcomeSchema, AutomationRunTraceSchema, AutomationRunVerdictSchema, AutomationSetStepSchema, AutomationStateDocSchema, AutomationStepTraceSchema, AutomationStopStepSchema, AutomationTriggerTraceSchema, AutomationWaitStepSchema, AutomationWaitUntilStepSchema, AutomationWhenSchema, AvailableIntegrationTypeSchema, BASE_DEVICE_CAPS, BASE_LIVE_EGRESS_PROFILE, BATTERY_DEVICE_PROFILE, BATTERY_UNREACHABLE_AFTER_MS, BENCH_ROOT_STEP_ID, BINARY_AGGREGATES, BIRTH_DECISION_DEFAULT_LIMIT, BOOT_RECOVERY_BACKOFF_MS, BUILTIN_REMOTE_COMPONENTS, BUILTIN_RESULT_KINDS, BackgroundRunRegistry, BacklightModeSchema, BackupArchiveEncryptionSchema, BackupDestinationInfoSchema, BackupEncryptionStatusSchema, BackupEntrySchema, BackupRunPhaseSchema, BackupRunSchema, BackupRunStateSchema, BackupTriggerResultSchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatchTooLargeError, BatteryStatusSchema, BecomesOperatorSchema, BecomesWatch, BinaryStatusSchema, BirthDecisionCropSourceSchema, BirthDecisionQueryInputSchema, BirthDecisionRecordSchema, BirthDecisionVerdictSchema, BoardKeyFailureReasonSchema, BoundingBoxSchema, BrightnessStatusSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, BucketAccumulator, BulkRecordSchema, CALENDAR_PERIODS, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAMERA_SENSORS_NOT_LOADED, CAMERA_SENSORS_SETTINGS_KEY, CAMERA_SWITCH_CATALOG, CAMERA_SWITCH_ORDER, CAMERA_TRIGGER, CAMSTACK_APP_LINK_ORIGIN, CAMSTACK_EVENT_PREFIX, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_COMMAND_ORIGIN_CONTEXT_KEY, CAP_CUSTOMIZE_CATALOG, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, CAP_RUNTIME_FIELD_UNITS, CAP_VOCABULARY, CAP_VOCABULARY_BY_NAME, CATALOG_LANGS, CHOOSE_BRANCHES_MAX, CIVIL_TWILIGHT_ALTITUDE_DEG, CLASS_MAP_MACRO_TARGETS, CLIMATE_ROLES, CLIP_BROKER_PACED_RATES, CLIP_LABEL_EVENT_FETCH_LIMIT, CLIP_PLAYBACK_OPTIONS, CLIP_REALTIME_SOURCE_RATES, CLIP_REASON_HEADER_MAX, CLIP_SEARCH_STRICTNESS, CLIP_STILL_DISPOSITION_HEADER, CLIP_STILL_REASON_CODE_HEADER, CLIP_STILL_REASON_HEADER, CLIP_STREAM_SOURCE_RATES, CLIP_STREAM_TRANSPORT_HEADER, CLIP_STRICTNESS_FACTOR, CLIP_VECTOR_INDEX_PATTERN, CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, CLUSTER_STEP_SETTING_FIELDS, COCO_80_LABELS, COCO_TO_MACRO, COMPOSED_DEVICE_STABLE_ID_PREFIX, COMPOSED_ITEM_FIXED_FIELDS, COMPOSER_ADDON_ID, COMPOSER_RUNNER_ID, COMPOSITION_EVENT_CATEGORY, COMPOSITION_ITEM_ARRAY_PATH, COMPOSITION_ITEM_KEY_RE, COMPOSITION_LINK_KINDS, COMPOSITION_TARGET_CAP_NAMES, CONNECTION_TEST_TIMEOUT_MS, CONTAINER_CHILD_PRIORITY, CONTAINER_PRIMARY_CHILD_RULES, CORAL_DEFAULT_MODEL_ID, CORE_BLOCKS_ADDON_ID, CORE_BLOCK_ADDON_PREFIX, CORE_ULTRA_265K_IGPU_CLOCK_MHZ, CORE_ULTRA_265K_IGPU_EU, CREDENTIAL_TOKEN_AUDIENCE, CREDENTIAL_TOKEN_KIND, CROP_CLASS_FLOORS, CROP_SUPPLY_SOURCES, CROP_SUPPLY_STEP_IDS, CUSTOMIZATION_BLOCK_NAME_PREFIX, CUSTOMIZE_APPLY_AUTHORITY_KINDS, CUSTOMIZE_CARDINALITIES, CUSTOMIZE_EVENT_SHAPES, CUSTOMIZE_TARGET_SECTIONS, CalendarColorSchema, CalendarEntrySchema, CalendarEventSchema, CalendarInfoSchema, CalendarListEventsInputSchema, CalendarPreferenceEntrySchema, CalendarPreferencesSchema, CalendarSetPreferenceInputSchema, CalendarSourceKindSchema, CalendarWindowSchema, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionSourceSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraOccupancySnapshotForDeviceSchema, CameraOwnMotionSchema, CameraRawLevelSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSensorAttachmentSchema, CameraSensorEntrySchema, CameraSensorModeSchema, CameraSensorRefSchema, CameraSensorsConfigSchema, CameraSensorsNotEnforcedSchema, CameraSensorsNotForwardedSchema, CameraSensorsStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CameraStreamSchema, CameraSwitchAuthoritySchema, CameraSwitchGroupSchema, CameraSwitchIdSchema, CameraSwitchSchema, CameraSwitchUnavailableReasonSchema, CameraSwitchWarningSchema, CamstackError, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CapacityFallbackSchema, CapacitySourceSchema, CarbonMonoxideStatusSchema, CatalogFileSchema, CatalogLangSchema, ChargingStatus, ClaimOutcomeSchema, ClaimsListingSchema, CleanupDeletedDevicesResultSchema, ClearTrackRelationInputSchema, ClearTrackRelationResultSchema, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipBytesOfferSchema, ClipBytesSchema, ClipExportFailureSchema, ClipModelMetaSchema, ClipPlaybackOptionsSchema, ClipPlaybackSchema, ClipSchema, ClipSearchStrictnessSchema, ClipSourceAvailabilitySchema, ClipSourceSchema, ClipStillDispositionSchema, ClipStillRefusalCodeSchema, ClipStreamAudioReasonSchema, ClipStreamAudioSchema, ClipStreamDialSchema, ClipWakeSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, ClusterModelChoiceSchema, ClusterUpdateBlockerSchema, ClusterUpdateFailureReasonSchema, ClusterUpdateJobSchema, ClusterUpdateJobStateSchema, ClusterUpdateOptionsSchema, ClusterUpdatePlanSchema, ClusterUpdateStepKindSchema, ClusterUpdateStepSchema, ClusterUpdateStepStatusSchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, CommandOriginClaimSchema, CompleteEnrollmentInputSchema, CompleteEnrollmentOutputSchema, CompleteEnrollmentResultSchema, ComposableCapabilitiesSchema, ComposableCapabilitySchema, ComposableFieldSchema, ComposerApplyInputSchema, ComposerApplyResultSchema, ComposerBlockSchema, ComposerBlockVerdictSchema, ComposerUnreadableBlockSchema, CompositionAggregateSourceSchema, CompositionBindingSchema, CompositionBlockInputSchema, CompositionBlockStateSchema, CompositionCodeSourceSchema, CompositionCommandTargetSchema, CompositionCustomizationReadSchema, CompositionEventPlanSchema, CompositionExistingTargetSchema, CompositionExpressionSourceSchema, CompositionExtensionCommandSchema, CompositionFeatureModeSchema, CompositionFeaturePlanSchema, CompositionFeatureSchema, CompositionFieldItemSchema, CompositionFieldKindSchema, CompositionFieldPlanSchema, CompositionFieldReadSchema, CompositionFieldRoleSchema, CompositionFieldSourceSchema, CompositionFieldStateKindSchema, CompositionFieldStateSchema, CompositionFieldsFeatureSchema, CompositionForwardArgSchema, CompositionForwardCommandSchema, CompositionFromSourceSchema, CompositionGetReadSchema, CompositionGraphError, CompositionItemEntrySchema, CompositionListReadSchema, CompositionLiteralBindingSchema, CompositionNewTargetSchema, CompositionPassthroughFeatureSchema, CompositionProblemCodeSchema, CompositionProblemSchema, CompositionRunStatusSchema, CompositionSchema, CompositionSeriesSourceSchema, CompositionSourceRefSchema, CompositionStateReadSchema, CompositionTargetSchema, CompositionUnavailableModeSchema, CompositionValidationSchema, CompositionViewSchema, ConditionMirror, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableFormSchema, ConsumableItemSchema, ConsumableKindSchema, ConsumableLevelSchema, ConsumableRemainingKindSchema, ConsumableRemainingSchema, ConsumableStatusSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoreBlockCompileInputSchema, CoreBlockCompileResultSchema, CoreBlockFilesSchema, CoreBlockInputFieldsSchema, CoreBlockInputSchema, CoreBlockPlacementSchema, CoreBlockSchema, CoreBlockSourceSchema, CoreBlockStatusSchema, CoverStateSchema, CoverStatusSchema, CreateUserInputSchema, CredentialScopeSchema, CredentialTokenClaimsSchema, CurrentAutomationRecipeSchema, CustomActionInputSchema, CustomModelDescriptorSchema, CustomizeAssignmentStatusSchema, DATABASE_SNAPSHOT_PARTIAL_SUFFIX, DATABASE_SNAPSHOT_SUFFIX, DATABASE_SNAPSHOT_TIMEOUT_MS, DATAPLANE_SECRET_HEADER, DATA_STORE_DATABASES, DAYS_PER_WEEK, DAY_MS, DAY_NAMES, DEBUG_CHANNEL_PREFIX, DEBUG_WATCH_HARD_CAP_MS, DEBUG_WATCH_REARM_EVERY_MS, DEBUG_WATCH_WINDOW_MS, DECLARED_DEVICE_SWEEP_LIMIT, DECLARED_INTEGRATION_FIXED_KEY, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_CAMERA_FPS, DEFAULT_CAMERA_SENSOR_MODE, DEFAULT_CATALOG_LANG, DEFAULT_CLUSTER_STEP_MODELS, DEFAULT_CLUSTER_STEP_SETTINGS, DEFAULT_CORE_BLOCK_ENTRY, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_DETAIL_CROP_CONVENTION, DEFAULT_DISPLAY_PREFERENCE, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, DEFAULT_HEADROOM, DEFAULT_HISTORY_RETENTION, DEFAULT_HOLD_OVERRIDE, DEFAULT_MAX_HOLD_ATTEMPTS, DEFAULT_MAX_LATE_MS, DEFAULT_MIN_LANDMARK_FACE_SIZE_PX, DEFAULT_MIN_SESSIONS_PER_DEVICE, DEFAULT_NATIVE_LEASE_SETTINGS, DEFAULT_OVERLAY_LAYERS, DEFAULT_POOL_MEMORY_POLICY, DEFAULT_RECORDING_PROFILES, DEFAULT_RETENTION, DEFAULT_RUNTIME_STATE_DURABILITY, DEFAULT_SESSION_LOST_DEBOUNCE_MS, DEFAULT_SESSION_PLACEMENT_POLICY, DEFAULT_SHARE_SOURCE, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DEFAULT_TOKEN_EXPIRY, DEFAULT_TRACE_KEEP, DEFAULT_VIEWER_SCOPE, DEFINITIVE_DEVICE_REFUSALS, DERIVATIVE_UNITS, DERIVED_CAMERA_SILENCED_CAP_NAMES, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, DETECTION_LABEL_SOURCES, DETECTION_MACRO_CLASSES, DETECTION_PIPELINE_CAP_NAME, DETECTOR_ACCURACY, DETECTOR_PERF, DEVICE_ALIAS_MAX_LENGTH, DEVICE_ALIAS_PATTERN, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_CERT_RENEW_WINDOW_DAYS, DEVICE_CERT_SIGNATURE, DEVICE_CERT_VALIDITY_DAYS, DEVICE_CHILDREN_BATCH_MAX, DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE, DEVICE_DO_ACTIONS, DEVICE_ENROLLMENT_TTL_MS, DEVICE_FEATURE_REQUIREMENTS, DEVICE_HISTORY_ENERGY_KEY, DEVICE_HISTORY_ORPHAN_DELETE_MAX, DEVICE_HISTORY_ORPHAN_LIST_MAX, DEVICE_HISTORY_QUERY_MANY_MAX_ITEMS, DEVICE_ID_FIELD, DEVICE_NONCE_TTL_MS, DEVICE_PROFILES, DEVICE_RAMP, DEVICE_REFRESH_REFUSAL_PREFIX, DEVICE_RESTORE_RETRY_CONCURRENCY, DEVICE_RESTORE_RETRY_DELAYS_MS, DEVICE_RUNS_MAX_PAGE, DEVICE_SAN_CREDENTIAL_PREFIX, DEVICE_SAN_USER_PREFIX, DEVICE_SCOPED_CAPS, DEVICE_SEARCH_DEFAULT_LIMIT, DEVICE_SEARCH_MAX_LIMIT, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_SIGNATURE_MESSAGE_VERSION, DEVICE_STATE_READERS, DEVICE_STATUS_METHOD, DEVICE_TEMPLATE_BUDGET_MS, DEVICE_TEMPLATE_FILTERS, DEVICE_TEMPLATE_MAX_LENGTH, DEVICE_TEMPLATE_MAX_OUTPUT, DEVICE_TEMPLATE_NOW_ALIAS, DEVICE_TEMPLATE_REFUSAL_REASONS, DEVICE_TEMPLATE_THIS_ALIAS, DEVICE_TEMPLATE_TRACE_REASONS, DEVICE_TEMPLATE_UNAVAILABLE, DEVICE_TEMPLATE_VALUES_CAP, DEVICE_TOMBSTONE_RETENTION_MS, DEVICE_TRANSITIONS_MAX_PAGE, DEVICE_TRANSITIONS_RECORD_BATCH_MAX, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_DO_CAPS, DEVICE_TYPE_INFO, DISPLAY_PREFERENCES, DISPLAY_PRESETS, DOORBELL_RISE_DEBOUNCE_MS, DRAFT_KINDS, DataStoreDatabaseSchema, EngineInfoSchema as DataStoreEngineInfoSchema, DatabaseSnapshotRequestSchema, DatabaseSnapshotResultSchema, DatabaseSnapshotTableSchema, DatabaseSnapshotTargetsSchema, DatabaseSnapshotWrittenSchema, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DebugInterest, DebugWatchTable, DeclarationRefusedError, DeclareCollectionInputSchema, DeclareKindResultSchema, DeclaredDevices, DecodedAudioChunkSchema, DeleteIntegrationResultSchema, DeliveryParamSchema, DeliveryParamValueSchema, DerivativeHelperSpecSchema, DesktopAppStatusSchema, DetailCropConventionSchema, DetectionCatalogClassMapSchema, DetectionSourceSchema, DetectionSourcesSchema, DetectionSubjectSchema, DetectionTriggerFilter, DeviceAdminLinkSchema, DeviceAliasSchema, DeviceCaStatusSchema, DeviceCertificateLoginMethodSchema, DeviceCertificateSettingsSchema, DeviceChallengeResultSchema, DeviceChallengeSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceCredentialSchema, DeviceCredentialStatusSchema, DeviceDataEntrySchema, DeviceEnrollProofSchema, ExposeInputSchema as DeviceExportExposeInputSchema, InstancePinSchema as DeviceExportInstancePinSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceHistoryKindSchema, DeviceHistoryOrphanDeleteRefusalSchema, DeviceHistoryOrphanReasonSchema, DeviceHistoryProducerKindSchema, DeviceHistoryRefusalReasonSchema, DeviceHistoryResolutionSchema, DeviceHistoryStatusSchema, DeviceHistorySubjectSchema, DeviceInfoSchema, DeviceModelChoiceSchema, DeviceNetworkStatsSchema, DevicePlatformSchema, DeviceProofInputSchema, DeviceRecommendationSchema, DeviceRefusalReasonSchema, DeviceRefusalSchema, DeviceRemovedInputSchema, DeviceRemovedResultSchema, DeviceRestoreRetryScheduler, DeviceRole, DeviceRunDetailSchema, DeviceRunEnergyMethodSchema, DeviceRunKindSchema, DeviceRunOutcomeSchema, DeviceRunPhaseSchema, DeviceRunSchema, DeviceRunSourceSchema, DeviceRunStateSchema, DeviceRuntimeState, DeviceSearchFacetIntegrationSchema, DeviceSearchFacetValueSchema, DeviceSearchFacetsSchema, DeviceSearchFiltersSchema, DeviceSearchInputSchema, DeviceSearchItemSchema, DeviceSearchRequiresSchema, DeviceSearchResultSchema, DeviceSelectorSchema, DeviceSignaturePurposeSchema, DeviceStatusSchema, DeviceTemplateRefusalSchema, DeviceTemplateRenderSchema, DeviceTemplateSchema, DeviceTemplateThisDeviceSchema, DeviceTemplateTraceEntrySchema, DeviceTemplateValueSchema, DeviceTombstoneSchema, DeviceTransitionSchema, DeviceType, DeviceValueOptionSchema, DiagnosticIdSchema, DiagnosticWindowPatchSchema, DiagnosticWindowSchema, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DiscoveryHitSchema, DiscoveryModeSchema, DiscoveryObservationSchema, DiscoveryProposalBodySchema, DiscoveryProposalSchema, DishwasherAccessSchema, DishwasherAvailabilitySchema, DishwasherOperationStateSchema, DishwasherOptionDescriptorSchema, DishwasherOptionsSchema, DishwasherProgramSchema, DishwasherStateSchema, DishwasherStatusSchema, DishwasherValueSchema, DiskReconcileJobSchema, DisposerChain, DoNotDisturbStatusSchema, DoorbellPressEventSchema, DoorbellStatusSchema, DraftKindSchema, DraftSiteDeviceSchema, DraftSiteSchema, EMBEDDING_MODEL_FAILED, EMBEDDING_REQUIREMENTS_FAILED, EMBEDDING_REQUIREMENTS_UNAVAILABLE, EMPTY_AUTOMATION_STATE, EMPTY_REMOTE_ASSUMED_STATE, EMPTY_REMOTE_CONFIG, ESTIMATE_COMPUTE_RATIO_MAX, ESTIMATE_COMPUTE_RATIO_MIN, EVENTFUL_CAP_NAMES, EVENT_DENSITY_BATCH_MAX, EVENT_KIND_BY_CAP, EVENT_KIND_LABELS, EVENT_KIND_LABEL_KEYS, EVENT_LEAF_ID_RE, EVENT_OWNER_TYPES, EVENT_PAD_MS, EVENT_TAXONOMY, EVENT_VOCABULARY_KINDS, EXPORT_DENSE_MAX_RANGES, EXPORT_INSTANCE_UNKNOWN, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, EXPRESSION_OUTPUTS, EXTENSION_HOST_DEVICE_TYPES, EXTENSION_SLOTS, EXTENSION_SLOT_IDS, EXTENSION_SLOT_LISTING_METHOD, EXTENSION_SLOT_REF_SEPARATOR, EffectiveDeviceShareSchema, EffectiveNodeShareSchema, EffectiveSharesSchema, EffectiveTuningSchema, EgressEncodeSchema, EgressRateControlSchema, EgressTranscodeRequestSchema, EgressTranscodeSchema, ElementConfigStore, EmbeddingFailedModelSchema, EmbeddingFailedRequirementSchema, EmbeddingInfoSchema, EmbeddingRefusalCodeSchema, EmbeddingResultSchema, EmbeddingTowerSchema, EncodeProfileSchema, EnrichedWidgetMetadataSchema, EnrollSelfInputSchema, EntryDescriptorSchema, EntryKindInfoSchema, EntryViewSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, ErrorCodeSchema, ErrorI18nPayloadSchema, EventCategory, EventDensityBucketSchema, EventDensityForDeviceSchema, EventEmitterStatusSchema, EventFireSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventKindsForDeviceSchema, EventMediaArtifactSchema, EventMediaCoverageSchema, EventMediaKindSchema, EventMediaProductionSchema, EventOwnerTypeSchema, EventSourceType, EventVocabularyEntrySchema, EventVocabularyFieldSchema, EventVocabularyKindSchema, EventVocabularySourceSchema, ExportBytesSchema, ExportClipSubjectSchema, ExportDenseRangeSchema, ExportDenseSchema, ExportDownloadSchema, ExportEntityKindSchema, ExportEntityRefSchema, ExportFootageSubjectSchema, ExportInstanceSchema, ExportInstanceUnknownError, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportSubjectSchema, ExportTimelapseSchema, ExposeEntityInputSchema, ExposedDeviceSchema, ExposedEntitySchema, ExposureModeSchema, ExpressionBindingSourceSchema, ExpressionEvalError, ExpressionFieldBindingSchema, ExpressionGlobalBindingSchema, ExpressionHelperSpecSchema, ExpressionLiteralBindingSchema, ExpressionParseError, ExpressionSourceSchema, ExtensionCandidateSchema, ExtensionCandidatesSchema, ExtensionSetResultSchema, ExtensionSetSlotInputSchema, ExtensionSlotActivationSchema, ExtensionSlotIdSchema, ExtensionSlotRefInputSchema, ExtensionSlotRowSchema, ExtensionSlotSourceSchema, ExtensionSlotStateSchema, ExtensionSlotUnreachableSchema, ExtensionSlotValueSchema, ExtensionSourceAvailabilitySchema, ExtensionSourceHealthSchema, ExtensionSourceSchema, ExternalIdentityKeySchema, ExternalIdentitySchema, FACE_RESCORE_INTERVAL_FIELD, FACE_RESCORE_INTERVAL_KEY, FACE_RESCORE_INTERVAL_MIN_RUNNING, FACE_RESCORE_SECTION_ID, FAN_CAPTURE_FIELDS, FAN_OSCILLATION_AXES, FAN_OSCILLATION_AXIS_LIMITS, FAN_OSCILLATION_AXIS_REFUSALS, FAN_OSCILLATION_AXIS_SETTABLE, FAN_OUT_CONCURRENCY, FAN_PRESETS_MAX, FAN_PRESETS_REFUSALS, FEEDER_EXAMPLE_ADDON_ID, FEEDER_EXAMPLE_HA_DEVICE_ID, FEW_SHOT_COUNT, FFMPEG_PATH_ENV, FIRST_LEVEL_MACRO_CLASSES, FORBIDDEN_MESSAGE_PREFIX, FORWARD_INPUT_KEY, FULL_IMAGE_BBOX, FailureContributionSchema, FailureCounters, FailureReasonCountSchema, FanCaptureFieldSchema, FanCaptureOmissionSchema, FanControlStatusSchema, FanDirectionSchema, FanOscillationAxesSchema, FanOscillationAxisFieldSchema, FanOscillationAxisNameSchema, FanOscillationAxisRefusalSchema, FanOscillationAxisResultSchema, FanOscillationAxisSchema, FanPresetApplyResultSchema, FanPresetAxisSchema, FanPresetCaptureResultSchema, FanPresetFieldResultSchema, FanPresetSchema, FanPresetStateSchema, FanPresetsRefusalSchema, FanPresetsSetResultSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FieldClaimModeSchema, FieldClaimSchema, FilterRequiredError, FloodStatusSchema, Fmp4BoxSplitter, ForeignSecretMarkerError, FrameHandleSchema, FrameInputSchema, FrameLazyCountersSchema, FrameLazyMetricsSchema, G711_SCALE_CORRECTION_DB, GRAMMAR_MAX_LINES, GROUP_TEMPLATES, GROUP_TEMPLATE_IDS, GasStatusSchema, GetLoggingSettingsInputSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, GridLayoutPatchSchema, GridLayoutViewSchema, GroupActiveSchema, GroupCommandResultSchema, GroupCommandsSchema, GroupHelperSpecSchema, GroupStatusSchema, GroupTemplateIdSchema, HAP_AUDIO_BASE, HAP_AUDIO_BITRATE_KBPS, HAP_AUDIO_VBV_KBITS, HAP_KEYFRAME_INTERVAL_SEC, HEAT_PUMP_CIRCUIT_KINDS, HERO_ANIMATIONS, HERO_BACKGROUNDS, HERO_CAP_CONTRIBUTIONS, HERO_CAP_COVERAGE, HERO_LAYOUT_BY_TYPE, HERO_LAYOUT_DEFAULT, HERO_LOOK_BY_ROLE, HERO_LOOK_BY_TYPE, HERO_LOOK_DEFAULT, HERO_ROW_IDS, HERO_ROW_LABELS, HERO_ROW_MODELS_MAX, HERO_SCENES, HERO_SCENE_BY_ROLE, HERO_SCENE_BY_TYPE, HERO_SCENE_MODES, HERO_STATES, HERO_TONES, HF_BASE_URL, HF_REPO, HISTORY_BUCKET_MS, HISTORY_CATALOG, HISTORY_DEFAULT_MIN_INTERVAL_MS, HISTORY_FAST_MS, HISTORY_ITEM_CATALOG, HISTORY_NONE_CAPS, HISTORY_SLOW_MS, HISTORY_TIERS, HISTORY_UNIT_LABELS, HOURS_PER_DAY, HOUR_MS, HUB_ADDRESS_ROLES, HUB_ID_PATTERN, HUB_MDNS_QUERY_NAME, HUB_MDNS_ROLE, HUB_MDNS_SERVICE_TYPE, HUB_MDNS_TXT_KEYS, HUB_VIEWER_MOUNT, HWACCEL_OPTIONS, HardwareClassIdSchema, HealthStatusSchema, HeatPumpCircuitKindSchema, HeatPumpCircuitSchema, HeatPumpEnergySchema, HeatPumpOptionSettingSchema, HeatPumpPowerSchema, HeatPumpRangeSettingSchema, HeatPumpStatusSchema, HeatPumpSystemSchema, HeatPumpTemperaturesSchema, HeatingValveStatusSchema, HelperMemberSchema, HelperSpecSchema, HeroLayoutRowsSchema, HeroRowModelSchema, HfModelResolutionSchema, HistoryPointSchema, HistoryResolutionEnum, HoldCore, HoldOverrideSchema, HoldSpecSchema, HoldTargetStatusSchema, HoldTraceSchema, HoldTracker, HttpsLeafInfoSchema, HubAddressRoleSchema, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ICON_CATALOG_SOURCE, ICON_CATEGORIES, ICON_ENTRIES, ICON_KEYS, ICON_VIEWER_MODULES, IDLE_ACTION_STATUS, INFERENCE_DEVICE_EXCLUSION_REASONS, INITIAL_PULSE, INITIAL_SPAN, INTEGRAL_OUTPUTS, INTERNAL_ACTION_PREFIX, INVERTIBLE_CAPS, IR_TIMINGS_MAX, IconKeySchema, ImageContractSchema, ImageContractStateSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, ImportModelBundleInputSchema, ImportModelBundleResultSchema, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, InstallDesktopUpdateReasonSchema, InstallDesktopUpdateResultSchema, InstalledPackageSchema, InstanceInUseError, IntegralHelperSpecSchema, IntegrationInstanceDescriptionSchema, IntegrationInstanceDiscoverySchema, IntegrationInstanceIdSchema, IntegrationInstanceKindSchema, IntegrationInstanceLinkSchema, IntegrationInstanceModeSchema, IntegrationInstancePatchSchema, IntegrationInstanceRoleSchema, IntegrationInstanceSchema, IntegrationInstanceStatusSchema, IntegrationLiteSchema, IntegrationSessionReporter, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, InvalidRecordError, IrCodecError, IrMediumSchema, IrPayloadSchema, IrSendResultSchema, IrTimingsSchema, IrTransmitterInfoSchema, KEYCHAIN_MAX_REFS_PER_CALL, KEYCHAIN_RESET_CONFIRMATION, KEYCHAIN_RESET_TRIGGER_ACTOR, KNOWN_CAP_NAMES, KWH_PER_WATT_MS, KeptReasonSchema, KeyEventSchema, KeychainAdminSecretSchema, KeychainAuditActionSchema, KeychainAuditEntrySchema, KeychainKeySourceKindSchema, KeychainKeySourceSchema, KeychainResetRecordSchema, KeychainResolveEntrySchema, KeychainResolveResultSchema, KeychainSecretMetaSchema, KeychainSecretUsageSchema, KeychainStateSchema, KeychainStatusSchema, KeychainUnavailableReasonSchema, KeychainWriteRefusedError, LABEL_SUPPLY_MACRO, LABEL_SUPPLY_STEP_IDS, LABEL_SUPPLY_VOCABULARIES, LATER_PHASE, LAYOUT_EDIT_REFUSALS, LEGACY_READ_ONLY_CONFIG_KEY, LIGHT_SHARED_CAPS, LINKED_DEVICES_SLOT, LINKED_LABEL_STEP_PREFIX, LLM_PROFILE_KIND_PATTERN, LOAD_CONTRIBUTION_ATTRIBUTIONS, LOAD_CONTRIBUTION_ROLES, LOCAL_DATE_PATTERN, LOCATION_DESCRIPTION_MAX, LOCATION_ICON_FALLBACK, LOG_CHANNEL_TICK_MS, LOG_LEVEL_RANK, LTS_SCOPE_CLASS_SEPARATOR, LabelAttributionSchema, LabelDefinitionSchema, LabelTierSchema, LatencySourceSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LedgerWalkDeviceReportSchema, LedgerWalkInputSchema, LedgerWalkRefusalSchema, LedgerWalkReportSchema, LedgerWalkSkipCountsSchema, LedgerWalkSkipReasonSchema, LegacyAutomationRecipeSchema, LegacyConditionSchema, LegacyTriggerSchema, LinkedDeviceSchema, LinkedDevicesModeSchema, LinkedDevicesSlotValueSchema, ListNodeBenchmarkResultsInputSchema, ListTrackRelationsInputSchema, ListTrackRelationsResultSchema, LiveViewerCountSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmDownloadProgressSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmListModelsErrorCodeSchema, LlmListModelsInputSchema, LlmListModelsResultSchema, LlmModelFeaturesSchema, LlmModelInfoSchema, LlmNodeModelSchema, LlmProfileFieldSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmProviderConfigSchema, LlmProviderWidgetSchema, LlmRefusalSourceSchema, LlmRetryPolicySchema, LlmRuntimeAppleCompleteInputSchema, LlmRuntimeCancelInputSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmTimeoutDefaults, LlmUsageRollupSchema, LlmUsageSchema, LoadBalancingSharesInputSchema, LoadContributionSchema, LocateSegmentResultSchema, LocationDescriptionAssignmentSchema, LocationIconAssignmentSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogChannelApplyResultSchema, LogChannelDescriptorSchema, LogChannelGate, LogChannelLevelSchema, LogChannelRegistry, LogChannelWindowPatchSchema, LogChannelWindowSchema, LogChannelWindowStateSchema, LogEntrySchema, LogLevelSchema, LogReadCapabilitiesSchema, LogReadEntrySchema, LogReadQuerySchema, LogReadResultSchema, LogStreamEntrySchema, LoggingEffectiveSchema, LoggingExplicitSchema, LoggingLevelLayerSchema, LoggingLevelSourceSchema, LoggingScopeKindSchema, LoggingSettingsPatchSchema, LoggingSettingsStateSchema, LoginMethodContributionSchema, LoginStageEnum, LtsBucketSchema, MACRO_LABELS, MASK_EMITTING_POSTPROCESSORS, MASK_SUPPLY_STEP_IDS, MAX_ARCHIVED_DEBUG_NOTES, MAX_BIRTH_DECISION_RECORDS, MAX_BIRTH_LATENCY_PROXY_MS, MAX_CAMERA_SENSORS, MAX_CLIP_EVENT_IDS, MAX_CLIP_LABELS, MAX_COMPONENT_BUTTONS, MAX_COMPOSITION_CODE_LENGTH, MAX_COMPOSITION_FEATURES, MAX_COMPOSITION_FIELDS_PER_FEATURE, MAX_COMPOSITION_ITEMS, MAX_CONDITION_DEPTH, MAX_CONDITION_LEAVES, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, MAX_HELPER_MEMBERS, MAX_HOLD_ATTEMPTS_LIMIT, MAX_KEYS, MAX_LAYOUT_GROUPS, MAX_LAYOUT_SPAN, MAX_REASONS_PER_KEY, MAX_REMOTE_BINDINGS, MAX_REMOTE_CHANNEL_DIGITS, MAX_REMOTE_CUSTOM_BUTTONS, MAX_REMOTE_SOURCES, MAX_REMOTE_SOURCE_STEPS, MAX_REQUEUED_BUCKETS_PER_SERIES, MAX_SENSOR_TRIGGER_DEVICES, MAX_STEP_DEVICE_OUTCOMES, MAX_TRACE_ARGS, MAX_TRACE_ARG_LENGTH, MAX_TRACE_KEEP, MAX_TRACK_DEBUG_NOTE_LEN, MAX_TRACK_PURITIES, MAX_TRACK_RELATIONS, MAX_WHEN_DEPTH, MAX_WHEN_LEAVES, MEDIA_OWNER_TYPES, MEDIA_PLAYER_MAX_STEPS, MEDIA_PRESENCE_OWNER_KINDS, METHOD_ACCESS_MAP, METHOD_DEVICE_SELECTORS, MIGRATION_API_V1_METHODS, MIGRATION_API_VERSION, MIGRATION_ID_PATTERN, MINUTES_PER_DAY, MINUTE_MS, MIN_CUSTOM_MINUTES, MIN_RUN_MS, MIN_SCRUBBED_LENGTH, MIN_SESSIONS_PER_DEVICE_RANGE, MODEL_FORMATS, MODEL_HOSTING, MODEL_PROVIDER_IDS, MOTION_CLOSE_AFTER_MS, MOTION_CROP_DISPATCH_KEY, MOTION_CROP_MAX_REGIONS, MOTION_CROP_MOTION_PAD, MOTION_CROP_TRACKED_PAD, MOTION_SOURCE_LABELS, MOTION_SPAN_TIMEOUT_MS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelExtraFileSchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileInfoSchema, MediaFileKindEnum, MediaFileRefSchema, MediaFileSchema, MediaLocationCensusInputSchema, MediaLocationCensusRowSchema, MediaLocationCensusSchema, MediaPlayerAssumedFieldSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStateSourceSchema, MediaPlayerStatusSchema, MediaPresenceOwnerKindSchema, MediaRelocateModeSchema, MeshLeafInfoSchema, MeshPeerSchema, MeshStatusSchema, MeterStatusSchema, MethodAccessSchema, MigrateDeviceResultSchema, MigrateSwitchOutcomeSchema, MigrateSwitchReportSchema, MigrationApiInfoSchema, MigrationBodyKindSchema, MigrationCatalogueSchema, MigrationCycleError, MigrationDryRunResultSchema, MigrationEditSchema, MigrationIdSchema, MigrationLedgerEntrySchema, MigrationLevelSchema, MigrationMetaSchema, MigrationOnFailureSchema, MigrationOwnerResultSchema, MigrationOwnerStepSchema, MigrationPendingEntrySchema, MigrationPlanSchema, MigrationProcedureResultSchema, MigrationScopeSchema, MigrationStatusSchema, MigrationStoreSchema, MinVersionSchema, ModelBundleFileSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatPrecisionSchema, ModelFormatsSchema, ModelLicenseSchema, ModelOnDiskStateSchema, ModelPinChangeSchema, ModelProviderIdSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionTriggeredBySchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, BrokerInfoSchema as MqttBrokerInfoSchema, StatusSchema as MqttBrokerStatusSchema, MutationFilterSchema, N100_IGPU_CLOCK_MHZ, N100_IGPU_EU, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SCENE_BUDGET_FIELD, NATIVE_LEASE_SCENE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, NAVIGATION_ACTION_CATALOG, NAVIGATION_LIGHT_LEVEL_MAX, NAVIGATION_LIGHT_LEVEL_MIN, NC_ALARM_CONTROLLABLE_CAPS, NC_ALARM_DEFAULT_PROFILE_ID, NC_ALARM_DEFAULT_PROFILE_NAME, NC_ALARM_DEFAULT_TRIGGERED_DURATION_SEC, NC_ALARM_DELAY_FIELDS, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_NONBLOCKING_MAX, NC_ALARM_NOTIFY_FIELDS, NC_ALARM_OPENING_EVENT_KINDS, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_DEFAULT_DELAYS, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_AUDIO_CONFIRM_HITS_DEFAULT, NC_AUDIO_CONFIRM_HITS_MAX, NC_AUDIO_CONFIRM_HITS_MIN, NC_AUDIO_CONFIRM_WINDOW_MAX_SEC, NC_AUDIO_CONFIRM_WINDOW_MIN_SEC, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT, NC_AUDIO_DBFS_FLOOR, NC_AUDIO_DB_MAX, NC_AUDIO_DB_MIN, NC_AUDIO_DB_OFFERED, NC_AUDIO_DB_STEP, NC_AUDIO_DEFAULTS, NC_AUDIO_HIT_PERCENT_MAX, NC_AUDIO_HIT_PERCENT_MIN, NC_AUDIO_SAMPLING_MAX_SEC, NC_AUDIO_SAMPLING_MIN_SEC, NC_AUDIO_SEED, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_BASE_CONDITION_KEYS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CAMERA_SCOPE_CAP_NAME, 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_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_LEGACY_SYSTEM_EVENT_KINDS, NC_MAX_PER_TRACK_IMMEDIATE, NC_MEDIA_IMAGE_MODES, NC_OCCUPANCY_DEFAULTS, NC_RULE_CLEARABLE_KEYS, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_RULE_RETIRED_CLEAR_KEYS, NC_RULE_SECTIONS, NC_SENSOR_RAISED_FIELD_BY_KIND, NC_SENSOR_TRANSITION_KINDS, NC_SENSOR_TRANSITION_MEANINGS, NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SERVER_PACKAGE_NAME, NC_SNOOZE_MAX_MINUTES, NC_STATE_SUMMARY_SECTION_IDS, NC_SYSTEM_DELIVERY, NC_SYSTEM_EVENT_CLASS_SPECS, NC_SYSTEM_EVENT_CONDITION_FILTER_KEYS, NC_SYSTEM_EVENT_FAMILIES, NC_SYSTEM_EVENT_FAMILY, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_FILTER_KEYS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, NC_SYSTEM_RULE_KINDS, NC_TAXONOMY, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_TITLE_MAX_CHARS, NC_TEMPLATE_VARS, NC_UPDATE_EVENT_PACKAGE_NAMES, NETWORK_LINK_TYPES, NETWORK_LINK_UNKNOWN, NEXT_OCCURRENCE_HORIZON_DAYS, NODE_BENCHMARK_DEFAULTS, NODE_COLOR_IDS, NOTIFICATION_FIELDS, NOTIFICATION_OUTPUT_CAP, NOT_A_HERO_FACT, NO_MEASURED_CAPACITY, NUMERIC_AGGREGATES, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeLeaseAdmissionSchema, NativeLeaseSettingsSchema, NativeObjectClassEnum, NativeObjectDetectionOptionsSchema, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionSettingsPatchSchema, NativeObjectDetectionStatusSchema, NativeObjectGeometryEnum, NavigationActionEntrySchema, NavigationActionIdSchema, NavigationEntryKindSchema, NavigationFeaturesSchema, NavigationLightModeSchema, NavigationModeSchema, NavigationMoveCommandSchema, NavigationPointSchema, NavigationRuntimeStateSchema, NavigationStatusSchema, NcActionIdSchema, NcAlarmBlockingEditSchema, NcAlarmBlockingSchema, NcAlarmConfigSchema, NcAlarmCreateProfileInputSchema, NcAlarmModeCoverageSchema, NcAlarmModeDelaysEditSchema, NcAlarmModeDelaysSchema, NcAlarmModeDeviceListSchema, NcAlarmNonBlockingEditSchema, NcAlarmNonBlockingSchema, NcAlarmPostTriggeredActionSchema, NcAlarmProfileIdInputSchema, NcAlarmProfileMetaSchema, NcAlarmProfilesViewSchema, NcAlarmRenameProfileInputSchema, NcAlarmSecureOnArmEditSchema, NcAlarmSecureOnArmOffSchema, NcAlarmSensorReadingSchema, NcAlarmSensorStateSchema, NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, NcAlarmSkipReasonSchema, NcAlarmSkippedDeviceSchema, NcAudioConditionSchema, NcClipRetentionAskSchema, NcClipRetentionPlanSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcConfirmExpectSchema, NcConfirmSchema, NcCrossingSchema, NcDeliverySchema, NcDeviceStateConditionSchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcHookActionIdsSchema, NcLinkedCameraModeSchema, NcMediaFrameSchema, NcMediaImageSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleActionsSchema, NcRuleClearableKeySchema, NcRuleInputSchema, NcRuleKindSchema, NcRuleLastRunSchema, NcRuleLastRunsSchema, NcRuleNotificationButtonSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcRuleUpdateInputSchema, NcSceneConditionSchema, NcScheduleSchema, NcScheduleWindowSchema, NcSensorTransitionSchema, NcSnoozeInputSchema, NcSnoozeSchema, NcSnoozeScopeSchema, NcSnoozeSuppressedSchema, NcStateSummaryPreviewRowSchema, NcStateSummaryPreviewSchema, NcStateSummaryPreviewSectionSchema, NcStateSummarySectionIdSchema, NcStateSummarySplitSchema, NcSystemEventConditionSchema, NcSystemEventDeliveryModeSchema, NcSystemEventDeliverySchema, NcSystemEventDeliveryToggleSchema, NcSystemEventKindSchema, NcTargetAttachmentSchema, NcTargetOverrideSchema, NcTargetOverridesSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTemplateDefaultSchema, NcTemplateFamilySchema, NcTemplateFieldSchema, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, NcTemplateVarContextSchema, NcTemplateVarDescriptorSchema, NcTemplateVarGroupSchema, NcTemplateVarKindSchema, NcTestResultSchema, NcThrottleGranularitySchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NetworkLinkStatusSchema, NetworkTunnelStartedDataSchema, NoCallerError, NodeBenchCellSchema, NodeBenchClipSchema, NodeBenchDeviceCellSchema, NodeBenchFingerprintSchema, NodeBenchLimitSchema, NodeBenchPipelineCellSchema, NodeBenchProgressSchema, NodeBenchRampStepSchema, NodeBenchRunnerInputSchema, NodeBenchRunnerStateSchema, NodeBenchRunnerStatusSchema, NodeBenchmarkCandidatesSchema, NodeBenchmarkDevicePlanSchema, NodeBenchmarkEndReasonSchema, NodeBenchmarkManifestSchema, NodeBenchmarkMovingCameraSchema, NodeBenchmarkPhaseSchema, NodeBenchmarkPlanSchema, NodeBenchmarkPreflightSchema, NodeBenchmarkRefusalKindSchema, NodeBenchmarkRefusalSchema, NodeBenchmarkResultSchema, NodeBenchmarkResultViewSchema, NodeBenchmarkRunSchema, NodeBenchmarkStateSchema, NodeBenchmarkStatusSchema, NodeBenchmarkStayingCameraSchema, NodeColorIdSchema, NodeDeviceChangeSchema, NodeDirectoryEntrySchema, NodeDirectorySchema, NodeHttpsStateSchema, NodeRecommendationSchema, NodeRemovedInputSchema, NodeRemovedResultSchema, NotificationActionIconSchema, NotificationActionSchema, NotificationFieldSchema, NotificationFormatSchema, NotificationSchema, NotificationTargetStore, NotifierStatusSchema, NumericSensorStatusSchema, OAUTH_LANDING_PATH, OAUTH_LANDING_REASONS, OBJECT_DETECTION_STEP_ID, OPERATOR_WRITTEN_STALE_MS, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, ORPHAN_SWEEP_MIN_INTERVAL_MS, OSD_TEMPLATE_TEXT_MAX, OVERFLOW_REASON, OVERLAY_LAYERS, OWNER_ONLY_EVENT_CATEGORIES, OauthIntegrationDescriptorSchema, ObjectEventSchema, OccupancyBurstRefusalSchema, OccupancyLookAnswerSchema, OccupancyLookRefusalSchema, OccupancyLookRequestSchema, OldTargetBodySchema, OnboardFieldSupportSchema, OnboardRecordTrackSchema, OnboardScheduleSupportSchema, OnboardStorageSchema, OnboardStorageVolumeSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OrphanDeviceDataSchema, OrphanIntegrationSweep, OsdNamedTemplateSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdRenderOutcomeEnum, OsdRenderResultSchema, OsdSlotBindingSchema, OsdSlotViewSchema, OsdSourceSchema, OsdStatusSchema, OsdTemplatePreviewSchema, OverrideDraftSchema, PALETTE_BACKGROUNDS, PALETTE_ENTRY_IDS, PALETTE_MIN_CONTRAST, PALETTE_MIN_DELTA_E, PALETTE_MIN_DELTA_E_MARK, PALETTE_PRESET_IDS, PARALLEL_STEPS_MAX, PARALLEL_STEPS_MIN, PAUSE_MAX_MS, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PENDING_BLOCK_ID, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PET_FOUNTAIN_WATER_KEY, PHOENIX_780M_CU, PIPELINE_ANALYTICS_CAP_NAME, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PIPELINE_RAMP, PLUG_APPLIANCE_TYPES, PLUS_CATALOG_CLASS_FLOORS, PLUS_CATALOG_STOCK_CLASS_FLOORS, PLUS_CATALOG_TO_MACRO, PLUS_CATALOG_UNMAPPED_LABELS, POWER_SOURCE_OFF_SECONDS_DEFAULT, POWER_SOURCE_OFF_SECONDS_MAX, POWER_SOURCE_OFF_SECONDS_MIN, PREFERENCES_MAX_DEVICE_ID_LENGTH, PREFERENCES_MAX_NAMESPACES, PREFERENCES_MAX_VALUE_BYTES, PREFERENCES_NAMESPACE_PATTERN, PREFERENCES_SELF_SCOPE, PRIVACY_MASK_CAP_NAME, PROPOSAL_MIN_SPAN_MS, PROVIDER_KIND_CAP_NAMES, PROVIDER_PIN_FIELD, PUBLIC_ENDPOINT_HTTP_REASON, PULSE_MAX_MS, PYTHON_SCRIPT, PackageInstallationSchema, PackageInstallationsSchema, PackageLlmVerdictSchema, PackageRequiresSchema, PackageUpdateSchema, PackageVersionInfoSchema, PaletteRejectedError, ParkRefusalSchema, ParkTrackFrameResultSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PeerBytesTicketSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PetFountainStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineModelFormatStatusSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PlacementDeviceStatsSchema, PlacementNodeStatsSchema, PlacementStatsInputSchema, PlacementStatsSchema, PlaintextSecretError, PolygonPointSchema, PoolMemoryWatchdog, PowerMeterStatusSchema, PowerSourceActionResultSchema, PowerSourceInfoSchema, PowerSourceRefusalReasonSchema, PowerSourceStateSchema, PowerSwitchRefusedError, PrecisionGopsSchema, PreferenceDeviceIdSchema, PreferenceNamespaceSchema, PreferenceRowSchema, PreferenceValueSchema, PreferencesChangedSinceInputSchema, PreferencesChangedSinceOutputSchema, PreferencesDeleteInputSchema, PreferencesDeleteOutputSchema, PreferencesGetInputSchema, PreferencesGetOutputSchema, PreferencesPutInputSchema, PreferencesPutOutputSchema, PreferencesSelfScopeSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProbeTargetConfigResultSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderJobStateSchema, ProviderJobStatusSchema, ProviderMotionDataSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzHomePresetSchema, PtzHomeReturnSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetFunctionSchema, PtzPresetSchema, PtzStatusSchema, PumpCycleStatusSchema, QUANTITY_BASE, QuantityUnitError, QuantityValueSchema, QueryFilterSchema, RATE_CONTROL_RELAXED, RATE_CONTROL_TIGHT, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECALL_TIE, RECOGNITION_TYPES, RECORDING_AUDIO_TRIGGER_OFFERED_DBFS, RECORDING_EXPORT_MAX_READ_BYTES, RECORDING_SOURCE_CAMSTACK, RECORDING_SOURCE_CAMSTACK_ADDON, RECORDING_TIMELINE_BATCH_MAX, 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, RECOVERY_CROP_MAX_SIDE_PX, RECOVERY_CROP_MIN_SIDE_PX, RECOVERY_CROP_PADDING_RATIO, RECOVERY_EDGE_MARGIN_PX, RECOVERY_FUSE_CONTAINMENT, RECOVERY_FUSE_IOU, RECOVERY_MAX_CROPS_PER_FRAME, RECOVERY_MAX_REGION_FRAME_FRACTION, RECOVERY_MIN_INTERVAL_MS, RECOVERY_MIN_UNCOVERED_FRACTION, RECOVERY_MOTION_MAX_AGE_MS, RECOVERY_VIEW_PX, REDACTED_ARG, REDACTED_SECRET, REFERENCE_COMPUTE, REFERENCE_MATCH_FRACTION, REMOTE_BUTTON_SHAPES, REMOTE_BUTTON_TONES, REMOTE_COMPONENT_CATEGORIES, REMOTE_CONFIG_REFUSALS, REMOTE_CUSTOM_ROLE_ICON, REMOTE_CUSTOM_ROLE_PREFIX, REMOTE_GROUP_FRAMES, REMOTE_KNOWN_ROLES, REMOTE_MAX_REPEAT, REMOTE_MEDIA_COMMANDS, REMOTE_OPEN_ACTION_ID, REMOTE_REFUSAL_REASONS, REMOTE_ROLE_VOCABULARY, REMOTE_SOURCE_KINDS, REMOTE_STEP_DELAY_DEFAULT_MS, REMOTE_STEP_DELAY_MAX_MS, REMOTE_STEP_DELAY_MIN_MS, REMOTE_WIDGET_ROLES, REMOVAL_RECONCILE_INTERVAL_MS, REMOVED_MODEL_IDS, REMOVE_LEAF, REPEAT_COUNT_MAX, REPEAT_DEVICES_MAX, REPEAT_ITEM_VAR, REPEAT_ITERATIONS_MAX, REPEAT_STEPS_MAX, RESERVED_BINDING_NAMES, RESERVED_COLLECTION_SOURCES, RESERVED_RUN_VARS, RESET_PERIODS, RESTORED_CAP_NAMES, RESTREAM_INPUT_PROBE, RETRAIN_REVIEW_ADJUSTED_IOU, RETRAIN_REVIEW_MATCH_IOU, RETRAIN_REVIEW_STATUSES, RETRAIN_REVISION_CONFLICT, REVALIDATE_AFTER_MS, ROLLING_SPANS, ROOM_EXAMPLE_MOTION_SOURCES, ROOM_EXAMPLE_TEMPERATURE_SOURCES, ROOM_OCCUPANCY_WINDOW_MS, ROOT_BUCKET_KEY, ROOT_CHILD_CONTAINMENT_MIN, ROOT_FACE_REFINE_INPUT_PX, ROOT_FACE_REFINE_SCALE, ROOT_SUPPLIABLE_STEP_IDS, RUNNING_POWER_DEFAULTS_BY_TYPE, RUNNING_POWER_GLOBAL_DEFAULTS, RUNNING_POWER_MIN_SAMPLES, RUNNING_POWER_START_DELAY_MS, RUNNING_POWER_STOP_DELAY_MS, RUNNING_POWER_THRESHOLD_WATTS, RUNNING_STATE_COLD, RUNTIME_DEFAULTS, RUNTIME_STATE_POLICY, RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS, RUNTIME_TO_FORMAT, RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, RawStateResultSchema, ReadGopBytesResultSchema, ReadSegmentBytesResultSchema, ReadWindowBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, ReadingQuantitySchema, RebuildObjectEmbeddingsRefusalSchema, RecentTracksPageSchema, RecentTracksQueryInput, RecommendationReasonSchema, RecordBodySchema, RecordFieldPathSchema, RecordIdSchema, RecordIndexSchema, RecordInputSchema, RecordIntegrationInstances, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordQueryInputSchema, RecordQueryResultSchema, RecordRetentionSchema, RecordSecretRefsSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordTransactOpSchema, RecordTriggerSchema, RecordUniqueViolationError, RecordViewSchema, RecordWhereSchema, RecordWindowSchema, RecordingAvailabilityForDeviceSchema, RecordingAvailabilitySchema, RecordingBandAudioSchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysForDeviceSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingObjectTriggerClassSchema, RecordingOnboardOptionsSchema, RecordingOnboardPatchSchema, RecordingOnboardStatusSchema, RecordingPlaybackSchema, RecordingRangeSchema, RecordingReadSchema, RecordingRebalanceInputSchema, RecordingRebalanceMoveSchema, RecordingRebalancePlanSchema, RecordingRebalanceSkipReasonSchema, RecordingRebalanceSkipSchema, RecordingRetentionSchema, RecordingSignalRuntimeStateSchema, RecordingSignalStatusSchema, RecordingSourceAvailabilitySchema, RecordingSourceOptionsSchema, RecordingSourceSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RecordsError, RedirectLoginMethodSchema, RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, RelocateFootageClassSchema, RelocateFootageInputSchema, RelocateJobSchema, RelocateJobStateSchema, RelocateMediaInputSchema, RelocateResidueInputSchema, RelocateResidueSchema, RemoteAssumedStateSchema, RemoteBindingActionSchema, RemoteBindingSchema, RemoteBoundCommandSchema, RemoteButtonShapeSchema, RemoteButtonToneSchema, RemoteCommandListSchema, RemoteComponentButtonSchema, RemoteComponentCategorySchema, RemoteConfigSchema, RemoteCustomButtonSchema, RemoteDigitsSourceSchema, RemoteGroupFrameSchema, RemoteIrSourceSchema, RemoteLayoutButtonSchema, RemoteLayoutComponentSchema, RemoteLayoutGroupSchema, RemoteLayoutPayloadSchema, RemoteMediaCommandResultSchema, RemoteMediaCommandSchema, RemoteRefusalReasonSchema, RemoteRefusedSourceSchema, RemoteRoleSchema, RemoteSendResultSchema, RemoteSequenceSourceSchema, RemoteSetConfigResultSchema, RemoteSourceKindSchema, RemoteSourceSchema, RenderedAsSchema, RenewDeviceCertificateOutputSchema, RenewDeviceCertificateResultSchema, ReportMotionInputSchema, ReportedFailureContributionSchema, ReportedLoadContributionSchema, RequestCensusGroupSchema, RequestCensusProcedureSchema, RequestCensusSnapshotSchema, RequestCensusStatusSchema, RequiredAddonUpdateSchema, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, RetrainAnnotationSourceSchema, RetrainArchiveResultSchema, RetrainArchiveTargetSchema, RetrainAssistProfileSchema, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainBoxReviewSchema, RetrainCollectionCreateResultSchema, RetrainCollectionRenameResultSchema, RetrainCollectionSchema, RetrainCopyRefusalSchema, RetrainCorpusFilterSchema, RetrainCorpusKpiCameraRowSchema, RetrainCorpusKpiSchema, RetrainCorpusPageFrameSchema, RetrainCorpusPageSchema, RetrainDatasetSelectionSchema, RetrainDatasetStatsSchema, RetrainDatasetVersionSchema, RetrainDismissedSchema, RetrainExportFilterSchema, RetrainExportLayoutSchema, RetrainFrameCandidateSchema, RetrainFrameListSchema, RetrainFrameOriginSchema, RetrainFrameReviewSchema, RetrainFrameSchema, RetrainFrameSelectionSchema, RetrainFrameWorkStateSchema, RetrainLlmAssistResultSchema, RetrainLlmProposalSchema, RetrainLlmReviewSchema, RetrainMacroClassSchema, RetrainOriginSchema, RetrainPipelineBoxSchema, RetrainReviewStatusSchema, RetrainStatusSchema, RetrainTrackSchema, RetrainTrainingCorpusResolveResultSchema, RetrainTrainingCorpusSelectionSchema, RetrainTransitionResultSchema, RetrainVerdictSchema, RetrainVerdictSubjectSchema, RetrainVerdictValueSchema, RevConflictError, RevokeOwnDeviceCertificateResultSchema, RingBuffer, RollingWindowSchema, RootStepSupplySchema, RtpSourceSchema, RtspRestreamEntrySchema, RuleFireOriginSchema, RunGate, RunnerBootCheckSchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerJumpStepProvisioningSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, RunnerRefusalSchema, RunningProposalConfidenceSchema, RunningProposalEvidenceSchema, RunningProposalInsufficientEvidenceSchema, RunningProposalInsufficientReasonSchema, RunningProposalReplaySchema, RunningProposalTierSchema, RunningStateSourceSchema, RunningStateStatusSchema, RunningThresholdProposalSchema, SAMSUNG_CARRIER_HZ, SAMSUNG_MAX_BITS, SCENE_CONDITIONS, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS, SCENE_DEFAULT_ANCHOR_THRESHOLD, SCENE_DEFAULT_CHECK_INTERVAL_SEC, SCENE_DEFAULT_OBSERVATION_SPACING_SEC, SCENE_DEFAULT_QUIET_SECONDS, SCENE_DEFAULT_UNCOVERED_POLICY, SCENE_DIVERGED, SCENE_RESET_RECAPTURES, SCHEDULER_WAIT_MAX_SECONDS, SCOPED_SETTINGS_SCOPES, SCOPE_PRESETS, SECRET_CLEAR, SECRET_META, SECRET_REF_SCHEME, SENSOR_FEATURES, SENSOR_MAP, SERIAL_CAPACITY_CAMERA_FPS, SERIES_KINDS, SERVER_NAME_MAX_LENGTH, SERVER_NAME_SETTING_KEY, SESSION_LOST_ALERT_CATEGORY, SESSION_PLACEMENT_SETTING_KEY, SET_VARS_MAX, SET_VAR_NAME_RE, SET_VAR_VALUE_MAX, SHARE_AFFINITY_TOLERANCE_SESSIONS, SHARE_SOURCE_SETTING_KEY, SHARE_VIEW_KINDS, SHARE_VIEW_MAX_DEVICES, SINGLE_HUB_ADDRESS_ROLES, SLICE_MAX_LINES, SMTP_INBOUND_DEFAULT_DOMAIN, SMTP_INBOUND_DEFAULT_ID, SMTP_INBOUND_DEFAULT_MAX_MESSAGE_BYTES, SMTP_INBOUND_DEFAULT_PORT, SMTP_INBOUND_KIND, SMTP_INBOUND_RING_MAX_AGE_MS, SMTP_INBOUND_RING_MAX_MESSAGES, SMTP_INBOUND_TEXT_MAX_CHARS, SMTP_RECIPIENT_CLAIMED, SOURCE_CAPS, SOURCE_CAP_ACTIVE_FIELD, SOURCE_CAP_CHANGED_AT_FIELD, SOURCE_DEVICE_TYPES, SOURCE_INFO_METADATA_KEY, SSO_STATE_COOKIE, SSO_STATE_COOKIE_MAX_AGE_SEC, STATE_LABELS, STATE_LABEL_KEYS, STATIONARY_OVERLAY_STYLE, STATISTIC_STATS, STEP_DEVICE_CONCURRENCY, STEP_NEST_MAX, STOP_REASON_MAX, STORAGE_ACCESS_FALLBACK, STORAGE_BYTES_PER_GB, STORAGE_LOCATION_MODES, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUBJECT_PATH_DWELL_EPS, SUBJECT_PATH_FULL_FRAME_COVERAGE, SUBJECT_PATH_MAX_POINTS, SUB_DETECTION_TYPES, SUNRISE_ALTITUDE_DEG, SYSTEM_CAP_NAMES, SYSTEM_SCOPE_DEVICE_METHODS, SceneCheckSchema, SceneConditionSchema, SceneConfirmSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusForDeviceSchema, SceneMonitorStatusSchema, SceneReferenceSchema, SceneUnavailableSchema, SceneUncoveredPolicySchema, SceneVerdictSchema, SchedulerConflictSchema, SchedulerError, SchedulerErrorCodeSchema, SchedulerInputSchema, SchedulerOutcomeSchema, SchedulerPointModeSchema, SchedulerPointSchema, SchedulerPreviewPointSchema, SchedulerPreviewSchema, SchedulerProfileSchema, SchedulerSchema, SchedulerStateTreeSchema, SchedulerStatusSchema, SchedulerTimeSpecSchema, ScopedTokenSchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerNameInfoSchema, ServerNameSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateOutcomeSchema, ServerUpdateStateSchema, SessionHealthTracker, SessionPlacementPolicySchema, SessionTriggerSchema, SetCameraSensorsInputSchema, SetLoggingSettingsInputSchema, SetOscillationAxisInputSchema, SetShareSourceInputSchema, SetSiteLocationInputSchema, SetTrackPurityInputSchema, SetTrackPurityResultSchema, SetTrackRelationInputSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShareSourceSchema, ShareViewGrantSchema, ShareViewScopeSchema, ShareWeightsSchema, SiteLocationSchema, SiteLocationSourceSchema, SiteLocationStatusSchema, SiteZoneSchema, SmokeStatusSchema, SmtpInboundAttachmentSchema, SmtpInboundConfigSchema, SmtpInboundFilterSchema, SmtpInboundMessageSchema, SmtpInboundSettingsSchema, SmtpInboundSinceSchema, SmtpRecipientSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StaleDataReportSchema, StaleDevicePinSchema, StaleKindFindingSchema, StaleSettingsKeyFindingSchema, StartClusterUpdateResultSchema, StartEmbeddedInputSchema, StartEnrollmentOutputSchema, StationaryObjectSchema, StationarySubjectSchema, StatisticHelperSpecSchema, StatisticWindowSchema, StepDeviceTraceSchema, StepTemplateError, AbortUploadInputSchema as StorageAbortUploadInputSchema, StorageAccessSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, StorageCleanupInputSchema, StorageCleanupJobSchema, StorageCleanupPhaseSchema, StorageCleanupStatusInputSchema, StorageDrainProgressSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, StorageEvictionPolicySchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageKindSchema, StorageLocationDeclarationSchema, StorageLocationModeSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, StorageMigrationClassSchema, StorageMigrationDestinationsSchema, StorageMigrationDrainInputSchema, StorageMigrationFindingCodeSchema, StorageMigrationFindingSchema, StorageMigrationFootageMoveInputSchema, StorageMigrationInputSchema, StorageMigrationJobSchema, StorageMigrationLaneSchema, StorageMigrationLeaseInputSchema, StorageMigrationMediaMoveInputSchema, StorageMigrationModeSchema, StorageMigrationMoveProgressSchema, StorageMigrationMoveSchema, StorageMigrationMoverSchema, StorageMigrationParticipantSchema, StorageMigrationPhaseSchema, StorageMigrationPlanSchema, StorageMigrationResidueSchema, StorageMigrationSourcesSchema, StorageOccupancyReportSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, StorageTableSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StoredRecordKindDeclarationSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSignalSchema, StreamSignalsStatusSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SuggestSharesInputSchema, SuggestSharesResultSchema, SuggestedDeviceShareSchema, SuggestedNodeShareSchema, SunEventSchema, SuppliedRootOutputSchema, SwitchStatusSchema, SystemHeldSecretNameSchema, SystemMetricsSchema, SystemMirror, TARGET_OWNER_KEY, TEMPLATE_KINDS, TEMPLATE_PAYLOAD_SCHEMAS, TEMPLATE_WRITE_REFUSALS, THRESHOLD_GRID_W, TIMED_RUN_DEVICE_ROLES, TIMED_RUN_DEVICE_TYPES, TIMED_RUN_HEATER_LIMIT, TIMED_RUN_PET_FOUNTAIN_LIMIT, TIMELAPSE_DENSE_FLOOR_SEC, TIMEZONES, TRACK_RELATIONS_DEFAULT_LIMIT, TRAINING_JOB_SCHEMA, TRAINING_RESULT_SCHEMA, TRANSCODE_DOWN_MAX_BITRATE_KBPS, TRANSCODE_DOWN_MAX_HEIGHT, TRIGGERED_BY_MAX_IDS, TamperStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetKindTextCapsSchema, TargetSchema, TemperatureSensorStatusSchema, TemplateDeleteResultSchema, TemplateKindSchema, TemplateRecordSchema, TemplateUserSchema, TemplateWriteResultSchema, TerminalInstanceInfoSchema, TerminalLegacyCameraSchema, TerminalOutputBatchSchema, TerminalOutputEventSchema, TerminalProfileInfoSchema, TerminalSessionInfoSchema, TestConnectionResultSchema, TestConnectionStatusEnum, TestResultSchema, ThresholdHelperSpecSchema, TimeSpecSchema, TimedRunActuatorSchema, TimedRunOptionsSchema, TimedRunQuickRunSchema, TimedRunRefusalSchema, TimedRunResultSchema, TimedRunSettingsPatchSchema, TimedRunStatusSchema, TimedRunUnitSchema, TimelapseRuleInputSchema, TimelapseRulePatchSchema, TimelapseRuleSchema, TimelapseTemplateSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TraceNodeOutcomeSchema, TraceValueSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackFlagsPatchSchema, TrackFlagsSchema, TrackPlacementSchema, TrackProjectionSchema, TrackPuritySchema, TrackPurityValueSchema, TrackRelationKindSchema, TrackRelationRefusalSchema, TrackRelationSchema, TrackSchema, TrackSideSchema, TrackSourceSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TrainerSourceRefSchema, TrainingAcceleratorRefSchema, TrainingBaseModelSchema, TrainingCanarySchema, TrainingCanaryTargetSchema, TrainingCatalogDraftSchema, TrainingCorpusSelectionSchema, TrainingEvalClassSchema, TrainingEvalReportSchema, TrainingEventSchema, TrainingExportDeviceTotalsSchema, TrainingExportSchema, TrainingExportSummarySchema, TrainingFailureReasonSchema, TrainingGpuOptionSchema, TrainingJobPlanSchema, TrainingJobRequestSchema, TrainingJobSchema, TrainingJobSpecSchema, TrainingJobStateSchema, TrainingLogLineSchema, TrainingPresetSchema, TrainingProgressPointSchema, TrainingProviderDefaultsSchema, TrainingProviderDescriptorSchema, TrainingProviderEntrySchema, TrainingProviderTypeSchema, TrainingRefusalReasonSchema, TrainingRegionOptionSchema, TrainingResultFileSchema, TrainingResultSchema, TrainingSplitPlanSchema, TrainingStageSchema, TransactRefusedError, TransitionActorKindSchema, TransitionActorSchema, TransitionCommandSchema, TransitionOutcomeSchema, TransitionRecordResultSchema, TransitionRefusalReasonSchema, TransitionValueSchema, TransitionsStatusSchema, TransmitSettingKeySchema, TransmitSettingsSchema, TransportPlaneCountsSchema, TransportPlaneSchema, TurnServerSchema, UNATTRIBUTED_BUCKET_KEY, UNIT_TABLE, UNLOCK_CONFIRMATION, USE_ROOT_MODEL_DEFAULTS, USE_ROOT_MODEL_SETTING_KEY, UnexposeEntityInputSchema, UnindexedFilterError, UninstallNodeOutcomeSchema, UninstallNodeResultSchema, UninstallPackageResultSchema, UnitConversionError, UnitWarningSchema, UnknownInstanceError, UnknownInstanceKindError, UnknownRecordKindError, UnmetRequirementSchema, UnreleasedClaimSchema, UnstampedEventMediaCountSchema, UnstampedRowsSchema, UpdateBlockerSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserScopeSchema, UserSummarySchema, VECTOR_INDEX_DIM_CONFLICT, VENDOR_LOGIN_PROXY_PREFIX, VIDEOCLIPS_MAX_OFFER_BYTES, VIDEOCLIPS_MAX_READ_BYTES, VIEWER_FEATURES, VIEWER_FEATURE_IDS, VISIT_MERGE_GAP_MS, VOCAB_TEMPLATES, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VectorDeclareIndexInputSchema, VectorDeleteByFilterInputSchema, VectorDeleteInputSchema, VectorDeleteResultSchema, VectorFilterSchema, VectorGetInputSchema, VectorGetResultSchema, VectorItemSchema, VectorMatchSchema, VectorMetadataSchema, VectorMetricSchema, VectorQueryInputSchema, VectorQueryResultSchema, VectorStatsInputSchema, VectorStatsResultSchema, VectorUpsertInputSchema, VectorUpsertResultSchema, VendorLoginProxy, VibrationStatusSchema, VideoEncodeSchema, ViewerDeviceAllowSchema, ViewerFeatureIdSchema, ViewerTokenScopeSchema, WAIT_MAX_SECONDS, WAIT_UNTIL_TIMEOUT_MAX_S, WEBRTC_CLIMB_HOLD_CODES, WEBRTC_EGRESS_PROFILE, WEBRTC_TRY_BLOCKERS, WEEKLY_MASK_LENGTH, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WHEN_UNROLL_DEPTH, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcClimbHoldSchema, WebrtcLadderDecisionSchema, WebrtcSessionDebugSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WebrtcTierFailureSchema, WeekdayKeySchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, WrapperActivationReadSchema, WrapperEvidenceSchema, WrapperIdentitySchema, WrapperKindSchema, YAMNET_TO_MACRO, ZoneCrossingDirectionSchema, ZoneCrossingSchema, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, __resetDebugInterestForTests, __resetLogChannelRegistryForTests, acceleratorKindOf, accessoriesCapability, accessoryChildrenComplete, accessoryChildrenUnknown, accessoryStableId, actionEffect, actionSourceCapability, actionWaitTotalMs, actionsCapability, actionsForBoundCaps, actionsForDevice, actionsForDeviceType, actionsForDevices, activateAlarmProfile, activeForReducer, actuatorMethodRow, actuatorSwitchDrivesRunning, actuatorSwitchRead, addonCatalogHref, addonIdOfActionId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advertisedHubOrigins, aggregateThroughputFactor, airQualitySensorCapability, alarmDeviceBlocksArming, alarmDeviceSecureOnArm, alarmPanelCapability, alarmPatchLanded, alarmProfileById, alertEpisodeId, alertEpisodeKind, alertEpisodePayload, alertNodeId, alertsCapability, allDoActions, allHeroLooks, allVocabActions, allowedSuppliedEffect, ambientLightSensorCapability, annotateClipsWithEventLabels, anyAxisOscillating, anySubjectMatches, appFlowLocation, appendTrace, applianceExport, applyBlockingEdit, applyCropClassFloors, applyModeDelaysEdits, applyModeDeviceListEdit, applyModelBoundSettings, applyNonBlockingEdit, applyPrimaryChildPreference, applyPrimaryChildRule, applySecureOnArmEdit, arithmeticDraft, armRemovalReconcile, arrayItemFieldPath, asBoolean, asJsonArray, asJsonObject, asNumber, asRecordsError, asString, assertInstanceUnused, assertOwnExportInstance, assertTimelapseCadences, assertTransactScope, assertValidDeclaration, assignNodeColorId, attachmentKindsOf, audioAnalysisCapability, audioAnalyzerCapability, audioChunkBytesPerSample, audioCodecCapability, audioIsFailClosed, audioKindId, audioLabelChoices, audioMetricsCapability, audioModeOf, audioOrDefaults, audioPlanFromEncodeProfile, audioScaleEraOf, auditedFields, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, bareAddonId, baseUnitForQuantity, baseUnitOf, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, boardKeySourceCapability, brightnessCapability, brokerCapability, brokerLinkPortsOver, bucketStartOf, buildActionSteps, buildAddonRouteProvider, buildAudioArgs, buildBenchStepTree, buildCapabilityLookup, buildDeviceAdminUrl, buildDeviceEnrollmentLink, buildDeviceSignatureMessage, buildDraftJsonSchema, buildDraftPrompt, buildEventKindDescriptor, buildFfmpegArgs, buildHeroModel, buildInputArgs, buildLinkedInstances, buildModelVariantGroups, buildNcTaxonomy, buildNotificationTargetInstances, buildPlusCatalogClassMap, buildPowerSwitch, buildRepairPrompt, buildRoleScopes, buildSecretRef, buildSessionLostAlert, buildStepArgsTrace, buildStreamParamsConfigSchema, buildSubjectPath, buildTriggerTrace, buildUserScopedNotificationTargetInstances, buildVideoArgs, buildViewerLink, buildVocabularySlice, builtCapabilityBlockers, builtinRemoteComponent, bundledCamstack, buttonCapability, calendarEventLocalSpan, calendarEventOnLocalDay, calendarRecordId, calendarSourceCapability, calendarsCapability, cameraCredentialsCapability, cameraGridLayoutCapability, cameraOwnsMotionViaSensor, cameraPipelineConfigCapability, cameraScopedStepSettings, cameraSensorRefKey, cameraStreamsCapability, canConvertUnit, canonicalEgressPlan, canonicalIconKey, canonicalJson, canonicalStoredDeviceType, canonicalizeAppCallback, capAppliesToDeviceKind, capUnitResolver, capabilityScopesOf, capacityForModel, capacitySessionsOf, carbonMonoxideCapability, carriesDeviceTemplate, catalogueIssues, cellsToRects, checkDeviceAlias, checkRoleAddress, checkTemplatePayload, claimDevicesMigration, claimDevicesPortsOver, claimDevicesToDefaultIntegration, claimedRequestOrigins, classifyBearerPrincipal, classifyCamerasForBenchmark, classifyFieldSource, classifyInferenceHardware, classifyRetrainReview, classifySecretWrite, classifyStoreError, classifyStream, classifyStreams, clearKnownSecrets, clearModelBoundOverrides, clearModelBoundSetting, climateControlCapability, climateRoleOf, clipEventLabelDepsFromApi, clipExportFailure, clipExportFailureOf, clipLabelsForWindow, clipReasonHeaderValue, cloneAlarmSettings, cloneStatefulExpressionMemory, clusterModelSettingKey, clusterStepSettingFieldsFor, clusterStepSettingKey, clusterUpdateCapability, codecIsAccepted, collectDeviceTemplates, collectHydratedFieldEntries, collectHydratedFieldValues, collectKeychainStoredKeys, collectMirrorSources, collectModelBoundKeys, collectOwnerIntegrationIds, collectSecretConfigKeys, collectSecretLeaves, collectSecretMarkerRefs, collectWhenMirrorSources, collectZodSecretPaths, colorCapability, colorForKind, commandEffect, commandMethodProblems, commandOrigin, commandedMethods, commitWatchdogRestart, compareDraft, compareToTarget, compareVersions, compileExpression, compileExpressionSafe, compileHelper, compileKeyedArrayOverride, compilePulseOverride, compileScalarOverride, compileSpanOverride, composeInstanceKinds, composeSwitchedOff, composedDeviceRef, composedDeviceStableId, composerCapability, compositionEdges, compositionFeatureEnabled, compositionFieldKey, compositionFillStatus, compositionItemFieldPath, compositionReadKey, compositionSliceKey, compositionSourceKey, compositionSourceRefs, compositionTargetCaps, compositionUnionReads, computeCapacityShares, computeScores, conditionExclusionReason, conditionVisibleForKind, connectivityCapability, consumableFormOf, consumableKindOf, consumableLowPercentOf, consumablesCapability, contactCapability, containingParentIndex, controlCapability, conventionalEventVocabulary, convertLegacyCondition, convertLegacyRecipe, convertLegacyWhen, convertPresetFeature, convertQuantityInput, convertUnit, convertUnitTargets, coralUsableUnits, coreBlockAddonId, coreBlockComposition, coreBlockIdFromAddonId, coreBlockSourceKind, coreBlocksCapability, cosineSimilarity, countRecoverySkips, countWhenLeaves, coverCapability, createAlarmProfile, createDebugEmitter, createDeviceExtensionProvider, createDeviceProxy, createDurableState, createEvent, createEventBusSliceSource, createExpressionScope, createHwAccelCache, createLazyTrpcSource, createLogChannelsProvider, createMirrorSource, createRecordsAccess, createRuntimeStateBridge, createSecretsAccess, createSliceHandle, createStatefulExpressionMemory, createSystemProxy, customAction, customKeyOfRole, customModelRegistryCapability, customRole, dataStoreProviderCapability, databaseSnapshotCapability, dayNightCapability, dayOfWeekToIndex, declarationOwnerNodeId, declarationsOf, declareLinkKind, declareLogChannel, declaredSeriesKind, decodeCompositionToCards, decodeKeyedArrayOverride, decodePronto, decodePulseOverride, decodeScalarOverride, decodeVectorBase64, decoderCapability, defaultDeliveryForSection, defaultDeviceFor, defaultIntegrationApiOver, defaultIntegrationDepsOver, defaultIntegrationMigrationIds, defaultIntegrationMigrations, defaultIntegrationOf, defaultIntegrationPortsOver, defaultThresholdSamples, defineAddonMigrations, defineCustomActions, defineEntryKind, defineExtensionSlotProvider, defineNotificationTargetKind, defineRecordKinds, dehydrateConfigField, dehydrateSchema, deleteAlarmProfile, deliverableFields, deliveryParamsDeclaredBy, derivativeDraft, derivativeUnitLabel, deriveBatteryPresence, deriveCameraSwitches, deriveDetailCropRect, deriveFeatureProvenance, deriveMaskSupplies, deriveMediaPlayerView, derivePostTriggeredAction, deriveRecordingMode, deriveRootFaceRefineRect, deriveRootSupplies, describeComposableCaps, describeCustomActions, describeHold, describeHoldMs, describeModelVariant, describeOnboardClamp, describeOnboardRefusal, describeRootSupplies, describeRootSupply, describeStateField, describeSubject, describeSystemEventDeliveryProblem, describeSystemEventFamilyProblem, describeTopLevelStateFields, describeUnmet, detectAccessRole, detectionClassMatches, detectionPipelineCapability, deviceAdminLinkCapability, deviceAdoptionCapability, deviceAttentionKind, deviceBackendToFormat, deviceCredentialsCapability, deviceCustomAction, deviceDoFamily, deviceExportCapability, statusInstanceOf as deviceExportStatusInstanceOf, statusInstanceOf, deviceExtensionCapability, deviceHistoryCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceRefusalFromMessage, deviceRemovalHookCapability, deviceRunsCapability, deviceSelectorMatches, deviceStateCapability, deviceStatusCapability, deviceTransitionsCapability, diffStepSettings, disarmRoseMemory, dishwasherCapability, displayPaletteCapability, displayUnitFor, doActionSelectValue, doNotDisturbCapability, dominantClipLabels, doorbellCapability, droppedConditionsForKind, edgetpuDelegateDevice, effectiveStepSettings, egressTranscodeSharingKey, egressTransportFromRequest, electByShare, electByShareWithAffinity, eligibleUnderBenchmark, embeddingEncoderCapability, embeddingModelFailedError, embeddingModelFailedOf, embeddingRefusalOf, embeddingRequirementsFailedError, embeddingRequirementsUnavailableError, emitDownForOwnedCaps, emitReadiness, emitsCollectionSelector, encodeCardsToComposition, encodeFlipperParsed, encodeProfileFromStreamShape, encodeSamsung, encodeVectorBase64, ensureAlarmProfiles, entryBody, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, estimateNodeBenchmarkDurationMs, evaluateAggregate, evaluateAst, evaluateCompositionField, evaluateConditionTree, evaluateCount, evaluateDerivative, evaluateExpressionSource, evaluatePoolMemory, evaluateRose, evaluateSensorEdge, evaluateSensorLevelEdge, evaluateStatefulExpressionCall, evaluateStationaryTrigger, evaluateStatistic, evaluateStepCondition, evaluateWhenTree, evaluateZoneRules, event, eventEmitterCapability, eventKindLabel, eventLeafIdAt, eventOverlapsClipWindow, eventTypesOfVocabulary, evictionPolicyForMode, evictionPolicyOfLocation, expandAudioChunkToF32le, expandCapMethods, expandContainer, expandDraft, expandSystemEventClasses, exportSubjectOf, exposeBlockDevices, expressionContainsBuiltinCall, expressionDraft, extensionSlotRef, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, failureContributionCapability, failureRate, fanAxisPath, fanControlCapability, fanOutTargets, fanPresetsCapability, featureFieldEntries, featureForwards, featureOfRole, featureProbeCapability, featureSources, featuresOfBoundCaps, feederCustomizationExample, feederExampleSources, ffmpegRate, fieldEntryToSource, fieldReads, fieldSupportForTargets, fieldUnitKeys, fieldUserFinder, fieldsPinnedAtValueBelow, filesystemBrowseCapability, fillWidthScale, findCandidateCycles, findChannelSource, findCompositionCycles, findMigrationsBlocked, findTimezone, findVocabAction, findVocabularyEntry, flattenNestedRecords, flattenPortsOver, flipperIrDraft, flipperIrTable, flipperRole, floodCapability, foldSnapshotByFunction, followSwitchRunningFeature, forEachLeaf, forbiddenError, foreignCapacityCells, forgetKnownSecret, formatDeviceRevoker, formatForRuntime, formatMediaOwnerKey, formatMinutes, formatPaletteViolations, formatParkedFor, formatReading, formatSecretScope, formulaProblem, forwardProblems, forwardSourceProblems, forwardSourceRefs, freshResults, fuseRecoveredDetections, gasCapability, gbToBytes, generateAutomationBlock, generateDeviceAlias, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getDebugInterest, getLogChannelRegistry, getTaxonomyEntry, gifDeriveSpeed, gifFilterComplex, gifFromMp4Args, globalSecretScope, grammarFor, grantRowsOf, groupActiveCapability, groupCommandsCapability, groupStatusCapability, groupTemplate, guardInstanceDelete, hasEventLeaves, hasHoldLeaves, hasModelBoundOverrides, hasMotionTrigger, hasOwnRunningPowerDefaults, hasTimeLeaves, hasTriggeredByLeaves, hasUrlScheme, heatPumpControlCapability, heatPumpInstantCop, heatPumpStatusCapability, heatingValveCapability, helperMembers, helperSaveProblems, heroArgsWithValue, heroLayoutCapability, t as heroText, hfModelUrl, historyFieldsFor, historyItemFieldPath, historyRetentionFromSettings, historyUnitFor, holdOf, holdRefusalOf, holdVarSlots, htmlToText, hubAddressHostname, hubMotionNativeProvider, humidifierCapability, humiditySensorCapability, hydrateSchema, iconCategoryLabel, iconEntry, iconsInCategory, identifiedEventLeaves, imageCapability, imageModesForKind, imageSettingsCapability, implementedMethodsOf, inferExpressionKinds, inferModelProvider, ingestReading, initialPoolMemoryState, insertComponent, instanceApiOverTargets, instanceSourceOverApi, instancesOfCap, instantKindsOf, integralCadenceMs, integralDraft, integrateReading, integrationBodyFromRows, integrationInstancesCapability, integrationRowsApiOver, integrationRowsMigration, integrationRowsPortsOver, integrationRowsPortsOverApi, integrationRowsToRecordId, integrationsCapability, intercomCapability, internalActionId, interpolate, interpretStoredClusterModel, invalidClusterStepModelEntries, invertPresetFeature, invocationFromEncodeProfile, irSourceProblem, irTransmitterCapability, isAddonInstanceId, isAgentOnlyPlacement, isAirConditioner, isAlarmControllableCap, isAlertEpisodeOpen, isAlertEpisodeSeverity, isAppLinkBase, isAppStartRefusal, isArrayOutputSchema, isAudioChunkFormat, isAudioClassName, isAudioLabelSelected, isAudioRule, isAutomaticShareSource, isBaseConditionKey, isBatteryPresenceFault, isClusterScopedStep, isCollectionArrayMethod, isCommand, isCredentialTokenPayload, isDebugChannelName, isDefaultAlarmProfileId, isDefaultAppConnectionEndpoint, isDefinitiveDeviceRefusal, isDeployableToAgent, isDetectionMacroClass, isDeviceConfigCap, isDeviceScopedCap, isDoActionActuatable, isDoPickerDeviceType, isDrawableSubjectPath, isEmbeddingModelFailed, isEvent, isEventKindLabelKey, isEventLeaf, isEventOwnerType, isFirstLevelMacroClass, isForwardInputRef, isHeldBackTemplateVar, isHistoryHelper, isHubId, isIconKey, isInstanceEnabled, isInternalActionId, isIsolatedBuiltin, isKernelDerivedFeature, isKeychainStoredField, isKnownTemplateVar, isKnownTimeZone, isLabelSupplyStepId, isLeaf, isLocationEnabled, isMediaOwnerType, isModelScopedStepSettingKey, isNode, isOauthLandingReason, isObjectInput, isOccupancyRule, isOwnerOnlyEventCategory, isPlugApplianceType, isPositionTicking, isQuantityValue, isReadingQuantity, isRemoteCustomKey, isRemoteKnownRole, isRemoteRole, isRemoteWidgetRole, isRemovedModelId, isReservedDeviceAlias, isRestoredCap, isRetiredClearKey, isRootRelativeUrl, isRootSuppliableStepId, isRunningOptOut, isSameAddonId, isScheduleActive, isScheduleOnlySystemRule, isSecretClear, isSecretConfigField, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isSecretRefOwnedBy, isSingleHubAddressRole, isSkippedTrace, isSoftwareDecode, isSourceCap, isStateLabelKey, isStatefulBuiltin, isStorageLocationMode, isSystemDelivery, isSystemEventFamily, isSystemEventRecoveryKind, isSystemEventSummaryRule, isSystemRuleKind, isTemplateKind, isUnfilledRequiredProblem, isUsableTimeZone, isVectorIndexDimConflict, isVoidInput, isZodSecret, ituDbfsFromPreEpoch, jobKindSchema, judgeTimeWindow, kebabToCamel, keychainAdminCapability, keychainCapability, kindOfValue, kindsForDiscriminator, knownSecretCount, knownValues, lawnMowerControlCapability, leafCatalogEntry, leafKindsFor, legacyAutoLinkIds, legacyImageMode, legacyModeOf, legacyTargetsOver, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, linkField, linkFieldDescriptor, linkUserFinder, linkedId, linkedIdOf, linkedLabelStepId, linkedStepOf, linksOfKind, listBenchDetailSteps, listNotificationTargets, llmCapability, llmRuntimeCapability, loadContributionCapability, localDateOf, localNetworkCapability, localizeConfigTree, locationIconKey, locationSimilarity, lockControlCapability, lockDoorLinkOfComposition, logBannerArgs, logChannelsCapability, logDestinationCapability, logLevelAtMost, loginMethodCapability, looseSchema, makeInMemoryRecords, makeProfileBrokerId, makeSecretMarker, makeSourceBrokerId, mapAudioLabelToMacro, mapSecretLeaves, markFieldEdited, markdownToHtmlLite, markdownToText, maskUrlCredentials, matchDoAction, maxDurationMs, mayReadLocation, mayWriteToLocation, measuredCapacityFromResults, measuredDetectorCells, mediaPlayerCapability, mediaPlayerExtensionCommands, mediaPlayerFeaturesOfRoles, memoizePinnedFfmpeg, mergeClipLabels, mergeKeyedArrayItem, mergeOverrides, mergeScalarTarget, mergeSecretStatePaths, mergeSettingsBags, mergeSkipTraces, mergeSourceInfo, meshNetworkCapability, meterCapability, method, methodAccessForHttpMethod, methodRefusal, methodRoleOf, metricsProviderCapability, migrateLegacyDeviceSignalConfig, migrationSet, migrationsCapability, minimumOf, minutesToTimeOfDay, modeForSwitch, modeMayRead, modeMayWrite, modelBindingKey, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, modelScopedStepSettingKeys, motionCapability, motionDetectionCapability, motionSourceLabel, motionTriggerCapability, motionZonesCapability, moveBrokerLinksToConnections, moveCalendarIdsToRecords, moveGroup, moveIntegrationRowsToRecords, moveRegistrySwitchToBody, moveTargetRows, mqttBrokerCapability, nativeObjectDetectionCapability, navigationCapability, ncAlarmSystemDefaultSettings, ncMediaPolicyError, nestedStepsOf, networkAccessCapability, networkLinkCapability, networkQualityCapability, nextLocalMidnight, nextOccurrence, nextTimeBoundaryInMs, nodeBenchmarkRefusals, nodeCertificatesCapability, nodeIdOfScopedKey, nodePickerItems, nodePin, nodeRemovalHookCapability, nodesCapability, normalizeActionUnits, normalizeAddonInitResult, normalizeAudioLabel, normalizeCapStep, normalizeConditionUnits, normalizeCoreBlockWrite, normalizeNcMediaPolicy, normalizeNodeId, normalizeOffSeconds, normalizeOrigin, normalizeRecipeUnits, normalizeSecretOwner, normalizeStepTargets, normalizeTokenScopes, normalizeUnit, normalizedArea, notificationOutputCapability, notificationRulesCapability, notificationTargetKindName, notificationTargetKindOf, notificationTargetKinds, notificationTargetParts, notifierCapability, numericSensorCapability, oauthIntegrationCapability, oauthLandingUrl, oauthLinkInstanceId, oauthLinkServesInstance, objectInputDeclaresAddonId, objectInputDeclaresRequiredDeviceId, observeHoldLeaves, occupancyScope, occurrenceOn, omitTransientConfig, openReset, openStatistic, optionalAncestors, optionalLinkField, optionalMethod, orderMigrations, osdCapability, osdManagerCapability, overlayClusterStepSettings, ownedSlice, packagePickerItems, paintHex, paletteEntryLabel, paletteFromInput, paletteFromStored, paletteLegend, paletteResultSchema, paletteSwatchSchema, paramMeta, paramMetaOf, parseAcceleratorFactsJson, parseAdminBase, parseAlertEpisodePayload, parseAppAuthCallback, parseAppFlowRequest, parseAppPageLang, parseCameraStreamConfig, parseColorInput, parseCredentialScopes, parseDeviceEnrollmentLink, parseExpression, parseFlipperIr, parseJsonArray, parseJsonObject, parseJsonUnknown, parseMediaOwnerKey, parseOauthLandingFragment, parseOccupancyScope, parseProcStatus, parseProfileBrokerId, parseRetrainRevisionConflict, parseRuleSection, parseSecretPath, parseSecretRef, parseSecretStatePath, parseSessionPlacementPolicy, parseShareSource, parseSmartIr, parseSmtpSinceKey, parseStreamParamsFormPatch, parseTrainingEventLine, patchAudio, petFeederCapability, petFountainCapability, petFountainFromEntitiesComposition, petFountainWaterItem, pickAccessoryControl, pickAppLinkHub, pickClusterStepModels, pickClusterStepSettings, pickDetailCropConvention, pickFaceRescoreIntervalMinutes, pickInvalidClusterStepModels, pickNativeLeaseOverride, pickPreferredRtspEntry, pickRequestOrigin, pickRestartCandidate, pickVideoEncoder, pickerForCondition, pickerForRuleClasses, pinUnderBenchmark, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plainEventVocabulary, planComposition, planCompositionEvents, planItems, planMotionCropRegions, planMotionCrops, planRecoveryCrops, planResetTier, planStatisticTier, plateGalleryCapability, platformProbeCapability, plusCatalogDefaultClassFloors, plusCatalogLabelFields, poolMemoryThreshold, powerMeterCapability, powerOnFromSlice, powerServedBy, powerSourceActuatorConflicts, powerSourceCapability, powerSourceLinkOfComposition, preconditionOf, prepareNotification, prepareRecipeUnits, presenceCapability, presetById, pressureSensorCapability, primaryCapForRole, primaryChildPreferenceOf, principalMayReachAddon, priorityLevelsOf, privacyMaskCapability, probeToTestResult, problemsBlockSave, procedureAuthKey, processTimeZoneOr, projectDeviceRow, projectKeyedArrayAssignment, projectPulseAssignment, projectScalarAssignment, projectSpanAssignment, projectSubjectPath, projectedPositionMs, proposeRunningThreshold, providerMotionEvent, pruneDeletedEntities, ptzAutotrackCapability, ptzCapability, publicEndpointReaderFrom, publicEventCategories, pumpCycleCapability, pythonScriptForBackend, quantityFromUnit, rankStreams, readClusterStepModels, readClusterStepSettings, readCommandOrigin, readDetailCropConvention, readDeviceStateFrom, readErrorI18n, readEventVocabulary, readFaceRescoreIntervalMinutes, readHubMotionDetected, readHubMotionStatus, readKeyedArrayItems, readMotionTriggeredBy, readNativeLeaseOverride, readNodePin, readRecoveryRecipe, readRecoveryRecipeForSteps, readStoredRemoteConfig, readTimelapseGeneratedAt, readUseRootModel, readinessKey, readingMeta, rebootCapability, recipeSiteIssues, recommendNode, reconcileBlockDevices, reconcileRemovedDevices, reconcileReportedFeatures, recordArrayItemPath, recordEntriesCapability, recordSecretCollection, recordSecretRef, recordingArchiveCapability, recordingCapability, recordingExportCapability, recordingOnboardCapability, recordingSignalCapability, recordsCapability, recordsErrorFromMessage, recordsOverMigrationApi, rectContains, rectsOverlap, rectsToCells, reducePoints, reducerForActive, registerKnownSecret, registerPowerSwitch, registrySwitchPortsOver, registrySwitchToBodyId, registrySwitchToBodyMigration, remapCropDetections, remoteCapability, remoteLayoutComponentsCapability, remoteRoleIcon, remoteRoleLabel, remoteRoleLegend, remoteSourceSteps, removeGroup, removeScalarTarget, renameAlarmProfile, renderVocabPhrase, repeatCheck, replacedFieldKeys, replayDwellIntervals, reportIsScalable, requestMountPrefix, requiredTopLevelKeys, requiresPython, reservedSourceOwner, resetPoolBaseline, resolveActionVariables, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAppConnections, resolveAttachmentUrls, resolveBucketMs, resolveCapMount, resolveClipSearchMinScore, resolveClusterStepModelId, resolveContainerPrimaryChild, resolveCoreBlockEntry, resolveCoreBlockFiles, resolveCreateExportSubject, resolveDeliveryParams, resolveDeviceControlKind, resolveDeviceProfile, resolveDeviceSettings, resolveDeviceTarget, resolveEffectiveShares, resolveEgressDecodeHwAccel, resolveExportProfiles, resolveFormat, resolveHeroLayout, resolveHeroLook, resolveHeroSceneId, resolveHubAddressRoles, resolveHydratedFieldValue, resolveIconKey, resolveInternalAddress, resolveLatencyColumn, resolveLocationMode, resolveMethodAuth, resolveMethodRole, resolveModeDelays, resolveModeNotifyPolicy, resolveModelBoundSetting, resolveMutate, resolveNcMediaImage, resolveNotificationTapAddress, resolveOwnPower, resolvePoolMemoryPolicy, resolvePublicEndpoint, resolveRecordingProfiles, resolveRemoteSource, resolveRootSupply, resolveRunnerId, resolveSecretMarkers, resolveSecretViewsIn, resolveServerName, resolveStepArgs, resolveStepArgsWithTemplates, resolveStreamMaps, resolveTemplateRef, resolveVariantModelId, resolveViewableDeviceIds, resolvedValues, resultCellKey, resultStandings, retiredTargetsOver, retrainBoxIou, retrainRevisionConflictMessage, rewriteBody as rewriteLoginProxyBody, rewriteLocation as rewriteLoginProxyLocation, rewriteReferer as rewriteLoginProxyReferer, rewriteSetCookie as rewriteLoginProxySetCookie, roleSpec, rollingDurationMs, roomCompositionExample, rootSuppliesOf, rootSupplyServes, rowsDepsOver, ruleAutoTriggersAlarm, ruleBelongsToAlarm, ruleDeviceCompatCapNames, ruleDeviceCompatCapQueries, ruleEditorSectionsForKind, ruleFireOfClaim, ruleGatedOnArmedState, ruleGroupingApplies, ruleKindOf, ruleKindSpec, ruleMatchesSection, ruleSection, ruleSectionOf, ruleSeedForSection, ruleTriggerZoneIds, runAddonMigrations, runExportedAction, runFanOut, runForDevices, runInferenceStep, runSteps, runningFollowsSwitch, runningFromDishwasherOperation, runningFromLawnMower, runningFromMediaPlayer, runningFromVacuumState, runningOptOutFeature, runningPowerDefaultsFor, runningStateCapability, runtimeDevices, runtimeFieldUnit, runtimeStatePolicyFor, sameDoFamily, sameHelperBody, sameRead, sanitizeTargetOverride, scalarTargetCount, sceneMonitorCapability, scheduleForSendTimes, schedulersCapability, schemaDeclaresAnyField, scopeInherits, scopeInstancesToCaller, scopeKey, scopesAllowAddon, scopesAllowAddonRoutes, scopesAllowDeviceCap, scopesAllowOwnPreferences, scopesGrantAdmin, scoreRuntimes, scriptRunnerCapability, scrubKnownSecrets, searchIcons, secretArrayPrefixes, secretKeysOf, secretTreeFromPaths, secretTreeFromSchema, secretViewsOf, secretsOverMigrationApi, secureActuationFor, seedInstanceOnce, seedLeaf, seekPatch, selectAppConnectionEndpoints, selectAssignedProfileSlots, selectFewShots, selectRecoveryStep, sendTimesForEditor, sendTimesOfSchedule, sendToExportedTarget, sensorRaisedOf, sensorTransitionMeaning, sensorTransitionNeverFires, sensorTransitionOffered, servedTemplateVars, serverManagementCapability, sessionLostAlertId, sessionsOfDeviceCell, setByPath, setFormulaExpr, setPaletteInputSchema, settingValuesEqual, settingsBelow, settingsStoreCapability, settleDeviceFeatures, shareViewGrantOf, sharedActuatorFeatures, sharedActuatorMethods, sharedColorModes, sharedLightCaps, shortHostname, shortSecretRefHash, signalPercentFromBars, signalPercentFromRssi, siteFor, siteZoneKey, skipSignature, sleep, sleepCancellable, sliceActiveValue, sliceCapOf, sliceChangedAt, slugifyDeviceAlias, smartIrDraft, smokeCapability, smtpProviderCapability, smtpSinceKey, snapshotCapability, sourcePickForHistory, sourcePickForMath, sourcePickForTemplate, splitTranslationRef, squareAround, ssoBridgeCapability, stableIdKey, stableIdMapOf, startMoverUnderClearance, startReachabilityPoll, stateLabel, stateVocabularyFor, statisticCadenceMs, statisticDraft, stepConditionsOf, stepGuardOf, stepGuardSiteIssues, stepModelRunsOnFormat, stepPulse, stepSettingSource, stepSpan, storageAdminCapability, storageCapability, storageEvictableCapability, storageMigrationCapability, storageOccupancyCapability, storageProviderCapability, storedFromReady, storedPaletteSchema, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamSignalsCapability, stripRetiredBandPreBufferSec, strippedOfLegacyReadOnly, subClassesOf, subKindsOf, subjectFromClassName, subjectHasPath, subjectMatches, subjectPathSampleFromBox, subjectPathSvgPoints, summarisePrivacyAudio, summarizeEffectiveScope, summarizeReview, sunCrossings, sunTimes, supplyFor, supportedRuntimes, swatchHex, switchCapability, switchRecordsOverMigrationApi, switchStateOfMode, switchedOffIds, syncActiveAlarmProfileSettings, synthesizeSourceInfo, systemCapability, systemEventClassKinds, systemEventClassOf, systemEventClassesFor, systemEventDeliveryAsModes, systemEventDeliveryModesOf, systemEventDeliveryProblems, systemEventFamilyOf, systemEventFamilyProblems, systemEventFilterApplies, systemEventFilterAppliesToAnyKind, systemEventKindNamesOf, systemEventKindsOfFamily, systemEventSummaryScheduleOf, systemEventSummarySplitOf, systemFamilyOfKind, systemRuleKindOf, tamperCapability, targetAttachmentAllows, targetBody, targetFeature, targetOfRecord, targetRowPortsOver, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, templateCapKey, templateCapability, templateCarriesSummary, templateDeviceType, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, templateVarsFor, terminalSessionCapability, textToHtml, thresholdDraft, thresholdToBase, thresholdToDisplay, timeOfDayToMinutes, timedRunCapability, timedRunLimitOf, timedRunMaxIn, timedRunQuickRun, timedRunRemaining, timedRunSeconds, toAppLinkHubOrigin, toDeviceSummary, toExpressionValue, toNodeId, toPercentShares, toSecretFieldView, toStreamSourceEntry, toTimings, toastCapability, toggleAudioLabel, tokenize, trainingCapability, trainingProviderCapability, transcodeBody, transformSecretWrite, triggerLeafVariables, triggerVariablesOf, triggeredByIssue, tryConvertDelta, tryConvertUnit, turnProviderCapability, twilightTimes, ungroup, unitCompanionField, unitDimension, unitsForDimension, unitsForQuantity, unmetRequirements, unreachableExtensionSlotRow, unwrapSchema, updateCapability, usableProcessTimeZone, userError, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateComposition, validateCustomAddress, validateDraft, validateExpressionSource, validatePalette, validateRecipeBounds, validateSchedulerInput, validateTimeSpecForSite, validateWhenTree, valveCapability, vectorDimFromBase64, vectorIndexDimConflictError, vectorStoreCapability, vibrationCapability, videoclipsCapability, viewerAdmitsDevice, viewerHoldsRole, viewerLinkBaseOf, viewerScopeOf, viewerUiCapability, vocabActionIdFor, actionsForDevice$1 as vocabularyActionsForDevice, triggersForDevice as vocabularyTriggersForDevice, waitTimedOutMessage, waitUntil, waterHeaterCapability, wattMillisecondsToKwh, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, weekdayOfLocalDate, weeklyMaskIndex, weeklyMaskIsUniform, weeklyMaskToWindows, whenDepth, whenSiteIssues, widenDeviceConstructor, windowsToWeeklyMask, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, withClipEventLabels, withDefaultRunning, withFieldFrom, withLocationMode, withSystemEventClasses, withSystemEventModes, withoutCallerStamp, withoutField, withoutKeyedArrayItem, writeModelBoundSetting, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneOnlySite, zoneRulesCapability, zonesCapability };
|