/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Session` 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 Session * */ export type SessionModel = runtime.Types.Result.DefaultSelection export type AggregateSession = { _count: SessionCountAggregateOutputType | null _avg: SessionAvgAggregateOutputType | null _sum: SessionSumAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } export type SessionAvgAggregateOutputType = { durationMinutes: number | null userMessages: number | null assistantMessages: number | null totalMessages: number | null inputTokens: number | null outputTokens: number | null cacheCreationTokens: number | null cacheReadTokens: number | null totalTokens: number | null costUSD: number | null toolCallsTotal: number | null apiErrors: number | null rateLimitErrors: number | null userInterruptions: number | null systemPromptEdits: number | null } export type SessionSumAggregateOutputType = { durationMinutes: number | null userMessages: number | null assistantMessages: number | null totalMessages: number | null inputTokens: number | null outputTokens: number | null cacheCreationTokens: number | null cacheReadTokens: number | null totalTokens: number | null costUSD: number | null toolCallsTotal: number | null apiErrors: number | null rateLimitErrors: number | null userInterruptions: number | null systemPromptEdits: number | null } export type SessionMinAggregateOutputType = { id: string | null sessionId: string | null project: string | null projectPath: string | null startTime: Date | null endTime: Date | null durationMinutes: number | null userMessages: number | null assistantMessages: number | null totalMessages: number | null inputTokens: number | null outputTokens: number | null cacheCreationTokens: number | null cacheReadTokens: number | null totalTokens: number | null costUSD: number | null model: string | null toolCallsTotal: number | null toolCallsJson: string | null skillCallsJson: string | null messageTimestamps: string | null apiErrors: number | null rateLimitErrors: number | null userInterruptions: number | null permissionModesJson: string | null systemPromptEdits: number | null cliVersion: string | null modelCountsJson: string | null createdAt: Date | null } export type SessionMaxAggregateOutputType = { id: string | null sessionId: string | null project: string | null projectPath: string | null startTime: Date | null endTime: Date | null durationMinutes: number | null userMessages: number | null assistantMessages: number | null totalMessages: number | null inputTokens: number | null outputTokens: number | null cacheCreationTokens: number | null cacheReadTokens: number | null totalTokens: number | null costUSD: number | null model: string | null toolCallsTotal: number | null toolCallsJson: string | null skillCallsJson: string | null messageTimestamps: string | null apiErrors: number | null rateLimitErrors: number | null userInterruptions: number | null permissionModesJson: string | null systemPromptEdits: number | null cliVersion: string | null modelCountsJson: string | null createdAt: Date | null } export type SessionCountAggregateOutputType = { id: number sessionId: number project: number projectPath: number startTime: number endTime: number durationMinutes: number userMessages: number assistantMessages: number totalMessages: number inputTokens: number outputTokens: number cacheCreationTokens: number cacheReadTokens: number totalTokens: number costUSD: number model: number toolCallsTotal: number toolCallsJson: number skillCallsJson: number messageTimestamps: number apiErrors: number rateLimitErrors: number userInterruptions: number permissionModesJson: number systemPromptEdits: number cliVersion: number modelCountsJson: number createdAt: number _all: number } export type SessionAvgAggregateInputType = { durationMinutes?: true userMessages?: true assistantMessages?: true totalMessages?: true inputTokens?: true outputTokens?: true cacheCreationTokens?: true cacheReadTokens?: true totalTokens?: true costUSD?: true toolCallsTotal?: true apiErrors?: true rateLimitErrors?: true userInterruptions?: true systemPromptEdits?: true } export type SessionSumAggregateInputType = { durationMinutes?: true userMessages?: true assistantMessages?: true totalMessages?: true inputTokens?: true outputTokens?: true cacheCreationTokens?: true cacheReadTokens?: true totalTokens?: true costUSD?: true toolCallsTotal?: true apiErrors?: true rateLimitErrors?: true userInterruptions?: true systemPromptEdits?: true } export type SessionMinAggregateInputType = { id?: true sessionId?: true project?: true projectPath?: true startTime?: true endTime?: true durationMinutes?: true userMessages?: true assistantMessages?: true totalMessages?: true inputTokens?: true outputTokens?: true cacheCreationTokens?: true cacheReadTokens?: true totalTokens?: true costUSD?: true model?: true toolCallsTotal?: true toolCallsJson?: true skillCallsJson?: true messageTimestamps?: true apiErrors?: true rateLimitErrors?: true userInterruptions?: true permissionModesJson?: true systemPromptEdits?: true cliVersion?: true modelCountsJson?: true createdAt?: true } export type SessionMaxAggregateInputType = { id?: true sessionId?: true project?: true projectPath?: true startTime?: true endTime?: true durationMinutes?: true userMessages?: true assistantMessages?: true totalMessages?: true inputTokens?: true outputTokens?: true cacheCreationTokens?: true cacheReadTokens?: true totalTokens?: true costUSD?: true model?: true toolCallsTotal?: true toolCallsJson?: true skillCallsJson?: true messageTimestamps?: true apiErrors?: true rateLimitErrors?: true userInterruptions?: true permissionModesJson?: true systemPromptEdits?: true cliVersion?: true modelCountsJson?: true createdAt?: true } export type SessionCountAggregateInputType = { id?: true sessionId?: true project?: true projectPath?: true startTime?: true endTime?: true durationMinutes?: true userMessages?: true assistantMessages?: true totalMessages?: true inputTokens?: true outputTokens?: true cacheCreationTokens?: true cacheReadTokens?: true totalTokens?: true costUSD?: true model?: true toolCallsTotal?: true toolCallsJson?: true skillCallsJson?: true messageTimestamps?: true apiErrors?: true rateLimitErrors?: true userInterruptions?: true permissionModesJson?: true systemPromptEdits?: true cliVersion?: true modelCountsJson?: true createdAt?: true _all?: true } export type SessionAggregateArgs = { /** * Filter which Session to aggregate. */ where?: Prisma.SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions 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` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Sessions **/ _count?: true | SessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SessionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SessionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SessionMaxAggregateInputType } export type GetSessionAggregateType = { [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SessionGroupByArgs = { where?: Prisma.SessionWhereInput orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[] by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum having?: Prisma.SessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: SessionCountAggregateInputType | true _avg?: SessionAvgAggregateInputType _sum?: SessionSumAggregateInputType _min?: SessionMinAggregateInputType _max?: SessionMaxAggregateInputType } export type SessionGroupByOutputType = { id: string sessionId: string project: string projectPath: string startTime: Date endTime: Date durationMinutes: number userMessages: number assistantMessages: number totalMessages: number inputTokens: number outputTokens: number cacheCreationTokens: number cacheReadTokens: number totalTokens: number costUSD: number model: string toolCallsTotal: number toolCallsJson: string skillCallsJson: string messageTimestamps: string apiErrors: number rateLimitErrors: number userInterruptions: number permissionModesJson: string systemPromptEdits: number cliVersion: string modelCountsJson: string createdAt: Date _count: SessionCountAggregateOutputType | null _avg: SessionAvgAggregateOutputType | null _sum: SessionSumAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } export type GetSessionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SessionWhereInput = { AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] OR?: Prisma.SessionWhereInput[] NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] id?: Prisma.StringFilter<"Session"> | string sessionId?: Prisma.StringFilter<"Session"> | string project?: Prisma.StringFilter<"Session"> | string projectPath?: Prisma.StringFilter<"Session"> | string startTime?: Prisma.DateTimeFilter<"Session"> | Date | string endTime?: Prisma.DateTimeFilter<"Session"> | Date | string durationMinutes?: Prisma.FloatFilter<"Session"> | number userMessages?: Prisma.IntFilter<"Session"> | number assistantMessages?: Prisma.IntFilter<"Session"> | number totalMessages?: Prisma.IntFilter<"Session"> | number inputTokens?: Prisma.IntFilter<"Session"> | number outputTokens?: Prisma.IntFilter<"Session"> | number cacheCreationTokens?: Prisma.IntFilter<"Session"> | number cacheReadTokens?: Prisma.IntFilter<"Session"> | number totalTokens?: Prisma.IntFilter<"Session"> | number costUSD?: Prisma.FloatFilter<"Session"> | number model?: Prisma.StringFilter<"Session"> | string toolCallsTotal?: Prisma.IntFilter<"Session"> | number toolCallsJson?: Prisma.StringFilter<"Session"> | string skillCallsJson?: Prisma.StringFilter<"Session"> | string messageTimestamps?: Prisma.StringFilter<"Session"> | string apiErrors?: Prisma.IntFilter<"Session"> | number rateLimitErrors?: Prisma.IntFilter<"Session"> | number userInterruptions?: Prisma.IntFilter<"Session"> | number permissionModesJson?: Prisma.StringFilter<"Session"> | string systemPromptEdits?: Prisma.IntFilter<"Session"> | number cliVersion?: Prisma.StringFilter<"Session"> | string modelCountsJson?: Prisma.StringFilter<"Session"> | string createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string } export type SessionOrderByWithRelationInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder project?: Prisma.SortOrder projectPath?: Prisma.SortOrder startTime?: Prisma.SortOrder endTime?: Prisma.SortOrder durationMinutes?: Prisma.SortOrder userMessages?: Prisma.SortOrder assistantMessages?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder cacheCreationTokens?: Prisma.SortOrder cacheReadTokens?: Prisma.SortOrder totalTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder model?: Prisma.SortOrder toolCallsTotal?: Prisma.SortOrder toolCallsJson?: Prisma.SortOrder skillCallsJson?: Prisma.SortOrder messageTimestamps?: Prisma.SortOrder apiErrors?: Prisma.SortOrder rateLimitErrors?: Prisma.SortOrder userInterruptions?: Prisma.SortOrder permissionModesJson?: Prisma.SortOrder systemPromptEdits?: Prisma.SortOrder cliVersion?: Prisma.SortOrder modelCountsJson?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type SessionWhereUniqueInput = Prisma.AtLeast<{ id?: string sessionId?: string AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] OR?: Prisma.SessionWhereInput[] NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] project?: Prisma.StringFilter<"Session"> | string projectPath?: Prisma.StringFilter<"Session"> | string startTime?: Prisma.DateTimeFilter<"Session"> | Date | string endTime?: Prisma.DateTimeFilter<"Session"> | Date | string durationMinutes?: Prisma.FloatFilter<"Session"> | number userMessages?: Prisma.IntFilter<"Session"> | number assistantMessages?: Prisma.IntFilter<"Session"> | number totalMessages?: Prisma.IntFilter<"Session"> | number inputTokens?: Prisma.IntFilter<"Session"> | number outputTokens?: Prisma.IntFilter<"Session"> | number cacheCreationTokens?: Prisma.IntFilter<"Session"> | number cacheReadTokens?: Prisma.IntFilter<"Session"> | number totalTokens?: Prisma.IntFilter<"Session"> | number costUSD?: Prisma.FloatFilter<"Session"> | number model?: Prisma.StringFilter<"Session"> | string toolCallsTotal?: Prisma.IntFilter<"Session"> | number toolCallsJson?: Prisma.StringFilter<"Session"> | string skillCallsJson?: Prisma.StringFilter<"Session"> | string messageTimestamps?: Prisma.StringFilter<"Session"> | string apiErrors?: Prisma.IntFilter<"Session"> | number rateLimitErrors?: Prisma.IntFilter<"Session"> | number userInterruptions?: Prisma.IntFilter<"Session"> | number permissionModesJson?: Prisma.StringFilter<"Session"> | string systemPromptEdits?: Prisma.IntFilter<"Session"> | number cliVersion?: Prisma.StringFilter<"Session"> | string modelCountsJson?: Prisma.StringFilter<"Session"> | string createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string }, "id" | "sessionId"> export type SessionOrderByWithAggregationInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder project?: Prisma.SortOrder projectPath?: Prisma.SortOrder startTime?: Prisma.SortOrder endTime?: Prisma.SortOrder durationMinutes?: Prisma.SortOrder userMessages?: Prisma.SortOrder assistantMessages?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder cacheCreationTokens?: Prisma.SortOrder cacheReadTokens?: Prisma.SortOrder totalTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder model?: Prisma.SortOrder toolCallsTotal?: Prisma.SortOrder toolCallsJson?: Prisma.SortOrder skillCallsJson?: Prisma.SortOrder messageTimestamps?: Prisma.SortOrder apiErrors?: Prisma.SortOrder rateLimitErrors?: Prisma.SortOrder userInterruptions?: Prisma.SortOrder permissionModesJson?: Prisma.SortOrder systemPromptEdits?: Prisma.SortOrder cliVersion?: Prisma.SortOrder modelCountsJson?: Prisma.SortOrder createdAt?: Prisma.SortOrder _count?: Prisma.SessionCountOrderByAggregateInput _avg?: Prisma.SessionAvgOrderByAggregateInput _max?: Prisma.SessionMaxOrderByAggregateInput _min?: Prisma.SessionMinOrderByAggregateInput _sum?: Prisma.SessionSumOrderByAggregateInput } export type SessionScalarWhereWithAggregatesInput = { AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] OR?: Prisma.SessionScalarWhereWithAggregatesInput[] NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Session"> | string sessionId?: Prisma.StringWithAggregatesFilter<"Session"> | string project?: Prisma.StringWithAggregatesFilter<"Session"> | string projectPath?: Prisma.StringWithAggregatesFilter<"Session"> | string startTime?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string endTime?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string durationMinutes?: Prisma.FloatWithAggregatesFilter<"Session"> | number userMessages?: Prisma.IntWithAggregatesFilter<"Session"> | number assistantMessages?: Prisma.IntWithAggregatesFilter<"Session"> | number totalMessages?: Prisma.IntWithAggregatesFilter<"Session"> | number inputTokens?: Prisma.IntWithAggregatesFilter<"Session"> | number outputTokens?: Prisma.IntWithAggregatesFilter<"Session"> | number cacheCreationTokens?: Prisma.IntWithAggregatesFilter<"Session"> | number cacheReadTokens?: Prisma.IntWithAggregatesFilter<"Session"> | number totalTokens?: Prisma.IntWithAggregatesFilter<"Session"> | number costUSD?: Prisma.FloatWithAggregatesFilter<"Session"> | number model?: Prisma.StringWithAggregatesFilter<"Session"> | string toolCallsTotal?: Prisma.IntWithAggregatesFilter<"Session"> | number toolCallsJson?: Prisma.StringWithAggregatesFilter<"Session"> | string skillCallsJson?: Prisma.StringWithAggregatesFilter<"Session"> | string messageTimestamps?: Prisma.StringWithAggregatesFilter<"Session"> | string apiErrors?: Prisma.IntWithAggregatesFilter<"Session"> | number rateLimitErrors?: Prisma.IntWithAggregatesFilter<"Session"> | number userInterruptions?: Prisma.IntWithAggregatesFilter<"Session"> | number permissionModesJson?: Prisma.StringWithAggregatesFilter<"Session"> | string systemPromptEdits?: Prisma.IntWithAggregatesFilter<"Session"> | number cliVersion?: Prisma.StringWithAggregatesFilter<"Session"> | string modelCountsJson?: Prisma.StringWithAggregatesFilter<"Session"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string } export type SessionCreateInput = { id?: string sessionId: string project: string projectPath: string startTime: Date | string endTime: Date | string durationMinutes: number userMessages: number assistantMessages: number totalMessages: number inputTokens: number outputTokens: number cacheCreationTokens: number cacheReadTokens: number totalTokens: number costUSD: number model: string toolCallsTotal: number toolCallsJson: string skillCallsJson?: string messageTimestamps?: string apiErrors?: number rateLimitErrors?: number userInterruptions?: number permissionModesJson?: string systemPromptEdits?: number cliVersion?: string modelCountsJson?: string createdAt?: Date | string } export type SessionUncheckedCreateInput = { id?: string sessionId: string project: string projectPath: string startTime: Date | string endTime: Date | string durationMinutes: number userMessages: number assistantMessages: number totalMessages: number inputTokens: number outputTokens: number cacheCreationTokens: number cacheReadTokens: number totalTokens: number costUSD: number model: string toolCallsTotal: number toolCallsJson: string skillCallsJson?: string messageTimestamps?: string apiErrors?: number rateLimitErrors?: number userInterruptions?: number permissionModesJson?: string systemPromptEdits?: number cliVersion?: string modelCountsJson?: string createdAt?: Date | string } export type SessionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string project?: Prisma.StringFieldUpdateOperationsInput | string projectPath?: Prisma.StringFieldUpdateOperationsInput | string startTime?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endTime?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string durationMinutes?: Prisma.FloatFieldUpdateOperationsInput | number userMessages?: Prisma.IntFieldUpdateOperationsInput | number assistantMessages?: Prisma.IntFieldUpdateOperationsInput | number totalMessages?: Prisma.IntFieldUpdateOperationsInput | number inputTokens?: Prisma.IntFieldUpdateOperationsInput | number outputTokens?: Prisma.IntFieldUpdateOperationsInput | number cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number totalTokens?: Prisma.IntFieldUpdateOperationsInput | number costUSD?: Prisma.FloatFieldUpdateOperationsInput | number model?: Prisma.StringFieldUpdateOperationsInput | string toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string apiErrors?: Prisma.IntFieldUpdateOperationsInput | number rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string systemPromptEdits?: Prisma.IntFieldUpdateOperationsInput | number cliVersion?: Prisma.StringFieldUpdateOperationsInput | string modelCountsJson?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string project?: Prisma.StringFieldUpdateOperationsInput | string projectPath?: Prisma.StringFieldUpdateOperationsInput | string startTime?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endTime?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string durationMinutes?: Prisma.FloatFieldUpdateOperationsInput | number userMessages?: Prisma.IntFieldUpdateOperationsInput | number assistantMessages?: Prisma.IntFieldUpdateOperationsInput | number totalMessages?: Prisma.IntFieldUpdateOperationsInput | number inputTokens?: Prisma.IntFieldUpdateOperationsInput | number outputTokens?: Prisma.IntFieldUpdateOperationsInput | number cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number totalTokens?: Prisma.IntFieldUpdateOperationsInput | number costUSD?: Prisma.FloatFieldUpdateOperationsInput | number model?: Prisma.StringFieldUpdateOperationsInput | string toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string apiErrors?: Prisma.IntFieldUpdateOperationsInput | number rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string systemPromptEdits?: Prisma.IntFieldUpdateOperationsInput | number cliVersion?: Prisma.StringFieldUpdateOperationsInput | string modelCountsJson?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionCreateManyInput = { id?: string sessionId: string project: string projectPath: string startTime: Date | string endTime: Date | string durationMinutes: number userMessages: number assistantMessages: number totalMessages: number inputTokens: number outputTokens: number cacheCreationTokens: number cacheReadTokens: number totalTokens: number costUSD: number model: string toolCallsTotal: number toolCallsJson: string skillCallsJson?: string messageTimestamps?: string apiErrors?: number rateLimitErrors?: number userInterruptions?: number permissionModesJson?: string systemPromptEdits?: number cliVersion?: string modelCountsJson?: string createdAt?: Date | string } export type SessionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string project?: Prisma.StringFieldUpdateOperationsInput | string projectPath?: Prisma.StringFieldUpdateOperationsInput | string startTime?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endTime?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string durationMinutes?: Prisma.FloatFieldUpdateOperationsInput | number userMessages?: Prisma.IntFieldUpdateOperationsInput | number assistantMessages?: Prisma.IntFieldUpdateOperationsInput | number totalMessages?: Prisma.IntFieldUpdateOperationsInput | number inputTokens?: Prisma.IntFieldUpdateOperationsInput | number outputTokens?: Prisma.IntFieldUpdateOperationsInput | number cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number totalTokens?: Prisma.IntFieldUpdateOperationsInput | number costUSD?: Prisma.FloatFieldUpdateOperationsInput | number model?: Prisma.StringFieldUpdateOperationsInput | string toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string apiErrors?: Prisma.IntFieldUpdateOperationsInput | number rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string systemPromptEdits?: Prisma.IntFieldUpdateOperationsInput | number cliVersion?: Prisma.StringFieldUpdateOperationsInput | string modelCountsJson?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string sessionId?: Prisma.StringFieldUpdateOperationsInput | string project?: Prisma.StringFieldUpdateOperationsInput | string projectPath?: Prisma.StringFieldUpdateOperationsInput | string startTime?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endTime?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string durationMinutes?: Prisma.FloatFieldUpdateOperationsInput | number userMessages?: Prisma.IntFieldUpdateOperationsInput | number assistantMessages?: Prisma.IntFieldUpdateOperationsInput | number totalMessages?: Prisma.IntFieldUpdateOperationsInput | number inputTokens?: Prisma.IntFieldUpdateOperationsInput | number outputTokens?: Prisma.IntFieldUpdateOperationsInput | number cacheCreationTokens?: Prisma.IntFieldUpdateOperationsInput | number cacheReadTokens?: Prisma.IntFieldUpdateOperationsInput | number totalTokens?: Prisma.IntFieldUpdateOperationsInput | number costUSD?: Prisma.FloatFieldUpdateOperationsInput | number model?: Prisma.StringFieldUpdateOperationsInput | string toolCallsTotal?: Prisma.IntFieldUpdateOperationsInput | number toolCallsJson?: Prisma.StringFieldUpdateOperationsInput | string skillCallsJson?: Prisma.StringFieldUpdateOperationsInput | string messageTimestamps?: Prisma.StringFieldUpdateOperationsInput | string apiErrors?: Prisma.IntFieldUpdateOperationsInput | number rateLimitErrors?: Prisma.IntFieldUpdateOperationsInput | number userInterruptions?: Prisma.IntFieldUpdateOperationsInput | number permissionModesJson?: Prisma.StringFieldUpdateOperationsInput | string systemPromptEdits?: Prisma.IntFieldUpdateOperationsInput | number cliVersion?: Prisma.StringFieldUpdateOperationsInput | string modelCountsJson?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionCountOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder project?: Prisma.SortOrder projectPath?: Prisma.SortOrder startTime?: Prisma.SortOrder endTime?: Prisma.SortOrder durationMinutes?: Prisma.SortOrder userMessages?: Prisma.SortOrder assistantMessages?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder cacheCreationTokens?: Prisma.SortOrder cacheReadTokens?: Prisma.SortOrder totalTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder model?: Prisma.SortOrder toolCallsTotal?: Prisma.SortOrder toolCallsJson?: Prisma.SortOrder skillCallsJson?: Prisma.SortOrder messageTimestamps?: Prisma.SortOrder apiErrors?: Prisma.SortOrder rateLimitErrors?: Prisma.SortOrder userInterruptions?: Prisma.SortOrder permissionModesJson?: Prisma.SortOrder systemPromptEdits?: Prisma.SortOrder cliVersion?: Prisma.SortOrder modelCountsJson?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type SessionAvgOrderByAggregateInput = { durationMinutes?: Prisma.SortOrder userMessages?: Prisma.SortOrder assistantMessages?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder cacheCreationTokens?: Prisma.SortOrder cacheReadTokens?: Prisma.SortOrder totalTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder toolCallsTotal?: Prisma.SortOrder apiErrors?: Prisma.SortOrder rateLimitErrors?: Prisma.SortOrder userInterruptions?: Prisma.SortOrder systemPromptEdits?: Prisma.SortOrder } export type SessionMaxOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder project?: Prisma.SortOrder projectPath?: Prisma.SortOrder startTime?: Prisma.SortOrder endTime?: Prisma.SortOrder durationMinutes?: Prisma.SortOrder userMessages?: Prisma.SortOrder assistantMessages?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder cacheCreationTokens?: Prisma.SortOrder cacheReadTokens?: Prisma.SortOrder totalTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder model?: Prisma.SortOrder toolCallsTotal?: Prisma.SortOrder toolCallsJson?: Prisma.SortOrder skillCallsJson?: Prisma.SortOrder messageTimestamps?: Prisma.SortOrder apiErrors?: Prisma.SortOrder rateLimitErrors?: Prisma.SortOrder userInterruptions?: Prisma.SortOrder permissionModesJson?: Prisma.SortOrder systemPromptEdits?: Prisma.SortOrder cliVersion?: Prisma.SortOrder modelCountsJson?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type SessionMinOrderByAggregateInput = { id?: Prisma.SortOrder sessionId?: Prisma.SortOrder project?: Prisma.SortOrder projectPath?: Prisma.SortOrder startTime?: Prisma.SortOrder endTime?: Prisma.SortOrder durationMinutes?: Prisma.SortOrder userMessages?: Prisma.SortOrder assistantMessages?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder cacheCreationTokens?: Prisma.SortOrder cacheReadTokens?: Prisma.SortOrder totalTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder model?: Prisma.SortOrder toolCallsTotal?: Prisma.SortOrder toolCallsJson?: Prisma.SortOrder skillCallsJson?: Prisma.SortOrder messageTimestamps?: Prisma.SortOrder apiErrors?: Prisma.SortOrder rateLimitErrors?: Prisma.SortOrder userInterruptions?: Prisma.SortOrder permissionModesJson?: Prisma.SortOrder systemPromptEdits?: Prisma.SortOrder cliVersion?: Prisma.SortOrder modelCountsJson?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type SessionSumOrderByAggregateInput = { durationMinutes?: Prisma.SortOrder userMessages?: Prisma.SortOrder assistantMessages?: Prisma.SortOrder totalMessages?: Prisma.SortOrder inputTokens?: Prisma.SortOrder outputTokens?: Prisma.SortOrder cacheCreationTokens?: Prisma.SortOrder cacheReadTokens?: Prisma.SortOrder totalTokens?: Prisma.SortOrder costUSD?: Prisma.SortOrder toolCallsTotal?: Prisma.SortOrder apiErrors?: Prisma.SortOrder rateLimitErrors?: Prisma.SortOrder userInterruptions?: Prisma.SortOrder systemPromptEdits?: Prisma.SortOrder } export type StringFieldUpdateOperationsInput = { set?: string } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type SessionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean project?: boolean projectPath?: boolean startTime?: boolean endTime?: boolean durationMinutes?: boolean userMessages?: boolean assistantMessages?: boolean totalMessages?: boolean inputTokens?: boolean outputTokens?: boolean cacheCreationTokens?: boolean cacheReadTokens?: boolean totalTokens?: boolean costUSD?: boolean model?: boolean toolCallsTotal?: boolean toolCallsJson?: boolean skillCallsJson?: boolean messageTimestamps?: boolean apiErrors?: boolean rateLimitErrors?: boolean userInterruptions?: boolean permissionModesJson?: boolean systemPromptEdits?: boolean cliVersion?: boolean modelCountsJson?: boolean createdAt?: boolean }, ExtArgs["result"]["session"]> export type SessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean project?: boolean projectPath?: boolean startTime?: boolean endTime?: boolean durationMinutes?: boolean userMessages?: boolean assistantMessages?: boolean totalMessages?: boolean inputTokens?: boolean outputTokens?: boolean cacheCreationTokens?: boolean cacheReadTokens?: boolean totalTokens?: boolean costUSD?: boolean model?: boolean toolCallsTotal?: boolean toolCallsJson?: boolean skillCallsJson?: boolean messageTimestamps?: boolean apiErrors?: boolean rateLimitErrors?: boolean userInterruptions?: boolean permissionModesJson?: boolean systemPromptEdits?: boolean cliVersion?: boolean modelCountsJson?: boolean createdAt?: boolean }, ExtArgs["result"]["session"]> export type SessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean sessionId?: boolean project?: boolean projectPath?: boolean startTime?: boolean endTime?: boolean durationMinutes?: boolean userMessages?: boolean assistantMessages?: boolean totalMessages?: boolean inputTokens?: boolean outputTokens?: boolean cacheCreationTokens?: boolean cacheReadTokens?: boolean totalTokens?: boolean costUSD?: boolean model?: boolean toolCallsTotal?: boolean toolCallsJson?: boolean skillCallsJson?: boolean messageTimestamps?: boolean apiErrors?: boolean rateLimitErrors?: boolean userInterruptions?: boolean permissionModesJson?: boolean systemPromptEdits?: boolean cliVersion?: boolean modelCountsJson?: boolean createdAt?: boolean }, ExtArgs["result"]["session"]> export type SessionSelectScalar = { id?: boolean sessionId?: boolean project?: boolean projectPath?: boolean startTime?: boolean endTime?: boolean durationMinutes?: boolean userMessages?: boolean assistantMessages?: boolean totalMessages?: boolean inputTokens?: boolean outputTokens?: boolean cacheCreationTokens?: boolean cacheReadTokens?: boolean totalTokens?: boolean costUSD?: boolean model?: boolean toolCallsTotal?: boolean toolCallsJson?: boolean skillCallsJson?: boolean messageTimestamps?: boolean apiErrors?: boolean rateLimitErrors?: boolean userInterruptions?: boolean permissionModesJson?: boolean systemPromptEdits?: boolean cliVersion?: boolean modelCountsJson?: boolean createdAt?: boolean } export type SessionOmit = runtime.Types.Extensions.GetOmit<"id" | "sessionId" | "project" | "projectPath" | "startTime" | "endTime" | "durationMinutes" | "userMessages" | "assistantMessages" | "totalMessages" | "inputTokens" | "outputTokens" | "cacheCreationTokens" | "cacheReadTokens" | "totalTokens" | "costUSD" | "model" | "toolCallsTotal" | "toolCallsJson" | "skillCallsJson" | "messageTimestamps" | "apiErrors" | "rateLimitErrors" | "userInterruptions" | "permissionModesJson" | "systemPromptEdits" | "cliVersion" | "modelCountsJson" | "createdAt", ExtArgs["result"]["session"]> export type $SessionPayload = { name: "Session" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string sessionId: string project: string projectPath: string startTime: Date endTime: Date durationMinutes: number userMessages: number assistantMessages: number totalMessages: number inputTokens: number outputTokens: number cacheCreationTokens: number cacheReadTokens: number totalTokens: number costUSD: number model: string toolCallsTotal: number toolCallsJson: string skillCallsJson: string messageTimestamps: string apiErrors: number rateLimitErrors: number userInterruptions: number permissionModesJson: string systemPromptEdits: number cliVersion: string modelCountsJson: string createdAt: Date }, ExtArgs["result"]["session"]> composites: {} } export type SessionGetPayload = runtime.Types.Result.GetResult export type SessionCountArgs = Omit & { select?: SessionCountAggregateInputType | true } export interface SessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } /** * Find zero or one Session that matches the filter. * @param {SessionFindUniqueArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Session that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Session 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 {SessionFindFirstArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Session 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 {SessionFindFirstOrThrowArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Sessions 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 {SessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sessions * const sessions = await prisma.session.findMany() * * // Get first 10 Sessions * const sessions = await prisma.session.findMany({ take: 10 }) * * // Only select the `id` * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Session. * @param {SessionCreateArgs} args - Arguments to create a Session. * @example * // Create one Session * const Session = await prisma.session.create({ * data: { * // ... data to create a Session * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Sessions. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions * const session = await prisma.session.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Sessions and returns the data saved in the database. * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions * const session = await prisma.session.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Sessions and only return the `id` * const sessionWithIdOnly = await prisma.session.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 Session. * @param {SessionDeleteArgs} args - Arguments to delete one Session. * @example * // Delete one Session * const Session = await prisma.session.delete({ * where: { * // ... filter to delete one Session * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Session. * @param {SessionUpdateArgs} args - Arguments to update one Session. * @example * // Update one Session * const session = await prisma.session.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Sessions. * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. * @example * // Delete a few Sessions * const { count } = await prisma.session.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sessions * const session = await prisma.session.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sessions and returns the data updated in the database. * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions. * @example * // Update many Sessions * const session = await prisma.session.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Sessions and only return the `id` * const sessionWithIdOnly = await prisma.session.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 Session. * @param {SessionUpsertArgs} args - Arguments to update or create a Session. * @example * // Update or create a Session * const session = await prisma.session.upsert({ * create: { * // ... data to create a Session * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Session we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionCountArgs} args - Arguments to filter Sessions to count. * @example * // Count the number of Sessions * const count = await prisma.session.count({ * where: { * // ... the filter for the Sessions 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 Session. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionAggregateArgs} 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 Session. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionGroupByArgs} 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 SessionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SessionGroupByArgs['orderBy'] } : { orderBy?: SessionGroupByArgs['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 ? GetSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the Session model */ readonly fields: SessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Session. * 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__SessionClient 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 Session model */ export interface SessionFieldRefs { readonly id: Prisma.FieldRef<"Session", 'String'> readonly sessionId: Prisma.FieldRef<"Session", 'String'> readonly project: Prisma.FieldRef<"Session", 'String'> readonly projectPath: Prisma.FieldRef<"Session", 'String'> readonly startTime: Prisma.FieldRef<"Session", 'DateTime'> readonly endTime: Prisma.FieldRef<"Session", 'DateTime'> readonly durationMinutes: Prisma.FieldRef<"Session", 'Float'> readonly userMessages: Prisma.FieldRef<"Session", 'Int'> readonly assistantMessages: Prisma.FieldRef<"Session", 'Int'> readonly totalMessages: Prisma.FieldRef<"Session", 'Int'> readonly inputTokens: Prisma.FieldRef<"Session", 'Int'> readonly outputTokens: Prisma.FieldRef<"Session", 'Int'> readonly cacheCreationTokens: Prisma.FieldRef<"Session", 'Int'> readonly cacheReadTokens: Prisma.FieldRef<"Session", 'Int'> readonly totalTokens: Prisma.FieldRef<"Session", 'Int'> readonly costUSD: Prisma.FieldRef<"Session", 'Float'> readonly model: Prisma.FieldRef<"Session", 'String'> readonly toolCallsTotal: Prisma.FieldRef<"Session", 'Int'> readonly toolCallsJson: Prisma.FieldRef<"Session", 'String'> readonly skillCallsJson: Prisma.FieldRef<"Session", 'String'> readonly messageTimestamps: Prisma.FieldRef<"Session", 'String'> readonly apiErrors: Prisma.FieldRef<"Session", 'Int'> readonly rateLimitErrors: Prisma.FieldRef<"Session", 'Int'> readonly userInterruptions: Prisma.FieldRef<"Session", 'Int'> readonly permissionModesJson: Prisma.FieldRef<"Session", 'String'> readonly systemPromptEdits: Prisma.FieldRef<"Session", 'Int'> readonly cliVersion: Prisma.FieldRef<"Session", 'String'> readonly modelCountsJson: Prisma.FieldRef<"Session", 'String'> readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'> } // Custom InputTypes /** * Session findUnique */ export type SessionFindUniqueArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Filter, which Session to fetch. */ where: Prisma.SessionWhereUniqueInput } /** * Session findUniqueOrThrow */ export type SessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Filter, which Session to fetch. */ where: Prisma.SessionWhereUniqueInput } /** * Session findFirst */ export type SessionFindFirstArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Filter, which Session to fetch. */ where?: Prisma.SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sessions. */ cursor?: Prisma.SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions 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` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sessions. */ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] } /** * Session findFirstOrThrow */ export type SessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Filter, which Session to fetch. */ where?: Prisma.SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sessions. */ cursor?: Prisma.SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions 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` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sessions. */ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] } /** * Session findMany */ export type SessionFindManyArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Filter, which Sessions to fetch. */ where?: Prisma.SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Sessions. */ cursor?: Prisma.SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions 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` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sessions. */ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] } /** * Session create */ export type SessionCreateArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * The data needed to create a Session. */ data: Prisma.XOR } /** * Session createMany */ export type SessionCreateManyArgs = { /** * The data used to create many Sessions. */ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] } /** * Session createManyAndReturn */ export type SessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelectCreateManyAndReturn | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * The data used to create many Sessions. */ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] } /** * Session update */ export type SessionUpdateArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * The data needed to update a Session. */ data: Prisma.XOR /** * Choose, which Session to update. */ where: Prisma.SessionWhereUniqueInput } /** * Session updateMany */ export type SessionUpdateManyArgs = { /** * The data used to update Sessions. */ data: Prisma.XOR /** * Filter which Sessions to update */ where?: Prisma.SessionWhereInput /** * Limit how many Sessions to update. */ limit?: number } /** * Session updateManyAndReturn */ export type SessionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelectUpdateManyAndReturn | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * The data used to update Sessions. */ data: Prisma.XOR /** * Filter which Sessions to update */ where?: Prisma.SessionWhereInput /** * Limit how many Sessions to update. */ limit?: number } /** * Session upsert */ export type SessionUpsertArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * The filter to search for the Session to update in case it exists. */ where: Prisma.SessionWhereUniqueInput /** * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. */ create: Prisma.XOR /** * In case the Session was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Session delete */ export type SessionDeleteArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Filter which Session to delete. */ where: Prisma.SessionWhereUniqueInput } /** * Session deleteMany */ export type SessionDeleteManyArgs = { /** * Filter which Sessions to delete */ where?: Prisma.SessionWhereInput /** * Limit how many Sessions to delete. */ limit?: number } /** * Session without action */ export type SessionDefaultArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null }