
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `CallLog` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model CallLog
 * 
 */
export type CallLogModel = runtime.Types.Result.DefaultSelection<Prisma.$CallLogPayload>

export type AggregateCallLog = {
  _count: CallLogCountAggregateOutputType | null
  _avg: CallLogAvgAggregateOutputType | null
  _sum: CallLogSumAggregateOutputType | null
  _min: CallLogMinAggregateOutputType | null
  _max: CallLogMaxAggregateOutputType | null
}

export type CallLogAvgAggregateOutputType = {
  durationSeconds: number | null
  callCostCents: number | null
}

export type CallLogSumAggregateOutputType = {
  durationSeconds: number | null
  callCostCents: number | null
}

export type CallLogMinAggregateOutputType = {
  callId: string | null
  organizationId: string | null
  agentId: string | null
  userId: string | null
  startTime: Date | null
  endTime: Date | null
  durationSeconds: number | null
  status: $Enums.CallStatus | null
  audioRecordingPath: string | null
  callerId: string | null
  sessionId: string | null
  direction: string | null
  callCostCents: number | null
  deleted: boolean | null
}

export type CallLogMaxAggregateOutputType = {
  callId: string | null
  organizationId: string | null
  agentId: string | null
  userId: string | null
  startTime: Date | null
  endTime: Date | null
  durationSeconds: number | null
  status: $Enums.CallStatus | null
  audioRecordingPath: string | null
  callerId: string | null
  sessionId: string | null
  direction: string | null
  callCostCents: number | null
  deleted: boolean | null
}

export type CallLogCountAggregateOutputType = {
  callId: number
  organizationId: number
  agentId: number
  userId: number
  startTime: number
  endTime: number
  durationSeconds: number
  status: number
  audioRecordingPath: number
  callerId: number
  metadata: number
  sessionId: number
  direction: number
  dataExtracted: number
  dataEvaluation: number
  callCostCents: number
  deleted: number
  _all: number
}


export type CallLogAvgAggregateInputType = {
  durationSeconds?: true
  callCostCents?: true
}

export type CallLogSumAggregateInputType = {
  durationSeconds?: true
  callCostCents?: true
}

export type CallLogMinAggregateInputType = {
  callId?: true
  organizationId?: true
  agentId?: true
  userId?: true
  startTime?: true
  endTime?: true
  durationSeconds?: true
  status?: true
  audioRecordingPath?: true
  callerId?: true
  sessionId?: true
  direction?: true
  callCostCents?: true
  deleted?: true
}

export type CallLogMaxAggregateInputType = {
  callId?: true
  organizationId?: true
  agentId?: true
  userId?: true
  startTime?: true
  endTime?: true
  durationSeconds?: true
  status?: true
  audioRecordingPath?: true
  callerId?: true
  sessionId?: true
  direction?: true
  callCostCents?: true
  deleted?: true
}

export type CallLogCountAggregateInputType = {
  callId?: true
  organizationId?: true
  agentId?: true
  userId?: true
  startTime?: true
  endTime?: true
  durationSeconds?: true
  status?: true
  audioRecordingPath?: true
  callerId?: true
  metadata?: true
  sessionId?: true
  direction?: true
  dataExtracted?: true
  dataEvaluation?: true
  callCostCents?: true
  deleted?: true
  _all?: true
}

