@exellix/xact-contracts
v1.0.0
Published
Shared types, Zod schemas, and route map for the Xact marketplace framework
Downloads
138
Readme
@exellix/xact-contracts
Shared types, Zod validation schemas, and typed API route map for the Xact marketplace framework.
This package has no framework dependencies and no MongoDB — only zod. Server (@exellix/xact-core) and client (@exellix/xact-ui-core) both depend on it so types, validation, and URLs never drift.
Install
pnpm add @exellix/xact-contractsIn the Exellix monorepo:
"@exellix/xact-contracts": "workspace:*"Usage
import type { Intent, XactId } from '@exellix/xact-contracts';
import { CreateIntentSchema, Routes } from '@exellix/xact-contracts';
// Subpath imports
import { CriteriaMapSchema } from '@exellix/xact-contracts/api/requests/intent.requests.js';
import { PaginatedResponse } from '@exellix/xact-contracts/api/responses';
import { Routes } from '@exellix/xact-contracts/api/routes';Scripts
| Command | Description |
|---------|-------------|
| pnpm build | Bundle ESM + CJS + .d.ts via tsup |
| pnpm typecheck | tsc --noEmit |
License
MIT · Exellix
