Files
shumai/packages/db/src/generated/prisma/models/McpServer.ts
T
Yiling-J 576d8ebe64 chore(deps): upgrade bun to 1.4.2 and update packages (#384)
* chore(deps): upgrade bun to 1.4.2 and update packages

- Upgrade Bun to 1.4.2 in Dockerfile, CI workflows, and release workflows.
- Update dependencies across workspace with Bun 1.4.2.
- Preserve @earendil-works/pi-agent-core at 0.82.1.
- Retain stable compatible versions for database adapters and pdfjs-dist.
- Add explicit Buffer type annotation in transcode service.

* chore(deps): upgrade prisma to 7.10.0, pg to 8.23.0, and pdfjs-dist to 6.3.289

* chore(deps): revert dotenv-expand to 13.0.0
2026-09-06 11:31:05 +08:00

2057 lines
82 KiB
TypeScript
Generated

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `McpServer` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as PJTG from '../pjtg';
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 McpServer
*
*/
export type McpServerModel = runtime.Types.Result.DefaultSelection<Prisma.$McpServerPayload>
export type AggregateMcpServer = {
_count: McpServerCountAggregateOutputType | null
_min: McpServerMinAggregateOutputType | null
_max: McpServerMaxAggregateOutputType | null
}
export type McpServerMinAggregateOutputType = {
id: string | null
name: string | null
description: string | null
instructions: string | null
url: string | null
transport: $Enums.McpTransport | null
permission: $Enums.TeamMemberRole | null
status: string | null
lastError: string | null
lastConnectedAt: Date | null
createdAt: Date | null
updatedAt: Date | null
teamId: string | null
}
export type McpServerMaxAggregateOutputType = {
id: string | null
name: string | null
description: string | null
instructions: string | null
url: string | null
transport: $Enums.McpTransport | null
permission: $Enums.TeamMemberRole | null
status: string | null
lastError: string | null
lastConnectedAt: Date | null
createdAt: Date | null
updatedAt: Date | null
teamId: string | null
}
export type McpServerCountAggregateOutputType = {
id: number
name: number
description: number
instructions: number
url: number
transport: number
authConfig: number
config: number
permission: number
tools: number
status: number
lastError: number
lastConnectedAt: number
createdAt: number
updatedAt: number
teamId: number
_all: number
}
export type McpServerMinAggregateInputType = {
id?: true
name?: true
description?: true
instructions?: true
url?: true
transport?: true
permission?: true
status?: true
lastError?: true
lastConnectedAt?: true
createdAt?: true
updatedAt?: true
teamId?: true
}
export type McpServerMaxAggregateInputType = {
id?: true
name?: true
description?: true
instructions?: true
url?: true
transport?: true
permission?: true
status?: true
lastError?: true
lastConnectedAt?: true
createdAt?: true
updatedAt?: true
teamId?: true
}
export type McpServerCountAggregateInputType = {
id?: true
name?: true
description?: true
instructions?: true
url?: true
transport?: true
authConfig?: true
config?: true
permission?: true
tools?: true
status?: true
lastError?: true
lastConnectedAt?: true
createdAt?: true
updatedAt?: true
teamId?: true
_all?: true
}
export type McpServerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which McpServer to aggregate.
*/
where?: Prisma.McpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServers to fetch.
*/
orderBy?: Prisma.McpServerOrderByWithRelationInput | Prisma.McpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.McpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServers 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` McpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned McpServers
**/
_count?: true | McpServerCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: McpServerMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: McpServerMaxAggregateInputType
}
export type GetMcpServerAggregateType<T extends McpServerAggregateArgs> = {
[P in keyof T & keyof AggregateMcpServer]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateMcpServer[P]>
: Prisma.GetScalarType<T[P], AggregateMcpServer[P]>
}
export type McpServerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.McpServerWhereInput
orderBy?: Prisma.McpServerOrderByWithAggregationInput | Prisma.McpServerOrderByWithAggregationInput[]
by: Prisma.McpServerScalarFieldEnum[] | Prisma.McpServerScalarFieldEnum
having?: Prisma.McpServerScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: McpServerCountAggregateInputType | true
_min?: McpServerMinAggregateInputType
_max?: McpServerMaxAggregateInputType
}
export type McpServerGroupByOutputType = {
id: string
name: string
description: string | null
instructions: string | null
url: string
transport: $Enums.McpTransport
authConfig:PrismaJson.McpServerAuthConfig | null
config:PrismaJson.McpServerConfig | null
permission: $Enums.TeamMemberRole
tools:PrismaJson.McpToolInfo[] | null
status: string
lastError: string | null
lastConnectedAt: Date | null
createdAt: Date
updatedAt: Date
teamId: string
_count: McpServerCountAggregateOutputType | null
_min: McpServerMinAggregateOutputType | null
_max: McpServerMaxAggregateOutputType | null
}
export type GetMcpServerGroupByPayload<T extends McpServerGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<McpServerGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof McpServerGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], McpServerGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], McpServerGroupByOutputType[P]>
}
>
>
export type McpServerWhereInput = {
AND?: Prisma.McpServerWhereInput | Prisma.McpServerWhereInput[]
OR?: Prisma.McpServerWhereInput[]
NOT?: Prisma.McpServerWhereInput | Prisma.McpServerWhereInput[]
id?: Prisma.StringFilter<"McpServer"> | string
name?: Prisma.StringFilter<"McpServer"> | string
description?: Prisma.StringNullableFilter<"McpServer"> | string | null
instructions?: Prisma.StringNullableFilter<"McpServer"> | string | null
url?: Prisma.StringFilter<"McpServer"> | string
transport?: Prisma.EnumMcpTransportFilter<"McpServer"> | $Enums.McpTransport
authConfig?: Prisma.JsonNullableFilter<"McpServer">
config?: Prisma.JsonNullableFilter<"McpServer">
permission?: Prisma.EnumTeamMemberRoleFilter<"McpServer"> | $Enums.TeamMemberRole
tools?: Prisma.JsonNullableFilter<"McpServer">
status?: Prisma.StringFilter<"McpServer"> | string
lastError?: Prisma.StringNullableFilter<"McpServer"> | string | null
lastConnectedAt?: Prisma.DateTimeNullableFilter<"McpServer"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
teamId?: Prisma.StringFilter<"McpServer"> | string
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
credential?: Prisma.XOR<Prisma.McpServerCredentialNullableScalarRelationFilter, Prisma.McpServerCredentialWhereInput> | null
agentMcpServers?: Prisma.AgentMcpServerListRelationFilter
}
export type McpServerOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
instructions?: Prisma.SortOrderInput | Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
authConfig?: Prisma.SortOrderInput | Prisma.SortOrder
config?: Prisma.SortOrderInput | Prisma.SortOrder
permission?: Prisma.SortOrder
tools?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrderInput | Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
team?: Prisma.TeamOrderByWithRelationInput
credential?: Prisma.McpServerCredentialOrderByWithRelationInput
agentMcpServers?: Prisma.AgentMcpServerOrderByRelationAggregateInput
}
export type McpServerWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.McpServerWhereInput | Prisma.McpServerWhereInput[]
OR?: Prisma.McpServerWhereInput[]
NOT?: Prisma.McpServerWhereInput | Prisma.McpServerWhereInput[]
name?: Prisma.StringFilter<"McpServer"> | string
description?: Prisma.StringNullableFilter<"McpServer"> | string | null
instructions?: Prisma.StringNullableFilter<"McpServer"> | string | null
url?: Prisma.StringFilter<"McpServer"> | string
transport?: Prisma.EnumMcpTransportFilter<"McpServer"> | $Enums.McpTransport
authConfig?: Prisma.JsonNullableFilter<"McpServer">
config?: Prisma.JsonNullableFilter<"McpServer">
permission?: Prisma.EnumTeamMemberRoleFilter<"McpServer"> | $Enums.TeamMemberRole
tools?: Prisma.JsonNullableFilter<"McpServer">
status?: Prisma.StringFilter<"McpServer"> | string
lastError?: Prisma.StringNullableFilter<"McpServer"> | string | null
lastConnectedAt?: Prisma.DateTimeNullableFilter<"McpServer"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
teamId?: Prisma.StringFilter<"McpServer"> | string
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
credential?: Prisma.XOR<Prisma.McpServerCredentialNullableScalarRelationFilter, Prisma.McpServerCredentialWhereInput> | null
agentMcpServers?: Prisma.AgentMcpServerListRelationFilter
}, "id">
export type McpServerOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
instructions?: Prisma.SortOrderInput | Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
authConfig?: Prisma.SortOrderInput | Prisma.SortOrder
config?: Prisma.SortOrderInput | Prisma.SortOrder
permission?: Prisma.SortOrder
tools?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrderInput | Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
_count?: Prisma.McpServerCountOrderByAggregateInput
_max?: Prisma.McpServerMaxOrderByAggregateInput
_min?: Prisma.McpServerMinOrderByAggregateInput
}
export type McpServerScalarWhereWithAggregatesInput = {
AND?: Prisma.McpServerScalarWhereWithAggregatesInput | Prisma.McpServerScalarWhereWithAggregatesInput[]
OR?: Prisma.McpServerScalarWhereWithAggregatesInput[]
NOT?: Prisma.McpServerScalarWhereWithAggregatesInput | Prisma.McpServerScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
name?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
description?: Prisma.StringNullableWithAggregatesFilter<"McpServer"> | string | null
instructions?: Prisma.StringNullableWithAggregatesFilter<"McpServer"> | string | null
url?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
transport?: Prisma.EnumMcpTransportWithAggregatesFilter<"McpServer"> | $Enums.McpTransport
authConfig?: Prisma.JsonNullableWithAggregatesFilter<"McpServer">
config?: Prisma.JsonNullableWithAggregatesFilter<"McpServer">
permission?: Prisma.EnumTeamMemberRoleWithAggregatesFilter<"McpServer"> | $Enums.TeamMemberRole
tools?: Prisma.JsonNullableWithAggregatesFilter<"McpServer">
status?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
lastError?: Prisma.StringNullableWithAggregatesFilter<"McpServer"> | string | null
lastConnectedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpServer"> | Date | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"McpServer"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"McpServer"> | Date | string
teamId?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
}
export type McpServerCreateInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
team: Prisma.TeamCreateNestedOneWithoutMcpServersInput
credential?: Prisma.McpServerCredentialCreateNestedOneWithoutServerInput
agentMcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutMcpServerInput
}
export type McpServerUncheckedCreateInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
teamId: string
credential?: Prisma.McpServerCredentialUncheckedCreateNestedOneWithoutServerInput
agentMcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutMcpServerInput
}
export type McpServerUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
team?: Prisma.TeamUpdateOneRequiredWithoutMcpServersNestedInput
credential?: Prisma.McpServerCredentialUpdateOneWithoutServerNestedInput
agentMcpServers?: Prisma.AgentMcpServerUpdateManyWithoutMcpServerNestedInput
}
export type McpServerUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
teamId?: Prisma.StringFieldUpdateOperationsInput | string
credential?: Prisma.McpServerCredentialUncheckedUpdateOneWithoutServerNestedInput
agentMcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutMcpServerNestedInput
}
export type McpServerCreateManyInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
teamId: string
}
export type McpServerUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type McpServerUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
teamId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type McpServerListRelationFilter = {
every?: Prisma.McpServerWhereInput
some?: Prisma.McpServerWhereInput
none?: Prisma.McpServerWhereInput
}
export type McpServerOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type McpServerCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
instructions?: Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
authConfig?: Prisma.SortOrder
config?: Prisma.SortOrder
permission?: Prisma.SortOrder
tools?: Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
}
export type McpServerMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
instructions?: Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
permission?: Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
}
export type McpServerMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
instructions?: Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
permission?: Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
}
export type McpServerScalarRelationFilter = {
is?: Prisma.McpServerWhereInput
isNot?: Prisma.McpServerWhereInput
}
export type McpServerCreateNestedManyWithoutTeamInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput> | Prisma.McpServerCreateWithoutTeamInput[] | Prisma.McpServerUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutTeamInput | Prisma.McpServerCreateOrConnectWithoutTeamInput[]
createMany?: Prisma.McpServerCreateManyTeamInputEnvelope
connect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
}
export type McpServerUncheckedCreateNestedManyWithoutTeamInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput> | Prisma.McpServerCreateWithoutTeamInput[] | Prisma.McpServerUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutTeamInput | Prisma.McpServerCreateOrConnectWithoutTeamInput[]
createMany?: Prisma.McpServerCreateManyTeamInputEnvelope
connect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
}
export type McpServerUpdateManyWithoutTeamNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput> | Prisma.McpServerCreateWithoutTeamInput[] | Prisma.McpServerUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutTeamInput | Prisma.McpServerCreateOrConnectWithoutTeamInput[]
upsert?: Prisma.McpServerUpsertWithWhereUniqueWithoutTeamInput | Prisma.McpServerUpsertWithWhereUniqueWithoutTeamInput[]
createMany?: Prisma.McpServerCreateManyTeamInputEnvelope
set?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
disconnect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
delete?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
connect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
update?: Prisma.McpServerUpdateWithWhereUniqueWithoutTeamInput | Prisma.McpServerUpdateWithWhereUniqueWithoutTeamInput[]
updateMany?: Prisma.McpServerUpdateManyWithWhereWithoutTeamInput | Prisma.McpServerUpdateManyWithWhereWithoutTeamInput[]
deleteMany?: Prisma.McpServerScalarWhereInput | Prisma.McpServerScalarWhereInput[]
}
export type McpServerUncheckedUpdateManyWithoutTeamNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput> | Prisma.McpServerCreateWithoutTeamInput[] | Prisma.McpServerUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutTeamInput | Prisma.McpServerCreateOrConnectWithoutTeamInput[]
upsert?: Prisma.McpServerUpsertWithWhereUniqueWithoutTeamInput | Prisma.McpServerUpsertWithWhereUniqueWithoutTeamInput[]
createMany?: Prisma.McpServerCreateManyTeamInputEnvelope
set?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
disconnect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
delete?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
connect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
update?: Prisma.McpServerUpdateWithWhereUniqueWithoutTeamInput | Prisma.McpServerUpdateWithWhereUniqueWithoutTeamInput[]
updateMany?: Prisma.McpServerUpdateManyWithWhereWithoutTeamInput | Prisma.McpServerUpdateManyWithWhereWithoutTeamInput[]
deleteMany?: Prisma.McpServerScalarWhereInput | Prisma.McpServerScalarWhereInput[]
}
export type EnumMcpTransportFieldUpdateOperationsInput = {
set?: $Enums.McpTransport
}
export type McpServerCreateNestedOneWithoutAgentMcpServersInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedCreateWithoutAgentMcpServersInput>
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutAgentMcpServersInput
connect?: Prisma.McpServerWhereUniqueInput
}
export type McpServerUpdateOneRequiredWithoutAgentMcpServersNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedCreateWithoutAgentMcpServersInput>
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutAgentMcpServersInput
upsert?: Prisma.McpServerUpsertWithoutAgentMcpServersInput
connect?: Prisma.McpServerWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.McpServerUpdateToOneWithWhereWithoutAgentMcpServersInput, Prisma.McpServerUpdateWithoutAgentMcpServersInput>, Prisma.McpServerUncheckedUpdateWithoutAgentMcpServersInput>
}
export type McpServerCreateNestedOneWithoutCredentialInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutCredentialInput, Prisma.McpServerUncheckedCreateWithoutCredentialInput>
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutCredentialInput
connect?: Prisma.McpServerWhereUniqueInput
}
export type McpServerUpdateOneRequiredWithoutCredentialNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutCredentialInput, Prisma.McpServerUncheckedCreateWithoutCredentialInput>
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutCredentialInput
upsert?: Prisma.McpServerUpsertWithoutCredentialInput
connect?: Prisma.McpServerWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.McpServerUpdateToOneWithWhereWithoutCredentialInput, Prisma.McpServerUpdateWithoutCredentialInput>, Prisma.McpServerUncheckedUpdateWithoutCredentialInput>
}
export type McpServerCreateWithoutTeamInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
credential?: Prisma.McpServerCredentialCreateNestedOneWithoutServerInput
agentMcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutMcpServerInput
}
export type McpServerUncheckedCreateWithoutTeamInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
credential?: Prisma.McpServerCredentialUncheckedCreateNestedOneWithoutServerInput
agentMcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutMcpServerInput
}
export type McpServerCreateOrConnectWithoutTeamInput = {
where: Prisma.McpServerWhereUniqueInput
create: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput>
}
export type McpServerCreateManyTeamInputEnvelope = {
data: Prisma.McpServerCreateManyTeamInput | Prisma.McpServerCreateManyTeamInput[]
skipDuplicates?: boolean
}
export type McpServerUpsertWithWhereUniqueWithoutTeamInput = {
where: Prisma.McpServerWhereUniqueInput
update: Prisma.XOR<Prisma.McpServerUpdateWithoutTeamInput, Prisma.McpServerUncheckedUpdateWithoutTeamInput>
create: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput>
}
export type McpServerUpdateWithWhereUniqueWithoutTeamInput = {
where: Prisma.McpServerWhereUniqueInput
data: Prisma.XOR<Prisma.McpServerUpdateWithoutTeamInput, Prisma.McpServerUncheckedUpdateWithoutTeamInput>
}
export type McpServerUpdateManyWithWhereWithoutTeamInput = {
where: Prisma.McpServerScalarWhereInput
data: Prisma.XOR<Prisma.McpServerUpdateManyMutationInput, Prisma.McpServerUncheckedUpdateManyWithoutTeamInput>
}
export type McpServerScalarWhereInput = {
AND?: Prisma.McpServerScalarWhereInput | Prisma.McpServerScalarWhereInput[]
OR?: Prisma.McpServerScalarWhereInput[]
NOT?: Prisma.McpServerScalarWhereInput | Prisma.McpServerScalarWhereInput[]
id?: Prisma.StringFilter<"McpServer"> | string
name?: Prisma.StringFilter<"McpServer"> | string
description?: Prisma.StringNullableFilter<"McpServer"> | string | null
instructions?: Prisma.StringNullableFilter<"McpServer"> | string | null
url?: Prisma.StringFilter<"McpServer"> | string
transport?: Prisma.EnumMcpTransportFilter<"McpServer"> | $Enums.McpTransport
authConfig?: Prisma.JsonNullableFilter<"McpServer">
config?: Prisma.JsonNullableFilter<"McpServer">
permission?: Prisma.EnumTeamMemberRoleFilter<"McpServer"> | $Enums.TeamMemberRole
tools?: Prisma.JsonNullableFilter<"McpServer">
status?: Prisma.StringFilter<"McpServer"> | string
lastError?: Prisma.StringNullableFilter<"McpServer"> | string | null
lastConnectedAt?: Prisma.DateTimeNullableFilter<"McpServer"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
teamId?: Prisma.StringFilter<"McpServer"> | string
}
export type McpServerCreateWithoutAgentMcpServersInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
team: Prisma.TeamCreateNestedOneWithoutMcpServersInput
credential?: Prisma.McpServerCredentialCreateNestedOneWithoutServerInput
}
export type McpServerUncheckedCreateWithoutAgentMcpServersInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
teamId: string
credential?: Prisma.McpServerCredentialUncheckedCreateNestedOneWithoutServerInput
}
export type McpServerCreateOrConnectWithoutAgentMcpServersInput = {
where: Prisma.McpServerWhereUniqueInput
create: Prisma.XOR<Prisma.McpServerCreateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedCreateWithoutAgentMcpServersInput>
}
export type McpServerUpsertWithoutAgentMcpServersInput = {
update: Prisma.XOR<Prisma.McpServerUpdateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedUpdateWithoutAgentMcpServersInput>
create: Prisma.XOR<Prisma.McpServerCreateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedCreateWithoutAgentMcpServersInput>
where?: Prisma.McpServerWhereInput
}
export type McpServerUpdateToOneWithWhereWithoutAgentMcpServersInput = {
where?: Prisma.McpServerWhereInput
data: Prisma.XOR<Prisma.McpServerUpdateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedUpdateWithoutAgentMcpServersInput>
}
export type McpServerUpdateWithoutAgentMcpServersInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
team?: Prisma.TeamUpdateOneRequiredWithoutMcpServersNestedInput
credential?: Prisma.McpServerCredentialUpdateOneWithoutServerNestedInput
}
export type McpServerUncheckedUpdateWithoutAgentMcpServersInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
teamId?: Prisma.StringFieldUpdateOperationsInput | string
credential?: Prisma.McpServerCredentialUncheckedUpdateOneWithoutServerNestedInput
}
export type McpServerCreateWithoutCredentialInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
team: Prisma.TeamCreateNestedOneWithoutMcpServersInput
agentMcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutMcpServerInput
}
export type McpServerUncheckedCreateWithoutCredentialInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
teamId: string
agentMcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutMcpServerInput
}
export type McpServerCreateOrConnectWithoutCredentialInput = {
where: Prisma.McpServerWhereUniqueInput
create: Prisma.XOR<Prisma.McpServerCreateWithoutCredentialInput, Prisma.McpServerUncheckedCreateWithoutCredentialInput>
}
export type McpServerUpsertWithoutCredentialInput = {
update: Prisma.XOR<Prisma.McpServerUpdateWithoutCredentialInput, Prisma.McpServerUncheckedUpdateWithoutCredentialInput>
create: Prisma.XOR<Prisma.McpServerCreateWithoutCredentialInput, Prisma.McpServerUncheckedCreateWithoutCredentialInput>
where?: Prisma.McpServerWhereInput
}
export type McpServerUpdateToOneWithWhereWithoutCredentialInput = {
where?: Prisma.McpServerWhereInput
data: Prisma.XOR<Prisma.McpServerUpdateWithoutCredentialInput, Prisma.McpServerUncheckedUpdateWithoutCredentialInput>
}
export type McpServerUpdateWithoutCredentialInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
team?: Prisma.TeamUpdateOneRequiredWithoutMcpServersNestedInput
agentMcpServers?: Prisma.AgentMcpServerUpdateManyWithoutMcpServerNestedInput
}
export type McpServerUncheckedUpdateWithoutCredentialInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
teamId?: Prisma.StringFieldUpdateOperationsInput | string
agentMcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutMcpServerNestedInput
}
export type McpServerCreateManyTeamInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type McpServerUpdateWithoutTeamInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
credential?: Prisma.McpServerCredentialUpdateOneWithoutServerNestedInput
agentMcpServers?: Prisma.AgentMcpServerUpdateManyWithoutMcpServerNestedInput
}
export type McpServerUncheckedUpdateWithoutTeamInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
credential?: Prisma.McpServerCredentialUncheckedUpdateOneWithoutServerNestedInput
agentMcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutMcpServerNestedInput
}
export type McpServerUncheckedUpdateManyWithoutTeamInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Count Type McpServerCountOutputType
*/
export type McpServerCountOutputType = {
agentMcpServers: number
}
export type McpServerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
agentMcpServers?: boolean | McpServerCountOutputTypeCountAgentMcpServersArgs
}
/**
* McpServerCountOutputType without action
*/
export type McpServerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCountOutputType
*/
select?: Prisma.McpServerCountOutputTypeSelect<ExtArgs> | null
}
/**
* McpServerCountOutputType without action
*/
export type McpServerCountOutputTypeCountAgentMcpServersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AgentMcpServerWhereInput
}
export type McpServerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
instructions?: boolean
url?: boolean
transport?: boolean
authConfig?: boolean
config?: boolean
permission?: boolean
tools?: boolean
status?: boolean
lastError?: boolean
lastConnectedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
teamId?: boolean
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
credential?: boolean | Prisma.McpServer$credentialArgs<ExtArgs>
agentMcpServers?: boolean | Prisma.McpServer$agentMcpServersArgs<ExtArgs>
_count?: boolean | Prisma.McpServerCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mcpServer"]>
export type McpServerSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
instructions?: boolean
url?: boolean
transport?: boolean
authConfig?: boolean
config?: boolean
permission?: boolean
tools?: boolean
status?: boolean
lastError?: boolean
lastConnectedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
teamId?: boolean
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mcpServer"]>
export type McpServerSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
instructions?: boolean
url?: boolean
transport?: boolean
authConfig?: boolean
config?: boolean
permission?: boolean
tools?: boolean
status?: boolean
lastError?: boolean
lastConnectedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
teamId?: boolean
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mcpServer"]>
export type McpServerSelectScalar = {
id?: boolean
name?: boolean
description?: boolean
instructions?: boolean
url?: boolean
transport?: boolean
authConfig?: boolean
config?: boolean
permission?: boolean
tools?: boolean
status?: boolean
lastError?: boolean
lastConnectedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
teamId?: boolean
}
export type McpServerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "instructions" | "url" | "transport" | "authConfig" | "config" | "permission" | "tools" | "status" | "lastError" | "lastConnectedAt" | "createdAt" | "updatedAt" | "teamId", ExtArgs["result"]["mcpServer"]>
export type McpServerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
credential?: boolean | Prisma.McpServer$credentialArgs<ExtArgs>
agentMcpServers?: boolean | Prisma.McpServer$agentMcpServersArgs<ExtArgs>
_count?: boolean | Prisma.McpServerCountOutputTypeDefaultArgs<ExtArgs>
}
export type McpServerIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}
export type McpServerIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}
export type $McpServerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "McpServer"
objects: {
team: Prisma.$TeamPayload<ExtArgs>
credential: Prisma.$McpServerCredentialPayload<ExtArgs> | null
agentMcpServers: Prisma.$AgentMcpServerPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
name: string
description: string | null
instructions: string | null
url: string
transport: $Enums.McpTransport
/**
* [McpServerAuthConfig]
*/
authConfig:PrismaJson.McpServerAuthConfig | null
/**
* [McpServerConfig]
*/
config:PrismaJson.McpServerConfig | null
permission: $Enums.TeamMemberRole
/**
* [McpToolInfo[]]
*/
tools:PrismaJson.McpToolInfo[] | null
status: string
lastError: string | null
lastConnectedAt: Date | null
createdAt: Date
updatedAt: Date
teamId: string
}, ExtArgs["result"]["mcpServer"]>
composites: {}
}
export type McpServerGetPayload<S extends boolean | null | undefined | McpServerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$McpServerPayload, S>
export type McpServerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<McpServerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: McpServerCountAggregateInputType | true
}
export interface McpServerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['McpServer'], meta: { name: 'McpServer' } }
/**
* Find zero or one McpServer that matches the filter.
* @param {McpServerFindUniqueArgs} args - Arguments to find a McpServer
* @example
* // Get one McpServer
* const mcpServer = await prisma.mcpServer.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends McpServerFindUniqueArgs>(args: Prisma.SelectSubset<T, McpServerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one McpServer that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {McpServerFindUniqueOrThrowArgs} args - Arguments to find a McpServer
* @example
* // Get one McpServer
* const mcpServer = await prisma.mcpServer.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends McpServerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, McpServerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first McpServer 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 {McpServerFindFirstArgs} args - Arguments to find a McpServer
* @example
* // Get one McpServer
* const mcpServer = await prisma.mcpServer.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends McpServerFindFirstArgs>(args?: Prisma.SelectSubset<T, McpServerFindFirstArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first McpServer 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 {McpServerFindFirstOrThrowArgs} args - Arguments to find a McpServer
* @example
* // Get one McpServer
* const mcpServer = await prisma.mcpServer.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends McpServerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, McpServerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more McpServers 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 {McpServerFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all McpServers
* const mcpServers = await prisma.mcpServer.findMany()
*
* // Get first 10 McpServers
* const mcpServers = await prisma.mcpServer.findMany({ take: 10 })
*
* // Only select the `id`
* const mcpServerWithIdOnly = await prisma.mcpServer.findMany({ select: { id: true } })
*
*/
findMany<T extends McpServerFindManyArgs>(args?: Prisma.SelectSubset<T, McpServerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a McpServer.
* @param {McpServerCreateArgs} args - Arguments to create a McpServer.
* @example
* // Create one McpServer
* const McpServer = await prisma.mcpServer.create({
* data: {
* // ... data to create a McpServer
* }
* })
*
*/
create<T extends McpServerCreateArgs>(args: Prisma.SelectSubset<T, McpServerCreateArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many McpServers.
* @param {McpServerCreateManyArgs} args - Arguments to create many McpServers.
* @example
* // Create many McpServers
* const mcpServer = await prisma.mcpServer.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends McpServerCreateManyArgs>(args?: Prisma.SelectSubset<T, McpServerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many McpServers and returns the data saved in the database.
* @param {McpServerCreateManyAndReturnArgs} args - Arguments to create many McpServers.
* @example
* // Create many McpServers
* const mcpServer = await prisma.mcpServer.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many McpServers and only return the `id`
* const mcpServerWithIdOnly = await prisma.mcpServer.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 McpServerCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, McpServerCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a McpServer.
* @param {McpServerDeleteArgs} args - Arguments to delete one McpServer.
* @example
* // Delete one McpServer
* const McpServer = await prisma.mcpServer.delete({
* where: {
* // ... filter to delete one McpServer
* }
* })
*
*/
delete<T extends McpServerDeleteArgs>(args: Prisma.SelectSubset<T, McpServerDeleteArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one McpServer.
* @param {McpServerUpdateArgs} args - Arguments to update one McpServer.
* @example
* // Update one McpServer
* const mcpServer = await prisma.mcpServer.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends McpServerUpdateArgs>(args: Prisma.SelectSubset<T, McpServerUpdateArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more McpServers.
* @param {McpServerDeleteManyArgs} args - Arguments to filter McpServers to delete.
* @example
* // Delete a few McpServers
* const { count } = await prisma.mcpServer.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends McpServerDeleteManyArgs>(args?: Prisma.SelectSubset<T, McpServerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more McpServers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many McpServers
* const mcpServer = await prisma.mcpServer.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends McpServerUpdateManyArgs>(args: Prisma.SelectSubset<T, McpServerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more McpServers and returns the data updated in the database.
* @param {McpServerUpdateManyAndReturnArgs} args - Arguments to update many McpServers.
* @example
* // Update many McpServers
* const mcpServer = await prisma.mcpServer.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more McpServers and only return the `id`
* const mcpServerWithIdOnly = await prisma.mcpServer.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 McpServerUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, McpServerUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one McpServer.
* @param {McpServerUpsertArgs} args - Arguments to update or create a McpServer.
* @example
* // Update or create a McpServer
* const mcpServer = await prisma.mcpServer.upsert({
* create: {
* // ... data to create a McpServer
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the McpServer we want to update
* }
* })
*/
upsert<T extends McpServerUpsertArgs>(args: Prisma.SelectSubset<T, McpServerUpsertArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of McpServers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerCountArgs} args - Arguments to filter McpServers to count.
* @example
* // Count the number of McpServers
* const count = await prisma.mcpServer.count({
* where: {
* // ... the filter for the McpServers we want to count
* }
* })
**/
count<T extends McpServerCountArgs>(
args?: Prisma.Subset<T, McpServerCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], McpServerCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a McpServer.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerAggregateArgs} 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 McpServerAggregateArgs>(args: Prisma.Subset<T, McpServerAggregateArgs>): Prisma.PrismaPromise<GetMcpServerAggregateType<T>>
/**
* Group by McpServer.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerGroupByArgs} 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 McpServerGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: McpServerGroupByArgs['orderBy'] }
: { orderBy?: McpServerGroupByArgs['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, McpServerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMcpServerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the McpServer model
*/
readonly fields: McpServerFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for McpServer.
* 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__McpServerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
team<T extends Prisma.TeamDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamDefaultArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
credential<T extends Prisma.McpServer$credentialArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpServer$credentialArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
agentMcpServers<T extends Prisma.McpServer$agentMcpServersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpServer$agentMcpServersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* 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 McpServer model
*/
export interface McpServerFieldRefs {
readonly id: Prisma.FieldRef<"McpServer", 'String'>
readonly name: Prisma.FieldRef<"McpServer", 'String'>
readonly description: Prisma.FieldRef<"McpServer", 'String'>
readonly instructions: Prisma.FieldRef<"McpServer", 'String'>
readonly url: Prisma.FieldRef<"McpServer", 'String'>
readonly transport: Prisma.FieldRef<"McpServer", 'McpTransport'>
readonly authConfig: Prisma.FieldRef<"McpServer", 'Json'>
readonly config: Prisma.FieldRef<"McpServer", 'Json'>
readonly permission: Prisma.FieldRef<"McpServer", 'TeamMemberRole'>
readonly tools: Prisma.FieldRef<"McpServer", 'Json'>
readonly status: Prisma.FieldRef<"McpServer", 'String'>
readonly lastError: Prisma.FieldRef<"McpServer", 'String'>
readonly lastConnectedAt: Prisma.FieldRef<"McpServer", 'DateTime'>
readonly createdAt: Prisma.FieldRef<"McpServer", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"McpServer", 'DateTime'>
readonly teamId: Prisma.FieldRef<"McpServer", 'String'>
}
// Custom InputTypes
/**
* McpServer findUnique
*/
export type McpServerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServer to fetch.
*/
where: Prisma.McpServerWhereUniqueInput
}
/**
* McpServer findUniqueOrThrow
*/
export type McpServerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServer to fetch.
*/
where: Prisma.McpServerWhereUniqueInput
}
/**
* McpServer findFirst
*/
export type McpServerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServer to fetch.
*/
where?: Prisma.McpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServers to fetch.
*/
orderBy?: Prisma.McpServerOrderByWithRelationInput | Prisma.McpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for McpServers.
*/
cursor?: Prisma.McpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServers 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` McpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpServers.
*/
distinct?: Prisma.McpServerScalarFieldEnum | Prisma.McpServerScalarFieldEnum[]
}
/**
* McpServer findFirstOrThrow
*/
export type McpServerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServer to fetch.
*/
where?: Prisma.McpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServers to fetch.
*/
orderBy?: Prisma.McpServerOrderByWithRelationInput | Prisma.McpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for McpServers.
*/
cursor?: Prisma.McpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServers 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` McpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpServers.
*/
distinct?: Prisma.McpServerScalarFieldEnum | Prisma.McpServerScalarFieldEnum[]
}
/**
* McpServer findMany
*/
export type McpServerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServers to fetch.
*/
where?: Prisma.McpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServers to fetch.
*/
orderBy?: Prisma.McpServerOrderByWithRelationInput | Prisma.McpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing McpServers.
*/
cursor?: Prisma.McpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServers 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` McpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpServers.
*/
distinct?: Prisma.McpServerScalarFieldEnum | Prisma.McpServerScalarFieldEnum[]
}
/**
* McpServer create
*/
export type McpServerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* The data needed to create a McpServer.
*/
data: Prisma.XOR<Prisma.McpServerCreateInput, Prisma.McpServerUncheckedCreateInput>
}
/**
* McpServer createMany
*/
export type McpServerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many McpServers.
*/
data: Prisma.McpServerCreateManyInput | Prisma.McpServerCreateManyInput[]
skipDuplicates?: boolean
}
/**
* McpServer createManyAndReturn
*/
export type McpServerCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* The data used to create many McpServers.
*/
data: Prisma.McpServerCreateManyInput | Prisma.McpServerCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* McpServer update
*/
export type McpServerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* The data needed to update a McpServer.
*/
data: Prisma.XOR<Prisma.McpServerUpdateInput, Prisma.McpServerUncheckedUpdateInput>
/**
* Choose, which McpServer to update.
*/
where: Prisma.McpServerWhereUniqueInput
}
/**
* McpServer updateMany
*/
export type McpServerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update McpServers.
*/
data: Prisma.XOR<Prisma.McpServerUpdateManyMutationInput, Prisma.McpServerUncheckedUpdateManyInput>
/**
* Filter which McpServers to update
*/
where?: Prisma.McpServerWhereInput
/**
* Limit how many McpServers to update.
*/
limit?: number
}
/**
* McpServer updateManyAndReturn
*/
export type McpServerUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* The data used to update McpServers.
*/
data: Prisma.XOR<Prisma.McpServerUpdateManyMutationInput, Prisma.McpServerUncheckedUpdateManyInput>
/**
* Filter which McpServers to update
*/
where?: Prisma.McpServerWhereInput
/**
* Limit how many McpServers to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* McpServer upsert
*/
export type McpServerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* The filter to search for the McpServer to update in case it exists.
*/
where: Prisma.McpServerWhereUniqueInput
/**
* In case the McpServer found by the `where` argument doesn't exist, create a new McpServer with this data.
*/
create: Prisma.XOR<Prisma.McpServerCreateInput, Prisma.McpServerUncheckedCreateInput>
/**
* In case the McpServer was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.McpServerUpdateInput, Prisma.McpServerUncheckedUpdateInput>
}
/**
* McpServer delete
*/
export type McpServerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter which McpServer to delete.
*/
where: Prisma.McpServerWhereUniqueInput
}
/**
* McpServer deleteMany
*/
export type McpServerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which McpServers to delete
*/
where?: Prisma.McpServerWhereInput
/**
* Limit how many McpServers to delete.
*/
limit?: number
}
/**
* McpServer.credential
*/
export type McpServer$credentialArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
where?: Prisma.McpServerCredentialWhereInput
}
/**
* McpServer.agentMcpServers
*/
export type McpServer$agentMcpServersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentMcpServer
*/
select?: Prisma.AgentMcpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentMcpServer
*/
omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentMcpServerInclude<ExtArgs> | null
where?: Prisma.AgentMcpServerWhereInput
orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[]
cursor?: Prisma.AgentMcpServerWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[]
}
/**
* McpServer without action
*/
export type McpServerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
}