---
title: Identity
description: Identity protocol schemas
---

{/* ⚠️  AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs go in content/docs/guides/. */}

<Callout type="info">
**Source:** `packages/spec/src/api/identity.zod.ts`
</Callout>

## TypeScript Usage

```typescript
import { Session } from '@objectstack/spec/api';
import type { Session } from '@objectstack/spec/api';

// Validate data
const result = Session.parse(data);
```

---

## Session

### Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **id** | `string` | ✅ |  |
| **expiresAt** | `string` | ✅ |  |
| **token** | `string` | optional |  |
| **ipAddress** | `string` | optional |  |
| **userAgent** | `string` | optional |  |
| **userId** | `string` | ✅ |  |


---

