@camstack/types 1.2.598 → 1.2.599

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/client.mjs CHANGED
@@ -1067,6 +1067,89 @@ var BrokerStatusSchema = z.enum([
1067
1067
  "error",
1068
1068
  "stopped"
1069
1069
  ]);
1070
+ /**
1071
+ * The encode a derived stream's feeder was last spawned with — the read-only
1072
+ * "effective encode". Read off the ffmpeg argv that runs, so it cannot drift
1073
+ * from what the operator's profile and the carrier's rules resolved to.
1074
+ */
1075
+ var DerivedEffectiveEncodeSchema = z.object({
1076
+ /** `-c:v` of the argv (`libx264`, a hardware encoder, `copy`); null when absent. */
1077
+ encoder: z.string().nullable(),
1078
+ /** Output frame rate; null when the source cadence passes through unmeasured. */
1079
+ fps: z.number().nullable(),
1080
+ gopFrames: z.number(),
1081
+ /** ABR target (`-b:v`), kbps. */
1082
+ targetKbps: z.number().nullable(),
1083
+ /** Ceiling (`-maxrate`), kbps. */
1084
+ capKbps: z.number().nullable(),
1085
+ bufsizeKbps: z.number().nullable(),
1086
+ /**
1087
+ * `copy` = source audio untouched, `aac` = re-encoded, `profile` = operator's
1088
+ * encode, `none` = the operator dropped the track.
1089
+ */
1090
+ audio: z.enum([
1091
+ "copy",
1092
+ "aac",
1093
+ "profile",
1094
+ "none"
1095
+ ])
1096
+ });
1097
+ z.union([z.object({
1098
+ kind: z.literal("profile"),
1099
+ profile: z.enum([
1100
+ "high",
1101
+ "mid",
1102
+ "low"
1103
+ ])
1104
+ }), z.object({
1105
+ kind: z.literal("camStream"),
1106
+ camStreamId: z.string()
1107
+ })]);
1108
+ z.object({
1109
+ width: z.number().nullable(),
1110
+ height: z.number().nullable(),
1111
+ fps: z.number().nullable(),
1112
+ idrIntervalMs: z.number().nullable(),
1113
+ /** `h264` / `h265` when observed. */
1114
+ videoCodec: z.enum(["h264", "h265"]).nullable(),
1115
+ /** Upper-cased SDP name (`AAC`, `PCMU`) when the source has an audio track. */
1116
+ audioCodec: z.string().nullable()
1117
+ });
1118
+ /**
1119
+ * The full effective encode of a derived-stream profile: the stats the broker
1120
+ * publishes in `getBrokerStats.derivedEncode` plus the resolved geometry, the
1121
+ * flags that say WHY a number differs from the request, and the ffmpeg output
1122
+ * argv. One function (`computeDerivedEncode`) produces it for both the
1123
+ * broker's start path and `previewDerivedEncode`.
1124
+ */
1125
+ var DerivedEncodePreviewSchema = DerivedEffectiveEncodeSchema.extend({
1126
+ /** Final picture size; `null` when neither the profile nor the source names it. */
1127
+ width: z.number().nullable(),
1128
+ height: z.number().nullable(),
1129
+ /** `h264` / `h265` re-encode, `copy` remux; `null` is never returned (the encoder always resolves). */
1130
+ videoCodec: z.enum([
1131
+ "h264",
1132
+ "h265",
1133
+ "copy"
1134
+ ]),
1135
+ requestedFps: z.number().nullable(),
1136
+ /** The requested fps exceeded the source and the source cadence won. */
1137
+ fpsClampedToSource: z.boolean(),
1138
+ /** Lowest bitrate accepted for this geometry x fps; `null` when unknown. */
1139
+ floorKbps: z.number().nullable(),
1140
+ /** The explicit bitrate was below the floor and was raised to it. */
1141
+ raisedToFloor: z.boolean(),
1142
+ /** What the profile asked for when it was raised; `null` otherwise. */
1143
+ requestedKbps: z.number().nullable(),
1144
+ /** Seconds between keyframes; `null` when the output cadence is unknown. */
1145
+ keyframeIntervalSec: z.number().nullable(),
1146
+ /** The ffmpeg argv, with the source loopback URL in `-i`. */
1147
+ args: z.array(z.string())
1148
+ });
1149
+ z.discriminatedUnion("kind", [z.object({
1150
+ kind: z.literal("preview"),
1151
+ preview: DerivedEncodePreviewSchema
1152
+ }), z.object({ kind: z.literal("no-source") })]);
1070
1153
  z.object({
1071
1154
  status: BrokerStatusSchema,
1072
1155
  inputFps: z.number(),
@@ -1108,7 +1191,9 @@ z.object({
1108
1191
  * alone that the mute is on the packet path and not merely persisted.
1109
1192
  */
1110
1193
  audioMuted: z.boolean().optional(),
1111
- audioMutedDropped: z.number().optional()
1194
+ audioMutedDropped: z.number().optional(),
1195
+ /** Present for a derived broker once its feeder has spawned at least once. */
1196
+ derivedEncode: DerivedEffectiveEncodeSchema.optional()
1112
1197
  });
1113
1198
  z.object({
1114
1199
  profile: CamProfileSchema,
@@ -28462,6 +28547,7 @@ function createDeviceProxy(api, binding, opts) {
28462
28547
  forgetDeviceHardware: (input, options) => dispatchSystem("streamBroker", "forgetDeviceHardware", "mutation", input, void 0, options),
28463
28548
  renderPreBufferClip: (input, options) => dispatchSystem("streamBroker", "renderPreBufferClip", "mutation", input, void 0, options),
28464
28549
  produceEventMedia: (input, options) => dispatchSystem("streamBroker", "produceEventMedia", "mutation", input, void 0, options),
28550
+ previewDerivedEncode: (input, options) => dispatchSystem("streamBroker", "previewDerivedEncode", "query", input, void 0, options),
28465
28551
  restartProfile: (input, options) => dispatchSystem("streamBroker", "restartProfile", "mutation", input, void 0, options),
28466
28552
  getDeviceAudioMute: (input, options) => dispatchSystem("streamBroker", "getDeviceAudioMute", "query", input, void 0, options),
28467
28553
  setDeviceAudioMute: (input, options) => dispatchSystem("streamBroker", "setDeviceAudioMute", "mutation", input, void 0, options),
@@ -16,6 +16,7 @@ export declare const VideoEncodeSchema: z.ZodObject<{
16
16
  copy: "copy";
17
17
  h264: "h264";
18
18
  h265: "h265";
19
+ source: "source";
19
20
  }>;
20
21
  profile: z.ZodOptional<z.ZodEnum<{
21
22
  baseline: "baseline";
@@ -49,6 +50,7 @@ export declare const AudioEncodeSchema: z.ZodUnion<readonly [z.ZodLiteral<"passt
49
50
  codec: z.ZodEnum<{
50
51
  aac: "aac";
51
52
  copy: "copy";
53
+ none: "none";
52
54
  opus: "opus";
53
55
  pcma: "pcma";
54
56
  pcmu: "pcmu";
@@ -64,6 +66,7 @@ export declare const EncodeProfileSchema: z.ZodObject<{
64
66
  copy: "copy";
65
67
  h264: "h264";
66
68
  h265: "h265";
69
+ source: "source";
67
70
  }>;
68
71
  profile: z.ZodOptional<z.ZodEnum<{
69
72
  baseline: "baseline";
@@ -96,6 +99,7 @@ export declare const EncodeProfileSchema: z.ZodObject<{
96
99
  codec: z.ZodEnum<{
97
100
  aac: "aac";
98
101
  copy: "copy";
102
+ none: "none";
99
103
  opus: "opus";
100
104
  pcma: "pcma";
101
105
  pcmu: "pcmu";
@@ -160,6 +160,15 @@ export type FfmpegRateControl = {
160
160
  } | {
161
161
  readonly kind: 'cap';
162
162
  readonly vbvSeconds: number;
163
+ /**
164
+ * Also emit an ABR target (`-b:v`) at this fraction of the ceiling (0..1).
165
+ * Without it a rate-bound encode runs its quality mode (x264 CRF 23) and
166
+ * the ceiling alone binds on every frame, which starves the KEYFRAME
167
+ * (measured QP 48–57, PSNR 34 to 23 dB at each IDR at a 400 kbps cap on
168
+ * 720p). A target a bit under the ceiling makes the encoder budget the
169
+ * IDR. Absent keeps the ceiling-only behaviour.
170
+ */
171
+ readonly targetFraction?: number;
163
172
  };
164
173
  /** Fit-inside (never upscale, even dimensions) vs an exact rescale. */
165
174
  export interface FfmpegScalePlan {
@@ -10684,6 +10684,13 @@ export type AppRouter = TrpcCoreRouter<{
10684
10684
  output: z.infer<typeof streamBrokerCapability.methods.getBrokerStats.output>;
10685
10685
  meta: object;
10686
10686
  }>;
10687
+ previewDerivedEncode: TRPCQueryProcedure<{
10688
+ input: {
10689
+ [x: string]: unknown;
10690
+ } & z.input<typeof streamBrokerCapability.methods.previewDerivedEncode.input>;
10691
+ output: z.infer<typeof streamBrokerCapability.methods.previewDerivedEncode.output>;
10692
+ meta: object;
10693
+ }>;
10687
10694
  probeStream: TRPCMutationProcedure<{
10688
10695
  input: {
10689
10696
  [x: string]: unknown;
@@ -378,7 +378,7 @@ export interface DeviceProxy {
378
378
  readonly plateGallery: Pick<InferDeviceProxyCap<typeof plateGalleryCapability>, 'listPlates' | 'getPlateByTrack'>;
379
379
  readonly recordingArchive: Pick<InferDeviceProxyCap<typeof recordingArchiveCapability>, 'getDeviceConfig' | 'locateSegment' | 'readSegmentBytes' | 'readGopBytes' | 'readWindowBytes' | 'setDeviceConfig' | 'rescanStorage' | 'pruneFootage' | 'deleteFootprint' | 'renderGif' | 'renderClip' | 'getStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
380
380
  readonly recordingExport: Pick<InferDeviceProxyCap<typeof recordingExportCapability>, 'listExports'>;
381
- readonly streamBroker: Pick<InferDeviceProxyCap<typeof streamBrokerCapability>, 'reportStreamSignal' | 'publishCameraStream' | 'retractCameraStream' | 'assignProfile' | 'unassignProfile' | 'forgetDeviceHardware' | 'renderPreBufferClip' | 'produceEventMedia' | 'restartProfile' | 'getDeviceAudioMute' | 'setDeviceAudioMute' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
381
+ readonly streamBroker: Pick<InferDeviceProxyCap<typeof streamBrokerCapability>, 'reportStreamSignal' | 'publishCameraStream' | 'retractCameraStream' | 'assignProfile' | 'unassignProfile' | 'forgetDeviceHardware' | 'renderPreBufferClip' | 'produceEventMedia' | 'previewDerivedEncode' | 'restartProfile' | 'getDeviceAudioMute' | 'setDeviceAudioMute' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
382
382
  }
383
383
  /**
384
384
  * Build a DeviceProxy that pre-binds deviceId + nodeId on every method call
@@ -6,7 +6,7 @@
6
6
  * scope+access check inside `protectedProcedure` (see
7
7
  * `server/backend/src/api/trpc/trpc.middleware.ts`).
8
8
  *
9
- * Coverage: 1533 method paths across 214 capabilities.
9
+ * Coverage: 1534 method paths across 214 capabilities.
10
10
  */
11
11
  import type { MethodRole } from '../auth/viewer-access.js';
12
12
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
@@ -6,8 +6,8 @@
6
6
  * system-scope cap that takes a deviceId was previously never device-filtered
7
7
  * — see the generator header).
8
8
  *
9
- * Coverage: 647 methods carry a device reference, of which
10
- * 201 are on SYSTEM-scope caps.
9
+ * Coverage: 648 methods carry a device reference, of which
10
+ * 202 are on SYSTEM-scope caps.
11
11
  *
12
12
  * Top-level fields, number arrays, and one-level arrays of objects carrying
13
13
  * a numeric device field (targets[].deviceId) are all mapped; the matcher
@@ -136,7 +136,7 @@ function buildRateControlArgs(video) {
136
136
  };
137
137
  const bufsize = Math.max(1, Math.round(kbps * rc.vbvSeconds));
138
138
  return [
139
- ...rc.kind === "cbr" ? ["-b:v", `${kbps}k`] : [],
139
+ ...rc.kind === "cbr" ? ["-b:v", `${kbps}k`] : rc.targetFraction !== void 0 ? ["-b:v", `${Math.max(1, Math.round(kbps * rc.targetFraction))}k`] : [],
140
140
  "-maxrate",
141
141
  `${kbps}k`,
142
142
  "-bufsize",
@@ -441,6 +441,7 @@ function pickVideoEncoder(target, backend, useHardware) {
441
441
  function audioPlanFromEncodeProfile(audio) {
442
442
  if (audio === "passthrough") return { kind: "none" };
443
443
  if (audio.codec === "copy") return { kind: "copy" };
444
+ if (audio.codec === "none") return { kind: "none" };
444
445
  return {
445
446
  kind: "encode",
446
447
  codec: audio.codec,
@@ -471,19 +472,19 @@ var RESTREAM_INPUT_PROBE = {
471
472
  };
472
473
  function invocationFromEncodeProfile(input) {
473
474
  const v = input.profile.video;
474
- const shouldCopy = v.codec === "copy" || input.forceReencode !== true && v.codec === input.sourceCodec;
475
+ const wanted = v.codec === "source" ? input.sourceCodec : v.codec;
476
+ const shouldCopy = v.codec === "copy" || input.forceReencode !== true && wanted === input.sourceCodec;
475
477
  const scale = v.width !== void 0 && v.height !== void 0 ? {
476
478
  mode: "fit",
477
479
  width: v.width,
478
480
  height: v.height
479
481
  } : null;
480
- const target = v.codec === "h265" ? "h265" : "h264";
481
482
  const video = shouldCopy ? {
482
483
  kind: "copy",
483
484
  ...input.bitstreamFilter !== void 0 ? { bitstreamFilter: input.bitstreamFilter } : {}
484
485
  } : {
485
486
  kind: "encode",
486
- encoder: pickVideoEncoder(target, input.decodeHwAccel, input.hardwareEncoders === true),
487
+ encoder: pickVideoEncoder(wanted === "h265" ? "h265" : "h264", input.decodeHwAccel, input.hardwareEncoders === true),
487
488
  scale,
488
489
  ...v.preset !== void 0 ? { preset: v.preset } : {},
489
490
  ...v.tune !== void 0 ? { tune: v.tune } : {},
@@ -136,7 +136,7 @@ function buildRateControlArgs(video) {
136
136
  };
137
137
  const bufsize = Math.max(1, Math.round(kbps * rc.vbvSeconds));
138
138
  return [
139
- ...rc.kind === "cbr" ? ["-b:v", `${kbps}k`] : [],
139
+ ...rc.kind === "cbr" ? ["-b:v", `${kbps}k`] : rc.targetFraction !== void 0 ? ["-b:v", `${Math.max(1, Math.round(kbps * rc.targetFraction))}k`] : [],
140
140
  "-maxrate",
141
141
  `${kbps}k`,
142
142
  "-bufsize",
@@ -441,6 +441,7 @@ function pickVideoEncoder(target, backend, useHardware) {
441
441
  function audioPlanFromEncodeProfile(audio) {
442
442
  if (audio === "passthrough") return { kind: "none" };
443
443
  if (audio.codec === "copy") return { kind: "copy" };
444
+ if (audio.codec === "none") return { kind: "none" };
444
445
  return {
445
446
  kind: "encode",
446
447
  codec: audio.codec,
@@ -471,19 +472,19 @@ var RESTREAM_INPUT_PROBE = {
471
472
  };
472
473
  function invocationFromEncodeProfile(input) {
473
474
  const v = input.profile.video;
474
- const shouldCopy = v.codec === "copy" || input.forceReencode !== true && v.codec === input.sourceCodec;
475
+ const wanted = v.codec === "source" ? input.sourceCodec : v.codec;
476
+ const shouldCopy = v.codec === "copy" || input.forceReencode !== true && wanted === input.sourceCodec;
475
477
  const scale = v.width !== void 0 && v.height !== void 0 ? {
476
478
  mode: "fit",
477
479
  width: v.width,
478
480
  height: v.height
479
481
  } : null;
480
- const target = v.codec === "h265" ? "h265" : "h264";
481
482
  const video = shouldCopy ? {
482
483
  kind: "copy",
483
484
  ...input.bitstreamFilter !== void 0 ? { bitstreamFilter: input.bitstreamFilter } : {}
484
485
  } : {
485
486
  kind: "encode",
486
- encoder: pickVideoEncoder(target, input.decodeHwAccel, input.hardwareEncoders === true),
487
+ encoder: pickVideoEncoder(wanted === "h265" ? "h265" : "h264", input.decodeHwAccel, input.hardwareEncoders === true),
487
488
  scale,
488
489
  ...v.preset !== void 0 ? { preset: v.preset } : {},
489
490
  ...v.tune !== void 0 ? { tune: v.tune } : {},
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_runtime_capabilities = require("./runtime-capabilities-DWgr8hrq.js");
2
+ const require_runtime_capabilities = require("./runtime-capabilities-azf1ve5b.js");
3
3
  const require_event_category = require("./event-category-CMA0-jGW.js");
4
4
  const require_composed_stable_id = require("./composed-stable-id-DkF5-kuf.js");
5
- const require_implemented_methods = require("./implemented-methods-DnfgAfI6.js");
5
+ const require_implemented_methods = require("./implemented-methods-I_l2ENnf.js");
6
6
  const require_node_color = require("./node-color.js");
7
7
  const require_convert = require("./convert-BI8iTXn6.js");
8
8
  const require_device_template_catalogue = require("./device-template-catalogue.js");
@@ -2090,10 +2090,16 @@ function instanceApiOverTargets(targetsNow) {
2090
2090
  * suggestions before persistence.
2091
2091
  */
2092
2092
  var VideoEncodeSchema = zod.z.object({
2093
+ /**
2094
+ * `h264` / `h265` re-encode into that codec; `source` re-encodes in whatever
2095
+ * codec the source speaks (a resize that keeps the codec); `copy` remuxes
2096
+ * with no encode at all (so no resize either).
2097
+ */
2093
2098
  codec: zod.z.enum([
2094
2099
  "h264",
2095
2100
  "h265",
2096
- "copy"
2101
+ "copy",
2102
+ "source"
2097
2103
  ]),
2098
2104
  profile: zod.z.enum([
2099
2105
  "baseline",
@@ -2145,12 +2151,14 @@ var VideoEncodeSchema = zod.z.object({
2145
2151
  singleSlicePerFrame: zod.z.boolean().optional()
2146
2152
  });
2147
2153
  var AudioEncodeSchema = zod.z.union([zod.z.literal("passthrough"), zod.z.object({
2154
+ /** `none` drops the audio track (`-an`); `copy` carries the source's. */
2148
2155
  codec: zod.z.enum([
2149
2156
  "opus",
2150
2157
  "aac",
2151
2158
  "pcmu",
2152
2159
  "pcma",
2153
- "copy"
2160
+ "copy",
2161
+ "none"
2154
2162
  ]),
2155
2163
  bitrateKbps: zod.z.number().int().positive().optional(),
2156
2164
  sampleRateHz: zod.z.number().int().positive().optional(),
@@ -45411,6 +45419,19 @@ var streamBrokerCapability = {
45411
45419
  listAllProfileSlots: require_runtime_capabilities.method(zod.z.void(), zod.z.array(require_runtime_capabilities.ProfileSlotSchema).readonly()),
45412
45420
  getBrokerStats: require_runtime_capabilities.method(zod.z.object({ brokerId: zod.z.string() }), require_runtime_capabilities.BrokerStatsSchema),
45413
45421
  /**
45422
+ * The effective encode a derived-stream `profile` WOULD run with, computed
45423
+ * by the same function the broker uses when it starts the encode, against
45424
+ * the source params the broker has already probed for `deviceId`. Lets an
45425
+ * editor show the final geometry, fps, bitrate and ffmpeg argv live while
45426
+ * the operator edits. `source` defaults to the `high` profile slot.
45427
+ * `{ kind: 'no-source' }` when nothing has been probed yet — never a guess.
45428
+ */
45429
+ previewDerivedEncode: require_runtime_capabilities.method(zod.z.object({
45430
+ deviceId: zod.z.number().int().nonnegative(),
45431
+ profile: EncodeProfileSchema,
45432
+ source: require_runtime_capabilities.DerivedSourceRefSchema.optional()
45433
+ }), require_runtime_capabilities.PreviewDerivedEncodeResultSchema),
45434
+ /**
45414
45435
  * Force a one-shot probe of a single source stream: transiently dial the
45415
45436
  * broker (a `warmup` consumer), capture a fresh `BrokerStats` snapshot for
45416
45437
  * the per-stream "Probed" settings field, then release. Wakes a suspended
@@ -77998,7 +78019,8 @@ var StatelessStepRefusalSchema = zod.z.enum([
77998
78019
  "unknown-step",
77999
78020
  "model-not-servable",
78000
78021
  "unreadable-frame",
78001
- "execution-failed"
78022
+ "execution-failed",
78023
+ "no-eligible-device"
78002
78024
  ]);
78003
78025
  /**
78004
78026
  * Answer to `runStatelessStep` — a discriminated union rather than a nullable
@@ -87625,7 +87647,13 @@ var NodeInferenceDeviceSchema = zod.z.object({
87625
87647
  enabled: zod.z.boolean(),
87626
87648
  /** Relative balancer weight for the enabled device (default 1). */
87627
87649
  weight: zod.z.number(),
87628
- /** Per-device concurrent-session cap; null = unlimited (multi-device C4). */
87650
+ /**
87651
+ * Per-device concurrent-session cap; null = unlimited (multi-device C4). A
87652
+ * limit: a camera no device can take within its cap stays on the node's
87653
+ * default pool — EXCEPT when that default pool is an excluded device
87654
+ * (`defaultPoolExcluded`), where it goes over the cap on the least-loaded
87655
+ * eligible device instead (#610).
87656
+ */
87629
87657
  maxSessions: zod.z.number().nullable(),
87630
87658
  /** Object-detection model the executor defaults to for this deviceKey. */
87631
87659
  defaultModelId: zod.z.string(),
@@ -87675,7 +87703,15 @@ var NodeInferenceDevicesSchema = zod.z.object({
87675
87703
  nodeId: zod.z.string(),
87676
87704
  /** False when the node's platform-probe was unreachable (no live device set). */
87677
87705
  reachable: zod.z.boolean(),
87678
- devices: zod.z.array(NodeInferenceDeviceSchema).readonly()
87706
+ devices: zod.z.array(NodeInferenceDeviceSchema).readonly(),
87707
+ /**
87708
+ * The election left NO device and one was excluded because the operator
87709
+ * turned it off or it is not functional (#610): the runner's default pool is
87710
+ * that device, so work with no explicit device (a stateless step, a bench with
87711
+ * no `deviceKey`) is refused rather than run there. Absent = an orchestrator
87712
+ * older than the field, or an unreachable node: nothing is claimed (D315).
87713
+ */
87714
+ defaultPoolExcluded: zod.z.boolean().optional()
87679
87715
  });
87680
87716
  /**
87681
87717
  * The CLUSTER switch of one pipeline step (D1065):
@@ -88095,6 +88131,11 @@ var pipelineOrchestratorCapability = {
88095
88131
  * `PipelineSettingsStore.buildNodeInferenceDevices` when placing sessions
88096
88132
  * and the per-(node,device) base provisioning via
88097
88133
  * `buildNodeInferenceDeviceSteps`.
88134
+ * `maxSessions` is a LIMIT, with one exception: when the node's default
88135
+ * pool is itself an excluded device (turned off or not functional) a
88136
+ * camera that would overflow every cap is placed over the cap on the
88137
+ * least-loaded eligible device, because the default pool must never serve
88138
+ * it (#610). The overflow is logged, naming any pin it overrode.
88098
88139
  */
88099
88140
  setAgentInferenceDevices: require_runtime_capabilities.method(zod.z.object({
88100
88141
  agentNodeId: zod.z.string(),
@@ -130232,6 +130273,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
130232
130273
  access: "view",
130233
130274
  role: "admin"
130234
130275
  },
130276
+ "streamBroker.previewDerivedEncode": {
130277
+ capName: "stream-broker",
130278
+ capScope: "system",
130279
+ addonId: null,
130280
+ access: "view",
130281
+ role: "admin"
130282
+ },
130235
130283
  "streamBroker.probeStream": {
130236
130284
  capName: "stream-broker",
130237
130285
  capScope: "system",
@@ -136969,6 +137017,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
136969
137017
  form: "single",
136970
137018
  optional: false
136971
137019
  }],
137020
+ "streamBroker.previewDerivedEncode": [{
137021
+ name: "deviceId",
137022
+ form: "single",
137023
+ optional: false
137024
+ }],
136972
137025
  "streamBroker.produceEventMedia": [{
136973
137026
  name: "deviceId",
136974
137027
  form: "single",
@@ -137580,6 +137633,7 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
137580
137633
  "streamBroker.getDeviceLiveContribution",
137581
137634
  "streamBroker.getDeviceSettingsContribution",
137582
137635
  "streamBroker.getStreamWithCodec",
137636
+ "streamBroker.previewDerivedEncode",
137583
137637
  "streamBroker.produceEventMedia",
137584
137638
  "streamBroker.publishCameraStream",
137585
137639
  "streamBroker.renderPreBufferClip",
@@ -152067,6 +152121,10 @@ exports.DeleteIntegrationResultSchema = DeleteIntegrationResultSchema;
152067
152121
  exports.DeliveryParamSchema = DeliveryParamSchema;
152068
152122
  exports.DeliveryParamValueSchema = DeliveryParamValueSchema;
152069
152123
  exports.DerivativeHelperSpecSchema = require_implemented_methods.DerivativeHelperSpecSchema;
152124
+ exports.DerivedEffectiveEncodeSchema = require_runtime_capabilities.DerivedEffectiveEncodeSchema;
152125
+ exports.DerivedEncodePreviewSchema = require_runtime_capabilities.DerivedEncodePreviewSchema;
152126
+ exports.DerivedSourceProbeSchema = require_runtime_capabilities.DerivedSourceProbeSchema;
152127
+ exports.DerivedSourceRefSchema = require_runtime_capabilities.DerivedSourceRefSchema;
152070
152128
  exports.DesktopAppStatusSchema = DesktopAppStatusSchema;
152071
152129
  exports.DetailCropConventionSchema = DetailCropConventionSchema;
152072
152130
  exports.DetectionCatalogClassMapSchema = DetectionCatalogClassMapSchema;
@@ -153296,6 +153354,7 @@ exports.PreferencesPutOutputSchema = PreferencesPutOutputSchema;
153296
153354
  exports.PreferencesSelfScopeSchema = PreferencesSelfScopeSchema;
153297
153355
  exports.PresenceStatusSchema = PresenceStatusSchema;
153298
153356
  exports.PressureSensorStatusSchema = PressureSensorStatusSchema;
153357
+ exports.PreviewDerivedEncodeResultSchema = require_runtime_capabilities.PreviewDerivedEncodeResultSchema;
153299
153358
  exports.PrivacyMaskOptionsSchema = PrivacyMaskOptionsSchema;
153300
153359
  exports.PrivacyMaskPatchSchema = PrivacyMaskPatchSchema;
153301
153360
  exports.PrivacyMaskRegionSchema = PrivacyMaskRegionSchema;