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

export type AggregateIpc_requests = {
  _count: Ipc_requestsCountAggregateOutputType | null
  _min: Ipc_requestsMinAggregateOutputType | null
  _max: Ipc_requestsMaxAggregateOutputType | null
}

export type Ipc_requestsMinAggregateOutputType = {
  id: string | null
  type: $Enums.ipc_request_type | null
  session_id: string | null
  thread_id: string | null
  payload: string | null
  response: string | null
  status: $Enums.ipc_request_status | null
  created_at: Date | null
  updated_at: Date | null
}

export type Ipc_requestsMaxAggregateOutputType = {
  id: string | null
  type: $Enums.ipc_request_type | null
  session_id: string | null
  thread_id: string | null
  payload: string | null
  response: string | null
  status: $Enums.ipc_request_status | null
  created_at: Date | null
  updated_at: Date | null
}

export type Ipc_requestsCountAggregateOutputType = {
  id: number
  type: number
  session_id: number
  thread_id: number
  payload: number
  response: number
  status: number
  created_at: number
  updated_at: number
  _all: number
}


export type Ipc_requestsMinAggregateInputType = {
  id?: true
  type?: true
  session_id?: true
  thread_id?: true
  payload?: true
  response?: true
  status?: true
  created_at?: true
  updated_at?: true
}

export type Ipc_requestsMaxAggregateInputType = {
  id?: true
  type?: true
  session_id?: true
  thread_id?: true
  payload?: true
  response?: true
  status?: true
  created_at?: true
  updated_at?: true
}

export type Ipc_requestsCountAggregateInputType = {
  id?: true
  type?: true
  session_id?: true
  thread_id?: true
  payload?: true
  response?: true
  status?: true
  created_at?: true
  updated_at?: true
  _all?: true
}

