Skip to main content

@dialstack/sdk-dev / js/src / DeviceUserAssignment

Interface: DeviceUserAssignment

Defined in: sdk/js/src/types/device.ts:146

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​

TypeScript
created_at: string;

Defined in: sdk/js/src/types/device.ts:167

ISO 8601 timestamp


device?​

TypeScript
optional device?: string;

Defined in: sdk/js/src/types/device.ts:161

TypeID of the device


device_id​

TypeScript
device_id: string;

Defined in: sdk/js/src/types/device.ts:163

Deprecated​

Use device. Retained for backwards compatibility.


line_number?​

TypeScript
optional line_number?: number;

Defined in: sdk/js/src/types/device.ts:165

Line number on the device (deskphones; 1-based)


user?​

TypeScript
optional user?:
| string
| {
email?: string | null;
id: string;
name?: string | null;
};

Defined in: sdk/js/src/types/device.ts:151

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​

TypeScript
user_id: string;

Defined in: sdk/js/src/types/device.ts:159

Deprecated​

Use user. Retained for backwards compatibility.