Files
shumai/packages/db/src/generated/prisma/models/AgentMcpServer.ts
T

1474 lines
60 KiB
TypeScript
Raw Normal View History

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `AgentMcpServer` 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 AgentMcpServer
*
*/
export type AgentMcpServerModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentMcpServerPayload>
export type AggregateAgentMcpServer = {
_count: AgentMcpServerCountAggregateOutputType | null
_min: AgentMcpServerMinAggregateOutputType | null
_max: AgentMcpServerMaxAggregateOutputType | null
}
export type AgentMcpServerMinAggregateOutputType = {
id: string | null
agentId: string | null
mcpServerId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type AgentMcpServerMaxAggregateOutputType = {
id: string | null
agentId: string | null
mcpServerId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type AgentMcpServerCountAggregateOutputType = {
id: number
agentId: number
mcpServerId: number
createdAt: number
updatedAt: number
_all: number
}
export type AgentMcpServerMinAggregateInputType = {
id?: true
agentId?: true
mcpServerId?: true
createdAt?: true
updatedAt?: true
}
export type AgentMcpServerMaxAggregateInputType = {
id?: true
agentId?: true
mcpServerId?: true
createdAt?: true
updatedAt?: true
}
export type AgentMcpServerCountAggregateInputType = {
id?: true
agentId?: true
mcpServerId?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type AgentMcpServerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AgentMcpServer to aggregate.
*/
where?: Prisma.AgentMcpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AgentMcpServers to fetch.
*/
orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AgentMcpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AgentMcpServers 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` AgentMcpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AgentMcpServers
**/
_count?: true | AgentMcpServerCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AgentMcpServerMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AgentMcpServerMaxAggregateInputType
}
export type GetAgentMcpServerAggregateType<T extends AgentMcpServerAggregateArgs> = {
[P in keyof T & keyof AggregateAgentMcpServer]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAgentMcpServer[P]>
: Prisma.GetScalarType<T[P], AggregateAgentMcpServer[P]>
}
export type AgentMcpServerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AgentMcpServerWhereInput
orderBy?: Prisma.AgentMcpServerOrderByWithAggregationInput | Prisma.AgentMcpServerOrderByWithAggregationInput[]
by: Prisma.AgentMcpServerScalarFieldEnum[] | Prisma.AgentMcpServerScalarFieldEnum
having?: Prisma.AgentMcpServerScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AgentMcpServerCountAggregateInputType | true
_min?: AgentMcpServerMinAggregateInputType
_max?: AgentMcpServerMaxAggregateInputType
}
export type AgentMcpServerGroupByOutputType = {
id: string
agentId: string
mcpServerId: string
createdAt: Date
updatedAt: Date
_count: AgentMcpServerCountAggregateOutputType | null
_min: AgentMcpServerMinAggregateOutputType | null
_max: AgentMcpServerMaxAggregateOutputType | null
}
export type GetAgentMcpServerGroupByPayload<T extends AgentMcpServerGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AgentMcpServerGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AgentMcpServerGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AgentMcpServerGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AgentMcpServerGroupByOutputType[P]>
}
>
>
export type AgentMcpServerWhereInput = {
AND?: Prisma.AgentMcpServerWhereInput | Prisma.AgentMcpServerWhereInput[]
OR?: Prisma.AgentMcpServerWhereInput[]
NOT?: Prisma.AgentMcpServerWhereInput | Prisma.AgentMcpServerWhereInput[]
id?: Prisma.StringFilter<"AgentMcpServer"> | string
agentId?: Prisma.StringFilter<"AgentMcpServer"> | string
mcpServerId?: Prisma.StringFilter<"AgentMcpServer"> | string
createdAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
mcpServer?: Prisma.XOR<Prisma.McpServerScalarRelationFilter, Prisma.McpServerWhereInput>
}
export type AgentMcpServerOrderByWithRelationInput = {
id?: Prisma.SortOrder
agentId?: Prisma.SortOrder
mcpServerId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
agent?: Prisma.AgentOrderByWithRelationInput
mcpServer?: Prisma.McpServerOrderByWithRelationInput
}
export type AgentMcpServerWhereUniqueInput = Prisma.AtLeast<{
id?: string
agentId_mcpServerId?: Prisma.AgentMcpServerAgentIdMcpServerIdCompoundUniqueInput
AND?: Prisma.AgentMcpServerWhereInput | Prisma.AgentMcpServerWhereInput[]
OR?: Prisma.AgentMcpServerWhereInput[]
NOT?: Prisma.AgentMcpServerWhereInput | Prisma.AgentMcpServerWhereInput[]
agentId?: Prisma.StringFilter<"AgentMcpServer"> | string
mcpServerId?: Prisma.StringFilter<"AgentMcpServer"> | string
createdAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
mcpServer?: Prisma.XOR<Prisma.McpServerScalarRelationFilter, Prisma.McpServerWhereInput>
}, "id" | "agentId_mcpServerId">
export type AgentMcpServerOrderByWithAggregationInput = {
id?: Prisma.SortOrder
agentId?: Prisma.SortOrder
mcpServerId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.AgentMcpServerCountOrderByAggregateInput
_max?: Prisma.AgentMcpServerMaxOrderByAggregateInput
_min?: Prisma.AgentMcpServerMinOrderByAggregateInput
}
export type AgentMcpServerScalarWhereWithAggregatesInput = {
AND?: Prisma.AgentMcpServerScalarWhereWithAggregatesInput | Prisma.AgentMcpServerScalarWhereWithAggregatesInput[]
OR?: Prisma.AgentMcpServerScalarWhereWithAggregatesInput[]
NOT?: Prisma.AgentMcpServerScalarWhereWithAggregatesInput | Prisma.AgentMcpServerScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"AgentMcpServer"> | string
agentId?: Prisma.StringWithAggregatesFilter<"AgentMcpServer"> | string
mcpServerId?: Prisma.StringWithAggregatesFilter<"AgentMcpServer"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentMcpServer"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AgentMcpServer"> | Date | string
}
export type AgentMcpServerCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
agent: Prisma.AgentCreateNestedOneWithoutMcpServersInput
mcpServer: Prisma.McpServerCreateNestedOneWithoutAgentMcpServersInput
}
export type AgentMcpServerUncheckedCreateInput = {
id?: string
agentId: string
mcpServerId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentMcpServerUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agent?: Prisma.AgentUpdateOneRequiredWithoutMcpServersNestedInput
mcpServer?: Prisma.McpServerUpdateOneRequiredWithoutAgentMcpServersNestedInput
}
export type AgentMcpServerUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
agentId?: Prisma.StringFieldUpdateOperationsInput | string
mcpServerId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentMcpServerCreateManyInput = {
id?: string
agentId: string
mcpServerId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentMcpServerUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentMcpServerUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
agentId?: Prisma.StringFieldUpdateOperationsInput | string
mcpServerId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentMcpServerListRelationFilter = {
every?: Prisma.AgentMcpServerWhereInput
some?: Prisma.AgentMcpServerWhereInput
none?: Prisma.AgentMcpServerWhereInput
}
export type AgentMcpServerOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AgentMcpServerAgentIdMcpServerIdCompoundUniqueInput = {
agentId: string
mcpServerId: string
}
export type AgentMcpServerCountOrderByAggregateInput = {
id?: Prisma.SortOrder
agentId?: Prisma.SortOrder
mcpServerId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type AgentMcpServerMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
agentId?: Prisma.SortOrder
mcpServerId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type AgentMcpServerMinOrderByAggregateInput = {
id?: Prisma.SortOrder
agentId?: Prisma.SortOrder
mcpServerId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type AgentMcpServerCreateNestedManyWithoutAgentInput = {
create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpServerCreateWithoutAgentInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput[]
connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput | Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput[]
createMany?: Prisma.AgentMcpServerCreateManyAgentInputEnvelope
connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
}
export type AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput = {
create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpServerCreateWithoutAgentInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput[]
connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput | Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput[]
createMany?: Prisma.AgentMcpServerCreateManyAgentInputEnvelope
connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
}
export type AgentMcpServerUpdateManyWithoutAgentNestedInput = {
create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpServerCreateWithoutAgentInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput[]
connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput | Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput[]
upsert?: Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput[]
createMany?: Prisma.AgentMcpServerCreateManyAgentInputEnvelope
set?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
disconnect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
delete?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
update?: Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput[]
updateMany?: Prisma.AgentMcpServerUpdateManyWithWhereWithoutAgentInput | Prisma.AgentMcpServerUpdateManyWithWhereWithoutAgentInput[]
deleteMany?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[]
}
export type AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput = {
create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpServerCreateWithoutAgentInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput[]
connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput | Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput[]
upsert?: Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput[]
createMany?: Prisma.AgentMcpServerCreateManyAgentInputEnvelope
set?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
disconnect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
delete?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
update?: Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput[]
updateMany?: Prisma.AgentMcpServerUpdateManyWithWhereWithoutAgentInput | Prisma.AgentMcpServerUpdateManyWithWhereWithoutAgentInput[]
deleteMany?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[]
}
export type AgentMcpServerCreateNestedManyWithoutMcpServerInput = {
create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutMcpServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput> | Prisma.AgentMcpServerCreateWithoutMcpServerInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput[]
connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutMcpServerInput | Prisma.AgentMcpServerCreateOrConnectWithoutMcpServerInput[]
createMany?: Prisma.AgentMcpServerCreateManyMcpServerInputEnvelope
connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
}
export type AgentMcpServerUncheckedCreateNestedManyWithoutMcpServerInput = {
create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutMcpServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput> | Prisma.AgentMcpServerCreateWithoutMcpServerInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput[]
connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutMcpServerInput | Prisma.AgentMcpServerCreateOrConnectWithoutMcpServerInput[]
createMany?: Prisma.AgentMcpServerCreateManyMcpServerInputEnvelope
connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
}
export type AgentMcpServerUpdateManyWithoutMcpServerNestedInput = {
create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutMcpServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput> | Prisma.AgentMcpServerCreateWithoutMcpServerInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput[]
connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutMcpServerInput | Prisma.AgentMcpServerCreateOrConnectWithoutMcpServerInput[]
upsert?: Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutMcpServerInput | Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutMcpServerInput[]
createMany?: Prisma.AgentMcpServerCreateManyMcpServerInputEnvelope
set?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
disconnect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
delete?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
update?: Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutMcpServerInput | Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutMcpServerInput[]
updateMany?: Prisma.AgentMcpServerUpdateManyWithWhereWithoutMcpServerInput | Prisma.AgentMcpServerUpdateManyWithWhereWithoutMcpServerInput[]
deleteMany?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[]
}
export type AgentMcpServerUncheckedUpdateManyWithoutMcpServerNestedInput = {
create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutMcpServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput> | Prisma.AgentMcpServerCreateWithoutMcpServerInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput[]
connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutMcpServerInput | Prisma.AgentMcpServerCreateOrConnectWithoutMcpServerInput[]
upsert?: Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutMcpServerInput | Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutMcpServerInput[]
createMany?: Prisma.AgentMcpServerCreateManyMcpServerInputEnvelope
set?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
disconnect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
delete?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[]
update?: Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutMcpServerInput | Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutMcpServerInput[]
updateMany?: Prisma.AgentMcpServerUpdateManyWithWhereWithoutMcpServerInput | Prisma.AgentMcpServerUpdateManyWithWhereWithoutMcpServerInput[]
deleteMany?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[]
}
export type AgentMcpServerCreateWithoutAgentInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
mcpServer: Prisma.McpServerCreateNestedOneWithoutAgentMcpServersInput
}
export type AgentMcpServerUncheckedCreateWithoutAgentInput = {
id?: string
mcpServerId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentMcpServerCreateOrConnectWithoutAgentInput = {
where: Prisma.AgentMcpServerWhereUniqueInput
create: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput>
}
export type AgentMcpServerCreateManyAgentInputEnvelope = {
data: Prisma.AgentMcpServerCreateManyAgentInput | Prisma.AgentMcpServerCreateManyAgentInput[]
skipDuplicates?: boolean
}
export type AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput = {
where: Prisma.AgentMcpServerWhereUniqueInput
update: Prisma.XOR<Prisma.AgentMcpServerUpdateWithoutAgentInput, Prisma.AgentMcpServerUncheckedUpdateWithoutAgentInput>
create: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput>
}
export type AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput = {
where: Prisma.AgentMcpServerWhereUniqueInput
data: Prisma.XOR<Prisma.AgentMcpServerUpdateWithoutAgentInput, Prisma.AgentMcpServerUncheckedUpdateWithoutAgentInput>
}
export type AgentMcpServerUpdateManyWithWhereWithoutAgentInput = {
where: Prisma.AgentMcpServerScalarWhereInput
data: Prisma.XOR<Prisma.AgentMcpServerUpdateManyMutationInput, Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentInput>
}
export type AgentMcpServerScalarWhereInput = {
AND?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[]
OR?: Prisma.AgentMcpServerScalarWhereInput[]
NOT?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[]
id?: Prisma.StringFilter<"AgentMcpServer"> | string
agentId?: Prisma.StringFilter<"AgentMcpServer"> | string
mcpServerId?: Prisma.StringFilter<"AgentMcpServer"> | string
createdAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string
}
export type AgentMcpServerCreateWithoutMcpServerInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
agent: Prisma.AgentCreateNestedOneWithoutMcpServersInput
}
export type AgentMcpServerUncheckedCreateWithoutMcpServerInput = {
id?: string
agentId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentMcpServerCreateOrConnectWithoutMcpServerInput = {
where: Prisma.AgentMcpServerWhereUniqueInput
create: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutMcpServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput>
}
export type AgentMcpServerCreateManyMcpServerInputEnvelope = {
data: Prisma.AgentMcpServerCreateManyMcpServerInput | Prisma.AgentMcpServerCreateManyMcpServerInput[]
skipDuplicates?: boolean
}
export type AgentMcpServerUpsertWithWhereUniqueWithoutMcpServerInput = {
where: Prisma.AgentMcpServerWhereUniqueInput
update: Prisma.XOR<Prisma.AgentMcpServerUpdateWithoutMcpServerInput, Prisma.AgentMcpServerUncheckedUpdateWithoutMcpServerInput>
create: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutMcpServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutMcpServerInput>
}
export type AgentMcpServerUpdateWithWhereUniqueWithoutMcpServerInput = {
where: Prisma.AgentMcpServerWhereUniqueInput
data: Prisma.XOR<Prisma.AgentMcpServerUpdateWithoutMcpServerInput, Prisma.AgentMcpServerUncheckedUpdateWithoutMcpServerInput>
}
export type AgentMcpServerUpdateManyWithWhereWithoutMcpServerInput = {
where: Prisma.AgentMcpServerScalarWhereInput
data: Prisma.XOR<Prisma.AgentMcpServerUpdateManyMutationInput, Prisma.AgentMcpServerUncheckedUpdateManyWithoutMcpServerInput>
}
export type AgentMcpServerCreateManyAgentInput = {
id?: string
mcpServerId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentMcpServerUpdateWithoutAgentInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
mcpServer?: Prisma.McpServerUpdateOneRequiredWithoutAgentMcpServersNestedInput
}
export type AgentMcpServerUncheckedUpdateWithoutAgentInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
mcpServerId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentMcpServerUncheckedUpdateManyWithoutAgentInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
mcpServerId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentMcpServerCreateManyMcpServerInput = {
id?: string
agentId: string
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentMcpServerUpdateWithoutMcpServerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agent?: Prisma.AgentUpdateOneRequiredWithoutMcpServersNestedInput
}
export type AgentMcpServerUncheckedUpdateWithoutMcpServerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
agentId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentMcpServerUncheckedUpdateManyWithoutMcpServerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
agentId?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentMcpServerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
agentId?: boolean
mcpServerId?: boolean
createdAt?: boolean
updatedAt?: boolean
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
mcpServer?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agentMcpServer"]>
export type AgentMcpServerSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
agentId?: boolean
mcpServerId?: boolean
createdAt?: boolean
updatedAt?: boolean
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
mcpServer?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agentMcpServer"]>
export type AgentMcpServerSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
agentId?: boolean
mcpServerId?: boolean
createdAt?: boolean
updatedAt?: boolean
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
mcpServer?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agentMcpServer"]>
export type AgentMcpServerSelectScalar = {
id?: boolean
agentId?: boolean
mcpServerId?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type AgentMcpServerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "mcpServerId" | "createdAt" | "updatedAt", ExtArgs["result"]["agentMcpServer"]>
export type AgentMcpServerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
mcpServer?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}
export type AgentMcpServerIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
mcpServer?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}
export type AgentMcpServerIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
mcpServer?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}
export type $AgentMcpServerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AgentMcpServer"
objects: {
agent: Prisma.$AgentPayload<ExtArgs>
mcpServer: Prisma.$McpServerPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
agentId: string
mcpServerId: string
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["agentMcpServer"]>
composites: {}
}
export type AgentMcpServerGetPayload<S extends boolean | null | undefined | AgentMcpServerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload, S>
export type AgentMcpServerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AgentMcpServerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AgentMcpServerCountAggregateInputType | true
}
export interface AgentMcpServerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AgentMcpServer'], meta: { name: 'AgentMcpServer' } }
/**
* Find zero or one AgentMcpServer that matches the filter.
* @param {AgentMcpServerFindUniqueArgs} args - Arguments to find a AgentMcpServer
* @example
* // Get one AgentMcpServer
* const agentMcpServer = await prisma.agentMcpServer.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AgentMcpServerFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentMcpServerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AgentMcpServer that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AgentMcpServerFindUniqueOrThrowArgs} args - Arguments to find a AgentMcpServer
* @example
* // Get one AgentMcpServer
* const agentMcpServer = await prisma.agentMcpServer.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AgentMcpServerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentMcpServerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AgentMcpServer 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 {AgentMcpServerFindFirstArgs} args - Arguments to find a AgentMcpServer
* @example
* // Get one AgentMcpServer
* const agentMcpServer = await prisma.agentMcpServer.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AgentMcpServerFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AgentMcpServer 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 {AgentMcpServerFindFirstOrThrowArgs} args - Arguments to find a AgentMcpServer
* @example
* // Get one AgentMcpServer
* const agentMcpServer = await prisma.agentMcpServer.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AgentMcpServerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AgentMcpServers 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 {AgentMcpServerFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AgentMcpServers
* const agentMcpServers = await prisma.agentMcpServer.findMany()
*
* // Get first 10 AgentMcpServers
* const agentMcpServers = await prisma.agentMcpServer.findMany({ take: 10 })
*
* // Only select the `id`
* const agentMcpServerWithIdOnly = await prisma.agentMcpServer.findMany({ select: { id: true } })
*
*/
findMany<T extends AgentMcpServerFindManyArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AgentMcpServer.
* @param {AgentMcpServerCreateArgs} args - Arguments to create a AgentMcpServer.
* @example
* // Create one AgentMcpServer
* const AgentMcpServer = await prisma.agentMcpServer.create({
* data: {
* // ... data to create a AgentMcpServer
* }
* })
*
*/
create<T extends AgentMcpServerCreateArgs>(args: Prisma.SelectSubset<T, AgentMcpServerCreateArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AgentMcpServers.
* @param {AgentMcpServerCreateManyArgs} args - Arguments to create many AgentMcpServers.
* @example
* // Create many AgentMcpServers
* const agentMcpServer = await prisma.agentMcpServer.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AgentMcpServerCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AgentMcpServers and returns the data saved in the database.
* @param {AgentMcpServerCreateManyAndReturnArgs} args - Arguments to create many AgentMcpServers.
* @example
* // Create many AgentMcpServers
* const agentMcpServer = await prisma.agentMcpServer.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AgentMcpServers and only return the `id`
* const agentMcpServerWithIdOnly = await prisma.agentMcpServer.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 AgentMcpServerCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AgentMcpServer.
* @param {AgentMcpServerDeleteArgs} args - Arguments to delete one AgentMcpServer.
* @example
* // Delete one AgentMcpServer
* const AgentMcpServer = await prisma.agentMcpServer.delete({
* where: {
* // ... filter to delete one AgentMcpServer
* }
* })
*
*/
delete<T extends AgentMcpServerDeleteArgs>(args: Prisma.SelectSubset<T, AgentMcpServerDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AgentMcpServer.
* @param {AgentMcpServerUpdateArgs} args - Arguments to update one AgentMcpServer.
* @example
* // Update one AgentMcpServer
* const agentMcpServer = await prisma.agentMcpServer.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AgentMcpServerUpdateArgs>(args: Prisma.SelectSubset<T, AgentMcpServerUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AgentMcpServers.
* @param {AgentMcpServerDeleteManyArgs} args - Arguments to filter AgentMcpServers to delete.
* @example
* // Delete a few AgentMcpServers
* const { count } = await prisma.agentMcpServer.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AgentMcpServerDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AgentMcpServers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AgentMcpServerUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AgentMcpServers
* const agentMcpServer = await prisma.agentMcpServer.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AgentMcpServerUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentMcpServerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AgentMcpServers and returns the data updated in the database.
* @param {AgentMcpServerUpdateManyAndReturnArgs} args - Arguments to update many AgentMcpServers.
* @example
* // Update many AgentMcpServers
* const agentMcpServer = await prisma.agentMcpServer.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AgentMcpServers and only return the `id`
* const agentMcpServerWithIdOnly = await prisma.agentMcpServer.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 AgentMcpServerUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentMcpServerUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AgentMcpServer.
* @param {AgentMcpServerUpsertArgs} args - Arguments to update or create a AgentMcpServer.
* @example
* // Update or create a AgentMcpServer
* const agentMcpServer = await prisma.agentMcpServer.upsert({
* create: {
* // ... data to create a AgentMcpServer
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AgentMcpServer we want to update
* }
* })
*/
upsert<T extends AgentMcpServerUpsertArgs>(args: Prisma.SelectSubset<T, AgentMcpServerUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AgentMcpServers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AgentMcpServerCountArgs} args - Arguments to filter AgentMcpServers to count.
* @example
* // Count the number of AgentMcpServers
* const count = await prisma.agentMcpServer.count({
* where: {
* // ... the filter for the AgentMcpServers we want to count
* }
* })
**/
count<T extends AgentMcpServerCountArgs>(
args?: Prisma.Subset<T, AgentMcpServerCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AgentMcpServerCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AgentMcpServer.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AgentMcpServerAggregateArgs} 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 AgentMcpServerAggregateArgs>(args: Prisma.Subset<T, AgentMcpServerAggregateArgs>): Prisma.PrismaPromise<GetAgentMcpServerAggregateType<T>>
/**
* Group by AgentMcpServer.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AgentMcpServerGroupByArgs} 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 AgentMcpServerGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AgentMcpServerGroupByArgs['orderBy'] }
: { orderBy?: AgentMcpServerGroupByArgs['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, AgentMcpServerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentMcpServerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AgentMcpServer model
*/
readonly fields: AgentMcpServerFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AgentMcpServer.
* 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__AgentMcpServerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
mcpServer<T extends Prisma.McpServerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpServerDefaultArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<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 AgentMcpServer model
*/
export interface AgentMcpServerFieldRefs {
readonly id: Prisma.FieldRef<"AgentMcpServer", 'String'>
readonly agentId: Prisma.FieldRef<"AgentMcpServer", 'String'>
readonly mcpServerId: Prisma.FieldRef<"AgentMcpServer", 'String'>
readonly createdAt: Prisma.FieldRef<"AgentMcpServer", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"AgentMcpServer", 'DateTime'>
}
// Custom InputTypes
/**
* AgentMcpServer findUnique
*/
export type AgentMcpServerFindUniqueArgs<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
/**
* Filter, which AgentMcpServer to fetch.
*/
where: Prisma.AgentMcpServerWhereUniqueInput
}
/**
* AgentMcpServer findUniqueOrThrow
*/
export type AgentMcpServerFindUniqueOrThrowArgs<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
/**
* Filter, which AgentMcpServer to fetch.
*/
where: Prisma.AgentMcpServerWhereUniqueInput
}
/**
* AgentMcpServer findFirst
*/
export type AgentMcpServerFindFirstArgs<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
/**
* Filter, which AgentMcpServer to fetch.
*/
where?: Prisma.AgentMcpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AgentMcpServers to fetch.
*/
orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AgentMcpServers.
*/
cursor?: Prisma.AgentMcpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AgentMcpServers 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` AgentMcpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AgentMcpServers.
*/
distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[]
}
/**
* AgentMcpServer findFirstOrThrow
*/
export type AgentMcpServerFindFirstOrThrowArgs<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
/**
* Filter, which AgentMcpServer to fetch.
*/
where?: Prisma.AgentMcpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AgentMcpServers to fetch.
*/
orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AgentMcpServers.
*/
cursor?: Prisma.AgentMcpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AgentMcpServers 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` AgentMcpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AgentMcpServers.
*/
distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[]
}
/**
* AgentMcpServer findMany
*/
export type AgentMcpServerFindManyArgs<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
/**
* Filter, which AgentMcpServers to fetch.
*/
where?: Prisma.AgentMcpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AgentMcpServers to fetch.
*/
orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AgentMcpServers.
*/
cursor?: Prisma.AgentMcpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AgentMcpServers 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` AgentMcpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AgentMcpServers.
*/
distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[]
}
/**
* AgentMcpServer create
*/
export type AgentMcpServerCreateArgs<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
/**
* The data needed to create a AgentMcpServer.
*/
data: Prisma.XOR<Prisma.AgentMcpServerCreateInput, Prisma.AgentMcpServerUncheckedCreateInput>
}
/**
* AgentMcpServer createMany
*/
export type AgentMcpServerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AgentMcpServers.
*/
data: Prisma.AgentMcpServerCreateManyInput | Prisma.AgentMcpServerCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AgentMcpServer createManyAndReturn
*/
export type AgentMcpServerCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentMcpServer
*/
select?: Prisma.AgentMcpServerSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AgentMcpServer
*/
omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null
/**
* The data used to create many AgentMcpServers.
*/
data: Prisma.AgentMcpServerCreateManyInput | Prisma.AgentMcpServerCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentMcpServerIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* AgentMcpServer update
*/
export type AgentMcpServerUpdateArgs<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
/**
* The data needed to update a AgentMcpServer.
*/
data: Prisma.XOR<Prisma.AgentMcpServerUpdateInput, Prisma.AgentMcpServerUncheckedUpdateInput>
/**
* Choose, which AgentMcpServer to update.
*/
where: Prisma.AgentMcpServerWhereUniqueInput
}
/**
* AgentMcpServer updateMany
*/
export type AgentMcpServerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AgentMcpServers.
*/
data: Prisma.XOR<Prisma.AgentMcpServerUpdateManyMutationInput, Prisma.AgentMcpServerUncheckedUpdateManyInput>
/**
* Filter which AgentMcpServers to update
*/
where?: Prisma.AgentMcpServerWhereInput
/**
* Limit how many AgentMcpServers to update.
*/
limit?: number
}
/**
* AgentMcpServer updateManyAndReturn
*/
export type AgentMcpServerUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentMcpServer
*/
select?: Prisma.AgentMcpServerSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AgentMcpServer
*/
omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null
/**
* The data used to update AgentMcpServers.
*/
data: Prisma.XOR<Prisma.AgentMcpServerUpdateManyMutationInput, Prisma.AgentMcpServerUncheckedUpdateManyInput>
/**
* Filter which AgentMcpServers to update
*/
where?: Prisma.AgentMcpServerWhereInput
/**
* Limit how many AgentMcpServers to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentMcpServerIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* AgentMcpServer upsert
*/
export type AgentMcpServerUpsertArgs<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
/**
* The filter to search for the AgentMcpServer to update in case it exists.
*/
where: Prisma.AgentMcpServerWhereUniqueInput
/**
* In case the AgentMcpServer found by the `where` argument doesn't exist, create a new AgentMcpServer with this data.
*/
create: Prisma.XOR<Prisma.AgentMcpServerCreateInput, Prisma.AgentMcpServerUncheckedCreateInput>
/**
* In case the AgentMcpServer was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AgentMcpServerUpdateInput, Prisma.AgentMcpServerUncheckedUpdateInput>
}
/**
* AgentMcpServer delete
*/
export type AgentMcpServerDeleteArgs<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
/**
* Filter which AgentMcpServer to delete.
*/
where: Prisma.AgentMcpServerWhereUniqueInput
}
/**
* AgentMcpServer deleteMany
*/
export type AgentMcpServerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AgentMcpServers to delete
*/
where?: Prisma.AgentMcpServerWhereInput
/**
* Limit how many AgentMcpServers to delete.
*/
limit?: number
}
/**
* AgentMcpServer without action
*/
export type AgentMcpServerDefaultArgs<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
}