
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `SessionReplay` 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"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model SessionReplay
 * 
 */
export type SessionReplayModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionReplayPayload>

export type AggregateSessionReplay = {
  _count: SessionReplayCountAggregateOutputType | null
  _avg: SessionReplayAvgAggregateOutputType | null
  _sum: SessionReplaySumAggregateOutputType | null
  _min: SessionReplayMinAggregateOutputType | null
  _max: SessionReplayMaxAggregateOutputType | null
}

export type SessionReplayAvgAggregateOutputType = {
  chunkIndex: number | null
  eventCount: number | null
}

export type SessionReplaySumAggregateOutputType = {
  chunkIndex: number | null
  eventCount: number | null
}

export type SessionReplayMinAggregateOutputType = {
  id: string | null
  websiteId: string | null
  sessionId: string | null
  visitId: string | null
  chunkIndex: number | null
  events: runtime.Bytes | null
  eventCount: number | null
  startedAt: Date | null
  endedAt: Date | null
  createdAt: Date | null
}

export type SessionReplayMaxAggregateOutputType = {
  id: string | null
  websiteId: string | null
  sessionId: string | null
  visitId: string | null
  chunkIndex: number | null
  events: runtime.Bytes | null
  eventCount: number | null
  startedAt: Date | null
  endedAt: Date | null
  createdAt: Date | null
}

export type SessionReplayCountAggregateOutputType = {
  id: number
  websiteId: number
  sessionId: number
  visitId: number
  chunkIndex: number
  events: number
  eventCount: number
  startedAt: number
  endedAt: number
  createdAt: number
  _all: number
}


export type SessionReplayAvgAggregateInputType = {
  chunkIndex?: true
  eventCount?: true
}

export type SessionReplaySumAggregateInputType = {
  chunkIndex?: true
  eventCount?: true
}

export type SessionReplayMinAggregateInputType = {
  id?: true
  websiteId?: true
  sessionId?: true
  visitId?: true
  chunkIndex?: true
  events?: true
  eventCount?: true
  startedAt?: true
  endedAt?: true
  createdAt?: true
}

export type SessionReplayMaxAggregateInputType = {
  id?: true
  websiteId?: true
  sessionId?: true
  visitId?: true
  chunkIndex?: true
  events?: true
  eventCount?: true
  startedAt?: true
  endedAt?: true
  createdAt?: true
}

export type SessionReplayCountAggregateInputType = {
  id?: true
  websiteId?: true
  sessionId?: true
  visitId?: true
  chunkIndex?: true
  events?: true
  eventCount?: true
  startedAt?: true
  endedAt?: true
  createdAt?: true
  _all?: true
}

export type SessionReplayAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which SessionReplay to aggregate.
   */
  where?: Prisma.SessionReplayWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of SessionReplays to fetch.
   */
  orderBy?: Prisma.SessionReplayOrderByWithRelationInput | Prisma.SessionReplayOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.SessionReplayWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` SessionReplays 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` SessionReplays.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned SessionReplays
  **/
  _count?: true | SessionReplayCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: SessionReplayAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: SessionReplaySumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: SessionReplayMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: SessionReplayMaxAggregateInputType
}

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




export type SessionReplayGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.SessionReplayWhereInput
  orderBy?: Prisma.SessionReplayOrderByWithAggregationInput | Prisma.SessionReplayOrderByWithAggregationInput[]
  by: Prisma.SessionReplayScalarFieldEnum[] | Prisma.SessionReplayScalarFieldEnum
  having?: Prisma.SessionReplayScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: SessionReplayCountAggregateInputType | true
  _avg?: SessionReplayAvgAggregateInputType
  _sum?: SessionReplaySumAggregateInputType
  _min?: SessionReplayMinAggregateInputType
  _max?: SessionReplayMaxAggregateInputType
}

export type SessionReplayGroupByOutputType = {
  id: string
  websiteId: string
  sessionId: string
  visitId: string
  chunkIndex: number
  events: runtime.Bytes
  eventCount: number
  startedAt: Date
  endedAt: Date
  createdAt: Date | null
  _count: SessionReplayCountAggregateOutputType | null
  _avg: SessionReplayAvgAggregateOutputType | null
  _sum: SessionReplaySumAggregateOutputType | null
  _min: SessionReplayMinAggregateOutputType | null
  _max: SessionReplayMaxAggregateOutputType | null
}

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



