forked-synapse/synapse/http
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
..
federation Additional type hints for the proxy agent and SRV resolver modules. (#10608) 2021-08-18 13:53:20 -04:00
__init__.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
additional_resource.py Additional type hints for the proxy agent and SRV resolver modules. (#10608) 2021-08-18 13:53:20 -04:00
client.py Relax ignore-missing-imports for modules that have stubs now and update mypy (#11006) 2021-10-08 14:49:41 +01:00
connectproxyclient.py Type hints for the remaining two files in synapse.http. (#11164) 2021-10-28 14:14:42 +01:00
matrixfederationclient.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
proxyagent.py Additional type hints for the proxy agent and SRV resolver modules. (#10608) 2021-08-18 13:53:20 -04:00
request_metrics.py Type hints for the remaining two files in synapse.http. (#11164) 2021-10-28 14:14:42 +01:00
server.py Add more type hints to synapse.util. (#11321) 2021-11-12 13:43:06 +00:00
servlet.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
site.py Add reactor to SynapseRequest and fix up types. (#10868) 2021-09-24 11:01:25 +01:00