class · Browser and Node

# StatusRegistry

One signed revocation list per issuer, with id "#status". The caller persists `save()`. The list format is trust-core's StatusListDoc, so trust-core's checkStatus reads it too.

`@toip-tools/mandates` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/status.ts#L15)

Import:

```ts
import { StatusRegistry } from "@toip-tools/mandates";
```

## Constructor

Constructor:

```ts
new (issuer: Identity, clock: Clock, saved?: StatusRegistryState): StatusRegistry;
```

### Parameters

- **`issuer` (required)**: `Identity`
- **`clock` (required)**: `Clock`
- **`saved` (optional)**: `StatusRegistryState | undefined`

### Returns

`StatusRegistry`

## Properties

- **`listId` (required · readonly)**: `string`

## Methods

### `allocate`

Signature:

```ts
allocate(): StatusEntry;
```

No parameters.

#### Returns

`StatusEntry`

### `revoke`

Signature:

```ts
revoke(e: StatusEntry): void;
```

#### Parameters

- **`e` (required)**: `StatusEntry`

#### Returns

`void`

### `isRevoked`

Signature:

```ts
isRevoked(e: StatusEntry): boolean;
```

#### Parameters

- **`e` (required)**: `StatusEntry`

#### Returns

`boolean`

### `sign`

A freshly signed list. Verifiers refuse lists older than a mandate's `revocation.maxAgeSeconds`, so re-sign often.

Signature:

```ts
sign(): StatusListDoc;
```

No parameters.

#### Returns

`StatusListDoc`

### `save`

Signature:

```ts
save(): StatusRegistryState;
```

No parameters.

#### Returns

`StatusRegistryState`

[Usage guide](https://toip.tools/toolkit/mandates/#usage) · [Error handling](https://toip.tools/toolkit/mandates/#errors) · [All exports](https://toip.tools/toolkit/mandates/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mandates/api/StatusRegistry/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
