import * as z from 'zod';
import type { Prisma } from '../../../generated/prisma';
import { UserCreateWithoutCloudFilesInputObjectSchema as UserCreateWithoutCloudFilesInputObjectSchema } from './UserCreateWithoutCloudFilesInput.schema';
import { UserUncheckedCreateWithoutCloudFilesInputObjectSchema as UserUncheckedCreateWithoutCloudFilesInputObjectSchema } from './UserUncheckedCreateWithoutCloudFilesInput.schema';
import { UserCreateOrConnectWithoutCloudFilesInputObjectSchema as UserCreateOrConnectWithoutCloudFilesInputObjectSchema } from './UserCreateOrConnectWithoutCloudFilesInput.schema';
import { UserUpsertWithoutCloudFilesInputObjectSchema as UserUpsertWithoutCloudFilesInputObjectSchema } from './UserUpsertWithoutCloudFilesInput.schema';
import { UserWhereUniqueInputObjectSchema as UserWhereUniqueInputObjectSchema } from './UserWhereUniqueInput.schema';
import { UserUpdateToOneWithWhereWithoutCloudFilesInputObjectSchema as UserUpdateToOneWithWhereWithoutCloudFilesInputObjectSchema } from './UserUpdateToOneWithWhereWithoutCloudFilesInput.schema';
import { UserUpdateWithoutCloudFilesInputObjectSchema as UserUpdateWithoutCloudFilesInputObjectSchema } from './UserUpdateWithoutCloudFilesInput.schema';
import { UserUncheckedUpdateWithoutCloudFilesInputObjectSchema as UserUncheckedUpdateWithoutCloudFilesInputObjectSchema } from './UserUncheckedUpdateWithoutCloudFilesInput.schema'

const makeSchema = () => z.object({
  create: z.union([z.lazy(() => UserCreateWithoutCloudFilesInputObjectSchema), z.lazy(() => UserUncheckedCreateWithoutCloudFilesInputObjectSchema)]).optional(),
  connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutCloudFilesInputObjectSchema).optional(),
  upsert: z.lazy(() => UserUpsertWithoutCloudFilesInputObjectSchema).optional(),
  connect: z.lazy(() => UserWhereUniqueInputObjectSchema).optional(),
  update: z.union([z.lazy(() => UserUpdateToOneWithWhereWithoutCloudFilesInputObjectSchema), z.lazy(() => UserUpdateWithoutCloudFilesInputObjectSchema), z.lazy(() => UserUncheckedUpdateWithoutCloudFilesInputObjectSchema)]).optional()
}).strict();
export const UserUpdateOneRequiredWithoutCloudFilesNestedInputObjectSchema: z.ZodType<Prisma.UserUpdateOneRequiredWithoutCloudFilesNestedInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUpdateOneRequiredWithoutCloudFilesNestedInput>;
export const UserUpdateOneRequiredWithoutCloudFilesNestedInputObjectZodSchema = makeSchema();
