@luxorai/sandbox
Version:
TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud
38 lines (37 loc) • 1.48 kB
TypeScript
import { type SessionInjectionCredentialMetadata } from "./internal/proto/tenki/sandbox/v1/session_injection_credentials_pb.js";
export interface InjectionRule {
origin: string;
methods: string[];
pathPrefix: string;
header: string;
}
declare const inspect: unique symbol;
export declare class InjectionCredentialInput {
readonly name: string;
readonly rules: InjectionRule[];
constructor(name: string, value: Uint8Array, rules: InjectionRule[]);
toString(): string;
toJSON(): string;
[inspect](): string;
}
export interface InjectionCredentialMetadata {
credentialId: string;
name: string;
revision: number;
revoked: boolean;
}
export declare function injectionInput(input: InjectionCredentialInput): import("./internal/proto/tenki/sandbox/v1/session_injection_credentials_pb.js").SessionInjectionCredentialInput;
export declare function injectionMetadata(value?: SessionInjectionCredentialMetadata): InjectionCredentialMetadata;
export declare function injectionRevision(value?: number): number | undefined;
export declare function safeInjectionError(error: unknown): Error;
declare module "./errors.js" {
interface WaitReadyFailedError {
credentials?: InjectionCredentialMetadata[];
runtimeFailure?: TemplateRuntimeFailedError;
}
interface TemplateRuntimeFailedError {
credentials?: InjectionCredentialMetadata[];
runtimeFailure?: TemplateRuntimeFailedError;
}
}
export {};