Files
shumai/packages/db/src/generated/prisma/models/Agent.ts
T
Yiling-J 1b5cbf936a feat(mcp): add MCP server support with proxy tool and OAuth flow (#289)
* feat(mcp): add MCP server support with proxy tool and OAuth flow

Add URL-based MCP (Model Context Protocol) server support to the backend:

- DB: McpServer / AgentMcpServer / McpServerCredential models with
  typed JSON columns (auth config, cached tools, stored OAuth tokens,
  pending auth state) and a migration.
- Core (@shumai/core/src/mcp): DB-backed credential store, OAuth
  client provider (authorization_code + client_credentials) with a
  Hono-hosted redirect callback, connection lifecycle manager
  (Streamable HTTP with SSE fallback, lazy connect, 401 -> needs_auth),
  JSON Schema -> AgentTool parameter conversion, in-memory tool registry
  with ranked search, the single 'mcp' proxy AgentTool (search /
  describe / list / call / connect / status / auth-start), per-server
  opt-in direct tools ({server}_{tool}), and McpService (CRUD,
  discovery, OAuth, per-agent assignment via AgentMcpServer, and
  permission gating on tool execution mirroring skills).
- Agent: chat agents receive the 'mcp' proxy tool (plus direct tools
  for opted-in servers) built from their assigned, enabled servers.
- API: /teams/:teamId/mcp/servers CRUD, tools refresh/list, auth
  start/complete/status/remove, test, permission, and the public
  OAuth callback route; Admin authz via new ResourceType.McpServer;
  audit logging.
- DTOs: zod schemas + types for servers, tools, auth, and per-agent
  mcpServerIds.
- Tests: DB store, schema conversion, registry/search, service
  integration against a real in-process MCP server (v2
  @modelcontextprotocol/server), permission gating, rename
  invalidation, direct tools, per-agent assignment, API route tests,
  and workflow E2E (local + temporal) for proxy and direct modes.

* fix(mcp): persist OAuth discovery snapshot and stamp SEP-2352 issuer

The callback leg of the OAuth flow failed with
AuthorizationServerMismatchError ('discoveryState was not available on
the callback leg') because McpDbStore.savePendingAuth overwrote the
entire pendingAuth JSON column, clobbering the discoverySnapshot that
the provider's saveDiscoveryState() had stored inside it.

- McpDbStore.savePendingAuth now preserves an in-flight discovery
  snapshot so the callback leg can satisfy the SEP-2352 authorization-
  server issuer check.
- McpOauthProvider now round-trips the issuer stamp derived from the
  discovery snapshot: saveClientInformation/saveTokens persist it,
  clientInformation()/tokens() return it, and tokens() backfills a
  missing stamp for pre-existing credentials (removes the
  'stored OAuth credential has no issuer stamp' warning).
- Regression tests: savePendingAuth keeps the snapshot; the provider
  stamps/round-trips the issuer on both legs.

* fix(mcp): backfill SEP-2352 issuer stamp on stale OAuth client info

clientInformation() returned stored client info without an issuer field
when it had been dynamically registered before the stamping fix, so the
SDK logged 'stored OAuth credential has no issuer stamp' on every read.
Now the stored branch backfills the issuer from the discovery snapshot
(persisting it) exactly like the tokens() backfill.

* feat(webui): add MCP server configuration and agent assignment UI (#290)

* feat(webui): add MCP server configuration and agent assignment UI

* fix(webui): auto-detect auth for unconfigured MCP servers and show connect button

* fix(mcp): auto-generate state in mcp-oauth-provider when missing in DB

* fix(mcp): persist OAuth discovery snapshot and stamp SEP-2352 issuer

The callback leg of the OAuth flow failed with
AuthorizationServerMismatchError ('discoveryState was not available on
the callback leg') because McpDbStore.savePendingAuth overwrote the
entire pendingAuth JSON column, clobbering the discoverySnapshot that
the provider's saveDiscoveryState() had stored inside it.

- McpDbStore.savePendingAuth now preserves an in-flight discovery
  snapshot so the callback leg can satisfy the SEP-2352 authorization-
  server issuer check.
- McpOauthProvider now round-trips the issuer stamp derived from the
  discovery snapshot: saveClientInformation/saveTokens persist it,
  clientInformation()/tokens() return it, and tokens() backfills a
  missing stamp for pre-existing credentials (removes the
  'stored OAuth credential has no issuer stamp' warning).
- Regression tests: savePendingAuth keeps the snapshot; the provider
  stamps/round-trips the issuer on both legs.

* fix(mcp): backfill SEP-2352 issuer stamp on stale OAuth client info

clientInformation() returned stored client info without an issuer field
when it had been dynamically registered before the stamping fix, so the
SDK logged 'stored OAuth credential has no issuer stamp' on every read.
Now the stored branch backfills the issuer from the discovery snapshot
(persisting it) exactly like the tokens() backfill.

* fix(mcp): attach McpOauthProvider for auto-detected OAuth servers and discover tools on auth completion

* fix(webui): fix flex min-h-0 and max-h scrolling on MCP tools dialog

* fix(webui): set explicit flex height on McpToolsDialog for active scrolling

* feat(webui): make MCP server cards clickable to edit and widen server config dialog

* feat(mcp): agent-level server enablement and auto-detected server metadata (#291)

* feat(mcp): agent-level server enablement and auto-detected server metadata

- Remove the server-level `enabled` column from mcp_servers; enable/disable
  now happens per-agent via the AgentMcpServer join table (mirrors skills).
- Drop the unique (teamId, name) constraint so duplicate server names are allowed.
- Add a `description` column, auto-filled from client.getServerVersion() on
  connect; the server name is auto-filled from the reported title (fallback name)
  with a URL-derived placeholder until first connect.
- Remove manual name input: the create dialog is URL-only, and the edit dialog
  shows the auto-detected name/description read-only.
- Replace the include/exclude raw-text inputs with the tool list in the edit
  dialog, managing only excludeTools; remove includeTools support and the
  separate McpToolsDialog component.
- Sanitize server-reported names into safe direct-tool prefixes (spaces/punctuation
  become underscores) and use the same sanitization in the proxy resolver.

* fix(mcp): give the edit-dialog tool list a definite height

The Shadcn ScrollArea viewport is h-full, which requires a definite height
on the root. Using max-h-64 left the viewport at auto height, so the root
clipped the list at 256px without engaging its own scrollbar — tools past
the cutoff were unreachable. Use a fixed h-64 container (same pattern as
move-copy-dialog) so the inner scroll area scrolls independently of the
dialog's outer scroll.

* refactor(mcp): fixed header/footer with scrollable content in server config dialog

Mirror the skill config dialog layout: the edit dialog now keeps the header
and footer fixed and scrolls only the content area (ScrollArea flex-1
min-h-0 inside an h-[85vh] flex column). The tools list no longer has its
own nested ScrollArea — it flows inside the content-level scroll, so all
tools are reachable without a nested-scroll conflict. The create dialog
stays compact (URL-only) like the skill add dialog.

Verified headlessly that max-height-based ScrollArea roots do not engage
scrolling (viewport height resolves to auto), which is why the previous
nested list clipped; the flex-based definite-height pattern scrolls.

* feat(mcp): make the endpoint URL immutable after creation

Editing a server's URL effectively points it at a different server, and the
create flow is URL-only anyway — so the edit dialog no longer allows changing
it (delete + re-add covers endpoint changes). The URL is displayed read-only
next to the auto-detected name/description, and `url` was removed from the
update DTO and service; auth/transport changes still invalidate credentials
and cached tools.

* refactor(mcp): match MCP server cards to the skill card layout

The settings list cards now share the skill card structure: row 1 is the
server name (with direct-mode/transport badges) plus the three-dot menu,
row 2 is the description (falling back to 'No description provided') with
the endpoint URL and last error as small mono lines, and row 3 holds the
connection-status badge and updated date on the left with the permission
selector and the connect button at the right end.

* fix(mcp): stop card menu clicks from opening the edit dialog

The three-dot menu is portaled, so its item clicks bubble through React's
synthetic events to the card's onClick, which opened the edit dialog before
the delete confirmation appeared. Add e.stopPropagation() to every menu
item (matching the skill card pattern).

* fix(mcp): stop Refresh Tools from submitting/closing the config dialog

The Refresh Tools button lived inside the <form> and, like all buttons
without an explicit type, defaulted to type="submit" — clicking it ran the
form submit (save + close) instead of just refreshing. Set type="button".

Also per UX: while refreshing, the button is disabled with a spinning icon,
the per-tool enable/disable switches are disabled, and the success toast is
removed — the button reverting to its idle state is the success signal
(keep the error toast for failures).

* test(mcp): provide explicit redirectUri in McpOauthProvider test helper

* fix(mcp): scope tool registry to agent-assigned servers

The MCP tool registry was a process-global singleton keyed by server id,
so a chat agent could search, describe, and even call tools belonging to
MCP servers that were not assigned to it (e.g. disabled or unassigned
servers), as long as their metadata had been discovered at some point in
the process. This mirrors the disabled-skill bug: the read path never
checked per-agent enablement.

Replace the singleton with a fresh McpToolRegistry built per
buildAgentTools call and warmed from the persisted McpServer.tools DB
cache. Because the registry only ever contains the agent's assigned
servers, unassigned/disabled servers can neither be suggested, searched,
described, nor executed. Live discovery (lazy connect / connect action)
writes into the per-agent registry via ensureConnected(serverId,
registry?).

Adds test-first coverage: suggestions, search, describe and tool-call
leaks across an unassigned same-team server, staleness after
unassignment, and direct-tools scoping.

* feat(mcp): capture and surface server instructions + server-level refresh (#293)

* feat(mcp): capture and surface server instructions

- Add McpServer.instructions column, populated from getInstructions() at
  connect time (legacy initialize + modern discover results)
- Surface instructions at three levels like pi-mcp-adapter: truncated
  snippet in the mcp proxy tool description, preview in server listings,
  and full text via mcp({ instructions: "name" })
- Fix misleading mcp({ server, connect }) usage line to mcp({ connect })
- Share one renderServerListing helper across list and connect modes
- Expose instructions in McpServerInfo DTO and WebUI config card
- Test server supports instructions; service + API tests updated

* refactor(mcp): server-level refresh endpoint, drop agent connect mode

- Replace POST /mcp/servers/:id/tools/refresh with POST /mcp/servers/:id/refresh
  returning the refreshed McpServerInfo (server-level, not tools-level)
- Add McpService.refreshServer(): force-close the connection, re-discover and
  persist tools, instructions, name/description and status; used by the refresh
  endpoint, Test Connection, and post-OAuth completion (replacing discoverTools)
- Remove discoverTools entirely - refreshServer is the single discovery entry
  point (testServer and completeAuth route through it)
- Remove refreshTools from UpdateMcpServerRequest/PATCH (dead param)
- Remove mcp({ connect: "name" }) from the agent proxy tool: lazy tool calls
  still auto-connect, so agents are unaffected
- WebUI: remove the dialog 'Refresh Tools' button and create-mode background
  auto-refresh; add a server-level Refresh button at the left end of the edit
  dialog footer; i18n mcp_refresh_server (+ success message)

* feat(mcp): add in-flight request tracking and idle connection cleanup (#294)

* feat(mcp): add in-flight request tracking and idle connection cleanup

* feat(mcp): add background idle cleanup timer to McpService

* feat(mcp): update default background idle cleanup check interval to 30s

* feat(webui): improve MCP server card footer, instructions, and refresh dialog freeze (#295)

* feat(webui): improve MCP server list card, instructions dialog, and refresh freeze UI

* feat(webui): refine MCP card action menu items

* docs(webui): update direct tools mode description in i18n messages

* style(webui): refine Direct Tools Mode layout in MCP server config dialog

* feat(webui): remove tool search box from MCP server config dialog

* fix(mcp): make in-flight idle tracking test deterministic

The 'tracks in-flight requests and safely prunes idle connections' test
relied on a wall-clock sleep (10ms) to guess when the tool handler had
started executing on the server. On slow/loaded CI runners the HTTP round
trip through the real MCP client/server stack can exceed that window, so
resolveSlowTool() fired the no-op placeholder, the gated handler never
completed, and callPromise hung until the 5000ms test timeout.

The handler now signals via a deferred promise when it actually starts,
and the test awaits that signal (racing it against the call promise to
surface early failures) before asserting in-flight state and releasing
the gate. Also gives the test an explicit 10s timeout.
2026-08-11 11:01:38 +08:00

2450 lines
98 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
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
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
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
soul?: true
providerId?: true
modelId?: true
teamId?: true
createdAt?: true
updatedAt?: true
}
export type AgentMaxAggregateInputType = {
id?: true
type?: true
enabled?: true
soul?: true
providerId?: true
modelId?: true
teamId?: true
createdAt?: true
updatedAt?: true
}
export type AgentCountAggregateInputType = {
id?: true
type?: true
enabled?: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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" | "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
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 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
}