@camstack/types 1.0.2 → 1.0.4

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/dist/index.mjs CHANGED
@@ -621,14 +621,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
621
621
  EventCategory["DeviceSleeping"] = "device.sleeping";
622
622
  EventCategory["RetentionCleanup"] = "retention.cleanup";
623
623
  /**
624
- * Progress snapshot emitted by `BulkUpdateCoordinator` on every state
625
- * transition (item status change, phase change, completion, cancel).
626
- * Payload is `BulkUpdateState`. Admin UI subscribes via `useLiveEvent`
627
- * to drive the sticky `BulkUpdateBanner` and per-row `AddonRowBadge`.
628
- *
629
- * Spec: docs/superpowers/specs/2026-05-21-addons-bulk-update-progress-design.md
624
+ * Legacy bulk-update progress snapshot (payload `BulkUpdateState`). No longer
625
+ * emitted F3 removed the coordinator that produced it; "Update all" now runs
626
+ * as one lifecycle engine job (`AddonsJobProgress`/`AddonsJobLog`). Retained
627
+ * (with `BulkUpdateState`) only to avoid regenerating the event maps; removed
628
+ * in F4 once live bulk progress is re-implemented over the engine events.
630
629
  */
631
630
  EventCategory["AddonsBulkUpdateProgress"] = "addons.bulk-update-progress";
