Files
shumai/packages/db/src/generated/prisma/internal/prismaNamespaceBrowser.ts
T
Yiling-J 35a0e82284 refactor(agent)!: migrate to Pi Durable and embed the agent queue (#525)
* refactor(agent)!: migrate sessions to Pi Durable

Replace patched AgentHarness storage with per-session SQLite and PostgreSQL commit mirroring. Migrate legacy history automatically and run agent queues with the main server.

BREAKING CHANGE: Remove standalone agent workers and return native Pi entry records from chat history APIs.

* fix(agent): constrain session log dialog scrolling

Keep the header visible and wrap long output while log entries and expanded records scroll within the dialog. Cover desktop and narrow viewports through the dashboard Sessions flow.

* fix(agent): hide entry IDs from session log card headers

Retain internal entry IDs in expanded raw records for debugging. Verify that card headers omit the IDs while raw JSON preserves them.

* test(e2e): handle browser wheel limits in session log checks

Verify that a normal wheel event moves the viewport before explicitly scrolling to the final record. Keep the dialog bounds, fixed header, wrapping, and expanded-record assertions.

* fix(agent): select model providers without inheriting unrelated auth

* fix(webui): prevent resize feedback when toggling agent panel

* test(agent): reproduce concurrent comment session races

* fix(agent): serialize comment sessions and deduplicate history

* docs(changelog): consolidate Pi Durable changes into one entry
2026-11-11 16:05:18 +08:00

1104 lines
29 KiB
TypeScript
Generated

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* WARNING: This is an internal file that is subject to change!
*
* 🛑 Under no circumstances should you import this file directly! 🛑
*
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
* While this enables partial backward compatibility, it is not part of the stable public API.
*
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
* model files in the `model` directory!
*/
import * as runtime from "@prisma/client/runtime/index-browser"
export type * from '../models.ts'
export type * from './prismaNamespace.ts'
export const Decimal = runtime.Decimal
export const NullTypes = {
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull = runtime.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull = runtime.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull = runtime.AnyNull
export const ModelName = {
User: 'User',
Session: 'Session',
Account: 'Account',
Verification: 'Verification',
AuthToken: 'AuthToken',
Team: 'Team',
Sandbox: 'Sandbox',
Skill: 'Skill',
TeamMember: 'TeamMember',
Project: 'Project',
ProjectMember: 'ProjectMember',
ShareLink: 'ShareLink',
WatermarkConfig: 'WatermarkConfig',
WatermarkTemplate: 'WatermarkTemplate',
WatermarkFile: 'WatermarkFile',
Asset: 'Asset',
StorageKey: 'StorageKey',
AssetMetadataValue: 'AssetMetadataValue',
AssetAgentMd: 'AssetAgentMd',
AssetComment: 'AssetComment',
AssetCommentAttachment: 'AssetCommentAttachment',
AssetCommentReaction: 'AssetCommentReaction',
AssetEmbedding: 'AssetEmbedding',
Invite: 'Invite',
MetadataField: 'MetadataField',
Notification: 'Notification',
SystemSettings: 'SystemSettings',
Task: 'Task',
WorkflowTask: 'WorkflowTask',
Agent: 'Agent',
AgentSkill: 'AgentSkill',
McpServer: 'McpServer',
AgentMcpServer: 'AgentMcpServer',
McpServerCredential: 'McpServerCredential',
AgentSession: 'AgentSession',
AgentSessionCommit: 'AgentSessionCommit',
AgentSessionEntry: 'AgentSessionEntry',
UserMetadata: 'UserMetadata',
Model: 'Model',
Provider: 'Provider',
Collection: 'Collection',
ApiToken: 'ApiToken',
AiUsage: 'AiUsage',
AuditLog: 'AuditLog',
QuotaRule: 'QuotaRule',
QuotaRecord: 'QuotaRecord',
KanbanGoal: 'KanbanGoal',
KanbanTask: 'KanbanTask',
KanbanTaskLink: 'KanbanTaskLink',
KanbanTaskAsset: 'KanbanTaskAsset',
KanbanTaskComment: 'KanbanTaskComment',
KanbanTaskEvent: 'KanbanTaskEvent',
RecentFileItem: 'RecentFileItem',
Jwks: 'Jwks',
OauthClient: 'OauthClient',
OauthResource: 'OauthResource',
OauthClientResource: 'OauthClientResource',
OauthRefreshToken: 'OauthRefreshToken',
OauthAccessToken: 'OauthAccessToken',
OauthConsent: 'OauthConsent',
OauthClientAssertion: 'OauthClientAssertion'
} as const
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
/*
* Enums
*/
export const TransactionIsolationLevel = runtime.makeStrictEnum({
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
} as const)
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const UserScalarFieldEnum = {
id: 'id',
type: 'type',
name: 'name',
email: 'email',
emailVerified: 'emailVerified',
image: 'image',
password: 'password',
agentSettings: 'agentSettings',
guestEmail: 'guestEmail',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
export const SessionScalarFieldEnum = {
id: 'id',
expiresAt: 'expiresAt',
token: 'token',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
ipAddress: 'ipAddress',
userAgent: 'userAgent',
userId: 'userId'
} as const
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
export const AccountScalarFieldEnum = {
id: 'id',
accountId: 'accountId',
providerId: 'providerId',
userId: 'userId',
accessToken: 'accessToken',
refreshToken: 'refreshToken',
idToken: 'idToken',
accessTokenExpiresAt: 'accessTokenExpiresAt',
refreshTokenExpiresAt: 'refreshTokenExpiresAt',
scope: 'scope',
password: 'password',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
export const VerificationScalarFieldEnum = {
id: 'id',
identifier: 'identifier',
value: 'value',
expiresAt: 'expiresAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum]
export const AuthTokenScalarFieldEnum = {
id: 'id',
accessToken: 'accessToken',
refreshToken: 'refreshToken',
accessTokenExpiresAt: 'accessTokenExpiresAt',
refreshTokenExpiresAt: 'refreshTokenExpiresAt',
userId: 'userId'
} as const
export type AuthTokenScalarFieldEnum = (typeof AuthTokenScalarFieldEnum)[keyof typeof AuthTokenScalarFieldEnum]
export const TeamScalarFieldEnum = {
id: 'id',
name: 'name',
settings: 'settings',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
rootFolderId: 'rootFolderId'
} as const
export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum]
export const SandboxScalarFieldEnum = {
id: 'id',
networkSandboxEnabled: 'networkSandboxEnabled',
allowedDomains: 'allowedDomains',
pendingDomains: 'pendingDomains',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
teamId: 'teamId'
} as const
export type SandboxScalarFieldEnum = (typeof SandboxScalarFieldEnum)[keyof typeof SandboxScalarFieldEnum]
export const SkillScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
config: 'config',
assetId: 'assetId',
hash: 'hash',
permission: 'permission',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
teamId: 'teamId'
} as const
export type SkillScalarFieldEnum = (typeof SkillScalarFieldEnum)[keyof typeof SkillScalarFieldEnum]
export const TeamMemberScalarFieldEnum = {
id: 'id',
role: 'role',
scope: 'scope',
teamId: 'teamId',
userId: 'userId',
lastReadNotificationId: 'lastReadNotificationId'
} as const
export type TeamMemberScalarFieldEnum = (typeof TeamMemberScalarFieldEnum)[keyof typeof TeamMemberScalarFieldEnum]
export const ProjectScalarFieldEnum = {
id: 'id',
name: 'name',
coverImageKey: 'coverImageKey',
hasJpegCover: 'hasJpegCover',
metadataOverrides: 'metadataOverrides',
enableNotification: 'enableNotification',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
teamId: 'teamId',
rootFolderId: 'rootFolderId',
shareRootId: 'shareRootId'
} as const
export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]
export const ProjectMemberScalarFieldEnum = {
id: 'id',
role: 'role',
projectId: 'projectId',
teamMemberId: 'teamMemberId'
} as const
export type ProjectMemberScalarFieldEnum = (typeof ProjectMemberScalarFieldEnum)[keyof typeof ProjectMemberScalarFieldEnum]
export const ShareLinkScalarFieldEnum = {
id: 'id',
name: 'name',
expireAt: 'expireAt',
password: 'password',
isDisabled: 'isDisabled',
allowDownload: 'allowDownload',
defaultSortOrder: 'defaultSortOrder',
viewMode: 'viewMode',
fieldVisibility: 'fieldVisibility',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
projectId: 'projectId',
rootFolderId: 'rootFolderId',
creatorId: 'creatorId',
watermarkConfigId: 'watermarkConfigId',
watermarkStatus: 'watermarkStatus'
} as const
export type ShareLinkScalarFieldEnum = (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum]
export const WatermarkConfigScalarFieldEnum = {
id: 'id',
config: 'config',
hash: 'hash',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type WatermarkConfigScalarFieldEnum = (typeof WatermarkConfigScalarFieldEnum)[keyof typeof WatermarkConfigScalarFieldEnum]
export const WatermarkTemplateScalarFieldEnum = {
id: 'id',
name: 'name',
config: 'config',
teamId: 'teamId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type WatermarkTemplateScalarFieldEnum = (typeof WatermarkTemplateScalarFieldEnum)[keyof typeof WatermarkTemplateScalarFieldEnum]
export const WatermarkFileScalarFieldEnum = {
id: 'id',
assetId: 'assetId',
watermarkConfigId: 'watermarkConfigId',
media: 'media',
status: 'status',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type WatermarkFileScalarFieldEnum = (typeof WatermarkFileScalarFieldEnum)[keyof typeof WatermarkFileScalarFieldEnum]
export const AssetScalarFieldEnum = {
id: 'id',
name: 'name',
nameNgram: 'nameNgram',
type: 'type',
mediaType: 'mediaType',
fileCount: 'fileCount',
sizeByte: 'sizeByte',
status: 'status',
transcodeTaskId: 'transcodeTaskId',
uploadId: 'uploadId',
media: 'media',
hasJpegPreview: 'hasJpegPreview',
isDeleted: 'isDeleted',
deletedAt: 'deletedAt',
sortIndex: 'sortIndex',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
parentId: 'parentId',
targetId: 'targetId',
storageKeyId: 'storageKeyId',
creatorId: 'creatorId',
agentId: 'agentId',
taskId: 'taskId',
projectId: 'projectId'
} as const
export type AssetScalarFieldEnum = (typeof AssetScalarFieldEnum)[keyof typeof AssetScalarFieldEnum]
export const StorageKeyScalarFieldEnum = {
id: 'id',
key: 'key',
status: 'status',
isArchived: 'isArchived',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type StorageKeyScalarFieldEnum = (typeof StorageKeyScalarFieldEnum)[keyof typeof StorageKeyScalarFieldEnum]
export const AssetMetadataValueScalarFieldEnum = {
id: 'id',
assetId: 'assetId',
fieldKey: 'fieldKey',
stringValue: 'stringValue',
numberValue: 'numberValue',
booleanValue: 'booleanValue',
jsonValue: 'jsonValue',
dateValue: 'dateValue'
} as const
export type AssetMetadataValueScalarFieldEnum = (typeof AssetMetadataValueScalarFieldEnum)[keyof typeof AssetMetadataValueScalarFieldEnum]
export const AssetAgentMdScalarFieldEnum = {
assetId: 'assetId',
content: 'content',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type AssetAgentMdScalarFieldEnum = (typeof AssetAgentMdScalarFieldEnum)[keyof typeof AssetAgentMdScalarFieldEnum]
export const AssetCommentScalarFieldEnum = {
id: 'id',
message: 'message',
annotation: 'annotation',
second: 'second',
sessionId: 'sessionId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
assetId: 'assetId',
creatorId: 'creatorId',
isCompleted: 'isCompleted',
completionLastChangedById: 'completionLastChangedById',
replyToId: 'replyToId'
} as const
export type AssetCommentScalarFieldEnum = (typeof AssetCommentScalarFieldEnum)[keyof typeof AssetCommentScalarFieldEnum]
export const AssetCommentAttachmentScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
commentId: 'commentId',
assetId: 'assetId'
} as const
export type AssetCommentAttachmentScalarFieldEnum = (typeof AssetCommentAttachmentScalarFieldEnum)[keyof typeof AssetCommentAttachmentScalarFieldEnum]
export const AssetCommentReactionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
commentId: 'commentId',
userId: 'userId',
code: 'code'
} as const
export type AssetCommentReactionScalarFieldEnum = (typeof AssetCommentReactionScalarFieldEnum)[keyof typeof AssetCommentReactionScalarFieldEnum]
export const AssetEmbeddingScalarFieldEnum = {
id: 'id',
startTime: 'startTime',
endTime: 'endTime',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
assetId: 'assetId'
} as const
export type AssetEmbeddingScalarFieldEnum = (typeof AssetEmbeddingScalarFieldEnum)[keyof typeof AssetEmbeddingScalarFieldEnum]
export const InviteScalarFieldEnum = {
id: 'id',
code: 'code',
role: 'role',
used: 'used',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
teamId: 'teamId',
projectId: 'projectId',
inviterId: 'inviterId'
} as const
export type InviteScalarFieldEnum = (typeof InviteScalarFieldEnum)[keyof typeof InviteScalarFieldEnum]
export const MetadataFieldScalarFieldEnum = {
id: 'id',
key: 'key',
scope: 'scope',
config: 'config',
readOnly: 'readOnly',
description: 'description',
teamId: 'teamId',
projectId: 'projectId'
} as const
export type MetadataFieldScalarFieldEnum = (typeof MetadataFieldScalarFieldEnum)[keyof typeof MetadataFieldScalarFieldEnum]
export const NotificationScalarFieldEnum = {
id: 'id',
type: 'type',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
teamId: 'teamId',
projectId: 'projectId',
creatorId: 'creatorId',
assetId: 'assetId',
taskId: 'taskId',
kanbanTaskId: 'kanbanTaskId',
userId: 'userId',
emailStatus: 'emailStatus'
} as const
export type NotificationScalarFieldEnum = (typeof NotificationScalarFieldEnum)[keyof typeof NotificationScalarFieldEnum]
export const SystemSettingsScalarFieldEnum = {
id: 'id',
key: 'key',
value: 'value',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type SystemSettingsScalarFieldEnum = (typeof SystemSettingsScalarFieldEnum)[keyof typeof SystemSettingsScalarFieldEnum]
export const TaskScalarFieldEnum = {
id: 'id',
type: 'type',
status: 'status',
name: 'name',
total: 'total',
uploaded: 'uploaded',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
creatorId: 'creatorId'
} as const
export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum]
export const WorkflowTaskScalarFieldEnum = {
id: 'id',
uid: 'uid',
teamId: 'teamId',
projectId: 'projectId',
assetId: 'assetId',
type: 'type',
status: 'status',
payload: 'payload',
output: 'output',
heartbeat: 'heartbeat',
inputTokens: 'inputTokens',
outputTokens: 'outputTokens',
model: 'model',
sessionId: 'sessionId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type WorkflowTaskScalarFieldEnum = (typeof WorkflowTaskScalarFieldEnum)[keyof typeof WorkflowTaskScalarFieldEnum]
export const AgentScalarFieldEnum = {
id: 'id',
type: 'type',
enabled: 'enabled',
permission: 'permission',
soul: 'soul',
providerId: 'providerId',
modelId: 'modelId',
teamId: 'teamId',
config: 'config',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type AgentScalarFieldEnum = (typeof AgentScalarFieldEnum)[keyof typeof AgentScalarFieldEnum]
export const AgentSkillScalarFieldEnum = {
id: 'id',
agentId: 'agentId',
skillId: 'skillId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type AgentSkillScalarFieldEnum = (typeof AgentSkillScalarFieldEnum)[keyof typeof AgentSkillScalarFieldEnum]
export const McpServerScalarFieldEnum = {
id: 'id',
name: 'name',
description: 'description',
instructions: 'instructions',
url: 'url',
transport: 'transport',
authConfig: 'authConfig',
config: 'config',
permission: 'permission',
tools: 'tools',
status: 'status',
lastError: 'lastError',
lastConnectedAt: 'lastConnectedAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
teamId: 'teamId'
} as const
export type McpServerScalarFieldEnum = (typeof McpServerScalarFieldEnum)[keyof typeof McpServerScalarFieldEnum]
export const AgentMcpServerScalarFieldEnum = {
id: 'id',
agentId: 'agentId',
mcpServerId: 'mcpServerId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type AgentMcpServerScalarFieldEnum = (typeof AgentMcpServerScalarFieldEnum)[keyof typeof AgentMcpServerScalarFieldEnum]
export const McpServerCredentialScalarFieldEnum = {
id: 'id',
serverId: 'serverId',
serverUrl: 'serverUrl',
tokens: 'tokens',
clientInfo: 'clientInfo',
codeVerifier: 'codeVerifier',
oauthState: 'oauthState',
pendingAuth: 'pendingAuth',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type McpServerCredentialScalarFieldEnum = (typeof McpServerCredentialScalarFieldEnum)[keyof typeof McpServerCredentialScalarFieldEnum]
export const AgentSessionScalarFieldEnum = {
id: 'id',
agentId: 'agentId',
userId: 'userId',
cwd: 'cwd',
leafId: 'leafId',
assetId: 'assetId',
userCommentId: 'userCommentId',
type: 'type',
name: 'name',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
writerVersion: 'writerVersion',
accountedUsage: 'accountedUsage'
} as const
export type AgentSessionScalarFieldEnum = (typeof AgentSessionScalarFieldEnum)[keyof typeof AgentSessionScalarFieldEnum]
export const AgentSessionCommitScalarFieldEnum = {
id: 'id',
sessionId: 'sessionId',
seq: 'seq',
data: 'data'
} as const
export type AgentSessionCommitScalarFieldEnum = (typeof AgentSessionCommitScalarFieldEnum)[keyof typeof AgentSessionCommitScalarFieldEnum]
export const AgentSessionEntryScalarFieldEnum = {
id: 'id',
sessionId: 'sessionId',
assetId: 'assetId',
type: 'type',
parentId: 'parentId',
data: 'data',
createdAt: 'createdAt'
} as const
export type AgentSessionEntryScalarFieldEnum = (typeof AgentSessionEntryScalarFieldEnum)[keyof typeof AgentSessionEntryScalarFieldEnum]
export const UserMetadataScalarFieldEnum = {
id: 'id',
key: 'key',
value: 'value',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
userId: 'userId',
teamId: 'teamId'
} as const
export type UserMetadataScalarFieldEnum = (typeof UserMetadataScalarFieldEnum)[keyof typeof UserMetadataScalarFieldEnum]
export const ModelScalarFieldEnum = {
id: 'id',
modelId: 'modelId',
name: 'name',
config: 'config',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
providerId: 'providerId'
} as const
export type ModelScalarFieldEnum = (typeof ModelScalarFieldEnum)[keyof typeof ModelScalarFieldEnum]
export const ProviderScalarFieldEnum = {
id: 'id',
name: 'name',
isBuiltin: 'isBuiltin',
config: 'config',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
teamId: 'teamId'
} as const
export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
export const CollectionScalarFieldEnum = {
id: 'id',
name: 'name',
filter: 'filter',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
projectId: 'projectId',
creatorId: 'creatorId'
} as const
export type CollectionScalarFieldEnum = (typeof CollectionScalarFieldEnum)[keyof typeof CollectionScalarFieldEnum]
export const ApiTokenScalarFieldEnum = {
id: 'id',
tokenHash: 'tokenHash',
tokenHint: 'tokenHint',
name: 'name',
userId: 'userId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type ApiTokenScalarFieldEnum = (typeof ApiTokenScalarFieldEnum)[keyof typeof ApiTokenScalarFieldEnum]
export const AiUsageScalarFieldEnum = {
id: 'id',
teamId: 'teamId',
userId: 'userId',
periodStart: 'periodStart',
inputTokens: 'inputTokens',
outputTokens: 'outputTokens',
cacheReadTokens: 'cacheReadTokens',
totalTokens: 'totalTokens',
cost: 'cost',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type AiUsageScalarFieldEnum = (typeof AiUsageScalarFieldEnum)[keyof typeof AiUsageScalarFieldEnum]
export const AuditLogScalarFieldEnum = {
id: 'id',
action: 'action',
teamId: 'teamId',
userId: 'userId',
agentId: 'agentId',
projectId: 'projectId',
itemId: 'itemId',
via: 'via',
createdAt: 'createdAt'
} as const
export type AuditLogScalarFieldEnum = (typeof AuditLogScalarFieldEnum)[keyof typeof AuditLogScalarFieldEnum]
export const QuotaRuleScalarFieldEnum = {
id: 'id',
teamId: 'teamId',
scopeMode: 'scopeMode',
role: 'role',
userIds: 'userIds',
resource: 'resource',
resourceData: 'resourceData',
limit: 'limit',
period: 'period',
enabled: 'enabled',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type QuotaRuleScalarFieldEnum = (typeof QuotaRuleScalarFieldEnum)[keyof typeof QuotaRuleScalarFieldEnum]
export const QuotaRecordScalarFieldEnum = {
id: 'id',
ruleId: 'ruleId',
teamId: 'teamId',
userId: 'userId',
periodStart: 'periodStart',
periodEnd: 'periodEnd',
consumed: 'consumed',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type QuotaRecordScalarFieldEnum = (typeof QuotaRecordScalarFieldEnum)[keyof typeof QuotaRecordScalarFieldEnum]
export const KanbanGoalScalarFieldEnum = {
id: 'id',
title: 'title',
description: 'description',
teamId: 'teamId',
creatorId: 'creatorId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type KanbanGoalScalarFieldEnum = (typeof KanbanGoalScalarFieldEnum)[keyof typeof KanbanGoalScalarFieldEnum]
export const KanbanTaskScalarFieldEnum = {
id: 'id',
title: 'title',
description: 'description',
isAgentTask: 'isAgentTask',
status: 'status',
priority: 'priority',
startDate: 'startDate',
dueDate: 'dueDate',
startedAt: 'startedAt',
completedAt: 'completedAt',
goalId: 'goalId',
teamId: 'teamId',
projectId: 'projectId',
creatorId: 'creatorId',
reporterId: 'reporterId',
assigneeId: 'assigneeId',
targetFolderId: 'targetFolderId',
sortIndex: 'sortIndex',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type KanbanTaskScalarFieldEnum = (typeof KanbanTaskScalarFieldEnum)[keyof typeof KanbanTaskScalarFieldEnum]
export const KanbanTaskLinkScalarFieldEnum = {
parentId: 'parentId',
childId: 'childId',
createdAt: 'createdAt'
} as const
export type KanbanTaskLinkScalarFieldEnum = (typeof KanbanTaskLinkScalarFieldEnum)[keyof typeof KanbanTaskLinkScalarFieldEnum]
export const KanbanTaskAssetScalarFieldEnum = {
taskId: 'taskId',
assetId: 'assetId',
createdAt: 'createdAt'
} as const
export type KanbanTaskAssetScalarFieldEnum = (typeof KanbanTaskAssetScalarFieldEnum)[keyof typeof KanbanTaskAssetScalarFieldEnum]
export const KanbanTaskCommentScalarFieldEnum = {
id: 'id',
taskId: 'taskId',
authorId: 'authorId',
body: 'body',
attachments: 'attachments',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type KanbanTaskCommentScalarFieldEnum = (typeof KanbanTaskCommentScalarFieldEnum)[keyof typeof KanbanTaskCommentScalarFieldEnum]
export const KanbanTaskEventScalarFieldEnum = {
id: 'id',
taskId: 'taskId',
actorId: 'actorId',
type: 'type',
fromStatus: 'fromStatus',
toStatus: 'toStatus',
data: 'data',
createdAt: 'createdAt'
} as const
export type KanbanTaskEventScalarFieldEnum = (typeof KanbanTaskEventScalarFieldEnum)[keyof typeof KanbanTaskEventScalarFieldEnum]
export const RecentFileItemScalarFieldEnum = {
id: 'id',
userId: 'userId',
projectId: 'projectId',
assetId: 'assetId',
viewedAt: 'viewedAt'
} as const
export type RecentFileItemScalarFieldEnum = (typeof RecentFileItemScalarFieldEnum)[keyof typeof RecentFileItemScalarFieldEnum]
export const JwksScalarFieldEnum = {
id: 'id',
publicKey: 'publicKey',
privateKey: 'privateKey',
createdAt: 'createdAt',
expiresAt: 'expiresAt',
alg: 'alg',
crv: 'crv'
} as const
export type JwksScalarFieldEnum = (typeof JwksScalarFieldEnum)[keyof typeof JwksScalarFieldEnum]
export const OauthClientScalarFieldEnum = {
id: 'id',
clientId: 'clientId',
clientSecret: 'clientSecret',
clientDiscoveryId: 'clientDiscoveryId',
disabled: 'disabled',
skipConsent: 'skipConsent',
enableEndSession: 'enableEndSession',
subjectType: 'subjectType',
scopes: 'scopes',
clientCredentialsScopes: 'clientCredentialsScopes',
userId: 'userId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
name: 'name',
uri: 'uri',
icon: 'icon',
contacts: 'contacts',
tos: 'tos',
policy: 'policy',
softwareId: 'softwareId',
softwareVersion: 'softwareVersion',
softwareStatement: 'softwareStatement',
redirectUris: 'redirectUris',
postLogoutRedirectUris: 'postLogoutRedirectUris',
backchannelLogoutUri: 'backchannelLogoutUri',
backchannelLogoutSessionRequired: 'backchannelLogoutSessionRequired',
tokenEndpointAuthMethod: 'tokenEndpointAuthMethod',
applicationType: 'applicationType',
jwks: 'jwks',
jwksUri: 'jwksUri',
grantTypes: 'grantTypes',
responseTypes: 'responseTypes',
requirePKCE: 'requirePKCE',
dpopBoundAccessTokens: 'dpopBoundAccessTokens',
referenceId: 'referenceId',
metadata: 'metadata'
} as const
export type OauthClientScalarFieldEnum = (typeof OauthClientScalarFieldEnum)[keyof typeof OauthClientScalarFieldEnum]
export const OauthResourceScalarFieldEnum = {
id: 'id',
identifier: 'identifier',
name: 'name',
accessTokenTtl: 'accessTokenTtl',
refreshTokenTtl: 'refreshTokenTtl',
signingAlgorithm: 'signingAlgorithm',
signingKeyId: 'signingKeyId',
allowedScopes: 'allowedScopes',
customClaims: 'customClaims',
dpopBoundAccessTokensRequired: 'dpopBoundAccessTokensRequired',
disabled: 'disabled',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
policyVersion: 'policyVersion',
metadata: 'metadata'
} as const
export type OauthResourceScalarFieldEnum = (typeof OauthResourceScalarFieldEnum)[keyof typeof OauthResourceScalarFieldEnum]
export const OauthClientResourceScalarFieldEnum = {
id: 'id',
clientId: 'clientId',
resourceId: 'resourceId',
metadata: 'metadata',
createdAt: 'createdAt'
} as const
export type OauthClientResourceScalarFieldEnum = (typeof OauthClientResourceScalarFieldEnum)[keyof typeof OauthClientResourceScalarFieldEnum]
export const OauthRefreshTokenScalarFieldEnum = {
id: 'id',
token: 'token',
clientId: 'clientId',
sessionId: 'sessionId',
userId: 'userId',
referenceId: 'referenceId',
authorizationCodeId: 'authorizationCodeId',
resources: 'resources',
requestedUserInfoClaims: 'requestedUserInfoClaims',
expiresAt: 'expiresAt',
createdAt: 'createdAt',
revoked: 'revoked',
rotatedAt: 'rotatedAt',
rotationReplayResponse: 'rotationReplayResponse',
rotationReplayExpiresAt: 'rotationReplayExpiresAt',
authTime: 'authTime',
confirmation: 'confirmation',
scopes: 'scopes'
} as const
export type OauthRefreshTokenScalarFieldEnum = (typeof OauthRefreshTokenScalarFieldEnum)[keyof typeof OauthRefreshTokenScalarFieldEnum]
export const OauthAccessTokenScalarFieldEnum = {
id: 'id',
token: 'token',
clientId: 'clientId',
sessionId: 'sessionId',
userId: 'userId',
referenceId: 'referenceId',
authorizationCodeId: 'authorizationCodeId',
resources: 'resources',
requestedUserInfoClaims: 'requestedUserInfoClaims',
refreshId: 'refreshId',
expiresAt: 'expiresAt',
createdAt: 'createdAt',
revoked: 'revoked',
confirmation: 'confirmation',
scopes: 'scopes'
} as const
export type OauthAccessTokenScalarFieldEnum = (typeof OauthAccessTokenScalarFieldEnum)[keyof typeof OauthAccessTokenScalarFieldEnum]
export const OauthConsentScalarFieldEnum = {
id: 'id',
clientId: 'clientId',
userId: 'userId',
referenceId: 'referenceId',
resources: 'resources',
requestedUserInfoClaims: 'requestedUserInfoClaims',
scopes: 'scopes',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type OauthConsentScalarFieldEnum = (typeof OauthConsentScalarFieldEnum)[keyof typeof OauthConsentScalarFieldEnum]
export const OauthClientAssertionScalarFieldEnum = {
id: 'id',
expiresAt: 'expiresAt'
} as const
export type OauthClientAssertionScalarFieldEnum = (typeof OauthClientAssertionScalarFieldEnum)[keyof typeof OauthClientAssertionScalarFieldEnum]
export const SortOrder = {
asc: 'asc',
desc: 'desc'
} as const
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const NullableJsonNullValueInput = {
DbNull: DbNull,
JsonNull: JsonNull
} as const
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
export const JsonNullValueInput = {
JsonNull: JsonNull
} as const
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
export const QueryMode = {
default: 'default',
insensitive: 'insensitive'
} as const
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const JsonNullValueFilter = {
DbNull: DbNull,
JsonNull: JsonNull,
AnyNull: AnyNull
} as const
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
export const NullsOrder = {
first: 'first',
last: 'last'
} as const
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]