# Function: sealDirect()

```ts
function sealDirect(
   spaceId, 
   from, 
   to, 
   content, 
   memberKeys
): Promise<DirectBody>;
```

Defined in: [packages/core/src/privacy/direct.ts:51](https://github.com/leifriksheim/minca/blob/main/core/src/privacy/direct.ts#L51)

Seals text for some members of a space and for its writer.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `spaceId` | `string` | - |
| `from` | `string` | - |
| `to` | readonly `string`[] | - |
| `content` | [`DirectContent`](https://minca.dev/api/core/interfaces/DirectContent.md) | - |
| `memberKeys` | `ReadonlyMap`\<`string`, `string`\> | Each reader's member key (`sys.memberkey`), by account — the writer's too |

## Returns

`Promise`\<[`DirectBody`](https://minca.dev/api/core/interfaces/DirectBody.md)\>

## Throws

When someone it is for has no member key here yet
