
/* !!! 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 = {
  User: 'User',
  Session: 'Session',
  Account: 'Account',
  Verification: 'Verification',
  Apikey: 'Apikey',
  Organization: 'Organization',
  OrganizationRole: 'OrganizationRole',
  Member: 'Member',
  Invitation: 'Invitation',
  Subscription: 'Subscription',
  PhoneNumber: 'PhoneNumber',
  Agent: 'Agent',
  AgentConfiguration: 'AgentConfiguration',
  KnowledgeSource: 'KnowledgeSource',
  CallLog: 'CallLog',
  CallTranscript: 'CallTranscript',
  OutboundCall: 'OutboundCall',
  Campaign: 'Campaign',
  Tool: 'Tool',
  McpServerCatalogItem: 'McpServerCatalogItem',
  McpConnection: 'McpConnection',
  AgentMcpConnection: 'AgentMcpConnection',
  McpToolExecutionLog: 'McpToolExecutionLog',
  Secret: 'Secret',
  AuditLog: 'AuditLog'
} as const

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

/*
 * Enums
 */

export const TransactionIsolationLevel = runtime.makeStrictEnum({
  ReadUncommitted: 'ReadUncommitted',
  ReadCommitted: 'ReadCommitted',
  RepeatableRead: 'RepeatableRead',
  Serializable: 'Serializable'
} as const)

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


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

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


