@camstack/types 1.2.593 → 1.2.595
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 +25 -0
- package/dist/addon.d.ts +1 -0
- package/dist/addon.js +157 -156
- package/dist/addon.mjs +4 -4
- package/dist/capabilities/composer.cap.d.ts +9 -0
- package/dist/capabilities/core-blocks.cap.d.ts +64 -0
- package/dist/capabilities/device-manager.cap.d.ts +681 -48
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/platform-probe.cap.d.ts +28 -0
- package/dist/capabilities/power-meter.cap.d.ts +16 -5
- package/dist/capabilities/power-source.cap.d.ts +10 -0
- package/dist/client.js +10 -1
- package/dist/client.mjs +10 -1
- package/dist/{composed-stable-id-BNTaDZEh.mjs → composed-stable-id-DIeNz933.mjs} +3 -0
- package/dist/{composed-stable-id-BdeYe5dD.js → composed-stable-id-DkF5-kuf.js} +3 -0
- package/dist/composition/composition-report.d.ts +3 -0
- package/dist/composition/composition.d.ts +14 -0
- package/dist/composition/power-source-link.d.ts +8 -0
- package/dist/device/base-device.d.ts +8 -0
- package/dist/device/device-icon.d.ts +1 -0
- package/dist/device/device-management.d.ts +4 -0
- package/dist/device/device-type.d.ts +4 -1
- package/dist/device/hero/hero-look.d.ts +1 -0
- package/dist/device/hero/hero-scene.d.ts +1 -0
- package/dist/device/identity-links.d.ts +310 -0
- package/dist/device/index.d.ts +2 -0
- package/dist/device/state-refresh.d.ts +15 -1
- package/dist/enums/event-category.d.ts +14 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-CY27-fF0.mjs → event-category-7P4A3bYA.mjs} +14 -0
- package/dist/{event-category-BKxXXxnV.js → event-category-CMA0-jGW.js} +14 -0
- package/dist/generated/addon-api.d.ts +35 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +4 -4
- package/dist/generated/device-proxy.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/{implemented-methods-BarLh7tc.js → implemented-methods-DnfgAfI6.js} +17 -2
- package/dist/{implemented-methods-k3KProJd.mjs → implemented-methods-wFScvZ40.mjs} +12 -3
- package/dist/index.d.ts +5 -2
- package/dist/index.js +4204 -4224
- package/dist/index.mjs +348 -389
- package/dist/inference/runtime-capabilities.d.ts +13 -2
- package/dist/interfaces/addon.d.ts +3 -1
- package/dist/interfaces/platform.d.ts +32 -0
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-DO-ayTnk.mjs → runtime-capabilities-Bgt5QBvO.mjs} +403 -3
- package/dist/{sleep-BOK28JE0.js → runtime-capabilities-wOKNm9iz.js} +498 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DeviceType, i as DeviceRole, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-
|
|
1
|
+
import { a as DeviceType, i as DeviceRole, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-DIeNz933.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
//#region src/ffmpeg/invocation.ts
|
|
@@ -3441,6 +3441,8 @@ var CompositionItemEntrySchema = z.object({
|
|
|
3441
3441
|
*/
|
|
3442
3442
|
reset: CompositionForwardCommandSchema.optional()
|
|
3443
3443
|
});
|
|
3444
|
+
/** Which identity link added a feature (D1063). */
|
|
3445
|
+
var CompositionContributedBySchema = z.object({ linkId: z.string().min(1) });
|
|
3444
3446
|
var CompositionFieldsFeatureSchema = z.object({
|
|
3445
3447
|
kind: z.literal("fields"),
|
|
3446
3448
|
cap: z.string().min(1),
|
|
@@ -3452,7 +3454,14 @@ var CompositionFieldsFeatureSchema = z.object({
|
|
|
3452
3454
|
*/
|
|
3453
3455
|
items: z.record(z.string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
|
|
3454
3456
|
/** Method name → what serves it. Only a BUILT capability takes commands (D967). */
|
|
3455
|
-
commands: z.record(z.string().min(1), CompositionCommandTargetSchema).optional()
|
|
3457
|
+
commands: z.record(z.string().min(1), CompositionCommandTargetSchema).optional(),
|
|
3458
|
+
/**
|
|
3459
|
+
* Provenance only (D1063): the identity link that added this feature. The
|
|
3460
|
+
* source ref stays in `fields`; `enabled` stays the operator's switch. An
|
|
3461
|
+
* operator edit of the source drops the stamp and the feature becomes the
|
|
3462
|
+
* operator's; a lost link removes only stamped features.
|
|
3463
|
+
*/
|
|
3464
|
+
contributedBy: CompositionContributedBySchema.optional()
|
|
3456
3465
|
});
|
|
3457
3466
|
/** RESERVED for slice 3: a media / data-plane cap, whole, from one source. */
|
|
3458
3467
|
var CompositionPassthroughFeatureSchema = z.object({
|
|
@@ -3609,4 +3618,4 @@ function implementedMethodsOf(methodNames, provider) {
|
|
|
3609
3618
|
return methodNames.filter((name) => typeof Reflect.get(provider, name) === "function");
|
|
3610
3619
|
}
|
|
3611
3620
|
//#endregion
|
|
3612
|
-
export {
|
|
3621
|
+
export { DEFAULT_GRID_PROFILES as $, isSwitchHeater as $n, STATISTIC_STATS as $t, MAX_COMPOSITION_FEATURES as A, evaluateDwell as An, DAY_MS as At, compositionSourceKey as B, evaluateSensorEdge as Bn, RollingWindowSchema as Bt, CompositionNewTargetSchema as C, MAX_EXPRESSION_EVAL_STEPS as Cn, helperMembers as Ct, CompositionTargetSchema as D, EXPRESSION_BUILTIN_NAMES as Dn, CompositionSourceRefSchema as Dt, CompositionSeriesSourceSchema as E, EXPRESSION_BUILTINS as En, newGridHelperSpec as Et, composedDeviceStableId as F, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as Fn, HOUR_MS as Ft, ACTIVE_CRITERIA as G, CLIMATE_ROLES as Gn, nextLocalMidnight as Gt, featureSources as H, isSourceCap as Hn, historyRetentionFromSettings as Ht, compositionFeatureEnabled as I, SOURCE_CAPS as In, MINUTE_MS as It, ActiveCriterionSchema as J, capAppliesToDeviceKind as Jn, planResetTier as Jt, AGGREGATE_REDUCERS as K, StoredDeviceTypeSchema as Kn, openReset as Kt, compositionItemFieldPath as L, SOURCE_CAP_ACTIVE_FIELD as Ln, MIN_CUSTOM_MINUTES as Lt, MAX_COMPOSITION_ITEMS as M, isStatefulBuiltin as Mn, HISTORY_FAST_MS as Mt, canonicalStoredBlockTarget as N, ExpressionEvalError as Nn, HISTORY_SLOW_MS as Nt, FORWARD_INPUT_KEY as O, disarmRoseMemory as On, CALENDAR_PERIODS as Ot, composedDeviceRef as P, ExpressionParseError as Pn, HISTORY_TIERS as Pt, DEFAULT_GRID_FPS as Q, isSwitchFan as Qn, SERIES_KINDS as Qt, compositionReadKey as R, SOURCE_CAP_CHANGED_AT_FIELD as Rn, RESET_PERIODS as Rt, CompositionLiteralBindingSchema as S, MAX_EXPRESSION_CALL_ARGS as Sn, helperDeviceRefs as St, CompositionSchema as T, RESERVED_BINDING_NAMES as Tn, isHistoryHelper as Tt, fieldReads as U, sliceActiveValue as Un, integralCadenceMs as Ut, featureFieldEntries as V, evaluateSensorLevelEdge as Vn, StatisticWindowSchema as Vt, isForwardInputRef as W, sliceChangedAt as Wn, maxDurationMs as Wt, ArithmeticHelperSpecSchema as X, isAirConditioner as Xn, rollingDurationMs as Xt, AggregateReducerSchema as Y, climateRoleOf as Yn, planStatisticTier as Yt, BINARY_AGGREGATES as Z, isOutlet as Zn, statisticCadenceMs as Zt, CompositionFieldsFeatureSchema as _, tokenize as _n, isSoftwareDecode as _r, MAX_HELPER_MEMBERS as _t, CUSTOMIZATION_BLOCK_NAME_PREFIX as a, EXPRESSION_INJECTED_NOW as an, getFfmpegArtifact as ar, GRID_PROFILES as at, CompositionFromSourceSchema as b, MAX_EXPRESSION_AST_NODES as bn, resolveStreamMaps as br, TerminalHelperSpecSchema as bt, CompositionCodeSourceSchema as c, evaluateExpressionSource as cn, Fmp4BoxSplitter as cr, GridHelperSpecSchema as ct, CompositionExistingTargetSchema as d, validateExpressionSource as dn, audioPlanFromEncodeProfile as dr, GroupTemplateIdSchema as dt, evaluateDerivative as en, isSwitchLight as er, DERIVATIVE_UNITS as et, CompositionExpressionSourceSchema as f, createExpressionScope as fn, buildAudioArgs as fr, HelperMemberSchema as ft, CompositionFieldSourceSchema as g, parseExpression as gn, invocationFromEncodeProfile as gr, MAX_GRID_CELLS as gt, CompositionFieldReadSchema as h, compileExpressionSafe as hn, buildVideoArgs as hr, IntegralHelperSpecSchema as ht, COMPOSITION_ITEM_KEY_RE as i, wattMillisecondsToKwh as in, FFMPEG_RELEASE as ir, ExpressionHelperSpecSchema as it, MAX_COMPOSITION_FIELDS_PER_FEATURE as j, evaluateRose as jn, DEFAULT_HISTORY_RETENTION as jt, MAX_COMPOSITION_CODE_LENGTH as k, evaluateCount as kn, CalendarWindowSchema as kt, CompositionCommandTargetSchema as l, evaluateStatefulExpressionCall as ln, AUDIO_PRESETS as lr, GridRectSchema as lt, CompositionFeatureSchema as m, compileExpression as mn, buildInputArgs as mr, INTEGRAL_OUTPUTS as mt, COMPOSER_ADDON_ID as n, integrateReading as nn, chooseFfmpegBinary as nr, ENGINE_HOSTED_HELPER_KINDS as nt, CompositionAggregateSourceSchema as o, cloneStatefulExpressionMemory as on, getFfmpegDownloadUrl as or, GROUP_TEMPLATE_IDS as ot, CompositionExtensionCommandSchema as p, evaluateAst as pn, buildFfmpegArgs as pr, HelperSpecSchema as pt, ARITHMETIC_OPS as q, canonicalStoredDeviceType as qn, openStatistic as qt, COMPOSITION_ITEM_ARRAY_PATH as r, KWH_PER_WATT_MS as rn, ffmpegBinaryName as rr, EXPRESSION_OUTPUTS as rt, CompositionBindingSchema as s, createStatefulExpressionMemory as sn, canonicalHash as sr, GridCellSpecSchema as st, implementedMethodsOf as t, evaluateStatistic as tn, FFMPEG_PATH_ENV as tr, DerivativeHelperSpecSchema as tt, CompositionContributedBySchema as u, toExpressionValue as un, RESTREAM_INPUT_PROBE as ur, GroupHelperSpecSchema as ut, CompositionForwardArgSchema as v, EXPRESSION_COMPILE_CACHE_CAPACITY as vn, logBannerArgs as vr, NUMERIC_AGGREGATES as vt, CompositionPassthroughFeatureSchema as w, MAX_EXPRESSION_SOURCE_LENGTH as wn, isEngineHostedHelper as wt, CompositionItemEntrySchema as x, MAX_EXPRESSION_BINDINGS as xn, ThresholdHelperSpecSchema as xt, CompositionForwardCommandSchema as y, EXPRESSION_IDENTIFIER_RE as yn, pickVideoEncoder as yr, StatisticHelperSpecSchema as yt, compositionSliceKey as z, SOURCE_DEVICE_TYPES as zn, ROLLING_SPANS as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -280,6 +280,8 @@ export { declareDeviceIdentifiers } from './device/declare-identifiers.js';
|
|
|
280
280
|
export type { DeclareIdentifiersDeps, DeclareIdentifiersOptions, DeclareIdentifiersOutcome, DeclareIdentifiersResult, IdentifiersWriter, SetIdentifiersInput, } from './device/declare-identifiers.js';
|
|
281
281
|
export { IdentityCandidateDeviceSchema, IdentityCandidatePairSchema, IdentityCandidatesSchema, IdentityConfidenceSchema, IdentityMatchedKeySchema, } from './device/device-identity-candidates.js';
|
|
282
282
|
export type { IdentityCandidateDevice, IdentityCandidatePair, IdentityCandidates, IdentityConfidence, IdentityMatchedKey, } from './device/device-identity-candidates.js';
|
|
283
|
+
export { IDENTITY_LINK_KIND_NAMES, IDENTITY_LINK_KINDS, IdentityLinkBodySchema, IdentityLinkDecisionRefusalSchema, IdentityLinkDecisionSchema, IdentityLinkEventPayloadSchema, IdentityLinkKindSchema, IdentityLinkLostReasonSchema, IdentityLinkOriginSchema, IdentityLinkSchema, IdentityLinkSideSchema, IdentityLinkStateSchema, IdentityLinksReadSchema, identityLinkId, identityLinkSidesRefusal, } from './device/identity-links.js';
|
|
284
|
+
export type { IdentityLink, IdentityLinkBody, IdentityLinkContribution, IdentityLinkDecision, IdentityLinkDecisionRefusal, IdentityLinkEventPayload, IdentityLinkKind, IdentityLinkKindSpec, IdentityLinkLostReason, IdentityLinkOrigin, IdentityLinkRef, IdentityLinkSide, IdentityLinkSidesRefusal, IdentityLinkState, IdentityLinksRead, } from './device/identity-links.js';
|
|
283
285
|
export type { ChildLayout, ChildLayoutEntry, CreateDeviceSpec, DeviceCapDisplayOverride, DeviceDiscovery, DeviceDisplayOverride, DeviceManualCreation, DeviceMeta, DiscoveredDevice, InitialDeviceMeta, RoleDisplayDefault, SavedDevice, } from './device/device-management.js';
|
|
284
286
|
export type { DeviceProfile, DeviceProfileDefaults, DeviceProfileMatch, PipelinePhaseMode, } from './device/device-profile.js';
|
|
285
287
|
export { BATTERY_DEVICE_PROFILE, DEVICE_PROFILES, deviceMatchesProfile, resolveDeviceProfile, } from './device/device-profile.js';
|
|
@@ -468,9 +470,10 @@ export { evaluateZoneRules, type ZoneRuleEvalResult } from './utils/zone-rule-ev
|
|
|
468
470
|
export { bindAddonActions } from './helpers/bind-addon-actions.js';
|
|
469
471
|
export { isUsableTimeZone, processTimeZoneOr, usableProcessTimeZone, type ProcessTimeZoneProbe, } from './helpers/process-time-zone.js';
|
|
470
472
|
export type { DeviceOption, InferenceDeviceDescriptor, RuntimeId, } from './inference/runtime-capabilities.js';
|
|
473
|
+
export type { NvidiaProbe } from './inference/runtime-capabilities.js';
|
|
471
474
|
export type { CoralUnitAddress } from './inference/coral-units.js';
|
|
472
475
|
export { coralUsableUnits, edgetpuDelegateDevice } from './inference/coral-units.js';
|
|
473
|
-
export { defaultDeviceFor, enumerateInferenceDevices, modelFormatForRuntime, runtimeDevices, scoreRuntimes, supportedRuntimes, } from './inference/runtime-capabilities.js';
|
|
476
|
+
export { defaultDeviceFor, enumerateInferenceDevices, modelFormatForRuntime, runtimeDevices, scoreRuntimes, describeNvidia, supportedRuntimes, } from './inference/runtime-capabilities.js';
|
|
474
477
|
export type { SiteZone } from './device/site-zone.js';
|
|
475
478
|
export { SiteZoneSchema, siteZoneKey } from './device/site-zone.js';
|
|
476
479
|
export type { ServerNameInfo } from './system/server-name.js';
|
|
@@ -493,5 +496,5 @@ export * from './migrations/api/migration-api-ports.js';
|
|
|
493
496
|
export { normalizeSearchText, searchRank, type SearchRankFields } from './search/search-match.js';
|
|
494
497
|
export { DEFAULT_COMMAND_HOLD_MS, MAX_COMMAND_HOLD_MS, resolveCommandHold, } from './device/command-hold.js';
|
|
495
498
|
export { ONE_SHOT_HOLD_MS } from './device/cap-vocabulary/hold-limits.js';
|
|
496
|
-
export { COMMAND_BURST_OFFSETS_MS, effectiveRefreshIntervalMs, MIN_STATE_REFRESH_INTERVAL_MS, PUSH_CONFIRM_WINDOW_MS, type StateRefreshPolicy, StateRefreshPolicySchema, type StateRefreshPush, StateRefreshPushSchema, type StateRefreshReason, StateRefreshReasonSchema, } from './device/state-refresh.js';
|
|
499
|
+
export { COMMAND_BURST_OFFSETS_MS, COMMAND_BURST_STEP_MS, COMMAND_BURST_TAIL_MS, commandBurstOffsets, effectiveRefreshIntervalMs, MIN_STATE_REFRESH_INTERVAL_MS, PUSH_CONFIRM_WINDOW_MS, type StateRefreshPolicy, StateRefreshPolicySchema, type StateRefreshPush, StateRefreshPushSchema, type StateRefreshReason, StateRefreshReasonSchema, } from './device/state-refresh.js';
|
|
497
500
|
export type { CommandHoldOption, CommandHoldOptions, NativeCapOptions, ResolvedCommandHold, } from './device/command-hold.js';
|