Device reference
2 pages, 24 routes, 31 connections and 0 CLI commands, generated from the declarations of Device without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 3
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Dashboard | device.index | dashboard | /view/device | 0 | in navigation | ||
| Device | device.item | detail | /view/device/{device_id} | 0 | device.index | hidden | |
| MIDI inputs | device.midi | custom | /view/device/midi | 60 | in navigation |
Connections · 31
Device.Command
Issue a signed device command (control plane). The controller Ed25519-signs the command; it lands on the device envelope as profile.pending_command (status issued). Auto-registers an unknown device as an actuator.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | required | |||
| device_id | required | |||
| command | required |
- Output keydevice.result
- Classificationreal
- POST /device/commandHTTP route
Device.CommandAck
Acknowledge a pending command (device side). Verifies the controller's signature — an unauthentic command is force-rejected, never applied — records applied/rejected + result, and refreshes the heartbeat (the device answered).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | required | |||
| device_id | required | |||
| status | optional |
- Output keydevice.result
- Classificationreal
- POST /device/command/ackHTTP route
Device.DiscoverCapabilities
Discover capabilities exposed by a device transport.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| transport_id | optional |
- Output keydevice.result
- Classificationroute_handler
- POST /device/transport/discoverHTTP route
Device.GcodeJog
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| endpoint | optional | |||
| dialect | required | |||
| baud | optional | |||
| simulate | optional | |||
| dx | optional | |||
| dy | optional | |||
| dz | optional | |||
| feed | required |
- Output keydevice.result
- Classificationunclassified
Device.GcodeMachineStatus
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| endpoint | optional | |||
| dialect | required | |||
| baud | optional | |||
| simulate | optional |
- Output keydevice.result
- Classificationunclassified
Device.GcodeSetZero
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| endpoint | optional | |||
| dialect | required | |||
| baud | optional | |||
| simulate | optional | |||
| axes | required |
- Output keydevice.result
- Classificationunclassified
Device.GcodeStreamCancel
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| stream_id | required |
- Output keydevice.result
- Classificationunclassified
Device.GcodeStreamControl
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| stream_id | required | |||
| action | optional | |||
| control | optional |
- Output keydevice.result
- Classificationunclassified
Device.GcodeStreamList
- Output keydevice.result
- Classificationunclassified
Device.GcodeStreamStart
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| endpoint | optional | |||
| gcode | optional | |||
| lines | optional | |||
| dialect | optional | |||
| baud | optional | |||
| simulate | optional | |||
| fake_ack_ms | optional | |||
| ack_timeout_ms | optional | |||
| job_ref | optional | |||
| status_poll_ms | optional | |||
| check_first | optional | |||
| pause_on | optional | |||
| sim_motion_scale | optional | |||
| line_numbers | optional | |||
| autoreport_s | optional | |||
| sim_line_noise_every | optional |
- Output keydevice.result
- Classificationunclassified
Device.GcodeStreamStatus
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| stream_id | required |
- Output keydevice.result
- Classificationunclassified
Device.Get
Fetch one Device by id.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | required | |||
| device_id | required |
- Output keydevice.result
- Classificationroute_handler
- POST /device/getHTTP route
Device.Listen
Start a device transport listener. Persists transport state and begins frame buffering for the named transport.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| endpoint | optional |
- Output keydevice.result
- Classificationreal
- POST /device/transport/listenHTTP route
Device.PrintJobCancel
Cancel a print job: an unsent job stops before the printer is contacted again; a sent job gets IPP Cancel-Job and the printer's answer decides the final state.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| print_job_id | required |
- Output keydevice.result
- Classificationreal
- POST /device/print/job/cancelHTTP route
Device.PrintJobSend
Print artwork on a 2D printer over IPP (ipp://, ipps://, or simulator://ipp). Hashes the document (refusing a content-addressed document_ref it does not match), then a worker probes the printer, renders PWG Raster (JPEG fallback, recorded), sends Print-Job, polls the printer's job to a terminal state and seals a receipt binding input bytes, rendered bytes and the printer job. Real printers pass the CRE8_DEVICE_PRINT_ACCESS gate.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| printer_uri | optional | |||
| document_ref | optional | |||
| document_base64 | optional | |||
| mirror | optional | |||
| copies | optional | |||
| media | optional | |||
| icc_profile_base64 | optional | |||
| simulate | optional | |||
| resolution_dpi | optional | |||
| rendering_intent | optional | |||
| job_name | optional |
- Output keydevice.result
- Classificationreal
- POST /device/print/jobHTTP route
Device.PrintJobStatus
Poll a print job: queued | sending | processing | completed | aborted | canceled | failed, with its receipt once terminal.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| print_job_id | required |
- Output keydevice.result
- Classificationroute_handler
- GET /device/print/job/statusHTTP route
Device.PrinterProbe
Ask a printer what it is over IPP Get-Printer-Attributes: make and model, uuid, state, colour, document formats, resolutions, loaded media, and the format the driver would send.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| printer_uri | optional | |||
| simulate | optional |
- Output keydevice.result
- Classificationroute_handler
- POST /device/printer/probeHTTP route
Device.Prune
Prune device rows whose heartbeat is older than the prune TTL (liveness-driven sweep of long-offline devices from peer_devices_runtime).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | optional | |||
| ttl_ms | optional |
- Output keydevice.result
- Classificationreal
- POST /device/pruneHTTP route
Device.Query
List/filter Devices.
- Output keydevice.result
- Classificationroute_handler
- GET /deviceHTTP route
- POST /device/queryHTTP route
Device.ReadFrames
Read buffered frames from an active transport listener (live read).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| transport_id | optional |
- Output keydevice.result
- Classificationroute_handler
- POST /device/transport/framesHTTP route
Device.Reading
Record a signed sensor reading. Ed25519-signs the reading, self-verifies it, and persists it onto the device envelope in peer_devices_runtime — bumping the heartbeat (liveness) and stashing the signed reading under profile.last_reading. Auto-registers an unknown device as a sensor.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | required | |||
| device_id | required | |||
| metric | required | |||
| value | required |
- Output keydevice.result
- Classificationreal
- POST /device/readingHTTP route
Device.Readings
Stream a device's signed-reading history: the retained window plus the hash-chain summary (total count + tamper-evidence tip over the ordered sequence).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | required | |||
| device_id | required |
- Output keydevice.result
- Classificationroute_handler
- POST /device/readingsHTTP route
Device.ScanAdapters
Scan for device transport adapters. Persists discovered adapter records into device_transports_runtime.
- Output keydevice.result
- Classificationreal
- POST /device/transport/scanHTTP route
Device.ScanPeripherals
Discover peripheral devices (printers on COM, scanners, generic serial gadgets) and additively upsert them as peer device envelope rows in peer_devices_runtime (never wiping compute rows).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | optional |
- Output keydevice.result
- Classificationreal
- POST /device/peripherals/scanHTTP route
Device.Status
Device subsystem health / counts.
- Output keydevice.result
- Classificationroute_handler
- GET /device/statusHTTP route
Device.StopListen
Stop a device transport listener — symmetrical inverse of Listen. Mutates listener state.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| transport_id | optional |
- Output keydevice.result
- Classificationreal
- POST /device/transport/stopHTTP route
Device.Sync
Sync device state from peer / external source. Persists discovered devices into peer_devices_runtime.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | required |
- Output keydevice.result
- Classificationreal
- POST /device/syncHTTP route
Device.TransportStatus
Device transport-layer health and per-transport status.
- Output keydevice.result
- Classificationroute_handler
- GET /device/transport/statusHTTP route
Device.VerifyReading
Verify a signed sensor reading envelope (receiver-side trustless check). Consults only the envelope — no store read, no signer, no transport trust.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| signed_reading | required |
- Output keydevice.result
- Classificationroute_handler
- POST /device/reading/verifyHTTP route
Device.VerifyReadingChain
Verify a device's retained reading window is an authentic, well-ordered segment — every signature valid and every chain link folds correctly (detects reorder / drop / mutation within the window).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | required | |||
| device_id | required |
- Output keydevice.result
- Classificationroute_handler
- POST /device/readings/verify-chainHTTP route
Device.ViewPatch
Live SSR patch for the Devices panel fleet summary strip.
- Output keydevice.result
- Classificationroute_handler
- GET /device/panel/patchHTTP route
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authoritysql_compat
- Preferred truthsql_compat
- App ownerDevice
- SQL projectionlegacy_truth_until_hyper_model · DDL declarations: 9
- None declared.
- None declared.
- None declared.
- None declared.
- None declared.
- warningApp still declares SQL DDL without a declared Hyper graph model. (sql_without_hyper_model)
| Table |
|---|
| peer_devices_runtime |
| device_transports_runtime |
Capabilities and dependencies
- Peer
Structure review · 1
- Device · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)