summary refs log tree commit diff
path: root/synapse/rest/__init__.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Correctly mention previous copyright (#16820)Erik Johnston2024-01-231-0/+1
| | | | | During the migration the automated script to update the copyright headers accidentally got rid of some of the existing copyright lines. Reinstate them.
* Merge remote-tracking branch 'gitlab/clokep/license-license' into new_developErik Johnston2023-12-131-11/+16
|\
| * Update license headersPatrick Cloke2023-11-211-11/+16
| |
* | Expose OIDC discovery information under the CSAPI (#16726)David Robertson2023-12-061-0/+2
|/ | | | Co-authored-by: Quentin Gliech <quenting@element.io>
* Add `/notifications` endpoint to workers (#16265)Erik Johnston2023-09-071-1/+1
|
* Remove experimental MSC2716 implementation to incrementally import history ↵Eric Eastwood2023-06-161-2/+0
| | | | | | | | | | | | into existing rooms (#15748) Context for why we're removing the implementation: - https://github.com/matrix-org/matrix-spec-proposals/pull/2716#issuecomment-1487441010 - https://github.com/matrix-org/matrix-spec-proposals/pull/2716#issuecomment-1504262734 Anyone wanting to continue MSC2716, should also address these leftover tasks: https://github.com/matrix-org/synapse/issues/10737 Closes https://github.com/matrix-org/synapse/issues/10737 in the fact that it is not longer necessary to track those things.
* Load `/capabilities` endpoint on workers (#15436)Dirk Klimpel2023-04-141-1/+1
|
* Load `/directory/room/{roomAlias}` endpoint on workers (#15333)Dirk Klimpel2023-04-141-2/+1
| | | | | | | | | * Enable `directory` * move to worker store * newsfile * disable `ClientDirectoryListServer` and `ClientAppserviceDirectoryListServer` for workers
* Load `/password_policy` endpoint on workers. (#15331)Dirk Klimpel2023-03-271-2/+1
|
* Implement MSC2659: application service ping endpoint (#15249)Tulir Asokan2023-03-161-0/+2
| | | Signed-off-by: Tulir Asokan <tulir@maunium.net>
* Add support for knocking to workers. (#15133)Dirk Klimpel2023-03-021-1/+1
|
* Allow use of the `/filter` Client-Server APIs on workers. (#15134)reivilibre2023-02-281-2/+1
|
* Use ClientRestResource on both the main process and workers. (#14528)Patrick Cloke2022-12-021-21/+38
| | | | | | | Add logic to ClientRestResource to decide whether to mount servlets or not based on whether the current process is a worker. This is clearer to see what a worker runs than the completely separate / copy & pasted list of servlets being mounted for workers.
* Implementation of HTTP 307 response for MSC3886 POST endpoint (#14018)Hugh Nimmo-Smith2022-10-181-0/+2
| | | | Co-authored-by: reivilibre <olivier@librepush.net> Co-authored-by: Andrew Morgan <andrewm@element.io>
* Implementation of MSC3882 login token request (#13722)Hugh Nimmo-Smith2022-09-211-0/+2
|
* Remove user-visible groups/communities code (#12553)Patrick Cloke2022-05-251-3/+0
| | | | | | | | | Makes it so that groups/communities no longer exist from a user-POV. E.g. we remove: * All API endpoints (including Client-Server, Server-Server, and admin). * Documented configuration options (and the experimental flag, which is now unused). * Special handling during room upgrades. * The `groups` section of the `/sync` response.
* Rename shared_rooms to mutual_rooms (#12036)Jonathan de Jong2022-03-231-2/+2
| | | Co-authored-by: reivilibre <olivier@librepush.net>
* Deprecate the groups/communities endpoints and add an experimental ↵Patrick Cloke2022-03-121-1/+2
| | | | configuration flag. (#12200)
* Misc typing fixes for `tests`, part 1 of N (#11323)David Robertson2021-11-121-1/+3
| | | | | | | | | | * Annotate HomeserverTestCase.servlets * Correct annotation of federation_auth_origin * Use AnyStr custom_headers instead of a Union This allows (str, str) and (bytes, bytes). This disallows (str, bytes) and (bytes, str) * DomainSpecificString.SIGIL is a ClassVar
* Add missing type hints to non-client REST servlets. (#10817)Patrick Cloke2021-09-151-3/+8
| | | | Including admin, consent, key, synapse, and media. All REST servlets (the synapse.rest module) now require typed method definitions.
* Flatten the synapse.rest.client package (#10600)reivilibre2021-08-171-20/+15
|
* Move /batch_send to /v2_alpha directory (MSC2716) (#10576)Eric Eastwood2021-08-131-0/+2
| | | | | | | * Move /batch_send to /v2_alpha directory As pointed out by @erikjohnston, https://github.com/matrix-org/synapse/pull/10552#discussion_r685836624
* Remove the experimental flag for knocking and use stable prefixes / ↵Patrick Cloke2021-06-151-4/+1
| | | | | | | endpoints. (#10167) * Room version 7 for knocking. * Stable prefixes and endpoints (both client and federation) for knocking. * Removes the experimental configuration flag.
* Implement knock feature (#6739)Sorunome2021-06-091-0/+5
| | | | | | This PR aims to implement the knock feature as proposed in https://github.com/matrix-org/matrix-doc/pull/2403 Signed-off-by: Sorunome mail@sorunome.de Signed-off-by: Andrew Morgan andrewm@element.io
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Show a confirmation page during user password reset (#8004)Andrew Morgan2020-09-101-4/+2
| | | | | This PR adds a confirmation step to resetting your user password between clicking the link in your email and your password actually being reset. This is to better align our password reset flow with the industry standard of requiring a confirmation from the user after email validation.
* Add /user/{user_id}/shared_rooms/ api (#7785)Will Hunt2020-09-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add shared_rooms api * Add changelog * Add . * Wrap response in {"rooms": } * linting * Add unstable_features key * Remove options from isort that aren't part of 5.x `-y` and `-rc` are now default behaviour and no longer exist. `dont-skip` is no longer required https://timothycrosley.github.io/isort/CHANGELOG/#500-penny-july-4-2020 * Update imports to make isort happy * Add changelog * Update tox.ini file with correct invocation * fix linting again for isort * Vendor prefix unstable API * Fix to match spec * import Codes * import Codes * Use FORBIDDEN * Update changelog.d/7785.feature Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Implement get_shared_rooms_for_users * a comma * trailing whitespace * Handle the easy feedback * Switch to using runInteraction * Add tests * Feedback * Seperate unstable endpoint from v2 * Add upgrade node * a line * Fix style by adding a blank line at EOF. * Update synapse/storage/databases/main/user_directory.py Co-authored-by: Tulir Asokan <tulir@maunium.net> * Update synapse/storage/databases/main/user_directory.py Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Update UPGRADE.rst Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Fix UPGRADE/CHANGELOG unstable paths unstable unstable unstable Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Tulir Asokan <tulir@maunium.net> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Tulir Asokan <tulir@maunium.net>
* Allow server admins to define and enforce a password policy (MSC2000). (#7118)Dirk Klimpel2020-03-261-0/+2
|
* Allow Synapse to send registration emails + choose Synapse or an external ↵Andrew Morgan2019-09-061-1/+1
| | | | | | | | | | | | | | | | server to handle 3pid validation (#5987) This is a combination of a few different PRs, finally all being merged into `develop`: * #5875 * #5876 * #5868 (This one added the `/versions` flag but the flag itself was actually [backed out](https://github.com/matrix-org/synapse/commit/891afb57cbdf9867f2848341b29c75d6f35eef5a#diff-e591d42d30690ffb79f63bb726200891) in #5969. What's left is just giving /versions access to the config file, which could be useful in the future) * #5835 * #5969 * #5940 Clients should not actually use the new registration functionality until https://github.com/matrix-org/synapse/pull/5972 is merged. UPGRADE.rst, changelog entries and config file changes should all be reviewed closely before this PR is merged.
* Run Black. (#5482)Amber Brown2019-06-201-0/+1
|
* Add simple send_relation API and track in DBErik Johnston2019-05-151-0/+2
|
* Add admin api for sending server_notices (#5121)Richard van der Hoff2019-05-021-1/+3
|
* Move admin api impl to its own packageRichard van der Hoff2019-05-011-3/+2
| | | | It doesn't really belong under rest/client/v1 any more.
* Move admin API to a new prefixRichard van der Hoff2019-05-011-2/+10
|
* Send out emails with links to extend an account's validity periodBrendan Abolivier2019-04-171-0/+2
|
* register capabilities servletNeil Johnson2019-01-291-0/+2
|
* Remove v1 only REST APIs now we don't ship matrix console (#4334)Amber Brown2018-12-291-11/+0
|
* Basic initial support for room upgradesRichard van der Hoff2018-10-251-0/+2
| | | | | Currently just creates a new, empty, room, and sends a tombstone in the old room.
* make it work and fix pep8Matthew Hodgson2018-08-121-0/+2
|
* Move v1-only APIs into their own module & isolate deprecated ones (#3460)Amber Brown2018-07-191-9/+34
|
* run isortAmber Brown2018-07-091-35/+20
|
* Add local group server supportErik Johnston2017-07-171-0/+2
|
* Add REST APIErik Johnston2017-05-311-0/+2
|
* Finish implementing RM endpointLuke Barnard2017-04-111-0/+2
| | | | | - This change causes a 405 to be sent if "m.read_marker" is set via /account_data - This also fixes-up the RM endpoint so that it actually Works.
* Add store-and-forward direct-to-device messagingMark Haines2016-08-251-0/+2
|
* Merge branch 'develop' into dbkr/notifications_apiMatthew Hodgson2016-08-201-0/+2
|\
| * Initial empty implementation that just registers an API endpoint handlerPaul "LeoNerd" Evans2016-08-171-0/+2
| |
* | Merge remote-tracking branch 'origin/develop' into dbkr/notifications_apiDavid Baker2016-08-111-0/+2
|\|
| * GET /devices endpointRichard van der Hoff2016-07-201-0/+2
| | | | | | | | | | | | | | implement a GET /devices endpoint which lists all of the user's devices. It also returns the last IP where we saw that device, so there is some dancing to fish that out of the user_ips table.
* | Add GET /notifications APIDavid Baker2016-05-231-0/+2
|/
* Add an openidish mechanism for proving to third parties that you own a given ↵Mark Haines2016-05-051-0/+2
| | | | user_id
* Add /report endpointErik Johnston2016-05-041-0/+2
|
* Implement logoutErik Johnston2016-03-111-0/+2
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Add /_matrix/versions to report supported versionsDaniel Wagner-Hall2016-01-061-0/+6
|
* Actually host r0 and unstable prefixesDaniel Wagner-Hall2015-12-081-1/+67
|
* Code style fixes.Mark Haines2015-01-291-1/+1
|
* Merge branch 'develop' into pushersDavid Baker2015-01-221-37/+2
|\ | | | | | | | | Conflicts: synapse/rest/__init__.py
| * Move rest APIs back under the rest directoryMark Haines2015-01-221-0/+14
| |
| * Move client v1 api rest servlets into a "client/v1" directoryMark Haines2015-01-221-47/+0
| |
* | Oops: second part of commit dc938606David Baker2015-01-221-1/+2
| |
* | Merge branch 'develop' into pushersDavid Baker2015-01-131-1/+1
|\|
| * Update copyright noticesMark Haines2015-01-061-1/+1
| |
* | Merge branch 'develop' into pushersDavid Baker2014-12-181-1/+1
|\| | | | | | | | | | | | | Conflicts: synapse/api/errors.py synapse/server.py synapse/storage/__init__.py
| * Kill off synapse.api.events.*Erik Johnston2014-12-161-1/+1
| |
* | Start creating a module to do generic notifications (just prints them to ↵David Baker2014-11-191-1/+2
|/ | | | stdout currently!)
* SYN-48: Implement WHOIS rest servletErik Johnston2014-09-291-1/+3
|
* Add support for TURN servers as per the TURN REST API ↵David Baker2014-09-231-1/+2
| | | | (http://tools.ietf.org/html/draft-uberti-behave-turn-rest-00)
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Renamed /public/rooms to /publicRoomsKegan Dougal2014-08-271-3/+1
|
* Renaming: /im/sync >> /initialSync. /rooms/$roomid/members/list >> ↵Kegan Dougal2014-08-261-2/+3
| | | | /rooms/$roomid/members. /rooms$roomid/messages/list >> /room/$roomid/messages. Updated cmdclient, tests and webclient.
* Make federation use resource_for_federation as well.Kegan Dougal2014-08-141-2/+1
|
* Start phasing out HttpServer: we should be using Resources instead. Added ↵Kegan Dougal2014-08-141-14/+10
| | | | resource_for_client/federation/web_client to the HomeServer and hooked the C-S servlets to operate on resource_for_client. Dynamically construct the Resource tree.
* Added a -w flag which will host the web client if specified. Currently this ↵Kegan Dougal2014-08-131-1/+7
| | | | just delegates to the webclient RestServlet.
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
|
* actually register the login servlet (uncommitted code thinko?)Matthew Hodgson2014-08-131-3/+2
|
* Reference Matrix Home Servermatrix.org2014-08-121-0/+44