Skip to main content

Module media

Module media 

Source
Expand description

Synapse admin API: media endpoints.

ModulesΒ§

delete_media πŸ”’
delete_media_by_date_size πŸ”’
delete_user_media πŸ”’
list_room_media πŸ”’
list_user_media πŸ”’
purge_media_cache πŸ”’
query_media πŸ”’
user_media_statistics πŸ”’

EnumsΒ§

Column πŸ”’
Sort field selector, mapping the wire order_by onto the derivable columns.
SortKey πŸ”’
Sort key for a media row under the requested order_by column.

ConstantsΒ§

MIN_BEFORE_TS πŸ”’
Rejects a before_ts earlier than this, mirroring Synapse’s β€œyear 1970” lower bound on the millisecond cutoff.

FunctionsΒ§

column_of πŸ”’
direction_of πŸ”’
Default direction is newest first (Backward) when the client sets neither order_by nor dir, matching Synapse’s back-compat behaviour.
paginate πŸ”’
select_page πŸ”’
Selects one page of a user’s media, applying the same sort, direction, and windowing as Synapse’s shared list/delete selection.
sort_key πŸ”’
usize_from πŸ”’