@electron-ota/server-contract
v0.1.0
Published
Shared API types and schemas for the electron-ota device and management planes
Maintainers
Readme
@electron-ota/server-contract
Shared API types and Zod schemas for the electron-ota device and management planes. The cloud API, the CLI's cloud mode, and the dashboard all build against these schemas so client and server never drift.
Install
npm install @electron-ota/server-contractWhat's inside
- Device plane — the manifest check request/response contract a device uses to poll for updates.
- Management plane — the API surface for publishing releases, promoting and rolling back channels, and inspecting deploy history.
- Re-exports the wire schemas from
@electron-ota/core(checkResponseSchema,updateManifestSchema,signatureEnvelopeSchema) plus server-specific ones likeprojectSlugSchema.
import { projectSlugSchema } from '@electron-ota/server-contract';
const slug = projectSlugSchema.parse('my-app'); // lowercase, digits, hyphensLicense
MIT
