Skip to content

VesselDefinition

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

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:212


readonly description: string

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


readonly id: string

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


readonly name: string

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


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

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