Skip to content

VesselDefinition

Defined in: packages/protocol/src/lib/vessel.ts:255

Author-facing shape for a vessel definition. Distinct from Vessel (the branded post-validation shape): definitions accept raw string IDs and variant keys; brands appear after VesselSchema.parse(...).

Use this as the parameter type when accepting a developer-authored vessel (e.g. defineVessel, registerVessel). Use Vessel when working with a vessel that has already crossed the schema boundary.

readonly defaultVariant: string

Defined in: packages/protocol/src/lib/vessel.ts:259


readonly description: string

Defined in: packages/protocol/src/lib/vessel.ts:258


readonly id: string

Defined in: packages/protocol/src/lib/vessel.ts:256


readonly name: string

Defined in: packages/protocol/src/lib/vessel.ts:257


readonly variants: Readonly<Record<string, VesselVariantDefinition>>

Defined in: packages/protocol/src/lib/vessel.ts:260