/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `SessionAnalysis` 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 SessionAnalysis * */ export type SessionAnalysisModel = runtime.Types.Result.DefaultSelection export type AggregateSessionAnalysis = { _count: SessionAnalysisCountAggregateOutputType | null _avg: SessionAnalysisAvgAggregateOutputType | null _sum: SessionAnalysisSumAggregateOutputType | null _min: SessionAnalysisMinAggregateOutputType | null _max: SessionAnalysisMaxAggregateOutputType | null } export type SessionAnalysisAvgAggregateOutputType = { totalMessages: number | null inputTokens: number | null outputTokens: number | null costUSD: number | null } export type SessionAnalysisSumAggregateOutputType = { totalMessages: number | null inputTokens: number | null outputTokens: number | null costUSD: number | null } export type SessionAnalysisMinAggregateOutputType = { id: string | null sessionId: string | null model: string | null classifications: string | null totalMessages: number | null inputTokens: number | null outputTokens: number | null costUSD: number | null analyzedAt: Date | null } export type SessionAnalysisMaxAggregateOutputType = { id: string | null sessionId: string | null model: string | null classifications: string | null totalMessages: number | null inputTokens: number | null outputTokens: number | null costUSD: number | null analyzedAt: Date | null } export type SessionAnalysisCountAggregateOutputType = { id: number sessionId: number model: number classifications: number totalMessages: number inputTokens: number outputTokens: number costUSD: number analyzedAt: number _all: number } export type SessionAnalysisAvgAggregateInputType = { totalMessages?: true inputTokens?: true outputTokens?: true costUSD?: true } export type SessionAnalysisSumAggregateInputType = { totalMessages?: true inputTokens?: true outputTokens?: true costUSD?: true } export type SessionAnalysisMinAggregateInputType = { id?: true sessionId?: true model?: true classifications?: true totalMessages?: true inputTokens?: true outputTokens?: true costUSD?: true analyzedAt?: true } export type SessionAnalysisMaxAggregateInputType = { id?: true sessionId?: true model?: true classifications?: true totalMessages?: true inputTokens?: true outputTokens?: true costUSD?: true analyzedAt?: true } export type SessionAnalysisCountAggregateInputType = { id?: true sessionId?: true model?: true classifications?: true totalMessages?: true inputTokens?: true outputTokens?: true costUSD?: true analyzedAt?: true _all?: true } export type SessionAnalysisAggregateArgs = { /** * Filter which SessionAnalysis to aggregate. */ where?: Prisma.SessionAnalysisWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SessionAnalyses to fetch. */ orderBy?: Prisma.SessionAnalysisOrderByWithRelationInput | Prisma.SessionAnalysisOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SessionAnalysisWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SessionAnalyses 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` SessionAnalyses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SessionAnalyses **/ _count?: true | SessionAnalysisCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SessionAnalysisAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SessionAnalysisSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SessionAnalysisMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SessionAnalysisMaxAggregateInputType } export type GetSessionAnalysisAggregateType = { [P in keyof T & keyof AggregateSessionAnalysis]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SessionAnalysisGroupByArgs = { where?: Prisma.SessionAnalysisWhereInput orderBy?: Prisma.SessionAnalysisOrderByWithAggregationInput | Prisma.SessionAnalysisOrderByWithAggregationInput[] by: Prisma.SessionAnalysisScalarFieldEnum[] | Prisma.SessionAnalysisScalarFieldEnum having?: Prisma.SessionAnalysisScalarWhereWithAggregatesInput take?: number skip?: number _count?: SessionAnalysisCountAggregateInputType | true _avg?: SessionAnalysisAvgAggregateInputType _sum?: SessionAnalysisSumAggregateInputType _min?: SessionAnalysisMinAggregateInputType _max?: SessionAnalysisMaxAggregateInputType } export type SessionAnalysisGroupByOutputType = { id: string sessionId: string model: string classifications: string totalMessages: number inputTokens: number outputTokens: number costUSD: number analyzedAt: Date _count: SessionAnalysisCountAggregateOutputType | null _avg: SessionAnalysisAvgAggregateOutputType | null _sum: SessionAnalysisSumAggregateOutputType | null _min: SessionAnalysisMinAggregateOutputType | null _max: SessionAnalysisMaxAggregateOutputType | null } export type GetSessionAnalysisGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SessionAnalysisGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SessionAnalysisWhereInput = { AND?: Prisma.SessionAnalysisWhereInput | Prisma.SessionAnalysisWhereInput[] OR?: Prisma.SessionAnalysisWhereInput[] NOT?: Prisma.SessionAnalysisWhereInput | Prisma.SessionAnalysisWhereInput[] id?: Prisma.StringFilter<"SessionAnalysis"> | string sessionId?: Prisma.StringFilter<"SessionAnalysis"> | string model?: Prisma.StringFilter<"SessionAnalysis"> | string classifications?: Prisma.StringFilter<"SessionAnalysis"> | string totalMessages?: Prisma.IntFilter<"SessionAnalysis"> | number inputTokens?: Prisma.IntFilter<"SessionAnalysis"> | number outputTokens?: Prisma.IntFilter<"SessionAnalysis"> | number costUSD?: Prisma.FloatFilter<"SessionAnalysis"> | number analyzedAt?: Prisma.DateTimeFilter<"SessionAnalysis"> | Date | string } export type SessionAnalysisOrderByWithRelationInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder model?: Prisma.SortOrder classifications?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder analyzedAt?: Prisma.SortOrder } export type SessionAnalysisWhereUniqueInput = Prisma.AtLeast<{ id?: string sessionId?: string AND?: Prisma.SessionAnalysisWhereInput | Prisma.SessionAnalysisWhereInput[] OR?: Prisma.SessionAnalysisWhereInput[] NOT?: Prisma.SessionAnalysisWhereInput | Prisma.SessionAnalysisWhereInput[] model?: Prisma.StringFilter<"SessionAnalysis"> | string classifications?: Prisma.StringFilter<"SessionAnalysis"> | string totalMessages?: Prisma.IntFilter<"SessionAnalysis"> | number inputTokens?: Prisma.IntFilter<"SessionAnalysis"> | number outputTokens?: Prisma.IntFilter<"SessionAnalysis"> | number costUSD?: Prisma.FloatFilter<"SessionAnalysis"> | number analyzedAt?: Prisma.DateTimeFilter<"SessionAnalysis"> | Date | string }, "id" | "sessionId"> export type SessionAnalysisOrderByWithAggregationInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder model?: Prisma.SortOrder classifications?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder analyzedAt?: Prisma.SortOrder _count?: Prisma.SessionAnalysisCountOrderByAggregateInput _avg?: Prisma.SessionAnalysisAvgOrderByAggregateInput _max?: Prisma.SessionAnalysisMaxOrderByAggregateInput _min?: Prisma.SessionAnalysisMinOrderByAggregateInput _sum?: Prisma.SessionAnalysisSumOrderByAggregateInput } export type SessionAnalysisScalarWhereWithAggregatesInput = { AND?: Prisma.SessionAnalysisScalarWhereWithAggregatesInput | Prisma.SessionAnalysisScalarWhereWithAggregatesInput[] OR?: Prisma.SessionAnalysisScalarWhereWithAggregatesInput[] NOT?: Prisma.SessionAnalysisScalarWhereWithAggregatesInput | Prisma.SessionAnalysisScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"SessionAnalysis"> | string sessionId?: Prisma.StringWithAggregatesFilter<"SessionAnalysis"> | string model?: Prisma.StringWithAggregatesFilter<"SessionAnalysis"> | string classifications?: Prisma.StringWithAggregatesFilter<"SessionAnalysis"> | string totalMessages?: Prisma.IntWithAggregatesFilter<"SessionAnalysis"> | number inputTokens?: Prisma.IntWithAggregatesFilter<"SessionAnalysis"> | number outputTokens?: Prisma.IntWithAggregatesFilter<"SessionAnalysis"> | number costUSD?: Prisma.FloatWithAggregatesFilter<"SessionAnalysis"> | number analyzedAt?: Prisma.DateTimeWithAggregatesFilter<"SessionAnalysis"> | Date | string } export type SessionAnalysisCreateInput = { id?: string sessionId: string model: string classifications: string totalMessages: number inputTokens: number outputTokens: number costUSD: number analyzedAt?: Date | string } export type SessionAnalysisUncheckedCreateInput = { id?: string sessionId: string model: string classifications: string totalMessages: number inputTokens: number outputTokens: number costUSD: number analyzedAt?: Date | string } export type SessionAnalysisUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string model?: Prisma.StringFieldUpdateOperationsInput | string classifications?: Prisma.StringFieldUpdateOperationsInput | string totalMessages?: Prisma.IntFieldUpdateOperationsInput | number inputTokens?: Prisma.IntFieldUpdateOperationsInput | number outputTokens?: Prisma.IntFieldUpdateOperationsInput | number costUSD?: Prisma.FloatFieldUpdateOperationsInput | number analyzedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionAnalysisUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string model?: Prisma.StringFieldUpdateOperationsInput | string classifications?: Prisma.StringFieldUpdateOperationsInput | string totalMessages?: Prisma.IntFieldUpdateOperationsInput | number inputTokens?: Prisma.IntFieldUpdateOperationsInput | number outputTokens?: Prisma.IntFieldUpdateOperationsInput | number costUSD?: Prisma.FloatFieldUpdateOperationsInput | number analyzedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionAnalysisCreateManyInput = { id?: string sessionId: string model: string classifications: string totalMessages: number inputTokens: number outputTokens: number costUSD: number analyzedAt?: Date | string } export type SessionAnalysisUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string model?: Prisma.StringFieldUpdateOperationsInput | string classifications?: Prisma.StringFieldUpdateOperationsInput | string totalMessages?: Prisma.IntFieldUpdateOperationsInput | number inputTokens?: Prisma.IntFieldUpdateOperationsInput | number outputTokens?: Prisma.IntFieldUpdateOperationsInput | number costUSD?: Prisma.FloatFieldUpdateOperationsInput | number analyzedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionAnalysisUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string model?: Prisma.StringFieldUpdateOperationsInput | string classifications?: Prisma.StringFieldUpdateOperationsInput | string totalMessages?: Prisma.IntFieldUpdateOperationsInput | number inputTokens?: Prisma.IntFieldUpdateOperationsInput | number outputTokens?: Prisma.IntFieldUpdateOperationsInput | number costUSD?: Prisma.FloatFieldUpdateOperationsInput | number analyzedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionAnalysisCountOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder model?: Prisma.SortOrder classifications?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder analyzedAt?: Prisma.SortOrder } export type SessionAnalysisAvgOrderByAggregateInput = { totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder } export type SessionAnalysisMaxOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder model?: Prisma.SortOrder classifications?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder analyzedAt?: Prisma.SortOrder } export type SessionAnalysisMinOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder model?: Prisma.SortOrder classifications?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder analyzedAt?: Prisma.SortOrder } export type SessionAnalysisSumOrderByAggregateInput = { totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder } export type SessionAnalysisSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean model?: boolean classifications?: boolean totalMessages?: boolean inputTokens?: boolean outputTokens?: boolean costUSD?: boolean analyzedAt?: boolean }, ExtArgs["result"]["sessionAnalysis"]> export type SessionAnalysisSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean model?: boolean classifications?: boolean totalMessages?: boolean inputTokens?: boolean outputTokens?: boolean costUSD?: boolean analyzedAt?: boolean }, ExtArgs["result"]["sessionAnalysis"]> export type SessionAnalysisSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean model?: boolean classifications?: boolean totalMessages?: boolean inputTokens?: boolean outputTokens?: boolean costUSD?: boolean analyzedAt?: boolean }, ExtArgs["result"]["sessionAnalysis"]> export type SessionAnalysisSelectScalar = { id?: boolean sessionId?: boolean model?: boolean classifications?: boolean totalMessages?: boolean inputTokens?: boolean outputTokens?: boolean costUSD?: boolean analyzedAt?: boolean } export type SessionAnalysisOmit = runtime.Types.Extensions.GetOmit<"id" | "sessionId" | "model" | "classifications" | "totalMessages" | "inputTokens" | "outputTokens" | "costUSD" | "analyzedAt", ExtArgs["result"]["sessionAnalysis"]> export type $SessionAnalysisPayload = { name: "SessionAnalysis" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string sessionId: string model: string classifications: string totalMessages: number inputTokens: number outputTokens: number costUSD: number analyzedAt: Date }, ExtArgs["result"]["sessionAnalysis"]> composites: {} } export type SessionAnalysisGetPayload = runtime.Types.Result.GetResult export type SessionAnalysisCountArgs = Omit & { select?: SessionAnalysisCountAggregateInputType | true } export interface SessionAnalysisDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SessionAnalysis'], meta: { name: 'SessionAnalysis' } } /** * Find zero or one SessionAnalysis that matches the filter. * @param {SessionAnalysisFindUniqueArgs} args - Arguments to find a SessionAnalysis * @example * // Get one SessionAnalysis * const sessionAnalysis = await prisma.sessionAnalysis.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SessionAnalysisClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SessionAnalysis that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SessionAnalysisFindUniqueOrThrowArgs} args - Arguments to find a SessionAnalysis * @example * // Get one SessionAnalysis * const sessionAnalysis = await prisma.sessionAnalysis.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SessionAnalysisClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SessionAnalysis 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 {SessionAnalysisFindFirstArgs} args - Arguments to find a SessionAnalysis * @example * // Get one SessionAnalysis * const sessionAnalysis = await prisma.sessionAnalysis.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionAnalysisClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SessionAnalysis 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 {SessionAnalysisFindFirstOrThrowArgs} args - Arguments to find a SessionAnalysis * @example * // Get one SessionAnalysis * const sessionAnalysis = await prisma.sessionAnalysis.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionAnalysisClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SessionAnalyses 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 {SessionAnalysisFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SessionAnalyses * const sessionAnalyses = await prisma.sessionAnalysis.findMany() * * // Get first 10 SessionAnalyses * const sessionAnalyses = await prisma.sessionAnalysis.findMany({ take: 10 }) * * // Only select the `id` * const sessionAnalysisWithIdOnly = await prisma.sessionAnalysis.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a SessionAnalysis. * @param {SessionAnalysisCreateArgs} args - Arguments to create a SessionAnalysis. * @example * // Create one SessionAnalysis * const SessionAnalysis = await prisma.sessionAnalysis.create({ * data: { * // ... data to create a SessionAnalysis * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SessionAnalysisClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SessionAnalyses. * @param {SessionAnalysisCreateManyArgs} args - Arguments to create many SessionAnalyses. * @example * // Create many SessionAnalyses * const sessionAnalysis = await prisma.sessionAnalysis.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many SessionAnalyses and returns the data saved in the database. * @param {SessionAnalysisCreateManyAndReturnArgs} args - Arguments to create many SessionAnalyses. * @example * // Create many SessionAnalyses * const sessionAnalysis = await prisma.sessionAnalysis.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SessionAnalyses and only return the `id` * const sessionAnalysisWithIdOnly = await prisma.sessionAnalysis.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 SessionAnalysis. * @param {SessionAnalysisDeleteArgs} args - Arguments to delete one SessionAnalysis. * @example * // Delete one SessionAnalysis * const SessionAnalysis = await prisma.sessionAnalysis.delete({ * where: { * // ... filter to delete one SessionAnalysis * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SessionAnalysisClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SessionAnalysis. * @param {SessionAnalysisUpdateArgs} args - Arguments to update one SessionAnalysis. * @example * // Update one SessionAnalysis * const sessionAnalysis = await prisma.sessionAnalysis.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SessionAnalysisClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SessionAnalyses. * @param {SessionAnalysisDeleteManyArgs} args - Arguments to filter SessionAnalyses to delete. * @example * // Delete a few SessionAnalyses * const { count } = await prisma.sessionAnalysis.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SessionAnalyses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionAnalysisUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SessionAnalyses * const sessionAnalysis = await prisma.sessionAnalysis.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SessionAnalyses and returns the data updated in the database. * @param {SessionAnalysisUpdateManyAndReturnArgs} args - Arguments to update many SessionAnalyses. * @example * // Update many SessionAnalyses * const sessionAnalysis = await prisma.sessionAnalysis.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SessionAnalyses and only return the `id` * const sessionAnalysisWithIdOnly = await prisma.sessionAnalysis.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 SessionAnalysis. * @param {SessionAnalysisUpsertArgs} args - Arguments to update or create a SessionAnalysis. * @example * // Update or create a SessionAnalysis * const sessionAnalysis = await prisma.sessionAnalysis.upsert({ * create: { * // ... data to create a SessionAnalysis * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SessionAnalysis we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SessionAnalysisClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SessionAnalyses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionAnalysisCountArgs} args - Arguments to filter SessionAnalyses to count. * @example * // Count the number of SessionAnalyses * const count = await prisma.sessionAnalysis.count({ * where: { * // ... the filter for the SessionAnalyses 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 SessionAnalysis. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionAnalysisAggregateArgs} 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 SessionAnalysis. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionAnalysisGroupByArgs} 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 SessionAnalysisGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SessionAnalysisGroupByArgs['orderBy'] } : { orderBy?: SessionAnalysisGroupByArgs['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 ? GetSessionAnalysisGroupByPayload : Prisma.PrismaPromise /** * Fields of the SessionAnalysis model */ readonly fields: SessionAnalysisFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SessionAnalysis. * 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__SessionAnalysisClient 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 SessionAnalysis model */ export interface SessionAnalysisFieldRefs { readonly id: Prisma.FieldRef<"SessionAnalysis", 'String'> readonly sessionId: Prisma.FieldRef<"SessionAnalysis", 'String'> readonly model: Prisma.FieldRef<"SessionAnalysis", 'String'> readonly classifications: Prisma.FieldRef<"SessionAnalysis", 'String'> readonly totalMessages: Prisma.FieldRef<"SessionAnalysis", 'Int'> readonly inputTokens: Prisma.FieldRef<"SessionAnalysis", 'Int'> readonly outputTokens: Prisma.FieldRef<"SessionAnalysis", 'Int'> readonly costUSD: Prisma.FieldRef<"SessionAnalysis", 'Float'> readonly analyzedAt: Prisma.FieldRef<"SessionAnalysis", 'DateTime'> } // Custom InputTypes /** * SessionAnalysis findUnique */ export type SessionAnalysisFindUniqueArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * Filter, which SessionAnalysis to fetch. */ where: Prisma.SessionAnalysisWhereUniqueInput } /** * SessionAnalysis findUniqueOrThrow */ export type SessionAnalysisFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * Filter, which SessionAnalysis to fetch. */ where: Prisma.SessionAnalysisWhereUniqueInput } /** * SessionAnalysis findFirst */ export type SessionAnalysisFindFirstArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * Filter, which SessionAnalysis to fetch. */ where?: Prisma.SessionAnalysisWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SessionAnalyses to fetch. */ orderBy?: Prisma.SessionAnalysisOrderByWithRelationInput | Prisma.SessionAnalysisOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SessionAnalyses. */ cursor?: Prisma.SessionAnalysisWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SessionAnalyses 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` SessionAnalyses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SessionAnalyses. */ distinct?: Prisma.SessionAnalysisScalarFieldEnum | Prisma.SessionAnalysisScalarFieldEnum[] } /** * SessionAnalysis findFirstOrThrow */ export type SessionAnalysisFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * Filter, which SessionAnalysis to fetch. */ where?: Prisma.SessionAnalysisWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SessionAnalyses to fetch. */ orderBy?: Prisma.SessionAnalysisOrderByWithRelationInput | Prisma.SessionAnalysisOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SessionAnalyses. */ cursor?: Prisma.SessionAnalysisWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SessionAnalyses 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` SessionAnalyses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SessionAnalyses. */ distinct?: Prisma.SessionAnalysisScalarFieldEnum | Prisma.SessionAnalysisScalarFieldEnum[] } /** * SessionAnalysis findMany */ export type SessionAnalysisFindManyArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * Filter, which SessionAnalyses to fetch. */ where?: Prisma.SessionAnalysisWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SessionAnalyses to fetch. */ orderBy?: Prisma.SessionAnalysisOrderByWithRelationInput | Prisma.SessionAnalysisOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SessionAnalyses. */ cursor?: Prisma.SessionAnalysisWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SessionAnalyses 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` SessionAnalyses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SessionAnalyses. */ distinct?: Prisma.SessionAnalysisScalarFieldEnum | Prisma.SessionAnalysisScalarFieldEnum[] } /** * SessionAnalysis create */ export type SessionAnalysisCreateArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * The data needed to create a SessionAnalysis. */ data: Prisma.XOR } /** * SessionAnalysis createMany */ export type SessionAnalysisCreateManyArgs = { /** * The data used to create many SessionAnalyses. */ data: Prisma.SessionAnalysisCreateManyInput | Prisma.SessionAnalysisCreateManyInput[] } /** * SessionAnalysis createManyAndReturn */ export type SessionAnalysisCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelectCreateManyAndReturn | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * The data used to create many SessionAnalyses. */ data: Prisma.SessionAnalysisCreateManyInput | Prisma.SessionAnalysisCreateManyInput[] } /** * SessionAnalysis update */ export type SessionAnalysisUpdateArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * The data needed to update a SessionAnalysis. */ data: Prisma.XOR /** * Choose, which SessionAnalysis to update. */ where: Prisma.SessionAnalysisWhereUniqueInput } /** * SessionAnalysis updateMany */ export type SessionAnalysisUpdateManyArgs = { /** * The data used to update SessionAnalyses. */ data: Prisma.XOR /** * Filter which SessionAnalyses to update */ where?: Prisma.SessionAnalysisWhereInput /** * Limit how many SessionAnalyses to update. */ limit?: number } /** * SessionAnalysis updateManyAndReturn */ export type SessionAnalysisUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelectUpdateManyAndReturn | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * The data used to update SessionAnalyses. */ data: Prisma.XOR /** * Filter which SessionAnalyses to update */ where?: Prisma.SessionAnalysisWhereInput /** * Limit how many SessionAnalyses to update. */ limit?: number } /** * SessionAnalysis upsert */ export type SessionAnalysisUpsertArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * The filter to search for the SessionAnalysis to update in case it exists. */ where: Prisma.SessionAnalysisWhereUniqueInput /** * In case the SessionAnalysis found by the `where` argument doesn't exist, create a new SessionAnalysis with this data. */ create: Prisma.XOR /** * In case the SessionAnalysis was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SessionAnalysis delete */ export type SessionAnalysisDeleteArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null /** * Filter which SessionAnalysis to delete. */ where: Prisma.SessionAnalysisWhereUniqueInput } /** * SessionAnalysis deleteMany */ export type SessionAnalysisDeleteManyArgs = { /** * Filter which SessionAnalyses to delete */ where?: Prisma.SessionAnalysisWhereInput /** * Limit how many SessionAnalyses to delete. */ limit?: number } /** * SessionAnalysis without action */ export type SessionAnalysisDefaultArgs = { /** * Select specific fields to fetch from the SessionAnalysis */ select?: Prisma.SessionAnalysisSelect | null /** * Omit specific fields from the SessionAnalysis */ omit?: Prisma.SessionAnalysisOmit | null }