UNPKG

tinyagent

Version:

Connect your local shell to any device - access your dev environment from anywhere

61 lines 1.34 kB
export declare enum HostType { USER_OWNED = "USER_OWNED", MANAGED = "MANAGED" } export declare enum HostStatus { ONLINE = "ONLINE", OFFLINE = "OFFLINE", STARTING = "STARTING", STOPPING = "STOPPING", ERROR = "ERROR" } export interface Host { id: string; userId: string; name: string; type: HostType; status: HostStatus; region?: string; specs?: HostSpecs; createdAt: Date; lastSeenAt?: Date; metadata?: Record<string, any>; } export interface HostSpecs { cpu: number; memory: number; storage: number; } export interface UserOwnedHost extends Host { type: HostType.USER_OWNED; registrationToken: string; publicKey?: string; } export interface ManagedHost extends Host { type: HostType.MANAGED; containerId?: string; region: string; specs: HostSpecs; } export interface HostRegistrationRequest { registrationToken: string; name: string; publicKey?: string; specs?: HostSpecs; } export interface HostConnectionRequest { hostId: string; sessionId: string; userId: string; } export interface CreateManagedHostRequest { name: string; region: string; specs: HostSpecs; userId: string; } export interface HostListResponse { hosts: Host[]; total: number; } //# sourceMappingURL=host.d.ts.map