import { callWorker } from './workerClient'; import type { ChannelInfo } from './types'; import type { ParsedChannelLink } from '@/lib/channelLink'; import type { MemberBody } from './generated/api'; const apiBase = import.meta.env.VITE_WEBDROP_API_URL ?? '/api/v1'; export type ChannelMember = MemberBody; export const channelAccessApi = { members: (id: string) => callWorker('channelMembers', { id, apiBase }), preview: (link: ParsedChannelLink) => callWorker('previewChannel', { link, apiBase }), };