# Interface: RoleDefinition

Defined in: [packages/core/src/space/roles.ts:232](https://github.com/leifriksheim/minca/blob/main/core/src/space/roles.ts#L232)

One definition of a role: its grants count only as far as its author could invoke them, as of `view`

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-by"></a> `by` | `readonly` | `string` \| `null` | Its author's account; null for the constitution's | [packages/core/src/space/roles.ts:236](https://github.com/leifriksheim/minca/blob/main/core/src/space/roles.ts#L236) |
| <a id="property-event"></a> `event` | `readonly` | `string` | The definition's id; the space id for the constitution's | [packages/core/src/space/roles.ts:234](https://github.com/leifriksheim/minca/blob/main/core/src/space/roles.ts#L234) |
| <a id="property-grants"></a> `grants` | `readonly` | readonly [`SpaceGrant`](https://minca.dev/api/core/interfaces/SpaceGrant.md)[] | - | [packages/core/src/space/roles.ts:238](https://github.com/leifriksheim/minca/blob/main/core/src/space/roles.ts#L238) |
| <a id="property-nests"></a> `nests` | `readonly` | readonly `string`[] | Roles whose grants members of this one hold too | [packages/core/src/space/roles.ts:240](https://github.com/leifriksheim/minca/blob/main/core/src/space/roles.ts#L240) |
| <a id="property-title"></a> `title?` | `readonly` | `string` | - | [packages/core/src/space/roles.ts:237](https://github.com/leifriksheim/minca/blob/main/core/src/space/roles.ts#L237) |
| <a id="property-view"></a> `view` | `readonly` | [`AccessState`](https://minca.dev/api/core/interfaces/AccessState.md) \| `null` | Where its author's power is judged. Null for the constitution's | [packages/core/src/space/roles.ts:242](https://github.com/leifriksheim/minca/blob/main/core/src/space/roles.ts#L242) |
