
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `AgentMcpConnection` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model AgentMcpConnection
 * 
 */
export type AgentMcpConnectionModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentMcpConnectionPayload>

export type AggregateAgentMcpConnection = {
  _count: AgentMcpConnectionCountAggregateOutputType | null
  _min: AgentMcpConnectionMinAggregateOutputType | null
  _max: AgentMcpConnectionMaxAggregateOutputType | null
}

export type AgentMcpConnectionMinAggregateOutputType = {
  agentMcpConnectionId: string | null
  organizationId: string | null
  agentId: string | null
  mcpConnectionId: string | null
  enabled: boolean | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type AgentMcpConnectionMaxAggregateOutputType = {
  agentMcpConnectionId: string | null
  organizationId: string | null
  agentId: string | null
  mcpConnectionId: string | null
  enabled: boolean | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type AgentMcpConnectionCountAggregateOutputType = {
  agentMcpConnectionId: number
  organizationId: number
  agentId: number
  mcpConnectionId: number
  enabled: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type AgentMcpConnectionMinAggregateInputType = {
  agentMcpConnectionId?: true
  organizationId?: true
  agentId?: true
  mcpConnectionId?: true
  enabled?: true
  createdAt?: true
  updatedAt?: true
}

export type AgentMcpConnectionMaxAggregateInputType = {
  agentMcpConnectionId?: true
  organizationId?: true
  agentId?: true
  mcpConnectionId?: true
  enabled?: true
  createdAt?: true
  updatedAt?: true
}

export type AgentMcpConnectionCountAggregateInputType = {
  agentMcpConnectionId?: true
  organizationId?: true
  agentId?: true
  mcpConnectionId?: true
  enabled?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type AgentMcpConnectionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which AgentMcpConnection to aggregate.
   */
  where?: Prisma.AgentMcpConnectionWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of AgentMcpConnections to fetch.
   */
  orderBy?: Prisma.AgentMcpConnectionOrderByWithRelationInput | Prisma.AgentMcpConnectionOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.AgentMcpConnectionWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` AgentMcpConnections 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` AgentMcpConnections.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned AgentMcpConnections
  **/
  _count?: true | AgentMcpConnectionCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: AgentMcpConnectionMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: AgentMcpConnectionMaxAggregateInputType
}

export type GetAgentMcpConnectionAggregateType<T extends AgentMcpConnectionAggregateArgs> = {
      [P in keyof T & keyof AggregateAgentMcpConnection]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateAgentMcpConnection[P]>
    : Prisma.GetScalarType<T[P], AggregateAgentMcpConnection[P]>
}




export type AgentMcpConnectionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.AgentMcpConnectionWhereInput
  orderBy?: Prisma.AgentMcpConnectionOrderByWithAggregationInput | Prisma.AgentMcpConnectionOrderByWithAggregationInput[]
  by: Prisma.AgentMcpConnectionScalarFieldEnum[] | Prisma.AgentMcpConnectionScalarFieldEnum
  having?: Prisma.AgentMcpConnectionScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: AgentMcpConnectionCountAggregateInputType | true
  _min?: AgentMcpConnectionMinAggregateInputType
  _max?: AgentMcpConnectionMaxAggregateInputType
}

export type AgentMcpConnectionGroupByOutputType = {
  agentMcpConnectionId: string
  organizationId: string
  agentId: string
  mcpConnectionId: string
  enabled: boolean
  createdAt: Date
  updatedAt: Date
  _count: AgentMcpConnectionCountAggregateOutputType | null
  _min: AgentMcpConnectionMinAggregateOutputType | null
  _max: AgentMcpConnectionMaxAggregateOutputType | null
}

export type GetAgentMcpConnectionGroupByPayload<T extends AgentMcpConnectionGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<AgentMcpConnectionGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof AgentMcpConnectionGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], AgentMcpConnectionGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], AgentMcpConnectionGroupByOutputType[P]>
      }
    >
  >



export type AgentMcpConnectionWhereInput = {
  AND?: Prisma.AgentMcpConnectionWhereInput | Prisma.AgentMcpConnectionWhereInput[]
  OR?: Prisma.AgentMcpConnectionWhereInput[]
  NOT?: Prisma.AgentMcpConnectionWhereInput | Prisma.AgentMcpConnectionWhereInput[]
  agentMcpConnectionId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  organizationId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  agentId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  mcpConnectionId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  enabled?: Prisma.BoolFilter<"AgentMcpConnection"> | boolean
  createdAt?: Prisma.DateTimeFilter<"AgentMcpConnection"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"AgentMcpConnection"> | Date | string
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
  mcpConnection?: Prisma.XOR<Prisma.McpConnectionScalarRelationFilter, Prisma.McpConnectionWhereInput>
}

export type AgentMcpConnectionOrderByWithRelationInput = {
  agentMcpConnectionId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  mcpConnectionId?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  organization?: Prisma.OrganizationOrderByWithRelationInput
  agent?: Prisma.AgentOrderByWithRelationInput
  mcpConnection?: Prisma.McpConnectionOrderByWithRelationInput
}

