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

export type AggregateRefreshSession = {
  _count: RefreshSessionCountAggregateOutputType | null
  _min: RefreshSessionMinAggregateOutputType | null
  _max: RefreshSessionMaxAggregateOutputType | null
}

export type RefreshSessionMinAggregateOutputType = {
  id: string | null
  userId: string | null
  tokenHash: string | null
  userAgent: string | null
  expiresAt: Date | null
  revokedAt: Date | null
  createdAt: Date | null
}

export type RefreshSessionMaxAggregateOutputType = {
  id: string | null
  userId: string | null
  tokenHash: string | null
  userAgent: string | null
  expiresAt: Date | null
  revokedAt: Date | null
  createdAt: Date | null
}

export type RefreshSessionCountAggregateOutputType = {
  id: number
  userId: number
  tokenHash: number
  userAgent: number
  expiresAt: number
  revokedAt: number
  createdAt: number
  _all: number
}


export type RefreshSessionMinAggregateInputType = {
  id?: true
  userId?: true
  tokenHash?: true
  userAgent?: true
  expiresAt?: true
  revokedAt?: true
  createdAt?: true
}

export type RefreshSessionMaxAggregateInputType = {
  id?: true
  userId?: true
  tokenHash?: true
  userAgent?: true
  expiresAt?: true
  revokedAt?: true
  createdAt?: true
}

export type RefreshSessionCountAggregateInputType = {
  id?: true
  userId?: true
  tokenHash?: true
  userAgent?: true
  expiresAt?: true
  revokedAt?: true
  createdAt?: true
  _all?: true
}

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

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




export type RefreshSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.RefreshSessionWhereInput
  orderBy?: Prisma.RefreshSessionOrderByWithAggregationInput | Prisma.RefreshSessionOrderByWithAggregationInput[]
  by: Prisma.RefreshSessionScalarFieldEnum[] | Prisma.RefreshSessionScalarFieldEnum
  having?: Prisma.RefreshSessionScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: RefreshSessionCountAggregateInputType | true
  _min?: RefreshSessionMinAggregateInputType
  _max?: RefreshSessionMaxAggregateInputType
}

export type RefreshSessionGroupByOutputType = {
  id: string
  userId: string
  tokenHash: string
  userAgent: string | null
  expiresAt: Date
  revokedAt: Date | null
  createdAt: Date
  _count: RefreshSessionCountAggregateOutputType | null
  _min: RefreshSessionMinAggregateOutputType | null
  _max: RefreshSessionMaxAggregateOutputType | null
}

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



export type RefreshSessionWhereInput = {
  AND?: Prisma.RefreshSessionWhereInput | Prisma.RefreshSessionWhereInput[]
  OR?: Prisma.RefreshSessionWhereInput[]
  NOT?: Prisma.RefreshSessionWhereInput | Prisma.RefreshSessionWhereInput[]
  id?: Prisma.StringFilter<"RefreshSession"> | string
  userId?: Prisma.StringFilter<"RefreshSession"> | string
  tokenHash?: Prisma.StringFilter<"RefreshSession"> | string
  userAgent?: Prisma.StringNullableFilter<"RefreshSession"> | string | null
  expiresAt?: Prisma.DateTimeFilter<"RefreshSession"> | Date | string
  revokedAt?: Prisma.DateTimeNullableFilter<"RefreshSession"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"RefreshSession"> | Date | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}

export type RefreshSessionOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  tokenHash?: Prisma.SortOrder
  userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  user?: Prisma.UserOrderByWithRelationInput
}

