UNPKG

@luxorai/sandbox

Version:

TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud

9 lines (8 loc) • 603 B
import type { Interceptor } from "@connectrpc/connect"; export declare function validateAuthToken(token: string): string; /** apiKey is an alias for authToken; an explicit authToken wins, then the environment. */ export declare function resolveAuthToken(authToken?: string, apiKey?: string): string; export declare function createAuthInterceptor(token: string): Interceptor; export declare function setAuthHeaders(headers: Headers, token: string): void; /** Leads the User-Agent with the SDK product, keeping any existing value. */ export declare function setSdkIdentityHeaders(headers: Headers): void;