@camstack/types 1.2.95 → 1.2.96

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/addon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-CRPORAAz.js");
3
- const require_sleep = require("./sleep-CMRLJj2e.js");
2
+ const require_event_category = require("./event-category-EY0GNjV9.js");
3
+ const require_sleep = require("./sleep-C2XhJhkd.js");
4
4
  const require_err_msg = require("./err-msg-COpsHMw2.js");
5
5
  //#region src/generated/cap-input-defaults.ts
6
6
  /**
package/dist/addon.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as EventCategory } from "./event-category-XfKNtfCc.mjs";
2
- import { A as expandCapMethods, B as ReadinessTimeoutError, I as nodePin, L as readNodePin, T as adminUiCapability, U as scopeKey, _t as BaseAddon, a as asJsonObject, b as viewerUiCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DisposerChain, ht as DATAPLANE_SECRET_HEADER, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as normalizeAddonInitResult, w as DeviceType, xt as emitReadiness, y as deviceOpsCapability, z as ReadinessRegistry } from "./sleep-zMxKWD0M.mjs";
1
+ import { t as EventCategory } from "./event-category-CIa_iT6b.mjs";
2
+ import { A as expandCapMethods, B as ReadinessTimeoutError, I as nodePin, L as readNodePin, T as adminUiCapability, U as scopeKey, _t as BaseAddon, a as asJsonObject, b as viewerUiCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DisposerChain, ht as DATAPLANE_SECRET_HEADER, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as normalizeAddonInitResult, w as DeviceType, xt as emitReadiness, y as deviceOpsCapability, z as ReadinessRegistry } from "./sleep-B8EIZt4h.mjs";
3
3
  import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
5
5
  /**
@@ -12,6 +12,15 @@ export declare enum EventCategory {
12
12
  * Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
13
13
  */
14
14
  SystemRestartCompleted = "system.restart-completed",
15
+ /**
16
+ * The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
17
+ * Emitted only when the material on disk actually changed, so an
18
+ * operator who trusted the old certificate by hand is told rather than
19
+ * discovering it as a browser error. Payload `TlsCertChangedPayload`.
20
+ *
21
+ * Rule: docs/decisions/adr-0227-*.md
22
+ */
23
+ SystemTlsCertChanged = "system.tls-cert-changed",
15
24
  /**
16
25
  * A newer addon or server-root package version was found by the
17
26
  * authoritative registry check. Emitted once when any observed
package/dist/enums.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-CRPORAAz.js");
2
+ const require_event_category = require("./event-category-EY0GNjV9.js");
3
3
  //#region src/enums/event-source-type.ts
4
4
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
5
5
  EventSourceType["Addon"] = "addon";
package/dist/enums.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-XfKNtfCc.mjs";
1
+ import { t as EventCategory } from "./event-category-CIa_iT6b.mjs";
2
2
  //#region src/enums/event-source-type.ts
3
3
  var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
4
4
  EventSourceType["Addon"] = "addon";
@@ -14,6 +14,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  */
15
15
  EventCategory["SystemRestartCompleted"] = "system.restart-completed";
16
16
  /**
17
+ * The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
18
+ * Emitted only when the material on disk actually changed, so an
19
+ * operator who trusted the old certificate by hand is told rather than
20
+ * discovering it as a browser error. Payload `TlsCertChangedPayload`.
21
+ *
22
+ * Rule: docs/decisions/adr-0227-*.md
23
+ */
24
+ EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
25
+ /**
17
26
  * A newer addon or server-root package version was found by the
18
27
  * authoritative registry check. Emitted once when any observed
19
28
  * `latestVersion` changes (or a package/node first appears behind);
@@ -14,6 +14,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  */
15
15
  EventCategory["SystemRestartCompleted"] = "system.restart-completed";
