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

/**
 * Model AuthSession
 * 
 */
export type AuthSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$AuthSessionPayload>

export type AggregateAuthSession = {
  _count: AuthSessionCountAggregateOutputType | null
  _min: AuthSessionMinAggregateOutputType | null
  _max: AuthSessionMaxAggregateOutputType | null
}

export type AuthSessionMinAggregateOutputType = {
  sid: string | null
  expire: Date | null
}

export type AuthSessionMaxAggregateOutputType = {
  sid: string | null
  expire: Date | null
}

export type AuthSessionCountAggregateOutputType = {
  sid: number
  sess: number
  expire: number
  _all: number
}


export type AuthSessionMinAggregateInputType = {
  sid?: true
  expire?: true
}

export type AuthSessionMaxAggregateInputType = {
  sid?: true
  expire?: true
}

export type AuthSessionCountAggregateInputType = {
  sid?: true
  sess?: true
  expire?: true
  _all?: true
}

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

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




export type AuthSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.AuthSessionWhereInput
  orderBy?: Prisma.AuthSessionOrderByWithAggregationInput | Prisma.AuthSessionOrderByWithAggregationInput[]
  by: Prisma.AuthSessionScalarFieldEnum[] | Prisma.AuthSessionScalarFieldEnum
  having?: Prisma.AuthSessionScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: AuthSessionCountAggregateInputType | true
  _min?: AuthSessionMinAggregateInputType
  _max?: AuthSessionMaxAggregateInputType
}

export type AuthSessionGroupByOutputType = {
  sid: string
  sess: runtime.JsonValue
  expire: Date
  _count: AuthSessionCountAggregateOutputType | null
  _min: AuthSessionMinAggregateOutputType | null
  _max: AuthSessionMaxAggregateOutputType | null
}

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



export type AuthSessionWhereInput = {
  AND?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[]
  OR?: Prisma.AuthSessionWhereInput[]
  NOT?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[]
  sid?: Prisma.StringFilter<"AuthSession"> | string
  sess?: Prisma.JsonFilter<"AuthSession">
  expire?: Prisma.DateTimeFilter<"AuthSession"> | Date | string
}

export type AuthSessionOrderByWithRelationInput = {
  sid?: Prisma.SortOrder
  sess?: Prisma.SortOrder
  expire?: Prisma.SortOrder
  _relevance?: Prisma.AuthSessionOrderByRelevanceInput
}

export type AuthSessionWhereUniqueInput = Prisma.AtLeast<{
  sid?: string
  AND?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[]
  OR?: Prisma.AuthSessionWhereInput[]
  NOT?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[]
  sess?: Prisma.JsonFilter<"AuthSession">
  expire?: Prisma.DateTimeFilter<"AuthSession"> | Date | string
}, "sid">

export type AuthSessionOrderByWithAggregationInput = {
  sid?: Prisma.SortOrder
  sess?: Prisma.SortOrder
  expire?: Prisma.SortOrder
  _count?: Prisma.AuthSessionCountOrderByAggregateInput
  _max?: Prisma.AuthSessionMaxOrderByAggregateInput
  _min?: Prisma.AuthSessionMinOrderByAggregateInput
}

export type AuthSessionScalarWhereWithAggregatesInput = {
  AND?: Prisma.AuthSessionScalarWhereWithAggregatesInput | Prisma.AuthSessionScalarWhereWithAggregatesInput[]
  OR?: Prisma.AuthSessionScalarWhereWithAggregatesInput[]
  NOT?: Prisma.AuthSessionScalarWhereWithAggregatesInput | Prisma.AuthSessionScalarWhereWithAggregatesInput[]
  sid?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string
  sess?: Prisma.JsonWithAggregatesFilter<"AuthSession">
  expire?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string
}

export type AuthSessionCreateInput = {
  sid: string
  sess: Prisma.JsonNullValueInput | runtime.InputJsonValue
  expire: Date | string
}

export type AuthSessionUncheckedCreateInput = {
  sid: string
  sess: Prisma.JsonNullValueInput | runtime.InputJsonValue
  expire: Date | string
}

