import { Modus } from '@getmodus/sdk'
// Reads MODUS_API_KEY from the environment, or pass apiKey explicitly
const client = new Modus()
for await (const scope of (await client.scopes.list()).autoPagingIter()) {
console.log(scope.name, scope.status)
}
const scope = await client.scopes.get('revenue-analysis')
console.log(scope.name, scope.description)
for await (const item of (await client.context.items.list()).autoPagingIter()) {
console.log(item.uid, item.contextType, item.description ?? item.uid)
}