Skip to main content

Module devices

Module devices 

Source
Expand description

Synapse admin API: device endpoints.

ModulesΒ§

create_device πŸ”’
delete_device πŸ”’
delete_devices πŸ”’
get_device πŸ”’
list_devices πŸ”’
update_device πŸ”’

FunctionsΒ§

device_response πŸ”’
Map a stored device into the admin API wire shape. Tuwunel keeps no user-agent, so last_seen_user_agent is always absent; dehydrated is present on every device only when the owner has a dehydrated one.
require_local_user πŸ”’
Reject a non-local user with 400 and an absent one with 404, mirroring Synapse’s device servlets.