# VesselDefinition
Source: https://docs.maelstrom-ai.co/0.2/reference/protocol/interfaces/vesseldefinition/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

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

Author-facing shape for a vessel definition. Distinct from [Vessel](https://docs.maelstrom-ai.co/0.2/reference/protocol/type-aliases/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](https://docs.maelstrom-ai.co/0.2/reference/protocol/type-aliases/vessel/) when working with a vessel that has already crossed the schema boundary.

## Properties

### defaultVariant

> `readonly` **defaultVariant**: `string`

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

* * *

### description

> `readonly` **description**: `string`

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

* * *

### id

> `readonly` **id**: `string`

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

* * *

### name

> `readonly` **name**: `string`

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

* * *

### variants

> `readonly` **variants**: `Readonly`<`Record`<`string`, [`VesselVariantDefinition`](https://docs.maelstrom-ai.co/0.2/reference/protocol/interfaces/vesselvariantdefinition/)\>>

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