getFitPasswordList()
Requires:
@ray-js/lock-sdk≥1.2.0
Description
Get the current accessory's online password list.
Parameters
None
Return Value
Type: Promise<FitPasswordItem[]>
List data
FitPasswordItem
| Property | Type | Description |
|---|---|---|
id | number | Cloud unlock-method record ID (from `unlockBindingId`) |
unlockId | string | Lock-side unlock instance ID (from cloud `devUnlockId`, hexadecimal string) |
unlockName | string | Unlock method name (from cloud `name`) |
photoUnlock | boolean | Whether it is an image-based unlock method; the accessory cloud does not return this field, fixed to `false` |
userName | string | Username the password belongs to |
lockUserId | number | User ID on the lock side |
userType | number | User type: 10 Administrator / 20 Regular member / 30 Unnamed member / 50 Home owner |
devLockId | string | Lock-side ID (hexadecimal string, from cloud `devUnlockId`) |
| Validity settings: effective/expiry time; when repeating weekly, includes `weeks` and per-day time slots |
Referenced Types
interface
EffectiveConfig| Property | Type | Description |
|---|---|---|
effectiveDate | number | Effective date (seconds-level timestamp) |
expiredDate | number | Expiration date (seconds-level timestamp) |
repeat | "none" | "week" | Repeat policy: none or weekly |
weeks | Week | Weekly repeat bitmap |
effectiveTime | number | Daily start time (minutes) |
expiredTime | number | Daily end time (minutes) |
type
WeekWeekly repeat bitmap: indices 0–6 correspond to Sun–Sat; 0 inactive, 1 activeValid Values
EffectiveConfig.repeat
| Value | Description | Since |
|---|---|---|
none | - | - |
week | - | - |
Week
| Value | Description | Since |
|---|---|---|
0 | - | - |
1 | - | - |