Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

473 B
Raw Blame
import { z } from "zod";
import { IdSchema } from "./ids.ts";

const count = z.number().int().nonnegative().safe();
export const PageSchema = z.strictObject({
  before: IdSchema.optional(),
  limit: count.positive().max(200).optional(),
});
export const BotPageSchema = PageSchema.extend({ botId: IdSchema.optional() });
const _botId = z.strictObject({ botId: IdSchema });
export type Page = z.infer<typeof PageSchema>;
export type BotPage = z.infer<typeof BotPageSchema>;