export type CallLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which CallLog to aggregate.
   */
  where?: Prisma.CallLogWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CallLogs to fetch.
   */
  orderBy?: Prisma.CallLogOrderByWithRelationInput | Prisma.CallLogOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.CallLogWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CallLogs from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` CallLogs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned CallLogs
  **/
  _count?: true | CallLogCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: CallLogAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: CallLogSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: CallLogMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: CallLogMaxAggregateInputType
}

export type GetCallLogAggregateType<T extends CallLogAggregateArgs> = {
      [P in keyof T & keyof AggregateCallLog]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateCallLog[P]>
    : Prisma.GetScalarType<T[P], AggregateCallLog[P]>
}




export type CallLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CallLogWhereInput
  orderBy?: Prisma.CallLogOrderByWithAggregationInput | Prisma.CallLogOrderByWithAggregationInput[]
  by: Prisma.CallLogScalarFieldEnum[] | Prisma.CallLogScalarFieldEnum
  having?: Prisma.CallLogScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: CallLogCountAggregateInputType | true
  _avg?: CallLogAvgAggregateInputType
  _sum?: CallLogSumAggregateInputType
  _min?: CallLogMinAggregateInputType
  _max?: CallLogMaxAggregateInputType
}

export type CallLogGroupByOutputType = {
  callId: string
  organizationId: string
  agentId: string | null
  userId: string | null
  startTime: Date | null
  endTime: Date | null
  durationSeconds: number | null
  status: $Enums.CallStatus
  audioRecordingPath: string | null
  callerId: string | null
  metadata: runtime.JsonValue | null
  sessionId: string | null
  direction: string | null
  dataExtracted: runtime.JsonValue | null
  dataEvaluation: runtime.JsonValue | null
  callCostCents: number | null
  deleted: boolean
  _count: CallLogCountAggregateOutputType | null
  _avg: CallLogAvgAggregateOutputType | null
  _sum: CallLogSumAggregateOutputType | null
  _min: CallLogMinAggregateOutputType | null
  _max: CallLogMaxAggregateOutputType | null
}

export type GetCallLogGroupByPayload<T extends CallLogGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<CallLogGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof CallLogGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], CallLogGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], CallLogGroupByOutputType[P]>
      }
    >
  >



export type CallLogWhereInput = {
  AND?: Prisma.CallLogWhereInput | Prisma.CallLogWhereInput[]
  OR?: Prisma.CallLogWhereInput[]
  NOT?: Prisma.CallLogWhereInput | Prisma.CallLogWhereInput[]
  callId?: Prisma.StringFilter<"CallLog"> | string
  organizationId?: Prisma.StringFilter<"CallLog"> | string
  agentId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  userId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  startTime?: Prisma.DateTimeNullableFilter<"CallLog"> | Date | string | null
  endTime?: Prisma.DateTimeNullableFilter<"CallLog"> | Date | string | null
  durationSeconds?: Prisma.IntNullableFilter<"CallLog"> | number | null
  status?: Prisma.EnumCallStatusFilter<"CallLog"> | $Enums.CallStatus
  audioRecordingPath?: Prisma.StringNullableFilter<"CallLog"> | string | null
  callerId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  metadata?: Prisma.JsonNullableFilter<"CallLog">
  sessionId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  direction?: Prisma.StringNullableFilter<"CallLog"> | string | null
  dataExtracted?: Prisma.JsonNullableFilter<"CallLog">
  dataEvaluation?: Prisma.JsonNullableFilter<"CallLog">
  callCostCents?: Prisma.IntNullableFilter<"CallLog"> | number | null
  deleted?: Prisma.BoolFilter<"CallLog"> | boolean
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  transcripts?: Prisma.CallTranscriptListRelationFilter
  outbound?: Prisma.XOR<Prisma.OutboundCallNullableScalarRelationFilter, Prisma.OutboundCallWhereInput> | null
}

export type CallLogOrderByWithRelationInput = {
  callId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrderInput | Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  startTime?: Prisma.SortOrderInput | Prisma.SortOrder
  endTime?: Prisma.SortOrderInput | Prisma.SortOrder
  durationSeconds?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrder
  audioRecordingPath?: Prisma.SortOrderInput | Prisma.SortOrder
  callerId?: Prisma.SortOrderInput | Prisma.SortOrder
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
  sessionId?: Prisma.SortOrderInput | Prisma.SortOrder
  direction?: Prisma.SortOrderInput | Prisma.SortOrder
  dataExtracted?: Prisma.SortOrderInput | Prisma.SortOrder
  dataEvaluation?: Prisma.SortOrderInput | Prisma.SortOrder
  callCostCents?: Prisma.SortOrderInput | Prisma.SortOrder
  deleted?: Prisma.SortOrder
  organization?: Prisma.OrganizationOrderByWithRelationInput
  agent?: Prisma.AgentOrderByWithRelationInput
  user?: Prisma.UserOrderByWithRelationInput
  transcripts?: Prisma.CallTranscriptOrderByRelationAggregateInput
  outbound?: Prisma.OutboundCallOrderByWithRelationInput
}

export type CallLogWhereUniqueInput = Prisma.AtLeast<{
  callId?: string
  AND?: Prisma.CallLogWhereInput | Prisma.CallLogWhereInput[]
  OR?: Prisma.CallLogWhereInput[]
  NOT?: Prisma.CallLogWhereInput | Prisma.CallLogWhereInput[]
  organizationId?: Prisma.StringFilter<"CallLog"> | string
  agentId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  userId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  startTime?: Prisma.DateTimeNullableFilter<"CallLog"> | Date | string | null
  endTime?: Prisma.DateTimeNullableFilter<"CallLog"> | Date | string | null
  durationSeconds?: Prisma.IntNullableFilter<"CallLog"> | number | null
  status?: Prisma.EnumCallStatusFilter<"CallLog"> | $Enums.CallStatus
  audioRecordingPath?: Prisma.StringNullableFilter<"CallLog"> | string | null
  callerId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  metadata?: Prisma.JsonNullableFilter<"CallLog">
  sessionId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  direction?: Prisma.StringNullableFilter<"CallLog"> | string | null
  dataExtracted?: Prisma.JsonNullableFilter<"CallLog">
  dataEvaluation?: Prisma.JsonNullableFilter<"CallLog">
  callCostCents?: Prisma.IntNullableFilter<"CallLog"> | number | null
  deleted?: Prisma.BoolFilter<"CallLog"> | boolean
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  transcripts?: Prisma.CallTranscriptListRelationFilter
  outbound?: Prisma.XOR<Prisma.OutboundCallNullableScalarRelationFilter, Prisma.OutboundCallWhereInput> | null
}, "callId">

export type CallLogOrderByWithAggregationInput = {
  callId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrderInput | Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  startTime?: Prisma.SortOrderInput | Prisma.SortOrder
  endTime?: Prisma.SortOrderInput | Prisma.SortOrder
  durationSeconds?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrder
  audioRecordingPath?: Prisma.SortOrderInput | Prisma.SortOrder
  callerId?: Prisma.SortOrderInput | Prisma.SortOrder
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
  sessionId?: Prisma.SortOrderInput | Prisma.SortOrder
  direction?: Prisma.SortOrderInput | Prisma.SortOrder
  dataExtracted?: Prisma.SortOrderInput | Prisma.SortOrder
  dataEvaluation?: Prisma.SortOrderInput | Prisma.SortOrder
  callCostCents?: Prisma.SortOrderInput | Prisma.SortOrder
  deleted?: Prisma.SortOrder
  _count?: Prisma.CallLogCountOrderByAggregateInput
  _avg?: Prisma.CallLogAvgOrderByAggregateInput
  _max?: Prisma.CallLogMaxOrderByAggregateInput
  _min?: Prisma.CallLogMinOrderByAggregateInput
  _sum?: Prisma.CallLogSumOrderByAggregateInput
}

export type CallLogScalarWhereWithAggregatesInput = {
  AND?: Prisma.CallLogScalarWhereWithAggregatesInput | Prisma.CallLogScalarWhereWithAggregatesInput[]
  OR?: Prisma.CallLogScalarWhereWithAggregatesInput[]
  NOT?: Prisma.CallLogScalarWhereWithAggregatesInput | Prisma.CallLogScalarWhereWithAggregatesInput[]
  callId?: Prisma.StringWithAggregatesFilter<"CallLog"> | string
  organizationId?: Prisma.StringWithAggregatesFilter<"CallLog"> | string
  agentId?: Prisma.StringNullableWithAggregatesFilter<"CallLog"> | string | null
  userId?: Prisma.StringNullableWithAggregatesFilter<"CallLog"> | string | null
  startTime?: Prisma.DateTimeNullableWithAggregatesFilter<"CallLog"> | Date | string | null
  endTime?: Prisma.DateTimeNullableWithAggregatesFilter<"CallLog"> | Date | string | null
  durationSeconds?: Prisma.IntNullableWithAggregatesFilter<"CallLog"> | number | null
  status?: Prisma.EnumCallStatusWithAggregatesFilter<"CallLog"> | $Enums.CallStatus
  audioRecordingPath?: Prisma.StringNullableWithAggregatesFilter<"CallLog"> | string | null
  callerId?: Prisma.StringNullableWithAggregatesFilter<"CallLog"> | string | null
  metadata?: Prisma.JsonNullableWithAggregatesFilter<"CallLog">
  sessionId?: Prisma.StringNullableWithAggregatesFilter<"CallLog"> | string | null
  direction?: Prisma.StringNullableWithAggregatesFilter<"CallLog"> | string | null
  dataExtracted?: Prisma.JsonNullableWithAggregatesFilter<"CallLog">
  dataEvaluation?: Prisma.JsonNullableWithAggregatesFilter<"CallLog">
  callCostCents?: Prisma.IntNullableWithAggregatesFilter<"CallLog"> | number | null
  deleted?: Prisma.BoolWithAggregatesFilter<"CallLog"> | boolean
}

export type CallLogCreateInput = {
  callId?: string
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  organization: Prisma.OrganizationCreateNestedOneWithoutCallLogsInput
  agent?: Prisma.AgentCreateNestedOneWithoutCallLogsInput
  user?: Prisma.UserCreateNestedOneWithoutCallLogsInput
  transcripts?: Prisma.CallTranscriptCreateNestedManyWithoutCallLogInput
  outbound?: Prisma.OutboundCallCreateNestedOneWithoutCallLogInput
}

export type CallLogUncheckedCreateInput = {
  callId?: string
  organizationId: string
  agentId?: string | null
  userId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  transcripts?: Prisma.CallTranscriptUncheckedCreateNestedManyWithoutCallLogInput
  outbound?: Prisma.OutboundCallUncheckedCreateNestedOneWithoutCallLogInput
}

export type CallLogUpdateInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutCallLogsNestedInput
  agent?: Prisma.AgentUpdateOneWithoutCallLogsNestedInput
  user?: Prisma.UserUpdateOneWithoutCallLogsNestedInput
  transcripts?: Prisma.CallTranscriptUpdateManyWithoutCallLogNestedInput
  outbound?: Prisma.OutboundCallUpdateOneWithoutCallLogNestedInput
}

export type CallLogUncheckedUpdateInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  transcripts?: Prisma.CallTranscriptUncheckedUpdateManyWithoutCallLogNestedInput
  outbound?: Prisma.OutboundCallUncheckedUpdateOneWithoutCallLogNestedInput
}

export type CallLogCreateManyInput = {
  callId?: string
  organizationId: string
  agentId?: string | null
  userId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
}

export type CallLogUpdateManyMutationInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type CallLogUncheckedUpdateManyInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type CallLogListRelationFilter = {
  every?: Prisma.CallLogWhereInput
  some?: Prisma.CallLogWhereInput
  none?: Prisma.CallLogWhereInput
}

export type CallLogOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type CallLogCountOrderByAggregateInput = {
  callId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  endTime?: Prisma.SortOrder
  durationSeconds?: Prisma.SortOrder
  status?: Prisma.SortOrder
  audioRecordingPath?: Prisma.SortOrder
  callerId?: Prisma.SortOrder
  metadata?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  direction?: Prisma.SortOrder
  dataExtracted?: Prisma.SortOrder
  dataEvaluation?: Prisma.SortOrder
  callCostCents?: Prisma.SortOrder
  deleted?: Prisma.SortOrder
}

export type CallLogAvgOrderByAggregateInput = {
  durationSeconds?: Prisma.SortOrder
  callCostCents?: Prisma.SortOrder
}

export type CallLogMaxOrderByAggregateInput = {
  callId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  endTime?: Prisma.SortOrder
  durationSeconds?: Prisma.SortOrder
  status?: Prisma.SortOrder
  audioRecordingPath?: Prisma.SortOrder
  callerId?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  direction?: Prisma.SortOrder
  callCostCents?: Prisma.SortOrder
  deleted?: Prisma.SortOrder
}

export type CallLogMinOrderByAggregateInput = {
  callId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  endTime?: Prisma.SortOrder
  durationSeconds?: Prisma.SortOrder
  status?: Prisma.SortOrder
  audioRecordingPath?: Prisma.SortOrder
  callerId?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  direction?: Prisma.SortOrder
  callCostCents?: Prisma.SortOrder
  deleted?: Prisma.SortOrder
}

export type CallLogSumOrderByAggregateInput = {
  durationSeconds?: Prisma.SortOrder
  callCostCents?: Prisma.SortOrder
}

export type CallLogScalarRelationFilter = {
  is?: Prisma.CallLogWhereInput
  isNot?: Prisma.CallLogWhereInput
}

export type CallLogNullableScalarRelationFilter = {
  is?: Prisma.CallLogWhereInput | null
  isNot?: Prisma.CallLogWhereInput | null
}

export type CallLogCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutUserInput, Prisma.CallLogUncheckedCreateWithoutUserInput> | Prisma.CallLogCreateWithoutUserInput[] | Prisma.CallLogUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutUserInput | Prisma.CallLogCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.CallLogCreateManyUserInputEnvelope
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
}

export type CallLogUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutUserInput, Prisma.CallLogUncheckedCreateWithoutUserInput> | Prisma.CallLogCreateWithoutUserInput[] | Prisma.CallLogUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutUserInput | Prisma.CallLogCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.CallLogCreateManyUserInputEnvelope
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
}

export type CallLogUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutUserInput, Prisma.CallLogUncheckedCreateWithoutUserInput> | Prisma.CallLogCreateWithoutUserInput[] | Prisma.CallLogUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutUserInput | Prisma.CallLogCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.CallLogUpsertWithWhereUniqueWithoutUserInput | Prisma.CallLogUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.CallLogCreateManyUserInputEnvelope
  set?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  disconnect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  delete?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  update?: Prisma.CallLogUpdateWithWhereUniqueWithoutUserInput | Prisma.CallLogUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.CallLogUpdateManyWithWhereWithoutUserInput | Prisma.CallLogUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.CallLogScalarWhereInput | Prisma.CallLogScalarWhereInput[]
}

export type CallLogUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutUserInput, Prisma.CallLogUncheckedCreateWithoutUserInput> | Prisma.CallLogCreateWithoutUserInput[] | Prisma.CallLogUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutUserInput | Prisma.CallLogCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.CallLogUpsertWithWhereUniqueWithoutUserInput | Prisma.CallLogUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.CallLogCreateManyUserInputEnvelope
  set?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  disconnect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  delete?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  update?: Prisma.CallLogUpdateWithWhereUniqueWithoutUserInput | Prisma.CallLogUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.CallLogUpdateManyWithWhereWithoutUserInput | Prisma.CallLogUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.CallLogScalarWhereInput | Prisma.CallLogScalarWhereInput[]
}

export type CallLogCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutOrganizationInput, Prisma.CallLogUncheckedCreateWithoutOrganizationInput> | Prisma.CallLogCreateWithoutOrganizationInput[] | Prisma.CallLogUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutOrganizationInput | Prisma.CallLogCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.CallLogCreateManyOrganizationInputEnvelope
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
}

export type CallLogUncheckedCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutOrganizationInput, Prisma.CallLogUncheckedCreateWithoutOrganizationInput> | Prisma.CallLogCreateWithoutOrganizationInput[] | Prisma.CallLogUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutOrganizationInput | Prisma.CallLogCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.CallLogCreateManyOrganizationInputEnvelope
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
}

export type CallLogUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutOrganizationInput, Prisma.CallLogUncheckedCreateWithoutOrganizationInput> | Prisma.CallLogCreateWithoutOrganizationInput[] | Prisma.CallLogUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutOrganizationInput | Prisma.CallLogCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.CallLogUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.CallLogUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.CallLogCreateManyOrganizationInputEnvelope
  set?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  disconnect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  delete?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  update?: Prisma.CallLogUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.CallLogUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.CallLogUpdateManyWithWhereWithoutOrganizationInput | Prisma.CallLogUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.CallLogScalarWhereInput | Prisma.CallLogScalarWhereInput[]
}

export type CallLogUncheckedUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutOrganizationInput, Prisma.CallLogUncheckedCreateWithoutOrganizationInput> | Prisma.CallLogCreateWithoutOrganizationInput[] | Prisma.CallLogUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutOrganizationInput | Prisma.CallLogCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.CallLogUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.CallLogUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.CallLogCreateManyOrganizationInputEnvelope
  set?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  disconnect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  delete?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  update?: Prisma.CallLogUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.CallLogUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.CallLogUpdateManyWithWhereWithoutOrganizationInput | Prisma.CallLogUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.CallLogScalarWhereInput | Prisma.CallLogScalarWhereInput[]
}

export type CallLogCreateNestedManyWithoutAgentInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutAgentInput, Prisma.CallLogUncheckedCreateWithoutAgentInput> | Prisma.CallLogCreateWithoutAgentInput[] | Prisma.CallLogUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutAgentInput | Prisma.CallLogCreateOrConnectWithoutAgentInput[]
  createMany?: Prisma.CallLogCreateManyAgentInputEnvelope
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
}

export type CallLogUncheckedCreateNestedManyWithoutAgentInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutAgentInput, Prisma.CallLogUncheckedCreateWithoutAgentInput> | Prisma.CallLogCreateWithoutAgentInput[] | Prisma.CallLogUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutAgentInput | Prisma.CallLogCreateOrConnectWithoutAgentInput[]
  createMany?: Prisma.CallLogCreateManyAgentInputEnvelope
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
}

export type CallLogUpdateManyWithoutAgentNestedInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutAgentInput, Prisma.CallLogUncheckedCreateWithoutAgentInput> | Prisma.CallLogCreateWithoutAgentInput[] | Prisma.CallLogUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutAgentInput | Prisma.CallLogCreateOrConnectWithoutAgentInput[]
  upsert?: Prisma.CallLogUpsertWithWhereUniqueWithoutAgentInput | Prisma.CallLogUpsertWithWhereUniqueWithoutAgentInput[]
  createMany?: Prisma.CallLogCreateManyAgentInputEnvelope
  set?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  disconnect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  delete?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  update?: Prisma.CallLogUpdateWithWhereUniqueWithoutAgentInput | Prisma.CallLogUpdateWithWhereUniqueWithoutAgentInput[]
  updateMany?: Prisma.CallLogUpdateManyWithWhereWithoutAgentInput | Prisma.CallLogUpdateManyWithWhereWithoutAgentInput[]
  deleteMany?: Prisma.CallLogScalarWhereInput | Prisma.CallLogScalarWhereInput[]
}

export type CallLogUncheckedUpdateManyWithoutAgentNestedInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutAgentInput, Prisma.CallLogUncheckedCreateWithoutAgentInput> | Prisma.CallLogCreateWithoutAgentInput[] | Prisma.CallLogUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutAgentInput | Prisma.CallLogCreateOrConnectWithoutAgentInput[]
  upsert?: Prisma.CallLogUpsertWithWhereUniqueWithoutAgentInput | Prisma.CallLogUpsertWithWhereUniqueWithoutAgentInput[]
  createMany?: Prisma.CallLogCreateManyAgentInputEnvelope
  set?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  disconnect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  delete?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  connect?: Prisma.CallLogWhereUniqueInput | Prisma.CallLogWhereUniqueInput[]
  update?: Prisma.CallLogUpdateWithWhereUniqueWithoutAgentInput | Prisma.CallLogUpdateWithWhereUniqueWithoutAgentInput[]
  updateMany?: Prisma.CallLogUpdateManyWithWhereWithoutAgentInput | Prisma.CallLogUpdateManyWithWhereWithoutAgentInput[]
  deleteMany?: Prisma.CallLogScalarWhereInput | Prisma.CallLogScalarWhereInput[]
}

export type EnumCallStatusFieldUpdateOperationsInput = {
  set?: $Enums.CallStatus
}

export type CallLogCreateNestedOneWithoutTranscriptsInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutTranscriptsInput, Prisma.CallLogUncheckedCreateWithoutTranscriptsInput>
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutTranscriptsInput
  connect?: Prisma.CallLogWhereUniqueInput
}

export type CallLogUpdateOneRequiredWithoutTranscriptsNestedInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutTranscriptsInput, Prisma.CallLogUncheckedCreateWithoutTranscriptsInput>
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutTranscriptsInput
  upsert?: Prisma.CallLogUpsertWithoutTranscriptsInput
  connect?: Prisma.CallLogWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.CallLogUpdateToOneWithWhereWithoutTranscriptsInput, Prisma.CallLogUpdateWithoutTranscriptsInput>, Prisma.CallLogUncheckedUpdateWithoutTranscriptsInput>
}

export type CallLogCreateNestedOneWithoutOutboundInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutOutboundInput, Prisma.CallLogUncheckedCreateWithoutOutboundInput>
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutOutboundInput
  connect?: Prisma.CallLogWhereUniqueInput
}

export type CallLogUpdateOneWithoutOutboundNestedInput = {
  create?: Prisma.XOR<Prisma.CallLogCreateWithoutOutboundInput, Prisma.CallLogUncheckedCreateWithoutOutboundInput>
  connectOrCreate?: Prisma.CallLogCreateOrConnectWithoutOutboundInput
  upsert?: Prisma.CallLogUpsertWithoutOutboundInput
  disconnect?: Prisma.CallLogWhereInput | boolean
  delete?: Prisma.CallLogWhereInput | boolean
  connect?: Prisma.CallLogWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.CallLogUpdateToOneWithWhereWithoutOutboundInput, Prisma.CallLogUpdateWithoutOutboundInput>, Prisma.CallLogUncheckedUpdateWithoutOutboundInput>
}

export type CallLogCreateWithoutUserInput = {
  callId?: string
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  organization: Prisma.OrganizationCreateNestedOneWithoutCallLogsInput
  agent?: Prisma.AgentCreateNestedOneWithoutCallLogsInput
  transcripts?: Prisma.CallTranscriptCreateNestedManyWithoutCallLogInput
  outbound?: Prisma.OutboundCallCreateNestedOneWithoutCallLogInput
}

export type CallLogUncheckedCreateWithoutUserInput = {
  callId?: string
  organizationId: string
  agentId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  transcripts?: Prisma.CallTranscriptUncheckedCreateNestedManyWithoutCallLogInput
  outbound?: Prisma.OutboundCallUncheckedCreateNestedOneWithoutCallLogInput
}

export type CallLogCreateOrConnectWithoutUserInput = {
  where: Prisma.CallLogWhereUniqueInput
  create: Prisma.XOR<Prisma.CallLogCreateWithoutUserInput, Prisma.CallLogUncheckedCreateWithoutUserInput>
}

export type CallLogCreateManyUserInputEnvelope = {
  data: Prisma.CallLogCreateManyUserInput | Prisma.CallLogCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type CallLogUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.CallLogWhereUniqueInput
  update: Prisma.XOR<Prisma.CallLogUpdateWithoutUserInput, Prisma.CallLogUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.CallLogCreateWithoutUserInput, Prisma.CallLogUncheckedCreateWithoutUserInput>
}

export type CallLogUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.CallLogWhereUniqueInput
  data: Prisma.XOR<Prisma.CallLogUpdateWithoutUserInput, Prisma.CallLogUncheckedUpdateWithoutUserInput>
}

export type CallLogUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.CallLogScalarWhereInput
  data: Prisma.XOR<Prisma.CallLogUpdateManyMutationInput, Prisma.CallLogUncheckedUpdateManyWithoutUserInput>
}

export type CallLogScalarWhereInput = {
  AND?: Prisma.CallLogScalarWhereInput | Prisma.CallLogScalarWhereInput[]
  OR?: Prisma.CallLogScalarWhereInput[]
  NOT?: Prisma.CallLogScalarWhereInput | Prisma.CallLogScalarWhereInput[]
  callId?: Prisma.StringFilter<"CallLog"> | string
  organizationId?: Prisma.StringFilter<"CallLog"> | string
  agentId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  userId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  startTime?: Prisma.DateTimeNullableFilter<"CallLog"> | Date | string | null
  endTime?: Prisma.DateTimeNullableFilter<"CallLog"> | Date | string | null
  durationSeconds?: Prisma.IntNullableFilter<"CallLog"> | number | null
  status?: Prisma.EnumCallStatusFilter<"CallLog"> | $Enums.CallStatus
  audioRecordingPath?: Prisma.StringNullableFilter<"CallLog"> | string | null
  callerId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  metadata?: Prisma.JsonNullableFilter<"CallLog">
  sessionId?: Prisma.StringNullableFilter<"CallLog"> | string | null
  direction?: Prisma.StringNullableFilter<"CallLog"> | string | null
  dataExtracted?: Prisma.JsonNullableFilter<"CallLog">
  dataEvaluation?: Prisma.JsonNullableFilter<"CallLog">
  callCostCents?: Prisma.IntNullableFilter<"CallLog"> | number | null
  deleted?: Prisma.BoolFilter<"CallLog"> | boolean
}

export type CallLogCreateWithoutOrganizationInput = {
  callId?: string
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  agent?: Prisma.AgentCreateNestedOneWithoutCallLogsInput
  user?: Prisma.UserCreateNestedOneWithoutCallLogsInput
  transcripts?: Prisma.CallTranscriptCreateNestedManyWithoutCallLogInput
  outbound?: Prisma.OutboundCallCreateNestedOneWithoutCallLogInput
}

export type CallLogUncheckedCreateWithoutOrganizationInput = {
  callId?: string
  agentId?: string | null
  userId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  transcripts?: Prisma.CallTranscriptUncheckedCreateNestedManyWithoutCallLogInput
  outbound?: Prisma.OutboundCallUncheckedCreateNestedOneWithoutCallLogInput
}

export type CallLogCreateOrConnectWithoutOrganizationInput = {
  where: Prisma.CallLogWhereUniqueInput
  create: Prisma.XOR<Prisma.CallLogCreateWithoutOrganizationInput, Prisma.CallLogUncheckedCreateWithoutOrganizationInput>
}

export type CallLogCreateManyOrganizationInputEnvelope = {
  data: Prisma.CallLogCreateManyOrganizationInput | Prisma.CallLogCreateManyOrganizationInput[]
  skipDuplicates?: boolean
}

export type CallLogUpsertWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.CallLogWhereUniqueInput
  update: Prisma.XOR<Prisma.CallLogUpdateWithoutOrganizationInput, Prisma.CallLogUncheckedUpdateWithoutOrganizationInput>
  create: Prisma.XOR<Prisma.CallLogCreateWithoutOrganizationInput, Prisma.CallLogUncheckedCreateWithoutOrganizationInput>
}

export type CallLogUpdateWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.CallLogWhereUniqueInput
  data: Prisma.XOR<Prisma.CallLogUpdateWithoutOrganizationInput, Prisma.CallLogUncheckedUpdateWithoutOrganizationInput>
}

export type CallLogUpdateManyWithWhereWithoutOrganizationInput = {
  where: Prisma.CallLogScalarWhereInput
  data: Prisma.XOR<Prisma.CallLogUpdateManyMutationInput, Prisma.CallLogUncheckedUpdateManyWithoutOrganizationInput>
}

export type CallLogCreateWithoutAgentInput = {
  callId?: string
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  organization: Prisma.OrganizationCreateNestedOneWithoutCallLogsInput
  user?: Prisma.UserCreateNestedOneWithoutCallLogsInput
  transcripts?: Prisma.CallTranscriptCreateNestedManyWithoutCallLogInput
  outbound?: Prisma.OutboundCallCreateNestedOneWithoutCallLogInput
}

export type CallLogUncheckedCreateWithoutAgentInput = {
  callId?: string
  organizationId: string
  userId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  transcripts?: Prisma.CallTranscriptUncheckedCreateNestedManyWithoutCallLogInput
  outbound?: Prisma.OutboundCallUncheckedCreateNestedOneWithoutCallLogInput
}

export type CallLogCreateOrConnectWithoutAgentInput = {
  where: Prisma.CallLogWhereUniqueInput
  create: Prisma.XOR<Prisma.CallLogCreateWithoutAgentInput, Prisma.CallLogUncheckedCreateWithoutAgentInput>
}

export type CallLogCreateManyAgentInputEnvelope = {
  data: Prisma.CallLogCreateManyAgentInput | Prisma.CallLogCreateManyAgentInput[]
  skipDuplicates?: boolean
}

export type CallLogUpsertWithWhereUniqueWithoutAgentInput = {
  where: Prisma.CallLogWhereUniqueInput
  update: Prisma.XOR<Prisma.CallLogUpdateWithoutAgentInput, Prisma.CallLogUncheckedUpdateWithoutAgentInput>
  create: Prisma.XOR<Prisma.CallLogCreateWithoutAgentInput, Prisma.CallLogUncheckedCreateWithoutAgentInput>
}

export type CallLogUpdateWithWhereUniqueWithoutAgentInput = {
  where: Prisma.CallLogWhereUniqueInput
  data: Prisma.XOR<Prisma.CallLogUpdateWithoutAgentInput, Prisma.CallLogUncheckedUpdateWithoutAgentInput>
}

export type CallLogUpdateManyWithWhereWithoutAgentInput = {
  where: Prisma.CallLogScalarWhereInput
  data: Prisma.XOR<Prisma.CallLogUpdateManyMutationInput, Prisma.CallLogUncheckedUpdateManyWithoutAgentInput>
}

export type CallLogCreateWithoutTranscriptsInput = {
  callId?: string
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  organization: Prisma.OrganizationCreateNestedOneWithoutCallLogsInput
  agent?: Prisma.AgentCreateNestedOneWithoutCallLogsInput
  user?: Prisma.UserCreateNestedOneWithoutCallLogsInput
  outbound?: Prisma.OutboundCallCreateNestedOneWithoutCallLogInput
}

export type CallLogUncheckedCreateWithoutTranscriptsInput = {
  callId?: string
  organizationId: string
  agentId?: string | null
  userId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  outbound?: Prisma.OutboundCallUncheckedCreateNestedOneWithoutCallLogInput
}

export type CallLogCreateOrConnectWithoutTranscriptsInput = {
  where: Prisma.CallLogWhereUniqueInput
  create: Prisma.XOR<Prisma.CallLogCreateWithoutTranscriptsInput, Prisma.CallLogUncheckedCreateWithoutTranscriptsInput>
}

export type CallLogUpsertWithoutTranscriptsInput = {
  update: Prisma.XOR<Prisma.CallLogUpdateWithoutTranscriptsInput, Prisma.CallLogUncheckedUpdateWithoutTranscriptsInput>
  create: Prisma.XOR<Prisma.CallLogCreateWithoutTranscriptsInput, Prisma.CallLogUncheckedCreateWithoutTranscriptsInput>
  where?: Prisma.CallLogWhereInput
}

export type CallLogUpdateToOneWithWhereWithoutTranscriptsInput = {
  where?: Prisma.CallLogWhereInput
  data: Prisma.XOR<Prisma.CallLogUpdateWithoutTranscriptsInput, Prisma.CallLogUncheckedUpdateWithoutTranscriptsInput>
}

export type CallLogUpdateWithoutTranscriptsInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutCallLogsNestedInput
  agent?: Prisma.AgentUpdateOneWithoutCallLogsNestedInput
  user?: Prisma.UserUpdateOneWithoutCallLogsNestedInput
  outbound?: Prisma.OutboundCallUpdateOneWithoutCallLogNestedInput
}

export type CallLogUncheckedUpdateWithoutTranscriptsInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  outbound?: Prisma.OutboundCallUncheckedUpdateOneWithoutCallLogNestedInput
}

export type CallLogCreateWithoutOutboundInput = {
  callId?: string
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  organization: Prisma.OrganizationCreateNestedOneWithoutCallLogsInput
  agent?: Prisma.AgentCreateNestedOneWithoutCallLogsInput
  user?: Prisma.UserCreateNestedOneWithoutCallLogsInput
  transcripts?: Prisma.CallTranscriptCreateNestedManyWithoutCallLogInput
}

export type CallLogUncheckedCreateWithoutOutboundInput = {
  callId?: string
  organizationId: string
  agentId?: string | null
  userId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
  transcripts?: Prisma.CallTranscriptUncheckedCreateNestedManyWithoutCallLogInput
}

export type CallLogCreateOrConnectWithoutOutboundInput = {
  where: Prisma.CallLogWhereUniqueInput
  create: Prisma.XOR<Prisma.CallLogCreateWithoutOutboundInput, Prisma.CallLogUncheckedCreateWithoutOutboundInput>
}

export type CallLogUpsertWithoutOutboundInput = {
  update: Prisma.XOR<Prisma.CallLogUpdateWithoutOutboundInput, Prisma.CallLogUncheckedUpdateWithoutOutboundInput>
  create: Prisma.XOR<Prisma.CallLogCreateWithoutOutboundInput, Prisma.CallLogUncheckedCreateWithoutOutboundInput>
  where?: Prisma.CallLogWhereInput
}

export type CallLogUpdateToOneWithWhereWithoutOutboundInput = {
  where?: Prisma.CallLogWhereInput
  data: Prisma.XOR<Prisma.CallLogUpdateWithoutOutboundInput, Prisma.CallLogUncheckedUpdateWithoutOutboundInput>
}

export type CallLogUpdateWithoutOutboundInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutCallLogsNestedInput
  agent?: Prisma.AgentUpdateOneWithoutCallLogsNestedInput
  user?: Prisma.UserUpdateOneWithoutCallLogsNestedInput
  transcripts?: Prisma.CallTranscriptUpdateManyWithoutCallLogNestedInput
}

export type CallLogUncheckedUpdateWithoutOutboundInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  transcripts?: Prisma.CallTranscriptUncheckedUpdateManyWithoutCallLogNestedInput
}

export type CallLogCreateManyUserInput = {
  callId?: string
  organizationId: string
  agentId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
}

export type CallLogUpdateWithoutUserInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutCallLogsNestedInput
  agent?: Prisma.AgentUpdateOneWithoutCallLogsNestedInput
  transcripts?: Prisma.CallTranscriptUpdateManyWithoutCallLogNestedInput
  outbound?: Prisma.OutboundCallUpdateOneWithoutCallLogNestedInput
}

export type CallLogUncheckedUpdateWithoutUserInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  transcripts?: Prisma.CallTranscriptUncheckedUpdateManyWithoutCallLogNestedInput
  outbound?: Prisma.OutboundCallUncheckedUpdateOneWithoutCallLogNestedInput
}

export type CallLogUncheckedUpdateManyWithoutUserInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type CallLogCreateManyOrganizationInput = {
  callId?: string
  agentId?: string | null
  userId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
}

export type CallLogUpdateWithoutOrganizationInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  agent?: Prisma.AgentUpdateOneWithoutCallLogsNestedInput
  user?: Prisma.UserUpdateOneWithoutCallLogsNestedInput
  transcripts?: Prisma.CallTranscriptUpdateManyWithoutCallLogNestedInput
  outbound?: Prisma.OutboundCallUpdateOneWithoutCallLogNestedInput
}

export type CallLogUncheckedUpdateWithoutOrganizationInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  transcripts?: Prisma.CallTranscriptUncheckedUpdateManyWithoutCallLogNestedInput
  outbound?: Prisma.OutboundCallUncheckedUpdateOneWithoutCallLogNestedInput
}

export type CallLogUncheckedUpdateManyWithoutOrganizationInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type CallLogCreateManyAgentInput = {
  callId?: string
  organizationId: string
  userId?: string | null
  startTime?: Date | string | null
  endTime?: Date | string | null
  durationSeconds?: number | null
  status: $Enums.CallStatus
  audioRecordingPath?: string | null
  callerId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: string | null
  direction?: string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: number | null
  deleted?: boolean
}

export type CallLogUpdateWithoutAgentInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutCallLogsNestedInput
  user?: Prisma.UserUpdateOneWithoutCallLogsNestedInput
  transcripts?: Prisma.CallTranscriptUpdateManyWithoutCallLogNestedInput
  outbound?: Prisma.OutboundCallUpdateOneWithoutCallLogNestedInput
}

export type CallLogUncheckedUpdateWithoutAgentInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  transcripts?: Prisma.CallTranscriptUncheckedUpdateManyWithoutCallLogNestedInput
  outbound?: Prisma.OutboundCallUncheckedUpdateOneWithoutCallLogNestedInput
}

export type CallLogUncheckedUpdateManyWithoutAgentInput = {
  callId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  startTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  endTime?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  status?: Prisma.EnumCallStatusFieldUpdateOperationsInput | $Enums.CallStatus
  audioRecordingPath?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  callerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  sessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  direction?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  dataExtracted?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  dataEvaluation?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  callCostCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
}


/**
 * Count Type CallLogCountOutputType
 */

export type CallLogCountOutputType = {
  transcripts: number
}

export type CallLogCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  transcripts?: boolean | CallLogCountOutputTypeCountTranscriptsArgs
}

/**
 * CallLogCountOutputType without action
 */
export type CallLogCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLogCountOutputType
   */
  select?: Prisma.CallLogCountOutputTypeSelect<ExtArgs> | null
}

/**
 * CallLogCountOutputType without action
 */
export type CallLogCountOutputTypeCountTranscriptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CallTranscriptWhereInput
}


export type CallLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  callId?: boolean
  organizationId?: boolean
  agentId?: boolean
  userId?: boolean
  startTime?: boolean
  endTime?: boolean
  durationSeconds?: boolean
  status?: boolean
  audioRecordingPath?: boolean
  callerId?: boolean
  metadata?: boolean
  sessionId?: boolean
  direction?: boolean
  dataExtracted?: boolean
  dataEvaluation?: boolean
  callCostCents?: boolean
  deleted?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.CallLog$agentArgs<ExtArgs>
  user?: boolean | Prisma.CallLog$userArgs<ExtArgs>
  transcripts?: boolean | Prisma.CallLog$transcriptsArgs<ExtArgs>
  outbound?: boolean | Prisma.CallLog$outboundArgs<ExtArgs>
  _count?: boolean | Prisma.CallLogCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["callLog"]>

export type CallLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  callId?: boolean
  organizationId?: boolean
  agentId?: boolean
  userId?: boolean
  startTime?: boolean
  endTime?: boolean
  durationSeconds?: boolean
  status?: boolean
  audioRecordingPath?: boolean
  callerId?: boolean
  metadata?: boolean
  sessionId?: boolean
  direction?: boolean
  dataExtracted?: boolean
  dataEvaluation?: boolean
  callCostCents?: boolean
  deleted?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.CallLog$agentArgs<ExtArgs>
  user?: boolean | Prisma.CallLog$userArgs<ExtArgs>
}, ExtArgs["result"]["callLog"]>

export type CallLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  callId?: boolean
  organizationId?: boolean
  agentId?: boolean
  userId?: boolean
  startTime?: boolean
  endTime?: boolean
  durationSeconds?: boolean
  status?: boolean
  audioRecordingPath?: boolean
  callerId?: boolean
  metadata?: boolean
  sessionId?: boolean
  direction?: boolean
  dataExtracted?: boolean
  dataEvaluation?: boolean
  callCostCents?: boolean
  deleted?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.CallLog$agentArgs<ExtArgs>
  user?: boolean | Prisma.CallLog$userArgs<ExtArgs>
}, ExtArgs["result"]["callLog"]>

export type CallLogSelectScalar = {
  callId?: boolean
  organizationId?: boolean
  agentId?: boolean
  userId?: boolean
  startTime?: boolean
  endTime?: boolean
  durationSeconds?: boolean
  status?: boolean
  audioRecordingPath?: boolean
  callerId?: boolean
  metadata?: boolean
  sessionId?: boolean
  direction?: boolean
  dataExtracted?: boolean
  dataEvaluation?: boolean
  callCostCents?: boolean
  deleted?: boolean
}

export type CallLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"callId" | "organizationId" | "agentId" | "userId" | "startTime" | "endTime" | "durationSeconds" | "status" | "audioRecordingPath" | "callerId" | "metadata" | "sessionId" | "direction" | "dataExtracted" | "dataEvaluation" | "callCostCents" | "deleted", ExtArgs["result"]["callLog"]>
export type CallLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.CallLog$agentArgs<ExtArgs>
  user?: boolean | Prisma.CallLog$userArgs<ExtArgs>
  transcripts?: boolean | Prisma.CallLog$transcriptsArgs<ExtArgs>
  outbound?: boolean | Prisma.CallLog$outboundArgs<ExtArgs>
  _count?: boolean | Prisma.CallLogCountOutputTypeDefaultArgs<ExtArgs>
}
export type CallLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.CallLog$agentArgs<ExtArgs>
  user?: boolean | Prisma.CallLog$userArgs<ExtArgs>
}
export type CallLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.CallLog$agentArgs<ExtArgs>
  user?: boolean | Prisma.CallLog$userArgs<ExtArgs>
}

export type $CallLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "CallLog"
  objects: {
    organization: Prisma.$OrganizationPayload<ExtArgs>
    agent: Prisma.$AgentPayload<ExtArgs> | null
    user: Prisma.$UserPayload<ExtArgs> | null
    transcripts: Prisma.$CallTranscriptPayload<ExtArgs>[]
    outbound: Prisma.$OutboundCallPayload<ExtArgs> | null
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    callId: string
    organizationId: string
    agentId: string | null
    userId: string | null
    startTime: Date | null
    endTime: Date | null
    durationSeconds: number | null
    status: $Enums.CallStatus
    audioRecordingPath: string | null
    callerId: string | null
    metadata: runtime.JsonValue | null
    sessionId: string | null
    direction: string | null
    dataExtracted: runtime.JsonValue | null
    dataEvaluation: runtime.JsonValue | null
    callCostCents: number | null
    deleted: boolean
  }, ExtArgs["result"]["callLog"]>
  composites: {}
}

export type CallLogGetPayload<S extends boolean | null | undefined | CallLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CallLogPayload, S>

export type CallLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<CallLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: CallLogCountAggregateInputType | true
  }

export interface CallLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CallLog'], meta: { name: 'CallLog' } }
  /**
   * Find zero or one CallLog that matches the filter.
   * @param {CallLogFindUniqueArgs} args - Arguments to find a CallLog
   * @example
   * // Get one CallLog
   * const callLog = await prisma.callLog.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends CallLogFindUniqueArgs>(args: Prisma.SelectSubset<T, CallLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CallLogClient<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one CallLog that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {CallLogFindUniqueOrThrowArgs} args - Arguments to find a CallLog
   * @example
   * // Get one CallLog
   * const callLog = await prisma.callLog.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends CallLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CallLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CallLogClient<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first CallLog that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CallLogFindFirstArgs} args - Arguments to find a CallLog
   * @example
   * // Get one CallLog
   * const callLog = await prisma.callLog.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends CallLogFindFirstArgs>(args?: Prisma.SelectSubset<T, CallLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__CallLogClient<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first CallLog that matches the filter or
   * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CallLogFindFirstOrThrowArgs} args - Arguments to find a CallLog
   * @example
   * // Get one CallLog
   * const callLog = await prisma.callLog.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends CallLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CallLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CallLogClient<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more CallLogs that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CallLogFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all CallLogs
   * const callLogs = await prisma.callLog.findMany()
   * 
   * // Get first 10 CallLogs
   * const callLogs = await prisma.callLog.findMany({ take: 10 })
   * 
   * // Only select the `callId`
   * const callLogWithCallIdOnly = await prisma.callLog.findMany({ select: { callId: true } })
   * 
   */
  findMany<T extends CallLogFindManyArgs>(args?: Prisma.SelectSubset<T, CallLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a CallLog.
   * @param {CallLogCreateArgs} args - Arguments to create a CallLog.
   * @example
   * // Create one CallLog
   * const CallLog = await prisma.callLog.create({
   *   data: {
   *     // ... data to create a CallLog
   *   }
   * })
   * 
   */
  create<T extends CallLogCreateArgs>(args: Prisma.SelectSubset<T, CallLogCreateArgs<ExtArgs>>): Prisma.Prisma__CallLogClient<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many CallLogs.
   * @param {CallLogCreateManyArgs} args - Arguments to create many CallLogs.
   * @example
   * // Create many CallLogs
   * const callLog = await prisma.callLog.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends CallLogCreateManyArgs>(args?: Prisma.SelectSubset<T, CallLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many CallLogs and returns the data saved in the database.
   * @param {CallLogCreateManyAndReturnArgs} args - Arguments to create many CallLogs.
   * @example
   * // Create many CallLogs
   * const callLog = await prisma.callLog.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many CallLogs and only return the `callId`
   * const callLogWithCallIdOnly = await prisma.callLog.createManyAndReturn({
   *   select: { callId: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends CallLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CallLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a CallLog.
   * @param {CallLogDeleteArgs} args - Arguments to delete one CallLog.
   * @example
   * // Delete one CallLog
   * const CallLog = await prisma.callLog.delete({
   *   where: {
   *     // ... filter to delete one CallLog
   *   }
   * })
   * 
   */
  delete<T extends CallLogDeleteArgs>(args: Prisma.SelectSubset<T, CallLogDeleteArgs<ExtArgs>>): Prisma.Prisma__CallLogClient<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one CallLog.
   * @param {CallLogUpdateArgs} args - Arguments to update one CallLog.
   * @example
   * // Update one CallLog
   * const callLog = await prisma.callLog.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends CallLogUpdateArgs>(args: Prisma.SelectSubset<T, CallLogUpdateArgs<ExtArgs>>): Prisma.Prisma__CallLogClient<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more CallLogs.
   * @param {CallLogDeleteManyArgs} args - Arguments to filter CallLogs to delete.
   * @example
   * // Delete a few CallLogs
   * const { count } = await prisma.callLog.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends CallLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, CallLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more CallLogs.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CallLogUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many CallLogs
   * const callLog = await prisma.callLog.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends CallLogUpdateManyArgs>(args: Prisma.SelectSubset<T, CallLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more CallLogs and returns the data updated in the database.
   * @param {CallLogUpdateManyAndReturnArgs} args - Arguments to update many CallLogs.
   * @example
   * // Update many CallLogs
   * const callLog = await prisma.callLog.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more CallLogs and only return the `callId`
   * const callLogWithCallIdOnly = await prisma.callLog.updateManyAndReturn({
   *   select: { callId: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends CallLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CallLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one CallLog.
   * @param {CallLogUpsertArgs} args - Arguments to update or create a CallLog.
   * @example
   * // Update or create a CallLog
   * const callLog = await prisma.callLog.upsert({
   *   create: {
   *     // ... data to create a CallLog
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the CallLog we want to update
   *   }
   * })
   */
  upsert<T extends CallLogUpsertArgs>(args: Prisma.SelectSubset<T, CallLogUpsertArgs<ExtArgs>>): Prisma.Prisma__CallLogClient<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of CallLogs.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CallLogCountArgs} args - Arguments to filter CallLogs to count.
   * @example
   * // Count the number of CallLogs
   * const count = await prisma.callLog.count({
   *   where: {
   *     // ... the filter for the CallLogs we want to count
   *   }
   * })
  **/
  count<T extends CallLogCountArgs>(
    args?: Prisma.Subset<T, CallLogCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], CallLogCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a CallLog.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CallLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
   * @example
   * // Ordered by age ascending
   * // Where email contains prisma.io
   * // Limited to the 10 users
   * const aggregations = await prisma.user.aggregate({
   *   _avg: {
   *     age: true,
   *   },
   *   where: {
   *     email: {
   *       contains: "prisma.io",
   *     },
   *   },
   *   orderBy: {
   *     age: "asc",
   *   },
   *   take: 10,
   * })
  **/
  aggregate<T extends CallLogAggregateArgs>(args: Prisma.Subset<T, CallLogAggregateArgs>): Prisma.PrismaPromise<GetCallLogAggregateType<T>>

  /**
   * Group by CallLog.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CallLogGroupByArgs} args - Group by arguments.
   * @example
   * // Group by city, order by createdAt, get count
   * const result = await prisma.user.groupBy({
   *   by: ['city', 'createdAt'],
   *   orderBy: {
   *     createdAt: true
   *   },
   *   _count: {
   *     _all: true
   *   },
   * })
   * 
  **/
  groupBy<
    T extends CallLogGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: CallLogGroupByArgs['orderBy'] }
      : { orderBy?: CallLogGroupByArgs['orderBy'] },
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
    InputErrors extends ByEmpty extends Prisma.True
    ? `Error: "by" must not be empty.`
    : HavingValid extends Prisma.False
    ? {
        [P in HavingFields]: P extends ByFields
          ? never
          : P extends string
          ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
          : [
              Error,
              'Field ',
              P,
              ` in "having" needs to be provided in "by"`,
            ]
      }[HavingFields]
    : 'take' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "take", you also need to provide "orderBy"'
    : 'skip' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "skip", you also need to provide "orderBy"'
    : ByValid extends Prisma.True
    ? {}
    : {
        [P in OrderFields]: P extends ByFields
          ? never
          : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
      }[OrderFields]
  >(args: Prisma.SubsetIntersection<T, CallLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCallLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the CallLog model
 */
readonly fields: CallLogFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for CallLog.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__CallLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  agent<T extends Prisma.CallLog$agentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CallLog$agentArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  user<T extends Prisma.CallLog$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CallLog$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  transcripts<T extends Prisma.CallLog$transcriptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CallLog$transcriptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CallTranscriptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  outbound<T extends Prisma.CallLog$outboundArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CallLog$outboundArgs<ExtArgs>>): Prisma.Prisma__OutboundCallClient<runtime.Types.Result.GetResult<Prisma.$OutboundCallPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the CallLog model
 */
export interface CallLogFieldRefs {
  readonly callId: Prisma.FieldRef<"CallLog", 'String'>
  readonly organizationId: Prisma.FieldRef<"CallLog", 'String'>
  readonly agentId: Prisma.FieldRef<"CallLog", 'String'>
  readonly userId: Prisma.FieldRef<"CallLog", 'String'>
  readonly startTime: Prisma.FieldRef<"CallLog", 'DateTime'>
  readonly endTime: Prisma.FieldRef<"CallLog", 'DateTime'>
  readonly durationSeconds: Prisma.FieldRef<"CallLog", 'Int'>
  readonly status: Prisma.FieldRef<"CallLog", 'CallStatus'>
  readonly audioRecordingPath: Prisma.FieldRef<"CallLog", 'String'>
  readonly callerId: Prisma.FieldRef<"CallLog", 'String'>
  readonly metadata: Prisma.FieldRef<"CallLog", 'Json'>
  readonly sessionId: Prisma.FieldRef<"CallLog", 'String'>
  readonly direction: Prisma.FieldRef<"CallLog", 'String'>
  readonly dataExtracted: Prisma.FieldRef<"CallLog", 'Json'>
  readonly dataEvaluation: Prisma.FieldRef<"CallLog", 'Json'>
  readonly callCostCents: Prisma.FieldRef<"CallLog", 'Int'>
  readonly deleted: Prisma.FieldRef<"CallLog", 'Boolean'>
}
    

// Custom InputTypes
/**
 * CallLog findUnique
 */
export type CallLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
  /**
   * Filter, which CallLog to fetch.
   */
  where: Prisma.CallLogWhereUniqueInput
}

/**
 * CallLog findUniqueOrThrow
 */
export type CallLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
  /**
   * Filter, which CallLog to fetch.
   */
  where: Prisma.CallLogWhereUniqueInput
}

/**
 * CallLog findFirst
 */
export type CallLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
  /**
   * Filter, which CallLog to fetch.
   */
  where?: Prisma.CallLogWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CallLogs to fetch.
   */
  orderBy?: Prisma.CallLogOrderByWithRelationInput | Prisma.CallLogOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for CallLogs.
   */
  cursor?: Prisma.CallLogWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CallLogs from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` CallLogs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CallLogs.
   */
  distinct?: Prisma.CallLogScalarFieldEnum | Prisma.CallLogScalarFieldEnum[]
}

