Skip to main content
TypeScript

Reference

Type Definitions

Complete TypeScript type definitions for the TaurusX TEE, Guardian, and Operator APIs.

Core Types — TEE

src/types/tee.ts
1// Core TEE type definitions
2export type DeviceType = 'macos' | 'windows' | 'mobile' | 'terminal';
3export type DevicePresenceStatus = 'online' | 'offline' | 'idle' | 'sleeping';
4export type ActionType =
5 | 'OpenApp' | 'OpenFile' | 'EditDocument' | 'FillForm'
6 | 'TakeScreenshot' | 'SendEmail' | 'OrganizeFiles'
7 | 'RunScript' | 'DescribeScreen';
8
9export type RiskLevel = 'low' | 'medium' | 'high';
10
11export interface DeviceInfo {
12 id: string;
13 userId: string;
14 type: DeviceType;
15 name: string;
16 lastSeen: string; // ISO-8601
17 presence: DevicePresenceStatus;
18 capabilities: DeviceCapabilities;
19 permissionProfile: PermissionProfile;
20}
21
22export interface ActionRequest {
23 id: string;
24 userId: string;
25 targetDeviceId: string;
26 actionType: ActionType;
27 parameters: Record;
28 riskLevel: RiskLevel;
29 createdAt: string;
30}
31
32export interface ActionResult {
33 id: string;
34 actionId: string;
35 status: 'pending' | 'success' | 'failed' | 'blocked';
36 details?: string;
37 artifacts?: Record;
38 completedAt?: string;
39}
40
41export interface TaskPlan {
42 id: string;
43 userId: string;
44 steps: TaskStep[];
45 status: 'pending' | 'running' | 'completed' | 'failed';
46 results: ActionResult[];
47 createdAt: string;
48 updatedAt: string;
49}