@camstack/types 1.2.596 → 1.2.598

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 CHANGED
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.598] - 2026-11-18
11
+
12
+ ### Changed
13
+
14
+ - pipelineExecutor.getInferenceDeviceHealth reports an optional absentReason, and the inference device exclusion reasons gain no-gpu-device
15
+
16
+ ## [1.2.597] - 2026-11-18
17
+
18
+ ### Added
19
+
20
+ - Each integration instance now states what Add device offers inside it (scan, children or none), decided by its provider
21
+ - Pipeline steps can be switched per cluster (off, on, opt-in), per node and per accelerator; new pipelineOrchestrator methods setClusterStepMode, setNodeStepEnabled, setDeviceStepEnabled and getStepSwitches.
22
+
23
+ ### Changed
24
+
25
+ - InferenceDeviceExclusionReason gains 'root-switched-off' (D1065).
26
+ - A host or container card shows its running state instead of a dash.
27
+
10
28
  ## [1.2.596] - 2026-11-18
11
29
 
12
30
  ### Changed
@@ -41,9 +59,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
41
59
 
42
60
  - New device-state-refresh capability and state-refresh policy types: a provider declares how its devices are read, the hub decides when (D1062).
43
61
 
44
- ### Changed
45
-
46
-
47
62
  ## [1.2.592] - 2026-11-18
48
63
 
49
64
  ### Changed
@@ -290,8 +305,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
290
305
  - Notification history can show the title and body that were sent.
291
306
  - Email images travel as peerBytes tickets on smtp-provider.sendEmail.
292
307
  - A cluster update can name a server install that stalled or hit its time limit.
293
- ### Changed
294
-
295
308
  ## [1.2.562] - 2026-11-13
296
309
 
297
310
  ### Added
@@ -12,7 +12,7 @@
12
12
  * `{ $secretClear: true }` clears it; any other string replaces it.
13
13
  */
14
14
  import { z } from 'zod';
15
- import type { IntegrationInstanceDescription, IntegrationInstanceStatus, IIntegrationInstancesProvider } from '../capabilities/integration-instances.cap.js';
15
+ import type { IntegrationInstanceAddDevice, IntegrationInstanceDescription, IntegrationInstanceStatus, IIntegrationInstancesProvider } from '../capabilities/integration-instances.cap.js';
16
16
  import type { IntegrationTestConnectionResult } from '../capabilities/integrations.cap.js';
17
17
  import type { ConfigUISchema } from '../interfaces/config-ui.js';
18
18
  import type { DefinedRecordKind } from '../records/record-kind.js';
@@ -30,6 +30,12 @@ export declare function isInstanceEnabled(body: {
30
30
  }): boolean;
31
31
  /** The body key of the switch; only {@link RecordIntegrationInstances.setInstanceEnabled} writes it. */
32
32
  export declare const SWITCH_KEY = "enabled";
33
+ /**
34
+ * The "Add device" mode an instance gets when its provider states none, from how the provider's
35
+ * devices are found: `lan` scans, `account` adopts the account's children, anything else is manual.
36
+ * The one place this default lives.
37
+ */
38
+ export declare function defaultAddDeviceMode(description: Pick<IntegrationInstanceDescription, 'discovery'>): IntegrationInstanceAddDevice;
33
39
  /** What the instance went through when `onChanged` runs. */
34
40
  export type InstanceChange = 'created' | 'updated' | 'enabled' | 'deleted';
