/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `McpToken` 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.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model McpToken * */ export type McpTokenModel = runtime.Types.Result.DefaultSelection export type AggregateMcpToken = { _count: McpTokenCountAggregateOutputType | null _avg: McpTokenAvgAggregateOutputType | null _sum: McpTokenSumAggregateOutputType | null _min: McpTokenMinAggregateOutputType | null _max: McpTokenMaxAggregateOutputType | null } export type McpTokenAvgAggregateOutputType = { id: number | null userId: number | null } export type McpTokenSumAggregateOutputType = { id: number | null userId: number | null } export type McpTokenMinAggregateOutputType = { id: number | null userId: number | null name: string | null prefix: string | null tokenHash: string | null lastUsedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type McpTokenMaxAggregateOutputType = { id: number | null userId: number | null name: string | null prefix: string | null tokenHash: string | null lastUsedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type McpTokenCountAggregateOutputType = { id: number userId: number name: number prefix: number tokenHash: number lastUsedAt: number createdAt: number updatedAt: number _all: number } export type McpTokenAvgAggregateInputType = { id?: true userId?: true } export type McpTokenSumAggregateInputType = { id?: true userId?: true } export type McpTokenMinAggregateInputType = { id?: true userId?: true name?: true prefix?: true tokenHash?: true lastUsedAt?: true createdAt?: true updatedAt?: true } export type McpTokenMaxAggregateInputType = { id?: true userId?: true name?: true prefix?: true tokenHash?: true lastUsedAt?: true createdAt?: true updatedAt?: true } export type McpTokenCountAggregateInputType = { id?: true userId?: true name?: true prefix?: true tokenHash?: true lastUsedAt?: true createdAt?: true updatedAt?: true _all?: true } export type McpTokenAggregateArgs = { /** * Filter which McpToken to aggregate. */ where?: Prisma.McpTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of McpTokens to fetch. */ orderBy?: Prisma.McpTokenOrderByWithRelationInput | Prisma.McpTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.McpTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` McpTokens 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` McpTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned McpTokens **/ _count?: true | McpTokenCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: McpTokenAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: McpTokenSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: McpTokenMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: McpTokenMaxAggregateInputType } export type GetMcpTokenAggregateType = { [P in keyof T & keyof AggregateMcpToken]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type McpTokenGroupByArgs = { where?: Prisma.McpTokenWhereInput orderBy?: Prisma.McpTokenOrderByWithAggregationInput | Prisma.McpTokenOrderByWithAggregationInput[] by: Prisma.McpTokenScalarFieldEnum[] | Prisma.McpTokenScalarFieldEnum having?: Prisma.McpTokenScalarWhereWithAggregatesInput take?: number skip?: number _count?: McpTokenCountAggregateInputType | true _avg?: McpTokenAvgAggregateInputType _sum?: McpTokenSumAggregateInputType _min?: McpTokenMinAggregateInputType _max?: McpTokenMaxAggregateInputType } export type McpTokenGroupByOutputType = { id: number userId: number name: string prefix: string tokenHash: string lastUsedAt: Date | null createdAt: Date updatedAt: Date _count: McpTokenCountAggregateOutputType | null _avg: McpTokenAvgAggregateOutputType | null _sum: McpTokenSumAggregateOutputType | null _min: McpTokenMinAggregateOutputType | null _max: McpTokenMaxAggregateOutputType | null } export type GetMcpTokenGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof McpTokenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type McpTokenWhereInput = { AND?: Prisma.McpTokenWhereInput | Prisma.McpTokenWhereInput[] OR?: Prisma.McpTokenWhereInput[] NOT?: Prisma.McpTokenWhereInput | Prisma.McpTokenWhereInput[] id?: Prisma.IntFilter<"McpToken"> | number userId?: Prisma.IntFilter<"McpToken"> | number name?: Prisma.StringFilter<"McpToken"> | string prefix?: Prisma.StringFilter<"McpToken"> | string tokenHash?: Prisma.StringFilter<"McpToken"> | string lastUsedAt?: Prisma.DateTimeNullableFilter<"McpToken"> | Date | string | null createdAt?: Prisma.DateTimeFilter<"McpToken"> | Date | string updatedAt?: Prisma.DateTimeFilter<"McpToken"> | Date | string user?: Prisma.XOR } export type McpTokenOrderByWithRelationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder prefix?: Prisma.SortOrder tokenHash?: Prisma.SortOrder lastUsedAt?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput } export type McpTokenWhereUniqueInput = Prisma.AtLeast<{ id?: number tokenHash?: string userId_name?: Prisma.McpTokenUserIdNameCompoundUniqueInput AND?: Prisma.McpTokenWhereInput | Prisma.McpTokenWhereInput[] OR?: Prisma.McpTokenWhereInput[] NOT?: Prisma.McpTokenWhereInput | Prisma.McpTokenWhereInput[] userId?: Prisma.IntFilter<"McpToken"> | number name?: Prisma.StringFilter<"McpToken"> | string prefix?: Prisma.StringFilter<"McpToken"> | string lastUsedAt?: Prisma.DateTimeNullableFilter<"McpToken"> | Date | string | null createdAt?: Prisma.DateTimeFilter<"McpToken"> | Date | string updatedAt?: Prisma.DateTimeFilter<"McpToken"> | Date | string user?: Prisma.XOR }, "id" | "tokenHash" | "userId_name"> export type McpTokenOrderByWithAggregationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder prefix?: Prisma.SortOrder tokenHash?: Prisma.SortOrder lastUsedAt?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.McpTokenCountOrderByAggregateInput _avg?: Prisma.McpTokenAvgOrderByAggregateInput _max?: Prisma.McpTokenMaxOrderByAggregateInput _min?: Prisma.McpTokenMinOrderByAggregateInput _sum?: Prisma.McpTokenSumOrderByAggregateInput } export type McpTokenScalarWhereWithAggregatesInput = { AND?: Prisma.McpTokenScalarWhereWithAggregatesInput | Prisma.McpTokenScalarWhereWithAggregatesInput[] OR?: Prisma.McpTokenScalarWhereWithAggregatesInput[] NOT?: Prisma.McpTokenScalarWhereWithAggregatesInput | Prisma.McpTokenScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"McpToken"> | number userId?: Prisma.IntWithAggregatesFilter<"McpToken"> | number name?: Prisma.StringWithAggregatesFilter<"McpToken"> | string prefix?: Prisma.StringWithAggregatesFilter<"McpToken"> | string tokenHash?: Prisma.StringWithAggregatesFilter<"McpToken"> | string lastUsedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpToken"> | Date | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"McpToken"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"McpToken"> | Date | string } export type McpTokenCreateInput = { name: string prefix: string tokenHash: string lastUsedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutMcpTokensInput } export type McpTokenUncheckedCreateInput = { id?: number userId: number name: string prefix: string tokenHash: string lastUsedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type McpTokenUpdateInput = { name?: Prisma.StringFieldUpdateOperationsInput | string prefix?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutMcpTokensNestedInput } export type McpTokenUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string prefix?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type McpTokenCreateManyInput = { id?: number userId: number name: string prefix: string tokenHash: string lastUsedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type McpTokenUpdateManyMutationInput = { name?: Prisma.StringFieldUpdateOperationsInput | string prefix?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type McpTokenUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number userId?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string prefix?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type McpTokenListRelationFilter = { every?: Prisma.McpTokenWhereInput some?: Prisma.McpTokenWhereInput none?: Prisma.McpTokenWhereInput } export type McpTokenOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type McpTokenUserIdNameCompoundUniqueInput = { userId: number name: string } export type McpTokenCountOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder prefix?: Prisma.SortOrder tokenHash?: Prisma.SortOrder lastUsedAt?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type McpTokenAvgOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder } export type McpTokenMaxOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder prefix?: Prisma.SortOrder tokenHash?: Prisma.SortOrder lastUsedAt?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type McpTokenMinOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder name?: Prisma.SortOrder prefix?: Prisma.SortOrder tokenHash?: Prisma.SortOrder lastUsedAt?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type McpTokenSumOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder } export type McpTokenCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.McpTokenCreateWithoutUserInput[] | Prisma.McpTokenUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.McpTokenCreateOrConnectWithoutUserInput | Prisma.McpTokenCreateOrConnectWithoutUserInput[] createMany?: Prisma.McpTokenCreateManyUserInputEnvelope connect?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] } export type McpTokenUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.McpTokenCreateWithoutUserInput[] | Prisma.McpTokenUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.McpTokenCreateOrConnectWithoutUserInput | Prisma.McpTokenCreateOrConnectWithoutUserInput[] createMany?: Prisma.McpTokenCreateManyUserInputEnvelope connect?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] } export type McpTokenUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.McpTokenCreateWithoutUserInput[] | Prisma.McpTokenUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.McpTokenCreateOrConnectWithoutUserInput | Prisma.McpTokenCreateOrConnectWithoutUserInput[] upsert?: Prisma.McpTokenUpsertWithWhereUniqueWithoutUserInput | Prisma.McpTokenUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.McpTokenCreateManyUserInputEnvelope set?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] disconnect?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] delete?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] connect?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] update?: Prisma.McpTokenUpdateWithWhereUniqueWithoutUserInput | Prisma.McpTokenUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.McpTokenUpdateManyWithWhereWithoutUserInput | Prisma.McpTokenUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.McpTokenScalarWhereInput | Prisma.McpTokenScalarWhereInput[] } export type McpTokenUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.McpTokenCreateWithoutUserInput[] | Prisma.McpTokenUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.McpTokenCreateOrConnectWithoutUserInput | Prisma.McpTokenCreateOrConnectWithoutUserInput[] upsert?: Prisma.McpTokenUpsertWithWhereUniqueWithoutUserInput | Prisma.McpTokenUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.McpTokenCreateManyUserInputEnvelope set?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] disconnect?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] delete?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] connect?: Prisma.McpTokenWhereUniqueInput | Prisma.McpTokenWhereUniqueInput[] update?: Prisma.McpTokenUpdateWithWhereUniqueWithoutUserInput | Prisma.McpTokenUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.McpTokenUpdateManyWithWhereWithoutUserInput | Prisma.McpTokenUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.McpTokenScalarWhereInput | Prisma.McpTokenScalarWhereInput[] } export type McpTokenCreateWithoutUserInput = { name: string prefix: string tokenHash: string lastUsedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type McpTokenUncheckedCreateWithoutUserInput = { id?: number name: string prefix: string tokenHash: string lastUsedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type McpTokenCreateOrConnectWithoutUserInput = { where: Prisma.McpTokenWhereUniqueInput create: Prisma.XOR } export type McpTokenCreateManyUserInputEnvelope = { data: Prisma.McpTokenCreateManyUserInput | Prisma.McpTokenCreateManyUserInput[] skipDuplicates?: boolean } export type McpTokenUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.McpTokenWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type McpTokenUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.McpTokenWhereUniqueInput data: Prisma.XOR } export type McpTokenUpdateManyWithWhereWithoutUserInput = { where: Prisma.McpTokenScalarWhereInput data: Prisma.XOR } export type McpTokenScalarWhereInput = { AND?: Prisma.McpTokenScalarWhereInput | Prisma.McpTokenScalarWhereInput[] OR?: Prisma.McpTokenScalarWhereInput[] NOT?: Prisma.McpTokenScalarWhereInput | Prisma.McpTokenScalarWhereInput[] id?: Prisma.IntFilter<"McpToken"> | number userId?: Prisma.IntFilter<"McpToken"> | number name?: Prisma.StringFilter<"McpToken"> | string prefix?: Prisma.StringFilter<"McpToken"> | string tokenHash?: Prisma.StringFilter<"McpToken"> | string lastUsedAt?: Prisma.DateTimeNullableFilter<"McpToken"> | Date | string | null createdAt?: Prisma.DateTimeFilter<"McpToken"> | Date | string updatedAt?: Prisma.DateTimeFilter<"McpToken"> | Date | string } export type McpTokenCreateManyUserInput = { id?: number name: string prefix: string tokenHash: string lastUsedAt?: Date | string | null createdAt?: Date | string updatedAt?: Date | string } export type McpTokenUpdateWithoutUserInput = { name?: Prisma.StringFieldUpdateOperationsInput | string prefix?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type McpTokenUncheckedUpdateWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string prefix?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type McpTokenUncheckedUpdateManyWithoutUserInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string prefix?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type McpTokenSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean prefix?: boolean tokenHash?: boolean lastUsedAt?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["mcpToken"]> export type McpTokenSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean prefix?: boolean tokenHash?: boolean lastUsedAt?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["mcpToken"]> export type McpTokenSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean name?: boolean prefix?: boolean tokenHash?: boolean lastUsedAt?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["mcpToken"]> export type McpTokenSelectScalar = { id?: boolean userId?: boolean name?: boolean prefix?: boolean tokenHash?: boolean lastUsedAt?: boolean createdAt?: boolean updatedAt?: boolean } export type McpTokenOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "prefix" | "tokenHash" | "lastUsedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["mcpToken"]> export type McpTokenInclude = { user?: boolean | Prisma.UserDefaultArgs } export type McpTokenIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type McpTokenIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type $McpTokenPayload = { name: "McpToken" objects: { user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number userId: number name: string prefix: string tokenHash: string lastUsedAt: Date | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["mcpToken"]> composites: {} } export type McpTokenGetPayload = runtime.Types.Result.GetResult export type McpTokenCountArgs = Omit & { select?: McpTokenCountAggregateInputType | true } export interface McpTokenDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['McpToken'], meta: { name: 'McpToken' } } /** * Find zero or one McpToken that matches the filter. * @param {McpTokenFindUniqueArgs} args - Arguments to find a McpToken * @example * // Get one McpToken * const mcpToken = await prisma.mcpToken.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__McpTokenClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one McpToken that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {McpTokenFindUniqueOrThrowArgs} args - Arguments to find a McpToken * @example * // Get one McpToken * const mcpToken = await prisma.mcpToken.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__McpTokenClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first McpToken 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 {McpTokenFindFirstArgs} args - Arguments to find a McpToken * @example * // Get one McpToken * const mcpToken = await prisma.mcpToken.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__McpTokenClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first McpToken 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 {McpTokenFindFirstOrThrowArgs} args - Arguments to find a McpToken * @example * // Get one McpToken * const mcpToken = await prisma.mcpToken.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__McpTokenClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more McpTokens 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 {McpTokenFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all McpTokens * const mcpTokens = await prisma.mcpToken.findMany() * * // Get first 10 McpTokens * const mcpTokens = await prisma.mcpToken.findMany({ take: 10 }) * * // Only select the `id` * const mcpTokenWithIdOnly = await prisma.mcpToken.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a McpToken. * @param {McpTokenCreateArgs} args - Arguments to create a McpToken. * @example * // Create one McpToken * const McpToken = await prisma.mcpToken.create({ * data: { * // ... data to create a McpToken * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__McpTokenClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many McpTokens. * @param {McpTokenCreateManyArgs} args - Arguments to create many McpTokens. * @example * // Create many McpTokens * const mcpToken = await prisma.mcpToken.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many McpTokens and returns the data saved in the database. * @param {McpTokenCreateManyAndReturnArgs} args - Arguments to create many McpTokens. * @example * // Create many McpTokens * const mcpToken = await prisma.mcpToken.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many McpTokens and only return the `id` * const mcpTokenWithIdOnly = await prisma.mcpToken.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a McpToken. * @param {McpTokenDeleteArgs} args - Arguments to delete one McpToken. * @example * // Delete one McpToken * const McpToken = await prisma.mcpToken.delete({ * where: { * // ... filter to delete one McpToken * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__McpTokenClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one McpToken. * @param {McpTokenUpdateArgs} args - Arguments to update one McpToken. * @example * // Update one McpToken * const mcpToken = await prisma.mcpToken.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__McpTokenClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more McpTokens. * @param {McpTokenDeleteManyArgs} args - Arguments to filter McpTokens to delete. * @example * // Delete a few McpTokens * const { count } = await prisma.mcpToken.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more McpTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {McpTokenUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many McpTokens * const mcpToken = await prisma.mcpToken.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more McpTokens and returns the data updated in the database. * @param {McpTokenUpdateManyAndReturnArgs} args - Arguments to update many McpTokens. * @example * // Update many McpTokens * const mcpToken = await prisma.mcpToken.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more McpTokens and only return the `id` * const mcpTokenWithIdOnly = await prisma.mcpToken.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one McpToken. * @param {McpTokenUpsertArgs} args - Arguments to update or create a McpToken. * @example * // Update or create a McpToken * const mcpToken = await prisma.mcpToken.upsert({ * create: { * // ... data to create a McpToken * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the McpToken we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__McpTokenClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of McpTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {McpTokenCountArgs} args - Arguments to filter McpTokens to count. * @example * // Count the number of McpTokens * const count = await prisma.mcpToken.count({ * where: { * // ... the filter for the McpTokens 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 McpToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {McpTokenAggregateArgs} 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 McpToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {McpTokenGroupByArgs} 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 McpTokenGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: McpTokenGroupByArgs['orderBy'] } : { orderBy?: McpTokenGroupByArgs['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 ? GetMcpTokenGroupByPayload : Prisma.PrismaPromise /** * Fields of the McpToken model */ readonly fields: McpTokenFieldRefs; } /** * The delegate class that acts as a "Promise-like" for McpToken. * 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__McpTokenClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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 McpToken model */ export interface McpTokenFieldRefs { readonly id: Prisma.FieldRef<"McpToken", 'Int'> readonly userId: Prisma.FieldRef<"McpToken", 'Int'> readonly name: Prisma.FieldRef<"McpToken", 'String'> readonly prefix: Prisma.FieldRef<"McpToken", 'String'> readonly tokenHash: Prisma.FieldRef<"McpToken", 'String'> readonly lastUsedAt: Prisma.FieldRef<"McpToken", 'DateTime'> readonly createdAt: Prisma.FieldRef<"McpToken", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"McpToken", 'DateTime'> } // Custom InputTypes /** * McpToken findUnique */ export type McpTokenFindUniqueArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null /** * Filter, which McpToken to fetch. */ where: Prisma.McpTokenWhereUniqueInput } /** * McpToken findUniqueOrThrow */ export type McpTokenFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null /** * Filter, which McpToken to fetch. */ where: Prisma.McpTokenWhereUniqueInput } /** * McpToken findFirst */ export type McpTokenFindFirstArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null /** * Filter, which McpToken to fetch. */ where?: Prisma.McpTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of McpTokens to fetch. */ orderBy?: Prisma.McpTokenOrderByWithRelationInput | Prisma.McpTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for McpTokens. */ cursor?: Prisma.McpTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` McpTokens 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` McpTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of McpTokens. */ distinct?: Prisma.McpTokenScalarFieldEnum | Prisma.McpTokenScalarFieldEnum[] } /** * McpToken findFirstOrThrow */ export type McpTokenFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null /** * Filter, which McpToken to fetch. */ where?: Prisma.McpTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of McpTokens to fetch. */ orderBy?: Prisma.McpTokenOrderByWithRelationInput | Prisma.McpTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for McpTokens. */ cursor?: Prisma.McpTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` McpTokens 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` McpTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of McpTokens. */ distinct?: Prisma.McpTokenScalarFieldEnum | Prisma.McpTokenScalarFieldEnum[] } /** * McpToken findMany */ export type McpTokenFindManyArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null /** * Filter, which McpTokens to fetch. */ where?: Prisma.McpTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of McpTokens to fetch. */ orderBy?: Prisma.McpTokenOrderByWithRelationInput | Prisma.McpTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing McpTokens. */ cursor?: Prisma.McpTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` McpTokens 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` McpTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of McpTokens. */ distinct?: Prisma.McpTokenScalarFieldEnum | Prisma.McpTokenScalarFieldEnum[] } /** * McpToken create */ export type McpTokenCreateArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null /** * The data needed to create a McpToken. */ data: Prisma.XOR } /** * McpToken createMany */ export type McpTokenCreateManyArgs = { /** * The data used to create many McpTokens. */ data: Prisma.McpTokenCreateManyInput | Prisma.McpTokenCreateManyInput[] skipDuplicates?: boolean } /** * McpToken createManyAndReturn */ export type McpTokenCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelectCreateManyAndReturn | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * The data used to create many McpTokens. */ data: Prisma.McpTokenCreateManyInput | Prisma.McpTokenCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenIncludeCreateManyAndReturn | null } /** * McpToken update */ export type McpTokenUpdateArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null /** * The data needed to update a McpToken. */ data: Prisma.XOR /** * Choose, which McpToken to update. */ where: Prisma.McpTokenWhereUniqueInput } /** * McpToken updateMany */ export type McpTokenUpdateManyArgs = { /** * The data used to update McpTokens. */ data: Prisma.XOR /** * Filter which McpTokens to update */ where?: Prisma.McpTokenWhereInput /** * Limit how many McpTokens to update. */ limit?: number } /** * McpToken updateManyAndReturn */ export type McpTokenUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelectUpdateManyAndReturn | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * The data used to update McpTokens. */ data: Prisma.XOR /** * Filter which McpTokens to update */ where?: Prisma.McpTokenWhereInput /** * Limit how many McpTokens to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenIncludeUpdateManyAndReturn | null } /** * McpToken upsert */ export type McpTokenUpsertArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null /** * The filter to search for the McpToken to update in case it exists. */ where: Prisma.McpTokenWhereUniqueInput /** * In case the McpToken found by the `where` argument doesn't exist, create a new McpToken with this data. */ create: Prisma.XOR /** * In case the McpToken was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * McpToken delete */ export type McpTokenDeleteArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null /** * Filter which McpToken to delete. */ where: Prisma.McpTokenWhereUniqueInput } /** * McpToken deleteMany */ export type McpTokenDeleteManyArgs = { /** * Filter which McpTokens to delete */ where?: Prisma.McpTokenWhereInput /** * Limit how many McpTokens to delete. */ limit?: number } /** * McpToken without action */ export type McpTokenDefaultArgs = { /** * Select specific fields to fetch from the McpToken */ select?: Prisma.McpTokenSelect | null /** * Omit specific fields from the McpToken */ omit?: Prisma.McpTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpTokenInclude | null }