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 |
| 2 | export type DeviceType = 39;macos39; | 39;windows39; | 39;mobile39; | 39;terminal39;; |
| 3 | export type DevicePresenceStatus = 39;online39; | 39;offline39; | 39;idle39; | 39;sleeping39;; |
| 4 | export type ActionType = |
| 5 | | 39;OpenApp39; | 39;OpenFile39; | 39;EditDocument39; | 39;FillForm39; |
| 6 | | 39;TakeScreenshot39; | 39;SendEmail39; | 39;OrganizeFiles39; |
| 7 | | 39;RunScript39; | 39;DescribeScreen39;; |
| 8 | |
| 9 | export type RiskLevel = 39;low39; | 39;medium39; | 39;high39;; |
| 10 | |
| 11 | export 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 | |
| 22 | export interface ActionRequest { |
| 23 | id: string; |
| 24 | userId: string; |
| 25 | targetDeviceId: string; |
| 26 | actionType: ActionType; |
| 27 | parameters: Record<string, unknown>; |
| 28 | riskLevel: RiskLevel; |
| 29 | createdAt: string; |
| 30 | } |
| 31 | |
| 32 | export interface ActionResult { |
| 33 | id: string; |
| 34 | actionId: string; |
| 35 | status: 39;pending39; | 39;success39; | 39;failed39; | 39;blocked39;; |
| 36 | details?: string; |
| 37 | artifacts?: Record<string, unknown>; |
| 38 | completedAt?: string; |
| 39 | } |
| 40 | |
| 41 | export interface TaskPlan { |
| 42 | id: string; |
| 43 | userId: string; |
| 44 | steps: TaskStep[]; |
| 45 | status: 39;pending39; | 39;running39; | 39;completed39; | 39;failed39;; |
| 46 | results: ActionResult[]; |
| 47 | createdAt: string; |
| 48 | updatedAt: string; |
| 49 | } |