@fleetless/contracts 15.1.0 → 15.3.0

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/config.js CHANGED
@@ -1627,7 +1627,7 @@ export const cameraSource = z.discriminatedUnion('kind', [
1627
1627
  examples: ['/camera/image_raw'],
1628
1628
  }),
1629
1629
  type: rosTypeName.meta({
1630
- description: 'The message type of `topic`: `sensor_msgs/msg/Image` for raw frames, `sensor_msgs/msg/CompressedImage` for a camera that already encodes. Declared here rather than introspected, so a camera can be configured for a robot that has never connected.',
1630
+ description: 'The message type of `topic`: `sensor_msgs/msg/Image` for raw frames, `sensor_msgs/msg/CompressedImage` for a camera that already encodes, `foxglove_msgs/msg/CompressedVideo` for a topic that carries H.264. H.264 is passed through to live viewers without the bridge decoding or encoding it: always for `CompressedVideo`, and for a `CompressedImage` whose `format` contains `h264`, in any case. A `CompressedImage` that carries JPEG stays a picture source. A camera that is passed through follows what `passthrough` says on an RTSP source: `width` and `height` must equal the stream\'s size, B-frames are refused, a new viewer waits for the next keyframe, and low-bandwidth mode ends its stream. The bridge does not depend on `foxglove_msgs`; a robot without the package reports `unknown type` for that one camera. Declared here rather than introspected, so a camera can be configured for a robot that has never connected.',
1631
1631
  patternErrorMessage: ROS_TYPE_NAME_RULE,
1632
1632
  examples: ['sensor_msgs/msg/Image'],
1633
1633
  }),
@@ -1639,11 +1639,12 @@ export const cameraSource = z.discriminatedUnion('kind', [
1639
1639
  /**
1640
1640
  * `type` is a **choice**, not a literal, and that is a correction: it was
1641
1641
  * written out on the rule that a field the format fixes is written out,
1642
- * and `type` is not such a field. Its own description names two values
1642
+ * and `type` is not such a field. Its own description names three values
1643
1643
  * and says which applies when — `Image` for raw frames,
1644
- * `CompressedImage` for a camera that encodes itself. A snippet that
1645
- * picks one picks wrong for half the cameras, and picks it invisibly:
1646
- * `rosTypeName` accepts either, publish accepts either, no diagnostic
1644
+ * `CompressedImage` for a camera that encodes itself, `CompressedVideo`
1645
+ * for a topic that carries H.264. A snippet that
1646
+ * picks one picks wrong for most cameras, and picks it invisibly:
1647
+ * `rosTypeName` accepts any of them, publish accepts any, no diagnostic
1647
1648
  * fires anywhere, and the bridge then subscribes with the wrong type and
1648
1649
  * delivers no frames. A snippet supplying a wrong answer where it could
1649
1650
  * have supplied a question is a defect arriving through a hint the
@@ -1654,22 +1655,22 @@ export const cameraSource = z.discriminatedUnion('kind', [
1654
1655
  * Choice syntax is the one construct here that three layers must each
1655
1656
  * pass through unharmed: yaml-language-server's `stringifyObject` emits
1656
1657
  * the body verbatim, and monaco-editor's `SnippetParser` parses
1657
- * `${2|a,b|}` into a placeholder carrying both options whose
1658
+ * `${2|a,b,c|}` into a placeholder carrying every option whose
1658
1659
  * `toString()` — the text on the buffer before anyone chooses — is the
1659
1660
  * first one. So a developer who tabs past this gets a document
1660
1661
  * byte-identical to the literal it replaced, and one who opens the
1661
- * picker gets `CompressedImage`; both parse.
1662
+ * picker gets `CompressedImage` or `CompressedVideo`; all three parse.
1662
1663
  */
1663
1664
  body: {
1664
1665
  kind: 'ros',
1665
1666
  topic: '${1:/camera/image_raw}',
1666
- type: '${2|sensor_msgs/msg/Image,sensor_msgs/msg/CompressedImage|}',
1667
+ type: '${2|sensor_msgs/msg/Image,sensor_msgs/msg/CompressedImage,foxglove_msgs/msg/CompressedVideo|}',
1667
1668
  },
1668
1669
  }],
