Navigation
Device
A representation of a device information.
Properties
ID
The ID of the device generated by Rupt.
Info
Details containing the type of device and user agent among a few other useful information used to display device icons and help the user recognize the device.
User
The user ID to whom this device is linked.
Status
The status of the device. Possible values:
attached
detached
Created At
The date this device was first added to the system.
Updated At
The date this device was last updated in the system.
Metadata
The latest metadata that was passed in any identify or attach request using this device.
SDK Syntax
const {
id: String,
info: RuptDeviceInfo,
user: User.ID,
status: String,
createdAt: Date,
updatedAt: Date,
metadata: Map<String, String>
} = Device;