feat(quota): add 2-level database-backed resource quota system (#318)

* feat(quota): add database-backed resource quota system

* feat(webui): add resource quota management in team settings (#319)

* feat(webui): add resource quota settings in team management

* refactor(webui): update quotas list to full row layout and restrict skill/mcp to select list

* feat(quota): refactor quota system to 2-level rules and records

* fix(webui): fix overflow and scroll area in quota usage records dialog

* fix(webui): ensure quota records scroll area has explicit max height

* feat(webui): improve quota cards interaction and restrict editable fields in edit mode

* fix(quota): serialize initial records, validate merged updates, and reset on dimension changes (#320)

* feat(quota): replace network quota with agent tools quota (#321)

* feat(webui): show remaining time until next refresh in quota usage records

* fix(webui): rename bash quota resource to Agent Bash Calls

* refactor(quota): remove unused reserved field from quota records

* refactor(quota): remove quota rule cache (#322)
This commit is contained in:
Yiling-J
2026-08-17 20:24:05 +08:00
committed by GitHub
parent dd82daf65c
commit eed0264b9c
200 changed files with 13118 additions and 50 deletions
+284
View File
@@ -247,6 +247,7 @@ export type UserWhereInput = {
apiTokens?: Prisma.ApiTokenListRelationFilter
aiUsages?: Prisma.AiUsageListRelationFilter
auditLogs?: Prisma.AuditLogListRelationFilter
quotaRecords?: Prisma.QuotaRecordListRelationFilter
}
export type UserOrderByWithRelationInput = {
@@ -280,6 +281,7 @@ export type UserOrderByWithRelationInput = {
apiTokens?: Prisma.ApiTokenOrderByRelationAggregateInput
aiUsages?: Prisma.AiUsageOrderByRelationAggregateInput
auditLogs?: Prisma.AuditLogOrderByRelationAggregateInput
quotaRecords?: Prisma.QuotaRecordOrderByRelationAggregateInput
}
export type UserWhereUniqueInput = Prisma.AtLeast<{
@@ -316,6 +318,7 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
apiTokens?: Prisma.ApiTokenListRelationFilter
aiUsages?: Prisma.AiUsageListRelationFilter
auditLogs?: Prisma.AuditLogListRelationFilter
quotaRecords?: Prisma.QuotaRecordListRelationFilter
}, "id" | "email">
export type UserOrderByWithAggregationInput = {
@@ -383,6 +386,7 @@ export type UserCreateInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateInput = {
@@ -416,6 +420,7 @@ export type UserUncheckedCreateInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserUpdateInput = {
@@ -449,6 +454,7 @@ export type UserUpdateInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateInput = {
@@ -482,6 +488,7 @@ export type UserUncheckedUpdateInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateManyInput = {
@@ -884,6 +891,22 @@ export type UserUpdateOneWithoutAuditLogsNestedInput = {
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutAuditLogsInput, Prisma.UserUpdateWithoutAuditLogsInput>, Prisma.UserUncheckedUpdateWithoutAuditLogsInput>
}
export type UserCreateNestedOneWithoutQuotaRecordsInput = {
create?: Prisma.XOR<Prisma.UserCreateWithoutQuotaRecordsInput, Prisma.UserUncheckedCreateWithoutQuotaRecordsInput>
connectOrCreate?: Prisma.UserCreateOrConnectWithoutQuotaRecordsInput
connect?: Prisma.UserWhereUniqueInput
}
export type UserUpdateOneWithoutQuotaRecordsNestedInput = {
create?: Prisma.XOR<Prisma.UserCreateWithoutQuotaRecordsInput, Prisma.UserUncheckedCreateWithoutQuotaRecordsInput>
connectOrCreate?: Prisma.UserCreateOrConnectWithoutQuotaRecordsInput
upsert?: Prisma.UserUpsertWithoutQuotaRecordsInput
disconnect?: Prisma.UserWhereInput | boolean
delete?: Prisma.UserWhereInput | boolean
connect?: Prisma.UserWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutQuotaRecordsInput, Prisma.UserUpdateWithoutQuotaRecordsInput>, Prisma.UserUncheckedUpdateWithoutQuotaRecordsInput>
}
export type UserCreateWithoutSessionsInput = {
id?: string
type?: $Enums.UserType
@@ -914,6 +937,7 @@ export type UserCreateWithoutSessionsInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutSessionsInput = {
@@ -946,6 +970,7 @@ export type UserUncheckedCreateWithoutSessionsInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutSessionsInput = {
@@ -994,6 +1019,7 @@ export type UserUpdateWithoutSessionsInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutSessionsInput = {
@@ -1026,6 +1052,7 @@ export type UserUncheckedUpdateWithoutSessionsInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutAccountsInput = {
@@ -1058,6 +1085,7 @@ export type UserCreateWithoutAccountsInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutAccountsInput = {
@@ -1090,6 +1118,7 @@ export type UserUncheckedCreateWithoutAccountsInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutAccountsInput = {
@@ -1138,6 +1167,7 @@ export type UserUpdateWithoutAccountsInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutAccountsInput = {
@@ -1170,6 +1200,7 @@ export type UserUncheckedUpdateWithoutAccountsInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutAuthTokensInput = {
@@ -1202,6 +1233,7 @@ export type UserCreateWithoutAuthTokensInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutAuthTokensInput = {
@@ -1234,6 +1266,7 @@ export type UserUncheckedCreateWithoutAuthTokensInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutAuthTokensInput = {
@@ -1282,6 +1315,7 @@ export type UserUpdateWithoutAuthTokensInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutAuthTokensInput = {
@@ -1314,6 +1348,7 @@ export type UserUncheckedUpdateWithoutAuthTokensInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutTeamMembersInput = {
@@ -1346,6 +1381,7 @@ export type UserCreateWithoutTeamMembersInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutTeamMembersInput = {
@@ -1378,6 +1414,7 @@ export type UserUncheckedCreateWithoutTeamMembersInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutTeamMembersInput = {
@@ -1426,6 +1463,7 @@ export type UserUpdateWithoutTeamMembersInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutTeamMembersInput = {
@@ -1458,6 +1496,7 @@ export type UserUncheckedUpdateWithoutTeamMembersInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutShareLinksInput = {
@@ -1490,6 +1529,7 @@ export type UserCreateWithoutShareLinksInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutShareLinksInput = {
@@ -1522,6 +1562,7 @@ export type UserUncheckedCreateWithoutShareLinksInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutShareLinksInput = {
@@ -1570,6 +1611,7 @@ export type UserUpdateWithoutShareLinksInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutShareLinksInput = {
@@ -1602,6 +1644,7 @@ export type UserUncheckedUpdateWithoutShareLinksInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutAssetsInput = {
@@ -1634,6 +1677,7 @@ export type UserCreateWithoutAssetsInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutAssetsInput = {
@@ -1666,6 +1710,7 @@ export type UserUncheckedCreateWithoutAssetsInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutAssetsInput = {
@@ -1714,6 +1759,7 @@ export type UserUpdateWithoutAssetsInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutAssetsInput = {
@@ -1746,6 +1792,7 @@ export type UserUncheckedUpdateWithoutAssetsInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutCommentsInput = {
@@ -1778,6 +1825,7 @@ export type UserCreateWithoutCommentsInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutCommentsInput = {
@@ -1810,6 +1858,7 @@ export type UserUncheckedCreateWithoutCommentsInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutCommentsInput = {
@@ -1847,6 +1896,7 @@ export type UserCreateWithoutCompletionChangedCommentsInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutCompletionChangedCommentsInput = {
@@ -1879,6 +1929,7 @@ export type UserUncheckedCreateWithoutCompletionChangedCommentsInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutCompletionChangedCommentsInput = {
@@ -1927,6 +1978,7 @@ export type UserUpdateWithoutCommentsInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutCommentsInput = {
@@ -1959,6 +2011,7 @@ export type UserUncheckedUpdateWithoutCommentsInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserUpsertWithoutCompletionChangedCommentsInput = {
@@ -2002,6 +2055,7 @@ export type UserUpdateWithoutCompletionChangedCommentsInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutCompletionChangedCommentsInput = {
@@ -2034,6 +2088,7 @@ export type UserUncheckedUpdateWithoutCompletionChangedCommentsInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutCreatedInvitesInput = {
@@ -2066,6 +2121,7 @@ export type UserCreateWithoutCreatedInvitesInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutCreatedInvitesInput = {
@@ -2098,6 +2154,7 @@ export type UserUncheckedCreateWithoutCreatedInvitesInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutCreatedInvitesInput = {
@@ -2146,6 +2203,7 @@ export type UserUpdateWithoutCreatedInvitesInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutCreatedInvitesInput = {
@@ -2178,6 +2236,7 @@ export type UserUncheckedUpdateWithoutCreatedInvitesInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutCreatedNotificationsInput = {
@@ -2210,6 +2269,7 @@ export type UserCreateWithoutCreatedNotificationsInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutCreatedNotificationsInput = {
@@ -2242,6 +2302,7 @@ export type UserUncheckedCreateWithoutCreatedNotificationsInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutCreatedNotificationsInput = {
@@ -2279,6 +2340,7 @@ export type UserCreateWithoutNotificationsInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutNotificationsInput = {
@@ -2311,6 +2373,7 @@ export type UserUncheckedCreateWithoutNotificationsInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutNotificationsInput = {
@@ -2359,6 +2422,7 @@ export type UserUpdateWithoutCreatedNotificationsInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutCreatedNotificationsInput = {
@@ -2391,6 +2455,7 @@ export type UserUncheckedUpdateWithoutCreatedNotificationsInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserUpsertWithoutNotificationsInput = {
@@ -2434,6 +2499,7 @@ export type UserUpdateWithoutNotificationsInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutNotificationsInput = {
@@ -2466,6 +2532,7 @@ export type UserUncheckedUpdateWithoutNotificationsInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutTasksInput = {
@@ -2498,6 +2565,7 @@ export type UserCreateWithoutTasksInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutTasksInput = {
@@ -2530,6 +2598,7 @@ export type UserUncheckedCreateWithoutTasksInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutTasksInput = {
@@ -2578,6 +2647,7 @@ export type UserUpdateWithoutTasksInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutTasksInput = {
@@ -2610,6 +2680,7 @@ export type UserUncheckedUpdateWithoutTasksInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutAgentInput = {
@@ -2642,6 +2713,7 @@ export type UserCreateWithoutAgentInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutAgentInput = {
@@ -2674,6 +2746,7 @@ export type UserUncheckedCreateWithoutAgentInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutAgentInput = {
@@ -2722,6 +2795,7 @@ export type UserUpdateWithoutAgentInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutAgentInput = {
@@ -2754,6 +2828,7 @@ export type UserUncheckedUpdateWithoutAgentInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutAgentSessionsInput = {
@@ -2786,6 +2861,7 @@ export type UserCreateWithoutAgentSessionsInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutAgentSessionsInput = {
@@ -2818,6 +2894,7 @@ export type UserUncheckedCreateWithoutAgentSessionsInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutAgentSessionsInput = {
@@ -2866,6 +2943,7 @@ export type UserUpdateWithoutAgentSessionsInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutAgentSessionsInput = {
@@ -2898,6 +2976,7 @@ export type UserUncheckedUpdateWithoutAgentSessionsInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutUserMetadataInput = {
@@ -2930,6 +3009,7 @@ export type UserCreateWithoutUserMetadataInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutUserMetadataInput = {
@@ -2962,6 +3042,7 @@ export type UserUncheckedCreateWithoutUserMetadataInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutUserMetadataInput = {
@@ -3010,6 +3091,7 @@ export type UserUpdateWithoutUserMetadataInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutUserMetadataInput = {
@@ -3042,6 +3124,7 @@ export type UserUncheckedUpdateWithoutUserMetadataInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutCollectionsInput = {
@@ -3074,6 +3157,7 @@ export type UserCreateWithoutCollectionsInput = {
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutCollectionsInput = {
@@ -3106,6 +3190,7 @@ export type UserUncheckedCreateWithoutCollectionsInput = {
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutCollectionsInput = {
@@ -3154,6 +3239,7 @@ export type UserUpdateWithoutCollectionsInput = {
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutCollectionsInput = {
@@ -3186,6 +3272,7 @@ export type UserUncheckedUpdateWithoutCollectionsInput = {
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutApiTokensInput = {
@@ -3218,6 +3305,7 @@ export type UserCreateWithoutApiTokensInput = {
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutApiTokensInput = {
@@ -3250,6 +3338,7 @@ export type UserUncheckedCreateWithoutApiTokensInput = {
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutApiTokensInput = {
@@ -3298,6 +3387,7 @@ export type UserUpdateWithoutApiTokensInput = {
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutApiTokensInput = {
@@ -3330,6 +3420,7 @@ export type UserUncheckedUpdateWithoutApiTokensInput = {
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutAiUsagesInput = {
@@ -3362,6 +3453,7 @@ export type UserCreateWithoutAiUsagesInput = {
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutAiUsagesInput = {
@@ -3394,6 +3486,7 @@ export type UserUncheckedCreateWithoutAiUsagesInput = {
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutAiUsagesInput = {
@@ -3442,6 +3535,7 @@ export type UserUpdateWithoutAiUsagesInput = {
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutAiUsagesInput = {
@@ -3474,6 +3568,7 @@ export type UserUncheckedUpdateWithoutAiUsagesInput = {
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutAuditLogsInput = {
@@ -3506,6 +3601,7 @@ export type UserCreateWithoutAuditLogsInput = {
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutAuditLogsInput = {
@@ -3538,6 +3634,7 @@ export type UserUncheckedCreateWithoutAuditLogsInput = {
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
quotaRecords?: Prisma.QuotaRecordUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutAuditLogsInput = {
@@ -3586,6 +3683,7 @@ export type UserUpdateWithoutAuditLogsInput = {
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutAuditLogsInput = {
@@ -3618,6 +3716,155 @@ export type UserUncheckedUpdateWithoutAuditLogsInput = {
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
quotaRecords?: Prisma.QuotaRecordUncheckedUpdateManyWithoutUserNestedInput
}
export type UserCreateWithoutQuotaRecordsInput = {
id?: string
type?: $Enums.UserType
name: string
email: string
emailVerified?: boolean
image?: string | null
password?: string | null
agentSettings?:PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assets?: Prisma.AssetCreateNestedManyWithoutCreatorInput
authTokens?: Prisma.AuthTokenCreateNestedManyWithoutUserInput
tasks?: Prisma.TaskCreateNestedManyWithoutCreatorInput
teamMembers?: Prisma.TeamMemberCreateNestedManyWithoutUserInput
comments?: Prisma.AssetCommentCreateNestedManyWithoutCreatorInput
completionChangedComments?: Prisma.AssetCommentCreateNestedManyWithoutCompletionLastChangedByInput
createdInvites?: Prisma.InviteCreateNestedManyWithoutInviterInput
createdNotifications?: Prisma.NotificationCreateNestedManyWithoutCreatorInput
notifications?: Prisma.NotificationCreateNestedManyWithoutUserInput
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
agent?: Prisma.AgentCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkCreateNestedManyWithoutCreatorInput
apiTokens?: Prisma.ApiTokenCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogCreateNestedManyWithoutUserInput
}
export type UserUncheckedCreateWithoutQuotaRecordsInput = {
id?: string
type?: $Enums.UserType
name: string
email: string
emailVerified?: boolean
image?: string | null
password?: string | null
agentSettings?:PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: string | null
createdAt?: Date | string
updatedAt?: Date | string
assets?: Prisma.AssetUncheckedCreateNestedManyWithoutCreatorInput
authTokens?: Prisma.AuthTokenUncheckedCreateNestedManyWithoutUserInput
tasks?: Prisma.TaskUncheckedCreateNestedManyWithoutCreatorInput
teamMembers?: Prisma.TeamMemberUncheckedCreateNestedManyWithoutUserInput
comments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCreatorInput
completionChangedComments?: Prisma.AssetCommentUncheckedCreateNestedManyWithoutCompletionLastChangedByInput
createdInvites?: Prisma.InviteUncheckedCreateNestedManyWithoutInviterInput
createdNotifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutCreatorInput
notifications?: Prisma.NotificationUncheckedCreateNestedManyWithoutUserInput
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
agent?: Prisma.AgentUncheckedCreateNestedOneWithoutUserInput
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutUserInput
userMetadata?: Prisma.UserMetadataUncheckedCreateNestedManyWithoutUserInput
collections?: Prisma.CollectionUncheckedCreateNestedManyWithoutCreatorInput
shareLinks?: Prisma.ShareLinkUncheckedCreateNestedManyWithoutCreatorInput
apiTokens?: Prisma.ApiTokenUncheckedCreateNestedManyWithoutUserInput
aiUsages?: Prisma.AiUsageUncheckedCreateNestedManyWithoutUserInput
auditLogs?: Prisma.AuditLogUncheckedCreateNestedManyWithoutUserInput
}
export type UserCreateOrConnectWithoutQuotaRecordsInput = {
where: Prisma.UserWhereUniqueInput
create: Prisma.XOR<Prisma.UserCreateWithoutQuotaRecordsInput, Prisma.UserUncheckedCreateWithoutQuotaRecordsInput>
}
export type UserUpsertWithoutQuotaRecordsInput = {
update: Prisma.XOR<Prisma.UserUpdateWithoutQuotaRecordsInput, Prisma.UserUncheckedUpdateWithoutQuotaRecordsInput>
create: Prisma.XOR<Prisma.UserCreateWithoutQuotaRecordsInput, Prisma.UserUncheckedCreateWithoutQuotaRecordsInput>
where?: Prisma.UserWhereInput
}
export type UserUpdateToOneWithWhereWithoutQuotaRecordsInput = {
where?: Prisma.UserWhereInput
data: Prisma.XOR<Prisma.UserUpdateWithoutQuotaRecordsInput, Prisma.UserUncheckedUpdateWithoutQuotaRecordsInput>
}
export type UserUpdateWithoutQuotaRecordsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
agentSettings?:PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assets?: Prisma.AssetUpdateManyWithoutCreatorNestedInput
authTokens?: Prisma.AuthTokenUpdateManyWithoutUserNestedInput
tasks?: Prisma.TaskUpdateManyWithoutCreatorNestedInput
teamMembers?: Prisma.TeamMemberUpdateManyWithoutUserNestedInput
comments?: Prisma.AssetCommentUpdateManyWithoutCreatorNestedInput
completionChangedComments?: Prisma.AssetCommentUpdateManyWithoutCompletionLastChangedByNestedInput
createdInvites?: Prisma.InviteUpdateManyWithoutInviterNestedInput
createdNotifications?: Prisma.NotificationUpdateManyWithoutCreatorNestedInput
notifications?: Prisma.NotificationUpdateManyWithoutUserNestedInput
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUpdateManyWithoutCreatorNestedInput
apiTokens?: Prisma.ApiTokenUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUpdateManyWithoutUserNestedInput
}
export type UserUncheckedUpdateWithoutQuotaRecordsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.StringFieldUpdateOperationsInput | string
emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
agentSettings?:PrismaJson.AgentSettings | Prisma.NullableJsonNullValueInput
guestEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
assets?: Prisma.AssetUncheckedUpdateManyWithoutCreatorNestedInput
authTokens?: Prisma.AuthTokenUncheckedUpdateManyWithoutUserNestedInput
tasks?: Prisma.TaskUncheckedUpdateManyWithoutCreatorNestedInput
teamMembers?: Prisma.TeamMemberUncheckedUpdateManyWithoutUserNestedInput
comments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCreatorNestedInput
completionChangedComments?: Prisma.AssetCommentUncheckedUpdateManyWithoutCompletionLastChangedByNestedInput
createdInvites?: Prisma.InviteUncheckedUpdateManyWithoutInviterNestedInput
createdNotifications?: Prisma.NotificationUncheckedUpdateManyWithoutCreatorNestedInput
notifications?: Prisma.NotificationUncheckedUpdateManyWithoutUserNestedInput
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
agent?: Prisma.AgentUncheckedUpdateOneWithoutUserNestedInput
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutUserNestedInput
userMetadata?: Prisma.UserMetadataUncheckedUpdateManyWithoutUserNestedInput
collections?: Prisma.CollectionUncheckedUpdateManyWithoutCreatorNestedInput
shareLinks?: Prisma.ShareLinkUncheckedUpdateManyWithoutCreatorNestedInput
apiTokens?: Prisma.ApiTokenUncheckedUpdateManyWithoutUserNestedInput
aiUsages?: Prisma.AiUsageUncheckedUpdateManyWithoutUserNestedInput
auditLogs?: Prisma.AuditLogUncheckedUpdateManyWithoutUserNestedInput
}
@@ -3644,6 +3891,7 @@ export type UserCountOutputType = {
apiTokens: number
aiUsages: number
auditLogs: number
quotaRecords: number
}
export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -3665,6 +3913,7 @@ export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.I
apiTokens?: boolean | UserCountOutputTypeCountApiTokensArgs
aiUsages?: boolean | UserCountOutputTypeCountAiUsagesArgs
auditLogs?: boolean | UserCountOutputTypeCountAuditLogsArgs
quotaRecords?: boolean | UserCountOutputTypeCountQuotaRecordsArgs
}
/**
@@ -3803,6 +4052,13 @@ export type UserCountOutputTypeCountAuditLogsArgs<ExtArgs extends runtime.Types.
where?: Prisma.AuditLogWhereInput
}
/**
* UserCountOutputType without action
*/
export type UserCountOutputTypeCountQuotaRecordsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.QuotaRecordWhereInput
}
export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
@@ -3835,6 +4091,7 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
apiTokens?: boolean | Prisma.User$apiTokensArgs<ExtArgs>
aiUsages?: boolean | Prisma.User$aiUsagesArgs<ExtArgs>
auditLogs?: boolean | Prisma.User$auditLogsArgs<ExtArgs>
quotaRecords?: boolean | Prisma.User$quotaRecordsArgs<ExtArgs>
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["user"]>
@@ -3901,6 +4158,7 @@ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
apiTokens?: boolean | Prisma.User$apiTokensArgs<ExtArgs>
aiUsages?: boolean | Prisma.User$aiUsagesArgs<ExtArgs>
auditLogs?: boolean | Prisma.User$auditLogsArgs<ExtArgs>
quotaRecords?: boolean | Prisma.User$quotaRecordsArgs<ExtArgs>
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
}
export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
@@ -3928,6 +4186,7 @@ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
apiTokens: Prisma.$ApiTokenPayload<ExtArgs>[]
aiUsages: Prisma.$AiUsagePayload<ExtArgs>[]
auditLogs: Prisma.$AuditLogPayload<ExtArgs>[]
quotaRecords: Prisma.$QuotaRecordPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
@@ -4357,6 +4616,7 @@ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Typ
apiTokens<T extends Prisma.User$apiTokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$apiTokensArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
aiUsages<T extends Prisma.User$aiUsagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$aiUsagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AiUsagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
auditLogs<T extends Prisma.User$auditLogsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$auditLogsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
quotaRecords<T extends Prisma.User$quotaRecordsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$quotaRecordsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuotaRecordPayload<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.
@@ -5240,6 +5500,30 @@ export type User$auditLogsArgs<ExtArgs extends runtime.Types.Extensions.Internal
distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
}
/**
* User.quotaRecords
*/
export type User$quotaRecordsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the QuotaRecord
*/
select?: Prisma.QuotaRecordSelect<ExtArgs> | null
/**
* Omit specific fields from the QuotaRecord
*/
omit?: Prisma.QuotaRecordOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.QuotaRecordInclude<ExtArgs> | null
where?: Prisma.QuotaRecordWhereInput
orderBy?: Prisma.QuotaRecordOrderByWithRelationInput | Prisma.QuotaRecordOrderByWithRelationInput[]
cursor?: Prisma.QuotaRecordWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.QuotaRecordScalarFieldEnum | Prisma.QuotaRecordScalarFieldEnum[]
}
/**
* User without action
*/