export type AgentMcpConnectionWhereUniqueInput = Prisma.AtLeast<{
  agentMcpConnectionId?: string
  agentId_mcpConnectionId?: Prisma.AgentMcpConnectionAgentIdMcpConnectionIdCompoundUniqueInput
  AND?: Prisma.AgentMcpConnectionWhereInput | Prisma.AgentMcpConnectionWhereInput[]
  OR?: Prisma.AgentMcpConnectionWhereInput[]
  NOT?: Prisma.AgentMcpConnectionWhereInput | Prisma.AgentMcpConnectionWhereInput[]
  organizationId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  agentId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  mcpConnectionId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  enabled?: Prisma.BoolFilter<"AgentMcpConnection"> | boolean
  createdAt?: Prisma.DateTimeFilter<"AgentMcpConnection"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"AgentMcpConnection"> | Date | string
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
  mcpConnection?: Prisma.XOR<Prisma.McpConnectionScalarRelationFilter, Prisma.McpConnectionWhereInput>
}, "agentMcpConnectionId" | "agentId_mcpConnectionId">

export type AgentMcpConnectionOrderByWithAggregationInput = {
  agentMcpConnectionId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  mcpConnectionId?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.AgentMcpConnectionCountOrderByAggregateInput
  _max?: Prisma.AgentMcpConnectionMaxOrderByAggregateInput
  _min?: Prisma.AgentMcpConnectionMinOrderByAggregateInput
}

export type AgentMcpConnectionScalarWhereWithAggregatesInput = {
  AND?: Prisma.AgentMcpConnectionScalarWhereWithAggregatesInput | Prisma.AgentMcpConnectionScalarWhereWithAggregatesInput[]
  OR?: Prisma.AgentMcpConnectionScalarWhereWithAggregatesInput[]
  NOT?: Prisma.AgentMcpConnectionScalarWhereWithAggregatesInput | Prisma.AgentMcpConnectionScalarWhereWithAggregatesInput[]
  agentMcpConnectionId?: Prisma.StringWithAggregatesFilter<"AgentMcpConnection"> | string
  organizationId?: Prisma.StringWithAggregatesFilter<"AgentMcpConnection"> | string
  agentId?: Prisma.StringWithAggregatesFilter<"AgentMcpConnection"> | string
  mcpConnectionId?: Prisma.StringWithAggregatesFilter<"AgentMcpConnection"> | string
  enabled?: Prisma.BoolWithAggregatesFilter<"AgentMcpConnection"> | boolean
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentMcpConnection"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AgentMcpConnection"> | Date | string
}

export type AgentMcpConnectionCreateInput = {
  agentMcpConnectionId?: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  organization: Prisma.OrganizationCreateNestedOneWithoutAgentMcpConnectionsInput
  agent: Prisma.AgentCreateNestedOneWithoutMcpConnectionsInput
  mcpConnection: Prisma.McpConnectionCreateNestedOneWithoutAgentsInput
}

export type AgentMcpConnectionUncheckedCreateInput = {
  agentMcpConnectionId?: string
  organizationId: string
  agentId: string
  mcpConnectionId: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type AgentMcpConnectionUpdateInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutAgentMcpConnectionsNestedInput
  agent?: Prisma.AgentUpdateOneRequiredWithoutMcpConnectionsNestedInput
  mcpConnection?: Prisma.McpConnectionUpdateOneRequiredWithoutAgentsNestedInput
}

export type AgentMcpConnectionUncheckedUpdateInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.StringFieldUpdateOperationsInput | string
  mcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AgentMcpConnectionCreateManyInput = {
  agentMcpConnectionId?: string
  organizationId: string
  agentId: string
  mcpConnectionId: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type AgentMcpConnectionUpdateManyMutationInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AgentMcpConnectionUncheckedUpdateManyInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.StringFieldUpdateOperationsInput | string
  mcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AgentMcpConnectionListRelationFilter = {
  every?: Prisma.AgentMcpConnectionWhereInput
  some?: Prisma.AgentMcpConnectionWhereInput
  none?: Prisma.AgentMcpConnectionWhereInput
}

export type AgentMcpConnectionOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type AgentMcpConnectionAgentIdMcpConnectionIdCompoundUniqueInput = {
  agentId: string
  mcpConnectionId: string
}

export type AgentMcpConnectionCountOrderByAggregateInput = {
  agentMcpConnectionId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  mcpConnectionId?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type AgentMcpConnectionMaxOrderByAggregateInput = {
  agentMcpConnectionId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  mcpConnectionId?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type AgentMcpConnectionMinOrderByAggregateInput = {
  agentMcpConnectionId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  mcpConnectionId?: Prisma.SortOrder
  enabled?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type AgentMcpConnectionCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutOrganizationInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput> | Prisma.AgentMcpConnectionCreateWithoutOrganizationInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutOrganizationInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyOrganizationInputEnvelope
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
}

export type AgentMcpConnectionUncheckedCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutOrganizationInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput> | Prisma.AgentMcpConnectionCreateWithoutOrganizationInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutOrganizationInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyOrganizationInputEnvelope
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
}

export type AgentMcpConnectionUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutOrganizationInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput> | Prisma.AgentMcpConnectionCreateWithoutOrganizationInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutOrganizationInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyOrganizationInputEnvelope
  set?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  disconnect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  delete?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  update?: Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutOrganizationInput | Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.AgentMcpConnectionScalarWhereInput | Prisma.AgentMcpConnectionScalarWhereInput[]
}

export type AgentMcpConnectionUncheckedUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutOrganizationInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput> | Prisma.AgentMcpConnectionCreateWithoutOrganizationInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutOrganizationInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyOrganizationInputEnvelope
  set?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  disconnect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  delete?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  update?: Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutOrganizationInput | Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.AgentMcpConnectionScalarWhereInput | Prisma.AgentMcpConnectionScalarWhereInput[]
}