export type SessionReplayWhereInput = {
  AND?: Prisma.SessionReplayWhereInput | Prisma.SessionReplayWhereInput[]
  OR?: Prisma.SessionReplayWhereInput[]
  NOT?: Prisma.SessionReplayWhereInput | Prisma.SessionReplayWhereInput[]
  id?: Prisma.UuidFilter<"SessionReplay"> | string
  websiteId?: Prisma.UuidFilter<"SessionReplay"> | string
  sessionId?: Prisma.UuidFilter<"SessionReplay"> | string
  visitId?: Prisma.UuidFilter<"SessionReplay"> | string
  chunkIndex?: Prisma.IntFilter<"SessionReplay"> | number
  events?: Prisma.BytesFilter<"SessionReplay"> | runtime.Bytes
  eventCount?: Prisma.IntFilter<"SessionReplay"> | number
  startedAt?: Prisma.DateTimeFilter<"SessionReplay"> | Date | string
  endedAt?: Prisma.DateTimeFilter<"SessionReplay"> | Date | string
  createdAt?: Prisma.DateTimeNullableFilter<"SessionReplay"> | Date | string | null
  website?: Prisma.XOR<Prisma.WebsiteScalarRelationFilter, Prisma.WebsiteWhereInput>
}

export type SessionReplayOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  visitId?: Prisma.SortOrder
  chunkIndex?: Prisma.SortOrder
  events?: Prisma.SortOrder
  eventCount?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  endedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
  website?: Prisma.WebsiteOrderByWithRelationInput
}

export type SessionReplayWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.SessionReplayWhereInput | Prisma.SessionReplayWhereInput[]
  OR?: Prisma.SessionReplayWhereInput[]
  NOT?: Prisma.SessionReplayWhereInput | Prisma.SessionReplayWhereInput[]
  websiteId?: Prisma.UuidFilter<"SessionReplay"> | string
  sessionId?: Prisma.UuidFilter<"SessionReplay"> | string
  visitId?: Prisma.UuidFilter<"SessionReplay"> | string
  chunkIndex?: Prisma.IntFilter<"SessionReplay"> | number
  events?: Prisma.BytesFilter<"SessionReplay"> | runtime.Bytes
  eventCount?: Prisma.IntFilter<"SessionReplay"> | number
  startedAt?: Prisma.DateTimeFilter<"SessionReplay"> | Date | string
  endedAt?: Prisma.DateTimeFilter<"SessionReplay"> | Date | string
  createdAt?: Prisma.DateTimeNullableFilter<"SessionReplay"> | Date | string | null
  website?: Prisma.XOR<Prisma.WebsiteScalarRelationFilter, Prisma.WebsiteWhereInput>
}, "id">

export type SessionReplayOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  visitId?: Prisma.SortOrder
  chunkIndex?: Prisma.SortOrder
  events?: Prisma.SortOrder
  eventCount?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  endedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.SessionReplayCountOrderByAggregateInput
  _avg?: Prisma.SessionReplayAvgOrderByAggregateInput
  _max?: Prisma.SessionReplayMaxOrderByAggregateInput
  _min?: Prisma.SessionReplayMinOrderByAggregateInput
  _sum?: Prisma.SessionReplaySumOrderByAggregateInput
}

export type SessionReplayScalarWhereWithAggregatesInput = {
  AND?: Prisma.SessionReplayScalarWhereWithAggregatesInput | Prisma.SessionReplayScalarWhereWithAggregatesInput[]
  OR?: Prisma.SessionReplayScalarWhereWithAggregatesInput[]
  NOT?: Prisma.SessionReplayScalarWhereWithAggregatesInput | Prisma.SessionReplayScalarWhereWithAggregatesInput[]
  id?: Prisma.UuidWithAggregatesFilter<"SessionReplay"> | string
  websiteId?: Prisma.UuidWithAggregatesFilter<"SessionReplay"> | string
  sessionId?: Prisma.UuidWithAggregatesFilter<"SessionReplay"> | string
  visitId?: Prisma.UuidWithAggregatesFilter<"SessionReplay"> | string
  chunkIndex?: Prisma.IntWithAggregatesFilter<"SessionReplay"> | number
  events?: Prisma.BytesWithAggregatesFilter<"SessionReplay"> | runtime.Bytes
  eventCount?: Prisma.IntWithAggregatesFilter<"SessionReplay"> | number
  startedAt?: Prisma.DateTimeWithAggregatesFilter<"SessionReplay"> | Date | string
  endedAt?: Prisma.DateTimeWithAggregatesFilter<"SessionReplay"> | Date | string
  createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"SessionReplay"> | Date | string | null
}

