@camstack/types 1.2.342 → 1.2.343

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
@@ -1220,6 +1220,18 @@ export declare const osdManagerCapability: {
1220
1220
  }, z.core.$strip>, z.ZodObject<{
1221
1221
  success: z.ZodLiteral<true>;
1222
1222
  }, z.core.$strip>, "mutation">;
1223
+ /**
1224
+ * Toggle the camera firmware overlay on/off (`osd.setOverlay` `enabled`).
1225
+ * Distinct from the binding's own `enabled` flag — this is what the
1226
+ * operator sees on the live picture (e.g. Reolink camera name layer).
1227
+ */
1228
+ readonly setSlotCameraEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1229
+ deviceId: z.ZodNumber;
1230
+ slotId: z.ZodString;
1231
+ enabled: z.ZodBoolean;
1232
+ }, z.core.$strip>, z.ZodObject<{
1233
+ success: z.ZodLiteral<true>;
1234
+ }, z.core.$strip>, "mutation">;
1223
1235
  /**
1224
1236
  * Replace one camera's binding configuration from another. Writable source
1225
1237
  * slots are mapped by ordinal onto writable target slots so different
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");
@@ -43073,6 +43073,19 @@ var osdManagerCapability = {
43073
43073
  auth: "admin"
43074
43074
  }),
43075
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: require_sleep.method(zod.z.object({
43081
+ deviceId: zod.z.number().int(),
43082
+ slotId: zod.z.string().min(1),
43083
+ enabled: zod.z.boolean()
43084
+ }), zod.z.object({ success: zod.z.literal(true) }), {
43085
+ kind: "mutation",
43086
+ auth: "admin"
43087
+ }),
43088
+ /**
43076
43089
  * Replace one camera's binding configuration from another. Writable source
43077
43090
  * slots are mapped by ordinal onto writable target slots so different
43078
43091
  * provider slot ids do not make the copied configuration disappear.
@@ -58159,6 +58172,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
58159
58172
  addonId: null,
58160
58173
  access: "create"
58161
58174
  },
58175
+ "osdManager.setSlotCameraEnabled": {
58176
+ capName: "osd-manager",
58177
+ capScope: "system",
58178
+ addonId: null,
58179
+ access: "create"
58180
+ },
58162
58181
  "osdManager.upsertTemplate": {
58163
58182
  capName: "osd-manager",
58164
58183
  capScope: "system",
@@ -67875,6 +67894,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
67875
67894
  form: "single",
67876
67895
  optional: false
67877
67896
  }],
67897
+ "osdManager.setSlotCameraEnabled": [{
67898
+ name: "deviceId",
67899
+ form: "single",
67900
+ optional: false
67901
+ }],
67878
67902
  "petFeeder.callPet": [{
67879
67903
  name: "deviceId",
67880
67904
  form: "single",
@@ -69291,6 +69315,7 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
69291
69315
  "osdManager.previewSlot",
69292
69316
  "osdManager.renderDevice",
69293
69317
  "osdManager.setSlotBinding",
69318
+ "osdManager.setSlotCameraEnabled",
69294
69319
  "pipelineExecutor.clearModelBoundDeviceOverrides",
69295
69320
  "pipelineExecutor.runPipeline",
69296
69321
  "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";
@@ -43072,6 +43072,19 @@ var osdManagerCapability = {
43072
43072
  auth: "admin"
43073
43073
  }),
43074
43074
  /**
43075
+ * Toggle the camera firmware overlay on/off (`osd.setOverlay` `enabled`).
43076
+ * Distinct from the binding's own `enabled` flag — this is what the
43077
+ * operator sees on the live picture (e.g. Reolink camera name layer).
43078
+ */
43079
+ setSlotCameraEnabled: method(z.object({
43080
+ deviceId: z.number().int(),
43081
+ slotId: z.string().min(1),
43082
+ enabled: z.boolean()
43083
+ }), z.object({ success: z.literal(true) }), {
43084
+ kind: "mutation",
43085
+ auth: "admin"
43086
+ }),
43087
+ /**
43075
43088
  * Replace one camera's binding configuration from another. Writable source
43076
43089
  * slots are mapped by ordinal onto writable target slots so different
43077
43090
  * provider slot ids do not make the copied configuration disappear.
@@ -58158,6 +58171,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
58158
58171
  addonId: null,
58159
58172
  access: "create"
58160
58173
  },
58174
+ "osdManager.setSlotCameraEnabled": {
58175
+ capName: "osd-manager",
58176
+ capScope: "system",
58177
+ addonId: null,
58178
+ access: "create"
58179
+ },
58161
58180
  "osdManager.upsertTemplate": {
58162
58181
  capName: "osd-manager",
58163
58182
  capScope: "system",
@@ -67874,6 +67893,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
67874
67893
  form: "single",
67875
67894
  optional: false
67876
67895
  }],
67896
+ "osdManager.setSlotCameraEnabled": [{
67897
+ name: "deviceId",
67898
+ form: "single",
67899
+ optional: false
67900
+ }],
67877
67901
  "petFeeder.callPet": [{
67878
67902
  name: "deviceId",
67879
67903
  form: "single",
@@ -69290,6 +69314,7 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
69290
69314
  "osdManager.previewSlot",
69291
69315
  "osdManager.renderDevice",
69292
69316
  "osdManager.setSlotBinding",
69317
+ "osdManager.setSlotCameraEnabled",
69293
69318
  "pipelineExecutor.clearModelBoundDeviceOverrides",
69294
69319
  "pipelineExecutor.runPipeline",
69295
69320
  "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.343",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",