1669
1670
  }),
1670
1671
  strictObject({
1671
1672
  kind: z.literal('rtsp').meta({
1672
- description: 'Selects the RTSP source: this camera then carries `url`, and optionally `transport` and `credentials`.',
1673
+ description: 'Selects the RTSP source: this camera then carries `url`, and optionally `transport`, `passthrough` and `credentials`.',
1673
1674
  }),
1674
1675
  /**
1675
1676
  * Scheme-constrained deliberately. The bridge opens these with libraries
@@ -1697,6 +1698,19 @@ export const cameraSource = z.discriminatedUnion('kind', [
1697
1698
  udp: 'The frames travel in their own UDP stream: lower latency on a quiet network, and silent frame loss on any other.',
1698
1699
  }),
1699
1700
  }),
1701
+ /**
1702
+ * Opt-in, and absent rather than defaulted: an RTSP camera that exists
1703
+ * today is decoded and encoded again after an upgrade exactly as before,
1704
+ * and a parse writes no `false` into a document nobody put one in. The
1705
+ * bridge reads absent as off (fleetless/fleetless#1117).
1706
+ *
1707
+ * RTSP is the one source that carries this switch. A ROS topic is passed
1708
+ * through by what it carries, see `type` on the `ros` member; MJPEG and
1709
+ * V4L2 are never passed through.
1710
+ */
1711
+ passthrough: z.boolean().optional().meta({
1712
+ description: 'Passes the camera\'s own H.264 through to live viewers: the bridge forwards the access units it receives and neither decodes nor encodes the live video. A snapshot is decoded from the newest keyframe, so it is at most one keyframe interval old. Omitted means `false`: the stream is decoded and encoded again, and `fps` and `bitrate_kbps` are enforced. With `true`, `width` and `height` must equal the stream\'s own size, or the camera reports an error naming both and publishes nothing. `fps` and `bitrate_kbps` are not enforced then: the bridge cannot drop or shrink frames it does not encode, so both are set at the camera. The stream must be H.264 without B-frames; anything else is refused with a camera error. A new viewer waits for the camera\'s next keyframe, so set its keyframe interval to one to two seconds. Low-bandwidth mode ends such a stream, under `camera: reduce` as under `stop`: there is no bitrate to lower.',
1713
+ }),
1700
1714
  credentials: cameraCredentials.optional(),
1701
1715
  }).meta({
1702
1716
  description: 'Frames come from an RTSP stream the robot itself can reach — a network camera on its own LAN. The bridge opens the connection; the cloud never does, and never needs a route to the camera.',
@@ -1852,19 +1866,19 @@ export const cameraConfig = strictObject({
1852
1866
  description: 'Where this camera\'s frames come from. `kind` picks one of four sources and fixes which other fields the source may carry, so an impossible camera is unrepresentable rather than merely invalid — there is no way to write an RTSP camera with a ROS topic.',
1853
1867
  }),
1854
1868
  width: z.number().int().positive().max(7680).meta({
1855
- description: 'The width the bridge scales frames to before sending, in pixels — what the bridge produces, not what the sensor captures; a snapshot can arrive narrower, since the bridge reduces both dimensions together to fit its JPEG byte ceiling. It stands in the configuration and never in a viewer\'s request, so no client can make the robot encode a larger frame than the developer allowed.',
1869
+ description: 'The width the bridge scales frames to before sending, in pixels — what the bridge produces, not what the sensor captures; a snapshot can arrive narrower, since the bridge reduces both dimensions together to fit its JPEG byte ceiling. It stands in the configuration and never in a viewer\'s request, so no client can make the robot encode a larger frame than the developer allowed. A passthrough camera is the exception for live video: the bridge does not scale what it does not encode, so `width` and `height` must equal the stream\'s own size.',
1856
1870
  examples: [1280],
1857
1871
  }),
1858
1872
  height: z.number().int().positive().max(4320).meta({
1859
- description: 'The height the bridge scales every frame to, in pixels; with `width` it is the size the live stream carries. A snapshot can arrive **smaller** than this — its JPEG has a byte ceiling, and the bridge gives up quality first and then resolution to fit, reporting the size it actually encoded.',
1873
+ description: 'The height the bridge scales every frame to, in pixels; with `width` it is the size the live stream carries. A snapshot can arrive **smaller** than this — its JPEG has a byte ceiling, and the bridge gives up quality first and then resolution to fit, reporting the size it actually encoded. The live video of a passthrough camera is not scaled: `height` and `width` must equal the stream\'s own size.',
1860
1874
  examples: [720],
1861
1875
  }),
1862
1876
  fps: z.number().int().positive().max(60).meta({
1863
- description: 'How many frames a second the bridge forwards, at most. It is a ceiling, not a clock: a camera that delivers ten frames a second stays at ten. Both modes read the same throttled pipeline, so this also bounds how fresh a snapshot can be.',
1877
+ description: 'How many frames a second the bridge forwards, at most. It is a ceiling, not a clock: a camera that delivers ten frames a second stays at ten. Both modes read the same throttled pipeline, so this also bounds how fresh a snapshot can be. A passthrough camera is the exception: the bridge forwards its H.264 at the rate the source sends it, and `fps` only bounds how often a snapshot is taken.',
1864
1878
  examples: [15],
1865
1879
  }),
1866
1880
  bitrate_kbps: z.number().int().positive().max(50_000).meta({
1867
- description: 'The ceiling for the **live** encoding, in kilobits per second — this is what bounds a watched camera against the robot\'s uplink. Snapshots are not covered by it: they are JPEGs under their own byte ceiling. Raising `width`, `height` or `fps` against a fixed bitrate buys blur, not detail.',
1881
+ description: 'The ceiling for the **live** encoding, in kilobits per second — this is what bounds a watched camera against the robot\'s uplink. Snapshots are not covered by it: they are JPEGs under their own byte ceiling. Raising `width`, `height` or `fps` against a fixed bitrate buys blur, not detail. A passthrough camera is not encoded by the bridge, so nothing enforces this number there: the bitrate is set at the source, and this value is only what the track declares to the media server.',
1868
1882
  examples: [2000],
1869
1883
  }),
1870
1884
  snapshot_interval_seconds: snapshotIntervalSeconds.meta({
@@ -1933,16 +1947,102 @@ export const lowBandwidthSection = strictObject({
1933
1947
  camera: lowBandwidthCamera.optional().meta({
1934
1948
  description: 'What happens to a running stream in the mode. New streams are refused either way.',
1935
1949
  enumDescriptions: describeValues(lowBandwidthCamera.options, {
1936
- reduce: 'A running stream is re-encoded at `camera_bitrate_kbps` and keeps running. A viewer sees a worse picture rather than none.',
1950
+ reduce: 'A running stream is re-encoded at `camera_bitrate_kbps` and keeps running. A viewer sees a worse picture rather than none. A passthrough camera is the exception: the bridge does not encode it, so its stream ends as under `stop`.',
1937
1951
  stop: 'A running stream ends and the viewer is told why. The uplink is then free for datapoints, which is the right trade where video is the nice-to-have.',
1938
1952
  }),
1939
1953
  }),
1940
- camera_bitrate_kbps: z.number().int().min(50).max(20000).optional().meta({ description: 'Bitrate applied to running streams under `reduce`.' }),
1954
+ camera_bitrate_kbps: z.number().int().min(50).max(20000).optional().meta({ description: 'Bitrate applied to running streams under `reduce`. A passthrough stream is not encoded by the bridge, so there is no bitrate to reduce and the stream ends.' }),
1941
1955
  })
1942
1956
  .superRefine((s, ctx) => {
1943
1957
  if (s.enter_lag_ms !== undefined && s.exit_lag_ms !== undefined && s.exit_lag_ms > s.enter_lag_ms)
1944
1958
  ctx.addIssue({ code: 'custom', path: ['exit_lag_ms'], message: 'low_bandwidth.exit_lag_ms must be at or below enter_lag_ms' });
1945
1959
  });
1960
+ /**
1961
+ * What the bridge falls back to for live video when neither the document nor
1962
+ * a ROS parameter names a setting. Exported into `constants.json` for
1963
+ * `LOW_BANDWIDTH_DEFAULTS`' reason: the bridge reads the number rather than
1964
+ * carrying a second copy.
1965
+ *
1966
+ * 1200 is what browsers send, which is why a path with an MTU of 1280 — the
1967
+ * smallest IPv6 guarantees, and what NetBird and Tailscale set — carries it:
1968
+ * the bytes a packet gains on the way (header extensions an SFU may add, the
1969
+ * SRTP tag, UDP, IP, TURN) come to about 80 at most.
1970
+ *
1971
+ * `software` is the encoder the bridge has always had, so a bridge upgrade
1972
+ * changes no robot. Hardware is opt-in for a reason the fallback cannot
1973
+ * cover: it catches an encoder that does not start, not one that starts and
1974
+ * draws the wrong picture.
1975
+ */
1976
+ export const LIVE_DEFAULTS = {
1977
+ max_packet_bytes: 1200,
1978
+ encoder: 'software',
1979
+ };
1980
+ /**
1981
+ * What may encode live video, declared once as a tuple: the enum is built
1982
+ * from it and `LIVE_BOUNDS` exports it. Its own array and `readonly` in the
1983
+ * type, so a consumer that sorted the exported list could not reorder the
1984
+ * enum's options with it.
1985
+ *
1986
+ * `auto` tries the three hardware names in the order they stand here. The
1987
+ * vendor-specific ones come before the generic `v4l2`, which on some boards
1988
+ * finds a device it cannot drive.
1989
+ */
1990
+ const LIVE_ENCODERS = ['software', 'auto', 'nvenc', 'vaapi', 'v4l2'];
1991
+ /**
1992
+ * Named rather than inlined, for `chartStyle`'s reason: `describeValues`
1993
+ * reads `.options`, and the per-value sentences are then keyed by value.
1994
+ */
1995
+ const liveEncoder = z.enum(LIVE_ENCODERS);
1996
+ /**
1997
+ * The bounds of the `live` settings, exported into `constants.json` beside the
1998
+ * defaults: the bridge refuses a ROS parameter outside them with the same
1999
+ * numbers this schema refuses a document with, read rather than copied.
2000
+ *
2001
+ * The upper bound of `max_packet_bytes` is not a taste. pylibsrtp, which
2002
+ * protects the bridge's packets, refuses an RTP packet above 1356 bytes — a
2003
+ * 1500-byte buffer less the room it keeps for the trailer — and aiortc's
2004
+ * sender ends its loop on that refusal: live video stops for good. So a
2005
+ * larger setting is not a bigger packet but no video, and it is refused where
2006
+ * the configuration is saved. 1350 rather than 1356: a number a person can
2007
+ * remember, and nothing is lost in six bytes.
2008
+ *
2009
+ * An enum's bounds are its values: `encoder.values` is the list the schema
2010
+ * accepts, in the schema's order, so the bridge's parameter callback refuses
2011
+ * a sixth name with the list the cloud refuses it with.
2012
+ */
2013
+ export const LIVE_BOUNDS = {
2014
+ max_packet_bytes: { min: 576, max: 1350 },
2015
+ encoder: { values: LIVE_ENCODERS },
2016
+ };
2017
+ /**
2018
+ * How the bridge sends live video: settings of the transport and of the
2019
+ * encoder, which hold for the whole robot and not for one camera — the path
2020
+ * and the chip belong to the computer. Every key is optional and layered
2021
+ * as in `lowBandwidthSection`: a key present here overrides the bridge's ROS
2022
+ * parameter of the same name, an absent key falls through to it, and the
2023
+ * parameter falls through to `LIVE_DEFAULTS`.
2024
+ *
2025
+ * Strict here, lenient on the robot. An unknown key is refused when the
2026
+ * document is saved, so a typo is not a setting that silently does nothing;
2027
+ * the bridge reads the section whole and ignores a key it does not know, so
2028
+ * a cloud that learns a newer key does not take an older bridge off the air.
2029
+ */
2030
+ export const liveSection = strictObject({
2031
+ max_packet_bytes: z.number().int().min(LIVE_BOUNDS.max_packet_bytes.min).max(LIVE_BOUNDS.max_packet_bytes.max).optional().meta({
2032
+ description: `The largest RTP packet the bridge sends, in bytes: fixed header, header extensions and payload, before SRTP adds its tag, retransmissions included. It is not an MTU: the MTU belongs to the path to each viewer, which the robot does not know. On the wire a packet is up to about 80 bytes longer. Lower it when a viewer's path carries less, such as a tunnel inside a tunnel. The ceiling sits just under what the bridge's SRTP library protects (1356 bytes); past that, live video stops. Overrides the bridge's ROS parameter \`live.max_packet_bytes\`; without either, the bridge sends ${LIVE_DEFAULTS.max_packet_bytes}. A change holds from the next frame, for running streams too.`,
2033
+ examples: [LIVE_DEFAULTS.max_packet_bytes],
2034
+ }),
2035
+ encoder: liveEncoder.optional().meta({
2036
+ description: `What encodes live video on the robot. \`software\` is the bridge's own encoder on the CPU. Every other value sends H.264 from a hardware encoder, reached through GStreamer, which the robot has to have installed. An encoder that does not start, or stops delivering, is replaced by software H.264 for the rest of that session, with one warning in the bridge's log; one that did not start is not tried again until this setting changes or the bridge restarts. The fallback catches an encoder that fails, not one that draws a wrong picture, so look at the stream once after choosing one. The hardware encoders are written from the documentation of their GStreamer elements and tested through a software stand-in; the reference page of this section says which have been proven on hardware. It is one setting for the robot, not one per camera: the chip is part of the computer. It does not apply to a camera whose source already delivers H.264 and is passed through: that video is forwarded, not encoded. Overrides the bridge's ROS parameter \`live.encoder\`; without either, the bridge uses \`${LIVE_DEFAULTS.encoder}\`. A change holds from the next live start; a running stream keeps its encoder.`,
2037
+ enumDescriptions: describeValues(liveEncoder.options, {
2038
+ software: 'The bridge encodes on the CPU: VP8 or H.264, whichever the media server picks, as every robot did before the setting existed.',
2039
+ auto: 'Tries `nvenc`, then `vaapi`, then `v4l2`, and uses the first that starts. With none of them, software H.264.',
2040
+ nvenc: 'NVIDIA. On a Jetson the board\'s encoder (`nvv4l2h264enc`); a Jetson Orin Nano has none and ends on software. On a desktop card `nvh264enc`.',
2041
+ vaapi: 'Intel and AMD graphics through VA-API: `vah264enc` where the installed GStreamer has it, else `vaapih264enc`.',
2042
+ v4l2: 'A V4L2 encoder (`v4l2h264enc`), as on a Raspberry Pi 4. A Raspberry Pi 5 has no hardware encoder and ends on software.',
2043
+ }),
2044
+ }),
2045
+ });
1946
2046
  /**
1947
2047
  * The format version of a `fleetless.yaml`. Deliberately not called
1948
2048
  * `version`: the console counts published states with "v12 → v13", and two
@@ -2080,6 +2180,20 @@ export const robotConfigDoc = strictObject({
2080
2180
  body: { enter_lag_ms: 2000, datapoint_max_hz: 1, camera: 'reduce' },
2081
2181
  }],
2082
2182
  }),
2183
+ live: liveSection.optional().meta({
2184
+ description: 'How the bridge sends live video, for every camera of the robot. Each key overrides the bridge\'s ROS parameter of the same name; an absent key leaves the parameter alone.',
2185
+ /**
2186
+ * The default, spelled out. A developer who opens this section came to
2187
+ * lower the number, and the value to start from is the one in force. A
2188
+ * plain number and no tab stop, as in `low_bandwidth`: a placeholder is a
2189
+ * string, and the body has to be a document the format accepts.
2190
+ */
2191
+ defaultSnippets: [{
2192
+ label: 'live video, packet size',
2193
+ description: `Caps every RTP packet the bridge sends. ${LIVE_DEFAULTS.max_packet_bytes} is the default; lower it for viewers behind a tunnel inside a tunnel.`,
2194
+ body: { max_packet_bytes: LIVE_DEFAULTS.max_packet_bytes },
2195
+ }],
2196
+ }),
2083
2197
  });
