# Interface: Space

Defined in: [packages/core/src/types.ts:211](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L211)

A space: its constitution, and the constitution's hash as its id
(`space/constitution.ts`). Everything here is fixed at creation, its name
included, so whoever hands a space on can change nothing about it.

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-assigned"></a> `assigned?` | `readonly` | `Readonly`\<`Record`\<`string`, readonly `string`[]\>\> | Roles the constitution assigns: account → role names. Absent when it assigns none | [packages/core/src/types.ts:224](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L224) |
| <a id="property-createdat"></a> `createdAt` | `readonly` | `string` | - | [packages/core/src/types.ts:227](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L227) |
| <a id="property-encryptionkeyid"></a> `encryptionKeyId?` | `readonly` | `string` | - | [packages/core/src/types.ts:232](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L232) |
| <a id="property-id"></a> `id` | `readonly` | `string` | - | [packages/core/src/types.ts:212](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L212) |
| <a id="property-minca"></a> `minca` | `readonly` | `"constitution/1"` | The constitution's format: `constitution/1` | [packages/core/src/types.ts:214](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L214) |
| <a id="property-name"></a> `name` | `readonly` | `string` | - | [packages/core/src/types.ts:215](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L215) |
| <a id="property-nonce"></a> `nonce` | `readonly` | `string` | Random, so two spaces made alike still differ | [packages/core/src/types.ts:229](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L229) |
| <a id="property-readkey"></a> `readKey?` | `readonly` | `string` | Private spaces: the public half of the read key, derived from the space key — what a node checks a reader against | [packages/core/src/types.ts:231](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L231) |
| <a id="property-resolver"></a> `resolver` | `readonly` | `string` | How changes made apart resolve: `strong-remove/1` | [packages/core/src/types.ts:218](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L218) |
| <a id="property-roles"></a> `roles` | `readonly` | readonly [`SpaceRole`](https://minca.dev/api/core/interfaces/SpaceRole.md)[] | The roles it was founded with, the constitution's grants — later redefined by records in `sys.role` | [packages/core/src/types.ts:222](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L222) |
| <a id="property-succeeds"></a> `succeeds?` | `readonly` | `string` | The space this one succeeds, when it was started as a successor | [packages/core/src/types.ts:226](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L226) |
| <a id="property-top"></a> `top` | `readonly` | [`SpaceTop`](https://minca.dev/api/core/type-aliases/SpaceTop.md) | Its founders, or `none` | [packages/core/src/types.ts:220](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L220) |
| <a id="property-visibility"></a> `visibility` | `readonly` | [`SpaceVisibility`](https://minca.dev/api/core/type-aliases/SpaceVisibility.md) | - | [packages/core/src/types.ts:216](https://github.com/leifriksheim/minca/blob/main/core/src/types.ts#L216) |