631
+ EventCategory["AddonsJobProgress"] = "addons.job-progress";
632
+ EventCategory["AddonsJobLog"] = "addons.job-log";
632
633
  /**
633
634
  * A container's child visibility toggled (hidden/shown). Emitted by the
634
635
  * `accessories` cap when a child device is hidden or revealed.
@@ -13086,10 +13087,6 @@ function createSystemProxy(api) {
13086
13087
  listCapabilityProviders: (input) => dispatch("addons", "listCapabilityProviders", "query", input),
13087
13088
  setCapabilityProviderEnabled: (input) => dispatch("addons", "setCapabilityProviderEnabled", "mutation", input),
13088
13089
  updateFrameworkPackage: (input) => dispatch("addons", "updateFrameworkPackage", "mutation", input),
13089
- startBulkUpdate: (input) => dispatch("addons", "startBulkUpdate", "mutation", input),
13090
- getBulkUpdateState: (input) => dispatch("addons", "getBulkUpdateState", "query", input),
13091
- cancelBulkUpdate: (input) => dispatch("addons", "cancelBulkUpdate", "mutation", input),
13092
- listActiveBulkUpdates: (input) => dispatch("addons", "listActiveBulkUpdates", "query", input),
13093
13090
  getVersions: (input) => dispatch("addons", "getVersions", "query", input),
13094
13091
  restartAddon: (input) => dispatch("addons", "restartAddon", "mutation", input),
13095
13092
  retryLoad: (input) => dispatch("addons", "retryLoad", "mutation", input),
@@ -13099,6 +13096,10 @@ function createSystemProxy(api) {
13099
13096
  setAddonAutoUpdate: (input) => dispatch("addons", "setAddonAutoUpdate", "mutation", input),
13100
13097
  applyAutoUpdateToAll: (input) => dispatch("addons", "applyAutoUpdateToAll", "mutation", input),
13101
13098
  custom: (input) => dispatch("addons", "custom", "mutation", input),
13099
+ startJob: (input) => dispatch("addons", "startJob", "mutation", input),
13100
+ getJob: (input) => dispatch("addons", "getJob", "query", input),
13101
+ listJobs: (input) => dispatch("addons", "listJobs", "query", input),
13102
+ cancelJob: (input) => dispatch("addons", "cancelJob", "mutation", input),
13102
13103
  onAddonLogs: (input, push) => dispatch("addons", "onAddonLogs", "subscription", input, push)
13103
13104
  },
13104
13105
  addonSettings: {
@@ -22097,6 +22098,71 @@ var integrationsCapability = {
22097
22098
  }
22098
22099
  };
22099
22100
  //#endregion
22101
+ //#region src/lifecycle/job.ts
22102
+ var jobKindSchema = z.enum([
22103
+ "install",
22104
+ "update",
22105
+ "uninstall",
22106
+ "restart"
22107
+ ]);
22108
+ var taskPhaseSchema = z.enum([
22109
+ "queued",
22110
+ "fetching",
22111
+ "staged",
22112
+ "validating",
22113
+ "applying",
22114
+ "restarting",
22115
+ "applied",
22116
+ "done",
22117
+ "failed",
22118
+ "skipped"
22119
+ ]);
22120
+ var taskTargetSchema = z.enum(["framework", "addon"]);
22121
+ var taskLogEntrySchema = z.object({
22122
+ tsMs: z.number(),
22123
+ nodeId: z.string(),
22124
+ packageName: z.string(),
22125
+ phase: taskPhaseSchema,
22126
+ message: z.string()
22127
+ });
22128
+ var lifecycleTaskSchema = z.object({
22129
+ taskId: z.string(),
22130
+ nodeId: z.string(),
22131
+ packageName: z.string(),
22132
+ fromVersion: z.string().nullable(),
22133
+ toVersion: z.string(),
22134
+ target: taskTargetSchema,
22135
+ phase: taskPhaseSchema,
22136
+ stagedPath: z.string().nullable(),
22137
+ attempts: z.number(),
22138
+ steps: z.array(taskLogEntrySchema),
22139
+ error: z.string().nullable(),
22140
+ startedAtMs: z.number().nullable(),
22141
+ finishedAtMs: z.number().nullable()
22142
+ });
22143
+ var lifecycleJobStateSchema = z.enum([
22144
+ "running",
22145
+ "completed",
22146
+ "failed",
22147
+ "partially-failed",
22148
+ "cancelled"
22149
+ ]);
22150
+ var lifecycleJobScopeSchema = z.enum([
22151
+ "single",
22152
+ "bulk",
22153
+ "cluster"
22154
+ ]);
22155
+ var lifecycleJobSchema = z.object({
22156
+ jobId: z.string(),
22157
+ kind: jobKindSchema,
22158
+ createdAtMs: z.number(),
22159
+ createdBy: z.string(),
22160
+ scope: lifecycleJobScopeSchema,
22161
+ tasks: z.array(lifecycleTaskSchema),
22162
+ state: lifecycleJobStateSchema,
22163
+ schemaVersion: z.literal(1)
22164
+ });
22165
+ //#endregion
22100
22166
  //#region src/capabilities/addons.cap.ts
22101
22167
  /**
22102
22168
  * addons — system-scoped singleton capability for addon package
@@ -22280,7 +22346,7 @@ var BulkUpdatePhaseSchema = z.enum([
22280
22346
  "restarting",
22281
22347
  "finalizing"
22282
22348
  ]);
22283
- var BulkUpdateStateSchema = z.object({
22349
+ z.object({
22284
22350
  id: z.string(),
22285
22351
  nodeId: z.string(),
22286
22352
  startedAtMs: z.number(),
@@ -22516,54 +22582,6 @@ var addonsCapability = {
22516
22582
  kind: "mutation",
22517
22583
  auth: "admin"
22518
22584
  }),
22519
- /**
22520
- * Kicks off a server-side bulk update operation and returns the bulk
22521
- * id immediately. The operation runs asynchronously; observe progress
22522
- * via the `AddonsBulkUpdateProgress` event or `getBulkUpdateState`.
22523
- * Items with `isSystem: true` use `deferRestart` — the hub restarts
22524
- * ONCE at the end of the system phase, after all system packages are
22525
- * installed.
22526
- *
22527
- * `items[].version` is REQUIRED — callers must pass the resolved
22528
- * version from `listUpdates`. There is no `'latest'` default here
22529
- * (unlike `updatePackage`) to guarantee deterministic bulk rolls.
22530
- */
22531
- startBulkUpdate: method(z.object({
22532
- nodeId: z.string(),
22533
- items: z.array(z.object({
22534
- name: z.string(),
22535
- version: z.string(),
22536
- isSystem: z.boolean()
22537
- })).readonly()
22538
- }), z.object({ id: z.string() }), {
22539
- kind: "mutation",
22540
- auth: "admin"
22541
- }),
22542
- /**
22543
- * Returns the current state of a bulk update by id.
22544
- * Returns `null` if the id is unknown or has been auto-cleaned
22545
- * (5 minutes after `completedAt` the record is evicted from memory).
22546
- */
22547
- getBulkUpdateState: method(z.object({ id: z.string() }), BulkUpdateStateSchema.nullable(), { auth: "admin" }),
22548
- /**
22549
- * Cancels an in-flight bulk update. The update loop exits after the
22550
- * currently-processing item completes — cancellation is not
22551
- * instantaneous. Has no effect once the `restarting` phase has been
22552
- * entered (the hub is already shutting down at that point).
22553
- * Returns `{ cancelled: false }` if the id is unknown, the operation
22554
- * has already completed, or the `restarting` phase is active.
22555
- */
22556
- cancelBulkUpdate: method(z.object({ id: z.string() }), z.object({ cancelled: z.boolean() }), {
22557
- kind: "mutation",
22558
- auth: "admin"
22559
- }),
22560
- /**
22561
- * Lists all currently active (non-completed) bulk updates.
22562
- * If `nodeId` is provided, filters to only bulk updates targeting
22563
- * that node. Useful for restoring an in-progress banner on a fresh
22564
- * page load when the UI reconnects mid-operation.
22565
- */
22566
- listActiveBulkUpdates: method(z.object({ nodeId: z.string().optional() }), z.array(BulkUpdateStateSchema).readonly(), { auth: "admin" }),
22567
22585
  getVersions: method(z.object({ name: z.string() }), z.array(PackageVersionInfoSchema).readonly()),
