---
name: "getTempOnlineUnlimitedList"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "getTempOnlineUnlimitedList - Get the list of online unlimited passwords, applicable to WiFi Photo Lock devices."
summary: "Get the list of online unlimited passwords, applicable to WiFi Photo Lock devices."
---

## getTempOnlineUnlimitedList

> [VERSION] @ray-js/lock-sdk >= 1.0.0

> 💡 This API is for WiFi Pro locks only; do not use it with other locks.

### Description

Get the list of online unlimited-use passwords

### Parameters

None


### Return Value

Type: `Promise<OnlinePasswordItem[]>`

List of online unlimited-use passwords

##### OnlinePasswordItem

| Property | Type | Description |
| --- | --- | --- |
| `status` | `"effective" \| "synchronizing" \| "expired" \| "disabled" \| "invalid"` | Status: effective (active), synchronizing, expired, disabled, invalid |
| `effectiveConfig` | `EffectiveConfig` | Validity configuration |
| `unlockBindingId` | `string` | Password ID |
| `failReason` | `number` | Failure reason |
| `name` | `string` | Password name |
| `phase` | `number` |  |
| `opModeType` | `number` | Password type |
| `opModeSubType` | `number` | Password subtype |
| `sn` | `number` | Password sequence number |
| `opModeInfo` | `Object` | Wipe-code info |

##### OnlinePasswordItem.opModeInfo properties

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `hasClearPwd` | `boolean` | No | - | Is a wipe code |
| `revokedPwdName` | `string` | No | - | Name of the password to wipe |
| `revokedPwdEffectiveTime` | `number` | No | - | Start time of the password to wipe |
| `revokedPwdInvalidTime` | `number` | No | - | End time of the password to wipe |


### 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` | `[0 \| 1, 0 \| 1, 0 \| 1, 0 \| 1, 0 \| 1, 0 \| 1, 0 \| 1]` | Weekly repeat bitmap |
| `effectiveTime` | `number` | Daily start time (minutes) |
| `expiredTime` | `number` | Daily end time (minutes) |

##### `type` Week

Weekly repeat bitmap: indices 0–6 correspond to Sun–Sat; 0 inactive, 1 active

```typescript
export type Week = [
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
  BitStatus,
];
```

##### `type` BitStatus

Bit switch: 0 off, 1 on / Single-bit flag

```typescript
export type BitStatus = 0 | 1;
```


### Examples

#### Example

```ts
import { getTempOnlineUnlimitedList } from '@ray-js/lock-sdk';
const list = getTempOnlineUnlimitedList();
```
