@camstack/types 1.2.586 → 1.2.587

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/addon.d.ts +2 -0
  3. package/dist/addon.js +21 -5
  4. package/dist/addon.mjs +18 -6
  5. package/dist/capabilities/camera-grid-layout.cap.d.ts +3 -5
  6. package/dist/capabilities/cap-method-absent.d.ts +19 -0
  7. package/dist/capabilities/device-manager.cap.d.ts +422 -0
  8. package/dist/capabilities/hero-layout.cap.d.ts +2 -2
  9. package/dist/capabilities/index.d.ts +9 -5
  10. package/dist/capabilities/network-link.cap.d.ts +10 -0
  11. package/dist/capabilities/power-source.cap.d.ts +20 -0
  12. package/dist/capabilities/recording-export.cap.d.ts +1 -0
  13. package/dist/capabilities/siren-duration.d.ts +45 -7
  14. package/dist/capabilities/siren.cap.d.ts +45 -2
  15. package/dist/capabilities/switch-settable.d.ts +15 -0
  16. package/dist/capabilities/switch.cap.d.ts +71 -0
  17. package/dist/capabilities/terminal-session.cap.d.ts +3 -60
  18. package/dist/capabilities/videoclips.cap.d.ts +3 -0
  19. package/dist/capabilities/workload.cap.d.ts +655 -0
  20. package/dist/client.js +58 -5
  21. package/dist/client.mjs +58 -5
  22. package/dist/{composed-stable-id-RvQIEpqg.mjs → composed-stable-id-BBL71oUQ.mjs} +20 -0
  23. package/dist/{composed-stable-id-C3NfRTj8.js → composed-stable-id-CVbyajE5.js} +20 -0
  24. package/dist/composition/engine-hosted-blocks.d.ts +131 -0
  25. package/dist/composition/helpers/index.d.ts +1 -1
  26. package/dist/composition/helpers/spec.d.ts +56 -2
  27. package/dist/composition/index.d.ts +1 -0
  28. package/dist/device/base-device.d.ts +29 -0
  29. package/dist/device/cap-vocabulary/declaration.d.ts +12 -1
  30. package/dist/device/cap-vocabulary/index.d.ts +4 -4
  31. package/dist/device/cap-vocabulary/resolve.d.ts +47 -1
  32. package/dist/device/cap-vocabulary/types.d.ts +26 -1
  33. package/dist/device/declare-identifiers.d.ts +58 -0
  34. package/dist/device/device-control-resolution.d.ts +1 -1
  35. package/dist/device/device-icon.d.ts +7 -0
  36. package/dist/device/device-identifiers.d.ts +190 -0
  37. package/dist/device/device-management.d.ts +10 -0
  38. package/dist/device/device-type.d.ts +22 -2
  39. package/dist/device/hero/build-hero-model.d.ts +15 -0
  40. package/dist/device/hero/hero-fragment.d.ts +11 -0
  41. package/dist/device/hero/hero-layout.d.ts +1 -0
  42. package/dist/device/hero/hero-look.d.ts +12 -0
  43. package/dist/device/hero/hero-model.d.ts +4 -4
  44. package/dist/device/hero/hero-scene.d.ts +7 -0
  45. package/dist/device/index.d.ts +5 -1
  46. package/dist/enums/event-category.d.ts +8 -0
  47. package/dist/enums.js +1 -1
  48. package/dist/enums.mjs +1 -1
  49. package/dist/{event-category-d9kiqCqC.js → event-category-CE_VCE2G.js} +8 -0
  50. package/dist/{event-category-Dhcd0TRH.mjs → event-category-Hwx_JSCU.mjs} +8 -0
  51. package/dist/generated/addon-api.d.ts +92 -14
  52. package/dist/generated/addon-cap-facts.d.ts +1 -1
  53. package/dist/generated/cap-status-types.d.ts +3 -1
  54. package/dist/generated/cap-vocabulary.d.ts +1 -1
  55. package/dist/generated/capability-router-map.d.ts +5 -2
  56. package/dist/generated/collection-array-methods.d.ts +1 -1
  57. package/dist/generated/customize-catalog.d.ts +1 -1
  58. package/dist/generated/device-local-state.d.ts +3 -0
  59. package/dist/generated/device-proxy.d.ts +4 -1
  60. package/dist/generated/device-scoped-caps.d.ts +1 -1
  61. package/dist/generated/history-catalog.d.ts +2 -2
  62. package/dist/generated/method-access-map.d.ts +1 -1
  63. package/dist/generated/method-device-selectors.d.ts +2 -2
  64. package/dist/generated/runtime-state-durability.d.ts +1 -1
  65. package/dist/generated/system-proxy.d.ts +1 -1
  66. package/dist/{implemented-methods-C7ScGvEz.js → implemented-methods-ChtdIofW.js} +128 -1
  67. package/dist/{implemented-methods-C5FMXLGP.mjs → implemented-methods-u7ddjc-_.mjs} +57 -2
  68. package/dist/index.d.ts +7 -3
  69. package/dist/index.js +1979 -429
  70. package/dist/index.mjs +1923 -428
  71. package/dist/node.js +2 -2
  72. package/dist/node.mjs +2 -2
  73. package/dist/{sleep-DwRtgB2i.js → sleep-CsZJsb8n.js} +692 -35
  74. package/dist/{sleep-Ch7Q7UtE.mjs → sleep-D6Pih0Qt.mjs} +669 -36
  75. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.587] - 2026-11-17
