Files
shumai/packages/db/src/generated/prisma/models/Agent.ts
T
Yiling-J cb1c1c502b feat(agent): add permission controls for chat agents (#313)
* feat(agent): add permission controls for chat agents

* refactor(agent): extract shared agent permission helpers

Consolidate the duplicated role-hierarchy logic into
packages/core/src/agent/permissions.ts:

- getRoleLevel(): numeric level for a team role (fail closed at 0)
- getAgentRequiredLevel(): required level for an agent permission
  (defaults to reviewer/1)
- getAllowedAgentRoles(): inclusive role set for filtering

The typed Record over TeamMemberRole makes the mapping exhaustive,
so adding a new role fails compilation until all sites are updated.
Used by ChatService.startOrContinueChat, AssetService comment
mentions, getAgentChatContextActivity, AgentService.listAgents, and
TeamService.getTeamMembers, replacing four inline copies of the
hierarchy and the allowed-roles conditionals.

Also fix the API permission-denial test to mock HTTPException(403)
and assert a 403 response instead of a generic Error/500, matching
real authzService behavior.

* test(agent): fix flaky comment DAG tests by spacing ULID id generation

ULID ids have 1ms timestamp granularity; back-to-back comment creates
frequently land in the same millisecond, in which case Prisma ULIDs sort
by their random suffix instead of creation order. The DAG spine in
initializeAgentSessionActivity chains top-level comments by id, so a
shuffled order produces paths that omit preceding comments, making the
path-to-root assertions flaky (~80% of full-file runs locally).

Add a 2ms sleep between consecutive comment creates in the affected
tests, guaranteeing strictly increasing ULID timestamps. A 2ms delay is
sufficient because the next create always fires at least 2ms after the
previous ULID was generated. Production is unaffected: real comments
arrive seconds apart via separate requests.
2026-08-16 11:16:14 +08:00

2513 lines
101 KiB
TypeScript
Generated

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `Agent` 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 Agent
*
*/
export type AgentModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentPayload>
export type AggregateAgent = {
_count: AgentCountAggregateOutputType | null
_min: AgentMinAggregateOutputType | null
_max: AgentMaxAggregateOutputType | null
}
export type AgentMinAggregateOutputType = {
id: string | null
type: $Enums.AgentType | null
enabled: boolean | null
permission: $Enums.TeamMemberRole | null
soul: string | null
providerId: string | null
modelId: string | null
teamId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type AgentMaxAggregateOutputType = {
id: string | null
type: $Enums.AgentType | null
enabled: boolean | null
permission: $Enums.TeamMemberRole | null
soul: string | null
providerId: string | null
modelId: string | null
teamId: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type AgentCountAggregateOutputType = {
id: number
type: number
enabled: number
permission: number
soul: number
providerId: number
modelId: number
teamId: number
config:PrismaJson.AgentConfig
createdAt: number
updatedAt: number
_all: number
}
export type AgentMinAggregateInputType = {
id?: true
type?: true
enabled?: true
permission?: true
soul?: true
providerId?: true
modelId?: true
teamId?: true
createdAt?: true
updatedAt?: true
}
export type AgentMaxAggregateInputType = {
id?: true
type?: true
enabled?: true
permission?: true
soul?: true
providerId?: true
modelId?: true
teamId?: true
createdAt?: true
updatedAt?: true
}
export type AgentCountAggregateInputType = {
id?: true
type?: true
enabled?: true
permission?: true
soul?: true
providerId?: true
modelId?: true
teamId?: true
config?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type AgentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Agent to aggregate.
*/
where?: Prisma.AgentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Agents to fetch.
*/
orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AgentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Agents 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` Agents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Agents
**/
_count?: true | AgentCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AgentMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AgentMaxAggregateInputType
}
export type GetAgentAggregateType<T extends AgentAggregateArgs> = {
[P in keyof T & keyof AggregateAgent]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAgent[P]>
: Prisma.GetScalarType<T[P], AggregateAgent[P]>
}
export type AgentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AgentWhereInput
orderBy?: Prisma.AgentOrderByWithAggregationInput | Prisma.AgentOrderByWithAggregationInput[]
by: Prisma.AgentScalarFieldEnum[] | Prisma.AgentScalarFieldEnum
having?: Prisma.AgentScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AgentCountAggregateInputType | true
_min?: AgentMinAggregateInputType
_max?: AgentMaxAggregateInputType
}
export type AgentGroupByOutputType = {
id: string
type: $Enums.AgentType
enabled: boolean
permission: $Enums.TeamMemberRole
soul: string | null
providerId: string | null
modelId: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt: Date
updatedAt: Date
_count: AgentCountAggregateOutputType | null
_min: AgentMinAggregateOutputType | null
_max: AgentMaxAggregateOutputType | null
}
export type GetAgentGroupByPayload<T extends AgentGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AgentGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AgentGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AgentGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AgentGroupByOutputType[P]>
}
>
>
export type AgentWhereInput = {
AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[]
OR?: Prisma.AgentWhereInput[]
NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[]
id?: Prisma.StringFilter<"Agent"> | string
type?: Prisma.EnumAgentTypeFilter<"Agent"> | $Enums.AgentType
enabled?: Prisma.BoolFilter<"Agent"> | boolean
permission?: Prisma.EnumTeamMemberRoleFilter<"Agent"> | $Enums.TeamMemberRole
soul?: Prisma.StringNullableFilter<"Agent"> | string | null
providerId?: Prisma.StringNullableFilter<"Agent"> | string | null
modelId?: Prisma.StringNullableFilter<"Agent"> | string | null
teamId?: Prisma.StringFilter<"Agent"> | string
config?: Prisma.JsonFilter<"Agent">
createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
modelRef?: Prisma.XOR<Prisma.ModelNullableScalarRelationFilter, Prisma.ModelWhereInput> | null
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
agentSessions?: Prisma.AgentSessionListRelationFilter
skills?: Prisma.AgentSkillListRelationFilter
mcpServers?: Prisma.AgentMcpServerListRelationFilter
}
export type AgentOrderByWithRelationInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
enabled?: Prisma.SortOrder
permission?: Prisma.SortOrder
soul?: Prisma.SortOrderInput | Prisma.SortOrder
providerId?: Prisma.SortOrderInput | Prisma.SortOrder
modelId?: Prisma.SortOrderInput | Prisma.SortOrder
teamId?: Prisma.SortOrder
config?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
user?: Prisma.UserOrderByWithRelationInput
provider?: Prisma.ProviderOrderByWithRelationInput
modelRef?: Prisma.ModelOrderByWithRelationInput
team?: Prisma.TeamOrderByWithRelationInput
agentSessions?: Prisma.AgentSessionOrderByRelationAggregateInput
skills?: Prisma.AgentSkillOrderByRelationAggregateInput
mcpServers?: Prisma.AgentMcpServerOrderByRelationAggregateInput
}
export type AgentWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[]
OR?: Prisma.AgentWhereInput[]
NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[]
type?: Prisma.EnumAgentTypeFilter<"Agent"> | $Enums.AgentType
enabled?: Prisma.BoolFilter<"Agent"> | boolean
permission?: Prisma.EnumTeamMemberRoleFilter<"Agent"> | $Enums.TeamMemberRole
soul?: Prisma.StringNullableFilter<"Agent"> | string | null
providerId?: Prisma.StringNullableFilter<"Agent"> | string | null
modelId?: Prisma.StringNullableFilter<"Agent"> | string | null
teamId?: Prisma.StringFilter<"Agent"> | string
config?: Prisma.JsonFilter<"Agent">
createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
modelRef?: Prisma.XOR<Prisma.ModelNullableScalarRelationFilter, Prisma.ModelWhereInput> | null
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
agentSessions?: Prisma.AgentSessionListRelationFilter
skills?: Prisma.AgentSkillListRelationFilter
mcpServers?: Prisma.AgentMcpServerListRelationFilter
}, "id">
export type AgentOrderByWithAggregationInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
enabled?: Prisma.SortOrder
permission?: Prisma.SortOrder
soul?: Prisma.SortOrderInput | Prisma.SortOrder
providerId?: Prisma.SortOrderInput | Prisma.SortOrder
modelId?: Prisma.SortOrderInput | Prisma.SortOrder
teamId?: Prisma.SortOrder
config?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.AgentCountOrderByAggregateInput
_max?: Prisma.AgentMaxOrderByAggregateInput
_min?: Prisma.AgentMinOrderByAggregateInput
}
export type AgentScalarWhereWithAggregatesInput = {
AND?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[]
OR?: Prisma.AgentScalarWhereWithAggregatesInput[]
NOT?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"Agent"> | string
type?: Prisma.EnumAgentTypeWithAggregatesFilter<"Agent"> | $Enums.AgentType
enabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean
permission?: Prisma.EnumTeamMemberRoleWithAggregatesFilter<"Agent"> | $Enums.TeamMemberRole
soul?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
providerId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
modelId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null
teamId?: Prisma.StringWithAggregatesFilter<"Agent"> | string
config?: Prisma.JsonWithAggregatesFilter<"Agent">
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string
}
export type AgentCreateInput = {
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutAgentInput
provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput
modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
}
export type AgentUncheckedCreateInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
modelId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
}
export type AgentUpdateInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput
provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput
modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
}
export type AgentCreateManyInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
modelId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentUpdateManyMutationInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentNullableScalarRelationFilter = {
is?: Prisma.AgentWhereInput | null
isNot?: Prisma.AgentWhereInput | null
}
export type AgentListRelationFilter = {
every?: Prisma.AgentWhereInput
some?: Prisma.AgentWhereInput
none?: Prisma.AgentWhereInput
}
export type AgentOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AgentCountOrderByAggregateInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
enabled?: Prisma.SortOrder
permission?: Prisma.SortOrder
soul?: Prisma.SortOrder
providerId?: Prisma.SortOrder
modelId?: Prisma.SortOrder
teamId?: Prisma.SortOrder
config?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type AgentMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
enabled?: Prisma.SortOrder
permission?: Prisma.SortOrder
soul?: Prisma.SortOrder
providerId?: Prisma.SortOrder
modelId?: Prisma.SortOrder
teamId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type AgentMinOrderByAggregateInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
enabled?: Prisma.SortOrder
permission?: Prisma.SortOrder
soul?: Prisma.SortOrder
providerId?: Prisma.SortOrder
modelId?: Prisma.SortOrder
teamId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type AgentScalarRelationFilter = {
is?: Prisma.AgentWhereInput
isNot?: Prisma.AgentWhereInput
}
export type AgentCreateNestedOneWithoutUserInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutUserInput, Prisma.AgentUncheckedCreateWithoutUserInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput
connect?: Prisma.AgentWhereUniqueInput
}
export type AgentUncheckedCreateNestedOneWithoutUserInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutUserInput, Prisma.AgentUncheckedCreateWithoutUserInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput
connect?: Prisma.AgentWhereUniqueInput
}
export type AgentUpdateOneWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutUserInput, Prisma.AgentUncheckedCreateWithoutUserInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput
upsert?: Prisma.AgentUpsertWithoutUserInput
disconnect?: Prisma.AgentWhereInput | boolean
delete?: Prisma.AgentWhereInput | boolean
connect?: Prisma.AgentWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutUserInput, Prisma.AgentUpdateWithoutUserInput>, Prisma.AgentUncheckedUpdateWithoutUserInput>
}
export type AgentUncheckedUpdateOneWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutUserInput, Prisma.AgentUncheckedCreateWithoutUserInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutUserInput
upsert?: Prisma.AgentUpsertWithoutUserInput
disconnect?: Prisma.AgentWhereInput | boolean
delete?: Prisma.AgentWhereInput | boolean
connect?: Prisma.AgentWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutUserInput, Prisma.AgentUpdateWithoutUserInput>, Prisma.AgentUncheckedUpdateWithoutUserInput>
}
export type AgentCreateNestedManyWithoutTeamInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutTeamInput, Prisma.AgentUncheckedCreateWithoutTeamInput> | Prisma.AgentCreateWithoutTeamInput[] | Prisma.AgentUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutTeamInput | Prisma.AgentCreateOrConnectWithoutTeamInput[]
createMany?: Prisma.AgentCreateManyTeamInputEnvelope
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
}
export type AgentUncheckedCreateNestedManyWithoutTeamInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutTeamInput, Prisma.AgentUncheckedCreateWithoutTeamInput> | Prisma.AgentCreateWithoutTeamInput[] | Prisma.AgentUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutTeamInput | Prisma.AgentCreateOrConnectWithoutTeamInput[]
createMany?: Prisma.AgentCreateManyTeamInputEnvelope
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
}
export type AgentUpdateManyWithoutTeamNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutTeamInput, Prisma.AgentUncheckedCreateWithoutTeamInput> | Prisma.AgentCreateWithoutTeamInput[] | Prisma.AgentUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutTeamInput | Prisma.AgentCreateOrConnectWithoutTeamInput[]
upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutTeamInput | Prisma.AgentUpsertWithWhereUniqueWithoutTeamInput[]
createMany?: Prisma.AgentCreateManyTeamInputEnvelope
set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
update?: Prisma.AgentUpdateWithWhereUniqueWithoutTeamInput | Prisma.AgentUpdateWithWhereUniqueWithoutTeamInput[]
updateMany?: Prisma.AgentUpdateManyWithWhereWithoutTeamInput | Prisma.AgentUpdateManyWithWhereWithoutTeamInput[]
deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
}
export type AgentUncheckedUpdateManyWithoutTeamNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutTeamInput, Prisma.AgentUncheckedCreateWithoutTeamInput> | Prisma.AgentCreateWithoutTeamInput[] | Prisma.AgentUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutTeamInput | Prisma.AgentCreateOrConnectWithoutTeamInput[]
upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutTeamInput | Prisma.AgentUpsertWithWhereUniqueWithoutTeamInput[]
createMany?: Prisma.AgentCreateManyTeamInputEnvelope
set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
update?: Prisma.AgentUpdateWithWhereUniqueWithoutTeamInput | Prisma.AgentUpdateWithWhereUniqueWithoutTeamInput[]
updateMany?: Prisma.AgentUpdateManyWithWhereWithoutTeamInput | Prisma.AgentUpdateManyWithWhereWithoutTeamInput[]
deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
}
export type EnumAgentTypeFieldUpdateOperationsInput = {
set?: $Enums.AgentType
}
export type AgentCreateNestedOneWithoutSkillsInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutSkillsInput, Prisma.AgentUncheckedCreateWithoutSkillsInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSkillsInput
connect?: Prisma.AgentWhereUniqueInput
}
export type AgentUpdateOneRequiredWithoutSkillsNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutSkillsInput, Prisma.AgentUncheckedCreateWithoutSkillsInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSkillsInput
upsert?: Prisma.AgentUpsertWithoutSkillsInput
connect?: Prisma.AgentWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutSkillsInput, Prisma.AgentUpdateWithoutSkillsInput>, Prisma.AgentUncheckedUpdateWithoutSkillsInput>
}
export type AgentCreateNestedOneWithoutMcpServersInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutMcpServersInput, Prisma.AgentUncheckedCreateWithoutMcpServersInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutMcpServersInput
connect?: Prisma.AgentWhereUniqueInput
}
export type AgentUpdateOneRequiredWithoutMcpServersNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutMcpServersInput, Prisma.AgentUncheckedCreateWithoutMcpServersInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutMcpServersInput
upsert?: Prisma.AgentUpsertWithoutMcpServersInput
connect?: Prisma.AgentWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutMcpServersInput, Prisma.AgentUpdateWithoutMcpServersInput>, Prisma.AgentUncheckedUpdateWithoutMcpServersInput>
}
export type AgentCreateNestedOneWithoutAgentSessionsInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutAgentSessionsInput, Prisma.AgentUncheckedCreateWithoutAgentSessionsInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAgentSessionsInput
connect?: Prisma.AgentWhereUniqueInput
}
export type AgentUpdateOneRequiredWithoutAgentSessionsNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutAgentSessionsInput, Prisma.AgentUncheckedCreateWithoutAgentSessionsInput>
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutAgentSessionsInput
upsert?: Prisma.AgentUpsertWithoutAgentSessionsInput
connect?: Prisma.AgentWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutAgentSessionsInput, Prisma.AgentUpdateWithoutAgentSessionsInput>, Prisma.AgentUncheckedUpdateWithoutAgentSessionsInput>
}
export type AgentCreateNestedManyWithoutModelRefInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutModelRefInput, Prisma.AgentUncheckedCreateWithoutModelRefInput> | Prisma.AgentCreateWithoutModelRefInput[] | Prisma.AgentUncheckedCreateWithoutModelRefInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutModelRefInput | Prisma.AgentCreateOrConnectWithoutModelRefInput[]
createMany?: Prisma.AgentCreateManyModelRefInputEnvelope
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
}
export type AgentUncheckedCreateNestedManyWithoutModelRefInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutModelRefInput, Prisma.AgentUncheckedCreateWithoutModelRefInput> | Prisma.AgentCreateWithoutModelRefInput[] | Prisma.AgentUncheckedCreateWithoutModelRefInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutModelRefInput | Prisma.AgentCreateOrConnectWithoutModelRefInput[]
createMany?: Prisma.AgentCreateManyModelRefInputEnvelope
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
}
export type AgentUpdateManyWithoutModelRefNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutModelRefInput, Prisma.AgentUncheckedCreateWithoutModelRefInput> | Prisma.AgentCreateWithoutModelRefInput[] | Prisma.AgentUncheckedCreateWithoutModelRefInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutModelRefInput | Prisma.AgentCreateOrConnectWithoutModelRefInput[]
upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput | Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput[]
createMany?: Prisma.AgentCreateManyModelRefInputEnvelope
set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
update?: Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput | Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput[]
updateMany?: Prisma.AgentUpdateManyWithWhereWithoutModelRefInput | Prisma.AgentUpdateManyWithWhereWithoutModelRefInput[]
deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
}
export type AgentUncheckedUpdateManyWithoutModelRefNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutModelRefInput, Prisma.AgentUncheckedCreateWithoutModelRefInput> | Prisma.AgentCreateWithoutModelRefInput[] | Prisma.AgentUncheckedCreateWithoutModelRefInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutModelRefInput | Prisma.AgentCreateOrConnectWithoutModelRefInput[]
upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput | Prisma.AgentUpsertWithWhereUniqueWithoutModelRefInput[]
createMany?: Prisma.AgentCreateManyModelRefInputEnvelope
set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
update?: Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput | Prisma.AgentUpdateWithWhereUniqueWithoutModelRefInput[]
updateMany?: Prisma.AgentUpdateManyWithWhereWithoutModelRefInput | Prisma.AgentUpdateManyWithWhereWithoutModelRefInput[]
deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
}
export type AgentCreateNestedManyWithoutProviderInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutProviderInput, Prisma.AgentUncheckedCreateWithoutProviderInput> | Prisma.AgentCreateWithoutProviderInput[] | Prisma.AgentUncheckedCreateWithoutProviderInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutProviderInput | Prisma.AgentCreateOrConnectWithoutProviderInput[]
createMany?: Prisma.AgentCreateManyProviderInputEnvelope
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
}
export type AgentUncheckedCreateNestedManyWithoutProviderInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutProviderInput, Prisma.AgentUncheckedCreateWithoutProviderInput> | Prisma.AgentCreateWithoutProviderInput[] | Prisma.AgentUncheckedCreateWithoutProviderInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutProviderInput | Prisma.AgentCreateOrConnectWithoutProviderInput[]
createMany?: Prisma.AgentCreateManyProviderInputEnvelope
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
}
export type AgentUpdateManyWithoutProviderNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutProviderInput, Prisma.AgentUncheckedCreateWithoutProviderInput> | Prisma.AgentCreateWithoutProviderInput[] | Prisma.AgentUncheckedCreateWithoutProviderInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutProviderInput | Prisma.AgentCreateOrConnectWithoutProviderInput[]
upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput | Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput[]
createMany?: Prisma.AgentCreateManyProviderInputEnvelope
set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
update?: Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput | Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput[]
updateMany?: Prisma.AgentUpdateManyWithWhereWithoutProviderInput | Prisma.AgentUpdateManyWithWhereWithoutProviderInput[]
deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
}
export type AgentUncheckedUpdateManyWithoutProviderNestedInput = {
create?: Prisma.XOR<Prisma.AgentCreateWithoutProviderInput, Prisma.AgentUncheckedCreateWithoutProviderInput> | Prisma.AgentCreateWithoutProviderInput[] | Prisma.AgentUncheckedCreateWithoutProviderInput[]
connectOrCreate?: Prisma.AgentCreateOrConnectWithoutProviderInput | Prisma.AgentCreateOrConnectWithoutProviderInput[]
upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput | Prisma.AgentUpsertWithWhereUniqueWithoutProviderInput[]
createMany?: Prisma.AgentCreateManyProviderInputEnvelope
set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[]
update?: Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput | Prisma.AgentUpdateWithWhereUniqueWithoutProviderInput[]
updateMany?: Prisma.AgentUpdateManyWithWhereWithoutProviderInput | Prisma.AgentUpdateManyWithWhereWithoutProviderInput[]
deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
}
export type AgentCreateWithoutUserInput = {
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput
modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
}
export type AgentUncheckedCreateWithoutUserInput = {
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
modelId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
}
export type AgentCreateOrConnectWithoutUserInput = {
where: Prisma.AgentWhereUniqueInput
create: Prisma.XOR<Prisma.AgentCreateWithoutUserInput, Prisma.AgentUncheckedCreateWithoutUserInput>
}
export type AgentUpsertWithoutUserInput = {
update: Prisma.XOR<Prisma.AgentUpdateWithoutUserInput, Prisma.AgentUncheckedUpdateWithoutUserInput>
create: Prisma.XOR<Prisma.AgentCreateWithoutUserInput, Prisma.AgentUncheckedCreateWithoutUserInput>
where?: Prisma.AgentWhereInput
}
export type AgentUpdateToOneWithWhereWithoutUserInput = {
where?: Prisma.AgentWhereInput
data: Prisma.XOR<Prisma.AgentUpdateWithoutUserInput, Prisma.AgentUncheckedUpdateWithoutUserInput>
}
export type AgentUpdateWithoutUserInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput
modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateWithoutUserInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
}
export type AgentCreateWithoutTeamInput = {
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutAgentInput
provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput
modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
}
export type AgentUncheckedCreateWithoutTeamInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
modelId?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
}
export type AgentCreateOrConnectWithoutTeamInput = {
where: Prisma.AgentWhereUniqueInput
create: Prisma.XOR<Prisma.AgentCreateWithoutTeamInput, Prisma.AgentUncheckedCreateWithoutTeamInput>
}
export type AgentCreateManyTeamInputEnvelope = {
data: Prisma.AgentCreateManyTeamInput | Prisma.AgentCreateManyTeamInput[]
skipDuplicates?: boolean
}
export type AgentUpsertWithWhereUniqueWithoutTeamInput = {
where: Prisma.AgentWhereUniqueInput
update: Prisma.XOR<Prisma.AgentUpdateWithoutTeamInput, Prisma.AgentUncheckedUpdateWithoutTeamInput>
create: Prisma.XOR<Prisma.AgentCreateWithoutTeamInput, Prisma.AgentUncheckedCreateWithoutTeamInput>
}
export type AgentUpdateWithWhereUniqueWithoutTeamInput = {
where: Prisma.AgentWhereUniqueInput
data: Prisma.XOR<Prisma.AgentUpdateWithoutTeamInput, Prisma.AgentUncheckedUpdateWithoutTeamInput>
}
export type AgentUpdateManyWithWhereWithoutTeamInput = {
where: Prisma.AgentScalarWhereInput
data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyWithoutTeamInput>
}
export type AgentScalarWhereInput = {
AND?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
OR?: Prisma.AgentScalarWhereInput[]
NOT?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[]
id?: Prisma.StringFilter<"Agent"> | string
type?: Prisma.EnumAgentTypeFilter<"Agent"> | $Enums.AgentType
enabled?: Prisma.BoolFilter<"Agent"> | boolean
permission?: Prisma.EnumTeamMemberRoleFilter<"Agent"> | $Enums.TeamMemberRole
soul?: Prisma.StringNullableFilter<"Agent"> | string | null
providerId?: Prisma.StringNullableFilter<"Agent"> | string | null
modelId?: Prisma.StringNullableFilter<"Agent"> | string | null
teamId?: Prisma.StringFilter<"Agent"> | string
config?: Prisma.JsonFilter<"Agent">
createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string
}
export type AgentCreateWithoutSkillsInput = {
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutAgentInput
provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput
modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
}
export type AgentUncheckedCreateWithoutSkillsInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
modelId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
}
export type AgentCreateOrConnectWithoutSkillsInput = {
where: Prisma.AgentWhereUniqueInput
create: Prisma.XOR<Prisma.AgentCreateWithoutSkillsInput, Prisma.AgentUncheckedCreateWithoutSkillsInput>
}
export type AgentUpsertWithoutSkillsInput = {
update: Prisma.XOR<Prisma.AgentUpdateWithoutSkillsInput, Prisma.AgentUncheckedUpdateWithoutSkillsInput>
create: Prisma.XOR<Prisma.AgentCreateWithoutSkillsInput, Prisma.AgentUncheckedCreateWithoutSkillsInput>
where?: Prisma.AgentWhereInput
}
export type AgentUpdateToOneWithWhereWithoutSkillsInput = {
where?: Prisma.AgentWhereInput
data: Prisma.XOR<Prisma.AgentUpdateWithoutSkillsInput, Prisma.AgentUncheckedUpdateWithoutSkillsInput>
}
export type AgentUpdateWithoutSkillsInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput
provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput
modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateWithoutSkillsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
}
export type AgentCreateWithoutMcpServersInput = {
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutAgentInput
provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput
modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
}
export type AgentUncheckedCreateWithoutMcpServersInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
modelId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
}
export type AgentCreateOrConnectWithoutMcpServersInput = {
where: Prisma.AgentWhereUniqueInput
create: Prisma.XOR<Prisma.AgentCreateWithoutMcpServersInput, Prisma.AgentUncheckedCreateWithoutMcpServersInput>
}
export type AgentUpsertWithoutMcpServersInput = {
update: Prisma.XOR<Prisma.AgentUpdateWithoutMcpServersInput, Prisma.AgentUncheckedUpdateWithoutMcpServersInput>
create: Prisma.XOR<Prisma.AgentCreateWithoutMcpServersInput, Prisma.AgentUncheckedCreateWithoutMcpServersInput>
where?: Prisma.AgentWhereInput
}
export type AgentUpdateToOneWithWhereWithoutMcpServersInput = {
where?: Prisma.AgentWhereInput
data: Prisma.XOR<Prisma.AgentUpdateWithoutMcpServersInput, Prisma.AgentUncheckedUpdateWithoutMcpServersInput>
}
export type AgentUpdateWithoutMcpServersInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput
provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput
modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateWithoutMcpServersInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
}
export type AgentCreateWithoutAgentSessionsInput = {
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutAgentInput
provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput
modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
}
export type AgentUncheckedCreateWithoutAgentSessionsInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
modelId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
}
export type AgentCreateOrConnectWithoutAgentSessionsInput = {
where: Prisma.AgentWhereUniqueInput
create: Prisma.XOR<Prisma.AgentCreateWithoutAgentSessionsInput, Prisma.AgentUncheckedCreateWithoutAgentSessionsInput>
}
export type AgentUpsertWithoutAgentSessionsInput = {
update: Prisma.XOR<Prisma.AgentUpdateWithoutAgentSessionsInput, Prisma.AgentUncheckedUpdateWithoutAgentSessionsInput>
create: Prisma.XOR<Prisma.AgentCreateWithoutAgentSessionsInput, Prisma.AgentUncheckedCreateWithoutAgentSessionsInput>
where?: Prisma.AgentWhereInput
}
export type AgentUpdateToOneWithWhereWithoutAgentSessionsInput = {
where?: Prisma.AgentWhereInput
data: Prisma.XOR<Prisma.AgentUpdateWithoutAgentSessionsInput, Prisma.AgentUncheckedUpdateWithoutAgentSessionsInput>
}
export type AgentUpdateWithoutAgentSessionsInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput
provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput
modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateWithoutAgentSessionsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
}
export type AgentCreateWithoutModelRefInput = {
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutAgentInput
provider?: Prisma.ProviderCreateNestedOneWithoutAgentsInput
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
}
export type AgentUncheckedCreateWithoutModelRefInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
}
export type AgentCreateOrConnectWithoutModelRefInput = {
where: Prisma.AgentWhereUniqueInput
create: Prisma.XOR<Prisma.AgentCreateWithoutModelRefInput, Prisma.AgentUncheckedCreateWithoutModelRefInput>
}
export type AgentCreateManyModelRefInputEnvelope = {
data: Prisma.AgentCreateManyModelRefInput | Prisma.AgentCreateManyModelRefInput[]
skipDuplicates?: boolean
}
export type AgentUpsertWithWhereUniqueWithoutModelRefInput = {
where: Prisma.AgentWhereUniqueInput
update: Prisma.XOR<Prisma.AgentUpdateWithoutModelRefInput, Prisma.AgentUncheckedUpdateWithoutModelRefInput>
create: Prisma.XOR<Prisma.AgentCreateWithoutModelRefInput, Prisma.AgentUncheckedCreateWithoutModelRefInput>
}
export type AgentUpdateWithWhereUniqueWithoutModelRefInput = {
where: Prisma.AgentWhereUniqueInput
data: Prisma.XOR<Prisma.AgentUpdateWithoutModelRefInput, Prisma.AgentUncheckedUpdateWithoutModelRefInput>
}
export type AgentUpdateManyWithWhereWithoutModelRefInput = {
where: Prisma.AgentScalarWhereInput
data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyWithoutModelRefInput>
}
export type AgentCreateWithoutProviderInput = {
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutAgentInput
modelRef?: Prisma.ModelCreateNestedOneWithoutAgentsInput
team: Prisma.TeamCreateNestedOneWithoutAgentsInput
agentSessions?: Prisma.AgentSessionCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutAgentInput
}
export type AgentUncheckedCreateWithoutProviderInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
modelId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
agentSessions?: Prisma.AgentSessionUncheckedCreateNestedManyWithoutAgentInput
skills?: Prisma.AgentSkillUncheckedCreateNestedManyWithoutAgentInput
mcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput
}
export type AgentCreateOrConnectWithoutProviderInput = {
where: Prisma.AgentWhereUniqueInput
create: Prisma.XOR<Prisma.AgentCreateWithoutProviderInput, Prisma.AgentUncheckedCreateWithoutProviderInput>
}
export type AgentCreateManyProviderInputEnvelope = {
data: Prisma.AgentCreateManyProviderInput | Prisma.AgentCreateManyProviderInput[]
skipDuplicates?: boolean
}
export type AgentUpsertWithWhereUniqueWithoutProviderInput = {
where: Prisma.AgentWhereUniqueInput
update: Prisma.XOR<Prisma.AgentUpdateWithoutProviderInput, Prisma.AgentUncheckedUpdateWithoutProviderInput>
create: Prisma.XOR<Prisma.AgentCreateWithoutProviderInput, Prisma.AgentUncheckedCreateWithoutProviderInput>
}
export type AgentUpdateWithWhereUniqueWithoutProviderInput = {
where: Prisma.AgentWhereUniqueInput
data: Prisma.XOR<Prisma.AgentUpdateWithoutProviderInput, Prisma.AgentUncheckedUpdateWithoutProviderInput>
}
export type AgentUpdateManyWithWhereWithoutProviderInput = {
where: Prisma.AgentScalarWhereInput
data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyWithoutProviderInput>
}
export type AgentCreateManyTeamInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
modelId?: string | null
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentUpdateWithoutTeamInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput
provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput
modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateWithoutTeamInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateManyWithoutTeamInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentCreateManyModelRefInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
providerId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentUpdateWithoutModelRefInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput
provider?: Prisma.ProviderUpdateOneWithoutAgentsNestedInput
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateWithoutModelRefInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateManyWithoutModelRefInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
providerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type AgentCreateManyProviderInput = {
id: string
type: $Enums.AgentType
enabled?: boolean
permission?: $Enums.TeamMemberRole
soul?: string | null
modelId?: string | null
teamId: string
config:PrismaJson.AgentConfig
createdAt?: Date | string
updatedAt?: Date | string
}
export type AgentUpdateWithoutProviderInput = {
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutAgentNestedInput
modelRef?: Prisma.ModelUpdateOneWithoutAgentsNestedInput
team?: Prisma.TeamUpdateOneRequiredWithoutAgentsNestedInput
agentSessions?: Prisma.AgentSessionUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateWithoutProviderInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
agentSessions?: Prisma.AgentSessionUncheckedUpdateManyWithoutAgentNestedInput
skills?: Prisma.AgentSkillUncheckedUpdateManyWithoutAgentNestedInput
mcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput
}
export type AgentUncheckedUpdateManyWithoutProviderInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
type?: Prisma.EnumAgentTypeFieldUpdateOperationsInput | $Enums.AgentType
enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
soul?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
modelId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
teamId?: Prisma.StringFieldUpdateOperationsInput | string
config?:PrismaJson.AgentConfig
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Count Type AgentCountOutputType
*/
export type AgentCountOutputType = {
agentSessions: number
skills: number
mcpServers: number
}
export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
agentSessions?: boolean | AgentCountOutputTypeCountAgentSessionsArgs
skills?: boolean | AgentCountOutputTypeCountSkillsArgs
mcpServers?: boolean | AgentCountOutputTypeCountMcpServersArgs
}
/**
* AgentCountOutputType without action
*/
export type AgentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentCountOutputType
*/
select?: Prisma.AgentCountOutputTypeSelect<ExtArgs> | null
}
/**
* AgentCountOutputType without action
*/
export type AgentCountOutputTypeCountAgentSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AgentSessionWhereInput
}
/**
* AgentCountOutputType without action
*/
export type AgentCountOutputTypeCountSkillsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AgentSkillWhereInput
}
/**
* AgentCountOutputType without action
*/
export type AgentCountOutputTypeCountMcpServersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AgentMcpServerWhereInput
}
export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
type?: boolean
enabled?: boolean
permission?: boolean
soul?: boolean
providerId?: boolean
modelId?: boolean
teamId?: boolean
config?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
provider?: boolean | Prisma.Agent$providerArgs<ExtArgs>
modelRef?: boolean | Prisma.Agent$modelRefArgs<ExtArgs>
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
agentSessions?: boolean | Prisma.Agent$agentSessionsArgs<ExtArgs>
skills?: boolean | Prisma.Agent$skillsArgs<ExtArgs>
mcpServers?: boolean | Prisma.Agent$mcpServersArgs<ExtArgs>
_count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agent"]>
export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
type?: boolean
enabled?: boolean
permission?: boolean
soul?: boolean
providerId?: boolean
modelId?: boolean
teamId?: boolean
config?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
provider?: boolean | Prisma.Agent$providerArgs<ExtArgs>
modelRef?: boolean | Prisma.Agent$modelRefArgs<ExtArgs>
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agent"]>
export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
type?: boolean
enabled?: boolean
permission?: boolean
soul?: boolean
providerId?: boolean
modelId?: boolean
teamId?: boolean
config?: boolean
createdAt?: boolean
updatedAt?: boolean
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
provider?: boolean | Prisma.Agent$providerArgs<ExtArgs>
modelRef?: boolean | Prisma.Agent$modelRefArgs<ExtArgs>
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["agent"]>
export type AgentSelectScalar = {
id?: boolean
type?: boolean
enabled?: boolean
permission?: boolean
soul?: boolean
providerId?: boolean
modelId?: boolean
teamId?: boolean
config?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type AgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "type" | "enabled" | "permission" | "soul" | "providerId" | "modelId" | "teamId" | "config" | "createdAt" | "updatedAt", ExtArgs["result"]["agent"]>
export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
provider?: boolean | Prisma.Agent$providerArgs<ExtArgs>
modelRef?: boolean | Prisma.Agent$modelRefArgs<ExtArgs>
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
agentSessions?: boolean | Prisma.Agent$agentSessionsArgs<ExtArgs>
skills?: boolean | Prisma.Agent$skillsArgs<ExtArgs>
mcpServers?: boolean | Prisma.Agent$mcpServersArgs<ExtArgs>
_count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>
}
export type AgentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
provider?: boolean | Prisma.Agent$providerArgs<ExtArgs>
modelRef?: boolean | Prisma.Agent$modelRefArgs<ExtArgs>
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}
export type AgentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
provider?: boolean | Prisma.Agent$providerArgs<ExtArgs>
modelRef?: boolean | Prisma.Agent$modelRefArgs<ExtArgs>
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}
export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Agent"
objects: {
user: Prisma.$UserPayload<ExtArgs>
provider: Prisma.$ProviderPayload<ExtArgs> | null
modelRef: Prisma.$ModelPayload<ExtArgs> | null
team: Prisma.$TeamPayload<ExtArgs>
agentSessions: Prisma.$AgentSessionPayload<ExtArgs>[]
skills: Prisma.$AgentSkillPayload<ExtArgs>[]
mcpServers: Prisma.$AgentMcpServerPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
type: $Enums.AgentType
enabled: boolean
permission: $Enums.TeamMemberRole
soul: string | null
providerId: string | null
modelId: string | null
teamId: string
/**
* [AgentConfig]
*/
config:PrismaJson.AgentConfig
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["agent"]>
composites: {}
}
export type AgentGetPayload<S extends boolean | null | undefined | AgentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentPayload, S>
export type AgentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AgentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AgentCountAggregateInputType | true
}
export interface AgentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Agent'], meta: { name: 'Agent' } }
/**
* Find zero or one Agent that matches the filter.
* @param {AgentFindUniqueArgs} args - Arguments to find a Agent
* @example
* // Get one Agent
* const agent = await prisma.agent.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AgentFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Agent that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AgentFindUniqueOrThrowArgs} args - Arguments to find a Agent
* @example
* // Get one Agent
* const agent = await prisma.agent.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AgentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Agent 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 {AgentFindFirstArgs} args - Arguments to find a Agent
* @example
* // Get one Agent
* const agent = await prisma.agent.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AgentFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Agent 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 {AgentFindFirstOrThrowArgs} args - Arguments to find a Agent
* @example
* // Get one Agent
* const agent = await prisma.agent.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AgentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Agents 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 {AgentFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Agents
* const agents = await prisma.agent.findMany()
*
* // Get first 10 Agents
* const agents = await prisma.agent.findMany({ take: 10 })
*
* // Only select the `id`
* const agentWithIdOnly = await prisma.agent.findMany({ select: { id: true } })
*
*/
findMany<T extends AgentFindManyArgs>(args?: Prisma.SelectSubset<T, AgentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Agent.
* @param {AgentCreateArgs} args - Arguments to create a Agent.
* @example
* // Create one Agent
* const Agent = await prisma.agent.create({
* data: {
* // ... data to create a Agent
* }
* })
*
*/
create<T extends AgentCreateArgs>(args: Prisma.SelectSubset<T, AgentCreateArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Agents.
* @param {AgentCreateManyArgs} args - Arguments to create many Agents.
* @example
* // Create many Agents
* const agent = await prisma.agent.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AgentCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Agents and returns the data saved in the database.
* @param {AgentCreateManyAndReturnArgs} args - Arguments to create many Agents.
* @example
* // Create many Agents
* const agent = await prisma.agent.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Agents and only return the `id`
* const agentWithIdOnly = await prisma.agent.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 AgentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Agent.
* @param {AgentDeleteArgs} args - Arguments to delete one Agent.
* @example
* // Delete one Agent
* const Agent = await prisma.agent.delete({
* where: {
* // ... filter to delete one Agent
* }
* })
*
*/
delete<T extends AgentDeleteArgs>(args: Prisma.SelectSubset<T, AgentDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Agent.
* @param {AgentUpdateArgs} args - Arguments to update one Agent.
* @example
* // Update one Agent
* const agent = await prisma.agent.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AgentUpdateArgs>(args: Prisma.SelectSubset<T, AgentUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Agents.
* @param {AgentDeleteManyArgs} args - Arguments to filter Agents to delete.
* @example
* // Delete a few Agents
* const { count } = await prisma.agent.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AgentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Agents.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AgentUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Agents
* const agent = await prisma.agent.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AgentUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Agents and returns the data updated in the database.
* @param {AgentUpdateManyAndReturnArgs} args - Arguments to update many Agents.
* @example
* // Update many Agents
* const agent = await prisma.agent.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Agents and only return the `id`
* const agentWithIdOnly = await prisma.agent.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 AgentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Agent.
* @param {AgentUpsertArgs} args - Arguments to update or create a Agent.
* @example
* // Update or create a Agent
* const agent = await prisma.agent.upsert({
* create: {
* // ... data to create a Agent
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Agent we want to update
* }
* })
*/
upsert<T extends AgentUpsertArgs>(args: Prisma.SelectSubset<T, AgentUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Agents.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AgentCountArgs} args - Arguments to filter Agents to count.
* @example
* // Count the number of Agents
* const count = await prisma.agent.count({
* where: {
* // ... the filter for the Agents we want to count
* }
* })
**/
count<T extends AgentCountArgs>(
args?: Prisma.Subset<T, AgentCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AgentCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Agent.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AgentAggregateArgs} 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 AgentAggregateArgs>(args: Prisma.Subset<T, AgentAggregateArgs>): Prisma.PrismaPromise<GetAgentAggregateType<T>>
/**
* Group by Agent.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AgentGroupByArgs} 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 AgentGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AgentGroupByArgs['orderBy'] }
: { orderBy?: AgentGroupByArgs['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, AgentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Agent model
*/
readonly fields: AgentFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Agent.
* 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__AgentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
provider<T extends Prisma.Agent$providerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$providerArgs<ExtArgs>>): Prisma.Prisma__ProviderClient<runtime.Types.Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
modelRef<T extends Prisma.Agent$modelRefArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$modelRefArgs<ExtArgs>>): Prisma.Prisma__ModelClient<runtime.Types.Result.GetResult<Prisma.$ModelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
team<T extends Prisma.TeamDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamDefaultArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
agentSessions<T extends Prisma.Agent$agentSessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$agentSessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
skills<T extends Prisma.Agent$skillsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$skillsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSkillPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
mcpServers<T extends Prisma.Agent$mcpServersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$mcpServersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the Agent model
*/
export interface AgentFieldRefs {
readonly id: Prisma.FieldRef<"Agent", 'String'>
readonly type: Prisma.FieldRef<"Agent", 'AgentType'>
readonly enabled: Prisma.FieldRef<"Agent", 'Boolean'>
readonly permission: Prisma.FieldRef<"Agent", 'TeamMemberRole'>
readonly soul: Prisma.FieldRef<"Agent", 'String'>
readonly providerId: Prisma.FieldRef<"Agent", 'String'>
readonly modelId: Prisma.FieldRef<"Agent", 'String'>
readonly teamId: Prisma.FieldRef<"Agent", 'String'>
readonly config: Prisma.FieldRef<"Agent", 'Json'>
readonly createdAt: Prisma.FieldRef<"Agent", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Agent", 'DateTime'>
}
// Custom InputTypes
/**
* Agent findUnique
*/
export type AgentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
/**
* Filter, which Agent to fetch.
*/
where: Prisma.AgentWhereUniqueInput
}
/**
* Agent findUniqueOrThrow
*/
export type AgentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
/**
* Filter, which Agent to fetch.
*/
where: Prisma.AgentWhereUniqueInput
}
/**
* Agent findFirst
*/
export type AgentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
/**
* Filter, which Agent to fetch.
*/
where?: Prisma.AgentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Agents to fetch.
*/
orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Agents.
*/
cursor?: Prisma.AgentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Agents 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` Agents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Agents.
*/
distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[]
}
/**
* Agent findFirstOrThrow
*/
export type AgentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
/**
* Filter, which Agent to fetch.
*/
where?: Prisma.AgentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Agents to fetch.
*/
orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Agents.
*/
cursor?: Prisma.AgentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Agents 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` Agents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Agents.
*/
distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[]
}
/**
* Agent findMany
*/
export type AgentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
/**
* Filter, which Agents to fetch.
*/
where?: Prisma.AgentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Agents to fetch.
*/
orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Agents.
*/
cursor?: Prisma.AgentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Agents 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` Agents.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Agents.
*/
distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[]
}
/**
* Agent create
*/
export type AgentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
/**
* The data needed to create a Agent.
*/
data: Prisma.XOR<Prisma.AgentCreateInput, Prisma.AgentUncheckedCreateInput>
}
/**
* Agent createMany
*/
export type AgentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Agents.
*/
data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Agent createManyAndReturn
*/
export type AgentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* The data used to create many Agents.
*/
data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Agent update
*/
export type AgentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
/**
* The data needed to update a Agent.
*/
data: Prisma.XOR<Prisma.AgentUpdateInput, Prisma.AgentUncheckedUpdateInput>
/**
* Choose, which Agent to update.
*/
where: Prisma.AgentWhereUniqueInput
}
/**
* Agent updateMany
*/
export type AgentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Agents.
*/
data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyInput>
/**
* Filter which Agents to update
*/
where?: Prisma.AgentWhereInput
/**
* Limit how many Agents to update.
*/
limit?: number
}
/**
* Agent updateManyAndReturn
*/
export type AgentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* The data used to update Agents.
*/
data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyInput>
/**
* Filter which Agents to update
*/
where?: Prisma.AgentWhereInput
/**
* Limit how many Agents to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Agent upsert
*/
export type AgentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
/**
* The filter to search for the Agent to update in case it exists.
*/
where: Prisma.AgentWhereUniqueInput
/**
* In case the Agent found by the `where` argument doesn't exist, create a new Agent with this data.
*/
create: Prisma.XOR<Prisma.AgentCreateInput, Prisma.AgentUncheckedCreateInput>
/**
* In case the Agent was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AgentUpdateInput, Prisma.AgentUncheckedUpdateInput>
}
/**
* Agent delete
*/
export type AgentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
/**
* Filter which Agent to delete.
*/
where: Prisma.AgentWhereUniqueInput
}
/**
* Agent deleteMany
*/
export type AgentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Agents to delete
*/
where?: Prisma.AgentWhereInput
/**
* Limit how many Agents to delete.
*/
limit?: number
}
/**
* Agent.provider
*/
export type Agent$providerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Provider
*/
select?: Prisma.ProviderSelect<ExtArgs> | null
/**
* Omit specific fields from the Provider
*/
omit?: Prisma.ProviderOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProviderInclude<ExtArgs> | null
where?: Prisma.ProviderWhereInput
}
/**
* Agent.modelRef
*/
export type Agent$modelRefArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Model
*/
select?: Prisma.ModelSelect<ExtArgs> | null
/**
* Omit specific fields from the Model
*/
omit?: Prisma.ModelOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ModelInclude<ExtArgs> | null
where?: Prisma.ModelWhereInput
}
/**
* Agent.agentSessions
*/
export type Agent$agentSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSession
*/
select?: Prisma.AgentSessionSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSession
*/
omit?: Prisma.AgentSessionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSessionInclude<ExtArgs> | null
where?: Prisma.AgentSessionWhereInput
orderBy?: Prisma.AgentSessionOrderByWithRelationInput | Prisma.AgentSessionOrderByWithRelationInput[]
cursor?: Prisma.AgentSessionWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AgentSessionScalarFieldEnum | Prisma.AgentSessionScalarFieldEnum[]
}
/**
* Agent.skills
*/
export type Agent$skillsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentSkill
*/
select?: Prisma.AgentSkillSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentSkill
*/
omit?: Prisma.AgentSkillOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentSkillInclude<ExtArgs> | null
where?: Prisma.AgentSkillWhereInput
orderBy?: Prisma.AgentSkillOrderByWithRelationInput | Prisma.AgentSkillOrderByWithRelationInput[]
cursor?: Prisma.AgentSkillWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AgentSkillScalarFieldEnum | Prisma.AgentSkillScalarFieldEnum[]
}
/**
* Agent.mcpServers
*/
export type Agent$mcpServersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentMcpServer
*/
select?: Prisma.AgentMcpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentMcpServer
*/
omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentMcpServerInclude<ExtArgs> | null
where?: Prisma.AgentMcpServerWhereInput
orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[]
cursor?: Prisma.AgentMcpServerWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[]
}
/**
* Agent without action
*/
export type AgentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Agent
*/
select?: Prisma.AgentSelect<ExtArgs> | null
/**
* Omit specific fields from the Agent
*/
omit?: Prisma.AgentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentInclude<ExtArgs> | null
}