@camstack/types 1.2.321 → 1.2.323

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.
Files changed (43) hide show
  1. package/dist/addon.js +3 -14
  2. package/dist/addon.mjs +3 -14
  3. package/dist/capabilities/decoder.cap.d.ts +0 -211
  4. package/dist/capabilities/index.d.ts +8 -8
  5. package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
  6. package/dist/capabilities/llm.cap.d.ts +4 -4
  7. package/dist/capabilities/local-network.cap.d.ts +11 -11
  8. package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
  9. package/dist/capabilities/pipeline-executor.cap.d.ts +1 -112
  10. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +18 -303
  11. package/dist/capabilities/pipeline-runner.cap.d.ts +0 -2
  12. package/dist/capabilities/schemas/streaming-shared.d.ts +9 -79
  13. package/dist/capabilities/stream-broker.cap.d.ts +0 -85
  14. package/dist/capabilities/webrtc-session.cap.d.ts +0 -2
  15. package/dist/client.js +3 -89
  16. package/dist/client.mjs +3 -89
  17. package/dist/enums/event-category.d.ts +0 -9
  18. package/dist/enums.js +1 -1
  19. package/dist/enums.mjs +1 -1
  20. package/dist/{event-category-BGmz_oxW.mjs → event-category-B_0XEcLF.mjs} +0 -9
  21. package/dist/{event-category-DmS_tLsU.js → event-category-CtBAl88K.js} +0 -9
  22. package/dist/ffmpeg/hwaccel.d.ts +1 -1
  23. package/dist/generated/addon-api.d.ts +0 -161
  24. package/dist/generated/cap-input-defaults.d.ts +1 -1
  25. package/dist/generated/method-access-map.d.ts +1 -1
  26. package/dist/generated/method-device-selectors.d.ts +2 -2
  27. package/dist/generated/system-proxy.d.ts +4 -4
  28. package/dist/index.d.ts +2 -3
  29. package/dist/index.js +33 -425
  30. package/dist/index.mjs +34 -416
  31. package/dist/interfaces/api-responses.d.ts +0 -19
  32. package/dist/interfaces/capability.d.ts +1 -2
  33. package/dist/interfaces/event-bus.d.ts +0 -13
  34. package/dist/interfaces/pipeline-executor-capability.d.ts +1 -15
  35. package/dist/interfaces/pipeline-runner-capability.d.ts +0 -1
  36. package/dist/interfaces/stream-broker.d.ts +2 -67
  37. package/dist/{sleep-DAJ9Er57.mjs → sleep-BNeXenvr.mjs} +11 -86
  38. package/dist/{sleep-AalHiRYL.js → sleep-DPar9AHl.js} +10 -115
  39. package/dist/types/camera-pipeline.d.ts +3 -20
  40. package/dist/types/detection.d.ts +1 -1
  41. package/dist/types/pipeline-schema.d.ts +1 -8
  42. package/package.json +1 -1
  43. package/dist/interfaces/decoder.d.ts +0 -89
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-AalHiRYL.js");
3
- const require_event_category = require("./event-category-DmS_tLsU.js");
2
+ const require_sleep = require("./sleep-DPar9AHl.js");
3
+ const require_event_category = require("./event-category-CtBAl88K.js");
4
4
  const require_composition = require("./composition-BLWAivB2.js");
5
5
  const require_err_msg = require("./err-msg-Dx2Kor0g.js");
6
6
  const require_enums = require("./enums.js");
@@ -3962,72 +3962,6 @@ var StorageLocationDeclarationSchema = zod.z.object({
3962
3962
  ]).optional()
3963
3963
  });
3964
3964
  //#endregion
3965
- //#region src/interfaces/stream-broker.ts
3966
- var DecoderStatsSchema = zod.z.object({
3967
- inputFps: zod.z.number(),
3968
- outputFps: zod.z.number(),
3969
- avgDecodeTimeMs: zod.z.number(),
3970
- droppedFrames: zod.z.number(),
3971
- /**
3972
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
3973
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
3974
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
3975
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
3976
- */
3977
- lagMs: zod.z.number().optional(),
3978
- effectiveFps: zod.z.number().optional(),
3979
- adaptiveFps: zod.z.number().optional()
3980
- });
3981
- var DecoderSessionConfigSchema = zod.z.object({
3982
- codec: zod.z.string(),
3983
- maxFps: zod.z.number().default(0),
3984
- outputFormat: zod.z.enum([
3985
- "jpeg",
3986
- "rgb",
3987
- "bgr",
3988
- "yuv420",
3989
- "gray"
3990
- ]).default("jpeg"),
3991
- scale: zod.z.number().default(1),
3992
- width: zod.z.number().optional(),
3993
- height: zod.z.number().optional(),
3994
- /**
3995
- * Identifier of the camera this decoder session serves. Optional
3996
- * because the cap is generic (any caller could request decode), but
3997
- * stream-broker passes it so decoder logs include `deviceId` for
3998
- * per-camera filtering when diagnosing failures (e.g. node-av
3999
- * sendPacket errors on a single hung camera).
4000
- */
4001
- deviceId: zod.z.number().int().nonnegative().optional(),
4002
- /**
4003
- * Free-form tag for log scoping. Stream-broker uses
4004
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
4005
- * on every line so `grep tag=broker:5/high` filters one camera
4006
- * profile cleanly.
4007
- */
4008
- tag: zod.z.string().optional(),
4009
- /**
4010
- * Where the session delivers decoded frames (Phase 5 / D9):
4011
- *
4012
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
4013
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
4014
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
4015
- * into an OS shared-memory ring and drained as zero-pixel
4016
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
4017
- * other — `pullFrames` returns nothing for an `'shm'` session and
4018
- * `pullHandles` returns nothing for a `'callback'` session.
4019
- */
4020
- frameSink: zod.z.enum(["callback", "shm"]).default("callback"),
4021
- /**
4022
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
4023
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
4024
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
4025
- * stream-broker's `streamingDebug` gate — off by default so production logs
4026
- * stay quiet and the emit path pays zero per-frame cost when disabled.
4027
- */
4028
- debug: zod.z.boolean().optional()
4029
- });
4030
- //#endregion
4031
3965
  //#region src/interfaces/timezones.ts
