deploy: 1ab35a0a78
This commit is contained in:
@@ -168,6 +168,10 @@ using the module API's <code>register_media_repository_callbacks</code> method.<
|
||||
<p><em>First introduced in Synapse v1.132.0</em></p>
|
||||
<pre><code class="language-python">async def get_media_config_for_user(user_id: str) -> Optional[JsonDict]
|
||||
</code></pre>
|
||||
<p><strong><span style="color:red">
|
||||
Caution: This callback is currently experimental . The method signature or behaviour
|
||||
may change without notice.
|
||||
</span></strong></p>
|
||||
<p>Called when processing a request from a client for the
|
||||
<a href="https://spec.matrix.org/latest/client-server-api/#get_matrixclientv1mediaconfig">media config endpoint</a>.</p>
|
||||
<p>The arguments passed to this callback are:</p>
|
||||
@@ -185,6 +189,10 @@ any of the subsequent implementations of this callback.</p>
|
||||
<p><em>First introduced in Synapse v1.132.0</em></p>
|
||||
<pre><code class="language-python">async def is_user_allowed_to_upload_media_of_size(user_id: str, size: int) -> bool
|
||||
</code></pre>
|
||||
<p><strong><span style="color:red">
|
||||
Caution: This callback is currently experimental . The method signature or behaviour
|
||||
may change without notice.
|
||||
</span></strong></p>
|
||||
<p>Called before media is accepted for upload from a user, in case the module needs to
|
||||
enforce a different limit for the particular user.</p>
|
||||
<p>The arguments passed to this callback are:</p>
|
||||
|
||||
@@ -168,6 +168,10 @@ Synapse is running. Ratelimit callbacks can be registered using the module API's
|
||||
<p><em>First introduced in Synapse v1.132.0</em></p>
|
||||
<pre><code class="language-python">async def get_ratelimit_override_for_user(user: str, limiter_name: str) -> Optional[synapse.module_api.RatelimitOverride]
|
||||
</code></pre>
|
||||
<p><strong><span style="color:red">
|
||||
Caution: This callback is currently experimental . The method signature or behaviour
|
||||
may change without notice.
|
||||
</span></strong></p>
|
||||
<p>Called when constructing a ratelimiter of a particular type for a user. The module can
|
||||
return a <code>messages_per_second</code> and <code>burst_count</code> to be used, or <code>None</code> if
|
||||
the default settings are adequate. The user is represented by their Matrix user ID
|
||||
|
||||
@@ -386,6 +386,10 @@ this callback.</p>
|
||||
<p><em>First introduced in Synapse v1.132.0</em></p>
|
||||
<pre><code class="language-python">async def user_may_send_state_event(user_id: str, room_id: str, event_type: str, state_key: str, content: JsonDict) -> Union["synapse.module_api.NOT_SPAM", "synapse.module_api.errors.Codes"]
|
||||
</code></pre>
|
||||
<p><strong><span style="color:red">
|
||||
Caution: This callback is currently experimental . The method signature or behaviour
|
||||
may change without notice.
|
||||
</span></strong></p>
|
||||
<p>Called when processing a request to <a href="https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3roomsroomidstateeventtypestatekey">send state events</a> to a room.</p>
|
||||
<p>The arguments passed to this callback are:</p>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user