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

export type AggregateSession_agents = {
  _count: Session_agentsCountAggregateOutputType | null
  _min: Session_agentsMinAggregateOutputType | null
  _max: Session_agentsMaxAggregateOutputType | null
}

export type Session_agentsMinAggregateOutputType = {
  session_id: string | null
  agent_name: string | null
  created_at: Date | null
}

export type Session_agentsMaxAggregateOutputType = {
  session_id: string | null
  agent_name: string | null
  created_at: Date | null
}

export type Session_agentsCountAggregateOutputType = {
  session_id: number
  agent_name: number
  created_at: number
  _all: number
}


export type Session_agentsMinAggregateInputType = {
  session_id?: true
  agent_name?: true
  created_at?: true
}

export type Session_agentsMaxAggregateInputType = {
  session_id?: true
  agent_name?: true
  created_at?: true
}

export type Session_agentsCountAggregateInputType = {
  session_id?: true
  agent_name?: true
  created_at?: true
  _all?: true
}

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

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




export type session_agentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.session_agentsWhereInput
  orderBy?: Prisma.session_agentsOrderByWithAggregationInput | Prisma.session_agentsOrderByWithAggregationInput[]
  by: Prisma.Session_agentsScalarFieldEnum[] | Prisma.Session_agentsScalarFieldEnum
  having?: Prisma.session_agentsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Session_agentsCountAggregateInputType | true
  _min?: Session_agentsMinAggregateInputType
  _max?: Session_agentsMaxAggregateInputType
}

export type Session_agentsGroupByOutputType = {
  session_id: string
  agent_name: string
  created_at: Date | null
  _count: Session_agentsCountAggregateOutputType | null
  _min: Session_agentsMinAggregateOutputType | null
  _max: Session_agentsMaxAggregateOutputType | null
}

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



export type session_agentsWhereInput = {
  AND?: Prisma.session_agentsWhereInput | Prisma.session_agentsWhereInput[]
  OR?: Prisma.session_agentsWhereInput[]
  NOT?: Prisma.session_agentsWhereInput | Prisma.session_agentsWhereInput[]
  session_id?: Prisma.StringFilter<"session_agents"> | string
  agent_name?: Prisma.StringFilter<"session_agents"> | string
  created_at?: Prisma.DateTimeNullableFilter<"session_agents"> | Date | string | null
}

export type session_agentsOrderByWithRelationInput = {
  session_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
}

export type session_agentsWhereUniqueInput = Prisma.AtLeast<{
  session_id?: string
  AND?: Prisma.session_agentsWhereInput | Prisma.session_agentsWhereInput[]
  OR?: Prisma.session_agentsWhereInput[]
  NOT?: Prisma.session_agentsWhereInput | Prisma.session_agentsWhereInput[]
  agent_name?: Prisma.StringFilter<"session_agents"> | string
  created_at?: Prisma.DateTimeNullableFilter<"session_agents"> | Date | string | null
}, "session_id">

export type session_agentsOrderByWithAggregationInput = {
  session_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.session_agentsCountOrderByAggregateInput
  _max?: Prisma.session_agentsMaxOrderByAggregateInput
  _min?: Prisma.session_agentsMinOrderByAggregateInput
}

export type session_agentsScalarWhereWithAggregatesInput = {
  AND?: Prisma.session_agentsScalarWhereWithAggregatesInput | Prisma.session_agentsScalarWhereWithAggregatesInput[]
  OR?: Prisma.session_agentsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.session_agentsScalarWhereWithAggregatesInput | Prisma.session_agentsScalarWhereWithAggregatesInput[]
  session_id?: Prisma.StringWithAggregatesFilter<"session_agents"> | string
  agent_name?: Prisma.StringWithAggregatesFilter<"session_agents"> | string
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"session_agents"> | Date | string | null
}

export type session_agentsCreateInput = {
  session_id: string
  agent_name: string
  created_at?: Date | string | null
}

export type session_agentsUncheckedCreateInput = {
  session_id: string
  agent_name: string
  created_at?: Date | string | null
}

export type session_agentsUpdateInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type session_agentsUncheckedUpdateInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type session_agentsCreateManyInput = {
  session_id: string
  agent_name: string
  created_at?: Date | string | null
}

export type session_agentsUpdateManyMutationInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type session_agentsUncheckedUpdateManyInput = {
  session_id?: Prisma.StringFieldUpdateOperationsInput | string
  agent_name?: Prisma.StringFieldUpdateOperationsInput | string
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type session_agentsCountOrderByAggregateInput = {
  session_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type session_agentsMaxOrderByAggregateInput = {
  session_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type session_agentsMinOrderByAggregateInput = {
  session_id?: Prisma.SortOrder
  agent_name?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}



export type session_agentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  session_id?: boolean
  agent_name?: boolean
  created_at?: boolean
}, ExtArgs["result"]["session_agents"]>

export type session_agentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  session_id?: boolean
  agent_name?: boolean
  created_at?: boolean
}, ExtArgs["result"]["session_agents"]>

export type session_agentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  session_id?: boolean
  agent_name?: boolean
  created_at?: boolean
}, ExtArgs["result"]["session_agents"]>

export type session_agentsSelectScalar = {
  session_id?: boolean
  agent_name?: boolean
  created_at?: boolean
}

export type session_agentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"session_id" | "agent_name" | "created_at", ExtArgs["result"]["session_agents"]>

