export type DeleteApiV1FoldersIdSharesGroupsGroupIdArgs = {id: number, groupId: number}; export type DeleteApiV1FoldersIdSharesGroupsGroupIdOptions = {baseUrl?: string | undefined, ApiKey?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete Folder Group Collaborator * * DELETE /v1/folders/{id}/shares/groups/{groupId} * * Also accepts auth: OAuth2 */ export const deleteApiV1FoldersIdSharesGroupsGroupId = async (args: DeleteApiV1FoldersIdSharesGroupsGroupIdArgs, options?: DeleteApiV1FoldersIdSharesGroupsGroupIdOptions) => { const {baseUrl = "https://api.lucid.co", fetch: fetchFn = fetch, ApiKey} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (ApiKey !== undefined) headers.set('authorization', `Bearer ${ApiKey}`) const url = `${baseUrl.replace(/\/+$/, '')}/v1/folders/${encodeURIComponent(String(args.id))}/shares/groups/${encodeURIComponent(String(args.groupId))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };