minca
ApiCoreType aliases

Type Alias: CarrierEvent

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

Union Members

Type Literal

{
  type: "spaces";
}

The set of carried spaces changed


Type Literal

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

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


Type Literal

{
  type: "closed";
}

The account stopped using this carrier: forget everything


Type Literal

{
  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.

On this page