Skip to content

MessageSessionSchema

const MessageSessionSchema: Struct<{ build: String; component: String; createdAt: Finite; ephemeral: Boolean; expiresAt: optional<Finite>; id: String; lastInteractionId: optional<String>; message: optional<Struct<{ channelId: optional<String>; guildId: optional<String>; id: String; }>>; props: Unknown; state: optional<$Record<String, Unknown>>; status: Literals<readonly ["pending", "active", "closed"]>; updatedAt: Finite; version: Int; }>

Defined in: packages/core/src/session/schema.ts:29

Everything needed to rebuild one rendered message in another process.

state is the encoded Effect UI model tree from Root.snapshot. props is caller-encoded and must be serialisable when the store is durable.