DehydratedDeviceSDNApi extension

Endpoints related to MSC3814, dehydrated devices v2 aka shrivelled sessions https://github.com/sdn-org/sdn-spec-proposals/pull/3814

on

Methods

getDehydratedDevice() Future<DehydratedDevice>
fetch a dehydrated device. https://github.com/sdn-org/sdn-spec-proposals/pull/3814
getDehydratedDeviceEvents(String deviceId, {String? from, int limit = 100}) Future<DehydratedDeviceEvents>
fetch events sent to a dehydrated device. https://github.com/sdn-org/sdn-spec-proposals/pull/3814
uploadDehydratedDevice({String? initialDeviceDisplayName, Map<String, dynamic>? deviceData}) Future<String>
uploads a dehydrated device. https://github.com/sdn-org/sdn-spec-proposals/pull/3814
uploadKeysForDevice(String device, {SDNDeviceKeys? deviceKeys, Map<String, dynamic>? oneTimeKeys, Map<String, dynamic>? fallbackKeys}) Future<Map<String, int>>
Publishes end-to-end encryption keys for the specified device. https://github.com/sdn-org/sdn-spec-proposals/pull/3814