
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `CallTranscript` 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 CallTranscript
 * 
 */
export type CallTranscriptModel = runtime.Types.Result.DefaultSelection<Prisma.$CallTranscriptPayload>

export type AggregateCallTranscript = {
  _count: CallTranscriptCountAggregateOutputType | null
  _avg: CallTranscriptAvgAggregateOutputType | null
  _sum: CallTranscriptSumAggregateOutputType | null
  _min: CallTranscriptMinAggregateOutputType | null
  _max: CallTranscriptMaxAggregateOutputType | null
}

export type CallTranscriptAvgAggregateOutputType = {
  confidenceScore: number | null
  sentimentScore: number | null
}

export type CallTranscriptSumAggregateOutputType = {
  confidenceScore: number | null
  sentimentScore: number | null
}

export type CallTranscriptMinAggregateOutputType = {
  callTransId: string | null
  callLogId: string | null
  speaker: string | null
  messageText: string | null
  timestamp: Date | null
  confidenceScore: number | null
  isPiiRedacted: boolean | null
  sentimentScore: number | null
}

export type CallTranscriptMaxAggregateOutputType = {
  callTransId: string | null
  callLogId: string | null
  speaker: string | null
  messageText: string | null
  timestamp: Date | null
  confidenceScore: number | null
  isPiiRedacted: boolean | null
  sentimentScore: number | null
}

export type CallTranscriptCountAggregateOutputType = {
  callTransId: number
  callLogId: number
  speaker: number
  messageText: number
  timestamp: number
  confidenceScore: number
  isPiiRedacted: number
  sentimentScore: number
  _all: number
}


export type CallTranscriptAvgAggregateInputType = {
  confidenceScore?: true
  sentimentScore?: true
}

export type CallTranscriptSumAggregateInputType = {
  confidenceScore?: true
  sentimentScore?: true
}

export type CallTranscriptMinAggregateInputType = {
  callTransId?: true
  callLogId?: true
  speaker?: true
  messageText?: true
  timestamp?: true
  confidenceScore?: true
  isPiiRedacted?: true
  sentimentScore?: true
}

export type CallTranscriptMaxAggregateInputType = {
  callTransId?: true
  callLogId?: true
  speaker?: true
  messageText?: true
  timestamp?: true
  confidenceScore?: true
  isPiiRedacted?: true
  sentimentScore?: true
}

export type CallTranscriptCountAggregateInputType = {
  callTransId?: true
  callLogId?: true
  speaker?: true
  messageText?: true
  timestamp?: true
  confidenceScore?: true
  isPiiRedacted?: true
  sentimentScore?: true
  _all?: true
}

