getTempOfflineEffectiveList
Requires:
@ray-js/lock-sdk≥1.0.0
Method signature
getTempOfflineEffectiveList(pwdTypeCode: "once" | "multiple" | "clear_one" | "clear_all")Description
Get the list of valid offline passwords
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pwdTypeCode | "once" | "multiple" | "clear_one" | "clear_all" | Yes | Offline password type |
Return Value
Type: Promise<EffectivePasswrodItem[]>
List
EffectivePasswrodItem
| Property | Type | Description |
|---|---|---|
effective | number | Whether valid: 1 valid, 0 invalid |
unlockBindingId | string | Cloud unlock method record ID |
effectiveTime | number | Effective time (Unix timestamp in seconds) |
failReason | number | Invalidation reason code; 0 indicates no reason |
invalidTime | number | Expiration time (Unix timestamp in seconds) |
name | string | Password name |
phase | number | Status: 1 Normal, 2 Pending confirmation, 3 Frozen, 10 Pending addition |
| Validity cycle details; when repeating weekly, each item describes a time period | ||
opModeType | number | Unlock method type |
opModeSubType | number | Unlock method subtype; in the temporary password scenario, carries semantics such as available uses |
sn | number | Password index on the lock |
| Additional info for the clear code (only issued for clear-code type) | ||
availTime | number | Available uses; omitted means unlimited |
timeSetType | number | Validity type: 0 single-use, 10 permanent, 20 start-end, 30 recurring |
| Sharing info (issued for virtual key/share records) |
Valid Values
pwdTypeCode
| Value | Description | Since |
|---|---|---|
once | - | - |
multiple | - | - |
clear_one | - | - |
clear_all | - | - |