Files
bot/adapters/fluxer/src/config/config.schema.ts
2026-02-17 19:28:23 +01:00

21 lines
524 B
TypeScript

import {
TextChannels,
VoiceChannels,
} from "@avocadi/bot-core/entities/channels/channels.schema";
import { Roles } from "@avocadi/bot-core/entities/roles/roles.schema";
import z from "zod";
export const ConfigSchema = z.object({
channelMapping: z.object({
text: z.record(TextChannels, z.string()),
voice: z.record(VoiceChannels, z.string()),
}),
roleMapping: z.record(Roles, z.string()),
serverId: z.string(),
version: z.number(),
fluxer: z.object({
token: z.string(),
applicationId: z.string(),
}),
});