35
41
  export interface RecordIntegrationInstancesHooks<TBody extends InstanceBody> {
@@ -59,6 +65,11 @@ export interface RecordIntegrationInstancesHooks<TBody extends InstanceBody> {
59
65
  };
60
66
  /** The addon's own rule for "this instance can work". */
61
67
  configured(body: TBody): boolean;
68
+ /**
69
+ * What "Add device" inside this instance offers (`scan`, `children`, `none`). Absent: the default
70
+ * from `description.discovery` ({@link defaultAddDeviceMode}).
71
+ */
72
+ addDevice?(body: TBody): IntegrationInstanceAddDevice;
62
73
  /**
63
74
  * Runs after every create / update / enable / delete, IN the process that serves the instance:
64
75
  * the addon re-applies its runtime from the record (`readResolved(id)`), so an edit takes effect
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_runtime_capabilities = require("./runtime-capabilities-wOKNm9iz.js");
2
+ const require_runtime_capabilities = require("./runtime-capabilities-DWgr8hrq.js");
3
3
  const require_event_category = require("./event-category-CMA0-jGW.js");
4
4
  const require_composed_stable_id = require("./composed-stable-id-DkF5-kuf.js");
5
5
  //#region src/generated/cap-input-defaults.ts
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as CAP_STATE_LEAVES, $a as findMigrationsBlocked, $i as DeclarationRefusedError, $n as registerKnownSecret, A as DEVICE_SCOPED_CAPS, Ai as RECORD_DATABASES, Ba as isSecretFieldView, Bi as RECORD_SWEEP_INTERVAL_MS, Bn as OnBehalfSourceSchema, Ci as recordArrayItemPath, Ct as DEVICE_CHILDREN_BATCH_MAX, D as parseJsonUnknown, Da as emitReadiness, Di as RECORD_BATCH_MAX, Ea as createEvent, Ei as secretArrayPrefixes, Et as addonPagesSourceCapability, F as createEventBusSliceSource, Fi as RECORD_MAX_INDEXES, Gi as globalSecretScope, Gn as assertTransactScope, Gr as readErrorI18n, Ha as isSecretMarkerLike, Hi as arrayItemFieldPath, Hn as ruleFireOfClaim, Hr as ErrorI18nPayloadSchema, Ht as scopeKey, Ii as RECORD_MAX_INDEX_FIELDS, J as HF_REPO, Ji as parseSecretRef, Jn as createSecretsAccess, Ki as isSecretRef, Kn as resolveSecretViewsIn, La as SECRET_CLEAR, Li as RECORD_QUERY_MAX, Lt as MODEL_FORMATS, M as createDeviceProxy, Mi as RECORD_DELETE_BATCH, Ni as RECORD_ID_MAX_LENGTH, Nr as expandCapMethods, O as hfModelUrl, Oi as RECORD_BATCH_MAX_BYTES, P as addonSliceHandleApi, Pi as RECORD_MAX_DATA_BYTES, Qa as AddonMigrationsBlockedError, Qi as BatchTooLargeError, Qn as knownSecretCount, Ra as classifySecretWrite, Ri as RECORD_SECRET_COLLECTION_PREFIX, Rn as CommandOriginClaimSchema, Rt as ReadinessRegistry, S as asJsonObject, Si as parseSecretPath, Sr as defineRecordKinds, St as deviceOpsCapability, Ti as recordSecretRef, Tr as isZodSecret, Ua as makeSecretMarker, Ui as buildSecretRef, Un as makeInMemoryRecords, Va as isSecretMarker, Vi as SECRET_REF_SCHEME, Vn as RuleFireOriginSchema, W as isCommand, Wa as toSecretFieldView, Wi as formatSecretScope, Wn as createRecordsAccess, X as CAP_ADVANCE_FIELDS, Xn as clearKnownSecrets, Xr as normalizeAddonInitResult, Xt as createDebugEmitter, Yn as MIN_SCRUBBED_LENGTH, Z as CAP_METHOD_TIMEOUTS_MS, Zn as forgetKnownSecret, _r as RecordKindNameSchema, _t as switchRefusesSetState, aa as RECORDS_ERROR_CODES, ar as PEER_BYTES_TICKET_TTL_MS, at as defineCustomActions, bi as collectSecretLeaves, br as assertValidDeclaration, bt as MIGRATION_API_VERSION, ca as RecordTooLargeError, ci as resolveDeviceSettings, cr as DATAPLANE_SECRET_HEADER, da as RevConflictError, dr as defineEntryKind, dt as nodePin, ea as FilterRequiredError, er as scrubKnownSecrets, et as CAP_METHOD_NOT_IMPLEMENTED, fa as TransactRefusedError, fr as entryBody, ft as readCommandOrigin, ga as recordsErrorFromMessage, gr as RecordKindDeclarationSchema, gt as SWITCH_SETTABLE_GATE, ha as asRecordsError, hr as RecordIndexSchema, ht as viewerUiCapability, ia as PlaintextSecretError, ir as PEER_BYTES_STALL_MS, it as customAction, j as isDeviceScopedCap, ji as RECORD_DEFAULT_MAX_DATA_BYTES, k as BOOT_RECOVERY_BACKOFF_MS, ki as RECORD_CLASSES, la as RecordUniqueViolationError, li as resolvedValues, ma as UnknownRecordKindError, mr as RecordFieldPathSchema, n as describeNvidia, na as InvalidRecordError, nr as PEER_BYTES_CHUNK_BYTES, nt as CALLER_STAMPED_CAPABILITIES, oa as RecordNotFoundError, oi as SCOPED_SETTINGS_SCOPES, ot as describeCustomActions, pa as UnindexedFilterError, pr as EntryDescriptorSchema, pt as readNodePin, qi as normalizeSecretOwner, qn as REVALIDATE_AFTER_MS, qr as BaseAddon, ra as NoCallerError, rr as PEER_BYTES_MAX_OUTSTANDING, rt as withoutCallerStamp, sa as RecordSecretUnavailableError, si as nodeIdOfScopedKey, sr as CALLER_USERNAME_HEADER, ta as ForeignSecretMarkerError, tr as shortSecretRefHash, tt as isCapMethodAbsent, u as sleep, ua as RecordsError, ur as DisposerChain, ut as commandOrigin, vi as secretViewsOf, vr as RecordRetentionSchema, vt as PipelineRunResultBridge, w as asString, wi as recordSecretCollection, wr as collectZodSecretPaths, wt as adminUiCapability, xi as mapSecretLeaves, xr as declarationsOf, y as maskUrlCredentials, yi as REMOVE_LEAF, yr as StoredRecordKindDeclarationSchema, yt as PipelineStepInputSchema, za as isSecretClear, zi as RECORD_SETTINGS_MAX_ROWS, zn as OnBehalfSchema, zt as ReadinessTimeoutError } from "./runtime-capabilities-Bgt5QBvO.mjs";
1
+ import { $ as CAP_STATE_LEAVES, $a as AddonMigrationsBlockedError, $i as BatchTooLargeError, $n as registerKnownSecret, A as DEVICE_SCOPED_CAPS, Ai as RECORD_CLASSES, Ba as isSecretClear, Bi as RECORD_SETTINGS_MAX_ROWS, Bn as OnBehalfSourceSchema, Ci as parseSecretPath, Ct as DEVICE_CHILDREN_BATCH_MAX, D as parseJsonUnknown, Da as createEvent, Di as secretArrayPrefixes, Ei as recordSecretRef, Et as addonPagesSourceCapability, F as createEventBusSliceSource, Fi as RECORD_MAX_DATA_BYTES, Ga as toSecretFieldView, Gi as formatSecretScope, Gn as assertTransactScope, Gr as readErrorI18n, Ha as isSecretMarker, Hi as SECRET_REF_SCHEME, Hn as ruleFireOfClaim, Hr as ErrorI18nPayloadSchema, Ht as scopeKey, Ii as RECORD_MAX_INDEXES, J as HF_REPO, Ji as normalizeSecretOwner, Jn as createSecretsAccess, Ki as globalSecretScope, Kn as resolveSecretViewsIn, Li as RECORD_MAX_INDEX_FIELDS, Lt as MODEL_FORMATS, M as createDeviceProxy, Mi as RECORD_DEFAULT_MAX_DATA_BYTES, Ni as RECORD_DELETE_BATCH, Nr as expandCapMethods, O as hfModelUrl, Oa as emitReadiness, Oi as RECORD_BATCH_MAX, P as addonSliceHandleApi, Pi as RECORD_ID_MAX_LENGTH, Qn as knownSecretCount, Ra as SECRET_CLEAR, Ri as RECORD_QUERY_MAX, Rn as CommandOriginClaimSchema, Rt as ReadinessRegistry, S as asJsonObject, Si as mapSecretLeaves, Sr as defineRecordKinds, St as deviceOpsCapability, Ti as recordSecretCollection, Tr as isZodSecret, Ua as isSecretMarkerLike, Ui as arrayItemFieldPath, Un as makeInMemoryRecords, Va as isSecretFieldView, Vi as RECORD_SWEEP_INTERVAL_MS, Vn as RuleFireOriginSchema, W as isCommand, Wa as makeSecretMarker, Wi as buildSecretRef, Wn as createRecordsAccess, X as CAP_ADVANCE_FIELDS, Xn as clearKnownSecrets, Xr as normalizeAddonInitResult, Xt as createDebugEmitter, Yi as parseSecretRef, Yn as MIN_SCRUBBED_LENGTH, Z as CAP_METHOD_TIMEOUTS_MS, Zn as forgetKnownSecret, _a as recordsErrorFromMessage, _r as RecordKindNameSchema, _t as switchRefusesSetState, aa as PlaintextSecretError, ar as PEER_BYTES_TICKET_TTL_MS, at as defineCustomActions, bi as REMOVE_LEAF, br as assertValidDeclaration, bt as MIGRATION_API_VERSION, ca as RecordSecretUnavailableError, ci as resolveDeviceSettings, cr as DATAPLANE_SECRET_HEADER, da as RecordsError, dr as defineEntryKind, dt as nodePin, ea as DeclarationRefusedError, eo as findMigrationsBlocked, er as scrubKnownSecrets, et as CAP_METHOD_NOT_IMPLEMENTED, fa as RevConflictError, fr as entryBody, ft as readCommandOrigin, ga as asRecordsError, gr as RecordKindDeclarationSchema, gt as SWITCH_SETTABLE_GATE, ha as UnknownRecordKindError, hr as RecordIndexSchema, ht as viewerUiCapability, ia as NoCallerError, ir as PEER_BYTES_STALL_MS, it as customAction, j as isDeviceScopedCap, ji as RECORD_DATABASES, k as BOOT_RECOVERY_BACKOFF_MS, ki as RECORD_BATCH_MAX_BYTES, la as RecordTooLargeError, li as resolvedValues, ma as UnindexedFilterError, mr as RecordFieldPathSchema, n as describeNvidia, na as ForeignSecretMarkerError, nr as PEER_BYTES_CHUNK_BYTES, nt as CALLER_STAMPED_CAPABILITIES, oa as RECORDS_ERROR_CODES, oi as SCOPED_SETTINGS_SCOPES, ot as describeCustomActions, pa as TransactRefusedError, pr as EntryDescriptorSchema, pt as readNodePin, qi as isSecretRef, qn as REVALIDATE_AFTER_MS, qr as BaseAddon, ra as InvalidRecordError, rr as PEER_BYTES_MAX_OUTSTANDING, rt as withoutCallerStamp, sa as RecordNotFoundError, si as nodeIdOfScopedKey, sr as CALLER_USERNAME_HEADER, ta as FilterRequiredError, tr as shortSecretRefHash, tt as isCapMethodAbsent, u as sleep, ua as RecordUniqueViolationError, ur as DisposerChain, ut as commandOrigin, vr as RecordRetentionSchema, vt as PipelineRunResultBridge, w as asString, wi as recordArrayItemPath, wr as collectZodSecretPaths, wt as adminUiCapability, xi as collectSecretLeaves, xr as declarationsOf, y as maskUrlCredentials, yi as secretViewsOf, yr as StoredRecordKindDeclarationSchema, yt as PipelineStepInputSchema, za as classifySecretWrite, zi as RECORD_SECRET_COLLECTION_PREFIX, zn as OnBehalfSchema, zt as ReadinessTimeoutError } from "./runtime-capabilities-qX7BpOYT.mjs";
2
2
  import { t as EventCategory } from "./event-category-7P4A3bYA.mjs";
3
3
  import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-DIeNz933.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
@@ -114,12 +114,12 @@ export { NetworkAccessStatusSchema, NetworkEndpointSchema, NetworkTunnelStartedD
114
114
  export { type Attachment, type AttachmentMediaType, AttachmentMediaTypeSchema, AttachmentSchema, type DeliveryParam, DeliveryParamSchema, type DeliveryParamValue, DeliveryParamValueSchema, type DiscoveredTarget, DiscoveredTargetSchema, type INotificationOutputProvider, type NotificationAction, type NotificationActionIcon, NotificationActionIconSchema, NotificationActionSchema, type NotificationField, NotificationFieldSchema, type NotificationFormat, NotificationFormatSchema, NotificationSchema, notificationOutputCapability, type ProbeTargetConfigResult, ProbeTargetConfigResultSchema, type RenderedAs, RenderedAsSchema, type SendResult, SendResultSchema, type Target, type TargetKind, type TargetKindCaps, TargetKindCapsSchema, type TargetKindLevel, TargetKindLevelSchema, TargetKindSchema, type TargetKindTextCaps, TargetKindTextCapsSchema, TargetSchema, type TestResult, TestResultSchema, } from './notification-output.cap.js';
115
115
  export { consumableLowPercentOf, type INotificationRulesProvider, isRetiredClearKey, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_NONBLOCKING_MAX, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_AUDIO_DBFS_FLOOR, NC_AUTHORABLE_SYSTEM_EVENT_KINDS, NC_LEGACY_SYSTEM_EVENT_KINDS, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CLIP_POST_ROLL_DEFAULT_SEC, NC_CLIP_PRE_ROLL_DEFAULT_SEC, NC_CLIP_RETENTION_MAX_SEC, NC_CONDITION_CATALOG, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX, NC_CONFIRM_DEFAULT_TIMEOUT_MS, NC_CONFIRM_MAX_TIMEOUT_MS, NC_CONFIRM_MIN_TIMEOUT_MS, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_DEFAULT_SNOOZE_MINUTES, NC_GROUPING_DEFAULT_SEC, NC_GROUPING_MAX_SEC, NC_GROUPING_MIN_SEC, NC_GROUP_WITHIN_MAX_SEC, NC_GROUP_WITHIN_OTHER_DEFAULT_SEC, NC_GROUP_WITHIN_SYSTEM_DEFAULT_SEC, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_RULE_CLEARABLE_KEYS, NC_RULE_RETIRED_CLEAR_KEYS, NC_SNOOZE_MAX_MINUTES, type NcAlarmBlocking, type NcAlarmBlockingEdit, NcAlarmBlockingEditSchema, NcAlarmBlockingSchema, type NcAlarmConfig, NcAlarmConfigSchema, type NcAlarmCreateProfileInput, NcAlarmCreateProfileInputSchema, type NcAlarmModeCoverage, NcAlarmModeCoverageSchema, type NcAlarmModeDelays, type NcAlarmModeDelaysEdit, NcAlarmModeDelaysEditSchema, NcAlarmModeDelaysSchema, type NcAlarmModeDeviceList, NcAlarmModeDeviceListSchema, type NcAlarmNonBlocking, type NcAlarmNonBlockingEdit, NcAlarmNonBlockingEditSchema, NcAlarmNonBlockingSchema, type NcAlarmPostTriggeredAction, NcAlarmPostTriggeredActionSchema, type NcAlarmProfileIdInput, NcAlarmProfileIdInputSchema, type NcAlarmProfileMeta, NcAlarmProfileMetaSchema, type NcAlarmProfilesView, NcAlarmProfilesViewSchema, type NcAlarmRenameProfileInput, NcAlarmRenameProfileInputSchema, type NcAlarmSecureOnArmEdit, NcAlarmSecureOnArmEditSchema, type NcAlarmSecureOnArmOff, NcAlarmSecureOnArmOffSchema, type NcAlarmSensorReading, NcAlarmSensorReadingSchema, type NcAlarmSensorState, NcAlarmSensorStateSchema, type NcAlarmSensors, type NcAlarmSensorsInput, NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, type NcAlarmSettings, type NcAlarmSettingsPatch, NcAlarmSettingsPatchSchema, NcAlarmSettingsSchema, type NcAlarmSkippedDevice, NcAlarmSkippedDeviceSchema, type NcAlarmSkipReason, NcAlarmSkipReasonSchema, type NcAudioCondition, NcAudioConditionSchema, type NcClipRetentionAsk, NcClipRetentionAskSchema, type NcClipRetentionPlan, NcClipRetentionPlanSchema, type NcConditionDescriptor, NcConditionDescriptorSchema, type NcConditions, NcConditionsSchema, type NcConfirm, type NcConfirmExpect, NcConfirmExpectSchema, NcConfirmSchema, type NcCrossing, NcCrossingSchema, type NcDelivery, NcDeliverySchema, type NcDeviceStateCondition, NcDeviceStateConditionSchema, type NcHistoryEntry, NcHistoryEntrySchema, type NcHistoryFilter, NcHistoryFilterSchema, type NcHistoryRecordKind, NcHistoryRecordKindSchema, type NcHistoryStatus, NcHistoryStatusSchema, type NcHistorySubject, NcHistorySubjectSchema, type NcLinkedCameraMode, NcLinkedCameraModeSchema, type NcMediaFrame, NcMediaFrameSchema, type NcMediaImage, NcMediaImageSchema, type NcMediaPolicy, NcMediaPolicySchema, type NcOccupancyCondition, NcOccupancyConditionSchema, type NcPlateMatcher, NcPlateMatcherSchema, type NcRule, type NcRuleActions, NcRuleActionsSchema, NcActionIdSchema, type NcHookActionIds, NcHookActionIdsSchema, type NcRuleClearableKey, NcRuleClearableKeySchema, type NcRuleInput, NcRuleInputSchema, type NcRuleTagsEntry, NcRuleTagsEntrySchema, type NcTaggedRuleKind, NcTaggedRuleKindSchema, NcRuleKindSchema, type NcRuleLastRun, NcRuleLastRunSchema, type NcRuleLastRuns, NcRuleLastRunsSchema, type NcRuleNotificationButton, NcRuleNotificationButtonSchema, type NcRulePatch, NcRulePatchSchema, NcRuleSchema, type NcRuleTarget, NcRuleTargetSchema, type NcTargetAttachment, NcTargetAttachmentSchema, type NcTargetOverride, NcTargetOverrideSchema, NC_TEMPLATE_TITLE_MAX_CHARS, type NcTargetOverrides, NcTargetOverridesSchema, type NcRuleUpdateInput, NcRuleUpdateInputSchema, type NcSceneCondition, NcSceneConditionSchema, type NcSchedule, NcScheduleSchema, type NcScheduleWindow, NcScheduleWindowSchema, type NcSensorTransition, NcSensorTransitionSchema, type NcSnooze, type NcSnoozeInput, NcSnoozeInputSchema, NcSnoozeSchema, type NcSnoozeScope, NcSnoozeScopeSchema, type NcSnoozeSuppressed, NcSnoozeSuppressedSchema, type NcStateSummaryPreview, type NcStateSummaryPreviewRow, NcStateSummaryPreviewRowSchema, NcStateSummaryPreviewSchema, type NcStateSummaryPreviewSection, NcStateSummaryPreviewSectionSchema, type NcStateSummarySectionId, NC_STATE_SUMMARY_SECTION_IDS, NcStateSummarySectionIdSchema, type NcStateSummarySplit, NcStateSummarySplitSchema, type NcSystemEventCondition, NcSystemEventConditionSchema, type NcSystemEventDelivery, type NcSystemEventDeliveryMode, NcSystemEventDeliveryModeSchema, type NcSystemEventDeliveryToggle, NcSystemEventDeliveryToggleSchema, type NcSystemEventModesDelivery, NcSystemEventDeliverySchema, type NcSystemEventKind, NcSystemEventKindSchema, NC_COMMAND_ACTOR_KINDS, NC_COMMAND_OUTCOMES, type NcTemplateDefault, NcTemplateDefaultSchema, type NcTemplateFamily, NcTemplateFamilySchema, type NcTemplateField, NcTemplateFieldSchema, type NcTemplatePreview, type NcTemplatePreviewInput, NcTemplatePreviewInputSchema, NcTemplatePreviewSchema, type NcTemplateVarContext, NcTemplateVarContextSchema, type NcTemplateVarDescriptor, NcTemplateVarDescriptorSchema, type NcTemplateVarGroup, NcTemplateVarGroupSchema, type NcTemplateVarKind, NcTemplateVarKindSchema, type NcTestResult, NcTestResultSchema, type NcThrottle, type NcThrottleGranularity, NcThrottleGranularitySchema, NcThrottleSchema, type NcZoneCondition, NcZoneConditionSchema, notificationRulesCapability, } from './notification-rules.cap.js';
116
116
  export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
117
- export { type IIntegrationInstancesProvider, type IntegrationInstance, type IntegrationInstanceDescription, IntegrationInstanceDescriptionSchema, type IntegrationInstanceDiscovery, IntegrationInstanceDiscoverySchema, IntegrationInstanceIdSchema, type IntegrationInstanceKind, type IntegrationInstanceLink, IntegrationInstanceLinkSchema, IntegrationInstanceKindSchema, type IntegrationInstanceMode, IntegrationInstanceModeSchema, type IntegrationInstancePatch, IntegrationInstancePatchSchema, type IntegrationInstanceRole, IntegrationInstanceRoleSchema, IntegrationInstanceSchema, type IntegrationInstanceStatus, IntegrationInstanceStatusSchema, integrationInstancesCapability, } from './integration-instances.cap.js';
117
+ export { type IIntegrationInstancesProvider, type IntegrationInstance, type IntegrationInstanceAddDevice, IntegrationInstanceAddDeviceSchema, type IntegrationInstanceDescription, IntegrationInstanceDescriptionSchema, type IntegrationInstanceDiscovery, IntegrationInstanceDiscoverySchema, IntegrationInstanceIdSchema, type IntegrationInstanceKind, type IntegrationInstanceLink, IntegrationInstanceLinkSchema, IntegrationInstanceKindSchema, type IntegrationInstanceMode, IntegrationInstanceModeSchema, type IntegrationInstancePatch, IntegrationInstancePatchSchema, type IntegrationInstanceRole, IntegrationInstanceRoleSchema, IntegrationInstanceSchema, type IntegrationInstanceStatus, IntegrationInstanceStatusSchema, integrationInstancesCapability, } from './integration-instances.cap.js';
118
118
  export { AnalyticsLtsSeriesSchema, type AudioEvent, type AudioEventDraft, AudioEventSchema, type DetectionSource, DetectionSourceSchema, EVENT_DENSITY_BATCH_MAX, type EventDensityBucket, EventDensityBucketSchema, type EventDensityForDevice, EventDensityForDeviceSchema, type EventKind, type EventKindCategory, EventKindCategorySchema, type EventKindDescriptor, EventKindDescriptorSchema, type EventKindIcon, EventKindIconSchema, EventKindSchema, type EventKindsForDevice, EventKindsForDeviceSchema, type EventMediaKindBreakdown, type EventMediaKindFootprint, type EventPruneCounts, type EventStoreDeviceFootprint, type EventStoreFootprint, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type KeyEventsForDevice, type LabelAttribution, LabelAttributionSchema, type LabelTier, LabelTierSchema, LTS_SCOPE_CLASS_SEPARATOR, type LtsBucket, LtsBucketSchema, MAX_TRACK_DEBUG_NOTE_LEN, type MediaFile, type MediaFileBytes, type MediaFileInfo, MediaFileInfoSchema, type MediaFileKind, MediaFileKindEnum, type MediaFileRef, MediaFileRefSchema, MediaFileSchema, type MotionEvent, type MotionEventDraft, MotionEventSchema, type ObjectEvent, type ObjectEventDraft, ObjectEventSchema, occupancyScope, parseOccupancyScope, pipelineAnalyticsCapability, type RebuildObjectEmbeddingsRefusal, RebuildObjectEmbeddingsRefusalSchema, type RecentTracksPage, RecentTracksPageSchema, type RecentTracksQuery, RecentTracksQueryInput, type RetrainBoxReview, RetrainBoxReviewSchema, type RetrainDismissed, RetrainDismissedSchema, type RetrainFrameReview, RetrainFrameReviewSchema, type RetrainOrigin, RetrainOriginSchema, type RetrainReviewStatus, RetrainReviewStatusSchema, type RetrainAnnotation, type RetrainAnnotationDraft, RetrainAnnotationDraftSchema, RetrainAnnotationKindSchema, RetrainAnnotationSchema, type RetrainAnnotationSource, RetrainAnnotationSourceSchema, type RetrainArchiveResult, RetrainArchiveResultSchema, type RetrainArchiveTarget, RetrainArchiveTargetSchema, type RetrainAssistResult, RetrainAssistResultSchema, RetrainAssistSubjectSchema, RetrainCopyRefusalSchema, type RetrainExportFilter, RetrainExportFilterSchema, type RetrainExportLayout, RetrainExportLayoutSchema, type AddRetrainFrameFromRecordingResult, AddRetrainFrameFromRecordingResultSchema, type RetrainDatasetSelection, RetrainDatasetSelectionSchema, type RetrainDatasetStats, RetrainDatasetStatsSchema, type RetrainDatasetVersion, RetrainDatasetVersionSchema, type RetrainTrainingCorpusResolveResult, RetrainTrainingCorpusResolveResultSchema, type RetrainTrainingCorpusSelection, RetrainTrainingCorpusSelectionSchema, type RetrainAssistProfile, RetrainAssistProfileSchema, type RetrainLlmAssistResult, RetrainLlmAssistResultSchema, type RetrainLlmProposal, RetrainLlmProposalSchema, type RetrainLlmReview, RetrainLlmReviewSchema, type RetrainCollection, type RetrainCollectionCreateResult, RetrainCollectionCreateResultSchema, type RetrainCollectionRenameResult, RetrainCollectionRenameResultSchema, RetrainCollectionSchema, type RetrainCorpusFilter, RetrainCorpusFilterSchema, type RetrainCorpusKpi, RetrainCorpusKpiSchema, type RetrainCorpusKpiCameraRow, RetrainCorpusKpiCameraRowSchema, type RetrainCorpusPage, RetrainCorpusPageSchema, type RetrainCorpusPageFrame, RetrainCorpusPageFrameSchema, type RetrainFrame, type RetrainFrameCandidate, RetrainFrameCandidateSchema, type RetrainFrameList, RetrainFrameListSchema, type RetrainFrameOrigin, RetrainFrameOriginSchema, RetrainFrameSchema, type RetrainFrameSelection, RetrainFrameSelectionSchema, type RetrainFrameWorkState, RetrainFrameWorkStateSchema, type RetrainMacroClass, RetrainMacroClassSchema, type RetrainPipelineBox, RetrainPipelineBoxSchema, type RetrainStatus, RetrainStatusSchema, type RetrainTrack, RetrainTrackSchema, type RetrainTransitionResult, RetrainTransitionResultSchema, type RetrainVerdict, RetrainVerdictSchema, type RetrainVerdictSubject, RetrainVerdictSubjectSchema, type RetrainVerdictValue, RetrainVerdictValueSchema, type ScoredObjectEvent, ScoredObjectEventSchema, type SensorEvent, SensorEventSchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, type TrackEnvelope, TrackEnvelopeSchema, TrackedDetectionSchema, type TrackFlags, type TrackFlagsPatch, TrackFlagsPatchSchema, TrackFlagsSchema, type TrackPlacement, TrackPlacementSchema, type TrackProjection, TrackProjectionSchema, TrackSchema, type TrackSource, TrackSourceSchema, type TrackState, TrackStateSchema, type TrackZoneFilter, TrackZoneFilterSchema, type TrainingExportDeviceTotals, TrainingExportDeviceTotalsSchema, type TrainingExportSummary, TrainingExportSummarySchema, type ZoneCrossing, type ZoneCrossingDirection, ZoneCrossingDirectionSchema, ZoneCrossingSchema, } from './pipeline-analytics.cap.js';
119
119
  export type { EffectiveTuning, EffectiveTuningInput, NativeCropRef, PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, SuppliedRootOutput, } from './pipeline-executor.cap.js';
120
120
  export { EffectiveTuningSchema, ModelSubstitutionSchema, NativeCropRefSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, pipelineExecutorCapability, NormalizedRectSchema, SuppliedRootOutputSchema, } from './pipeline-executor.cap.js';
121
- export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraDetectionSource, CameraSourceStream, CameraStatus, CameraStatusDegradation, CameraStatusDegradationReason, CameraStatusStage, ClusterModelChoice, ClusterModelChoiceUnreadableReason, DiskReconcileJob, InferenceDeviceExclusionReason, IngestOwner, NodeInferenceDevice, NodeInferenceDevices, OccupancyLookAnswer, OccupancyLookRefusal, OccupancyLookRequest, SetCameraSensorsInput, } from './pipeline-orchestrator.cap.js';
122
- export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderStatusSchema, CameraDetectionSourceSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CapabilityBindingsSchema, CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, ClusterModelChoiceSchema, DiskReconcileJobSchema, GlobalMetricsSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, OccupancyLookAnswerSchema, OccupancyLookRefusalSchema, OccupancyLookRequestSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, SetCameraSensorsInputSchema, } from './pipeline-orchestrator.cap.js';
121
+ export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraDetectionSource, CameraSourceStream, CameraStatus, CameraStatusDegradation, CameraStatusDegradationReason, CameraStatusStage, ClusterModelChoice, ClusterModelChoiceUnreadableReason, DiskReconcileJob, InferenceDeviceExclusionReason, IngestOwner, NodeInferenceDevice, NodeInferenceDevices, OccupancyLookAnswer, OccupancyLookRefusal, OccupancyLookRequest, SetCameraSensorsInput, StepClusterMode, StepSwitchCell, StepSwitchMatrix, } from './pipeline-orchestrator.cap.js';
122
+ export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderStatusSchema, CameraDetectionSourceSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusDegradationReasonSchema, CameraStatusDegradationSchema, CameraStatusSchema, CameraStatusStageSchema, CapabilityBindingsSchema, CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS, ClusterModelChoiceSchema, DiskReconcileJobSchema, GlobalMetricsSchema, INFERENCE_DEVICE_EXCLUSION_REASONS, InferenceDeviceExclusionReasonSchema, IngestOwnerSchema, OccupancyLookAnswerSchema, OccupancyLookRefusalSchema, OccupancyLookRequestSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, SetCameraSensorsInputSchema, StepClusterModeSchema, StepSwitchCellSchema, StepSwitchMatrixSchema, } from './pipeline-orchestrator.cap.js';
123
123
  export type { DetailParent, DetailResult, MotionSource, MotionSources, OccupancyBurstRefusal, ParkedFrameKind, ParkedTrackFrame, ParkRefusal, ParkTrackFrameResult, ReportMotionInput, RunDetailSubtreeInput, RunDetailSubtreeResult, RunnerFrameSource, RunnerInferenceDevice, RunnerJumpStepProvisioning, RunStatelessStepInput, RunStatelessStepResult, StatelessStepRefusal, } from './pipeline-runner.cap.js';
124
124
  export { type DetectionSources, DetectionSourcesSchema, FrameLazyCountersSchema, FrameLazyMetricsSchema, MOTION_SOURCE_LABELS, MotionSourceEnum, MotionSourcesSchema, motionSourceLabel, type NativeCropBbox, type NativeCropCapResult, NativeCropBboxSchema, NativeCropResultSchema, OccupancyBurstRefusalSchema, ParkedFrameKindSchema, ParkedTrackFrameSchema, ParkRefusalSchema, ParkTrackFrameResultSchema, pipelineRunnerCapability, ReportMotionInputSchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerJumpStepProvisioningSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, type SessionTrigger, SessionTriggerSchema, } from './pipeline-runner.cap.js';
125
125
  export type { AudioClassifyOutcome, AudioNotClassifiedReason, } from './schemas/detection-shared.js';
@@ -158,6 +158,17 @@ export declare const IntegrationInstanceStatusSchema: z.ZodObject<{
158
158
  detail: z.ZodOptional<z.ZodString>;
159
159
  label: z.ZodOptional<z.ZodString>;
160
160
  }, z.core.$strip>;
161
+ /**
162
+ * What "Add device" inside ONE instance offers, decided per instance by its provider. `scan`: the
163
+ * LAN scan finds devices this instance holds; `children`: only the instance's own children, via
164
+ * adoption (a scan would offer other hosts, which are new integrations); `none`: manual add only.
165
+ */
166
+ export declare const IntegrationInstanceAddDeviceSchema: z.ZodEnum<{
167
+ children: "children";
168
+ none: "none";
169
+ scan: "scan";
170
+ }>;
171
+ export type IntegrationInstanceAddDevice = z.infer<typeof IntegrationInstanceAddDeviceSchema>;
161
172
  export declare const IntegrationInstanceSchema: z.ZodObject<{
162
173
  id: z.ZodString;
163
174
  name: z.ZodString;
@@ -176,6 +187,11 @@ export declare const IntegrationInstanceSchema: z.ZodObject<{
176
187
  label: z.ZodOptional<z.ZodString>;
177
188
  }, z.core.$strip>>;
178
189
  lastCheckedAt: z.ZodOptional<z.ZodNumber>;
190
+ addDevice: z.ZodOptional<z.ZodEnum<{
191
+ children: "children";
192
+ none: "none";
193
+ scan: "scan";
194
+ }>>;
179
195
  }, z.core.$strip>;
180
196
  export type IntegrationInstance = z.infer<typeof IntegrationInstanceSchema>;
181
197
  export declare const IntegrationInstancePatchSchema: z.ZodObject<{
@@ -279,6 +295,11 @@ export declare const integrationInstancesCapability: {
279
295
  label: z.ZodOptional<z.ZodString>;
280
296
  }, z.core.$strip>>;
281
297
  lastCheckedAt: z.ZodOptional<z.ZodNumber>;
298
+ addDevice: z.ZodOptional<z.ZodEnum<{
299
+ children: "children";
300
+ none: "none";
301
+ scan: "scan";
302
+ }>>;
282
303
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind> & {
283
304
  readonly caller: 'scoped';
284
305
  };
@@ -302,6 +323,11 @@ export declare const integrationInstancesCapability: {
302
323
  label: z.ZodOptional<z.ZodString>;
303
324
  }, z.core.$strip>>;
304
325
  lastCheckedAt: z.ZodOptional<z.ZodNumber>;
326
+ addDevice: z.ZodOptional<z.ZodEnum<{
327
+ children: "children";
328
+ none: "none";
329
+ scan: "scan";
330
+ }>>;
305
331
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind> & {
306
332
  readonly caller: 'scoped';
307
333
  };
@@ -782,6 +782,9 @@ export declare const pipelineExecutorCapability: {
782
782
  since: z.ZodNumber;
783
783
  deaths: z.ZodNumber;
784
784
  lastError: z.ZodString;
785
+ absentReason: z.ZodOptional<z.ZodEnum<{
786
+ "no-gpu-device": "no-gpu-device";
787
+ }>>;
785
788
  }, z.core.$strip>>>;
786
789
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
787
790
  /**
@@ -584,11 +584,22 @@ declare const INFERENCE_DEVICE_EXCLUSION_REASONS: readonly [
584
584
  /** Its engine format cannot run the object-detection camera root. */
585
585
  'cannot-host-camera-root',
586
586
  /** It is the CPU fallback and this node has a real accelerator serving (D215). */
587
- 'accelerator-preferred'];
587
+ 'accelerator-preferred',
588
+ /** The camera root step is switched off on it: cluster, node or device (D1065). */
589
+ 'root-switched-off',
590
+ /**
591
+ * The runtime itself enumerates no such device: OpenVINO sees no supported GPU
592
+ * (the driver / compute runtime does not support this iGPU). Hardware that is
593
+ * present but cannot run — it does NOT count as an accelerator serving the
594
+ * node, so the CPU fallback is not held back for it.
595
+ */
596
+ 'no-gpu-device'];
588
597
  declare const InferenceDeviceExclusionReasonSchema: z.ZodEnum<{
589
598
  "accelerator-preferred": "accelerator-preferred";
590
599
  "cannot-host-camera-root": "cannot-host-camera-root";
591
600
  disabled: "disabled";
601
+ "no-gpu-device": "no-gpu-device";
602
+ "root-switched-off": "root-switched-off";
592
603
  unavailable: "unavailable";
593
604
  }>;