export type RefreshSessionWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.RefreshSessionWhereInput | Prisma.RefreshSessionWhereInput[]
  OR?: Prisma.RefreshSessionWhereInput[]
  NOT?: Prisma.RefreshSessionWhereInput | Prisma.RefreshSessionWhereInput[]
  userId?: Prisma.StringFilter<"RefreshSession"> | string
  tokenHash?: Prisma.StringFilter<"RefreshSession"> | string
  userAgent?: Prisma.StringNullableFilter<"RefreshSession"> | string | null
  expiresAt?: Prisma.DateTimeFilter<"RefreshSession"> | Date | string
  revokedAt?: Prisma.DateTimeNullableFilter<"RefreshSession"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"RefreshSession"> | Date | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}, "id">

export type RefreshSessionOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  tokenHash?: Prisma.SortOrder
  userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.RefreshSessionCountOrderByAggregateInput
  _max?: Prisma.RefreshSessionMaxOrderByAggregateInput
  _min?: Prisma.RefreshSessionMinOrderByAggregateInput
}

export type RefreshSessionScalarWhereWithAggregatesInput = {
  AND?: Prisma.RefreshSessionScalarWhereWithAggregatesInput | Prisma.RefreshSessionScalarWhereWithAggregatesInput[]
  OR?: Prisma.RefreshSessionScalarWhereWithAggregatesInput[]
  NOT?: Prisma.RefreshSessionScalarWhereWithAggregatesInput | Prisma.RefreshSessionScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"RefreshSession"> | string
  userId?: Prisma.StringWithAggregatesFilter<"RefreshSession"> | string
  tokenHash?: Prisma.StringWithAggregatesFilter<"RefreshSession"> | string
  userAgent?: Prisma.StringNullableWithAggregatesFilter<"RefreshSession"> | string | null
  expiresAt?: Prisma.DateTimeWithAggregatesFilter<"RefreshSession"> | Date | string
  revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"RefreshSession"> | Date | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"RefreshSession"> | Date | string
}

export type RefreshSessionCreateInput = {
  id?: string
  tokenHash: string
  userAgent?: string | null
  expiresAt: Date | string
  revokedAt?: Date | string | null
  createdAt?: Date | string
  user: Prisma.UserCreateNestedOneWithoutRefreshSessionsInput
}

export type RefreshSessionUncheckedCreateInput = {
  id?: string
  userId: string
  tokenHash: string
  userAgent?: string | null
  expiresAt: Date | string
  revokedAt?: Date | string | null
  createdAt?: Date | string
}

export type RefreshSessionUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneRequiredWithoutRefreshSessionsNestedInput
}

export type RefreshSessionUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type RefreshSessionCreateManyInput = {
  id?: string
  userId: string
  tokenHash: string
  userAgent?: string | null
  expiresAt: Date | string
  revokedAt?: Date | string | null
  createdAt?: Date | string
}

export type RefreshSessionUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type RefreshSessionUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type RefreshSessionListRelationFilter = {
  every?: Prisma.RefreshSessionWhereInput
  some?: Prisma.RefreshSessionWhereInput
  none?: Prisma.RefreshSessionWhereInput
}

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

export type RefreshSessionCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  tokenHash?: Prisma.SortOrder
  userAgent?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  revokedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type RefreshSessionMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  tokenHash?: Prisma.SortOrder
  userAgent?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  revokedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type RefreshSessionMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  tokenHash?: Prisma.SortOrder
  userAgent?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  revokedAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type RefreshSessionCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.RefreshSessionCreateWithoutUserInput, Prisma.RefreshSessionUncheckedCreateWithoutUserInput> | Prisma.RefreshSessionCreateWithoutUserInput[] | Prisma.RefreshSessionUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.RefreshSessionCreateOrConnectWithoutUserInput | Prisma.RefreshSessionCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.RefreshSessionCreateManyUserInputEnvelope
  connect?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
}

export type RefreshSessionUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.RefreshSessionCreateWithoutUserInput, Prisma.RefreshSessionUncheckedCreateWithoutUserInput> | Prisma.RefreshSessionCreateWithoutUserInput[] | Prisma.RefreshSessionUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.RefreshSessionCreateOrConnectWithoutUserInput | Prisma.RefreshSessionCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.RefreshSessionCreateManyUserInputEnvelope
  connect?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
}