export type AgentMcpConnectionCreateNestedManyWithoutAgentInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutAgentInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpConnectionCreateWithoutAgentInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutAgentInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutAgentInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyAgentInputEnvelope
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
}

export type AgentMcpConnectionUncheckedCreateNestedManyWithoutAgentInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutAgentInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpConnectionCreateWithoutAgentInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutAgentInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutAgentInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyAgentInputEnvelope
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
}

export type AgentMcpConnectionUpdateManyWithoutAgentNestedInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutAgentInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpConnectionCreateWithoutAgentInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutAgentInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutAgentInput[]
  upsert?: Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutAgentInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyAgentInputEnvelope
  set?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  disconnect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  delete?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  update?: Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutAgentInput[]
  updateMany?: Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutAgentInput | Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutAgentInput[]
  deleteMany?: Prisma.AgentMcpConnectionScalarWhereInput | Prisma.AgentMcpConnectionScalarWhereInput[]
}

export type AgentMcpConnectionUncheckedUpdateManyWithoutAgentNestedInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutAgentInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpConnectionCreateWithoutAgentInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutAgentInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutAgentInput[]
  upsert?: Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutAgentInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyAgentInputEnvelope
  set?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  disconnect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  delete?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  update?: Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutAgentInput[]
  updateMany?: Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutAgentInput | Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutAgentInput[]
  deleteMany?: Prisma.AgentMcpConnectionScalarWhereInput | Prisma.AgentMcpConnectionScalarWhereInput[]
}

export type AgentMcpConnectionCreateNestedManyWithoutMcpConnectionInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput> | Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutMcpConnectionInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutMcpConnectionInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyMcpConnectionInputEnvelope
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
}

export type AgentMcpConnectionUncheckedCreateNestedManyWithoutMcpConnectionInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput> | Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutMcpConnectionInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutMcpConnectionInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyMcpConnectionInputEnvelope
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
}

export type AgentMcpConnectionUpdateManyWithoutMcpConnectionNestedInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput> | Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutMcpConnectionInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutMcpConnectionInput[]
  upsert?: Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutMcpConnectionInput | Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutMcpConnectionInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyMcpConnectionInputEnvelope
  set?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  disconnect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  delete?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  update?: Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutMcpConnectionInput | Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutMcpConnectionInput[]
  updateMany?: Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutMcpConnectionInput | Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutMcpConnectionInput[]
  deleteMany?: Prisma.AgentMcpConnectionScalarWhereInput | Prisma.AgentMcpConnectionScalarWhereInput[]
}

export type AgentMcpConnectionUncheckedUpdateManyWithoutMcpConnectionNestedInput = {
  create?: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput> | Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput[] | Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput[]
  connectOrCreate?: Prisma.AgentMcpConnectionCreateOrConnectWithoutMcpConnectionInput | Prisma.AgentMcpConnectionCreateOrConnectWithoutMcpConnectionInput[]
  upsert?: Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutMcpConnectionInput | Prisma.AgentMcpConnectionUpsertWithWhereUniqueWithoutMcpConnectionInput[]
  createMany?: Prisma.AgentMcpConnectionCreateManyMcpConnectionInputEnvelope
  set?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  disconnect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  delete?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  connect?: Prisma.AgentMcpConnectionWhereUniqueInput | Prisma.AgentMcpConnectionWhereUniqueInput[]
  update?: Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutMcpConnectionInput | Prisma.AgentMcpConnectionUpdateWithWhereUniqueWithoutMcpConnectionInput[]
  updateMany?: Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutMcpConnectionInput | Prisma.AgentMcpConnectionUpdateManyWithWhereWithoutMcpConnectionInput[]
  deleteMany?: Prisma.AgentMcpConnectionScalarWhereInput | Prisma.AgentMcpConnectionScalarWhereInput[]
}

export type AgentMcpConnectionCreateWithoutOrganizationInput = {
  agentMcpConnectionId?: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  agent: Prisma.AgentCreateNestedOneWithoutMcpConnectionsInput
  mcpConnection: Prisma.McpConnectionCreateNestedOneWithoutAgentsInput
}

