> ## Documentation Index
> Fetch the complete documentation index at: https://docs.buntime.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Types

> TypeScript type definitions

## Core Types

### Session

```typescript theme={null}
interface Session {
  id: string;
  expiresAt: string;
  previewUrl: string;
  createdAt: string;
  resourceLimits: ResourceLimits;
}
```

### ExecuteRequest

```typescript theme={null}
interface ExecuteRequest {
  sessionId: string;
  code?: string;
  command?: string;
  files?: Array<{ path: string; content: string }>;
  env?: Record<string, string>;
  timeout?: number;
}
```

### ExecuteResponse

```typescript theme={null}
interface ExecuteResponse {
  stdout: string;
  stderr: string;
  exitCode: number;
  executionTime: number;
  memoryUsed: number;
}
```

### File

```typescript theme={null}
interface File {
  path: string;
  size: number;
  modified: string;
  type: 'file' | 'directory';
}
```

## Error Types

### BuntimeError

```typescript theme={null}
class BuntimeError extends Error {
  code: string;
  status: number;
  details?: any;
  retryAfter?: number;
}
```

## Import Types

```typescript theme={null}
import type {
  Session,
  ExecuteRequest,
  ExecuteResponse,
  File,
  BuntimeError
} from 'buntime.sh';
```