export type RefreshSessionUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.RefreshSessionCreateWithoutUserInput, Prisma.RefreshSessionUncheckedCreateWithoutUserInput> | Prisma.RefreshSessionCreateWithoutUserInput[] | Prisma.RefreshSessionUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.RefreshSessionCreateOrConnectWithoutUserInput | Prisma.RefreshSessionCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.RefreshSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.RefreshSessionUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.RefreshSessionCreateManyUserInputEnvelope
  set?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
  disconnect?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
  delete?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
  connect?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
  update?: Prisma.RefreshSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.RefreshSessionUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.RefreshSessionUpdateManyWithWhereWithoutUserInput | Prisma.RefreshSessionUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.RefreshSessionScalarWhereInput | Prisma.RefreshSessionScalarWhereInput[]
}

export type RefreshSessionUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.RefreshSessionCreateWithoutUserInput, Prisma.RefreshSessionUncheckedCreateWithoutUserInput> | Prisma.RefreshSessionCreateWithoutUserInput[] | Prisma.RefreshSessionUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.RefreshSessionCreateOrConnectWithoutUserInput | Prisma.RefreshSessionCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.RefreshSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.RefreshSessionUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.RefreshSessionCreateManyUserInputEnvelope
  set?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
  disconnect?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
  delete?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
  connect?: Prisma.RefreshSessionWhereUniqueInput | Prisma.RefreshSessionWhereUniqueInput[]
  update?: Prisma.RefreshSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.RefreshSessionUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.RefreshSessionUpdateManyWithWhereWithoutUserInput | Prisma.RefreshSessionUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.RefreshSessionScalarWhereInput | Prisma.RefreshSessionScalarWhereInput[]
}

export type RefreshSessionCreateWithoutUserInput = {
  id?: string
  tokenHash: string
  userAgent?: string | null
  expiresAt: Date | string
  revokedAt?: Date | string | null
  createdAt?: Date | string
}

export type RefreshSessionUncheckedCreateWithoutUserInput = {
  id?: string
  tokenHash: string
  userAgent?: string | null
  expiresAt: Date | string
  revokedAt?: Date | string | null
  createdAt?: Date | string
}

export type RefreshSessionCreateOrConnectWithoutUserInput = {
  where: Prisma.RefreshSessionWhereUniqueInput
  create: Prisma.XOR<Prisma.RefreshSessionCreateWithoutUserInput, Prisma.RefreshSessionUncheckedCreateWithoutUserInput>
}

export type RefreshSessionCreateManyUserInputEnvelope = {
  data: Prisma.RefreshSessionCreateManyUserInput | Prisma.RefreshSessionCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type RefreshSessionUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.RefreshSessionWhereUniqueInput
  update: Prisma.XOR<Prisma.RefreshSessionUpdateWithoutUserInput, Prisma.RefreshSessionUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.RefreshSessionCreateWithoutUserInput, Prisma.RefreshSessionUncheckedCreateWithoutUserInput>
}

export type RefreshSessionUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.RefreshSessionWhereUniqueInput
  data: Prisma.XOR<Prisma.RefreshSessionUpdateWithoutUserInput, Prisma.RefreshSessionUncheckedUpdateWithoutUserInput>
}

export type RefreshSessionUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.RefreshSessionScalarWhereInput
  data: Prisma.XOR<Prisma.RefreshSessionUpdateManyMutationInput, Prisma.RefreshSessionUncheckedUpdateManyWithoutUserInput>
}

