Skip to content
providerkit
GitHub

RequestResponse

type RequestResponse =
| {
arguments?: Record<string, unknown>;
data?: unknown;
type: "approve";
}
| {
data?: unknown;
message?: string;
type: "deny";
}
| {
answer: QuestionAnswer;
type: "answer";
}
| {
type: "result";
value: unknown;
}
| {
type: "cancel";
}
| {
type: "stop";
};

Defined in: react/src/requests.ts:11

Evidence only. The server authenticates, validates and resolves it against its saved request.