/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AgentSession` model and its related types. * * 🟢 You can import this file directly. */ import type * as PJTG from '../pjtg'; import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model AgentSession * */ export type AgentSessionModel = runtime.Types.Result.DefaultSelection export type AggregateAgentSession = { _count: AgentSessionCountAggregateOutputType | null _min: AgentSessionMinAggregateOutputType | null _max: AgentSessionMaxAggregateOutputType | null } export type AgentSessionMinAggregateOutputType = { id: string | null agentId: string | null userId: string | null cwd: string | null leafId: string | null createdAt: Date | null updatedAt: Date | null } export type AgentSessionMaxAggregateOutputType = { id: string | null agentId: string | null userId: string | null cwd: string | null leafId: string | null createdAt: Date | null updatedAt: Date | null } export type AgentSessionCountAggregateOutputType = { id: number agentId: number userId: number cwd: number leafId: number createdAt: number updatedAt: number _all: number } export type AgentSessionMinAggregateInputType = { id?: true agentId?: true userId?: true cwd?: true leafId?: true createdAt?: true updatedAt?: true } export type AgentSessionMaxAggregateInputType = { id?: true agentId?: true userId?: true cwd?: true leafId?: true createdAt?: true updatedAt?: true } export type AgentSessionCountAggregateInputType = { id?: true agentId?: true userId?: true cwd?: true leafId?: true createdAt?: true updatedAt?: true _all?: true } export type AgentSessionAggregateArgs = { /** * Filter which AgentSession to aggregate. */ where?: Prisma.AgentSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentSessions to fetch. */ orderBy?: Prisma.AgentSessionOrderByWithRelationInput | Prisma.AgentSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AgentSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentSessions 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` AgentSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AgentSessions **/ _count?: true | AgentSessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AgentSessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AgentSessionMaxAggregateInputType } export type GetAgentSessionAggregateType = { [P in keyof T & keyof AggregateAgentSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AgentSessionGroupByArgs = { where?: Prisma.AgentSessionWhereInput orderBy?: Prisma.AgentSessionOrderByWithAggregationInput | Prisma.AgentSessionOrderByWithAggregationInput[] by: Prisma.AgentSessionScalarFieldEnum[] | Prisma.AgentSessionScalarFieldEnum having?: Prisma.AgentSessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: AgentSessionCountAggregateInputType | true _min?: AgentSessionMinAggregateInputType _max?: AgentSessionMaxAggregateInputType } export type AgentSessionGroupByOutputType = { id: string agentId: string userId: string | null cwd: string leafId: string | null createdAt: Date updatedAt: Date _count: AgentSessionCountAggregateOutputType | null _min: AgentSessionMinAggregateOutputType | null _max: AgentSessionMaxAggregateOutputType | null } export type GetAgentSessionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AgentSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AgentSessionWhereInput = { AND?: Prisma.AgentSessionWhereInput | Prisma.AgentSessionWhereInput[] OR?: Prisma.AgentSessionWhereInput[] NOT?: Prisma.AgentSessionWhereInput | Prisma.AgentSessionWhereInput[] id?: Prisma.StringFilter<"AgentSession"> | string agentId?: Prisma.StringFilter<"AgentSession"> | string userId?: Prisma.StringNullableFilter<"AgentSession"> | string | null cwd?: Prisma.StringFilter<"AgentSession"> | string leafId?: Prisma.StringNullableFilter<"AgentSession"> | string | null createdAt?: Prisma.DateTimeFilter<"AgentSession"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AgentSession"> | Date | string agent?: Prisma.XOR user?: Prisma.XOR | null entries?: Prisma.AgentSessionEntryListRelationFilter comment?: Prisma.XOR | null } export type AgentSessionOrderByWithRelationInput = { id?: Prisma.SortOrder agentId?: Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder cwd?: Prisma.SortOrder leafId?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder agent?: Prisma.AgentOrderByWithRelationInput user?: Prisma.UserOrderByWithRelationInput entries?: Prisma.AgentSessionEntryOrderByRelationAggregateInput comment?: Prisma.AssetCommentOrderByWithRelationInput } export type AgentSessionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.AgentSessionWhereInput | Prisma.AgentSessionWhereInput[] OR?: Prisma.AgentSessionWhereInput[] NOT?: Prisma.AgentSessionWhereInput | Prisma.AgentSessionWhereInput[] agentId?: Prisma.StringFilter<"AgentSession"> | string userId?: Prisma.StringNullableFilter<"AgentSession"> | string | null cwd?: Prisma.StringFilter<"AgentSession"> | string leafId?: Prisma.StringNullableFilter<"AgentSession"> | string | null createdAt?: Prisma.DateTimeFilter<"AgentSession"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AgentSession"> | Date | string agent?: Prisma.XOR user?: Prisma.XOR | null entries?: Prisma.AgentSessionEntryListRelationFilter comment?: Prisma.XOR | null }, "id"> export type AgentSessionOrderByWithAggregationInput = { id?: Prisma.SortOrder agentId?: Prisma.SortOrder userId?: Prisma.SortOrderInput | Prisma.SortOrder cwd?: Prisma.SortOrder leafId?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.AgentSessionCountOrderByAggregateInput _max?: Prisma.AgentSessionMaxOrderByAggregateInput _min?: Prisma.AgentSessionMinOrderByAggregateInput } export type AgentSessionScalarWhereWithAggregatesInput = { AND?: Prisma.AgentSessionScalarWhereWithAggregatesInput | Prisma.AgentSessionScalarWhereWithAggregatesInput[] OR?: Prisma.AgentSessionScalarWhereWithAggregatesInput[] NOT?: Prisma.AgentSessionScalarWhereWithAggregatesInput | Prisma.AgentSessionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AgentSession"> | string agentId?: Prisma.StringWithAggregatesFilter<"AgentSession"> | string userId?: Prisma.StringNullableWithAggregatesFilter<"AgentSession"> | string | null cwd?: Prisma.StringWithAggregatesFilter<"AgentSession"> | string leafId?: Prisma.StringNullableWithAggregatesFilter<"AgentSession"> | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentSession"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AgentSession"> | Date | string } export type AgentSessionCreateInput = { id?: string cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput comment?: Prisma.AssetCommentCreateNestedOneWithoutSessionInput } export type AgentSessionUncheckedCreateInput = { id?: string agentId: string userId?: string | null cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput comment?: Prisma.AssetCommentUncheckedCreateNestedOneWithoutSessionInput } export type AgentSessionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput comment?: Prisma.AssetCommentUpdateOneWithoutSessionNestedInput } export type AgentSessionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string agentId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput comment?: Prisma.AssetCommentUncheckedUpdateOneWithoutSessionNestedInput } export type AgentSessionCreateManyInput = { id?: string agentId: string userId?: string | null cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string } export type AgentSessionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AgentSessionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string agentId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AgentSessionListRelationFilter = { every?: Prisma.AgentSessionWhereInput some?: Prisma.AgentSessionWhereInput none?: Prisma.AgentSessionWhereInput } export type AgentSessionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AgentSessionNullableScalarRelationFilter = { is?: Prisma.AgentSessionWhereInput | null isNot?: Prisma.AgentSessionWhereInput | null } export type AgentSessionCountOrderByAggregateInput = { id?: Prisma.SortOrder agentId?: Prisma.SortOrder userId?: Prisma.SortOrder cwd?: Prisma.SortOrder leafId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type AgentSessionMaxOrderByAggregateInput = { id?: Prisma.SortOrder agentId?: Prisma.SortOrder userId?: Prisma.SortOrder cwd?: Prisma.SortOrder leafId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type AgentSessionMinOrderByAggregateInput = { id?: Prisma.SortOrder agentId?: Prisma.SortOrder userId?: Prisma.SortOrder cwd?: Prisma.SortOrder leafId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type AgentSessionScalarRelationFilter = { is?: Prisma.AgentSessionWhereInput isNot?: Prisma.AgentSessionWhereInput } export type AgentSessionCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.AgentSessionCreateWithoutUserInput[] | Prisma.AgentSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutUserInput | Prisma.AgentSessionCreateOrConnectWithoutUserInput[] createMany?: Prisma.AgentSessionCreateManyUserInputEnvelope connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] } export type AgentSessionUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.AgentSessionCreateWithoutUserInput[] | Prisma.AgentSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutUserInput | Prisma.AgentSessionCreateOrConnectWithoutUserInput[] createMany?: Prisma.AgentSessionCreateManyUserInputEnvelope connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] } export type AgentSessionUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.AgentSessionCreateWithoutUserInput[] | Prisma.AgentSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutUserInput | Prisma.AgentSessionCreateOrConnectWithoutUserInput[] upsert?: Prisma.AgentSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.AgentSessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.AgentSessionCreateManyUserInputEnvelope set?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] disconnect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] delete?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] update?: Prisma.AgentSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.AgentSessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.AgentSessionUpdateManyWithWhereWithoutUserInput | Prisma.AgentSessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] } export type AgentSessionUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.AgentSessionCreateWithoutUserInput[] | Prisma.AgentSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutUserInput | Prisma.AgentSessionCreateOrConnectWithoutUserInput[] upsert?: Prisma.AgentSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.AgentSessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.AgentSessionCreateManyUserInputEnvelope set?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] disconnect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] delete?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] update?: Prisma.AgentSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.AgentSessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.AgentSessionUpdateManyWithWhereWithoutUserInput | Prisma.AgentSessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] } export type AgentSessionCreateNestedOneWithoutCommentInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutCommentInput connect?: Prisma.AgentSessionWhereUniqueInput } export type AgentSessionUpdateOneWithoutCommentNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutCommentInput upsert?: Prisma.AgentSessionUpsertWithoutCommentInput disconnect?: Prisma.AgentSessionWhereInput | boolean delete?: Prisma.AgentSessionWhereInput | boolean connect?: Prisma.AgentSessionWhereUniqueInput update?: Prisma.XOR, Prisma.AgentSessionUncheckedUpdateWithoutCommentInput> } export type AgentSessionCreateNestedManyWithoutAgentInput = { create?: Prisma.XOR | Prisma.AgentSessionCreateWithoutAgentInput[] | Prisma.AgentSessionUncheckedCreateWithoutAgentInput[] connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutAgentInput | Prisma.AgentSessionCreateOrConnectWithoutAgentInput[] createMany?: Prisma.AgentSessionCreateManyAgentInputEnvelope connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] } export type AgentSessionUncheckedCreateNestedManyWithoutAgentInput = { create?: Prisma.XOR | Prisma.AgentSessionCreateWithoutAgentInput[] | Prisma.AgentSessionUncheckedCreateWithoutAgentInput[] connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutAgentInput | Prisma.AgentSessionCreateOrConnectWithoutAgentInput[] createMany?: Prisma.AgentSessionCreateManyAgentInputEnvelope connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] } export type AgentSessionUpdateManyWithoutAgentNestedInput = { create?: Prisma.XOR | Prisma.AgentSessionCreateWithoutAgentInput[] | Prisma.AgentSessionUncheckedCreateWithoutAgentInput[] connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutAgentInput | Prisma.AgentSessionCreateOrConnectWithoutAgentInput[] upsert?: Prisma.AgentSessionUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentSessionUpsertWithWhereUniqueWithoutAgentInput[] createMany?: Prisma.AgentSessionCreateManyAgentInputEnvelope set?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] disconnect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] delete?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] update?: Prisma.AgentSessionUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentSessionUpdateWithWhereUniqueWithoutAgentInput[] updateMany?: Prisma.AgentSessionUpdateManyWithWhereWithoutAgentInput | Prisma.AgentSessionUpdateManyWithWhereWithoutAgentInput[] deleteMany?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] } export type AgentSessionUncheckedUpdateManyWithoutAgentNestedInput = { create?: Prisma.XOR | Prisma.AgentSessionCreateWithoutAgentInput[] | Prisma.AgentSessionUncheckedCreateWithoutAgentInput[] connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutAgentInput | Prisma.AgentSessionCreateOrConnectWithoutAgentInput[] upsert?: Prisma.AgentSessionUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentSessionUpsertWithWhereUniqueWithoutAgentInput[] createMany?: Prisma.AgentSessionCreateManyAgentInputEnvelope set?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] disconnect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] delete?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] connect?: Prisma.AgentSessionWhereUniqueInput | Prisma.AgentSessionWhereUniqueInput[] update?: Prisma.AgentSessionUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentSessionUpdateWithWhereUniqueWithoutAgentInput[] updateMany?: Prisma.AgentSessionUpdateManyWithWhereWithoutAgentInput | Prisma.AgentSessionUpdateManyWithWhereWithoutAgentInput[] deleteMany?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] } export type AgentSessionCreateNestedOneWithoutEntriesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutEntriesInput connect?: Prisma.AgentSessionWhereUniqueInput } export type AgentSessionUpdateOneRequiredWithoutEntriesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutEntriesInput upsert?: Prisma.AgentSessionUpsertWithoutEntriesInput connect?: Prisma.AgentSessionWhereUniqueInput update?: Prisma.XOR, Prisma.AgentSessionUncheckedUpdateWithoutEntriesInput> } export type AgentSessionCreateWithoutUserInput = { id?: string cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput comment?: Prisma.AssetCommentCreateNestedOneWithoutSessionInput } export type AgentSessionUncheckedCreateWithoutUserInput = { id?: string agentId: string cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput comment?: Prisma.AssetCommentUncheckedCreateNestedOneWithoutSessionInput } export type AgentSessionCreateOrConnectWithoutUserInput = { where: Prisma.AgentSessionWhereUniqueInput create: Prisma.XOR } export type AgentSessionCreateManyUserInputEnvelope = { data: Prisma.AgentSessionCreateManyUserInput | Prisma.AgentSessionCreateManyUserInput[] skipDuplicates?: boolean } export type AgentSessionUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.AgentSessionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AgentSessionUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.AgentSessionWhereUniqueInput data: Prisma.XOR } export type AgentSessionUpdateManyWithWhereWithoutUserInput = { where: Prisma.AgentSessionScalarWhereInput data: Prisma.XOR } export type AgentSessionScalarWhereInput = { AND?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] OR?: Prisma.AgentSessionScalarWhereInput[] NOT?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[] id?: Prisma.StringFilter<"AgentSession"> | string agentId?: Prisma.StringFilter<"AgentSession"> | string userId?: Prisma.StringNullableFilter<"AgentSession"> | string | null cwd?: Prisma.StringFilter<"AgentSession"> | string leafId?: Prisma.StringNullableFilter<"AgentSession"> | string | null createdAt?: Prisma.DateTimeFilter<"AgentSession"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AgentSession"> | Date | string } export type AgentSessionCreateWithoutCommentInput = { id?: string cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput } export type AgentSessionUncheckedCreateWithoutCommentInput = { id?: string agentId: string userId?: string | null cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput } export type AgentSessionCreateOrConnectWithoutCommentInput = { where: Prisma.AgentSessionWhereUniqueInput create: Prisma.XOR } export type AgentSessionUpsertWithoutCommentInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AgentSessionWhereInput } export type AgentSessionUpdateToOneWithWhereWithoutCommentInput = { where?: Prisma.AgentSessionWhereInput data: Prisma.XOR } export type AgentSessionUpdateWithoutCommentInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput } export type AgentSessionUncheckedUpdateWithoutCommentInput = { id?: Prisma.StringFieldUpdateOperationsInput | string agentId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput } export type AgentSessionCreateWithoutAgentInput = { id?: string cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput comment?: Prisma.AssetCommentCreateNestedOneWithoutSessionInput } export type AgentSessionUncheckedCreateWithoutAgentInput = { id?: string userId?: string | null cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput comment?: Prisma.AssetCommentUncheckedCreateNestedOneWithoutSessionInput } export type AgentSessionCreateOrConnectWithoutAgentInput = { where: Prisma.AgentSessionWhereUniqueInput create: Prisma.XOR } export type AgentSessionCreateManyAgentInputEnvelope = { data: Prisma.AgentSessionCreateManyAgentInput | Prisma.AgentSessionCreateManyAgentInput[] skipDuplicates?: boolean } export type AgentSessionUpsertWithWhereUniqueWithoutAgentInput = { where: Prisma.AgentSessionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AgentSessionUpdateWithWhereUniqueWithoutAgentInput = { where: Prisma.AgentSessionWhereUniqueInput data: Prisma.XOR } export type AgentSessionUpdateManyWithWhereWithoutAgentInput = { where: Prisma.AgentSessionScalarWhereInput data: Prisma.XOR } export type AgentSessionCreateWithoutEntriesInput = { id?: string cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput comment?: Prisma.AssetCommentCreateNestedOneWithoutSessionInput } export type AgentSessionUncheckedCreateWithoutEntriesInput = { id?: string agentId: string userId?: string | null cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string comment?: Prisma.AssetCommentUncheckedCreateNestedOneWithoutSessionInput } export type AgentSessionCreateOrConnectWithoutEntriesInput = { where: Prisma.AgentSessionWhereUniqueInput create: Prisma.XOR } export type AgentSessionUpsertWithoutEntriesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AgentSessionWhereInput } export type AgentSessionUpdateToOneWithWhereWithoutEntriesInput = { where?: Prisma.AgentSessionWhereInput data: Prisma.XOR } export type AgentSessionUpdateWithoutEntriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput comment?: Prisma.AssetCommentUpdateOneWithoutSessionNestedInput } export type AgentSessionUncheckedUpdateWithoutEntriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string agentId?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string comment?: Prisma.AssetCommentUncheckedUpdateOneWithoutSessionNestedInput } export type AgentSessionCreateManyUserInput = { id?: string agentId: string cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string } export type AgentSessionUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput comment?: Prisma.AssetCommentUpdateOneWithoutSessionNestedInput } export type AgentSessionUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string agentId?: Prisma.StringFieldUpdateOperationsInput | string cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput comment?: Prisma.AssetCommentUncheckedUpdateOneWithoutSessionNestedInput } export type AgentSessionUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string agentId?: Prisma.StringFieldUpdateOperationsInput | string cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AgentSessionCreateManyAgentInput = { id?: string userId?: string | null cwd: string leafId?: string | null createdAt?: Date | string updatedAt?: Date | string } export type AgentSessionUpdateWithoutAgentInput = { id?: Prisma.StringFieldUpdateOperationsInput | string cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput comment?: Prisma.AssetCommentUpdateOneWithoutSessionNestedInput } export type AgentSessionUncheckedUpdateWithoutAgentInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput comment?: Prisma.AssetCommentUncheckedUpdateOneWithoutSessionNestedInput } export type AgentSessionUncheckedUpdateManyWithoutAgentInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null cwd?: Prisma.StringFieldUpdateOperationsInput | string leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type AgentSessionCountOutputType */ export type AgentSessionCountOutputType = { entries: number } export type AgentSessionCountOutputTypeSelect = { entries?: boolean | AgentSessionCountOutputTypeCountEntriesArgs } /** * AgentSessionCountOutputType without action */ export type AgentSessionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AgentSessionCountOutputType */ select?: Prisma.AgentSessionCountOutputTypeSelect | null } /** * AgentSessionCountOutputType without action */ export type AgentSessionCountOutputTypeCountEntriesArgs = { where?: Prisma.AgentSessionEntryWhereInput } export type AgentSessionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean agentId?: boolean userId?: boolean cwd?: boolean leafId?: boolean createdAt?: boolean updatedAt?: boolean agent?: boolean | Prisma.AgentDefaultArgs user?: boolean | Prisma.AgentSession$userArgs entries?: boolean | Prisma.AgentSession$entriesArgs comment?: boolean | Prisma.AgentSession$commentArgs _count?: boolean | Prisma.AgentSessionCountOutputTypeDefaultArgs }, ExtArgs["result"]["agentSession"]> export type AgentSessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean agentId?: boolean userId?: boolean cwd?: boolean leafId?: boolean createdAt?: boolean updatedAt?: boolean agent?: boolean | Prisma.AgentDefaultArgs user?: boolean | Prisma.AgentSession$userArgs }, ExtArgs["result"]["agentSession"]> export type AgentSessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean agentId?: boolean userId?: boolean cwd?: boolean leafId?: boolean createdAt?: boolean updatedAt?: boolean agent?: boolean | Prisma.AgentDefaultArgs user?: boolean | Prisma.AgentSession$userArgs }, ExtArgs["result"]["agentSession"]> export type AgentSessionSelectScalar = { id?: boolean agentId?: boolean userId?: boolean cwd?: boolean leafId?: boolean createdAt?: boolean updatedAt?: boolean } export type AgentSessionOmit = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "userId" | "cwd" | "leafId" | "createdAt" | "updatedAt", ExtArgs["result"]["agentSession"]> export type AgentSessionInclude = { agent?: boolean | Prisma.AgentDefaultArgs user?: boolean | Prisma.AgentSession$userArgs entries?: boolean | Prisma.AgentSession$entriesArgs comment?: boolean | Prisma.AgentSession$commentArgs _count?: boolean | Prisma.AgentSessionCountOutputTypeDefaultArgs } export type AgentSessionIncludeCreateManyAndReturn = { agent?: boolean | Prisma.AgentDefaultArgs user?: boolean | Prisma.AgentSession$userArgs } export type AgentSessionIncludeUpdateManyAndReturn = { agent?: boolean | Prisma.AgentDefaultArgs user?: boolean | Prisma.AgentSession$userArgs } export type $AgentSessionPayload = { name: "AgentSession" objects: { agent: Prisma.$AgentPayload user: Prisma.$UserPayload | null entries: Prisma.$AgentSessionEntryPayload[] comment: Prisma.$AssetCommentPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string agentId: string userId: string | null cwd: string leafId: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["agentSession"]> composites: {} } export type AgentSessionGetPayload = runtime.Types.Result.GetResult export type AgentSessionCountArgs = Omit & { select?: AgentSessionCountAggregateInputType | true } export interface AgentSessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AgentSession'], meta: { name: 'AgentSession' } } /** * Find zero or one AgentSession that matches the filter. * @param {AgentSessionFindUniqueArgs} args - Arguments to find a AgentSession * @example * // Get one AgentSession * const agentSession = await prisma.agentSession.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AgentSession that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AgentSessionFindUniqueOrThrowArgs} args - Arguments to find a AgentSession * @example * // Get one AgentSession * const agentSession = await prisma.agentSession.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AgentSession 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 {AgentSessionFindFirstArgs} args - Arguments to find a AgentSession * @example * // Get one AgentSession * const agentSession = await prisma.agentSession.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AgentSession 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 {AgentSessionFindFirstOrThrowArgs} args - Arguments to find a AgentSession * @example * // Get one AgentSession * const agentSession = await prisma.agentSession.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AgentSessions 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 {AgentSessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AgentSessions * const agentSessions = await prisma.agentSession.findMany() * * // Get first 10 AgentSessions * const agentSessions = await prisma.agentSession.findMany({ take: 10 }) * * // Only select the `id` * const agentSessionWithIdOnly = await prisma.agentSession.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AgentSession. * @param {AgentSessionCreateArgs} args - Arguments to create a AgentSession. * @example * // Create one AgentSession * const AgentSession = await prisma.agentSession.create({ * data: { * // ... data to create a AgentSession * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AgentSessions. * @param {AgentSessionCreateManyArgs} args - Arguments to create many AgentSessions. * @example * // Create many AgentSessions * const agentSession = await prisma.agentSession.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AgentSessions and returns the data saved in the database. * @param {AgentSessionCreateManyAndReturnArgs} args - Arguments to create many AgentSessions. * @example * // Create many AgentSessions * const agentSession = await prisma.agentSession.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AgentSessions and only return the `id` * const agentSessionWithIdOnly = await prisma.agentSession.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 AgentSession. * @param {AgentSessionDeleteArgs} args - Arguments to delete one AgentSession. * @example * // Delete one AgentSession * const AgentSession = await prisma.agentSession.delete({ * where: { * // ... filter to delete one AgentSession * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AgentSession. * @param {AgentSessionUpdateArgs} args - Arguments to update one AgentSession. * @example * // Update one AgentSession * const agentSession = await prisma.agentSession.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AgentSessions. * @param {AgentSessionDeleteManyArgs} args - Arguments to filter AgentSessions to delete. * @example * // Delete a few AgentSessions * const { count } = await prisma.agentSession.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentSessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AgentSessions * const agentSession = await prisma.agentSession.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AgentSessions and returns the data updated in the database. * @param {AgentSessionUpdateManyAndReturnArgs} args - Arguments to update many AgentSessions. * @example * // Update many AgentSessions * const agentSession = await prisma.agentSession.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AgentSessions and only return the `id` * const agentSessionWithIdOnly = await prisma.agentSession.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 AgentSession. * @param {AgentSessionUpsertArgs} args - Arguments to update or create a AgentSession. * @example * // Update or create a AgentSession * const agentSession = await prisma.agentSession.upsert({ * create: { * // ... data to create a AgentSession * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AgentSession we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AgentSessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AgentSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentSessionCountArgs} args - Arguments to filter AgentSessions to count. * @example * // Count the number of AgentSessions * const count = await prisma.agentSession.count({ * where: { * // ... the filter for the AgentSessions 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 AgentSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentSessionAggregateArgs} 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 AgentSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AgentSessionGroupByArgs} 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 AgentSessionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AgentSessionGroupByArgs['orderBy'] } : { orderBy?: AgentSessionGroupByArgs['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 ? GetAgentSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the AgentSession model */ readonly fields: AgentSessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AgentSession. * 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__AgentSessionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" agent = {}>(args?: Prisma.Subset>): Prisma.Prisma__AgentClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> entries = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> comment = {}>(args?: Prisma.Subset>): Prisma.Prisma__AssetCommentClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * 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 AgentSession model */ export interface AgentSessionFieldRefs { readonly id: Prisma.FieldRef<"AgentSession", 'String'> readonly agentId: Prisma.FieldRef<"AgentSession", 'String'> readonly userId: Prisma.FieldRef<"AgentSession", 'String'> readonly cwd: Prisma.FieldRef<"AgentSession", 'String'> readonly leafId: Prisma.FieldRef<"AgentSession", 'String'> readonly createdAt: Prisma.FieldRef<"AgentSession", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"AgentSession", 'DateTime'> } // Custom InputTypes /** * AgentSession findUnique */ export type AgentSessionFindUniqueArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null /** * Filter, which AgentSession to fetch. */ where: Prisma.AgentSessionWhereUniqueInput } /** * AgentSession findUniqueOrThrow */ export type AgentSessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null /** * Filter, which AgentSession to fetch. */ where: Prisma.AgentSessionWhereUniqueInput } /** * AgentSession findFirst */ export type AgentSessionFindFirstArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null /** * Filter, which AgentSession to fetch. */ where?: Prisma.AgentSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentSessions to fetch. */ orderBy?: Prisma.AgentSessionOrderByWithRelationInput | Prisma.AgentSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentSessions. */ cursor?: Prisma.AgentSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentSessions 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` AgentSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentSessions. */ distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[] } /** * AgentSession findFirstOrThrow */ export type AgentSessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null /** * Filter, which AgentSession to fetch. */ where?: Prisma.AgentSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentSessions to fetch. */ orderBy?: Prisma.AgentSessionOrderByWithRelationInput | Prisma.AgentSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AgentSessions. */ cursor?: Prisma.AgentSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentSessions 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` AgentSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentSessions. */ distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[] } /** * AgentSession findMany */ export type AgentSessionFindManyArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null /** * Filter, which AgentSessions to fetch. */ where?: Prisma.AgentSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AgentSessions to fetch. */ orderBy?: Prisma.AgentSessionOrderByWithRelationInput | Prisma.AgentSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AgentSessions. */ cursor?: Prisma.AgentSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AgentSessions 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` AgentSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AgentSessions. */ distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[] } /** * AgentSession create */ export type AgentSessionCreateArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null /** * The data needed to create a AgentSession. */ data: Prisma.XOR } /** * AgentSession createMany */ export type AgentSessionCreateManyArgs = { /** * The data used to create many AgentSessions. */ data: Prisma.AgentSessionCreateManyInput | Prisma.AgentSessionCreateManyInput[] skipDuplicates?: boolean } /** * AgentSession createManyAndReturn */ export type AgentSessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelectCreateManyAndReturn | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * The data used to create many AgentSessions. */ data: Prisma.AgentSessionCreateManyInput | Prisma.AgentSessionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionIncludeCreateManyAndReturn | null } /** * AgentSession update */ export type AgentSessionUpdateArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null /** * The data needed to update a AgentSession. */ data: Prisma.XOR /** * Choose, which AgentSession to update. */ where: Prisma.AgentSessionWhereUniqueInput } /** * AgentSession updateMany */ export type AgentSessionUpdateManyArgs = { /** * The data used to update AgentSessions. */ data: Prisma.XOR /** * Filter which AgentSessions to update */ where?: Prisma.AgentSessionWhereInput /** * Limit how many AgentSessions to update. */ limit?: number } /** * AgentSession updateManyAndReturn */ export type AgentSessionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelectUpdateManyAndReturn | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * The data used to update AgentSessions. */ data: Prisma.XOR /** * Filter which AgentSessions to update */ where?: Prisma.AgentSessionWhereInput /** * Limit how many AgentSessions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionIncludeUpdateManyAndReturn | null } /** * AgentSession upsert */ export type AgentSessionUpsertArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null /** * The filter to search for the AgentSession to update in case it exists. */ where: Prisma.AgentSessionWhereUniqueInput /** * In case the AgentSession found by the `where` argument doesn't exist, create a new AgentSession with this data. */ create: Prisma.XOR /** * In case the AgentSession was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AgentSession delete */ export type AgentSessionDeleteArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null /** * Filter which AgentSession to delete. */ where: Prisma.AgentSessionWhereUniqueInput } /** * AgentSession deleteMany */ export type AgentSessionDeleteManyArgs = { /** * Filter which AgentSessions to delete */ where?: Prisma.AgentSessionWhereInput /** * Limit how many AgentSessions to delete. */ limit?: number } /** * AgentSession.user */ export type AgentSession$userArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * AgentSession.entries */ export type AgentSession$entriesArgs = { /** * Select specific fields to fetch from the AgentSessionEntry */ select?: Prisma.AgentSessionEntrySelect | null /** * Omit specific fields from the AgentSessionEntry */ omit?: Prisma.AgentSessionEntryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionEntryInclude | null where?: Prisma.AgentSessionEntryWhereInput orderBy?: Prisma.AgentSessionEntryOrderByWithRelationInput | Prisma.AgentSessionEntryOrderByWithRelationInput[] cursor?: Prisma.AgentSessionEntryWhereUniqueInput take?: number skip?: number distinct?: Prisma.AgentSessionEntryScalarFieldEnum | Prisma.AgentSessionEntryScalarFieldEnum[] } /** * AgentSession.comment */ export type AgentSession$commentArgs = { /** * Select specific fields to fetch from the AssetComment */ select?: Prisma.AssetCommentSelect | null /** * Omit specific fields from the AssetComment */ omit?: Prisma.AssetCommentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AssetCommentInclude | null where?: Prisma.AssetCommentWhereInput } /** * AgentSession without action */ export type AgentSessionDefaultArgs = { /** * Select specific fields to fetch from the AgentSession */ select?: Prisma.AgentSessionSelect | null /** * Omit specific fields from the AgentSession */ omit?: Prisma.AgentSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AgentSessionInclude | null }