Skip to content

Function: buildCard()

buildCard(spec, signal?): Promise<{ card: { $schema: string; actions?: Record<string, unknown>[]; body: Record<string, unknown>[]; type: "AdaptiveCard"; version: string; }; title: string; }>

Compile a card spec into an Adaptive Card document, stamped with the runtime’s resolved card version. Runs through the shared executor so a build picks up the app’s telemetry / timeout chain.

object[] = ...

object[] = ...

string = ...

string = ...

string = ...

AbortSignal

Promise<{ card: { $schema: string; actions?: Record<string, unknown>[]; body: Record<string, unknown>[]; type: "AdaptiveCard"; version: string; }; title: string; }>