# VesselActionSchema
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/variables/vesselactionschema/
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.

> `const` **VesselActionSchema**: `ZodObject`<{ `description`: `ZodString`; `effect`: `ZodDefault`<`ZodOptional`<`ZodEnum`<{ `any`: `"any"`; `idempotent`: `"idempotent"`; `none`: `"none"`; }>>>; `idempotent`: `ZodOptional`<`ZodCustom`<`never`, `never`\>>; `name`: `ZodPipe`<`ZodString`, `ZodTransform`<[`ActionName`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/actionname/), `string`\>>; `parameters`: `ZodOptional`<`ZodArray`<`ZodObject`<{ `defaultValue`: `ZodOptional`<`ZodUnknown`\>; `description`: `ZodString`; `enum`: `ZodOptional`<`ZodArray`<`ZodUnknown`\>>; `name`: `ZodString`; `required`: `ZodOptional`<`ZodBoolean`\>; `type`: `ZodEnum`<{ `boolean`: `"boolean"`; `number`: `"number"`; `object`: `"object"`; `string`: `"string"`; }>; }, `$strip`\>>>; `transitionsTo`: `ZodOptional`<`ZodPipe`<`ZodString`, `ZodTransform`<[`VariantName`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/variantname/), `string`\>>>; }, `$strip`\>

Defined in: [packages/protocol/src/lib/vessel.ts:44](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/vessel.ts#L44)

Brands an Action and defers transition-target existence to [VesselSchema](https://docs.maelstrom-ai.co/dev/reference/protocol/variables/vesselschema/).

`effect` parses to an explicit [ActionEffect](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/actioneffect/), `'any'` when omitted, so consumers never branch on `undefined`. An Action with effect `'none'` must declare `transitionsTo` and no parameters. See [VesselActionDefinition.effect](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/vesselactiondefinition/#effect). An Action that still declares the removed `idempotent` flag fails to parse with a migration message.