export type AgentMcpConnectionUncheckedCreateWithoutOrganizationInput = {
  agentMcpConnectionId?: string
  agentId: string
  mcpConnectionId: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type AgentMcpConnectionCreateOrConnectWithoutOrganizationInput = {
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  create: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutOrganizationInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput>
}

export type AgentMcpConnectionCreateManyOrganizationInputEnvelope = {
  data: Prisma.AgentMcpConnectionCreateManyOrganizationInput | Prisma.AgentMcpConnectionCreateManyOrganizationInput[]
  skipDuplicates?: boolean
}

export type AgentMcpConnectionUpsertWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  update: Prisma.XOR<Prisma.AgentMcpConnectionUpdateWithoutOrganizationInput, Prisma.AgentMcpConnectionUncheckedUpdateWithoutOrganizationInput>
  create: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutOrganizationInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutOrganizationInput>
}

export type AgentMcpConnectionUpdateWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  data: Prisma.XOR<Prisma.AgentMcpConnectionUpdateWithoutOrganizationInput, Prisma.AgentMcpConnectionUncheckedUpdateWithoutOrganizationInput>
}

export type AgentMcpConnectionUpdateManyWithWhereWithoutOrganizationInput = {
  where: Prisma.AgentMcpConnectionScalarWhereInput
  data: Prisma.XOR<Prisma.AgentMcpConnectionUpdateManyMutationInput, Prisma.AgentMcpConnectionUncheckedUpdateManyWithoutOrganizationInput>
}

export type AgentMcpConnectionScalarWhereInput = {
  AND?: Prisma.AgentMcpConnectionScalarWhereInput | Prisma.AgentMcpConnectionScalarWhereInput[]
  OR?: Prisma.AgentMcpConnectionScalarWhereInput[]
  NOT?: Prisma.AgentMcpConnectionScalarWhereInput | Prisma.AgentMcpConnectionScalarWhereInput[]
  agentMcpConnectionId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  organizationId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  agentId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  mcpConnectionId?: Prisma.StringFilter<"AgentMcpConnection"> | string
  enabled?: Prisma.BoolFilter<"AgentMcpConnection"> | boolean
  createdAt?: Prisma.DateTimeFilter<"AgentMcpConnection"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"AgentMcpConnection"> | Date | string
}

export type AgentMcpConnectionCreateWithoutAgentInput = {
  agentMcpConnectionId?: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  organization: Prisma.OrganizationCreateNestedOneWithoutAgentMcpConnectionsInput
  mcpConnection: Prisma.McpConnectionCreateNestedOneWithoutAgentsInput
}

