Skip to main content

@dialstack/sdk-dev / server/src / DeviceUserConflictResponse

Interface: DeviceUserConflictResponse

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

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/server/src/index.ts:1295


error

TypeScript
error: string;

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


existing_device?

TypeScript
optional existing_device?: string;

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

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