Skip to content

UpdateReasonSchema

const UpdateReasonSchema: ZodDiscriminatedUnion<[ZodObject<{ intent: ZodString; type: ZodLiteral<"user_intent">; }, $strip>, ZodObject<{ current: ZodObject<{ columns: ZodNumber; rows: ZodNumber; }, $strip>; previous: ZodObject<{ columns: ZodNumber; rows: ZodNumber; }, $strip>; type: ZodLiteral<"chart_resize">; }, $strip>, ZodObject<{ changes: ZodString; instanceId: ZodPipe<ZodString, ZodTransform<InstanceId, string>>; type: ZodLiteral<"vessel_mutation">; }, $strip>], "type">

Defined in: packages/protocol/src/lib/request.ts:100

Wire-format Zod parser for UpdateReason, discriminated on type. Used by ChartRequestSchema for context.updateReasons.