Vehicle reference
9 pages, 37 routes, 39 connections and 0 CLI commands, generated from the declarations of Vehicle 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 · 21
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Phone beacon | vehicle.beacon | detail | /view/vehicle/{vehicle_id}/beacon | 0 | vehicle.detail | Vehicle | hidden |
| Van builder | vehicle.build | editor | /view/vehicle/{vehicle_id}/build | 0 | vehicle.detail | Vehicle | hidden |
| Make | vehicle.catalog.make | list | /view/vehicle/catalog/{make} | 0 | vehicle.catalog | Vehicle model | hidden |
| Model | vehicle.catalog.model | detail | /view/vehicle/catalog/{make}/{model} | 0 | vehicle.catalog.make | Vehicle model | hidden |
| Custom vehicle | vehicle.custom | editor | /view/vehicle/editor/{custom_id} | 0 | vehicle.editor | Custom vehicle | hidden |
| Build design | vehicle.design | editor | /view/vehicle/designer/{design_id} | 0 | vehicle.designer | Build design | hidden |
| Build designer | vehicle.designer | editor | /view/vehicle/designer | 0 | vehicle.fleet | Build design | hidden |
| Vehicle | vehicle.detail | detail | /view/vehicle/{vehicle_id} | 0 | vehicle.fleet | Vehicle | hidden |
| Diagnose | vehicle.diagnose | detail | /view/vehicle/{vehicle_id}/diagnose | 0 | vehicle.detail | Vehicle | hidden |
| Vehicle editor | vehicle.editor | editor | /view/vehicle/editor | 0 | vehicle.fleet | Custom vehicle | hidden |
| Vehicles | vehicle.fleet | list | /view/vehicle/list | 0 | Vehicle | in navigation | |
| New vehicle | vehicle.register | editor | /view/vehicle/create | 0 | vehicle.fleet | Vehicle | hidden |
| VIN report | vehicle.vin | detail | /view/vehicle/{vehicle_id}/vin | 0 | vehicle.detail | Vehicle | hidden |
| Catalog | vehicle.catalog | list | /view/vehicle/catalog | 20 | Vehicle model | in navigation | |
| Shop queue | vehicle.shop | list | /view/vehicle/shop | 30 | Vehicle | in navigation | |
| CRE8 van | vehicle.van | custom | /view/vehicle/van | 59 | in navigation | ||
| One CRE8 van | vehicle.van.unit | detail | /view/vehicle/van/unit/{serial} | 59 | vehicle.van | Van | in navigation |
| Plant | vehicle.factory | custom | /view/vehicle/factory | 60 | in navigation | ||
| Bill | vehicle.factory.bill | custom | /view/vehicle/factory/bill | 61 | in navigation | ||
| Part | vehicle.factory.part | custom | /view/vehicle/factory/part | 62 | in navigation | ||
| Forms | vehicle.forms | custom | /view/vehicle/forms | 63 | in navigation |
Connections · 39
Vehicle.Analyze
Analyze recorded samples (derived projection — no new persistence).
- Output keyvehicle.result
- Classificationroute_handler
- POST /vehicle/analyzeHTTP route
Vehicle.BuildApplyTemplate
Merge one van-shop build template (merch print shop, retail pop-up, coffee and food, repair workshop, mobile studio, skoolie terminal tenant) into a vehicle's build manifest and set its business_activity. Additive and idempotent: applying twice adds nothing, and no component the owner already has is changed or removed. Owner-gated.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | required | |||
| template_id | required | |||
| actor | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/build/template/applyHTTP route
Vehicle.BuildTemplates
The van-shop build template catalog: per commercial activity, the components (zone, quantity, typical nameplate watts, typical weight) a starting manifest carries. Costs are null by design. Optional `business_activity` filter.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| business_activity | optional |
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/build/templatesHTTP route
Vehicle.BuildUpsert
Add, edit or remove one component of a vehicle's build manifest (electrical / solar / insulation / cabinetry / plumbing / shop-fixture / ...), with quantity, unit cost and installed state. Owner-gated. This manifest is the record a van-builder editor edits.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | required | |||
| component_id | optional | |||
| category | optional | |||
| name | optional | |||
| zone | optional | |||
| qty | optional | |||
| cost_cents | optional | |||
| weight_kg | optional | |||
| watts | optional | |||
| duty_fraction | optional | |||
| status | optional | |||
| shop_item_id | optional | |||
| note | optional | |||
| remove | optional | |||
| actor | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/build/upsertHTTP route
Vehicle.CatalogIngest
Load makes, models and EPA variants into Vehicle's catalog file: `source: epa` reads vehicles.csv (inline `records`, a `path` under data/imports/vehicle/, or a `source_url`, zipped or not), `source: vpic` asks NHTSA vPIC for each make's models per year, `source: recalls | complaints | safety` asks NHTSA for each make, model and year's recalls and complaint counts (no VIN, no narrative), and `source: testcar` reads one EPA Test Car List file of coastdown curves. Requests are capped by `max_requests` before anything is fetched. `dry_run` plans without writing. Operator-only; it writes no Vehicle record.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| source | required | |||
| records | optional | |||
| path | optional | |||
| source_url | optional | |||
| payload | optional | |||
| makes | optional | |||
| years | optional | |||
| year | optional | |||
| year_from | optional | |||
| year_to | optional | |||
| max_requests | optional | |||
| dry_run | optional | |||
| apply | optional | |||
| make | optional | |||
| model | optional | |||
| models | optional | |||
| vehicles | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/catalog/ingestHTTP route
Vehicle.CatalogSafety
The NHTSA recalls and complaint counts the catalog holds for a `make` and `model` (one `year` when given), newest first, with totals by part system. Complaint counts only: no VIN or narrative is kept.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| make | required | |||
| model | required | |||
| year | optional |
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/catalog/safetyHTTP route
Vehicle.CatalogSearch
Walk the make and model catalog: no `make` lists makes (filtered by `q`), a `make` lists its models (by `year` when given), a `model` lists its years, and a `year` lists its EPA variants with engine, drive, transmission, class and mileage. An unknown name answers `ok: false` with suggestions; an unloaded catalog answers `empty: true`.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| q | optional | |||
| make | optional | |||
| model | optional | |||
| year | optional | |||
| variant | optional | |||
| limit | optional |
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/catalog/searchHTTP route
Vehicle.CatalogTwinSpec
The physics twin's priors for a `make` and `model` from its EPA Test Car List coastdown: mass from the test weight, drag area and rolling resistance fitted to the target road-load curve, laid over `preset` (or the generic spec). The nearest `year` tested, and within it the median test weight unless `test_vehicle` names one.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| make | required | |||
| model | required | |||
| year | optional | |||
| test_vehicle | optional | |||
| preset | optional |
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/catalog/twin-specHTTP route
Vehicle.Command
Evaluate a raw OBD-II hex query (e.g., '01 0C', '09 02') against the active simulator configuration.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| command | required | |||
| vehicle_id | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/commandHTTP route
Vehicle.Connect
Establish a vehicle connection (OBD-II, CAN, etc.). Persists a session into vehicle_sessions_runtime.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| adapter | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/connectHTTP route
Vehicle.CustomSave
Start or edit a custom vehicle on the shared part model: create it from a class form, a reference twin, an EPA variant or a VIN (decoded once, never kept); change its layout, which the part model must accept; set or clear one value with its basis and source; or load the values a real vehicle states onto the parts that take them. Owner-gated on a verified session.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| step | required | |||
| vehicle_id | optional | |||
| name | optional | |||
| from | optional | |||
| target | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/custom/saveHTTP route
Vehicle.DecodeVin
Decode a 17-character VIN through NHTSA vPIC (the VIN travels in a POST body, never a URL) and rank the catalog's EPA variants for that make, model and year against the decoded engine and drive. Suggestions only: nothing is stored, and the register link carries make, model and year but not the VIN. Needs a signed-in caller.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vin | required | |||
| model_year | optional |
- Output keyvehicle.result
- Classificationroute_handler
- POST /vehicle/catalog/decode-vinHTTP route
Vehicle.DesignSave
Save a build design: a name, the reference twin it is laid out in, and the items placed inside it. Owner-gated on a verified session. A layout that does not fit still saves; what fits is answered by the page, from the twin's sourced figures.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| design_id | optional | |||
| name | optional | |||
| twin_key | optional | |||
| items | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/design/saveHTTP route
Vehicle.Disconnect
Close a vehicle session. Mutates session state.
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/disconnectHTTP route
Vehicle.Discover
Discover vehicle capabilities (supported PIDs, OBD-II modes).
- Output keyvehicle.result
- Classificationroute_handler
- POST /vehicle/discoverHTTP route
Vehicle.DtcRead
Read diagnostic trouble codes from the vehicle. Persists DTCs into vehicle_dtc_runtime.
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/dtc/readHTTP route
Vehicle.Get
One registered vehicle with its alerts and build totals, read off its `Vehicle` vertex and projected for the verified session: the owner gets the fix and the trail, anyone else what position_visibility allows. An unregistered id answers `found: false` rather than an error.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | required |
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/registry/getHTTP route
Vehicle.LineSummary
- Output keyvehicle.result
- Classificationunclassified
Vehicle.List
Every registered vehicle, most recently heard from first, with server-side filters on role / body / status / owner.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| role | optional | |||
| body | optional | |||
| status | optional | |||
| owner | optional | |||
| shop_id | optional | |||
| near | optional | |||
| lat | optional | |||
| lng | optional | |||
| radius_m | optional |
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/registry/listHTTP route
Vehicle.LocationPush
Record one GPS fix on a registered vehicle: keeps it as `last_position` (with a geohash cell) and appends it to a bounded, downsampled recent track. Owner-gated — a fix is where the vehicle and whoever is in it physically are.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | required | |||
| lat | required | |||
| lng | required | |||
| heading | optional | |||
| speed | optional | |||
| accuracy | optional | |||
| observed_at_ms | optional | |||
| beacon_token | optional | |||
| actor | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/location/pushHTTP route
Vehicle.PartClassify
File a part under one system and subsystem: an NHTSA ODI `component` (`SERVICE BRAKES, HYDRAULIC:ANTILOCK`), a diagnostic trouble `dtc` (with an optional `description`), or a build-bill `category` or `name`. With none of them, the whole taxonomy. Reads nothing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| component | optional | |||
| dtc | optional | |||
| description | optional | |||
| category | optional | |||
| name | optional |
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/parts/classifyHTTP route
Vehicle.PartLink
Take a trouble `code` (with an optional `description`), a `reading` name or an NHTSA `component` to the parts of one vehicle, by `vehicle_id` or reference `twin` key. Each link says how far it reached and on what basis. A code points at suspects, not a diagnosis.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | optional | |||
| twin | optional | |||
| code | optional | |||
| description | optional | |||
| reading | optional | |||
| component | optional |
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/parts/linkHTTP route
Vehicle.ProbePlan
Plan a probe sequence (read-only computation).
- Output keyvehicle.result
- Classificationroute_handler
- POST /vehicle/probe/planHTTP route
Vehicle.Profiles
List known vehicle adapter profiles.
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/profilesHTTP route
Vehicle.Register
Register a vehicle as a durable entity — its VIN, make/model/year/trim/engine, body, role, owner and optional org/shop/chapter links — as one `Vehicle` vertex in the protocol graph. Idempotent on vehicle_id; owner-gated once an owner exists.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | required | |||
| vin | optional | |||
| make | optional | |||
| model | optional | |||
| year | optional | |||
| trim | optional | |||
| engine | optional | |||
| body | optional | |||
| nickname | optional | |||
| role | optional | |||
| owner | optional | |||
| org_id | optional | |||
| shop_id | optional | |||
| chapter_id | optional | |||
| odometer_km | optional | |||
| gvwr_kg | optional | |||
| curb_weight_kg | optional | |||
| battery_wh | optional | |||
| status | optional | |||
| documents | optional | |||
| notes | optional | |||
| position_visibility | optional | |||
| business_activity | optional | |||
| actor | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/registry/registerHTTP route
Vehicle.RentOffer
Offer a registered vehicle for rent, or change the offer: day, week and four-week prices, deposit, km per day, the days it is offered and its status. Owner-gated. The offer is a Rental unit whose twin is `vehicle/{vehicle_id}`, so booking, deposit and payout are Rental's; the Vehicle record is not written.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | required | |||
| day_price | optional | |||
| week_price | optional | |||
| four_week_price | optional | |||
| deposit | optional | |||
| km_per_day | optional | |||
| available_from | optional | |||
| available_until | optional | |||
| status | optional | |||
| pay_asset | optional | |||
| actor | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/rent/offerHTTP route
Vehicle.RobotTasks
- Output keyvehicle.result
- Classificationunclassified
Vehicle.Sample
Sample one cycle of vehicle PIDs. Persists each reading into vehicle_samples_runtime.
- Output keyvehicle.result
- Classificationreal
- GET /vehicle/sampleHTTP route
- POST /vehicle/sample/pushHTTP route
Vehicle.Scan
Scan current state — produces a snapshot of the active session without writing new data.
- Output keyvehicle.result
- Classificationroute_handler
- POST /vehicle/scanHTTP route
Vehicle.Status
Vehicle subsystem health / pool status.
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/statusHTTP route
Vehicle.Stream
Stream multiple sample cycles into vehicle_samples_runtime. Long-running write loop.
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/streamHTTP route
Vehicle.TripStart
Mark the start of a trip. Persists trip state for later analysis.
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/trip/startHTTP route
Vehicle.TripStop
Mark the end of a trip and finalize trip session record.
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/trip/stopHTTP route
Vehicle.UnitTrace
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| serial | required |
- Output keyvehicle.result
- Classificationunclassified
Vehicle.Update
Patch a registered vehicle's identity, ownership, links, odometer, status, notes, document set, business_activity or position_visibility (owner_only | coarse | public — who besides the owner sees the fix; absent reads as coarse). Owner-gated; an absent field is left alone, never cleared.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | required | |||
| vin | optional | |||
| make | optional | |||
| model | optional | |||
| year | optional | |||
| trim | optional | |||
| engine | optional | |||
| body | optional | |||
| nickname | optional | |||
| role | optional | |||
| owner | optional | |||
| org_id | optional | |||
| shop_id | optional | |||
| chapter_id | optional | |||
| odometer_km | optional | |||
| gvwr_kg | optional | |||
| curb_weight_kg | optional | |||
| battery_wh | optional | |||
| status | optional | |||
| documents | optional | |||
| notes | optional | |||
| position_visibility | optional | |||
| business_activity | optional | |||
| rotate_beacon_token | optional | |||
| actor | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/registry/updateHTTP route
Vehicle.VanLedger
- Output keyvehicle.result
- Classificationunclassified
- GET /vehicle/van/ledgerHTTP route
Vehicle.ViewPatch
Live read-only pill strip for the vehicle SSR pages (/view/vehicle/list, /view/vehicle/{vehicle_id}): fleet counts, or one vehicle's rpm / speed / coolant / fuel / voltage / load / boost / moving and alert count. Steered by `view` (list | detail) and `vehicle_id`.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| view | optional | |||
| vehicle_id | optional |
- Output keyvehicle.result
- Classificationroute_handler
- GET /vehicle/document/patchHTTP route
Vehicle.VinLayout
Read the VIN on a vehicle's record through NHTSA vPIC and keep what it states about the layout, so a vehicle no reference twin covers gets parts. The VIN comes from the record, never the request. Owner-gated.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | required | |||
| actor | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/registry/vin-layoutHTTP route
Vehicle.VinReport
Read what public records say about a VIN: the NHTSA vPIC decode, then NHTSA's recalls, complaints and NCAP crash ratings for the make, model and year it decodes to. With a vehicle_id it reads the record's VIN and keeps the report, which holds no VIN, on the record (owner-gated); with a vin alone it answers and keeps nothing. Signed in.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| vehicle_id | optional | |||
| vin | optional | |||
| model_year | optional | |||
| actor | optional |
- Output keyvehicle.result
- Classificationreal
- POST /vehicle/registry/vin-reportHTTP route
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper_with_sql_compat
- Preferred truthhyper
- App ownerVehicle
- SQL projectioncompatibility_projection · DDL declarations: 10
- Vehicle
- VehicleCatalogComplaints
- VehicleCatalogMake
- VehicleCatalogModel
- VehicleCatalogRecall
- VehicleCatalogRoadLoad
- VehicleCatalogVariant
- CustomVehicle
- RentalUnit
- Vehicle
- VehicleCatalogComplaints
- VehicleCatalogMake
- VehicleCatalogModel
- VehicleCatalogRead
- VehicleCatalogRecall
- VehicleCatalogRoadLoad
- VehicleCatalogVariant
- VehicleDesign
- None declared.
- None declared.
- None declared.
- warningApp declares a Hyper graph model and SQL DDL; treat SQL as compatibility/projection until migrated. (hybrid_model)
| Table |
|---|
| vehicle_sessions_runtime |
| vehicle_samples_runtime |
| vehicle_dtc_runtime |
| vehicle_capabilities_runtime |
| vehicle_probe_packs_runtime |
Capabilities and dependencies
- Device
Structure review · 5
- Build design · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Custom vehicle · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Van · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Vehicle model · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Vehicle · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)