// expect: sesionID // A misspelled field in a typed call: `client` types each operation's input with the generated client's // fields, so the checker refuses `sesionID` in `session.inbox.list`'s input. import { client } from "opencode:plugin" export async function count(id: string): Promise { const items = await client.session.inbox.list({ sesionID: id }) return items.length }