16
16
  /**
17
+ * The hub reissued its own TLS certificate at boot (`ensureTlsCert`).
18
+ * Emitted only when the material on disk actually changed, so an
19
+ * operator who trusted the old certificate by hand is told rather than
20
+ * discovering it as a browser error. Payload `TlsCertChangedPayload`.
21
+ *
22
+ * Rule: docs/decisions/adr-0227-*.md
23
+ */
24
+ EventCategory["SystemTlsCertChanged"] = "system.tls-cert-changed";
25
+ /**
17
26
  * A newer addon or server-root package version was found by the
18
27
  * authoritative registry check. Emitted once when any observed
19
28
  * `latestVersion` changes (or a package/node first appears behind);
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_event_category = require("./event-category-CRPORAAz.js");
3
- const require_sleep = require("./sleep-CMRLJj2e.js");
2
+ const require_event_category = require("./event-category-EY0GNjV9.js");
3
+ const require_sleep = require("./sleep-C2XhJhkd.js");
4
4
  const require_canonical_hash = require("./canonical-hash-DNV8S5ET.js");
5
5
  const require_enums = require("./enums.js");
6
6
  const require_err_msg = require("./err-msg-COpsHMw2.js");
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as EventCategory } from "./event-category-XfKNtfCc.mjs";
2
- import { $ as EncodedPacketSchema, A as expandCapMethods, B as ReadinessTimeoutError, C as DeviceRole, Ct as WELL_KNOWN_TABS, D as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Dt as hydrateSchema, E as DEFAULT_RUNTIME_STATE_DURABILITY, Et as collectHydratedFieldValues, F as CAP_NODE_PIN_CONTEXT_KEY, G as BrokerStatusSchema, H as readinessKey, I as nodePin, J as CamStreamKindSchema, K as CAM_PROFILE_ORDER, L as readNodePin, M as method, N as resolveCapMount, O as DEVICE_STATUS_METHOD, Ot as resolveHydratedFieldValue, P as systemMethod, Q as DecodedFrameSchema, R as toNodeId, S as DeviceFeature, St as isEvent, T as adminUiCapability, Tt as collectHydratedFieldEntries, U as scopeKey, V as emitDownForOwnedCaps, W as BrokerStatsSchema, X as CameraStreamSchema, Y as CamStreamResolutionSchema, Z as DecodedAudioChunkSchema, _ as createSliceHandle, _t as BaseAddon, a as asJsonObject, at as StreamSourceEntrySchema, b as viewerUiCapability, bt as createEvent, c as parseJsonArray, ct as SubscribeAudioChunksResultSchema, d as BOOT_RECOVERY_BACKOFF_MS, dt as makeProfileBrokerId, et as FrameHandleFormatSchema, f as DEVICE_SCOPED_CAPS, ft as makeSourceBrokerId, g as createMirrorSource, gt as DisposerChain, h as createLazyTrpcSource, ht as DATAPLANE_SECRET_HEADER, i as asJsonArray, it as ProfileSlotStatusSchema, j as isDeviceConfigCap, k as event, l as parseJsonObject, lt as SubscribeFramesInputSchema, m as createDeviceProxy, mt as selectAssignedProfileSlots, n as sleepCancellable, nt as ProfileRtspEntrySchema, o as asNumber, ot as StreamSourceSchema, p as isDeviceScopedCap, pt as parseProfileBrokerId, q as CamProfileSchema, r as asBoolean, rt as ProfileSlotSchema, s as asString, st as SubscribeAudioChunksInputSchema, t as sleep, tt as FrameHandleSchema, u as parseJsonUnknown, ut as SubscribeFramesResultSchema, v as RawStateResultSchema, vt as normalizeAddonInitResult, w as DeviceType, wt as WELL_KNOWN_TAB_MAP, x as ChargingStatus, xt as emitReadiness, y as deviceOpsCapability, yt as createDurableState, z as ReadinessRegistry } from "./sleep-zMxKWD0M.mjs";
1
+ import { t as EventCategory } from "./event-category-CIa_iT6b.mjs";
2
+ import { $ as EncodedPacketSchema, A as expandCapMethods, B as ReadinessTimeoutError, C as DeviceRole, Ct as WELL_KNOWN_TABS, D as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Dt as hydrateSchema, E as DEFAULT_RUNTIME_STATE_DURABILITY, Et as collectHydratedFieldValues, F as CAP_NODE_PIN_CONTEXT_KEY, G as BrokerStatusSchema, H as readinessKey, I as nodePin, J as CamStreamKindSchema, K as CAM_PROFILE_ORDER, L as readNodePin, M as method, N as resolveCapMount, O as DEVICE_STATUS_METHOD, Ot as resolveHydratedFieldValue, P as systemMethod, Q as DecodedFrameSchema, R as toNodeId, S as DeviceFeature, St as isEvent, T as adminUiCapability, Tt as collectHydratedFieldEntries, U as scopeKey, V as emitDownForOwnedCaps, W as BrokerStatsSchema, X as CameraStreamSchema, Y as CamStreamResolutionSchema, Z as DecodedAudioChunkSchema, _ as createSliceHandle, _t as BaseAddon, a as asJsonObject, at as StreamSourceEntrySchema, b as viewerUiCapability, bt as createEvent, c as parseJsonArray, ct as SubscribeAudioChunksResultSchema, d as BOOT_RECOVERY_BACKOFF_MS, dt as makeProfileBrokerId, et as FrameHandleFormatSchema, f as DEVICE_SCOPED_CAPS, ft as makeSourceBrokerId, g as createMirrorSource, gt as DisposerChain, h as createLazyTrpcSource, ht as DATAPLANE_SECRET_HEADER, i as asJsonArray, it as ProfileSlotStatusSchema, j as isDeviceConfigCap, k as event, l as parseJsonObject, lt as SubscribeFramesInputSchema, m as createDeviceProxy, mt as selectAssignedProfileSlots, n as sleepCancellable, nt as ProfileRtspEntrySchema, o as asNumber, ot as StreamSourceSchema, p as isDeviceScopedCap, pt as parseProfileBrokerId, q as CamProfileSchema, r as asBoolean, rt as ProfileSlotSchema, s as asString, st as SubscribeAudioChunksInputSchema, t as sleep, tt as FrameHandleSchema, u as parseJsonUnknown, ut as SubscribeFramesResultSchema, v as RawStateResultSchema, vt as normalizeAddonInitResult, w as DeviceType, wt as WELL_KNOWN_TAB_MAP, x as ChargingStatus, xt as emitReadiness, y as deviceOpsCapability, yt as createDurableState, z as ReadinessRegistry } from "./sleep-B8EIZt4h.mjs";
3
3
  import { a as buildAudioArgs, c as buildVideoArgs, d as logBannerArgs, f as pickVideoEncoder, i as audioPlanFromEncodeProfile, l as invocationFromEncodeProfile, n as Fmp4BoxSplitter, o as buildFfmpegArgs, r as AUDIO_PRESETS, s as buildInputArgs, t as canonicalHash, u as isSoftwareDecode } from "./canonical-hash-rO1sRmEK.mjs";
4
4
  import { EventSourceType } from "./enums.mjs";
5
5
  import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
@@ -1,15 +1,15 @@
1
- import type { FrameResult, AudioResult, ObjectDetection } from '../types/detection.js';
2
- import type { PipelineExecutionTrace, StepCadence } from '../types/pipeline-step.js';
1
+ import type { BulkUpdateState } from '../capabilities/addons.cap.js';
3
2
  import type { MotionRegion } from '../capabilities/motion-detection.cap.js';
3
+ import type { CamProfile } from '../capabilities/schemas/streaming-shared.js';
4
4
  import type { CameraPipelineConfig } from '../types/camera-pipeline.js';
5
+ import type { AudioResult, FrameResult, ObjectDetection } from '../types/detection.js';
6
+ import type { PipelineEngineChoice } from '../types/pipeline.js';
7
+ import type { PipelineExecutionTrace, StepCadence } from '../types/pipeline-step.js';
5
8
  import type { CameraMetrics } from './api-shared.js';
9
+ import type { FrameHandle } from './frame-handle.js';
10
+ import type { NodeProcess, SystemResourceSnapshot } from './metrics-provider.js';
6
11
  import type { RunnerLocalLoad } from './pipeline-runner-capability.js';
7
12
  import type { BrokerStats } from './stream-broker.js';
8
- import type { PipelineEngineChoice } from '../types/pipeline.js';
9
- import type { NodeProcess, SystemResourceSnapshot } from './metrics-provider.js';
10
- import type { FrameHandle } from './frame-handle.js';
11
- import type { BulkUpdateState } from '../capabilities/addons.cap.js';
12
- import type { CamProfile } from '../capabilities/schemas/streaming-shared.js';
13
13
  export interface EventSource {
14
14
  /** Primary source type: 'core', 'addon', 'device', 'pipeline', etc. */
