Files
2026-07-08 16:15:37 +02:00

1766 lines
76 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `McpOAuthAccessToken` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model McpOAuthAccessToken
*
*/
export type McpOAuthAccessTokenModel = runtime.Types.Result.DefaultSelection<Prisma.$McpOAuthAccessTokenPayload>
export type AggregateMcpOAuthAccessToken = {
_count: McpOAuthAccessTokenCountAggregateOutputType | null
_min: McpOAuthAccessTokenMinAggregateOutputType | null
_max: McpOAuthAccessTokenMaxAggregateOutputType | null
}
export type McpOAuthAccessTokenMinAggregateOutputType = {
id: string | null
createdAt: Date | null
clientId: string | null
userId: string | null
tenantId: string | null
tenantSlug: string | null
tokenHash: string | null
resource: string | null
expiresAt: Date | null
revokedAt: Date | null
refreshTokenId: string | null
}
export type McpOAuthAccessTokenMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
clientId: string | null
userId: string | null
tenantId: string | null
tenantSlug: string | null
tokenHash: string | null
resource: string | null
expiresAt: Date | null
revokedAt: Date | null
refreshTokenId: string | null
}
export type McpOAuthAccessTokenCountAggregateOutputType = {
id: number
createdAt: number
clientId: number
userId: number
tenantId: number
tenantSlug: number
tokenHash: number
scopes: number
resource: number
expiresAt: number
revokedAt: number
refreshTokenId: number
_all: number
}
export type McpOAuthAccessTokenMinAggregateInputType = {
id?: true
createdAt?: true
clientId?: true
userId?: true
tenantId?: true
tenantSlug?: true
tokenHash?: true
resource?: true
expiresAt?: true
revokedAt?: true
refreshTokenId?: true
}
export type McpOAuthAccessTokenMaxAggregateInputType = {
id?: true
createdAt?: true
clientId?: true
userId?: true
tenantId?: true
tenantSlug?: true
tokenHash?: true
resource?: true
expiresAt?: true
revokedAt?: true
refreshTokenId?: true
}
export type McpOAuthAccessTokenCountAggregateInputType = {
id?: true
createdAt?: true
clientId?: true
userId?: true
tenantId?: true
tenantSlug?: true
tokenHash?: true
scopes?: true
resource?: true
expiresAt?: true
revokedAt?: true
refreshTokenId?: true
_all?: true
}
export type McpOAuthAccessTokenAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which McpOAuthAccessToken to aggregate.
*/
where?: Prisma.McpOAuthAccessTokenWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpOAuthAccessTokens to fetch.
*/
orderBy?: Prisma.McpOAuthAccessTokenOrderByWithRelationInput | Prisma.McpOAuthAccessTokenOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.McpOAuthAccessTokenWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpOAuthAccessTokens 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` McpOAuthAccessTokens.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned McpOAuthAccessTokens
**/
_count?: true | McpOAuthAccessTokenCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: McpOAuthAccessTokenMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: McpOAuthAccessTokenMaxAggregateInputType
}
export type GetMcpOAuthAccessTokenAggregateType<T extends McpOAuthAccessTokenAggregateArgs> = {
[P in keyof T & keyof AggregateMcpOAuthAccessToken]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateMcpOAuthAccessToken[P]>
: Prisma.GetScalarType<T[P], AggregateMcpOAuthAccessToken[P]>
}
export type McpOAuthAccessTokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.McpOAuthAccessTokenWhereInput
orderBy?: Prisma.McpOAuthAccessTokenOrderByWithAggregationInput | Prisma.McpOAuthAccessTokenOrderByWithAggregationInput[]
by: Prisma.McpOAuthAccessTokenScalarFieldEnum[] | Prisma.McpOAuthAccessTokenScalarFieldEnum
having?: Prisma.McpOAuthAccessTokenScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: McpOAuthAccessTokenCountAggregateInputType | true
_min?: McpOAuthAccessTokenMinAggregateInputType
_max?: McpOAuthAccessTokenMaxAggregateInputType
}
export type McpOAuthAccessTokenGroupByOutputType = {
id: string
createdAt: Date
clientId: string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: runtime.JsonValue
resource: string
expiresAt: Date
revokedAt: Date | null
refreshTokenId: string | null
_count: McpOAuthAccessTokenCountAggregateOutputType | null
_min: McpOAuthAccessTokenMinAggregateOutputType | null
_max: McpOAuthAccessTokenMaxAggregateOutputType | null
}
export type GetMcpOAuthAccessTokenGroupByPayload<T extends McpOAuthAccessTokenGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<McpOAuthAccessTokenGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof McpOAuthAccessTokenGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], McpOAuthAccessTokenGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], McpOAuthAccessTokenGroupByOutputType[P]>
}
>
>
export type McpOAuthAccessTokenWhereInput = {
AND?: Prisma.McpOAuthAccessTokenWhereInput | Prisma.McpOAuthAccessTokenWhereInput[]
OR?: Prisma.McpOAuthAccessTokenWhereInput[]
NOT?: Prisma.McpOAuthAccessTokenWhereInput | Prisma.McpOAuthAccessTokenWhereInput[]
id?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
createdAt?: Prisma.DateTimeFilter<"McpOAuthAccessToken"> | Date | string
clientId?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
userId?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
tenantId?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
tenantSlug?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
tokenHash?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
scopes?: Prisma.JsonFilter<"McpOAuthAccessToken">
resource?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
expiresAt?: Prisma.DateTimeFilter<"McpOAuthAccessToken"> | Date | string
revokedAt?: Prisma.DateTimeNullableFilter<"McpOAuthAccessToken"> | Date | string | null
refreshTokenId?: Prisma.StringNullableFilter<"McpOAuthAccessToken"> | string | null
client?: Prisma.XOR<Prisma.McpOAuthClientScalarRelationFilter, Prisma.McpOAuthClientWhereInput>
refreshToken?: Prisma.XOR<Prisma.McpOAuthRefreshTokenNullableScalarRelationFilter, Prisma.McpOAuthRefreshTokenWhereInput> | null
}
export type McpOAuthAccessTokenOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
clientId?: Prisma.SortOrder
userId?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
tenantSlug?: Prisma.SortOrder
tokenHash?: Prisma.SortOrder
scopes?: Prisma.SortOrder
resource?: Prisma.SortOrder
expiresAt?: Prisma.SortOrder
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
refreshTokenId?: Prisma.SortOrderInput | Prisma.SortOrder
client?: Prisma.McpOAuthClientOrderByWithRelationInput
refreshToken?: Prisma.McpOAuthRefreshTokenOrderByWithRelationInput
}
export type McpOAuthAccessTokenWhereUniqueInput = Prisma.AtLeast<{
id?: string
tokenHash?: string
AND?: Prisma.McpOAuthAccessTokenWhereInput | Prisma.McpOAuthAccessTokenWhereInput[]
OR?: Prisma.McpOAuthAccessTokenWhereInput[]
NOT?: Prisma.McpOAuthAccessTokenWhereInput | Prisma.McpOAuthAccessTokenWhereInput[]
createdAt?: Prisma.DateTimeFilter<"McpOAuthAccessToken"> | Date | string
clientId?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
userId?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
tenantId?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
tenantSlug?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
scopes?: Prisma.JsonFilter<"McpOAuthAccessToken">
resource?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
expiresAt?: Prisma.DateTimeFilter<"McpOAuthAccessToken"> | Date | string
revokedAt?: Prisma.DateTimeNullableFilter<"McpOAuthAccessToken"> | Date | string | null
refreshTokenId?: Prisma.StringNullableFilter<"McpOAuthAccessToken"> | string | null
client?: Prisma.XOR<Prisma.McpOAuthClientScalarRelationFilter, Prisma.McpOAuthClientWhereInput>
refreshToken?: Prisma.XOR<Prisma.McpOAuthRefreshTokenNullableScalarRelationFilter, Prisma.McpOAuthRefreshTokenWhereInput> | null
}, "id" | "tokenHash">
export type McpOAuthAccessTokenOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
clientId?: Prisma.SortOrder
userId?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
tenantSlug?: Prisma.SortOrder
tokenHash?: Prisma.SortOrder
scopes?: Prisma.SortOrder
resource?: Prisma.SortOrder
expiresAt?: Prisma.SortOrder
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
refreshTokenId?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.McpOAuthAccessTokenCountOrderByAggregateInput
_max?: Prisma.McpOAuthAccessTokenMaxOrderByAggregateInput
_min?: Prisma.McpOAuthAccessTokenMinOrderByAggregateInput
}
export type McpOAuthAccessTokenScalarWhereWithAggregatesInput = {
AND?: Prisma.McpOAuthAccessTokenScalarWhereWithAggregatesInput | Prisma.McpOAuthAccessTokenScalarWhereWithAggregatesInput[]
OR?: Prisma.McpOAuthAccessTokenScalarWhereWithAggregatesInput[]
NOT?: Prisma.McpOAuthAccessTokenScalarWhereWithAggregatesInput | Prisma.McpOAuthAccessTokenScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"McpOAuthAccessToken"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"McpOAuthAccessToken"> | Date | string
clientId?: Prisma.StringWithAggregatesFilter<"McpOAuthAccessToken"> | string
userId?: Prisma.StringWithAggregatesFilter<"McpOAuthAccessToken"> | string
tenantId?: Prisma.StringWithAggregatesFilter<"McpOAuthAccessToken"> | string
tenantSlug?: Prisma.StringWithAggregatesFilter<"McpOAuthAccessToken"> | string
tokenHash?: Prisma.StringWithAggregatesFilter<"McpOAuthAccessToken"> | string
scopes?: Prisma.JsonWithAggregatesFilter<"McpOAuthAccessToken">
resource?: Prisma.StringWithAggregatesFilter<"McpOAuthAccessToken"> | string
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"McpOAuthAccessToken"> | Date | string
revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpOAuthAccessToken"> | Date | string | null
refreshTokenId?: Prisma.StringNullableWithAggregatesFilter<"McpOAuthAccessToken"> | string | null
}
export type McpOAuthAccessTokenCreateInput = {
id?: string
createdAt?: Date | string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource: string
expiresAt: Date | string
revokedAt?: Date | string | null
client: Prisma.McpOAuthClientCreateNestedOneWithoutAccessTokensInput
refreshToken?: Prisma.McpOAuthRefreshTokenCreateNestedOneWithoutAccessTokensInput
}
export type McpOAuthAccessTokenUncheckedCreateInput = {
id?: string
createdAt?: Date | string
clientId: string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource: string
expiresAt: Date | string
revokedAt?: Date | string | null
refreshTokenId?: string | null
}
export type McpOAuthAccessTokenUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
client?: Prisma.McpOAuthClientUpdateOneRequiredWithoutAccessTokensNestedInput
refreshToken?: Prisma.McpOAuthRefreshTokenUpdateOneWithoutAccessTokensNestedInput
}
export type McpOAuthAccessTokenUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
clientId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type McpOAuthAccessTokenCreateManyInput = {
id?: string
createdAt?: Date | string
clientId: string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource: string
expiresAt: Date | string
revokedAt?: Date | string | null
refreshTokenId?: string | null
}
export type McpOAuthAccessTokenUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type McpOAuthAccessTokenUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
clientId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type McpOAuthAccessTokenListRelationFilter = {
every?: Prisma.McpOAuthAccessTokenWhereInput
some?: Prisma.McpOAuthAccessTokenWhereInput
none?: Prisma.McpOAuthAccessTokenWhereInput
}
export type McpOAuthAccessTokenOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type McpOAuthAccessTokenCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
clientId?: Prisma.SortOrder
userId?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
tenantSlug?: Prisma.SortOrder
tokenHash?: Prisma.SortOrder
scopes?: Prisma.SortOrder
resource?: Prisma.SortOrder
expiresAt?: Prisma.SortOrder
revokedAt?: Prisma.SortOrder
refreshTokenId?: Prisma.SortOrder
}
export type McpOAuthAccessTokenMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
clientId?: Prisma.SortOrder
userId?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
tenantSlug?: Prisma.SortOrder
tokenHash?: Prisma.SortOrder
resource?: Prisma.SortOrder
expiresAt?: Prisma.SortOrder
revokedAt?: Prisma.SortOrder
refreshTokenId?: Prisma.SortOrder
}
export type McpOAuthAccessTokenMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
clientId?: Prisma.SortOrder
userId?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
tenantSlug?: Prisma.SortOrder
tokenHash?: Prisma.SortOrder
resource?: Prisma.SortOrder
expiresAt?: Prisma.SortOrder
revokedAt?: Prisma.SortOrder
refreshTokenId?: Prisma.SortOrder
}
export type McpOAuthAccessTokenCreateNestedManyWithoutClientInput = {
create?: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutClientInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput> | Prisma.McpOAuthAccessTokenCreateWithoutClientInput[] | Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput[]
connectOrCreate?: Prisma.McpOAuthAccessTokenCreateOrConnectWithoutClientInput | Prisma.McpOAuthAccessTokenCreateOrConnectWithoutClientInput[]
createMany?: Prisma.McpOAuthAccessTokenCreateManyClientInputEnvelope
connect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
}
export type McpOAuthAccessTokenUncheckedCreateNestedManyWithoutClientInput = {
create?: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutClientInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput> | Prisma.McpOAuthAccessTokenCreateWithoutClientInput[] | Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput[]
connectOrCreate?: Prisma.McpOAuthAccessTokenCreateOrConnectWithoutClientInput | Prisma.McpOAuthAccessTokenCreateOrConnectWithoutClientInput[]
createMany?: Prisma.McpOAuthAccessTokenCreateManyClientInputEnvelope
connect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
}
export type McpOAuthAccessTokenUpdateManyWithoutClientNestedInput = {
create?: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutClientInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput> | Prisma.McpOAuthAccessTokenCreateWithoutClientInput[] | Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput[]
connectOrCreate?: Prisma.McpOAuthAccessTokenCreateOrConnectWithoutClientInput | Prisma.McpOAuthAccessTokenCreateOrConnectWithoutClientInput[]
upsert?: Prisma.McpOAuthAccessTokenUpsertWithWhereUniqueWithoutClientInput | Prisma.McpOAuthAccessTokenUpsertWithWhereUniqueWithoutClientInput[]
createMany?: Prisma.McpOAuthAccessTokenCreateManyClientInputEnvelope
set?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
disconnect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
delete?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
connect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
update?: Prisma.McpOAuthAccessTokenUpdateWithWhereUniqueWithoutClientInput | Prisma.McpOAuthAccessTokenUpdateWithWhereUniqueWithoutClientInput[]
updateMany?: Prisma.McpOAuthAccessTokenUpdateManyWithWhereWithoutClientInput | Prisma.McpOAuthAccessTokenUpdateManyWithWhereWithoutClientInput[]
deleteMany?: Prisma.McpOAuthAccessTokenScalarWhereInput | Prisma.McpOAuthAccessTokenScalarWhereInput[]
}
export type McpOAuthAccessTokenUncheckedUpdateManyWithoutClientNestedInput = {
create?: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutClientInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput> | Prisma.McpOAuthAccessTokenCreateWithoutClientInput[] | Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput[]
connectOrCreate?: Prisma.McpOAuthAccessTokenCreateOrConnectWithoutClientInput | Prisma.McpOAuthAccessTokenCreateOrConnectWithoutClientInput[]
upsert?: Prisma.McpOAuthAccessTokenUpsertWithWhereUniqueWithoutClientInput | Prisma.McpOAuthAccessTokenUpsertWithWhereUniqueWithoutClientInput[]
createMany?: Prisma.McpOAuthAccessTokenCreateManyClientInputEnvelope
set?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
disconnect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
delete?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
connect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
update?: Prisma.McpOAuthAccessTokenUpdateWithWhereUniqueWithoutClientInput | Prisma.McpOAuthAccessTokenUpdateWithWhereUniqueWithoutClientInput[]
updateMany?: Prisma.McpOAuthAccessTokenUpdateManyWithWhereWithoutClientInput | Prisma.McpOAuthAccessTokenUpdateManyWithWhereWithoutClientInput[]
deleteMany?: Prisma.McpOAuthAccessTokenScalarWhereInput | Prisma.McpOAuthAccessTokenScalarWhereInput[]
}
export type McpOAuthAccessTokenCreateNestedManyWithoutRefreshTokenInput = {
create?: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput> | Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput[] | Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput[]
connectOrCreate?: Prisma.McpOAuthAccessTokenCreateOrConnectWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenCreateOrConnectWithoutRefreshTokenInput[]
createMany?: Prisma.McpOAuthAccessTokenCreateManyRefreshTokenInputEnvelope
connect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
}
export type McpOAuthAccessTokenUncheckedCreateNestedManyWithoutRefreshTokenInput = {
create?: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput> | Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput[] | Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput[]
connectOrCreate?: Prisma.McpOAuthAccessTokenCreateOrConnectWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenCreateOrConnectWithoutRefreshTokenInput[]
createMany?: Prisma.McpOAuthAccessTokenCreateManyRefreshTokenInputEnvelope
connect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
}
export type McpOAuthAccessTokenUpdateManyWithoutRefreshTokenNestedInput = {
create?: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput> | Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput[] | Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput[]
connectOrCreate?: Prisma.McpOAuthAccessTokenCreateOrConnectWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenCreateOrConnectWithoutRefreshTokenInput[]
upsert?: Prisma.McpOAuthAccessTokenUpsertWithWhereUniqueWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenUpsertWithWhereUniqueWithoutRefreshTokenInput[]
createMany?: Prisma.McpOAuthAccessTokenCreateManyRefreshTokenInputEnvelope
set?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
disconnect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
delete?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
connect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
update?: Prisma.McpOAuthAccessTokenUpdateWithWhereUniqueWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenUpdateWithWhereUniqueWithoutRefreshTokenInput[]
updateMany?: Prisma.McpOAuthAccessTokenUpdateManyWithWhereWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenUpdateManyWithWhereWithoutRefreshTokenInput[]
deleteMany?: Prisma.McpOAuthAccessTokenScalarWhereInput | Prisma.McpOAuthAccessTokenScalarWhereInput[]
}
export type McpOAuthAccessTokenUncheckedUpdateManyWithoutRefreshTokenNestedInput = {
create?: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput> | Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput[] | Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput[]
connectOrCreate?: Prisma.McpOAuthAccessTokenCreateOrConnectWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenCreateOrConnectWithoutRefreshTokenInput[]
upsert?: Prisma.McpOAuthAccessTokenUpsertWithWhereUniqueWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenUpsertWithWhereUniqueWithoutRefreshTokenInput[]
createMany?: Prisma.McpOAuthAccessTokenCreateManyRefreshTokenInputEnvelope
set?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
disconnect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
delete?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
connect?: Prisma.McpOAuthAccessTokenWhereUniqueInput | Prisma.McpOAuthAccessTokenWhereUniqueInput[]
update?: Prisma.McpOAuthAccessTokenUpdateWithWhereUniqueWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenUpdateWithWhereUniqueWithoutRefreshTokenInput[]
updateMany?: Prisma.McpOAuthAccessTokenUpdateManyWithWhereWithoutRefreshTokenInput | Prisma.McpOAuthAccessTokenUpdateManyWithWhereWithoutRefreshTokenInput[]
deleteMany?: Prisma.McpOAuthAccessTokenScalarWhereInput | Prisma.McpOAuthAccessTokenScalarWhereInput[]
}
export type McpOAuthAccessTokenCreateWithoutClientInput = {
id?: string
createdAt?: Date | string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource: string
expiresAt: Date | string
revokedAt?: Date | string | null
refreshToken?: Prisma.McpOAuthRefreshTokenCreateNestedOneWithoutAccessTokensInput
}
export type McpOAuthAccessTokenUncheckedCreateWithoutClientInput = {
id?: string
createdAt?: Date | string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource: string
expiresAt: Date | string
revokedAt?: Date | string | null
refreshTokenId?: string | null
}
export type McpOAuthAccessTokenCreateOrConnectWithoutClientInput = {
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
create: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutClientInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput>
}
export type McpOAuthAccessTokenCreateManyClientInputEnvelope = {
data: Prisma.McpOAuthAccessTokenCreateManyClientInput | Prisma.McpOAuthAccessTokenCreateManyClientInput[]
skipDuplicates?: boolean
}
export type McpOAuthAccessTokenUpsertWithWhereUniqueWithoutClientInput = {
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
update: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateWithoutClientInput, Prisma.McpOAuthAccessTokenUncheckedUpdateWithoutClientInput>
create: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutClientInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutClientInput>
}
export type McpOAuthAccessTokenUpdateWithWhereUniqueWithoutClientInput = {
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
data: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateWithoutClientInput, Prisma.McpOAuthAccessTokenUncheckedUpdateWithoutClientInput>
}
export type McpOAuthAccessTokenUpdateManyWithWhereWithoutClientInput = {
where: Prisma.McpOAuthAccessTokenScalarWhereInput
data: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateManyMutationInput, Prisma.McpOAuthAccessTokenUncheckedUpdateManyWithoutClientInput>
}
export type McpOAuthAccessTokenScalarWhereInput = {
AND?: Prisma.McpOAuthAccessTokenScalarWhereInput | Prisma.McpOAuthAccessTokenScalarWhereInput[]
OR?: Prisma.McpOAuthAccessTokenScalarWhereInput[]
NOT?: Prisma.McpOAuthAccessTokenScalarWhereInput | Prisma.McpOAuthAccessTokenScalarWhereInput[]
id?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
createdAt?: Prisma.DateTimeFilter<"McpOAuthAccessToken"> | Date | string
clientId?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
userId?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
tenantId?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
tenantSlug?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
tokenHash?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
scopes?: Prisma.JsonFilter<"McpOAuthAccessToken">
resource?: Prisma.StringFilter<"McpOAuthAccessToken"> | string
expiresAt?: Prisma.DateTimeFilter<"McpOAuthAccessToken"> | Date | string
revokedAt?: Prisma.DateTimeNullableFilter<"McpOAuthAccessToken"> | Date | string | null
refreshTokenId?: Prisma.StringNullableFilter<"McpOAuthAccessToken"> | string | null
}
export type McpOAuthAccessTokenCreateWithoutRefreshTokenInput = {
id?: string
createdAt?: Date | string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource: string
expiresAt: Date | string
revokedAt?: Date | string | null
client: Prisma.McpOAuthClientCreateNestedOneWithoutAccessTokensInput
}
export type McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput = {
id?: string
createdAt?: Date | string
clientId: string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource: string
expiresAt: Date | string
revokedAt?: Date | string | null
}
export type McpOAuthAccessTokenCreateOrConnectWithoutRefreshTokenInput = {
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
create: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput>
}
export type McpOAuthAccessTokenCreateManyRefreshTokenInputEnvelope = {
data: Prisma.McpOAuthAccessTokenCreateManyRefreshTokenInput | Prisma.McpOAuthAccessTokenCreateManyRefreshTokenInput[]
skipDuplicates?: boolean
}
export type McpOAuthAccessTokenUpsertWithWhereUniqueWithoutRefreshTokenInput = {
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
update: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateWithoutRefreshTokenInput, Prisma.McpOAuthAccessTokenUncheckedUpdateWithoutRefreshTokenInput>
create: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateWithoutRefreshTokenInput, Prisma.McpOAuthAccessTokenUncheckedCreateWithoutRefreshTokenInput>
}
export type McpOAuthAccessTokenUpdateWithWhereUniqueWithoutRefreshTokenInput = {
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
data: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateWithoutRefreshTokenInput, Prisma.McpOAuthAccessTokenUncheckedUpdateWithoutRefreshTokenInput>
}
export type McpOAuthAccessTokenUpdateManyWithWhereWithoutRefreshTokenInput = {
where: Prisma.McpOAuthAccessTokenScalarWhereInput
data: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateManyMutationInput, Prisma.McpOAuthAccessTokenUncheckedUpdateManyWithoutRefreshTokenInput>
}
export type McpOAuthAccessTokenCreateManyClientInput = {
id?: string
createdAt?: Date | string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource: string
expiresAt: Date | string
revokedAt?: Date | string | null
refreshTokenId?: string | null
}
export type McpOAuthAccessTokenUpdateWithoutClientInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshToken?: Prisma.McpOAuthRefreshTokenUpdateOneWithoutAccessTokensNestedInput
}
export type McpOAuthAccessTokenUncheckedUpdateWithoutClientInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type McpOAuthAccessTokenUncheckedUpdateManyWithoutClientInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
refreshTokenId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type McpOAuthAccessTokenCreateManyRefreshTokenInput = {
id?: string
createdAt?: Date | string
clientId: string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource: string
expiresAt: Date | string
revokedAt?: Date | string | null
}
export type McpOAuthAccessTokenUpdateWithoutRefreshTokenInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
client?: Prisma.McpOAuthClientUpdateOneRequiredWithoutAccessTokensNestedInput
}
export type McpOAuthAccessTokenUncheckedUpdateWithoutRefreshTokenInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
clientId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type McpOAuthAccessTokenUncheckedUpdateManyWithoutRefreshTokenInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
clientId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
tenantSlug?: Prisma.StringFieldUpdateOperationsInput | string
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue
resource?: Prisma.StringFieldUpdateOperationsInput | string
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type McpOAuthAccessTokenSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
clientId?: boolean
userId?: boolean
tenantId?: boolean
tenantSlug?: boolean
tokenHash?: boolean
scopes?: boolean
resource?: boolean
expiresAt?: boolean
revokedAt?: boolean
refreshTokenId?: boolean
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
refreshToken?: boolean | Prisma.McpOAuthAccessToken$refreshTokenArgs<ExtArgs>
}, ExtArgs["result"]["mcpOAuthAccessToken"]>
export type McpOAuthAccessTokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
clientId?: boolean
userId?: boolean
tenantId?: boolean
tenantSlug?: boolean
tokenHash?: boolean
scopes?: boolean
resource?: boolean
expiresAt?: boolean
revokedAt?: boolean
refreshTokenId?: boolean
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
refreshToken?: boolean | Prisma.McpOAuthAccessToken$refreshTokenArgs<ExtArgs>
}, ExtArgs["result"]["mcpOAuthAccessToken"]>
export type McpOAuthAccessTokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
clientId?: boolean
userId?: boolean
tenantId?: boolean
tenantSlug?: boolean
tokenHash?: boolean
scopes?: boolean
resource?: boolean
expiresAt?: boolean
revokedAt?: boolean
refreshTokenId?: boolean
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
refreshToken?: boolean | Prisma.McpOAuthAccessToken$refreshTokenArgs<ExtArgs>
}, ExtArgs["result"]["mcpOAuthAccessToken"]>
export type McpOAuthAccessTokenSelectScalar = {
id?: boolean
createdAt?: boolean
clientId?: boolean
userId?: boolean
tenantId?: boolean
tenantSlug?: boolean
tokenHash?: boolean
scopes?: boolean
resource?: boolean
expiresAt?: boolean
revokedAt?: boolean
refreshTokenId?: boolean
}
export type McpOAuthAccessTokenOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "clientId" | "userId" | "tenantId" | "tenantSlug" | "tokenHash" | "scopes" | "resource" | "expiresAt" | "revokedAt" | "refreshTokenId", ExtArgs["result"]["mcpOAuthAccessToken"]>
export type McpOAuthAccessTokenInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
refreshToken?: boolean | Prisma.McpOAuthAccessToken$refreshTokenArgs<ExtArgs>
}
export type McpOAuthAccessTokenIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
refreshToken?: boolean | Prisma.McpOAuthAccessToken$refreshTokenArgs<ExtArgs>
}
export type McpOAuthAccessTokenIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
refreshToken?: boolean | Prisma.McpOAuthAccessToken$refreshTokenArgs<ExtArgs>
}
export type $McpOAuthAccessTokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "McpOAuthAccessToken"
objects: {
client: Prisma.$McpOAuthClientPayload<ExtArgs>
refreshToken: Prisma.$McpOAuthRefreshTokenPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
clientId: string
userId: string
tenantId: string
tenantSlug: string
tokenHash: string
scopes: runtime.JsonValue
resource: string
expiresAt: Date
revokedAt: Date | null
refreshTokenId: string | null
}, ExtArgs["result"]["mcpOAuthAccessToken"]>
composites: {}
}
export type McpOAuthAccessTokenGetPayload<S extends boolean | null | undefined | McpOAuthAccessTokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload, S>
export type McpOAuthAccessTokenCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<McpOAuthAccessTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: McpOAuthAccessTokenCountAggregateInputType | true
}
export interface McpOAuthAccessTokenDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['McpOAuthAccessToken'], meta: { name: 'McpOAuthAccessToken' } }
/**
* Find zero or one McpOAuthAccessToken that matches the filter.
* @param {McpOAuthAccessTokenFindUniqueArgs} args - Arguments to find a McpOAuthAccessToken
* @example
* // Get one McpOAuthAccessToken
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends McpOAuthAccessTokenFindUniqueArgs>(args: Prisma.SelectSubset<T, McpOAuthAccessTokenFindUniqueArgs<ExtArgs>>): Prisma.Prisma__McpOAuthAccessTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one McpOAuthAccessToken that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {McpOAuthAccessTokenFindUniqueOrThrowArgs} args - Arguments to find a McpOAuthAccessToken
* @example
* // Get one McpOAuthAccessToken
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends McpOAuthAccessTokenFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, McpOAuthAccessTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpOAuthAccessTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first McpOAuthAccessToken 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 {McpOAuthAccessTokenFindFirstArgs} args - Arguments to find a McpOAuthAccessToken
* @example
* // Get one McpOAuthAccessToken
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends McpOAuthAccessTokenFindFirstArgs>(args?: Prisma.SelectSubset<T, McpOAuthAccessTokenFindFirstArgs<ExtArgs>>): Prisma.Prisma__McpOAuthAccessTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first McpOAuthAccessToken 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 {McpOAuthAccessTokenFindFirstOrThrowArgs} args - Arguments to find a McpOAuthAccessToken
* @example
* // Get one McpOAuthAccessToken
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends McpOAuthAccessTokenFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, McpOAuthAccessTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpOAuthAccessTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more McpOAuthAccessTokens 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 {McpOAuthAccessTokenFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all McpOAuthAccessTokens
* const mcpOAuthAccessTokens = await prisma.mcpOAuthAccessToken.findMany()
*
* // Get first 10 McpOAuthAccessTokens
* const mcpOAuthAccessTokens = await prisma.mcpOAuthAccessToken.findMany({ take: 10 })
*
* // Only select the `id`
* const mcpOAuthAccessTokenWithIdOnly = await prisma.mcpOAuthAccessToken.findMany({ select: { id: true } })
*
*/
findMany<T extends McpOAuthAccessTokenFindManyArgs>(args?: Prisma.SelectSubset<T, McpOAuthAccessTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a McpOAuthAccessToken.
* @param {McpOAuthAccessTokenCreateArgs} args - Arguments to create a McpOAuthAccessToken.
* @example
* // Create one McpOAuthAccessToken
* const McpOAuthAccessToken = await prisma.mcpOAuthAccessToken.create({
* data: {
* // ... data to create a McpOAuthAccessToken
* }
* })
*
*/
create<T extends McpOAuthAccessTokenCreateArgs>(args: Prisma.SelectSubset<T, McpOAuthAccessTokenCreateArgs<ExtArgs>>): Prisma.Prisma__McpOAuthAccessTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many McpOAuthAccessTokens.
* @param {McpOAuthAccessTokenCreateManyArgs} args - Arguments to create many McpOAuthAccessTokens.
* @example
* // Create many McpOAuthAccessTokens
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends McpOAuthAccessTokenCreateManyArgs>(args?: Prisma.SelectSubset<T, McpOAuthAccessTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many McpOAuthAccessTokens and returns the data saved in the database.
* @param {McpOAuthAccessTokenCreateManyAndReturnArgs} args - Arguments to create many McpOAuthAccessTokens.
* @example
* // Create many McpOAuthAccessTokens
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many McpOAuthAccessTokens and only return the `id`
* const mcpOAuthAccessTokenWithIdOnly = await prisma.mcpOAuthAccessToken.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 McpOAuthAccessTokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, McpOAuthAccessTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a McpOAuthAccessToken.
* @param {McpOAuthAccessTokenDeleteArgs} args - Arguments to delete one McpOAuthAccessToken.
* @example
* // Delete one McpOAuthAccessToken
* const McpOAuthAccessToken = await prisma.mcpOAuthAccessToken.delete({
* where: {
* // ... filter to delete one McpOAuthAccessToken
* }
* })
*
*/
delete<T extends McpOAuthAccessTokenDeleteArgs>(args: Prisma.SelectSubset<T, McpOAuthAccessTokenDeleteArgs<ExtArgs>>): Prisma.Prisma__McpOAuthAccessTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one McpOAuthAccessToken.
* @param {McpOAuthAccessTokenUpdateArgs} args - Arguments to update one McpOAuthAccessToken.
* @example
* // Update one McpOAuthAccessToken
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends McpOAuthAccessTokenUpdateArgs>(args: Prisma.SelectSubset<T, McpOAuthAccessTokenUpdateArgs<ExtArgs>>): Prisma.Prisma__McpOAuthAccessTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more McpOAuthAccessTokens.
* @param {McpOAuthAccessTokenDeleteManyArgs} args - Arguments to filter McpOAuthAccessTokens to delete.
* @example
* // Delete a few McpOAuthAccessTokens
* const { count } = await prisma.mcpOAuthAccessToken.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends McpOAuthAccessTokenDeleteManyArgs>(args?: Prisma.SelectSubset<T, McpOAuthAccessTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more McpOAuthAccessTokens.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpOAuthAccessTokenUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many McpOAuthAccessTokens
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends McpOAuthAccessTokenUpdateManyArgs>(args: Prisma.SelectSubset<T, McpOAuthAccessTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more McpOAuthAccessTokens and returns the data updated in the database.
* @param {McpOAuthAccessTokenUpdateManyAndReturnArgs} args - Arguments to update many McpOAuthAccessTokens.
* @example
* // Update many McpOAuthAccessTokens
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more McpOAuthAccessTokens and only return the `id`
* const mcpOAuthAccessTokenWithIdOnly = await prisma.mcpOAuthAccessToken.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 McpOAuthAccessTokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, McpOAuthAccessTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one McpOAuthAccessToken.
* @param {McpOAuthAccessTokenUpsertArgs} args - Arguments to update or create a McpOAuthAccessToken.
* @example
* // Update or create a McpOAuthAccessToken
* const mcpOAuthAccessToken = await prisma.mcpOAuthAccessToken.upsert({
* create: {
* // ... data to create a McpOAuthAccessToken
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the McpOAuthAccessToken we want to update
* }
* })
*/
upsert<T extends McpOAuthAccessTokenUpsertArgs>(args: Prisma.SelectSubset<T, McpOAuthAccessTokenUpsertArgs<ExtArgs>>): Prisma.Prisma__McpOAuthAccessTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of McpOAuthAccessTokens.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpOAuthAccessTokenCountArgs} args - Arguments to filter McpOAuthAccessTokens to count.
* @example
* // Count the number of McpOAuthAccessTokens
* const count = await prisma.mcpOAuthAccessToken.count({
* where: {
* // ... the filter for the McpOAuthAccessTokens we want to count
* }
* })
**/
count<T extends McpOAuthAccessTokenCountArgs>(
args?: Prisma.Subset<T, McpOAuthAccessTokenCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], McpOAuthAccessTokenCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a McpOAuthAccessToken.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpOAuthAccessTokenAggregateArgs} 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 McpOAuthAccessTokenAggregateArgs>(args: Prisma.Subset<T, McpOAuthAccessTokenAggregateArgs>): Prisma.PrismaPromise<GetMcpOAuthAccessTokenAggregateType<T>>
/**
* Group by McpOAuthAccessToken.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpOAuthAccessTokenGroupByArgs} 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 McpOAuthAccessTokenGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: McpOAuthAccessTokenGroupByArgs['orderBy'] }
: { orderBy?: McpOAuthAccessTokenGroupByArgs['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, McpOAuthAccessTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMcpOAuthAccessTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the McpOAuthAccessToken model
*/
readonly fields: McpOAuthAccessTokenFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for McpOAuthAccessToken.
* 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__McpOAuthAccessTokenClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
client<T extends Prisma.McpOAuthClientDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpOAuthClientDefaultArgs<ExtArgs>>): Prisma.Prisma__McpOAuthClientClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthClientPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
refreshToken<T extends Prisma.McpOAuthAccessToken$refreshTokenArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpOAuthAccessToken$refreshTokenArgs<ExtArgs>>): Prisma.Prisma__McpOAuthRefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<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 McpOAuthAccessToken model
*/
export interface McpOAuthAccessTokenFieldRefs {
readonly id: Prisma.FieldRef<"McpOAuthAccessToken", 'String'>
readonly createdAt: Prisma.FieldRef<"McpOAuthAccessToken", 'DateTime'>
readonly clientId: Prisma.FieldRef<"McpOAuthAccessToken", 'String'>
readonly userId: Prisma.FieldRef<"McpOAuthAccessToken", 'String'>
readonly tenantId: Prisma.FieldRef<"McpOAuthAccessToken", 'String'>
readonly tenantSlug: Prisma.FieldRef<"McpOAuthAccessToken", 'String'>
readonly tokenHash: Prisma.FieldRef<"McpOAuthAccessToken", 'String'>
readonly scopes: Prisma.FieldRef<"McpOAuthAccessToken", 'Json'>
readonly resource: Prisma.FieldRef<"McpOAuthAccessToken", 'String'>
readonly expiresAt: Prisma.FieldRef<"McpOAuthAccessToken", 'DateTime'>
readonly revokedAt: Prisma.FieldRef<"McpOAuthAccessToken", 'DateTime'>
readonly refreshTokenId: Prisma.FieldRef<"McpOAuthAccessToken", 'String'>
}
// Custom InputTypes
/**
* McpOAuthAccessToken findUnique
*/
export type McpOAuthAccessTokenFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
/**
* Filter, which McpOAuthAccessToken to fetch.
*/
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
}
/**
* McpOAuthAccessToken findUniqueOrThrow
*/
export type McpOAuthAccessTokenFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
/**
* Filter, which McpOAuthAccessToken to fetch.
*/
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
}
/**
* McpOAuthAccessToken findFirst
*/
export type McpOAuthAccessTokenFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
/**
* Filter, which McpOAuthAccessToken to fetch.
*/
where?: Prisma.McpOAuthAccessTokenWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpOAuthAccessTokens to fetch.
*/
orderBy?: Prisma.McpOAuthAccessTokenOrderByWithRelationInput | Prisma.McpOAuthAccessTokenOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for McpOAuthAccessTokens.
*/
cursor?: Prisma.McpOAuthAccessTokenWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpOAuthAccessTokens 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` McpOAuthAccessTokens.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpOAuthAccessTokens.
*/
distinct?: Prisma.McpOAuthAccessTokenScalarFieldEnum | Prisma.McpOAuthAccessTokenScalarFieldEnum[]
}
/**
* McpOAuthAccessToken findFirstOrThrow
*/
export type McpOAuthAccessTokenFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
/**
* Filter, which McpOAuthAccessToken to fetch.
*/
where?: Prisma.McpOAuthAccessTokenWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpOAuthAccessTokens to fetch.
*/
orderBy?: Prisma.McpOAuthAccessTokenOrderByWithRelationInput | Prisma.McpOAuthAccessTokenOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for McpOAuthAccessTokens.
*/
cursor?: Prisma.McpOAuthAccessTokenWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpOAuthAccessTokens 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` McpOAuthAccessTokens.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpOAuthAccessTokens.
*/
distinct?: Prisma.McpOAuthAccessTokenScalarFieldEnum | Prisma.McpOAuthAccessTokenScalarFieldEnum[]
}
/**
* McpOAuthAccessToken findMany
*/
export type McpOAuthAccessTokenFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
/**
* Filter, which McpOAuthAccessTokens to fetch.
*/
where?: Prisma.McpOAuthAccessTokenWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpOAuthAccessTokens to fetch.
*/
orderBy?: Prisma.McpOAuthAccessTokenOrderByWithRelationInput | Prisma.McpOAuthAccessTokenOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing McpOAuthAccessTokens.
*/
cursor?: Prisma.McpOAuthAccessTokenWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpOAuthAccessTokens 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` McpOAuthAccessTokens.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpOAuthAccessTokens.
*/
distinct?: Prisma.McpOAuthAccessTokenScalarFieldEnum | Prisma.McpOAuthAccessTokenScalarFieldEnum[]
}
/**
* McpOAuthAccessToken create
*/
export type McpOAuthAccessTokenCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
/**
* The data needed to create a McpOAuthAccessToken.
*/
data: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateInput, Prisma.McpOAuthAccessTokenUncheckedCreateInput>
}
/**
* McpOAuthAccessToken createMany
*/
export type McpOAuthAccessTokenCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many McpOAuthAccessTokens.
*/
data: Prisma.McpOAuthAccessTokenCreateManyInput | Prisma.McpOAuthAccessTokenCreateManyInput[]
skipDuplicates?: boolean
}
/**
* McpOAuthAccessToken createManyAndReturn
*/
export type McpOAuthAccessTokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* The data used to create many McpOAuthAccessTokens.
*/
data: Prisma.McpOAuthAccessTokenCreateManyInput | Prisma.McpOAuthAccessTokenCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* McpOAuthAccessToken update
*/
export type McpOAuthAccessTokenUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
/**
* The data needed to update a McpOAuthAccessToken.
*/
data: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateInput, Prisma.McpOAuthAccessTokenUncheckedUpdateInput>
/**
* Choose, which McpOAuthAccessToken to update.
*/
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
}
/**
* McpOAuthAccessToken updateMany
*/
export type McpOAuthAccessTokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update McpOAuthAccessTokens.
*/
data: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateManyMutationInput, Prisma.McpOAuthAccessTokenUncheckedUpdateManyInput>
/**
* Filter which McpOAuthAccessTokens to update
*/
where?: Prisma.McpOAuthAccessTokenWhereInput
/**
* Limit how many McpOAuthAccessTokens to update.
*/
limit?: number
}
/**
* McpOAuthAccessToken updateManyAndReturn
*/
export type McpOAuthAccessTokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* The data used to update McpOAuthAccessTokens.
*/
data: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateManyMutationInput, Prisma.McpOAuthAccessTokenUncheckedUpdateManyInput>
/**
* Filter which McpOAuthAccessTokens to update
*/
where?: Prisma.McpOAuthAccessTokenWhereInput
/**
* Limit how many McpOAuthAccessTokens to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* McpOAuthAccessToken upsert
*/
export type McpOAuthAccessTokenUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
/**
* The filter to search for the McpOAuthAccessToken to update in case it exists.
*/
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
/**
* In case the McpOAuthAccessToken found by the `where` argument doesn't exist, create a new McpOAuthAccessToken with this data.
*/
create: Prisma.XOR<Prisma.McpOAuthAccessTokenCreateInput, Prisma.McpOAuthAccessTokenUncheckedCreateInput>
/**
* In case the McpOAuthAccessToken was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.McpOAuthAccessTokenUpdateInput, Prisma.McpOAuthAccessTokenUncheckedUpdateInput>
}
/**
* McpOAuthAccessToken delete
*/
export type McpOAuthAccessTokenDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
/**
* Filter which McpOAuthAccessToken to delete.
*/
where: Prisma.McpOAuthAccessTokenWhereUniqueInput
}
/**
* McpOAuthAccessToken deleteMany
*/
export type McpOAuthAccessTokenDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which McpOAuthAccessTokens to delete
*/
where?: Prisma.McpOAuthAccessTokenWhereInput
/**
* Limit how many McpOAuthAccessTokens to delete.
*/
limit?: number
}
/**
* McpOAuthAccessToken.refreshToken
*/
export type McpOAuthAccessToken$refreshTokenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthRefreshToken
*/
select?: Prisma.McpOAuthRefreshTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthRefreshToken
*/
omit?: Prisma.McpOAuthRefreshTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthRefreshTokenInclude<ExtArgs> | null
where?: Prisma.McpOAuthRefreshTokenWhereInput
}
/**
* McpOAuthAccessToken without action
*/
export type McpOAuthAccessTokenDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpOAuthAccessToken
*/
select?: Prisma.McpOAuthAccessTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the McpOAuthAccessToken
*/
omit?: Prisma.McpOAuthAccessTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpOAuthAccessTokenInclude<ExtArgs> | null
}