@camstack/types 1.2.572 → 1.2.574
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 +17 -6
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/capability-definition.d.ts +1 -1
- package/dist/capabilities/consumables.cap.d.ts +5 -14
- package/dist/capabilities/face-gallery.cap.d.ts +25 -0
- package/dist/capabilities/plate-gallery.cap.d.ts +29 -0
- package/dist/capabilities/weather-station.cap.d.ts +305 -51
- package/dist/client.js +2 -0
- package/dist/client.mjs +2 -0
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +605 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.js +965 -37
- package/dist/index.mjs +965 -37
- package/dist/interfaces/config-ui.d.ts +2 -2
- package/dist/{sleep-BnR9qGOv.mjs → sleep-CLDVTB5R.mjs} +150 -0
- package/dist/{sleep-Cr2-wtyQ.js → sleep-CsIzA4m_.js} +150 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as DEVICE_CHILDREN_BATCH_MAX, $i as runAddonMigrations, $n as isZodSecret, $r as recordSecretRef, $t as QUANTITY_BASE, Aa as expandAudioChunkToF32le, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Ar as collectSecretMarkerRefs, At as AudioStreamPickSchema, B as CAP_COMMAND_ORIGIN_CONTEXT_KEY, Bi as TransactRefusedError, Bn as entryBody, Br as moveRegistrySwitchToBody, Bt as ProfileRtspEntrySchema, C as auditedFields, Ca as isSecretConfigField, Ci as linkField, Cn as MIN_SCRUBBED_LENGTH, Cr as migrationSet, Ct as DebugInterest, D as HF_BASE_URL, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Dr as secretTreeFromPaths, Dt as getDebugInterest, E as DEFAULT_TOKEN_EXPIRY, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Er as parseSecretStatePath, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, Ft as CamStreamKindSchema, G as readNodePin, Gi as defaultIntegrationDepsOver, Gn as RecordKindNameSchema, Gr as isInstanceEnabled, Gt as SubscribeAudioChunksInputSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, Hr as registrySwitchToBodyId, Ht as ProfileSlotStatusSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, It as CamStreamResolutionSchema, J as PipelineRunResultBridge, Ji as rowsDepsOver, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Jt as makeSourceBrokerId, K as toNodeId, Ki as integrationRowsApiOver, Kn as RecordRetentionSchema, Kr as secretViewsOf, Kt as SubscribeAudioChunksResultSchema, L as defineCustomActions, Li as RecordUniqueViolationError, Ln as SHARE_VIEW_KINDS, Lr as resolvedValues, Lt as CameraStreamSchema, M as CAP_NAMES, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, Mr as resolveSecretMarkers, Mt as BrokerStatusSchema, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, Nr as transformSecretWrite, Nt as CAM_PROFILE_ORDER, O as HF_REPO, Oa as AUDIO_CHUNK_FORMATS, Oi as FilterRequiredError, On as scrubKnownSecrets, Or as secretTreeFromSchema, Ot as isDebugChannelName, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pn as PeerBytesTicketSchema, Pr as SCOPED_SETTINGS_SCOPES, Pt as CamProfileSchema, Q as deviceOpsCapability, Qi as defineAddonMigrations, Qn as collectZodSecretPaths, Qr as recordSecretCollection, Qt as DISPLAY_PREFERENCES, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Rr as normalizeNodeId, Rt as DecodedAudioChunkSchema, S as createSliceHandle, Sa as isKeychainStoredField, Si as parseSecretRef, Sn as createSecretsAccess, Sr as classifyStoreError, St as DEBUG_WATCH_WINDOW_MS, T as isCommand, Ta as schemaDeclaresAnyField, Ti as optionalLinkField, Tn as forgetKnownSecret, Tr as mergeSecretStatePaths, Tt as __resetDebugInterestForTests, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Ur as registrySwitchToBodyMigration, Ut as StreamSourceEntrySchema, V as CAP_NODE_PIN_CONTEXT_KEY, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, Vr as registrySwitchPortsOver, Vt as ProfileSlotSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, Wr as RecordIntegrationInstances, Wt as StreamSourceSchema, X as MIGRATION_API_VERSION, Xi as switchRecordsOverMigrationApi, Xn as defineRecordKinds, Xr as parseSecretPath, Xt as selectAssignedProfileSlots, Y as PipelineStepInputSchema, Yi as secretsOverMigrationApi, Yn as declarationsOf, Yr as mapSecretLeaves, Yt as parseProfileBrokerId, Z as RawStateResultSchema, Zi as AddonMigrationDefinitionError, Zn as SECRET_META, Zr as recordArrayItemPath, Zt as DEFAULT_DISPLAY_PREFERENCE, _ as invokeTrpcLeaf, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, _r as FORBIDDEN_MESSAGE_PREFIX, _t as readinessKey, a as asJsonArray, aa as collectHydratedFieldEntries, ai as RECORD_DEFAULT_MAX_DATA_BYTES, an as readingMeta, ar as PROVIDER_PIN_FIELD, at as actionEffect, b as createLazyTrpcSource, ba as collectKeychainStoredKeys, bi as isSecretRef, bn as resolveSecretViewsIn, br as userError, bt as DEBUG_WATCH_HARD_CAP_MS, c as asString, ca as dehydrateSchema, ci as RECORD_MAX_DATA_BYTES, cn as DeviceTransitionSchema, cr as historyItemFieldPath, ct as findVocabAction, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, dn as TransitionCommandSchema, dr as optionalMethod, dt as CAP_VOCABULARY_BY_NAME, ea as createEvent, ei as secretArrayPrefixes, en as ReadingQuantitySchema, er as DEFAULT_RUNTIME_STATE_DURABILITY, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, fn as TransitionOutcomeSchema, fr as resolveCapMount, ft as CAP_VOCABULARY, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, gt as emitDownForOwnedCaps, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, hr as ErrorCodeSchema, ht as ReadinessTimeoutError, i as asBoolean, ia as WELL_KNOWN_TAB_MAP, ii as RECORD_DATABASES, in as isReadingQuantity, ir as HISTORY_UNIT_LABELS, it as VocabActionError, ja as isAudioChunkFormat, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, jr as isSecretRefOwnedBy, jt as BrokerStatsSchema, k as RUNTIME_DEFAULTS, ka as audioChunkBytesPerSample, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, kr as KeychainWriteRefusedError, kt as AudioChunkFormatSchema, l as parseJsonArray, la as hydrateSchema, li as RECORD_MAX_INDEXES, ln as TransitionActorKindSchema, lr as isDeviceConfigCap, lt as vocabActionIdFor, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mr as CamstackError, mt as ReadinessRegistry, n as sleepCancellable, na as isEvent, ni as RECORD_BATCH_MAX_BYTES, nn as displayUnitFor, nr as DEVICE_STATUS_METHOD, nt as addonPagesSourceCapability, o as asJsonObject, oa as collectHydratedFieldValues, oi as RECORD_DELETE_BATCH, on as NOT_A_DEVICE, or as event, ot as allVocabActions, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pn as TransitionValueSchema, pr as systemMethod, pt as MODEL_FORMATS, q as viewerUiCapability, qi as recordsOverMigrationApi, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, qt as makeProfileBrokerId, r as maskUrlCredentials, ra as WELL_KNOWN_TABS, ri as RECORD_CLASSES, rn as historyUnitFor, rr as HISTORY_DEFAULT_MIN_INTERVAL_MS, rt as t, s as asNumber, sa as dehydrateConfigField, si as RECORD_ID_MAX_LENGTH, sn as DeviceCommandSettledEventSchema, sr as expandCapMethods, st as assertDeviceOffers, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, tn as baseUnitOf, tr as DEVICE_SETTINGS_CONTRIBUTION_METHODS, tt as AddonPageDeclarationSchema, u as parseJsonObject, ua as resolveHydratedFieldValue, ui as RECORD_MAX_INDEX_FIELDS, un as TransitionActorSchema, ur as method, ut as vocabCall, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vr as forbiddenError, vt as scopeKey, w as commandEffect, wa as omitTransientConfig, wi as linksOfKind, wn as clearKnownSecrets, wr as normalizeAddonInitResult, wt as DebugWatchTable, x as createMirrorSource, xa as collectSecretConfigKeys, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, xt as DEBUG_WATCH_REARM_EVERY_MS, y as createEventBusSliceSource, ya as REDACTED_SECRET, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, yt as DEBUG_CHANNEL_PREFIX, z as deviceCustomAction, zi as RevConflictError, zn as defineEntryKind, zr as createDurableState, zt as FrameHandleSchema } from "./sleep-
|
|
1
|
+
import { $ as DEVICE_CHILDREN_BATCH_MAX, $i as runAddonMigrations, $n as isZodSecret, $r as recordSecretRef, $t as QUANTITY_BASE, Aa as expandAudioChunkToF32le, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Ar as collectSecretMarkerRefs, At as AudioStreamPickSchema, B as CAP_COMMAND_ORIGIN_CONTEXT_KEY, Bi as TransactRefusedError, Bn as entryBody, Br as moveRegistrySwitchToBody, Bt as ProfileRtspEntrySchema, C as auditedFields, Ca as isSecretConfigField, Ci as linkField, Cn as MIN_SCRUBBED_LENGTH, Cr as migrationSet, Ct as DebugInterest, D as HF_BASE_URL, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Dr as secretTreeFromPaths, Dt as getDebugInterest, E as DEFAULT_TOKEN_EXPIRY, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Er as parseSecretStatePath, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, Ft as CamStreamKindSchema, G as readNodePin, Gi as defaultIntegrationDepsOver, Gn as RecordKindNameSchema, Gr as isInstanceEnabled, Gt as SubscribeAudioChunksInputSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, Hr as registrySwitchToBodyId, Ht as ProfileSlotStatusSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, It as CamStreamResolutionSchema, J as PipelineRunResultBridge, Ji as rowsDepsOver, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Jt as makeSourceBrokerId, K as toNodeId, Ki as integrationRowsApiOver, Kn as RecordRetentionSchema, Kr as secretViewsOf, Kt as SubscribeAudioChunksResultSchema, L as defineCustomActions, Li as RecordUniqueViolationError, Ln as SHARE_VIEW_KINDS, Lr as resolvedValues, Lt as CameraStreamSchema, M as CAP_NAMES, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, Mr as resolveSecretMarkers, Mt as BrokerStatusSchema, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, Nr as transformSecretWrite, Nt as CAM_PROFILE_ORDER, O as HF_REPO, Oa as AUDIO_CHUNK_FORMATS, Oi as FilterRequiredError, On as scrubKnownSecrets, Or as secretTreeFromSchema, Ot as isDebugChannelName, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pn as PeerBytesTicketSchema, Pr as SCOPED_SETTINGS_SCOPES, Pt as CamProfileSchema, Q as deviceOpsCapability, Qi as defineAddonMigrations, Qn as collectZodSecretPaths, Qr as recordSecretCollection, Qt as DISPLAY_PREFERENCES, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Rr as normalizeNodeId, Rt as DecodedAudioChunkSchema, S as createSliceHandle, Sa as isKeychainStoredField, Si as parseSecretRef, Sn as createSecretsAccess, Sr as classifyStoreError, St as DEBUG_WATCH_WINDOW_MS, T as isCommand, Ta as schemaDeclaresAnyField, Ti as optionalLinkField, Tn as forgetKnownSecret, Tr as mergeSecretStatePaths, Tt as __resetDebugInterestForTests, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Ur as registrySwitchToBodyMigration, Ut as StreamSourceEntrySchema, V as CAP_NODE_PIN_CONTEXT_KEY, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, Vr as registrySwitchPortsOver, Vt as ProfileSlotSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, Wr as RecordIntegrationInstances, Wt as StreamSourceSchema, X as MIGRATION_API_VERSION, Xi as switchRecordsOverMigrationApi, Xn as defineRecordKinds, Xr as parseSecretPath, Xt as selectAssignedProfileSlots, Y as PipelineStepInputSchema, Yi as secretsOverMigrationApi, Yn as declarationsOf, Yr as mapSecretLeaves, Yt as parseProfileBrokerId, Z as RawStateResultSchema, Zi as AddonMigrationDefinitionError, Zn as SECRET_META, Zr as recordArrayItemPath, Zt as DEFAULT_DISPLAY_PREFERENCE, _ as invokeTrpcLeaf, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, _r as FORBIDDEN_MESSAGE_PREFIX, _t as readinessKey, a as asJsonArray, aa as collectHydratedFieldEntries, ai as RECORD_DEFAULT_MAX_DATA_BYTES, an as readingMeta, ar as PROVIDER_PIN_FIELD, at as actionEffect, b as createLazyTrpcSource, ba as collectKeychainStoredKeys, bi as isSecretRef, bn as resolveSecretViewsIn, br as userError, bt as DEBUG_WATCH_HARD_CAP_MS, c as asString, ca as dehydrateSchema, ci as RECORD_MAX_DATA_BYTES, cn as DeviceTransitionSchema, cr as historyItemFieldPath, ct as findVocabAction, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, dn as TransitionCommandSchema, dr as optionalMethod, dt as CAP_VOCABULARY_BY_NAME, ea as createEvent, ei as secretArrayPrefixes, en as ReadingQuantitySchema, er as DEFAULT_RUNTIME_STATE_DURABILITY, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, fn as TransitionOutcomeSchema, fr as resolveCapMount, ft as CAP_VOCABULARY, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, gt as emitDownForOwnedCaps, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, hr as ErrorCodeSchema, ht as ReadinessTimeoutError, i as asBoolean, ia as WELL_KNOWN_TAB_MAP, ii as RECORD_DATABASES, in as isReadingQuantity, ir as HISTORY_UNIT_LABELS, it as VocabActionError, ja as isAudioChunkFormat, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, jr as isSecretRefOwnedBy, jt as BrokerStatsSchema, k as RUNTIME_DEFAULTS, ka as audioChunkBytesPerSample, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, kr as KeychainWriteRefusedError, kt as AudioChunkFormatSchema, l as parseJsonArray, la as hydrateSchema, li as RECORD_MAX_INDEXES, ln as TransitionActorKindSchema, lr as isDeviceConfigCap, lt as vocabActionIdFor, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mr as CamstackError, mt as ReadinessRegistry, n as sleepCancellable, na as isEvent, ni as RECORD_BATCH_MAX_BYTES, nn as displayUnitFor, nr as DEVICE_STATUS_METHOD, nt as addonPagesSourceCapability, o as asJsonObject, oa as collectHydratedFieldValues, oi as RECORD_DELETE_BATCH, on as NOT_A_DEVICE, or as event, ot as allVocabActions, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pn as TransitionValueSchema, pr as systemMethod, pt as MODEL_FORMATS, q as viewerUiCapability, qi as recordsOverMigrationApi, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, qt as makeProfileBrokerId, r as maskUrlCredentials, ra as WELL_KNOWN_TABS, ri as RECORD_CLASSES, rn as historyUnitFor, rr as HISTORY_DEFAULT_MIN_INTERVAL_MS, rt as t, s as asNumber, sa as dehydrateConfigField, si as RECORD_ID_MAX_LENGTH, sn as DeviceCommandSettledEventSchema, sr as expandCapMethods, st as assertDeviceOffers, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, tn as baseUnitOf, tr as DEVICE_SETTINGS_CONTRIBUTION_METHODS, tt as AddonPageDeclarationSchema, u as parseJsonObject, ua as resolveHydratedFieldValue, ui as RECORD_MAX_INDEX_FIELDS, un as TransitionActorSchema, ur as method, ut as vocabCall, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vr as forbiddenError, vt as scopeKey, w as commandEffect, wa as omitTransientConfig, wi as linksOfKind, wn as clearKnownSecrets, wr as normalizeAddonInitResult, wt as DebugWatchTable, x as createMirrorSource, xa as collectSecretConfigKeys, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, xt as DEBUG_WATCH_REARM_EVERY_MS, y as createEventBusSliceSource, ya as REDACTED_SECRET, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, yt as DEBUG_CHANNEL_PREFIX, z as deviceCustomAction, zi as RevConflictError, zn as defineEntryKind, zr as createDurableState, zt as FrameHandleSchema } from "./sleep-CLDVTB5R.mjs";
|
|
2
2
|
import { i as publicEventCategories, n as OWNER_ONLY_EVENT_CATEGORIES, r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
|
|
3
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-RvQIEpqg.mjs";
|
|
4
4
|
import { $ as EXPRESSION_OUTPUTS, $n as buildAudioArgs, $t as createExpressionScope, A as MAX_COMPOSITION_FIELDS_PER_FEATURE, An as sliceActiveValue, At as integralCadenceMs, B as featureFieldEntries, Bn as isSwitchHeater, Bt as STATISTIC_STATS, C as CompositionPassthroughFeatureSchema, Cn as SOURCE_CAPS, Ct as MINUTE_MS, D as FORWARD_INPUT_KEY, Dn as evaluateSensorEdge, Dt as RollingWindowSchema, E as CompositionTargetSchema, En as SOURCE_DEVICE_TYPES, Et as ROLLING_SPANS, F as compositionFeatureEnabled, Fn as capAppliesToDeviceKind, Ft as planResetTier, G as AGGREGATE_REDUCERS, Gt as wattMillisecondsToKwh, H as fieldReads, Hn as FFMPEG_PATH_ENV, Ht as evaluateStatistic, I as compositionItemFieldPath, In as climateRoleOf, It as planStatisticTier, J as AggregateReducerSchema, Jn as canonicalHash, Jt as createStatefulExpressionMemory, K as ARITHMETIC_OPS, Kt as EXPRESSION_INJECTED_NOW, L as compositionReadKey, Ln as isAirConditioner, Lt as rollingDurationMs, M as canonicalStoredBlockTarget, Mn as CLIMATE_ROLES, Mt as nextLocalMidnight, N as composedDeviceRef, Nn as StoredDeviceTypeSchema, Nt as openReset, O as MAX_COMPOSITION_CODE_LENGTH, On as evaluateSensorLevelEdge, Ot as StatisticWindowSchema, P as composedDeviceStableId, Pn as canonicalStoredDeviceType, Pt as openStatistic, Q as DerivativeHelperSpecSchema, Qn as audioPlanFromEncodeProfile, Qt as validateExpressionSource, R as compositionSliceKey, Rn as isOutlet, Rt as statisticCadenceMs, S as CompositionNewTargetSchema, Sn as DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, St as HOUR_MS, T as CompositionSeriesSourceSchema, Tn as SOURCE_CAP_CHANGED_AT_FIELD, Tt as RESET_PERIODS, U as isForwardInputRef, Ut as integrateReading, V as featureSources, Vn as isSwitchLight, Vt as evaluateDerivative, W as ACTIVE_CRITERIA, Wt as KWH_PER_WATT_MS, X as BINARY_AGGREGATES, Xn as AUDIO_PRESETS, Xt as evaluateStatefulExpressionCall, Y as ArithmeticHelperSpecSchema, Yn as Fmp4BoxSplitter, Yt as evaluateExpressionSource, Z as DERIVATIVE_UNITS, Zn as RESTREAM_INPUT_PROBE, Zt as toExpressionValue, _ as CompositionForwardArgSchema, _n as evaluateDwell, _t as DAY_MS, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, an as EXPRESSION_COMPILE_CACHE_CAPACITY, ar as logBannerArgs, at as HelperSpecSchema, b as CompositionItemEntrySchema, bn as ExpressionEvalError, bt as HISTORY_SLOW_MS, c as CompositionCodeSourceSchema, cn as MAX_EXPRESSION_BINDINGS, ct as MAX_HELPER_MEMBERS, d as CompositionExpressionSourceSchema, dn as MAX_EXPRESSION_SOURCE_LENGTH, dt as ThresholdHelperSpecSchema, en as evaluateAst, er as buildFfmpegArgs, et as ExpressionHelperSpecSchema, f as CompositionExtensionCommandSchema, fn as RESERVED_BINDING_NAMES, ft as helperMembers, g as CompositionFieldsFeatureSchema, gn as evaluateCount, gt as CalendarWindowSchema, h as CompositionFieldSourceSchema, hn as disarmRoseMemory, ht as CALENDAR_PERIODS, i as COMPOSITION_ITEM_KEY_RE, in as tokenize, ir as isSoftwareDecode, it as HelperMemberSchema, j as MAX_COMPOSITION_ITEMS, jn as sliceChangedAt, jt as maxDurationMs, k as MAX_COMPOSITION_FEATURES, kn as isSourceCap, kt as historyRetentionFromSettings, l as CompositionCommandTargetSchema, ln as MAX_EXPRESSION_CALL_ARGS, lt as NUMERIC_AGGREGATES, m as CompositionFieldReadSchema, mn as EXPRESSION_BUILTIN_NAMES, mt as CompositionSourceRefSchema, n as COMPOSER_ADDON_ID, nn as compileExpressionSafe, nr as buildVideoArgs, nt as GroupHelperSpecSchema, o as CompositionAggregateSourceSchema, on as EXPRESSION_IDENTIFIER_RE, or as pickVideoEncoder, ot as INTEGRAL_OUTPUTS, p as CompositionFeatureSchema, pn as EXPRESSION_BUILTINS, pt as isHistoryHelper, q as ActiveCriterionSchema, qt as cloneStatefulExpressionMemory, r as COMPOSITION_ITEM_ARRAY_PATH, rn as parseExpression, rr as invocationFromEncodeProfile, rt as GroupTemplateIdSchema, s as CompositionBindingSchema, sn as MAX_EXPRESSION_AST_NODES, sr as resolveStreamMaps, st as IntegralHelperSpecSchema, t as implementedMethodsOf, tn as compileExpression, tr as buildInputArgs, tt as GROUP_TEMPLATE_IDS, u as CompositionExistingTargetSchema, un as MAX_EXPRESSION_EVAL_STEPS, ut as StatisticHelperSpecSchema, v as CompositionForwardCommandSchema, vn as evaluateRose, vt as DEFAULT_HISTORY_RETENTION, w as CompositionSchema, wn as SOURCE_CAP_ACTIVE_FIELD, wt as MIN_CUSTOM_MINUTES, x as CompositionLiteralBindingSchema, xn as ExpressionParseError, xt as HISTORY_TIERS, y as CompositionFromSourceSchema, yn as isStatefulBuiltin, yt as HISTORY_FAST_MS, z as compositionSourceKey, zn as isSwitchFan, zt as SERIES_KINDS } from "./implemented-methods-C5FMXLGP.mjs";
|
|
@@ -47191,13 +47191,14 @@ var connectivityCapability = {
|
|
|
47191
47191
|
* its device tracks consumables registers it; the provider names each item
|
|
47192
47192
|
* verbatim and says which `kind` it is.
|
|
47193
47193
|
*
|
|
47194
|
-
* The admin UI
|
|
47195
|
-
*
|
|
47196
|
-
*
|
|
47194
|
+
* The admin UI shows it in the device card's consumables chip and popover
|
|
47195
|
+
* (kind-aware level, remaining time, "Reset"), for every device bound to this
|
|
47196
|
+
* cap (D1023). It no longer has a section of its own under the hero card
|
|
47197
|
+
* (D915 on that point).
|
|
47197
47198
|
*
|
|
47198
47199
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
47199
47200
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
47200
|
-
* "No consumables reported"
|
|
47201
|
+
* "No consumables reported" line when `items` is empty.
|
|
47201
47202
|
*/
|
|
47202
47203
|
/**
|
|
47203
47204
|
* What an item IS, which decides which direction is bad:
|
|
@@ -47303,7 +47304,7 @@ var ConsumablesStatusSchema = z.object({
|
|
|
47303
47304
|
});
|
|
47304
47305
|
/** Synthesize seed for a link-built status (no native provider).
|
|
47305
47306
|
*
|
|
47306
|
-
*
|
|
47307
|
+
* ! NO LIVE CALLER since 2026-08-08 (device-links deleted; see
|
|
47307
47308
|
* `CapabilityStatusSchema.empty`). The wiring guidance below was written for
|
|
47308
47309
|
* exactly the case the operator is asking about again — a Dreame's HA
|
|
47309
47310
|
* consumable-life sensors — so it is kept for that conversation, not because
|
|
@@ -47407,14 +47408,6 @@ var consumablesCapability = {
|
|
|
47407
47408
|
deviceNative: true,
|
|
47408
47409
|
mode: "singleton",
|
|
47409
47410
|
deviceTypes: Object.values(DeviceType),
|
|
47410
|
-
deviceConfig: { ui: {
|
|
47411
|
-
kind: "widget",
|
|
47412
|
-
widgetId: "host/consumables-panel",
|
|
47413
|
-
tab: "consumables",
|
|
47414
|
-
placement: "hero",
|
|
47415
|
-
label: "Consumables",
|
|
47416
|
-
order: 5
|
|
47417
|
-
} },
|
|
47418
47411
|
methods: {
|
|
47419
47412
|
/** Mark a consumable as replaced — resets its remaining life. Only
|
|
47420
47413
|
* meaningful when the item's `resettable` is true. */
|
|
@@ -48795,7 +48788,7 @@ var mediaPlayerCapability = {
|
|
|
48795
48788
|
//#region src/generated/customize-catalog.ts
|
|
48796
48789
|
/**
|
|
48797
48790
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
48798
|
-
*
|
|
48791
|
+
* 13 caps. Field keys are `runtimeState` paths. No Zod.
|
|
48799
48792
|
*/
|
|
48800
48793
|
var CAP_CUSTOMIZE_CATALOG = {
|
|
48801
48794
|
"battery": {
|
|
@@ -49712,6 +49705,572 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
49712
49705
|
path: "running",
|
|
49713
49706
|
by: "running"
|
|
49714
49707
|
}]
|
|
49708
|
+
},
|
|
49709
|
+
"weather-station": {
|
|
49710
|
+
version: 1,
|
|
49711
|
+
targets: [
|
|
49712
|
+
{
|
|
49713
|
+
id: "temperature",
|
|
49714
|
+
cardinality: "scalar",
|
|
49715
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49716
|
+
apply: "add",
|
|
49717
|
+
vocabularyCap: "weather-station",
|
|
49718
|
+
vocabularyStateField: "temperature",
|
|
49719
|
+
sources: [{
|
|
49720
|
+
kind: "numeric",
|
|
49721
|
+
requiredUnit: "°C",
|
|
49722
|
+
transformKinds: ["identity"],
|
|
49723
|
+
transforms: [{ kind: "identity" }]
|
|
49724
|
+
}],
|
|
49725
|
+
sourceReport: { status: "assignment-status" },
|
|
49726
|
+
advancedExpression: false,
|
|
49727
|
+
path: "temperature",
|
|
49728
|
+
valueKind: "number",
|
|
49729
|
+
nullable: true,
|
|
49730
|
+
companions: [{
|
|
49731
|
+
kind: "clock",
|
|
49732
|
+
path: "lastFetchedAt",
|
|
49733
|
+
when: "add"
|
|
49734
|
+
}]
|
|
49735
|
+
},
|
|
49736
|
+
{
|
|
49737
|
+
id: "humidity",
|
|
49738
|
+
cardinality: "scalar",
|
|
49739
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49740
|
+
apply: "add",
|
|
49741
|
+
vocabularyCap: "weather-station",
|
|
49742
|
+
vocabularyStateField: "humidity",
|
|
49743
|
+
sources: [{
|
|
49744
|
+
kind: "numeric",
|
|
49745
|
+
requiredUnit: "%",
|
|
49746
|
+
transformKinds: ["identity"],
|
|
49747
|
+
transforms: [{ kind: "identity" }]
|
|
49748
|
+
}],
|
|
49749
|
+
sourceReport: { status: "assignment-status" },
|
|
49750
|
+
advancedExpression: false,
|
|
49751
|
+
path: "humidity",
|
|
49752
|
+
valueKind: "number",
|
|
49753
|
+
nullable: true,
|
|
49754
|
+
companions: [{
|
|
49755
|
+
kind: "clock",
|
|
49756
|
+
path: "lastFetchedAt",
|
|
49757
|
+
when: "add"
|
|
49758
|
+
}]
|
|
49759
|
+
},
|
|
49760
|
+
{
|
|
49761
|
+
id: "pressure",
|
|
49762
|
+
cardinality: "scalar",
|
|
49763
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49764
|
+
apply: "add",
|
|
49765
|
+
vocabularyCap: "weather-station",
|
|
49766
|
+
vocabularyStateField: "pressure",
|
|
49767
|
+
sources: [{
|
|
49768
|
+
kind: "numeric",
|
|
49769
|
+
requiredUnit: "hPa",
|
|
49770
|
+
transformKinds: ["identity"],
|
|
49771
|
+
transforms: [{ kind: "identity" }]
|
|
49772
|
+
}],
|
|
49773
|
+
sourceReport: { status: "assignment-status" },
|
|
49774
|
+
advancedExpression: false,
|
|
49775
|
+
path: "pressure",
|
|
49776
|
+
valueKind: "number",
|
|
49777
|
+
nullable: true,
|
|
49778
|
+
companions: [{
|
|
49779
|
+
kind: "clock",
|
|
49780
|
+
path: "lastFetchedAt",
|
|
49781
|
+
when: "add"
|
|
49782
|
+
}]
|
|
49783
|
+
},
|
|
49784
|
+
{
|
|
49785
|
+
id: "windSpeed",
|
|
49786
|
+
cardinality: "scalar",
|
|
49787
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49788
|
+
apply: "add",
|
|
49789
|
+
vocabularyCap: "weather-station",
|
|
49790
|
+
vocabularyStateField: "windSpeed",
|
|
49791
|
+
sources: [{
|
|
49792
|
+
kind: "numeric",
|
|
49793
|
+
requiredUnit: "m/s",
|
|
49794
|
+
transformKinds: ["identity"],
|
|
49795
|
+
transforms: [{ kind: "identity" }]
|
|
49796
|
+
}],
|
|
49797
|
+
sourceReport: { status: "assignment-status" },
|
|
49798
|
+
advancedExpression: false,
|
|
49799
|
+
path: "windSpeed",
|
|
49800
|
+
valueKind: "number",
|
|
49801
|
+
nullable: true,
|
|
49802
|
+
companions: [{
|
|
49803
|
+
kind: "clock",
|
|
49804
|
+
path: "lastFetchedAt",
|
|
49805
|
+
when: "add"
|
|
49806
|
+
}]
|
|
49807
|
+
},
|
|
49808
|
+
{
|
|
49809
|
+
id: "windGust",
|
|
49810
|
+
cardinality: "scalar",
|
|
49811
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49812
|
+
apply: "add",
|
|
49813
|
+
vocabularyCap: "weather-station",
|
|
49814
|
+
vocabularyStateField: "windGust",
|
|
49815
|
+
sources: [{
|
|
49816
|
+
kind: "numeric",
|
|
49817
|
+
requiredUnit: "m/s",
|
|
49818
|
+
transformKinds: ["identity"],
|
|
49819
|
+
transforms: [{ kind: "identity" }]
|
|
49820
|
+
}],
|
|
49821
|
+
sourceReport: { status: "assignment-status" },
|
|
49822
|
+
advancedExpression: false,
|
|
49823
|
+
path: "windGust",
|
|
49824
|
+
valueKind: "number",
|
|
49825
|
+
nullable: true,
|
|
49826
|
+
companions: [{
|
|
49827
|
+
kind: "clock",
|
|
49828
|
+
path: "lastFetchedAt",
|
|
49829
|
+
when: "add"
|
|
49830
|
+
}]
|
|
49831
|
+
},
|
|
49832
|
+
{
|
|
49833
|
+
id: "windBearing",
|
|
49834
|
+
cardinality: "scalar",
|
|
49835
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49836
|
+
apply: "add",
|
|
49837
|
+
vocabularyCap: "weather-station",
|
|
49838
|
+
vocabularyStateField: "windBearing",
|
|
49839
|
+
sources: [{
|
|
49840
|
+
kind: "numeric",
|
|
49841
|
+
requiredUnit: "°",
|
|
49842
|
+
transformKinds: ["identity"],
|
|
49843
|
+
transforms: [{ kind: "identity" }]
|
|
49844
|
+
}],
|
|
49845
|
+
sourceReport: { status: "assignment-status" },
|
|
49846
|
+
advancedExpression: false,
|
|
49847
|
+
path: "windBearing",
|
|
49848
|
+
valueKind: "number",
|
|
49849
|
+
nullable: true,
|
|
49850
|
+
companions: [{
|
|
49851
|
+
kind: "clock",
|
|
49852
|
+
path: "lastFetchedAt",
|
|
49853
|
+
when: "add"
|
|
49854
|
+
}]
|
|
49855
|
+
},
|
|
49856
|
+
{
|
|
49857
|
+
id: "rainRate",
|
|
49858
|
+
cardinality: "scalar",
|
|
49859
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49860
|
+
apply: "add",
|
|
49861
|
+
vocabularyCap: "weather-station",
|
|
49862
|
+
vocabularyStateField: "rainRate",
|
|
49863
|
+
sources: [{
|
|
49864
|
+
kind: "numeric",
|
|
49865
|
+
requiredUnit: "mm/h",
|
|
49866
|
+
transformKinds: ["identity"],
|
|
49867
|
+
transforms: [{ kind: "identity" }]
|
|
49868
|
+
}],
|
|
49869
|
+
sourceReport: { status: "assignment-status" },
|
|
49870
|
+
advancedExpression: false,
|
|
49871
|
+
path: "rainRate",
|
|
49872
|
+
valueKind: "number",
|
|
49873
|
+
nullable: true,
|
|
49874
|
+
companions: [{
|
|
49875
|
+
kind: "clock",
|
|
49876
|
+
path: "lastFetchedAt",
|
|
49877
|
+
when: "add"
|
|
49878
|
+
}]
|
|
49879
|
+
},
|
|
49880
|
+
{
|
|
49881
|
+
id: "rainDaily",
|
|
49882
|
+
cardinality: "scalar",
|
|
49883
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49884
|
+
apply: "add",
|
|
49885
|
+
vocabularyCap: "weather-station",
|
|
49886
|
+
vocabularyStateField: "rainDaily",
|
|
49887
|
+
sources: [{
|
|
49888
|
+
kind: "numeric",
|
|
49889
|
+
requiredUnit: "mm",
|
|
49890
|
+
transformKinds: ["identity"],
|
|
49891
|
+
transforms: [{ kind: "identity" }]
|
|
49892
|
+
}],
|
|
49893
|
+
sourceReport: { status: "assignment-status" },
|
|
49894
|
+
advancedExpression: false,
|
|
49895
|
+
path: "rainDaily",
|
|
49896
|
+
valueKind: "number",
|
|
49897
|
+
nullable: true,
|
|
49898
|
+
companions: [{
|
|
49899
|
+
kind: "clock",
|
|
49900
|
+
path: "lastFetchedAt",
|
|
49901
|
+
when: "add"
|
|
49902
|
+
}]
|
|
49903
|
+
},
|
|
49904
|
+
{
|
|
49905
|
+
id: "rainEvent",
|
|
49906
|
+
cardinality: "scalar",
|
|
49907
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49908
|
+
apply: "add",
|
|
49909
|
+
vocabularyCap: "weather-station",
|
|
49910
|
+
vocabularyStateField: "rainEvent",
|
|
49911
|
+
sources: [{
|
|
49912
|
+
kind: "numeric",
|
|
49913
|
+
requiredUnit: "mm",
|
|
49914
|
+
transformKinds: ["identity"],
|
|
49915
|
+
transforms: [{ kind: "identity" }]
|
|
49916
|
+
}],
|
|
49917
|
+
sourceReport: { status: "assignment-status" },
|
|
49918
|
+
advancedExpression: false,
|
|
49919
|
+
path: "rainEvent",
|
|
49920
|
+
valueKind: "number",
|
|
49921
|
+
nullable: true,
|
|
49922
|
+
companions: [{
|
|
49923
|
+
kind: "clock",
|
|
49924
|
+
path: "lastFetchedAt",
|
|
49925
|
+
when: "add"
|
|
49926
|
+
}]
|
|
49927
|
+
},
|
|
49928
|
+
{
|
|
49929
|
+
id: "uv",
|
|
49930
|
+
cardinality: "scalar",
|
|
49931
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49932
|
+
apply: "add",
|
|
49933
|
+
vocabularyCap: "weather-station",
|
|
49934
|
+
vocabularyStateField: "uv",
|
|
49935
|
+
sources: [{
|
|
49936
|
+
kind: "numeric",
|
|
49937
|
+
transformKinds: ["identity"],
|
|
49938
|
+
transforms: [{ kind: "identity" }]
|
|
49939
|
+
}],
|
|
49940
|
+
sourceReport: { status: "assignment-status" },
|
|
49941
|
+
advancedExpression: false,
|
|
49942
|
+
path: "uv",
|
|
49943
|
+
valueKind: "number",
|
|
49944
|
+
nullable: true,
|
|
49945
|
+
companions: [{
|
|
49946
|
+
kind: "clock",
|
|
49947
|
+
path: "lastFetchedAt",
|
|
49948
|
+
when: "add"
|
|
49949
|
+
}]
|
|
49950
|
+
},
|
|
49951
|
+
{
|
|
49952
|
+
id: "solarRadiation",
|
|
49953
|
+
cardinality: "scalar",
|
|
49954
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49955
|
+
apply: "add",
|
|
49956
|
+
vocabularyCap: "weather-station",
|
|
49957
|
+
vocabularyStateField: "solarRadiation",
|
|
49958
|
+
sources: [{
|
|
49959
|
+
kind: "numeric",
|
|
49960
|
+
requiredUnit: "W/m²",
|
|
49961
|
+
transformKinds: ["identity"],
|
|
49962
|
+
transforms: [{ kind: "identity" }]
|
|
49963
|
+
}],
|
|
49964
|
+
sourceReport: { status: "assignment-status" },
|
|
49965
|
+
advancedExpression: false,
|
|
49966
|
+
path: "solarRadiation",
|
|
49967
|
+
valueKind: "number",
|
|
49968
|
+
nullable: true,
|
|
49969
|
+
companions: [{
|
|
49970
|
+
kind: "clock",
|
|
49971
|
+
path: "lastFetchedAt",
|
|
49972
|
+
when: "add"
|
|
49973
|
+
}]
|
|
49974
|
+
},
|
|
49975
|
+
{
|
|
49976
|
+
id: "dewPoint",
|
|
49977
|
+
cardinality: "scalar",
|
|
49978
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
49979
|
+
apply: "add",
|
|
49980
|
+
vocabularyCap: "weather-station",
|
|
49981
|
+
vocabularyStateField: "dewPoint",
|
|
49982
|
+
sources: [{
|
|
49983
|
+
kind: "numeric",
|
|
49984
|
+
requiredUnit: "°C",
|
|
49985
|
+
transformKinds: ["identity"],
|
|
49986
|
+
transforms: [{ kind: "identity" }]
|
|
49987
|
+
}],
|
|
49988
|
+
sourceReport: { status: "assignment-status" },
|
|
49989
|
+
advancedExpression: false,
|
|
49990
|
+
path: "dewPoint",
|
|
49991
|
+
valueKind: "number",
|
|
49992
|
+
nullable: true,
|
|
49993
|
+
companions: [{
|
|
49994
|
+
kind: "clock",
|
|
49995
|
+
path: "lastFetchedAt",
|
|
49996
|
+
when: "add"
|
|
49997
|
+
}]
|
|
49998
|
+
},
|
|
49999
|
+
{
|
|
50000
|
+
id: "feelsLike",
|
|
50001
|
+
cardinality: "scalar",
|
|
50002
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50003
|
+
apply: "add",
|
|
50004
|
+
vocabularyCap: "weather-station",
|
|
50005
|
+
vocabularyStateField: "feelsLike",
|
|
50006
|
+
sources: [{
|
|
50007
|
+
kind: "numeric",
|
|
50008
|
+
requiredUnit: "°C",
|
|
50009
|
+
transformKinds: ["identity"],
|
|
50010
|
+
transforms: [{ kind: "identity" }]
|
|
50011
|
+
}],
|
|
50012
|
+
sourceReport: { status: "assignment-status" },
|
|
50013
|
+
advancedExpression: false,
|
|
50014
|
+
path: "feelsLike",
|
|
50015
|
+
valueKind: "number",
|
|
50016
|
+
nullable: true,
|
|
50017
|
+
companions: [{
|
|
50018
|
+
kind: "clock",
|
|
50019
|
+
path: "lastFetchedAt",
|
|
50020
|
+
when: "add"
|
|
50021
|
+
}]
|
|
50022
|
+
},
|
|
50023
|
+
{
|
|
50024
|
+
id: "vpd",
|
|
50025
|
+
cardinality: "scalar",
|
|
50026
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50027
|
+
apply: "add",
|
|
50028
|
+
vocabularyCap: "weather-station",
|
|
50029
|
+
vocabularyStateField: "vpd",
|
|
50030
|
+
sources: [{
|
|
50031
|
+
kind: "numeric",
|
|
50032
|
+
requiredUnit: "kPa",
|
|
50033
|
+
transformKinds: ["identity"],
|
|
50034
|
+
transforms: [{ kind: "identity" }]
|
|
50035
|
+
}],
|
|
50036
|
+
sourceReport: { status: "assignment-status" },
|
|
50037
|
+
advancedExpression: false,
|
|
50038
|
+
path: "vpd",
|
|
50039
|
+
valueKind: "number",
|
|
50040
|
+
nullable: true,
|
|
50041
|
+
companions: [{
|
|
50042
|
+
kind: "clock",
|
|
50043
|
+
path: "lastFetchedAt",
|
|
50044
|
+
when: "add"
|
|
50045
|
+
}]
|
|
50046
|
+
},
|
|
50047
|
+
{
|
|
50048
|
+
id: "windGustMax",
|
|
50049
|
+
cardinality: "scalar",
|
|
50050
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50051
|
+
apply: "add",
|
|
50052
|
+
vocabularyCap: "weather-station",
|
|
50053
|
+
vocabularyStateField: "windGustMax",
|
|
50054
|
+
sources: [{
|
|
50055
|
+
kind: "numeric",
|
|
50056
|
+
requiredUnit: "m/s",
|
|
50057
|
+
transformKinds: ["identity"],
|
|
50058
|
+
transforms: [{ kind: "identity" }]
|
|
50059
|
+
}],
|
|
50060
|
+
sourceReport: { status: "assignment-status" },
|
|
50061
|
+
advancedExpression: false,
|
|
50062
|
+
path: "windGustMax",
|
|
50063
|
+
valueKind: "number",
|
|
50064
|
+
nullable: true,
|
|
50065
|
+
companions: [{
|
|
50066
|
+
kind: "clock",
|
|
50067
|
+
path: "lastFetchedAt",
|
|
50068
|
+
when: "add"
|
|
50069
|
+
}]
|
|
50070
|
+
},
|
|
50071
|
+
{
|
|
50072
|
+
id: "windBearingAvg",
|
|
50073
|
+
cardinality: "scalar",
|
|
50074
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50075
|
+
apply: "add",
|
|
50076
|
+
vocabularyCap: "weather-station",
|
|
50077
|
+
vocabularyStateField: "windBearingAvg",
|
|
50078
|
+
sources: [{
|
|
50079
|
+
kind: "numeric",
|
|
50080
|
+
requiredUnit: "°",
|
|
50081
|
+
transformKinds: ["identity"],
|
|
50082
|
+
transforms: [{ kind: "identity" }]
|
|
50083
|
+
}],
|
|
50084
|
+
sourceReport: { status: "assignment-status" },
|
|
50085
|
+
advancedExpression: false,
|
|
50086
|
+
path: "windBearingAvg",
|
|
50087
|
+
valueKind: "number",
|
|
50088
|
+
nullable: true,
|
|
50089
|
+
companions: [{
|
|
50090
|
+
kind: "clock",
|
|
50091
|
+
path: "lastFetchedAt",
|
|
50092
|
+
when: "add"
|
|
50093
|
+
}]
|
|
50094
|
+
},
|
|
50095
|
+
{
|
|
50096
|
+
id: "rain24h",
|
|
50097
|
+
cardinality: "scalar",
|
|
50098
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50099
|
+
apply: "add",
|
|
50100
|
+
vocabularyCap: "weather-station",
|
|
50101
|
+
vocabularyStateField: "rain24h",
|
|
50102
|
+
sources: [{
|
|
50103
|
+
kind: "numeric",
|
|
50104
|
+
requiredUnit: "mm",
|
|
50105
|
+
transformKinds: ["identity"],
|
|
50106
|
+
transforms: [{ kind: "identity" }]
|
|
50107
|
+
}],
|
|
50108
|
+
sourceReport: { status: "assignment-status" },
|
|
50109
|
+
advancedExpression: false,
|
|
50110
|
+
path: "rain24h",
|
|
50111
|
+
valueKind: "number",
|
|
50112
|
+
nullable: true,
|
|
50113
|
+
companions: [{
|
|
50114
|
+
kind: "clock",
|
|
50115
|
+
path: "lastFetchedAt",
|
|
50116
|
+
when: "add"
|
|
50117
|
+
}]
|
|
50118
|
+
},
|
|
50119
|
+
{
|
|
50120
|
+
id: "rainWeekly",
|
|
50121
|
+
cardinality: "scalar",
|
|
50122
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50123
|
+
apply: "add",
|
|
50124
|
+
vocabularyCap: "weather-station",
|
|
50125
|
+
vocabularyStateField: "rainWeekly",
|
|
50126
|
+
sources: [{
|
|
50127
|
+
kind: "numeric",
|
|
50128
|
+
requiredUnit: "mm",
|
|
50129
|
+
transformKinds: ["identity"],
|
|
50130
|
+
transforms: [{ kind: "identity" }]
|
|
50131
|
+
}],
|
|
50132
|
+
sourceReport: { status: "assignment-status" },
|
|
50133
|
+
advancedExpression: false,
|
|
50134
|
+
path: "rainWeekly",
|
|
50135
|
+
valueKind: "number",
|
|
50136
|
+
nullable: true,
|
|
50137
|
+
companions: [{
|
|
50138
|
+
kind: "clock",
|
|
50139
|
+
path: "lastFetchedAt",
|
|
50140
|
+
when: "add"
|
|
50141
|
+
}]
|
|
50142
|
+
},
|
|
50143
|
+
{
|
|
50144
|
+
id: "rainMonthly",
|
|
50145
|
+
cardinality: "scalar",
|
|
50146
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50147
|
+
apply: "add",
|
|
50148
|
+
vocabularyCap: "weather-station",
|
|
50149
|
+
vocabularyStateField: "rainMonthly",
|
|
50150
|
+
sources: [{
|
|
50151
|
+
kind: "numeric",
|
|
50152
|
+
requiredUnit: "mm",
|
|
50153
|
+
transformKinds: ["identity"],
|
|
50154
|
+
transforms: [{ kind: "identity" }]
|
|
50155
|
+
}],
|
|
50156
|
+
sourceReport: { status: "assignment-status" },
|
|
50157
|
+
advancedExpression: false,
|
|
50158
|
+
path: "rainMonthly",
|
|
50159
|
+
valueKind: "number",
|
|
50160
|
+
nullable: true,
|
|
50161
|
+
companions: [{
|
|
50162
|
+
kind: "clock",
|
|
50163
|
+
path: "lastFetchedAt",
|
|
50164
|
+
when: "add"
|
|
50165
|
+
}]
|
|
50166
|
+
},
|
|
50167
|
+
{
|
|
50168
|
+
id: "rainYearly",
|
|
50169
|
+
cardinality: "scalar",
|
|
50170
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
50171
|
+
apply: "add",
|
|
50172
|
+
vocabularyCap: "weather-station",
|
|
50173
|
+
vocabularyStateField: "rainYearly",
|
|
50174
|
+
sources: [{
|
|
50175
|
+
kind: "numeric",
|
|
50176
|
+
requiredUnit: "mm",
|
|
50177
|
+
transformKinds: ["identity"],
|
|
50178
|
+
transforms: [{ kind: "identity" }]
|
|
50179
|
+
}],
|
|
50180
|
+
sourceReport: { status: "assignment-status" },
|
|
50181
|
+
advancedExpression: false,
|
|
50182
|
+
path: "rainYearly",
|
|
50183
|
+
valueKind: "number",
|
|
50184
|
+
nullable: true,
|
|
50185
|
+
companions: [{
|
|
50186
|
+
kind: "clock",
|
|
50187
|
+
path: "lastFetchedAt",
|
|
50188
|
+
when: "add"
|
|
50189
|
+
}]
|
|
50190
|
+
}
|
|
50191
|
+
],
|
|
50192
|
+
overridable: [
|
|
50193
|
+
{
|
|
50194
|
+
path: "temperature",
|
|
50195
|
+
by: "temperature"
|
|
50196
|
+
},
|
|
50197
|
+
{
|
|
50198
|
+
path: "humidity",
|
|
50199
|
+
by: "humidity"
|
|
50200
|
+
},
|
|
50201
|
+
{
|
|
50202
|
+
path: "pressure",
|
|
50203
|
+
by: "pressure"
|
|
50204
|
+
},
|
|
50205
|
+
{
|
|
50206
|
+
path: "windSpeed",
|
|
50207
|
+
by: "windSpeed"
|
|
50208
|
+
},
|
|
50209
|
+
{
|
|
50210
|
+
path: "windGust",
|
|
50211
|
+
by: "windGust"
|
|
50212
|
+
},
|
|
50213
|
+
{
|
|
50214
|
+
path: "windBearing",
|
|
50215
|
+
by: "windBearing"
|
|
50216
|
+
},
|
|
50217
|
+
{
|
|
50218
|
+
path: "rainRate",
|
|
50219
|
+
by: "rainRate"
|
|
50220
|
+
},
|
|
50221
|
+
{
|
|
50222
|
+
path: "rainDaily",
|
|
50223
|
+
by: "rainDaily"
|
|
50224
|
+
},
|
|
50225
|
+
{
|
|
50226
|
+
path: "rainEvent",
|
|
50227
|
+
by: "rainEvent"
|
|
50228
|
+
},
|
|
50229
|
+
{
|
|
50230
|
+
path: "uv",
|
|
50231
|
+
by: "uv"
|
|
50232
|
+
},
|
|
50233
|
+
{
|
|
50234
|
+
path: "solarRadiation",
|
|
50235
|
+
by: "solarRadiation"
|
|
50236
|
+
},
|
|
50237
|
+
{
|
|
50238
|
+
path: "dewPoint",
|
|
50239
|
+
by: "dewPoint"
|
|
50240
|
+
},
|
|
50241
|
+
{
|
|
50242
|
+
path: "feelsLike",
|
|
50243
|
+
by: "feelsLike"
|
|
50244
|
+
},
|
|
50245
|
+
{
|
|
50246
|
+
path: "vpd",
|
|
50247
|
+
by: "vpd"
|
|
50248
|
+
},
|
|
50249
|
+
{
|
|
50250
|
+
path: "windGustMax",
|
|
50251
|
+
by: "windGustMax"
|
|
50252
|
+
},
|
|
50253
|
+
{
|
|
50254
|
+
path: "windBearingAvg",
|
|
50255
|
+
by: "windBearingAvg"
|
|
50256
|
+
},
|
|
50257
|
+
{
|
|
50258
|
+
path: "rain24h",
|
|
50259
|
+
by: "rain24h"
|
|
50260
|
+
},
|
|
50261
|
+
{
|
|
50262
|
+
path: "rainWeekly",
|
|
50263
|
+
by: "rainWeekly"
|
|
50264
|
+
},
|
|
50265
|
+
{
|
|
50266
|
+
path: "rainMonthly",
|
|
50267
|
+
by: "rainMonthly"
|
|
50268
|
+
},
|
|
50269
|
+
{
|
|
50270
|
+
path: "rainYearly",
|
|
50271
|
+
by: "rainYearly"
|
|
50272
|
+
}
|
|
50273
|
+
]
|
|
49715
50274
|
}
|
|
49716
50275
|
};
|
|
49717
50276
|
/**
|
|
@@ -50772,7 +51331,7 @@ function groupTemplate(id) {
|
|
|
50772
51331
|
//#region src/generated/history-catalog.ts
|
|
50773
51332
|
/**
|
|
50774
51333
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
50775
|
-
*
|
|
51334
|
+
* 46 caps with series (124 series), 38 caps answered `'none'`.
|
|
50776
51335
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
50777
51336
|
*/
|
|
50778
51337
|
var HISTORY_CATALOG = {
|
|
@@ -51274,6 +51833,108 @@ var HISTORY_CATALOG = {
|
|
|
51274
51833
|
unit: "m/s",
|
|
51275
51834
|
deadband: .5
|
|
51276
51835
|
}
|
|
51836
|
+
},
|
|
51837
|
+
"weather-station": {
|
|
51838
|
+
"temperature": {
|
|
51839
|
+
kind: "gauge",
|
|
51840
|
+
unit: "°C",
|
|
51841
|
+
deadband: .1
|
|
51842
|
+
},
|
|
51843
|
+
"humidity": {
|
|
51844
|
+
kind: "gauge",
|
|
51845
|
+
unit: "%",
|
|
51846
|
+
deadband: 1
|
|
51847
|
+
},
|
|
51848
|
+
"pressure": {
|
|
51849
|
+
kind: "gauge",
|
|
51850
|
+
unit: "hPa",
|
|
51851
|
+
deadband: .2
|
|
51852
|
+
},
|
|
51853
|
+
"windSpeed": {
|
|
51854
|
+
kind: "gauge",
|
|
51855
|
+
unit: "m/s",
|
|
51856
|
+
deadband: .2
|
|
51857
|
+
},
|
|
51858
|
+
"windGust": {
|
|
51859
|
+
kind: "gauge",
|
|
51860
|
+
unit: "m/s",
|
|
51861
|
+
deadband: .2
|
|
51862
|
+
},
|
|
51863
|
+
"windBearing": {
|
|
51864
|
+
kind: "gauge",
|
|
51865
|
+
unit: "°",
|
|
51866
|
+
deadband: 5
|
|
51867
|
+
},
|
|
51868
|
+
"rainRate": {
|
|
51869
|
+
kind: "gauge",
|
|
51870
|
+
unit: "mm/h",
|
|
51871
|
+
deadband: .1
|
|
51872
|
+
},
|
|
51873
|
+
"rainDaily": {
|
|
51874
|
+
kind: "gauge",
|
|
51875
|
+
unit: "mm",
|
|
51876
|
+
deadband: .1
|
|
51877
|
+
},
|
|
51878
|
+
"rainEvent": {
|
|
51879
|
+
kind: "gauge",
|
|
51880
|
+
unit: "mm",
|
|
51881
|
+
deadband: .1
|
|
51882
|
+
},
|
|
51883
|
+
"uv": {
|
|
51884
|
+
kind: "gauge",
|
|
51885
|
+
unit: "index",
|
|
51886
|
+
deadband: .1
|
|
51887
|
+
},
|
|
51888
|
+
"solarRadiation": {
|
|
51889
|
+
kind: "gauge",
|
|
51890
|
+
unit: "W/m²",
|
|
51891
|
+
deadband: 5
|
|
51892
|
+
},
|
|
51893
|
+
"dewPoint": {
|
|
51894
|
+
kind: "gauge",
|
|
51895
|
+
unit: "°C",
|
|
51896
|
+
deadband: .1
|
|
51897
|
+
},
|
|
51898
|
+
"feelsLike": {
|
|
51899
|
+
kind: "gauge",
|
|
51900
|
+
unit: "°C",
|
|
51901
|
+
deadband: .1
|
|
51902
|
+
},
|
|
51903
|
+
"vpd": {
|
|
51904
|
+
kind: "gauge",
|
|
51905
|
+
unit: "kPa",
|
|
51906
|
+
deadband: .05
|
|
51907
|
+
},
|
|
51908
|
+
"windGustMax": {
|
|
51909
|
+
kind: "gauge",
|
|
51910
|
+
unit: "m/s",
|
|
51911
|
+
deadband: .2
|
|
51912
|
+
},
|
|
51913
|
+
"windBearingAvg": {
|
|
51914
|
+
kind: "gauge",
|
|
51915
|
+
unit: "°",
|
|
51916
|
+
deadband: 5
|
|
51917
|
+
},
|
|
51918
|
+
"rain24h": {
|
|
51919
|
+
kind: "gauge",
|
|
51920
|
+
unit: "mm",
|
|
51921
|
+
deadband: .1
|
|
51922
|
+
},
|
|
51923
|
+
"rainWeekly": {
|
|
51924
|
+
kind: "gauge",
|
|
51925
|
+
unit: "mm",
|
|
51926
|
+
deadband: .1
|
|
51927
|
+
},
|
|
51928
|
+
"rainMonthly": {
|
|
51929
|
+
kind: "gauge",
|
|
51930
|
+
unit: "mm",
|
|
51931
|
+
deadband: .1
|
|
51932
|
+
},
|
|
51933
|
+
"rainYearly": {
|
|
51934
|
+
kind: "gauge",
|
|
51935
|
+
unit: "mm",
|
|
51936
|
+
deadband: .1
|
|
51937
|
+
}
|
|
51277
51938
|
}
|
|
51278
51939
|
};
|
|
51279
51940
|
/**
|
|
@@ -51372,7 +52033,6 @@ var HISTORY_NONE_CAPS = [
|
|
|
51372
52033
|
"stream-signals",
|
|
51373
52034
|
"timed-run",
|
|
51374
52035
|
"update",
|
|
51375
|
-
"weather-station",
|
|
51376
52036
|
"zone-analytics",
|
|
51377
52037
|
"zone-rules",
|
|
51378
52038
|
"zones"
|
|
@@ -60834,7 +61494,19 @@ var IdentitySampleInfoSchema = z.object({
|
|
|
60834
61494
|
source: z.enum(["detected", "photo"]),
|
|
60835
61495
|
addedAt: z.number().int(),
|
|
60836
61496
|
deviceId: z.number().int().optional(),
|
|
60837
|
-
base64: z.string().optional()
|
|
61497
|
+
base64: z.string().optional(),
|
|
61498
|
+
/**
|
|
61499
|
+
* The sample's own crop, when it has one. The bytes stay on the event-media
|
|
61500
|
+
* plane — this list does not inline them.
|
|
61501
|
+
*/
|
|
61502
|
+
mediaId: z.number().int().optional(),
|
|
61503
|
+
/**
|
|
61504
|
+
* The source face's key frame (or the photo the sample was cut from), when
|
|
61505
|
+
* the sample has no crop of its own. Draw {@link faceBbox} on it.
|
|
61506
|
+
*/
|
|
61507
|
+
keyFrameMediaId: z.number().int().optional(),
|
|
61508
|
+
/** The face box on {@link keyFrameMediaId}, pixel space. */
|
|
61509
|
+
faceBbox: BoundingBoxSchema.optional()
|
|
60838
61510
|
});
|
|
60839
61511
|
/**
|
|
60840
61512
|
* One enrolled sample, judged against the gallery it lives in.
|
|
@@ -61074,6 +61746,18 @@ includeCrops: z.boolean().optional() }).optional(), z.array(IdentitySchema).read
|
|
|
61074
61746
|
kind: "mutation",
|
|
61075
61747
|
auth: "admin"
|
|
61076
61748
|
}),
|
|
61749
|
+
/**
|
|
61750
|
+
* Move an enrolled sample onto another person. The crop is re-owned, the
|
|
61751
|
+
* source face keeps its link and follows (`recognizedIdentityId`), and an
|
|
61752
|
+
* unknown person is refused.
|
|
61753
|
+
*/
|
|
61754
|
+
moveIdentitySample: method(z.object({
|
|
61755
|
+
sampleId: z.string().min(1),
|
|
61756
|
+
toIdentityId: z.string().min(1)
|
|
61757
|
+
}), z.void(), {
|
|
61758
|
+
kind: "mutation",
|
|
61759
|
+
auth: "admin"
|
|
61760
|
+
}),
|
|
61077
61761
|
listRecentFaces: method(z.object({
|
|
61078
61762
|
/**
|
|
61079
61763
|
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
@@ -86069,7 +86753,19 @@ var VehicleSampleInfoSchema = z.object({
|
|
|
86069
86753
|
score: z.number(),
|
|
86070
86754
|
addedAt: z.number().int(),
|
|
86071
86755
|
deviceId: z.number().int().optional(),
|
|
86072
|
-
base64: z.string().optional()
|
|
86756
|
+
base64: z.string().optional(),
|
|
86757
|
+
/**
|
|
86758
|
+
* The sample's own crop, when it has one. Prefer this over {@link base64}:
|
|
86759
|
+
* the bytes are on the event-media plane (`/m/<mediaId>`), never inlined.
|
|
86760
|
+
*/
|
|
86761
|
+
mediaId: z.number().int().optional(),
|
|
86762
|
+
/**
|
|
86763
|
+
* The source plate's key frame, when the sample has no crop of its own.
|
|
86764
|
+
* Draw {@link plateBbox} on it. Absent when {@link mediaId} is set.
|
|
86765
|
+
*/
|
|
86766
|
+
keyFrameMediaId: z.number().int().optional(),
|
|
86767
|
+
/** The plate box on {@link keyFrameMediaId}, pixel space. */
|
|
86768
|
+
plateBbox: BoundingBoxSchema.optional()
|
|
86073
86769
|
});
|
|
86074
86770
|
var PlateInfoSchema = z.object({
|
|
86075
86771
|
plateId: z.string(),
|
|
@@ -86099,7 +86795,17 @@ var PlateInfoSchema = z.object({
|
|
|
86099
86795
|
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
86100
86796
|
* left at its `true` default.
|
|
86101
86797
|
*/
|
|
86102
|
-
cropUrl: z.string().optional()
|
|
86798
|
+
cropUrl: z.string().optional(),
|
|
86799
|
+
/**
|
|
86800
|
+
* Why {@link cropUrl} is absent. One of `no-frame-handle`,
|
|
86801
|
+
* `live-capture-missed`, `live-capture-threw`, `no-key-frame`,
|
|
86802
|
+
* `derive-not-wired`, `subject-moved`, `temporal-skew`, `key-frame-absent`,
|
|
86803
|
+
* `bad-frame-size`, `decode-empty`, `derive-threw`, `derive-returned-null`,
|
|
86804
|
+
* `put-failed`. A crossing vehicle whose live capture missed is
|
|
86805
|
+
* `subject-moved`: the key frame is a different instant, and the crop is
|
|
86806
|
+
* legitimately absent.
|
|
86807
|
+
*/
|
|
86808
|
+
cropMissReason: z.string().optional()
|
|
86103
86809
|
});
|
|
86104
86810
|
/**
|
|
86105
86811
|
* One gallery media row: what the crop is, how big it is, and WHERE its bytes
|
|
@@ -86229,6 +86935,18 @@ includeCrops: z.boolean().optional() }).optional(), z.array(VehicleSchema).reado
|
|
|
86229
86935
|
kind: "mutation",
|
|
86230
86936
|
auth: "admin"
|
|
86231
86937
|
}),
|
|
86938
|
+
/**
|
|
86939
|
+
* Move an enrolled sample onto another vehicle. The crop is re-owned, the
|
|
86940
|
+
* source plate keeps its link and follows (`recognizedVehicleId`), and an
|
|
86941
|
+
* unknown vehicle is refused.
|
|
86942
|
+
*/
|
|
86943
|
+
moveVehicleSample: method(z.object({
|
|
86944
|
+
sampleId: z.string().min(1),
|
|
86945
|
+
toVehicleId: z.string().min(1)
|
|
86946
|
+
}), z.void(), {
|
|
86947
|
+
kind: "mutation",
|
|
86948
|
+
auth: "admin"
|
|
86949
|
+
}),
|
|
86232
86950
|
assignPlate: method(z.object({
|
|
86233
86951
|
plateId: z.string(),
|
|
86234
86952
|
vehicleId: z.string()
|
|
@@ -100246,18 +100964,30 @@ var weatherCapability = {
|
|
|
100246
100964
|
}
|
|
100247
100965
|
};
|
|
100248
100966
|
var WeatherStationStatusSchema = z.object({
|
|
100249
|
-
temperature: z.number().nullable().meta(readingMeta("temperature", { precision: 1 })),
|
|
100250
|
-
humidity: z.number().min(0).max(100).nullable().meta(readingMeta("humidity")),
|
|
100251
|
-
pressure: z.number().nullable().meta(readingMeta("pressure")),
|
|
100252
|
-
windSpeed: z.number().nullable().meta(readingMeta("speed")),
|
|
100253
|
-
windGust: z.number().nullable().meta(readingMeta("speed")),
|
|
100254
|
-
windBearing: z.number().nullable().meta(readingMeta("angle")),
|
|
100255
|
-
rainRate: z.number().nullable().meta(readingMeta("precipitation-rate", { precision: 1 })),
|
|
100256
|
-
rainDaily: z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
|
|
100257
|
-
rainEvent: z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
|
|
100258
|
-
uv: z.number().nullable().meta(readingMeta("index", { precision: 1 })),
|
|
100259
|
-
solarRadiation: z.number().nullable().meta(readingMeta("irradiance")),
|
|
100260
|
-
dewPoint: z.number().nullable().meta(readingMeta("temperature", { precision: 1 }))
|
|
100967
|
+
temperature: z.number().nullable().default(null).meta(readingMeta("temperature", { precision: 1 })),
|
|
100968
|
+
humidity: z.number().min(0).max(100).nullable().default(null).meta(readingMeta("humidity")),
|
|
100969
|
+
pressure: z.number().nullable().default(null).meta(readingMeta("pressure")),
|
|
100970
|
+
windSpeed: z.number().nullable().default(null).meta(readingMeta("speed")),
|
|
100971
|
+
windGust: z.number().nullable().default(null).meta(readingMeta("speed")),
|
|
100972
|
+
windBearing: z.number().nullable().default(null).meta(readingMeta("angle")),
|
|
100973
|
+
rainRate: z.number().nullable().default(null).meta(readingMeta("precipitation-rate", { precision: 1 })),
|
|
100974
|
+
rainDaily: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100975
|
+
rainEvent: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100976
|
+
uv: z.number().nullable().default(null).meta(readingMeta("index", { precision: 1 })),
|
|
100977
|
+
solarRadiation: z.number().nullable().default(null).meta(readingMeta("irradiance")),
|
|
100978
|
+
dewPoint: z.number().nullable().default(null).meta(readingMeta("temperature", { precision: 1 })),
|
|
100979
|
+
/** Apparent ("feels like") temperature. */
|
|
100980
|
+
feelsLike: z.number().nullable().default(null).meta(readingMeta("temperature", { precision: 1 })),
|
|
100981
|
+
/** Vapour-pressure deficit, stored in kPa (the unit stations and growers read it in). */
|
|
100982
|
+
vpd: z.number().nullable().default(null).meta(readingMeta("none", { precision: 2 })),
|
|
100983
|
+
/** Highest wind gust since local midnight. */
|
|
100984
|
+
windGustMax: z.number().nullable().default(null).meta(readingMeta("speed")),
|
|
100985
|
+
/** Wind bearing averaged over the station's own window. */
|
|
100986
|
+
windBearingAvg: z.number().nullable().default(null).meta(readingMeta("angle")),
|
|
100987
|
+
rain24h: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100988
|
+
rainWeekly: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100989
|
+
rainMonthly: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 })),
|
|
100990
|
+
rainYearly: z.number().nullable().default(null).meta(readingMeta("precipitation", { precision: 1 }))
|
|
100261
100991
|
}).extend({
|
|
100262
100992
|
/** Ms epoch of the poll that produced this slice. 0 before the first one. */
|
|
100263
100993
|
lastFetchedAt: z.number() });
|
|
@@ -100269,6 +100999,75 @@ var numeric = (field, quantity, label, unit, icon) => ({
|
|
|
100269
100999
|
unit,
|
|
100270
101000
|
icon
|
|
100271
101001
|
});
|
|
101002
|
+
/** Every reading of the station with the unit a Customize source must carry ('' = dimensionless). */
|
|
101003
|
+
var STATION_FIELD_UNITS = {
|
|
101004
|
+
temperature: "°C",
|
|
101005
|
+
humidity: "%",
|
|
101006
|
+
pressure: "hPa",
|
|
101007
|
+
windSpeed: "m/s",
|
|
101008
|
+
windGust: "m/s",
|
|
101009
|
+
windBearing: "°",
|
|
101010
|
+
rainRate: "mm/h",
|
|
101011
|
+
rainDaily: "mm",
|
|
101012
|
+
rainEvent: "mm",
|
|
101013
|
+
uv: "",
|
|
101014
|
+
solarRadiation: "W/m²",
|
|
101015
|
+
dewPoint: "°C",
|
|
101016
|
+
feelsLike: "°C",
|
|
101017
|
+
vpd: "kPa",
|
|
101018
|
+
windGustMax: "m/s",
|
|
101019
|
+
windBearingAvg: "°",
|
|
101020
|
+
rain24h: "mm",
|
|
101021
|
+
rainWeekly: "mm",
|
|
101022
|
+
rainMonthly: "mm",
|
|
101023
|
+
rainYearly: "mm"
|
|
101024
|
+
};
|
|
101025
|
+
function isStationField(key) {
|
|
101026
|
+
return Object.prototype.hasOwnProperty.call(STATION_FIELD_UNITS, key);
|
|
101027
|
+
}
|
|
101028
|
+
var STATION_FIELDS = Object.keys(STATION_FIELD_UNITS).filter(isStationField);
|
|
101029
|
+
/**
|
|
101030
|
+
* One scalar target per reading, `apply: 'add'` and listed in `overridable` by its own id
|
|
101031
|
+
* (the running-state / climate-control mechanism, D984 / D990): a station that reports a
|
|
101032
|
+
* reading natively keeps it until the operator assigns another device to that ONE field,
|
|
101033
|
+
* and a device with no `weather-station` slice becomes one from the sources picked. On an
|
|
101034
|
+
* add, every other reading is absent from the claim and the schema defaults it to null
|
|
101035
|
+
* (a missing sensor is never 0, D393) — the fan-control precedent, never a cross-field companion
|
|
101036
|
+
* (the scalar merge treats a companion as owned by its target).
|
|
101037
|
+
*/
|
|
101038
|
+
function stationTarget(field) {
|
|
101039
|
+
const unit = STATION_FIELD_UNITS[field];
|
|
101040
|
+
return {
|
|
101041
|
+
id: field,
|
|
101042
|
+
cardinality: "scalar",
|
|
101043
|
+
vocabulary: {
|
|
101044
|
+
cap: "weather-station",
|
|
101045
|
+
stateField: field
|
|
101046
|
+
},
|
|
101047
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
101048
|
+
apply: "add",
|
|
101049
|
+
path: field,
|
|
101050
|
+
sources: [{
|
|
101051
|
+
kind: "numeric",
|
|
101052
|
+
...unit.length > 0 ? { requiredUnit: unit } : {},
|
|
101053
|
+
transforms: [{ kind: "identity" }]
|
|
101054
|
+
}],
|
|
101055
|
+
companions: [{
|
|
101056
|
+
kind: "clock",
|
|
101057
|
+
path: "lastFetchedAt",
|
|
101058
|
+
when: "add"
|
|
101059
|
+
}],
|
|
101060
|
+
sourceReport: { status: "assignment-status" }
|
|
101061
|
+
};
|
|
101062
|
+
}
|
|
101063
|
+
var weatherStationCustomize = {
|
|
101064
|
+
version: 1,
|
|
101065
|
+
overridable: STATION_FIELDS.map((field) => ({
|
|
101066
|
+
path: field,
|
|
101067
|
+
by: field
|
|
101068
|
+
})),
|
|
101069
|
+
targets: STATION_FIELDS.map(stationTarget)
|
|
101070
|
+
};
|
|
100272
101071
|
var weatherStationCapability = {
|
|
100273
101072
|
name: "weather-station",
|
|
100274
101073
|
scope: "device",
|
|
@@ -100282,10 +101081,115 @@ var weatherStationCapability = {
|
|
|
100282
101081
|
},
|
|
100283
101082
|
runtimeState: WeatherStationStatusSchema,
|
|
100284
101083
|
/**
|
|
100285
|
-
*
|
|
100286
|
-
*
|
|
101084
|
+
* History (D850): the station records its own readings. Rain totals that
|
|
101085
|
+
* reset (event, day, week, month, year) and the sliding 24 h total are
|
|
101086
|
+
* levels, so `gauge`; `counter` is for a monotonic meter only.
|
|
100287
101087
|
*/
|
|
100288
|
-
history:
|
|
101088
|
+
history: { fields: {
|
|
101089
|
+
temperature: {
|
|
101090
|
+
kind: "gauge",
|
|
101091
|
+
unit: "°C",
|
|
101092
|
+
deadband: .1
|
|
101093
|
+
},
|
|
101094
|
+
humidity: {
|
|
101095
|
+
kind: "gauge",
|
|
101096
|
+
unit: "%",
|
|
101097
|
+
deadband: 1
|
|
101098
|
+
},
|
|
101099
|
+
pressure: {
|
|
101100
|
+
kind: "gauge",
|
|
101101
|
+
unit: "hPa",
|
|
101102
|
+
deadband: .2
|
|
101103
|
+
},
|
|
101104
|
+
windSpeed: {
|
|
101105
|
+
kind: "gauge",
|
|
101106
|
+
unit: "m/s",
|
|
101107
|
+
deadband: .2
|
|
101108
|
+
},
|
|
101109
|
+
windGust: {
|
|
101110
|
+
kind: "gauge",
|
|
101111
|
+
unit: "m/s",
|
|
101112
|
+
deadband: .2
|
|
101113
|
+
},
|
|
101114
|
+
windBearing: {
|
|
101115
|
+
kind: "gauge",
|
|
101116
|
+
unit: "°",
|
|
101117
|
+
deadband: 5
|
|
101118
|
+
},
|
|
101119
|
+
rainRate: {
|
|
101120
|
+
kind: "gauge",
|
|
101121
|
+
unit: "mm/h",
|
|
101122
|
+
deadband: .1
|
|
101123
|
+
},
|
|
101124
|
+
rainDaily: {
|
|
101125
|
+
kind: "gauge",
|
|
101126
|
+
unit: "mm",
|
|
101127
|
+
deadband: .1
|
|
101128
|
+
},
|
|
101129
|
+
rainEvent: {
|
|
101130
|
+
kind: "gauge",
|
|
101131
|
+
unit: "mm",
|
|
101132
|
+
deadband: .1
|
|
101133
|
+
},
|
|
101134
|
+
uv: {
|
|
101135
|
+
kind: "gauge",
|
|
101136
|
+
unit: "index",
|
|
101137
|
+
deadband: .1
|
|
101138
|
+
},
|
|
101139
|
+
solarRadiation: {
|
|
101140
|
+
kind: "gauge",
|
|
101141
|
+
unit: "W/m²",
|
|
101142
|
+
deadband: 5
|
|
101143
|
+
},
|
|
101144
|
+
dewPoint: {
|
|
101145
|
+
kind: "gauge",
|
|
101146
|
+
unit: "°C",
|
|
101147
|
+
deadband: .1
|
|
101148
|
+
},
|
|
101149
|
+
feelsLike: {
|
|
101150
|
+
kind: "gauge",
|
|
101151
|
+
unit: "°C",
|
|
101152
|
+
deadband: .1
|
|
101153
|
+
},
|
|
101154
|
+
vpd: {
|
|
101155
|
+
kind: "gauge",
|
|
101156
|
+
unit: "kPa",
|
|
101157
|
+
deadband: .05
|
|
101158
|
+
},
|
|
101159
|
+
windGustMax: {
|
|
101160
|
+
kind: "gauge",
|
|
101161
|
+
unit: "m/s",
|
|
101162
|
+
deadband: .2
|
|
101163
|
+
},
|
|
101164
|
+
windBearingAvg: {
|
|
101165
|
+
kind: "gauge",
|
|
101166
|
+
unit: "°",
|
|
101167
|
+
deadband: 5
|
|
101168
|
+
},
|
|
101169
|
+
rain24h: {
|
|
101170
|
+
kind: "gauge",
|
|
101171
|
+
unit: "mm",
|
|
101172
|
+
deadband: .1
|
|
101173
|
+
},
|
|
101174
|
+
rainWeekly: {
|
|
101175
|
+
kind: "gauge",
|
|
101176
|
+
unit: "mm",
|
|
101177
|
+
deadband: .1
|
|
101178
|
+
},
|
|
101179
|
+
rainMonthly: {
|
|
101180
|
+
kind: "gauge",
|
|
101181
|
+
unit: "mm",
|
|
101182
|
+
deadband: .1
|
|
101183
|
+
},
|
|
101184
|
+
rainYearly: {
|
|
101185
|
+
kind: "gauge",
|
|
101186
|
+
unit: "mm",
|
|
101187
|
+
deadband: .1
|
|
101188
|
+
}
|
|
101189
|
+
} },
|
|
101190
|
+
customize: weatherStationCustomize,
|
|
101191
|
+
/** The poll clock is written but is no reason to commit a row. */
|
|
101192
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
100289
101193
|
/**
|
|
100290
101194
|
* Runtime-state durability: **session** — a station reading is stale the
|
|
100291
101195
|
* moment the hub is down; the provider re-reads on the next poll.
|
|
@@ -100306,7 +101210,15 @@ var weatherStationCapability = {
|
|
|
100306
101210
|
numeric("rainEvent", t("the rain this event", "la pioggia di questo evento"), t("Rain event", "Evento di pioggia"), "mm", "droplets"),
|
|
100307
101211
|
numeric("uv", t("the UV index", "l’indice UV"), t("UV", "UV"), "", "cloud-sun"),
|
|
100308
101212
|
numeric("solarRadiation", t("the solar radiation", "la radiazione solare"), t("Solar", "Sole"), "W/m²", "cloud-sun"),
|
|
100309
|
-
numeric("dewPoint", t("the dew point", "il punto di rugiada"), t("Dew point", "Punto di rugiada"), "°C", "thermometer")
|
|
101213
|
+
numeric("dewPoint", t("the dew point", "il punto di rugiada"), t("Dew point", "Punto di rugiada"), "°C", "thermometer"),
|
|
101214
|
+
numeric("feelsLike", t("the feels-like temperature", "la temperatura percepita"), t("Feels like", "Percepita"), "°C", "thermometer"),
|
|
101215
|
+
numeric("vpd", t("the vapour-pressure deficit", "il deficit di pressione di vapore"), t("VPD", "VPD"), "kPa", "gauge"),
|
|
101216
|
+
numeric("windGustMax", t("the highest gust today", "la raffica massima di oggi"), t("Max gust", "Raffica max"), "m/s", "wind"),
|
|
101217
|
+
numeric("windBearingAvg", t("the average wind bearing", "la direzione media del vento"), t("Avg bearing", "Direzione media"), "°", "wind"),
|
|
101218
|
+
numeric("rain24h", t("the rain in the last 24 hours", "la pioggia delle ultime 24 ore"), t("Rain 24 h", "Pioggia 24 h"), "mm", "droplets"),
|
|
101219
|
+
numeric("rainWeekly", t("the rain this week", "la pioggia di questa settimana"), t("Rain week", "Pioggia settimana"), "mm", "droplets"),
|
|
101220
|
+
numeric("rainMonthly", t("the rain this month", "la pioggia di questo mese"), t("Rain month", "Pioggia mese"), "mm", "droplets"),
|
|
101221
|
+
numeric("rainYearly", t("the rain this year", "la pioggia di quest’anno"), t("Rain year", "Pioggia anno"), "mm", "droplets")
|
|
100310
101222
|
]
|
|
100311
101223
|
}
|
|
100312
101224
|
};
|
|
@@ -120107,6 +121019,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
120107
121019
|
access: "view",
|
|
120108
121020
|
role: "feature:face-assignment"
|
|
120109
121021
|
},
|
|
121022
|
+
"faceGallery.moveIdentitySample": {
|
|
121023
|
+
capName: "face-gallery",
|
|
121024
|
+
capScope: "system",
|
|
121025
|
+
addonId: null,
|
|
121026
|
+
access: "create",
|
|
121027
|
+
role: "feature:face-assignment"
|
|
121028
|
+
},
|
|
120110
121029
|
"faceGallery.removeSample": {
|
|
120111
121030
|
capName: "face-gallery",
|
|
120112
121031
|
capScope: "system",
|
|
@@ -124027,6 +124946,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
124027
124946
|
access: "view",
|
|
124028
124947
|
role: "feature:plate-assignment"
|
|
124029
124948
|
},
|
|
124949
|
+
"plateGallery.moveVehicleSample": {
|
|
124950
|
+
capName: "plate-gallery",
|
|
124951
|
+
capScope: "system",
|
|
124952
|
+
addonId: null,
|
|
124953
|
+
access: "create",
|
|
124954
|
+
role: "feature:plate-assignment"
|
|
124955
|
+
},
|
|
124030
124956
|
"plateGallery.removeVehicleSample": {
|
|
124031
124957
|
capName: "plate-gallery",
|
|
124032
124958
|
capScope: "system",
|
|
@@ -133342,7 +134268,7 @@ var RUNTIME_STATE_POLICY = {
|
|
|
133342
134268
|
},
|
|
133343
134269
|
"weather-station": {
|
|
133344
134270
|
durability: "session",
|
|
133345
|
-
volatileFields: []
|
|
134271
|
+
volatileFields: ["lastFetchedAt"]
|
|
133346
134272
|
},
|
|
133347
134273
|
"zone-analytics": {
|
|
133348
134274
|
durability: "session",
|
|
@@ -134284,6 +135210,7 @@ function createSystemProxy(api) {
|
|
|
134284
135210
|
listIdentitySamples: (input) => dispatch("faceGallery", "listIdentitySamples", "query", input),
|
|
134285
135211
|
auditIdentitySamples: (input) => dispatch("faceGallery", "auditIdentitySamples", "query", input),
|
|
134286
135212
|
removeSample: (input) => dispatch("faceGallery", "removeSample", "mutation", input),
|
|
135213
|
+
moveIdentitySample: (input) => dispatch("faceGallery", "moveIdentitySample", "mutation", input),
|
|
134287
135214
|
getFaceMedia: (input) => dispatch("faceGallery", "getFaceMedia", "query", input),
|
|
134288
135215
|
assignFace: (input) => dispatch("faceGallery", "assignFace", "mutation", input),
|
|
134289
135216
|
unassignFace: (input) => dispatch("faceGallery", "unassignFace", "mutation", input),
|
|
@@ -134577,6 +135504,7 @@ function createSystemProxy(api) {
|
|
|
134577
135504
|
deleteVehicle: (input) => dispatch("plateGallery", "deleteVehicle", "mutation", input),
|
|
134578
135505
|
listVehicleSamples: (input) => dispatch("plateGallery", "listVehicleSamples", "query", input),
|
|
134579
135506
|
removeVehicleSample: (input) => dispatch("plateGallery", "removeVehicleSample", "mutation", input),
|
|
135507
|
+
moveVehicleSample: (input) => dispatch("plateGallery", "moveVehicleSample", "mutation", input),
|
|
134580
135508
|
assignPlate: (input) => dispatch("plateGallery", "assignPlate", "mutation", input),
|
|
134581
135509
|
unassignPlate: (input) => dispatch("plateGallery", "unassignPlate", "mutation", input),
|
|
134582
135510
|
assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
|