tinyagent
Version:
Connect your local shell to any device - access your dev environment from anywhere
44 lines • 861 B
TypeScript
export interface User {
id: string;
email: string;
name?: string;
createdAt: Date;
apiKeys: ApiKey[];
}
export interface ApiKey {
id: string;
userId: string;
key: string;
name: string;
createdAt: Date;
lastUsedAt?: Date;
scopes: string[];
}
export interface AuthTokenPayload {
userId: string;
email: string;
sessionId?: string;
hostId?: string;
exp: number;
}
export interface LoginRequest {
email: string;
password: string;
}
export interface SignupRequest {
email: string;
password: string;
name?: string;
}
export interface AuthResponse {
token: string;
refreshToken: string;
user: User;
}
export interface HostAuthRequest {
registrationToken: string;
hostId: string;
timestamp: number;
signature: string;
}
//# sourceMappingURL=auth.d.ts.map