4032
3966
  var EU_DST = {
4033
3967
  offsetHours: 1,
@@ -8853,13 +8787,6 @@ var BrokerRtspClientSchema = zod.z.object({
8853
8787
  lastRtpAt: zod.z.number(),
8854
8788
  bytesSent: zod.z.number()
8855
8789
  });
8856
- var BrokerDecodedClientSchema = zod.z.object({
8857
- tag: zod.z.string(),
8858
- subscribedAt: zod.z.number(),
8859
- maxFps: zod.z.number(),
8860
- framesDelivered: zod.z.number(),
8861
- framesDropped: zod.z.number()
8862
- });
8863
8790
  var BrokerAudioClientSchema = zod.z.object({
8864
8791
  tag: zod.z.string(),
8865
8792
  subscribedAt: zod.z.number(),
@@ -8959,7 +8886,6 @@ var BrokerEncodedClientSchema = zod.z.object({
8959
8886
  });
8960
8887
  var BrokerClientsSchema = zod.z.object({
8961
8888
  rtsp: zod.z.array(BrokerRtspClientSchema).readonly(),
8962
- decoded: zod.z.array(BrokerDecodedClientSchema).readonly(),
8963
8889
  audio: zod.z.array(BrokerAudioClientSchema).readonly(),
8964
8890
  encoded: zod.z.array(BrokerEncodedClientSchema).readonly(),
8965
8891
  pipeClients: zod.z.number(),
@@ -9451,11 +9377,7 @@ var streamBrokerCapability = {
9451
9377
  listClients: require_sleep.method(zod.z.object({ brokerId: zod.z.string() }), BrokerClientsSchema),
9452
9378
  killClient: require_sleep.method(zod.z.object({
9453
9379
  brokerId: zod.z.string(),
9454
- channel: zod.z.enum([
9455
- "rtsp",
9456
- "decoded",
9457
- "audio"
9458
- ]),
9380
+ channel: zod.z.enum(["rtsp", "audio"]),
9459
9381
  handle: zod.z.string()
9460
9382
  }), zod.z.object({ killed: zod.z.boolean() }), {
9461
9383
  kind: "mutation",
@@ -9554,31 +9476,6 @@ var streamBrokerCapability = {
9554
9476
  maxCount: zod.z.number().int().positive().default(8)
9555
9477
  }), zod.z.array(require_sleep.DecodedAudioChunkSchema).readonly()),
9556
9478
  unsubscribeAudioChunks: require_sleep.method(zod.z.object({ subscriptionId: zod.z.string() }), zod.z.object({ released: zod.z.boolean() }), { kind: "mutation" }),
9557
- /**
9558
- * ── Shared-memory frame plane (Phase 5 / D9) ──────────────────────
9559
- *
9560
- * The handle-based replacement for the live-object `IStreamBroker.
9561
- * onDecodedFrame` callback path. A consumer:
9562
- *
9563
- * 1. `subscribeFrames({ brokerId, format })` — the broker spins up
9564
- * (or reuses) a `frameSink: 'shm'` decoder session producing that
9565
- * `format` and returns a `subscriptionId`.
9566
- * 2. polls `pullFrameHandles({ subscriptionId, maxCount })` — drains
9567
- * zero-pixel `FrameHandle[]`; each handle is fed to a
9568
- * `FrameRingReader` that opens the named shm segment and reads the
9569
- * pixels back zero-copy.
9570
- * 3. `unsubscribeFrames({ subscriptionId })` on teardown.
9571
- *
9572
- * The broker keeps one shm ring per `(brokerId, format)` actually
9573
- * requested — no broker-side `sharp` conversion. fps throttling is
9574
- * implicit (latest-wins ring reads drop frames for a slow consumer).
9575
- */
9576
- subscribeFrames: require_sleep.method(require_sleep.SubscribeFramesInputSchema, require_sleep.SubscribeFramesResultSchema, { kind: "mutation" }),
9577
- pullFrameHandles: require_sleep.method(zod.z.object({
9578
- subscriptionId: zod.z.string(),
9579
- maxCount: zod.z.number().int().positive().default(4)
9580
- }), zod.z.array(require_sleep.FrameHandleSchema).readonly()),
9581
- unsubscribeFrames: require_sleep.method(zod.z.object({ subscriptionId: zod.z.string() }), zod.z.object({ released: zod.z.boolean() }), { kind: "mutation" }),
9582
9479
  setPreBufferDuration: require_sleep.method(zod.z.object({
9583
9480
  brokerId: zod.z.string(),
9584
9481
  seconds: zod.z.number().min(0).max(30)
@@ -12755,72 +12652,18 @@ var DEFAULT_DECODER_HWACCEL_CONFIG = {
12755
12652
  hwaccel: "auto",
12756
12653
  probedBestHwaccel: ""
12757
12654
  };
12758
- /**
12759
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
12760
- * exposed via `decoder.getShmStats` so downstream consumers can
12761
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
12762
- */
12763
- var ShmRingStatsSchema = zod.z.object({
12764
- sessionId: zod.z.string(),
12765
- slotCount: zod.z.number().int(),
12766
- slotByteLength: zod.z.number().int(),
12767
- segmentBytes: zod.z.number().int(),
12768
- budgetMb: zod.z.number().int(),
12769
- framesWritten: zod.z.number().int(),
12770
- getFrameHits: zod.z.number().int(),
12771
- getFrameMisses: zod.z.number().int()
12772
- });
12773
12655
  var decoderCapability = {
12774
12656
  name: "decoder",
12775
12657
  scope: "system",
12776
12658
  mode: "singleton",
12777
12659
  preferredProvider: "decoder-nodeav",
12778
12660
  methods: {
12779
- supportsCodec: require_sleep.method(zod.z.object({ codec: zod.z.string() }), zod.z.boolean()),
12780
12661
  getInfo: require_sleep.method(zod.z.void(), zod.z.object({
12781
12662
  id: zod.z.string(),
12782
12663
  name: zod.z.string(),
12783
- isPullMode: zod.z.boolean().optional(),
12784
- priority: zod.z.number().optional(),
12785
12664
  hwaccel: zod.z.string().optional(),
12786
12665
  probedBestHwaccel: zod.z.string().optional()
12787
12666
  })),
12788
- createSession: require_sleep.method(DecoderSessionConfigSchema, zod.z.object({
12789
- sessionId: zod.z.string(),
12790
- nodeId: zod.z.string()
12791
- })),
12792
- destroySession: require_sleep.method(zod.z.object({ sessionId: zod.z.string() }), zod.z.void()),
12793
- pushPacket: require_sleep.method(zod.z.object({
12794
- sessionId: zod.z.string(),
12795
- packet: require_sleep.EncodedPacketSchema
12796
- }), zod.z.void()),
12797
- openStream: require_sleep.method(zod.z.object({
12798
- sessionId: zod.z.string(),
12799
- url: zod.z.string()
12800
- }), zod.z.void()),
12801
- pullFrames: require_sleep.method(zod.z.object({
12802
- sessionId: zod.z.string(),
12803
- maxCount: zod.z.number().default(1),
12804
- waitMs: zod.z.number().optional()
12805
- }), zod.z.array(require_sleep.DecodedFrameSchema)),
12806
- pullHandles: require_sleep.method(zod.z.object({
12807
- sessionId: zod.z.string(),
12808
- maxCount: zod.z.number().default(1),
12809
- waitMs: zod.z.number().optional()
12810
- }), zod.z.array(require_sleep.FrameHandleSchema)),
12811
- getFrame: require_sleep.method(zod.z.object({ handle: require_sleep.FrameHandleSchema }), require_sleep.DecodedFrameSchema.nullable()),
12812
- getShmStats: require_sleep.method(zod.z.object({ sessionId: zod.z.string() }), ShmRingStatsSchema.nullable()),
12813
- updateConfig: require_sleep.method(zod.z.object({
12814
- sessionId: zod.z.string(),
12815
- config: DecoderSessionConfigSchema.partial()
12816
- }), zod.z.void()),
12817
- getStats: require_sleep.method(zod.z.object({ sessionId: zod.z.string() }), DecoderStatsSchema),
12818
- listActiveSessions: require_sleep.method(zod.z.void(), zod.z.array(zod.z.object({
12819
- sessionId: zod.z.string(),
12820
- codec: zod.z.string(),
12821
- outputFormat: zod.z.string(),
12822
- createdAtMs: zod.z.number()
12823
- })).readonly()),
12824
12667
  /**
12825
12668
  * Re-run the host platform-probe for the decoder's hwaccel backend
12826
12669
  * and write the detected value into the addon's own global
@@ -23805,8 +23648,8 @@ var DEFAULT_MIN_LANDMARK_FACE_SIZE_PX = 24;
23805
23648
  var CLUSTER_STEP_SETTING_FIELDS = [{
23806
23649
  stepId: "face-embedding",
23807
23650
  key: "minLandmarkFaceSize",
23808
- label: "Min face size for recognition (detection px)",
23809
- description: "Refuse to embed a face smaller than this IN THE DETECTION FRAME. Applies to every node — the enrolled gallery is one index, and two admission floors would fill it from two policies. 0 disables the gate.",
23651
+ label: "Min face size to embed (detection-frame px)",
23652
+ description: "Faces smaller than this in the small frame the detector sees are not embedded, so they can never be recognised. Below it the face cannot be aligned reliably and a bad embedding matches everyone. Same value on every node. 0 = no limit.",
23810
23653
  type: "slider",
23811
23654
  min: 0,
23812
23655
  max: 64,
@@ -26637,21 +26480,6 @@ var PipelineDefaultStepSchema = zod.z.lazy(() => zod.z.object({
26637
26480
  group: zod.z.string().optional(),
26638
26481
  settings: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
26639
26482
  }));
26640
- var PipelineTemplateStepSchema = zod.z.lazy(() => zod.z.object({
26641
- addonId: zod.z.string(),
26642
- enabled: zod.z.boolean(),
26643
- modelId: zod.z.string(),
26644
- children: zod.z.array(PipelineTemplateStepSchema).readonly(),
26645
- settings: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
26646
- }));
26647
- var PipelineTemplateSchema$1 = zod.z.object({
26648
- id: zod.z.string(),
26649
- name: zod.z.string(),
26650
- createdAt: zod.z.string(),
26651
- updatedAt: zod.z.string(),
26652
- engine: PipelineEngineChoiceSchema,
26653
- steps: zod.z.array(PipelineTemplateStepSchema).readonly()
26654
- });
26655
26483
  var PipelineModelOptionSchema = zod.z.object({
26656
26484
  id: zod.z.string(),
26657
26485
  name: zod.z.string(),
@@ -26973,18 +26801,6 @@ var pipelineExecutorCapability = {
26973
26801
  steps: zod.z.array(PipelineStepInputSchema),
26974
26802
  deviceKey: zod.z.string().optional()
26975
26803
  }), PipelineValidationResultSchema),
26976
- listTemplates: require_sleep.method(zod.z.void(), zod.z.array(PipelineTemplateSchema$1).readonly()),
26977
- saveTemplate: require_sleep.method(zod.z.object({
26978
- name: zod.z.string(),
26979
- steps: zod.z.array(PipelineTemplateStepSchema).readonly(),
26980
- engine: PipelineEngineChoiceSchema
26981
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
26982
- updateTemplate: require_sleep.method(zod.z.object({
26983
- id: zod.z.string(),
26984
- name: zod.z.string().optional(),
26985
- steps: zod.z.array(PipelineTemplateStepSchema).readonly().optional()
26986
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
26987
- deleteTemplate: require_sleep.method(zod.z.object({ id: zod.z.string() }), zod.z.void(), { kind: "mutation" }),
26988
26804
  getCapabilities: require_sleep.method(zod.z.void(), InferenceCapabilitiesBridge),
26989
26805
  getAddonModels: require_sleep.method(zod.z.object({ addonId: zod.z.string() }), ModelAvailabilityListBridge),
26990
26806
  downloadModel: require_sleep.method(zod.z.object({
@@ -28763,14 +28579,15 @@ var RunnerLocalLoadSchema = zod.z.object({
28763
28579
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
28764
28580
  * this runner currently has attached cameras on, so the orchestrator's second
28765
28581
  * `balance()` pass (over a node's devices) weights on real per-pool session
28766
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
28767
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
28582
+ * counts. Empty on single-device / pre-multi-device runners. There is no
28583
+ * per-device queue depth: the inference pool's backlog has no accessor, and
28584
+ * a field that always read 0 was removed rather than shown as a measurement
28585
+ * (D762).
28768
28586
  */
28769
28587
  devices: zod.z.array(zod.z.object({
28770
28588
  deviceKey: zod.z.string(),
28771
28589
  backend: zod.z.string(),
28772
- attachedCameras: zod.z.number(),
28773
- queueDepthTotal: zod.z.number()
28590
+ attachedCameras: zod.z.number()
28774
28591
  })).default([]),
28775
28592
  /** Hardware capability flags reported by this node. */
28776
28593
  hardware: zod.z.object({
@@ -29178,14 +28995,6 @@ var CameraPipelineConfigSchema = zod.z.object({
29178
28995
  settings: zod.z.record(zod.z.string(), zod.z.unknown()).readonly().optional()
29179
28996
  }).nullable().optional()
29180
28997
  });
29181
- var PipelineTemplateSchema = zod.z.object({
29182
- id: zod.z.string(),
29183
- name: zod.z.string(),
29184
- description: zod.z.string().optional(),
29185
- config: CameraPipelineConfigSchema,
29186
- createdAt: zod.z.string(),
29187
- updatedAt: zod.z.string()
29188
- });
29189
28998
  var DeviceStepConfigSchema = zod.z.object({
29190
28999
  modelId: zod.z.string().optional(),
29191
29000
  settings: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
@@ -29295,7 +29104,10 @@ var PipelineAssignmentSchema = zod.z.object({
29295
29104
  });
29296
29105
  /**
29297
29106
  * Per-agent load summary surfaced to the load balancer + dashboards.
29298
- * Aggregated from each runner's `getLocalLoad` cap call.
29107
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
29108
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
29109
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
29110
+ * the default pool IS that device (D745); the balancer's census stays raw.
29299
29111
  */
29300
29112
  var AgentLoadSummarySchema = zod.z.object({
29301
29113
  nodeId: zod.z.string(),
@@ -29385,8 +29197,14 @@ var CameraBrokerProfileSchema = zod.z.object({
29385
29197
  width: zod.z.number(),
29386
29198
  height: zod.z.number(),
29387
29199
  subscribers: zod.z.number(),
29388
- inFps: zod.z.number(),
29389
- outFps: zod.z.number()
29200
+ /**
29201
+ * Encoded packets/s the broker receives from the camera. null when the
29202
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
29203
+ * There is no output rate: decoding runs in the session decode workers, not
29204
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
29205
+ * camera and is not served (D758).
29206
+ */
29207
+ inFps: zod.z.number().nullable()
29390
29208
  });
29391
29209
  /** Broker block — null when the broker stage is unreachable or inactive. */
29392
29210
  var CameraBrokerStatusSchema = zod.z.object({
@@ -29394,20 +29212,15 @@ var CameraBrokerStatusSchema = zod.z.object({
29394
29212
  webrtcSessions: zod.z.number(),
29395
29213
  rtspRestream: zod.z.boolean()
29396
29214
  });
29397
- /** Shared-memory ring statistics within the decoder block. */
29398
- var CameraDecoderShmSchema = zod.z.object({
29399
- framesWritten: zod.z.number(),
29400
- getFrameHits: zod.z.number(),
29401
- getFrameMisses: zod.z.number(),
29402
- budgetMb: zod.z.number()
29403
- });
29404
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
29405
- var CameraDecoderStatusSchema = zod.z.object({
29406
- nodeId: zod.z.string(),
29407
- formats: zod.z.array(zod.z.string()).readonly(),
29408
- sessionCount: zod.z.number(),
29409
- shm: CameraDecoderShmSchema
29410
- });
29215
+ /**
29216
+ * Decoder block — WHERE decode runs (co-located with the detection node by
29217
+ * construction); null when the camera has no detection node. It carries no
29218
+ * frame counter: the shared-memory plane whose counters it used to serve is
29219
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
29220
+ * from `detection.actualFps` (frames delivered to and processed by the
29221
+ * detector), never from a counter nothing feeds.
29222
+ */
29223
+ var CameraDecoderStatusSchema = zod.z.object({ nodeId: zod.z.string() });
29411
29224
  /** Motion block — null when motion detection is not active for this device. */
29412
29225
  var CameraMotionStatusSchema = zod.z.object({
29413
29226
  enabled: zod.z.boolean(),
@@ -30303,33 +30116,7 @@ var pipelineOrchestratorCapability = {
30303
30116
  auth: "admin"
30304
30117
  }),
30305
30118
  /** Snapshot of the in-flight or last disk-wins fleet reconcile. */
30306
- getReconcileFromDiskStatus: require_sleep.method(zod.z.void(), DiskReconcileJobSchema, { auth: "admin" }),
30307
- /** List every template the operator has saved. */
30308
- listTemplates: require_sleep.method(zod.z.void(), zod.z.array(PipelineTemplateSchema).readonly()),
30309
- /** Create a new named preset from a given CameraPipelineConfig. */
30310
- saveTemplate: require_sleep.method(zod.z.object({
30311
- name: zod.z.string(),
30312
- description: zod.z.string().optional(),
30313
- config: CameraPipelineConfigSchema
30314
- }), PipelineTemplateSchema, {
30315
- kind: "mutation",
30316
- auth: "admin"
30317
- }),
30318
- /** Partial update of a template. Any omitted field is preserved. */
30319
- updateTemplate: require_sleep.method(zod.z.object({
30320
- id: zod.z.string(),
30321
- name: zod.z.string().optional(),
30322
- description: zod.z.string().optional(),
30323
- config: CameraPipelineConfigSchema.optional()
30324
- }), PipelineTemplateSchema, {
30325
- kind: "mutation",
30326
- auth: "admin"
30327
- }),
30328
- /** Remove a template. Camera configs that were seeded from it keep a copy. */
30329
- deleteTemplate: require_sleep.method(zod.z.object({ id: zod.z.string() }), zod.z.object({ success: zod.z.literal(true) }), {
30330
- kind: "mutation",
30331
- auth: "admin"
30332
- })
30119
+ getReconcileFromDiskStatus: require_sleep.method(zod.z.void(), DiskReconcileJobSchema, { auth: "admin" })
30333
30120
  }
30334
30121
  };
30335
30122
  //#endregion
@@ -33727,8 +33514,6 @@ var WebrtcStreamChoiceSchema = zod.z.object({
33727
33514
  ]).nullable(),
33728
33515
  /** Input FPS from the camera (null for adaptive). */
33729
33516
  inputFps: zod.z.number().nullable(),
33730
- /** Decoded FPS (null for adaptive). */
33731
- decodeFps: zod.z.number().nullable(),
33732
33517
  /** Bitrate in kbps (null for adaptive). */
33733
33518
  bitrateKbps: zod.z.number().nullable()
33734
33519
  });
@@ -53079,90 +52864,18 @@ var METHOD_ACCESS_MAP = Object.freeze({
53079
52864
  addonId: null,
53080
52865
  access: "create"
53081
52866
  },
53082
- "decoder.createSession": {
53083
- capName: "decoder",
53084
- capScope: "system",
53085
- addonId: null,
53086
- access: "view"
53087
- },
53088
- "decoder.destroySession": {
53089
- capName: "decoder",
53090
- capScope: "system",
53091
- addonId: null,
53092
- access: "delete"
53093
- },
53094
- "decoder.getFrame": {
53095
- capName: "decoder",
53096
- capScope: "system",
53097
- addonId: null,
53098
- access: "view"
53099
- },
53100
52867
  "decoder.getInfo": {
53101
52868
  capName: "decoder",
53102
52869
  capScope: "system",
53103
52870
  addonId: null,
53104
52871
  access: "view"
53105
52872
  },
53106
- "decoder.getShmStats": {
53107
- capName: "decoder",
53108
- capScope: "system",
53109
- addonId: null,
53110
- access: "view"
53111
- },
53112
- "decoder.getStats": {
53113
- capName: "decoder",
53114
- capScope: "system",
53115
- addonId: null,
53116
- access: "view"
53117
- },
53118
- "decoder.listActiveSessions": {
53119
- capName: "decoder",
53120
- capScope: "system",
53121
- addonId: null,
53122
- access: "view"
53123
- },
53124
- "decoder.openStream": {
53125
- capName: "decoder",
53126
- capScope: "system",
53127
- addonId: null,
53128
- access: "view"
53129
- },
53130
- "decoder.pullFrames": {
53131
- capName: "decoder",
53132
- capScope: "system",
53133
- addonId: null,
53134
- access: "view"
53135
- },
53136
- "decoder.pullHandles": {
53137
- capName: "decoder",
53138
- capScope: "system",
53139
- addonId: null,
53140
- access: "view"
53141
- },
53142
- "decoder.pushPacket": {
53143
- capName: "decoder",
53144
- capScope: "system",
53145
- addonId: null,
53146
- access: "view"
53147
- },
53148
52873
  "decoder.reprobeHwaccel": {
53149
52874
  capName: "decoder",
53150
52875
  capScope: "system",
53151
52876
  addonId: null,
53152
52877
  access: "create"
53153
52878
  },
53154
- "decoder.supportsCodec": {
53155
- capName: "decoder",
53156
- capScope: "system",
53157
- addonId: null,
53158
- access: "view"
53159
- },
53160
- "decoder.updateConfig": {
53161
- capName: "decoder",
53162
- capScope: "system",
53163
- addonId: null,
53164
- access: "view"
53165
- },
53166
52879
  "detectionPipeline.applyDeviceSettingsPatch": {
53167
52880
  capName: "detection-pipeline",
53168
52881
  capScope: "device",
@@ -56253,12 +55966,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56253
55966
  addonId: null,
56254
55967
  access: "delete"
56255
55968
  },
56256
- "pipelineExecutor.deleteTemplate": {
56257
- capName: "pipeline-executor",
56258
- capScope: "system",
56259
- addonId: null,
56260
- access: "delete"
56261
- },
56262
55969
  "pipelineExecutor.downloadModel": {
56263
55970
  capName: "pipeline-executor",
56264
55971
  capScope: "system",
@@ -56397,12 +56104,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56397
56104
  addonId: null,
56398
56105
  access: "view"
56399
56106
  },
56400
- "pipelineExecutor.listTemplates": {
56401
- capName: "pipeline-executor",
56402
- capScope: "system",
56403
- addonId: null,
56404
- access: "view"
56405
- },
56406
56107
  "pipelineExecutor.rearmInferenceDevice": {
56407
56108
  capName: "pipeline-executor",
56408
56109
  capScope: "system",
@@ -56427,12 +56128,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56427
56128
  addonId: null,
56428
56129
  access: "create"
56429
56130
  },
56430
- "pipelineExecutor.saveTemplate": {
56431
- capName: "pipeline-executor",
56432
- capScope: "system",
56433
- addonId: null,
56434
- access: "create"
56435
- },
56436
56131
  "pipelineExecutor.setVideoPipelineSteps": {
56437
56132
  capName: "pipeline-executor",
56438
56133
  capScope: "system",
@@ -56451,12 +56146,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56451
56146
  addonId: null,
56452
56147
  access: "create"
56453
56148
  },
56454
- "pipelineExecutor.updateTemplate": {
56455
- capName: "pipeline-executor",
56456
- capScope: "system",
56457
- addonId: null,
56458
- access: "create"
56459
- },
56460
56149
  "pipelineExecutor.validatePipeline": {
56461
56150
  capName: "pipeline-executor",
56462
56151
  capScope: "system",
@@ -56487,12 +56176,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56487
56176
  addonId: null,
56488
56177
  access: "create"
56489
56178
  },
56490
- "pipelineOrchestrator.deleteTemplate": {
56491
- capName: "pipeline-orchestrator",
56492
- capScope: "system",
56493
- addonId: null,
56494
- access: "delete"
56495
- },
56496
56179
  "pipelineOrchestrator.getAgentLoad": {
56497
56180
  capName: "pipeline-orchestrator",
56498
56181
  capScope: "system",
@@ -56643,12 +56326,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56643
56326
  addonId: null,
56644
56327
  access: "view"
56645
56328
  },
56646
- "pipelineOrchestrator.listTemplates": {
56647
- capName: "pipeline-orchestrator",
56648
- capScope: "system",
56649
- addonId: null,
56650
- access: "view"
56651
- },
56652
56329
  "pipelineOrchestrator.pauseForStorageMigration": {
56653
56330
  capName: "pipeline-orchestrator",
56654
56331
  capScope: "system",
@@ -56703,12 +56380,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56703
56380
  addonId: null,
56704
56381
  access: "create"
56705
56382
  },
56706
- "pipelineOrchestrator.saveTemplate": {
56707
- capName: "pipeline-orchestrator",
56708
- capScope: "system",
56709
- addonId: null,
56710
- access: "create"
56711
- },
56712
56383
  "pipelineOrchestrator.setAgentCapabilities": {
56713
56384
  capName: "pipeline-orchestrator",
56714
56385
  capScope: "system",
@@ -56817,12 +56488,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
56817
56488
  addonId: null,
56818
56489
  access: "create"
56819
56490
  },
56820
- "pipelineOrchestrator.updateTemplate": {
56821
- capName: "pipeline-orchestrator",
56822
- capScope: "system",
56823
- addonId: null,
56824
- access: "create"
56825
- },
56826
56491
  "pipelineRunner.attachCamera": {
56827
56492
  capName: "pipeline-runner",
56828
56493
  capScope: "system",
@@ -58257,12 +57922,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
58257
57922
  addonId: null,
58258
57923
  access: "view"
58259
57924
  },
58260
- "streamBroker.pullFrameHandles": {
58261
- capName: "stream-broker",
58262
- capScope: "system",
58263
- addonId: null,
58264
- access: "view"
58265
- },
58266
57925
  "streamBroker.regenerateRtspToken": {
58267
57926
  capName: "stream-broker",
58268
57927
  capScope: "system",
@@ -58329,12 +57988,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
58329
57988
  addonId: null,
58330
57989
  access: "create"
58331
57990
  },
58332
- "streamBroker.subscribeFrames": {
58333
- capName: "stream-broker",
58334
- capScope: "system",
58335
- addonId: null,
58336
- access: "create"
58337
- },
58338
57991
  "streamBroker.unassignProfile": {
58339
57992
  capName: "stream-broker",
58340
57993
  capScope: "system",
@@ -58347,12 +58000,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
58347
58000
  addonId: null,
58348
58001
  access: "create"
58349
58002
  },
58350
- "streamBroker.unsubscribeFrames": {
58351
- capName: "stream-broker",
58352
- capScope: "system",
58353
- addonId: null,
58354
- access: "create"
58355
- },
58356
58003
  "streamCatalog.getCatalog": {
58357
58004
  capName: "stream-catalog",
58358
58005
  capScope: "device",
@@ -64218,11 +63865,6 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
64218
63865
  form: "single",
64219
63866
  optional: false
64220
63867
  }],
64221
- "decoder.createSession": [{
64222
- name: "deviceId",
64223
- form: "single",
64224
- optional: true
64225
- }],
64226
63868
  "detectionPipeline.applyDeviceSettingsPatch": [{
64227
63869
  name: "deviceId",
64228
63870
  form: "single",
@@ -66453,7 +66095,6 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
66453
66095
  "audioAnalyzer.attachDevice",
66454
66096
  "audioAnalyzer.classify",
66455
66097
  "audioAnalyzer.detachDevice",
66456
- "decoder.createSession",
66457
66098
  "deviceAdoption.getStatus",
66458
66099
  "deviceAdoption.release",
66459
66100
  "deviceAdoption.resync",
@@ -67223,19 +66864,7 @@ function createSystemProxy(api) {
67223
66864
  validateComposition: (input) => dispatch("coreBlocks", "validateComposition", "mutation", input)
67224
66865
  },
67225
66866
  decoder: {
67226
- supportsCodec: (input) => dispatch("decoder", "supportsCodec", "query", input),
67227
66867
  getInfo: (input) => dispatch("decoder", "getInfo", "query", input),
67228
- createSession: (input) => dispatch("decoder", "createSession", "query", input),
67229
- destroySession: (input) => dispatch("decoder", "destroySession", "query", input),
67230
- pushPacket: (input) => dispatch("decoder", "pushPacket", "query", input),
67231
- openStream: (input) => dispatch("decoder", "openStream", "query", input),
67232
- pullFrames: (input) => dispatch("decoder", "pullFrames", "query", input),
67233
- pullHandles: (input) => dispatch("decoder", "pullHandles", "query", input),
67234
- getFrame: (input) => dispatch("decoder", "getFrame", "query", input),
67235
- getShmStats: (input) => dispatch("decoder", "getShmStats", "query", input),
67236
- updateConfig: (input) => dispatch("decoder", "updateConfig", "query", input),
67237
- getStats: (input) => dispatch("decoder", "getStats", "query", input),
67238
- listActiveSessions: (input) => dispatch("decoder", "listActiveSessions", "query", input),
67239
66868
  reprobeHwaccel: (input) => dispatch("decoder", "reprobeHwaccel", "mutation", input)
67240
66869
  },
67241
66870
  deviceAdoption: {
@@ -67524,10 +67153,6 @@ function createSystemProxy(api) {
67524
67153
  getGlobalPipelineConfig: (input) => dispatch("pipelineExecutor", "getGlobalPipelineConfig", "query", input),
67525
67154
  getOrchestratorConfigSchema: (input) => dispatch("pipelineExecutor", "getOrchestratorConfigSchema", "query", input),
67526
67155
  validatePipeline: (input) => dispatch("pipelineExecutor", "validatePipeline", "query", input),
67527
- listTemplates: (input) => dispatch("pipelineExecutor", "listTemplates", "query", input),
67528
- saveTemplate: (input) => dispatch("pipelineExecutor", "saveTemplate", "mutation", input),
67529
- updateTemplate: (input) => dispatch("pipelineExecutor", "updateTemplate", "mutation", input),
67530
- deleteTemplate: (input) => dispatch("pipelineExecutor", "deleteTemplate", "mutation", input),
67531
67156
  getCapabilities: (input) => dispatch("pipelineExecutor", "getCapabilities", "query", input),
67532
67157
  getAddonModels: (input) => dispatch("pipelineExecutor", "getAddonModels", "query", input),
67533
67158
  downloadModel: (input) => dispatch("pipelineExecutor", "downloadModel", "mutation", input),
@@ -67581,11 +67206,7 @@ function createSystemProxy(api) {
67581
67206
  getCameraStatuses: (input) => dispatch("pipelineOrchestrator", "getCameraStatuses", "query", input),
67582
67207
  setCameraSensors: (input) => dispatch("pipelineOrchestrator", "setCameraSensors", "mutation", input),
67583
67208
  reconcileFromDisk: (input) => dispatch("pipelineOrchestrator", "reconcileFromDisk", "mutation", input),
67584
- getReconcileFromDiskStatus: (input) => dispatch("pipelineOrchestrator", "getReconcileFromDiskStatus", "query", input),
67585
- listTemplates: (input) => dispatch("pipelineOrchestrator", "listTemplates", "query", input),
67586
- saveTemplate: (input) => dispatch("pipelineOrchestrator", "saveTemplate", "mutation", input),
67587
- updateTemplate: (input) => dispatch("pipelineOrchestrator", "updateTemplate", "mutation", input),
67588
- deleteTemplate: (input) => dispatch("pipelineOrchestrator", "deleteTemplate", "mutation", input)
67209
+ getReconcileFromDiskStatus: (input) => dispatch("pipelineOrchestrator", "getReconcileFromDiskStatus", "query", input)
67589
67210
  },
67590
67211
  pipelineRunner: {
67591
67212
  attachCamera: (input) => dispatch("pipelineRunner", "attachCamera", "mutation", input),
@@ -67720,9 +67341,6 @@ function createSystemProxy(api) {
67720
67341
  subscribeAudioChunks: (input) => dispatch("streamBroker", "subscribeAudioChunks", "mutation", input),
67721
67342
  pullAudioChunks: (input) => dispatch("streamBroker", "pullAudioChunks", "query", input),
67722
67343
  unsubscribeAudioChunks: (input) => dispatch("streamBroker", "unsubscribeAudioChunks", "mutation", input),
67723
- subscribeFrames: (input) => dispatch("streamBroker", "subscribeFrames", "mutation", input),
67724
- pullFrameHandles: (input) => dispatch("streamBroker", "pullFrameHandles", "query", input),
67725
- unsubscribeFrames: (input) => dispatch("streamBroker", "unsubscribeFrames", "mutation", input),
67726
67344
  setPreBufferDuration: (input) => dispatch("streamBroker", "setPreBufferDuration", "mutation", input),
67727
67345
  getPreBufferInfo: (input) => dispatch("streamBroker", "getPreBufferInfo", "query", input),
67728
67346
  getRtspPort: (input) => dispatch("streamBroker", "getRtspPort", "query", input),
@@ -75896,7 +75514,6 @@ exports.BrokerClientsSchema = BrokerClientsSchema;
75896
75514
  exports.BrokerConnectionDetailsSchema = BrokerConnectionDetailsSchema;
75897
75515
  exports.BrokerConsumerAttributionSchema = BrokerConsumerAttributionSchema;
75898
75516
  exports.BrokerConsumerKindSchema = BrokerConsumerKindSchema;
75899
- exports.BrokerDecodedClientSchema = BrokerDecodedClientSchema;
75900
75517
  exports.BrokerEncodedClientSchema = BrokerEncodedClientSchema;
75901
75518
  exports.BrokerGetStateInputSchema = GetStateInputSchema;
75902
75519
  exports.BrokerInfoSchema = BrokerInfoSchema;
@@ -75976,7 +75593,6 @@ exports.CameraBrokerProfileSchema = CameraBrokerProfileSchema;
75976
75593
  exports.CameraBrokerStatusSchema = CameraBrokerStatusSchema;
75977
75594
  exports.CameraCredentialsSchema = CameraCredentialsSchema;
75978
75595
  exports.CameraCredentialsStatusSchema = CameraCredentialsStatusSchema;
75979
- exports.CameraDecoderShmSchema = CameraDecoderShmSchema;
75980
75596
  exports.CameraDecoderStatusSchema = CameraDecoderStatusSchema;
75981
75597
  exports.CameraDetectionPhaseSchema = CameraDetectionPhaseSchema;
75982
75598
  exports.CameraDetectionProvisioningSchema = CameraDetectionProvisioningSchema;
@@ -76203,9 +75819,6 @@ exports.DayNightSettingsPatchSchema = DayNightSettingsPatchSchema;
76203
75819
  exports.DayNightStatusSchema = DayNightStatusSchema;
76204
75820
  exports.DeclaredDevices = DeclaredDevices;
76205
75821
  exports.DecodedAudioChunkSchema = require_sleep.DecodedAudioChunkSchema;
76206
- exports.DecodedFrameSchema = require_sleep.DecodedFrameSchema;
76207
- exports.DecoderSessionConfigSchema = DecoderSessionConfigSchema;
76208
- exports.DecoderStatsSchema = DecoderStatsSchema;
76209
75822
  exports.DeleteIntegrationResultSchema = DeleteIntegrationResultSchema;
76210
75823
  exports.DetailCropConventionSchema = DetailCropConventionSchema;
76211
75824
  exports.DetectionCatalogClassMapSchema = DetectionCatalogClassMapSchema;
@@ -76279,7 +75892,6 @@ exports.EmbeddingRefusalCodeSchema = EmbeddingRefusalCodeSchema;
76279
75892
  exports.EmbeddingResultSchema = EmbeddingResultSchema;
76280
75893
  exports.EmbeddingTowerSchema = EmbeddingTowerSchema;
76281
75894
  exports.EncodeProfileSchema = EncodeProfileSchema;
76282
- exports.EncodedPacketSchema = require_sleep.EncodedPacketSchema;
76283
75895
  exports.EnrichedWidgetMetadataSchema = EnrichedWidgetMetadataSchema;
76284
75896
  exports.EnumSensorDateTimeFormatSchema = EnumSensorDateTimeFormatSchema;
76285
75897
  exports.EnumSensorStatusSchema = EnumSensorStatusSchema;
@@ -76357,7 +75969,6 @@ exports.FieldClaimModeSchema = FieldClaimModeSchema;
76357
75969
  exports.FieldClaimSchema = FieldClaimSchema;
76358
75970
  exports.FloodStatusSchema = FloodStatusSchema;
76359
75971
  exports.Fmp4BoxSplitter = require_composition.Fmp4BoxSplitter;
76360
- exports.FrameHandleFormatSchema = require_sleep.FrameHandleFormatSchema;
76361
75972
  exports.FrameHandleSchema = require_sleep.FrameHandleSchema;
76362
75973
  exports.FrameInputSchema = FrameInputSchema;
76363
75974
  exports.FrameLazyCountersSchema = FrameLazyCountersSchema;
@@ -77123,7 +76734,6 @@ exports.SettingsSchemaWithValuesSchema = SettingsSchemaWithValuesSchema;
77123
76734
  exports.SettingsUpdateResultSchema = SettingsUpdateResultSchema;
77124
76735
  exports.ShareSourceSchema = ShareSourceSchema;
77125
76736
  exports.ShareWeightsSchema = ShareWeightsSchema;
77126
- exports.ShmRingStatsSchema = ShmRingStatsSchema;
77127
76737
  exports.SiteLocationSchema = SiteLocationSchema;
77128
76738
  exports.SiteLocationSourceSchema = SiteLocationSourceSchema;
77129
76739
  exports.SiteLocationStatusSchema = SiteLocationStatusSchema;
@@ -77196,8 +76806,6 @@ exports.StreamSourceEntrySchema = require_sleep.StreamSourceEntrySchema;
77196
76806
  exports.StreamSourceSchema = require_sleep.StreamSourceSchema;
77197
76807
  exports.SubscribeAudioChunksInputSchema = require_sleep.SubscribeAudioChunksInputSchema;
77198
76808
  exports.SubscribeAudioChunksResultSchema = require_sleep.SubscribeAudioChunksResultSchema;
77199
- exports.SubscribeFramesInputSchema = require_sleep.SubscribeFramesInputSchema;
77200
- exports.SubscribeFramesResultSchema = require_sleep.SubscribeFramesResultSchema;
77201
76809
  exports.SuggestSharesInputSchema = SuggestSharesInputSchema;
77202
76810
  exports.SuggestSharesResultSchema = SuggestSharesResultSchema;
77203
76811
  exports.SuggestedDeviceShareSchema = SuggestedDeviceShareSchema;