export type CallTranscriptAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which CallTranscript to aggregate.
   */
  where?: Prisma.CallTranscriptWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CallTranscripts to fetch.
   */
  orderBy?: Prisma.CallTranscriptOrderByWithRelationInput | Prisma.CallTranscriptOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.CallTranscriptWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CallTranscripts 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` CallTranscripts.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned CallTranscripts
  **/
  _count?: true | CallTranscriptCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: CallTranscriptAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: CallTranscriptSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: CallTranscriptMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: CallTranscriptMaxAggregateInputType
}

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




export type CallTranscriptGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CallTranscriptWhereInput
  orderBy?: Prisma.CallTranscriptOrderByWithAggregationInput | Prisma.CallTranscriptOrderByWithAggregationInput[]
  by: Prisma.CallTranscriptScalarFieldEnum[] | Prisma.CallTranscriptScalarFieldEnum
  having?: Prisma.CallTranscriptScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: CallTranscriptCountAggregateInputType | true
  _avg?: CallTranscriptAvgAggregateInputType
  _sum?: CallTranscriptSumAggregateInputType
  _min?: CallTranscriptMinAggregateInputType
  _max?: CallTranscriptMaxAggregateInputType
}

export type CallTranscriptGroupByOutputType = {
  callTransId: string
  callLogId: string
  speaker: string
  messageText: string
  timestamp: Date
  confidenceScore: number | null
  isPiiRedacted: boolean
  sentimentScore: number | null
  _count: CallTranscriptCountAggregateOutputType | null
  _avg: CallTranscriptAvgAggregateOutputType | null
  _sum: CallTranscriptSumAggregateOutputType | null
  _min: CallTranscriptMinAggregateOutputType | null
  _max: CallTranscriptMaxAggregateOutputType | null
}

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



export type CallTranscriptWhereInput = {
  AND?: Prisma.CallTranscriptWhereInput | Prisma.CallTranscriptWhereInput[]
  OR?: Prisma.CallTranscriptWhereInput[]
  NOT?: Prisma.CallTranscriptWhereInput | Prisma.CallTranscriptWhereInput[]
  callTransId?: Prisma.StringFilter<"CallTranscript"> | string
  callLogId?: Prisma.StringFilter<"CallTranscript"> | string
  speaker?: Prisma.StringFilter<"CallTranscript"> | string
  messageText?: Prisma.StringFilter<"CallTranscript"> | string
  timestamp?: Prisma.DateTimeFilter<"CallTranscript"> | Date | string
  confidenceScore?: Prisma.FloatNullableFilter<"CallTranscript"> | number | null
  isPiiRedacted?: Prisma.BoolFilter<"CallTranscript"> | boolean
  sentimentScore?: Prisma.FloatNullableFilter<"CallTranscript"> | number | null
  callLog?: Prisma.XOR<Prisma.CallLogScalarRelationFilter, Prisma.CallLogWhereInput>
}

export type CallTranscriptOrderByWithRelationInput = {
  callTransId?: Prisma.SortOrder
  callLogId?: Prisma.SortOrder
  speaker?: Prisma.SortOrder
  messageText?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  confidenceScore?: Prisma.SortOrderInput | Prisma.SortOrder
  isPiiRedacted?: Prisma.SortOrder
  sentimentScore?: Prisma.SortOrderInput | Prisma.SortOrder
  callLog?: Prisma.CallLogOrderByWithRelationInput
}

export type CallTranscriptWhereUniqueInput = Prisma.AtLeast<{
  callTransId?: string
  AND?: Prisma.CallTranscriptWhereInput | Prisma.CallTranscriptWhereInput[]
  OR?: Prisma.CallTranscriptWhereInput[]
  NOT?: Prisma.CallTranscriptWhereInput | Prisma.CallTranscriptWhereInput[]
  callLogId?: Prisma.StringFilter<"CallTranscript"> | string
  speaker?: Prisma.StringFilter<"CallTranscript"> | string
  messageText?: Prisma.StringFilter<"CallTranscript"> | string
  timestamp?: Prisma.DateTimeFilter<"CallTranscript"> | Date | string
  confidenceScore?: Prisma.FloatNullableFilter<"CallTranscript"> | number | null
  isPiiRedacted?: Prisma.BoolFilter<"CallTranscript"> | boolean
  sentimentScore?: Prisma.FloatNullableFilter<"CallTranscript"> | number | null
  callLog?: Prisma.XOR<Prisma.CallLogScalarRelationFilter, Prisma.CallLogWhereInput>
}, "callTransId">

export type CallTranscriptOrderByWithAggregationInput = {
  callTransId?: Prisma.SortOrder
  callLogId?: Prisma.SortOrder
  speaker?: Prisma.SortOrder
  messageText?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  confidenceScore?: Prisma.SortOrderInput | Prisma.SortOrder
  isPiiRedacted?: Prisma.SortOrder
  sentimentScore?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.CallTranscriptCountOrderByAggregateInput
  _avg?: Prisma.CallTranscriptAvgOrderByAggregateInput
  _max?: Prisma.CallTranscriptMaxOrderByAggregateInput
  _min?: Prisma.CallTranscriptMinOrderByAggregateInput
  _sum?: Prisma.CallTranscriptSumOrderByAggregateInput
}

export type CallTranscriptScalarWhereWithAggregatesInput = {
  AND?: Prisma.CallTranscriptScalarWhereWithAggregatesInput | Prisma.CallTranscriptScalarWhereWithAggregatesInput[]
  OR?: Prisma.CallTranscriptScalarWhereWithAggregatesInput[]
  NOT?: Prisma.CallTranscriptScalarWhereWithAggregatesInput | Prisma.CallTranscriptScalarWhereWithAggregatesInput[]
  callTransId?: Prisma.StringWithAggregatesFilter<"CallTranscript"> | string
  callLogId?: Prisma.StringWithAggregatesFilter<"CallTranscript"> | string
  speaker?: Prisma.StringWithAggregatesFilter<"CallTranscript"> | string
  messageText?: Prisma.StringWithAggregatesFilter<"CallTranscript"> | string
  timestamp?: Prisma.DateTimeWithAggregatesFilter<"CallTranscript"> | Date | string
  confidenceScore?: Prisma.FloatNullableWithAggregatesFilter<"CallTranscript"> | number | null
  isPiiRedacted?: Prisma.BoolWithAggregatesFilter<"CallTranscript"> | boolean
  sentimentScore?: Prisma.FloatNullableWithAggregatesFilter<"CallTranscript"> | number | null
}

export type CallTranscriptCreateInput = {
  callTransId?: string
  speaker: string
  messageText: string
  timestamp: Date | string
  confidenceScore?: number | null
  isPiiRedacted?: boolean
  sentimentScore?: number | null
  callLog: Prisma.CallLogCreateNestedOneWithoutTranscriptsInput
}

export type CallTranscriptUncheckedCreateInput = {
  callTransId?: string
  callLogId: string
  speaker: string
  messageText: string
  timestamp: Date | string
  confidenceScore?: number | null
  isPiiRedacted?: boolean
  sentimentScore?: number | null
}

export type CallTranscriptUpdateInput = {
  callTransId?: Prisma.StringFieldUpdateOperationsInput | string
  speaker?: Prisma.StringFieldUpdateOperationsInput | string
  messageText?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  confidenceScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  isPiiRedacted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  sentimentScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  callLog?: Prisma.CallLogUpdateOneRequiredWithoutTranscriptsNestedInput
}

export type CallTranscriptUncheckedUpdateInput = {
  callTransId?: Prisma.StringFieldUpdateOperationsInput | string
  callLogId?: Prisma.StringFieldUpdateOperationsInput | string
  speaker?: Prisma.StringFieldUpdateOperationsInput | string
  messageText?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  confidenceScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  isPiiRedacted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  sentimentScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}

export type CallTranscriptCreateManyInput = {
  callTransId?: string
  callLogId: string
  speaker: string
  messageText: string
  timestamp: Date | string
  confidenceScore?: number | null
  isPiiRedacted?: boolean
  sentimentScore?: number | null
}

export type CallTranscriptUpdateManyMutationInput = {
  callTransId?: Prisma.StringFieldUpdateOperationsInput | string
  speaker?: Prisma.StringFieldUpdateOperationsInput | string
  messageText?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  confidenceScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  isPiiRedacted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  sentimentScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}

export type CallTranscriptUncheckedUpdateManyInput = {
  callTransId?: Prisma.StringFieldUpdateOperationsInput | string
  callLogId?: Prisma.StringFieldUpdateOperationsInput | string
  speaker?: Prisma.StringFieldUpdateOperationsInput | string
  messageText?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  confidenceScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  isPiiRedacted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  sentimentScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}

export type CallTranscriptListRelationFilter = {
  every?: Prisma.CallTranscriptWhereInput
  some?: Prisma.CallTranscriptWhereInput
  none?: Prisma.CallTranscriptWhereInput
}

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

export type CallTranscriptCountOrderByAggregateInput = {
  callTransId?: Prisma.SortOrder
  callLogId?: Prisma.SortOrder
  speaker?: Prisma.SortOrder
  messageText?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  confidenceScore?: Prisma.SortOrder
  isPiiRedacted?: Prisma.SortOrder
  sentimentScore?: Prisma.SortOrder
}

export type CallTranscriptAvgOrderByAggregateInput = {
  confidenceScore?: Prisma.SortOrder
  sentimentScore?: Prisma.SortOrder
}

export type CallTranscriptMaxOrderByAggregateInput = {
  callTransId?: Prisma.SortOrder
  callLogId?: Prisma.SortOrder
  speaker?: Prisma.SortOrder
  messageText?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  confidenceScore?: Prisma.SortOrder
  isPiiRedacted?: Prisma.SortOrder
  sentimentScore?: Prisma.SortOrder
}

export type CallTranscriptMinOrderByAggregateInput = {
  callTransId?: Prisma.SortOrder
  callLogId?: Prisma.SortOrder
  speaker?: Prisma.SortOrder
  messageText?: Prisma.SortOrder
  timestamp?: Prisma.SortOrder
  confidenceScore?: Prisma.SortOrder
  isPiiRedacted?: Prisma.SortOrder
  sentimentScore?: Prisma.SortOrder
}

export type CallTranscriptSumOrderByAggregateInput = {
  confidenceScore?: Prisma.SortOrder
  sentimentScore?: Prisma.SortOrder
}

export type CallTranscriptCreateNestedManyWithoutCallLogInput = {
  create?: Prisma.XOR<Prisma.CallTranscriptCreateWithoutCallLogInput, Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput> | Prisma.CallTranscriptCreateWithoutCallLogInput[] | Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput[]
  connectOrCreate?: Prisma.CallTranscriptCreateOrConnectWithoutCallLogInput | Prisma.CallTranscriptCreateOrConnectWithoutCallLogInput[]
  createMany?: Prisma.CallTranscriptCreateManyCallLogInputEnvelope
  connect?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
}

export type CallTranscriptUncheckedCreateNestedManyWithoutCallLogInput = {
  create?: Prisma.XOR<Prisma.CallTranscriptCreateWithoutCallLogInput, Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput> | Prisma.CallTranscriptCreateWithoutCallLogInput[] | Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput[]
  connectOrCreate?: Prisma.CallTranscriptCreateOrConnectWithoutCallLogInput | Prisma.CallTranscriptCreateOrConnectWithoutCallLogInput[]
  createMany?: Prisma.CallTranscriptCreateManyCallLogInputEnvelope
  connect?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
}

export type CallTranscriptUpdateManyWithoutCallLogNestedInput = {
  create?: Prisma.XOR<Prisma.CallTranscriptCreateWithoutCallLogInput, Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput> | Prisma.CallTranscriptCreateWithoutCallLogInput[] | Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput[]
  connectOrCreate?: Prisma.CallTranscriptCreateOrConnectWithoutCallLogInput | Prisma.CallTranscriptCreateOrConnectWithoutCallLogInput[]
  upsert?: Prisma.CallTranscriptUpsertWithWhereUniqueWithoutCallLogInput | Prisma.CallTranscriptUpsertWithWhereUniqueWithoutCallLogInput[]
  createMany?: Prisma.CallTranscriptCreateManyCallLogInputEnvelope
  set?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
  disconnect?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
  delete?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
  connect?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
  update?: Prisma.CallTranscriptUpdateWithWhereUniqueWithoutCallLogInput | Prisma.CallTranscriptUpdateWithWhereUniqueWithoutCallLogInput[]
  updateMany?: Prisma.CallTranscriptUpdateManyWithWhereWithoutCallLogInput | Prisma.CallTranscriptUpdateManyWithWhereWithoutCallLogInput[]
  deleteMany?: Prisma.CallTranscriptScalarWhereInput | Prisma.CallTranscriptScalarWhereInput[]
}

export type CallTranscriptUncheckedUpdateManyWithoutCallLogNestedInput = {
  create?: Prisma.XOR<Prisma.CallTranscriptCreateWithoutCallLogInput, Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput> | Prisma.CallTranscriptCreateWithoutCallLogInput[] | Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput[]
  connectOrCreate?: Prisma.CallTranscriptCreateOrConnectWithoutCallLogInput | Prisma.CallTranscriptCreateOrConnectWithoutCallLogInput[]
  upsert?: Prisma.CallTranscriptUpsertWithWhereUniqueWithoutCallLogInput | Prisma.CallTranscriptUpsertWithWhereUniqueWithoutCallLogInput[]
  createMany?: Prisma.CallTranscriptCreateManyCallLogInputEnvelope
  set?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
  disconnect?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
  delete?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
  connect?: Prisma.CallTranscriptWhereUniqueInput | Prisma.CallTranscriptWhereUniqueInput[]
  update?: Prisma.CallTranscriptUpdateWithWhereUniqueWithoutCallLogInput | Prisma.CallTranscriptUpdateWithWhereUniqueWithoutCallLogInput[]
  updateMany?: Prisma.CallTranscriptUpdateManyWithWhereWithoutCallLogInput | Prisma.CallTranscriptUpdateManyWithWhereWithoutCallLogInput[]
  deleteMany?: Prisma.CallTranscriptScalarWhereInput | Prisma.CallTranscriptScalarWhereInput[]
}

export type NullableFloatFieldUpdateOperationsInput = {
  set?: number | null
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type CallTranscriptCreateWithoutCallLogInput = {
  callTransId?: string
  speaker: string
  messageText: string
  timestamp: Date | string
  confidenceScore?: number | null
  isPiiRedacted?: boolean
  sentimentScore?: number | null
}

export type CallTranscriptUncheckedCreateWithoutCallLogInput = {
  callTransId?: string
  speaker: string
  messageText: string
  timestamp: Date | string
  confidenceScore?: number | null
  isPiiRedacted?: boolean
  sentimentScore?: number | null
}

export type CallTranscriptCreateOrConnectWithoutCallLogInput = {
  where: Prisma.CallTranscriptWhereUniqueInput
  create: Prisma.XOR<Prisma.CallTranscriptCreateWithoutCallLogInput, Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput>
}

export type CallTranscriptCreateManyCallLogInputEnvelope = {
  data: Prisma.CallTranscriptCreateManyCallLogInput | Prisma.CallTranscriptCreateManyCallLogInput[]
  skipDuplicates?: boolean
}

export type CallTranscriptUpsertWithWhereUniqueWithoutCallLogInput = {
  where: Prisma.CallTranscriptWhereUniqueInput
  update: Prisma.XOR<Prisma.CallTranscriptUpdateWithoutCallLogInput, Prisma.CallTranscriptUncheckedUpdateWithoutCallLogInput>
  create: Prisma.XOR<Prisma.CallTranscriptCreateWithoutCallLogInput, Prisma.CallTranscriptUncheckedCreateWithoutCallLogInput>
}

export type CallTranscriptUpdateWithWhereUniqueWithoutCallLogInput = {
  where: Prisma.CallTranscriptWhereUniqueInput
  data: Prisma.XOR<Prisma.CallTranscriptUpdateWithoutCallLogInput, Prisma.CallTranscriptUncheckedUpdateWithoutCallLogInput>
}

export type CallTranscriptUpdateManyWithWhereWithoutCallLogInput = {
  where: Prisma.CallTranscriptScalarWhereInput
  data: Prisma.XOR<Prisma.CallTranscriptUpdateManyMutationInput, Prisma.CallTranscriptUncheckedUpdateManyWithoutCallLogInput>
}

export type CallTranscriptScalarWhereInput = {
  AND?: Prisma.CallTranscriptScalarWhereInput | Prisma.CallTranscriptScalarWhereInput[]
  OR?: Prisma.CallTranscriptScalarWhereInput[]
  NOT?: Prisma.CallTranscriptScalarWhereInput | Prisma.CallTranscriptScalarWhereInput[]
  callTransId?: Prisma.StringFilter<"CallTranscript"> | string
  callLogId?: Prisma.StringFilter<"CallTranscript"> | string
  speaker?: Prisma.StringFilter<"CallTranscript"> | string
  messageText?: Prisma.StringFilter<"CallTranscript"> | string
  timestamp?: Prisma.DateTimeFilter<"CallTranscript"> | Date | string
  confidenceScore?: Prisma.FloatNullableFilter<"CallTranscript"> | number | null
  isPiiRedacted?: Prisma.BoolFilter<"CallTranscript"> | boolean
  sentimentScore?: Prisma.FloatNullableFilter<"CallTranscript"> | number | null
}

export type CallTranscriptCreateManyCallLogInput = {
  callTransId?: string
  speaker: string
  messageText: string
  timestamp: Date | string
  confidenceScore?: number | null
  isPiiRedacted?: boolean
  sentimentScore?: number | null
}

export type CallTranscriptUpdateWithoutCallLogInput = {
  callTransId?: Prisma.StringFieldUpdateOperationsInput | string
  speaker?: Prisma.StringFieldUpdateOperationsInput | string
  messageText?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  confidenceScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  isPiiRedacted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  sentimentScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}

export type CallTranscriptUncheckedUpdateWithoutCallLogInput = {
  callTransId?: Prisma.StringFieldUpdateOperationsInput | string
  speaker?: Prisma.StringFieldUpdateOperationsInput | string
  messageText?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  confidenceScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  isPiiRedacted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  sentimentScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}

export type CallTranscriptUncheckedUpdateManyWithoutCallLogInput = {
  callTransId?: Prisma.StringFieldUpdateOperationsInput | string
  speaker?: Prisma.StringFieldUpdateOperationsInput | string
  messageText?: Prisma.StringFieldUpdateOperationsInput | string
  timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  confidenceScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  isPiiRedacted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  sentimentScore?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}



export type CallTranscriptSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  callTransId?: boolean
  callLogId?: boolean
  speaker?: boolean
  messageText?: boolean
  timestamp?: boolean
  confidenceScore?: boolean
  isPiiRedacted?: boolean
  sentimentScore?: boolean
  callLog?: boolean | Prisma.CallLogDefaultArgs<ExtArgs>
}, ExtArgs["result"]["callTranscript"]>

export type CallTranscriptSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  callTransId?: boolean
  callLogId?: boolean
  speaker?: boolean
  messageText?: boolean
  timestamp?: boolean
  confidenceScore?: boolean
  isPiiRedacted?: boolean
  sentimentScore?: boolean
  callLog?: boolean | Prisma.CallLogDefaultArgs<ExtArgs>
}, ExtArgs["result"]["callTranscript"]>

export type CallTranscriptSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  callTransId?: boolean
  callLogId?: boolean
  speaker?: boolean
  messageText?: boolean
  timestamp?: boolean
  confidenceScore?: boolean
  isPiiRedacted?: boolean
  sentimentScore?: boolean
  callLog?: boolean | Prisma.CallLogDefaultArgs<ExtArgs>
}, ExtArgs["result"]["callTranscript"]>

export type CallTranscriptSelectScalar = {
  callTransId?: boolean
  callLogId?: boolean
  speaker?: boolean
  messageText?: boolean
  timestamp?: boolean
  confidenceScore?: boolean
  isPiiRedacted?: boolean
  sentimentScore?: boolean
}

export type CallTranscriptOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"callTransId" | "callLogId" | "speaker" | "messageText" | "timestamp" | "confidenceScore" | "isPiiRedacted" | "sentimentScore", ExtArgs["result"]["callTranscript"]>
export type CallTranscriptInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  callLog?: boolean | Prisma.CallLogDefaultArgs<ExtArgs>
}
export type CallTranscriptIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  callLog?: boolean | Prisma.CallLogDefaultArgs<ExtArgs>
}
export type CallTranscriptIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  callLog?: boolean | Prisma.CallLogDefaultArgs<ExtArgs>
}

export type $CallTranscriptPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "CallTranscript"
  objects: {
    callLog: Prisma.$CallLogPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    callTransId: string
    callLogId: string
    speaker: string
    messageText: string
    timestamp: Date
    confidenceScore: number | null
    isPiiRedacted: boolean
    sentimentScore: number | null
  }, ExtArgs["result"]["callTranscript"]>
  composites: {}
}

export type CallTranscriptGetPayload<S extends boolean | null | undefined | CallTranscriptDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CallTranscriptPayload, S>

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

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

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

  /**
   * Find the first CallTranscript 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 {CallTranscriptFindFirstArgs} args - Arguments to find a CallTranscript
   * @example
   * // Get one CallTranscript
   * const callTranscript = await prisma.callTranscript.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends CallTranscriptFindFirstArgs>(args?: Prisma.SelectSubset<T, CallTranscriptFindFirstArgs<ExtArgs>>): Prisma.Prisma__CallTranscriptClient<runtime.Types.Result.GetResult<Prisma.$CallTranscriptPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first CallTranscript 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 {CallTranscriptFindFirstOrThrowArgs} args - Arguments to find a CallTranscript
   * @example
   * // Get one CallTranscript
   * const callTranscript = await prisma.callTranscript.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends CallTranscriptFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CallTranscriptFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CallTranscriptClient<runtime.Types.Result.GetResult<Prisma.$CallTranscriptPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more CallTranscripts 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 {CallTranscriptFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all CallTranscripts
   * const callTranscripts = await prisma.callTranscript.findMany()
   * 
   * // Get first 10 CallTranscripts
   * const callTranscripts = await prisma.callTranscript.findMany({ take: 10 })
   * 
   * // Only select the `callTransId`
   * const callTranscriptWithCallTransIdOnly = await prisma.callTranscript.findMany({ select: { callTransId: true } })
   * 
   */
  findMany<T extends CallTranscriptFindManyArgs>(args?: Prisma.SelectSubset<T, CallTranscriptFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CallTranscriptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

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

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

  /**
   * Create many CallTranscripts and returns the data saved in the database.
   * @param {CallTranscriptCreateManyAndReturnArgs} args - Arguments to create many CallTranscripts.
   * @example
   * // Create many CallTranscripts
   * const callTranscript = await prisma.callTranscript.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many CallTranscripts and only return the `callTransId`
   * const callTranscriptWithCallTransIdOnly = await prisma.callTranscript.createManyAndReturn({
   *   select: { callTransId: 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 CallTranscriptCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CallTranscriptCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CallTranscriptPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more CallTranscripts and returns the data updated in the database.
   * @param {CallTranscriptUpdateManyAndReturnArgs} args - Arguments to update many CallTranscripts.
   * @example
   * // Update many CallTranscripts
   * const callTranscript = await prisma.callTranscript.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more CallTranscripts and only return the `callTransId`
   * const callTranscriptWithCallTransIdOnly = await prisma.callTranscript.updateManyAndReturn({
   *   select: { callTransId: 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 CallTranscriptUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CallTranscriptUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CallTranscriptPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

  /**
   * Allows you to perform aggregations operations on a CallTranscript.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CallTranscriptAggregateArgs} 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 CallTranscriptAggregateArgs>(args: Prisma.Subset<T, CallTranscriptAggregateArgs>): Prisma.PrismaPromise<GetCallTranscriptAggregateType<T>>

  /**
   * Group by CallTranscript.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {CallTranscriptGroupByArgs} 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 CallTranscriptGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: CallTranscriptGroupByArgs['orderBy'] }
      : { orderBy?: CallTranscriptGroupByArgs['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, CallTranscriptGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCallTranscriptGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the CallTranscript model
 */
readonly fields: CallTranscriptFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for CallTranscript.
 * 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__CallTranscriptClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  callLog<T extends Prisma.CallLogDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CallLogDefaultArgs<ExtArgs>>): Prisma.Prisma__CallLogClient<runtime.Types.Result.GetResult<Prisma.$CallLogPayload<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 CallTranscript model
 */
export interface CallTranscriptFieldRefs {
  readonly callTransId: Prisma.FieldRef<"CallTranscript", 'String'>
  readonly callLogId: Prisma.FieldRef<"CallTranscript", 'String'>
  readonly speaker: Prisma.FieldRef<"CallTranscript", 'String'>
  readonly messageText: Prisma.FieldRef<"CallTranscript", 'String'>
  readonly timestamp: Prisma.FieldRef<"CallTranscript", 'DateTime'>
  readonly confidenceScore: Prisma.FieldRef<"CallTranscript", 'Float'>
  readonly isPiiRedacted: Prisma.FieldRef<"CallTranscript", 'Boolean'>
  readonly sentimentScore: Prisma.FieldRef<"CallTranscript", 'Float'>
}
    

// Custom InputTypes
/**
 * CallTranscript findUnique
 */
export type CallTranscriptFindUniqueArgs<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
  /**
   * Filter, which CallTranscript to fetch.
   */
  where: Prisma.CallTranscriptWhereUniqueInput
}

/**
 * CallTranscript findUniqueOrThrow
 */
export type CallTranscriptFindUniqueOrThrowArgs<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
  /**
   * Filter, which CallTranscript to fetch.
   */
  where: Prisma.CallTranscriptWhereUniqueInput
}

/**
 * CallTranscript findFirst
 */
export type CallTranscriptFindFirstArgs<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
  /**
   * Filter, which CallTranscript to fetch.
   */
  where?: Prisma.CallTranscriptWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CallTranscripts to fetch.
   */
  orderBy?: Prisma.CallTranscriptOrderByWithRelationInput | Prisma.CallTranscriptOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for CallTranscripts.
   */
  cursor?: Prisma.CallTranscriptWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CallTranscripts 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` CallTranscripts.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CallTranscripts.
   */
  distinct?: Prisma.CallTranscriptScalarFieldEnum | Prisma.CallTranscriptScalarFieldEnum[]
}

