mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 20:09:02 -05:00
Support for MSC3758: exact_event_match push condition (#14964)
This specifies to search for an exact value match, instead of string globbing. It only works across non-compound JSON values (null, boolean, integer, and strings).
This commit is contained in:
parent
cf5233b783
commit
14be78d492
9 changed files with 356 additions and 41 deletions
|
|
@ -69,6 +69,8 @@ StateMap = Mapping[StateKey, T]
|
|||
MutableStateMap = MutableMapping[StateKey, T]
|
||||
|
||||
# JSON types. These could be made stronger, but will do for now.
|
||||
# A "simple" (canonical) JSON value.
|
||||
SimpleJsonValue = Optional[Union[str, int, bool]]
|
||||
# A JSON-serialisable dict.
|
||||
JsonDict = Dict[str, Any]
|
||||
# A JSON-serialisable mapping; roughly speaking an immutable JSONDict.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue