mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 10:55:27 +00:00
feat(asset): record and display agent provenance on assets and audit logs (#380)
* feat(asset): record and display agent provenance on assets and audit logs * style(webui): apply 30% translucent frosted glass background to bot badges * style(webui): match bot icon badge style to thumbnail media overlay (bg-black/60 text-white) * style(webui): use "AI" text badge with pdf overlay style instead of bot icon
This commit is contained in:
+4
-4
File diff suppressed because one or more lines are too long
@@ -4498,6 +4498,7 @@ export const AssetScalarFieldEnum = {
|
||||
targetId: 'targetId',
|
||||
storageKeyId: 'storageKeyId',
|
||||
creatorId: 'creatorId',
|
||||
agentId: 'agentId',
|
||||
taskId: 'taskId',
|
||||
projectId: 'projectId'
|
||||
} as const
|
||||
@@ -4868,6 +4869,7 @@ export const AuditLogScalarFieldEnum = {
|
||||
action: 'action',
|
||||
teamId: 'teamId',
|
||||
userId: 'userId',
|
||||
agentId: 'agentId',
|
||||
projectId: 'projectId',
|
||||
itemId: 'itemId',
|
||||
createdAt: 'createdAt'
|
||||
|
||||
@@ -351,6 +351,7 @@ export const AssetScalarFieldEnum = {
|
||||
targetId: 'targetId',
|
||||
storageKeyId: 'storageKeyId',
|
||||
creatorId: 'creatorId',
|
||||
agentId: 'agentId',
|
||||
taskId: 'taskId',
|
||||
projectId: 'projectId'
|
||||
} as const
|
||||
@@ -721,6 +722,7 @@ export const AuditLogScalarFieldEnum = {
|
||||
action: 'action',
|
||||
teamId: 'teamId',
|
||||
userId: 'userId',
|
||||
agentId: 'agentId',
|
||||
projectId: 'projectId',
|
||||
itemId: 'itemId',
|
||||
createdAt: 'createdAt'
|
||||
|
||||
+352
@@ -235,6 +235,8 @@ export type AgentWhereInput = {
|
||||
agentSessions?: Prisma.AgentSessionListRelationFilter
|
||||
skills?: Prisma.AgentSkillListRelationFilter
|
||||
mcpServers?: Prisma.AgentMcpServerListRelationFilter
|
||||
assets?: Prisma.AssetListRelationFilter
|
||||
auditLogs?: Prisma.AuditLogListRelationFilter
|
||||
}
|
||||
|
||||
export type AgentOrderByWithRelationInput = {
|
||||
@@ -256,6 +258,8 @@ export type AgentOrderByWithRelationInput = {
|
||||
agentSessions?: Prisma.AgentSessionOrderByRelationAggregateInput
|
||||
skills?: Prisma.AgentSkillOrderByRelationAggregateInput
|
||||
mcpServers?: Prisma.AgentMcpServerOrderByRelationAggregateInput
|
||||
assets?: Prisma.AssetOrderByRelationAggregateInput
|
||||
auditLogs?: Prisma.AuditLogOrderByRelationAggregateInput
|
||||
}
|
||||
|
||||
export type AgentWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -280,6 +284,8 @@ export type AgentWhereUniqueInput = Prisma.AtLeast<{
|
||||
agentSessions?: Prisma.AgentSessionListRelationFilter
|
||||
skills?: Prisma.AgentSkillListRelationFilter
|
||||
mcpServers?: Prisma.AgentMcpServerListRelationFilter
|
||||
assets?: Prisma.AssetListRelationFilter
|
||||
auditLogs?: Prisma.AuditLogListRelationFilter
|
||||
}, "id">
|
||||
|
||||
export type AgentOrderByWithAggregationInput = {
|
||||
@@ -331,6 +337,8 @@ export type AgentCreateInput = {
|
||||
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateInput = {
|
||||
@@ -348,6 +356,8 @@ export type AgentUncheckedCreateInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUpdateInput = {
|
||||
@@ -365,6 +375,8 @@ export type AgentUpdateInput = {
|
||||
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateInput = {
|
||||
@@ -382,6 +394,8 @@ export type AgentUncheckedUpdateInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUncheckedUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentCreateManyInput = {
|
||||
@@ -556,6 +570,22 @@ export type AgentUncheckedUpdateManyWithoutTeamNestedInput = {
|
||||
deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type AgentCreateNestedOneWithoutAssetsInput = {
|
||||
create?: Prisma.XOR<Prisma.AgentCreateWithoutAssetsInput, Prisma.AgentUncheckedCreateWithoutAssetsInput>
|
||||
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAssetsInput
|
||||
connect?: Prisma.AgentWhereUniqueInput
|
||||
}
|
||||
|
||||
export type AgentUpdateOneWithoutAssetsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.AgentCreateWithoutAssetsInput, Prisma.AgentUncheckedCreateWithoutAssetsInput>
|
||||
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAssetsInput
|
||||
upsert?: Prisma.AgentUpsertWithoutAssetsInput
|
||||
disconnect?: Prisma.AgentWhereInput | boolean
|
||||
delete?: Prisma.AgentWhereInput | boolean
|
||||
connect?: Prisma.AgentWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutAssetsInput, Prisma.AgentUpdateWithoutAssetsInput>, Prisma.AgentUncheckedUpdateWithoutAssetsInput>
|
||||
}
|
||||
|
||||
export type EnumAgentTypeFieldUpdateOperationsInput = {
|
||||
set?: $Enums.AgentType
|
||||
}
|
||||
@@ -686,6 +716,22 @@ export type AgentUncheckedUpdateManyWithoutProviderNestedInput = {
|
||||
deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type AgentCreateNestedOneWithoutAuditLogsInput = {
|
||||
create?: Prisma.XOR<Prisma.AgentCreateWithoutAuditLogsInput, Prisma.AgentUncheckedCreateWithoutAuditLogsInput>
|
||||
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAuditLogsInput
|
||||
connect?: Prisma.AgentWhereUniqueInput
|
||||
}
|
||||
|
||||
export type AgentUpdateOneWithoutAuditLogsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.AgentCreateWithoutAuditLogsInput, Prisma.AgentUncheckedCreateWithoutAuditLogsInput>
|
||||
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAuditLogsInput
|
||||
upsert?: Prisma.AgentUpsertWithoutAuditLogsInput
|
||||
disconnect?: Prisma.AgentWhereInput | boolean
|
||||
delete?: Prisma.AgentWhereInput | boolean
|
||||
connect?: Prisma.AgentWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutAuditLogsInput, Prisma.AgentUpdateWithoutAuditLogsInput>, Prisma.AgentUncheckedUpdateWithoutAuditLogsInput>
|
||||
}
|
||||
|
||||
export type AgentCreateWithoutUserInput = {
|
||||
type: $Enums.AgentType
|
||||
enabled?: boolean
|
||||
@@ -700,6 +746,8 @@ export type AgentCreateWithoutUserInput = {
|
||||
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateWithoutUserInput = {
|
||||
@@ -716,6 +764,8 @@ export type AgentUncheckedCreateWithoutUserInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentCreateOrConnectWithoutUserInput = {
|
||||
@@ -748,6 +798,8 @@ export type AgentUpdateWithoutUserInput = {
|
||||
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateWithoutUserInput = {
|
||||
@@ -764,6 +816,8 @@ export type AgentUncheckedUpdateWithoutUserInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUncheckedUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentCreateWithoutTeamInput = {
|
||||
@@ -780,6 +834,8 @@ export type AgentCreateWithoutTeamInput = {
|
||||
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateWithoutTeamInput = {
|
||||
@@ -796,6 +852,8 @@ export type AgentUncheckedCreateWithoutTeamInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentCreateOrConnectWithoutTeamInput = {
|
||||
@@ -841,6 +899,94 @@ export type AgentScalarWhereInput = {
|
||||
updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
|
||||
}
|
||||
|
||||
export type AgentCreateWithoutAssetsInput = {
|
||||
type: $Enums.AgentType
|
||||
enabled?: boolean
|
||||
permission?: $Enums.TeamMemberRole
|
||||
soul?: string | null
|
||||
config:PrismaJson.AgentConfig
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
user: Prisma.UserCreateNestedOneWithoutAgentInput
|
||||
provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput
|
||||
modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput
|
||||
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
|
||||
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateWithoutAssetsInput = {
|
||||
id: string
|
||||
type: $Enums.AgentType
|
||||
enabled?: boolean
|
||||
permission?: $Enums.TeamMemberRole
|
||||
soul?: string | null
|
||||
providerId?: string | null
|
||||
modelId?: string | null
|
||||
teamId: string
|
||||
config:PrismaJson.AgentConfig
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentCreateOrConnectWithoutAssetsInput = {
|
||||
where: Prisma.AgentWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.AgentCreateWithoutAssetsInput, Prisma.AgentUncheckedCreateWithoutAssetsInput>
|
||||
}
|
||||
|
||||
export type AgentUpsertWithoutAssetsInput = {
|
||||
update: Prisma.XOR<Prisma.AgentUpdateWithoutAssetsInput, Prisma.AgentUncheckedUpdateWithoutAssetsInput>
|
||||
create: Prisma.XOR<Prisma.AgentCreateWithoutAssetsInput, Prisma.AgentUncheckedCreateWithoutAssetsInput>
|
||||
where?: Prisma.AgentWhereInput
|
||||
}
|
||||
|
||||
export type AgentUpdateToOneWithWhereWithoutAssetsInput = {
|
||||
where?: Prisma.AgentWhereInput
|
||||
data: Prisma.XOR<Prisma.AgentUpdateWithoutAssetsInput, Prisma.AgentUncheckedUpdateWithoutAssetsInput>
|
||||
}
|
||||
|
||||
export type AgentUpdateWithoutAssetsInput = {
|
||||
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
|
||||
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
|
||||
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
config?:PrismaJson.AgentConfig
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput
|
||||
provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput
|
||||
modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput
|
||||
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
|
||||
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateWithoutAssetsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
|
||||
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
|
||||
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
config?:PrismaJson.AgentConfig
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentCreateWithoutSkillsInput = {
|
||||
type: $Enums.AgentType
|
||||
enabled?: boolean
|
||||
@@ -855,6 +1001,8 @@ export type AgentCreateWithoutSkillsInput = {
|
||||
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
|
||||
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateWithoutSkillsInput = {
|
||||
@@ -871,6 +1019,8 @@ export type AgentUncheckedCreateWithoutSkillsInput = {
|
||||
updatedAt?: Date | string
|
||||
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentCreateOrConnectWithoutSkillsInput = {
|
||||
@@ -903,6 +1053,8 @@ export type AgentUpdateWithoutSkillsInput = {
|
||||
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
|
||||
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateWithoutSkillsInput = {
|
||||
@@ -919,6 +1071,8 @@ export type AgentUncheckedUpdateWithoutSkillsInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUncheckedUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentCreateWithoutMcpServersInput = {
|
||||
@@ -935,6 +1089,8 @@ export type AgentCreateWithoutMcpServersInput = {
|
||||
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
|
||||
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateWithoutMcpServersInput = {
|
||||
@@ -951,6 +1107,8 @@ export type AgentUncheckedCreateWithoutMcpServersInput = {
|
||||
updatedAt?: Date | string
|
||||
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentCreateOrConnectWithoutMcpServersInput = {
|
||||
@@ -983,6 +1141,8 @@ export type AgentUpdateWithoutMcpServersInput = {
|
||||
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
|
||||
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateWithoutMcpServersInput = {
|
||||
@@ -999,6 +1159,8 @@ export type AgentUncheckedUpdateWithoutMcpServersInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUncheckedUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentCreateWithoutAgentSessionsInput = {
|
||||
@@ -1015,6 +1177,8 @@ export type AgentCreateWithoutAgentSessionsInput = {
|
||||
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
|
||||
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateWithoutAgentSessionsInput = {
|
||||
@@ -1031,6 +1195,8 @@ export type AgentUncheckedCreateWithoutAgentSessionsInput = {
|
||||
updatedAt?: Date | string
|
||||
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentCreateOrConnectWithoutAgentSessionsInput = {
|
||||
@@ -1063,6 +1229,8 @@ export type AgentUpdateWithoutAgentSessionsInput = {
|
||||
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
|
||||
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateWithoutAgentSessionsInput = {
|
||||
@@ -1079,6 +1247,8 @@ export type AgentUncheckedUpdateWithoutAgentSessionsInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUncheckedUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentCreateWithoutModelRefInput = {
|
||||
@@ -1095,6 +1265,8 @@ export type AgentCreateWithoutModelRefInput = {
|
||||
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateWithoutModelRefInput = {
|
||||
@@ -1111,6 +1283,8 @@ export type AgentUncheckedCreateWithoutModelRefInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentCreateOrConnectWithoutModelRefInput = {
|
||||
@@ -1153,6 +1327,8 @@ export type AgentCreateWithoutProviderInput = {
|
||||
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateWithoutProviderInput = {
|
||||
@@ -1169,6 +1345,8 @@ export type AgentUncheckedCreateWithoutProviderInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutAgentInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentCreateOrConnectWithoutProviderInput = {
|
||||
@@ -1197,6 +1375,94 @@ export type AgentUpdateManyWithWhereWithoutProviderInput = {
|
||||
data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyWithoutProviderInput>
|
||||
}
|
||||
|
||||
export type AgentCreateWithoutAuditLogsInput = {
|
||||
type: $Enums.AgentType
|
||||
enabled?: boolean
|
||||
permission?: $Enums.TeamMemberRole
|
||||
soul?: string | null
|
||||
config:PrismaJson.AgentConfig
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
user: Prisma.UserCreateNestedOneWithoutAgentInput
|
||||
provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput
|
||||
modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput
|
||||
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
|
||||
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedCreateWithoutAuditLogsInput = {
|
||||
id: string
|
||||
type: $Enums.AgentType
|
||||
enabled?: boolean
|
||||
permission?: $Enums.TeamMemberRole
|
||||
soul?: string | null
|
||||
providerId?: string | null
|
||||
modelId?: string | null
|
||||
teamId: string
|
||||
config:PrismaJson.AgentConfig
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
|
||||
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
|
||||
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutAgentInput
|
||||
}
|
||||
|
||||
export type AgentCreateOrConnectWithoutAuditLogsInput = {
|
||||
where: Prisma.AgentWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.AgentCreateWithoutAuditLogsInput, Prisma.AgentUncheckedCreateWithoutAuditLogsInput>
|
||||
}
|
||||
|
||||
export type AgentUpsertWithoutAuditLogsInput = {
|
||||
update: Prisma.XOR<Prisma.AgentUpdateWithoutAuditLogsInput, Prisma.AgentUncheckedUpdateWithoutAuditLogsInput>
|
||||
create: Prisma.XOR<Prisma.AgentCreateWithoutAuditLogsInput, Prisma.AgentUncheckedCreateWithoutAuditLogsInput>
|
||||
where?: Prisma.AgentWhereInput
|
||||
}
|
||||
|
||||
export type AgentUpdateToOneWithWhereWithoutAuditLogsInput = {
|
||||
where?: Prisma.AgentWhereInput
|
||||
data: Prisma.XOR<Prisma.AgentUpdateWithoutAuditLogsInput, Prisma.AgentUncheckedUpdateWithoutAuditLogsInput>
|
||||
}
|
||||
|
||||
export type AgentUpdateWithoutAuditLogsInput = {
|
||||
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
|
||||
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
|
||||
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
config?:PrismaJson.AgentConfig
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput
|
||||
provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput
|
||||
modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput
|
||||
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
|
||||
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateWithoutAuditLogsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
|
||||
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
|
||||
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
config?:PrismaJson.AgentConfig
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentCreateManyTeamInput = {
|
||||
id: string
|
||||
type: $Enums.AgentType
|
||||
@@ -1224,6 +1490,8 @@ export type AgentUpdateWithoutTeamInput = {
|
||||
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateWithoutTeamInput = {
|
||||
@@ -1240,6 +1508,8 @@ export type AgentUncheckedUpdateWithoutTeamInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUncheckedUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateManyWithoutTeamInput = {
|
||||
@@ -1282,6 +1552,8 @@ export type AgentUpdateWithoutModelRefInput = {
|
||||
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateWithoutModelRefInput = {
|
||||
@@ -1298,6 +1570,8 @@ export type AgentUncheckedUpdateWithoutModelRefInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUncheckedUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateManyWithoutModelRefInput = {
|
||||
@@ -1340,6 +1614,8 @@ export type AgentUpdateWithoutProviderInput = {
|
||||
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateWithoutProviderInput = {
|
||||
@@ -1356,6 +1632,8 @@ export type AgentUncheckedUpdateWithoutProviderInput = {
|
||||
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
|
||||
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
|
||||
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
|
||||
assets?: Prisma.AssetUncheckedUpdateManyWithoutAgentNestedInput
|
||||
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutAgentNestedInput
|
||||
}
|
||||
|
||||
export type AgentUncheckedUpdateManyWithoutProviderInput = {
|
||||
@@ -1380,12 +1658,16 @@ export type AgentCountOutputType = {
|
||||
agentSessions: number
|
||||
skills: number
|
||||
mcpServers: number
|
||||
assets: number
|
||||
auditLogs: number
|
||||
}
|
||||
|
||||
export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
agentSessions?: boolean | AgentCountOutputTypeCountAgentSessionsArgs
|
||||
skills?: boolean | AgentCountOutputTypeCountSkillsArgs
|
||||
mcpServers?: boolean | AgentCountOutputTypeCountMcpServersArgs
|
||||
assets?: boolean | AgentCountOutputTypeCountAssetsArgs
|
||||
auditLogs?: boolean | AgentCountOutputTypeCountAuditLogsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1419,6 +1701,20 @@ export type AgentCountOutputTypeCountMcpServersArgs<ExtArgs extends runtime.Type
|
||||
where?: Prisma.AgentMcpServerWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* AgentCountOutputType without action
|
||||
*/
|
||||
export type AgentCountOutputTypeCountAssetsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.AssetWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* AgentCountOutputType without action
|
||||
*/
|
||||
export type AgentCountOutputTypeCountAuditLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.AuditLogWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -1439,6 +1735,8 @@ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
agentSessions?: boolean | Prisma.Agent$agentSessionsArgs<ExtArgs>
|
||||
skills?: boolean | Prisma.Agent$skillsArgs<ExtArgs>
|
||||
mcpServers?: boolean | Prisma.Agent$mcpServersArgs<ExtArgs>
|
||||
assets?: boolean | Prisma.Agent$assetsArgs<ExtArgs>
|
||||
auditLogs?: boolean | Prisma.Agent$auditLogsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["agent"]>
|
||||
|
||||
@@ -1501,6 +1799,8 @@ export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
agentSessions?: boolean | Prisma.Agent$agentSessionsArgs<ExtArgs>
|
||||
skills?: boolean | Prisma.Agent$skillsArgs<ExtArgs>
|
||||
mcpServers?: boolean | Prisma.Agent$mcpServersArgs<ExtArgs>
|
||||
assets?: boolean | Prisma.Agent$assetsArgs<ExtArgs>
|
||||
auditLogs?: boolean | Prisma.Agent$auditLogsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type AgentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
@@ -1526,6 +1826,8 @@ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
agentSessions: Prisma.$AgentSessionPayload<ExtArgs>[]
|
||||
skills: Prisma.$AgentSkillPayload<ExtArgs>[]
|
||||
mcpServers: Prisma.$AgentMcpServerPayload<ExtArgs>[]
|
||||
assets: Prisma.$AssetPayload<ExtArgs>[]
|
||||
auditLogs: Prisma.$AuditLogPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -1943,6 +2245,8 @@ export interface Prisma__AgentClient<T, Null = never, ExtArgs extends runtime.Ty
|
||||
agentSessions<T extends Prisma.Agent$agentSessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$agentSessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
skills<T extends Prisma.Agent$skillsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$skillsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSkillPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
mcpServers<T extends Prisma.Agent$mcpServersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$mcpServersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
assets<T extends Prisma.Agent$assetsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$assetsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AssetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
auditLogs<T extends Prisma.Agent$auditLogsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$auditLogsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<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.
|
||||
@@ -2493,6 +2797,54 @@ export type Agent$mcpServersArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Agent.assets
|
||||
*/
|
||||
export type Agent$assetsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Asset
|
||||
*/
|
||||
select?: Prisma.AssetSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Asset
|
||||
*/
|
||||
omit?: Prisma.AssetOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.AssetInclude<ExtArgs> | null
|
||||
where?: Prisma.AssetWhereInput
|
||||
orderBy?: Prisma.AssetOrderByWithRelationInput | Prisma.AssetOrderByWithRelationInput[]
|
||||
cursor?: Prisma.AssetWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.AssetScalarFieldEnum | Prisma.AssetScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Agent.auditLogs
|
||||
*/
|
||||
export type Agent$auditLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the AuditLog
|
||||
*/
|
||||
select?: Prisma.AuditLogSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the AuditLog
|
||||
*/
|
||||
omit?: Prisma.AuditLogOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.AuditLogInclude<ExtArgs> | null
|
||||
where?: Prisma.AuditLogWhereInput
|
||||
orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
|
||||
cursor?: Prisma.AuditLogWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Agent without action
|
||||
*/
|
||||
|
||||
+443
-1
File diff suppressed because it is too large
Load Diff
+205
-1
@@ -31,6 +31,7 @@ export type AuditLogMinAggregateOutputType = {
|
||||
action: string | null
|
||||
teamId: string | null
|
||||
userId: string | null
|
||||
agentId: string | null
|
||||
projectId: string | null
|
||||
itemId: string | null
|
||||
createdAt: Date | null
|
||||
@@ -41,6 +42,7 @@ export type AuditLogMaxAggregateOutputType = {
|
||||
action: string | null
|
||||
teamId: string | null
|
||||
userId: string | null
|
||||
agentId: string | null
|
||||
projectId: string | null
|
||||
itemId: string | null
|
||||
createdAt: Date | null
|
||||
@@ -51,6 +53,7 @@ export type AuditLogCountAggregateOutputType = {
|
||||
action: number
|
||||
teamId: number
|
||||
userId: number
|
||||
agentId: number
|
||||
projectId: number
|
||||
itemId: number
|
||||
createdAt: number
|
||||
@@ -63,6 +66,7 @@ export type AuditLogMinAggregateInputType = {
|
||||
action?: true
|
||||
teamId?: true
|
||||
userId?: true
|
||||
agentId?: true
|
||||
projectId?: true
|
||||
itemId?: true
|
||||
createdAt?: true
|
||||
@@ -73,6 +77,7 @@ export type AuditLogMaxAggregateInputType = {
|
||||
action?: true
|
||||
teamId?: true
|
||||
userId?: true
|
||||
agentId?: true
|
||||
projectId?: true
|
||||
itemId?: true
|
||||
createdAt?: true
|
||||
@@ -83,6 +88,7 @@ export type AuditLogCountAggregateInputType = {
|
||||
action?: true
|
||||
teamId?: true
|
||||
userId?: true
|
||||
agentId?: true
|
||||
projectId?: true
|
||||
itemId?: true
|
||||
createdAt?: true
|
||||
@@ -166,6 +172,7 @@ export type AuditLogGroupByOutputType = {
|
||||
action: string
|
||||
teamId: string
|
||||
userId: string | null
|
||||
agentId: string | null
|
||||
projectId: string | null
|
||||
itemId: string | null
|
||||
createdAt: Date
|
||||
@@ -197,11 +204,13 @@ export type AuditLogWhereInput = {
|
||||
action?: Prisma.StringFilter<"AuditLog"> | string
|
||||
teamId?: Prisma.StringFilter<"AuditLog"> | string
|
||||
userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
agentId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
projectId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
itemId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
|
||||
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
|
||||
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null
|
||||
project?: Prisma.XOR<Prisma.ProjectNullableScalarRelationFilter, Prisma.ProjectWhereInput> | null
|
||||
}
|
||||
|
||||
@@ -210,11 +219,13 @@ export type AuditLogOrderByWithRelationInput = {
|
||||
action?: Prisma.SortOrder
|
||||
teamId?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
agentId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
projectId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
itemId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
team?: Prisma.TeamOrderByWithRelationInput
|
||||
user?: Prisma.UserOrderByWithRelationInput
|
||||
agent?: Prisma.AgentOrderByWithRelationInput
|
||||
project?: Prisma.ProjectOrderByWithRelationInput
|
||||
}
|
||||
|
||||
@@ -226,11 +237,13 @@ export type AuditLogWhereUniqueInput = Prisma.AtLeast<{
|
||||
action?: Prisma.StringFilter<"AuditLog"> | string
|
||||
teamId?: Prisma.StringFilter<"AuditLog"> | string
|
||||
userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
agentId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
projectId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
itemId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
|
||||
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
|
||||
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null
|
||||
project?: Prisma.XOR<Prisma.ProjectNullableScalarRelationFilter, Prisma.ProjectWhereInput> | null
|
||||
}, "id">
|
||||
|
||||
@@ -239,6 +252,7 @@ export type AuditLogOrderByWithAggregationInput = {
|
||||
action?: Prisma.SortOrder
|
||||
teamId?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
agentId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
projectId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
itemId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
@@ -255,6 +269,7 @@ export type AuditLogScalarWhereWithAggregatesInput = {
|
||||
action?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
|
||||
teamId?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
|
||||
userId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
|
||||
agentId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
|
||||
projectId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
|
||||
itemId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuditLog"> | Date | string
|
||||
@@ -267,6 +282,7 @@ export type AuditLogCreateInput = {
|
||||
createdAt?: Date | string
|
||||
team: Prisma.TeamCreateNestedOneWithoutAuditLogsInput
|
||||
user?: Prisma.UserCreateNestedOneWithoutAuditLogsInput
|
||||
agent?: Prisma.AgentCreateNestedOneWithoutAuditLogsInput
|
||||
project?: Prisma.ProjectCreateNestedOneWithoutAuditLogsInput
|
||||
}
|
||||
|
||||
@@ -275,6 +291,7 @@ export type AuditLogUncheckedCreateInput = {
|
||||
action: string
|
||||
teamId: string
|
||||
userId?: string | null
|
||||
agentId?: string | null
|
||||
projectId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
@@ -287,6 +304,7 @@ export type AuditLogUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
team?: Prisma.TeamUpdateOneRequiredWithoutAuditLogsNestedInput
|
||||
user?: Prisma.UserUpdateOneWithoutAuditLogsNestedInput
|
||||
agent?: Prisma.AgentUpdateOneWithoutAuditLogsNestedInput
|
||||
project?: Prisma.ProjectUpdateOneWithoutAuditLogsNestedInput
|
||||
}
|
||||
|
||||
@@ -295,6 +313,7 @@ export type AuditLogUncheckedUpdateInput = {
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -305,6 +324,7 @@ export type AuditLogCreateManyInput = {
|
||||
action: string
|
||||
teamId: string
|
||||
userId?: string | null
|
||||
agentId?: string | null
|
||||
projectId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
@@ -322,6 +342,7 @@ export type AuditLogUncheckedUpdateManyInput = {
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -342,6 +363,7 @@ export type AuditLogCountOrderByAggregateInput = {
|
||||
action?: Prisma.SortOrder
|
||||
teamId?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrder
|
||||
agentId?: Prisma.SortOrder
|
||||
projectId?: Prisma.SortOrder
|
||||
itemId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
@@ -352,6 +374,7 @@ export type AuditLogMaxOrderByAggregateInput = {
|
||||
action?: Prisma.SortOrder
|
||||
teamId?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrder
|
||||
agentId?: Prisma.SortOrder
|
||||
projectId?: Prisma.SortOrder
|
||||
itemId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
@@ -362,6 +385,7 @@ export type AuditLogMinOrderByAggregateInput = {
|
||||
action?: Prisma.SortOrder
|
||||
teamId?: Prisma.SortOrder
|
||||
userId?: Prisma.SortOrder
|
||||
agentId?: Prisma.SortOrder
|
||||
projectId?: Prisma.SortOrder
|
||||
itemId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
@@ -493,12 +517,55 @@ export type AuditLogUncheckedUpdateManyWithoutProjectNestedInput = {
|
||||
deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type AuditLogCreateNestedManyWithoutAgentInput = {
|
||||
create?: Prisma.XOR<Prisma.AuditLogCreateWithoutAgentInput, Prisma.AuditLogUncheckedCreateWithoutAgentInput> | Prisma.AuditLogCreateWithoutAgentInput[] | Prisma.AuditLogUncheckedCreateWithoutAgentInput[]
|
||||
connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutAgentInput | Prisma.AuditLogCreateOrConnectWithoutAgentInput[]
|
||||
createMany?: Prisma.AuditLogCreateManyAgentInputEnvelope
|
||||
connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type AuditLogUncheckedCreateNestedManyWithoutAgentInput = {
|
||||
create?: Prisma.XOR<Prisma.AuditLogCreateWithoutAgentInput, Prisma.AuditLogUncheckedCreateWithoutAgentInput> | Prisma.AuditLogCreateWithoutAgentInput[] | Prisma.AuditLogUncheckedCreateWithoutAgentInput[]
|
||||
connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutAgentInput | Prisma.AuditLogCreateOrConnectWithoutAgentInput[]
|
||||
createMany?: Prisma.AuditLogCreateManyAgentInputEnvelope
|
||||
connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type AuditLogUpdateManyWithoutAgentNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.AuditLogCreateWithoutAgentInput, Prisma.AuditLogUncheckedCreateWithoutAgentInput> | Prisma.AuditLogCreateWithoutAgentInput[] | Prisma.AuditLogUncheckedCreateWithoutAgentInput[]
|
||||
connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutAgentInput | Prisma.AuditLogCreateOrConnectWithoutAgentInput[]
|
||||
upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutAgentInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutAgentInput[]
|
||||
createMany?: Prisma.AuditLogCreateManyAgentInputEnvelope
|
||||
set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutAgentInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutAgentInput[]
|
||||
updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutAgentInput | Prisma.AuditLogUpdateManyWithWhereWithoutAgentInput[]
|
||||
deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type AuditLogUncheckedUpdateManyWithoutAgentNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.AuditLogCreateWithoutAgentInput, Prisma.AuditLogUncheckedCreateWithoutAgentInput> | Prisma.AuditLogCreateWithoutAgentInput[] | Prisma.AuditLogUncheckedCreateWithoutAgentInput[]
|
||||
connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutAgentInput | Prisma.AuditLogCreateOrConnectWithoutAgentInput[]
|
||||
upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutAgentInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutAgentInput[]
|
||||
createMany?: Prisma.AuditLogCreateManyAgentInputEnvelope
|
||||
set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
|
||||
update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutAgentInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutAgentInput[]
|
||||
updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutAgentInput | Prisma.AuditLogUpdateManyWithWhereWithoutAgentInput[]
|
||||
deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type AuditLogCreateWithoutUserInput = {
|
||||
id?: string
|
||||
action: string
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
team: Prisma.TeamCreateNestedOneWithoutAuditLogsInput
|
||||
agent?: Prisma.AgentCreateNestedOneWithoutAuditLogsInput
|
||||
project?: Prisma.ProjectCreateNestedOneWithoutAuditLogsInput
|
||||
}
|
||||
|
||||
@@ -506,6 +573,7 @@ export type AuditLogUncheckedCreateWithoutUserInput = {
|
||||
id?: string
|
||||
action: string
|
||||
teamId: string
|
||||
agentId?: string | null
|
||||
projectId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
@@ -545,6 +613,7 @@ export type AuditLogScalarWhereInput = {
|
||||
action?: Prisma.StringFilter<"AuditLog"> | string
|
||||
teamId?: Prisma.StringFilter<"AuditLog"> | string
|
||||
userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
agentId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
projectId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
itemId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
|
||||
@@ -556,6 +625,7 @@ export type AuditLogCreateWithoutTeamInput = {
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
user?: Prisma.UserCreateNestedOneWithoutAuditLogsInput
|
||||
agent?: Prisma.AgentCreateNestedOneWithoutAuditLogsInput
|
||||
project?: Prisma.ProjectCreateNestedOneWithoutAuditLogsInput
|
||||
}
|
||||
|
||||
@@ -563,6 +633,7 @@ export type AuditLogUncheckedCreateWithoutTeamInput = {
|
||||
id?: string
|
||||
action: string
|
||||
userId?: string | null
|
||||
agentId?: string | null
|
||||
projectId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
@@ -601,6 +672,7 @@ export type AuditLogCreateWithoutProjectInput = {
|
||||
createdAt?: Date | string
|
||||
team: Prisma.TeamCreateNestedOneWithoutAuditLogsInput
|
||||
user?: Prisma.UserCreateNestedOneWithoutAuditLogsInput
|
||||
agent?: Prisma.AgentCreateNestedOneWithoutAuditLogsInput
|
||||
}
|
||||
|
||||
export type AuditLogUncheckedCreateWithoutProjectInput = {
|
||||
@@ -608,6 +680,7 @@ export type AuditLogUncheckedCreateWithoutProjectInput = {
|
||||
action: string
|
||||
teamId: string
|
||||
userId?: string | null
|
||||
agentId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
}
|
||||
@@ -638,10 +711,57 @@ export type AuditLogUpdateManyWithWhereWithoutProjectInput = {
|
||||
data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyWithoutProjectInput>
|
||||
}
|
||||
|
||||
export type AuditLogCreateWithoutAgentInput = {
|
||||
id?: string
|
||||
action: string
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
team: Prisma.TeamCreateNestedOneWithoutAuditLogsInput
|
||||
user?: Prisma.UserCreateNestedOneWithoutAuditLogsInput
|
||||
project?: Prisma.ProjectCreateNestedOneWithoutAuditLogsInput
|
||||
}
|
||||
|
||||
export type AuditLogUncheckedCreateWithoutAgentInput = {
|
||||
id?: string
|
||||
action: string
|
||||
teamId: string
|
||||
userId?: string | null
|
||||
projectId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
}
|
||||
|
||||
export type AuditLogCreateOrConnectWithoutAgentInput = {
|
||||
where: Prisma.AuditLogWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.AuditLogCreateWithoutAgentInput, Prisma.AuditLogUncheckedCreateWithoutAgentInput>
|
||||
}
|
||||
|
||||
export type AuditLogCreateManyAgentInputEnvelope = {
|
||||
data: Prisma.AuditLogCreateManyAgentInput | Prisma.AuditLogCreateManyAgentInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type AuditLogUpsertWithWhereUniqueWithoutAgentInput = {
|
||||
where: Prisma.AuditLogWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.AuditLogUpdateWithoutAgentInput, Prisma.AuditLogUncheckedUpdateWithoutAgentInput>
|
||||
create: Prisma.XOR<Prisma.AuditLogCreateWithoutAgentInput, Prisma.AuditLogUncheckedCreateWithoutAgentInput>
|
||||
}
|
||||
|
||||
export type AuditLogUpdateWithWhereUniqueWithoutAgentInput = {
|
||||
where: Prisma.AuditLogWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.AuditLogUpdateWithoutAgentInput, Prisma.AuditLogUncheckedUpdateWithoutAgentInput>
|
||||
}
|
||||
|
||||
export type AuditLogUpdateManyWithWhereWithoutAgentInput = {
|
||||
where: Prisma.AuditLogScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyWithoutAgentInput>
|
||||
}
|
||||
|
||||
export type AuditLogCreateManyUserInput = {
|
||||
id?: string
|
||||
action: string
|
||||
teamId: string
|
||||
agentId?: string | null
|
||||
projectId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
@@ -653,6 +773,7 @@ export type AuditLogUpdateWithoutUserInput = {
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
team?: Prisma.TeamUpdateOneRequiredWithoutAuditLogsNestedInput
|
||||
agent?: Prisma.AgentUpdateOneWithoutAuditLogsNestedInput
|
||||
project?: Prisma.ProjectUpdateOneWithoutAuditLogsNestedInput
|
||||
}
|
||||
|
||||
@@ -660,6 +781,7 @@ export type AuditLogUncheckedUpdateWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -669,6 +791,7 @@ export type AuditLogUncheckedUpdateManyWithoutUserInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -678,6 +801,7 @@ export type AuditLogCreateManyTeamInput = {
|
||||
id?: string
|
||||
action: string
|
||||
userId?: string | null
|
||||
agentId?: string | null
|
||||
projectId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
@@ -689,6 +813,7 @@ export type AuditLogUpdateWithoutTeamInput = {
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
user?: Prisma.UserUpdateOneWithoutAuditLogsNestedInput
|
||||
agent?: Prisma.AgentUpdateOneWithoutAuditLogsNestedInput
|
||||
project?: Prisma.ProjectUpdateOneWithoutAuditLogsNestedInput
|
||||
}
|
||||
|
||||
@@ -696,6 +821,7 @@ export type AuditLogUncheckedUpdateWithoutTeamInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -705,6 +831,7 @@ export type AuditLogUncheckedUpdateManyWithoutTeamInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -715,6 +842,7 @@ export type AuditLogCreateManyProjectInput = {
|
||||
action: string
|
||||
teamId: string
|
||||
userId?: string | null
|
||||
agentId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
}
|
||||
@@ -726,6 +854,7 @@ export type AuditLogUpdateWithoutProjectInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
team?: Prisma.TeamUpdateOneRequiredWithoutAuditLogsNestedInput
|
||||
user?: Prisma.UserUpdateOneWithoutAuditLogsNestedInput
|
||||
agent?: Prisma.AgentUpdateOneWithoutAuditLogsNestedInput
|
||||
}
|
||||
|
||||
export type AuditLogUncheckedUpdateWithoutProjectInput = {
|
||||
@@ -733,6 +862,7 @@ export type AuditLogUncheckedUpdateWithoutProjectInput = {
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
@@ -742,6 +872,47 @@ export type AuditLogUncheckedUpdateManyWithoutProjectInput = {
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type AuditLogCreateManyAgentInput = {
|
||||
id?: string
|
||||
action: string
|
||||
teamId: string
|
||||
userId?: string | null
|
||||
projectId?: string | null
|
||||
itemId?: string | null
|
||||
createdAt?: Date | string
|
||||
}
|
||||
|
||||
export type AuditLogUpdateWithoutAgentInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
team?: Prisma.TeamUpdateOneRequiredWithoutAuditLogsNestedInput
|
||||
user?: Prisma.UserUpdateOneWithoutAuditLogsNestedInput
|
||||
project?: Prisma.ProjectUpdateOneWithoutAuditLogsNestedInput
|
||||
}
|
||||
|
||||
export type AuditLogUncheckedUpdateWithoutAgentInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type AuditLogUncheckedUpdateManyWithoutAgentInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
action?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
itemId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
@@ -753,11 +924,13 @@ export type AuditLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
action?: boolean
|
||||
teamId?: boolean
|
||||
userId?: boolean
|
||||
agentId?: boolean
|
||||
projectId?: boolean
|
||||
itemId?: boolean
|
||||
createdAt?: boolean
|
||||
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
|
||||
agent?: boolean | Prisma.AuditLog$agentArgs<ExtArgs>
|
||||
project?: boolean | Prisma.AuditLog$projectArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["auditLog"]>
|
||||
|
||||
@@ -766,11 +939,13 @@ export type AuditLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exte
|
||||
action?: boolean
|
||||
teamId?: boolean
|
||||
userId?: boolean
|
||||
agentId?: boolean
|
||||
projectId?: boolean
|
||||
itemId?: boolean
|
||||
createdAt?: boolean
|
||||
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
|
||||
agent?: boolean | Prisma.AuditLog$agentArgs<ExtArgs>
|
||||
project?: boolean | Prisma.AuditLog$projectArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["auditLog"]>
|
||||
|
||||
@@ -779,11 +954,13 @@ export type AuditLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exte
|
||||
action?: boolean
|
||||
teamId?: boolean
|
||||
userId?: boolean
|
||||
agentId?: boolean
|
||||
projectId?: boolean
|
||||
itemId?: boolean
|
||||
createdAt?: boolean
|
||||
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
|
||||
agent?: boolean | Prisma.AuditLog$agentArgs<ExtArgs>
|
||||
project?: boolean | Prisma.AuditLog$projectArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["auditLog"]>
|
||||
|
||||
@@ -792,25 +969,29 @@ export type AuditLogSelectScalar = {
|
||||
action?: boolean
|
||||
teamId?: boolean
|
||||
userId?: boolean
|
||||
agentId?: boolean
|
||||
projectId?: boolean
|
||||
itemId?: boolean
|
||||
createdAt?: boolean
|
||||
}
|
||||
|
||||
export type AuditLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "action" | "teamId" | "userId" | "projectId" | "itemId" | "createdAt", ExtArgs["result"]["auditLog"]>
|
||||
export type AuditLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "action" | "teamId" | "userId" | "agentId" | "projectId" | "itemId" | "createdAt", ExtArgs["result"]["auditLog"]>
|
||||
export type AuditLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
|
||||
agent?: boolean | Prisma.AuditLog$agentArgs<ExtArgs>
|
||||
project?: boolean | Prisma.AuditLog$projectArgs<ExtArgs>
|
||||
}
|
||||
export type AuditLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
|
||||
agent?: boolean | Prisma.AuditLog$agentArgs<ExtArgs>
|
||||
project?: boolean | Prisma.AuditLog$projectArgs<ExtArgs>
|
||||
}
|
||||
export type AuditLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||||
user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
|
||||
agent?: boolean | Prisma.AuditLog$agentArgs<ExtArgs>
|
||||
project?: boolean | Prisma.AuditLog$projectArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -819,6 +1000,7 @@ export type $AuditLogPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
objects: {
|
||||
team: Prisma.$TeamPayload<ExtArgs>
|
||||
user: Prisma.$UserPayload<ExtArgs> | null
|
||||
agent: Prisma.$AgentPayload<ExtArgs> | null
|
||||
project: Prisma.$ProjectPayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
@@ -826,6 +1008,7 @@ export type $AuditLogPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
action: string
|
||||
teamId: string
|
||||
userId: string | null
|
||||
agentId: string | null
|
||||
projectId: string | null
|
||||
itemId: string | null
|
||||
createdAt: Date
|
||||
@@ -1225,6 +1408,7 @@ export interface Prisma__AuditLogClient<T, Null = never, ExtArgs extends runtime
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
team<T extends Prisma.TeamDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamDefaultArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
user<T extends Prisma.AuditLog$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuditLog$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
agent<T extends Prisma.AuditLog$agentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuditLog$agentArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
project<T extends Prisma.AuditLog$projectArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuditLog$projectArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
@@ -1259,6 +1443,7 @@ export interface AuditLogFieldRefs {
|
||||
readonly action: Prisma.FieldRef<"AuditLog", 'String'>
|
||||
readonly teamId: Prisma.FieldRef<"AuditLog", 'String'>
|
||||
readonly userId: Prisma.FieldRef<"AuditLog", 'String'>
|
||||
readonly agentId: Prisma.FieldRef<"AuditLog", 'String'>
|
||||
readonly projectId: Prisma.FieldRef<"AuditLog", 'String'>
|
||||
readonly itemId: Prisma.FieldRef<"AuditLog", 'String'>
|
||||
readonly createdAt: Prisma.FieldRef<"AuditLog", 'DateTime'>
|
||||
@@ -1681,6 +1866,25 @@ export type AuditLog$userArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
where?: Prisma.UserWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* AuditLog.agent
|
||||
*/
|
||||
export type AuditLog$agentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Agent
|
||||
*/
|
||||
select?: Prisma.AgentSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Agent
|
||||
*/
|
||||
omit?: Prisma.AgentOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.AgentInclude<ExtArgs> | null
|
||||
where?: Prisma.AgentWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* AuditLog.project
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user