export type $session_agentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "session_agents"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    session_id: string
    agent_name: string
    created_at: Date | null
  }, ExtArgs["result"]["session_agents"]>
  composites: {}
}

export type session_agentsGetPayload<S extends boolean | null | undefined | session_agentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$session_agentsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for session_agents.
 * 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__session_agentsClient<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 session_agents model
 */
export interface session_agentsFieldRefs {
  readonly session_id: Prisma.FieldRef<"session_agents", 'String'>
  readonly agent_name: Prisma.FieldRef<"session_agents", 'String'>
  readonly created_at: Prisma.FieldRef<"session_agents", 'DateTime'>
}
    

// Custom InputTypes
/**
 * session_agents findUnique
 */
export type session_agentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_agents
   */
  select?: Prisma.session_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_agents
   */
  omit?: Prisma.session_agentsOmit<ExtArgs> | null
  /**
   * Filter, which session_agents to fetch.
   */
  where: Prisma.session_agentsWhereUniqueInput
}

/**
 * session_agents findUniqueOrThrow
 */
export type session_agentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_agents
   */
  select?: Prisma.session_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_agents
   */
  omit?: Prisma.session_agentsOmit<ExtArgs> | null
  /**
   * Filter, which session_agents to fetch.
   */
  where: Prisma.session_agentsWhereUniqueInput
}

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

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

/**
 * session_agents findMany
 */
export type session_agentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_agents
   */
  select?: Prisma.session_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_agents
   */
  omit?: Prisma.session_agentsOmit<ExtArgs> | null
  /**
   * Filter, which session_agents to fetch.
   */
  where?: Prisma.session_agentsWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of session_agents to fetch.
   */
  orderBy?: Prisma.session_agentsOrderByWithRelationInput | Prisma.session_agentsOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing session_agents.
   */
  cursor?: Prisma.session_agentsWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` session_agents 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` session_agents.
   */
  skip?: number
  distinct?: Prisma.Session_agentsScalarFieldEnum | Prisma.Session_agentsScalarFieldEnum[]
}

/**
 * session_agents create
 */
export type session_agentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_agents
   */
  select?: Prisma.session_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_agents
   */
  omit?: Prisma.session_agentsOmit<ExtArgs> | null
  /**
   * The data needed to create a session_agents.
   */
  data: Prisma.XOR<Prisma.session_agentsCreateInput, Prisma.session_agentsUncheckedCreateInput>
}

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

/**
 * session_agents createManyAndReturn
 */
export type session_agentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_agents
   */
  select?: Prisma.session_agentsSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the session_agents
   */
  omit?: Prisma.session_agentsOmit<ExtArgs> | null
  /**
   * The data used to create many session_agents.
   */
  data: Prisma.session_agentsCreateManyInput | Prisma.session_agentsCreateManyInput[]
}

/**
 * session_agents update
 */
export type session_agentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_agents
   */
  select?: Prisma.session_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_agents
   */
  omit?: Prisma.session_agentsOmit<ExtArgs> | null
  /**
   * The data needed to update a session_agents.
   */
  data: Prisma.XOR<Prisma.session_agentsUpdateInput, Prisma.session_agentsUncheckedUpdateInput>
  /**
   * Choose, which session_agents to update.
   */
  where: Prisma.session_agentsWhereUniqueInput
}

/**
 * session_agents updateMany
 */
export type session_agentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update session_agents.
   */
  data: Prisma.XOR<Prisma.session_agentsUpdateManyMutationInput, Prisma.session_agentsUncheckedUpdateManyInput>
  /**
   * Filter which session_agents to update
   */
  where?: Prisma.session_agentsWhereInput
  /**
   * Limit how many session_agents to update.
   */
  limit?: number
}

/**
 * session_agents updateManyAndReturn
 */
export type session_agentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_agents
   */
  select?: Prisma.session_agentsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the session_agents
   */
  omit?: Prisma.session_agentsOmit<ExtArgs> | null
  /**
   * The data used to update session_agents.
   */
  data: Prisma.XOR<Prisma.session_agentsUpdateManyMutationInput, Prisma.session_agentsUncheckedUpdateManyInput>
  /**
   * Filter which session_agents to update
   */
  where?: Prisma.session_agentsWhereInput
  /**
   * Limit how many session_agents to update.
   */
  limit?: number
}

/**
 * session_agents upsert
 */
export type session_agentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_agents
   */
  select?: Prisma.session_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_agents
   */
  omit?: Prisma.session_agentsOmit<ExtArgs> | null
  /**
   * The filter to search for the session_agents to update in case it exists.
   */
  where: Prisma.session_agentsWhereUniqueInput
  /**
   * In case the session_agents found by the `where` argument doesn't exist, create a new session_agents with this data.
   */
  create: Prisma.XOR<Prisma.session_agentsCreateInput, Prisma.session_agentsUncheckedCreateInput>
  /**
   * In case the session_agents was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.session_agentsUpdateInput, Prisma.session_agentsUncheckedUpdateInput>
}

/**
 * session_agents delete
 */
export type session_agentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the session_agents
   */
  select?: Prisma.session_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the session_agents
   */
  omit?: Prisma.session_agentsOmit<ExtArgs> | null
  /**
   * Filter which session_agents to delete.
   */
  where: Prisma.session_agentsWhereUniqueInput
}

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

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