MatrixSynapse/synapse
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
..
_scripts
api Annotate string constants in `synapse.api.constants` with `Final` (#11356) 2021-11-25 16:14:23 +00:00
app Additional type hints for config module. (#11465) 2021-12-01 07:28:23 -05:00
appservice
config 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
crypto
events
federation 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
groups
handlers 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
http 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
logging
metrics
module_api
push Improved push typing (#11409) 2021-11-30 11:49:20 +00:00
replication Add type hints to `synapse/storage/databases/main/events_worker.py` (#11411) 2021-11-26 18:41:31 +00:00
res
rest 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
server_notices
spam_checker_api
state
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage 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
streams
util Clean-up get_version_string (#11468) 2021-12-01 12:43:32 -05:00
__init__.py
event_auth.py
notifier.py
py.typed
python_dependencies.py
server.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
types.py
visibility.py