594
605
  declare const NodeInferenceDeviceSchema: z.ZodObject<{
@@ -617,11 +628,14 @@ declare const NodeInferenceDeviceSchema: z.ZodObject<{
617
628
  modelId: z.ZodOptional<z.ZodString>;
618
629
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
619
630
  jumpDeviceKey: z.ZodOptional<z.ZodString>;
631
+ enabled: z.ZodOptional<z.ZodBoolean>;
620
632
  }, z.core.$strip>>>;
621
633
  exclusion: z.ZodNullable<z.ZodEnum<{
622
634
  "accelerator-preferred": "accelerator-preferred";
623
635
  "cannot-host-camera-root": "cannot-host-camera-root";
624
636
  disabled: "disabled";
637
+ "no-gpu-device": "no-gpu-device";
638
+ "root-switched-off": "root-switched-off";
625
639
  unavailable: "unavailable";
626
640
  }>>;
627
641
  }, z.core.$strip>;
@@ -679,15 +693,126 @@ declare const NodeInferenceDevicesSchema: z.ZodObject<{
679
693
  modelId: z.ZodOptional<z.ZodString>;
680
694
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
681
695
  jumpDeviceKey: z.ZodOptional<z.ZodString>;
696
+ enabled: z.ZodOptional<z.ZodBoolean>;
682
697
  }, z.core.$strip>>>;