export type SessionReplayCreateInput = {
  id: string
  sessionId: string
  visitId: string
  chunkIndex: number
  events: runtime.Bytes
  eventCount: number
  startedAt: Date | string
  endedAt: Date | string
  createdAt?: Date | string | null
  website: Prisma.WebsiteCreateNestedOneWithoutSessionReplaysInput
}

export type SessionReplayUncheckedCreateInput = {
  id: string
  websiteId: string
  sessionId: string
  visitId: string
  chunkIndex: number
  events: runtime.Bytes
  eventCount: number
  startedAt: Date | string
  endedAt: Date | string
  createdAt?: Date | string | null
}

export type SessionReplayUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  visitId?: Prisma.StringFieldUpdateOperationsInput | string
  chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
  events?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
  eventCount?: Prisma.IntFieldUpdateOperationsInput | number
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  endedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  website?: Prisma.WebsiteUpdateOneRequiredWithoutSessionReplaysNestedInput
}

export type SessionReplayUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  websiteId?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  visitId?: Prisma.StringFieldUpdateOperationsInput | string
  chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
  events?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
  eventCount?: Prisma.IntFieldUpdateOperationsInput | number
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  endedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SessionReplayCreateManyInput = {
  id: string
  websiteId: string
  sessionId: string
  visitId: string
  chunkIndex: number
  events: runtime.Bytes
  eventCount: number
  startedAt: Date | string
  endedAt: Date | string
  createdAt?: Date | string | null
}

export type SessionReplayUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  visitId?: Prisma.StringFieldUpdateOperationsInput | string
  chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
  events?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
  eventCount?: Prisma.IntFieldUpdateOperationsInput | number
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  endedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SessionReplayUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  websiteId?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  visitId?: Prisma.StringFieldUpdateOperationsInput | string
  chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
  events?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
  eventCount?: Prisma.IntFieldUpdateOperationsInput | number
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  endedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SessionReplayListRelationFilter = {
  every?: Prisma.SessionReplayWhereInput
  some?: Prisma.SessionReplayWhereInput
  none?: Prisma.SessionReplayWhereInput
}

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

export type SessionReplayCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  visitId?: Prisma.SortOrder
  chunkIndex?: Prisma.SortOrder
  events?: Prisma.SortOrder
  eventCount?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  endedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type SessionReplayAvgOrderByAggregateInput = {
  chunkIndex?: Prisma.SortOrder
  eventCount?: Prisma.SortOrder
}

export type SessionReplayMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  visitId?: Prisma.SortOrder
  chunkIndex?: Prisma.SortOrder
  events?: Prisma.SortOrder
  eventCount?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  endedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type SessionReplayMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  websiteId?: Prisma.SortOrder
  sessionId?: Prisma.SortOrder
  visitId?: Prisma.SortOrder
  chunkIndex?: Prisma.SortOrder
  events?: Prisma.SortOrder
  eventCount?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  endedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type SessionReplaySumOrderByAggregateInput = {
  chunkIndex?: Prisma.SortOrder
  eventCount?: Prisma.SortOrder
}

export type SessionReplayCreateNestedManyWithoutWebsiteInput = {
  create?: Prisma.XOR<Prisma.SessionReplayCreateWithoutWebsiteInput, Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput> | Prisma.SessionReplayCreateWithoutWebsiteInput[] | Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput[]
  connectOrCreate?: Prisma.SessionReplayCreateOrConnectWithoutWebsiteInput | Prisma.SessionReplayCreateOrConnectWithoutWebsiteInput[]
  createMany?: Prisma.SessionReplayCreateManyWebsiteInputEnvelope
  connect?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
}

