/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `McpSessionMapping` 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 McpSessionMapping * */ export type McpSessionMappingModel = runtime.Types.Result.DefaultSelection export type AggregateMcpSessionMapping = { _count: McpSessionMappingCountAggregateOutputType | null _min: McpSessionMappingMinAggregateOutputType | null _max: McpSessionMappingMaxAggregateOutputType | null } export type McpSessionMappingMinAggregateOutputType = { mcpSessionId: string | null oauthSessionId: string | null } export type McpSessionMappingMaxAggregateOutputType = { mcpSessionId: string | null oauthSessionId: string | null } export type McpSessionMappingCountAggregateOutputType = { mcpSessionId: number oauthSessionId: number _all: number } export type McpSessionMappingMinAggregateInputType = { mcpSessionId?: true oauthSessionId?: true } export type McpSessionMappingMaxAggregateInputType = { mcpSessionId?: true oauthSessionId?: true } export type McpSessionMappingCountAggregateInputType = { mcpSessionId?: true oauthSessionId?: true _all?: true } export type McpSessionMappingAggregateArgs = { /** * Filter which McpSessionMapping to aggregate. */ where?: Prisma.McpSessionMappingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of McpSessionMappings to fetch. */ orderBy?: Prisma.McpSessionMappingOrderByWithRelationInput | Prisma.McpSessionMappingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.McpSessionMappingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` McpSessionMappings 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` McpSessionMappings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned McpSessionMappings **/ _count?: true | McpSessionMappingCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: McpSessionMappingMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: McpSessionMappingMaxAggregateInputType } export type GetMcpSessionMappingAggregateType = { [P in keyof T & keyof AggregateMcpSessionMapping]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type McpSessionMappingGroupByArgs = { where?: Prisma.McpSessionMappingWhereInput orderBy?: Prisma.McpSessionMappingOrderByWithAggregationInput | Prisma.McpSessionMappingOrderByWithAggregationInput[] by: Prisma.McpSessionMappingScalarFieldEnum[] | Prisma.McpSessionMappingScalarFieldEnum having?: Prisma.McpSessionMappingScalarWhereWithAggregatesInput take?: number skip?: number _count?: McpSessionMappingCountAggregateInputType | true _min?: McpSessionMappingMinAggregateInputType _max?: McpSessionMappingMaxAggregateInputType } export type McpSessionMappingGroupByOutputType = { mcpSessionId: string oauthSessionId: string _count: McpSessionMappingCountAggregateOutputType | null _min: McpSessionMappingMinAggregateOutputType | null _max: McpSessionMappingMaxAggregateOutputType | null } type GetMcpSessionMappingGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof McpSessionMappingGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type McpSessionMappingWhereInput = { AND?: Prisma.McpSessionMappingWhereInput | Prisma.McpSessionMappingWhereInput[] OR?: Prisma.McpSessionMappingWhereInput[] NOT?: Prisma.McpSessionMappingWhereInput | Prisma.McpSessionMappingWhereInput[] mcpSessionId?: Prisma.StringFilter<"McpSessionMapping"> | string oauthSessionId?: Prisma.StringFilter<"McpSessionMapping"> | string oauthSession?: Prisma.XOR } export type McpSessionMappingOrderByWithRelationInput = { mcpSessionId?: Prisma.SortOrder oauthSessionId?: Prisma.SortOrder oauthSession?: Prisma.OAuthSessionOrderByWithRelationInput } export type McpSessionMappingWhereUniqueInput = Prisma.AtLeast<{ mcpSessionId?: string AND?: Prisma.McpSessionMappingWhereInput | Prisma.McpSessionMappingWhereInput[] OR?: Prisma.McpSessionMappingWhereInput[] NOT?: Prisma.McpSessionMappingWhereInput | Prisma.McpSessionMappingWhereInput[] oauthSessionId?: Prisma.StringFilter<"McpSessionMapping"> | string oauthSession?: Prisma.XOR }, "mcpSessionId"> export type McpSessionMappingOrderByWithAggregationInput = { mcpSessionId?: Prisma.SortOrder oauthSessionId?: Prisma.SortOrder _count?: Prisma.McpSessionMappingCountOrderByAggregateInput _max?: Prisma.McpSessionMappingMaxOrderByAggregateInput _min?: Prisma.McpSessionMappingMinOrderByAggregateInput } export type McpSessionMappingScalarWhereWithAggregatesInput = { AND?: Prisma.McpSessionMappingScalarWhereWithAggregatesInput | Prisma.McpSessionMappingScalarWhereWithAggregatesInput[] OR?: Prisma.McpSessionMappingScalarWhereWithAggregatesInput[] NOT?: Prisma.McpSessionMappingScalarWhereWithAggregatesInput | Prisma.McpSessionMappingScalarWhereWithAggregatesInput[] mcpSessionId?: Prisma.StringWithAggregatesFilter<"McpSessionMapping"> | string oauthSessionId?: Prisma.StringWithAggregatesFilter<"McpSessionMapping"> | string } export type McpSessionMappingCreateInput = { mcpSessionId: string oauthSession: Prisma.OAuthSessionCreateNestedOneWithoutMcpSessionMappingsInput } export type McpSessionMappingUncheckedCreateInput = { mcpSessionId: string oauthSessionId: string } export type McpSessionMappingUpdateInput = { mcpSessionId?: Prisma.StringFieldUpdateOperationsInput | string oauthSession?: Prisma.OAuthSessionUpdateOneRequiredWithoutMcpSessionMappingsNestedInput } export type McpSessionMappingUncheckedUpdateInput = { mcpSessionId?: Prisma.StringFieldUpdateOperationsInput | string oauthSessionId?: Prisma.StringFieldUpdateOperationsInput | string } export type McpSessionMappingCreateManyInput = { mcpSessionId: string oauthSessionId: string } export type McpSessionMappingUpdateManyMutationInput = { mcpSessionId?: Prisma.StringFieldUpdateOperationsInput | string } export type McpSessionMappingUncheckedUpdateManyInput = { mcpSessionId?: Prisma.StringFieldUpdateOperationsInput | string oauthSessionId?: Prisma.StringFieldUpdateOperationsInput | string } export type McpSessionMappingListRelationFilter = { every?: Prisma.McpSessionMappingWhereInput some?: Prisma.McpSessionMappingWhereInput none?: Prisma.McpSessionMappingWhereInput } export type McpSessionMappingOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type McpSessionMappingCountOrderByAggregateInput = { mcpSessionId?: Prisma.SortOrder oauthSessionId?: Prisma.SortOrder } export type McpSessionMappingMaxOrderByAggregateInput = { mcpSessionId?: Prisma.SortOrder oauthSessionId?: Prisma.SortOrder } export type McpSessionMappingMinOrderByAggregateInput = { mcpSessionId?: Prisma.SortOrder oauthSessionId?: Prisma.SortOrder } export type McpSessionMappingCreateNestedManyWithoutOauthSessionInput = { create?: Prisma.XOR | Prisma.McpSessionMappingCreateWithoutOauthSessionInput[] | Prisma.McpSessionMappingUncheckedCreateWithoutOauthSessionInput[] connectOrCreate?: Prisma.McpSessionMappingCreateOrConnectWithoutOauthSessionInput | Prisma.McpSessionMappingCreateOrConnectWithoutOauthSessionInput[] createMany?: Prisma.McpSessionMappingCreateManyOauthSessionInputEnvelope connect?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] } export type McpSessionMappingUncheckedCreateNestedManyWithoutOauthSessionInput = { create?: Prisma.XOR | Prisma.McpSessionMappingCreateWithoutOauthSessionInput[] | Prisma.McpSessionMappingUncheckedCreateWithoutOauthSessionInput[] connectOrCreate?: Prisma.McpSessionMappingCreateOrConnectWithoutOauthSessionInput | Prisma.McpSessionMappingCreateOrConnectWithoutOauthSessionInput[] createMany?: Prisma.McpSessionMappingCreateManyOauthSessionInputEnvelope connect?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] } export type McpSessionMappingUpdateManyWithoutOauthSessionNestedInput = { create?: Prisma.XOR | Prisma.McpSessionMappingCreateWithoutOauthSessionInput[] | Prisma.McpSessionMappingUncheckedCreateWithoutOauthSessionInput[] connectOrCreate?: Prisma.McpSessionMappingCreateOrConnectWithoutOauthSessionInput | Prisma.McpSessionMappingCreateOrConnectWithoutOauthSessionInput[] upsert?: Prisma.McpSessionMappingUpsertWithWhereUniqueWithoutOauthSessionInput | Prisma.McpSessionMappingUpsertWithWhereUniqueWithoutOauthSessionInput[] createMany?: Prisma.McpSessionMappingCreateManyOauthSessionInputEnvelope set?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] disconnect?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] delete?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] connect?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] update?: Prisma.McpSessionMappingUpdateWithWhereUniqueWithoutOauthSessionInput | Prisma.McpSessionMappingUpdateWithWhereUniqueWithoutOauthSessionInput[] updateMany?: Prisma.McpSessionMappingUpdateManyWithWhereWithoutOauthSessionInput | Prisma.McpSessionMappingUpdateManyWithWhereWithoutOauthSessionInput[] deleteMany?: Prisma.McpSessionMappingScalarWhereInput | Prisma.McpSessionMappingScalarWhereInput[] } export type McpSessionMappingUncheckedUpdateManyWithoutOauthSessionNestedInput = { create?: Prisma.XOR | Prisma.McpSessionMappingCreateWithoutOauthSessionInput[] | Prisma.McpSessionMappingUncheckedCreateWithoutOauthSessionInput[] connectOrCreate?: Prisma.McpSessionMappingCreateOrConnectWithoutOauthSessionInput | Prisma.McpSessionMappingCreateOrConnectWithoutOauthSessionInput[] upsert?: Prisma.McpSessionMappingUpsertWithWhereUniqueWithoutOauthSessionInput | Prisma.McpSessionMappingUpsertWithWhereUniqueWithoutOauthSessionInput[] createMany?: Prisma.McpSessionMappingCreateManyOauthSessionInputEnvelope set?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] disconnect?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] delete?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] connect?: Prisma.McpSessionMappingWhereUniqueInput | Prisma.McpSessionMappingWhereUniqueInput[] update?: Prisma.McpSessionMappingUpdateWithWhereUniqueWithoutOauthSessionInput | Prisma.McpSessionMappingUpdateWithWhereUniqueWithoutOauthSessionInput[] updateMany?: Prisma.McpSessionMappingUpdateManyWithWhereWithoutOauthSessionInput | Prisma.McpSessionMappingUpdateManyWithWhereWithoutOauthSessionInput[] deleteMany?: Prisma.McpSessionMappingScalarWhereInput | Prisma.McpSessionMappingScalarWhereInput[] } export type McpSessionMappingCreateWithoutOauthSessionInput = { mcpSessionId: string } export type McpSessionMappingUncheckedCreateWithoutOauthSessionInput = { mcpSessionId: string } export type McpSessionMappingCreateOrConnectWithoutOauthSessionInput = { where: Prisma.McpSessionMappingWhereUniqueInput create: Prisma.XOR } export type McpSessionMappingCreateManyOauthSessionInputEnvelope = { data: Prisma.McpSessionMappingCreateManyOauthSessionInput | Prisma.McpSessionMappingCreateManyOauthSessionInput[] skipDuplicates?: boolean } export type McpSessionMappingUpsertWithWhereUniqueWithoutOauthSessionInput = { where: Prisma.McpSessionMappingWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type McpSessionMappingUpdateWithWhereUniqueWithoutOauthSessionInput = { where: Prisma.McpSessionMappingWhereUniqueInput data: Prisma.XOR } export type McpSessionMappingUpdateManyWithWhereWithoutOauthSessionInput = { where: Prisma.McpSessionMappingScalarWhereInput data: Prisma.XOR } export type McpSessionMappingScalarWhereInput = { AND?: Prisma.McpSessionMappingScalarWhereInput | Prisma.McpSessionMappingScalarWhereInput[] OR?: Prisma.McpSessionMappingScalarWhereInput[] NOT?: Prisma.McpSessionMappingScalarWhereInput | Prisma.McpSessionMappingScalarWhereInput[] mcpSessionId?: Prisma.StringFilter<"McpSessionMapping"> | string oauthSessionId?: Prisma.StringFilter<"McpSessionMapping"> | string } export type McpSessionMappingCreateManyOauthSessionInput = { mcpSessionId: string } export type McpSessionMappingUpdateWithoutOauthSessionInput = { mcpSessionId?: Prisma.StringFieldUpdateOperationsInput | string } export type McpSessionMappingUncheckedUpdateWithoutOauthSessionInput = { mcpSessionId?: Prisma.StringFieldUpdateOperationsInput | string } export type McpSessionMappingUncheckedUpdateManyWithoutOauthSessionInput = { mcpSessionId?: Prisma.StringFieldUpdateOperationsInput | string } export type McpSessionMappingSelect = runtime.Types.Extensions.GetSelect<{ mcpSessionId?: boolean oauthSessionId?: boolean oauthSession?: boolean | Prisma.OAuthSessionDefaultArgs }, ExtArgs["result"]["mcpSessionMapping"]> export type McpSessionMappingSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ mcpSessionId?: boolean oauthSessionId?: boolean oauthSession?: boolean | Prisma.OAuthSessionDefaultArgs }, ExtArgs["result"]["mcpSessionMapping"]> export type McpSessionMappingSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ mcpSessionId?: boolean oauthSessionId?: boolean oauthSession?: boolean | Prisma.OAuthSessionDefaultArgs }, ExtArgs["result"]["mcpSessionMapping"]> export type McpSessionMappingSelectScalar = { mcpSessionId?: boolean oauthSessionId?: boolean } export type McpSessionMappingOmit = runtime.Types.Extensions.GetOmit<"mcpSessionId" | "oauthSessionId", ExtArgs["result"]["mcpSessionMapping"]> export type McpSessionMappingInclude = { oauthSession?: boolean | Prisma.OAuthSessionDefaultArgs } export type McpSessionMappingIncludeCreateManyAndReturn = { oauthSession?: boolean | Prisma.OAuthSessionDefaultArgs } export type McpSessionMappingIncludeUpdateManyAndReturn = { oauthSession?: boolean | Prisma.OAuthSessionDefaultArgs } export type $McpSessionMappingPayload = { name: "McpSessionMapping" objects: { oauthSession: Prisma.$OAuthSessionPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ mcpSessionId: string oauthSessionId: string }, ExtArgs["result"]["mcpSessionMapping"]> composites: {} } export type McpSessionMappingGetPayload = runtime.Types.Result.GetResult export type McpSessionMappingCountArgs = Omit & { select?: McpSessionMappingCountAggregateInputType | true } export interface McpSessionMappingDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['McpSessionMapping'], meta: { name: 'McpSessionMapping' } } /** * Find zero or one McpSessionMapping that matches the filter. * @param {McpSessionMappingFindUniqueArgs} args - Arguments to find a McpSessionMapping * @example * // Get one McpSessionMapping * const mcpSessionMapping = await prisma.mcpSessionMapping.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__McpSessionMappingClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one McpSessionMapping that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {McpSessionMappingFindUniqueOrThrowArgs} args - Arguments to find a McpSessionMapping * @example * // Get one McpSessionMapping * const mcpSessionMapping = await prisma.mcpSessionMapping.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__McpSessionMappingClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first McpSessionMapping 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 {McpSessionMappingFindFirstArgs} args - Arguments to find a McpSessionMapping * @example * // Get one McpSessionMapping * const mcpSessionMapping = await prisma.mcpSessionMapping.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__McpSessionMappingClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first McpSessionMapping 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 {McpSessionMappingFindFirstOrThrowArgs} args - Arguments to find a McpSessionMapping * @example * // Get one McpSessionMapping * const mcpSessionMapping = await prisma.mcpSessionMapping.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__McpSessionMappingClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more McpSessionMappings 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 {McpSessionMappingFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all McpSessionMappings * const mcpSessionMappings = await prisma.mcpSessionMapping.findMany() * * // Get first 10 McpSessionMappings * const mcpSessionMappings = await prisma.mcpSessionMapping.findMany({ take: 10 }) * * // Only select the `mcpSessionId` * const mcpSessionMappingWithMcpSessionIdOnly = await prisma.mcpSessionMapping.findMany({ select: { mcpSessionId: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a McpSessionMapping. * @param {McpSessionMappingCreateArgs} args - Arguments to create a McpSessionMapping. * @example * // Create one McpSessionMapping * const McpSessionMapping = await prisma.mcpSessionMapping.create({ * data: { * // ... data to create a McpSessionMapping * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__McpSessionMappingClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many McpSessionMappings. * @param {McpSessionMappingCreateManyArgs} args - Arguments to create many McpSessionMappings. * @example * // Create many McpSessionMappings * const mcpSessionMapping = await prisma.mcpSessionMapping.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many McpSessionMappings and returns the data saved in the database. * @param {McpSessionMappingCreateManyAndReturnArgs} args - Arguments to create many McpSessionMappings. * @example * // Create many McpSessionMappings * const mcpSessionMapping = await prisma.mcpSessionMapping.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many McpSessionMappings and only return the `mcpSessionId` * const mcpSessionMappingWithMcpSessionIdOnly = await prisma.mcpSessionMapping.createManyAndReturn({ * select: { mcpSessionId: 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a McpSessionMapping. * @param {McpSessionMappingDeleteArgs} args - Arguments to delete one McpSessionMapping. * @example * // Delete one McpSessionMapping * const McpSessionMapping = await prisma.mcpSessionMapping.delete({ * where: { * // ... filter to delete one McpSessionMapping * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__McpSessionMappingClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one McpSessionMapping. * @param {McpSessionMappingUpdateArgs} args - Arguments to update one McpSessionMapping. * @example * // Update one McpSessionMapping * const mcpSessionMapping = await prisma.mcpSessionMapping.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__McpSessionMappingClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more McpSessionMappings. * @param {McpSessionMappingDeleteManyArgs} args - Arguments to filter McpSessionMappings to delete. * @example * // Delete a few McpSessionMappings * const { count } = await prisma.mcpSessionMapping.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more McpSessionMappings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {McpSessionMappingUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many McpSessionMappings * const mcpSessionMapping = await prisma.mcpSessionMapping.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more McpSessionMappings and returns the data updated in the database. * @param {McpSessionMappingUpdateManyAndReturnArgs} args - Arguments to update many McpSessionMappings. * @example * // Update many McpSessionMappings * const mcpSessionMapping = await prisma.mcpSessionMapping.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more McpSessionMappings and only return the `mcpSessionId` * const mcpSessionMappingWithMcpSessionIdOnly = await prisma.mcpSessionMapping.updateManyAndReturn({ * select: { mcpSessionId: 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one McpSessionMapping. * @param {McpSessionMappingUpsertArgs} args - Arguments to update or create a McpSessionMapping. * @example * // Update or create a McpSessionMapping * const mcpSessionMapping = await prisma.mcpSessionMapping.upsert({ * create: { * // ... data to create a McpSessionMapping * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the McpSessionMapping we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__McpSessionMappingClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of McpSessionMappings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {McpSessionMappingCountArgs} args - Arguments to filter McpSessionMappings to count. * @example * // Count the number of McpSessionMappings * const count = await prisma.mcpSessionMapping.count({ * where: { * // ... the filter for the McpSessionMappings we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a McpSessionMapping. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {McpSessionMappingAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by McpSessionMapping. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {McpSessionMappingGroupByArgs} 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 McpSessionMappingGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: McpSessionMappingGroupByArgs['orderBy'] } : { orderBy?: McpSessionMappingGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetMcpSessionMappingGroupByPayload : Prisma.PrismaPromise /** * Fields of the McpSessionMapping model */ readonly fields: McpSessionMappingFieldRefs; } /** * The delegate class that acts as a "Promise-like" for McpSessionMapping. * 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__McpSessionMappingClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" oauthSession = {}>(args?: Prisma.Subset>): Prisma.Prisma__OAuthSessionClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the McpSessionMapping model */ export interface McpSessionMappingFieldRefs { readonly mcpSessionId: Prisma.FieldRef<"McpSessionMapping", 'String'> readonly oauthSessionId: Prisma.FieldRef<"McpSessionMapping", 'String'> } // Custom InputTypes /** * McpSessionMapping findUnique */ export type McpSessionMappingFindUniqueArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null /** * Filter, which McpSessionMapping to fetch. */ where: Prisma.McpSessionMappingWhereUniqueInput } /** * McpSessionMapping findUniqueOrThrow */ export type McpSessionMappingFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null /** * Filter, which McpSessionMapping to fetch. */ where: Prisma.McpSessionMappingWhereUniqueInput } /** * McpSessionMapping findFirst */ export type McpSessionMappingFindFirstArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null /** * Filter, which McpSessionMapping to fetch. */ where?: Prisma.McpSessionMappingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of McpSessionMappings to fetch. */ orderBy?: Prisma.McpSessionMappingOrderByWithRelationInput | Prisma.McpSessionMappingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for McpSessionMappings. */ cursor?: Prisma.McpSessionMappingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` McpSessionMappings 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` McpSessionMappings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of McpSessionMappings. */ distinct?: Prisma.McpSessionMappingScalarFieldEnum | Prisma.McpSessionMappingScalarFieldEnum[] } /** * McpSessionMapping findFirstOrThrow */ export type McpSessionMappingFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null /** * Filter, which McpSessionMapping to fetch. */ where?: Prisma.McpSessionMappingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of McpSessionMappings to fetch. */ orderBy?: Prisma.McpSessionMappingOrderByWithRelationInput | Prisma.McpSessionMappingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for McpSessionMappings. */ cursor?: Prisma.McpSessionMappingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` McpSessionMappings 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` McpSessionMappings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of McpSessionMappings. */ distinct?: Prisma.McpSessionMappingScalarFieldEnum | Prisma.McpSessionMappingScalarFieldEnum[] } /** * McpSessionMapping findMany */ export type McpSessionMappingFindManyArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null /** * Filter, which McpSessionMappings to fetch. */ where?: Prisma.McpSessionMappingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of McpSessionMappings to fetch. */ orderBy?: Prisma.McpSessionMappingOrderByWithRelationInput | Prisma.McpSessionMappingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing McpSessionMappings. */ cursor?: Prisma.McpSessionMappingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` McpSessionMappings 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` McpSessionMappings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of McpSessionMappings. */ distinct?: Prisma.McpSessionMappingScalarFieldEnum | Prisma.McpSessionMappingScalarFieldEnum[] } /** * McpSessionMapping create */ export type McpSessionMappingCreateArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null /** * The data needed to create a McpSessionMapping. */ data: Prisma.XOR } /** * McpSessionMapping createMany */ export type McpSessionMappingCreateManyArgs = { /** * The data used to create many McpSessionMappings. */ data: Prisma.McpSessionMappingCreateManyInput | Prisma.McpSessionMappingCreateManyInput[] skipDuplicates?: boolean } /** * McpSessionMapping createManyAndReturn */ export type McpSessionMappingCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelectCreateManyAndReturn | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * The data used to create many McpSessionMappings. */ data: Prisma.McpSessionMappingCreateManyInput | Prisma.McpSessionMappingCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingIncludeCreateManyAndReturn | null } /** * McpSessionMapping update */ export type McpSessionMappingUpdateArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null /** * The data needed to update a McpSessionMapping. */ data: Prisma.XOR /** * Choose, which McpSessionMapping to update. */ where: Prisma.McpSessionMappingWhereUniqueInput } /** * McpSessionMapping updateMany */ export type McpSessionMappingUpdateManyArgs = { /** * The data used to update McpSessionMappings. */ data: Prisma.XOR /** * Filter which McpSessionMappings to update */ where?: Prisma.McpSessionMappingWhereInput /** * Limit how many McpSessionMappings to update. */ limit?: number } /** * McpSessionMapping updateManyAndReturn */ export type McpSessionMappingUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelectUpdateManyAndReturn | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * The data used to update McpSessionMappings. */ data: Prisma.XOR /** * Filter which McpSessionMappings to update */ where?: Prisma.McpSessionMappingWhereInput /** * Limit how many McpSessionMappings to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingIncludeUpdateManyAndReturn | null } /** * McpSessionMapping upsert */ export type McpSessionMappingUpsertArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null /** * The filter to search for the McpSessionMapping to update in case it exists. */ where: Prisma.McpSessionMappingWhereUniqueInput /** * In case the McpSessionMapping found by the `where` argument doesn't exist, create a new McpSessionMapping with this data. */ create: Prisma.XOR /** * In case the McpSessionMapping was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * McpSessionMapping delete */ export type McpSessionMappingDeleteArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null /** * Filter which McpSessionMapping to delete. */ where: Prisma.McpSessionMappingWhereUniqueInput } /** * McpSessionMapping deleteMany */ export type McpSessionMappingDeleteManyArgs = { /** * Filter which McpSessionMappings to delete */ where?: Prisma.McpSessionMappingWhereInput /** * Limit how many McpSessionMappings to delete. */ limit?: number } /** * McpSessionMapping without action */ export type McpSessionMappingDefaultArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null }