@allservices/contracts
v0.2.0
Published
Zod-based contracts shared between the AllServices API and its SDKs
Readme
@allservices/contracts
Zod schemas shared between the AllServices API and its SDK packages.
Status: alpha.
Install
pnpm add @allservices/contracts zodUsage
import { loginRequestSchema, type LoginRequest } from '@allservices/contracts';
const parsed = loginRequestSchema.parse({ email, password });Subpath imports per domain:
import { listUsersSchema } from '@allservices/contracts/users';
import { createWebhookEndpointSchema } from '@allservices/contracts/webhooks';
import { redeemLicenseSchema } from '@allservices/contracts/licensing';Available subpaths: auth, users, roles, webhooks, careers, health, licensing, identity-providers, required-actions, assets.
Documentation
See the main README.
License
UNLICENSED — internal AllServices use only.