export type AgentMcpConnectionUncheckedCreateWithoutAgentInput = {
  agentMcpConnectionId?: string
  organizationId: string
  mcpConnectionId: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type AgentMcpConnectionCreateOrConnectWithoutAgentInput = {
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  create: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutAgentInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput>
}

export type AgentMcpConnectionCreateManyAgentInputEnvelope = {
  data: Prisma.AgentMcpConnectionCreateManyAgentInput | Prisma.AgentMcpConnectionCreateManyAgentInput[]
  skipDuplicates?: boolean
}

export type AgentMcpConnectionUpsertWithWhereUniqueWithoutAgentInput = {
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  update: Prisma.XOR<Prisma.AgentMcpConnectionUpdateWithoutAgentInput, Prisma.AgentMcpConnectionUncheckedUpdateWithoutAgentInput>
  create: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutAgentInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutAgentInput>
}

export type AgentMcpConnectionUpdateWithWhereUniqueWithoutAgentInput = {
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  data: Prisma.XOR<Prisma.AgentMcpConnectionUpdateWithoutAgentInput, Prisma.AgentMcpConnectionUncheckedUpdateWithoutAgentInput>
}

export type AgentMcpConnectionUpdateManyWithWhereWithoutAgentInput = {
  where: Prisma.AgentMcpConnectionScalarWhereInput
  data: Prisma.XOR<Prisma.AgentMcpConnectionUpdateManyMutationInput, Prisma.AgentMcpConnectionUncheckedUpdateManyWithoutAgentInput>
}

export type AgentMcpConnectionCreateWithoutMcpConnectionInput = {
  agentMcpConnectionId?: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  organization: Prisma.OrganizationCreateNestedOneWithoutAgentMcpConnectionsInput
  agent: Prisma.AgentCreateNestedOneWithoutMcpConnectionsInput
}

export type AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput = {
  agentMcpConnectionId?: string
  organizationId: string
  agentId: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type AgentMcpConnectionCreateOrConnectWithoutMcpConnectionInput = {
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  create: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput>
}

export type AgentMcpConnectionCreateManyMcpConnectionInputEnvelope = {
  data: Prisma.AgentMcpConnectionCreateManyMcpConnectionInput | Prisma.AgentMcpConnectionCreateManyMcpConnectionInput[]
  skipDuplicates?: boolean
}

export type AgentMcpConnectionUpsertWithWhereUniqueWithoutMcpConnectionInput = {
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  update: Prisma.XOR<Prisma.AgentMcpConnectionUpdateWithoutMcpConnectionInput, Prisma.AgentMcpConnectionUncheckedUpdateWithoutMcpConnectionInput>
  create: Prisma.XOR<Prisma.AgentMcpConnectionCreateWithoutMcpConnectionInput, Prisma.AgentMcpConnectionUncheckedCreateWithoutMcpConnectionInput>
}

export type AgentMcpConnectionUpdateWithWhereUniqueWithoutMcpConnectionInput = {
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  data: Prisma.XOR<Prisma.AgentMcpConnectionUpdateWithoutMcpConnectionInput, Prisma.AgentMcpConnectionUncheckedUpdateWithoutMcpConnectionInput>
}

export type AgentMcpConnectionUpdateManyWithWhereWithoutMcpConnectionInput = {
  where: Prisma.AgentMcpConnectionScalarWhereInput
  data: Prisma.XOR<Prisma.AgentMcpConnectionUpdateManyMutationInput, Prisma.AgentMcpConnectionUncheckedUpdateManyWithoutMcpConnectionInput>
}

export type AgentMcpConnectionCreateManyOrganizationInput = {
  agentMcpConnectionId?: string
  agentId: string
  mcpConnectionId: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type AgentMcpConnectionUpdateWithoutOrganizationInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  agent?: Prisma.AgentUpdateOneRequiredWithoutMcpConnectionsNestedInput
  mcpConnection?: Prisma.McpConnectionUpdateOneRequiredWithoutAgentsNestedInput
}

export type AgentMcpConnectionUncheckedUpdateWithoutOrganizationInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.StringFieldUpdateOperationsInput | string
  mcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AgentMcpConnectionUncheckedUpdateManyWithoutOrganizationInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.StringFieldUpdateOperationsInput | string
  mcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AgentMcpConnectionCreateManyAgentInput = {
  agentMcpConnectionId?: string
  organizationId: string
  mcpConnectionId: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type AgentMcpConnectionUpdateWithoutAgentInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutAgentMcpConnectionsNestedInput
  mcpConnection?: Prisma.McpConnectionUpdateOneRequiredWithoutAgentsNestedInput
}

export type AgentMcpConnectionUncheckedUpdateWithoutAgentInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  mcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AgentMcpConnectionUncheckedUpdateManyWithoutAgentInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  mcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AgentMcpConnectionCreateManyMcpConnectionInput = {
  agentMcpConnectionId?: string
  organizationId: string
  agentId: string
  enabled?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type AgentMcpConnectionUpdateWithoutMcpConnectionInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutAgentMcpConnectionsNestedInput
  agent?: Prisma.AgentUpdateOneRequiredWithoutMcpConnectionsNestedInput
}

export type AgentMcpConnectionUncheckedUpdateWithoutMcpConnectionInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AgentMcpConnectionUncheckedUpdateManyWithoutMcpConnectionInput = {
  agentMcpConnectionId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  agentId?: Prisma.StringFieldUpdateOperationsInput | string
  enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type AgentMcpConnectionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  agentMcpConnectionId?: boolean
  organizationId?: boolean
  agentId?: boolean
  mcpConnectionId?: boolean
  enabled?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
  mcpConnection?: boolean | Prisma.McpConnectionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agentMcpConnection"]>

export type AgentMcpConnectionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  agentMcpConnectionId?: boolean
  organizationId?: boolean
  agentId?: boolean
  mcpConnectionId?: boolean
  enabled?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
  mcpConnection?: boolean | Prisma.McpConnectionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agentMcpConnection"]>

export type AgentMcpConnectionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  agentMcpConnectionId?: boolean
  organizationId?: boolean
  agentId?: boolean
  mcpConnectionId?: boolean
  enabled?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
  mcpConnection?: boolean | Prisma.McpConnectionDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agentMcpConnection"]>

export type AgentMcpConnectionSelectScalar = {
  agentMcpConnectionId?: boolean
  organizationId?: boolean
  agentId?: boolean
  mcpConnectionId?: boolean
  enabled?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type AgentMcpConnectionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"agentMcpConnectionId" | "organizationId" | "agentId" | "mcpConnectionId" | "enabled" | "createdAt" | "updatedAt", ExtArgs["result"]["agentMcpConnection"]>
export type AgentMcpConnectionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
  mcpConnection?: boolean | Prisma.McpConnectionDefaultArgs<ExtArgs>
}
export type AgentMcpConnectionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
  mcpConnection?: boolean | Prisma.McpConnectionDefaultArgs<ExtArgs>
}
export type AgentMcpConnectionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
  mcpConnection?: boolean | Prisma.McpConnectionDefaultArgs<ExtArgs>
}

export type $AgentMcpConnectionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "AgentMcpConnection"
  objects: {
    organization: Prisma.$OrganizationPayload<ExtArgs>
    agent: Prisma.$AgentPayload<ExtArgs>
    mcpConnection: Prisma.$McpConnectionPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    agentMcpConnectionId: string
    organizationId: string
    agentId: string
    mcpConnectionId: string
    enabled: boolean
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["agentMcpConnection"]>
  composites: {}
}

export type AgentMcpConnectionGetPayload<S extends boolean | null | undefined | AgentMcpConnectionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload, S>

export type AgentMcpConnectionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<AgentMcpConnectionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: AgentMcpConnectionCountAggregateInputType | true
  }

