import * as z from "zod"; import { Id, RunStatus } from "./ids.js"; export const RunActivityRowSchema = z.object({ runId: Id, botId: Id, botName: z.string(), groupId: Id.nullable(), groupName: z.string().nullable(), threadId: Id, status: RunStatus, trigger: z.enum([ "user", "routine", "resume", "follow_up", "reaction", "spawn", "skill", "bot_message", "webhook", "messaging", "cloud_agent", "delegation", ]), notificationsEnabled: z.boolean(), promptSnippet: z.string(), updatedAt: z.string(), }); export type RunActivityRow = z.infer; export const RunsListOutputSchema = z.object({ runs: z.array(RunActivityRowSchema), }); export type RunsListOutput = z.infer;