@dialstack/sdk-dev / js/src / DeviceUserAssignment
Interface: DeviceUserAssignment
Defined in: sdk/js/src/types/device.ts:212
A user assignment on a device, present on /v1/devices responses fetched
with expand[]=users. On deskphones one assignment exists per assigned
line; on DECT handsets one per extension.
Properties
created_at
created_at: string;
Defined in: sdk/js/src/types/device.ts:233
ISO 8601 timestamp
device?
device?: string;
Defined in: sdk/js/src/types/device.ts:227
ID of the device
device_id
device_id: string;
Defined in: sdk/js/src/types/device.ts:229
Deprecated
Use device. Retained for backwards compatibility.
line_number?
line_number?: number;
Defined in: sdk/js/src/types/device.ts:231
Line number on the device (deskphones; 1-based)
user?
user?:
| string
| {
email?: string | null;
id: string;
name?: string | null;
};
Defined in: sdk/js/src/types/device.ts:217
The assigned user. Expandable: the API returns the user's id string; when eager-loaded (e.g. by the admin BFF) it is the user summary object.
user_id
user_id: string;
Defined in: sdk/js/src/types/device.ts:225
Deprecated
Use user. Retained for backwards compatibility.