export type SessionReplayUncheckedCreateNestedManyWithoutWebsiteInput = {
  create?: Prisma.XOR<Prisma.SessionReplayCreateWithoutWebsiteInput, Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput> | Prisma.SessionReplayCreateWithoutWebsiteInput[] | Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput[]
  connectOrCreate?: Prisma.SessionReplayCreateOrConnectWithoutWebsiteInput | Prisma.SessionReplayCreateOrConnectWithoutWebsiteInput[]
  createMany?: Prisma.SessionReplayCreateManyWebsiteInputEnvelope
  connect?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
}

export type SessionReplayUpdateManyWithoutWebsiteNestedInput = {
  create?: Prisma.XOR<Prisma.SessionReplayCreateWithoutWebsiteInput, Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput> | Prisma.SessionReplayCreateWithoutWebsiteInput[] | Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput[]
  connectOrCreate?: Prisma.SessionReplayCreateOrConnectWithoutWebsiteInput | Prisma.SessionReplayCreateOrConnectWithoutWebsiteInput[]
  upsert?: Prisma.SessionReplayUpsertWithWhereUniqueWithoutWebsiteInput | Prisma.SessionReplayUpsertWithWhereUniqueWithoutWebsiteInput[]
  createMany?: Prisma.SessionReplayCreateManyWebsiteInputEnvelope
  set?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
  disconnect?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
  delete?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
  connect?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
  update?: Prisma.SessionReplayUpdateWithWhereUniqueWithoutWebsiteInput | Prisma.SessionReplayUpdateWithWhereUniqueWithoutWebsiteInput[]
  updateMany?: Prisma.SessionReplayUpdateManyWithWhereWithoutWebsiteInput | Prisma.SessionReplayUpdateManyWithWhereWithoutWebsiteInput[]
  deleteMany?: Prisma.SessionReplayScalarWhereInput | Prisma.SessionReplayScalarWhereInput[]
}

export type SessionReplayUncheckedUpdateManyWithoutWebsiteNestedInput = {
  create?: Prisma.XOR<Prisma.SessionReplayCreateWithoutWebsiteInput, Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput> | Prisma.SessionReplayCreateWithoutWebsiteInput[] | Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput[]
  connectOrCreate?: Prisma.SessionReplayCreateOrConnectWithoutWebsiteInput | Prisma.SessionReplayCreateOrConnectWithoutWebsiteInput[]
  upsert?: Prisma.SessionReplayUpsertWithWhereUniqueWithoutWebsiteInput | Prisma.SessionReplayUpsertWithWhereUniqueWithoutWebsiteInput[]
  createMany?: Prisma.SessionReplayCreateManyWebsiteInputEnvelope
  set?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
  disconnect?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
  delete?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
  connect?: Prisma.SessionReplayWhereUniqueInput | Prisma.SessionReplayWhereUniqueInput[]
  update?: Prisma.SessionReplayUpdateWithWhereUniqueWithoutWebsiteInput | Prisma.SessionReplayUpdateWithWhereUniqueWithoutWebsiteInput[]
  updateMany?: Prisma.SessionReplayUpdateManyWithWhereWithoutWebsiteInput | Prisma.SessionReplayUpdateManyWithWhereWithoutWebsiteInput[]
  deleteMany?: Prisma.SessionReplayScalarWhereInput | Prisma.SessionReplayScalarWhereInput[]
}

export type BytesFieldUpdateOperationsInput = {
  set?: runtime.Bytes
}

export type DateTimeFieldUpdateOperationsInput = {
  set?: Date | string
}

export type SessionReplayCreateWithoutWebsiteInput = {
  id: string
  sessionId: string
  visitId: string
  chunkIndex: number
  events: runtime.Bytes
  eventCount: number
  startedAt: Date | string
  endedAt: Date | string
  createdAt?: Date | string | null
}

export type SessionReplayUncheckedCreateWithoutWebsiteInput = {
  id: string
  sessionId: string
  visitId: string
  chunkIndex: number
  events: runtime.Bytes
  eventCount: number
  startedAt: Date | string
  endedAt: Date | string
  createdAt?: Date | string | null
}

export type SessionReplayCreateOrConnectWithoutWebsiteInput = {
  where: Prisma.SessionReplayWhereUniqueInput
  create: Prisma.XOR<Prisma.SessionReplayCreateWithoutWebsiteInput, Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput>
}

export type SessionReplayCreateManyWebsiteInputEnvelope = {
  data: Prisma.SessionReplayCreateManyWebsiteInput | Prisma.SessionReplayCreateManyWebsiteInput[]
  skipDuplicates?: boolean
}

