@camstack/addon-static-turn 1.1.15 → 1.1.17

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.
@@ -14881,7 +14881,17 @@ var AgentAddonConfigSchema = object({
14881
14881
  });
14882
14882
  var AgentPipelineSettingsSchema = object({
14883
14883
  addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
14884
- maxCameras: number().int().nonnegative().nullable().default(null)
14884
+ maxCameras: number().int().nonnegative().nullable().default(null),
14885
+ /** Per-node detection weight (relative share for the quota balancer). */
14886
+ detectWeight: number().positive().optional(),
14887
+ /** Node is eligible to run the detection pipeline (decode + inference). */
14888
+ detect: boolean().optional(),
14889
+ /** Node is eligible to host decoder sessions. */
14890
+ decode: boolean().optional(),
14891
+ /** Node is eligible to run audio-analyzer sessions. */
14892
+ audio: boolean().optional(),
14893
+ /** Node is eligible to be the ingest / source-owner (serve the restream). */
14894
+ ingest: boolean().optional()
14885
14895
  });
14886
14896
  var CameraPipelineForAgentSchema = object({
14887
14897
  steps: array(PipelineStepInputSchema).readonly(),
@@ -14956,7 +14966,10 @@ var AgentLoadSummarySchema = object({
14956
14966
  online: boolean(),
14957
14967
  load: RunnerLocalLoadSchema,
14958
14968
  /** Computed score used by the L2 capacity balancer (lower = less loaded). */
14959
- score: number()
14969
+ score: number(),
14970
+ /** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
14971
+ * when not yet probed — for the cluster Pipeline table UI (P0.2). */
14972
+ decodeHwaccel: string().nullable()
14960
14973
  });
14961
14974
  /**
14962
14975
  * Aggregate metrics across the whole detection cluster. Replaces the legacy
@@ -15184,6 +15197,21 @@ method(object({
15184
15197
  }), object({ success: literal(true) }), {
15185
15198
  kind: "mutation",
15186
15199
  auth: "admin"
15200
+ }), method(object({
15201
+ agentNodeId: string(),
15202
+ detectWeight: number().positive().nullable()
15203
+ }), object({ success: literal(true) }), {
15204
+ kind: "mutation",
15205
+ auth: "admin"
15206
+ }), method(object({
15207
+ agentNodeId: string(),
15208
+ detect: boolean().nullable().optional(),
15209
+ decode: boolean().nullable().optional(),
15210
+ audio: boolean().nullable().optional(),
15211
+ ingest: boolean().nullable().optional()
15212
+ }), object({ success: literal(true) }), {
15213
+ kind: "mutation",
15214
+ auth: "admin"
15187
15215
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15188
15216
  deviceId: number(),
15189
15217
  addonId: string(),
@@ -17515,7 +17543,7 @@ var HardwareEncoderIdSchema = _enum([
17515
17543
  "libx264",
17516
17544
  "libx265"
17517
17545
  ]);
17518
- var HardwareEncodersSchema = object({
17546
+ object({
17519
17547
  encoders: array(object({
17520
17548
  encoder: HardwareEncoderIdSchema,
17521
17549
  codec: _enum(["H264", "H265"]),
@@ -17534,15 +17562,7 @@ var HardwareEncodersSchema = object({
17534
17562
  defaultH265: HardwareEncoderIdSchema,
17535
17563
  probedAt: number()
17536
17564
  });
17537
- /**
17538
- * Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
17539
- * methods the configured ffmpeg binary actually supports (parsed from
17540
- * `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
17541
- * egress never spends a spawn on a backend this build cannot offer. Per-stream
17542
- * decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
17543
- * software fallback — this only filters out wholly-unsupported backends.
17544
- */
17545
- var HardwareDecodeAccelsSchema = object({
17565
+ object({
17546
17566
  methods: array(string()).readonly(),
17547
17567
  probedAt: number()
17548
17568
  });
@@ -17605,13 +17625,7 @@ var ResolvedInferenceConfigSchema = object({
17605
17625
  format: ModelFormatSchema,
17606
17626
  reason: string()
17607
17627
  });
17608
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), HardwareEncodersSchema), method(_void(), HardwareEncodersSchema, {
17609
- kind: "mutation",
17610
- auth: "admin"
17611
- }), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
17612
- kind: "mutation",
17613
- auth: "admin"
17614
- });
17628
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
17615
17629
  var PtzPresetSchema = object({
17616
17630
  id: string(),
17617
17631
  name: string()
@@ -21080,6 +21094,18 @@ Object.freeze({
21080
21094
  addonId: null,
21081
21095
  access: "create"
21082
21096
  },
21097
+ "pipelineOrchestrator.setAgentCapabilities": {
21098
+ capName: "pipeline-orchestrator",
21099
+ capScope: "system",
21100
+ addonId: null,
21101
+ access: "create"
21102
+ },
21103
+ "pipelineOrchestrator.setAgentDetectWeight": {
21104
+ capName: "pipeline-orchestrator",
21105
+ capScope: "system",
21106
+ addonId: null,
21107
+ access: "create"
21108
+ },
21083
21109
  "pipelineOrchestrator.setAgentMaxCameras": {
21084
21110
  capName: "pipeline-orchestrator",
21085
21111
  capScope: "system",
@@ -21236,30 +21262,6 @@ Object.freeze({
21236
21262
  addonId: null,
21237
21263
  access: "view"
21238
21264
  },
21239
- "platformProbe.getHardwareDecodeAccels": {
21240
- capName: "platform-probe",
21241
- capScope: "system",
21242
- addonId: null,
21243
- access: "view"
21244
- },
21245
- "platformProbe.getHardwareEncoders": {
21246
- capName: "platform-probe",
21247
- capScope: "system",
21248
- addonId: null,
21249
- access: "view"
21250
- },
21251
- "platformProbe.refreshHardwareDecodeAccels": {
21252
- capName: "platform-probe",
21253
- capScope: "system",
21254
- addonId: null,
21255
- access: "create"
21256
- },
21257
- "platformProbe.refreshHardwareEncoders": {
21258
- capName: "platform-probe",
21259
- capScope: "system",
21260
- addonId: null,
21261
- access: "create"
21262
- },
21263
21265
  "platformProbe.resolveHwAccel": {
21264
21266
  capName: "platform-probe",
21265
21267
  capScope: "system",
@@ -14880,7 +14880,17 @@ var AgentAddonConfigSchema = object({
14880
14880
  });
14881
14881
  var AgentPipelineSettingsSchema = object({
14882
14882
  addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
14883
- maxCameras: number().int().nonnegative().nullable().default(null)
14883
+ maxCameras: number().int().nonnegative().nullable().default(null),
14884
+ /** Per-node detection weight (relative share for the quota balancer). */
14885
+ detectWeight: number().positive().optional(),
14886
+ /** Node is eligible to run the detection pipeline (decode + inference). */
14887
+ detect: boolean().optional(),
14888
+ /** Node is eligible to host decoder sessions. */
14889
+ decode: boolean().optional(),
14890
+ /** Node is eligible to run audio-analyzer sessions. */
14891
+ audio: boolean().optional(),
14892
+ /** Node is eligible to be the ingest / source-owner (serve the restream). */
14893
+ ingest: boolean().optional()
14884
14894
  });
14885
14895
  var CameraPipelineForAgentSchema = object({
14886
14896
  steps: array(PipelineStepInputSchema).readonly(),
@@ -14955,7 +14965,10 @@ var AgentLoadSummarySchema = object({
14955
14965
  online: boolean(),
14956
14966
  load: RunnerLocalLoadSchema,
14957
14967
  /** Computed score used by the L2 capacity balancer (lower = less loaded). */
14958
- score: number()
14968
+ score: number(),
14969
+ /** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
14970
+ * when not yet probed — for the cluster Pipeline table UI (P0.2). */
14971
+ decodeHwaccel: string().nullable()
14959
14972
  });
14960
14973
  /**
14961
14974
  * Aggregate metrics across the whole detection cluster. Replaces the legacy
@@ -15183,6 +15196,21 @@ method(object({
15183
15196
  }), object({ success: literal(true) }), {
15184
15197
  kind: "mutation",
15185
15198
  auth: "admin"
15199
+ }), method(object({
15200
+ agentNodeId: string(),
15201
+ detectWeight: number().positive().nullable()
15202
+ }), object({ success: literal(true) }), {
15203
+ kind: "mutation",
15204
+ auth: "admin"
15205
+ }), method(object({
15206
+ agentNodeId: string(),
15207
+ detect: boolean().nullable().optional(),
15208
+ decode: boolean().nullable().optional(),
15209
+ audio: boolean().nullable().optional(),
15210
+ ingest: boolean().nullable().optional()
15211
+ }), object({ success: literal(true) }), {
15212
+ kind: "mutation",
15213
+ auth: "admin"
15186
15214
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15187
15215
  deviceId: number(),
15188
15216
  addonId: string(),
@@ -17514,7 +17542,7 @@ var HardwareEncoderIdSchema = _enum([
17514
17542
  "libx264",
17515
17543
  "libx265"
17516
17544
  ]);
17517
- var HardwareEncodersSchema = object({
17545
+ object({
17518
17546
  encoders: array(object({
17519
17547
  encoder: HardwareEncoderIdSchema,
17520
17548
  codec: _enum(["H264", "H265"]),
@@ -17533,15 +17561,7 @@ var HardwareEncodersSchema = object({
17533
17561
  defaultH265: HardwareEncoderIdSchema,
17534
17562
  probedAt: number()
17535
17563
  });
17536
- /**
17537
- * Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
17538
- * methods the configured ffmpeg binary actually supports (parsed from
17539
- * `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
17540
- * egress never spends a spawn on a backend this build cannot offer. Per-stream
17541
- * decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
17542
- * software fallback — this only filters out wholly-unsupported backends.
17543
- */
17544
- var HardwareDecodeAccelsSchema = object({
17564
+ object({
17545
17565
  methods: array(string()).readonly(),
17546
17566
  probedAt: number()
17547
17567
  });
@@ -17604,13 +17624,7 @@ var ResolvedInferenceConfigSchema = object({
17604
17624
  format: ModelFormatSchema,
17605
17625
  reason: string()
17606
17626
  });
17607
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), HardwareEncodersSchema), method(_void(), HardwareEncodersSchema, {
17608
- kind: "mutation",
17609
- auth: "admin"
17610
- }), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
17611
- kind: "mutation",
17612
- auth: "admin"
17613
- });
17627
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
17614
17628
  var PtzPresetSchema = object({
17615
17629
  id: string(),
17616
17630
  name: string()
@@ -21079,6 +21093,18 @@ Object.freeze({
21079
21093
  addonId: null,
21080
21094
  access: "create"
21081
21095
  },
21096
+ "pipelineOrchestrator.setAgentCapabilities": {
21097
+ capName: "pipeline-orchestrator",
21098
+ capScope: "system",
21099
+ addonId: null,
21100
+ access: "create"
21101
+ },
21102
+ "pipelineOrchestrator.setAgentDetectWeight": {
21103
+ capName: "pipeline-orchestrator",
21104
+ capScope: "system",
21105
+ addonId: null,
21106
+ access: "create"
21107
+ },
21082
21108
  "pipelineOrchestrator.setAgentMaxCameras": {
21083
21109
  capName: "pipeline-orchestrator",
21084
21110
  capScope: "system",
@@ -21235,30 +21261,6 @@ Object.freeze({
21235
21261
  addonId: null,
21236
21262
  access: "view"
21237
21263
  },
21238
- "platformProbe.getHardwareDecodeAccels": {
21239
- capName: "platform-probe",
21240
- capScope: "system",
21241
- addonId: null,
21242
- access: "view"
21243
- },
21244
- "platformProbe.getHardwareEncoders": {
21245
- capName: "platform-probe",
21246
- capScope: "system",
21247
- addonId: null,
21248
- access: "view"
21249
- },
21250
- "platformProbe.refreshHardwareDecodeAccels": {
21251
- capName: "platform-probe",
21252
- capScope: "system",
21253
- addonId: null,
21254
- access: "create"
21255
- },
21256
- "platformProbe.refreshHardwareEncoders": {
21257
- capName: "platform-probe",
21258
- capScope: "system",
21259
- addonId: null,
21260
- access: "create"
21261
- },
21262
21264
  "platformProbe.resolveHwAccel": {
21263
21265
  capName: "platform-probe",
21264
21266
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-static-turn",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "Static / self-hosted (coturn) TURN provider for CamStack",
5
5
  "keywords": [
6
6
  "camstack",