Skip to main content

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.

@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

import { envSchema, planTaskRequestSchema, userSchema } from '@amisi/contracts';

Validation

bun run nx run contracts:lint
bun run nx run contracts:typecheck