15 lines
412 B
TypeScript
15 lines
412 B
TypeScript
import { z } from "zod"
|
|
|
|
export const steamConfigSchema = z.object({
|
|
apiKey: z.string().min(1, "API key is required"),
|
|
steamId: z.string().min(1, "Steam ID is required"),
|
|
})
|
|
export type SteamConfig = z.infer<typeof steamConfigSchema>
|
|
|
|
export const gogConfigSchema = z.object({
|
|
accessToken: z.string(),
|
|
refreshToken: z.string(),
|
|
userId: z.string(),
|
|
})
|
|
export type GogConfig = z.infer<typeof gogConfigSchema>
|