@camstack/addon-provider-tuya 0.1.2 → 0.1.3

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
@@ -17841,7 +17841,17 @@ var AgentAddonConfigSchema = object({
17841
17841
  });
17842
17842
  var AgentPipelineSettingsSchema = object({
17843
17843
  addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
17844
- maxCameras: number().int().nonnegative().nullable().default(null)
17844
+ maxCameras: number().int().nonnegative().nullable().default(null),
17845
+ /** Per-node detection weight (relative share for the quota balancer). */
17846
+ detectWeight: number().positive().optional(),
17847
+ /** Node is eligible to run the detection pipeline (decode + inference). */
17848
+ detect: boolean().optional(),
17849
+ /** Node is eligible to host decoder sessions. */
17850
+ decode: boolean().optional(),
17851
+ /** Node is eligible to run audio-analyzer sessions. */
17852
+ audio: boolean().optional(),
17853
+ /** Node is eligible to be the ingest / source-owner (serve the restream). */
17854
+ ingest: boolean().optional()
17845
17855
  });
17846
17856
  var CameraPipelineForAgentSchema = object({
17847
17857
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18147,6 +18157,21 @@ method(object({
18147
18157
  }), object({ success: literal(true) }), {
18148
18158
  kind: "mutation",
18149
18159
  auth: "admin"
18160
+ }), method(object({
18161
+ agentNodeId: string(),
18162
+ detectWeight: number().positive().nullable()
18163
+ }), object({ success: literal(true) }), {
18164
+ kind: "mutation",
18165
+ auth: "admin"
18166
+ }), method(object({
18167
+ agentNodeId: string(),
18168
+ detect: boolean().nullable().optional(),
18169
+ decode: boolean().nullable().optional(),
18170
+ audio: boolean().nullable().optional(),
18171
+ ingest: boolean().nullable().optional()
18172
+ }), object({ success: literal(true) }), {
18173
+ kind: "mutation",
18174
+ auth: "admin"
18150
18175
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18151
18176
  deviceId: number(),
18152
18177
  addonId: string(),
@@ -24006,6 +24031,18 @@ Object.freeze({
24006
24031
  addonId: null,
24007
24032
  access: "create"
24008
24033
  },
24034
+ "pipelineOrchestrator.setAgentCapabilities": {
24035
+ capName: "pipeline-orchestrator",
24036
+ capScope: "system",
24037
+ addonId: null,
24038
+ access: "create"
24039
+ },
24040
+ "pipelineOrchestrator.setAgentDetectWeight": {
24041
+ capName: "pipeline-orchestrator",
24042
+ capScope: "system",
24043
+ addonId: null,
24044
+ access: "create"
24045
+ },
24009
24046
  "pipelineOrchestrator.setAgentMaxCameras": {
24010
24047
  capName: "pipeline-orchestrator",
24011
24048
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -17840,7 +17840,17 @@ var AgentAddonConfigSchema = object({
17840
17840
  });
17841
17841
  var AgentPipelineSettingsSchema = object({
17842
17842
  addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
17843
- maxCameras: number().int().nonnegative().nullable().default(null)
17843
+ maxCameras: number().int().nonnegative().nullable().default(null),
17844
+ /** Per-node detection weight (relative share for the quota balancer). */
17845
+ detectWeight: number().positive().optional(),
17846
+ /** Node is eligible to run the detection pipeline (decode + inference). */
17847
+ detect: boolean().optional(),
17848
+ /** Node is eligible to host decoder sessions. */
17849
+ decode: boolean().optional(),
17850
+ /** Node is eligible to run audio-analyzer sessions. */
17851
+ audio: boolean().optional(),
17852
+ /** Node is eligible to be the ingest / source-owner (serve the restream). */
17853
+ ingest: boolean().optional()
17844
17854
  });
17845
17855
  var CameraPipelineForAgentSchema = object({
17846
17856
  steps: array(PipelineStepInputSchema).readonly(),
@@ -18146,6 +18156,21 @@ method(object({
18146
18156
  }), object({ success: literal(true) }), {
18147
18157
  kind: "mutation",
18148
18158
  auth: "admin"
18159
+ }), method(object({
18160
+ agentNodeId: string(),
18161
+ detectWeight: number().positive().nullable()
18162
+ }), object({ success: literal(true) }), {
18163
+ kind: "mutation",
18164
+ auth: "admin"
18165
+ }), method(object({
18166
+ agentNodeId: string(),
18167
+ detect: boolean().nullable().optional(),
18168
+ decode: boolean().nullable().optional(),
18169
+ audio: boolean().nullable().optional(),
18170
+ ingest: boolean().nullable().optional()
18171
+ }), object({ success: literal(true) }), {
18172
+ kind: "mutation",
18173
+ auth: "admin"
18149
18174
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
18150
18175
  deviceId: number(),
18151
18176
  addonId: string(),
@@ -24005,6 +24030,18 @@ Object.freeze({
24005
24030
  addonId: null,
24006
24031
  access: "create"
24007
24032
  },
24033
+ "pipelineOrchestrator.setAgentCapabilities": {
24034
+ capName: "pipeline-orchestrator",
24035
+ capScope: "system",
24036
+ addonId: null,
24037
+ access: "create"
24038
+ },
24039
+ "pipelineOrchestrator.setAgentDetectWeight": {
24040
+ capName: "pipeline-orchestrator",
24041
+ capScope: "system",
24042
+ addonId: null,
24043
+ access: "create"
24044
+ },
24008
24045
  "pipelineOrchestrator.setAgentMaxCameras": {
24009
24046
  capName: "pipeline-orchestrator",
24010
24047
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
5
5
  "keywords": [
6
6
  "camstack",