@objectifthunes/oneshot-types
v0.16.0
Published
Shared Zod domain schemas + inferred TypeScript types for the Oneshot API, web, and app
Readme
@objectifthunes/oneshot-types
Shared Zod domain schemas and inferred TypeScript types for the Oneshot platform (API, web, app). This package is the single source of truth for the shapes of channels, projects, scenes, scripts, reference sheets, storyboards, personas, locations, products, and every other domain entity in the Oneshot pipeline.
Install
npm i @objectifthunes/oneshot-types zodzod is a peer dependency — bring your own compatible version (^4.3.6).
Usage
import { channelSchema, type Channel } from '@objectifthunes/oneshot-types';
const channel: Channel = channelSchema.parse(response);Every domain module exports its row Zod schema, the inferred TS type, and any Create*/Update* payload schemas + types for that domain. src/enums.ts holds every shared enum, including the single characterRoleSchema (main | supporting) reused across channel characters, project characters, and script characters.