export const AccountScalarFieldEnum = {
  id: 'id',
  accountId: 'accountId',
  providerId: 'providerId',
  userId: 'userId',
  accessToken: 'accessToken',
  refreshToken: 'refreshToken',
  idToken: 'idToken',
  accessTokenExpiresAt: 'accessTokenExpiresAt',
  refreshTokenExpiresAt: 'refreshTokenExpiresAt',
  scope: 'scope',
  password: 'password',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const VerificationScalarFieldEnum = {
  id: 'id',
  identifier: 'identifier',
  value: 'value',
  expiresAt: 'expiresAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const 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 OrganizationScalarFieldEnum = {
  id: 'id',
  name: 'name',
  slug: 'slug',
  logo: 'logo',
  createdAt: 'createdAt',
  metadata: 'metadata',
  stripeCustomerId: 'stripeCustomerId',
  accessKey: 'accessKey',
  plan: 'plan'
} as const

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


export const OrganizationRoleScalarFieldEnum = {
  id: 'id',
  organizationId: 'organizationId',
  role: 'role',
  permission: 'permission',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const MemberScalarFieldEnum = {
  id: 'id',
  organizationId: 'organizationId',
  userId: 'userId',
  role: 'role',
  createdAt: 'createdAt'
} as const

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


export const InvitationScalarFieldEnum = {
  id: 'id',
  organizationId: 'organizationId',
  email: 'email',
  role: 'role',
  status: 'status',
  expiresAt: 'expiresAt',
  createdAt: 'createdAt',
  inviterId: 'inviterId'
} as const

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


export const SubscriptionScalarFieldEnum = {
  id: 'id',
  plan: 'plan',
  referenceId: 'referenceId',
  stripeCustomerId: 'stripeCustomerId',
  stripeSubscriptionId: 'stripeSubscriptionId',
  status: 'status',
  periodStart: 'periodStart',
  periodEnd: 'periodEnd',
  trialStart: 'trialStart',
  trialEnd: 'trialEnd',
  cancelAtPeriodEnd: 'cancelAtPeriodEnd',
  cancelAt: 'cancelAt',
  canceledAt: 'canceledAt',
  endedAt: 'endedAt',
  seats: 'seats',
  billingInterval: 'billingInterval',
  stripeScheduleId: 'stripeScheduleId'
} as const

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


export const PhoneNumberScalarFieldEnum = {
  phId: 'phId',
  number: 'number',
  organizationId: 'organizationId',
  userId: 'userId',
  agentId: 'agentId',
  sid: 'sid',
  friendlyName: 'friendlyName',
  provider: 'provider',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const AgentScalarFieldEnum = {
  agentId: 'agentId',
  agentSlug: 'agentSlug',
  organizationId: 'organizationId',
  userId: 'userId',
  name: 'name',
  templateId: 'templateId',
  isActive: 'isActive',
  isConfigured: 'isConfigured',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  callLogsCount: 'callLogsCount',
  knowledgeSourcesCount: 'knowledgeSourcesCount',
  phoneNumbersCount: 'phoneNumbersCount',
  toolsCount: 'toolsCount'
} as const

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


export const AgentConfigurationScalarFieldEnum = {
  agentConfigId: 'agentConfigId',
  agentId: 'agentId',
  systemPrompt: 'systemPrompt',
  firstMessage: 'firstMessage',
  temperature: 'temperature',
  data_needed: 'data_needed',
  data_evaluation: 'data_evaluation',
  voiceId: 'voiceId',
  concurrent_calls_limit: 'concurrent_calls_limit',
  conversation_retention_days: 'conversation_retention_days',
  daily_calls_limit: 'daily_calls_limit',
  enable_auth_for_agent_api: 'enable_auth_for_agent_api',
  max_conversation_duration_seconds: 'max_conversation_duration_seconds',
  optimize_streaming_latency: 'optimize_streaming_latency',
  silence_end_call_timeout_seconds: 'silence_end_call_timeout_seconds',
  store_call_audio: 'store_call_audio',
  tokenLimit: 'tokenLimit',
  tts_output_format: 'tts_output_format',
  turn_timeout_seconds: 'turn_timeout_seconds',
  update_at: 'update_at',
  use_flash_call: 'use_flash_call',
  use_rag: 'use_rag',
  user_input_audio_format: 'user_input_audio_format',
  voice_similarity_boost: 'voice_similarity_boost',
  voice_speed: 'voice_speed',
  voice_stability: 'voice_stability',
  zero_pii_retention: 'zero_pii_retention',
  llmModel: 'llmModel',
  sttModel: 'sttModel',
  ttsModel: 'ttsModel',
  agent_language: 'agent_language',
  initiation_webhook: 'initiation_webhook',
  post_call_webhook: 'post_call_webhook',
  variables: 'variables',
  preemptive_generation: 'preemptive_generation',
  timezone: 'timezone'
} as const

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


export const KnowledgeSourceScalarFieldEnum = {
  kbId: 'kbId',
  organizationId: 'organizationId',
  agentId: 'agentId',
  userId: 'userId',
  name: 'name',
  originalFileName: 'originalFileName',
  storagePath: 'storagePath',
  sourceType: 'sourceType',
  status: 'status',
  metadata: 'metadata',
  lastIndexedAt: 'lastIndexedAt',
  uploadedAt: 'uploadedAt'
} as const

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


export const CallLogScalarFieldEnum = {
  callId: 'callId',
  organizationId: 'organizationId',
  agentId: 'agentId',
  userId: 'userId',
  startTime: 'startTime',
  endTime: 'endTime',
  durationSeconds: 'durationSeconds',
  status: 'status',
  audioRecordingPath: 'audioRecordingPath',
  callerId: 'callerId',
  metadata: 'metadata',
  sessionId: 'sessionId',
  direction: 'direction',
  dataExtracted: 'dataExtracted',
  dataEvaluation: 'dataEvaluation',
  callCostCents: 'callCostCents',
  deleted: 'deleted'
} as const

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


export const CallTranscriptScalarFieldEnum = {
  callTransId: 'callTransId',
  callLogId: 'callLogId',
  speaker: 'speaker',
  messageText: 'messageText',
  timestamp: 'timestamp',
  confidenceScore: 'confidenceScore',
  isPiiRedacted: 'isPiiRedacted',
  sentimentScore: 'sentimentScore'
} as const

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


export const OutboundCallScalarFieldEnum = {
  outboundId: 'outboundId',
  organizationId: 'organizationId',
  agentId: 'agentId',
  userId: 'userId',
  campaignId: 'campaignId',
  scheduledAt: 'scheduledAt',
  callLogId: 'callLogId',
  phoneNumber: 'phoneNumber',
  fromNumber: 'fromNumber',
  firstMessage: 'firstMessage',
  systemPrompt: 'systemPrompt',
  optionalData: 'optionalData',
  mode: 'mode',
  status: 'status',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const CampaignScalarFieldEnum = {
  campaignId: 'campaignId',
  organizationId: 'organizationId',
  name: 'name',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  agentId: 'agentId',
  fromNumber: 'fromNumber',
  scheduledAt: 'scheduledAt',
  sourceFileKey: 'sourceFileKey',
  sourceFileName: 'sourceFileName',
  totalRecipients: 'totalRecipients',
  validRecipients: 'validRecipients',
  invalidRecipients: 'invalidRecipients',
  ringingTimeoutSeconds: 'ringingTimeoutSeconds',
  timezone: 'timezone',
  status: 'status',
  startedAt: 'startedAt',
  completedAt: 'completedAt',
  userId: 'userId'
} as const

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


export const ToolScalarFieldEnum = {
  toolId: 'toolId',
  organizationId: 'organizationId',
  name: 'name',
  description: 'description',
  disable_interruptions: 'disable_interruptions',
  force_pre_tool_speech: 'force_pre_tool_speech',
  api_url: 'api_url',
  api_method: 'api_method',
  api_headers: 'api_headers',
  api_body: 'api_body',
  api_query_params: 'api_query_params',
  api_path_params: 'api_path_params',
  response_timeout_secs: 'response_timeout_secs',
  dynamic_variables: 'dynamic_variables',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  userId: 'userId'
} as const

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


export const McpServerCatalogItemScalarFieldEnum = {
  mcpServerId: 'mcpServerId',
  organizationId: 'organizationId',
  slug: 'slug',
  name: 'name',
  description: 'description',
  source: 'source',
  provider: 'provider',
  mcpUrl: 'mcpUrl',
  smitheryServerKey: 'smitheryServerKey',
  authType: 'authType',
  categories: 'categories',
  verified: 'verified',
  toolCount: 'toolCount',
  metadata: 'metadata',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const McpConnectionScalarFieldEnum = {
  mcpConnectionId: 'mcpConnectionId',
  organizationId: 'organizationId',
  userId: 'userId',
  catalogItemId: 'catalogItemId',
  displayName: 'displayName',
  provider: 'provider',
  mcpUrl: 'mcpUrl',
  smitheryNamespace: 'smitheryNamespace',
  smitheryConnectionId: 'smitheryConnectionId',
  status: 'status',
  setupUrl: 'setupUrl',
  tools: 'tools',
  metadata: 'metadata',
  lastSyncedAt: 'lastSyncedAt',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const AgentMcpConnectionScalarFieldEnum = {
  agentMcpConnectionId: 'agentMcpConnectionId',
  organizationId: 'organizationId',
  agentId: 'agentId',
  mcpConnectionId: 'mcpConnectionId',
  enabled: 'enabled',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
} as const

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


export const McpToolExecutionLogScalarFieldEnum = {
  mcpToolExecutionLogId: 'mcpToolExecutionLogId',
  organizationId: 'organizationId',
  agentId: 'agentId',
  mcpConnectionId: 'mcpConnectionId',
  toolName: 'toolName',
  callId: 'callId',
  status: 'status',
  latencyMs: 'latencyMs',
  argumentsPreview: 'argumentsPreview',
  resultPreview: 'resultPreview',
  error: 'error',
  createdAt: 'createdAt'
} as const

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


export const SecretScalarFieldEnum = {
  secretId: 'secretId',
  organizationId: 'organizationId',
  name: 'name',
  value: 'value',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  userId: 'userId'
} as const

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


export const AuditLogScalarFieldEnum = {
  auditLogId: 'auditLogId',
  organizationId: 'organizationId',
  userId: 'userId',
  action: 'action',
  resourceType: 'resourceType',
  resourceId: 'resourceId',
  metadata: 'metadata',
  createdAt: 'createdAt'
} as const

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


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

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


export const NullableJsonNullValueInput = {
  DbNull: DbNull,
  JsonNull: JsonNull
} as const

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


export const QueryMode = {
  default: 'default',
  insensitive: 'insensitive'
} as const

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


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

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


export const JsonNullValueFilter = {
  DbNull: DbNull,
  JsonNull: JsonNull,
  AnyNull: AnyNull
} as const

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