export type SessionReplayUpsertWithWhereUniqueWithoutWebsiteInput = {
  where: Prisma.SessionReplayWhereUniqueInput
  update: Prisma.XOR<Prisma.SessionReplayUpdateWithoutWebsiteInput, Prisma.SessionReplayUncheckedUpdateWithoutWebsiteInput>
  create: Prisma.XOR<Prisma.SessionReplayCreateWithoutWebsiteInput, Prisma.SessionReplayUncheckedCreateWithoutWebsiteInput>
}

export type SessionReplayUpdateWithWhereUniqueWithoutWebsiteInput = {
  where: Prisma.SessionReplayWhereUniqueInput
  data: Prisma.XOR<Prisma.SessionReplayUpdateWithoutWebsiteInput, Prisma.SessionReplayUncheckedUpdateWithoutWebsiteInput>
}

export type SessionReplayUpdateManyWithWhereWithoutWebsiteInput = {
  where: Prisma.SessionReplayScalarWhereInput
  data: Prisma.XOR<Prisma.SessionReplayUpdateManyMutationInput, Prisma.SessionReplayUncheckedUpdateManyWithoutWebsiteInput>
}

export type SessionReplayScalarWhereInput = {
  AND?: Prisma.SessionReplayScalarWhereInput | Prisma.SessionReplayScalarWhereInput[]
  OR?: Prisma.SessionReplayScalarWhereInput[]
  NOT?: Prisma.SessionReplayScalarWhereInput | Prisma.SessionReplayScalarWhereInput[]
  id?: Prisma.UuidFilter<"SessionReplay"> | string
  websiteId?: Prisma.UuidFilter<"SessionReplay"> | string
  sessionId?: Prisma.UuidFilter<"SessionReplay"> | string
  visitId?: Prisma.UuidFilter<"SessionReplay"> | string
  chunkIndex?: Prisma.IntFilter<"SessionReplay"> | number
  events?: Prisma.BytesFilter<"SessionReplay"> | runtime.Bytes
  eventCount?: Prisma.IntFilter<"SessionReplay"> | number
  startedAt?: Prisma.DateTimeFilter<"SessionReplay"> | Date | string
  endedAt?: Prisma.DateTimeFilter<"SessionReplay"> | Date | string
  createdAt?: Prisma.DateTimeNullableFilter<"SessionReplay"> | Date | string | null
}

export type SessionReplayCreateManyWebsiteInput = {
  id: string
  sessionId: string
  visitId: string
  chunkIndex: number
  events: runtime.Bytes
  eventCount: number
  startedAt: Date | string
  endedAt: Date | string
  createdAt?: Date | string | null
}

export type SessionReplayUpdateWithoutWebsiteInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  visitId?: Prisma.StringFieldUpdateOperationsInput | string
  chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
  events?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
  eventCount?: Prisma.IntFieldUpdateOperationsInput | number
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  endedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SessionReplayUncheckedUpdateWithoutWebsiteInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  visitId?: Prisma.StringFieldUpdateOperationsInput | string
  chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
  events?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
  eventCount?: Prisma.IntFieldUpdateOperationsInput | number
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  endedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type SessionReplayUncheckedUpdateManyWithoutWebsiteInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  sessionId?: Prisma.StringFieldUpdateOperationsInput | string
  visitId?: Prisma.StringFieldUpdateOperationsInput | string
  chunkIndex?: Prisma.IntFieldUpdateOperationsInput | number
  events?: Prisma.BytesFieldUpdateOperationsInput | runtime.Bytes
  eventCount?: Prisma.IntFieldUpdateOperationsInput | number
  startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  endedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type SessionReplaySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  websiteId?: boolean
  sessionId?: boolean
  visitId?: boolean
  chunkIndex?: boolean
  events?: boolean
  eventCount?: boolean
  startedAt?: boolean
  endedAt?: boolean
  createdAt?: boolean
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}, ExtArgs["result"]["sessionReplay"]>

export type SessionReplaySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  websiteId?: boolean
  sessionId?: boolean
  visitId?: boolean
  chunkIndex?: boolean
  events?: boolean
  eventCount?: boolean
  startedAt?: boolean
  endedAt?: boolean
  createdAt?: boolean
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}, ExtArgs["result"]["sessionReplay"]>

