
/* !!! 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'
export type * from './prismaNamespace'

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',
  ApiKey: 'ApiKey',
  AuthSettings: 'AuthSettings',
  CliHealthSettings: 'CliHealthSettings',
  Agent: 'Agent',
  AgentEnrollmentToken: 'AgentEnrollmentToken',
  IosDevice: 'IosDevice',
  IosDeviceEnrollment: 'IosDeviceEnrollment',
  IosDeviceIpObservation: 'IosDeviceIpObservation',
  IosDeviceSettings: 'IosDeviceSettings',
  AgentJob: 'AgentJob',
  TailscaleServeTemplate: 'TailscaleServeTemplate',
  TailscaleServeAssignment: 'TailscaleServeAssignment',
  TailscaleAgentState: 'TailscaleAgentState',
  TailscaleServeOperation: 'TailscaleServeOperation',
  TailscaleServeOperationAgent: 'TailscaleServeOperationAgent',
  CodebaseRepository: 'CodebaseRepository',
  CodebaseRepositoryPreparation: 'CodebaseRepositoryPreparation',
  App: 'App',
  AppRepository: 'AppRepository',
  Codebase: 'Codebase',
  CodebaseSettings: 'CodebaseSettings',
  Worktree: 'Worktree',
  WorktreePreparationStatus: 'WorktreePreparationStatus',
  WorktreePullRequest: 'WorktreePullRequest',
  WorktreeGitLabMergeRequest: 'WorktreeGitLabMergeRequest',
  GitHubPipelineSnapshot: 'GitHubPipelineSnapshot',
  GitHubPipelineRecord: 'GitHubPipelineRecord',
  WorktreeAutoSync: 'WorktreeAutoSync',
  WorktreeAutoMerge: 'WorktreeAutoMerge',
  AgentRun: 'AgentRun',
  RunAttempt: 'RunAttempt',
  RunInput: 'RunInput',
  RunDraft: 'RunDraft',
  RunAttachment: 'RunAttachment',
  RunEvent: 'RunEvent',
  RunToolCall: 'RunToolCall',
  RunModelUsage: 'RunModelUsage',
  ModelCostSettings: 'ModelCostSettings',
  ModelCostEntry: 'ModelCostEntry',
  RunQuestionBatch: 'RunQuestionBatch',
  RunQuestion: 'RunQuestion',
  RunQuestionOption: 'RunQuestionOption',
  RunAnswerRevision: 'RunAnswerRevision',
  RunCheckpoint: 'RunCheckpoint',
  RunCommand: 'RunCommand',
  RunNumberSequence: 'RunNumberSequence',
  WorktreeRunLease: 'WorktreeRunLease',
  WorktreeRunConcurrencyLane: 'WorktreeRunConcurrencyLane',
  WorktreeAdmissionLane: 'WorktreeAdmissionLane',
  WorktreeWorkflowLease: 'WorktreeWorkflowLease',
  RunProviderSync: 'RunProviderSync',
  AppNotification: 'AppNotification',
  NotificationPreference: 'NotificationPreference',
  NotificationDevice: 'NotificationDevice',
  WebPushSettings: 'WebPushSettings',
  WebPushSubscription: 'WebPushSubscription',
  Skill: 'Skill',
  SkillFile: 'SkillFile',
  SkillGroup: 'SkillGroup',
  SkillGroupSkill: 'SkillGroupSkill',
  CodebaseRepositorySkillGroup: 'CodebaseRepositorySkillGroup',
  SkillSettings: 'SkillSettings',
  SkillToolObservation: 'SkillToolObservation',
  SkillInstallation: 'SkillInstallation',
  SkillSyncBaseline: 'SkillSyncBaseline',
  SkillDeployment: 'SkillDeployment',
  SkillSyncRun: 'SkillSyncRun',
  SkillSyncItem: 'SkillSyncItem',
  CodebaseProject: 'CodebaseProject',
  BuildSource: 'BuildSource',
  BuildSourceObservation: 'BuildSourceObservation',
  BuildConfiguration: 'BuildConfiguration',
  BuildScript: 'BuildScript',
  CodebaseRepositoryBuildScript: 'CodebaseRepositoryBuildScript',
  Build: 'Build',
  BuildArtifact: 'BuildArtifact',
  BuildReport: 'BuildReport',
  BuildScriptExecution: 'BuildScriptExecution',
  BuildLogChunk: 'BuildLogChunk',
  TelemetryEntry: 'TelemetryEntry',
  TelemetrySettings: 'TelemetrySettings',
  TelemetryViewSettings: 'TelemetryViewSettings',
  TelemetryColumnPreset: 'TelemetryColumnPreset',
  TelemetrySavedFilter: 'TelemetrySavedFilter',
  BuildDeployment: 'BuildDeployment',
  BuildExport: 'BuildExport',
  BuildDataCollection: 'BuildDataCollection',
  BuildDataCollectionAgent: 'BuildDataCollectionAgent',
  BuildDataDeletionHistory: 'BuildDataDeletionHistory',
  DiskSpaceSettings: 'DiskSpaceSettings',
  AgentDiskSpaceState: 'AgentDiskSpaceState',
  DerivedDataLock: 'DerivedDataLock',
  DerivedDataCleanupLease: 'DerivedDataCleanupLease',
  SidebarUsageSummary: 'SidebarUsageSummary',
  ActionCenterAcknowledgement: 'ActionCenterAcknowledgement',
  SigningProfileAsset: 'SigningProfileAsset',
  SigningCertificateAsset: 'SigningCertificateAsset',
  SigningOperation: 'SigningOperation',
  SigningOperationItem: 'SigningOperationItem',
  PushNotificationSettings: 'PushNotificationSettings',
  ApnsCertificateCredential: 'ApnsCertificateCredential',
  ApnsRegistration: 'ApnsRegistration',
  ApnsBroadcastChannel: 'ApnsBroadcastChannel',
  PushNotificationPreset: 'PushNotificationPreset',
  PushNotificationBatch: 'PushNotificationBatch',
  PushNotificationDelivery: 'PushNotificationDelivery',
  ApnsPushRecipientSecret: 'ApnsPushRecipientSecret',
  BuildDataDeleteProjection: 'BuildDataDeleteProjection',
  WorktreeMove: 'WorktreeMove',
  WorktreeTag: 'WorktreeTag',
  WorktreeTagAssignment: 'WorktreeTagAssignment',
  WorktreeSettings: 'WorktreeSettings',
  ExternalMcpServer: 'ExternalMcpServer',
  ExternalMcpServerHeader: 'ExternalMcpServerHeader',
  McpToolPreset: 'McpToolPreset',
  McpToolPresetTool: 'McpToolPresetTool',
  ToolCallAudit: 'ToolCallAudit',
  CcusageCollection: 'CcusageCollection',
  CcusageCollectionAgent: 'CcusageCollectionAgent',
  CcusageHistory: 'CcusageHistory',
  CcusageHistoryState: 'CcusageHistoryState',
  AgentJobLog: 'AgentJobLog',
  AgentAuditEvent: 'AgentAuditEvent',
  JiraSettings: 'JiraSettings',
  JiraWebhookDelivery: 'JiraWebhookDelivery',
  JiraProject: 'JiraProject',
  JiraSource: 'JiraSource',
  JiraCacheEntry: 'JiraCacheEntry',
  JiraCachedTicket: 'JiraCachedTicket',
  JiraCacheEntryIssue: 'JiraCacheEntryIssue',
  JiraApiCallLog: 'JiraApiCallLog',
  GitHubSettings: 'GitHubSettings',
  GitLabSettings: 'GitLabSettings',
  GitLabProject: 'GitLabProject',
  GitLabRestCacheEntry: 'GitLabRestCacheEntry',
  GitLabRestCacheTtlOverride: 'GitLabRestCacheTtlOverride',
  GitLabApiCallLog: 'GitLabApiCallLog',
  GitLabRateLimitSnapshot: 'GitLabRateLimitSnapshot',
  GitLabWebhookDelivery: 'GitLabWebhookDelivery',
  GitLabPipelineSnapshot: 'GitLabPipelineSnapshot',
  GitLabPipelineRecord: 'GitLabPipelineRecord',
  GitLabAutoRetryRule: 'GitLabAutoRetryRule',
  GitLabAutoRetryExecution: 'GitLabAutoRetryExecution',
  GitHubGraphqlCacheEntry: 'GitHubGraphqlCacheEntry',
  GitHubGraphqlCacheTtlOverride: 'GitHubGraphqlCacheTtlOverride',
  GitHubApiCallLog: 'GitHubApiCallLog',
  GitHubRateLimitSnapshot: 'GitHubRateLimitSnapshot',
  GitHubAppSettings: 'GitHubAppSettings',
  GitHubWebhookDelivery: 'GitHubWebhookDelivery',
  GitHubWorkflowRunObservation: 'GitHubWorkflowRunObservation',
  GitHubActionsPollingState: 'GitHubActionsPollingState',
  Credential: 'Credential',
  GitHubAuditEvent: 'GitHubAuditEvent',
  GitHubAutoRetryRule: 'GitHubAutoRetryRule',
  GitHubAutoRetryTarget: 'GitHubAutoRetryTarget',
  GitHubAutoRetryExecution: 'GitHubAutoRetryExecution',
  GitHubRepository: 'GitHubRepository',
  Workflow: 'Workflow',
  WorkflowQuickActionRepository: 'WorkflowQuickActionRepository',
  CommandDefinition: 'CommandDefinition',
  CommandDefinitionRepository: 'CommandDefinitionRepository',
  CommandRun: 'CommandRun',
  CommandRunAttempt: 'CommandRunAttempt',
  CommandRunOutputChunk: 'CommandRunOutputChunk',
  CommandRunNumberSequence: 'CommandRunNumberSequence',
  WorkflowVersion: 'WorkflowVersion',
  WorkflowTrigger: 'WorkflowTrigger',
  WorkflowTriggerState: 'WorkflowTriggerState',
  WorkflowTriggerEvent: 'WorkflowTriggerEvent',
  WorkflowTriggerDelivery: 'WorkflowTriggerDelivery',
  WorkflowRun: 'WorkflowRun',
  WorkflowRunNumberSequence: 'WorkflowRunNumberSequence',
  WorkflowStepAttempt: 'WorkflowStepAttempt',
  WorkflowWait: 'WorkflowWait',
  WorkflowRunEvent: 'WorkflowRunEvent',
  WorkflowRunResourceLink: 'WorkflowRunResourceLink',
  WorkflowResourceLease: 'WorkflowResourceLease'
} as const

export type ModelName = (typeof ModelName)[keyof typeof ModelName]

/*
 * Enums
 */

export const TransactionIsolationLevel = runtime.makeStrictEnum({
  Serializable: 'Serializable'
} as const)

export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]


export const UserScalarFieldEnum = {
  id: 'id',
  name: 'name',
  email: 'email',
  emailVerified: 'emailVerified',
  image: 'image',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  role: 'role',
  banned: 'banned',
  banReason: 'banReason',
  banExpires: 'banExpires'
} 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',
  impersonatedBy: 'impersonatedBy'
} as const

export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]


export const AccountScalarFieldEnum = {
  id: 'id',
  issuer: 'issuer',
  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 ApiKeyScalarFieldEnum = {
  id: 'id',
  configId: 'configId',
  name: 'name',
  start: 'start',
  referenceId: 'referenceId',
  prefix: 'prefix',
  key: 'key',
  refillInterval: 'refillInterval',
  refillAmount: 'refillAmount',
  lastRefillAt: 'lastRefillAt',
  enabled: 'enabled',
  rateLimitEnabled: 'rateLimitEnabled',
  rateLimitTimeWindow: 'rateLimitTimeWindow',
  rateLimitMax: 'rateLimitMax',
  requestCount: 'requestCount',
  remaining: 'remaining',
  lastRequest: 'lastRequest',
  expiresAt: 'expiresAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  permissions: 'permissions',
  metadata: 'metadata'
} as const

export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum]


