Skip to content
1 viewer
View

Device reference

2 pages, 24 routes, 31 connections and 0 CLI commands, generated from the declarations of Device without reading storage or running anything.

AboutCode

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

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Dashboarddevice.indexdashboard/view/device0in navigation
Devicedevice.itemdetail/view/device/{device_id}0device.indexhidden
MIDI inputsdevice.midicustom/view/device/midi60in navigation
3 rows

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.

Device.Command input
FieldTypeRequiredDescriptionAllowed
peer_idrequired
device_idrequired
commandrequired
3 rows
Calls and output
  • 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).

Device.CommandAck input
FieldTypeRequiredDescriptionAllowed
peer_idrequired
device_idrequired
statusoptional
3 rows
Calls and output
  • Output keydevice.result
  • Classificationreal
  • POST /device/command/ackHTTP route

Device.DiscoverCapabilities

Discover capabilities exposed by a device transport.

Device.DiscoverCapabilities input
FieldTypeRequiredDescriptionAllowed
transport_idoptional
1 row
Calls and output
  • Output keydevice.result
  • Classificationroute_handler
  • POST /device/transport/discoverHTTP route

Device.GcodeJog

Device.GcodeJog input
FieldTypeRequiredDescriptionAllowed
endpointoptional
dialectrequired
baudoptional
simulateoptional
dxoptional
dyoptional
dzoptional
feedrequired
8 rows
Calls and output
  • Output keydevice.result
  • Classificationunclassified

Device.GcodeMachineStatus

Device.GcodeMachineStatus input
FieldTypeRequiredDescriptionAllowed
endpointoptional
dialectrequired
baudoptional
simulateoptional
4 rows
Calls and output
  • Output keydevice.result
  • Classificationunclassified

Device.GcodeSetZero

Device.GcodeSetZero input
FieldTypeRequiredDescriptionAllowed
endpointoptional
dialectrequired
baudoptional
simulateoptional
axesrequired
5 rows
Calls and output
  • Output keydevice.result
  • Classificationunclassified

Device.GcodeStreamCancel

Device.GcodeStreamCancel input
FieldTypeRequiredDescriptionAllowed
stream_idrequired
1 row
Calls and output
  • Output keydevice.result
  • Classificationunclassified

Device.GcodeStreamControl

Device.GcodeStreamControl input
FieldTypeRequiredDescriptionAllowed
stream_idrequired
actionoptional
controloptional
3 rows
Calls and output
  • Output keydevice.result
  • Classificationunclassified

Device.GcodeStreamList

Calls and output
  • Output keydevice.result
  • Classificationunclassified

Device.GcodeStreamStart

Device.GcodeStreamStart input
FieldTypeRequiredDescriptionAllowed
endpointoptional
gcodeoptional
linesoptional
dialectoptional
baudoptional
simulateoptional
fake_ack_msoptional
ack_timeout_msoptional
job_refoptional
status_poll_msoptional
check_firstoptional
pause_onoptional
sim_motion_scaleoptional
line_numbersoptional
autoreport_soptional
sim_line_noise_everyoptional
16 rows
Calls and output
  • Output keydevice.result
  • Classificationunclassified

Device.GcodeStreamStatus

Device.GcodeStreamStatus input
FieldTypeRequiredDescriptionAllowed
stream_idrequired
1 row
Calls and output
  • Output keydevice.result
  • Classificationunclassified

Device.Get

Fetch one Device by id.

Device.Get input
FieldTypeRequiredDescriptionAllowed
peer_idrequired
device_idrequired
2 rows
Calls and output
  • 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.

Device.Listen input
FieldTypeRequiredDescriptionAllowed
endpointoptional
1 row
Calls and output
  • 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.

Device.PrintJobCancel input
FieldTypeRequiredDescriptionAllowed
print_job_idrequired
1 row
Calls and output
  • 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.