export type Ipc_requestsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ipc_requests to aggregate.
   */
  where?: Prisma.ipc_requestsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ipc_requests to fetch.
   */
  orderBy?: Prisma.ipc_requestsOrderByWithRelationInput | Prisma.ipc_requestsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ipc_requestsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ipc_requests 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` ipc_requests.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ipc_requests
  **/
  _count?: true | Ipc_requestsCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Ipc_requestsMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Ipc_requestsMaxAggregateInputType
}

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




export type ipc_requestsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ipc_requestsWhereInput
  orderBy?: Prisma.ipc_requestsOrderByWithAggregationInput | Prisma.ipc_requestsOrderByWithAggregationInput[]
  by: Prisma.Ipc_requestsScalarFieldEnum[] | Prisma.Ipc_requestsScalarFieldEnum
  having?: Prisma.ipc_requestsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Ipc_requestsCountAggregateInputType | true
  _min?: Ipc_requestsMinAggregateInputType
  _max?: Ipc_requestsMaxAggregateInputType
}

export type Ipc_requestsGroupByOutputType = {
  id: string
  type: $Enums.ipc_request_type
  session_id: string
  thread_id: string
  payload: string
  response: string | null
  status: $Enums.ipc_request_status
  created_at: Date
  updated_at: Date
  _count: Ipc_requestsCountAggregateOutputType | null
  _min: Ipc_requestsMinAggregateOutputType | null
  _max: Ipc_requestsMaxAggregateOutputType | null
}

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



export type ipc_requestsWhereInput = {
  AND?: Prisma.ipc_requestsWhereInput | Prisma.ipc_requestsWhereInput[]
  OR?: Prisma.ipc_requestsWhereInput[]
  NOT?: Prisma.ipc_requestsWhereInput | Prisma.ipc_requestsWhereInput[]
  id?: Prisma.StringFilter<"ipc_requests"> | string
  type?: Prisma.Enumipc_request_typeFilter<"ipc_requests"> | $Enums.ipc_request_type
  session_id?: Prisma.StringFilter<"ipc_requests"> | string
  thread_id?: Prisma.StringFilter<"ipc_requests"> | string
  payload?: Prisma.StringFilter<"ipc_requests"> | string
  response?: Prisma.StringNullableFilter<"ipc_requests"> | string | null
  status?: Prisma.Enumipc_request_statusFilter<"ipc_requests"> | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFilter<"ipc_requests"> | Date | string
  updated_at?: Prisma.DateTimeFilter<"ipc_requests"> | Date | string
  thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
}

export type ipc_requestsOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  response?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
  thread?: Prisma.thread_sessionsOrderByWithRelationInput
}

export type ipc_requestsWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.ipc_requestsWhereInput | Prisma.ipc_requestsWhereInput[]
  OR?: Prisma.ipc_requestsWhereInput[]
  NOT?: Prisma.ipc_requestsWhereInput | Prisma.ipc_requestsWhereInput[]
  type?: Prisma.Enumipc_request_typeFilter<"ipc_requests"> | $Enums.ipc_request_type
  session_id?: Prisma.StringFilter<"ipc_requests"> | string
  thread_id?: Prisma.StringFilter<"ipc_requests"> | string
  payload?: Prisma.StringFilter<"ipc_requests"> | string
  response?: Prisma.StringNullableFilter<"ipc_requests"> | string | null
  status?: Prisma.Enumipc_request_statusFilter<"ipc_requests"> | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFilter<"ipc_requests"> | Date | string
  updated_at?: Prisma.DateTimeFilter<"ipc_requests"> | Date | string
  thread?: Prisma.XOR<Prisma.Thread_sessionsScalarRelationFilter, Prisma.thread_sessionsWhereInput>
}, "id">

export type ipc_requestsOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  response?: Prisma.SortOrderInput | Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
  _count?: Prisma.ipc_requestsCountOrderByAggregateInput
  _max?: Prisma.ipc_requestsMaxOrderByAggregateInput
  _min?: Prisma.ipc_requestsMinOrderByAggregateInput
}

export type ipc_requestsScalarWhereWithAggregatesInput = {
  AND?: Prisma.ipc_requestsScalarWhereWithAggregatesInput | Prisma.ipc_requestsScalarWhereWithAggregatesInput[]
  OR?: Prisma.ipc_requestsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ipc_requestsScalarWhereWithAggregatesInput | Prisma.ipc_requestsScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ipc_requests"> | string
  type?: Prisma.Enumipc_request_typeWithAggregatesFilter<"ipc_requests"> | $Enums.ipc_request_type
  session_id?: Prisma.StringWithAggregatesFilter<"ipc_requests"> | string
  thread_id?: Prisma.StringWithAggregatesFilter<"ipc_requests"> | string
  payload?: Prisma.StringWithAggregatesFilter<"ipc_requests"> | string
  response?: Prisma.StringNullableWithAggregatesFilter<"ipc_requests"> | string | null
  status?: Prisma.Enumipc_request_statusWithAggregatesFilter<"ipc_requests"> | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeWithAggregatesFilter<"ipc_requests"> | Date | string
  updated_at?: Prisma.DateTimeWithAggregatesFilter<"ipc_requests"> | Date | string
}

export type ipc_requestsCreateInput = {
  id?: string
  type: $Enums.ipc_request_type
  session_id: string
  payload: string
  response?: string | null
  status?: $Enums.ipc_request_status
  created_at?: Date | string
  updated_at?: Date | string
  thread: Prisma.thread_sessionsCreateNestedOneWithoutIpc_requestsInput
}

export type ipc_requestsUncheckedCreateInput = {
  id?: string
  type: $Enums.ipc_request_type
  session_id: string
  thread_id: string
  payload: string
  response?: string | null
  status?: $Enums.ipc_request_status
  created_at?: Date | string
  updated_at?: Date | string
}

export type ipc_requestsUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.Enumipc_request_typeFieldUpdateOperationsInput | $Enums.ipc_request_type
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  response?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.Enumipc_request_statusFieldUpdateOperationsInput | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  thread?: Prisma.thread_sessionsUpdateOneRequiredWithoutIpc_requestsNestedInput
}

export type ipc_requestsUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.Enumipc_request_typeFieldUpdateOperationsInput | $Enums.ipc_request_type
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  thread_id?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  response?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.Enumipc_request_statusFieldUpdateOperationsInput | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ipc_requestsCreateManyInput = {
  id?: string
  type: $Enums.ipc_request_type
  session_id: string
  thread_id: string
  payload: string
  response?: string | null
  status?: $Enums.ipc_request_status
  created_at?: Date | string
  updated_at?: Date | string
}

export type ipc_requestsUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.Enumipc_request_typeFieldUpdateOperationsInput | $Enums.ipc_request_type
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  response?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.Enumipc_request_statusFieldUpdateOperationsInput | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ipc_requestsUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.Enumipc_request_typeFieldUpdateOperationsInput | $Enums.ipc_request_type
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  thread_id?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  response?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.Enumipc_request_statusFieldUpdateOperationsInput | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type Ipc_requestsListRelationFilter = {
  every?: Prisma.ipc_requestsWhereInput
  some?: Prisma.ipc_requestsWhereInput
  none?: Prisma.ipc_requestsWhereInput
}

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

export type ipc_requestsCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  response?: Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type ipc_requestsMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  response?: Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type ipc_requestsMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  type?: Prisma.SortOrder
  session_id?: Prisma.SortOrder
  thread_id?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  response?: Prisma.SortOrder
  status?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type ipc_requestsCreateNestedManyWithoutThreadInput = {
  create?: Prisma.XOR<Prisma.ipc_requestsCreateWithoutThreadInput, Prisma.ipc_requestsUncheckedCreateWithoutThreadInput> | Prisma.ipc_requestsCreateWithoutThreadInput[] | Prisma.ipc_requestsUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.ipc_requestsCreateOrConnectWithoutThreadInput | Prisma.ipc_requestsCreateOrConnectWithoutThreadInput[]
  createMany?: Prisma.ipc_requestsCreateManyThreadInputEnvelope
  connect?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
}

export type ipc_requestsUncheckedCreateNestedManyWithoutThreadInput = {
  create?: Prisma.XOR<Prisma.ipc_requestsCreateWithoutThreadInput, Prisma.ipc_requestsUncheckedCreateWithoutThreadInput> | Prisma.ipc_requestsCreateWithoutThreadInput[] | Prisma.ipc_requestsUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.ipc_requestsCreateOrConnectWithoutThreadInput | Prisma.ipc_requestsCreateOrConnectWithoutThreadInput[]
  createMany?: Prisma.ipc_requestsCreateManyThreadInputEnvelope
  connect?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
}

export type ipc_requestsUpdateManyWithoutThreadNestedInput = {
  create?: Prisma.XOR<Prisma.ipc_requestsCreateWithoutThreadInput, Prisma.ipc_requestsUncheckedCreateWithoutThreadInput> | Prisma.ipc_requestsCreateWithoutThreadInput[] | Prisma.ipc_requestsUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.ipc_requestsCreateOrConnectWithoutThreadInput | Prisma.ipc_requestsCreateOrConnectWithoutThreadInput[]
  upsert?: Prisma.ipc_requestsUpsertWithWhereUniqueWithoutThreadInput | Prisma.ipc_requestsUpsertWithWhereUniqueWithoutThreadInput[]
  createMany?: Prisma.ipc_requestsCreateManyThreadInputEnvelope
  set?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
  disconnect?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
  delete?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
  connect?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
  update?: Prisma.ipc_requestsUpdateWithWhereUniqueWithoutThreadInput | Prisma.ipc_requestsUpdateWithWhereUniqueWithoutThreadInput[]
  updateMany?: Prisma.ipc_requestsUpdateManyWithWhereWithoutThreadInput | Prisma.ipc_requestsUpdateManyWithWhereWithoutThreadInput[]
  deleteMany?: Prisma.ipc_requestsScalarWhereInput | Prisma.ipc_requestsScalarWhereInput[]
}

export type ipc_requestsUncheckedUpdateManyWithoutThreadNestedInput = {
  create?: Prisma.XOR<Prisma.ipc_requestsCreateWithoutThreadInput, Prisma.ipc_requestsUncheckedCreateWithoutThreadInput> | Prisma.ipc_requestsCreateWithoutThreadInput[] | Prisma.ipc_requestsUncheckedCreateWithoutThreadInput[]
  connectOrCreate?: Prisma.ipc_requestsCreateOrConnectWithoutThreadInput | Prisma.ipc_requestsCreateOrConnectWithoutThreadInput[]
  upsert?: Prisma.ipc_requestsUpsertWithWhereUniqueWithoutThreadInput | Prisma.ipc_requestsUpsertWithWhereUniqueWithoutThreadInput[]
  createMany?: Prisma.ipc_requestsCreateManyThreadInputEnvelope
  set?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
  disconnect?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
  delete?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
  connect?: Prisma.ipc_requestsWhereUniqueInput | Prisma.ipc_requestsWhereUniqueInput[]
  update?: Prisma.ipc_requestsUpdateWithWhereUniqueWithoutThreadInput | Prisma.ipc_requestsUpdateWithWhereUniqueWithoutThreadInput[]
  updateMany?: Prisma.ipc_requestsUpdateManyWithWhereWithoutThreadInput | Prisma.ipc_requestsUpdateManyWithWhereWithoutThreadInput[]
  deleteMany?: Prisma.ipc_requestsScalarWhereInput | Prisma.ipc_requestsScalarWhereInput[]
}

export type Enumipc_request_typeFieldUpdateOperationsInput = {
  set?: $Enums.ipc_request_type
}

export type Enumipc_request_statusFieldUpdateOperationsInput = {
  set?: $Enums.ipc_request_status
}

export type ipc_requestsCreateWithoutThreadInput = {
  id?: string
  type: $Enums.ipc_request_type
  session_id: string
  payload: string
  response?: string | null
  status?: $Enums.ipc_request_status
  created_at?: Date | string
  updated_at?: Date | string
}

export type ipc_requestsUncheckedCreateWithoutThreadInput = {
  id?: string
  type: $Enums.ipc_request_type
  session_id: string
  payload: string
  response?: string | null
  status?: $Enums.ipc_request_status
  created_at?: Date | string
  updated_at?: Date | string
}

export type ipc_requestsCreateOrConnectWithoutThreadInput = {
  where: Prisma.ipc_requestsWhereUniqueInput
  create: Prisma.XOR<Prisma.ipc_requestsCreateWithoutThreadInput, Prisma.ipc_requestsUncheckedCreateWithoutThreadInput>
}

export type ipc_requestsCreateManyThreadInputEnvelope = {
  data: Prisma.ipc_requestsCreateManyThreadInput | Prisma.ipc_requestsCreateManyThreadInput[]
}

export type ipc_requestsUpsertWithWhereUniqueWithoutThreadInput = {
  where: Prisma.ipc_requestsWhereUniqueInput
  update: Prisma.XOR<Prisma.ipc_requestsUpdateWithoutThreadInput, Prisma.ipc_requestsUncheckedUpdateWithoutThreadInput>
  create: Prisma.XOR<Prisma.ipc_requestsCreateWithoutThreadInput, Prisma.ipc_requestsUncheckedCreateWithoutThreadInput>
}

export type ipc_requestsUpdateWithWhereUniqueWithoutThreadInput = {
  where: Prisma.ipc_requestsWhereUniqueInput
  data: Prisma.XOR<Prisma.ipc_requestsUpdateWithoutThreadInput, Prisma.ipc_requestsUncheckedUpdateWithoutThreadInput>
}

export type ipc_requestsUpdateManyWithWhereWithoutThreadInput = {
  where: Prisma.ipc_requestsScalarWhereInput
  data: Prisma.XOR<Prisma.ipc_requestsUpdateManyMutationInput, Prisma.ipc_requestsUncheckedUpdateManyWithoutThreadInput>
}

export type ipc_requestsScalarWhereInput = {
  AND?: Prisma.ipc_requestsScalarWhereInput | Prisma.ipc_requestsScalarWhereInput[]
  OR?: Prisma.ipc_requestsScalarWhereInput[]
  NOT?: Prisma.ipc_requestsScalarWhereInput | Prisma.ipc_requestsScalarWhereInput[]
  id?: Prisma.StringFilter<"ipc_requests"> | string
  type?: Prisma.Enumipc_request_typeFilter<"ipc_requests"> | $Enums.ipc_request_type
  session_id?: Prisma.StringFilter<"ipc_requests"> | string
  thread_id?: Prisma.StringFilter<"ipc_requests"> | string
  payload?: Prisma.StringFilter<"ipc_requests"> | string
  response?: Prisma.StringNullableFilter<"ipc_requests"> | string | null
  status?: Prisma.Enumipc_request_statusFilter<"ipc_requests"> | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFilter<"ipc_requests"> | Date | string
  updated_at?: Prisma.DateTimeFilter<"ipc_requests"> | Date | string
}

export type ipc_requestsCreateManyThreadInput = {
  id?: string
  type: $Enums.ipc_request_type
  session_id: string
  payload: string
  response?: string | null
  status?: $Enums.ipc_request_status
  created_at?: Date | string
  updated_at?: Date | string
}

export type ipc_requestsUpdateWithoutThreadInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.Enumipc_request_typeFieldUpdateOperationsInput | $Enums.ipc_request_type
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  response?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.Enumipc_request_statusFieldUpdateOperationsInput | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ipc_requestsUncheckedUpdateWithoutThreadInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.Enumipc_request_typeFieldUpdateOperationsInput | $Enums.ipc_request_type
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  response?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.Enumipc_request_statusFieldUpdateOperationsInput | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ipc_requestsUncheckedUpdateManyWithoutThreadInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  type?: Prisma.Enumipc_request_typeFieldUpdateOperationsInput | $Enums.ipc_request_type
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.StringFieldUpdateOperationsInput | string
  response?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  status?: Prisma.Enumipc_request_statusFieldUpdateOperationsInput | $Enums.ipc_request_status
  created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type ipc_requestsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  type?: boolean
  session_id?: boolean
  thread_id?: boolean
  payload?: boolean
  response?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["ipc_requests"]>

export type ipc_requestsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  type?: boolean
  session_id?: boolean
  thread_id?: boolean
  payload?: boolean
  response?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["ipc_requests"]>

export type ipc_requestsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  type?: boolean
  session_id?: boolean
  thread_id?: boolean
  payload?: boolean
  response?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["ipc_requests"]>

export type ipc_requestsSelectScalar = {
  id?: boolean
  type?: boolean
  session_id?: boolean
  thread_id?: boolean
  payload?: boolean
  response?: boolean
  status?: boolean
  created_at?: boolean
  updated_at?: boolean
}

export type ipc_requestsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "type" | "session_id" | "thread_id" | "payload" | "response" | "status" | "created_at" | "updated_at", ExtArgs["result"]["ipc_requests"]>
export type ipc_requestsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}
export type ipc_requestsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}
export type ipc_requestsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  thread?: boolean | Prisma.thread_sessionsDefaultArgs<ExtArgs>
}

export type $ipc_requestsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ipc_requests"
  objects: {
    thread: Prisma.$thread_sessionsPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    type: $Enums.ipc_request_type
    session_id: string
    thread_id: string
    payload: string
    response: string | null
    status: $Enums.ipc_request_status
    created_at: Date
    updated_at: Date
  }, ExtArgs["result"]["ipc_requests"]>
  composites: {}
}

export type ipc_requestsGetPayload<S extends boolean | null | undefined | ipc_requestsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ipc_requestsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for ipc_requests.
 * 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__ipc_requestsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  thread<T extends Prisma.thread_sessionsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.thread_sessionsDefaultArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<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 ipc_requests model
 */
export interface ipc_requestsFieldRefs {
  readonly id: Prisma.FieldRef<"ipc_requests", 'String'>
  readonly type: Prisma.FieldRef<"ipc_requests", 'ipc_request_type'>
  readonly session_id: Prisma.FieldRef<"ipc_requests", 'String'>
  readonly thread_id: Prisma.FieldRef<"ipc_requests", 'String'>
  readonly payload: Prisma.FieldRef<"ipc_requests", 'String'>
  readonly response: Prisma.FieldRef<"ipc_requests", 'String'>
  readonly status: Prisma.FieldRef<"ipc_requests", 'ipc_request_status'>
  readonly created_at: Prisma.FieldRef<"ipc_requests", 'DateTime'>
  readonly updated_at: Prisma.FieldRef<"ipc_requests", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ipc_requests findUnique
 */
export type ipc_requestsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsInclude<ExtArgs> | null
  /**
   * Filter, which ipc_requests to fetch.
   */
  where: Prisma.ipc_requestsWhereUniqueInput
}

/**
 * ipc_requests findUniqueOrThrow
 */
export type ipc_requestsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsInclude<ExtArgs> | null
  /**
   * Filter, which ipc_requests to fetch.
   */
  where: Prisma.ipc_requestsWhereUniqueInput
}

/**
 * ipc_requests findFirst
 */
export type ipc_requestsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsInclude<ExtArgs> | null
  /**
   * Filter, which ipc_requests to fetch.
   */
  where?: Prisma.ipc_requestsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ipc_requests to fetch.
   */
  orderBy?: Prisma.ipc_requestsOrderByWithRelationInput | Prisma.ipc_requestsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ipc_requests.
   */
  cursor?: Prisma.ipc_requestsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ipc_requests 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` ipc_requests.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ipc_requests.
   */
  distinct?: Prisma.Ipc_requestsScalarFieldEnum | Prisma.Ipc_requestsScalarFieldEnum[]
}