683
698
  exclusion: z.ZodNullable<z.ZodEnum<{
684
699
  "accelerator-preferred": "accelerator-preferred";
685
700
  "cannot-host-camera-root": "cannot-host-camera-root";
686
701
  disabled: "disabled";
702
+ "no-gpu-device": "no-gpu-device";
703
+ "root-switched-off": "root-switched-off";
687
704
  unavailable: "unavailable";
688
705
  }>>;
689
706
  }, z.core.$strip>>>;
690
707
  }, z.core.$strip>;
708
+ /**
709
+ * The CLUSTER switch of one pipeline step (D1065):
710
+ * - `off` — hard off: no camera, node or device can turn it on;
711
+ * - `on` — on by default; a camera may turn it off (`stepToggles`);
712
+ * - `opt-in` — off by default; a camera turns it on (`stepToggles`).
713
+ * Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
714
+ */
715
+ export declare const StepClusterModeSchema: z.ZodEnum<{
716
+ off: "off";
717
+ on: "on";
718
+ "opt-in": "opt-in";
719
+ }>;
720
+ export type StepClusterMode = z.infer<typeof StepClusterModeSchema>;
721
+ /**
722
+ * What one step does on one (node, device) — computed by the orchestrator with
723
+ * the SAME placement function the attach path runs (`pipeline-resolver.ts`),
724
+ * so a client never re-derives it. Precedence: cluster off > camera toggle
725
+ * (else the cluster default) > node off > device off / jump.
726
+ */
727
+ export declare const StepSwitchCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
728
+ kind: z.ZodLiteral<"on">;
729
+ }, z.core.$strip>, z.ZodObject<{
730
+ kind: z.ZodLiteral<"off-cluster">;
731
+ }, z.core.$strip>, z.ZodObject<{
732
+ kind: z.ZodLiteral<"off-node">;
733
+ }, z.core.$strip>, z.ZodObject<{
734
+ kind: z.ZodLiteral<"off-device">;
735
+ }, z.core.$strip>, z.ZodObject<{
736
+ kind: z.ZodLiteral<"jump">;
737
+ toDeviceKey: z.ZodString;
738
+ }, z.core.$strip>, z.ZodObject<{
739
+ kind: z.ZodLiteral<"skip">;
740
+ reason: z.ZodEnum<{
741
+ "no-compatible-model": "no-compatible-model";
742
+ "root-not-runnable-on-elected-device": "root-not-runnable-on-elected-device";
743
+ }>;
744
+ }, z.core.$strip>, z.ZodObject<{
745
+ kind: z.ZodLiteral<"zone-driven">;
746
+ }, z.core.$strip>, z.ZodObject<{
747
+ kind: z.ZodLiteral<"supplied-by-root">;
748
+ rootModelId: z.ZodString;
749
+ }, z.core.$strip>, z.ZodObject<{
750
+ kind: z.ZodLiteral<"opt-in-unused">;
751
+ }, z.core.$strip>], "kind">;
752
+ export type StepSwitchCell = z.infer<typeof StepSwitchCellSchema>;
753
+ export declare const StepSwitchMatrixSchema: z.ZodObject<{
754
+ steps: z.ZodReadonly<z.ZodArray<z.ZodObject<{
755
+ stepId: z.ZodString;
756
+ name: z.ZodString;
757
+ slot: z.ZodString;
758
+ clusterMode: z.ZodNullable<z.ZodEnum<{
759
+ off: "off";
760
+ on: "on";
761
+ "opt-in": "opt-in";
762
+ }>>;
763
+ effectiveMode: z.ZodEnum<{
764
+ off: "off";
765
+ on: "on";
766
+ "opt-in": "opt-in";
767
+ }>;
768
+ camerasEnabling: z.ZodNumber;
769
+ camerasDisabling: z.ZodNumber;
770
+ nodes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
771
+ nodeId: z.ZodString;
772
+ reachable: z.ZodBoolean;
773
+ stepEnabled: z.ZodNullable<z.ZodBoolean>;
774
+ devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
775
+ deviceKey: z.ZodString;
776
+ format: z.ZodEnum<{
777
+ coreml: "coreml";
778
+ gguf: "gguf";
779
+ onnx: "onnx";
780
+ openvino: "openvino";
781
+ pt: "pt";
782
+ tflite: "tflite";
783
+ }>;
784
+ stepEnabled: z.ZodNullable<z.ZodBoolean>;
785
+ eligible: z.ZodBoolean;
786
+ cell: z.ZodDiscriminatedUnion<[z.ZodObject<{
787
+ kind: z.ZodLiteral<"on">;
788
+ }, z.core.$strip>, z.ZodObject<{
789
+ kind: z.ZodLiteral<"off-cluster">;
790
+ }, z.core.$strip>, z.ZodObject<{
791
+ kind: z.ZodLiteral<"off-node">;
792
+ }, z.core.$strip>, z.ZodObject<{
793
+ kind: z.ZodLiteral<"off-device">;
794
+ }, z.core.$strip>, z.ZodObject<{
795
+ kind: z.ZodLiteral<"jump">;
796
+ toDeviceKey: z.ZodString;
797
+ }, z.core.$strip>, z.ZodObject<{
798
+ kind: z.ZodLiteral<"skip">;
799
+ reason: z.ZodEnum<{
800
+ "no-compatible-model": "no-compatible-model";
801
+ "root-not-runnable-on-elected-device": "root-not-runnable-on-elected-device";
802
+ }>;
803
+ }, z.core.$strip>, z.ZodObject<{
804
+ kind: z.ZodLiteral<"zone-driven">;
805
+ }, z.core.$strip>, z.ZodObject<{
806
+ kind: z.ZodLiteral<"supplied-by-root">;
807
+ rootModelId: z.ZodString;
808
+ }, z.core.$strip>, z.ZodObject<{
809
+ kind: z.ZodLiteral<"opt-in-unused">;
810
+ }, z.core.$strip>], "kind">;
811
+ }, z.core.$strip>>>;
812
+ }, z.core.$strip>>>;
813
+ }, z.core.$strip>>>;
814
+ }, z.core.$strip>;
815
+ export type StepSwitchMatrix = z.infer<typeof StepSwitchMatrixSchema>;
691
816
  /**
692
817
  * Pipeline Orchestrator capability — global load balancer + camera dispatcher.
693
818
  *
@@ -1079,6 +1204,7 @@ export declare const pipelineOrchestratorCapability: {
1079
1204
  "node-h": "node-h";
1080
1205
  }>>;
1081
1206
  stepSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1207
+ stepEnabled: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1082
1208
  inferenceDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1083
1209
  enabled: z.ZodBoolean;
1084
1210
  weight: z.ZodOptional<z.ZodNumber>;
@@ -1087,6 +1213,7 @@ export declare const pipelineOrchestratorCapability: {
1087
1213
  modelId: z.ZodOptional<z.ZodString>;
1088
1214
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1089
1215
  jumpDeviceKey: z.ZodOptional<z.ZodString>;
1216
+ enabled: z.ZodOptional<z.ZodBoolean>;
1090
1217
  }, z.core.$strip>>>;
1091
1218
  }, z.core.$strip>>>;
1092
1219
  }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
@@ -1114,6 +1241,7 @@ export declare const pipelineOrchestratorCapability: {
1114
1241
  "node-h": "node-h";
1115
1242
  }>>;
1116
1243
  stepSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1244
+ stepEnabled: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1117
1245
  inferenceDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1118
1246
  enabled: z.ZodBoolean;
1119
1247
  weight: z.ZodOptional<z.ZodNumber>;
@@ -1122,6 +1250,7 @@ export declare const pipelineOrchestratorCapability: {
1122
1250
  modelId: z.ZodOptional<z.ZodString>;
1123
1251
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1124
1252
  jumpDeviceKey: z.ZodOptional<z.ZodString>;
1253
+ enabled: z.ZodOptional<z.ZodBoolean>;
1125
1254
  }, z.core.$strip>>>;
1126
1255
  }, z.core.$strip>>>;
1127
1256
  }, z.core.$strip>;
@@ -1242,6 +1371,7 @@ export declare const pipelineOrchestratorCapability: {
1242
1371
  modelId: z.ZodOptional<z.ZodString>;
1243
1372
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1244
1373
  jumpDeviceKey: z.ZodOptional<z.ZodString>;
1374
+ enabled: z.ZodOptional<z.ZodBoolean>;
1245
1375
  }, z.core.$strip>>>;
1246
1376
  }, z.core.$strip>>;
1247
1377
  }, z.core.$strip>, z.ZodObject<{
@@ -1261,6 +1391,113 @@ export declare const pipelineOrchestratorCapability: {
1261
1391
  }, z.core.$strip>, z.ZodObject<{
1262
1392
  success: z.ZodLiteral<true>;
1263
1393
  }, z.core.$strip>, "mutation">;
1394
+ /**
1395
+ * Set one step's CLUSTER switch (D1065): `off` | `on` | `opt-in`, or
1396
+ * `null` to return to the catalog default. Re-resolves every placed
1397
+ * camera's pipeline.
1398
+ */
1399
+ readonly setClusterStepMode: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1400
+ stepId: z.ZodString;
1401
+ mode: z.ZodNullable<z.ZodEnum<{
1402
+ off: "off";
1403
+ on: "on";
1404
+ "opt-in": "opt-in";
1405
+ }>>;
1406
+ }, z.core.$strip>, z.ZodObject<{
1407
+ success: z.ZodLiteral<true>;
1408
+ }, z.core.$strip>, "mutation">;
1409
+ /**
1410
+ * Set one step's NODE switch (D1065): `false` = the step never runs on a
1411
+ * camera whose pipeline runs on that node; `null` = inherit.
1412
+ */
1413
+ readonly setNodeStepEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1414
+ agentNodeId: z.ZodString;
1415
+ stepId: z.ZodString;
1416
+ enabled: z.ZodNullable<z.ZodBoolean>;
1417
+ }, z.core.$strip>, z.ZodObject<{
1418
+ success: z.ZodLiteral<true>;
1419
+ }, z.core.$strip>, "mutation">;
1420
+ /**
1421
+ * Set one step's DEVICE switch (D1065) on `(node, deviceKey)`: `false` =
1422
+ * the step is not provisioned there (a detail step jumps to an allowed
1423
+ * sibling, else is skipped); `null` = inherit.
1424
+ */
1425
+ readonly setDeviceStepEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1426
+ agentNodeId: z.ZodString;
1427
+ deviceKey: z.ZodString;
1428
+ stepId: z.ZodString;
1429
+ enabled: z.ZodNullable<z.ZodBoolean>;
1430
+ }, z.core.$strip>, z.ZodObject<{
1431
+ success: z.ZodLiteral<true>;
1432
+ }, z.core.$strip>, "mutation">;
1433
+ /**
1434
+ * The step switch matrix (D1065): per step, the cluster mode, how many
1435
+ * cameras turn it on / off, and per node and device the effective cell —
1436
+ * computed by the same placement function the attach path runs. The
1437
+ * inspector renders this; it never derives a cell itself.
1438
+ */
1439
+ readonly getStepSwitches: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
1440
+ steps: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1441
+ stepId: z.ZodString;
1442
+ name: z.ZodString;
1443
+ slot: z.ZodString;
1444
+ clusterMode: z.ZodNullable<z.ZodEnum<{
1445
+ off: "off";
1446
+ on: "on";
1447
+ "opt-in": "opt-in";
1448
+ }>>;
1449
+ effectiveMode: z.ZodEnum<{
1450
+ off: "off";
1451
+ on: "on";
1452
+ "opt-in": "opt-in";
1453
+ }>;
1454
+ camerasEnabling: z.ZodNumber;
1455
+ camerasDisabling: z.ZodNumber;
1456
+ nodes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1457
+ nodeId: z.ZodString;
1458
+ reachable: z.ZodBoolean;
1459
+ stepEnabled: z.ZodNullable<z.ZodBoolean>;
1460
+ devices: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1461
+ deviceKey: z.ZodString;
1462
+ format: z.ZodEnum<{
1463
+ coreml: "coreml";
1464
+ gguf: "gguf";
1465
+ onnx: "onnx";
1466
+ openvino: "openvino";
1467
+ pt: "pt";
1468
+ tflite: "tflite";
1469
+ }>;
1470
+ stepEnabled: z.ZodNullable<z.ZodBoolean>;
1471
+ eligible: z.ZodBoolean;
1472
+ cell: z.ZodDiscriminatedUnion<[z.ZodObject<{
1473
+ kind: z.ZodLiteral<"on">;
1474
+ }, z.core.$strip>, z.ZodObject<{
1475
+ kind: z.ZodLiteral<"off-cluster">;
1476
+ }, z.core.$strip>, z.ZodObject<{
1477
+ kind: z.ZodLiteral<"off-node">;
1478
+ }, z.core.$strip>, z.ZodObject<{
1479
+ kind: z.ZodLiteral<"off-device">;
1480
+ }, z.core.$strip>, z.ZodObject<{
1481
+ kind: z.ZodLiteral<"jump">;
1482
+ toDeviceKey: z.ZodString;
1483
+ }, z.core.$strip>, z.ZodObject<{
1484
+ kind: z.ZodLiteral<"skip">;
1485
+ reason: z.ZodEnum<{
1486
+ "no-compatible-model": "no-compatible-model";
1487
+ "root-not-runnable-on-elected-device": "root-not-runnable-on-elected-device";
1488
+ }>;
1489
+ }, z.core.$strip>, z.ZodObject<{
1490
+ kind: z.ZodLiteral<"zone-driven">;
1491
+ }, z.core.$strip>, z.ZodObject<{
1492
+ kind: z.ZodLiteral<"supplied-by-root">;
1493
+ rootModelId: z.ZodString;
1494
+ }, z.core.$strip>, z.ZodObject<{
1495
+ kind: z.ZodLiteral<"opt-in-unused">;
1496
+ }, z.core.$strip>], "kind">;
1497
+ }, z.core.$strip>>>;
1498
+ }, z.core.$strip>>>;
1499
+ }, z.core.$strip>>>;
1500
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
1264
1501
  /**
1265
1502
  * DEVICE-AWARE merged view of ONE node's inference accelerators. Joins each
1266
1503
  * physical device the node HAS — probed live via a node-pinned
@@ -1304,11 +1541,14 @@ export declare const pipelineOrchestratorCapability: {
1304
1541
  modelId: z.ZodOptional<z.ZodString>;
1305
1542
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1306
1543
  jumpDeviceKey: z.ZodOptional<z.ZodString>;
1544
+ enabled: z.ZodOptional<z.ZodBoolean>;
1307
1545
  }, z.core.$strip>>>;
1308
1546
  exclusion: z.ZodNullable<z.ZodEnum<{
1309
1547
  "accelerator-preferred": "accelerator-preferred";
1310
1548
  "cannot-host-camera-root": "cannot-host-camera-root";
1311
1549
  disabled: "disabled";
1550
+ "no-gpu-device": "no-gpu-device";
1551
+ "root-switched-off": "root-switched-off";
1312
1552
  unavailable: "unavailable";
1313
1553
  }>>;
1314
1554
  }, z.core.$strip>>>;
@@ -355,6 +355,7 @@ export declare const RunnerInferenceDeviceSchema: z.ZodObject<{
355
355
  modelId: z.ZodOptional<z.ZodString>;
356
356
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
357
357
  }, z.core.$strip>>>;
358
+ disabledSteps: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
358
359
  }, z.core.$strip>;
359
360
  export type RunnerInferenceDevice = z.infer<typeof RunnerInferenceDeviceSchema>;
360
361
  /**
@@ -457,6 +458,7 @@ declare const RunnerCameraConfigSchema: z.ZodObject<{
457
458
  modelId: z.ZodOptional<z.ZodString>;
458
459
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
459
460
  }, z.core.$strip>>>;
461
+ disabledSteps: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
460
462
  }, z.core.$strip>>>>;
461
463
  }, z.core.$strip>;
462
464
  /**
@@ -759,6 +761,7 @@ export declare const pipelineRunnerCapability: {
759
761
  modelId: z.ZodOptional<z.ZodString>;
760
762
  settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
761
763
  }, z.core.$strip>>>;
764
+ disabledSteps: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
762
765
  }, z.core.$strip>>>>;
763
766
  }, z.core.$strip>, z.ZodObject<{
764
767
  success: z.ZodLiteral<true>;
package/dist/client.js CHANGED
@@ -29934,6 +29934,10 @@ function createSystemProxy(api) {
29934
29934
  setAgentReachableHost: (input) => dispatch("pipelineOrchestrator", "setAgentReachableHost", "mutation", input),
29935
29935
  setAgentInferenceDevices: (input) => dispatch("pipelineOrchestrator", "setAgentInferenceDevices", "mutation", input),
29936
29936
  setNodeStepSettings: (input) => dispatch("pipelineOrchestrator", "setNodeStepSettings", "mutation", input),
29937
+ setClusterStepMode: (input) => dispatch("pipelineOrchestrator", "setClusterStepMode", "mutation", input),
29938
+ setNodeStepEnabled: (input) => dispatch("pipelineOrchestrator", "setNodeStepEnabled", "mutation", input),
29939
+ setDeviceStepEnabled: (input) => dispatch("pipelineOrchestrator", "setDeviceStepEnabled", "mutation", input),
29940
+ getStepSwitches: (input) => dispatch("pipelineOrchestrator", "getStepSwitches", "query", input),
29937
29941
  getNodeInferenceDevices: (input) => dispatch("pipelineOrchestrator", "getNodeInferenceDevices", "query", input),
29938
29942
  forgetInferenceDevice: (input) => dispatch("pipelineOrchestrator", "forgetInferenceDevice", "mutation", input),
29939
29943
  resetNodePipelineDefaults: (input) => dispatch("pipelineOrchestrator", "resetNodePipelineDefaults", "mutation", input),
package/dist/client.mjs CHANGED
@@ -29933,6 +29933,10 @@ function createSystemProxy(api) {
29933
29933
  setAgentReachableHost: (input) => dispatch("pipelineOrchestrator", "setAgentReachableHost", "mutation", input),
29934
29934
  setAgentInferenceDevices: (input) => dispatch("pipelineOrchestrator", "setAgentInferenceDevices", "mutation", input),
29935
29935
  setNodeStepSettings: (input) => dispatch("pipelineOrchestrator", "setNodeStepSettings", "mutation", input),
29936
+ setClusterStepMode: (input) => dispatch("pipelineOrchestrator", "setClusterStepMode", "mutation", input),
29937
+ setNodeStepEnabled: (input) => dispatch("pipelineOrchestrator", "setNodeStepEnabled", "mutation", input),
29938
+ setDeviceStepEnabled: (input) => dispatch("pipelineOrchestrator", "setDeviceStepEnabled", "mutation", input),
29939
+ getStepSwitches: (input) => dispatch("pipelineOrchestrator", "getStepSwitches", "query", input),
29936
29940
  getNodeInferenceDevices: (input) => dispatch("pipelineOrchestrator", "getNodeInferenceDevices", "query", input),
29937
29941
  forgetInferenceDevice: (input) => dispatch("pipelineOrchestrator", "forgetInferenceDevice", "mutation", input),
29938
29942
  resetNodePipelineDefaults: (input) => dispatch("pipelineOrchestrator", "resetNodePipelineDefaults", "mutation", input),
@@ -10,7 +10,7 @@ import type { HeroSceneMode } from './hero-scene.js';
10
10
  import type { HeroState } from './hero-state.js';
11
11
  import type { HeroText } from './hero-text.js';
12
12
  /** Which cap a state reading comes from; `STATE_SOURCE_ORDER` ranks them. */
