/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Conversation` 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.js" import type * as Prisma from "../internal/prismaNamespace.js" /** * Model Conversation * */ export type ConversationModel = runtime.Types.Result.DefaultSelection export type AggregateConversation = { _count: ConversationCountAggregateOutputType | null _min: ConversationMinAggregateOutputType | null _max: ConversationMaxAggregateOutputType | null } export type ConversationMinAggregateOutputType = { id: string | null createdAt: Date | null } export type ConversationMaxAggregateOutputType = { id: string | null createdAt: Date | null } export type ConversationCountAggregateOutputType = { id: number createdAt: number _all: number } export type ConversationMinAggregateInputType = { id?: true createdAt?: true } export type ConversationMaxAggregateInputType = { id?: true createdAt?: true } export type ConversationCountAggregateInputType = { id?: true createdAt?: true _all?: true } export type ConversationAggregateArgs = { /** * Filter which Conversation to aggregate. */ where?: Prisma.ConversationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Conversations to fetch. */ orderBy?: Prisma.ConversationOrderByWithRelationInput | Prisma.ConversationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ConversationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Conversations 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` Conversations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Conversations **/ _count?: true | ConversationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ConversationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ConversationMaxAggregateInputType } export type GetConversationAggregateType = { [P in keyof T & keyof AggregateConversation]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ConversationGroupByArgs = { where?: Prisma.ConversationWhereInput orderBy?: Prisma.ConversationOrderByWithAggregationInput | Prisma.ConversationOrderByWithAggregationInput[] by: Prisma.ConversationScalarFieldEnum[] | Prisma.ConversationScalarFieldEnum having?: Prisma.ConversationScalarWhereWithAggregatesInput take?: number skip?: number _count?: ConversationCountAggregateInputType | true _min?: ConversationMinAggregateInputType _max?: ConversationMaxAggregateInputType } export type ConversationGroupByOutputType = { id: string createdAt: Date _count: ConversationCountAggregateOutputType | null _min: ConversationMinAggregateOutputType | null _max: ConversationMaxAggregateOutputType | null } type GetConversationGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ConversationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ConversationWhereInput = { AND?: Prisma.ConversationWhereInput | Prisma.ConversationWhereInput[] OR?: Prisma.ConversationWhereInput[] NOT?: Prisma.ConversationWhereInput | Prisma.ConversationWhereInput[] id?: Prisma.StringFilter<"Conversation"> | string createdAt?: Prisma.DateTimeFilter<"Conversation"> | Date | string participants?: Prisma.ConversationParticipantListRelationFilter messages?: Prisma.MessageListRelationFilter } export type ConversationOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder participants?: Prisma.ConversationParticipantOrderByRelationAggregateInput messages?: Prisma.MessageOrderByRelationAggregateInput } export type ConversationWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.ConversationWhereInput | Prisma.ConversationWhereInput[] OR?: Prisma.ConversationWhereInput[] NOT?: Prisma.ConversationWhereInput | Prisma.ConversationWhereInput[] createdAt?: Prisma.DateTimeFilter<"Conversation"> | Date | string participants?: Prisma.ConversationParticipantListRelationFilter messages?: Prisma.MessageListRelationFilter }, "id"> export type ConversationOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder _count?: Prisma.ConversationCountOrderByAggregateInput _max?: Prisma.ConversationMaxOrderByAggregateInput _min?: Prisma.ConversationMinOrderByAggregateInput } export type ConversationScalarWhereWithAggregatesInput = { AND?: Prisma.ConversationScalarWhereWithAggregatesInput | Prisma.ConversationScalarWhereWithAggregatesInput[] OR?: Prisma.ConversationScalarWhereWithAggregatesInput[] NOT?: Prisma.ConversationScalarWhereWithAggregatesInput | Prisma.ConversationScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Conversation"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Conversation"> | Date | string } export type ConversationCreateInput = { id?: string createdAt?: Date | string participants?: Prisma.ConversationParticipantCreateNestedManyWithoutConversationInput messages?: Prisma.MessageCreateNestedManyWithoutConversationInput } export type ConversationUncheckedCreateInput = { id?: string createdAt?: Date | string participants?: Prisma.ConversationParticipantUncheckedCreateNestedManyWithoutConversationInput messages?: Prisma.MessageUncheckedCreateNestedManyWithoutConversationInput } export type ConversationUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string participants?: Prisma.ConversationParticipantUpdateManyWithoutConversationNestedInput messages?: Prisma.MessageUpdateManyWithoutConversationNestedInput } export type ConversationUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string participants?: Prisma.ConversationParticipantUncheckedUpdateManyWithoutConversationNestedInput messages?: Prisma.MessageUncheckedUpdateManyWithoutConversationNestedInput } export type ConversationCreateManyInput = { id?: string createdAt?: Date | string } export type ConversationUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ConversationUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ConversationCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ConversationMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ConversationMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type ConversationScalarRelationFilter = { is?: Prisma.ConversationWhereInput isNot?: Prisma.ConversationWhereInput } export type ConversationCreateNestedOneWithoutParticipantsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ConversationCreateOrConnectWithoutParticipantsInput connect?: Prisma.ConversationWhereUniqueInput } export type ConversationUpdateOneRequiredWithoutParticipantsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ConversationCreateOrConnectWithoutParticipantsInput upsert?: Prisma.ConversationUpsertWithoutParticipantsInput connect?: Prisma.ConversationWhereUniqueInput update?: Prisma.XOR, Prisma.ConversationUncheckedUpdateWithoutParticipantsInput> } export type ConversationCreateNestedOneWithoutMessagesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ConversationCreateOrConnectWithoutMessagesInput connect?: Prisma.ConversationWhereUniqueInput } export type ConversationUpdateOneRequiredWithoutMessagesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ConversationCreateOrConnectWithoutMessagesInput upsert?: Prisma.ConversationUpsertWithoutMessagesInput connect?: Prisma.ConversationWhereUniqueInput update?: Prisma.XOR, Prisma.ConversationUncheckedUpdateWithoutMessagesInput> } export type ConversationCreateWithoutParticipantsInput = { id?: string createdAt?: Date | string messages?: Prisma.MessageCreateNestedManyWithoutConversationInput } export type ConversationUncheckedCreateWithoutParticipantsInput = { id?: string createdAt?: Date | string messages?: Prisma.MessageUncheckedCreateNestedManyWithoutConversationInput } export type ConversationCreateOrConnectWithoutParticipantsInput = { where: Prisma.ConversationWhereUniqueInput create: Prisma.XOR } export type ConversationUpsertWithoutParticipantsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ConversationWhereInput } export type ConversationUpdateToOneWithWhereWithoutParticipantsInput = { where?: Prisma.ConversationWhereInput data: Prisma.XOR } export type ConversationUpdateWithoutParticipantsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string messages?: Prisma.MessageUpdateManyWithoutConversationNestedInput } export type ConversationUncheckedUpdateWithoutParticipantsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string messages?: Prisma.MessageUncheckedUpdateManyWithoutConversationNestedInput } export type ConversationCreateWithoutMessagesInput = { id?: string createdAt?: Date | string participants?: Prisma.ConversationParticipantCreateNestedManyWithoutConversationInput } export type ConversationUncheckedCreateWithoutMessagesInput = { id?: string createdAt?: Date | string participants?: Prisma.ConversationParticipantUncheckedCreateNestedManyWithoutConversationInput } export type ConversationCreateOrConnectWithoutMessagesInput = { where: Prisma.ConversationWhereUniqueInput create: Prisma.XOR } export type ConversationUpsertWithoutMessagesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ConversationWhereInput } export type ConversationUpdateToOneWithWhereWithoutMessagesInput = { where?: Prisma.ConversationWhereInput data: Prisma.XOR } export type ConversationUpdateWithoutMessagesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string participants?: Prisma.ConversationParticipantUpdateManyWithoutConversationNestedInput } export type ConversationUncheckedUpdateWithoutMessagesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string participants?: Prisma.ConversationParticipantUncheckedUpdateManyWithoutConversationNestedInput } /** * Count Type ConversationCountOutputType */ export type ConversationCountOutputType = { participants: number messages: number } export type ConversationCountOutputTypeSelect = { participants?: boolean | ConversationCountOutputTypeCountParticipantsArgs messages?: boolean | ConversationCountOutputTypeCountMessagesArgs } /** * ConversationCountOutputType without action */ export type ConversationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ConversationCountOutputType */ select?: Prisma.ConversationCountOutputTypeSelect | null } /** * ConversationCountOutputType without action */ export type ConversationCountOutputTypeCountParticipantsArgs = { where?: Prisma.ConversationParticipantWhereInput } /** * ConversationCountOutputType without action */ export type ConversationCountOutputTypeCountMessagesArgs = { where?: Prisma.MessageWhereInput } export type ConversationSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean participants?: boolean | Prisma.Conversation$participantsArgs messages?: boolean | Prisma.Conversation$messagesArgs _count?: boolean | Prisma.ConversationCountOutputTypeDefaultArgs }, ExtArgs["result"]["conversation"]> export type ConversationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean }, ExtArgs["result"]["conversation"]> export type ConversationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean }, ExtArgs["result"]["conversation"]> export type ConversationSelectScalar = { id?: boolean createdAt?: boolean } export type ConversationOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt", ExtArgs["result"]["conversation"]> export type ConversationInclude = { participants?: boolean | Prisma.Conversation$participantsArgs messages?: boolean | Prisma.Conversation$messagesArgs _count?: boolean | Prisma.ConversationCountOutputTypeDefaultArgs } export type ConversationIncludeCreateManyAndReturn = {} export type ConversationIncludeUpdateManyAndReturn = {} export type $ConversationPayload = { name: "Conversation" objects: { participants: Prisma.$ConversationParticipantPayload[] messages: Prisma.$MessagePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date }, ExtArgs["result"]["conversation"]> composites: {} } export type ConversationGetPayload = runtime.Types.Result.GetResult export type ConversationCountArgs = Omit & { select?: ConversationCountAggregateInputType | true } export interface ConversationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Conversation'], meta: { name: 'Conversation' } } /** * Find zero or one Conversation that matches the filter. * @param {ConversationFindUniqueArgs} args - Arguments to find a Conversation * @example * // Get one Conversation * const conversation = await prisma.conversation.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ConversationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Conversation that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ConversationFindUniqueOrThrowArgs} args - Arguments to find a Conversation * @example * // Get one Conversation * const conversation = await prisma.conversation.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ConversationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Conversation 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 {ConversationFindFirstArgs} args - Arguments to find a Conversation * @example * // Get one Conversation * const conversation = await prisma.conversation.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ConversationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Conversation 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 {ConversationFindFirstOrThrowArgs} args - Arguments to find a Conversation * @example * // Get one Conversation * const conversation = await prisma.conversation.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ConversationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Conversations 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 {ConversationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Conversations * const conversations = await prisma.conversation.findMany() * * // Get first 10 Conversations * const conversations = await prisma.conversation.findMany({ take: 10 }) * * // Only select the `id` * const conversationWithIdOnly = await prisma.conversation.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Conversation. * @param {ConversationCreateArgs} args - Arguments to create a Conversation. * @example * // Create one Conversation * const Conversation = await prisma.conversation.create({ * data: { * // ... data to create a Conversation * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ConversationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Conversations. * @param {ConversationCreateManyArgs} args - Arguments to create many Conversations. * @example * // Create many Conversations * const conversation = await prisma.conversation.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Conversations and returns the data saved in the database. * @param {ConversationCreateManyAndReturnArgs} args - Arguments to create many Conversations. * @example * // Create many Conversations * const conversation = await prisma.conversation.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Conversations and only return the `id` * const conversationWithIdOnly = await prisma.conversation.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 Conversation. * @param {ConversationDeleteArgs} args - Arguments to delete one Conversation. * @example * // Delete one Conversation * const Conversation = await prisma.conversation.delete({ * where: { * // ... filter to delete one Conversation * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ConversationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Conversation. * @param {ConversationUpdateArgs} args - Arguments to update one Conversation. * @example * // Update one Conversation * const conversation = await prisma.conversation.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ConversationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Conversations. * @param {ConversationDeleteManyArgs} args - Arguments to filter Conversations to delete. * @example * // Delete a few Conversations * const { count } = await prisma.conversation.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Conversations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ConversationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Conversations * const conversation = await prisma.conversation.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Conversations and returns the data updated in the database. * @param {ConversationUpdateManyAndReturnArgs} args - Arguments to update many Conversations. * @example * // Update many Conversations * const conversation = await prisma.conversation.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Conversations and only return the `id` * const conversationWithIdOnly = await prisma.conversation.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 Conversation. * @param {ConversationUpsertArgs} args - Arguments to update or create a Conversation. * @example * // Update or create a Conversation * const conversation = await prisma.conversation.upsert({ * create: { * // ... data to create a Conversation * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Conversation we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ConversationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Conversations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ConversationCountArgs} args - Arguments to filter Conversations to count. * @example * // Count the number of Conversations * const count = await prisma.conversation.count({ * where: { * // ... the filter for the Conversations 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 Conversation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ConversationAggregateArgs} 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 Conversation. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ConversationGroupByArgs} 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 ConversationGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ConversationGroupByArgs['orderBy'] } : { orderBy?: ConversationGroupByArgs['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 ? GetConversationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Conversation model */ readonly fields: ConversationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Conversation. * 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__ConversationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" participants = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> messages = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 Conversation model */ export interface ConversationFieldRefs { readonly id: Prisma.FieldRef<"Conversation", 'String'> readonly createdAt: Prisma.FieldRef<"Conversation", 'DateTime'> } // Custom InputTypes /** * Conversation findUnique */ export type ConversationFindUniqueArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null /** * Filter, which Conversation to fetch. */ where: Prisma.ConversationWhereUniqueInput } /** * Conversation findUniqueOrThrow */ export type ConversationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null /** * Filter, which Conversation to fetch. */ where: Prisma.ConversationWhereUniqueInput } /** * Conversation findFirst */ export type ConversationFindFirstArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null /** * Filter, which Conversation to fetch. */ where?: Prisma.ConversationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Conversations to fetch. */ orderBy?: Prisma.ConversationOrderByWithRelationInput | Prisma.ConversationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Conversations. */ cursor?: Prisma.ConversationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Conversations 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` Conversations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Conversations. */ distinct?: Prisma.ConversationScalarFieldEnum | Prisma.ConversationScalarFieldEnum[] } /** * Conversation findFirstOrThrow */ export type ConversationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null /** * Filter, which Conversation to fetch. */ where?: Prisma.ConversationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Conversations to fetch. */ orderBy?: Prisma.ConversationOrderByWithRelationInput | Prisma.ConversationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Conversations. */ cursor?: Prisma.ConversationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Conversations 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` Conversations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Conversations. */ distinct?: Prisma.ConversationScalarFieldEnum | Prisma.ConversationScalarFieldEnum[] } /** * Conversation findMany */ export type ConversationFindManyArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null /** * Filter, which Conversations to fetch. */ where?: Prisma.ConversationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Conversations to fetch. */ orderBy?: Prisma.ConversationOrderByWithRelationInput | Prisma.ConversationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Conversations. */ cursor?: Prisma.ConversationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Conversations 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` Conversations. */ skip?: number distinct?: Prisma.ConversationScalarFieldEnum | Prisma.ConversationScalarFieldEnum[] } /** * Conversation create */ export type ConversationCreateArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null /** * The data needed to create a Conversation. */ data?: Prisma.XOR } /** * Conversation createMany */ export type ConversationCreateManyArgs = { /** * The data used to create many Conversations. */ data: Prisma.ConversationCreateManyInput | Prisma.ConversationCreateManyInput[] } /** * Conversation createManyAndReturn */ export type ConversationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelectCreateManyAndReturn | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * The data used to create many Conversations. */ data: Prisma.ConversationCreateManyInput | Prisma.ConversationCreateManyInput[] } /** * Conversation update */ export type ConversationUpdateArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null /** * The data needed to update a Conversation. */ data: Prisma.XOR /** * Choose, which Conversation to update. */ where: Prisma.ConversationWhereUniqueInput } /** * Conversation updateMany */ export type ConversationUpdateManyArgs = { /** * The data used to update Conversations. */ data: Prisma.XOR /** * Filter which Conversations to update */ where?: Prisma.ConversationWhereInput /** * Limit how many Conversations to update. */ limit?: number } /** * Conversation updateManyAndReturn */ export type ConversationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * The data used to update Conversations. */ data: Prisma.XOR /** * Filter which Conversations to update */ where?: Prisma.ConversationWhereInput /** * Limit how many Conversations to update. */ limit?: number } /** * Conversation upsert */ export type ConversationUpsertArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null /** * The filter to search for the Conversation to update in case it exists. */ where: Prisma.ConversationWhereUniqueInput /** * In case the Conversation found by the `where` argument doesn't exist, create a new Conversation with this data. */ create: Prisma.XOR /** * In case the Conversation was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Conversation delete */ export type ConversationDeleteArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null /** * Filter which Conversation to delete. */ where: Prisma.ConversationWhereUniqueInput } /** * Conversation deleteMany */ export type ConversationDeleteManyArgs = { /** * Filter which Conversations to delete */ where?: Prisma.ConversationWhereInput /** * Limit how many Conversations to delete. */ limit?: number } /** * Conversation.participants */ export type Conversation$participantsArgs = { /** * Select specific fields to fetch from the ConversationParticipant */ select?: Prisma.ConversationParticipantSelect | null /** * Omit specific fields from the ConversationParticipant */ omit?: Prisma.ConversationParticipantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationParticipantInclude | null where?: Prisma.ConversationParticipantWhereInput orderBy?: Prisma.ConversationParticipantOrderByWithRelationInput | Prisma.ConversationParticipantOrderByWithRelationInput[] cursor?: Prisma.ConversationParticipantWhereUniqueInput take?: number skip?: number distinct?: Prisma.ConversationParticipantScalarFieldEnum | Prisma.ConversationParticipantScalarFieldEnum[] } /** * Conversation.messages */ export type Conversation$messagesArgs = { /** * Select specific fields to fetch from the Message */ select?: Prisma.MessageSelect | null /** * Omit specific fields from the Message */ omit?: Prisma.MessageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MessageInclude | null where?: Prisma.MessageWhereInput orderBy?: Prisma.MessageOrderByWithRelationInput | Prisma.MessageOrderByWithRelationInput[] cursor?: Prisma.MessageWhereUniqueInput take?: number skip?: number distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[] } /** * Conversation without action */ export type ConversationDefaultArgs = { /** * Select specific fields to fetch from the Conversation */ select?: Prisma.ConversationSelect | null /** * Omit specific fields from the Conversation */ omit?: Prisma.ConversationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ConversationInclude | null }