export type RefreshSessionScalarWhereInput = {
  AND?: Prisma.RefreshSessionScalarWhereInput | Prisma.RefreshSessionScalarWhereInput[]
  OR?: Prisma.RefreshSessionScalarWhereInput[]
  NOT?: Prisma.RefreshSessionScalarWhereInput | Prisma.RefreshSessionScalarWhereInput[]
  id?: Prisma.StringFilter<"RefreshSession"> | string
  userId?: Prisma.StringFilter<"RefreshSession"> | string
  tokenHash?: Prisma.StringFilter<"RefreshSession"> | string
  userAgent?: Prisma.StringNullableFilter<"RefreshSession"> | string | null
  expiresAt?: Prisma.DateTimeFilter<"RefreshSession"> | Date | string
  revokedAt?: Prisma.DateTimeNullableFilter<"RefreshSession"> | Date | string | null
  createdAt?: Prisma.DateTimeFilter<"RefreshSession"> | Date | string
}

export type RefreshSessionCreateManyUserInput = {
  id?: string
  tokenHash: string
  userAgent?: string | null
  expiresAt: Date | string
  revokedAt?: Date | string | null
  createdAt?: Date | string
}

export type RefreshSessionUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type RefreshSessionUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type RefreshSessionUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
  userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type RefreshSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  tokenHash?: boolean
  userAgent?: boolean
  expiresAt?: boolean
  revokedAt?: boolean
  createdAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["refreshSession"]>

export type RefreshSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  tokenHash?: boolean
  userAgent?: boolean
  expiresAt?: boolean
  revokedAt?: boolean
  createdAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["refreshSession"]>

export type RefreshSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  tokenHash?: boolean
  userAgent?: boolean
  expiresAt?: boolean
  revokedAt?: boolean
  createdAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["refreshSession"]>

export type RefreshSessionSelectScalar = {
  id?: boolean
  userId?: boolean
  tokenHash?: boolean
  userAgent?: boolean
  expiresAt?: boolean
  revokedAt?: boolean
  createdAt?: boolean
}

export type RefreshSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "tokenHash" | "userAgent" | "expiresAt" | "revokedAt" | "createdAt", ExtArgs["result"]["refreshSession"]>
export type RefreshSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type RefreshSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type RefreshSessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}

export type $RefreshSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "RefreshSession"
  objects: {
    user: Prisma.$UserPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    userId: string
    tokenHash: string
    userAgent: string | null
    expiresAt: Date
    revokedAt: Date | null
    createdAt: Date
  }, ExtArgs["result"]["refreshSession"]>
  composites: {}
}

export type RefreshSessionGetPayload<S extends boolean | null | undefined | RefreshSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RefreshSessionPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for RefreshSession.
 * 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__RefreshSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<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 RefreshSession model
 */
export interface RefreshSessionFieldRefs {
  readonly id: Prisma.FieldRef<"RefreshSession", 'String'>
  readonly userId: Prisma.FieldRef<"RefreshSession", 'String'>
  readonly tokenHash: Prisma.FieldRef<"RefreshSession", 'String'>
  readonly userAgent: Prisma.FieldRef<"RefreshSession", 'String'>
  readonly expiresAt: Prisma.FieldRef<"RefreshSession", 'DateTime'>
  readonly revokedAt: Prisma.FieldRef<"RefreshSession", 'DateTime'>
  readonly createdAt: Prisma.FieldRef<"RefreshSession", 'DateTime'>
}
    

// Custom InputTypes
/**
 * RefreshSession findUnique
 */
export type RefreshSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the RefreshSession
   */
  select?: Prisma.RefreshSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the RefreshSession
   */
  omit?: Prisma.RefreshSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RefreshSessionInclude<ExtArgs> | null
  /**
   * Filter, which RefreshSession to fetch.
   */
  where: Prisma.RefreshSessionWhereUniqueInput
}

/**
 * RefreshSession findUniqueOrThrow
 */
export type RefreshSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the RefreshSession
   */
  select?: Prisma.RefreshSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the RefreshSession
   */
  omit?: Prisma.RefreshSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RefreshSessionInclude<ExtArgs> | null
  /**
   * Filter, which RefreshSession to fetch.
   */
  where: Prisma.RefreshSessionWhereUniqueInput
}

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

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

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