export const AuthSettingsScalarFieldEnum = {
  id: 'id',
  registrationEnabled: 'registrationEnabled',
  bootstrapCompleted: 'bootstrapCompleted',
  bootstrapClaimId: 'bootstrapClaimId',
  bootstrapClaimedAt: 'bootstrapClaimedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type AuthSettingsScalarFieldEnum = (typeof AuthSettingsScalarFieldEnum)[keyof typeof AuthSettingsScalarFieldEnum]


export const CliHealthSettingsScalarFieldEnum = {
  id: 'id',
  checksJson: 'checksJson',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CliHealthSettingsScalarFieldEnum = (typeof CliHealthSettingsScalarFieldEnum)[keyof typeof CliHealthSettingsScalarFieldEnum]


export const AgentScalarFieldEnum = {
  id: 'id',
  name: 'name',
  hostname: 'hostname',
  version: 'version',
  osVersion: 'osVersion',
  architecture: 'architecture',
  cpuModel: 'cpuModel',
  memoryTotalBytes: 'memoryTotalBytes',
  memoryFreeBytes: 'memoryFreeBytes',
  diskTotalBytes: 'diskTotalBytes',
  diskFreeBytes: 'diskFreeBytes',
  capabilitiesJson: 'capabilitiesJson',
  secretHash: 'secretHash',
  baseRepoDirectory: 'baseRepoDirectory',
  derivedDataLocationMode: 'derivedDataLocationMode',
  derivedDataPath: 'derivedDataPath',
  buildsDirectory: 'buildsDirectory',
  defaultBuildsDirectory: 'defaultBuildsDirectory',
  codebaseScanIntervalSeconds: 'codebaseScanIntervalSeconds',
  jobReconciliationIntervalSeconds: 'jobReconciliationIntervalSeconds',
  gitFetchIntervalSeconds: 'gitFetchIntervalSeconds',
  heartbeatIntervalSeconds: 'heartbeatIntervalSeconds',
  ipAddress: 'ipAddress',
  lastSeenAt: 'lastSeenAt',
  disconnectedAt: 'disconnectedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type AgentScalarFieldEnum = (typeof AgentScalarFieldEnum)[keyof typeof AgentScalarFieldEnum]


export const AgentEnrollmentTokenScalarFieldEnum = {
  id: 'id',
  tokenHash: 'tokenHash',
  expiresAt: 'expiresAt',
  usedAt: 'usedAt',
  createdAt: 'createdAt'
} as const

export type AgentEnrollmentTokenScalarFieldEnum = (typeof AgentEnrollmentTokenScalarFieldEnum)[keyof typeof AgentEnrollmentTokenScalarFieldEnum]


export const IosDeviceScalarFieldEnum = {
  id: 'id',
  udid: 'udid',
  displayName: 'displayName',
  product: 'product',
  osVersion: 'osVersion',
  platform: 'platform',
  status: 'status',
  appleDeviceId: 'appleDeviceId',
  appleStatus: 'appleStatus',
  registrationError: 'registrationError',
  registrationClaimedAt: 'registrationClaimedAt',
  registeredAt: 'registeredAt',
  lastSeenAt: 'lastSeenAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type IosDeviceScalarFieldEnum = (typeof IosDeviceScalarFieldEnum)[keyof typeof IosDeviceScalarFieldEnum]


export const IosDeviceEnrollmentScalarFieldEnum = {
  id: 'id',
  deviceId: 'deviceId',
  tokenHash: 'tokenHash',
  displayName: 'displayName',
  status: 'status',
  expiresAt: 'expiresAt',
  downloadedAt: 'downloadedAt',
  consumedAt: 'consumedAt',
  responseDigest: 'responseDigest',
  failureCode: 'failureCode',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type IosDeviceEnrollmentScalarFieldEnum = (typeof IosDeviceEnrollmentScalarFieldEnum)[keyof typeof IosDeviceEnrollmentScalarFieldEnum]


export const IosDeviceIpObservationScalarFieldEnum = {
  id: 'id',
  deviceId: 'deviceId',
  enrollmentId: 'enrollmentId',
  ipAddress: 'ipAddress',
  source: 'source',
  headerSource: 'headerSource',
  observedAt: 'observedAt'
} as const

export type IosDeviceIpObservationScalarFieldEnum = (typeof IosDeviceIpObservationScalarFieldEnum)[keyof typeof IosDeviceIpObservationScalarFieldEnum]


export const IosDeviceSettingsScalarFieldEnum = {
  id: 'id',
  organizationName: 'organizationName',
  profileIdentifier: 'profileIdentifier',
  signerCertificatePem: 'signerCertificatePem',
  signerFingerprint: 'signerFingerprint',
  signerCreatedAt: 'signerCreatedAt',
  signerExpiresAt: 'signerExpiresAt',
  appStoreConnectPrivateKeyFingerprint: 'appStoreConnectPrivateKeyFingerprint',
  appStoreConnectVerifiedAt: 'appStoreConnectVerifiedAt',
  appStoreConnectLastTestedAt: 'appStoreConnectLastTestedAt',
  appStoreConnectVerificationError: 'appStoreConnectVerificationError',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type IosDeviceSettingsScalarFieldEnum = (typeof IosDeviceSettingsScalarFieldEnum)[keyof typeof IosDeviceSettingsScalarFieldEnum]


export const AgentJobScalarFieldEnum = {
  id: 'id',
  agentId: 'agentId',
  kind: 'kind',
  payloadJson: 'payloadJson',
  status: 'status',
  idempotencyKey: 'idempotencyKey',
  resultJson: 'resultJson',
  error: 'error',
  timeoutSeconds: 'timeoutSeconds',
  createdAt: 'createdAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  updatedAt: 'updatedAt',
  ccusageCollectionId: 'ccusageCollectionId',
  buildDataCollectionId: 'buildDataCollectionId',
  codebaseId: 'codebaseId',
  worktreeId: 'worktreeId',
  visibility: 'visibility',
  blocksGitOperations: 'blocksGitOperations'
} as const

export type AgentJobScalarFieldEnum = (typeof AgentJobScalarFieldEnum)[keyof typeof AgentJobScalarFieldEnum]


export const TailscaleServeTemplateScalarFieldEnum = {
  id: 'id',
  name: 'name',
  protocol: 'protocol',
  listenPort: 'listenPort',
  mountPath: 'mountPath',
  destinationProtocol: 'destinationProtocol',
  destinationPort: 'destinationPort',
  destinationPath: 'destinationPath',
  funnel: 'funnel',
  appCapabilitiesJson: 'appCapabilitiesJson',
  proxyProtocol: 'proxyProtocol',
  fingerprint: 'fingerprint',
  revision: 'revision',
  lifecycle: 'lifecycle',
  origin: 'origin',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type TailscaleServeTemplateScalarFieldEnum = (typeof TailscaleServeTemplateScalarFieldEnum)[keyof typeof TailscaleServeTemplateScalarFieldEnum]


export const TailscaleServeAssignmentScalarFieldEnum = {
  templateId: 'templateId',
  agentId: 'agentId',
  desiredEnabled: 'desiredEnabled',
  observedEnabled: 'observedEnabled',
  observedFingerprint: 'observedFingerprint',
  revision: 'revision',
  status: 'status',
  lastJobId: 'lastJobId',
  lastError: 'lastError',
  lastObservedAt: 'lastObservedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type TailscaleServeAssignmentScalarFieldEnum = (typeof TailscaleServeAssignmentScalarFieldEnum)[keyof typeof TailscaleServeAssignmentScalarFieldEnum]


export const TailscaleAgentStateScalarFieldEnum = {
  agentId: 'agentId',
  dnsHostname: 'dnsHostname',
  ipv4Json: 'ipv4Json',
  ipv6Json: 'ipv6Json',
  backendState: 'backendState',
  routesJson: 'routesJson',
  lastInspectedAt: 'lastInspectedAt',
  lastError: 'lastError',
  updatedAt: 'updatedAt'
} as const

export type TailscaleAgentStateScalarFieldEnum = (typeof TailscaleAgentStateScalarFieldEnum)[keyof typeof TailscaleAgentStateScalarFieldEnum]


export const TailscaleServeOperationScalarFieldEnum = {
  id: 'id',
  kind: 'kind',
  status: 'status',
  requestId: 'requestId',
  templateId: 'templateId',
  createdAt: 'createdAt',
  finishedAt: 'finishedAt',
  updatedAt: 'updatedAt'
} as const

export type TailscaleServeOperationScalarFieldEnum = (typeof TailscaleServeOperationScalarFieldEnum)[keyof typeof TailscaleServeOperationScalarFieldEnum]


export const TailscaleServeOperationAgentScalarFieldEnum = {
  operationId: 'operationId',
  agentId: 'agentId',
  status: 'status',
  jobId: 'jobId',
  error: 'error',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type TailscaleServeOperationAgentScalarFieldEnum = (typeof TailscaleServeOperationAgentScalarFieldEnum)[keyof typeof TailscaleServeOperationAgentScalarFieldEnum]


export const CodebaseRepositoryScalarFieldEnum = {
  id: 'id',
  canonicalOrigin: 'canonicalOrigin',
  displayOrigin: 'displayOrigin',
  name: 'name',
  description: 'description',
  jiraBranchRegex: 'jiraBranchRegex',
  keepBaseBranchUpToDate: 'keepBaseBranchUpToDate',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CodebaseRepositoryScalarFieldEnum = (typeof CodebaseRepositoryScalarFieldEnum)[keyof typeof CodebaseRepositoryScalarFieldEnum]


export const CodebaseRepositoryPreparationScalarFieldEnum = {
  id: 'id',
  repositoryId: 'repositoryId',
  kind: 'kind',
  path: 'path',
  contents: 'contents',
  contentSha256: 'contentSha256',
  byteCount: 'byteCount',
  definitionHash: 'definitionHash',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CodebaseRepositoryPreparationScalarFieldEnum = (typeof CodebaseRepositoryPreparationScalarFieldEnum)[keyof typeof CodebaseRepositoryPreparationScalarFieldEnum]


export const AppScalarFieldEnum = {
  id: 'id',
  name: 'name',
  normalizedName: 'normalizedName',
  description: 'description',
  agentIdsJson: 'agentIdsJson',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type AppScalarFieldEnum = (typeof AppScalarFieldEnum)[keyof typeof AppScalarFieldEnum]


export const AppRepositoryScalarFieldEnum = {
  appId: 'appId',
  repositoryId: 'repositoryId',
  createdAt: 'createdAt'
} as const

export type AppRepositoryScalarFieldEnum = (typeof AppRepositoryScalarFieldEnum)[keyof typeof AppRepositoryScalarFieldEnum]


export const CodebaseScalarFieldEnum = {
  id: 'id',
  repositoryId: 'repositoryId',
  agentId: 'agentId',
  folder: 'folder',
  observedOrigin: 'observedOrigin',
  branch: 'branch',
  headSha: 'headSha',
  upstream: 'upstream',
  ahead: 'ahead',
  behind: 'behind',
  syncState: 'syncState',
  availability: 'availability',
  statusError: 'statusError',
  defaultBranch: 'defaultBranch',
  localBranchesJson: 'localBranchesJson',
  remoteBranchesJson: 'remoteBranchesJson',
  lastCheckedAt: 'lastCheckedAt',
  lastFetchedAt: 'lastFetchedAt',
  lastFetchAttemptAt: 'lastFetchAttemptAt',
  lastFetchError: 'lastFetchError',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CodebaseScalarFieldEnum = (typeof CodebaseScalarFieldEnum)[keyof typeof CodebaseScalarFieldEnum]


export const CodebaseSettingsScalarFieldEnum = {
  id: 'id',
  refreshIntervalSeconds: 'refreshIntervalSeconds',
  fetchIntervalSeconds: 'fetchIntervalSeconds',
  defaultJiraBranchRegex: 'defaultJiraBranchRegex',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CodebaseSettingsScalarFieldEnum = (typeof CodebaseSettingsScalarFieldEnum)[keyof typeof CodebaseSettingsScalarFieldEnum]


export const WorktreeScalarFieldEnum = {
  id: 'id',
  codebaseId: 'codebaseId',
  gitDirectory: 'gitDirectory',
  folder: 'folder',
  relativePath: 'relativePath',
  primary: 'primary',
  branch: 'branch',
  headSha: 'headSha',
  codeStateHash: 'codeStateHash',
  upstream: 'upstream',
  ahead: 'ahead',
  behind: 'behind',
  syncState: 'syncState',
  baseBranchOverride: 'baseBranchOverride',
  baseAhead: 'baseAhead',
  baseBehind: 'baseBehind',
  hasStagedChanges: 'hasStagedChanges',
  hasUnstagedChanges: 'hasUnstagedChanges',
  rebaseInProgress: 'rebaseInProgress',
  hasConflicts: 'hasConflicts',
  pushStatus: 'pushStatus',
  highlightColor: 'highlightColor',
  availability: 'availability',
  statusError: 'statusError',
  lastCheckedAt: 'lastCheckedAt',
  missingAt: 'missingAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  pullRequestLookupOrigin: 'pullRequestLookupOrigin',
  pullRequestLookupBranch: 'pullRequestLookupBranch',
  pullRequestLookupAt: 'pullRequestLookupAt'
} as const

export type WorktreeScalarFieldEnum = (typeof WorktreeScalarFieldEnum)[keyof typeof WorktreeScalarFieldEnum]


export const WorktreePreparationStatusScalarFieldEnum = {
  worktreeId: 'worktreeId',
  preparationId: 'preparationId',
  definitionHash: 'definitionHash',
  state: 'state',
  message: 'message',
  checkedAt: 'checkedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorktreePreparationStatusScalarFieldEnum = (typeof WorktreePreparationStatusScalarFieldEnum)[keyof typeof WorktreePreparationStatusScalarFieldEnum]


export const WorktreePullRequestScalarFieldEnum = {
  worktreeId: 'worktreeId',
  sourceControlProvider: 'sourceControlProvider',
  githubId: 'githubId',
  number: 'number',
  title: 'title',
  url: 'url',
  repositoryGithubId: 'repositoryGithubId',
  repositoryNameWithOwner: 'repositoryNameWithOwner',
  repositoryUrl: 'repositoryUrl',
  labelsJson: 'labelsJson',
  jiraKey: 'jiraKey',
  reviewDecision: 'reviewDecision',
  unresolvedReviewThreadCount: 'unresolvedReviewThreadCount',
  state: 'state',
  isDraft: 'isDraft',
  mergeable: 'mergeable',
  mergeStateStatus: 'mergeStateStatus',
  autoMergeEnabled: 'autoMergeEnabled',
  viewerCanEnableAutoMerge: 'viewerCanEnableAutoMerge',
  viewerCanDisableAutoMerge: 'viewerCanDisableAutoMerge',
  headRefOid: 'headRefOid',
  headRefName: 'headRefName',
  githubCreatedAt: 'githubCreatedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorktreePullRequestScalarFieldEnum = (typeof WorktreePullRequestScalarFieldEnum)[keyof typeof WorktreePullRequestScalarFieldEnum]


export const WorktreeGitLabMergeRequestScalarFieldEnum = {
  worktreeId: 'worktreeId',
  sourceControlProvider: 'sourceControlProvider',
  gitlabId: 'gitlabId',
  iid: 'iid',
  projectId: 'projectId',
  title: 'title',
  description: 'description',
  webUrl: 'webUrl',
  state: 'state',
  draft: 'draft',
  sourceBranch: 'sourceBranch',
  targetBranch: 'targetBranch',
  sha: 'sha',
  authorJson: 'authorJson',
  reviewersJson: 'reviewersJson',
  labelsJson: 'labelsJson',
  detailedMergeStatus: 'detailedMergeStatus',
  mergeWhenPipelineSucceeds: 'mergeWhenPipelineSucceeds',
  squashOnMerge: 'squashOnMerge',
  hasConflicts: 'hasConflicts',
  blockingDiscussionsResolved: 'blockingDiscussionsResolved',
  gitlabCreatedAt: 'gitlabCreatedAt',
  gitlabUpdatedAt: 'gitlabUpdatedAt',
  mergedAt: 'mergedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorktreeGitLabMergeRequestScalarFieldEnum = (typeof WorktreeGitLabMergeRequestScalarFieldEnum)[keyof typeof WorktreeGitLabMergeRequestScalarFieldEnum]


export const GitHubPipelineSnapshotScalarFieldEnum = {
  id: 'id',
  sourceControlProvider: 'sourceControlProvider',
  repositoryGithubId: 'repositoryGithubId',
  repositoryNameWithOwner: 'repositoryNameWithOwner',
  repositoryUrl: 'repositoryUrl',
  headSha: 'headSha',
  pipelineStatus: 'pipelineStatus',
  graphqlRollupStatus: 'graphqlRollupStatus',
  revision: 'revision',
  lastGraphqlSyncAt: 'lastGraphqlSyncAt',
  lastObservedAt: 'lastObservedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubPipelineSnapshotScalarFieldEnum = (typeof GitHubPipelineSnapshotScalarFieldEnum)[keyof typeof GitHubPipelineSnapshotScalarFieldEnum]


export const GitHubPipelineRecordScalarFieldEnum = {
  id: 'id',
  sourceControlProvider: 'sourceControlProvider',
  snapshotId: 'snapshotId',
  identityKey: 'identityKey',
  githubPipelineId: 'githubPipelineId',
  name: 'name',
  status: 'status',
  url: 'url',
  checkSuiteId: 'checkSuiteId',
  workflowRunId: 'workflowRunId',
  workflowId: 'workflowId',
  runNumber: 'runNumber',
  runAttempt: 'runAttempt',
  canRetry: 'canRetry',
  retryUnavailableReason: 'retryUnavailableReason',
  jobsJson: 'jobsJson',
  source: 'source',
  githubUpdatedAt: 'githubUpdatedAt',
  sourceFetchedAt: 'sourceFetchedAt',
  lastObservedAt: 'lastObservedAt',
  optimisticUntil: 'optimisticUntil',
  isCurrent: 'isCurrent',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubPipelineRecordScalarFieldEnum = (typeof GitHubPipelineRecordScalarFieldEnum)[keyof typeof GitHubPipelineRecordScalarFieldEnum]


export const WorktreeAutoSyncScalarFieldEnum = {
  worktreeId: 'worktreeId',
  state: 'state',
  branch: 'branch',
  conflictWorkflowId: 'conflictWorkflowId',
  conflictWorkflowChoice: 'conflictWorkflowChoice',
  activeJobId: 'activeJobId',
  workflowRunId: 'workflowRunId',
  lastError: 'lastError',
  pauseReason: 'pauseReason',
  lastSyncedAt: 'lastSyncedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorktreeAutoSyncScalarFieldEnum = (typeof WorktreeAutoSyncScalarFieldEnum)[keyof typeof WorktreeAutoSyncScalarFieldEnum]


export const WorktreeAutoMergeScalarFieldEnum = {
  worktreeId: 'worktreeId',
  state: 'state',
  repositoryNameWithOwner: 'repositoryNameWithOwner',
  pullRequestNumber: 'pullRequestNumber',
  branch: 'branch',
  mergeMethod: 'mergeMethod',
  commitHeadline: 'commitHeadline',
  commitBody: 'commitBody',
  authorEmail: 'authorEmail',
  deleteWorktree: 'deleteWorktree',
  moveTicketToDone: 'moveTicketToDone',
  ticketKey: 'ticketKey',
  ticketMovedAt: 'ticketMovedAt',
  deleteJobId: 'deleteJobId',
  lastError: 'lastError',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorktreeAutoMergeScalarFieldEnum = (typeof WorktreeAutoMergeScalarFieldEnum)[keyof typeof WorktreeAutoMergeScalarFieldEnum]


export const AgentRunScalarFieldEnum = {
  id: 'id',
  kind: 'kind',
  displayNumber: 'displayNumber',
  status: 'status',
  phase: 'phase',
  origin: 'origin',
  provider: 'provider',
  providerVersion: 'providerVersion',
  worktreeId: 'worktreeId',
  repositoryId: 'repositoryId',
  agentId: 'agentId',
  jiraIssueKey: 'jiraIssueKey',
  repositoryName: 'repositoryName',
  branch: 'branch',
  model: 'model',
  effort: 'effort',
  webSearchEnabled: 'webSearchEnabled',
  mcpPresetIdsJson: 'mcpPresetIdsJson',
  mcpToolNamesJson: 'mcpToolNamesJson',
  worktreeConcurrencyLimit: 'worktreeConcurrencyLimit',
  workflowRunId: 'workflowRunId',
  initialPrompt: 'initialPrompt',
  finalOutput: 'finalOutput',
  error: 'error',
  estimatedCost: 'estimatedCost',
  pricingSource: 'pricingSource',
  pricingUpdatedAt: 'pricingUpdatedAt',
  inputTokens: 'inputTokens',
  outputTokens: 'outputTokens',
  reasoningTokens: 'reasoningTokens',
  cacheReadTokens: 'cacheReadTokens',
  cacheWriteTokens: 'cacheWriteTokens',
  toolCallCount: 'toolCallCount',
  sourcePlanId: 'sourcePlanId',
  sourcePlanNumber: 'sourcePlanNumber',
  playedAt: 'playedAt',
  playedSessionNumber: 'playedSessionNumber',
  parentRunId: 'parentRunId',
  parentRunNumber: 'parentRunNumber',
  followUpMode: 'followUpMode',
  archivedAt: 'archivedAt',
  nativeArchivedAt: 'nativeArchivedAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type AgentRunScalarFieldEnum = (typeof AgentRunScalarFieldEnum)[keyof typeof AgentRunScalarFieldEnum]


export const RunAttemptScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  generation: 'generation',
  nativeId: 'nativeId',
  nativeKey: 'nativeKey',
  status: 'status',
  resumeStrategy: 'resumeStrategy',
  rawMetadataJson: 'rawMetadataJson',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  supersededAt: 'supersededAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type RunAttemptScalarFieldEnum = (typeof RunAttemptScalarFieldEnum)[keyof typeof RunAttemptScalarFieldEnum]


export const RunInputScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  sequence: 'sequence',
  kind: 'kind',
  prompt: 'prompt',
  createdAt: 'createdAt'
} as const

export type RunInputScalarFieldEnum = (typeof RunInputScalarFieldEnum)[keyof typeof RunInputScalarFieldEnum]


export const RunDraftScalarFieldEnum = {
  id: 'id',
  kind: 'kind',
  worktreeId: 'worktreeId',
  agentId: 'agentId',
  jiraIssueKey: 'jiraIssueKey',
  provider: 'provider',
  model: 'model',
  effort: 'effort',
  webSearchEnabled: 'webSearchEnabled',
  mcpPresetIdsJson: 'mcpPresetIdsJson',
  prompt: 'prompt',
  archivedAt: 'archivedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type RunDraftScalarFieldEnum = (typeof RunDraftScalarFieldEnum)[keyof typeof RunDraftScalarFieldEnum]


export const RunAttachmentScalarFieldEnum = {
  id: 'id',
  inputId: 'inputId',
  draftId: 'draftId',
  sha256: 'sha256',
  filename: 'filename',
  contentType: 'contentType',
  size: 'size',
  storagePath: 'storagePath',
  createdAt: 'createdAt'
} as const

export type RunAttachmentScalarFieldEnum = (typeof RunAttachmentScalarFieldEnum)[keyof typeof RunAttachmentScalarFieldEnum]


export const RunEventScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  attemptId: 'attemptId',
  sequence: 'sequence',
  type: 'type',
  summary: 'summary',
  searchText: 'searchText',
  detailMarkdown: 'detailMarkdown',
  rawJson: 'rawJson',
  createdAt: 'createdAt',
  supersededAt: 'supersededAt'
} as const

export type RunEventScalarFieldEnum = (typeof RunEventScalarFieldEnum)[keyof typeof RunEventScalarFieldEnum]


export const RunToolCallScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  attemptId: 'attemptId',
  sequence: 'sequence',
  name: 'name',
  status: 'status',
  inputJson: 'inputJson',
  outputJson: 'outputJson',
  error: 'error',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  supersededAt: 'supersededAt'
} as const

export type RunToolCallScalarFieldEnum = (typeof RunToolCallScalarFieldEnum)[keyof typeof RunToolCallScalarFieldEnum]


export const RunModelUsageScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  attemptId: 'attemptId',
  model: 'model',
  inputTokens: 'inputTokens',
  outputTokens: 'outputTokens',
  reasoningTokens: 'reasoningTokens',
  cacheReadTokens: 'cacheReadTokens',
  cacheWriteTokens: 'cacheWriteTokens',
  estimatedCost: 'estimatedCost',
  superseded: 'superseded',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type RunModelUsageScalarFieldEnum = (typeof RunModelUsageScalarFieldEnum)[keyof typeof RunModelUsageScalarFieldEnum]


export const ModelCostSettingsScalarFieldEnum = {
  id: 'id',
  catalogUrl: 'catalogUrl',
  fetchedAt: 'fetchedAt',
  sourceUrl: 'sourceUrl',
  entryCount: 'entryCount',
  error: 'error',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type ModelCostSettingsScalarFieldEnum = (typeof ModelCostSettingsScalarFieldEnum)[keyof typeof ModelCostSettingsScalarFieldEnum]


export const ModelCostEntryScalarFieldEnum = {
  model: 'model',
  provider: 'provider',
  mode: 'mode',
  inputCostPerToken: 'inputCostPerToken',
  outputCostPerToken: 'outputCostPerToken',
  cacheReadCostPerToken: 'cacheReadCostPerToken',
  cacheWriteCostPerToken: 'cacheWriteCostPerToken',
  maxInputTokens: 'maxInputTokens',
  maxOutputTokens: 'maxOutputTokens',
  updatedAt: 'updatedAt'
} as const

export type ModelCostEntryScalarFieldEnum = (typeof ModelCostEntryScalarFieldEnum)[keyof typeof ModelCostEntryScalarFieldEnum]


export const RunQuestionBatchScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  workflowStepAttemptId: 'workflowStepAttemptId',
  attemptId: 'attemptId',
  nativeRequestId: 'nativeRequestId',
  eventSequence: 'eventSequence',
  status: 'status',
  createdAt: 'createdAt',
  answeredAt: 'answeredAt',
  supersededAt: 'supersededAt',
  revisionPreparedAt: 'revisionPreparedAt',
  rollbackPatch: 'rollbackPatch',
  pushedCommitWarning: 'pushedCommitWarning'
} as const

export type RunQuestionBatchScalarFieldEnum = (typeof RunQuestionBatchScalarFieldEnum)[keyof typeof RunQuestionBatchScalarFieldEnum]


export const RunQuestionScalarFieldEnum = {
  id: 'id',
  batchId: 'batchId',
  position: 'position',
  header: 'header',
  prompt: 'prompt',
  multiSelect: 'multiSelect',
  allowCustom: 'allowCustom'
} as const

export type RunQuestionScalarFieldEnum = (typeof RunQuestionScalarFieldEnum)[keyof typeof RunQuestionScalarFieldEnum]


export const RunQuestionOptionScalarFieldEnum = {
  id: 'id',
  questionId: 'questionId',
  position: 'position',
  label: 'label',
  description: 'description'
} as const

export type RunQuestionOptionScalarFieldEnum = (typeof RunQuestionOptionScalarFieldEnum)[keyof typeof RunQuestionOptionScalarFieldEnum]


export const RunAnswerRevisionScalarFieldEnum = {
  id: 'id',
  batchId: 'batchId',
  revision: 'revision',
  answersJson: 'answersJson',
  createdAt: 'createdAt',
  supersededAt: 'supersededAt',
  replacementAttemptId: 'replacementAttemptId'
} as const

export type RunAnswerRevisionScalarFieldEnum = (typeof RunAnswerRevisionScalarFieldEnum)[keyof typeof RunAnswerRevisionScalarFieldEnum]


export const RunCheckpointScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  workflowStepAttemptId: 'workflowStepAttemptId',
  attemptId: 'attemptId',
  questionBatchId: 'questionBatchId',
  kind: 'kind',
  headSha: 'headSha',
  branch: 'branch',
  upstreamSha: 'upstreamSha',
  indexTree: 'indexTree',
  worktreeTree: 'worktreeTree',
  refName: 'refName',
  manifestJson: 'manifestJson',
  diffSummary: 'diffSummary',
  diffPatch: 'diffPatch',
  stashRef: 'stashRef',
  createdAt: 'createdAt'
} as const

export type RunCheckpointScalarFieldEnum = (typeof RunCheckpointScalarFieldEnum)[keyof typeof RunCheckpointScalarFieldEnum]


export const RunCommandScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  agentId: 'agentId',
  sequence: 'sequence',
  type: 'type',
  payloadJson: 'payloadJson',
  status: 'status',
  idempotencyKey: 'idempotencyKey',
  error: 'error',
  createdAt: 'createdAt',
  claimedAt: 'claimedAt',
  finishedAt: 'finishedAt'
} as const

export type RunCommandScalarFieldEnum = (typeof RunCommandScalarFieldEnum)[keyof typeof RunCommandScalarFieldEnum]


export const RunNumberSequenceScalarFieldEnum = {
  kind: 'kind',
  nextValue: 'nextValue',
  updatedAt: 'updatedAt'
} as const

export type RunNumberSequenceScalarFieldEnum = (typeof RunNumberSequenceScalarFieldEnum)[keyof typeof RunNumberSequenceScalarFieldEnum]


export const WorktreeRunLeaseScalarFieldEnum = {
  id: 'id',
  worktreeId: 'worktreeId',
  runId: 'runId',
  purpose: 'purpose',
  reservationKey: 'reservationKey',
  acquiredAt: 'acquiredAt'
} as const

export type WorktreeRunLeaseScalarFieldEnum = (typeof WorktreeRunLeaseScalarFieldEnum)[keyof typeof WorktreeRunLeaseScalarFieldEnum]


export const WorktreeRunConcurrencyLaneScalarFieldEnum = {
  worktreeId: 'worktreeId',
  kind: 'kind',
  updatedAt: 'updatedAt'
} as const

export type WorktreeRunConcurrencyLaneScalarFieldEnum = (typeof WorktreeRunConcurrencyLaneScalarFieldEnum)[keyof typeof WorktreeRunConcurrencyLaneScalarFieldEnum]


export const WorktreeAdmissionLaneScalarFieldEnum = {
  worktreeId: 'worktreeId',
  updatedAt: 'updatedAt'
} as const

export type WorktreeAdmissionLaneScalarFieldEnum = (typeof WorktreeAdmissionLaneScalarFieldEnum)[keyof typeof WorktreeAdmissionLaneScalarFieldEnum]


export const WorktreeWorkflowLeaseScalarFieldEnum = {
  worktreeId: 'worktreeId',
  workflowRunId: 'workflowRunId',
  acquiredAt: 'acquiredAt'
} as const

export type WorktreeWorkflowLeaseScalarFieldEnum = (typeof WorktreeWorkflowLeaseScalarFieldEnum)[keyof typeof WorktreeWorkflowLeaseScalarFieldEnum]


export const RunProviderSyncScalarFieldEnum = {
  id: 'id',
  agentId: 'agentId',
  provider: 'provider',
  cursor: 'cursor',
  status: 'status',
  lastStartedAt: 'lastStartedAt',
  lastCompletedAt: 'lastCompletedAt',
  lastError: 'lastError',
  importedCount: 'importedCount',
  unmatchedCount: 'unmatchedCount',
  catalogJson: 'catalogJson',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type RunProviderSyncScalarFieldEnum = (typeof RunProviderSyncScalarFieldEnum)[keyof typeof RunProviderSyncScalarFieldEnum]


export const AppNotificationScalarFieldEnum = {
  id: 'id',
  dedupeKey: 'dedupeKey',
  typeKey: 'typeKey',
  title: 'title',
  body: 'body',
  href: 'href',
  resourceKind: 'resourceKind',
  resourceId: 'resourceId',
  worktreeId: 'worktreeId',
  highlightColor: 'highlightColor',
  sidebarRequested: 'sidebarRequested',
  browserRequested: 'browserRequested',
  webPushRequested: 'webPushRequested',
  apnsRequested: 'apnsRequested',
  sidebarDismissedAt: 'sidebarDismissedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type AppNotificationScalarFieldEnum = (typeof AppNotificationScalarFieldEnum)[keyof typeof AppNotificationScalarFieldEnum]


export const NotificationPreferenceScalarFieldEnum = {
  typeKey: 'typeKey',
  sidebarEnabled: 'sidebarEnabled',
  browserEnabled: 'browserEnabled',
  webPushEnabled: 'webPushEnabled',
  apnsEnabled: 'apnsEnabled',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type NotificationPreferenceScalarFieldEnum = (typeof NotificationPreferenceScalarFieldEnum)[keyof typeof NotificationPreferenceScalarFieldEnum]


export const NotificationDeviceScalarFieldEnum = {
  id: 'id',
  clientRegistrationId: 'clientRegistrationId',
  token: 'token',
  tokenHash: 'tokenHash',
  topic: 'topic',
  environment: 'environment',
  displayName: 'displayName',
  deviceModel: 'deviceModel',
  osVersion: 'osVersion',
  appVersion: 'appVersion',
  appBuild: 'appBuild',
  locale: 'locale',
  lastIpAddress: 'lastIpAddress',
  status: 'status',
  lastFailureReason: 'lastFailureReason',
  lastFailureAt: 'lastFailureAt',
  lastRegisteredAt: 'lastRegisteredAt',
  lastDeliveredAt: 'lastDeliveredAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type NotificationDeviceScalarFieldEnum = (typeof NotificationDeviceScalarFieldEnum)[keyof typeof NotificationDeviceScalarFieldEnum]


export const WebPushSettingsScalarFieldEnum = {
  id: 'id',
  vapidPublicKey: 'vapidPublicKey',
  vapidGeneratedAt: 'vapidGeneratedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WebPushSettingsScalarFieldEnum = (typeof WebPushSettingsScalarFieldEnum)[keyof typeof WebPushSettingsScalarFieldEnum]


export const WebPushSubscriptionScalarFieldEnum = {
  id: 'id',
  endpoint: 'endpoint',
  p256dh: 'p256dh',
  auth: 'auth',
  expirationTime: 'expirationTime',
  locale: 'locale',
  userAgent: 'userAgent',
  lastSeenAt: 'lastSeenAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WebPushSubscriptionScalarFieldEnum = (typeof WebPushSubscriptionScalarFieldEnum)[keyof typeof WebPushSubscriptionScalarFieldEnum]


export const SkillScalarFieldEnum = {
  id: 'id',
  name: 'name',
  description: 'description',
  syncGlobally: 'syncGlobally',
  packageHash: 'packageHash',
  deletedAt: 'deletedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type SkillScalarFieldEnum = (typeof SkillScalarFieldEnum)[keyof typeof SkillScalarFieldEnum]


export const SkillFileScalarFieldEnum = {
  id: 'id',
  skillId: 'skillId',
  path: 'path',
  contents: 'contents',
  executable: 'executable',
  contentHash: 'contentHash',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type SkillFileScalarFieldEnum = (typeof SkillFileScalarFieldEnum)[keyof typeof SkillFileScalarFieldEnum]


export const SkillGroupScalarFieldEnum = {
  id: 'id',
  name: 'name',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type SkillGroupScalarFieldEnum = (typeof SkillGroupScalarFieldEnum)[keyof typeof SkillGroupScalarFieldEnum]


export const SkillGroupSkillScalarFieldEnum = {
  groupId: 'groupId',
  skillId: 'skillId'
} as const

export type SkillGroupSkillScalarFieldEnum = (typeof SkillGroupSkillScalarFieldEnum)[keyof typeof SkillGroupSkillScalarFieldEnum]


export const CodebaseRepositorySkillGroupScalarFieldEnum = {
  repositoryId: 'repositoryId',
  groupId: 'groupId'
} as const

export type CodebaseRepositorySkillGroupScalarFieldEnum = (typeof CodebaseRepositorySkillGroupScalarFieldEnum)[keyof typeof CodebaseRepositorySkillGroupScalarFieldEnum]


export const SkillSettingsScalarFieldEnum = {
  id: 'id',
  autoSyncProjectGroups: 'autoSyncProjectGroups',
  cursorEnabled: 'cursorEnabled',
  githubCopilotEnabled: 'githubCopilotEnabled',
  codexEnabled: 'codexEnabled',
  claudeEnabled: 'claudeEnabled',
  openCodeEnabled: 'openCodeEnabled',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type SkillSettingsScalarFieldEnum = (typeof SkillSettingsScalarFieldEnum)[keyof typeof SkillSettingsScalarFieldEnum]


export const SkillToolObservationScalarFieldEnum = {
  agentId: 'agentId',
  tool: 'tool',
  configured: 'configured',
  homePath: 'homePath',
  checkedAt: 'checkedAt'
} as const

export type SkillToolObservationScalarFieldEnum = (typeof SkillToolObservationScalarFieldEnum)[keyof typeof SkillToolObservationScalarFieldEnum]


export const SkillInstallationScalarFieldEnum = {
  id: 'id',
  skillId: 'skillId',
  agentId: 'agentId',
  codebaseId: 'codebaseId',
  worktreeId: 'worktreeId',
  scope: 'scope',
  rootKind: 'rootKind',
  rootPath: 'rootPath',
  skillName: 'skillName',
  description: 'description',
  packageHash: 'packageHash',
  present: 'present',
  fileCount: 'fileCount',
  totalBytes: 'totalBytes',
  tracked: 'tracked',
  consumersJson: 'consumersJson',
  lastSeenAt: 'lastSeenAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type SkillInstallationScalarFieldEnum = (typeof SkillInstallationScalarFieldEnum)[keyof typeof SkillInstallationScalarFieldEnum]


export const SkillSyncBaselineScalarFieldEnum = {
  id: 'id',
  installationId: 'installationId',
  skillId: 'skillId',
  packageHash: 'packageHash',
  syncedAt: 'syncedAt'
} as const

export type SkillSyncBaselineScalarFieldEnum = (typeof SkillSyncBaselineScalarFieldEnum)[keyof typeof SkillSyncBaselineScalarFieldEnum]


export const SkillDeploymentScalarFieldEnum = {
  id: 'id',
  skillId: 'skillId',
  agentId: 'agentId',
  codebaseId: 'codebaseId',
  worktreeId: 'worktreeId',
  scope: 'scope',
  rootKind: 'rootKind',
  targetPath: 'targetPath',
  desiredHash: 'desiredHash',
  installedHash: 'installedHash',
  status: 'status',
  lastError: 'lastError',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type SkillDeploymentScalarFieldEnum = (typeof SkillDeploymentScalarFieldEnum)[keyof typeof SkillDeploymentScalarFieldEnum]


export const SkillSyncRunScalarFieldEnum = {
  id: 'id',
  kind: 'kind',
  groupId: 'groupId',
  automatic: 'automatic',
  status: 'status',
  error: 'error',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  finishedAt: 'finishedAt'
} as const

export type SkillSyncRunScalarFieldEnum = (typeof SkillSyncRunScalarFieldEnum)[keyof typeof SkillSyncRunScalarFieldEnum]


export const SkillSyncItemScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  skillId: 'skillId',
  installationId: 'installationId',
  agentId: 'agentId',
  direction: 'direction',
  status: 'status',
  sourceHash: 'sourceHash',
  targetHash: 'targetHash',
  resolution: 'resolution',
  candidatePackageJson: 'candidatePackageJson',
  error: 'error',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type SkillSyncItemScalarFieldEnum = (typeof SkillSyncItemScalarFieldEnum)[keyof typeof SkillSyncItemScalarFieldEnum]


export const CodebaseProjectScalarFieldEnum = {
  id: 'id',
  repositoryId: 'repositoryId',
  type: 'type',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CodebaseProjectScalarFieldEnum = (typeof CodebaseProjectScalarFieldEnum)[keyof typeof CodebaseProjectScalarFieldEnum]


export const BuildSourceScalarFieldEnum = {
  id: 'id',
  projectId: 'projectId',
  kind: 'kind',
  relativePath: 'relativePath',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type BuildSourceScalarFieldEnum = (typeof BuildSourceScalarFieldEnum)[keyof typeof BuildSourceScalarFieldEnum]


export const BuildSourceObservationScalarFieldEnum = {
  id: 'id',
  sourceId: 'sourceId',
  scopeKey: 'scopeKey',
  codebaseId: 'codebaseId',
  worktreeId: 'worktreeId',
  status: 'status',
  schemesJson: 'schemesJson',
  configurationsJson: 'configurationsJson',
  testPlansJson: 'testPlansJson',
  error: 'error',
  stale: 'stale',
  headSha: 'headSha',
  xcodeVersion: 'xcodeVersion',
  lastParseAttemptAt: 'lastParseAttemptAt',
  lastParsedAt: 'lastParsedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type BuildSourceObservationScalarFieldEnum = (typeof BuildSourceObservationScalarFieldEnum)[keyof typeof BuildSourceObservationScalarFieldEnum]


export const BuildConfigurationScalarFieldEnum = {
  id: 'id',
  projectId: 'projectId',
  sourceId: 'sourceId',
  name: 'name',
  iconKey: 'iconKey',
  scheme: 'scheme',
  buildConfiguration: 'buildConfiguration',
  defaultAction: 'defaultAction',
  advancedSettingsJson: 'advancedSettingsJson',
  autoExport: 'autoExport',
  exportSettingsJson: 'exportSettingsJson',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type BuildConfigurationScalarFieldEnum = (typeof BuildConfigurationScalarFieldEnum)[keyof typeof BuildConfigurationScalarFieldEnum]


export const BuildScriptScalarFieldEnum = {
  id: 'id',
  name: 'name',
  preBuildScript: 'preBuildScript',
  postBuildScript: 'postBuildScript',
  enabledByDefault: 'enabledByDefault',
  timeoutSeconds: 'timeoutSeconds',
  failureBehavior: 'failureBehavior',
  deletedAt: 'deletedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type BuildScriptScalarFieldEnum = (typeof BuildScriptScalarFieldEnum)[keyof typeof BuildScriptScalarFieldEnum]


export const CodebaseRepositoryBuildScriptScalarFieldEnum = {
  repositoryId: 'repositoryId',
  scriptId: 'scriptId',
  position: 'position'
} as const

export type CodebaseRepositoryBuildScriptScalarFieldEnum = (typeof CodebaseRepositoryBuildScriptScalarFieldEnum)[keyof typeof CodebaseRepositoryBuildScriptScalarFieldEnum]


export const BuildScalarFieldEnum = {
  id: 'id',
  requestKey: 'requestKey',
  requestId: 'requestId',
  agentId: 'agentId',
  codebaseId: 'codebaseId',
  worktreeId: 'worktreeId',
  repositoryId: 'repositoryId',
  configurationId: 'configurationId',
  jobId: 'jobId',
  status: 'status',
  action: 'action',
  destinationType: 'destinationType',
  destinationJson: 'destinationJson',
  snapshotJson: 'snapshotJson',
  commandSummary: 'commandSummary',
  artifactDirectory: 'artifactDirectory',
  errorCode: 'errorCode',
  error: 'error',
  createdAt: 'createdAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  updatedAt: 'updatedAt'
} as const

export type BuildScalarFieldEnum = (typeof BuildScalarFieldEnum)[keyof typeof BuildScalarFieldEnum]


export const BuildArtifactScalarFieldEnum = {
  id: 'id',
  buildId: 'buildId',
  kind: 'kind',
  relativePath: 'relativePath',
  sizeBytes: 'sizeBytes',
  checksum: 'checksum',
  metadataJson: 'metadataJson',
  createdAt: 'createdAt'
} as const

export type BuildArtifactScalarFieldEnum = (typeof BuildArtifactScalarFieldEnum)[keyof typeof BuildArtifactScalarFieldEnum]


export const BuildReportScalarFieldEnum = {
  id: 'id',
  buildId: 'buildId',
  artifactId: 'artifactId',
  kind: 'kind',
  source: 'source',
  status: 'status',
  summaryJson: 'summaryJson',
  dataJson: 'dataJson',
  error: 'error',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  finishedAt: 'finishedAt'
} as const

export type BuildReportScalarFieldEnum = (typeof BuildReportScalarFieldEnum)[keyof typeof BuildReportScalarFieldEnum]


export const BuildScriptExecutionScalarFieldEnum = {
  id: 'id',
  buildId: 'buildId',
  scriptId: 'scriptId',
  phase: 'phase',
  position: 'position',
  nameSnapshot: 'nameSnapshot',
  sourceSnapshot: 'sourceSnapshot',
  timeoutSeconds: 'timeoutSeconds',
  failureBehavior: 'failureBehavior',
  status: 'status',
  exitCode: 'exitCode',
  durationMs: 'durationMs',
  causedBuildFailure: 'causedBuildFailure',
  outputRelativePath: 'outputRelativePath',
  error: 'error',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type BuildScriptExecutionScalarFieldEnum = (typeof BuildScriptExecutionScalarFieldEnum)[keyof typeof BuildScriptExecutionScalarFieldEnum]


export const BuildLogChunkScalarFieldEnum = {
  id: 'id',
  buildId: 'buildId',
  scope: 'scope',
  scopeId: 'scopeId',
  sequence: 'sequence',
  phase: 'phase',
  stream: 'stream',
  dataBase64: 'dataBase64',
  byteLength: 'byteLength',
  createdAt: 'createdAt'
} as const

export type BuildLogChunkScalarFieldEnum = (typeof BuildLogChunkScalarFieldEnum)[keyof typeof BuildLogChunkScalarFieldEnum]


export const TelemetryEntryScalarFieldEnum = {
  id: 'id',
  entryType: 'entryType',
  clientTime: 'clientTime',
  receivedAt: 'receivedAt',
  deviceIp: 'deviceIp',
  message: 'message',
  level: 'level',
  category: 'category',
  eventName: 'eventName',
  eventKind: 'eventKind',
  screenName: 'screenName',
  buildId: 'buildId',
  sessionId: 'sessionId',
  attributesJson: 'attributesJson',
  defaultParametersJson: 'defaultParametersJson',
  additionalParametersJson: 'additionalParametersJson',
  searchText: 'searchText',
  highlightColor: 'highlightColor',
  separatorKind: 'separatorKind',
  separatorName: 'separatorName',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type TelemetryEntryScalarFieldEnum = (typeof TelemetryEntryScalarFieldEnum)[keyof typeof TelemetryEntryScalarFieldEnum]


export const TelemetrySettingsScalarFieldEnum = {
  id: 'id',
  localBaseUrlOverride: 'localBaseUrlOverride',
  remoteBaseUrlOverride: 'remoteBaseUrlOverride',
  consoleCollectionEnabled: 'consoleCollectionEnabled',
  analyticsCollectionEnabled: 'analyticsCollectionEnabled',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type TelemetrySettingsScalarFieldEnum = (typeof TelemetrySettingsScalarFieldEnum)[keyof typeof TelemetrySettingsScalarFieldEnum]


export const TelemetryViewSettingsScalarFieldEnum = {
  id: 'id',
  view: 'view',
  columnsJson: 'columnsJson',
  timeFormat: 'timeFormat',
  activeColumnPresetId: 'activeColumnPresetId',
  activeSavedFilterId: 'activeSavedFilterId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type TelemetryViewSettingsScalarFieldEnum = (typeof TelemetryViewSettingsScalarFieldEnum)[keyof typeof TelemetryViewSettingsScalarFieldEnum]


export const TelemetryColumnPresetScalarFieldEnum = {
  id: 'id',
  view: 'view',
  name: 'name',
  normalizedName: 'normalizedName',
  columnsJson: 'columnsJson',
  isDefault: 'isDefault',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type TelemetryColumnPresetScalarFieldEnum = (typeof TelemetryColumnPresetScalarFieldEnum)[keyof typeof TelemetryColumnPresetScalarFieldEnum]


export const TelemetrySavedFilterScalarFieldEnum = {
  id: 'id',
  view: 'view',
  name: 'name',
  normalizedName: 'normalizedName',
  definitionJson: 'definitionJson',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type TelemetrySavedFilterScalarFieldEnum = (typeof TelemetrySavedFilterScalarFieldEnum)[keyof typeof TelemetrySavedFilterScalarFieldEnum]


export const BuildDeploymentScalarFieldEnum = {
  id: 'id',
  buildId: 'buildId',
  batchId: 'batchId',
  requestId: 'requestId',
  jobId: 'jobId',
  destinationJson: 'destinationJson',
  destinationKey: 'destinationKey',
  status: 'status',
  commandSummary: 'commandSummary',
  outputRelativePath: 'outputRelativePath',
  error: 'error',
  createdAt: 'createdAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  updatedAt: 'updatedAt'
} as const

export type BuildDeploymentScalarFieldEnum = (typeof BuildDeploymentScalarFieldEnum)[keyof typeof BuildDeploymentScalarFieldEnum]


export const BuildExportScalarFieldEnum = {
  id: 'id',
  buildId: 'buildId',
  requestId: 'requestId',
  jobId: 'jobId',
  status: 'status',
  settingsSnapshotJson: 'settingsSnapshotJson',
  commandSummary: 'commandSummary',
  outputRelativePath: 'outputRelativePath',
  error: 'error',
  createdAt: 'createdAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  updatedAt: 'updatedAt'
} as const

export type BuildExportScalarFieldEnum = (typeof BuildExportScalarFieldEnum)[keyof typeof BuildExportScalarFieldEnum]


export const BuildDataCollectionScalarFieldEnum = {
  id: 'id',
  deadlineAt: 'deadlineAt',
  finishedAt: 'finishedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type BuildDataCollectionScalarFieldEnum = (typeof BuildDataCollectionScalarFieldEnum)[keyof typeof BuildDataCollectionScalarFieldEnum]


export const BuildDataCollectionAgentScalarFieldEnum = {
  collectionId: 'collectionId',
  agentId: 'agentId',
  initialStatus: 'initialStatus',
  error: 'error'
} as const

export type BuildDataCollectionAgentScalarFieldEnum = (typeof BuildDataCollectionAgentScalarFieldEnum)[keyof typeof BuildDataCollectionAgentScalarFieldEnum]


export const BuildDataDeletionHistoryScalarFieldEnum = {
  id: 'id',
  agentId: 'agentId',
  agentName: 'agentName',
  folderName: 'folderName',
  worktreeId: 'worktreeId',
  worktreePath: 'worktreePath',
  source: 'source',
  entryKind: 'entryKind',
  jobId: 'jobId',
  targetKey: 'targetKey',
  deletedAt: 'deletedAt'
} as const

export type BuildDataDeletionHistoryScalarFieldEnum = (typeof BuildDataDeletionHistoryScalarFieldEnum)[keyof typeof BuildDataDeletionHistoryScalarFieldEnum]


export const DiskSpaceSettingsScalarFieldEnum = {
  id: 'id',
  normalThresholdGiB: 'normalThresholdGiB',
  pressureThresholdGiB: 'pressureThresholdGiB',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type DiskSpaceSettingsScalarFieldEnum = (typeof DiskSpaceSettingsScalarFieldEnum)[keyof typeof DiskSpaceSettingsScalarFieldEnum]


export const AgentDiskSpaceStateScalarFieldEnum = {
  agentId: 'agentId',
  enabled: 'enabled',
  manualPressureMode: 'manualPressureMode',
  automaticPressureMode: 'automaticPressureMode',
  volumesJson: 'volumesJson',
  entriesJson: 'entriesJson',
  warningsJson: 'warningsJson',
  lastReportedAt: 'lastReportedAt',
  lastError: 'lastError',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type AgentDiskSpaceStateScalarFieldEnum = (typeof AgentDiskSpaceStateScalarFieldEnum)[keyof typeof AgentDiskSpaceStateScalarFieldEnum]


export const DerivedDataLockScalarFieldEnum = {
  id: 'id',
  agentId: 'agentId',
  path: 'path',
  createdAt: 'createdAt'
} as const

export type DerivedDataLockScalarFieldEnum = (typeof DerivedDataLockScalarFieldEnum)[keyof typeof DerivedDataLockScalarFieldEnum]


export const DerivedDataCleanupLeaseScalarFieldEnum = {
  worktreeId: 'worktreeId',
  agentId: 'agentId',
  path: 'path',
  source: 'source',
  jobId: 'jobId',
  expiresAt: 'expiresAt',
  createdAt: 'createdAt'
} as const

export type DerivedDataCleanupLeaseScalarFieldEnum = (typeof DerivedDataCleanupLeaseScalarFieldEnum)[keyof typeof DerivedDataCleanupLeaseScalarFieldEnum]


export const SidebarUsageSummaryScalarFieldEnum = {
  id: 'id',
  period: 'period',
  totalCost: 'totalCost',
  collectedAt: 'collectedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type SidebarUsageSummaryScalarFieldEnum = (typeof SidebarUsageSummaryScalarFieldEnum)[keyof typeof SidebarUsageSummaryScalarFieldEnum]


export const ActionCenterAcknowledgementScalarFieldEnum = {
  id: 'id',
  resourceKind: 'resourceKind',
  resourceId: 'resourceId',
  failureFingerprint: 'failureFingerprint',
  acknowledgedAt: 'acknowledgedAt'
} as const

export type ActionCenterAcknowledgementScalarFieldEnum = (typeof ActionCenterAcknowledgementScalarFieldEnum)[keyof typeof ActionCenterAcknowledgementScalarFieldEnum]


export const SigningProfileAssetScalarFieldEnum = {
  id: 'id',
  agentId: 'agentId',
  uuid: 'uuid',
  contentHash: 'contentHash',
  name: 'name',
  profileType: 'profileType',
  bundleId: 'bundleId',
  teamId: 'teamId',
  teamName: 'teamName',
  platformsJson: 'platformsJson',
  deviceCount: 'deviceCount',
  deviceUdidsJson: 'deviceUdidsJson',
  certificateSha1sJson: 'certificateSha1sJson',
  createdAt: 'createdAt',
  expiresAt: 'expiresAt',
  expired: 'expired',
  xcodeManaged: 'xcodeManaged',
  observedAt: 'observedAt',
  missingAt: 'missingAt'
} as const

export type SigningProfileAssetScalarFieldEnum = (typeof SigningProfileAssetScalarFieldEnum)[keyof typeof SigningProfileAssetScalarFieldEnum]


export const SigningCertificateAssetScalarFieldEnum = {
  id: 'id',
  agentId: 'agentId',
  sha1: 'sha1',
  sha256: 'sha256',
  name: 'name',
  teamId: 'teamId',
  certificateType: 'certificateType',
  notBefore: 'notBefore',
  expiresAt: 'expiresAt',
  expired: 'expired',
  hasPrivateKey: 'hasPrivateKey',
  observedAt: 'observedAt',
  missingAt: 'missingAt'
} as const

export type SigningCertificateAssetScalarFieldEnum = (typeof SigningCertificateAssetScalarFieldEnum)[keyof typeof SigningCertificateAssetScalarFieldEnum]


export const SigningOperationScalarFieldEnum = {
  id: 'id',
  kind: 'kind',
  assetKey: 'assetKey',
  sourceAgentId: 'sourceAgentId',
  status: 'status',
  error: 'error',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  finishedAt: 'finishedAt'
} as const

export type SigningOperationScalarFieldEnum = (typeof SigningOperationScalarFieldEnum)[keyof typeof SigningOperationScalarFieldEnum]


export const SigningOperationItemScalarFieldEnum = {
  id: 'id',
  operationId: 'operationId',
  agentId: 'agentId',
  jobId: 'jobId',
  status: 'status',
  error: 'error',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  finishedAt: 'finishedAt'
} as const

export type SigningOperationItemScalarFieldEnum = (typeof SigningOperationItemScalarFieldEnum)[keyof typeof SigningOperationItemScalarFieldEnum]


export const PushNotificationSettingsScalarFieldEnum = {
  id: 'id',
  tokenPrivateKeyFingerprint: 'tokenPrivateKeyFingerprint',
  tokenConfiguredAt: 'tokenConfiguredAt',
  tokenLastUsedAt: 'tokenLastUsedAt',
  tokenLastError: 'tokenLastError',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type PushNotificationSettingsScalarFieldEnum = (typeof PushNotificationSettingsScalarFieldEnum)[keyof typeof PushNotificationSettingsScalarFieldEnum]


export const ApnsCertificateCredentialScalarFieldEnum = {
  id: 'id',
  fingerprint: 'fingerprint',
  expiresAt: 'expiresAt',
  lastTestedAt: 'lastTestedAt',
  lastError: 'lastError',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type ApnsCertificateCredentialScalarFieldEnum = (typeof ApnsCertificateCredentialScalarFieldEnum)[keyof typeof ApnsCertificateCredentialScalarFieldEnum]


export const ApnsRegistrationScalarFieldEnum = {
  id: 'id',
  clientRegistrationId: 'clientRegistrationId',
  token: 'token',
  tokenHash: 'tokenHash',
  topic: 'topic',
  environment: 'environment',
  pushTypesJson: 'pushTypesJson',
  displayName: 'displayName',
  deviceModel: 'deviceModel',
  osVersion: 'osVersion',
  appVersion: 'appVersion',
  appBuild: 'appBuild',
  locale: 'locale',
  pushMagic: 'pushMagic',
  lastIpAddress: 'lastIpAddress',
  status: 'status',
  invalidatedAt: 'invalidatedAt',
  lastFailureReason: 'lastFailureReason',
  lastFailureAt: 'lastFailureAt',
  lastRegisteredAt: 'lastRegisteredAt',
  lastSentAt: 'lastSentAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type ApnsRegistrationScalarFieldEnum = (typeof ApnsRegistrationScalarFieldEnum)[keyof typeof ApnsRegistrationScalarFieldEnum]


export const ApnsBroadcastChannelScalarFieldEnum = {
  id: 'id',
  channelId: 'channelId',
  bundleId: 'bundleId',
  environment: 'environment',
  storagePolicy: 'storagePolicy',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type ApnsBroadcastChannelScalarFieldEnum = (typeof ApnsBroadcastChannelScalarFieldEnum)[keyof typeof ApnsBroadcastChannelScalarFieldEnum]


export const PushNotificationPresetScalarFieldEnum = {
  id: 'id',
  name: 'name',
  editorJson: 'editorJson',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type PushNotificationPresetScalarFieldEnum = (typeof PushNotificationPresetScalarFieldEnum)[keyof typeof PushNotificationPresetScalarFieldEnum]


export const PushNotificationBatchScalarFieldEnum = {
  id: 'id',
  requestId: 'requestId',
  status: 'status',
  editorJson: 'editorJson',
  payloadJson: 'payloadJson',
  headersJson: 'headersJson',
  targetMode: 'targetMode',
  channelId: 'channelId',
  recipientCount: 'recipientCount',
  successCount: 'successCount',
  failureCount: 'failureCount',
  error: 'error',
  createdAt: 'createdAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  updatedAt: 'updatedAt'
} as const

export type PushNotificationBatchScalarFieldEnum = (typeof PushNotificationBatchScalarFieldEnum)[keyof typeof PushNotificationBatchScalarFieldEnum]


export const PushNotificationDeliveryScalarFieldEnum = {
  id: 'id',
  batchId: 'batchId',
  registrationId: 'registrationId',
  tokenHash: 'tokenHash',
  topic: 'topic',
  environment: 'environment',
  status: 'status',
  apnsId: 'apnsId',
  responseCode: 'responseCode',
  reason: 'reason',
  responseTimestamp: 'responseTimestamp',
  attempts: 'attempts',
  durationMs: 'durationMs',
  createdAt: 'createdAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt'
} as const

export type PushNotificationDeliveryScalarFieldEnum = (typeof PushNotificationDeliveryScalarFieldEnum)[keyof typeof PushNotificationDeliveryScalarFieldEnum]


export const ApnsPushRecipientSecretScalarFieldEnum = {
  id: 'id',
  deliveryId: 'deliveryId',
  token: 'token',
  createdAt: 'createdAt'
} as const

export type ApnsPushRecipientSecretScalarFieldEnum = (typeof ApnsPushRecipientSecretScalarFieldEnum)[keyof typeof ApnsPushRecipientSecretScalarFieldEnum]


export const BuildDataDeleteProjectionScalarFieldEnum = {
  jobId: 'jobId',
  error: 'error',
  projectedAt: 'projectedAt'
} as const

export type BuildDataDeleteProjectionScalarFieldEnum = (typeof BuildDataDeleteProjectionScalarFieldEnum)[keyof typeof BuildDataDeleteProjectionScalarFieldEnum]


export const WorktreeMoveScalarFieldEnum = {
  id: 'id',
  requestId: 'requestId',
  sourceWorktreeId: 'sourceWorktreeId',
  sourceCodebaseId: 'sourceCodebaseId',
  targetCodebaseId: 'targetCodebaseId',
  targetWorktreeId: 'targetWorktreeId',
  destinationMode: 'destinationMode',
  branch: 'branch',
  headSha: 'headSha',
  baseBranch: 'baseBranch',
  deleteSource: 'deleteSource',
  status: 'status',
  sourceJobId: 'sourceJobId',
  targetJobId: 'targetJobId',
  cleanupJobId: 'cleanupJobId',
  error: 'error',
  warning: 'warning',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  finishedAt: 'finishedAt'
} as const

export type WorktreeMoveScalarFieldEnum = (typeof WorktreeMoveScalarFieldEnum)[keyof typeof WorktreeMoveScalarFieldEnum]


export const WorktreeTagScalarFieldEnum = {
  id: 'id',
  name: 'name',
  color: 'color',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorktreeTagScalarFieldEnum = (typeof WorktreeTagScalarFieldEnum)[keyof typeof WorktreeTagScalarFieldEnum]


export const WorktreeTagAssignmentScalarFieldEnum = {
  worktreeId: 'worktreeId',
  tagId: 'tagId'
} as const

export type WorktreeTagAssignmentScalarFieldEnum = (typeof WorktreeTagAssignmentScalarFieldEnum)[keyof typeof WorktreeTagAssignmentScalarFieldEnum]


export const WorktreeSettingsScalarFieldEnum = {
  id: 'id',
  editorVariant: 'editorVariant',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorktreeSettingsScalarFieldEnum = (typeof WorktreeSettingsScalarFieldEnum)[keyof typeof WorktreeSettingsScalarFieldEnum]


export const ExternalMcpServerScalarFieldEnum = {
  id: 'id',
  name: 'name',
  url: 'url',
  transport: 'transport',
  toolNamePrefix: 'toolNamePrefix',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type ExternalMcpServerScalarFieldEnum = (typeof ExternalMcpServerScalarFieldEnum)[keyof typeof ExternalMcpServerScalarFieldEnum]


export const ExternalMcpServerHeaderScalarFieldEnum = {
  id: 'id',
  serverId: 'serverId',
  name: 'name',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type ExternalMcpServerHeaderScalarFieldEnum = (typeof ExternalMcpServerHeaderScalarFieldEnum)[keyof typeof ExternalMcpServerHeaderScalarFieldEnum]


export const McpToolPresetScalarFieldEnum = {
  id: 'id',
  name: 'name',
  description: 'description',
  iconKey: 'iconKey',
  enabledForPlans: 'enabledForPlans',
  enabledForSessions: 'enabledForSessions',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type McpToolPresetScalarFieldEnum = (typeof McpToolPresetScalarFieldEnum)[keyof typeof McpToolPresetScalarFieldEnum]


export const McpToolPresetToolScalarFieldEnum = {
  presetId: 'presetId',
  toolName: 'toolName',
  createdAt: 'createdAt'
} as const

export type McpToolPresetToolScalarFieldEnum = (typeof McpToolPresetToolScalarFieldEnum)[keyof typeof McpToolPresetToolScalarFieldEnum]


export const ToolCallAuditScalarFieldEnum = {
  id: 'id',
  correlationId: 'correlationId',
  caller: 'caller',
  source: 'source',
  groupId: 'groupId',
  toolName: 'toolName',
  argumentsSha256: 'argumentsSha256',
  resultStatus: 'resultStatus',
  durationMs: 'durationMs',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt'
} as const

export type ToolCallAuditScalarFieldEnum = (typeof ToolCallAuditScalarFieldEnum)[keyof typeof ToolCallAuditScalarFieldEnum]


export const CcusageCollectionScalarFieldEnum = {
  id: 'id',
  deadlineAt: 'deadlineAt',
  finishedAt: 'finishedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CcusageCollectionScalarFieldEnum = (typeof CcusageCollectionScalarFieldEnum)[keyof typeof CcusageCollectionScalarFieldEnum]


export const CcusageCollectionAgentScalarFieldEnum = {
  collectionId: 'collectionId',
  agentId: 'agentId',
  initialStatus: 'initialStatus',
  error: 'error'
} as const

export type CcusageCollectionAgentScalarFieldEnum = (typeof CcusageCollectionAgentScalarFieldEnum)[keyof typeof CcusageCollectionAgentScalarFieldEnum]


export const CcusageHistoryScalarFieldEnum = {
  agentId: 'agentId',
  agentName: 'agentName',
  hostname: 'hostname',
  archivedReportJson: 'archivedReportJson',
  lastLiveReportJson: 'lastLiveReportJson',
  lastObservedAt: 'lastObservedAt',
  lastJobId: 'lastJobId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CcusageHistoryScalarFieldEnum = (typeof CcusageHistoryScalarFieldEnum)[keyof typeof CcusageHistoryScalarFieldEnum]


export const CcusageHistoryStateScalarFieldEnum = {
  id: 'id',
  clearedAt: 'clearedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CcusageHistoryStateScalarFieldEnum = (typeof CcusageHistoryStateScalarFieldEnum)[keyof typeof CcusageHistoryStateScalarFieldEnum]


export const AgentJobLogScalarFieldEnum = {
  id: 'id',
  jobId: 'jobId',
  sequence: 'sequence',
  stream: 'stream',
  message: 'message',
  createdAt: 'createdAt'
} as const

export type AgentJobLogScalarFieldEnum = (typeof AgentJobLogScalarFieldEnum)[keyof typeof AgentJobLogScalarFieldEnum]


export const AgentAuditEventScalarFieldEnum = {
  id: 'id',
  agentId: 'agentId',
  action: 'action',
  details: 'details',
  ipAddress: 'ipAddress',
  createdAt: 'createdAt'
} as const

export type AgentAuditEventScalarFieldEnum = (typeof AgentAuditEventScalarFieldEnum)[keyof typeof AgentAuditEventScalarFieldEnum]


export const JiraSettingsScalarFieldEnum = {
  id: 'id',
  cacheTtlSeconds: 'cacheTtlSeconds',
  webhookEnabled: 'webhookEnabled',
  webhookConfiguredAt: 'webhookConfiguredAt',
  webhookId: 'webhookId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type JiraSettingsScalarFieldEnum = (typeof JiraSettingsScalarFieldEnum)[keyof typeof JiraSettingsScalarFieldEnum]


export const JiraWebhookDeliveryScalarFieldEnum = {
  deliveryId: 'deliveryId',
  event: 'event',
  issueKey: 'issueKey',
  projectKey: 'projectKey',
  changelogJson: 'changelogJson',
  retryCount: 'retryCount',
  outcome: 'outcome',
  error: 'error',
  receivedAt: 'receivedAt',
  processedAt: 'processedAt'
} as const

export type JiraWebhookDeliveryScalarFieldEnum = (typeof JiraWebhookDeliveryScalarFieldEnum)[keyof typeof JiraWebhookDeliveryScalarFieldEnum]


export const JiraProjectScalarFieldEnum = {
  id: 'id',
  jiraId: 'jiraId',
  key: 'key',
  name: 'name',
  avatarUrl: 'avatarUrl',
  position: 'position',
  ticketAssignmentFilter: 'ticketAssignmentFilter',
  hideCompletedTickets: 'hideCompletedTickets',
  completedStatusIdsJson: 'completedStatusIdsJson',
  doneStatusId: 'doneStatusId',
  branchNamingScript: 'branchNamingScript',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type JiraProjectScalarFieldEnum = (typeof JiraProjectScalarFieldEnum)[keyof typeof JiraProjectScalarFieldEnum]


export const JiraSourceScalarFieldEnum = {
  id: 'id',
  projectId: 'projectId',
  name: 'name',
  kind: 'kind',
  value: 'value',
  boardId: 'boardId',
  position: 'position',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type JiraSourceScalarFieldEnum = (typeof JiraSourceScalarFieldEnum)[keyof typeof JiraSourceScalarFieldEnum]


export const JiraCacheEntryScalarFieldEnum = {
  id: 'id',
  cacheKey: 'cacheKey',
  operation: 'operation',
  paramsJson: 'paramsJson',
  responseJson: 'responseJson',
  fetchedAt: 'fetchedAt',
  sourceId: 'sourceId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type JiraCacheEntryScalarFieldEnum = (typeof JiraCacheEntryScalarFieldEnum)[keyof typeof JiraCacheEntryScalarFieldEnum]


export const JiraCachedTicketScalarFieldEnum = {
  issueKey: 'issueKey',
  projectKey: 'projectKey',
  summaryJson: 'summaryJson',
  summaryFetchedAt: 'summaryFetchedAt',
  detailJson: 'detailJson',
  detailFetchedAt: 'detailFetchedAt',
  commentsJson: 'commentsJson',
  commentsFetchedAt: 'commentsFetchedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type JiraCachedTicketScalarFieldEnum = (typeof JiraCachedTicketScalarFieldEnum)[keyof typeof JiraCachedTicketScalarFieldEnum]


export const JiraCacheEntryIssueScalarFieldEnum = {
  cacheEntryId: 'cacheEntryId',
  issueKey: 'issueKey'
} as const

export type JiraCacheEntryIssueScalarFieldEnum = (typeof JiraCacheEntryIssueScalarFieldEnum)[keyof typeof JiraCacheEntryIssueScalarFieldEnum]


export const JiraApiCallLogScalarFieldEnum = {
  id: 'id',
  operation: 'operation',
  requestSummary: 'requestSummary',
  source: 'source',
  durationMs: 'durationMs',
  statusCode: 'statusCode',
  error: 'error',
  itemCount: 'itemCount',
  servedStale: 'servedStale',
  sourceId: 'sourceId',
  createdAt: 'createdAt'
} as const

export type JiraApiCallLogScalarFieldEnum = (typeof JiraApiCallLogScalarFieldEnum)[keyof typeof JiraApiCallLogScalarFieldEnum]


export const GitHubSettingsScalarFieldEnum = {
  id: 'id',
  defaultJiraKeyRegex: 'defaultJiraKeyRegex',
  actionsNotificationPollIntervalSeconds: 'actionsNotificationPollIntervalSeconds',
  cacheTtlSeconds: 'cacheTtlSeconds',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubSettingsScalarFieldEnum = (typeof GitHubSettingsScalarFieldEnum)[keyof typeof GitHubSettingsScalarFieldEnum]


export const GitLabSettingsScalarFieldEnum = {
  id: 'id',
  currentUserId: 'currentUserId',
  currentUsername: 'currentUsername',
  currentUserName: 'currentUserName',
  currentUserAvatarUrl: 'currentUserAvatarUrl',
  currentUserWebUrl: 'currentUserWebUrl',
  version: 'version',
  revision: 'revision',
  verifiedAt: 'verifiedAt',
  pipelinePollIntervalSeconds: 'pipelinePollIntervalSeconds',
  cacheTtlSeconds: 'cacheTtlSeconds',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitLabSettingsScalarFieldEnum = (typeof GitLabSettingsScalarFieldEnum)[keyof typeof GitLabSettingsScalarFieldEnum]


export const GitLabProjectScalarFieldEnum = {
  id: 'id',
  name: 'name',
  pathWithNamespace: 'pathWithNamespace',
  webUrl: 'webUrl',
  defaultBranch: 'defaultBranch',
  visibility: 'visibility',
  enabled: 'enabled',
  webhookId: 'webhookId',
  webhookState: 'webhookState',
  webhookError: 'webhookError',
  webhookConfiguredAt: 'webhookConfiguredAt',
  webhookLastReceivedAt: 'webhookLastReceivedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitLabProjectScalarFieldEnum = (typeof GitLabProjectScalarFieldEnum)[keyof typeof GitLabProjectScalarFieldEnum]


export const GitLabRestCacheEntryScalarFieldEnum = {
  id: 'id',
  cacheKey: 'cacheKey',
  endpoint: 'endpoint',
  operation: 'operation',
  requestJson: 'requestJson',
  responseJson: 'responseJson',
  responseHeadersJson: 'responseHeadersJson',
  fetchedAt: 'fetchedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitLabRestCacheEntryScalarFieldEnum = (typeof GitLabRestCacheEntryScalarFieldEnum)[keyof typeof GitLabRestCacheEntryScalarFieldEnum]


export const GitLabRestCacheTtlOverrideScalarFieldEnum = {
  operation: 'operation',
  ttlSeconds: 'ttlSeconds',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitLabRestCacheTtlOverrideScalarFieldEnum = (typeof GitLabRestCacheTtlOverrideScalarFieldEnum)[keyof typeof GitLabRestCacheTtlOverrideScalarFieldEnum]


export const GitLabApiCallLogScalarFieldEnum = {
  id: 'id',
  method: 'method',
  endpoint: 'endpoint',
  operation: 'operation',
  requestSource: 'requestSource',
  requestSummary: 'requestSummary',
  source: 'source',
  durationMs: 'durationMs',
  statusCode: 'statusCode',
  error: 'error',
  servedStale: 'servedStale',
  rateLimitLimit: 'rateLimitLimit',
  rateLimitRemaining: 'rateLimitRemaining',
  rateLimitResetAt: 'rateLimitResetAt',
  requestId: 'requestId',
  createdAt: 'createdAt'
} as const

export type GitLabApiCallLogScalarFieldEnum = (typeof GitLabApiCallLogScalarFieldEnum)[keyof typeof GitLabApiCallLogScalarFieldEnum]


export const GitLabRateLimitSnapshotScalarFieldEnum = {
  id: 'id',
  resource: 'resource',
  limit: 'limit',
  remaining: 'remaining',
  resetAt: 'resetAt',
  observedAt: 'observedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitLabRateLimitSnapshotScalarFieldEnum = (typeof GitLabRateLimitSnapshotScalarFieldEnum)[keyof typeof GitLabRateLimitSnapshotScalarFieldEnum]


export const GitLabWebhookDeliveryScalarFieldEnum = {
  id: 'id',
  webhookId: 'webhookId',
  eventType: 'eventType',
  projectId: 'projectId',
  objectKind: 'objectKind',
  action: 'action',
  outcome: 'outcome',
  error: 'error',
  payloadJson: 'payloadJson',
  receivedAt: 'receivedAt',
  processedAt: 'processedAt',
  createdAt: 'createdAt'
} as const

export type GitLabWebhookDeliveryScalarFieldEnum = (typeof GitLabWebhookDeliveryScalarFieldEnum)[keyof typeof GitLabWebhookDeliveryScalarFieldEnum]


export const GitLabPipelineSnapshotScalarFieldEnum = {
  id: 'id',
  projectId: 'projectId',
  headSha: 'headSha',
  status: 'status',
  lastObservedAt: 'lastObservedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitLabPipelineSnapshotScalarFieldEnum = (typeof GitLabPipelineSnapshotScalarFieldEnum)[keyof typeof GitLabPipelineSnapshotScalarFieldEnum]


export const GitLabPipelineRecordScalarFieldEnum = {
  id: 'id',
  snapshotId: 'snapshotId',
  pipelineId: 'pipelineId',
  ref: 'ref',
  status: 'status',
  webUrl: 'webUrl',
  source: 'source',
  jobsJson: 'jobsJson',
  gitlabUpdatedAt: 'gitlabUpdatedAt',
  lastObservedAt: 'lastObservedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitLabPipelineRecordScalarFieldEnum = (typeof GitLabPipelineRecordScalarFieldEnum)[keyof typeof GitLabPipelineRecordScalarFieldEnum]


export const GitLabAutoRetryRuleScalarFieldEnum = {
  id: 'id',
  projectId: 'projectId',
  pipelineId: 'pipelineId',
  enabled: 'enabled',
  maxAttempts: 'maxAttempts',
  attempts: 'attempts',
  lastError: 'lastError',
  lastAttemptAt: 'lastAttemptAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitLabAutoRetryRuleScalarFieldEnum = (typeof GitLabAutoRetryRuleScalarFieldEnum)[keyof typeof GitLabAutoRetryRuleScalarFieldEnum]


export const GitLabAutoRetryExecutionScalarFieldEnum = {
  id: 'id',
  ruleId: 'ruleId',
  pipelineId: 'pipelineId',
  attempt: 'attempt',
  status: 'status',
  lastError: 'lastError',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitLabAutoRetryExecutionScalarFieldEnum = (typeof GitLabAutoRetryExecutionScalarFieldEnum)[keyof typeof GitLabAutoRetryExecutionScalarFieldEnum]


export const GitHubGraphqlCacheEntryScalarFieldEnum = {
  id: 'id',
  cacheKey: 'cacheKey',
  authentication: 'authentication',
  endpoint: 'endpoint',
  operation: 'operation',
  query: 'query',
  variablesJson: 'variablesJson',
  responseJson: 'responseJson',
  fetchedAt: 'fetchedAt',
  pointCost: 'pointCost',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubGraphqlCacheEntryScalarFieldEnum = (typeof GitHubGraphqlCacheEntryScalarFieldEnum)[keyof typeof GitHubGraphqlCacheEntryScalarFieldEnum]


export const GitHubGraphqlCacheTtlOverrideScalarFieldEnum = {
  operation: 'operation',
  ttlSeconds: 'ttlSeconds',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubGraphqlCacheTtlOverrideScalarFieldEnum = (typeof GitHubGraphqlCacheTtlOverrideScalarFieldEnum)[keyof typeof GitHubGraphqlCacheTtlOverrideScalarFieldEnum]


export const GitHubApiCallLogScalarFieldEnum = {
  id: 'id',
  authentication: 'authentication',
  apiType: 'apiType',
  method: 'method',
  endpoint: 'endpoint',
  operation: 'operation',
  requestSource: 'requestSource',
  requestSummary: 'requestSummary',
  variablesJson: 'variablesJson',
  source: 'source',
  durationMs: 'durationMs',
  statusCode: 'statusCode',
  error: 'error',
  servedStale: 'servedStale',
  pointCost: 'pointCost',
  pointsAvoided: 'pointsAvoided',
  rateLimitLimit: 'rateLimitLimit',
  rateLimitRemaining: 'rateLimitRemaining',
  rateLimitUsed: 'rateLimitUsed',
  rateLimitResetAt: 'rateLimitResetAt',
  rateLimitResource: 'rateLimitResource',
  createdAt: 'createdAt'
} as const

export type GitHubApiCallLogScalarFieldEnum = (typeof GitHubApiCallLogScalarFieldEnum)[keyof typeof GitHubApiCallLogScalarFieldEnum]


export const GitHubRateLimitSnapshotScalarFieldEnum = {
  id: 'id',
  authentication: 'authentication',
  resource: 'resource',
  limit: 'limit',
  remaining: 'remaining',
  used: 'used',
  resetAt: 'resetAt',
  observedAt: 'observedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubRateLimitSnapshotScalarFieldEnum = (typeof GitHubRateLimitSnapshotScalarFieldEnum)[keyof typeof GitHubRateLimitSnapshotScalarFieldEnum]


export const GitHubAppSettingsScalarFieldEnum = {
  id: 'id',
  keyFingerprint: 'keyFingerprint',
  appSlug: 'appSlug',
  appOwnerLogin: 'appOwnerLogin',
  appOwnerType: 'appOwnerType',
  accountLogin: 'accountLogin',
  repositorySelection: 'repositorySelection',
  actionsPermission: 'actionsPermission',
  checksPermission: 'checksPermission',
  commitStatusesPermission: 'commitStatusesPermission',
  webhookEventsJson: 'webhookEventsJson',
  enhancedPipelineWebhooksEnabled: 'enhancedPipelineWebhooksEnabled',
  verifiedAt: 'verifiedAt',
  webhookConfiguredAt: 'webhookConfiguredAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubAppSettingsScalarFieldEnum = (typeof GitHubAppSettingsScalarFieldEnum)[keyof typeof GitHubAppSettingsScalarFieldEnum]


export const GitHubWebhookDeliveryScalarFieldEnum = {
  deliveryId: 'deliveryId',
  event: 'event',
  action: 'action',
  repositoryName: 'repositoryName',
  workflowRunId: 'workflowRunId',
  outcome: 'outcome',
  error: 'error',
  receivedAt: 'receivedAt',
  processedAt: 'processedAt'
} as const

export type GitHubWebhookDeliveryScalarFieldEnum = (typeof GitHubWebhookDeliveryScalarFieldEnum)[keyof typeof GitHubWebhookDeliveryScalarFieldEnum]


export const GitHubWorkflowRunObservationScalarFieldEnum = {
  id: 'id',
  codebaseRepositoryId: 'codebaseRepositoryId',
  workflowRunId: 'workflowRunId',
  runAttempt: 'runAttempt',
  workflowId: 'workflowId',
  status: 'status',
  conclusion: 'conclusion',
  githubUpdatedAt: 'githubUpdatedAt',
  source: 'source',
  notifiedAt: 'notifiedAt',
  firstObservedAt: 'firstObservedAt',
  lastObservedAt: 'lastObservedAt'
} as const

export type GitHubWorkflowRunObservationScalarFieldEnum = (typeof GitHubWorkflowRunObservationScalarFieldEnum)[keyof typeof GitHubWorkflowRunObservationScalarFieldEnum]


export const GitHubActionsPollingStateScalarFieldEnum = {
  codebaseRepositoryId: 'codebaseRepositoryId',
  initializedAt: 'initializedAt',
  lastPollStartedAt: 'lastPollStartedAt',
  lastPollCompletedAt: 'lastPollCompletedAt',
  lastPollSucceededAt: 'lastPollSucceededAt',
  lastError: 'lastError',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubActionsPollingStateScalarFieldEnum = (typeof GitHubActionsPollingStateScalarFieldEnum)[keyof typeof GitHubActionsPollingStateScalarFieldEnum]


export const CredentialScalarFieldEnum = {
  id: 'id',
  kind: 'kind',
  ownerId: 'ownerId',
  storageType: 'storageType',
  payload: 'payload',
  encrypted: 'encrypted',
  encryptionVersion: 'encryptionVersion',
  nonce: 'nonce',
  authTag: 'authTag',
  keyFingerprint: 'keyFingerprint',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]


export const GitHubAuditEventScalarFieldEnum = {
  id: 'id',
  scopeId: 'scopeId',
  actor: 'actor',
  ipAddress: 'ipAddress',
  operation: 'operation',
  repositoryId: 'repositoryId',
  checkSuiteId: 'checkSuiteId',
  jobId: 'jobId',
  githubRequestId: 'githubRequestId',
  outcome: 'outcome',
  errorCode: 'errorCode',
  autoRetryRuleId: 'autoRetryRuleId',
  autoRetryExecutionId: 'autoRetryExecutionId',
  createdAt: 'createdAt'
} as const

export type GitHubAuditEventScalarFieldEnum = (typeof GitHubAuditEventScalarFieldEnum)[keyof typeof GitHubAuditEventScalarFieldEnum]


export const GitHubAutoRetryRuleScalarFieldEnum = {
  id: 'id',
  scope: 'scope',
  codebaseRepositoryId: 'codebaseRepositoryId',
  repositoryGithubId: 'repositoryGithubId',
  worktreeId: 'worktreeId',
  branch: 'branch',
  pullRequestNumber: 'pullRequestNumber',
  allWorkflows: 'allWorkflows',
  mode: 'mode',
  retryLimit: 'retryLimit',
  failureStrategy: 'failureStrategy',
  status: 'status',
  enabled: 'enabled',
  lastError: 'lastError',
  activatedAt: 'activatedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubAutoRetryRuleScalarFieldEnum = (typeof GitHubAutoRetryRuleScalarFieldEnum)[keyof typeof GitHubAutoRetryRuleScalarFieldEnum]


export const GitHubAutoRetryTargetScalarFieldEnum = {
  id: 'id',
  ruleId: 'ruleId',
  workflowId: 'workflowId',
  workflowRunId: 'workflowRunId',
  jobName: 'jobName',
  createdAt: 'createdAt'
} as const

export type GitHubAutoRetryTargetScalarFieldEnum = (typeof GitHubAutoRetryTargetScalarFieldEnum)[keyof typeof GitHubAutoRetryTargetScalarFieldEnum]


export const GitHubAutoRetryExecutionScalarFieldEnum = {
  id: 'id',
  ruleId: 'ruleId',
  workflowRunId: 'workflowRunId',
  workflowId: 'workflowId',
  targetKey: 'targetKey',
  status: 'status',
  observedAttempt: 'observedAttempt',
  automaticRetries: 'automaticRetries',
  pendingFromAttempt: 'pendingFromAttempt',
  lastStatus: 'lastStatus',
  lastError: 'lastError',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubAutoRetryExecutionScalarFieldEnum = (typeof GitHubAutoRetryExecutionScalarFieldEnum)[keyof typeof GitHubAutoRetryExecutionScalarFieldEnum]


export const GitHubRepositoryScalarFieldEnum = {
  id: 'id',
  githubId: 'githubId',
  owner: 'owner',
  name: 'name',
  nameWithOwner: 'nameWithOwner',
  url: 'url',
  jiraKeyRegex: 'jiraKeyRegex',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type GitHubRepositoryScalarFieldEnum = (typeof GitHubRepositoryScalarFieldEnum)[keyof typeof GitHubRepositoryScalarFieldEnum]


export const WorkflowScalarFieldEnum = {
  id: 'id',
  name: 'name',
  description: 'description',
  draftDefinitionJson: 'draftDefinitionJson',
  draftSchemaVersion: 'draftSchemaVersion',
  activeVersionId: 'activeVersionId',
  enabled: 'enabled',
  overlapPolicy: 'overlapPolicy',
  overlapScope: 'overlapScope',
  maxConcurrentRuns: 'maxConcurrentRuns',
  completionNotificationsEnabled: 'completionNotificationsEnabled',
  exclusiveWorktree: 'exclusiveWorktree',
  worktreeConcurrency: 'worktreeConcurrency',
  blocksGitOperations: 'blocksGitOperations',
  quickActionKind: 'quickActionKind',
  quickActionIconKey: 'quickActionIconKey',
  quickActionButtonVariant: 'quickActionButtonVariant',
  archivedAt: 'archivedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorkflowScalarFieldEnum = (typeof WorkflowScalarFieldEnum)[keyof typeof WorkflowScalarFieldEnum]


export const WorkflowQuickActionRepositoryScalarFieldEnum = {
  workflowId: 'workflowId',
  repositoryId: 'repositoryId',
  createdAt: 'createdAt'
} as const

export type WorkflowQuickActionRepositoryScalarFieldEnum = (typeof WorkflowQuickActionRepositoryScalarFieldEnum)[keyof typeof WorkflowQuickActionRepositoryScalarFieldEnum]


export const CommandDefinitionScalarFieldEnum = {
  id: 'id',
  name: 'name',
  description: 'description',
  script: 'script',
  targetKind: 'targetKind',
  targetAgentId: 'targetAgentId',
  restartPolicy: 'restartPolicy',
  restartLimit: 'restartLimit',
  concurrency: 'concurrency',
  blocksGitOperations: 'blocksGitOperations',
  quickActionEnabled: 'quickActionEnabled',
  quickActionIconKey: 'quickActionIconKey',
  quickActionButtonVariant: 'quickActionButtonVariant',
  notificationsEnabled: 'notificationsEnabled',
  archivedAt: 'archivedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CommandDefinitionScalarFieldEnum = (typeof CommandDefinitionScalarFieldEnum)[keyof typeof CommandDefinitionScalarFieldEnum]


export const CommandDefinitionRepositoryScalarFieldEnum = {
  commandId: 'commandId',
  repositoryId: 'repositoryId',
  createdAt: 'createdAt'
} as const

export type CommandDefinitionRepositoryScalarFieldEnum = (typeof CommandDefinitionRepositoryScalarFieldEnum)[keyof typeof CommandDefinitionRepositoryScalarFieldEnum]


export const CommandRunScalarFieldEnum = {
  id: 'id',
  displayNumber: 'displayNumber',
  commandId: 'commandId',
  idempotencyKey: 'idempotencyKey',
  origin: 'origin',
  status: 'status',
  snapshotName: 'snapshotName',
  snapshotDescription: 'snapshotDescription',
  snapshotScript: 'snapshotScript',
  snapshotTargetKind: 'snapshotTargetKind',
  snapshotRestartPolicy: 'snapshotRestartPolicy',
  snapshotRestartLimit: 'snapshotRestartLimit',
  snapshotConcurrency: 'snapshotConcurrency',
  snapshotBlocksGitOperations: 'snapshotBlocksGitOperations',
  snapshotNotificationsEnabled: 'snapshotNotificationsEnabled',
  snapshotJson: 'snapshotJson',
  agentId: 'agentId',
  worktreeId: 'worktreeId',
  agentName: 'agentName',
  agentHostname: 'agentHostname',
  worktreePath: 'worktreePath',
  worktreeBranch: 'worktreeBranch',
  restartCount: 'restartCount',
  stopRequested: 'stopRequested',
  nextRestartAt: 'nextRestartAt',
  predecessorRunId: 'predecessorRunId',
  error: 'error',
  exitCode: 'exitCode',
  signal: 'signal',
  queuedAt: 'queuedAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  archivedAt: 'archivedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CommandRunScalarFieldEnum = (typeof CommandRunScalarFieldEnum)[keyof typeof CommandRunScalarFieldEnum]


export const CommandRunAttemptScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  attempt: 'attempt',
  agentJobId: 'agentJobId',
  status: 'status',
  exitCode: 'exitCode',
  signal: 'signal',
  error: 'error',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  completionProcessedAt: 'completionProcessedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type CommandRunAttemptScalarFieldEnum = (typeof CommandRunAttemptScalarFieldEnum)[keyof typeof CommandRunAttemptScalarFieldEnum]


export const CommandRunOutputChunkScalarFieldEnum = {
  id: 'id',
  attemptId: 'attemptId',
  sequence: 'sequence',
  stream: 'stream',
  dataBase64: 'dataBase64',
  byteLength: 'byteLength',
  createdAt: 'createdAt'
} as const

export type CommandRunOutputChunkScalarFieldEnum = (typeof CommandRunOutputChunkScalarFieldEnum)[keyof typeof CommandRunOutputChunkScalarFieldEnum]


export const CommandRunNumberSequenceScalarFieldEnum = {
  id: 'id',
  nextValue: 'nextValue',
  updatedAt: 'updatedAt'
} as const

export type CommandRunNumberSequenceScalarFieldEnum = (typeof CommandRunNumberSequenceScalarFieldEnum)[keyof typeof CommandRunNumberSequenceScalarFieldEnum]


export const WorkflowVersionScalarFieldEnum = {
  id: 'id',
  workflowId: 'workflowId',
  version: 'version',
  name: 'name',
  description: 'description',
  schemaVersion: 'schemaVersion',
  definitionJson: 'definitionJson',
  contentHash: 'contentHash',
  publishedAt: 'publishedAt',
  createdAt: 'createdAt'
} as const

export type WorkflowVersionScalarFieldEnum = (typeof WorkflowVersionScalarFieldEnum)[keyof typeof WorkflowVersionScalarFieldEnum]


export const WorkflowTriggerScalarFieldEnum = {
  id: 'id',
  versionId: 'versionId',
  nodeId: 'nodeId',
  kind: 'kind',
  configJson: 'configJson',
  createdAt: 'createdAt'
} as const

export type WorkflowTriggerScalarFieldEnum = (typeof WorkflowTriggerScalarFieldEnum)[keyof typeof WorkflowTriggerScalarFieldEnum]


export const WorkflowTriggerStateScalarFieldEnum = {
  id: 'id',
  triggerId: 'triggerId',
  subjectKey: 'subjectKey',
  cursorJson: 'cursorJson',
  lastMatched: 'lastMatched',
  lastFiredAt: 'lastFiredAt',
  nextScheduledAt: 'nextScheduledAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorkflowTriggerStateScalarFieldEnum = (typeof WorkflowTriggerStateScalarFieldEnum)[keyof typeof WorkflowTriggerStateScalarFieldEnum]


export const WorkflowTriggerEventScalarFieldEnum = {
  id: 'id',
  kind: 'kind',
  subjectKey: 'subjectKey',
  dedupeKey: 'dedupeKey',
  payloadJson: 'payloadJson',
  status: 'status',
  receivedAt: 'receivedAt',
  processedAt: 'processedAt',
  error: 'error'
} as const

export type WorkflowTriggerEventScalarFieldEnum = (typeof WorkflowTriggerEventScalarFieldEnum)[keyof typeof WorkflowTriggerEventScalarFieldEnum]


export const WorkflowTriggerDeliveryScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  createdAt: 'createdAt'
} as const

export type WorkflowTriggerDeliveryScalarFieldEnum = (typeof WorkflowTriggerDeliveryScalarFieldEnum)[keyof typeof WorkflowTriggerDeliveryScalarFieldEnum]


export const WorkflowRunScalarFieldEnum = {
  id: 'id',
  displayNumber: 'displayNumber',
  workflowId: 'workflowId',
  versionId: 'versionId',
  triggerId: 'triggerId',
  triggerEventId: 'triggerEventId',
  parentRunId: 'parentRunId',
  worktreeId: 'worktreeId',
  worktreeLeaseOwnerRunId: 'worktreeLeaseOwnerRunId',
  exclusiveWorktree: 'exclusiveWorktree',
  worktreeConcurrency: 'worktreeConcurrency',
  blocksGitOperations: 'blocksGitOperations',
  idempotencyKey: 'idempotencyKey',
  triggerKind: 'triggerKind',
  triggerSubjectKey: 'triggerSubjectKey',
  triggerPayloadJson: 'triggerPayloadJson',
  status: 'status',
  phase: 'phase',
  generation: 'generation',
  sessionDataJson: 'sessionDataJson',
  sessionRevision: 'sessionRevision',
  blockedReason: 'blockedReason',
  error: 'error',
  queuedAt: 'queuedAt',
  startedAt: 'startedAt',
  pausedAt: 'pausedAt',
  finishedAt: 'finishedAt',
  archivedAt: 'archivedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorkflowRunScalarFieldEnum = (typeof WorkflowRunScalarFieldEnum)[keyof typeof WorkflowRunScalarFieldEnum]


export const WorkflowRunNumberSequenceScalarFieldEnum = {
  id: 'id',
  nextValue: 'nextValue',
  updatedAt: 'updatedAt'
} as const

export type WorkflowRunNumberSequenceScalarFieldEnum = (typeof WorkflowRunNumberSequenceScalarFieldEnum)[keyof typeof WorkflowRunNumberSequenceScalarFieldEnum]


export const WorkflowStepAttemptScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  nodeId: 'nodeId',
  kind: 'kind',
  generation: 'generation',
  iterationKey: 'iterationKey',
  attempt: 'attempt',
  status: 'status',
  phase: 'phase',
  inputJson: 'inputJson',
  outputJson: 'outputJson',
  error: 'error',
  requiredPathsJson: 'requiredPathsJson',
  providedPathsJson: 'providedPathsJson',
  resourceLockKey: 'resourceLockKey',
  idempotencyKey: 'idempotencyKey',
  claimOwner: 'claimOwner',
  claimExpiresAt: 'claimExpiresAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  supersededAt: 'supersededAt',
  replayedFromId: 'replayedFromId',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

export type WorkflowStepAttemptScalarFieldEnum = (typeof WorkflowStepAttemptScalarFieldEnum)[keyof typeof WorkflowStepAttemptScalarFieldEnum]


export const WorkflowWaitScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  attemptId: 'attemptId',
  kind: 'kind',
  status: 'status',
  predicateJson: 'predicateJson',
  externalKey: 'externalKey',
  resumeAfter: 'resumeAfter',
  timeoutAt: 'timeoutAt',
  resultJson: 'resultJson',
  createdAt: 'createdAt',
  resolvedAt: 'resolvedAt',
  updatedAt: 'updatedAt'
} as const

export type WorkflowWaitScalarFieldEnum = (typeof WorkflowWaitScalarFieldEnum)[keyof typeof WorkflowWaitScalarFieldEnum]


export const WorkflowRunEventScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  attemptId: 'attemptId',
  sequence: 'sequence',
  type: 'type',
  message: 'message',
  detailJson: 'detailJson',
  createdAt: 'createdAt'
} as const

export type WorkflowRunEventScalarFieldEnum = (typeof WorkflowRunEventScalarFieldEnum)[keyof typeof WorkflowRunEventScalarFieldEnum]


export const WorkflowRunResourceLinkScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  attemptId: 'attemptId',
  kind: 'kind',
  resourceId: 'resourceId',
  label: 'label',
  url: 'url',
  metadataJson: 'metadataJson',
  createdAt: 'createdAt'
} as const

export type WorkflowRunResourceLinkScalarFieldEnum = (typeof WorkflowRunResourceLinkScalarFieldEnum)[keyof typeof WorkflowRunResourceLinkScalarFieldEnum]


export const WorkflowResourceLeaseScalarFieldEnum = {
  key: 'key',
  runId: 'runId',
  attemptId: 'attemptId',
  expiresAt: 'expiresAt',
  createdAt: 'createdAt'
} as const

export type WorkflowResourceLeaseScalarFieldEnum = (typeof WorkflowResourceLeaseScalarFieldEnum)[keyof typeof WorkflowResourceLeaseScalarFieldEnum]


export const SortOrder = {
  asc: 'asc',
  desc: 'desc'
} as const

export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]


export const NullsOrder = {
  first: 'first',
  last: 'last'
} as const

export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]

