Files
shumai/src/generated/prisma/models/AgentSession.ts
T

1841 lines
74 KiB
TypeScript
Generated

/* !!! 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<Prisma.$AgentSessionPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends AgentSessionAggregateArgs> = {
[P in keyof T & keyof AggregateAgentSession]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAgentSession[P]>
: Prisma.GetScalarType<T[P], AggregateAgentSession[P]>
}
export type AgentSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends AgentSessionGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AgentSessionGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AgentSessionGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AgentSessionGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AgentSessionGroupByOutputType[P]>
}
>
>
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<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
entries?: Prisma.AgentSessionEntryListRelationFilter
comment?: Prisma.XOR<Prisma.AssetCommentNullableScalarRelationFilter, Prisma.AssetCommentWhereInput> | 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<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
entries?: Prisma.AgentSessionEntryListRelationFilter
comment?: Prisma.XOR<Prisma.AssetCommentNullableScalarRelationFilter, Prisma.AssetCommentWhereInput> | 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> | 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> | 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> | 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> | 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<Prisma.AgentSessionCreateWithoutCommentInput, Prisma.AgentSessionUncheckedCreateWithoutCommentInput>
connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutCommentInput
connect?: Prisma.AgentSessionWhereUniqueInput
}
export type AgentSessionUpdateOneWithoutCommentNestedInput = {
create?: Prisma.XOR<Prisma.AgentSessionCreateWithoutCommentInput, Prisma.AgentSessionUncheckedCreateWithoutCommentInput>
connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutCommentInput
upsert?: Prisma.AgentSessionUpsertWithoutCommentInput
disconnect?: Prisma.AgentSessionWhereInput | boolean
delete?: Prisma.AgentSessionWhereInput | boolean
connect?: Prisma.AgentSessionWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentSessionUpdateToOneWithWhereWithoutCommentInput, Prisma.AgentSessionUpdateWithoutCommentInput>, Prisma.AgentSessionUncheckedUpdateWithoutCommentInput>
}
export type AgentSessionCreateNestedManyWithoutAgentInput = {
create?: Prisma.XOR<Prisma.AgentSessionCreateWithoutAgentInput, Prisma.AgentSessionUncheckedCreateWithoutAgentInput> | 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> | 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> | 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> | 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<Prisma.AgentSessionCreateWithoutEntriesInput, Prisma.AgentSessionUncheckedCreateWithoutEntriesInput>
connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutEntriesInput
connect?: Prisma.AgentSessionWhereUniqueInput
}
export type AgentSessionUpdateOneRequiredWithoutEntriesNestedInput = {
create?: Prisma.XOR<Prisma.AgentSessionCreateWithoutEntriesInput, Prisma.AgentSessionUncheckedCreateWithoutEntriesInput>
connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutEntriesInput
upsert?: Prisma.AgentSessionUpsertWithoutEntriesInput
connect?: Prisma.AgentSessionWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentSessionUpdateToOneWithWhereWithoutEntriesInput, Prisma.AgentSessionUpdateWithoutEntriesInput>, 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<Prisma.AgentSessionCreateWithoutUserInput, Prisma.AgentSessionUncheckedCreateWithoutUserInput>
}
export type AgentSessionCreateManyUserInputEnvelope = {
data: Prisma.AgentSessionCreateManyUserInput | Prisma.AgentSessionCreateManyUserInput[]
skipDuplicates?: boolean
}
export type AgentSessionUpsertWithWhereUniqueWithoutUserInput = {
where: Prisma.AgentSessionWhereUniqueInput
update: Prisma.XOR<Prisma.AgentSessionUpdateWithoutUserInput, Prisma.AgentSessionUncheckedUpdateWithoutUserInput>
create: Prisma.XOR<Prisma.AgentSessionCreateWithoutUserInput, Prisma.AgentSessionUncheckedCreateWithoutUserInput>
}
export type AgentSessionUpdateWithWhereUniqueWithoutUserInput = {
where: Prisma.AgentSessionWhereUniqueInput
data: Prisma.XOR<Prisma.AgentSessionUpdateWithoutUserInput, Prisma.AgentSessionUncheckedUpdateWithoutUserInput>
}
export type AgentSessionUpdateManyWithWhereWithoutUserInput = {
where: Prisma.AgentSessionScalarWhereInput
data: Prisma.XOR<Prisma.AgentSessionUpdateManyMutationInput, Prisma.AgentSessionUncheckedUpdateManyWithoutUserInput>
}
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<Prisma.AgentSessionCreateWithoutCommentInput, Prisma.AgentSessionUncheckedCreateWithoutCommentInput>
}
export type AgentSessionUpsertWithoutCommentInput = {
update: Prisma.XOR<Prisma.AgentSessionUpdateWithoutCommentInput, Prisma.AgentSessionUncheckedUpdateWithoutCommentInput>
create: Prisma.XOR<Prisma.AgentSessionCreateWithoutCommentInput, Prisma.AgentSessionUncheckedCreateWithoutCommentInput>
where?: Prisma.AgentSessionWhereInput
}
export type AgentSessionUpdateToOneWithWhereWithoutCommentInput = {
where?: Prisma.AgentSessionWhereInput
data: Prisma.XOR<Prisma.AgentSessionUpdateWithoutCommentInput, Prisma.AgentSessionUncheckedUpdateWithoutCommentInput>
}
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<Prisma.AgentSessionCreateWithoutAgentInput, Prisma.AgentSessionUncheckedCreateWithoutAgentInput>
}
export type AgentSessionCreateManyAgentInputEnvelope = {
data: Prisma.AgentSessionCreateManyAgentInput | Prisma.AgentSessionCreateManyAgentInput[]
skipDuplicates?: boolean
}
export type AgentSessionUpsertWithWhereUniqueWithoutAgentInput = {
where: Prisma.AgentSessionWhereUniqueInput
update: Prisma.XOR<Prisma.AgentSessionUpdateWithoutAgentInput, Prisma.AgentSessionUncheckedUpdateWithoutAgentInput>
create: Prisma.XOR<Prisma.AgentSessionCreateWithoutAgentInput, Prisma.AgentSessionUncheckedCreateWithoutAgentInput>
}
export type AgentSessionUpdateWithWhereUniqueWithoutAgentInput = {
where: Prisma.AgentSessionWhereUniqueInput
data: Prisma.XOR<Prisma.AgentSessionUpdateWithoutAgentInput, Prisma.AgentSessionUncheckedUpdateWithoutAgentInput>
}
export type AgentSessionUpdateManyWithWhereWithoutAgentInput = {
where: Prisma.AgentSessionScalarWhereInput
data: Prisma.XOR<Prisma.AgentSessionUpdateManyMutationInput, Prisma.AgentSessionUncheckedUpdateManyWithoutAgentInput>
}
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<Prisma.AgentSessionCreateWithoutEntriesInput, Prisma.AgentSessionUncheckedCreateWithoutEntriesInput>
}
export type AgentSessionUpsertWithoutEntriesInput = {
update: Prisma.XOR<Prisma.AgentSessionUpdateWithoutEntriesInput, Prisma.AgentSessionUncheckedUpdateWithoutEntriesInput>
create: Prisma.XOR<Prisma.AgentSessionCreateWithoutEntriesInput, Prisma.AgentSessionUncheckedCreateWithoutEntriesInput>
where?: Prisma.AgentSessionWhereInput
}
export type AgentSessionUpdateToOneWithWhereWithoutEntriesInput = {
where?: Prisma.AgentSessionWhereInput
data: Prisma.XOR<Prisma.AgentSessionUpdateWithoutEntriesInput, Prisma.AgentSessionUncheckedUpdateWithoutEntriesInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
entries?: boolean | AgentSessionCountOutputTypeCountEntriesArgs
}
/**
* AgentSessionCountOutputType without action
*/
export type AgentSessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSessionCountOutputType
*/
select?: Prisma.AgentSessionCountOutputTypeSelect<ExtArgs> | null
}
/**
* AgentSessionCountOutputType without action
*/
export type AgentSessionCountOutputTypeCountEntriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AgentSessionEntryWhereInput
}
export type AgentSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
agentId?: boolean
userId?: boolean
cwd?: boolean
leafId?: boolean
createdAt?: boolean
updatedAt?: boolean
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
user?: boolean | Prisma.AgentSession$userArgs<ExtArgs>
entries?: boolean | Prisma.AgentSession$entriesArgs<ExtArgs>
comment?: boolean | Prisma.AgentSession$commentArgs<ExtArgs>
_count?: boolean | Prisma.AgentSessionCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agentSession"]>
export type AgentSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
agentId?: boolean
userId?: boolean
cwd?: boolean
leafId?: boolean
createdAt?: boolean
updatedAt?: boolean
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
user?: boolean | Prisma.AgentSession$userArgs<ExtArgs>
}, ExtArgs["result"]["agentSession"]>
export type AgentSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
agentId?: boolean
userId?: boolean
cwd?: boolean
leafId?: boolean
createdAt?: boolean
updatedAt?: boolean
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
user?: boolean | Prisma.AgentSession$userArgs<ExtArgs>
}, ExtArgs["result"]["agentSession"]>
export type AgentSessionSelectScalar = {
id?: boolean
agentId?: boolean
userId?: boolean
cwd?: boolean
leafId?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type AgentSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "userId" | "cwd" | "leafId" | "createdAt" | "updatedAt", ExtArgs["result"]["agentSession"]>
export type AgentSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
user?: boolean | Prisma.AgentSession$userArgs<ExtArgs>
entries?: boolean | Prisma.AgentSession$entriesArgs<ExtArgs>
comment?: boolean | Prisma.AgentSession$commentArgs<ExtArgs>
_count?: boolean | Prisma.AgentSessionCountOutputTypeDefaultArgs<ExtArgs>
}
export type AgentSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
user?: boolean | Prisma.AgentSession$userArgs<ExtArgs>
}
export type AgentSessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
user?: boolean | Prisma.AgentSession$userArgs<ExtArgs>
}
export type $AgentSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AgentSession"
objects: {
agent: Prisma.$AgentPayload<ExtArgs>
user: Prisma.$UserPayload<ExtArgs> | null
entries: Prisma.$AgentSessionEntryPayload<ExtArgs>[]
comment: Prisma.$AssetCommentPayload<ExtArgs> | 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<S extends boolean | null | undefined | AgentSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload, S>
export type AgentSessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AgentSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AgentSessionCountAggregateInputType | true
}
export interface AgentSessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends AgentSessionFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentSessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentSessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionFindManyArgs>(args?: Prisma.SelectSubset<T, AgentSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionCreateArgs>(args: Prisma.SelectSubset<T, AgentSessionCreateArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends AgentSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionDeleteArgs>(args: Prisma.SelectSubset<T, AgentSessionDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionUpdateArgs>(args: Prisma.SelectSubset<T, AgentSessionUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends AgentSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends AgentSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionUpsertArgs>(args: Prisma.SelectSubset<T, AgentSessionUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, 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<T extends AgentSessionCountArgs>(
args?: Prisma.Subset<T, AgentSessionCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AgentSessionCountAggregateOutputType>
: 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<T extends AgentSessionAggregateArgs>(args: Prisma.Subset<T, AgentSessionAggregateArgs>): Prisma.PrismaPromise<GetAgentSessionAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AgentSessionGroupByArgs['orderBy'] }
: { orderBy?: AgentSessionGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, AgentSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
user<T extends Prisma.AgentSession$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentSession$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
entries<T extends Prisma.AgentSession$entriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentSession$entriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSessionEntryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
comment<T extends Prisma.AgentSession$commentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentSession$commentArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | null
/**
* Filter, which AgentSession to fetch.
*/
where: Prisma.AgentSessionWhereUniqueInput
}
/**
* AgentSession findUniqueOrThrow
*/
export type AgentSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | null
/**
* Filter, which AgentSession to fetch.
*/
where: Prisma.AgentSessionWhereUniqueInput
}
/**
* AgentSession findFirst
*/
export type AgentSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | null
/**
* The data needed to create a AgentSession.
*/
data: Prisma.XOR<Prisma.AgentSessionCreateInput, Prisma.AgentSessionUncheckedCreateInput>
}
/**
* AgentSession createMany
*/
export type AgentSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AgentSessions.
*/
data: Prisma.AgentSessionCreateManyInput | Prisma.AgentSessionCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AgentSession createManyAndReturn
*/
export type AgentSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | 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<ExtArgs> | null
}
/**
* AgentSession update
*/
export type AgentSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | null
/**
* The data needed to update a AgentSession.
*/
data: Prisma.XOR<Prisma.AgentSessionUpdateInput, Prisma.AgentSessionUncheckedUpdateInput>
/**
* Choose, which AgentSession to update.
*/
where: Prisma.AgentSessionWhereUniqueInput
}
/**
* AgentSession updateMany
*/
export type AgentSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AgentSessions.
*/
data: Prisma.XOR<Prisma.AgentSessionUpdateManyMutationInput, Prisma.AgentSessionUncheckedUpdateManyInput>
/**
* Filter which AgentSessions to update
*/
where?: Prisma.AgentSessionWhereInput
/**
* Limit how many AgentSessions to update.
*/
limit?: number
}
/**
* AgentSession updateManyAndReturn
*/
export type AgentSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* The data used to update AgentSessions.
*/
data: Prisma.XOR<Prisma.AgentSessionUpdateManyMutationInput, Prisma.AgentSessionUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* AgentSession upsert
*/
export type AgentSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | 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<Prisma.AgentSessionCreateInput, Prisma.AgentSessionUncheckedCreateInput>
/**
* In case the AgentSession was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AgentSessionUpdateInput, Prisma.AgentSessionUncheckedUpdateInput>
}
/**
* AgentSession delete
*/
export type AgentSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | null
/**
* Filter which AgentSession to delete.
*/
where: Prisma.AgentSessionWhereUniqueInput
}
/**
* AgentSession deleteMany
*/
export type AgentSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AgentSessions to delete
*/
where?: Prisma.AgentSessionWhereInput
/**
* Limit how many AgentSessions to delete.
*/
limit?: number
}
/**
* AgentSession.user
*/
export type AgentSession$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* AgentSession.entries
*/
export type AgentSession$entriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSessionEntry
*/
select?: Prisma.AgentSessionEntrySelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSessionEntry
*/
omit?: Prisma.AgentSessionEntryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionEntryInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AssetComment
*/
select?: Prisma.AssetCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the AssetComment
*/
omit?: Prisma.AssetCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AssetCommentInclude<ExtArgs> | null
where?: Prisma.AssetCommentWhereInput
}
/**
* AgentSession without action
*/
export type AgentSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | null
}