mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 20:34:28 +00:00
feat(runner): replace server-side bash sandbox with remote runner (#530)
* feat(runner): replace server-side bash sandbox with remote runner * fix(runner): address review findings for output bounds, key rotation, defaults, and generated uploads * chore(docker): remove sandbox privileges and env vars from remaining compose files * feat(cli): add runner start with bundled SRT sandboxing (#535) * refactor(agent): expose runner bash without skill gating * feat(cli): add runner start with optional SRT sandboxing * refactor(cli): remove runner Python dependency * feat(cli): bundle SRT and use platform-native runner shells * refactor(cli): delegate runner processes to Execa * chore(cli): upgrade @anthropic-ai/sandbox-runtime to 0.0.83 * feat(cli): discover Bash for Windows runners Use Pi-style Bash discovery and launch behavior, exercise the packaged CLI shell, and wait for pending ZIP metadata reads before closing cancelled downloads. * fix(runner): enforce ownership and safe reconnects Gate dispatch on reconciliation, retain cancellations across disconnects, and stop replaced clients. Guard the single-server runner topology with a database lease. Restage missing generated inputs, report signal exits, and bound generated-file cleanup. * feat(webui): add Korean translations for agent runners * feat(cli): add runner event logging and --verbose flag (#536) * feat(cli): add runner event logging and --verbose flag * fix(cli): log runner capacity rejections accurately and use monotonic duration
This commit is contained in:
+128
-123
@@ -2,7 +2,7 @@
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
// @ts-nocheck
|
||||
// @ts-nocheck
|
||||
/*
|
||||
* WARNING: This is an internal file that is subject to change!
|
||||
*
|
||||
@@ -403,7 +403,7 @@ export const ModelName = {
|
||||
Verification: 'Verification',
|
||||
AuthToken: 'AuthToken',
|
||||
Team: 'Team',
|
||||
Sandbox: 'Sandbox',
|
||||
Runner: 'Runner',
|
||||
Skill: 'Skill',
|
||||
TeamMember: 'TeamMember',
|
||||
Project: 'Project',
|
||||
@@ -473,7 +473,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "session" | "account" | "verification" | "authToken" | "team" | "sandbox" | "skill" | "teamMember" | "project" | "projectMember" | "shareLink" | "watermarkConfig" | "watermarkTemplate" | "watermarkFile" | "asset" | "storageKey" | "assetMetadataValue" | "assetAgentMd" | "assetComment" | "assetCommentAttachment" | "assetCommentReaction" | "assetEmbedding" | "invite" | "metadataField" | "notification" | "systemSettings" | "task" | "workflowTask" | "agent" | "agentSkill" | "mcpServer" | "agentMcpServer" | "mcpServerCredential" | "agentSession" | "agentSessionCommit" | "agentSessionEntry" | "userMetadata" | "model" | "provider" | "collection" | "apiToken" | "aiUsage" | "auditLog" | "quotaRule" | "quotaRecord" | "kanbanGoal" | "kanbanTask" | "kanbanTaskLink" | "kanbanTaskAsset" | "kanbanTaskComment" | "kanbanTaskEvent" | "recentFileItem" | "jwks" | "oauthClient" | "oauthResource" | "oauthClientResource" | "oauthRefreshToken" | "oauthAccessToken" | "oauthConsent" | "oauthClientAssertion"
|
||||
modelProps: "user" | "session" | "account" | "verification" | "authToken" | "team" | "runner" | "skill" | "teamMember" | "project" | "projectMember" | "shareLink" | "watermarkConfig" | "watermarkTemplate" | "watermarkFile" | "asset" | "storageKey" | "assetMetadataValue" | "assetAgentMd" | "assetComment" | "assetCommentAttachment" | "assetCommentReaction" | "assetEmbedding" | "invite" | "metadataField" | "notification" | "systemSettings" | "task" | "workflowTask" | "agent" | "agentSkill" | "mcpServer" | "agentMcpServer" | "mcpServerCredential" | "agentSession" | "agentSessionCommit" | "agentSessionEntry" | "userMetadata" | "model" | "provider" | "collection" | "apiToken" | "aiUsage" | "auditLog" | "quotaRule" | "quotaRecord" | "kanbanGoal" | "kanbanTask" | "kanbanTaskLink" | "kanbanTaskAsset" | "kanbanTaskComment" | "kanbanTaskEvent" | "recentFileItem" | "jwks" | "oauthClient" | "oauthResource" | "oauthClientResource" | "oauthRefreshToken" | "oauthAccessToken" | "oauthConsent" | "oauthClientAssertion"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -921,77 +921,77 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
Sandbox: {
|
||||
payload: Prisma.$SandboxPayload<ExtArgs>
|
||||
fields: Prisma.SandboxFieldRefs
|
||||
Runner: {
|
||||
payload: Prisma.$RunnerPayload<ExtArgs>
|
||||
fields: Prisma.RunnerFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.SandboxFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload> | null
|
||||
args: Prisma.RunnerFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.SandboxFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload>
|
||||
args: Prisma.RunnerFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.SandboxFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload> | null
|
||||
args: Prisma.RunnerFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.SandboxFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload>
|
||||
args: Prisma.RunnerFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.SandboxFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload>[]
|
||||
args: Prisma.RunnerFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.SandboxCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload>
|
||||
args: Prisma.RunnerCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.SandboxCreateManyArgs<ExtArgs>
|
||||
args: Prisma.RunnerCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.SandboxCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload>[]
|
||||
args: Prisma.RunnerCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.SandboxDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload>
|
||||
args: Prisma.RunnerDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.SandboxUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload>
|
||||
args: Prisma.RunnerUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.SandboxDeleteManyArgs<ExtArgs>
|
||||
args: Prisma.RunnerDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.SandboxUpdateManyArgs<ExtArgs>
|
||||
args: Prisma.RunnerUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.SandboxUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload>[]
|
||||
args: Prisma.RunnerUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.SandboxUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SandboxPayload>
|
||||
args: Prisma.RunnerUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RunnerPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.SandboxAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateSandbox>
|
||||
args: Prisma.RunnerAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateRunner>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.SandboxGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SandboxGroupByOutputType>[]
|
||||
args: Prisma.RunnerGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.RunnerGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.SandboxCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SandboxCountAggregateOutputType> | number
|
||||
args: Prisma.RunnerCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.RunnerCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5116,17 +5116,21 @@ export const TeamScalarFieldEnum = {
|
||||
export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum]
|
||||
|
||||
|
||||
export const SandboxScalarFieldEnum = {
|
||||
export const RunnerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
networkSandboxEnabled: 'networkSandboxEnabled',
|
||||
allowedDomains: 'allowedDomains',
|
||||
pendingDomains: 'pendingDomains',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
keyPrefix: 'keyPrefix',
|
||||
keyHash: 'keyHash',
|
||||
isDefault: 'isDefault',
|
||||
lastConnectedAt: 'lastConnectedAt',
|
||||
lastDisconnectedAt: 'lastDisconnectedAt',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
teamId: 'teamId'
|
||||
} as const
|
||||
|
||||
export type SandboxScalarFieldEnum = (typeof SandboxScalarFieldEnum)[keyof typeof SandboxScalarFieldEnum]
|
||||
export type RunnerScalarFieldEnum = (typeof RunnerScalarFieldEnum)[keyof typeof RunnerScalarFieldEnum]
|
||||
|
||||
|
||||
export const SkillScalarFieldEnum = {
|
||||
@@ -5463,6 +5467,7 @@ export const AgentScalarFieldEnum = {
|
||||
soul: 'soul',
|
||||
providerId: 'providerId',
|
||||
modelId: 'modelId',
|
||||
runnerId: 'runnerId',
|
||||
teamId: 'teamId',
|
||||
config: 'config',
|
||||
createdAt: 'createdAt',
|
||||
@@ -6012,455 +6017,455 @@ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
||||
* Reference to a field of type 'String'
|
||||
*/
|
||||
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'String[]'
|
||||
*/
|
||||
export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'UserType'
|
||||
*/
|
||||
export type EnumUserTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UserType'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'UserType[]'
|
||||
*/
|
||||
export type ListEnumUserTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UserType[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Boolean'
|
||||
*/
|
||||
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Json'
|
||||
*/
|
||||
export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'QueryMode'
|
||||
*/
|
||||
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'DateTime'
|
||||
*/
|
||||
export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'DateTime[]'
|
||||
*/
|
||||
export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'TeamMemberRole'
|
||||
*/
|
||||
export type EnumTeamMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TeamMemberRole'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'TeamMemberRole[]'
|
||||
*/
|
||||
export type ListEnumTeamMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TeamMemberRole[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'TeamMemberScope'
|
||||
*/
|
||||
export type EnumTeamMemberScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TeamMemberScope'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'TeamMemberScope[]'
|
||||
*/
|
||||
export type ListEnumTeamMemberScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TeamMemberScope[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'ProjectMemberRole'
|
||||
*/
|
||||
export type EnumProjectMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProjectMemberRole'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'ProjectMemberRole[]'
|
||||
*/
|
||||
export type ListEnumProjectMemberRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProjectMemberRole[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'WatermarkStatus'
|
||||
*/
|
||||
export type EnumWatermarkStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WatermarkStatus'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'WatermarkStatus[]'
|
||||
*/
|
||||
export type ListEnumWatermarkStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WatermarkStatus[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'WatermarkFileStatus'
|
||||
*/
|
||||
export type EnumWatermarkFileStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WatermarkFileStatus'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'WatermarkFileStatus[]'
|
||||
*/
|
||||
export type ListEnumWatermarkFileStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WatermarkFileStatus[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'AssetType'
|
||||
*/
|
||||
export type EnumAssetTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AssetType'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'AssetType[]'
|
||||
*/
|
||||
export type ListEnumAssetTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AssetType[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Int'
|
||||
*/
|
||||
export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Int[]'
|
||||
*/
|
||||
export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'BigInt'
|
||||
*/
|
||||
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'BigInt[]'
|
||||
*/
|
||||
export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'AssetStatus'
|
||||
*/
|
||||
export type EnumAssetStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AssetStatus'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'AssetStatus[]'
|
||||
*/
|
||||
export type ListEnumAssetStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AssetStatus[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'StorageKeyStatus'
|
||||
*/
|
||||
export type EnumStorageKeyStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StorageKeyStatus'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'StorageKeyStatus[]'
|
||||
*/
|
||||
export type ListEnumStorageKeyStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'StorageKeyStatus[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Float'
|
||||
*/
|
||||
export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Float[]'
|
||||
*/
|
||||
export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'InviteRole'
|
||||
*/
|
||||
export type EnumInviteRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'InviteRole'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'InviteRole[]'
|
||||
*/
|
||||
export type ListEnumInviteRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'InviteRole[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'MetadataFieldScope'
|
||||
*/
|
||||
export type EnumMetadataFieldScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MetadataFieldScope'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'MetadataFieldScope[]'
|
||||
*/
|
||||
export type ListEnumMetadataFieldScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'MetadataFieldScope[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'NotificationType'
|
||||
*/
|
||||
export type EnumNotificationTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationType'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'NotificationType[]'
|
||||
*/
|
||||
export type ListEnumNotificationTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationType[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'NotificationEmailStatus'
|
||||
*/
|
||||
export type EnumNotificationEmailStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationEmailStatus'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'NotificationEmailStatus[]'
|
||||
*/
|
||||
export type ListEnumNotificationEmailStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'NotificationEmailStatus[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'TaskType'
|
||||
*/
|
||||
export type EnumTaskTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TaskType'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'TaskType[]'
|
||||
*/
|
||||
export type ListEnumTaskTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TaskType[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'TaskStatus'
|
||||
*/
|
||||
export type EnumTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TaskStatus'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'TaskStatus[]'
|
||||
*/
|
||||
export type ListEnumTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'TaskStatus[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'WorkflowTaskType'
|
||||
*/
|
||||
export type EnumWorkflowTaskTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkflowTaskType'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'WorkflowTaskType[]'
|
||||
*/
|
||||
export type ListEnumWorkflowTaskTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkflowTaskType[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'WorkflowTaskStatus'
|
||||
*/
|
||||
export type EnumWorkflowTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkflowTaskStatus'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'WorkflowTaskStatus[]'
|
||||
*/
|
||||
export type ListEnumWorkflowTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkflowTaskStatus[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'AgentType'
|
||||
*/
|
||||
export type EnumAgentTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AgentType'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'AgentType[]'
|
||||
*/
|
||||
export type ListEnumAgentTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AgentType[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'McpTransport'
|
||||
*/
|
||||
export type EnumMcpTransportFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'McpTransport'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'McpTransport[]'
|
||||
*/
|
||||
export type ListEnumMcpTransportFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'McpTransport[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'AgentSessionType'
|
||||
*/
|
||||
export type EnumAgentSessionTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AgentSessionType'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'AgentSessionType[]'
|
||||
*/
|
||||
export type ListEnumAgentSessionTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'AgentSessionType[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'QuotaScopeMode'
|
||||
*/
|
||||
export type EnumQuotaScopeModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QuotaScopeMode'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'QuotaScopeMode[]'
|
||||
*/
|
||||
export type ListEnumQuotaScopeModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QuotaScopeMode[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'QuotaResourceType'
|
||||
*/
|
||||
export type EnumQuotaResourceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QuotaResourceType'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'QuotaResourceType[]'
|
||||
*/
|
||||
export type ListEnumQuotaResourceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QuotaResourceType[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'QuotaPeriod'
|
||||
*/
|
||||
export type EnumQuotaPeriodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QuotaPeriod'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'QuotaPeriod[]'
|
||||
*/
|
||||
export type ListEnumQuotaPeriodFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QuotaPeriod[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'KanbanTaskStatus'
|
||||
*/
|
||||
export type EnumKanbanTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'KanbanTaskStatus'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'KanbanTaskStatus[]'
|
||||
*/
|
||||
export type ListEnumKanbanTaskStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'KanbanTaskStatus[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'KanbanTaskPriority'
|
||||
*/
|
||||
export type EnumKanbanTaskPriorityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'KanbanTaskPriority'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'KanbanTaskPriority[]'
|
||||
*/
|
||||
export type ListEnumKanbanTaskPriorityFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'KanbanTaskPriority[]'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'KanbanTaskEventType'
|
||||
*/
|
||||
export type EnumKanbanTaskEventTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'KanbanTaskEventType'>
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'KanbanTaskEventType[]'
|
||||
*/
|
||||
export type ListEnumKanbanTaskEventTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'KanbanTaskEventType[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Batch Payload for updateMany & deleteMany & createMany
|
||||
@@ -6485,7 +6490,7 @@ export interface PrismaClientBaseOptions {
|
||||
* ```
|
||||
* // Shorthand for `emit: 'stdout'`
|
||||
* log: ['query', 'info', 'warn', 'error']
|
||||
*
|
||||
*
|
||||
* // Emit as events only
|
||||
* log: [
|
||||
* { emit: 'event', level: 'query' },
|
||||
@@ -6493,14 +6498,14 @@ export interface PrismaClientBaseOptions {
|
||||
* { emit: 'event', level: 'warn' }
|
||||
* { emit: 'event', level: 'error' }
|
||||
* ]
|
||||
*
|
||||
*
|
||||
* / Emit as events and log to stdout
|
||||
* og: [
|
||||
* { emit: 'stdout', level: 'query' },
|
||||
* { emit: 'stdout', level: 'info' },
|
||||
* { emit: 'stdout', level: 'warn' }
|
||||
* { emit: 'stdout', level: 'error' }
|
||||
*
|
||||
*
|
||||
* ```
|
||||
* Read more in our [docs](https://pris.ly/d/logging).
|
||||
*/
|
||||
@@ -6517,7 +6522,7 @@ export interface PrismaClientBaseOptions {
|
||||
}
|
||||
/**
|
||||
* Global configuration for omitting model fields by default.
|
||||
*
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* const prisma = new PrismaClient({
|
||||
@@ -6533,7 +6538,7 @@ export interface PrismaClientBaseOptions {
|
||||
/**
|
||||
* SQL commenter plugins that add metadata to SQL queries as comments.
|
||||
* Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
|
||||
*
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* const prisma = new PrismaClient({
|
||||
@@ -6551,7 +6556,7 @@ export interface PrismaClientBaseOptions {
|
||||
* A value of `0` can be used to disable the cache entirely. A higher cache size can improve
|
||||
* performance for applications that execute a large number of unique queries, while a smaller
|
||||
* cache size can reduce memory usage.
|
||||
*
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* const prisma = new PrismaClient({
|
||||
@@ -6565,13 +6570,13 @@ export interface PrismaClientBaseOptions {
|
||||
|
||||
/**
|
||||
* `PrismaClient` options for connecting to your database through Prisma Accelerate instead of a driver adapter.
|
||||
*
|
||||
*
|
||||
* Learn more: https://pris.ly/d/accelerate
|
||||
*/
|
||||
export interface PrismaClientOptionsWithAccelerateUrl extends PrismaClientBaseOptions {
|
||||
/**
|
||||
* The Prisma Accelerate connection URL. Use this option to connect to your database through Prisma Accelerate instead of using a driver adapter to connect directly.
|
||||
*
|
||||
*
|
||||
* Learn more: https://pris.ly/d/accelerate
|
||||
*/
|
||||
accelerateUrl: string
|
||||
@@ -6580,22 +6585,22 @@ export interface PrismaClientOptionsWithAccelerateUrl extends PrismaClientBaseOp
|
||||
|
||||
/**
|
||||
* `PrismaClient` options for connecting to your database through a driver adapter. This is the common case in Prisma 7.
|
||||
*
|
||||
*
|
||||
* Learn more: https://pris.ly/d/driver-adapters
|
||||
*/
|
||||
export interface PrismaClientOptionsWithAdapter extends PrismaClientBaseOptions {
|
||||
/**
|
||||
* A driver adapter that PrismaClient uses to connect to your database, such as the ones provided by `@prisma/adapter-pg`, `@prisma/adapter-libsql`, `@prisma/adapter-planetscale`, etc.
|
||||
*
|
||||
*
|
||||
* A driver adapter is **required** unless you connect to your database through Prisma Accelerate (in which case use `accelerateUrl` instead).
|
||||
*
|
||||
*
|
||||
* Learn more: https://pris.ly/d/driver-adapters
|
||||
*
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* import { PrismaPg } from '@prisma/adapter-pg'
|
||||
* import { PrismaClient } from './generated/prisma/client'
|
||||
*
|
||||
*
|
||||
* const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
||||
* const prisma = new PrismaClient({ adapter })
|
||||
* ```
|
||||
@@ -6606,9 +6611,9 @@ export interface PrismaClientOptionsWithAdapter extends PrismaClientBaseOptions
|
||||
|
||||
/**
|
||||
* Options passed to the `PrismaClient` constructor.
|
||||
*
|
||||
*
|
||||
* A driver adapter (or, alternatively, a Prisma Accelerate URL) is **required**. See {@link PrismaClientOptionsWithAdapter} and {@link PrismaClientOptionsWithAccelerateUrl} for the two variants. All other properties live in {@link PrismaClientBaseOptions} and are optional.
|
||||
*
|
||||
*
|
||||
* Learn more about driver adapters: https://pris.ly/d/driver-adapters
|
||||
*/
|
||||
export type PrismaClientOptions = PrismaClientOptionsWithAccelerateUrl | PrismaClientOptionsWithAdapter
|
||||
@@ -6619,7 +6624,7 @@ export type GlobalOmitConfig = {
|
||||
verification?: Prisma.VerificationOmit
|
||||
authToken?: Prisma.AuthTokenOmit
|
||||
team?: Prisma.TeamOmit
|
||||
sandbox?: Prisma.SandboxOmit
|
||||
runner?: Prisma.RunnerOmit
|
||||
skill?: Prisma.SkillOmit
|
||||
teamMember?: Prisma.TeamMemberOmit
|
||||
project?: Prisma.ProjectOmit
|
||||
|
||||
Reference in New Issue
Block a user