@camstack/addon-cloudflare 1.1.16 → 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.
@@ -14918,7 +14918,17 @@ var AgentAddonConfigSchema = object({
14918
14918
  });
14919
14919
  var AgentPipelineSettingsSchema = object({
14920
14920
  addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
14921
- maxCameras: number().int().nonnegative().nullable().default(null)
14921
+ maxCameras: number().int().nonnegative().nullable().default(null),
14922
+ /** Per-node detection weight (relative share for the quota balancer). */
14923
+ detectWeight: number().positive().optional(),
14924
+ /** Node is eligible to run the detection pipeline (decode + inference). */
14925
+ detect: boolean().optional(),
14926
+ /** Node is eligible to host decoder sessions. */
14927
+ decode: boolean().optional(),
14928
+ /** Node is eligible to run audio-analyzer sessions. */
14929
+ audio: boolean().optional(),
14930
+ /** Node is eligible to be the ingest / source-owner (serve the restream). */
14931
+ ingest: boolean().optional()
14922
14932
  });
14923
14933
  var CameraPipelineForAgentSchema = object({
14924
14934
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15224,6 +15234,21 @@ method(object({
15224
15234
  }), object({ success: literal(true) }), {
15225
15235
  kind: "mutation",
15226
15236
  auth: "admin"
15237
+ }), method(object({
15238
+ agentNodeId: string(),
15239
+ detectWeight: number().positive().nullable()
15240
+ }), object({ success: literal(true) }), {
15241
+ kind: "mutation",
15242
+ auth: "admin"
15243
+ }), method(object({
15244
+ agentNodeId: string(),
15245
+ detect: boolean().nullable().optional(),
15246
+ decode: boolean().nullable().optional(),
15247
+ audio: boolean().nullable().optional(),
15248
+ ingest: boolean().nullable().optional()
15249
+ }), object({ success: literal(true) }), {
15250
+ kind: "mutation",
15251
+ auth: "admin"
15227
15252
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15228
15253
  deviceId: number(),
15229
15254
  addonId: string(),
@@ -21106,6 +21131,18 @@ Object.freeze({
21106
21131
  addonId: null,
21107
21132
  access: "create"
21108
21133
  },
21134
+ "pipelineOrchestrator.setAgentCapabilities": {
21135
+ capName: "pipeline-orchestrator",
21136
+ capScope: "system",
21137
+ addonId: null,
21138
+ access: "create"
21139
+ },
21140
+ "pipelineOrchestrator.setAgentDetectWeight": {
21141
+ capName: "pipeline-orchestrator",
21142
+ capScope: "system",
21143
+ addonId: null,
21144
+ access: "create"
21145
+ },
21109
21146
  "pipelineOrchestrator.setAgentMaxCameras": {
21110
21147
  capName: "pipeline-orchestrator",
21111
21148
  capScope: "system",
@@ -14918,7 +14918,17 @@ var AgentAddonConfigSchema = object({
14918
14918
  });
14919
14919
  var AgentPipelineSettingsSchema = object({
14920
14920
  addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
14921
- maxCameras: number().int().nonnegative().nullable().default(null)
14921
+ maxCameras: number().int().nonnegative().nullable().default(null),
14922
+ /** Per-node detection weight (relative share for the quota balancer). */
14923
+ detectWeight: number().positive().optional(),
14924
+ /** Node is eligible to run the detection pipeline (decode + inference). */
14925
+ detect: boolean().optional(),
14926
+ /** Node is eligible to host decoder sessions. */
14927
+ decode: boolean().optional(),
14928
+ /** Node is eligible to run audio-analyzer sessions. */
14929
+ audio: boolean().optional(),
14930
+ /** Node is eligible to be the ingest / source-owner (serve the restream). */
14931
+ ingest: boolean().optional()
14922
14932
  });
14923
14933
  var CameraPipelineForAgentSchema = object({
14924
14934
  steps: array(PipelineStepInputSchema).readonly(),
@@ -15224,6 +15234,21 @@ method(object({
15224
15234
  }), object({ success: literal(true) }), {
15225
15235
  kind: "mutation",
15226
15236
  auth: "admin"
15237
+ }), method(object({
15238
+ agentNodeId: string(),
15239
+ detectWeight: number().positive().nullable()
15240
+ }), object({ success: literal(true) }), {
15241
+ kind: "mutation",
15242
+ auth: "admin"
15243
+ }), method(object({
15244
+ agentNodeId: string(),
15245
+ detect: boolean().nullable().optional(),
15246
+ decode: boolean().nullable().optional(),
15247
+ audio: boolean().nullable().optional(),
15248
+ ingest: boolean().nullable().optional()
15249
+ }), object({ success: literal(true) }), {
15250
+ kind: "mutation",
15251
+ auth: "admin"
15227
15252
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15228
15253
  deviceId: number(),
15229
15254
  addonId: string(),
@@ -21106,6 +21131,18 @@ Object.freeze({
21106
21131
  addonId: null,
21107
21132
  access: "create"
21108
21133
  },
21134
+ "pipelineOrchestrator.setAgentCapabilities": {
21135
+ capName: "pipeline-orchestrator",
21136
+ capScope: "system",
21137
+ addonId: null,
21138
+ access: "create"
21139
+ },
21140
+ "pipelineOrchestrator.setAgentDetectWeight": {
21141
+ capName: "pipeline-orchestrator",
21142
+ capScope: "system",
21143
+ addonId: null,
21144
+ access: "create"
21145
+ },
21109
21146
  "pipelineOrchestrator.setAgentMaxCameras": {
21110
21147
  capName: "pipeline-orchestrator",
21111
21148
  capScope: "system",
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_dist = require("../dist-5zo4pKvP.js");
24
+ const require_dist = require("../dist-B33Abq-d.js");
25
25
  let node_path = require("node:path");
26
26
  node_path = __toESM(node_path);
27
27
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { a as BaseAddon, c as array, d as literal, f as number, l as boolean, m as string, n as defineCustomActions, o as EventCategory, p as object, r as networkAccessCapability, s as _enum, t as customAction } from "../dist-DwtByZOy.mjs";
1
+ import { a as BaseAddon, c as array, d as literal, f as number, l as boolean, m as string, n as defineCustomActions, o as EventCategory, p as object, r as networkAccessCapability, s as _enum, t as customAction } from "../dist-BtDJPh1F.mjs";
2
2
  import * as path from "node:path";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { spawn } from "node:child_process";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-5zo4pKvP.js");
2
+ const require_dist = require("../dist-B33Abq-d.js");
3
3
  //#region src/turn/cloudflare-turn.ts
4
4
  /**
5
5
  * Cloudflare returns ICE servers in several flavours depending on which
@@ -1,4 +1,4 @@
1
- import { a as BaseAddon, d as literal, f as number, i as turnProviderCapability, l as boolean, m as string, n as defineCustomActions, p as object, t as customAction, u as discriminatedUnion } from "../dist-DwtByZOy.mjs";
1
+ import { a as BaseAddon, d as literal, f as number, i as turnProviderCapability, l as boolean, m as string, n as defineCustomActions, p as object, t as customAction, u as discriminatedUnion } from "../dist-BtDJPh1F.mjs";
2
2
  //#region src/turn/cloudflare-turn.ts
3
3
  /**
4
4
  * Cloudflare returns ICE servers in several flavours depending on which
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-cloudflare",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "Cloudflare bundle — Tunnel (network-access) + TURN relay (turn-provider). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",