/**
 * CallLog findFirstOrThrow
 */
export type CallLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
  /**
   * Filter, which CallLog to fetch.
   */
  where?: Prisma.CallLogWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CallLogs to fetch.
   */
  orderBy?: Prisma.CallLogOrderByWithRelationInput | Prisma.CallLogOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for CallLogs.
   */
  cursor?: Prisma.CallLogWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CallLogs from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` CallLogs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CallLogs.
   */
  distinct?: Prisma.CallLogScalarFieldEnum | Prisma.CallLogScalarFieldEnum[]
}

/**
 * CallLog findMany
 */
export type CallLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
  /**
   * Filter, which CallLogs to fetch.
   */
  where?: Prisma.CallLogWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CallLogs to fetch.
   */
  orderBy?: Prisma.CallLogOrderByWithRelationInput | Prisma.CallLogOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing CallLogs.
   */
  cursor?: Prisma.CallLogWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CallLogs from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` CallLogs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CallLogs.
   */
  distinct?: Prisma.CallLogScalarFieldEnum | Prisma.CallLogScalarFieldEnum[]
}

/**
 * CallLog create
 */
export type CallLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
  /**
   * The data needed to create a CallLog.
   */
  data: Prisma.XOR<Prisma.CallLogCreateInput, Prisma.CallLogUncheckedCreateInput>
}

