Docker Build and Push / build-image (push) Successful in 4m34s
- 新增 /api/mcp (Streamable HTTP) 与 41 个工具: 项目/看板列/任务/清单/打卡; - 新增 McpToken 模型与迁移, DB 仅存 SHA-256 哈希, token 绑定用户; - 新增 /api/mcp-tokens 增删改查, 支持独立命名 (如 R1); - 「我的」页新增 AI 接入 (MCP) 区块: 地址复制/新建/一次性展示/删除; - 补充 docs/MCP.md 与样式
1502 lines
53 KiB
TypeScript
1502 lines
53 KiB
TypeScript
|
|
/* !!! 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<Prisma.$McpTokenPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends McpTokenAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMcpToken]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMcpToken[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMcpToken[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type McpTokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends McpTokenGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<McpTokenGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof McpTokenGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], McpTokenGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], McpTokenGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
}
|
|
|
|
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<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
}, "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> | 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> | 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> | 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> | 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<Prisma.McpTokenCreateWithoutUserInput, Prisma.McpTokenUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type McpTokenCreateManyUserInputEnvelope = {
|
|
data: Prisma.McpTokenCreateManyUserInput | Prisma.McpTokenCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type McpTokenUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.McpTokenWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.McpTokenUpdateWithoutUserInput, Prisma.McpTokenUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.McpTokenCreateWithoutUserInput, Prisma.McpTokenUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type McpTokenUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.McpTokenWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.McpTokenUpdateWithoutUserInput, Prisma.McpTokenUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type McpTokenUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.McpTokenScalarWhereInput
|
|
data: Prisma.XOR<Prisma.McpTokenUpdateManyMutationInput, Prisma.McpTokenUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, ExtArgs["result"]["mcpToken"]>
|
|
|
|
export type McpTokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, ExtArgs["result"]["mcpToken"]>
|
|
|
|
export type McpTokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "name" | "prefix" | "tokenHash" | "lastUsedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["mcpToken"]>
|
|
export type McpTokenInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type McpTokenIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type McpTokenIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $McpTokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "McpToken"
|
|
objects: {
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
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<S extends boolean | null | undefined | McpTokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$McpTokenPayload, S>
|
|
|
|
export type McpTokenCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<McpTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: McpTokenCountAggregateInputType | true
|
|
}
|
|
|
|
export interface McpTokenDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends McpTokenFindUniqueArgs>(args: Prisma.SelectSubset<T, McpTokenFindUniqueArgs<ExtArgs>>): Prisma.Prisma__McpTokenClient<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, McpTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpTokenClient<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenFindFirstArgs>(args?: Prisma.SelectSubset<T, McpTokenFindFirstArgs<ExtArgs>>): Prisma.Prisma__McpTokenClient<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, McpTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpTokenClient<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenFindManyArgs>(args?: Prisma.SelectSubset<T, McpTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenCreateArgs>(args: Prisma.SelectSubset<T, McpTokenCreateArgs<ExtArgs>>): Prisma.Prisma__McpTokenClient<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenCreateManyArgs>(args?: Prisma.SelectSubset<T, McpTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends McpTokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, McpTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenDeleteArgs>(args: Prisma.SelectSubset<T, McpTokenDeleteArgs<ExtArgs>>): Prisma.Prisma__McpTokenClient<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenUpdateArgs>(args: Prisma.SelectSubset<T, McpTokenUpdateArgs<ExtArgs>>): Prisma.Prisma__McpTokenClient<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenDeleteManyArgs>(args?: Prisma.SelectSubset<T, McpTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends McpTokenUpdateManyArgs>(args: Prisma.SelectSubset<T, McpTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends McpTokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, McpTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenUpsertArgs>(args: Prisma.SelectSubset<T, McpTokenUpsertArgs<ExtArgs>>): Prisma.Prisma__McpTokenClient<runtime.Types.Result.GetResult<Prisma.$McpTokenPayload<ExtArgs>, 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<T extends McpTokenCountArgs>(
|
|
args?: Prisma.Subset<T, McpTokenCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], McpTokenCountAggregateOutputType>
|
|
: 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<T extends McpTokenAggregateArgs>(args: Prisma.Subset<T, McpTokenAggregateArgs>): Prisma.PrismaPromise<GetMcpTokenAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: McpTokenGroupByArgs['orderBy'] }
|
|
: { orderBy?: McpTokenGroupByArgs['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, McpTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMcpTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which McpToken to fetch.
|
|
*/
|
|
where: Prisma.McpTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* McpToken findUniqueOrThrow
|
|
*/
|
|
export type McpTokenFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which McpToken to fetch.
|
|
*/
|
|
where: Prisma.McpTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* McpToken findFirst
|
|
*/
|
|
export type McpTokenFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a McpToken.
|
|
*/
|
|
data: Prisma.XOR<Prisma.McpTokenCreateInput, Prisma.McpTokenUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* McpToken createMany
|
|
*/
|
|
export type McpTokenCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many McpTokens.
|
|
*/
|
|
data: Prisma.McpTokenCreateManyInput | Prisma.McpTokenCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* McpToken createManyAndReturn
|
|
*/
|
|
export type McpTokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* McpToken update
|
|
*/
|
|
export type McpTokenUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a McpToken.
|
|
*/
|
|
data: Prisma.XOR<Prisma.McpTokenUpdateInput, Prisma.McpTokenUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which McpToken to update.
|
|
*/
|
|
where: Prisma.McpTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* McpToken updateMany
|
|
*/
|
|
export type McpTokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update McpTokens.
|
|
*/
|
|
data: Prisma.XOR<Prisma.McpTokenUpdateManyMutationInput, Prisma.McpTokenUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which McpTokens to update
|
|
*/
|
|
where?: Prisma.McpTokenWhereInput
|
|
/**
|
|
* Limit how many McpTokens to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* McpToken updateManyAndReturn
|
|
*/
|
|
export type McpTokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update McpTokens.
|
|
*/
|
|
data: Prisma.XOR<Prisma.McpTokenUpdateManyMutationInput, Prisma.McpTokenUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* McpToken upsert
|
|
*/
|
|
export type McpTokenUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | 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<Prisma.McpTokenCreateInput, Prisma.McpTokenUncheckedCreateInput>
|
|
/**
|
|
* In case the McpToken was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.McpTokenUpdateInput, Prisma.McpTokenUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* McpToken delete
|
|
*/
|
|
export type McpTokenDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which McpToken to delete.
|
|
*/
|
|
where: Prisma.McpTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* McpToken deleteMany
|
|
*/
|
|
export type McpTokenDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which McpTokens to delete
|
|
*/
|
|
where?: Prisma.McpTokenWhereInput
|
|
/**
|
|
* Limit how many McpTokens to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* McpToken without action
|
|
*/
|
|
export type McpTokenDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpToken
|
|
*/
|
|
select?: Prisma.McpTokenSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpToken
|
|
*/
|
|
omit?: Prisma.McpTokenOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpTokenInclude<ExtArgs> | null
|
|
}
|