# udp-schema

Shared Zod validation schemas for the **User Detailed Profile** feature.

Used by both `survey-frontend` and `survey-backend` so that field names,
validation rules, and inferred TypeScript types are always in sync.

## Schemas

| Export | Description |
|--------|-------------|
| `step01OnboardingSchema` | Step 1 – profile, photo, languages, Aadhaar |
| `step02ContactDetailsSchema` | Step 2 – WhatsApp, social media, emergency contact |
| `step03ResidenceSchema` | Step 3 – domicile, current & permanent address |

## Usage

```ts
import { step01OnboardingSchema, type Step01OnboardingInput } from 'udp-schema';

const parsed = step01OnboardingSchema.parse(reqBody);
```

## Development

```bash
npm install
npm run build     # compiles to dist/
npm run type-check
```
