Skip to content

interaction.respond

Answers an interactive request; already_resolved if another client answered first.

/** `interaction.respond` params (DMN-051). */
export type RespondParams = {
interactionId: string;
response: InteractionResponse;
threadId: string;
};
/** No params, or the `{}` result. */
export type Empty = Record<string, never>;
/** Answer to an interactive request: exactly one of `value`, `confirmed`, `cancelled` (always true), `answers` or `data`. */
export type InteractionResponse =
| {
value: string;
}
| {
confirmed: boolean;
}
| {
cancelled: true;
}
| {
answers: unknown[];
}
| {
data: Record<string, unknown>;
};