/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Image` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums" import type * as Prisma from "../internal/prismaNamespace" /** * Model Image * */ export type ImageModel = runtime.Types.Result.DefaultSelection export type AggregateImage = { _count: ImageCountAggregateOutputType | null _avg: ImageAvgAggregateOutputType | null _sum: ImageSumAggregateOutputType | null _min: ImageMinAggregateOutputType | null _max: ImageMaxAggregateOutputType | null } export type ImageAvgAggregateOutputType = { sizeBytes: number | null } export type ImageSumAggregateOutputType = { sizeBytes: number | null } export type ImageMinAggregateOutputType = { id: string | null sessionId: string | null messageId: string | null filename: string | null mediaType: string | null sizeBytes: number | null timestamp: Date | null role: string | null createdAt: Date | null } export type ImageMaxAggregateOutputType = { id: string | null sessionId: string | null messageId: string | null filename: string | null mediaType: string | null sizeBytes: number | null timestamp: Date | null role: string | null createdAt: Date | null } export type ImageCountAggregateOutputType = { id: number sessionId: number messageId: number filename: number mediaType: number sizeBytes: number timestamp: number role: number createdAt: number _all: number } export type ImageAvgAggregateInputType = { sizeBytes?: true } export type ImageSumAggregateInputType = { sizeBytes?: true } export type ImageMinAggregateInputType = { id?: true sessionId?: true messageId?: true filename?: true mediaType?: true sizeBytes?: true timestamp?: true role?: true createdAt?: true } export type ImageMaxAggregateInputType = { id?: true sessionId?: true messageId?: true filename?: true mediaType?: true sizeBytes?: true timestamp?: true role?: true createdAt?: true } export type ImageCountAggregateInputType = { id?: true sessionId?: true messageId?: true filename?: true mediaType?: true sizeBytes?: true timestamp?: true role?: true createdAt?: true _all?: true } export type ImageAggregateArgs = { /** * Filter which Image to aggregate. */ where?: Prisma.ImageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Images to fetch. */ orderBy?: Prisma.ImageOrderByWithRelationInput | Prisma.ImageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ImageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Images from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Images. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Images **/ _count?: true | ImageCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ImageAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ImageSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ImageMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ImageMaxAggregateInputType } export type GetImageAggregateType = { [P in keyof T & keyof AggregateImage]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ImageGroupByArgs = { where?: Prisma.ImageWhereInput orderBy?: Prisma.ImageOrderByWithAggregationInput | Prisma.ImageOrderByWithAggregationInput[] by: Prisma.ImageScalarFieldEnum[] | Prisma.ImageScalarFieldEnum having?: Prisma.ImageScalarWhereWithAggregatesInput take?: number skip?: number _count?: ImageCountAggregateInputType | true _avg?: ImageAvgAggregateInputType _sum?: ImageSumAggregateInputType _min?: ImageMinAggregateInputType _max?: ImageMaxAggregateInputType } export type ImageGroupByOutputType = { id: string sessionId: string messageId: string filename: string mediaType: string sizeBytes: number timestamp: Date role: string createdAt: Date _count: ImageCountAggregateOutputType | null _avg: ImageAvgAggregateOutputType | null _sum: ImageSumAggregateOutputType | null _min: ImageMinAggregateOutputType | null _max: ImageMaxAggregateOutputType | null } export type GetImageGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ImageGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ImageWhereInput = { AND?: Prisma.ImageWhereInput | Prisma.ImageWhereInput[] OR?: Prisma.ImageWhereInput[] NOT?: Prisma.ImageWhereInput | Prisma.ImageWhereInput[] id?: Prisma.StringFilter<"Image"> | string sessionId?: Prisma.StringFilter<"Image"> | string messageId?: Prisma.StringFilter<"Image"> | string filename?: Prisma.StringFilter<"Image"> | string mediaType?: Prisma.StringFilter<"Image"> | string sizeBytes?: Prisma.IntFilter<"Image"> | number timestamp?: Prisma.DateTimeFilter<"Image"> | Date | string role?: Prisma.StringFilter<"Image"> | string createdAt?: Prisma.DateTimeFilter<"Image"> | Date | string } export type ImageOrderByWithRelationInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder messageId?: Prisma.SortOrder filename?: Prisma.SortOrder mediaType?: Prisma.SortOrder sizeBytes?: Prisma.SortOrder timestamp?: Prisma.SortOrder role?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ImageWhereUniqueInput = Prisma.AtLeast<{ id?: string sessionId_messageId_filename?: Prisma.ImageSessionIdMessageIdFilenameCompoundUniqueInput AND?: Prisma.ImageWhereInput | Prisma.ImageWhereInput[] OR?: Prisma.ImageWhereInput[] NOT?: Prisma.ImageWhereInput | Prisma.ImageWhereInput[] sessionId?: Prisma.StringFilter<"Image"> | string messageId?: Prisma.StringFilter<"Image"> | string filename?: Prisma.StringFilter<"Image"> | string mediaType?: Prisma.StringFilter<"Image"> | string sizeBytes?: Prisma.IntFilter<"Image"> | number timestamp?: Prisma.DateTimeFilter<"Image"> | Date | string role?: Prisma.StringFilter<"Image"> | string createdAt?: Prisma.DateTimeFilter<"Image"> | Date | string }, "id" | "sessionId_messageId_filename"> export type ImageOrderByWithAggregationInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder messageId?: Prisma.SortOrder filename?: Prisma.SortOrder mediaType?: Prisma.SortOrder sizeBytes?: Prisma.SortOrder timestamp?: Prisma.SortOrder role?: Prisma.SortOrder createdAt?: Prisma.SortOrder _count?: Prisma.ImageCountOrderByAggregateInput _avg?: Prisma.ImageAvgOrderByAggregateInput _max?: Prisma.ImageMaxOrderByAggregateInput _min?: Prisma.ImageMinOrderByAggregateInput _sum?: Prisma.ImageSumOrderByAggregateInput } export type ImageScalarWhereWithAggregatesInput = { AND?: Prisma.ImageScalarWhereWithAggregatesInput | Prisma.ImageScalarWhereWithAggregatesInput[] OR?: Prisma.ImageScalarWhereWithAggregatesInput[] NOT?: Prisma.ImageScalarWhereWithAggregatesInput | Prisma.ImageScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Image"> | string sessionId?: Prisma.StringWithAggregatesFilter<"Image"> | string messageId?: Prisma.StringWithAggregatesFilter<"Image"> | string filename?: Prisma.StringWithAggregatesFilter<"Image"> | string mediaType?: Prisma.StringWithAggregatesFilter<"Image"> | string sizeBytes?: Prisma.IntWithAggregatesFilter<"Image"> | number timestamp?: Prisma.DateTimeWithAggregatesFilter<"Image"> | Date | string role?: Prisma.StringWithAggregatesFilter<"Image"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Image"> | Date | string } export type ImageCreateInput = { id?: string sessionId: string messageId: string filename: string mediaType: string sizeBytes: number timestamp: Date | string role: string createdAt?: Date | string } export type ImageUncheckedCreateInput = { id?: string sessionId: string messageId: string filename: string mediaType: string sizeBytes: number timestamp: Date | string role: string createdAt?: Date | string } export type ImageUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string filename?: Prisma.StringFieldUpdateOperationsInput | string mediaType?: Prisma.StringFieldUpdateOperationsInput | string sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string role?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ImageUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string filename?: Prisma.StringFieldUpdateOperationsInput | string mediaType?: Prisma.StringFieldUpdateOperationsInput | string sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string role?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ImageCreateManyInput = { id?: string sessionId: string messageId: string filename: string mediaType: string sizeBytes: number timestamp: Date | string role: string createdAt?: Date | string } export type ImageUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string filename?: Prisma.StringFieldUpdateOperationsInput | string mediaType?: Prisma.StringFieldUpdateOperationsInput | string sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string role?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ImageUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string filename?: Prisma.StringFieldUpdateOperationsInput | string mediaType?: Prisma.StringFieldUpdateOperationsInput | string sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string role?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ImageSessionIdMessageIdFilenameCompoundUniqueInput = { sessionId: string messageId: string filename: string } export type ImageCountOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder messageId?: Prisma.SortOrder filename?: Prisma.SortOrder mediaType?: Prisma.SortOrder sizeBytes?: Prisma.SortOrder timestamp?: Prisma.SortOrder role?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ImageAvgOrderByAggregateInput = { sizeBytes?: Prisma.SortOrder } export type ImageMaxOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder messageId?: Prisma.SortOrder filename?: Prisma.SortOrder mediaType?: Prisma.SortOrder sizeBytes?: Prisma.SortOrder timestamp?: Prisma.SortOrder role?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ImageMinOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder messageId?: Prisma.SortOrder filename?: Prisma.SortOrder mediaType?: Prisma.SortOrder sizeBytes?: Prisma.SortOrder timestamp?: Prisma.SortOrder role?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ImageSumOrderByAggregateInput = { sizeBytes?: Prisma.SortOrder } export type ImageSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean messageId?: boolean filename?: boolean mediaType?: boolean sizeBytes?: boolean timestamp?: boolean role?: boolean createdAt?: boolean }, ExtArgs["result"]["image"]> export type ImageSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean messageId?: boolean filename?: boolean mediaType?: boolean sizeBytes?: boolean timestamp?: boolean role?: boolean createdAt?: boolean }, ExtArgs["result"]["image"]> export type ImageSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean messageId?: boolean filename?: boolean mediaType?: boolean sizeBytes?: boolean timestamp?: boolean role?: boolean createdAt?: boolean }, ExtArgs["result"]["image"]> export type ImageSelectScalar = { id?: boolean sessionId?: boolean messageId?: boolean filename?: boolean mediaType?: boolean sizeBytes?: boolean timestamp?: boolean role?: boolean createdAt?: boolean } export type ImageOmit = runtime.Types.Extensions.GetOmit<"id" | "sessionId" | "messageId" | "filename" | "mediaType" | "sizeBytes" | "timestamp" | "role" | "createdAt", ExtArgs["result"]["image"]> export type $ImagePayload = { name: "Image" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string sessionId: string messageId: string filename: string mediaType: string sizeBytes: number timestamp: Date role: string createdAt: Date }, ExtArgs["result"]["image"]> composites: {} } export type ImageGetPayload = runtime.Types.Result.GetResult export type ImageCountArgs = Omit & { select?: ImageCountAggregateInputType | true } export interface ImageDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Image'], meta: { name: 'Image' } } /** * Find zero or one Image that matches the filter. * @param {ImageFindUniqueArgs} args - Arguments to find a Image * @example * // Get one Image * const image = await prisma.image.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ImageClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Image that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ImageFindUniqueOrThrowArgs} args - Arguments to find a Image * @example * // Get one Image * const image = await prisma.image.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ImageClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Image that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ImageFindFirstArgs} args - Arguments to find a Image * @example * // Get one Image * const image = await prisma.image.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ImageClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Image that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ImageFindFirstOrThrowArgs} args - Arguments to find a Image * @example * // Get one Image * const image = await prisma.image.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ImageClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Images that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ImageFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Images * const images = await prisma.image.findMany() * * // Get first 10 Images * const images = await prisma.image.findMany({ take: 10 }) * * // Only select the `id` * const imageWithIdOnly = await prisma.image.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Image. * @param {ImageCreateArgs} args - Arguments to create a Image. * @example * // Create one Image * const Image = await prisma.image.create({ * data: { * // ... data to create a Image * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ImageClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Images. * @param {ImageCreateManyArgs} args - Arguments to create many Images. * @example * // Create many Images * const image = await prisma.image.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Images and returns the data saved in the database. * @param {ImageCreateManyAndReturnArgs} args - Arguments to create many Images. * @example * // Create many Images * const image = await prisma.image.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Images and only return the `id` * const imageWithIdOnly = await prisma.image.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Image. * @param {ImageDeleteArgs} args - Arguments to delete one Image. * @example * // Delete one Image * const Image = await prisma.image.delete({ * where: { * // ... filter to delete one Image * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ImageClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Image. * @param {ImageUpdateArgs} args - Arguments to update one Image. * @example * // Update one Image * const image = await prisma.image.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ImageClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Images. * @param {ImageDeleteManyArgs} args - Arguments to filter Images to delete. * @example * // Delete a few Images * const { count } = await prisma.image.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Images. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ImageUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Images * const image = await prisma.image.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Images and returns the data updated in the database. * @param {ImageUpdateManyAndReturnArgs} args - Arguments to update many Images. * @example * // Update many Images * const image = await prisma.image.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Images and only return the `id` * const imageWithIdOnly = await prisma.image.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Image. * @param {ImageUpsertArgs} args - Arguments to update or create a Image. * @example * // Update or create a Image * const image = await prisma.image.upsert({ * create: { * // ... data to create a Image * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Image we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ImageClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Images. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ImageCountArgs} args - Arguments to filter Images to count. * @example * // Count the number of Images * const count = await prisma.image.count({ * where: { * // ... the filter for the Images we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Image. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ImageAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Image. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ImageGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends ImageGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ImageGroupByArgs['orderBy'] } : { orderBy?: ImageGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetImageGroupByPayload : Prisma.PrismaPromise /** * Fields of the Image model */ readonly fields: ImageFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Image. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__ImageClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the Image model */ export interface ImageFieldRefs { readonly id: Prisma.FieldRef<"Image", 'String'> readonly sessionId: Prisma.FieldRef<"Image", 'String'> readonly messageId: Prisma.FieldRef<"Image", 'String'> readonly filename: Prisma.FieldRef<"Image", 'String'> readonly mediaType: Prisma.FieldRef<"Image", 'String'> readonly sizeBytes: Prisma.FieldRef<"Image", 'Int'> readonly timestamp: Prisma.FieldRef<"Image", 'DateTime'> readonly role: Prisma.FieldRef<"Image", 'String'> readonly createdAt: Prisma.FieldRef<"Image", 'DateTime'> } // Custom InputTypes /** * Image findUnique */ export type ImageFindUniqueArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * Filter, which Image to fetch. */ where: Prisma.ImageWhereUniqueInput } /** * Image findUniqueOrThrow */ export type ImageFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * Filter, which Image to fetch. */ where: Prisma.ImageWhereUniqueInput } /** * Image findFirst */ export type ImageFindFirstArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * Filter, which Image to fetch. */ where?: Prisma.ImageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Images to fetch. */ orderBy?: Prisma.ImageOrderByWithRelationInput | Prisma.ImageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Images. */ cursor?: Prisma.ImageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Images from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Images. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Images. */ distinct?: Prisma.ImageScalarFieldEnum | Prisma.ImageScalarFieldEnum[] } /** * Image findFirstOrThrow */ export type ImageFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * Filter, which Image to fetch. */ where?: Prisma.ImageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Images to fetch. */ orderBy?: Prisma.ImageOrderByWithRelationInput | Prisma.ImageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Images. */ cursor?: Prisma.ImageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Images from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Images. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Images. */ distinct?: Prisma.ImageScalarFieldEnum | Prisma.ImageScalarFieldEnum[] } /** * Image findMany */ export type ImageFindManyArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * Filter, which Images to fetch. */ where?: Prisma.ImageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Images to fetch. */ orderBy?: Prisma.ImageOrderByWithRelationInput | Prisma.ImageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Images. */ cursor?: Prisma.ImageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Images from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Images. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Images. */ distinct?: Prisma.ImageScalarFieldEnum | Prisma.ImageScalarFieldEnum[] } /** * Image create */ export type ImageCreateArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * The data needed to create a Image. */ data: Prisma.XOR } /** * Image createMany */ export type ImageCreateManyArgs = { /** * The data used to create many Images. */ data: Prisma.ImageCreateManyInput | Prisma.ImageCreateManyInput[] } /** * Image createManyAndReturn */ export type ImageCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelectCreateManyAndReturn | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * The data used to create many Images. */ data: Prisma.ImageCreateManyInput | Prisma.ImageCreateManyInput[] } /** * Image update */ export type ImageUpdateArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * The data needed to update a Image. */ data: Prisma.XOR /** * Choose, which Image to update. */ where: Prisma.ImageWhereUniqueInput } /** * Image updateMany */ export type ImageUpdateManyArgs = { /** * The data used to update Images. */ data: Prisma.XOR /** * Filter which Images to update */ where?: Prisma.ImageWhereInput /** * Limit how many Images to update. */ limit?: number } /** * Image updateManyAndReturn */ export type ImageUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelectUpdateManyAndReturn | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * The data used to update Images. */ data: Prisma.XOR /** * Filter which Images to update */ where?: Prisma.ImageWhereInput /** * Limit how many Images to update. */ limit?: number } /** * Image upsert */ export type ImageUpsertArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * The filter to search for the Image to update in case it exists. */ where: Prisma.ImageWhereUniqueInput /** * In case the Image found by the `where` argument doesn't exist, create a new Image with this data. */ create: Prisma.XOR /** * In case the Image was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Image delete */ export type ImageDeleteArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null /** * Filter which Image to delete. */ where: Prisma.ImageWhereUniqueInput } /** * Image deleteMany */ export type ImageDeleteManyArgs = { /** * Filter which Images to delete */ where?: Prisma.ImageWhereInput /** * Limit how many Images to delete. */ limit?: number } /** * Image without action */ export type ImageDefaultArgs = { /** * Select specific fields to fetch from the Image */ select?: Prisma.ImageSelect | null /** * Omit specific fields from the Image */ omit?: Prisma.ImageOmit | null }