VesselActionSchema
constVesselActionSchema:ZodObject<{description:ZodString;effect:ZodDefault<ZodOptional<ZodEnum<{any:"any";idempotent:"idempotent";none:"none"; }>>>;idempotent:ZodOptional<ZodCustom<never,never>>;name:ZodPipe<ZodString,ZodTransform<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,string>>>; },$strip>
Defined in: packages/protocol/src/lib/vessel.ts:44
Brands an Action and defers transition-target existence to VesselSchema.
effect parses to an explicit ActionEffect, 'any' when omitted,
so consumers never branch on undefined. An Action with effect 'none'
must declare transitionsTo and no parameters. See
VesselActionDefinition.effect. An Action that still declares the
removed idempotent flag fails to parse with a migration message.