/**
 * CallTranscript findFirstOrThrow
 */
export type CallTranscriptFindFirstOrThrowArgs<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
  /**
   * Filter, which CallTranscript to fetch.
   */
  where?: Prisma.CallTranscriptWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CallTranscripts to fetch.
   */
  orderBy?: Prisma.CallTranscriptOrderByWithRelationInput | Prisma.CallTranscriptOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for CallTranscripts.
   */
  cursor?: Prisma.CallTranscriptWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CallTranscripts 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` CallTranscripts.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CallTranscripts.
   */
  distinct?: Prisma.CallTranscriptScalarFieldEnum | Prisma.CallTranscriptScalarFieldEnum[]
}

/**
 * CallTranscript findMany
 */
export type CallTranscriptFindManyArgs<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
  /**
   * Filter, which CallTranscripts to fetch.
   */
  where?: Prisma.CallTranscriptWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CallTranscripts to fetch.
   */
  orderBy?: Prisma.CallTranscriptOrderByWithRelationInput | Prisma.CallTranscriptOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing CallTranscripts.
   */
  cursor?: Prisma.CallTranscriptWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CallTranscripts 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` CallTranscripts.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CallTranscripts.
   */
  distinct?: Prisma.CallTranscriptScalarFieldEnum | Prisma.CallTranscriptScalarFieldEnum[]
}