export type SessionReplaySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  websiteId?: boolean
  sessionId?: boolean
  visitId?: boolean
  chunkIndex?: boolean
  events?: boolean
  eventCount?: boolean
  startedAt?: boolean
  endedAt?: boolean
  createdAt?: boolean
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}, ExtArgs["result"]["sessionReplay"]>

export type SessionReplaySelectScalar = {
  id?: boolean
  websiteId?: boolean
  sessionId?: boolean
  visitId?: boolean
  chunkIndex?: boolean
  events?: boolean
  eventCount?: boolean
  startedAt?: boolean
  endedAt?: boolean
  createdAt?: boolean
}

export type SessionReplayOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "websiteId" | "sessionId" | "visitId" | "chunkIndex" | "events" | "eventCount" | "startedAt" | "endedAt" | "createdAt", ExtArgs["result"]["sessionReplay"]>
export type SessionReplayInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}
export type SessionReplayIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}
export type SessionReplayIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  website?: boolean | Prisma.WebsiteDefaultArgs<ExtArgs>
}

export type $SessionReplayPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "SessionReplay"
  objects: {
    website: Prisma.$WebsitePayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    websiteId: string
    sessionId: string
    visitId: string
    chunkIndex: number
    events: runtime.Bytes
    eventCount: number
    startedAt: Date
    endedAt: Date
    createdAt: Date | null
  }, ExtArgs["result"]["sessionReplay"]>
  composites: {}
}

export type SessionReplayGetPayload<S extends boolean | null | undefined | SessionReplayDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionReplayPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for SessionReplay.
 * 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__SessionReplayClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  website<T extends Prisma.WebsiteDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WebsiteDefaultArgs<ExtArgs>>): Prisma.Prisma__WebsiteClient<runtime.Types.Result.GetResult<Prisma.$WebsitePayload<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 SessionReplay model
 */
export interface SessionReplayFieldRefs {
  readonly id: Prisma.FieldRef<"SessionReplay", 'String'>
  readonly websiteId: Prisma.FieldRef<"SessionReplay", 'String'>
  readonly sessionId: Prisma.FieldRef<"SessionReplay", 'String'>
  readonly visitId: Prisma.FieldRef<"SessionReplay", 'String'>
  readonly chunkIndex: Prisma.FieldRef<"SessionReplay", 'Int'>
  readonly events: Prisma.FieldRef<"SessionReplay", 'Bytes'>
  readonly eventCount: Prisma.FieldRef<"SessionReplay", 'Int'>
  readonly startedAt: Prisma.FieldRef<"SessionReplay", 'DateTime'>
  readonly endedAt: Prisma.FieldRef<"SessionReplay", 'DateTime'>
  readonly createdAt: Prisma.FieldRef<"SessionReplay", 'DateTime'>
}
    

// Custom InputTypes
/**
 * SessionReplay findUnique
 */
export type SessionReplayFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SessionReplay
   */
  select?: Prisma.SessionReplaySelect<ExtArgs> | null
  /**
   * Omit specific fields from the SessionReplay
   */
  omit?: Prisma.SessionReplayOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionReplayInclude<ExtArgs> | null
  /**
   * Filter, which SessionReplay to fetch.
   */
  where: Prisma.SessionReplayWhereUniqueInput
}

/**
 * SessionReplay findUniqueOrThrow
 */
export type SessionReplayFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SessionReplay
   */
  select?: Prisma.SessionReplaySelect<ExtArgs> | null
  /**
   * Omit specific fields from the SessionReplay
   */
  omit?: Prisma.SessionReplayOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionReplayInclude<ExtArgs> | null
  /**
   * Filter, which SessionReplay to fetch.
   */
  where: Prisma.SessionReplayWhereUniqueInput
}

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

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

/**
 * SessionReplay findMany
 */
export type SessionReplayFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SessionReplay
   */
  select?: Prisma.SessionReplaySelect<ExtArgs> | null
  /**
   * Omit specific fields from the SessionReplay
   */
  omit?: Prisma.SessionReplayOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionReplayInclude<ExtArgs> | null
  /**
   * Filter, which SessionReplays to fetch.
   */
  where?: Prisma.SessionReplayWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of SessionReplays to fetch.
   */
  orderBy?: Prisma.SessionReplayOrderByWithRelationInput | Prisma.SessionReplayOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing SessionReplays.
   */
  cursor?: Prisma.SessionReplayWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` SessionReplays 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` SessionReplays.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of SessionReplays.
   */
  distinct?: Prisma.SessionReplayScalarFieldEnum | Prisma.SessionReplayScalarFieldEnum[]
}