/**
 * ipc_requests findFirstOrThrow
 */
export type ipc_requestsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsInclude<ExtArgs> | null
  /**
   * Filter, which ipc_requests to fetch.
   */
  where?: Prisma.ipc_requestsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ipc_requests to fetch.
   */
  orderBy?: Prisma.ipc_requestsOrderByWithRelationInput | Prisma.ipc_requestsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ipc_requests.
   */
  cursor?: Prisma.ipc_requestsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ipc_requests 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` ipc_requests.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ipc_requests.
   */
  distinct?: Prisma.Ipc_requestsScalarFieldEnum | Prisma.Ipc_requestsScalarFieldEnum[]
}

/**
 * ipc_requests findMany
 */
export type ipc_requestsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsInclude<ExtArgs> | null
  /**
   * Filter, which ipc_requests to fetch.
   */
  where?: Prisma.ipc_requestsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ipc_requests to fetch.
   */
  orderBy?: Prisma.ipc_requestsOrderByWithRelationInput | Prisma.ipc_requestsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing ipc_requests.
   */
  cursor?: Prisma.ipc_requestsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ipc_requests 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` ipc_requests.
   */
  skip?: number
  distinct?: Prisma.Ipc_requestsScalarFieldEnum | Prisma.Ipc_requestsScalarFieldEnum[]
}

