MatrixSynapse/synapse/config
Eric Eastwood a6f1a3abec
Add MSC3030 experimental client and federation API endpoints to get the closest event to a given timestamp (#9445)
MSC3030: https://github.com/matrix-org/matrix-doc/pull/3030

Client API endpoint. This will also go and fetch from the federation API endpoint if unable to find an event locally or we found an extremity with possibly a closer event we don't know about.
```
GET /_matrix/client/unstable/org.matrix.msc3030/rooms/<roomID>/timestamp_to_event?ts=<timestamp>&dir=<direction>
{
    "event_id": ...
    "origin_server_ts": ...
}
```

Federation API endpoint:
```
GET /_matrix/federation/unstable/org.matrix.msc3030/timestamp_to_event/<roomID>?ts=<timestamp>&dir=<direction>
{
    "event_id": ...
    "origin_server_ts": ...
}
```

Co-authored-by: Erik Johnston <erik@matrix.org>
2021-12-02 01:02:20 -06:00
..
__init__.py
__main__.py
_base.py
_base.pyi
_util.py
account_validity.py
api.py
appservice.py
auth.py
cache.py
captcha.py
cas.py
consent.py
database.py
emailconfig.py
experimental.py Add MSC3030 experimental client and federation API endpoints to get the closest event to a given timestamp (#9445) 2021-12-02 01:02:20 -06:00
federation.py
groups.py
homeserver.py
jwt.py
key.py
logger.py
metrics.py
modules.py
oembed.py
oidc.py
password_auth_providers.py
push.py
ratelimiting.py
redis.py
registration.py
repository.py
retention.py
room.py
room_directory.py
saml2.py
server.py
server_notices.py
spam_checker.py
sso.py
stats.py
third_party_event_rules.py
tls.py
tracer.py
user_directory.py
voip.py
workers.py