/**
 * SessionReplay create
 */
export type SessionReplayCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SessionReplay
   */
  select?: Prisma.SessionReplaySelect<ExtArgs> | null
  /**
   * Omit specific fields from the SessionReplay
   */
  omit?: Prisma.SessionReplayOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionReplayInclude<ExtArgs> | null
  /**
   * The data needed to create a SessionReplay.
   */
  data: Prisma.XOR<Prisma.SessionReplayCreateInput, Prisma.SessionReplayUncheckedCreateInput>
}

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

/**
 * SessionReplay createManyAndReturn
 */
export type SessionReplayCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SessionReplay
   */
  select?: Prisma.SessionReplaySelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the SessionReplay
   */
  omit?: Prisma.SessionReplayOmit<ExtArgs> | null
  /**
   * The data used to create many SessionReplays.
   */
  data: Prisma.SessionReplayCreateManyInput | Prisma.SessionReplayCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionReplayIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * SessionReplay update
 */
export type SessionReplayUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SessionReplay
   */
  select?: Prisma.SessionReplaySelect<ExtArgs> | null
  /**
   * Omit specific fields from the SessionReplay
   */
  omit?: Prisma.SessionReplayOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionReplayInclude<ExtArgs> | null
  /**
   * The data needed to update a SessionReplay.
   */
  data: Prisma.XOR<Prisma.SessionReplayUpdateInput, Prisma.SessionReplayUncheckedUpdateInput>
  /**
   * Choose, which SessionReplay to update.
   */
  where: Prisma.SessionReplayWhereUniqueInput
}

/**
 * SessionReplay updateMany
 */
export type SessionReplayUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update SessionReplays.
   */
  data: Prisma.XOR<Prisma.SessionReplayUpdateManyMutationInput, Prisma.SessionReplayUncheckedUpdateManyInput>
  /**
   * Filter which SessionReplays to update
   */
  where?: Prisma.SessionReplayWhereInput
  /**
   * Limit how many SessionReplays to update.
   */
  limit?: number
}

/**
 * SessionReplay updateManyAndReturn
 */
export type SessionReplayUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SessionReplay
   */
  select?: Prisma.SessionReplaySelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the SessionReplay
   */
  omit?: Prisma.SessionReplayOmit<ExtArgs> | null
  /**
   * The data used to update SessionReplays.
   */
  data: Prisma.XOR<Prisma.SessionReplayUpdateManyMutationInput, Prisma.SessionReplayUncheckedUpdateManyInput>
  /**
   * Filter which SessionReplays to update
   */
  where?: Prisma.SessionReplayWhereInput
  /**
   * Limit how many SessionReplays to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionReplayIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * SessionReplay upsert
 */
export type SessionReplayUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SessionReplay
   */
  select?: Prisma.SessionReplaySelect<ExtArgs> | null
  /**
   * Omit specific fields from the SessionReplay
   */
  omit?: Prisma.SessionReplayOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionReplayInclude<ExtArgs> | null
  /**
   * The filter to search for the SessionReplay to update in case it exists.
   */
  where: Prisma.SessionReplayWhereUniqueInput
  /**
   * In case the SessionReplay found by the `where` argument doesn't exist, create a new SessionReplay with this data.
   */
  create: Prisma.XOR<Prisma.SessionReplayCreateInput, Prisma.SessionReplayUncheckedCreateInput>
  /**
   * In case the SessionReplay was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.SessionReplayUpdateInput, Prisma.SessionReplayUncheckedUpdateInput>
}

/**
 * SessionReplay delete
 */
export type SessionReplayDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SessionReplay
   */
  select?: Prisma.SessionReplaySelect<ExtArgs> | null
  /**
   * Omit specific fields from the SessionReplay
   */
  omit?: Prisma.SessionReplayOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionReplayInclude<ExtArgs> | null
  /**
   * Filter which SessionReplay to delete.
   */
  where: Prisma.SessionReplayWhereUniqueInput
}

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

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