Accept systemd credential delivery and clarify manual K1 control
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export interface SensorProfile { id: string; sensor: number; stream: string; index: number; format: string; fps: number; width?: number; height?: number }
|
||||
export interface SensorOption { id: string; sensor: string; label: string; value: number; min: number; max: number; step: number; read_only: boolean }
|
||||
export interface Sensor {
|
||||
kind?:string; connection_label?:string; control?:{generation:number;revision:number;phase:string;can_start:boolean;can_stop?:boolean;acquisition_id:string|null};
|
||||
kind?:string; connection_label?:string; control?:{generation:number;revision:number;phase:string;can_start:boolean;can_stop?:boolean;can_verify?:boolean;network_applied?:boolean;reason_code?:string|null;acquisition_id:string|null};
|
||||
live_settings?: Record<string,unknown>;
|
||||
id: string; name: string; model: string; prepared: boolean; configured?: boolean; verified: boolean; online: boolean; usb: string; firmware?: string; playback_id?: string | null;
|
||||
snapshot: {context: {session_id: string; device: {device_id: string}; execution: {node_id: string}}; acquisition: string; enrollment: string; message?: string};
|
||||
@@ -13,6 +13,12 @@ export interface SensorInventory {
|
||||
fresh?: boolean; items: Sensor[]; operations: {operation_id:string;device_id:string;action_id:string;requested_at:string;state:string;error?:string}[];
|
||||
preparation?: {state:string;started_at:number;steps:{id:string;label:string;state:string;message?:string}[]};
|
||||
}
|
||||
export function enrolledDevice(inventory:SensorInventory,sessionId:string):Sensor|null {
|
||||
if(inventory.fresh===false||!sessionId)return null;
|
||||
const matches=inventory.items.filter(item=>item.snapshot.context.session_id===sessionId);
|
||||
const item=matches.length===1?matches[0]:null;
|
||||
return item?.online&&item.verified&&item.prepared?item:null;
|
||||
}
|
||||
export interface SensorCommand {
|
||||
api_version: 'missioncore.nodedc/plugin-sdk/v0alpha2'; kind:'OperationRequest'; operation_id:string;
|
||||
session: {session_id:string;device_id:string}; action_id:string; requested_at:string; deadline_at:string;
|
||||
|
||||
Reference in New Issue
Block a user