@camstack/addon-provider-onvif 1.1.14 → 1.1.16

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
@@ -15294,7 +15294,17 @@ var AgentAddonConfigSchema = object({
15294
15294
  });
15295
15295
  var AgentPipelineSettingsSchema = object({
15296
15296
  addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
15297
- maxCameras: number().int().nonnegative().nullable().default(null)
15297
+ maxCameras: number().int().nonnegative().nullable().default(null),
15298
+ /** Per-node detection weight (relative share for the quota balancer). */
15299
+ detectWeight: number().positive().optional(),
15300
+ /** Node is eligible to run the detection pipeline (decode + inference). */
15301
+ detect: boolean().optional(),
15302
+ /** Node is eligible to host decoder sessions. */
15303
+ decode: boolean().optional(),
15304
+ /** Node is eligible to run audio-analyzer sessions. */
15305
+ audio: boolean().optional(),
15306
+ /** Node is eligible to be the ingest / source-owner (serve the restream). */
15307
+ ingest: boolean().optional()
15298
15308
  });
15299
15309
  var CameraPipelineForAgentSchema = object({
15300
15310
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15369,7 +15379,10 @@ var AgentLoadSummarySchema = object({
15369
15379
  online: boolean(),
15370
15380
  load: RunnerLocalLoadSchema,
15371
15381
  /** Computed score used by the L2 capacity balancer (lower = less loaded). */
15372
- score: number()
15382
+ score: number(),
15383
+ /** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
15384
+ * when not yet probed — for the cluster Pipeline table UI (P0.2). */
15385
+ decodeHwaccel: string().nullable()
15373
15386
  });
15374
15387
  /**
15375
15388
  * Aggregate metrics across the whole detection cluster. Replaces the legacy
@@ -15597,6 +15610,21 @@ method(object({
15597
15610
  }), object({ success: literal(true) }), {
15598
15611
  kind: "mutation",
15599
15612
  auth: "admin"
15613
+ }), method(object({
15614
+ agentNodeId: string(),
15615
+ detectWeight: number().positive().nullable()
15616
+ }), object({ success: literal(true) }), {
15617
+ kind: "mutation",
15618
+ auth: "admin"
15619
+ }), method(object({
15620
+ agentNodeId: string(),
15621
+ detect: boolean().nullable().optional(),
15622
+ decode: boolean().nullable().optional(),
15623
+ audio: boolean().nullable().optional(),
15624
+ ingest: boolean().nullable().optional()
15625
+ }), object({ success: literal(true) }), {
15626
+ kind: "mutation",
15627
+ auth: "admin"
15600
15628
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15601
15629
  deviceId: number(),
15602
15630
  addonId: string(),
@@ -17948,7 +17976,7 @@ var HardwareEncoderIdSchema = _enum([
17948
17976
  "libx264",
17949
17977
  "libx265"
17950
17978
  ]);
17951
- var HardwareEncodersSchema = object({
17979
+ object({
17952
17980
  encoders: array(object({
17953
17981
  encoder: HardwareEncoderIdSchema,
17954
17982
  codec: _enum(["H264", "H265"]),
@@ -17967,15 +17995,7 @@ var HardwareEncodersSchema = object({
17967
17995
  defaultH265: HardwareEncoderIdSchema,
17968
17996
  probedAt: number()
17969
17997
  });
17970
- /**
17971
- * Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
17972
- * methods the configured ffmpeg binary actually supports (parsed from
17973
- * `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
17974
- * egress never spends a spawn on a backend this build cannot offer. Per-stream
17975
- * decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
17976
- * software fallback — this only filters out wholly-unsupported backends.
17977
- */
17978
- var HardwareDecodeAccelsSchema = object({
17998
+ object({
17979
17999
  methods: array(string()).readonly(),
17980
18000
  probedAt: number()
17981
18001
  });
@@ -18038,13 +18058,7 @@ var ResolvedInferenceConfigSchema = object({
18038
18058
  format: ModelFormatSchema,
18039
18059
  reason: string()
18040
18060
  });
18041
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), HardwareEncodersSchema), method(_void(), HardwareEncodersSchema, {
18042
- kind: "mutation",
18043
- auth: "admin"
18044
- }), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
18045
- kind: "mutation",
18046
- auth: "admin"
18047
- });
18061
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
18048
18062
  var PtzPresetSchema = object({
18049
18063
  id: string(),
18050
18064
  name: string()
@@ -21555,6 +21569,18 @@ Object.freeze({
21555
21569
  addonId: null,
21556
21570
  access: "create"
21557
21571
  },
21572
+ "pipelineOrchestrator.setAgentCapabilities": {
21573
+ capName: "pipeline-orchestrator",
21574
+ capScope: "system",
21575
+ addonId: null,
21576
+ access: "create"
21577
+ },
21578
+ "pipelineOrchestrator.setAgentDetectWeight": {
21579
+ capName: "pipeline-orchestrator",
21580
+ capScope: "system",
21581
+ addonId: null,
21582
+ access: "create"
21583
+ },
21558
21584
  "pipelineOrchestrator.setAgentMaxCameras": {
21559
21585
  capName: "pipeline-orchestrator",
21560
21586
  capScope: "system",
@@ -21711,30 +21737,6 @@ Object.freeze({
21711
21737
  addonId: null,
21712
21738
  access: "view"
21713
21739
  },
21714
- "platformProbe.getHardwareDecodeAccels": {
21715
- capName: "platform-probe",
21716
- capScope: "system",
21717
- addonId: null,
21718
- access: "view"
21719
- },
21720
- "platformProbe.getHardwareEncoders": {
21721
- capName: "platform-probe",
21722
- capScope: "system",
21723
- addonId: null,
21724
- access: "view"
21725
- },
21726
- "platformProbe.refreshHardwareDecodeAccels": {
21727
- capName: "platform-probe",
21728
- capScope: "system",
21729
- addonId: null,
21730
- access: "create"
21731
- },
21732
- "platformProbe.refreshHardwareEncoders": {
21733
- capName: "platform-probe",
21734
- capScope: "system",
21735
- addonId: null,
21736
- access: "create"
21737
- },
21738
21740
  "platformProbe.resolveHwAccel": {
21739
21741
  capName: "platform-probe",
21740
21742
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -15295,7 +15295,17 @@ var AgentAddonConfigSchema = object({
15295
15295
  });
15296
15296
  var AgentPipelineSettingsSchema = object({
15297
15297
  addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
15298
- maxCameras: number().int().nonnegative().nullable().default(null)
15298
+ maxCameras: number().int().nonnegative().nullable().default(null),
15299
+ /** Per-node detection weight (relative share for the quota balancer). */
15300
+ detectWeight: number().positive().optional(),
15301
+ /** Node is eligible to run the detection pipeline (decode + inference). */
15302
+ detect: boolean().optional(),
15303
+ /** Node is eligible to host decoder sessions. */
15304
+ decode: boolean().optional(),
15305
+ /** Node is eligible to run audio-analyzer sessions. */
15306
+ audio: boolean().optional(),
15307
+ /** Node is eligible to be the ingest / source-owner (serve the restream). */
15308
+ ingest: boolean().optional()
15299
15309
  });
15300
15310
  var CameraPipelineForAgentSchema = object({
15301
15311
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15370,7 +15380,10 @@ var AgentLoadSummarySchema = object({
15370
15380
  online: boolean(),
15371
15381
  load: RunnerLocalLoadSchema,
15372
15382
  /** Computed score used by the L2 capacity balancer (lower = less loaded). */
15373
- score: number()
15383
+ score: number(),
15384
+ /** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
15385
+ * when not yet probed — for the cluster Pipeline table UI (P0.2). */
15386
+ decodeHwaccel: string().nullable()
15374
15387
  });
15375
15388
  /**
15376
15389
  * Aggregate metrics across the whole detection cluster. Replaces the legacy
@@ -15598,6 +15611,21 @@ method(object({
15598
15611
  }), object({ success: literal(true) }), {
15599
15612
  kind: "mutation",
15600
15613
  auth: "admin"
15614
+ }), method(object({
15615
+ agentNodeId: string(),
15616
+ detectWeight: number().positive().nullable()
15617
+ }), object({ success: literal(true) }), {
15618
+ kind: "mutation",
15619
+ auth: "admin"
15620
+ }), method(object({
15621
+ agentNodeId: string(),
15622
+ detect: boolean().nullable().optional(),
15623
+ decode: boolean().nullable().optional(),
15624
+ audio: boolean().nullable().optional(),
15625
+ ingest: boolean().nullable().optional()
15626
+ }), object({ success: literal(true) }), {
15627
+ kind: "mutation",
15628
+ auth: "admin"
15601
15629
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15602
15630
  deviceId: number(),
15603
15631
  addonId: string(),
@@ -17949,7 +17977,7 @@ var HardwareEncoderIdSchema = _enum([
17949
17977
  "libx264",
17950
17978
  "libx265"
17951
17979
  ]);
17952
- var HardwareEncodersSchema = object({
17980
+ object({
17953
17981
  encoders: array(object({
17954
17982
  encoder: HardwareEncoderIdSchema,
17955
17983
  codec: _enum(["H264", "H265"]),
@@ -17968,15 +17996,7 @@ var HardwareEncodersSchema = object({
17968
17996
  defaultH265: HardwareEncoderIdSchema,
17969
17997
  probedAt: number()
17970
17998
  });
17971
- /**
17972
- * Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
17973
- * methods the configured ffmpeg binary actually supports (parsed from
17974
- * `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
17975
- * egress never spends a spawn on a backend this build cannot offer. Per-stream
17976
- * decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
17977
- * software fallback — this only filters out wholly-unsupported backends.
17978
- */
17979
- var HardwareDecodeAccelsSchema = object({
17999
+ object({
17980
18000
  methods: array(string()).readonly(),
17981
18001
  probedAt: number()
17982
18002
  });
@@ -18039,13 +18059,7 @@ var ResolvedInferenceConfigSchema = object({
18039
18059
  format: ModelFormatSchema,
18040
18060
  reason: string()
18041
18061
  });
18042
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), HardwareEncodersSchema), method(_void(), HardwareEncodersSchema, {
18043
- kind: "mutation",
18044
- auth: "admin"
18045
- }), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
18046
- kind: "mutation",
18047
- auth: "admin"
18048
- });
18062
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
18049
18063
  var PtzPresetSchema = object({
18050
18064
  id: string(),
18051
18065
  name: string()
@@ -21556,6 +21570,18 @@ Object.freeze({
21556
21570
  addonId: null,
21557
21571
  access: "create"
21558
21572
  },
21573
+ "pipelineOrchestrator.setAgentCapabilities": {
21574
+ capName: "pipeline-orchestrator",
21575
+ capScope: "system",
21576
+ addonId: null,
21577
+ access: "create"
21578
+ },
21579
+ "pipelineOrchestrator.setAgentDetectWeight": {
21580
+ capName: "pipeline-orchestrator",
21581
+ capScope: "system",
21582
+ addonId: null,
21583
+ access: "create"
21584
+ },
21559
21585
  "pipelineOrchestrator.setAgentMaxCameras": {
21560
21586
  capName: "pipeline-orchestrator",
21561
21587
  capScope: "system",
@@ -21712,30 +21738,6 @@ Object.freeze({
21712
21738
  addonId: null,
21713
21739
  access: "view"
21714
21740
  },
21715
- "platformProbe.getHardwareDecodeAccels": {
21716
- capName: "platform-probe",
21717
- capScope: "system",
21718
- addonId: null,
21719
- access: "view"
21720
- },
21721
- "platformProbe.getHardwareEncoders": {
21722
- capName: "platform-probe",
21723
- capScope: "system",
21724
- addonId: null,
21725
- access: "view"
21726
- },
21727
- "platformProbe.refreshHardwareDecodeAccels": {
21728
- capName: "platform-probe",
21729
- capScope: "system",
21730
- addonId: null,
21731
- access: "create"
21732
- },
21733
- "platformProbe.refreshHardwareEncoders": {
21734
- capName: "platform-probe",
21735
- capScope: "system",
21736
- addonId: null,
21737
- access: "create"
21738
- },
21739
21741
  "platformProbe.resolveHwAccel": {
21740
21742
  capName: "platform-probe",
21741
21743
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",