import { AtpAgent } from "@atproto/api"; export const getAllAppeals = async (agent: AtpAgent) => { let appeals: any[] = []; // Y U NO LET ME IMPORT TYPEDEF DENO???? let cursor; do { const { data } = await agent.tools.ozone.moderation.queryStatuses({ limit: 100, includeMuted: false, appealed: true, sortField: "lastReportedAt", sortDirection: "desc", cursor, }); if (!data.subjectStatuses.length) break; cursor = data.cursor; appeals = appeals.concat(data.subjectStatuses); } while (cursor); return appeals; };