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

# Contracts

> Share Zod schemas and inferred types across apps and tooling

# @amisi/contracts

`@amisi/contracts` defines shared Zod schemas and inferred types for environment, API payloads, and domain models.

## What it contains

* `env.ts` for environment contracts
* `api.ts` for workflow/API request-response contracts
* `domain.ts` for shared entities such as entitlements and agent jobs

## Why it exists

* Keep cross-package interfaces explicit
* Reuse the same runtime validation shape across tooling and app code
* Reduce implicit API drift between modules

## Usage

```ts theme={null}
import { envSchema, planTaskRequestSchema, userSchema } from '@amisi/contracts';
```

## Validation

```sh theme={null}
bun run nx run contracts:lint
bun run nx run contracts:typecheck
```