/**
 * RefreshSession create
 */
export type RefreshSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the RefreshSession
   */
  select?: Prisma.RefreshSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the RefreshSession
   */
  omit?: Prisma.RefreshSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RefreshSessionInclude<ExtArgs> | null
  /**
   * The data needed to create a RefreshSession.
   */
  data: Prisma.XOR<Prisma.RefreshSessionCreateInput, Prisma.RefreshSessionUncheckedCreateInput>
}

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

/**
 * RefreshSession createManyAndReturn
 */
export type RefreshSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the RefreshSession
   */
  select?: Prisma.RefreshSessionSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the RefreshSession
   */
  omit?: Prisma.RefreshSessionOmit<ExtArgs> | null
  /**
   * The data used to create many RefreshSessions.
   */
  data: Prisma.RefreshSessionCreateManyInput | Prisma.RefreshSessionCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RefreshSessionIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * RefreshSession update
 */
export type RefreshSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the RefreshSession
   */
  select?: Prisma.RefreshSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the RefreshSession
   */
  omit?: Prisma.RefreshSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RefreshSessionInclude<ExtArgs> | null
  /**
   * The data needed to update a RefreshSession.
   */
  data: Prisma.XOR<Prisma.RefreshSessionUpdateInput, Prisma.RefreshSessionUncheckedUpdateInput>
  /**
   * Choose, which RefreshSession to update.
   */
  where: Prisma.RefreshSessionWhereUniqueInput
}

/**
 * RefreshSession updateMany
 */
export type RefreshSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update RefreshSessions.
   */
  data: Prisma.XOR<Prisma.RefreshSessionUpdateManyMutationInput, Prisma.RefreshSessionUncheckedUpdateManyInput>
  /**
   * Filter which RefreshSessions to update
   */
  where?: Prisma.RefreshSessionWhereInput
  /**
   * Limit how many RefreshSessions to update.
   */
  limit?: number
}

/**
 * RefreshSession updateManyAndReturn
 */
export type RefreshSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the RefreshSession
   */
  select?: Prisma.RefreshSessionSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the RefreshSession
   */
  omit?: Prisma.RefreshSessionOmit<ExtArgs> | null
  /**
   * The data used to update RefreshSessions.
   */
  data: Prisma.XOR<Prisma.RefreshSessionUpdateManyMutationInput, Prisma.RefreshSessionUncheckedUpdateManyInput>
  /**
   * Filter which RefreshSessions to update
   */
  where?: Prisma.RefreshSessionWhereInput
  /**
   * Limit how many RefreshSessions to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RefreshSessionIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * RefreshSession upsert
 */
export type RefreshSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the RefreshSession
   */
  select?: Prisma.RefreshSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the RefreshSession
   */
  omit?: Prisma.RefreshSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RefreshSessionInclude<ExtArgs> | null
  /**
   * The filter to search for the RefreshSession to update in case it exists.
   */
  where: Prisma.RefreshSessionWhereUniqueInput
  /**
   * In case the RefreshSession found by the `where` argument doesn't exist, create a new RefreshSession with this data.
   */
  create: Prisma.XOR<Prisma.RefreshSessionCreateInput, Prisma.RefreshSessionUncheckedCreateInput>
  /**
   * In case the RefreshSession was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.RefreshSessionUpdateInput, Prisma.RefreshSessionUncheckedUpdateInput>
}

/**
 * RefreshSession delete
 */
export type RefreshSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the RefreshSession
   */
  select?: Prisma.RefreshSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the RefreshSession
   */
  omit?: Prisma.RefreshSessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.RefreshSessionInclude<ExtArgs> | null
  /**
   * Filter which RefreshSession to delete.
   */
  where: Prisma.RefreshSessionWhereUniqueInput
}

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

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