2084
2198
  /**
2085
2199
  * One thing the cloud has to say about a configuration: the field, and the
package/dist/index.d.ts CHANGED
@@ -21,9 +21,9 @@ export { jobState, reportedJobState, jobOrigin, job, jobEvent, busyDetails, publ
21
21
  export type { JobState, ReportedJobState, JobOrigin, Job, JobEvent, BusyDetails, PublisherBusyDetails, JobQueueFullDetails, } from './jobs.js';
22
22
  export { JOB_RUN_PAGE_MAX, JOB_RUN_RETENTION_DAYS, jobActor, jobRunKind, jobRun, jobRunQuery, jobRunListResponse, jobRunSummaryQuery, jobRunSummary, } from './jobs.js';
23
23
  export type { JobActor, JobRunKind, JobRun, JobRunQuery, JobRunListResponse, JobRunSummary } from './jobs.js';
24
- export { FLEETLESS_FORMAT_VERSION, RESERVED_SLUGS, parameterType, parameterSpec, parameterMap, serviceDescription, parameterDescription, messageTemplate, messageRef, messageBody, messageMap, PLACEHOLDER_RE, placeholderNames, actionConfig, serviceConfig, publisherConfig, cameraConfig, alertCondition, datapointAlert, rateThrottleHz, datapointNumeric, datapointRetention, datapointChart, datapointConfig, lowBandwidthSection, LOW_BANDWIDTH_DEFAULTS, robotConfigDoc, accessRule, accessSection, validationIssue, configState, snapshotIntervalSeconds, ALERT_SEVERITY_DEFAULT, ALERT_ENABLED_DEFAULT, RETENTION_INTERVAL_SECONDS_DEFAULT, CHART_WINDOW_MINUTES_DEFAULT, cameraSource, cameraCredentials, } from './config.js';
24
+ export { FLEETLESS_FORMAT_VERSION, RESERVED_SLUGS, parameterType, parameterSpec, parameterMap, serviceDescription, parameterDescription, messageTemplate, messageRef, messageBody, messageMap, PLACEHOLDER_RE, placeholderNames, actionConfig, serviceConfig, publisherConfig, cameraConfig, alertCondition, datapointAlert, rateThrottleHz, datapointNumeric, datapointRetention, datapointChart, datapointConfig, lowBandwidthSection, LOW_BANDWIDTH_DEFAULTS, liveSection, LIVE_DEFAULTS, LIVE_BOUNDS, robotConfigDoc, accessRule, accessSection, validationIssue, configState, snapshotIntervalSeconds, ALERT_SEVERITY_DEFAULT, ALERT_ENABLED_DEFAULT, RETENTION_INTERVAL_SECONDS_DEFAULT, CHART_WINDOW_MINUTES_DEFAULT, cameraSource, cameraCredentials, } from './config.js';
25
25
  export type { CameraSource } from './config.js';
26
- export type { ParameterType, ParameterSpec, ActionConfig, ServiceConfig, PublisherConfig, CameraConfig, CameraCredentials, AlertCondition, DatapointAlert, DatapointNumeric, DatapointRetention, DatapointChart, DatapointConfig, LowBandwidthSection, RobotConfigDoc, AccessRule, AccessSection, ValidationIssue, ConfigState, } from './config.js';
26
+ export type { ParameterType, ParameterSpec, ActionConfig, ServiceConfig, PublisherConfig, CameraConfig, CameraCredentials, AlertCondition, DatapointAlert, DatapointNumeric, DatapointRetention, DatapointChart, DatapointConfig, LowBandwidthSection, LiveSection, RobotConfigDoc, AccessRule, AccessSection, ValidationIssue, ConfigState, } from './config.js';
27
27
  /**
28
28
  * The one account of what is wrong with a configuration document, shared by
29
29
  * every layer that reports on one. See `config-issues.ts`'s header for why a
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ bridgeAssetsAvailable, cloudAssetRequest, bridgeAssetProgress,
14
14
  activeJob, DEFAULT_PATIENCE_MS, MAX_PATIENCE_MS, MIN_PATIENCE_MS, JOB_HEARTBEAT_INTERVAL_MS, JOB_HEARTBEAT_TIMEOUT_MS, JOB_OFFLINE_GRACE_MS, } from './protocol.js';
15
15
  export { jobState, reportedJobState, jobOrigin, job, jobEvent, busyDetails, publisherBusyDetails, jobQueueFullDetails } from './jobs.js';
16
16
  export { JOB_RUN_PAGE_MAX, JOB_RUN_RETENTION_DAYS, jobActor, jobRunKind, jobRun, jobRunQuery, jobRunListResponse, jobRunSummaryQuery, jobRunSummary, } from './jobs.js';
17
- export { FLEETLESS_FORMAT_VERSION, RESERVED_SLUGS, parameterType, parameterSpec, parameterMap, serviceDescription, parameterDescription, messageTemplate, messageRef, messageBody, messageMap, PLACEHOLDER_RE, placeholderNames, actionConfig, serviceConfig, publisherConfig, cameraConfig, alertCondition, datapointAlert, rateThrottleHz, datapointNumeric, datapointRetention, datapointChart, datapointConfig, lowBandwidthSection, LOW_BANDWIDTH_DEFAULTS, robotConfigDoc, accessRule, accessSection, validationIssue, configState, snapshotIntervalSeconds,
17
+ export { FLEETLESS_FORMAT_VERSION, RESERVED_SLUGS, parameterType, parameterSpec, parameterMap, serviceDescription, parameterDescription, messageTemplate, messageRef, messageBody, messageMap, PLACEHOLDER_RE, placeholderNames, actionConfig, serviceConfig, publisherConfig, cameraConfig, alertCondition, datapointAlert, rateThrottleHz, datapointNumeric, datapointRetention, datapointChart, datapointConfig, lowBandwidthSection, LOW_BANDWIDTH_DEFAULTS, liveSection, LIVE_DEFAULTS, LIVE_BOUNDS, robotConfigDoc, accessRule, accessSection, validationIssue, configState, snapshotIntervalSeconds,
18
18
  // The defaults the format names, so nobody invents them twice.
19
19
  ALERT_SEVERITY_DEFAULT, ALERT_ENABLED_DEFAULT, RETENTION_INTERVAL_SECONDS_DEFAULT, CHART_WINDOW_MINUTES_DEFAULT,
20
20
  // Retention, history and quotas.
@@ -539,6 +539,7 @@ export declare const cloudConfig: z.ZodObject<{
539
539
  tcp: "tcp";
540
540
  udp: "udp";
541
541
  }>>;
542
+ passthrough: z.ZodOptional<z.ZodBoolean>;
542
543
  credentials: z.ZodOptional<z.ZodObject<{
543
544
  username: z.ZodOptional<z.ZodString>;
544
545
  password: z.ZodOptional<z.ZodString>;
@@ -592,6 +593,16 @@ export declare const cloudConfig: z.ZodObject<{
592
593
  }>>;
593
594
  camera_bitrate_kbps: z.ZodOptional<z.ZodNumber>;
594
595
  }, z.core.$strict>>;
596
+ live: z.ZodOptional<z.ZodObject<{
597
+ max_packet_bytes: z.ZodOptional<z.ZodNumber>;
598
+ encoder: z.ZodOptional<z.ZodEnum<{
599
+ v4l2: "v4l2";
600
+ auto: "auto";
601
+ software: "software";
602
+ nvenc: "nvenc";
603
+ vaapi: "vaapi";
604
+ }>>;
605
+ }, z.core.$strict>>;
595
606
  }, z.core.$strict>;
596
607
  }, z.core.$strip>;
597
608
  export type CloudConfig = z.infer<typeof cloudConfig>;
package/dist/rest.d.ts CHANGED
@@ -449,6 +449,7 @@ export declare const configDraftResponse: z.ZodObject<{
449
449
  tcp: "tcp";
450
450
  udp: "udp";
451
451
  }>>;
452
+ passthrough: z.ZodOptional<z.ZodBoolean>;
452
453
  credentials: z.ZodOptional<z.ZodObject<{
453
454
  username: z.ZodOptional<z.ZodString>;
454
455
  password: z.ZodOptional<z.ZodString>;
@@ -502,6 +503,16 @@ export declare const configDraftResponse: z.ZodObject<{
502
503
  }>>;
503
504
  camera_bitrate_kbps: z.ZodOptional<z.ZodNumber>;
504
505
  }, z.core.$strict>>;
506
+ live: z.ZodOptional<z.ZodObject<{
507
+ max_packet_bytes: z.ZodOptional<z.ZodNumber>;
508
+ encoder: z.ZodOptional<z.ZodEnum<{
509
+ v4l2: "v4l2";
510
+ auto: "auto";
511
+ software: "software";
512
+ nvenc: "nvenc";
513
+ vaapi: "vaapi";
514
+ }>>;
515
+ }, z.core.$strict>>;
505
516
  }, z.core.$strict>>;
506
517
  source: z.ZodString;
507
518
  updated_at: z.ZodNullable<z.ZodISODateTime>;
@@ -743,6 +754,7 @@ export declare const configVersionResponse: z.ZodObject<{
743
754
  tcp: "tcp";
744
755
  udp: "udp";
745
756
  }>>;
757
+ passthrough: z.ZodOptional<z.ZodBoolean>;
746
758
  credentials: z.ZodOptional<z.ZodObject<{
747
759
  username: z.ZodOptional<z.ZodString>;
748
760
  password: z.ZodOptional<z.ZodString>;
@@ -796,6 +808,16 @@ export declare const configVersionResponse: z.ZodObject<{
796
808
  }>>;
797
809
  camera_bitrate_kbps: z.ZodOptional<z.ZodNumber>;
798
810
  }, z.core.$strict>>;
811
+ live: z.ZodOptional<z.ZodObject<{
812
+ max_packet_bytes: z.ZodOptional<z.ZodNumber>;
813
+ encoder: z.ZodOptional<z.ZodEnum<{
814
+ v4l2: "v4l2";
815
+ auto: "auto";
816
+ software: "software";
817
+ nvenc: "nvenc";
818
+ vaapi: "vaapi";
819
+ }>>;
820
+ }, z.core.$strict>>;
799
821
  }, z.core.$strict>;
800
822
  source: z.ZodString;
801
823
  }, z.core.$strip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetless/contracts",
3
- "version": "15.1.0",
3
+ "version": "15.3.0",
4
4
  "description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Dehne Robotik GmbH",