Device.PrintJobSend input
FieldTypeRequiredDescriptionAllowed
printer_urioptional
document_refoptional
document_base64optional
mirroroptional
copiesoptional
mediaoptional
icc_profile_base64optional
simulateoptional
resolution_dpioptional
rendering_intentoptional
job_nameoptional
11 rows
Calls and output
  • 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.

Device.PrintJobStatus input
FieldTypeRequiredDescriptionAllowed
print_job_idrequired
1 row
Calls and output
  • 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.

Device.PrinterProbe input
FieldTypeRequiredDescriptionAllowed
printer_urioptional
simulateoptional
2 rows
Calls and output
  • 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).

Device.Prune input
FieldTypeRequiredDescriptionAllowed
peer_idoptional
ttl_msoptional
2 rows
Calls and output
  • Output keydevice.result
  • Classificationreal
  • POST /device/pruneHTTP route

Device.Query

List/filter Devices.

Calls and output
  • Output keydevice.result
  • Classificationroute_handler
  • GET /deviceHTTP route
  • POST /device/queryHTTP route

Device.ReadFrames

Read buffered frames from an active transport listener (live read).

Device.ReadFrames input
FieldTypeRequiredDescriptionAllowed
transport_idoptional
1 row
Calls and output
  • 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.

Device.Reading input
FieldTypeRequiredDescriptionAllowed
peer_idrequired
device_idrequired
metricrequired
valuerequired
4 rows
Calls and output
  • 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).

Device.Readings input
FieldTypeRequiredDescriptionAllowed
peer_idrequired
device_idrequired
2 rows
Calls and output
  • Output keydevice.result
  • Classificationroute_handler
  • POST /device/readingsHTTP route

Device.ScanAdapters

Scan for device transport adapters. Persists discovered adapter records into device_transports_runtime.

Calls and output
  • 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).

Device.ScanPeripherals input
FieldTypeRequiredDescriptionAllowed
peer_idoptional
1 row
Calls and output
  • Output keydevice.result
  • Classificationreal
  • POST /device/peripherals/scanHTTP route

Device.Status

Device subsystem health / counts.

Calls and output
  • Output keydevice.result
  • Classificationroute_handler
  • GET /device/statusHTTP route

Device.StopListen

Stop a device transport listener — symmetrical inverse of Listen. Mutates listener state.

Device.StopListen input
FieldTypeRequiredDescriptionAllowed
transport_idoptional
1 row
Calls and output
  • 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.

Device.Sync input
FieldTypeRequiredDescriptionAllowed
peer_idrequired
1 row
Calls and output
  • Output keydevice.result
  • Classificationreal
  • POST /device/syncHTTP route

Device.TransportStatus

Device transport-layer health and per-transport status.

Calls and output
  • 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.

Device.VerifyReading input
FieldTypeRequiredDescriptionAllowed
signed_readingrequired
1 row
Calls and output
  • 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).

Device.VerifyReadingChain input
FieldTypeRequiredDescriptionAllowed
peer_idrequired
device_idrequired
2 rows
Calls and output
  • Output keydevice.result
  • Classificationroute_handler
  • POST /device/readings/verify-chainHTTP route

Device.ViewPatch

Live SSR patch for the Devices panel fleet summary strip.

Calls and output
  • Output keydevice.result
  • Classificationroute_handler
  • GET /device/panel/patchHTTP route

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authoritysql_compat
  • Preferred truthsql_compat
  • App ownerDevice
  • SQL projectionlegacy_truth_until_hyper_model · DDL declarations: 9
Hyper vertex kinds read
  • None declared.
Hyper vertex kinds written
  • None declared.
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • warningApp still declares SQL DDL without a declared Hyper graph model. (sql_without_hyper_model)
SQL tables
Table
peer_devices_runtime
device_transports_runtime
2 rows

Capabilities and dependencies

Depends on
  • Peer

Structure review · 1

Warnings · 1
  • Device · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)