type alias AccessUser

One shared user, a <User> in <accessUserList>.

Properties

optional
userId: string

The shared user's id, up to 32 bytes; must not be empty.

optional
notes: string

A note about the user, up to 32 bytes; admin replies only.

optional
phoneModel: string

Reply only: the phone model; admin replies only.

optional
userLevel: number

0 or 1.

optional
validHours: number

How many hours access lasts; -1 or a positive number.

optional
loginState: number

Reply only: the user's login state.

optional
ability: number

The granted ability bitmask; must not be 0. Replies write 0 when abilities are off.

optional
userSetState: "delete" | "modify"

Request only: what to do with the user.

Usage

import { type AccessUser } from "protocol/params/mod.ts";