/**
 * CallTranscript create
 */
export type CallTranscriptCreateArgs<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
  /**
   * The data needed to create a CallTranscript.
   */
  data: Prisma.XOR<Prisma.CallTranscriptCreateInput, Prisma.CallTranscriptUncheckedCreateInput>
}

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

/**
 * CallTranscript createManyAndReturn
 */
export type CallTranscriptCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallTranscript
   */
  select?: Prisma.CallTranscriptSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CallTranscript
   */
  omit?: Prisma.CallTranscriptOmit<ExtArgs> | null
  /**
   * The data used to create many CallTranscripts.
   */
  data: Prisma.CallTranscriptCreateManyInput | Prisma.CallTranscriptCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallTranscriptIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * CallTranscript update
 */
export type CallTranscriptUpdateArgs<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
  /**
   * The data needed to update a CallTranscript.
   */
  data: Prisma.XOR<Prisma.CallTranscriptUpdateInput, Prisma.CallTranscriptUncheckedUpdateInput>
  /**
   * Choose, which CallTranscript to update.
   */
  where: Prisma.CallTranscriptWhereUniqueInput
}

/**
 * CallTranscript updateMany
 */
export type CallTranscriptUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update CallTranscripts.
   */
  data: Prisma.XOR<Prisma.CallTranscriptUpdateManyMutationInput, Prisma.CallTranscriptUncheckedUpdateManyInput>
  /**
   * Filter which CallTranscripts to update
   */
  where?: Prisma.CallTranscriptWhereInput
  /**
   * Limit how many CallTranscripts to update.
   */
  limit?: number
}

