forked-synapse/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 Add type hints to synapse._scripts (#11297) 2021-11-10 17:55:32 +00:00
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 Prevent historical state from being pushed to an application service via /transactions (MSC2716) (#11265) 2021-11-18 14:16:08 -06:00
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 Fix perspectives requests for multiple keys for the same server (#11440) 2021-11-29 13:15:36 +00:00
events Bundle relations of relations into the /relations result. (#11284) 2021-11-30 11:33:33 -05:00
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 Add type annotations to synapse.metrics (#10847) 2021-11-17 19:07:02 +00:00
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 Add missing type hints to synapse.app. (#11287) 2021-11-10 15:06:54 -05:00
metrics Add type annotations to synapse.metrics (#10847) 2021-11-17 19:07:02 +00:00
module_api Make background updates controllable via a plugin (#11306) 2021-11-29 17:57:06 +01:00
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 Allow configuration of the oEmbed URLs. (#10714) 2021-08-31 18:37:07 -04:00
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 disallow-untyped-defs for synapse.server_notices (#11021) 2021-10-07 19:55:15 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Add type hints to synapse/storage/databases/main/events_worker.py (#11411) 2021-11-26 18:41:31 +00:00
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 Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
util Clean-up get_version_string (#11468) 2021-12-01 12:43:32 -05:00
__init__.py 1.48.0 2021-11-30 11:24:21 +00:00
event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
notifier.py Fix providing a RoomStreamToken instance to _notify_app_services_ephemeral (#11137) 2021-11-02 10:39:02 +00:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
python_dependencies.py Bump ijson dependency to 3.1 (#11438) (#11439) 2021-11-26 20:51:22 +00:00
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 Misc typing fixes for tests, part 1 of N (#11323) 2021-11-12 15:50:54 +00:00
visibility.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00