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

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 = {
  thread_sessions: 'thread_sessions',
  session_events: 'session_events',
  part_messages: 'part_messages',
  bot_tokens: 'bot_tokens',
  channel_directories: 'channel_directories',
  bot_api_keys: 'bot_api_keys',
  thread_worktrees: 'thread_worktrees',
  channel_models: 'channel_models',
  session_models: 'session_models',
  channel_agents: 'channel_agents',
  session_agents: 'session_agents',
  channel_worktrees: 'channel_worktrees',
  channel_verbosity: 'channel_verbosity',
  channel_mention_mode: 'channel_mention_mode',
  global_models: 'global_models',
  scheduled_tasks: 'scheduled_tasks',
  session_start_sources: 'session_start_sources',
  forum_sync_configs: 'forum_sync_configs',
  ipc_requests: 'ipc_requests'
} 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 Thread_sessionsScalarFieldEnum = {
  thread_id: 'thread_id',
  session_id: 'session_id',
  created_at: 'created_at'
} as const

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


export const Session_eventsScalarFieldEnum = {
  id: 'id',
  session_id: 'session_id',
  thread_id: 'thread_id',
  timestamp: 'timestamp',
  event_index: 'event_index',
  event_json: 'event_json'
} as const

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


export const Part_messagesScalarFieldEnum = {
  part_id: 'part_id',
  message_id: 'message_id',
  thread_id: 'thread_id',
  created_at: 'created_at'
} as const

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


export const Bot_tokensScalarFieldEnum = {
  app_id: 'app_id',
  token: 'token',
  bot_mode: 'bot_mode',
  client_id: 'client_id',
  client_secret: 'client_secret',
  proxy_url: 'proxy_url',
  created_at: 'created_at',
  last_used_at: 'last_used_at'
} as const

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


export const Channel_directoriesScalarFieldEnum = {
  channel_id: 'channel_id',
  directory: 'directory',
  channel_type: 'channel_type',
  created_at: 'created_at'
} as const

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


export const Bot_api_keysScalarFieldEnum = {
  app_id: 'app_id',
  gemini_api_key: 'gemini_api_key',
  openai_api_key: 'openai_api_key',
  xai_api_key: 'xai_api_key',
  created_at: 'created_at'
} as const

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


export const Thread_worktreesScalarFieldEnum = {
  thread_id: 'thread_id',
  worktree_name: 'worktree_name',
  worktree_directory: 'worktree_directory',
  project_directory: 'project_directory',
  status: 'status',
  error_message: 'error_message',
  created_at: 'created_at'
} as const

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


export const Channel_modelsScalarFieldEnum = {
  channel_id: 'channel_id',
  model_id: 'model_id',
  variant: 'variant',
  created_at: 'created_at',
  updated_at: 'updated_at'
} as const

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


export const Session_modelsScalarFieldEnum = {
  session_id: 'session_id',
  model_id: 'model_id',
  variant: 'variant',
  created_at: 'created_at'
} as const

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


export const Channel_agentsScalarFieldEnum = {
  channel_id: 'channel_id',
  agent_name: 'agent_name',
  created_at: 'created_at',
  updated_at: 'updated_at'
} as const

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


export const Session_agentsScalarFieldEnum = {
  session_id: 'session_id',
  agent_name: 'agent_name',
  created_at: 'created_at'
} as const

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


export const Channel_worktreesScalarFieldEnum = {
  channel_id: 'channel_id',
  enabled: 'enabled',
  created_at: 'created_at',
  updated_at: 'updated_at'
} as const

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


export const Channel_verbosityScalarFieldEnum = {
  channel_id: 'channel_id',
  verbosity: 'verbosity',
  updated_at: 'updated_at'
} as const

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


export const Channel_mention_modeScalarFieldEnum = {
  channel_id: 'channel_id',
  enabled: 'enabled',
  created_at: 'created_at',
  updated_at: 'updated_at'
} as const

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


export const Global_modelsScalarFieldEnum = {
  app_id: 'app_id',
  model_id: 'model_id',
  variant: 'variant',
  created_at: 'created_at',
  updated_at: 'updated_at'
} as const

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


export const Scheduled_tasksScalarFieldEnum = {
  id: 'id',
  status: 'status',
  schedule_kind: 'schedule_kind',
  run_at: 'run_at',
  cron_expr: 'cron_expr',
  timezone: 'timezone',
  next_run_at: 'next_run_at',
  running_started_at: 'running_started_at',
  last_run_at: 'last_run_at',
  last_error: 'last_error',
  attempts: 'attempts',
  payload_json: 'payload_json',
  prompt_preview: 'prompt_preview',
  channel_id: 'channel_id',
  thread_id: 'thread_id',
  session_id: 'session_id',
  project_directory: 'project_directory',
  created_at: 'created_at',
  updated_at: 'updated_at'
} as const

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


export const Session_start_sourcesScalarFieldEnum = {
  session_id: 'session_id',
  schedule_kind: 'schedule_kind',
  scheduled_task_id: 'scheduled_task_id',
  created_at: 'created_at',
  updated_at: 'updated_at'
} as const

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


export const Forum_sync_configsScalarFieldEnum = {
  id: 'id',
  app_id: 'app_id',
  forum_channel_id: 'forum_channel_id',
  output_dir: 'output_dir',
  direction: 'direction',
  created_at: 'created_at',
  updated_at: 'updated_at'
} as const

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


export const Ipc_requestsScalarFieldEnum = {
  id: 'id',
  type: 'type',
  session_id: 'session_id',
  thread_id: 'thread_id',
  payload: 'payload',
  response: 'response',
  status: 'status',
  created_at: 'created_at',
  updated_at: 'updated_at'
} as const

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


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]

