@camstack/types 1.2.342 → 1.2.344

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,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-CO06DNd_.js");
2
+ const require_sleep = require("./sleep-BwkkI2wP.js");
3
3
  const require_event_category = require("./event-category-CHduMGvg.js");
4
4
  const require_err_msg = require("./err-msg-Dx2Kor0g.js");
5
5
  //#region src/generated/cap-input-defaults.ts
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $t as normalizeSecretOwner, A as adminUiCapability, At as PEER_BYTES_MAX_OUTSTANDING, C as deviceOpsCapability, Ct as clearKnownSecrets, Dt as scrubKnownSecrets, Et as registerKnownSecret, I as expandCapMethods, It as DisposerChain, Jt as arrayItemFieldPath, K as ReadinessRegistry, Lt as BaseAddon, Mt as PEER_BYTES_TICKET_TTL_MS, O as describeCustomActions, Ot as shortSecretRefHash, Pt as DATAPLANE_SECRET_HEADER, Qt as isSecretRef, Rt as normalizeAddonInitResult, St as MIN_SCRUBBED_LENGTH, T as DEVICE_CHILDREN_BATCH_MAX, Tt as knownSecretCount, U as nodePin, W as readNodePin, X as scopeKey, Xt as formatSecretScope, Yt as buildSecretRef, Zt as globalSecretScope, _n as isSecretMarkerLike, a as asJsonObject, b as collectZodSecretPaths, bt as REVALIDATE_AFTER_MS, d as BOOT_RECOVERY_BACKOFF_MS, en as parseSecretRef, f as DEVICE_SCOPED_CAPS, fn as SECRET_CLEAR, gn as isSecretMarker, h as createEventBusSliceSource, hn as isSecretFieldView, in as emitReadiness, jt as PEER_BYTES_STALL_MS, kt as PEER_BYTES_CHUNK_BYTES, m as createDeviceProxy, mn as isSecretClear, p as isDeviceScopedCap, pn as classifySecretWrite, q as ReadinessTimeoutError, qt as SECRET_REF_SCHEME, s as asString, t as sleep, u as parseJsonUnknown, vn as makeSecretMarker, w as viewerUiCapability, wt as forgetKnownSecret, x as isZodSecret, xt as createSecretsAccess, yn as toSecretFieldView, yt as resolveSecretViewsIn } from "./sleep-CI0n5D44.mjs";
1
+ import { $t as normalizeSecretOwner, A as adminUiCapability, At as PEER_BYTES_MAX_OUTSTANDING, C as deviceOpsCapability, Ct as clearKnownSecrets, Dt as scrubKnownSecrets, Et as registerKnownSecret, I as expandCapMethods, It as DisposerChain, Jt as arrayItemFieldPath, K as ReadinessRegistry, Lt as BaseAddon, Mt as PEER_BYTES_TICKET_TTL_MS, O as describeCustomActions, Ot as shortSecretRefHash, Pt as DATAPLANE_SECRET_HEADER, Qt as isSecretRef, Rt as normalizeAddonInitResult, St as MIN_SCRUBBED_LENGTH, T as DEVICE_CHILDREN_BATCH_MAX, Tt as knownSecretCount, U as nodePin, W as readNodePin, X as scopeKey, Xt as formatSecretScope, Yt as buildSecretRef, Zt as globalSecretScope, _n as isSecretMarkerLike, a as asJsonObject, b as collectZodSecretPaths, bt as REVALIDATE_AFTER_MS, d as BOOT_RECOVERY_BACKOFF_MS, en as parseSecretRef, f as DEVICE_SCOPED_CAPS, fn as SECRET_CLEAR, gn as isSecretMarker, h as createEventBusSliceSource, hn as isSecretFieldView, in as emitReadiness, jt as PEER_BYTES_STALL_MS, kt as PEER_BYTES_CHUNK_BYTES, m as createDeviceProxy, mn as isSecretClear, p as isDeviceScopedCap, pn as classifySecretWrite, q as ReadinessTimeoutError, qt as SECRET_REF_SCHEME, s as asString, t as sleep, u as parseJsonUnknown, vn as makeSecretMarker, w as viewerUiCapability, wt as forgetKnownSecret, x as isZodSecret, xt as createSecretsAccess, yn as toSecretFieldView, yt as resolveSecretViewsIn } from "./sleep-DwAQ9sqX.mjs";
2
2
  import { t as EventCategory } from "./event-category-DaIZi00R.mjs";
3
3
  import { a as DeviceType, t as errMsg } from "./err-msg-DX6i_MY4.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