/**
 * ipc_requests create
 */
export type ipc_requestsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsInclude<ExtArgs> | null
  /**
   * The data needed to create a ipc_requests.
   */
  data: Prisma.XOR<Prisma.ipc_requestsCreateInput, Prisma.ipc_requestsUncheckedCreateInput>
}

/**
 * ipc_requests createMany
 */
export type ipc_requestsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many ipc_requests.
   */
  data: Prisma.ipc_requestsCreateManyInput | Prisma.ipc_requestsCreateManyInput[]
}

/**
 * ipc_requests createManyAndReturn
 */
export type ipc_requestsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * The data used to create many ipc_requests.
   */
  data: Prisma.ipc_requestsCreateManyInput | Prisma.ipc_requestsCreateManyInput[]
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * ipc_requests update
 */
export type ipc_requestsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsInclude<ExtArgs> | null
  /**
   * The data needed to update a ipc_requests.
   */
  data: Prisma.XOR<Prisma.ipc_requestsUpdateInput, Prisma.ipc_requestsUncheckedUpdateInput>
  /**
   * Choose, which ipc_requests to update.
   */
  where: Prisma.ipc_requestsWhereUniqueInput
}

/**
 * ipc_requests updateMany
 */
export type ipc_requestsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ipc_requests.
   */
  data: Prisma.XOR<Prisma.ipc_requestsUpdateManyMutationInput, Prisma.ipc_requestsUncheckedUpdateManyInput>
  /**
   * Filter which ipc_requests to update
   */
  where?: Prisma.ipc_requestsWhereInput
  /**
   * Limit how many ipc_requests to update.
   */
  limit?: number
}