export type AuthSessionUpdateInput = {
  sid?: Prisma.StringFieldUpdateOperationsInput | string
  sess?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  expire?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuthSessionUncheckedUpdateInput = {
  sid?: Prisma.StringFieldUpdateOperationsInput | string
  sess?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  expire?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuthSessionCreateManyInput = {
  sid: string
  sess: Prisma.JsonNullValueInput | runtime.InputJsonValue
  expire: Date | string
}

export type AuthSessionUpdateManyMutationInput = {
  sid?: Prisma.StringFieldUpdateOperationsInput | string
  sess?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  expire?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuthSessionUncheckedUpdateManyInput = {
  sid?: Prisma.StringFieldUpdateOperationsInput | string
  sess?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  expire?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuthSessionOrderByRelevanceInput = {
  fields: Prisma.AuthSessionOrderByRelevanceFieldEnum | Prisma.AuthSessionOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type AuthSessionCountOrderByAggregateInput = {
  sid?: Prisma.SortOrder
  sess?: Prisma.SortOrder
  expire?: Prisma.SortOrder
}

export type AuthSessionMaxOrderByAggregateInput = {
  sid?: Prisma.SortOrder
  expire?: Prisma.SortOrder
}

export type AuthSessionMinOrderByAggregateInput = {
  sid?: Prisma.SortOrder
  expire?: Prisma.SortOrder
}



export type AuthSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  sid?: boolean
  sess?: boolean
  expire?: boolean
}, ExtArgs["result"]["authSession"]>



export type AuthSessionSelectScalar = {
  sid?: boolean
  sess?: boolean
  expire?: boolean
}

export type AuthSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"sid" | "sess" | "expire", ExtArgs["result"]["authSession"]>

export type $AuthSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "AuthSession"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    sid: string
    sess: runtime.JsonValue
    expire: Date
  }, ExtArgs["result"]["authSession"]>
  composites: {}
}

export type AuthSessionGetPayload<S extends boolean | null | undefined | AuthSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for AuthSession.
 * 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__AuthSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  /**
   * 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 AuthSession model
 */
export interface AuthSessionFieldRefs {
  readonly sid: Prisma.FieldRef<"AuthSession", 'String'>
  readonly sess: Prisma.FieldRef<"AuthSession", 'Json'>
  readonly expire: Prisma.FieldRef<"AuthSession", 'DateTime'>
}
    

// Custom InputTypes
/**
 * AuthSession findUnique
 */
export type AuthSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
  /**
   * Filter, which AuthSession to fetch.
   */
  where: Prisma.AuthSessionWhereUniqueInput
}

/**
 * AuthSession findUniqueOrThrow
 */
export type AuthSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
  /**
   * Filter, which AuthSession to fetch.
   */
  where: Prisma.AuthSessionWhereUniqueInput
}

/**
 * AuthSession findFirst
 */
export type AuthSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
  /**
   * Filter, which AuthSession to fetch.
   */
  where?: Prisma.AuthSessionWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of AuthSessions to fetch.
   */
  orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for AuthSessions.
   */
  cursor?: Prisma.AuthSessionWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` AuthSessions 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` AuthSessions.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of AuthSessions.
   */
  distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[]
}

/**
 * AuthSession findFirstOrThrow
 */
export type AuthSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
  /**
   * Filter, which AuthSession to fetch.
   */
  where?: Prisma.AuthSessionWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of AuthSessions to fetch.
   */
  orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for AuthSessions.
   */
  cursor?: Prisma.AuthSessionWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` AuthSessions 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` AuthSessions.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of AuthSessions.
   */
  distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[]
}

/**
 * AuthSession findMany
 */
export type AuthSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
  /**
   * Filter, which AuthSessions to fetch.
   */
  where?: Prisma.AuthSessionWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of AuthSessions to fetch.
   */
  orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing AuthSessions.
   */
  cursor?: Prisma.AuthSessionWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` AuthSessions 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` AuthSessions.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of AuthSessions.
   */
  distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[]
}

/**
 * AuthSession create
 */
export type AuthSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
  /**
   * The data needed to create a AuthSession.
   */
  data: Prisma.XOR<Prisma.AuthSessionCreateInput, Prisma.AuthSessionUncheckedCreateInput>
}

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

/**
 * AuthSession update
 */
export type AuthSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
  /**
   * The data needed to update a AuthSession.
   */
  data: Prisma.XOR<Prisma.AuthSessionUpdateInput, Prisma.AuthSessionUncheckedUpdateInput>
  /**
   * Choose, which AuthSession to update.
   */
  where: Prisma.AuthSessionWhereUniqueInput
}

/**
 * AuthSession updateMany
 */
export type AuthSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update AuthSessions.
   */
  data: Prisma.XOR<Prisma.AuthSessionUpdateManyMutationInput, Prisma.AuthSessionUncheckedUpdateManyInput>
  /**
   * Filter which AuthSessions to update
   */
  where?: Prisma.AuthSessionWhereInput
  /**
   * Limit how many AuthSessions to update.
   */
  limit?: number
}

/**
 * AuthSession upsert
 */
export type AuthSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
  /**
   * The filter to search for the AuthSession to update in case it exists.
   */
  where: Prisma.AuthSessionWhereUniqueInput
  /**
   * In case the AuthSession found by the `where` argument doesn't exist, create a new AuthSession with this data.
   */
  create: Prisma.XOR<Prisma.AuthSessionCreateInput, Prisma.AuthSessionUncheckedCreateInput>
  /**
   * In case the AuthSession was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.AuthSessionUpdateInput, Prisma.AuthSessionUncheckedUpdateInput>
}

/**
 * AuthSession delete
 */
export type AuthSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
  /**
   * Filter which AuthSession to delete.
   */
  where: Prisma.AuthSessionWhereUniqueInput
}

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

/**
 * AuthSession without action
 */
export type AuthSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuthSession
   */
  select?: Prisma.AuthSessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuthSession
   */
  omit?: Prisma.AuthSessionOmit<ExtArgs> | null
}