11
+
12
+ ### Added
13
+
14
+ - New workload device type (roles vm, app-container, lxc, app, host) with one workload capability: state, start/stop/restart/pause/resume/force stop, resources with history, and started/stopped/crashed/recovered events
15
+ - PoE ports: a switch device can carry the poe-port role (worded Power on / Power off), and network-link reports a port's link speed and whether the link is up
16
+ - Siren plays mode: a siren trigger takes a duration in seconds or a number of plays (never both), getOptions declares the plays a siren supports, the status reports a plays activation with an estimated end, and a rule can sound a siren N times
17
+
18
+ ### Changed
19
+
20
+ - A workload host that answers again after going down is worded 'Back online'
21
+ - The workload device type is drawn by its own card kind instead of the placeholder
22
+ - A camera grid or Terminal camera block's device is served by its engine on the composer's row; the engine alone reports its status and feature probe (engine-hosted blocks).
23
+ - network-link's link speed is speedKbps, the bitrate quantity in kbit/s, shown in the system's bitrate unit
24
+ - A host that comes back after going down raises a "Came online" event (the workload recovered event, host wording).
25
+ - A switch can say it only reports its state and can power-cycle natively (switch getOptions / powerCycle); the hero then hides on/off.
26
+ - The workload capability reports memory as a percentage (memoryPercent) for a source that has no byte count, recorded in its history
27
+ - A rule can trigger on a number grouped under an object in a device's status (a workload's CPU, memory or temperature above or below a threshold)
28
+ - A workload restart needs the same permission as start and stop (it was admin only); force stop stays admin
29
+ - A command whose argument is a list the device answers is not offered when the device answered an empty list (a siren that counts no plays is not offered 'sound N times'); a list that could not be read keeps it offered
30
+ - A switch that only reports its state (getOptions supportsSetState: false) is offered no on/off/toggle in automations (new offeredWhen action gate), and a forced restart whose switch options could not be read is refused as switch-options-unreadable.
31
+ - A device powered by a switch that only reports offers no power on / off: power-source getStatus answers switchSettable, and powerSource.on / .off are gated on it (D1058)
32
+ - Devices carry typed identifiers (MAC, serial, vendor id, machine UUID, hostname, IP) declared by their provider, separate from the editable metadata.
33
+ - setIdentifiers keeps the stored value of every kind the provider lists as unread (a failed read), and an unchanged value keeps its first readAt, so a re-declaration on every boot writes and emits nothing.
34
+ - A provider declaration that read some identifier kinds and found nothing now removes those stale kinds; only a declaration where every kind is unread is skipped
35
+ - videoclips.dialClipStream accepts the operator wake, and clip refusals gain wake-timeout for a woken camera that did not come up in time.
36
+
10
37
  ## [1.2.586] - 2026-11-16
11
38
 
12
39
  ### Added
package/dist/addon.d.ts CHANGED
@@ -37,6 +37,7 @@ export type { PipelineStepInputOutput } from './capabilities/pipeline-step-input
37
37
  export { defineRecordKinds } from './records/record-kind.js';
38
38
  export { addonPagesSourceCapability } from './capabilities/addon-pages-source.cap.js';
39
39
  export { CALLER_STAMPED_CAPABILITIES, withoutCallerStamp, } from './capabilities/caller-stamp.js';
40
+ export { CAP_METHOD_NOT_IMPLEMENTED, isCapMethodAbsent } from './capabilities/cap-method-absent.js';
40
41
  export { deviceOpsCapability } from './capabilities/device-ops.cap.js';
41
42
  export type { IViewerUiProvider } from './capabilities/viewer-ui.cap.js';
42
43
  export { viewerUiCapability } from './capabilities/viewer-ui.cap.js';
@@ -69,6 +70,7 @@ export { errMsg } from './utils/err-msg.js';
69
70
  export { maskUrlCredentials } from './utils/mask-url.js';
70
71
  export { asJsonObject, asString, parseJsonUnknown } from './utils/json-safe.js';
