@dialstack/sdk-dev / server/src / DeviceUserConflictResponse
Interface: DeviceUserConflictResponse
Defined in: sdk/server/src/index.ts:1350
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:1352
error
TypeScript
error: string;
Defined in: sdk/server/src/index.ts:1351
existing_device?
TypeScript
optional existing_device?: string;
Defined in: sdk/server/src/index.ts:1360
The device the user is already on. Present on user_already_has_device.