Skip to main content

@dialstack/sdk / server / DeviceUserConflictResponse

Interface: DeviceUserConflictResponse

Defined in: sdk/src/server/index.ts:1276

409 body for an assignment that violates the at-most-one-device-per-user rule. code is stable, so branch on it rather than string-matching error.

Properties

code

TypeScript
code:
| "user_already_assigned"
| "user_already_has_device"
| "user_already_has_endpoint"
| "handset_already_assigned"
| "device_full"
| "base_full";

Defined in: sdk/src/server/index.ts:1278


error

TypeScript
error: string;

Defined in: sdk/src/server/index.ts:1277


existing_device?

TypeScript
optional existing_device?: string;

Defined in: sdk/src/server/index.ts:1286

The device the user is already on. Present on user_already_has_device.