/**
 * Interface of the server (auto-generated code)
 */
import { z as zod } from "zod";

import {ZodUser, ZodUserWrite } from "./user";

export const ZodUserKarideo = ZodUser;

export type UserKarideo = zod.infer<typeof ZodUserKarideo>;

export function isUserKarideo(data: any): data is UserKarideo {
	try {
		ZodUserKarideo.parse(data);
		return true;
	} catch (e: any) {
		console.log(`Fail to parse data type='ZodUserKarideo' error=${e}`);
		return false;
	}
}
export const ZodUserKarideoWrite = ZodUserWrite;

export type UserKarideoWrite = zod.infer<typeof ZodUserKarideoWrite>;

export function isUserKarideoWrite(data: any): data is UserKarideoWrite {
	try {
		ZodUserKarideoWrite.parse(data);
		return true;
	} catch (e: any) {
		console.log(`Fail to parse data type='ZodUserKarideoWrite' error=${e}`);
		return false;
	}
}