71
72
  export { sleep } from './utils/sleep.js';
73
+ export { SWITCH_SETTABLE_GATE, switchRefusesSetState } from './capabilities/switch-settable.js';
72
74
  export * from './keychain/index.js';
73
75
  export * from './records/index.js';
74
76
  export { createDebugEmitter } from './logging/debug-watch.js';
package/dist/addon.js CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-DwRtgB2i.js");
3
- const require_event_category = require("./event-category-d9kiqCqC.js");
4
- const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
2
+ const require_sleep = require("./sleep-CsZJsb8n.js");
3
+ const require_event_category = require("./event-category-CE_VCE2G.js");
4
+ const require_composed_stable_id = require("./composed-stable-id-CVbyajE5.js");
5
5
  //#region src/generated/cap-input-defaults.ts
6
6
  /**
7
7
  * AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
@@ -458,7 +458,7 @@ function isCollectionArrayMethodName(capName, method) {
458
458
  * Per capability, the methods declared `optionalMethod` — the ones whose
459
459
  * ABSENCE on a provider is a fact about that provider, not a bug.
460
460
  *
461
- * Coverage: 12 caps, 49 methods.
461
+ * Coverage: 13 caps, 57 methods.
462
462
  */
463
463
  var PROVIDER_OPTIONAL_METHODS = Object.freeze({
464
464
  "climate-control": [
@@ -518,13 +518,25 @@ var PROVIDER_OPTIONAL_METHODS = Object.freeze({
518
518
  "volumeDown",
519
519
  "volumeUp"
520
520
  ],
521
- "switch": ["toggle"],
521
+ "switch": [
522
+ "getOptions",
523
+ "powerCycle",
524
+ "toggle"
525
+ ],
522
526
  "valve": ["setPosition"],
523
527
  "videoclips": [
524
528
  "dialClipStream",
525
529
  "getPlaybackOptions",
526
530
  "offerClipBytes",
527
531
  "readClipBytes"
532
+ ],
533
+ "workload": [
534
+ "forceStop",
535
+ "pause",
536
+ "restart",
537
+ "resume",
538
+ "start",
539
+ "stop"
528
540
  ]
529
541
  });
530
542
  /**
@@ -550,6 +562,7 @@ exports.CALLER_STAMPED_CAPABILITIES = require_sleep.CALLER_STAMPED_CAPABILITIES;
550
562
  exports.CALLER_USERNAME_HEADER = require_sleep.CALLER_USERNAME_HEADER;
551
563
  exports.CAP_ADVANCE_FIELDS = require_sleep.CAP_ADVANCE_FIELDS;
552
564
  exports.CAP_INPUT_DEFAULTS = CAP_INPUT_DEFAULTS;
565
+ exports.CAP_METHOD_NOT_IMPLEMENTED = require_sleep.CAP_METHOD_NOT_IMPLEMENTED;
553
566
  exports.CAP_METHOD_TIMEOUTS_MS = require_sleep.CAP_METHOD_TIMEOUTS_MS;
554
567
  exports.CAP_STATE_LEAVES = require_sleep.CAP_STATE_LEAVES;
555
568
  exports.COLLECTION_ARRAY_METHODS = COLLECTION_ARRAY_METHODS;
@@ -616,6 +629,7 @@ exports.RuleFireOriginSchema = require_sleep.RuleFireOriginSchema;
616
629
  exports.SCOPED_SETTINGS_SCOPES = require_sleep.SCOPED_SETTINGS_SCOPES;
617
630
  exports.SECRET_CLEAR = require_sleep.SECRET_CLEAR;
618
631
  exports.SECRET_REF_SCHEME = require_sleep.SECRET_REF_SCHEME;
632
+ exports.SWITCH_SETTABLE_GATE = require_sleep.SWITCH_SETTABLE_GATE;
619
633
  exports.StoredRecordKindDeclarationSchema = require_sleep.StoredRecordKindDeclarationSchema;
620
634
  exports.TransactRefusedError = require_sleep.TransactRefusedError;
621
635
  exports.UnindexedFilterError = require_sleep.UnindexedFilterError;
@@ -657,6 +671,7 @@ exports.forgetKnownSecret = require_sleep.forgetKnownSecret;
657
671
  exports.formatSecretScope = require_sleep.formatSecretScope;
658
672
  exports.globalSecretScope = require_sleep.globalSecretScope;
659
673
  exports.hfModelUrl = require_sleep.hfModelUrl;
674
+ exports.isCapMethodAbsent = require_sleep.isCapMethodAbsent;
660
675
  exports.isCollectionArrayMethodName = isCollectionArrayMethodName;
661
676
  exports.isCommand = require_sleep.isCommand;
662
677
  exports.isDeviceScopedCap = require_sleep.isDeviceScopedCap;
@@ -697,6 +712,7 @@ exports.secretArrayPrefixes = require_sleep.secretArrayPrefixes;
697
712
  exports.secretViewsOf = require_sleep.secretViewsOf;
698
713
  exports.shortSecretRefHash = require_sleep.shortSecretRefHash;
699
714
  exports.sleep = require_sleep.sleep;
715
+ exports.switchRefusesSetState = require_sleep.switchRefusesSetState;
700
716
  exports.toSecretFieldView = require_sleep.toSecretFieldView;
701
717
  exports.viewerUiCapability = require_sleep.viewerUiCapability;
702
718
  exports.withCapInputDefaults = withCapInputDefaults;
package/dist/addon.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as DEVICE_CHILDREN_BATCH_MAX, $r as recordArrayItemPath, A as CAP_ADVANCE_FIELDS, Ai as FilterRequiredError, An as scrubKnownSecrets, Bi as RecordsError, Bn as DisposerChain, Ci as normalizeSecretOwner, Cn as REVALIDATE_AFTER_MS, Cr as BaseAddon, Dn as forgetKnownSecret, En as clearKnownSecrets, Er as normalizeAddonInitResult, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RECORDS_ERROR_CODES, Fn as PEER_BYTES_TICKET_TTL_MS, G as readNodePin, Gi as asRecordsError, Gn as RecordIndexSchema, H as commandOrigin, Hi as TransactRefusedError, Hn as entryBody, I as customAction, Ii as RecordNotFoundError, Ir as SCOPED_SETTINGS_SCOPES, J as PipelineRunResultBridge, Jn as RecordRetentionSchema, Jr as secretViewsOf, Ki as recordsErrorFromMessage, Kn as RecordKindDeclarationSchema, L as defineCustomActions, Li as RecordSecretUnavailableError, Ln as CALLER_USERNAME_HEADER, Lr as nodeIdOfScopedKey, Mi as InvalidRecordError, Mn as PEER_BYTES_CHUNK_BYTES, N as CAP_STATE_LEAVES, Ni as NoCallerError, Nn as PEER_BYTES_MAX_OUTSTANDING, O as HF_REPO, Oa as AddonMigrationsBlockedError, Oi as BatchTooLargeError, On as knownSecretCount, P as CALLER_STAMPED_CAPABILITIES, Pi as PlaintextSecretError, Pn as PEER_BYTES_STALL_MS, Q as deviceOpsCapability, Qn as defineRecordKinds, Qr as parseSecretPath, R as describeCustomActions, Ri as RecordTooLargeError, Rn as DATAPLANE_SECRET_HEADER, Rr as resolveDeviceSettings, Si as isSecretRef, Sn as resolveSecretViewsIn, T as isCommand, Tn as MIN_SCRUBBED_LENGTH, U as nodePin, Ui as UnindexedFilterError, Un as EntryDescriptorSchema, Vi as RevConflictError, Vn as defineEntryKind, W as readCommandOrigin, Wi as UnknownRecordKindError, Wn as RecordFieldPathSchema, X as MIGRATION_API_VERSION, Xn as assertValidDeclaration, Xr as collectSecretLeaves, Y as PipelineStepInputSchema, Yn as StoredRecordKindDeclarationSchema, Yr as REMOVE_LEAF, Zn as declarationsOf, Zr as mapSecretLeaves, _a as isSecretMarker, _i as SECRET_REF_SCHEME, _n as RuleFireOriginSchema, ai as RECORD_CLASSES, ba as toSecretFieldView, bi as formatSecretScope, bn as createRecordsAccess, c as asString, ci as RECORD_DELETE_BATCH, d as parseJsonUnknown, di as RECORD_MAX_INDEXES, ei as recordSecretCollection, er as collectZodSecretPaths, et as adminUiCapability, f as hfModelUrl, fi as RECORD_MAX_INDEX_FIELDS, g as createDeviceProxy, ga as isSecretFieldView, gi as RECORD_SWEEP_INTERVAL_MS, gn as OnBehalfSourceSchema, h as isDeviceScopedCap, ha as isSecretClear, hi as RECORD_SETTINGS_MAX_ROWS, hn as OnBehalfSchema, ht as ReadinessTimeoutError, ii as RECORD_BATCH_MAX_BYTES, j as CAP_METHOD_TIMEOUTS_MS, ji as ForeignSecretMarkerError, jn as shortSecretRefHash, ka as findMigrationsBlocked, ki as DeclarationRefusedError, kn as registerKnownSecret, li as RECORD_ID_MAX_LENGTH, lr as expandCapMethods, m as DEVICE_SCOPED_CAPS, ma as classifySecretWrite, mi as RECORD_SECRET_COLLECTION_PREFIX, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, na as createEvent, ni as secretArrayPrefixes, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DATABASES, p as BOOT_RECOVERY_BACKOFF_MS, pa as SECRET_CLEAR, pi as RECORD_QUERY_MAX, pt as MODEL_FORMATS, q as viewerUiCapability, qn as RecordKindNameSchema, r as maskUrlCredentials, ra as emitReadiness, ri as RECORD_BATCH_MAX, si as RECORD_DEFAULT_MAX_DATA_BYTES, t as sleep, ti as recordSecretRef, tr as isZodSecret, ui as RECORD_MAX_DATA_BYTES, v as addonSliceHandleApi, va as isSecretMarkerLike, vi as arrayItemFieldPath, vn as ruleFireOfClaim, vr as ErrorI18nPayloadSchema, vt as scopeKey, wi as parseSecretRef, wn as createSecretsAccess, xi as globalSecretScope, xn as assertTransactScope, xr as readErrorI18n, y as createEventBusSliceSource, ya as makeSecretMarker, yi as buildSecretRef, yn as makeInMemoryRecords, zi as RecordUniqueViolationError, zr as resolvedValues } from "./sleep-Ch7Q7UtE.mjs";
2
- import { t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
3
- import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-RvQIEpqg.mjs";
1
+ import { $ as PipelineStepInputSchema, $n as StoredRecordKindDeclarationSchema, $r as REMOVE_LEAF, A as CAP_ADVANCE_FIELDS, An as clearKnownSecrets, Ar as normalizeAddonInitResult, At as createDebugEmitter, B as describeCustomActions, Bi as RecordNotFoundError, Br as SCOPED_SETTINGS_SCOPES, Ca as makeSecretMarker, Ci as buildSecretRef, Cn as makeInMemoryRecords, Di as normalizeSecretOwner, Dn as REVALIDATE_AFTER_MS, Dr as BaseAddon, Ei as isSecretRef, En as resolveSecretViewsIn, F as isCapMethodAbsent, Fi as ForeignSecretMarkerError, Fn as shortSecretRefHash, G as nodePin, Gi as RevConflictError, Gn as defineEntryKind, Hi as RecordTooLargeError, Hn as DATAPLANE_SECRET_HEADER, Hr as resolveDeviceSettings, I as CALLER_STAMPED_CAPABILITIES, Ii as InvalidRecordError, In as PEER_BYTES_CHUNK_BYTES, Ji as UnknownRecordKindError, Jn as RecordFieldPathSchema, K as readCommandOrigin, Ki as TransactRefusedError, Kn as entryBody, L as withoutCallerStamp, Li as NoCallerError, Ln as PEER_BYTES_MAX_OUTSTANDING, Ma as AddonMigrationsBlockedError, Mi as BatchTooLargeError, Mn as knownSecretCount, N as CAP_STATE_LEAVES, Na as findMigrationsBlocked, Ni as DeclarationRefusedError, Nn as registerKnownSecret, O as HF_REPO, Oi as parseSecretRef, On as createSecretsAccess, P as CAP_METHOD_NOT_IMPLEMENTED, Pi as FilterRequiredError, Pn as scrubKnownSecrets, Q as PipelineRunResultBridge, Qn as RecordRetentionSchema, Qr as secretViewsOf, R as customAction, Ri as PlaintextSecretError, Rn as PEER_BYTES_STALL_MS, Sa as isSecretMarkerLike, Si as arrayItemFieldPath, Sn as ruleFireOfClaim, Sr as ErrorI18nPayloadSchema, St as scopeKey, T as isCommand, Ti as globalSecretScope, Tn as assertTransactScope, Tr as readErrorI18n, Ui as RecordUniqueViolationError, Ur as resolvedValues, Vi as RecordSecretUnavailableError, Vn as CALLER_USERNAME_HEADER, Vr as nodeIdOfScopedKey, W as commandOrigin, Wi as RecordsError, Wn as DisposerChain, X as SWITCH_SETTABLE_GATE, Xi as recordsErrorFromMessage, Xn as RecordKindDeclarationSchema, Y as viewerUiCapability, Yi as asRecordsError, Yn as RecordIndexSchema, Z as switchRefusesSetState, Zn as RecordKindNameSchema, _a as SECRET_CLEAR, _i as RECORD_QUERY_MAX, _t as MODEL_FORMATS, ai as recordSecretRef, ar as isZodSecret, ba as isSecretFieldView, bi as RECORD_SWEEP_INTERVAL_MS, bn as OnBehalfSourceSchema, c as asString, ci as RECORD_BATCH_MAX_BYTES, d as parseJsonUnknown, di as RECORD_DEFAULT_MAX_DATA_BYTES, ei as collectSecretLeaves, er as assertValidDeclaration, et as MIGRATION_API_VERSION, f as hfModelUrl, fi as RECORD_DELETE_BATCH, g as createDeviceProxy, gi as RECORD_MAX_INDEX_FIELDS, h as isDeviceScopedCap, hi as RECORD_MAX_INDEXES, ii as recordSecretCollection, ir as collectZodSecretPaths, it as adminUiCapability, j as CAP_METHOD_TIMEOUTS_MS, jn as forgetKnownSecret, kn as MIN_SCRUBBED_LENGTH, li as RECORD_CLASSES, m as DEVICE_SCOPED_CAPS, mi as RECORD_MAX_DATA_BYTES, ni as parseSecretPath, nr as defineRecordKinds, nt as deviceOpsCapability, o as asJsonObject, oa as createEvent, oi as secretArrayPrefixes, ot as addonPagesSourceCapability, p as BOOT_RECOVERY_BACKOFF_MS, pi as RECORD_ID_MAX_LENGTH, pr as expandCapMethods, q as readNodePin, qi as UnindexedFilterError, qn as EntryDescriptorSchema, r as maskUrlCredentials, ri as recordArrayItemPath, rt as DEVICE_CHILDREN_BATCH_MAX, sa as emitReadiness, si as RECORD_BATCH_MAX, t as sleep, ti as mapSecretLeaves, tr as declarationsOf, ui as RECORD_DATABASES, v as addonSliceHandleApi, va as classifySecretWrite, vi as RECORD_SECRET_COLLECTION_PREFIX, vn as CommandOriginClaimSchema, vt as ReadinessRegistry, wa as toSecretFieldView, wi as formatSecretScope, wn as createRecordsAccess, xa as isSecretMarker, xi as SECRET_REF_SCHEME, xn as RuleFireOriginSchema, y as createEventBusSliceSource, ya as isSecretClear, yi as RECORD_SETTINGS_MAX_ROWS, yn as OnBehalfSchema, yt as ReadinessTimeoutError, z as defineCustomActions, zi as RECORDS_ERROR_CODES, zn as PEER_BYTES_TICKET_TTL_MS } from "./sleep-D6Pih0Qt.mjs";
2
+ import { t as EventCategory } from "./event-category-Hwx_JSCU.mjs";
3
+ import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-BBL71oUQ.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
5
5
  /**
6
6
  * AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
@@ -457,7 +457,7 @@ function isCollectionArrayMethodName(capName, method) {
457
457
  * Per capability, the methods declared `optionalMethod` — the ones whose
458
458
  * ABSENCE on a provider is a fact about that provider, not a bug.
459
459
  *
460
- * Coverage: 12 caps, 49 methods.
460
+ * Coverage: 13 caps, 57 methods.
461
461
  */
462
462
  var PROVIDER_OPTIONAL_METHODS = Object.freeze({
463
463
  "climate-control": [
@@ -517,13 +517,25 @@ var PROVIDER_OPTIONAL_METHODS = Object.freeze({
517
517
  "volumeDown",
518
518
  "volumeUp"
519
519
  ],
520
- "switch": ["toggle"],
520
+ "switch": [
521
+ "getOptions",
522
+ "powerCycle",
523
+ "toggle"
524
+ ],
521
525
  "valve": ["setPosition"],
522
526
  "videoclips": [
523
527
  "dialClipStream",
524
528
  "getPlaybackOptions",
525
529
  "offerClipBytes",
526
530
  "readClipBytes"
531
+ ],
532
+ "workload": [
533
+ "forceStop",
534
+ "pause",
535
+ "restart",
536
+ "resume",
537
+ "start",
538
+ "stop"
527
539
  ]
528
540
  });
529
541
  /**
@@ -541,4 +553,4 @@ function isProviderOptionalMethodName(capName, method) {
541
553
  return methods !== void 0 && methods.includes(method);
542
554
  }
543
555
  //#endregion
544
- export { AddonMigrationsBlockedError, BOOT_RECOVERY_BACKOFF_MS, BaseAddon, BatchTooLargeError, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAP_ADVANCE_FIELDS, CAP_INPUT_DEFAULTS, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_LEAVES, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_SCOPED_CAPS, DeclarationRefusedError, DeviceType, DisposerChain, EntryDescriptorSchema, ErrorI18nPayloadSchema, EventCategory, FilterRequiredError, ForeignSecretMarkerError, HF_REPO, InvalidRecordError, MIGRATION_API_VERSION, MIN_SCRUBBED_LENGTH, MODEL_FORMATS, NoCallerError, OnBehalfSchema, OnBehalfSourceSchema, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PROVIDER_OPTIONAL_METHODS, PipelineRunResultBridge, PipelineStepInputSchema, PlaintextSecretError, RECORDS_ERROR_CODES, RECORD_BATCH_MAX, RECORD_BATCH_MAX_BYTES, RECORD_CLASSES, RECORD_DATABASES, RECORD_DEFAULT_MAX_DATA_BYTES, RECORD_DELETE_BATCH, RECORD_ID_MAX_LENGTH, RECORD_MAX_DATA_BYTES, RECORD_MAX_INDEXES, RECORD_MAX_INDEX_FIELDS, RECORD_QUERY_MAX, RECORD_SECRET_COLLECTION_PREFIX, RECORD_SETTINGS_MAX_ROWS, RECORD_SWEEP_INTERVAL_MS, REMOVE_LEAF, REVALIDATE_AFTER_MS, ReadinessRegistry, ReadinessTimeoutError, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordRetentionSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordUniqueViolationError, RecordsError, RevConflictError, RuleFireOriginSchema, SCOPED_SETTINGS_SCOPES, SECRET_CLEAR, SECRET_REF_SCHEME, StoredRecordKindDeclarationSchema, TransactRefusedError, UnindexedFilterError, UnknownRecordKindError, addonPagesSourceCapability, addonSliceHandleApi, adminUiCapability, arrayItemFieldPath, asJsonObject, asRecordsError, asString, assertTransactScope, assertValidDeclaration, buildSecretRef, classifySecretWrite, clearKnownSecrets, collectSecretLeaves, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, customAction, declarationsOf, defineCustomActions, defineEntryKind, defineRecordKinds, describeCustomActions, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, findMigrationsBlocked, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCollectionArrayMethodName, isCommand, isDeviceScopedCap, isProviderOptionalMethodName, isSecretClear, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isZodSecret, knownSecretCount, makeInMemoryRecords, makeSecretMarker, mapSecretLeaves, maskUrlCredentials, nodeIdOfScopedKey, nodePin, normalizeAddonInitResult, normalizeSecretOwner, parseJsonUnknown, parseSecretPath, parseSecretRef, readCommandOrigin, readErrorI18n, readNodePin, recordArrayItemPath, recordSecretCollection, recordSecretRef, recordsErrorFromMessage, registerKnownSecret, resolveDeviceSettings, resolveSecretViewsIn, resolvedValues, ruleFireOfClaim, scopeKey, scrubKnownSecrets, secretArrayPrefixes, secretViewsOf, shortSecretRefHash, sleep, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
556
+ export { AddonMigrationsBlockedError, BOOT_RECOVERY_BACKOFF_MS, BaseAddon, BatchTooLargeError, CALLER_STAMPED_CAPABILITIES, CALLER_USERNAME_HEADER, CAP_ADVANCE_FIELDS, CAP_INPUT_DEFAULTS, CAP_METHOD_NOT_IMPLEMENTED, CAP_METHOD_TIMEOUTS_MS, CAP_STATE_LEAVES, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_SCOPED_CAPS, DeclarationRefusedError, DeviceType, DisposerChain, EntryDescriptorSchema, ErrorI18nPayloadSchema, EventCategory, FilterRequiredError, ForeignSecretMarkerError, HF_REPO, InvalidRecordError, MIGRATION_API_VERSION, MIN_SCRUBBED_LENGTH, MODEL_FORMATS, NoCallerError, OnBehalfSchema, OnBehalfSourceSchema, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PROVIDER_OPTIONAL_METHODS, PipelineRunResultBridge, PipelineStepInputSchema, PlaintextSecretError, RECORDS_ERROR_CODES, RECORD_BATCH_MAX, RECORD_BATCH_MAX_BYTES, RECORD_CLASSES, RECORD_DATABASES, RECORD_DEFAULT_MAX_DATA_BYTES, RECORD_DELETE_BATCH, RECORD_ID_MAX_LENGTH, RECORD_MAX_DATA_BYTES, RECORD_MAX_INDEXES, RECORD_MAX_INDEX_FIELDS, RECORD_QUERY_MAX, RECORD_SECRET_COLLECTION_PREFIX, RECORD_SETTINGS_MAX_ROWS, RECORD_SWEEP_INTERVAL_MS, REMOVE_LEAF, REVALIDATE_AFTER_MS, ReadinessRegistry, ReadinessTimeoutError, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordRetentionSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordUniqueViolationError, RecordsError, RevConflictError, RuleFireOriginSchema, SCOPED_SETTINGS_SCOPES, SECRET_CLEAR, SECRET_REF_SCHEME, SWITCH_SETTABLE_GATE, StoredRecordKindDeclarationSchema, TransactRefusedError, UnindexedFilterError, UnknownRecordKindError, addonPagesSourceCapability, addonSliceHandleApi, adminUiCapability, arrayItemFieldPath, asJsonObject, asRecordsError, asString, assertTransactScope, assertValidDeclaration, buildSecretRef, classifySecretWrite, clearKnownSecrets, collectSecretLeaves, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, customAction, declarationsOf, defineCustomActions, defineEntryKind, defineRecordKinds, describeCustomActions, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, findMigrationsBlocked, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCapMethodAbsent, isCollectionArrayMethodName, isCommand, isDeviceScopedCap, isProviderOptionalMethodName, isSecretClear, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isZodSecret, knownSecretCount, makeInMemoryRecords, makeSecretMarker, mapSecretLeaves, maskUrlCredentials, nodeIdOfScopedKey, nodePin, normalizeAddonInitResult, normalizeSecretOwner, parseJsonUnknown, parseSecretPath, parseSecretRef, readCommandOrigin, readErrorI18n, readNodePin, recordArrayItemPath, recordSecretCollection, recordSecretRef, recordsErrorFromMessage, registerKnownSecret, resolveDeviceSettings, resolveSecretViewsIn, resolvedValues, ruleFireOfClaim, scopeKey, scrubKnownSecrets, secretArrayPrefixes, secretViewsOf, shortSecretRefHash, sleep, switchRefusesSetState, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
@@ -93,7 +93,7 @@ declare const GridProfileOfferSchema: z.ZodObject<{
93
93
  published: z.ZodBoolean;
94
94
  }, z.core.$strip>;
95
95
  export declare const GridLayoutViewSchema: z.ZodObject<{
96
- instanceId: z.ZodString;
96
+ blockId: z.ZodString;
97
97
  deviceId: z.ZodNumber;
98
98
  name: z.ZodString;
99
99
  fps: z.ZodNumber;
@@ -130,7 +130,6 @@ export type GridProfileOffer = z.infer<typeof GridProfileOfferSchema>;
130
130
  export type GridLayoutView = z.infer<typeof GridLayoutViewSchema>;
131
131
  export declare const GridLayoutPatchSchema: z.ZodObject<{
132
132
  deviceId: z.ZodNumber;
133
- name: z.ZodOptional<z.ZodString>;
134
133
  fps: z.ZodOptional<z.ZodNumber>;
135
134
  publishedProfiles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
136
135
  high: "high";
@@ -189,7 +188,7 @@ export declare const cameraGridLayoutCapability: {
189
188
  readonly getLayout: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
190
189
  deviceId: z.ZodNumber;
191
190
  }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
192
- instanceId: z.ZodString;
191
+ blockId: z.ZodString;
193
192
  deviceId: z.ZodNumber;
194
193
  name: z.ZodString;
195
194
  fps: z.ZodNumber;
@@ -223,7 +222,6 @@ export declare const cameraGridLayoutCapability: {
223
222
  /** Write the geometry back. Returns the grid as it now stands, profiles included. */
224
223
  readonly saveLayout: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
225
224
  deviceId: z.ZodNumber;
226
- name: z.ZodOptional<z.ZodString>;
227
225
  fps: z.ZodOptional<z.ZodNumber>;
228
226
  publishedProfiles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
229
227
  high: "high";
@@ -246,7 +244,7 @@ export declare const cameraGridLayoutCapability: {
246
244
  }, z.core.$strip>;
247
245
  }, z.core.$strip>>;
248
246
  }, z.core.$strip>, z.ZodObject<{
249
- instanceId: z.ZodString;
247
+ blockId: z.ZodString;
250
248
  deviceId: z.ZodNumber;
251
249
  name: z.ZodString;
252
250
  fps: z.ZodNumber;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Whether a failed cap call means the provider does not HAVE the method — an
3
+ * optional method it never wrote, or a hub that predates it — rather than a
4
+ * read that failed. A missing method is an answer ("not supported"); a failed
5
+ * read is not, and only the second deserves a warning.
6
+ */
7
+ /**
8
+ * Prefix the hub matches to turn a child-side "declared optional, not served"
9
+ * into a `NOT_IMPLEMENTED`. A prefix rather than an error subclass because the
10
+ * error crosses a UDS boundary as a plain message.
11
+ */
12
+ export declare const CAP_METHOD_NOT_IMPLEMENTED = "CAP_METHOD_NOT_IMPLEMENTED";
13
+ /**
14
+ * The typed code first: the hub cap router's `NOT_IMPLEMENTED` on `data.code`.
15
+ * A forked provider's refusal crosses the UDS hop as a plain message, so it is
16
+ * matched by the dispatcher's prefix (`CAP_METHOD_NOT_IMPLEMENTED`); the last
17
+ * two are the routing layer's own wording.
18
+ */
19
+ export declare function isCapMethodAbsent(err: unknown): boolean;