Skip to content

Function: buildAdaptiveCard()

buildAdaptiveCard(spec): object

Compile a semantic card spec into a full Adaptive Card document. The result validates against card.adaptiveCardSchema and is ready to render with the adaptivecards package or post to a Teams incoming webhook.

object[] = ...

object[] = ...

string = ...

string = ...

string = ...

object

$schema: string

optional actions?: Record<string, unknown>[]

body: Record<string, unknown>[]

type: "AdaptiveCard"

version: string