The concrete device type for this repository (e.g. OathDevice, BoundDevice).
Deletes a device from the server.
The device to delete. The id field is used for lookup.
A promise resolving to the deleted device.
DeviceClientError when the device does not exist.
Fetches all devices of this kind for the active user.
A promise resolving to an array of devices. Returns an empty array when the user has no devices of this kind.
DeviceClientError on connectivity failures or expired tokens.
Updates a device on the server.
The device with the updated field(s).
A promise resolving to the server's acknowledged copy of the device.
DeviceClientError on not-found or validation errors.
Repository operations for a single device kind.
Remarks
Mirrors the native
DeviceRepository<T>protocol (iOS) / interface (Android). Each DeviceClient property (oath,push,bound,profile,webAuthn) exposes aDeviceRepositoryinstance parameterised with the appropriate device type.Example