13
- export type StateSource = 'media-player' | 'dishwasher' | 'lock-control' | 'alarm-panel' | 'vacuum-control' | 'lawn-mower-control' | 'fan-control' | 'pet-feeder' | 'pet-fountain' | 'automation-control' | 'script-runner' | 'event-emitter' | 'running-state' | 'switch' | 'contact' | 'group-active' | 'cover' | 'valve' | 'humidifier' | 'brightness' | 'smoke' | 'flood' | 'gas' | 'tamper' | 'vibration' | 'doorbell' | 'motion' | 'presence' | 'update' | 'weather' | 'image' | 'control' | 'meter' | 'binary' | 'button' | 'climate-control' | 'sensor';
13
+ export type StateSource = 'media-player' | 'dishwasher' | 'lock-control' | 'alarm-panel' | 'vacuum-control' | 'lawn-mower-control' | 'fan-control' | 'pet-feeder' | 'pet-fountain' | 'automation-control' | 'script-runner' | 'event-emitter' | 'running-state' | 'workload' | 'switch' | 'contact' | 'group-active' | 'cover' | 'valve' | 'humidifier' | 'brightness' | 'smoke' | 'flood' | 'gas' | 'tamper' | 'vibration' | 'doorbell' | 'motion' | 'presence' | 'update' | 'weather' | 'image' | 'control' | 'meter' | 'binary' | 'button' | 'climate-control' | 'sensor';
14
14
  export interface StateReading {
15
15
  readonly source: StateSource;
16
16
  readonly state: HeroState;