/**
 * ipc_requests updateManyAndReturn
 */
export type ipc_requestsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * The data used to update ipc_requests.
   */
  data: Prisma.XOR<Prisma.ipc_requestsUpdateManyMutationInput, Prisma.ipc_requestsUncheckedUpdateManyInput>
  /**
   * Filter which ipc_requests to update
   */
  where?: Prisma.ipc_requestsWhereInput
  /**
   * Limit how many ipc_requests to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * ipc_requests upsert
 */
export type ipc_requestsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsInclude<ExtArgs> | null
  /**
   * The filter to search for the ipc_requests to update in case it exists.
   */
  where: Prisma.ipc_requestsWhereUniqueInput
  /**
   * In case the ipc_requests found by the `where` argument doesn't exist, create a new ipc_requests with this data.
   */
  create: Prisma.XOR<Prisma.ipc_requestsCreateInput, Prisma.ipc_requestsUncheckedCreateInput>
  /**
   * In case the ipc_requests was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ipc_requestsUpdateInput, Prisma.ipc_requestsUncheckedUpdateInput>
}

/**
 * ipc_requests delete
 */
export type ipc_requestsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ipc_requests
   */
  select?: Prisma.ipc_requestsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ipc_requests
   */
  omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ipc_requestsInclude<ExtArgs> | null
  /**
   * Filter which ipc_requests to delete.
   */
  where: Prisma.ipc_requestsWhereUniqueInput
}

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

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