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.

381 B
Raw Blame
import { z } from "zod";

/** SecretStore payload only. No public RPC returns this shape. */
export const CredentialTotpSecretSchema = z.strictObject({
  secret: z
    .string()
    .min(16)
    .max(1024)
    .regex(/^[A-Z2-7]+$/),
  algorithm: z.enum(["SHA1", "SHA256", "SHA512"]),
  digits: z.union([z.literal(6), z.literal(8)]),
  period: z.number().int().min(1).max(300),
});