Files
shumai/packages/db/src/generated/prisma/models/McpServerCredential.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

1449 lines
58 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 `McpServerCredential` 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 McpServerCredential
*
*/
export type McpServerCredentialModel = runtime.Types.Result.DefaultSelection<Prisma.$McpServerCredentialPayload>
export type AggregateMcpServerCredential = {
_count: McpServerCredentialCountAggregateOutputType | null
_min: McpServerCredentialMinAggregateOutputType | null
_max: McpServerCredentialMaxAggregateOutputType | null
}
export type McpServerCredentialMinAggregateOutputType = {
id: string | null
serverId: string | null
serverUrl: string | null
codeVerifier: string | null
oauthState: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type McpServerCredentialMaxAggregateOutputType = {
id: string | null
serverId: string | null
serverUrl: string | null
codeVerifier: string | null
oauthState: string | null
createdAt: Date | null
updatedAt: Date | null
}
export type McpServerCredentialCountAggregateOutputType = {
id: number
serverId: number
serverUrl: number
tokens:PrismaJson.McpStoredTokens
clientInfo:PrismaJson.McpStoredClientInfo
codeVerifier: number
oauthState: number
pendingAuth:PrismaJson.McpPendingAuth
createdAt: number
updatedAt: number
_all: number
}
export type McpServerCredentialMinAggregateInputType = {
id?: true
serverId?: true
serverUrl?: true
codeVerifier?: true
oauthState?: true
createdAt?: true
updatedAt?: true
}
export type McpServerCredentialMaxAggregateInputType = {
id?: true
serverId?: true
serverUrl?: true
codeVerifier?: true
oauthState?: true
createdAt?: true
updatedAt?: true
}
export type McpServerCredentialCountAggregateInputType = {
id?: true
serverId?: true
serverUrl?: true
tokens?: true
clientInfo?: true
codeVerifier?: true
oauthState?: true
pendingAuth?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type McpServerCredentialAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which McpServerCredential to aggregate.
*/
where?: Prisma.McpServerCredentialWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServerCredentials to fetch.
*/
orderBy?: Prisma.McpServerCredentialOrderByWithRelationInput | Prisma.McpServerCredentialOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.McpServerCredentialWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServerCredentials 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` McpServerCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned McpServerCredentials
**/
_count?: true | McpServerCredentialCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: McpServerCredentialMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: McpServerCredentialMaxAggregateInputType
}
export type GetMcpServerCredentialAggregateType<T extends McpServerCredentialAggregateArgs> = {
[P in keyof T & keyof AggregateMcpServerCredential]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateMcpServerCredential[P]>
: Prisma.GetScalarType<T[P], AggregateMcpServerCredential[P]>
}
export type McpServerCredentialGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.McpServerCredentialWhereInput
orderBy?: Prisma.McpServerCredentialOrderByWithAggregationInput | Prisma.McpServerCredentialOrderByWithAggregationInput[]
by: Prisma.McpServerCredentialScalarFieldEnum[] | Prisma.McpServerCredentialScalarFieldEnum
having?: Prisma.McpServerCredentialScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: McpServerCredentialCountAggregateInputType | true
_min?: McpServerCredentialMinAggregateInputType
_max?: McpServerCredentialMaxAggregateInputType
}
export type McpServerCredentialGroupByOutputType = {
id: string
serverId: string
serverUrl: string
tokens:PrismaJson.McpStoredTokens | null
clientInfo:PrismaJson.McpStoredClientInfo | null
codeVerifier: string | null
oauthState: string | null
pendingAuth:PrismaJson.McpPendingAuth | null
createdAt: Date
updatedAt: Date
_count: McpServerCredentialCountAggregateOutputType | null
_min: McpServerCredentialMinAggregateOutputType | null
_max: McpServerCredentialMaxAggregateOutputType | null
}
export type GetMcpServerCredentialGroupByPayload<T extends McpServerCredentialGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<McpServerCredentialGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof McpServerCredentialGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], McpServerCredentialGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], McpServerCredentialGroupByOutputType[P]>
}
>
>
export type McpServerCredentialWhereInput = {
AND?: Prisma.McpServerCredentialWhereInput | Prisma.McpServerCredentialWhereInput[]
OR?: Prisma.McpServerCredentialWhereInput[]
NOT?: Prisma.McpServerCredentialWhereInput | Prisma.McpServerCredentialWhereInput[]
id?: Prisma.StringFilter<"McpServerCredential"> | string
serverId?: Prisma.StringFilter<"McpServerCredential"> | string
serverUrl?: Prisma.StringFilter<"McpServerCredential"> | string
tokens?: Prisma.JsonNullableFilter<"McpServerCredential">
clientInfo?: Prisma.JsonNullableFilter<"McpServerCredential">
codeVerifier?: Prisma.StringNullableFilter<"McpServerCredential"> | string | null
oauthState?: Prisma.StringNullableFilter<"McpServerCredential"> | string | null
pendingAuth?: Prisma.JsonNullableFilter<"McpServerCredential">
createdAt?: Prisma.DateTimeFilter<"McpServerCredential"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"McpServerCredential"> | Date | string
server?: Prisma.XOR<Prisma.McpServerScalarRelationFilter, Prisma.McpServerWhereInput>
}
export type McpServerCredentialOrderByWithRelationInput = {
id?: Prisma.SortOrder
serverId?: Prisma.SortOrder
serverUrl?: Prisma.SortOrder
tokens?: Prisma.SortOrderInput | Prisma.SortOrder
clientInfo?: Prisma.SortOrderInput | Prisma.SortOrder
codeVerifier?: Prisma.SortOrderInput | Prisma.SortOrder
oauthState?: Prisma.SortOrderInput | Prisma.SortOrder
pendingAuth?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
server?: Prisma.McpServerOrderByWithRelationInput
}
export type McpServerCredentialWhereUniqueInput = Prisma.AtLeast<{
id?: string
serverId?: string
AND?: Prisma.McpServerCredentialWhereInput | Prisma.McpServerCredentialWhereInput[]
OR?: Prisma.McpServerCredentialWhereInput[]
NOT?: Prisma.McpServerCredentialWhereInput | Prisma.McpServerCredentialWhereInput[]
serverUrl?: Prisma.StringFilter<"McpServerCredential"> | string
tokens?: Prisma.JsonNullableFilter<"McpServerCredential">
clientInfo?: Prisma.JsonNullableFilter<"McpServerCredential">
codeVerifier?: Prisma.StringNullableFilter<"McpServerCredential"> | string | null
oauthState?: Prisma.StringNullableFilter<"McpServerCredential"> | string | null
pendingAuth?: Prisma.JsonNullableFilter<"McpServerCredential">
createdAt?: Prisma.DateTimeFilter<"McpServerCredential"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"McpServerCredential"> | Date | string
server?: Prisma.XOR<Prisma.McpServerScalarRelationFilter, Prisma.McpServerWhereInput>
}, "id" | "serverId">
export type McpServerCredentialOrderByWithAggregationInput = {
id?: Prisma.SortOrder
serverId?: Prisma.SortOrder
serverUrl?: Prisma.SortOrder
tokens?: Prisma.SortOrderInput | Prisma.SortOrder
clientInfo?: Prisma.SortOrderInput | Prisma.SortOrder
codeVerifier?: Prisma.SortOrderInput | Prisma.SortOrder
oauthState?: Prisma.SortOrderInput | Prisma.SortOrder
pendingAuth?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.McpServerCredentialCountOrderByAggregateInput
_max?: Prisma.McpServerCredentialMaxOrderByAggregateInput
_min?: Prisma.McpServerCredentialMinOrderByAggregateInput
}
export type McpServerCredentialScalarWhereWithAggregatesInput = {
AND?: Prisma.McpServerCredentialScalarWhereWithAggregatesInput | Prisma.McpServerCredentialScalarWhereWithAggregatesInput[]
OR?: Prisma.McpServerCredentialScalarWhereWithAggregatesInput[]
NOT?: Prisma.McpServerCredentialScalarWhereWithAggregatesInput | Prisma.McpServerCredentialScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"McpServerCredential"> | string
serverId?: Prisma.StringWithAggregatesFilter<"McpServerCredential"> | string
serverUrl?: Prisma.StringWithAggregatesFilter<"McpServerCredential"> | string
tokens?: Prisma.JsonNullableWithAggregatesFilter<"McpServerCredential">
clientInfo?: Prisma.JsonNullableWithAggregatesFilter<"McpServerCredential">
codeVerifier?: Prisma.StringNullableWithAggregatesFilter<"McpServerCredential"> | string | null
oauthState?: Prisma.StringNullableWithAggregatesFilter<"McpServerCredential"> | string | null
pendingAuth?: Prisma.JsonNullableWithAggregatesFilter<"McpServerCredential">
createdAt?: Prisma.DateTimeWithAggregatesFilter<"McpServerCredential"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"McpServerCredential"> | Date | string
}
export type McpServerCredentialCreateInput = {
id?: string
serverUrl: string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: string | null
oauthState?: string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Date | string
updatedAt?: Date | string
server: Prisma.McpServerCreateNestedOneWithoutCredentialInput
}
export type McpServerCredentialUncheckedCreateInput = {
id?: string
serverId: string
serverUrl: string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: string | null
oauthState?: string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Date | string
updatedAt?: Date | string
}
export type McpServerCredentialUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
serverUrl?: Prisma.StringFieldUpdateOperationsInput | string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthState?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
server?: Prisma.McpServerUpdateOneRequiredWithoutCredentialNestedInput
}
export type McpServerCredentialUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
serverId?: Prisma.StringFieldUpdateOperationsInput | string
serverUrl?: Prisma.StringFieldUpdateOperationsInput | string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthState?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type McpServerCredentialCreateManyInput = {
id?: string
serverId: string
serverUrl: string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: string | null
oauthState?: string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Date | string
updatedAt?: Date | string
}
export type McpServerCredentialUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
serverUrl?: Prisma.StringFieldUpdateOperationsInput | string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthState?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type McpServerCredentialUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
serverId?: Prisma.StringFieldUpdateOperationsInput | string
serverUrl?: Prisma.StringFieldUpdateOperationsInput | string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthState?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type McpServerCredentialNullableScalarRelationFilter = {
is?: Prisma.McpServerCredentialWhereInput | null
isNot?: Prisma.McpServerCredentialWhereInput | null
}
export type McpServerCredentialCountOrderByAggregateInput = {
id?: Prisma.SortOrder
serverId?: Prisma.SortOrder
serverUrl?: Prisma.SortOrder
tokens?: Prisma.SortOrder
clientInfo?: Prisma.SortOrder
codeVerifier?: Prisma.SortOrder
oauthState?: Prisma.SortOrder
pendingAuth?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type McpServerCredentialMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
serverId?: Prisma.SortOrder
serverUrl?: Prisma.SortOrder
codeVerifier?: Prisma.SortOrder
oauthState?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type McpServerCredentialMinOrderByAggregateInput = {
id?: Prisma.SortOrder
serverId?: Prisma.SortOrder
serverUrl?: Prisma.SortOrder
codeVerifier?: Prisma.SortOrder
oauthState?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type McpServerCredentialCreateNestedOneWithoutServerInput = {
create?: Prisma.XOR<Prisma.McpServerCredentialCreateWithoutServerInput, Prisma.McpServerCredentialUncheckedCreateWithoutServerInput>
connectOrCreate?: Prisma.McpServerCredentialCreateOrConnectWithoutServerInput
connect?: Prisma.McpServerCredentialWhereUniqueInput
}
export type McpServerCredentialUncheckedCreateNestedOneWithoutServerInput = {
create?: Prisma.XOR<Prisma.McpServerCredentialCreateWithoutServerInput, Prisma.McpServerCredentialUncheckedCreateWithoutServerInput>
connectOrCreate?: Prisma.McpServerCredentialCreateOrConnectWithoutServerInput
connect?: Prisma.McpServerCredentialWhereUniqueInput
}
export type McpServerCredentialUpdateOneWithoutServerNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCredentialCreateWithoutServerInput, Prisma.McpServerCredentialUncheckedCreateWithoutServerInput>
connectOrCreate?: Prisma.McpServerCredentialCreateOrConnectWithoutServerInput
upsert?: Prisma.McpServerCredentialUpsertWithoutServerInput
disconnect?: Prisma.McpServerCredentialWhereInput | boolean
delete?: Prisma.McpServerCredentialWhereInput | boolean
connect?: Prisma.McpServerCredentialWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.McpServerCredentialUpdateToOneWithWhereWithoutServerInput, Prisma.McpServerCredentialUpdateWithoutServerInput>, Prisma.McpServerCredentialUncheckedUpdateWithoutServerInput>
}
export type McpServerCredentialUncheckedUpdateOneWithoutServerNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCredentialCreateWithoutServerInput, Prisma.McpServerCredentialUncheckedCreateWithoutServerInput>
connectOrCreate?: Prisma.McpServerCredentialCreateOrConnectWithoutServerInput
upsert?: Prisma.McpServerCredentialUpsertWithoutServerInput
disconnect?: Prisma.McpServerCredentialWhereInput | boolean
delete?: Prisma.McpServerCredentialWhereInput | boolean
connect?: Prisma.McpServerCredentialWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.McpServerCredentialUpdateToOneWithWhereWithoutServerInput, Prisma.McpServerCredentialUpdateWithoutServerInput>, Prisma.McpServerCredentialUncheckedUpdateWithoutServerInput>
}
export type McpServerCredentialCreateWithoutServerInput = {
id?: string
serverUrl: string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: string | null
oauthState?: string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Date | string
updatedAt?: Date | string
}
export type McpServerCredentialUncheckedCreateWithoutServerInput = {
id?: string
serverUrl: string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: string | null
oauthState?: string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Date | string
updatedAt?: Date | string
}
export type McpServerCredentialCreateOrConnectWithoutServerInput = {
where: Prisma.McpServerCredentialWhereUniqueInput
create: Prisma.XOR<Prisma.McpServerCredentialCreateWithoutServerInput, Prisma.McpServerCredentialUncheckedCreateWithoutServerInput>
}
export type McpServerCredentialUpsertWithoutServerInput = {
update: Prisma.XOR<Prisma.McpServerCredentialUpdateWithoutServerInput, Prisma.McpServerCredentialUncheckedUpdateWithoutServerInput>
create: Prisma.XOR<Prisma.McpServerCredentialCreateWithoutServerInput, Prisma.McpServerCredentialUncheckedCreateWithoutServerInput>
where?: Prisma.McpServerCredentialWhereInput
}
export type McpServerCredentialUpdateToOneWithWhereWithoutServerInput = {
where?: Prisma.McpServerCredentialWhereInput
data: Prisma.XOR<Prisma.McpServerCredentialUpdateWithoutServerInput, Prisma.McpServerCredentialUncheckedUpdateWithoutServerInput>
}
export type McpServerCredentialUpdateWithoutServerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
serverUrl?: Prisma.StringFieldUpdateOperationsInput | string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthState?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type McpServerCredentialUncheckedUpdateWithoutServerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
serverUrl?: Prisma.StringFieldUpdateOperationsInput | string
tokens?:PrismaJson.McpStoredTokens | Prisma.NullableJsonNullValueInput
clientInfo?:PrismaJson.McpStoredClientInfo | Prisma.NullableJsonNullValueInput
codeVerifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
oauthState?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
pendingAuth?:PrismaJson.McpPendingAuth | Prisma.NullableJsonNullValueInput
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type McpServerCredentialSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
serverId?: boolean
serverUrl?: boolean
tokens?: boolean
clientInfo?: boolean
codeVerifier?: boolean
oauthState?: boolean
pendingAuth?: boolean
createdAt?: boolean
updatedAt?: boolean
server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mcpServerCredential"]>
export type McpServerCredentialSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
serverId?: boolean
serverUrl?: boolean
tokens?: boolean
clientInfo?: boolean
codeVerifier?: boolean
oauthState?: boolean
pendingAuth?: boolean
createdAt?: boolean
updatedAt?: boolean
server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mcpServerCredential"]>
export type McpServerCredentialSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
serverId?: boolean
serverUrl?: boolean
tokens?: boolean
clientInfo?: boolean
codeVerifier?: boolean
oauthState?: boolean
pendingAuth?: boolean
createdAt?: boolean
updatedAt?: boolean
server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mcpServerCredential"]>
export type McpServerCredentialSelectScalar = {
id?: boolean
serverId?: boolean
serverUrl?: boolean
tokens?: boolean
clientInfo?: boolean
codeVerifier?: boolean
oauthState?: boolean
pendingAuth?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type McpServerCredentialOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "serverId" | "serverUrl" | "tokens" | "clientInfo" | "codeVerifier" | "oauthState" | "pendingAuth" | "createdAt" | "updatedAt", ExtArgs["result"]["mcpServerCredential"]>
export type McpServerCredentialInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}
export type McpServerCredentialIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}
export type McpServerCredentialIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>
}
export type $McpServerCredentialPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "McpServerCredential"
objects: {
server: Prisma.$McpServerPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
serverId: string
serverUrl: string
/**
* [McpStoredTokens]
*/
tokens:PrismaJson.McpStoredTokens | null
/**
* [McpStoredClientInfo]
*/
clientInfo:PrismaJson.McpStoredClientInfo | null
codeVerifier: string | null
oauthState: string | null
/**
* [McpPendingAuth]
*/
pendingAuth:PrismaJson.McpPendingAuth | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["mcpServerCredential"]>
composites: {}
}
export type McpServerCredentialGetPayload<S extends boolean | null | undefined | McpServerCredentialDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload, S>
export type McpServerCredentialCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<McpServerCredentialFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: McpServerCredentialCountAggregateInputType | true
}
export interface McpServerCredentialDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['McpServerCredential'], meta: { name: 'McpServerCredential' } }
/**
* Find zero or one McpServerCredential that matches the filter.
* @param {McpServerCredentialFindUniqueArgs} args - Arguments to find a McpServerCredential
* @example
* // Get one McpServerCredential
* const mcpServerCredential = await prisma.mcpServerCredential.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends McpServerCredentialFindUniqueArgs>(args: Prisma.SelectSubset<T, McpServerCredentialFindUniqueArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one McpServerCredential that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {McpServerCredentialFindUniqueOrThrowArgs} args - Arguments to find a McpServerCredential
* @example
* // Get one McpServerCredential
* const mcpServerCredential = await prisma.mcpServerCredential.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends McpServerCredentialFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, McpServerCredentialFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first McpServerCredential 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 {McpServerCredentialFindFirstArgs} args - Arguments to find a McpServerCredential
* @example
* // Get one McpServerCredential
* const mcpServerCredential = await prisma.mcpServerCredential.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends McpServerCredentialFindFirstArgs>(args?: Prisma.SelectSubset<T, McpServerCredentialFindFirstArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first McpServerCredential 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 {McpServerCredentialFindFirstOrThrowArgs} args - Arguments to find a McpServerCredential
* @example
* // Get one McpServerCredential
* const mcpServerCredential = await prisma.mcpServerCredential.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends McpServerCredentialFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, McpServerCredentialFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more McpServerCredentials 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 {McpServerCredentialFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all McpServerCredentials
* const mcpServerCredentials = await prisma.mcpServerCredential.findMany()
*
* // Get first 10 McpServerCredentials
* const mcpServerCredentials = await prisma.mcpServerCredential.findMany({ take: 10 })
*
* // Only select the `id`
* const mcpServerCredentialWithIdOnly = await prisma.mcpServerCredential.findMany({ select: { id: true } })
*
*/
findMany<T extends McpServerCredentialFindManyArgs>(args?: Prisma.SelectSubset<T, McpServerCredentialFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a McpServerCredential.
* @param {McpServerCredentialCreateArgs} args - Arguments to create a McpServerCredential.
* @example
* // Create one McpServerCredential
* const McpServerCredential = await prisma.mcpServerCredential.create({
* data: {
* // ... data to create a McpServerCredential
* }
* })
*
*/
create<T extends McpServerCredentialCreateArgs>(args: Prisma.SelectSubset<T, McpServerCredentialCreateArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many McpServerCredentials.
* @param {McpServerCredentialCreateManyArgs} args - Arguments to create many McpServerCredentials.
* @example
* // Create many McpServerCredentials
* const mcpServerCredential = await prisma.mcpServerCredential.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends McpServerCredentialCreateManyArgs>(args?: Prisma.SelectSubset<T, McpServerCredentialCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many McpServerCredentials and returns the data saved in the database.
* @param {McpServerCredentialCreateManyAndReturnArgs} args - Arguments to create many McpServerCredentials.
* @example
* // Create many McpServerCredentials
* const mcpServerCredential = await prisma.mcpServerCredential.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many McpServerCredentials and only return the `id`
* const mcpServerCredentialWithIdOnly = await prisma.mcpServerCredential.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 McpServerCredentialCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, McpServerCredentialCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a McpServerCredential.
* @param {McpServerCredentialDeleteArgs} args - Arguments to delete one McpServerCredential.
* @example
* // Delete one McpServerCredential
* const McpServerCredential = await prisma.mcpServerCredential.delete({
* where: {
* // ... filter to delete one McpServerCredential
* }
* })
*
*/
delete<T extends McpServerCredentialDeleteArgs>(args: Prisma.SelectSubset<T, McpServerCredentialDeleteArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one McpServerCredential.
* @param {McpServerCredentialUpdateArgs} args - Arguments to update one McpServerCredential.
* @example
* // Update one McpServerCredential
* const mcpServerCredential = await prisma.mcpServerCredential.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends McpServerCredentialUpdateArgs>(args: Prisma.SelectSubset<T, McpServerCredentialUpdateArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more McpServerCredentials.
* @param {McpServerCredentialDeleteManyArgs} args - Arguments to filter McpServerCredentials to delete.
* @example
* // Delete a few McpServerCredentials
* const { count } = await prisma.mcpServerCredential.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends McpServerCredentialDeleteManyArgs>(args?: Prisma.SelectSubset<T, McpServerCredentialDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more McpServerCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerCredentialUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many McpServerCredentials
* const mcpServerCredential = await prisma.mcpServerCredential.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends McpServerCredentialUpdateManyArgs>(args: Prisma.SelectSubset<T, McpServerCredentialUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more McpServerCredentials and returns the data updated in the database.
* @param {McpServerCredentialUpdateManyAndReturnArgs} args - Arguments to update many McpServerCredentials.
* @example
* // Update many McpServerCredentials
* const mcpServerCredential = await prisma.mcpServerCredential.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more McpServerCredentials and only return the `id`
* const mcpServerCredentialWithIdOnly = await prisma.mcpServerCredential.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 McpServerCredentialUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, McpServerCredentialUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one McpServerCredential.
* @param {McpServerCredentialUpsertArgs} args - Arguments to update or create a McpServerCredential.
* @example
* // Update or create a McpServerCredential
* const mcpServerCredential = await prisma.mcpServerCredential.upsert({
* create: {
* // ... data to create a McpServerCredential
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the McpServerCredential we want to update
* }
* })
*/
upsert<T extends McpServerCredentialUpsertArgs>(args: Prisma.SelectSubset<T, McpServerCredentialUpsertArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of McpServerCredentials.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerCredentialCountArgs} args - Arguments to filter McpServerCredentials to count.
* @example
* // Count the number of McpServerCredentials
* const count = await prisma.mcpServerCredential.count({
* where: {
* // ... the filter for the McpServerCredentials we want to count
* }
* })
**/
count<T extends McpServerCredentialCountArgs>(
args?: Prisma.Subset<T, McpServerCredentialCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], McpServerCredentialCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a McpServerCredential.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerCredentialAggregateArgs} 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 McpServerCredentialAggregateArgs>(args: Prisma.Subset<T, McpServerCredentialAggregateArgs>): Prisma.PrismaPromise<GetMcpServerCredentialAggregateType<T>>
/**
* Group by McpServerCredential.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerCredentialGroupByArgs} 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 McpServerCredentialGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: McpServerCredentialGroupByArgs['orderBy'] }
: { orderBy?: McpServerCredentialGroupByArgs['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, McpServerCredentialGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMcpServerCredentialGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the McpServerCredential model
*/
readonly fields: McpServerCredentialFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for McpServerCredential.
* 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__McpServerCredentialClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
server<T extends Prisma.McpServerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpServerDefaultArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the McpServerCredential model
*/
export interface McpServerCredentialFieldRefs {
readonly id: Prisma.FieldRef<"McpServerCredential", 'String'>
readonly serverId: Prisma.FieldRef<"McpServerCredential", 'String'>
readonly serverUrl: Prisma.FieldRef<"McpServerCredential", 'String'>
readonly tokens: Prisma.FieldRef<"McpServerCredential", 'Json'>
readonly clientInfo: Prisma.FieldRef<"McpServerCredential", 'Json'>
readonly codeVerifier: Prisma.FieldRef<"McpServerCredential", 'String'>
readonly oauthState: Prisma.FieldRef<"McpServerCredential", 'String'>
readonly pendingAuth: Prisma.FieldRef<"McpServerCredential", 'Json'>
readonly createdAt: Prisma.FieldRef<"McpServerCredential", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"McpServerCredential", 'DateTime'>
}
// Custom InputTypes
/**
* McpServerCredential findUnique
*/
export type McpServerCredentialFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
/**
* Filter, which McpServerCredential to fetch.
*/
where: Prisma.McpServerCredentialWhereUniqueInput
}
/**
* McpServerCredential findUniqueOrThrow
*/
export type McpServerCredentialFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
/**
* Filter, which McpServerCredential to fetch.
*/
where: Prisma.McpServerCredentialWhereUniqueInput
}
/**
* McpServerCredential findFirst
*/
export type McpServerCredentialFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
/**
* Filter, which McpServerCredential to fetch.
*/
where?: Prisma.McpServerCredentialWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServerCredentials to fetch.
*/
orderBy?: Prisma.McpServerCredentialOrderByWithRelationInput | Prisma.McpServerCredentialOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for McpServerCredentials.
*/
cursor?: Prisma.McpServerCredentialWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServerCredentials 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` McpServerCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpServerCredentials.
*/
distinct?: Prisma.McpServerCredentialScalarFieldEnum | Prisma.McpServerCredentialScalarFieldEnum[]
}
/**
* McpServerCredential findFirstOrThrow
*/
export type McpServerCredentialFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
/**
* Filter, which McpServerCredential to fetch.
*/
where?: Prisma.McpServerCredentialWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServerCredentials to fetch.
*/
orderBy?: Prisma.McpServerCredentialOrderByWithRelationInput | Prisma.McpServerCredentialOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for McpServerCredentials.
*/
cursor?: Prisma.McpServerCredentialWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServerCredentials 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` McpServerCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpServerCredentials.
*/
distinct?: Prisma.McpServerCredentialScalarFieldEnum | Prisma.McpServerCredentialScalarFieldEnum[]
}
/**
* McpServerCredential findMany
*/
export type McpServerCredentialFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
/**
* Filter, which McpServerCredentials to fetch.
*/
where?: Prisma.McpServerCredentialWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServerCredentials to fetch.
*/
orderBy?: Prisma.McpServerCredentialOrderByWithRelationInput | Prisma.McpServerCredentialOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing McpServerCredentials.
*/
cursor?: Prisma.McpServerCredentialWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServerCredentials 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` McpServerCredentials.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpServerCredentials.
*/
distinct?: Prisma.McpServerCredentialScalarFieldEnum | Prisma.McpServerCredentialScalarFieldEnum[]
}
/**
* McpServerCredential create
*/
export type McpServerCredentialCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
/**
* The data needed to create a McpServerCredential.
*/
data: Prisma.XOR<Prisma.McpServerCredentialCreateInput, Prisma.McpServerCredentialUncheckedCreateInput>
}
/**
* McpServerCredential createMany
*/
export type McpServerCredentialCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many McpServerCredentials.
*/
data: Prisma.McpServerCredentialCreateManyInput | Prisma.McpServerCredentialCreateManyInput[]
skipDuplicates?: boolean
}
/**
* McpServerCredential createManyAndReturn
*/
export type McpServerCredentialCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* The data used to create many McpServerCredentials.
*/
data: Prisma.McpServerCredentialCreateManyInput | Prisma.McpServerCredentialCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* McpServerCredential update
*/
export type McpServerCredentialUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
/**
* The data needed to update a McpServerCredential.
*/
data: Prisma.XOR<Prisma.McpServerCredentialUpdateInput, Prisma.McpServerCredentialUncheckedUpdateInput>
/**
* Choose, which McpServerCredential to update.
*/
where: Prisma.McpServerCredentialWhereUniqueInput
}
/**
* McpServerCredential updateMany
*/
export type McpServerCredentialUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update McpServerCredentials.
*/
data: Prisma.XOR<Prisma.McpServerCredentialUpdateManyMutationInput, Prisma.McpServerCredentialUncheckedUpdateManyInput>
/**
* Filter which McpServerCredentials to update
*/
where?: Prisma.McpServerCredentialWhereInput
/**
* Limit how many McpServerCredentials to update.
*/
limit?: number
}
/**
* McpServerCredential updateManyAndReturn
*/
export type McpServerCredentialUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* The data used to update McpServerCredentials.
*/
data: Prisma.XOR<Prisma.McpServerCredentialUpdateManyMutationInput, Prisma.McpServerCredentialUncheckedUpdateManyInput>
/**
* Filter which McpServerCredentials to update
*/
where?: Prisma.McpServerCredentialWhereInput
/**
* Limit how many McpServerCredentials to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* McpServerCredential upsert
*/
export type McpServerCredentialUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
/**
* The filter to search for the McpServerCredential to update in case it exists.
*/
where: Prisma.McpServerCredentialWhereUniqueInput
/**
* In case the McpServerCredential found by the `where` argument doesn't exist, create a new McpServerCredential with this data.
*/
create: Prisma.XOR<Prisma.McpServerCredentialCreateInput, Prisma.McpServerCredentialUncheckedCreateInput>
/**
* In case the McpServerCredential was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.McpServerCredentialUpdateInput, Prisma.McpServerCredentialUncheckedUpdateInput>
}
/**
* McpServerCredential delete
*/
export type McpServerCredentialDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
/**
* Filter which McpServerCredential to delete.
*/
where: Prisma.McpServerCredentialWhereUniqueInput
}
/**
* McpServerCredential deleteMany
*/
export type McpServerCredentialDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which McpServerCredentials to delete
*/
where?: Prisma.McpServerCredentialWhereInput
/**
* Limit how many McpServerCredentials to delete.
*/
limit?: number
}
/**
* McpServerCredential without action
*/
export type McpServerCredentialDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
}