import * as v from "valibot" import { notionUserSchema } from "../users/user.js" /** * Sent by the host when the viewing user's profile changes while the block is mounted. */ export const currentUserChangedMessageSchema = v.object({ type: v.literal("currentUserChanged"), currentUser: notionUserSchema, }) export type CurrentUserChangedMessage = v.InferOutput< typeof currentUserChangedMessageSchema >