Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/channels / / ChannelAccessDecision
Type Alias: ChannelAccessDecision
ts
type ChannelAccessDecision =
| {
kind: "allow";
}
| {
kind: "deny";
reason: "disabled" | "not-allowlisted" | "pairing-limit";
}
| {
code: string;
expiresAt: string;
issued: boolean;
kind: "pairing-challenge";
};Defined in: packages/channels/src/access.ts:78
Outcome of an access check.
'allow'- proceed to routing.'deny'- drop the message (reasonsays why).'pairing-challenge'- the peer is unpaired;codeis the (new or still-pending) pairing code.issuedis true only when THIS check created the code - render the challenge to the peer once, not on every message.