/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `FileObject` 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.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model FileObject * */ export type FileObjectModel = runtime.Types.Result.DefaultSelection export type AggregateFileObject = { _count: FileObjectCountAggregateOutputType | null _avg: FileObjectAvgAggregateOutputType | null _sum: FileObjectSumAggregateOutputType | null _min: FileObjectMinAggregateOutputType | null _max: FileObjectMaxAggregateOutputType | null } export type FileObjectAvgAggregateOutputType = { byteSize: number | null } export type FileObjectSumAggregateOutputType = { byteSize: number | null } export type FileObjectMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null provider: string | null bucket: string | null key: string | null contentType: string | null byteSize: number | null checksumSha256: string | null publicUrl: string | null uploadedAt: Date | null lastSignedUploadAt: Date | null lastSignedDownloadAt: Date | null } export type FileObjectMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null provider: string | null bucket: string | null key: string | null contentType: string | null byteSize: number | null checksumSha256: string | null publicUrl: string | null uploadedAt: Date | null lastSignedUploadAt: Date | null lastSignedDownloadAt: Date | null } export type FileObjectCountAggregateOutputType = { id: number createdAt: number updatedAt: number provider: number bucket: number key: number contentType: number byteSize: number checksumSha256: number publicUrl: number uploadedAt: number lastSignedUploadAt: number lastSignedDownloadAt: number metadata: number _all: number } export type FileObjectAvgAggregateInputType = { byteSize?: true } export type FileObjectSumAggregateInputType = { byteSize?: true } export type FileObjectMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true provider?: true bucket?: true key?: true contentType?: true byteSize?: true checksumSha256?: true publicUrl?: true uploadedAt?: true lastSignedUploadAt?: true lastSignedDownloadAt?: true } export type FileObjectMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true provider?: true bucket?: true key?: true contentType?: true byteSize?: true checksumSha256?: true publicUrl?: true uploadedAt?: true lastSignedUploadAt?: true lastSignedDownloadAt?: true } export type FileObjectCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true provider?: true bucket?: true key?: true contentType?: true byteSize?: true checksumSha256?: true publicUrl?: true uploadedAt?: true lastSignedUploadAt?: true lastSignedDownloadAt?: true metadata?: true _all?: true } export type FileObjectAggregateArgs = { /** * Filter which FileObject to aggregate. */ where?: Prisma.FileObjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FileObjects to fetch. */ orderBy?: Prisma.FileObjectOrderByWithRelationInput | Prisma.FileObjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.FileObjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FileObjects 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` FileObjects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned FileObjects **/ _count?: true | FileObjectCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: FileObjectAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: FileObjectSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: FileObjectMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: FileObjectMaxAggregateInputType } export type GetFileObjectAggregateType = { [P in keyof T & keyof AggregateFileObject]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type FileObjectGroupByArgs = { where?: Prisma.FileObjectWhereInput orderBy?: Prisma.FileObjectOrderByWithAggregationInput | Prisma.FileObjectOrderByWithAggregationInput[] by: Prisma.FileObjectScalarFieldEnum[] | Prisma.FileObjectScalarFieldEnum having?: Prisma.FileObjectScalarWhereWithAggregatesInput take?: number skip?: number _count?: FileObjectCountAggregateInputType | true _avg?: FileObjectAvgAggregateInputType _sum?: FileObjectSumAggregateInputType _min?: FileObjectMinAggregateInputType _max?: FileObjectMaxAggregateInputType } export type FileObjectGroupByOutputType = { id: string createdAt: Date updatedAt: Date provider: string bucket: string key: string contentType: string byteSize: number checksumSha256: string | null publicUrl: string | null uploadedAt: Date | null lastSignedUploadAt: Date | null lastSignedDownloadAt: Date | null metadata: runtime.JsonValue | null _count: FileObjectCountAggregateOutputType | null _avg: FileObjectAvgAggregateOutputType | null _sum: FileObjectSumAggregateOutputType | null _min: FileObjectMinAggregateOutputType | null _max: FileObjectMaxAggregateOutputType | null } export type GetFileObjectGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof FileObjectGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type FileObjectWhereInput = { AND?: Prisma.FileObjectWhereInput | Prisma.FileObjectWhereInput[] OR?: Prisma.FileObjectWhereInput[] NOT?: Prisma.FileObjectWhereInput | Prisma.FileObjectWhereInput[] id?: Prisma.StringFilter<"FileObject"> | string createdAt?: Prisma.DateTimeFilter<"FileObject"> | Date | string updatedAt?: Prisma.DateTimeFilter<"FileObject"> | Date | string provider?: Prisma.StringFilter<"FileObject"> | string bucket?: Prisma.StringFilter<"FileObject"> | string key?: Prisma.StringFilter<"FileObject"> | string contentType?: Prisma.StringFilter<"FileObject"> | string byteSize?: Prisma.IntFilter<"FileObject"> | number checksumSha256?: Prisma.StringNullableFilter<"FileObject"> | string | null publicUrl?: Prisma.StringNullableFilter<"FileObject"> | string | null uploadedAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null lastSignedUploadAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null lastSignedDownloadAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null metadata?: Prisma.JsonNullableFilter<"FileObject"> } export type FileObjectOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder provider?: Prisma.SortOrder bucket?: Prisma.SortOrder key?: Prisma.SortOrder contentType?: Prisma.SortOrder byteSize?: Prisma.SortOrder checksumSha256?: Prisma.SortOrderInput | Prisma.SortOrder publicUrl?: Prisma.SortOrderInput | Prisma.SortOrder uploadedAt?: Prisma.SortOrderInput | Prisma.SortOrder lastSignedUploadAt?: Prisma.SortOrderInput | Prisma.SortOrder lastSignedDownloadAt?: Prisma.SortOrderInput | Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder } export type FileObjectWhereUniqueInput = Prisma.AtLeast<{ id?: string file_object_provider_bucket_key?: Prisma.FileObjectFile_object_provider_bucket_keyCompoundUniqueInput AND?: Prisma.FileObjectWhereInput | Prisma.FileObjectWhereInput[] OR?: Prisma.FileObjectWhereInput[] NOT?: Prisma.FileObjectWhereInput | Prisma.FileObjectWhereInput[] createdAt?: Prisma.DateTimeFilter<"FileObject"> | Date | string updatedAt?: Prisma.DateTimeFilter<"FileObject"> | Date | string provider?: Prisma.StringFilter<"FileObject"> | string bucket?: Prisma.StringFilter<"FileObject"> | string key?: Prisma.StringFilter<"FileObject"> | string contentType?: Prisma.StringFilter<"FileObject"> | string byteSize?: Prisma.IntFilter<"FileObject"> | number checksumSha256?: Prisma.StringNullableFilter<"FileObject"> | string | null publicUrl?: Prisma.StringNullableFilter<"FileObject"> | string | null uploadedAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null lastSignedUploadAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null lastSignedDownloadAt?: Prisma.DateTimeNullableFilter<"FileObject"> | Date | string | null metadata?: Prisma.JsonNullableFilter<"FileObject"> }, "id" | "file_object_provider_bucket_key"> export type FileObjectOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder provider?: Prisma.SortOrder bucket?: Prisma.SortOrder key?: Prisma.SortOrder contentType?: Prisma.SortOrder byteSize?: Prisma.SortOrder checksumSha256?: Prisma.SortOrderInput | Prisma.SortOrder publicUrl?: Prisma.SortOrderInput | Prisma.SortOrder uploadedAt?: Prisma.SortOrderInput | Prisma.SortOrder lastSignedUploadAt?: Prisma.SortOrderInput | Prisma.SortOrder lastSignedDownloadAt?: Prisma.SortOrderInput | Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.FileObjectCountOrderByAggregateInput _avg?: Prisma.FileObjectAvgOrderByAggregateInput _max?: Prisma.FileObjectMaxOrderByAggregateInput _min?: Prisma.FileObjectMinOrderByAggregateInput _sum?: Prisma.FileObjectSumOrderByAggregateInput } export type FileObjectScalarWhereWithAggregatesInput = { AND?: Prisma.FileObjectScalarWhereWithAggregatesInput | Prisma.FileObjectScalarWhereWithAggregatesInput[] OR?: Prisma.FileObjectScalarWhereWithAggregatesInput[] NOT?: Prisma.FileObjectScalarWhereWithAggregatesInput | Prisma.FileObjectScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"FileObject"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"FileObject"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"FileObject"> | Date | string provider?: Prisma.StringWithAggregatesFilter<"FileObject"> | string bucket?: Prisma.StringWithAggregatesFilter<"FileObject"> | string key?: Prisma.StringWithAggregatesFilter<"FileObject"> | string contentType?: Prisma.StringWithAggregatesFilter<"FileObject"> | string byteSize?: Prisma.IntWithAggregatesFilter<"FileObject"> | number checksumSha256?: Prisma.StringNullableWithAggregatesFilter<"FileObject"> | string | null publicUrl?: Prisma.StringNullableWithAggregatesFilter<"FileObject"> | string | null uploadedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FileObject"> | Date | string | null lastSignedUploadAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FileObject"> | Date | string | null lastSignedDownloadAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FileObject"> | Date | string | null metadata?: Prisma.JsonNullableWithAggregatesFilter<"FileObject"> } export type FileObjectCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string provider: string bucket: string key: string contentType: string byteSize: number checksumSha256?: string | null publicUrl?: string | null uploadedAt?: Date | string | null lastSignedUploadAt?: Date | string | null lastSignedDownloadAt?: Date | string | null metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type FileObjectUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string provider: string bucket: string key: string contentType: string byteSize: number checksumSha256?: string | null publicUrl?: string | null uploadedAt?: Date | string | null lastSignedUploadAt?: Date | string | null lastSignedDownloadAt?: Date | string | null metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type FileObjectUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string provider?: Prisma.StringFieldUpdateOperationsInput | string bucket?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string byteSize?: Prisma.IntFieldUpdateOperationsInput | number checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null uploadedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastSignedUploadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastSignedDownloadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type FileObjectUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string provider?: Prisma.StringFieldUpdateOperationsInput | string bucket?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string byteSize?: Prisma.IntFieldUpdateOperationsInput | number checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null uploadedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastSignedUploadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastSignedDownloadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type FileObjectCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string provider: string bucket: string key: string contentType: string byteSize: number checksumSha256?: string | null publicUrl?: string | null uploadedAt?: Date | string | null lastSignedUploadAt?: Date | string | null lastSignedDownloadAt?: Date | string | null metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type FileObjectUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string provider?: Prisma.StringFieldUpdateOperationsInput | string bucket?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string byteSize?: Prisma.IntFieldUpdateOperationsInput | number checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null uploadedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastSignedUploadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastSignedDownloadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type FileObjectUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string provider?: Prisma.StringFieldUpdateOperationsInput | string bucket?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string byteSize?: Prisma.IntFieldUpdateOperationsInput | number checksumSha256?: Prisma.NullableStringFieldUpdateOperationsInput | string | null publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null uploadedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastSignedUploadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null lastSignedDownloadAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type FileObjectFile_object_provider_bucket_keyCompoundUniqueInput = { provider: string bucket: string key: string } export type FileObjectCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder provider?: Prisma.SortOrder bucket?: Prisma.SortOrder key?: Prisma.SortOrder contentType?: Prisma.SortOrder byteSize?: Prisma.SortOrder checksumSha256?: Prisma.SortOrder publicUrl?: Prisma.SortOrder uploadedAt?: Prisma.SortOrder lastSignedUploadAt?: Prisma.SortOrder lastSignedDownloadAt?: Prisma.SortOrder metadata?: Prisma.SortOrder } export type FileObjectAvgOrderByAggregateInput = { byteSize?: Prisma.SortOrder } export type FileObjectMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder provider?: Prisma.SortOrder bucket?: Prisma.SortOrder key?: Prisma.SortOrder contentType?: Prisma.SortOrder byteSize?: Prisma.SortOrder checksumSha256?: Prisma.SortOrder publicUrl?: Prisma.SortOrder uploadedAt?: Prisma.SortOrder lastSignedUploadAt?: Prisma.SortOrder lastSignedDownloadAt?: Prisma.SortOrder } export type FileObjectMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder provider?: Prisma.SortOrder bucket?: Prisma.SortOrder key?: Prisma.SortOrder contentType?: Prisma.SortOrder byteSize?: Prisma.SortOrder checksumSha256?: Prisma.SortOrder publicUrl?: Prisma.SortOrder uploadedAt?: Prisma.SortOrder lastSignedUploadAt?: Prisma.SortOrder lastSignedDownloadAt?: Prisma.SortOrder } export type FileObjectSumOrderByAggregateInput = { byteSize?: Prisma.SortOrder } export type FileObjectSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean provider?: boolean bucket?: boolean key?: boolean contentType?: boolean byteSize?: boolean checksumSha256?: boolean publicUrl?: boolean uploadedAt?: boolean lastSignedUploadAt?: boolean lastSignedDownloadAt?: boolean metadata?: boolean }, ExtArgs["result"]["fileObject"]> export type FileObjectSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean provider?: boolean bucket?: boolean key?: boolean contentType?: boolean byteSize?: boolean checksumSha256?: boolean publicUrl?: boolean uploadedAt?: boolean lastSignedUploadAt?: boolean lastSignedDownloadAt?: boolean metadata?: boolean }, ExtArgs["result"]["fileObject"]> export type FileObjectSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean provider?: boolean bucket?: boolean key?: boolean contentType?: boolean byteSize?: boolean checksumSha256?: boolean publicUrl?: boolean uploadedAt?: boolean lastSignedUploadAt?: boolean lastSignedDownloadAt?: boolean metadata?: boolean }, ExtArgs["result"]["fileObject"]> export type FileObjectSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean provider?: boolean bucket?: boolean key?: boolean contentType?: boolean byteSize?: boolean checksumSha256?: boolean publicUrl?: boolean uploadedAt?: boolean lastSignedUploadAt?: boolean lastSignedDownloadAt?: boolean metadata?: boolean } export type FileObjectOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "provider" | "bucket" | "key" | "contentType" | "byteSize" | "checksumSha256" | "publicUrl" | "uploadedAt" | "lastSignedUploadAt" | "lastSignedDownloadAt" | "metadata", ExtArgs["result"]["fileObject"]> export type $FileObjectPayload = { name: "FileObject" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date provider: string bucket: string key: string contentType: string byteSize: number checksumSha256: string | null publicUrl: string | null uploadedAt: Date | null lastSignedUploadAt: Date | null lastSignedDownloadAt: Date | null metadata: runtime.JsonValue | null }, ExtArgs["result"]["fileObject"]> composites: {} } export type FileObjectGetPayload = runtime.Types.Result.GetResult export type FileObjectCountArgs = Omit & { select?: FileObjectCountAggregateInputType | true } export interface FileObjectDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['FileObject'], meta: { name: 'FileObject' } } /** * Find zero or one FileObject that matches the filter. * @param {FileObjectFindUniqueArgs} args - Arguments to find a FileObject * @example * // Get one FileObject * const fileObject = await prisma.fileObject.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__FileObjectClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one FileObject that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {FileObjectFindUniqueOrThrowArgs} args - Arguments to find a FileObject * @example * // Get one FileObject * const fileObject = await prisma.fileObject.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__FileObjectClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first FileObject 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 {FileObjectFindFirstArgs} args - Arguments to find a FileObject * @example * // Get one FileObject * const fileObject = await prisma.fileObject.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__FileObjectClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first FileObject 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 {FileObjectFindFirstOrThrowArgs} args - Arguments to find a FileObject * @example * // Get one FileObject * const fileObject = await prisma.fileObject.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__FileObjectClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more FileObjects 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 {FileObjectFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all FileObjects * const fileObjects = await prisma.fileObject.findMany() * * // Get first 10 FileObjects * const fileObjects = await prisma.fileObject.findMany({ take: 10 }) * * // Only select the `id` * const fileObjectWithIdOnly = await prisma.fileObject.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a FileObject. * @param {FileObjectCreateArgs} args - Arguments to create a FileObject. * @example * // Create one FileObject * const FileObject = await prisma.fileObject.create({ * data: { * // ... data to create a FileObject * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__FileObjectClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many FileObjects. * @param {FileObjectCreateManyArgs} args - Arguments to create many FileObjects. * @example * // Create many FileObjects * const fileObject = await prisma.fileObject.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many FileObjects and returns the data saved in the database. * @param {FileObjectCreateManyAndReturnArgs} args - Arguments to create many FileObjects. * @example * // Create many FileObjects * const fileObject = await prisma.fileObject.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many FileObjects and only return the `id` * const fileObjectWithIdOnly = await prisma.fileObject.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 FileObject. * @param {FileObjectDeleteArgs} args - Arguments to delete one FileObject. * @example * // Delete one FileObject * const FileObject = await prisma.fileObject.delete({ * where: { * // ... filter to delete one FileObject * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__FileObjectClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one FileObject. * @param {FileObjectUpdateArgs} args - Arguments to update one FileObject. * @example * // Update one FileObject * const fileObject = await prisma.fileObject.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__FileObjectClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more FileObjects. * @param {FileObjectDeleteManyArgs} args - Arguments to filter FileObjects to delete. * @example * // Delete a few FileObjects * const { count } = await prisma.fileObject.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more FileObjects. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FileObjectUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many FileObjects * const fileObject = await prisma.fileObject.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more FileObjects and returns the data updated in the database. * @param {FileObjectUpdateManyAndReturnArgs} args - Arguments to update many FileObjects. * @example * // Update many FileObjects * const fileObject = await prisma.fileObject.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more FileObjects and only return the `id` * const fileObjectWithIdOnly = await prisma.fileObject.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 FileObject. * @param {FileObjectUpsertArgs} args - Arguments to update or create a FileObject. * @example * // Update or create a FileObject * const fileObject = await prisma.fileObject.upsert({ * create: { * // ... data to create a FileObject * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the FileObject we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__FileObjectClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of FileObjects. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FileObjectCountArgs} args - Arguments to filter FileObjects to count. * @example * // Count the number of FileObjects * const count = await prisma.fileObject.count({ * where: { * // ... the filter for the FileObjects 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 FileObject. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FileObjectAggregateArgs} 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 FileObject. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FileObjectGroupByArgs} 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 FileObjectGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: FileObjectGroupByArgs['orderBy'] } : { orderBy?: FileObjectGroupByArgs['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 ? GetFileObjectGroupByPayload : Prisma.PrismaPromise /** * Fields of the FileObject model */ readonly fields: FileObjectFieldRefs; } /** * The delegate class that acts as a "Promise-like" for FileObject. * 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__FileObjectClient 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 FileObject model */ export interface FileObjectFieldRefs { readonly id: Prisma.FieldRef<"FileObject", 'String'> readonly createdAt: Prisma.FieldRef<"FileObject", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"FileObject", 'DateTime'> readonly provider: Prisma.FieldRef<"FileObject", 'String'> readonly bucket: Prisma.FieldRef<"FileObject", 'String'> readonly key: Prisma.FieldRef<"FileObject", 'String'> readonly contentType: Prisma.FieldRef<"FileObject", 'String'> readonly byteSize: Prisma.FieldRef<"FileObject", 'Int'> readonly checksumSha256: Prisma.FieldRef<"FileObject", 'String'> readonly publicUrl: Prisma.FieldRef<"FileObject", 'String'> readonly uploadedAt: Prisma.FieldRef<"FileObject", 'DateTime'> readonly lastSignedUploadAt: Prisma.FieldRef<"FileObject", 'DateTime'> readonly lastSignedDownloadAt: Prisma.FieldRef<"FileObject", 'DateTime'> readonly metadata: Prisma.FieldRef<"FileObject", 'Json'> } // Custom InputTypes /** * FileObject findUnique */ export type FileObjectFindUniqueArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * Filter, which FileObject to fetch. */ where: Prisma.FileObjectWhereUniqueInput } /** * FileObject findUniqueOrThrow */ export type FileObjectFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * Filter, which FileObject to fetch. */ where: Prisma.FileObjectWhereUniqueInput } /** * FileObject findFirst */ export type FileObjectFindFirstArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * Filter, which FileObject to fetch. */ where?: Prisma.FileObjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FileObjects to fetch. */ orderBy?: Prisma.FileObjectOrderByWithRelationInput | Prisma.FileObjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for FileObjects. */ cursor?: Prisma.FileObjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FileObjects 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` FileObjects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FileObjects. */ distinct?: Prisma.FileObjectScalarFieldEnum | Prisma.FileObjectScalarFieldEnum[] } /** * FileObject findFirstOrThrow */ export type FileObjectFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * Filter, which FileObject to fetch. */ where?: Prisma.FileObjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FileObjects to fetch. */ orderBy?: Prisma.FileObjectOrderByWithRelationInput | Prisma.FileObjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for FileObjects. */ cursor?: Prisma.FileObjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FileObjects 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` FileObjects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FileObjects. */ distinct?: Prisma.FileObjectScalarFieldEnum | Prisma.FileObjectScalarFieldEnum[] } /** * FileObject findMany */ export type FileObjectFindManyArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * Filter, which FileObjects to fetch. */ where?: Prisma.FileObjectWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FileObjects to fetch. */ orderBy?: Prisma.FileObjectOrderByWithRelationInput | Prisma.FileObjectOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing FileObjects. */ cursor?: Prisma.FileObjectWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FileObjects 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` FileObjects. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FileObjects. */ distinct?: Prisma.FileObjectScalarFieldEnum | Prisma.FileObjectScalarFieldEnum[] } /** * FileObject create */ export type FileObjectCreateArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * The data needed to create a FileObject. */ data: Prisma.XOR } /** * FileObject createMany */ export type FileObjectCreateManyArgs = { /** * The data used to create many FileObjects. */ data: Prisma.FileObjectCreateManyInput | Prisma.FileObjectCreateManyInput[] skipDuplicates?: boolean } /** * FileObject createManyAndReturn */ export type FileObjectCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelectCreateManyAndReturn | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * The data used to create many FileObjects. */ data: Prisma.FileObjectCreateManyInput | Prisma.FileObjectCreateManyInput[] skipDuplicates?: boolean } /** * FileObject update */ export type FileObjectUpdateArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * The data needed to update a FileObject. */ data: Prisma.XOR /** * Choose, which FileObject to update. */ where: Prisma.FileObjectWhereUniqueInput } /** * FileObject updateMany */ export type FileObjectUpdateManyArgs = { /** * The data used to update FileObjects. */ data: Prisma.XOR /** * Filter which FileObjects to update */ where?: Prisma.FileObjectWhereInput /** * Limit how many FileObjects to update. */ limit?: number } /** * FileObject updateManyAndReturn */ export type FileObjectUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelectUpdateManyAndReturn | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * The data used to update FileObjects. */ data: Prisma.XOR /** * Filter which FileObjects to update */ where?: Prisma.FileObjectWhereInput /** * Limit how many FileObjects to update. */ limit?: number } /** * FileObject upsert */ export type FileObjectUpsertArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * The filter to search for the FileObject to update in case it exists. */ where: Prisma.FileObjectWhereUniqueInput /** * In case the FileObject found by the `where` argument doesn't exist, create a new FileObject with this data. */ create: Prisma.XOR /** * In case the FileObject was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * FileObject delete */ export type FileObjectDeleteArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null /** * Filter which FileObject to delete. */ where: Prisma.FileObjectWhereUniqueInput } /** * FileObject deleteMany */ export type FileObjectDeleteManyArgs = { /** * Filter which FileObjects to delete */ where?: Prisma.FileObjectWhereInput /** * Limit how many FileObjects to delete. */ limit?: number } /** * FileObject without action */ export type FileObjectDefaultArgs = { /** * Select specific fields to fetch from the FileObject */ select?: Prisma.FileObjectSelect | null /** * Omit specific fields from the FileObject */ omit?: Prisma.FileObjectOmit | null }