Skip to content

Variable: adaptiveCardSchema

const adaptiveCardSchema: ZodObject<{ $schema: ZodString; actions: ZodOptional<ZodArray<ZodRecord<ZodString, ZodUnknown>>>; body: ZodArray<ZodRecord<ZodString, ZodUnknown>>; type: ZodLiteral<"AdaptiveCard">; version: ZodString; }, $strip>

The compiled Adaptive Card document - the JSON the adaptivecards renderer consumes. Typed loosely (elements / actions as record arrays) because the full Adaptive Card schema is large and host-versioned; the builder owns the exact element shapes and this contract only pins the envelope every consumer relies on (type, version, body).