import { l } from '@atproto/lex'; import * as TeamDefs from '../team/defs.defs.js'; declare const $nsid = "tools.ozone.queue.defs"; export { $nsid }; type QueueView = { $type?: 'tools.ozone.queue.defs#queueView'; /** * Queue ID */ id: number; /** * Display name of the queue */ name: string; /** * Subject types this queue accepts. */ subjectTypes: ('account' | 'record' | 'message' | l.UnknownString)[]; /** * Collection name for record subjects (e.g., 'app.bsky.feed.post') */ collection?: l.NsidString; /** * Report reason types this queue accepts (fully qualified NSIDs) */ reportTypes: string[]; /** * Optional description of the queue */ description?: string; /** * DID of moderator who created this queue */ createdBy: l.DidString; createdAt: l.DatetimeString; updatedAt: l.DatetimeString; /** * Whether this queue is currently active */ enabled: boolean; /** * When the queue was deleted, if applicable */ deletedAt?: l.DatetimeString; /** * Statistics about this queue */ stats: QueueStats; }; export type { QueueView }; declare const queueView: l.TypedObjectSchema<"tools.ozone.queue.defs#queueView", l.Validator>; export { queueView }; type QueueStats = { $type?: 'tools.ozone.queue.defs#queueStats'; /** * Number of reports in 'open' status */ pendingCount?: number; /** * Number of reports in 'closed' status */ actionedCount?: number; /** * Number of reports in 'escalated' status */ escalatedCount?: number; /** * Reports received in this queue in the last 24 hours. */ inboundCount?: number; /** * Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0. */ actionRate?: number; /** * Average time in seconds from report creation to close, for reports closed in this period. */ avgHandlingTimeSec?: number; /** * When these statistics were last computed */ lastUpdated?: l.DatetimeString; }; export type { QueueStats }; declare const queueStats: l.TypedObjectSchema<"tools.ozone.queue.defs#queueStats", l.Validator>; export { queueStats }; type AssignmentView = { $type?: 'tools.ozone.queue.defs#assignmentView'; id: number; did: l.DidString; /** * The moderator assigned to this queue */ moderator?: TeamDefs.Member; queue: QueueView; startAt: l.DatetimeString; endAt?: l.DatetimeString; }; export type { AssignmentView }; declare const assignmentView: l.TypedObjectSchema<"tools.ozone.queue.defs#assignmentView", l.Validator>; export { assignmentView }; //# sourceMappingURL=defs.defs.d.ts.map