export interface AgentMcpConnectionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AgentMcpConnection'], meta: { name: 'AgentMcpConnection' } }
  /**
   * Find zero or one AgentMcpConnection that matches the filter.
   * @param {AgentMcpConnectionFindUniqueArgs} args - Arguments to find a AgentMcpConnection
   * @example
   * // Get one AgentMcpConnection
   * const agentMcpConnection = await prisma.agentMcpConnection.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends AgentMcpConnectionFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentMcpConnectionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentMcpConnectionClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one AgentMcpConnection that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {AgentMcpConnectionFindUniqueOrThrowArgs} args - Arguments to find a AgentMcpConnection
   * @example
   * // Get one AgentMcpConnection
   * const agentMcpConnection = await prisma.agentMcpConnection.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends AgentMcpConnectionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentMcpConnectionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentMcpConnectionClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first AgentMcpConnection 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 {AgentMcpConnectionFindFirstArgs} args - Arguments to find a AgentMcpConnection
   * @example
   * // Get one AgentMcpConnection
   * const agentMcpConnection = await prisma.agentMcpConnection.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends AgentMcpConnectionFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentMcpConnectionFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentMcpConnectionClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first AgentMcpConnection 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 {AgentMcpConnectionFindFirstOrThrowArgs} args - Arguments to find a AgentMcpConnection
   * @example
   * // Get one AgentMcpConnection
   * const agentMcpConnection = await prisma.agentMcpConnection.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends AgentMcpConnectionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentMcpConnectionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentMcpConnectionClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more AgentMcpConnections 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 {AgentMcpConnectionFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all AgentMcpConnections
   * const agentMcpConnections = await prisma.agentMcpConnection.findMany()
   * 
   * // Get first 10 AgentMcpConnections
   * const agentMcpConnections = await prisma.agentMcpConnection.findMany({ take: 10 })
   * 
   * // Only select the `agentMcpConnectionId`
   * const agentMcpConnectionWithAgentMcpConnectionIdOnly = await prisma.agentMcpConnection.findMany({ select: { agentMcpConnectionId: true } })
   * 
   */
  findMany<T extends AgentMcpConnectionFindManyArgs>(args?: Prisma.SelectSubset<T, AgentMcpConnectionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a AgentMcpConnection.
   * @param {AgentMcpConnectionCreateArgs} args - Arguments to create a AgentMcpConnection.
   * @example
   * // Create one AgentMcpConnection
   * const AgentMcpConnection = await prisma.agentMcpConnection.create({
   *   data: {
   *     // ... data to create a AgentMcpConnection
   *   }
   * })
   * 
   */
  create<T extends AgentMcpConnectionCreateArgs>(args: Prisma.SelectSubset<T, AgentMcpConnectionCreateArgs<ExtArgs>>): Prisma.Prisma__AgentMcpConnectionClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many AgentMcpConnections.
   * @param {AgentMcpConnectionCreateManyArgs} args - Arguments to create many AgentMcpConnections.
   * @example
   * // Create many AgentMcpConnections
   * const agentMcpConnection = await prisma.agentMcpConnection.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends AgentMcpConnectionCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentMcpConnectionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many AgentMcpConnections and returns the data saved in the database.
   * @param {AgentMcpConnectionCreateManyAndReturnArgs} args - Arguments to create many AgentMcpConnections.
   * @example
   * // Create many AgentMcpConnections
   * const agentMcpConnection = await prisma.agentMcpConnection.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many AgentMcpConnections and only return the `agentMcpConnectionId`
   * const agentMcpConnectionWithAgentMcpConnectionIdOnly = await prisma.agentMcpConnection.createManyAndReturn({
   *   select: { agentMcpConnectionId: 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 AgentMcpConnectionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentMcpConnectionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a AgentMcpConnection.
   * @param {AgentMcpConnectionDeleteArgs} args - Arguments to delete one AgentMcpConnection.
   * @example
   * // Delete one AgentMcpConnection
   * const AgentMcpConnection = await prisma.agentMcpConnection.delete({
   *   where: {
   *     // ... filter to delete one AgentMcpConnection
   *   }
   * })
   * 
   */
  delete<T extends AgentMcpConnectionDeleteArgs>(args: Prisma.SelectSubset<T, AgentMcpConnectionDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentMcpConnectionClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one AgentMcpConnection.
   * @param {AgentMcpConnectionUpdateArgs} args - Arguments to update one AgentMcpConnection.
   * @example
   * // Update one AgentMcpConnection
   * const agentMcpConnection = await prisma.agentMcpConnection.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends AgentMcpConnectionUpdateArgs>(args: Prisma.SelectSubset<T, AgentMcpConnectionUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentMcpConnectionClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more AgentMcpConnections.
   * @param {AgentMcpConnectionDeleteManyArgs} args - Arguments to filter AgentMcpConnections to delete.
   * @example
   * // Delete a few AgentMcpConnections
   * const { count } = await prisma.agentMcpConnection.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends AgentMcpConnectionDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentMcpConnectionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more AgentMcpConnections.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {AgentMcpConnectionUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many AgentMcpConnections
   * const agentMcpConnection = await prisma.agentMcpConnection.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends AgentMcpConnectionUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentMcpConnectionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more AgentMcpConnections and returns the data updated in the database.
   * @param {AgentMcpConnectionUpdateManyAndReturnArgs} args - Arguments to update many AgentMcpConnections.
   * @example
   * // Update many AgentMcpConnections
   * const agentMcpConnection = await prisma.agentMcpConnection.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more AgentMcpConnections and only return the `agentMcpConnectionId`
   * const agentMcpConnectionWithAgentMcpConnectionIdOnly = await prisma.agentMcpConnection.updateManyAndReturn({
   *   select: { agentMcpConnectionId: 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 AgentMcpConnectionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentMcpConnectionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one AgentMcpConnection.
   * @param {AgentMcpConnectionUpsertArgs} args - Arguments to update or create a AgentMcpConnection.
   * @example
   * // Update or create a AgentMcpConnection
   * const agentMcpConnection = await prisma.agentMcpConnection.upsert({
   *   create: {
   *     // ... data to create a AgentMcpConnection
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the AgentMcpConnection we want to update
   *   }
   * })
   */
  upsert<T extends AgentMcpConnectionUpsertArgs>(args: Prisma.SelectSubset<T, AgentMcpConnectionUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentMcpConnectionClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpConnectionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of AgentMcpConnections.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {AgentMcpConnectionCountArgs} args - Arguments to filter AgentMcpConnections to count.
   * @example
   * // Count the number of AgentMcpConnections
   * const count = await prisma.agentMcpConnection.count({
   *   where: {
   *     // ... the filter for the AgentMcpConnections we want to count
   *   }
   * })
  **/
  count<T extends AgentMcpConnectionCountArgs>(
    args?: Prisma.Subset<T, AgentMcpConnectionCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], AgentMcpConnectionCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a AgentMcpConnection.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {AgentMcpConnectionAggregateArgs} 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 AgentMcpConnectionAggregateArgs>(args: Prisma.Subset<T, AgentMcpConnectionAggregateArgs>): Prisma.PrismaPromise<GetAgentMcpConnectionAggregateType<T>>

  /**
   * Group by AgentMcpConnection.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {AgentMcpConnectionGroupByArgs} 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 AgentMcpConnectionGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: AgentMcpConnectionGroupByArgs['orderBy'] }
      : { orderBy?: AgentMcpConnectionGroupByArgs['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, AgentMcpConnectionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentMcpConnectionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the AgentMcpConnection model
 */
readonly fields: AgentMcpConnectionFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for AgentMcpConnection.
 * 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__AgentMcpConnectionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  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>
  mcpConnection<T extends Prisma.McpConnectionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpConnectionDefaultArgs<ExtArgs>>): Prisma.Prisma__McpConnectionClient<runtime.Types.Result.GetResult<Prisma.$McpConnectionPayload<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 AgentMcpConnection model
 */
export interface AgentMcpConnectionFieldRefs {
  readonly agentMcpConnectionId: Prisma.FieldRef<"AgentMcpConnection", 'String'>
  readonly organizationId: Prisma.FieldRef<"AgentMcpConnection", 'String'>
  readonly agentId: Prisma.FieldRef<"AgentMcpConnection", 'String'>
  readonly mcpConnectionId: Prisma.FieldRef<"AgentMcpConnection", 'String'>
  readonly enabled: Prisma.FieldRef<"AgentMcpConnection", 'Boolean'>
  readonly createdAt: Prisma.FieldRef<"AgentMcpConnection", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"AgentMcpConnection", 'DateTime'>
}
    

// Custom InputTypes
/**
 * AgentMcpConnection findUnique
 */
export type AgentMcpConnectionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
  /**
   * Filter, which AgentMcpConnection to fetch.
   */
  where: Prisma.AgentMcpConnectionWhereUniqueInput
}

/**
 * AgentMcpConnection findUniqueOrThrow
 */
export type AgentMcpConnectionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
  /**
   * Filter, which AgentMcpConnection to fetch.
   */
  where: Prisma.AgentMcpConnectionWhereUniqueInput
}

/**
 * AgentMcpConnection findFirst
 */
export type AgentMcpConnectionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
  /**
   * Filter, which AgentMcpConnection to fetch.
   */
  where?: Prisma.AgentMcpConnectionWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of AgentMcpConnections to fetch.
   */
  orderBy?: Prisma.AgentMcpConnectionOrderByWithRelationInput | Prisma.AgentMcpConnectionOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for AgentMcpConnections.
   */
  cursor?: Prisma.AgentMcpConnectionWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` AgentMcpConnections 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` AgentMcpConnections.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of AgentMcpConnections.
   */
  distinct?: Prisma.AgentMcpConnectionScalarFieldEnum | Prisma.AgentMcpConnectionScalarFieldEnum[]
}

/**
 * AgentMcpConnection findFirstOrThrow
 */
export type AgentMcpConnectionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
  /**
   * Filter, which AgentMcpConnection to fetch.
   */
  where?: Prisma.AgentMcpConnectionWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of AgentMcpConnections to fetch.
   */
  orderBy?: Prisma.AgentMcpConnectionOrderByWithRelationInput | Prisma.AgentMcpConnectionOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for AgentMcpConnections.
   */
  cursor?: Prisma.AgentMcpConnectionWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` AgentMcpConnections 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` AgentMcpConnections.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of AgentMcpConnections.
   */
  distinct?: Prisma.AgentMcpConnectionScalarFieldEnum | Prisma.AgentMcpConnectionScalarFieldEnum[]
}

/**
 * AgentMcpConnection findMany
 */
export type AgentMcpConnectionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
  /**
   * Filter, which AgentMcpConnections to fetch.
   */
  where?: Prisma.AgentMcpConnectionWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of AgentMcpConnections to fetch.
   */
  orderBy?: Prisma.AgentMcpConnectionOrderByWithRelationInput | Prisma.AgentMcpConnectionOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing AgentMcpConnections.
   */
  cursor?: Prisma.AgentMcpConnectionWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` AgentMcpConnections 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` AgentMcpConnections.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of AgentMcpConnections.
   */
  distinct?: Prisma.AgentMcpConnectionScalarFieldEnum | Prisma.AgentMcpConnectionScalarFieldEnum[]
}

/**
 * AgentMcpConnection create
 */
export type AgentMcpConnectionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
  /**
   * The data needed to create a AgentMcpConnection.
   */
  data: Prisma.XOR<Prisma.AgentMcpConnectionCreateInput, Prisma.AgentMcpConnectionUncheckedCreateInput>
}

/**
 * AgentMcpConnection createMany
 */
export type AgentMcpConnectionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many AgentMcpConnections.
   */
  data: Prisma.AgentMcpConnectionCreateManyInput | Prisma.AgentMcpConnectionCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * AgentMcpConnection createManyAndReturn
 */
export type AgentMcpConnectionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * The data used to create many AgentMcpConnections.
   */
  data: Prisma.AgentMcpConnectionCreateManyInput | Prisma.AgentMcpConnectionCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * AgentMcpConnection update
 */
export type AgentMcpConnectionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
  /**
   * The data needed to update a AgentMcpConnection.
   */
  data: Prisma.XOR<Prisma.AgentMcpConnectionUpdateInput, Prisma.AgentMcpConnectionUncheckedUpdateInput>
  /**
   * Choose, which AgentMcpConnection to update.
   */
  where: Prisma.AgentMcpConnectionWhereUniqueInput
}

/**
 * AgentMcpConnection updateMany
 */
export type AgentMcpConnectionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update AgentMcpConnections.
   */
  data: Prisma.XOR<Prisma.AgentMcpConnectionUpdateManyMutationInput, Prisma.AgentMcpConnectionUncheckedUpdateManyInput>
  /**
   * Filter which AgentMcpConnections to update
   */
  where?: Prisma.AgentMcpConnectionWhereInput
  /**
   * Limit how many AgentMcpConnections to update.
   */
  limit?: number
}

/**
 * AgentMcpConnection updateManyAndReturn
 */
export type AgentMcpConnectionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * The data used to update AgentMcpConnections.
   */
  data: Prisma.XOR<Prisma.AgentMcpConnectionUpdateManyMutationInput, Prisma.AgentMcpConnectionUncheckedUpdateManyInput>
  /**
   * Filter which AgentMcpConnections to update
   */
  where?: Prisma.AgentMcpConnectionWhereInput
  /**
   * Limit how many AgentMcpConnections to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * AgentMcpConnection upsert
 */
export type AgentMcpConnectionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
  /**
   * The filter to search for the AgentMcpConnection to update in case it exists.
   */
  where: Prisma.AgentMcpConnectionWhereUniqueInput
  /**
   * In case the AgentMcpConnection found by the `where` argument doesn't exist, create a new AgentMcpConnection with this data.
   */
  create: Prisma.XOR<Prisma.AgentMcpConnectionCreateInput, Prisma.AgentMcpConnectionUncheckedCreateInput>
  /**
   * In case the AgentMcpConnection was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.AgentMcpConnectionUpdateInput, Prisma.AgentMcpConnectionUncheckedUpdateInput>
}

/**
 * AgentMcpConnection delete
 */
export type AgentMcpConnectionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
  /**
   * Filter which AgentMcpConnection to delete.
   */
  where: Prisma.AgentMcpConnectionWhereUniqueInput
}

/**
 * AgentMcpConnection deleteMany
 */
export type AgentMcpConnectionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which AgentMcpConnections to delete
   */
  where?: Prisma.AgentMcpConnectionWhereInput
  /**
   * Limit how many AgentMcpConnections to delete.
   */
  limit?: number
}

/**
 * AgentMcpConnection without action
 */
export type AgentMcpConnectionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AgentMcpConnection
   */
  select?: Prisma.AgentMcpConnectionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AgentMcpConnection
   */
  omit?: Prisma.AgentMcpConnectionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentMcpConnectionInclude<ExtArgs> | null
}