@@ -84,6 +84,8 @@ export declare const OsdNamedTemplateSchema: z.ZodObject<{
84
84
  export type OsdNamedTemplate = z.infer<typeof OsdNamedTemplateSchema>;
85
85
  /** Where a slot's value comes from. */
86
86
  export declare const OsdSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
+ kind: z.ZodLiteral<"none">;
88
+ }, z.core.$strip>, z.ZodObject<{
87
89
  kind: z.ZodLiteral<"static">;
88
90
  text: z.ZodString;
89
91
  }, z.core.$strip>, z.ZodObject<{
@@ -110,6 +112,8 @@ export type OsdSource = z.infer<typeof OsdSourceSchema>;
110
112
  export declare const OsdSlotBindingSchema: z.ZodObject<{
111
113
  enabled: z.ZodDefault<z.ZodBoolean>;
112
114
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
+ kind: z.ZodLiteral<"none">;
116
+ }, z.core.$strip>, z.ZodObject<{
113
117
  kind: z.ZodLiteral<"static">;
114
118
  text: z.ZodString;
115
119
  }, z.core.$strip>, z.ZodObject<{
@@ -298,6 +302,8 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
298
302
  binding: z.ZodNullable<z.ZodObject<{
299
303
  enabled: z.ZodDefault<z.ZodBoolean>;
300
304
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
305
+ kind: z.ZodLiteral<"none">;
306
+ }, z.core.$strip>, z.ZodObject<{
301
307
  kind: z.ZodLiteral<"static">;
302
308
  text: z.ZodString;
303
309
  }, z.core.$strip>, z.ZodObject<{
@@ -558,6 +564,8 @@ export declare const osdManagerCapability: {
558
564
  binding: z.ZodNullable<z.ZodObject<{
559
565
  enabled: z.ZodDefault<z.ZodBoolean>;
560
566
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
567
+ kind: z.ZodLiteral<"none">;
568
+ }, z.core.$strip>, z.ZodObject<{
561
569
  kind: z.ZodLiteral<"static">;
562
570
  text: z.ZodString;
563
571
  }, z.core.$strip>, z.ZodObject<{
@@ -837,6 +845,8 @@ export declare const osdManagerCapability: {
837
845
  binding: z.ZodObject<{
838
846
  enabled: z.ZodDefault<z.ZodBoolean>;
839
847
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
848
+ kind: z.ZodLiteral<"none">;
849
+ }, z.core.$strip>, z.ZodObject<{
840
850
  kind: z.ZodLiteral<"static">;
841
851
  text: z.ZodString;
842
852
  }, z.core.$strip>, z.ZodObject<{
@@ -1024,6 +1034,8 @@ export declare const osdManagerCapability: {
1024
1034
  binding: z.ZodNullable<z.ZodObject<{
1025
1035
  enabled: z.ZodDefault<z.ZodBoolean>;
1026
1036
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1037
+ kind: z.ZodLiteral<"none">;
1038
+ }, z.core.$strip>, z.ZodObject<{
1027
1039
  kind: z.ZodLiteral<"static">;
1028
1040
  text: z.ZodString;
1029
1041
  }, z.core.$strip>, z.ZodObject<{
@@ -1220,6 +1232,18 @@ export declare const osdManagerCapability: {
1220
1232
  }, z.core.$strip>, z.ZodObject<{
1221
1233
  success: z.ZodLiteral<true>;
1222
1234
  }, z.core.$strip>, "mutation">;
1235
+ /**
1236
+ * Toggle the camera firmware overlay on/off (`osd.setOverlay` `enabled`).
1237
+ * Distinct from the binding's own `enabled` flag — this is what the
1238
+ * operator sees on the live picture (e.g. Reolink camera name layer).
1239
+ */
1240
+ readonly setSlotCameraEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1241
+ deviceId: z.ZodNumber;
1242
+ slotId: z.ZodString;
1243
+ enabled: z.ZodBoolean;
1244
+ }, z.core.$strip>, z.ZodObject<{
1245
+ success: z.ZodLiteral<true>;
1246
+ }, z.core.$strip>, "mutation">;
1223
1247
  /**
1224
1248
  * Replace one camera's binding configuration from another. Writable source
1225
1249
  * slots are mapped by ordinal onto writable target slots so different
@@ -1243,6 +1267,8 @@ export declare const osdManagerCapability: {
1243
1267
  binding: z.ZodOptional<z.ZodObject<{
1244
1268
  enabled: z.ZodDefault<z.ZodBoolean>;
1245
1269
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1270
+ kind: z.ZodLiteral<"none">;
1271
+ }, z.core.$strip>, z.ZodObject<{
1246
1272
  kind: z.ZodLiteral<"static">;
1247
1273
  text: z.ZodString;
1248
1274
  }, z.core.$strip>, z.ZodObject<{
package/dist/client.js CHANGED
@@ -6020,6 +6020,7 @@ function createDeviceProxy(api, binding, opts) {
6020
6020
  getSourceCatalog: (input) => dispatchSystem("osdManager", "getSourceCatalog", "query", input),
6021
6021
  setSlotBinding: (input) => dispatchSystem("osdManager", "setSlotBinding", "mutation", input),
6022
6022
  clearSlotBinding: (input) => dispatchSystem("osdManager", "clearSlotBinding", "mutation", input),
6023
+ setSlotCameraEnabled: (input) => dispatchSystem("osdManager", "setSlotCameraEnabled", "mutation", input),
6023
6024
  previewSlot: (input) => dispatchSystem("osdManager", "previewSlot", "mutation", input),
6024
6025
  renderDevice: (input) => dispatchSystem("osdManager", "renderDevice", "mutation", input)
6025
6026
  };
package/dist/client.mjs CHANGED
@@ -6019,6 +6019,7 @@ function createDeviceProxy(api, binding, opts) {
6019
6019
  getSourceCatalog: (input) => dispatchSystem("osdManager", "getSourceCatalog", "query", input),
6020
6020
  setSlotBinding: (input) => dispatchSystem("osdManager", "setSlotBinding", "mutation", input),
6021
6021
  clearSlotBinding: (input) => dispatchSystem("osdManager", "clearSlotBinding", "mutation", input),
6022
+ setSlotCameraEnabled: (input) => dispatchSystem("osdManager", "setSlotCameraEnabled", "mutation", input),
6022
6023
  previewSlot: (input) => dispatchSystem("osdManager", "previewSlot", "mutation", input),
6023
6024
  renderDevice: (input) => dispatchSystem("osdManager", "renderDevice", "mutation", input)
6024
6025
  };
@@ -5526,6 +5526,13 @@ export type AppRouter = TrpcCoreRouter<{
5526
5526
  output: z.infer<typeof osdManagerCapability.methods.clearSlotBinding.output>;
5527
5527
  meta: object;
5528
5528
  }>;
5529
+ setSlotCameraEnabled: TRPCMutationProcedure<{
5530
+ input: {
5531
+ [x: string]: unknown;
5532
+ } & z.input<typeof osdManagerCapability.methods.setSlotCameraEnabled.input>;
5533
+ output: z.infer<typeof osdManagerCapability.methods.setSlotCameraEnabled.output>;
5534
+ meta: object;
5535
+ }>;
5529
5536
  copyDeviceConfiguration: TRPCMutationProcedure<{
5530
5537
  input: {
5531
5538
  [x: string]: unknown;
@@ -298,7 +298,7 @@ export interface DeviceProxy {
298
298
  readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'listRecentFaces' | 'getFaceByTrack'>;
299
299
  readonly networkQuality: Pick<InferDeviceProxyCap<typeof networkQualityCapability>, 'getDeviceStats' | 'reportClientStats'>;
300
300
  readonly notificationRules: Pick<InferDeviceProxyCap<typeof notificationRulesCapability>, 'setDeviceMuted'>;
301
- readonly osdManager: Pick<InferDeviceProxyCap<typeof osdManagerCapability>, 'getDeviceOsd' | 'getSourceCatalog' | 'setSlotBinding' | 'clearSlotBinding' | 'previewSlot' | 'renderDevice'>;
301
+ readonly osdManager: Pick<InferDeviceProxyCap<typeof osdManagerCapability>, 'getDeviceOsd' | 'getSourceCatalog' | 'setSlotBinding' | 'clearSlotBinding' | 'setSlotCameraEnabled' | 'previewSlot' | 'renderDevice'>;
302
302
  readonly pipelineExecutor: Pick<InferDeviceProxyCap<typeof pipelineExecutorCapability>, 'runPipeline' | 'runPipelineBatch'>;
303
303
  readonly pipelineOrchestrator: Pick<InferDeviceProxyCap<typeof pipelineOrchestratorCapability>, 'assignPipeline' | 'unassignPipeline' | 'setPipelineDevicePin' | 'getPipelineDevicePin' | 'getPipelineAssignment' | 'getCameraMetrics' | 'assignAudio' | 'unassignAudio' | 'getAudioAssignment' | 'getCameraSettings' | 'setCameraStepToggle' | 'getCameraStepOverrides' | 'setCameraStepOverride' | 'setCameraStepSettings' | 'setCameraPipelineForAgent' | 'resolvePipeline' | 'getCameraSwitches' | 'setCameraSwitch' | 'getCameraStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
304
304
  readonly pipelineRunner: Pick<InferDeviceProxyCap<typeof pipelineRunnerCapability>, 'detachCamera' | 'getCameraMetrics' | 'requestOccupancyBurst' | 'runDetailSubtree' | 'parkTrackFrame' | 'getParkedTrackFrame' | 'releaseParkedTrackFrames'>;
@@ -6,7 +6,7 @@
6
6
  * scope+access check inside `protectedProcedure` (see
7
7
  * `server/backend/src/api/trpc/trpc.middleware.ts`).
8
8
  *
9
- * Coverage: 1290 method paths across 169 capabilities.
9
+ * Coverage: 1291 method paths across 169 capabilities.
10
10
  */
11
11
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
12
12
  export interface MethodAccessRecord {
@@ -6,8 +6,8 @@
6
6
  * system-scope cap that takes a deviceId was previously never device-filtered
7
7
  * — see the generator header).
8
8
  *
9
- * Coverage: 516 methods carry a device reference, of which
10
- * 162 are on SYSTEM-scope caps.
9
+ * Coverage: 517 methods carry a device reference, of which
10
+ * 163 are on SYSTEM-scope caps.
11
11
  *
12
12
  * Top-level fields, number arrays, and one-level arrays of objects carrying
13
13
  * a numeric device field (targets[].deviceId) are all mapped; the matcher
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-CO06DNd_.js");
2
+ const require_sleep = require("./sleep-BwkkI2wP.js");
3
3
  const require_event_category = require("./event-category-CHduMGvg.js");
4
4
  const require_composition = require("./composition-BLWAivB2.js");
5
5
  const require_node_color = require("./node-color.js");
@@ -42914,6 +42914,7 @@ var OsdNamedTemplateSchema = zod.z.object({
42914
42914
  });
42915
42915
  /** Where a slot's value comes from. */
42916
42916
  var OsdSourceSchema = zod.z.discriminatedUnion("kind", [
42917
+ zod.z.object({ kind: zod.z.literal("none") }),
42917
42918
  zod.z.object({
42918
42919
  kind: zod.z.literal("static"),
42919
42920
  text: zod.z.string().max(64)
@@ -43073,6 +43074,19 @@ var osdManagerCapability = {
43073
43074
  auth: "admin"
43074
43075
  }),
43075
43076
  /**
43077
+ * Toggle the camera firmware overlay on/off (`osd.setOverlay` `enabled`).
43078
+ * Distinct from the binding's own `enabled` flag — this is what the
43079
+ * operator sees on the live picture (e.g. Reolink camera name layer).
43080
+ */
43081
+ setSlotCameraEnabled: require_sleep.method(zod.z.object({
43082
+ deviceId: zod.z.number().int(),
43083
+ slotId: zod.z.string().min(1),
43084
+ enabled: zod.z.boolean()
43085
+ }), zod.z.object({ success: zod.z.literal(true) }), {
43086
+ kind: "mutation",
43087
+ auth: "admin"
43088
+ }),
43089
+ /**
43076
43090
  * Replace one camera's binding configuration from another. Writable source
43077
43091
  * slots are mapped by ordinal onto writable target slots so different
43078
43092
  * provider slot ids do not make the copied configuration disappear.
@@ -58159,6 +58173,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
58159
58173
  addonId: null,
58160
58174
  access: "create"
58161
58175
  },
58176
+ "osdManager.setSlotCameraEnabled": {
58177
+ capName: "osd-manager",
58178
+ capScope: "system",
58179
+ addonId: null,
58180
+ access: "create"
58181
+ },
58162
58182
  "osdManager.upsertTemplate": {
58163
58183
  capName: "osd-manager",
58164
58184
  capScope: "system",
@@ -67875,6 +67895,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
67875
67895
  form: "single",
67876
67896
  optional: false
67877
67897
  }],
67898
+ "osdManager.setSlotCameraEnabled": [{
67899
+ name: "deviceId",
67900
+ form: "single",
67901
+ optional: false
67902
+ }],
67878
67903
  "petFeeder.callPet": [{
67879
67904
  name: "deviceId",
67880
67905
  form: "single",
@@ -69291,6 +69316,7 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
69291
69316
  "osdManager.previewSlot",
69292
69317
  "osdManager.renderDevice",
69293
69318
  "osdManager.setSlotBinding",
69319
+ "osdManager.setSlotCameraEnabled",
69294
69320
  "pipelineExecutor.clearModelBoundDeviceOverrides",
69295
69321
  "pipelineExecutor.runPipeline",
69296
69322
  "pipelineExecutor.runPipelineBatch",
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as BrokerStatsSchema, $t as normalizeSecretOwner, A as adminUiCapability, At as PEER_BYTES_MAX_OUTSTANDING, B as resolveCapMount, Bt as parseSecretStatePath, C as deviceOpsCapability, Cn as isKeychainStoredField, Ct as clearKnownSecrets, D as defineCustomActions, Dn as audioChunkBytesPerSample, Dt as scrubKnownSecrets, E as customAction, En as AUDIO_CHUNK_FORMATS, Et as registerKnownSecret, F as event, Ft as SHARE_VIEW_KINDS, G as toNodeId, Gt as resolveSecretMarkers, H as CAP_NODE_PIN_CONTEXT_KEY, Ht as secretTreeFromSchema, I as expandCapMethods, It as DisposerChain, J as emitDownForOwnedCaps, Jt as arrayItemFieldPath, K as ReadinessRegistry, Kt as transformSecretWrite, L as isDeviceConfigCap, Lt as BaseAddon, M as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Mt as PEER_BYTES_TICKET_TTL_MS, N as DEVICE_STATUS_METHOD, Nt as PeerBytesTicketSchema, O as describeCustomActions, On as expandAudioChunkToF32le, Ot as shortSecretRefHash, P as PROVIDER_PIN_FIELD, Pt as DATAPLANE_SECRET_HEADER, Q as AudioStreamPickSchema, Qt as isSecretRef, R as method, Rt as normalizeAddonInitResult, S as RawStateResultSchema, Sn as collectSecretConfigKeys, St as MIN_SCRUBBED_LENGTH, T as DEVICE_CHILDREN_BATCH_MAX, Tn as schemaDeclaresAnyField, Tt as knownSecretCount, U as nodePin, Ut as KeychainWriteRefusedError, V as systemMethod, Vt as secretTreeFromPaths, W as readNodePin, Wt as collectSecretMarkerRefs, X as scopeKey, Xt as formatSecretScope, Y as readinessKey, Yt as buildSecretRef, Z as AudioChunkFormatSchema, Zt as globalSecretScope, _ as createMirrorSource, _n as isSecretMarkerLike, _t as parseProfileBrokerId, a as asJsonObject, an as isEvent, at as CameraStreamSchema, b as collectZodSecretPaths, bn as REDACTED_SECRET, bt as REVALIDATE_AFTER_MS, c as parseJsonArray, cn as collectHydratedFieldEntries, ct as ProfileRtspEntrySchema, d as BOOT_RECOVERY_BACKOFF_MS, dn as resolveHydratedFieldValue, dt as StreamSourceEntrySchema, en as parseSecretRef, et as BrokerStatusSchema, f as DEVICE_SCOPED_CAPS, fn as SECRET_CLEAR, ft as StreamSourceSchema, g as createLazyTrpcSource, gn as isSecretMarker, gt as makeSourceBrokerId, h as createEventBusSliceSource, hn as isSecretFieldView, ht as makeProfileBrokerId, i as asJsonArray, in as emitReadiness, it as CamStreamResolutionSchema, j as DEFAULT_RUNTIME_STATE_DURABILITY, jt as PEER_BYTES_STALL_MS, k as deviceCustomAction, kn as isAudioChunkFormat, kt as PEER_BYTES_CHUNK_BYTES, l as parseJsonObject, ln as collectHydratedFieldValues, lt as ProfileSlotSchema, m as createDeviceProxy, mn as isSecretClear, mt as SubscribeAudioChunksResultSchema, n as sleepCancellable, nn as createDurableState, nt as CamProfileSchema, o as asNumber, on as WELL_KNOWN_TABS, ot as DecodedAudioChunkSchema, p as isDeviceScopedCap, pn as classifySecretWrite, pt as SubscribeAudioChunksInputSchema, q as ReadinessTimeoutError, qt as SECRET_REF_SCHEME, r as asBoolean, rn as createEvent, rt as CamStreamKindSchema, s as asString, sn as WELL_KNOWN_TAB_MAP, st as FrameHandleSchema, t as sleep, tn as normalizeNodeId, tt as CAM_PROFILE_ORDER, u as parseJsonUnknown, un as hydrateSchema, ut as ProfileSlotStatusSchema, v as createSliceHandle, vn as makeSecretMarker, vt as selectAssignedProfileSlots, w as viewerUiCapability, wn as isSecretConfigField, wt as forgetKnownSecret, x as isZodSecret, xn as collectKeychainStoredKeys, xt as createSecretsAccess, y as SECRET_META, yn as toSecretFieldView, yt as resolveSecretViewsIn, z as optionalMethod, zt as mergeSecretStatePaths } from "./sleep-CI0n5D44.mjs";
1
+ import { $ as BrokerStatsSchema, $t as normalizeSecretOwner, A as adminUiCapability, At as PEER_BYTES_MAX_OUTSTANDING, B as resolveCapMount, Bt as parseSecretStatePath, C as deviceOpsCapability, Cn as isKeychainStoredField, Ct as clearKnownSecrets, D as defineCustomActions, Dn as audioChunkBytesPerSample, Dt as scrubKnownSecrets, E as customAction, En as AUDIO_CHUNK_FORMATS, Et as registerKnownSecret, F as event, Ft as SHARE_VIEW_KINDS, G as toNodeId, Gt as resolveSecretMarkers, H as CAP_NODE_PIN_CONTEXT_KEY, Ht as secretTreeFromSchema, I as expandCapMethods, It as DisposerChain, J as emitDownForOwnedCaps, Jt as arrayItemFieldPath, K as ReadinessRegistry, Kt as transformSecretWrite, L as isDeviceConfigCap, Lt as BaseAddon, M as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Mt as PEER_BYTES_TICKET_TTL_MS, N as DEVICE_STATUS_METHOD, Nt as PeerBytesTicketSchema, O as describeCustomActions, On as expandAudioChunkToF32le, Ot as shortSecretRefHash, P as PROVIDER_PIN_FIELD, Pt as DATAPLANE_SECRET_HEADER, Q as AudioStreamPickSchema, Qt as isSecretRef, R as method, Rt as normalizeAddonInitResult, S as RawStateResultSchema, Sn as collectSecretConfigKeys, St as MIN_SCRUBBED_LENGTH, T as DEVICE_CHILDREN_BATCH_MAX, Tn as schemaDeclaresAnyField, Tt as knownSecretCount, U as nodePin, Ut as KeychainWriteRefusedError, V as systemMethod, Vt as secretTreeFromPaths, W as readNodePin, Wt as collectSecretMarkerRefs, X as scopeKey, Xt as formatSecretScope, Y as readinessKey, Yt as buildSecretRef, Z as AudioChunkFormatSchema, Zt as globalSecretScope, _ as createMirrorSource, _n as isSecretMarkerLike, _t as parseProfileBrokerId, a as asJsonObject, an as isEvent, at as CameraStreamSchema, b as collectZodSecretPaths, bn as REDACTED_SECRET, bt as REVALIDATE_AFTER_MS, c as parseJsonArray, cn as collectHydratedFieldEntries, ct as ProfileRtspEntrySchema, d as BOOT_RECOVERY_BACKOFF_MS, dn as resolveHydratedFieldValue, dt as StreamSourceEntrySchema, en as parseSecretRef, et as BrokerStatusSchema, f as DEVICE_SCOPED_CAPS, fn as SECRET_CLEAR, ft as StreamSourceSchema, g as createLazyTrpcSource, gn as isSecretMarker, gt as makeSourceBrokerId, h as createEventBusSliceSource, hn as isSecretFieldView, ht as makeProfileBrokerId, i as asJsonArray, in as emitReadiness, it as CamStreamResolutionSchema, j as DEFAULT_RUNTIME_STATE_DURABILITY, jt as PEER_BYTES_STALL_MS, k as deviceCustomAction, kn as isAudioChunkFormat, kt as PEER_BYTES_CHUNK_BYTES, l as parseJsonObject, ln as collectHydratedFieldValues, lt as ProfileSlotSchema, m as createDeviceProxy, mn as isSecretClear, mt as SubscribeAudioChunksResultSchema, n as sleepCancellable, nn as createDurableState, nt as CamProfileSchema, o as asNumber, on as WELL_KNOWN_TABS, ot as DecodedAudioChunkSchema, p as isDeviceScopedCap, pn as classifySecretWrite, pt as SubscribeAudioChunksInputSchema, q as ReadinessTimeoutError, qt as SECRET_REF_SCHEME, r as asBoolean, rn as createEvent, rt as CamStreamKindSchema, s as asString, sn as WELL_KNOWN_TAB_MAP, st as FrameHandleSchema, t as sleep, tn as normalizeNodeId, tt as CAM_PROFILE_ORDER, u as parseJsonUnknown, un as hydrateSchema, ut as ProfileSlotStatusSchema, v as createSliceHandle, vn as makeSecretMarker, vt as selectAssignedProfileSlots, w as viewerUiCapability, wn as isSecretConfigField, wt as forgetKnownSecret, x as isZodSecret, xn as collectKeychainStoredKeys, xt as createSecretsAccess, y as SECRET_META, yn as toSecretFieldView, yt as resolveSecretViewsIn, z as optionalMethod, zt as mergeSecretStatePaths } from "./sleep-DwAQ9sqX.mjs";
2
2
  import { i as publicEventCategories, n as OWNER_ONLY_EVENT_CATEGORIES, r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-DaIZi00R.mjs";
3
3
  import { $ as MAX_EXPRESSION_AST_NODES, A as compositionFeatureEnabled, At as Fmp4BoxSplitter, B as createStatefulExpressionMemory, Bt as pickVideoEncoder, C as CompositionTargetSchema, Ct as FFMPEG_PATH_ENV, D as MAX_COMPOSITION_ITEMS, E as MAX_COMPOSITION_FIELDS_PER_FEATURE, F as featureFieldEntries, Ft as buildInputArgs, G as createExpressionScope, H as evaluateStatefulExpressionCall, I as featureSources, It as buildVideoArgs, J as compileExpressionSafe, K as evaluateAst, L as fieldReads, Lt as invocationFromEncodeProfile, M as compositionReadKey, Mt as audioPlanFromEncodeProfile, N as compositionSliceKey, Nt as buildAudioArgs, O as composedDeviceRef, P as compositionSourceKey, Pt as buildFfmpegArgs, Q as EXPRESSION_IDENTIFIER_RE, R as EXPRESSION_INJECTED_NOW, Rt as isSoftwareDecode, S as CompositionSourceRefSchema, St as sliceChangedAt, T as MAX_COMPOSITION_FEATURES, U as toExpressionValue, V as evaluateExpressionSource, Vt as resolveStreamMaps, W as validateExpressionSource, X as tokenize, Y as parseExpression, Z as EXPRESSION_COMPILE_CACHE_CAPACITY, _ as CompositionItemEntrySchema, _t as SOURCE_DEVICE_TYPES, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, at as EXPRESSION_BUILTINS, b as CompositionPassthroughFeatureSchema, bt as isSourceCap, c as CompositionCommandTargetSchema, ct as evaluateCount, d as CompositionFeatureSchema, dt as ExpressionEvalError, et as MAX_EXPRESSION_BINDINGS, f as CompositionFieldReadSchema, ft as ExpressionParseError, g as CompositionFromSourceSchema, gt as SOURCE_CAP_CHANGED_AT_FIELD, h as CompositionForwardCommandSchema, ht as SOURCE_CAP_ACTIVE_FIELD, i as COMPOSITION_ITEM_KEY_RE, it as RESERVED_BINDING_NAMES, j as compositionItemFieldPath, jt as AUDIO_PRESETS, k as composedDeviceStableId, kt as canonicalHash, l as CompositionExistingTargetSchema, lt as evaluateRose, m as CompositionFieldsFeatureSchema, mt as SOURCE_CAPS, n as COMPOSER_ADDON_ID, nt as MAX_EXPRESSION_EVAL_STEPS, o as CompositionBindingSchema, ot as EXPRESSION_BUILTIN_NAMES, p as CompositionFieldSourceSchema, pt as DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, q as compileExpression, r as COMPOSITION_ITEM_ARRAY_PATH, rt as MAX_EXPRESSION_SOURCE_LENGTH, s as CompositionCodeSourceSchema, st as disarmRoseMemory, t as COMPOSED_DEVICE_STABLE_ID_PREFIX, tt as MAX_EXPRESSION_CALL_ARGS, u as CompositionExpressionSourceSchema, ut as isStatefulBuiltin, v as CompositionLiteralBindingSchema, vt as evaluateSensorEdge, w as MAX_COMPOSITION_CODE_LENGTH, x as CompositionSchema, xt as sliceActiveValue, y as CompositionNewTargetSchema, yt as evaluateSensorLevelEdge, z as cloneStatefulExpressionMemory, zt as logBannerArgs } from "./composition-Bzr7GwgP.mjs";
4
4
  import { NODE_COLOR_IDS, NodeColorIdSchema, assignNodeColorId } from "./node-color.mjs";
@@ -42913,6 +42913,7 @@ var OsdNamedTemplateSchema = z.object({
42913
42913
  });
42914
42914
  /** Where a slot's value comes from. */
42915
42915
  var OsdSourceSchema = z.discriminatedUnion("kind", [
42916
+ z.object({ kind: z.literal("none") }),
42916
42917
  z.object({
42917
42918
  kind: z.literal("static"),
42918
42919
  text: z.string().max(64)
@@ -43072,6 +43073,19 @@ var osdManagerCapability = {
43072
43073
  auth: "admin"
43073
43074
  }),
43074
43075
  /**
43076
+ * Toggle the camera firmware overlay on/off (`osd.setOverlay` `enabled`).
43077
+ * Distinct from the binding's own `enabled` flag — this is what the
43078
+ * operator sees on the live picture (e.g. Reolink camera name layer).
43079
+ */
43080
+ setSlotCameraEnabled: method(z.object({
43081
+ deviceId: z.number().int(),
43082
+ slotId: z.string().min(1),
43083
+ enabled: z.boolean()
43084
+ }), z.object({ success: z.literal(true) }), {
43085
+ kind: "mutation",
43086
+ auth: "admin"
43087
+ }),
43088
+ /**
43075
43089
  * Replace one camera's binding configuration from another. Writable source
43076
43090
  * slots are mapped by ordinal onto writable target slots so different
43077
43091
  * provider slot ids do not make the copied configuration disappear.
@@ -58158,6 +58172,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
58158
58172
  addonId: null,
58159
58173
  access: "create"
58160
58174
  },
58175
+ "osdManager.setSlotCameraEnabled": {
58176
+ capName: "osd-manager",
58177
+ capScope: "system",
58178
+ addonId: null,
58179
+ access: "create"
58180
+ },
58161
58181
  "osdManager.upsertTemplate": {
58162
58182
  capName: "osd-manager",
58163
58183
  capScope: "system",
@@ -67874,6 +67894,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
67874
67894
  form: "single",
67875
67895
  optional: false
67876
67896
  }],
67897
+ "osdManager.setSlotCameraEnabled": [{
67898
+ name: "deviceId",
67899
+ form: "single",
67900
+ optional: false
67901
+ }],
67877
67902
  "petFeeder.callPet": [{
67878
67903
  name: "deviceId",
67879
67904
  form: "single",
@@ -69290,6 +69315,7 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
69290
69315
  "osdManager.previewSlot",
69291
69316
  "osdManager.renderDevice",
69292
69317
  "osdManager.setSlotBinding",
69318
+ "osdManager.setSlotCameraEnabled",
69293
69319
  "pipelineExecutor.clearModelBoundDeviceOverrides",
69294
69320
  "pipelineExecutor.runPipeline",
69295
69321
  "pipelineExecutor.runPipelineBatch",
@@ -5318,6 +5318,7 @@ function createDeviceProxy(api, binding, opts) {
5318
5318
  getSourceCatalog: (input) => dispatchSystem("osdManager", "getSourceCatalog", "query", input),
5319
5319
  setSlotBinding: (input) => dispatchSystem("osdManager", "setSlotBinding", "mutation", input),
5320
5320
  clearSlotBinding: (input) => dispatchSystem("osdManager", "clearSlotBinding", "mutation", input),
5321
+ setSlotCameraEnabled: (input) => dispatchSystem("osdManager", "setSlotCameraEnabled", "mutation", input),
5321
5322
  previewSlot: (input) => dispatchSystem("osdManager", "previewSlot", "mutation", input),
5322
5323
  renderDevice: (input) => dispatchSystem("osdManager", "renderDevice", "mutation", input)
5323
5324
  };
@@ -5318,6 +5318,7 @@ function createDeviceProxy(api, binding, opts) {
5318
5318
  getSourceCatalog: (input) => dispatchSystem("osdManager", "getSourceCatalog", "query", input),
5319
5319
  setSlotBinding: (input) => dispatchSystem("osdManager", "setSlotBinding", "mutation", input),
5320
5320
  clearSlotBinding: (input) => dispatchSystem("osdManager", "clearSlotBinding", "mutation", input),
5321
+ setSlotCameraEnabled: (input) => dispatchSystem("osdManager", "setSlotCameraEnabled", "mutation", input),
5321
5322
  previewSlot: (input) => dispatchSystem("osdManager", "previewSlot", "mutation", input),
5322
5323
  renderDevice: (input) => dispatchSystem("osdManager", "renderDevice", "mutation", input)
5323
5324
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.342",
3
+ "version": "1.2.344",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",