updateDevice: (
userId: string,
existingDeviceName: string,
newDeviceName: string,
userContext?: Record<string, any>,
) => Promise<
{
status: "OK"
| "DEVICE_ALREADY_EXISTS_ERROR"
| "UNKNOWN_DEVICE_ERROR";
},
> = Wrapper.updateDevice
Type declaration
- (
userId: string,
existingDeviceName: string,
newDeviceName: string,
userContext?: Record<string, any>,
): Promise<
{
status: "OK"
| "DEVICE_ALREADY_EXISTS_ERROR"
| "UNKNOWN_DEVICE_ERROR";
},
> Parameters
- userId: string
- existingDeviceName: string
- newDeviceName: string
Optional
userContext: Record<string, any>
Returns Promise<
{
status: "OK"
| "DEVICE_ALREADY_EXISTS_ERROR"
| "UNKNOWN_DEVICE_ERROR";
},
>