Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

599 B
Raw Blame
import { z } from 'zod';

export const telegramConfigSchema = z.object({
  token: z.string().optional().default(''),
  chatId: z.string().optional().default('')
});

export const telegramTestSchema = z.object({
  message: z.string().optional()
});

export const telegramMethodSchema = z.object({
  method: z.enum(['manual', 'mcp-bridge'])
});

// PUT /api/telegram/forward-types — the set of notification types forwarded to
// Telegram. An array of type-name strings (empty array clears all forwarding).
export const telegramForwardTypesSchema = z.object({
  forwardTypes: z.array(z.string())
});