/**
 * CallTranscript updateManyAndReturn
 */
export type CallTranscriptUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CallTranscript
   */
  select?: Prisma.CallTranscriptSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CallTranscript
   */
  omit?: Prisma.CallTranscriptOmit<ExtArgs> | null
  /**
   * The data used to update CallTranscripts.
   */
  data: Prisma.XOR<Prisma.CallTranscriptUpdateManyMutationInput, Prisma.CallTranscriptUncheckedUpdateManyInput>
  /**
   * Filter which CallTranscripts to update
   */
  where?: Prisma.CallTranscriptWhereInput
  /**
   * Limit how many CallTranscripts to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CallTranscriptIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * CallTranscript upsert
 */
export type CallTranscriptUpsertArgs<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
  /**
   * The filter to search for the CallTranscript to update in case it exists.
   */
  where: Prisma.CallTranscriptWhereUniqueInput
  /**
   * In case the CallTranscript found by the `where` argument doesn't exist, create a new CallTranscript with this data.
   */
  create: Prisma.XOR<Prisma.CallTranscriptCreateInput, Prisma.CallTranscriptUncheckedCreateInput>
  /**
   * In case the CallTranscript was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.CallTranscriptUpdateInput, Prisma.CallTranscriptUncheckedUpdateInput>
}

/**
 * CallTranscript delete
 */
export type CallTranscriptDeleteArgs<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
  /**
   * Filter which CallTranscript to delete.
   */
  where: Prisma.CallTranscriptWhereUniqueInput
}

/**
 * CallTranscript deleteMany
 */
export type CallTranscriptDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which CallTranscripts to delete
   */
  where?: Prisma.CallTranscriptWhereInput
  /**
   * Limit how many CallTranscripts to delete.
   */
  limit?: number
}

/**
 * CallTranscript without action
 */
export type CallTranscriptDefaultArgs<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
}
