import type { Prisma } from '../../generated/prisma';
import * as z from 'zod';
import { CloudFileOrderByWithRelationInputObjectSchema as CloudFileOrderByWithRelationInputObjectSchema } from './objects/CloudFileOrderByWithRelationInput.schema';
import { CloudFileWhereInputObjectSchema as CloudFileWhereInputObjectSchema } from './objects/CloudFileWhereInput.schema';
import { CloudFileWhereUniqueInputObjectSchema as CloudFileWhereUniqueInputObjectSchema } from './objects/CloudFileWhereUniqueInput.schema';
import { CloudFileCountAggregateInputObjectSchema as CloudFileCountAggregateInputObjectSchema } from './objects/CloudFileCountAggregateInput.schema';
import { CloudFileMinAggregateInputObjectSchema as CloudFileMinAggregateInputObjectSchema } from './objects/CloudFileMinAggregateInput.schema';
import { CloudFileMaxAggregateInputObjectSchema as CloudFileMaxAggregateInputObjectSchema } from './objects/CloudFileMaxAggregateInput.schema';
import { CloudFileAvgAggregateInputObjectSchema as CloudFileAvgAggregateInputObjectSchema } from './objects/CloudFileAvgAggregateInput.schema';
import { CloudFileSumAggregateInputObjectSchema as CloudFileSumAggregateInputObjectSchema } from './objects/CloudFileSumAggregateInput.schema';

export const CloudFileAggregateSchema: z.ZodType<Prisma.CloudFileAggregateArgs> = z.object({ orderBy: z.union([CloudFileOrderByWithRelationInputObjectSchema, CloudFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileWhereInputObjectSchema.optional(), cursor: CloudFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CloudFileCountAggregateInputObjectSchema ]).optional(), _min: CloudFileMinAggregateInputObjectSchema.optional(), _max: CloudFileMaxAggregateInputObjectSchema.optional(), _avg: CloudFileAvgAggregateInputObjectSchema.optional(), _sum: CloudFileSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.CloudFileAggregateArgs>;

export const CloudFileAggregateZodSchema = z.object({ orderBy: z.union([CloudFileOrderByWithRelationInputObjectSchema, CloudFileOrderByWithRelationInputObjectSchema.array()]).optional(), where: CloudFileWhereInputObjectSchema.optional(), cursor: CloudFileWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), CloudFileCountAggregateInputObjectSchema ]).optional(), _min: CloudFileMinAggregateInputObjectSchema.optional(), _max: CloudFileMaxAggregateInputObjectSchema.optional(), _avg: CloudFileAvgAggregateInputObjectSchema.optional(), _sum: CloudFileSumAggregateInputObjectSchema.optional() }).strict();