22568
22586
  restartAddon: method(z.object({ addonId: z.string() }), RestartAddonResultSchema, {
22569
22587
  kind: "mutation",
@@ -22600,6 +22618,51 @@ var addonsCapability = {
22600
22618
  auth: "admin"
22601
22619
  }),
22602
22620
  custom: method(CustomActionInputSchema, z.unknown(), { kind: "mutation" }),
22621
+ /**
22622
+ * Start a lifecycle job (install / update / uninstall / restart) for one
22623
+ * or more addon packages. Returns the `jobId` immediately — the job runs
22624
+ * asynchronously. Observe progress via `EventCategory.AddonsJobProgress` /
22625
+ * `AddonsJobLog` events or poll `getJob`.
22626
+ *
22627
+ * For a single-addon update on the hub the provider also routes
22628
+ * `updatePackage` through this path so the fast swap + atomic-restart
22629
+ * path (`applyStagedAddonUpdate`) is always used.
22630
+ */
22631
+ startJob: method(z.object({
22632
+ kind: z.enum([
22633
+ "install",
22634
+ "update",
22635
+ "uninstall",
22636
+ "restart"
22637
+ ]),
22638
+ targets: z.array(z.object({
22639
+ name: z.string().min(1),
22640
+ version: z.string().min(1)
22641
+ })).min(1),
22642
+ nodeIds: z.array(z.string()).optional()
22643
+ }), z.object({ jobId: z.string() }), {
22644
+ kind: "mutation",
22645
+ auth: "admin"
22646
+ }),
22647
+ /**
22648
+ * Retrieve a lifecycle job by id. Returns `null` when the id is unknown
22649
+ * (e.g. evicted after the retention window).
22650
+ */
22651
+ getJob: method(z.object({ jobId: z.string() }), lifecycleJobSchema.nullable(), { auth: "admin" }),
22652
+ /**
22653
+ * List lifecycle jobs. When `activeOnly` is true, only jobs still in
22654
+ * `running` state are returned.
22655
+ */
22656
+ listJobs: method(z.object({ activeOnly: z.boolean().optional() }), z.array(lifecycleJobSchema), { auth: "admin" }),
22657
+ /**
22658
+ * Cancel a lifecycle job that is queued but not yet actively running.
22659
+ * Returns `{ cancelled: false }` if the job is unknown, already in a
22660
+ * terminal state, or actively executing (cannot abort mid-flight).
22661
+ */
22662
+ cancelJob: method(z.object({ jobId: z.string() }), z.object({ cancelled: z.boolean() }), {
22663
+ kind: "mutation",
22664
+ auth: "admin"
22665
+ }),
22603
22666
  onAddonLogs: method(z.object({
22604
22667
  addonId: z.string(),
22605
22668
  level: LogLevelSchema$1.optional()
@@ -23561,7 +23624,7 @@ var METHOD_ACCESS_MAP = Object.freeze({
23561
23624
  addonId: null,
23562
23625
  access: "create"
23563
23626
  },
23564
- "addons.cancelBulkUpdate": {
23627
+ "addons.cancelJob": {
23565
23628
  capName: "addons",
23566
23629
  capScope: "system",
23567
23630
  addonId: null,
@@ -23591,7 +23654,7 @@ var METHOD_ACCESS_MAP = Object.freeze({
23591
23654
  addonId: null,
23592
23655
  access: "view"
23593
23656
  },
23594
- "addons.getBulkUpdateState": {
23657
+ "addons.getJob": {
23595
23658
  capName: "addons",
23596
23659
  capScope: "system",
23597
23660
  addonId: null,
@@ -23639,19 +23702,19 @@ var METHOD_ACCESS_MAP = Object.freeze({
23639
23702
  addonId: null,
23640
23703
  access: "view"
23641
23704
  },
23642
- "addons.listActiveBulkUpdates": {
23705
+ "addons.listCapabilityProviders": {
23643
23706
  capName: "addons",
23644
23707
  capScope: "system",
23645
23708
  addonId: null,
23646
23709
  access: "view"
23647
23710
  },
23648
- "addons.listCapabilityProviders": {
23711
+ "addons.listFrameworkPackages": {
23649
23712
  capName: "addons",
23650
23713
  capScope: "system",
23651
23714
  addonId: null,
23652
23715
  access: "view"
23653
23716
  },
23654
- "addons.listFrameworkPackages": {
23717
+ "addons.listJobs": {
23655
23718
  capName: "addons",
23656
23719
  capScope: "system",
23657
23720
  addonId: null,
@@ -23735,7 +23798,7 @@ var METHOD_ACCESS_MAP = Object.freeze({
23735
23798
  addonId: null,
23736
23799
  access: "create"
23737
23800
  },
23738
- "addons.startBulkUpdate": {
23801
+ "addons.startJob": {
23739
23802
  capName: "addons",
23740
23803
  capScope: "system",
23741
23804
  addonId: null,
@@ -28022,6 +28085,34 @@ function getCapsByProviderKind(kind) {
28022
28085
  return out;
28023
28086
  }
28024
28087
  //#endregion
28088
+ //#region src/lifecycle/framework-swap.ts
28089
+ var frameworkSwapPackageSchema = z.object({
28090
+ name: z.string(),
28091
+ stagedPath: z.string(),
28092
+ backupPath: z.string(),
28093
+ toVersion: z.string(),
28094
+ fromVersion: z.string().nullable()
28095
+ });
28096
+ var pendingFrameworkSwapSchema = z.object({
28097
+ jobId: z.string(),
28098
+ taskId: z.string(),
28099
+ packages: z.array(frameworkSwapPackageSchema),
28100
+ requestedAtMs: z.number(),
28101
+ schemaVersion: z.literal(1)
28102
+ });
28103
+ var frameworkSwapConfirmSchema = z.object({
28104
+ jobId: z.string(),
28105
+ taskId: z.string(),
28106
+ backups: z.array(z.object({
28107
+ name: z.string(),
28108
+ backupPath: z.string(),
28109
+ livePath: z.string()
28110
+ })),
28111
+ appliedAtMs: z.number(),
28112
+ bootAttempts: z.number(),
28113
+ schemaVersion: z.literal(1)
28114
+ });
28115
+ //#endregion
28025
28116
  //#region src/util/location-match.ts
28026
28117
  /**
28027
28118
  * Pure fuzzy matcher for adoption location import. Normalized
@@ -28359,4 +28450,4 @@ function bindAddonActions(api, addonId, catalog) {
28359
28450
  return out;
28360
28451
  }
28361
28452
  //#endregion
28362
- export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_FEATURES, DEFAULT_RETENTION, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderAssignmentSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DetectorOutputSchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindSchema, EventSourceType, ExportSetupFieldSchema, ExportSetupSchema, ExposedDeviceSchema, ExposedResourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageStatusSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, MACRO_LABELS, METHOD_ACCESS_MAP, MODEL_FORMATS, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OauthIntegrationDescriptorSchema, ObjectEventSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RECOGNITION_TYPES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RegisteredStreamSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, ScopedTokenSchema, ScopedTokenSummarySchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamInfoSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TIMEZONES, TamperStatusSchema, TankStatusSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackSchema, TrackStateSchema, TrackedDetectionSchema, TurnServerSchema, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WidgetHostEnum, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, colorCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, decoderCapability, defineCustomActions, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateSchemaFields, errMsg, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, hfModelUrl, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isDeployableToAgent, isDeviceConfigCap, isEvent, lawnMowerControlCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, osdCapability, parseCameraStreamConfig, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, presenceCapability, pressureSensorCapability, privacyMaskCapability, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readinessKey, rebootCapability, recordingCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveDetectionRuntime, resolveDeviceProfile, resolveModelFormat, resolveRunnerId, restreamerCapability, runInferenceStep, scopeKey, scriptRunnerCapability, selectAssignedProfileSlots, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, snapshotProviderCapability, ssoBridgeCapability, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamingEngineCapability, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, temperatureSensorCapability, toDeviceSummary, toStreamSourceEntry, toastCapability, turnProviderCapability, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, valveCapability, vibrationCapability, videoclipsCapability, waterHeaterCapability, weatherCapability, webrtcCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
28453
+ export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_FEATURES, DEFAULT_RETENTION, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_INFO, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderAssignmentSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DetectorOutputSchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindSchema, EventSourceType, ExportSetupFieldSchema, ExportSetupSchema, ExposedDeviceSchema, ExposedResourceSchema, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageStatusSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, MACRO_LABELS, METHOD_ACCESS_MAP, MODEL_FORMATS, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OauthIntegrationDescriptorSchema, ObjectEventSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, RECOGNITION_TYPES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RegisteredStreamSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, ScopedTokenSchema, ScopedTokenSummarySchema, ScriptRunnerStatusSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamInfoSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TIMEZONES, TamperStatusSchema, TankStatusSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackSchema, TrackStateSchema, TrackedDetectionSchema, TurnServerSchema, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WidgetHostEnum, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, colorCapability, connectivityCapability, consumablesCapability, contactCapability, controlCapability, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, decoderCapability, defineCustomActions, detectionPipelineCapability, deviceAdoptionCapability, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateSchemaFields, errMsg, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, frameworkSwapConfirmSchema, frameworkSwapPackageSchema, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, hfModelUrl, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isDeployableToAgent, isDeviceConfigCap, isEvent, jobKindSchema, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, osdCapability, parseCameraStreamConfig, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, pendingFrameworkSwapSchema, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, presenceCapability, pressureSensorCapability, privacyMaskCapability, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readinessKey, rebootCapability, recordingCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveDetectionRuntime, resolveDeviceProfile, resolveModelFormat, resolveRunnerId, restreamerCapability, runInferenceStep, scopeKey, scriptRunnerCapability, selectAssignedProfileSlots, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, snapshotProviderCapability, ssoBridgeCapability, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, streamingEngineCapability, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, toDeviceSummary, toStreamSourceEntry, toastCapability, turnProviderCapability, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, valveCapability, vibrationCapability, videoclipsCapability, waterHeaterCapability, weatherCapability, webrtcCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Minimal configuration port consumed by the shared `NodeRuntime`.
3
+ *
4
+ * The runtime never reaches a concrete config service: hub and agent each
5
+ * supply their own adapter (the hub over its `ConfigService`, the agent over
6
+ * env + `/data/agent.json`). Keeping the surface to a namespaced get/set keeps
7
+ * the runtime host-agnostic — a port leak (the runtime reaching a backend type)
8
+ * must break the agent build, which is the desired signal.
9
+ */
10
+ export interface ConfigPort {
11
+ /** Read a namespaced config value (e.g. "capabilities.singleton.storage"). */
12
+ get<T = string>(key: string): T | undefined;
13
+ /** Persist a namespaced config value. May be async (storage-backed). */
14
+ set(key: string, value: unknown): void | Promise<void>;
15
+ }
@@ -278,7 +278,7 @@ export interface SystemReadyStatePayload {
278
278
  * `framework-update` — single system-package update via `updateFrameworkPackage`
279
279
  * `manual` — operator-triggered restart (restartServer)
280
280
  * `system` — internal / supervisor-initiated restart
281
- * `framework-bulk-update` — multi-package bulk update orchestrated by BulkUpdateCoordinator
281
+ * `framework-bulk-update` — multi-package bulk update run as one lifecycle engine job
282
282
  */
283
283
  export interface PendingRestartMarkerPayload {
284
284
  readonly kind: 'framework-update' | 'manual' | 'system' | 'framework-bulk-update';
@@ -952,12 +952,10 @@ export interface EventCatalog {
952
952
  readonly freedMB?: number;
953
953
  };
954
954
  /**
955
- * Progress snapshot emitted by `BulkUpdateCoordinator` on every state
956
- * transition (item status change, phase change, completion, cancel).
957
- * Payload is `BulkUpdateState`. Admin UI subscribes via `useLiveEvent`
958
- * to drive the sticky `BulkUpdateBanner` and per-row `AddonRowBadge`.
959
- *
960
- * Spec: docs/superpowers/specs/2026-05-21-addons-bulk-update-progress-design.md
955
+ * Legacy bulk-update progress snapshot (payload `BulkUpdateState`). No longer
956
+ * emitted F3 removed the coordinator that produced it; "Update all" now runs
957
+ * as one lifecycle engine job. Retained only to keep the event maps stable;
958
+ * removed in F4 once live bulk progress moves to the engine events.
961
959
  */
962
960
  'addons.bulk-update-progress': BulkUpdateState;
963
961
  /**
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ export declare const frameworkSwapPackageSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ stagedPath: z.ZodString;
5
+ backupPath: z.ZodString;
6
+ toVersion: z.ZodString;
7
+ fromVersion: z.ZodNullable<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ export type FrameworkSwapPackage = z.infer<typeof frameworkSwapPackageSchema>;
10
+ export declare const pendingFrameworkSwapSchema: z.ZodObject<{
11
+ jobId: z.ZodString;
12
+ taskId: z.ZodString;
13
+ packages: z.ZodArray<z.ZodObject<{
14
+ name: z.ZodString;
15
+ stagedPath: z.ZodString;
16
+ backupPath: z.ZodString;
17
+ toVersion: z.ZodString;
18
+ fromVersion: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ requestedAtMs: z.ZodNumber;
21
+ schemaVersion: z.ZodLiteral<1>;
22
+ }, z.core.$strip>;
23
+ export type PendingFrameworkSwap = z.infer<typeof pendingFrameworkSwapSchema>;
24
+ export declare const frameworkSwapConfirmSchema: z.ZodObject<{
25
+ jobId: z.ZodString;
26
+ taskId: z.ZodString;
27
+ backups: z.ZodArray<z.ZodObject<{
28
+ name: z.ZodString;
29
+ backupPath: z.ZodString;
30
+ livePath: z.ZodString;
31
+ }, z.core.$strip>>;
32
+ appliedAtMs: z.ZodNumber;
33
+ bootAttempts: z.ZodNumber;
34
+ schemaVersion: z.ZodLiteral<1>;
35
+ }, z.core.$strip>;
36
+ export type FrameworkSwapConfirm = z.infer<typeof frameworkSwapConfirmSchema>;
@@ -0,0 +1,2 @@
1
+ export * from './job.js';
2
+ export * from './framework-swap.js';
@@ -0,0 +1,177 @@
1
+ import { z } from 'zod';
2
+ export declare const jobKindSchema: z.ZodEnum<{
3
+ update: "update";
4
+ install: "install";
5
+ uninstall: "uninstall";
6
+ restart: "restart";
7
+ }>;
8
+ export type JobKind = z.infer<typeof jobKindSchema>;
9
+ export declare const taskPhaseSchema: z.ZodEnum<{
10
+ queued: "queued";
11
+ fetching: "fetching";
12
+ staged: "staged";
13
+ validating: "validating";
14
+ applying: "applying";
15
+ restarting: "restarting";
16
+ applied: "applied";
17
+ done: "done";
18
+ failed: "failed";
19
+ skipped: "skipped";
20
+ }>;
21
+ export type TaskPhase = z.infer<typeof taskPhaseSchema>;
22
+ export declare const taskTargetSchema: z.ZodEnum<{
23
+ addon: "addon";
24
+ framework: "framework";
25
+ }>;
26
+ export type TaskTarget = z.infer<typeof taskTargetSchema>;
27
+ export declare const taskLogEntrySchema: z.ZodObject<{
28
+ tsMs: z.ZodNumber;
29
+ nodeId: z.ZodString;
30
+ packageName: z.ZodString;
31
+ phase: z.ZodEnum<{
32
+ queued: "queued";
33
+ fetching: "fetching";
34
+ staged: "staged";
35
+ validating: "validating";
36
+ applying: "applying";
37
+ restarting: "restarting";
38
+ applied: "applied";
39
+ done: "done";
40
+ failed: "failed";
41
+ skipped: "skipped";
42
+ }>;
43
+ message: z.ZodString;
44
+ }, z.core.$strip>;
45
+ export type TaskLogEntry = z.infer<typeof taskLogEntrySchema>;
46
+ export declare const lifecycleTaskSchema: z.ZodObject<{
47
+ taskId: z.ZodString;
48
+ nodeId: z.ZodString;
49
+ packageName: z.ZodString;
50
+ fromVersion: z.ZodNullable<z.ZodString>;
51
+ toVersion: z.ZodString;
52
+ target: z.ZodEnum<{
53
+ addon: "addon";
54
+ framework: "framework";
55
+ }>;
56
+ phase: z.ZodEnum<{
57
+ queued: "queued";
58
+ fetching: "fetching";
59
+ staged: "staged";
60
+ validating: "validating";
61
+ applying: "applying";
62
+ restarting: "restarting";
63
+ applied: "applied";
64
+ done: "done";
65
+ failed: "failed";
66
+ skipped: "skipped";
67
+ }>;
68
+ stagedPath: z.ZodNullable<z.ZodString>;
69
+ attempts: z.ZodNumber;
70
+ steps: z.ZodArray<z.ZodObject<{
71
+ tsMs: z.ZodNumber;
72
+ nodeId: z.ZodString;
73
+ packageName: z.ZodString;
74
+ phase: z.ZodEnum<{
75
+ queued: "queued";
76
+ fetching: "fetching";
77
+ staged: "staged";
78
+ validating: "validating";
79
+ applying: "applying";
80
+ restarting: "restarting";
81
+ applied: "applied";
82
+ done: "done";
83
+ failed: "failed";
84
+ skipped: "skipped";
85
+ }>;
86
+ message: z.ZodString;
87
+ }, z.core.$strip>>;
88
+ error: z.ZodNullable<z.ZodString>;
89
+ startedAtMs: z.ZodNullable<z.ZodNumber>;
90
+ finishedAtMs: z.ZodNullable<z.ZodNumber>;
91
+ }, z.core.$strip>;
92
+ export type LifecycleTask = z.infer<typeof lifecycleTaskSchema>;
93
+ export declare const lifecycleJobStateSchema: z.ZodEnum<{
94
+ running: "running";
95
+ failed: "failed";
96
+ completed: "completed";
97
+ "partially-failed": "partially-failed";
98
+ cancelled: "cancelled";
99
+ }>;
100
+ export type LifecycleJobState = z.infer<typeof lifecycleJobStateSchema>;
101
+ export declare const lifecycleJobScopeSchema: z.ZodEnum<{
102
+ single: "single";
103
+ bulk: "bulk";
104
+ cluster: "cluster";
105
+ }>;
106
+ export type LifecycleJobScope = z.infer<typeof lifecycleJobScopeSchema>;
107
+ export declare const lifecycleJobSchema: z.ZodObject<{
108
+ jobId: z.ZodString;
109
+ kind: z.ZodEnum<{
110
+ update: "update";
111
+ install: "install";
112
+ uninstall: "uninstall";
113
+ restart: "restart";
114
+ }>;
115
+ createdAtMs: z.ZodNumber;
116
+ createdBy: z.ZodString;
117
+ scope: z.ZodEnum<{
118
+ single: "single";
119
+ bulk: "bulk";
120
+ cluster: "cluster";
121
+ }>;
122
+ tasks: z.ZodArray<z.ZodObject<{
123
+ taskId: z.ZodString;
124
+ nodeId: z.ZodString;
125
+ packageName: z.ZodString;
126
+ fromVersion: z.ZodNullable<z.ZodString>;
127
+ toVersion: z.ZodString;
128
+ target: z.ZodEnum<{
129
+ addon: "addon";
130
+ framework: "framework";
131
+ }>;
132
+ phase: z.ZodEnum<{
133
+ queued: "queued";
134
+ fetching: "fetching";
135
+ staged: "staged";
136
+ validating: "validating";
137
+ applying: "applying";
138
+ restarting: "restarting";
139
+ applied: "applied";
140
+ done: "done";
141
+ failed: "failed";
142
+ skipped: "skipped";
143
+ }>;
144
+ stagedPath: z.ZodNullable<z.ZodString>;
145
+ attempts: z.ZodNumber;
146
+ steps: z.ZodArray<z.ZodObject<{
147
+ tsMs: z.ZodNumber;
148
+ nodeId: z.ZodString;
149
+ packageName: z.ZodString;
150
+ phase: z.ZodEnum<{
151
+ queued: "queued";
152
+ fetching: "fetching";
153
+ staged: "staged";
154
+ validating: "validating";
155
+ applying: "applying";
156
+ restarting: "restarting";
157
+ applied: "applied";
158
+ done: "done";
159
+ failed: "failed";
160
+ skipped: "skipped";
161
+ }>;
162
+ message: z.ZodString;
163
+ }, z.core.$strip>>;
164
+ error: z.ZodNullable<z.ZodString>;
165
+ startedAtMs: z.ZodNullable<z.ZodNumber>;
166
+ finishedAtMs: z.ZodNullable<z.ZodNumber>;
167
+ }, z.core.$strip>>;
168
+ state: z.ZodEnum<{
169
+ running: "running";
170
+ failed: "failed";
171
+ completed: "completed";
172
+ "partially-failed": "partially-failed";
173
+ cancelled: "cancelled";
174
+ }>;
175
+ schemaVersion: z.ZodLiteral<1>;
176
+ }, z.core.$strip>;
177
+ export type LifecycleJob = z.infer<typeof lifecycleJobSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",