15
15
  type: string;
@@ -460,6 +460,30 @@ export interface PendingRestartMarkerPayload {
460
460
  readonly nodeId?: string;
461
461
  readonly [key: string]: unknown;
462
462
  }
463
+ /**
464
+ * The hub reissued its own TLS certificate (`ensureTlsCert`, D227).
465
+ *
466
+ * Emitted once per boot, only when the certificate actually changed. An
467
+ * operator who installed the previous certificate as trusted by hand has
468
+ * to install `caCertPath` — this event is how they find out, instead of
469
+ * from a browser error.
470
+ */
471
+ export interface TlsCertChangedPayload {
472
+ /** Machine-readable trigger — see `CertRegenerationReason`. */
473
+ readonly reason: string;
474
+ /** SHA-256 fingerprint of the new leaf. */
475
+ readonly fingerprintSha256: string;
476
+ /** SHA-256 fingerprint of the local root — the file to trust. */
477
+ readonly caFingerprintSha256: string;
478
+ /** True when the ROOT rotated too, i.e. previously granted trust is void. */
479
+ readonly caRotated: boolean;
480
+ /** Absolute path of the root certificate the operator should install. */
481
+ readonly caCertPath: string;
482
+ /** ISO timestamp at which the new leaf stops being valid. */
483
+ readonly validTo: string;
484
+ readonly sans: readonly string[];
485
+ readonly [key: string]: unknown;
486
+ }
463
487
  /** One service entry inside a topology process — addon + capabilities. */
464
488
  export interface TopologyService {
465
489
  readonly addonId: string;
@@ -561,6 +585,7 @@ export interface EventCatalog {
561
585
  };
562
586
  'system.restarting': PendingRestartMarkerPayload;
563
587
  'system.restart-completed': PendingRestartMarkerPayload;
588
+ 'system.tls-cert-changed': TlsCertChangedPayload;
564
589
  'update.available': {
565
590
  readonly target: 'addon' | 'server';
566
591
  readonly packageName: string;
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-XfKNtfCc.mjs";
1
+ import { t as EventCategory } from "./event-category-CIa_iT6b.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/interfaces/config-ui.ts
4
4
  /** Predefined tabs with standard label, icon, and sort order.
@@ -1,4 +1,4 @@
1
- const require_event_category = require("./event-category-CRPORAAz.js");
1
+ const require_event_category = require("./event-category-EY0GNjV9.js");
2
2
  let zod = require("zod");
3
3
  //#region src/interfaces/config-ui.ts
4
4
  /** Predefined tabs with standard label, icon, and sort order.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.95",
3
+ "version": "1.2.96",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",