/**
 * CallLog createMany
 */
export type CallLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many CallLogs.
   */
  data: Prisma.CallLogCreateManyInput | Prisma.CallLogCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * CallLog createManyAndReturn
 */
export type CallLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * The data used to create many CallLogs.
   */
  data: Prisma.CallLogCreateManyInput | Prisma.CallLogCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * CallLog update
 */
export type CallLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
  /**
   * The data needed to update a CallLog.
   */
  data: Prisma.XOR<Prisma.CallLogUpdateInput, Prisma.CallLogUncheckedUpdateInput>
  /**
   * Choose, which CallLog to update.
   */
  where: Prisma.CallLogWhereUniqueInput
}

/**
 * CallLog updateMany
 */
export type CallLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update CallLogs.
   */
  data: Prisma.XOR<Prisma.CallLogUpdateManyMutationInput, Prisma.CallLogUncheckedUpdateManyInput>
  /**
   * Filter which CallLogs to update
   */
  where?: Prisma.CallLogWhereInput
  /**
   * Limit how many CallLogs to update.
   */
  limit?: number
}

/**
 * CallLog updateManyAndReturn
 */
export type CallLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * The data used to update CallLogs.
   */
  data: Prisma.XOR<Prisma.CallLogUpdateManyMutationInput, Prisma.CallLogUncheckedUpdateManyInput>
  /**
   * Filter which CallLogs to update
   */
  where?: Prisma.CallLogWhereInput
  /**
   * Limit how many CallLogs to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * CallLog upsert
 */
