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>

Available on SDNApi, provided by the DehydratedDeviceSDNApi extension

fetch a dehydrated device. https://github.com/sdn-org/sdn-spec-proposals/pull/3814
getDehydratedDeviceEvents(String deviceId, {String? from, int limit = 100}) Future<DehydratedDeviceEvents>

Available on SDNApi, provided by the DehydratedDeviceSDNApi extension

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>

Available on SDNApi, provided by the DehydratedDeviceSDNApi extension

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>>

Available on SDNApi, provided by the DehydratedDeviceSDNApi extension

Publishes end-to-end encryption keys for the specified device. https://github.com/sdn-org/sdn-spec-proposals/pull/3814