import client from '../client' ; import { AxiosRequestConfig } from 'axios' ; interface SpaceFilter { withArchived : boolean ; userIsMember : boolean ; } export async function spaceFindMany ( opts , context ) { const { filter } = opts || { } ; let params = { } ; if ( filter ) { params = { ... filter } ; } const res = await client . get ( '/spaces' , { ... context , params } ) ; return res ?. data ?. data ; }