export type CallLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
  /**
   * The filter to search for the CallLog to update in case it exists.
   */
  where: Prisma.CallLogWhereUniqueInput
  /**
   * In case the CallLog found by the `where` argument doesn't exist, create a new CallLog with this data.
   */
  create: Prisma.XOR<Prisma.CallLogCreateInput, Prisma.CallLogUncheckedCreateInput>
  /**
   * In case the CallLog was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.CallLogUpdateInput, Prisma.CallLogUncheckedUpdateInput>
}

/**
 * CallLog delete
 */
export type CallLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
  /**
   * Filter which CallLog to delete.
   */
  where: Prisma.CallLogWhereUniqueInput
}

/**
 * CallLog deleteMany
 */
export type CallLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which CallLogs to delete
   */
  where?: Prisma.CallLogWhereInput
  /**
   * Limit how many CallLogs to delete.
   */
  limit?: number
}

/**
 * CallLog.agent
 */
export type CallLog$agentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Agent
   */
  select?: Prisma.AgentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Agent
   */
  omit?: Prisma.AgentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentInclude<ExtArgs> | null
  where?: Prisma.AgentWhereInput
}

/**
 * CallLog.user
 */
export type CallLog$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  where?: Prisma.UserWhereInput
}

/**
 * CallLog.transcripts
 */
export type CallLog$transcriptsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallTranscript
   */
  select?: Prisma.CallTranscriptSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallTranscript
   */
  omit?: Prisma.CallTranscriptOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallTranscriptInclude<ExtArgs> | null
  where?: Prisma.CallTranscriptWhereInput
  orderBy?: Prisma.CallTranscriptOrderByWithRelationInput | Prisma.CallTranscriptOrderByWithRelationInput[]
  cursor?: Prisma.CallTranscriptWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.CallTranscriptScalarFieldEnum | Prisma.CallTranscriptScalarFieldEnum[]
}

/**
 * CallLog.outbound
 */
export type CallLog$outboundArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OutboundCall
   */
  select?: Prisma.OutboundCallSelect<ExtArgs> | null
  /**
   * Omit specific fields from the OutboundCall
   */
  omit?: Prisma.OutboundCallOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OutboundCallInclude<ExtArgs> | null
  where?: Prisma.OutboundCallWhereInput
}

/**
 * CallLog without action
 */
export type CallLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallLog
   */
  select?: Prisma.CallLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CallLog
   */
  omit?: Prisma.CallLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallLogInclude<ExtArgs> | null
}
