interface · Browser and Node

# Action

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

Import:

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

## Declaration

interface:

```ts
interface Action {
  type: string;
  profile: string;
  id: string;
  /** The DID that acts: the leaf mandate's subject. */
  actor: string;
  at: string;
  attrs: Record<string, AttrValue> & { spend: Units };
}
```

## Properties

**`type` (required)**

`string`

**`profile` (required)**

`string`

**`id` (required)**

`string`

**`actor` (required)**

`string`

The DID that acts: the leaf mandate's subject.

**`at` (required)**

`string`

**`attrs` (required)**

`Record<string, AttrValue> & { spend: Units; }`

[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/Action/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
