feat(agent): replace isAi with sessionId & implement admin logs UI

This commit is contained in:
yiling
2026-05-21 14:58:31 +08:00
parent 2a4594d986
commit 161ba3a466
24 changed files with 781 additions and 91 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -2905,7 +2905,7 @@ export const AssetCommentScalarFieldEnum = {
message: 'message',
annotation: 'annotation',
second: 'second',
isAi: 'isAi',
sessionId: 'sessionId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
assetId: 'assetId',
+1 -1
View File
@@ -312,7 +312,7 @@ export const AssetCommentScalarFieldEnum = {
message: 'message',
annotation: 'annotation',
second: 'second',
isAi: 'isAi',
sessionId: 'sessionId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
assetId: 'assetId',
+137
View File
@@ -203,6 +203,7 @@ export type AgentSessionWhereInput = {
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
entries?: Prisma.AgentSessionEntryListRelationFilter
comments?: Prisma.AssetCommentListRelationFilter
}
export type AgentSessionOrderByWithRelationInput = {
@@ -216,6 +217,7 @@ export type AgentSessionOrderByWithRelationInput = {
agent?: Prisma.AgentOrderByWithRelationInput
user?: Prisma.UserOrderByWithRelationInput
entries?: Prisma.AgentSessionEntryOrderByRelationAggregateInput
comments?: Prisma.AssetCommentOrderByRelationAggregateInput
}
export type AgentSessionWhereUniqueInput = Prisma.AtLeast<{
@@ -232,6 +234,7 @@ export type AgentSessionWhereUniqueInput = Prisma.AtLeast<{
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
entries?: Prisma.AgentSessionEntryListRelationFilter
comments?: Prisma.AssetCommentListRelationFilter
}, "id">
export type AgentSessionOrderByWithAggregationInput = {
@@ -269,6 +272,7 @@ export type AgentSessionCreateInput = {
agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput
user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput
entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput
comments?: Prisma.AssetCommentCreateNestedManyWithoutSessionInput
}
export type AgentSessionUncheckedCreateInput = {
@@ -280,6 +284,7 @@ export type AgentSessionUncheckedCreateInput = {
createdAt?: Date | string
updatedAt?: Date | string
entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput
comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutSessionInput
}
export type AgentSessionUpdateInput = {
@@ -291,6 +296,7 @@ export type AgentSessionUpdateInput = {
agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput
user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput
entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput
comments?: Prisma.AssetCommentUpdateManyWithoutSessionNestedInput
}
export type AgentSessionUncheckedUpdateInput = {
@@ -302,6 +308,7 @@ export type AgentSessionUncheckedUpdateInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput
comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutSessionNestedInput
}
export type AgentSessionCreateManyInput = {
@@ -342,6 +349,11 @@ 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
@@ -419,6 +431,22 @@ export type AgentSessionUncheckedUpdateManyWithoutUserNestedInput = {
deleteMany?: Prisma.AgentSessionScalarWhereInput | Prisma.AgentSessionScalarWhereInput[]
}
export type AgentSessionCreateNestedOneWithoutCommentsInput = {
create?: Prisma.XOR<Prisma.AgentSessionCreateWithoutCommentsInput, Prisma.AgentSessionUncheckedCreateWithoutCommentsInput>
connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutCommentsInput
connect?: Prisma.AgentSessionWhereUniqueInput
}
export type AgentSessionUpdateOneWithoutCommentsNestedInput = {
create?: Prisma.XOR<Prisma.AgentSessionCreateWithoutCommentsInput, Prisma.AgentSessionUncheckedCreateWithoutCommentsInput>
connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutCommentsInput
upsert?: Prisma.AgentSessionUpsertWithoutCommentsInput
disconnect?: Prisma.AgentSessionWhereInput | boolean
delete?: Prisma.AgentSessionWhereInput | boolean
connect?: Prisma.AgentSessionWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentSessionUpdateToOneWithWhereWithoutCommentsInput, Prisma.AgentSessionUpdateWithoutCommentsInput>, Prisma.AgentSessionUncheckedUpdateWithoutCommentsInput>
}
export type AgentSessionCreateNestedManyWithoutAgentInput = {
create?: Prisma.XOR<Prisma.AgentSessionCreateWithoutAgentInput, Prisma.AgentSessionUncheckedCreateWithoutAgentInput> | Prisma.AgentSessionCreateWithoutAgentInput[] | Prisma.AgentSessionUncheckedCreateWithoutAgentInput[]
connectOrCreate?: Prisma.AgentSessionCreateOrConnectWithoutAgentInput | Prisma.AgentSessionCreateOrConnectWithoutAgentInput[]
@@ -483,6 +511,7 @@ export type AgentSessionCreateWithoutUserInput = {
updatedAt?: Date | string
agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput
entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput
comments?: Prisma.AssetCommentCreateNestedManyWithoutSessionInput
}
export type AgentSessionUncheckedCreateWithoutUserInput = {
@@ -493,6 +522,7 @@ export type AgentSessionUncheckedCreateWithoutUserInput = {
createdAt?: Date | string
updatedAt?: Date | string
entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput
comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutSessionInput
}
export type AgentSessionCreateOrConnectWithoutUserInput = {
@@ -534,6 +564,66 @@ export type AgentSessionScalarWhereInput = {
updatedAt?: Prisma.DateTimeFilter<"AgentSession"> | Date | string
}
export type AgentSessionCreateWithoutCommentsInput = {
id?: string
cwd: string
leafId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput
user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput
entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput
}
export type AgentSessionUncheckedCreateWithoutCommentsInput = {
id?: string
agentId: string
userId?: string | null
cwd: string
leafId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput
}
export type AgentSessionCreateOrConnectWithoutCommentsInput = {
where: Prisma.AgentSessionWhereUniqueInput
create: Prisma.XOR<Prisma.AgentSessionCreateWithoutCommentsInput, Prisma.AgentSessionUncheckedCreateWithoutCommentsInput>
}
export type AgentSessionUpsertWithoutCommentsInput = {
update: Prisma.XOR<Prisma.AgentSessionUpdateWithoutCommentsInput, Prisma.AgentSessionUncheckedUpdateWithoutCommentsInput>
create: Prisma.XOR<Prisma.AgentSessionCreateWithoutCommentsInput, Prisma.AgentSessionUncheckedCreateWithoutCommentsInput>
where?: Prisma.AgentSessionWhereInput
}
export type AgentSessionUpdateToOneWithWhereWithoutCommentsInput = {
where?: Prisma.AgentSessionWhereInput
data: Prisma.XOR<Prisma.AgentSessionUpdateWithoutCommentsInput, Prisma.AgentSessionUncheckedUpdateWithoutCommentsInput>
}
export type AgentSessionUpdateWithoutCommentsInput = {
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 AgentSessionUncheckedUpdateWithoutCommentsInput = {
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
@@ -542,6 +632,7 @@ export type AgentSessionCreateWithoutAgentInput = {
updatedAt?: Date | string
user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput
entries?: Prisma.AgentSessionEntryCreateNestedManyWithoutSessionInput
comments?: Prisma.AssetCommentCreateNestedManyWithoutSessionInput
}
export type AgentSessionUncheckedCreateWithoutAgentInput = {
@@ -552,6 +643,7 @@ export type AgentSessionUncheckedCreateWithoutAgentInput = {
createdAt?: Date | string
updatedAt?: Date | string
entries?: Prisma.AgentSessionEntryUncheckedCreateNestedManyWithoutSessionInput
comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutSessionInput
}
export type AgentSessionCreateOrConnectWithoutAgentInput = {
@@ -588,6 +680,7 @@ export type AgentSessionCreateWithoutEntriesInput = {
updatedAt?: Date | string
agent: Prisma.AgentCreateNestedOneWithoutAgentSessionsInput
user?: Prisma.UserCreateNestedOneWithoutAgentSessionsInput
comments?: Prisma.AssetCommentCreateNestedManyWithoutSessionInput
}
export type AgentSessionUncheckedCreateWithoutEntriesInput = {
@@ -598,6 +691,7 @@ export type AgentSessionUncheckedCreateWithoutEntriesInput = {
leafId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutSessionInput
}
export type AgentSessionCreateOrConnectWithoutEntriesInput = {
@@ -624,6 +718,7 @@ export type AgentSessionUpdateWithoutEntriesInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput
user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput
comments?: Prisma.AssetCommentUpdateManyWithoutSessionNestedInput
}
export type AgentSessionUncheckedUpdateWithoutEntriesInput = {
@@ -634,6 +729,7 @@ export type AgentSessionUncheckedUpdateWithoutEntriesInput = {
leafId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutSessionNestedInput
}
export type AgentSessionCreateManyUserInput = {
@@ -653,6 +749,7 @@ export type AgentSessionUpdateWithoutUserInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agent?: Prisma.AgentUpdateOneRequiredWithoutAgentSessionsNestedInput
entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput
comments?: Prisma.AssetCommentUpdateManyWithoutSessionNestedInput
}
export type AgentSessionUncheckedUpdateWithoutUserInput = {
@@ -663,6 +760,7 @@ export type AgentSessionUncheckedUpdateWithoutUserInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput
comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutSessionNestedInput
}
export type AgentSessionUncheckedUpdateManyWithoutUserInput = {
@@ -691,6 +789,7 @@ export type AgentSessionUpdateWithoutAgentInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneWithoutAgentSessionsNestedInput
entries?: Prisma.AgentSessionEntryUpdateManyWithoutSessionNestedInput
comments?: Prisma.AssetCommentUpdateManyWithoutSessionNestedInput
}
export type AgentSessionUncheckedUpdateWithoutAgentInput = {
@@ -701,6 +800,7 @@ export type AgentSessionUncheckedUpdateWithoutAgentInput = {
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
entries?: Prisma.AgentSessionEntryUncheckedUpdateManyWithoutSessionNestedInput
comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutSessionNestedInput
}
export type AgentSessionUncheckedUpdateManyWithoutAgentInput = {
@@ -719,10 +819,12 @@ export type AgentSessionUncheckedUpdateManyWithoutAgentInput = {
export type AgentSessionCountOutputType = {
entries: number
comments: number
}
export type AgentSessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
entries?: boolean | AgentSessionCountOutputTypeCountEntriesArgs
comments?: boolean | AgentSessionCountOutputTypeCountCommentsArgs
}
/**
@@ -742,6 +844,13 @@ export type AgentSessionCountOutputTypeCountEntriesArgs<ExtArgs extends runtime.
where?: Prisma.AgentSessionEntryWhereInput
}
/**
* AgentSessionCountOutputType without action
*/
export type AgentSessionCountOutputTypeCountCommentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AssetCommentWhereInput
}
export type AgentSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
@@ -754,6 +863,7 @@ export type AgentSessionSelect<ExtArgs extends runtime.Types.Extensions.Internal
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
user?: boolean | Prisma.AgentSession$userArgs<ExtArgs>
entries?: boolean | Prisma.AgentSession$entriesArgs<ExtArgs>
comments?: boolean | Prisma.AgentSession$commentsArgs<ExtArgs>
_count?: boolean | Prisma.AgentSessionCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agentSession"]>
@@ -796,6 +906,7 @@ export type AgentSessionInclude<ExtArgs extends runtime.Types.Extensions.Interna
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
user?: boolean | Prisma.AgentSession$userArgs<ExtArgs>
entries?: boolean | Prisma.AgentSession$entriesArgs<ExtArgs>
comments?: boolean | Prisma.AgentSession$commentsArgs<ExtArgs>
_count?: boolean | Prisma.AgentSessionCountOutputTypeDefaultArgs<ExtArgs>
}
export type AgentSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -813,6 +924,7 @@ export type $AgentSessionPayload<ExtArgs extends runtime.Types.Extensions.Intern
agent: Prisma.$AgentPayload<ExtArgs>
user: Prisma.$UserPayload<ExtArgs> | null
entries: Prisma.$AgentSessionEntryPayload<ExtArgs>[]
comments: Prisma.$AssetCommentPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
@@ -1219,6 +1331,7 @@ export interface Prisma__AgentSessionClient<T, Null = never, ExtArgs extends run
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>
comments<T extends Prisma.AgentSession$commentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentSession$commentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1698,6 +1811,30 @@ export type AgentSession$entriesArgs<ExtArgs extends runtime.Types.Extensions.In
distinct?: Prisma.AgentSessionEntryScalarFieldEnum | Prisma.AgentSessionEntryScalarFieldEnum[]
}
/**
* AgentSession.comments
*/
export type AgentSession$commentsArgs<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
orderBy?: Prisma.AssetCommentOrderByWithRelationInput | Prisma.AssetCommentOrderByWithRelationInput[]
cursor?: Prisma.AssetCommentWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AssetCommentScalarFieldEnum | Prisma.AssetCommentScalarFieldEnum[]
}
/**
* AgentSession without action
*/
+233 -56
View File
@@ -40,7 +40,7 @@ export type AssetCommentMinAggregateOutputType = {
id: string | null
message: string | null
second: number | null
isAi: boolean | null
sessionId: string | null
createdAt: Date | null
updatedAt: Date | null
assetId: string | null
@@ -52,7 +52,7 @@ export type AssetCommentMaxAggregateOutputType = {
id: string | null
message: string | null
second: number | null
isAi: boolean | null
sessionId: string | null
createdAt: Date | null
updatedAt: Date | null
assetId: string | null
@@ -65,7 +65,7 @@ export type AssetCommentCountAggregateOutputType = {
message: number
annotation:PrismaJson.AnnotationList
second: number
isAi: number
sessionId: number
createdAt: number
updatedAt: number
assetId: number
@@ -87,7 +87,7 @@ export type AssetCommentMinAggregateInputType = {
id?: true
message?: true
second?: true
isAi?: true
sessionId?: true
createdAt?: true
updatedAt?: true
assetId?: true
@@ -99,7 +99,7 @@ export type AssetCommentMaxAggregateInputType = {
id?: true
message?: true
second?: true
isAi?: true
sessionId?: true
createdAt?: true
updatedAt?: true
assetId?: true
@@ -112,7 +112,7 @@ export type AssetCommentCountAggregateInputType = {
message?: true
annotation?: true
second?: true
isAi?: true
sessionId?: true
createdAt?: true
updatedAt?: true
assetId?: true
@@ -212,7 +212,7 @@ export type AssetCommentGroupByOutputType = {
message: string | null
annotation:PrismaJson.AnnotationList | null
second: number | null
isAi: boolean
sessionId: string | null
createdAt: Date
updatedAt: Date
assetId: string
@@ -248,12 +248,13 @@ export type AssetCommentWhereInput = {
message?: Prisma.StringNullableFilter<"AssetComment"> | string | null
annotation?: Prisma.JsonNullableFilter<"AssetComment">
second?: Prisma.FloatNullableFilter<"AssetComment"> | number | null
isAi?: Prisma.BoolFilter<"AssetComment"> | boolean
sessionId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
createdAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
assetId?: Prisma.StringFilter<"AssetComment"> | string
creatorId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
replyToId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
session?: Prisma.XOR<Prisma.AgentSessionNullableScalarRelationFilter, Prisma.AgentSessionWhereInput> | null
asset?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
replyTo?: Prisma.XOR<Prisma.AssetCommentNullableScalarRelationFilter, Prisma.AssetCommentWhereInput> | null
@@ -266,12 +267,13 @@ export type AssetCommentOrderByWithRelationInput = {
message?: Prisma.SortOrderInput | Prisma.SortOrder
annotation?: Prisma.SortOrderInput | Prisma.SortOrder
second?: Prisma.SortOrderInput | Prisma.SortOrder
isAi?: Prisma.SortOrder
sessionId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
replyToId?: Prisma.SortOrderInput | Prisma.SortOrder
session?: Prisma.AgentSessionOrderByWithRelationInput
asset?: Prisma.AssetOrderByWithRelationInput
creator?: Prisma.UserOrderByWithRelationInput
replyTo?: Prisma.AssetCommentOrderByWithRelationInput
@@ -287,12 +289,13 @@ export type AssetCommentWhereUniqueInput = Prisma.AtLeast<{
message?: Prisma.StringNullableFilter<"AssetComment"> | string | null
annotation?: Prisma.JsonNullableFilter<"AssetComment">
second?: Prisma.FloatNullableFilter<"AssetComment"> | number | null
isAi?: Prisma.BoolFilter<"AssetComment"> | boolean
sessionId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
createdAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
assetId?: Prisma.StringFilter<"AssetComment"> | string
creatorId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
replyToId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
session?: Prisma.XOR<Prisma.AgentSessionNullableScalarRelationFilter, Prisma.AgentSessionWhereInput> | null
asset?: Prisma.XOR<Prisma.AssetScalarRelationFilter, Prisma.AssetWhereInput>
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
replyTo?: Prisma.XOR<Prisma.AssetCommentNullableScalarRelationFilter, Prisma.AssetCommentWhereInput> | null
@@ -305,7 +308,7 @@ export type AssetCommentOrderByWithAggregationInput = {
message?: Prisma.SortOrderInput | Prisma.SortOrder
annotation?: Prisma.SortOrderInput | Prisma.SortOrder
second?: Prisma.SortOrderInput | Prisma.SortOrder
isAi?: Prisma.SortOrder
sessionId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
@@ -326,7 +329,7 @@ export type AssetCommentScalarWhereWithAggregatesInput = {
message?: Prisma.StringNullableWithAggregatesFilter<"AssetComment"> | string | null
annotation?: Prisma.JsonNullableWithAggregatesFilter<"AssetComment">
second?: Prisma.FloatNullableWithAggregatesFilter<"AssetComment"> | number | null
isAi?: Prisma.BoolWithAggregatesFilter<"AssetComment"> | boolean
sessionId?: Prisma.StringNullableWithAggregatesFilter<"AssetComment"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AssetComment"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AssetComment"> | Date | string
assetId?: Prisma.StringWithAggregatesFilter<"AssetComment"> | string
@@ -339,9 +342,9 @@ export type AssetCommentCreateInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
@@ -354,7 +357,7 @@ export type AssetCommentUncheckedCreateInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
@@ -369,9 +372,9 @@ export type AssetCommentUpdateInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
@@ -384,7 +387,7 @@ export type AssetCommentUncheckedUpdateInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
@@ -399,7 +402,7 @@ export type AssetCommentCreateManyInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
@@ -412,7 +415,6 @@ export type AssetCommentUpdateManyMutationInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
@@ -422,7 +424,7 @@ export type AssetCommentUncheckedUpdateManyInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
@@ -450,7 +452,7 @@ export type AssetCommentCountOrderByAggregateInput = {
message?: Prisma.SortOrder
annotation?: Prisma.SortOrder
second?: Prisma.SortOrder
isAi?: Prisma.SortOrder
sessionId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
@@ -466,7 +468,7 @@ export type AssetCommentMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
message?: Prisma.SortOrder
second?: Prisma.SortOrder
isAi?: Prisma.SortOrder
sessionId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
@@ -478,7 +480,7 @@ export type AssetCommentMinOrderByAggregateInput = {
id?: Prisma.SortOrder
message?: Prisma.SortOrder
second?: Prisma.SortOrder
isAi?: Prisma.SortOrder
sessionId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
assetId?: Prisma.SortOrder
@@ -651,14 +653,56 @@ export type AssetCommentUpdateOneRequiredWithoutAttachmentsNestedInput = {
update?: Prisma.XOR<Prisma.XOR<Prisma.AssetCommentUpdateToOneWithWhereWithoutAttachmentsInput, Prisma.AssetCommentUpdateWithoutAttachmentsInput>, Prisma.AssetCommentUncheckedUpdateWithoutAttachmentsInput>
}
export type AssetCommentCreateNestedManyWithoutSessionInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput> | Prisma.AssetCommentCreateWithoutSessionInput[] | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutSessionInput | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[]
createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUncheckedCreateNestedManyWithoutSessionInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput> | Prisma.AssetCommentCreateWithoutSessionInput[] | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutSessionInput | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[]
createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
}
export type AssetCommentUpdateManyWithoutSessionNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput> | Prisma.AssetCommentCreateWithoutSessionInput[] | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutSessionInput | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput[]
createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput | Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentUncheckedUpdateManyWithoutSessionNestedInput = {
create?: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput> | Prisma.AssetCommentCreateWithoutSessionInput[] | Prisma.AssetCommentUncheckedCreateWithoutSessionInput[]
connectOrCreate?: Prisma.AssetCommentCreateOrConnectWithoutSessionInput | Prisma.AssetCommentCreateOrConnectWithoutSessionInput[]
upsert?: Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput | Prisma.AssetCommentUpsertWithWhereUniqueWithoutSessionInput[]
createMany?: Prisma.AssetCommentCreateManySessionInputEnvelope
set?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
disconnect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
delete?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
connect?: Prisma.AssetCommentWhereUniqueInput | Prisma.AssetCommentWhereUniqueInput[]
update?: Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput | Prisma.AssetCommentUpdateWithWhereUniqueWithoutSessionInput[]
updateMany?: Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput | Prisma.AssetCommentUpdateManyWithWhereWithoutSessionInput[]
deleteMany?: Prisma.AssetCommentScalarWhereInput | Prisma.AssetCommentScalarWhereInput[]
}
export type AssetCommentCreateWithoutCreatorInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
@@ -670,7 +714,7 @@ export type AssetCommentUncheckedCreateWithoutCreatorInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
@@ -713,7 +757,7 @@ export type AssetCommentScalarWhereInput = {
message?: Prisma.StringNullableFilter<"AssetComment"> | string | null
annotation?: Prisma.JsonNullableFilter<"AssetComment">
second?: Prisma.FloatNullableFilter<"AssetComment"> | number | null
isAi?: Prisma.BoolFilter<"AssetComment"> | boolean
sessionId?: Prisma.StringNullableFilter<"AssetComment"> | string | null
createdAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AssetComment"> | Date | string
assetId?: Prisma.StringFilter<"AssetComment"> | string
@@ -726,9 +770,9 @@ export type AssetCommentCreateWithoutAssetInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
@@ -740,7 +784,7 @@ export type AssetCommentUncheckedCreateWithoutAssetInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
creatorId?: string | null
@@ -780,9 +824,9 @@ export type AssetCommentCreateWithoutRepliesInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
@@ -794,7 +838,7 @@ export type AssetCommentUncheckedCreateWithoutRepliesInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
@@ -813,9 +857,9 @@ export type AssetCommentCreateWithoutReplyToInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
@@ -827,7 +871,7 @@ export type AssetCommentUncheckedCreateWithoutReplyToInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
@@ -862,9 +906,9 @@ export type AssetCommentUpdateWithoutRepliesInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
@@ -876,7 +920,7 @@ export type AssetCommentUncheckedUpdateWithoutRepliesInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
@@ -906,9 +950,9 @@ export type AssetCommentCreateWithoutAttachmentsInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
createdAt?: Date | string
updatedAt?: Date | string
session?: Prisma.AgentSessionCreateNestedOneWithoutCommentsInput
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
@@ -920,7 +964,7 @@ export type AssetCommentUncheckedCreateWithoutAttachmentsInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
@@ -950,9 +994,9 @@ export type AssetCommentUpdateWithoutAttachmentsInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
@@ -964,7 +1008,7 @@ export type AssetCommentUncheckedUpdateWithoutAttachmentsInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
@@ -973,12 +1017,66 @@ export type AssetCommentUncheckedUpdateWithoutAttachmentsInput = {
replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput
}
export type AssetCommentCreateWithoutSessionInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
asset: Prisma.AssetCreateNestedOneWithoutCommentsInput
creator?: Prisma.UserCreateNestedOneWithoutCommentsInput
replyTo?: Prisma.AssetCommentCreateNestedOneWithoutRepliesInput
replies?: Prisma.AssetCommentCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentCreateNestedManyWithoutCommentInput
}
export type AssetCommentUncheckedCreateWithoutSessionInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
replyToId?: string | null
replies?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutReplyToInput
attachments?: Prisma.AssetCommentAttachmentUncheckedCreateNestedManyWithoutCommentInput
}
export type AssetCommentCreateOrConnectWithoutSessionInput = {
where: Prisma.AssetCommentWhereUniqueInput
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput>
}
export type AssetCommentCreateManySessionInputEnvelope = {
data: Prisma.AssetCommentCreateManySessionInput | Prisma.AssetCommentCreateManySessionInput[]
skipDuplicates?: boolean
}
export type AssetCommentUpsertWithWhereUniqueWithoutSessionInput = {
where: Prisma.AssetCommentWhereUniqueInput
update: Prisma.XOR<Prisma.AssetCommentUpdateWithoutSessionInput, Prisma.AssetCommentUncheckedUpdateWithoutSessionInput>
create: Prisma.XOR<Prisma.AssetCommentCreateWithoutSessionInput, Prisma.AssetCommentUncheckedCreateWithoutSessionInput>
}
export type AssetCommentUpdateWithWhereUniqueWithoutSessionInput = {
where: Prisma.AssetCommentWhereUniqueInput
data: Prisma.XOR<Prisma.AssetCommentUpdateWithoutSessionInput, Prisma.AssetCommentUncheckedUpdateWithoutSessionInput>
}
export type AssetCommentUpdateManyWithWhereWithoutSessionInput = {
where: Prisma.AssetCommentScalarWhereInput
data: Prisma.XOR<Prisma.AssetCommentUpdateManyMutationInput, Prisma.AssetCommentUncheckedUpdateManyWithoutSessionInput>
}
export type AssetCommentCreateManyCreatorInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
@@ -990,9 +1088,9 @@ export type AssetCommentUpdateWithoutCreatorInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
@@ -1004,7 +1102,7 @@ export type AssetCommentUncheckedUpdateWithoutCreatorInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
@@ -1018,7 +1116,7 @@ export type AssetCommentUncheckedUpdateManyWithoutCreatorInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
@@ -1030,7 +1128,7 @@ export type AssetCommentCreateManyAssetInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
creatorId?: string | null
@@ -1042,9 +1140,9 @@ export type AssetCommentUpdateWithoutAssetInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
@@ -1056,7 +1154,7 @@ export type AssetCommentUncheckedUpdateWithoutAssetInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1070,7 +1168,7 @@ export type AssetCommentUncheckedUpdateManyWithoutAssetInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -1082,7 +1180,7 @@ export type AssetCommentCreateManyReplyToInput = {
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
isAi?: boolean
sessionId?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
@@ -1094,9 +1192,9 @@ export type AssetCommentUpdateWithoutReplyToInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
session?: Prisma.AgentSessionUpdateOneWithoutCommentsNestedInput
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
@@ -1108,7 +1206,7 @@ export type AssetCommentUncheckedUpdateWithoutReplyToInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
@@ -1122,13 +1220,65 @@ export type AssetCommentUncheckedUpdateManyWithoutReplyToInput = {
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
isAi?: Prisma.BoolFieldUpdateOperationsInput | boolean
sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AssetCommentCreateManySessionInput = {
id?: string
message?: string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: number | null
createdAt?: Date | string
updatedAt?: Date | string
assetId: string
creatorId?: string | null
replyToId?: string | null
}
export type AssetCommentUpdateWithoutSessionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
asset?: Prisma.AssetUpdateOneRequiredWithoutCommentsNestedInput
creator?: Prisma.UserUpdateOneWithoutCommentsNestedInput
replyTo?: Prisma.AssetCommentUpdateOneWithoutRepliesNestedInput
replies?: Prisma.AssetCommentUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateWithoutSessionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replies?: Prisma.AssetCommentUncheckedUpdateManyWithoutReplyToNestedInput
attachments?: Prisma.AssetCommentAttachmentUncheckedUpdateManyWithoutCommentNestedInput
}
export type AssetCommentUncheckedUpdateManyWithoutSessionInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
annotation?:PrismaJson.AnnotationList | Prisma.NullableJsonNullValueInput
second?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assetId?: Prisma.StringFieldUpdateOperationsInput | string
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
replyToId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
/**
* Count Type AssetCommentCountOutputType
@@ -1174,12 +1324,13 @@ export type AssetCommentSelect<ExtArgs extends runtime.Types.Extensions.Internal
message?: boolean
annotation?: boolean
second?: boolean
isAi?: boolean
sessionId?: boolean
createdAt?: boolean
updatedAt?: boolean
assetId?: boolean
creatorId?: boolean
replyToId?: boolean
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
@@ -1193,12 +1344,13 @@ export type AssetCommentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.
message?: boolean
annotation?: boolean
second?: boolean
isAi?: boolean
sessionId?: boolean
createdAt?: boolean
updatedAt?: boolean
assetId?: boolean
creatorId?: boolean
replyToId?: boolean
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
@@ -1209,12 +1361,13 @@ export type AssetCommentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.
message?: boolean
annotation?: boolean
second?: boolean
isAi?: boolean
sessionId?: boolean
createdAt?: boolean
updatedAt?: boolean
assetId?: boolean
creatorId?: boolean
replyToId?: boolean
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
@@ -1225,7 +1378,7 @@ export type AssetCommentSelectScalar = {
message?: boolean
annotation?: boolean
second?: boolean
isAi?: boolean
sessionId?: boolean
createdAt?: boolean
updatedAt?: boolean
assetId?: boolean
@@ -1233,8 +1386,9 @@ export type AssetCommentSelectScalar = {
replyToId?: boolean
}
export type AssetCommentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "message" | "annotation" | "second" | "isAi" | "createdAt" | "updatedAt" | "assetId" | "creatorId" | "replyToId", ExtArgs["result"]["assetComment"]>
export type AssetCommentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "message" | "annotation" | "second" | "sessionId" | "createdAt" | "updatedAt" | "assetId" | "creatorId" | "replyToId", ExtArgs["result"]["assetComment"]>
export type AssetCommentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
@@ -1243,11 +1397,13 @@ export type AssetCommentInclude<ExtArgs extends runtime.Types.Extensions.Interna
_count?: boolean | Prisma.AssetCommentCountOutputTypeDefaultArgs<ExtArgs>
}
export type AssetCommentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
}
export type AssetCommentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
session?: boolean | Prisma.AssetComment$sessionArgs<ExtArgs>
asset?: boolean | Prisma.AssetDefaultArgs<ExtArgs>
creator?: boolean | Prisma.AssetComment$creatorArgs<ExtArgs>
replyTo?: boolean | Prisma.AssetComment$replyToArgs<ExtArgs>
@@ -1256,6 +1412,7 @@ export type AssetCommentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types
export type $AssetCommentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AssetComment"
objects: {
session: Prisma.$AgentSessionPayload<ExtArgs> | null
asset: Prisma.$AssetPayload<ExtArgs>
creator: Prisma.$UserPayload<ExtArgs> | null
replyTo: Prisma.$AssetCommentPayload<ExtArgs> | null
@@ -1270,7 +1427,7 @@ export type $AssetCommentPayload<ExtArgs extends runtime.Types.Extensions.Intern
*/
annotation:PrismaJson.AnnotationList | null
second: number | null
isAi: boolean
sessionId: string | null
createdAt: Date
updatedAt: Date
assetId: string
@@ -1670,6 +1827,7 @@ readonly fields: AssetCommentFieldRefs;
*/
export interface Prisma__AssetCommentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
session<T extends Prisma.AssetComment$sessionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetComment$sessionArgs<ExtArgs>>): Prisma.Prisma__AgentSessionClient<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
asset<T extends Prisma.AssetDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetDefaultArgs<ExtArgs>>): Prisma.Prisma__AssetClient<runtime.Types.Result.GetResult<Prisma.$AssetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
creator<T extends Prisma.AssetComment$creatorArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetComment$creatorArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
replyTo<T extends Prisma.AssetComment$replyToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AssetComment$replyToArgs<ExtArgs>>): Prisma.Prisma__AssetCommentClient<runtime.Types.Result.GetResult<Prisma.$AssetCommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
@@ -1708,7 +1866,7 @@ export interface AssetCommentFieldRefs {
readonly message: Prisma.FieldRef<"AssetComment", 'String'>
readonly annotation: Prisma.FieldRef<"AssetComment", 'Json'>
readonly second: Prisma.FieldRef<"AssetComment", 'Float'>
readonly isAi: Prisma.FieldRef<"AssetComment", 'Boolean'>
readonly sessionId: Prisma.FieldRef<"AssetComment", 'String'>
readonly createdAt: Prisma.FieldRef<"AssetComment", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"AssetComment", 'DateTime'>
readonly assetId: Prisma.FieldRef<"AssetComment", 'String'>
@@ -2114,6 +2272,25 @@ export type AssetCommentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.
limit?: number
}
/**
* AssetComment.session
*/
export type AssetComment$sessionArgs<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
where?: Prisma.AgentSessionWhereInput
}
/**
* AssetComment.creator
*/