summary refs log tree commit diff
path: root/synapse/module_api/errors.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Uniformize spam-checker API, part 2: check_event_for_spam (#12808)David Teller2022-05-231-0/+2
| | | Signed-off-by: David Teller <davidt@element.io>
* Add a module API to allow modules to edit push rule actions (#12406)Brendan Abolivier2022-04-271-0/+4
| | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Mark Module API error imports as re-exported and mark Synapse as containing ↵reivilibre2021-10-131-2/+9
| | | | type annotations (#11054)
* Add a module type for account validity (#9884)Brendan Abolivier2021-07-161-1/+5
| | | | | This adds an API for third-party plugin modules to implement account validity, so they can provide this feature instead of Synapse. The module implementing the current behaviour for this feature can be found at https://github.com/matrix-org/synapse-email-account-validity. To allow for a smooth transition between the current feature and the new module, hooks have been added to the existing account validity endpoints to allow their behaviours to be overridden by a module.
* Standardise the module interface (#10062)Brendan Abolivier2021-06-181-0/+1
| | | This PR adds a common configuration section for all modules (see docs). These modules are then loaded at startup by the homeserver. Modules register their hooks and web resources using the new `register_[...]_callbacks` and `register_web_resource` methods of the module API.
* 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>`
* Cleanups and additions to the module APIRichard van der Hoff2020-01-121-0/+18
Add some useful things, such as error types and logcontext handling, to the API. Make `hs` a private member to dissuade people from using it (hopefully they aren't already). Add a couple of new methods (`record_user_external_id` and `generate_short_term_login_token`).