StructsΒ§
- Unstable
Policy πContent - Lenient deserialiser that accepts either the stable
public_keys: { ed25519: ... }shape or the MSC4284 unstable singularpublic_key: <ed25519>shape, and folds the latter into the former.
EnumsΒ§
- Fetch
Outcome π - Outcome of a
/signround-trip to the policy server. - Policy
Check - Outcome of an inbound policy-server signature check.
- Policy
SigState π - Persisted per-event policy-server outcome in
eventid_policysigstate. Absence of a row means βno prior decision recorded; proceed with/signβ.
ConstantsΒ§
- POLICY_
REFUSAL_ πTTL - UNSTABLE_
POLICY_ πTYPE - MSC4284 unstable state event type. The merged spec stabilised this to
m.room.policy, but the reference policy server (and Elementβs default deployments as of 2026-05) still write the unstable type with the singularpublic_keyfield; reading both keeps the gate live for those rooms.
FunctionsΒ§
- check_
policy_ πsignature - classify_
fetch_ πerror - current_
policy_ πstate - extract_
policy_ πsignature - insert_
policy_ πsignature - is_
policy_ πstate_ event - parse_
rate_ πlimit