# Type Alias: CarrierEvent

```ts
type CarrierEvent = 
  | {
  type: "spaces";
}
  | {
  space: string;
  type: "status";
}
  | {
  type: "closed";
}
  | {
  record: {
     collection: string;
     createdAt: string;
     key: string;
  };
  space: {
     id: string;
     name: string;
  };
  type: "wake";
  wake: WakeView;
};
```

Defined in: [packages/core/src/node/carrier.ts:79](https://github.com/leifriksheim/minca/blob/main/core/src/node/carrier.ts#L79)

## Union Members

### Type Literal

```ts
{
  type: "spaces";
}
```

The set of carried spaces changed

***

### Type Literal

```ts
{
  space: string;
  type: "status";
}
```

Records arrived, or peers came and went, in a space

***

### Type Literal

```ts
{
  type: "closed";
}
```

The account stopped using this carrier: forget everything

***

### Type Literal

```ts
{
  record: {
     collection: string;
     createdAt: string;
     key: string;
  };
  space: {
     id: string;
     name: string;
  };
  type: "wake";
  wake: WakeView;
}
```

A record arrived that one of the account's wakes asks about. Only what
the carrier can see: which wake, which space, which record.
