1752 lines
73 KiB
TypeScript
1752 lines
73 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 `McpOAuthRefreshToken` 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 McpOAuthRefreshToken
|
|
*
|
|
*/
|
|
export type McpOAuthRefreshTokenModel = runtime.Types.Result.DefaultSelection<Prisma.$McpOAuthRefreshTokenPayload>
|
|
|
|
export type AggregateMcpOAuthRefreshToken = {
|
|
_count: McpOAuthRefreshTokenCountAggregateOutputType | null
|
|
_min: McpOAuthRefreshTokenMinAggregateOutputType | null
|
|
_max: McpOAuthRefreshTokenMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
rotatedAt: 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
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
rotatedAt: 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
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
rotatedAt: number
|
|
clientId: number
|
|
userId: number
|
|
tenantId: number
|
|
tenantSlug: number
|
|
tokenHash: number
|
|
scopes: number
|
|
resource: number
|
|
expiresAt: number
|
|
revokedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type McpOAuthRefreshTokenMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
rotatedAt?: true
|
|
clientId?: true
|
|
userId?: true
|
|
tenantId?: true
|
|
tenantSlug?: true
|
|
tokenHash?: true
|
|
resource?: true
|
|
expiresAt?: true
|
|
revokedAt?: true
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
rotatedAt?: true
|
|
clientId?: true
|
|
userId?: true
|
|
tenantId?: true
|
|
tenantSlug?: true
|
|
tokenHash?: true
|
|
resource?: true
|
|
expiresAt?: true
|
|
revokedAt?: true
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
rotatedAt?: true
|
|
clientId?: true
|
|
userId?: true
|
|
tenantId?: true
|
|
tenantSlug?: true
|
|
tokenHash?: true
|
|
scopes?: true
|
|
resource?: true
|
|
expiresAt?: true
|
|
revokedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which McpOAuthRefreshToken to aggregate.
|
|
*/
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of McpOAuthRefreshTokens to fetch.
|
|
*/
|
|
orderBy?: Prisma.McpOAuthRefreshTokenOrderByWithRelationInput | Prisma.McpOAuthRefreshTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` McpOAuthRefreshTokens 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` McpOAuthRefreshTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned McpOAuthRefreshTokens
|
|
**/
|
|
_count?: true | McpOAuthRefreshTokenCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: McpOAuthRefreshTokenMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: McpOAuthRefreshTokenMaxAggregateInputType
|
|
}
|
|
|
|
export type GetMcpOAuthRefreshTokenAggregateType<T extends McpOAuthRefreshTokenAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateMcpOAuthRefreshToken]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateMcpOAuthRefreshToken[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateMcpOAuthRefreshToken[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type McpOAuthRefreshTokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
orderBy?: Prisma.McpOAuthRefreshTokenOrderByWithAggregationInput | Prisma.McpOAuthRefreshTokenOrderByWithAggregationInput[]
|
|
by: Prisma.McpOAuthRefreshTokenScalarFieldEnum[] | Prisma.McpOAuthRefreshTokenScalarFieldEnum
|
|
having?: Prisma.McpOAuthRefreshTokenScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: McpOAuthRefreshTokenCountAggregateInputType | true
|
|
_min?: McpOAuthRefreshTokenMinAggregateInputType
|
|
_max?: McpOAuthRefreshTokenMaxAggregateInputType
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
rotatedAt: Date | null
|
|
clientId: string
|
|
userId: string
|
|
tenantId: string
|
|
tenantSlug: string
|
|
tokenHash: string
|
|
scopes: runtime.JsonValue
|
|
resource: string
|
|
expiresAt: Date
|
|
revokedAt: Date | null
|
|
_count: McpOAuthRefreshTokenCountAggregateOutputType | null
|
|
_min: McpOAuthRefreshTokenMinAggregateOutputType | null
|
|
_max: McpOAuthRefreshTokenMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetMcpOAuthRefreshTokenGroupByPayload<T extends McpOAuthRefreshTokenGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<McpOAuthRefreshTokenGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof McpOAuthRefreshTokenGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], McpOAuthRefreshTokenGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], McpOAuthRefreshTokenGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type McpOAuthRefreshTokenWhereInput = {
|
|
AND?: Prisma.McpOAuthRefreshTokenWhereInput | Prisma.McpOAuthRefreshTokenWhereInput[]
|
|
OR?: Prisma.McpOAuthRefreshTokenWhereInput[]
|
|
NOT?: Prisma.McpOAuthRefreshTokenWhereInput | Prisma.McpOAuthRefreshTokenWhereInput[]
|
|
id?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"McpOAuthRefreshToken"> | Date | string
|
|
rotatedAt?: Prisma.DateTimeNullableFilter<"McpOAuthRefreshToken"> | Date | string | null
|
|
clientId?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
userId?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
tenantId?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
tenantSlug?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
tokenHash?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
scopes?: Prisma.JsonFilter<"McpOAuthRefreshToken">
|
|
resource?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
expiresAt?: Prisma.DateTimeFilter<"McpOAuthRefreshToken"> | Date | string
|
|
revokedAt?: Prisma.DateTimeNullableFilter<"McpOAuthRefreshToken"> | Date | string | null
|
|
client?: Prisma.XOR<Prisma.McpOAuthClientScalarRelationFilter, Prisma.McpOAuthClientWhereInput>
|
|
accessTokens?: Prisma.McpOAuthAccessTokenListRelationFilter
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
rotatedAt?: Prisma.SortOrderInput | 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
|
|
client?: Prisma.McpOAuthClientOrderByWithRelationInput
|
|
accessTokens?: Prisma.McpOAuthAccessTokenOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
tokenHash?: string
|
|
AND?: Prisma.McpOAuthRefreshTokenWhereInput | Prisma.McpOAuthRefreshTokenWhereInput[]
|
|
OR?: Prisma.McpOAuthRefreshTokenWhereInput[]
|
|
NOT?: Prisma.McpOAuthRefreshTokenWhereInput | Prisma.McpOAuthRefreshTokenWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"McpOAuthRefreshToken"> | Date | string
|
|
rotatedAt?: Prisma.DateTimeNullableFilter<"McpOAuthRefreshToken"> | Date | string | null
|
|
clientId?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
userId?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
tenantId?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
tenantSlug?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
scopes?: Prisma.JsonFilter<"McpOAuthRefreshToken">
|
|
resource?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
expiresAt?: Prisma.DateTimeFilter<"McpOAuthRefreshToken"> | Date | string
|
|
revokedAt?: Prisma.DateTimeNullableFilter<"McpOAuthRefreshToken"> | Date | string | null
|
|
client?: Prisma.XOR<Prisma.McpOAuthClientScalarRelationFilter, Prisma.McpOAuthClientWhereInput>
|
|
accessTokens?: Prisma.McpOAuthAccessTokenListRelationFilter
|
|
}, "id" | "tokenHash">
|
|
|
|
export type McpOAuthRefreshTokenOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
rotatedAt?: Prisma.SortOrderInput | 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
|
|
_count?: Prisma.McpOAuthRefreshTokenCountOrderByAggregateInput
|
|
_max?: Prisma.McpOAuthRefreshTokenMaxOrderByAggregateInput
|
|
_min?: Prisma.McpOAuthRefreshTokenMinOrderByAggregateInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.McpOAuthRefreshTokenScalarWhereWithAggregatesInput | Prisma.McpOAuthRefreshTokenScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.McpOAuthRefreshTokenScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.McpOAuthRefreshTokenScalarWhereWithAggregatesInput | Prisma.McpOAuthRefreshTokenScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"McpOAuthRefreshToken"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"McpOAuthRefreshToken"> | Date | string
|
|
rotatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpOAuthRefreshToken"> | Date | string | null
|
|
clientId?: Prisma.StringWithAggregatesFilter<"McpOAuthRefreshToken"> | string
|
|
userId?: Prisma.StringWithAggregatesFilter<"McpOAuthRefreshToken"> | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"McpOAuthRefreshToken"> | string
|
|
tenantSlug?: Prisma.StringWithAggregatesFilter<"McpOAuthRefreshToken"> | string
|
|
tokenHash?: Prisma.StringWithAggregatesFilter<"McpOAuthRefreshToken"> | string
|
|
scopes?: Prisma.JsonWithAggregatesFilter<"McpOAuthRefreshToken">
|
|
resource?: Prisma.StringWithAggregatesFilter<"McpOAuthRefreshToken"> | string
|
|
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"McpOAuthRefreshToken"> | Date | string
|
|
revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpOAuthRefreshToken"> | Date | string | null
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
rotatedAt?: Date | string | null
|
|
userId: string
|
|
tenantId: string
|
|
tenantSlug: string
|
|
tokenHash: string
|
|
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
resource: string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
client: Prisma.McpOAuthClientCreateNestedOneWithoutRefreshTokensInput
|
|
accessTokens?: Prisma.McpOAuthAccessTokenCreateNestedManyWithoutRefreshTokenInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
rotatedAt?: Date | string | null
|
|
clientId: string
|
|
userId: string
|
|
tenantId: string
|
|
tenantSlug: string
|
|
tokenHash: string
|
|
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
resource: string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
accessTokens?: Prisma.McpOAuthAccessTokenUncheckedCreateNestedManyWithoutRefreshTokenInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rotatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
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.McpOAuthClientUpdateOneRequiredWithoutRefreshTokensNestedInput
|
|
accessTokens?: Prisma.McpOAuthAccessTokenUpdateManyWithoutRefreshTokenNestedInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rotatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
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
|
|
accessTokens?: Prisma.McpOAuthAccessTokenUncheckedUpdateManyWithoutRefreshTokenNestedInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
rotatedAt?: Date | string | null
|
|
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 McpOAuthRefreshTokenUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rotatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
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 McpOAuthRefreshTokenUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rotatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
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 McpOAuthRefreshTokenListRelationFilter = {
|
|
every?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
some?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
none?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenNullableScalarRelationFilter = {
|
|
is?: Prisma.McpOAuthRefreshTokenWhereInput | null
|
|
isNot?: Prisma.McpOAuthRefreshTokenWhereInput | null
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
rotatedAt?: 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
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
rotatedAt?: 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
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
rotatedAt?: 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
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCreateNestedManyWithoutClientInput = {
|
|
create?: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutClientInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput> | Prisma.McpOAuthRefreshTokenCreateWithoutClientInput[] | Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput[]
|
|
connectOrCreate?: Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput | Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput[]
|
|
createMany?: Prisma.McpOAuthRefreshTokenCreateManyClientInputEnvelope
|
|
connect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUncheckedCreateNestedManyWithoutClientInput = {
|
|
create?: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutClientInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput> | Prisma.McpOAuthRefreshTokenCreateWithoutClientInput[] | Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput[]
|
|
connectOrCreate?: Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput | Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput[]
|
|
createMany?: Prisma.McpOAuthRefreshTokenCreateManyClientInputEnvelope
|
|
connect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpdateManyWithoutClientNestedInput = {
|
|
create?: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutClientInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput> | Prisma.McpOAuthRefreshTokenCreateWithoutClientInput[] | Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput[]
|
|
connectOrCreate?: Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput | Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput[]
|
|
upsert?: Prisma.McpOAuthRefreshTokenUpsertWithWhereUniqueWithoutClientInput | Prisma.McpOAuthRefreshTokenUpsertWithWhereUniqueWithoutClientInput[]
|
|
createMany?: Prisma.McpOAuthRefreshTokenCreateManyClientInputEnvelope
|
|
set?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
disconnect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
delete?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
connect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
update?: Prisma.McpOAuthRefreshTokenUpdateWithWhereUniqueWithoutClientInput | Prisma.McpOAuthRefreshTokenUpdateWithWhereUniqueWithoutClientInput[]
|
|
updateMany?: Prisma.McpOAuthRefreshTokenUpdateManyWithWhereWithoutClientInput | Prisma.McpOAuthRefreshTokenUpdateManyWithWhereWithoutClientInput[]
|
|
deleteMany?: Prisma.McpOAuthRefreshTokenScalarWhereInput | Prisma.McpOAuthRefreshTokenScalarWhereInput[]
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUncheckedUpdateManyWithoutClientNestedInput = {
|
|
create?: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutClientInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput> | Prisma.McpOAuthRefreshTokenCreateWithoutClientInput[] | Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput[]
|
|
connectOrCreate?: Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput | Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput[]
|
|
upsert?: Prisma.McpOAuthRefreshTokenUpsertWithWhereUniqueWithoutClientInput | Prisma.McpOAuthRefreshTokenUpsertWithWhereUniqueWithoutClientInput[]
|
|
createMany?: Prisma.McpOAuthRefreshTokenCreateManyClientInputEnvelope
|
|
set?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
disconnect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
delete?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
connect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[]
|
|
update?: Prisma.McpOAuthRefreshTokenUpdateWithWhereUniqueWithoutClientInput | Prisma.McpOAuthRefreshTokenUpdateWithWhereUniqueWithoutClientInput[]
|
|
updateMany?: Prisma.McpOAuthRefreshTokenUpdateManyWithWhereWithoutClientInput | Prisma.McpOAuthRefreshTokenUpdateManyWithWhereWithoutClientInput[]
|
|
deleteMany?: Prisma.McpOAuthRefreshTokenScalarWhereInput | Prisma.McpOAuthRefreshTokenScalarWhereInput[]
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCreateNestedOneWithoutAccessTokensInput = {
|
|
create?: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutAccessTokensInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutAccessTokensInput>
|
|
connectOrCreate?: Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutAccessTokensInput
|
|
connect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpdateOneWithoutAccessTokensNestedInput = {
|
|
create?: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutAccessTokensInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutAccessTokensInput>
|
|
connectOrCreate?: Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutAccessTokensInput
|
|
upsert?: Prisma.McpOAuthRefreshTokenUpsertWithoutAccessTokensInput
|
|
disconnect?: Prisma.McpOAuthRefreshTokenWhereInput | boolean
|
|
delete?: Prisma.McpOAuthRefreshTokenWhereInput | boolean
|
|
connect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateToOneWithWhereWithoutAccessTokensInput, Prisma.McpOAuthRefreshTokenUpdateWithoutAccessTokensInput>, Prisma.McpOAuthRefreshTokenUncheckedUpdateWithoutAccessTokensInput>
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCreateWithoutClientInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
rotatedAt?: Date | string | null
|
|
userId: string
|
|
tenantId: string
|
|
tenantSlug: string
|
|
tokenHash: string
|
|
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
resource: string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
accessTokens?: Prisma.McpOAuthAccessTokenCreateNestedManyWithoutRefreshTokenInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUncheckedCreateWithoutClientInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
rotatedAt?: Date | string | null
|
|
userId: string
|
|
tenantId: string
|
|
tenantSlug: string
|
|
tokenHash: string
|
|
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
resource: string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
accessTokens?: Prisma.McpOAuthAccessTokenUncheckedCreateNestedManyWithoutRefreshTokenInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCreateOrConnectWithoutClientInput = {
|
|
where: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutClientInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput>
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCreateManyClientInputEnvelope = {
|
|
data: Prisma.McpOAuthRefreshTokenCreateManyClientInput | Prisma.McpOAuthRefreshTokenCreateManyClientInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpsertWithWhereUniqueWithoutClientInput = {
|
|
where: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateWithoutClientInput, Prisma.McpOAuthRefreshTokenUncheckedUpdateWithoutClientInput>
|
|
create: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutClientInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutClientInput>
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpdateWithWhereUniqueWithoutClientInput = {
|
|
where: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateWithoutClientInput, Prisma.McpOAuthRefreshTokenUncheckedUpdateWithoutClientInput>
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpdateManyWithWhereWithoutClientInput = {
|
|
where: Prisma.McpOAuthRefreshTokenScalarWhereInput
|
|
data: Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateManyMutationInput, Prisma.McpOAuthRefreshTokenUncheckedUpdateManyWithoutClientInput>
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenScalarWhereInput = {
|
|
AND?: Prisma.McpOAuthRefreshTokenScalarWhereInput | Prisma.McpOAuthRefreshTokenScalarWhereInput[]
|
|
OR?: Prisma.McpOAuthRefreshTokenScalarWhereInput[]
|
|
NOT?: Prisma.McpOAuthRefreshTokenScalarWhereInput | Prisma.McpOAuthRefreshTokenScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"McpOAuthRefreshToken"> | Date | string
|
|
rotatedAt?: Prisma.DateTimeNullableFilter<"McpOAuthRefreshToken"> | Date | string | null
|
|
clientId?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
userId?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
tenantId?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
tenantSlug?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
tokenHash?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
scopes?: Prisma.JsonFilter<"McpOAuthRefreshToken">
|
|
resource?: Prisma.StringFilter<"McpOAuthRefreshToken"> | string
|
|
expiresAt?: Prisma.DateTimeFilter<"McpOAuthRefreshToken"> | Date | string
|
|
revokedAt?: Prisma.DateTimeNullableFilter<"McpOAuthRefreshToken"> | Date | string | null
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCreateWithoutAccessTokensInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
rotatedAt?: Date | string | null
|
|
userId: string
|
|
tenantId: string
|
|
tenantSlug: string
|
|
tokenHash: string
|
|
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
resource: string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
client: Prisma.McpOAuthClientCreateNestedOneWithoutRefreshTokensInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUncheckedCreateWithoutAccessTokensInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
rotatedAt?: Date | string | null
|
|
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 McpOAuthRefreshTokenCreateOrConnectWithoutAccessTokensInput = {
|
|
where: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutAccessTokensInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutAccessTokensInput>
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpsertWithoutAccessTokensInput = {
|
|
update: Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateWithoutAccessTokensInput, Prisma.McpOAuthRefreshTokenUncheckedUpdateWithoutAccessTokensInput>
|
|
create: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateWithoutAccessTokensInput, Prisma.McpOAuthRefreshTokenUncheckedCreateWithoutAccessTokensInput>
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpdateToOneWithWhereWithoutAccessTokensInput = {
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
data: Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateWithoutAccessTokensInput, Prisma.McpOAuthRefreshTokenUncheckedUpdateWithoutAccessTokensInput>
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpdateWithoutAccessTokensInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rotatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
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.McpOAuthClientUpdateOneRequiredWithoutRefreshTokensNestedInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUncheckedUpdateWithoutAccessTokensInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rotatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
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 McpOAuthRefreshTokenCreateManyClientInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
rotatedAt?: Date | string | null
|
|
userId: string
|
|
tenantId: string
|
|
tenantSlug: string
|
|
tokenHash: string
|
|
scopes: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
resource: string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUpdateWithoutClientInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rotatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
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
|
|
accessTokens?: Prisma.McpOAuthAccessTokenUpdateManyWithoutRefreshTokenNestedInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUncheckedUpdateWithoutClientInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rotatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
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
|
|
accessTokens?: Prisma.McpOAuthAccessTokenUncheckedUpdateManyWithoutRefreshTokenNestedInput
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenUncheckedUpdateManyWithoutClientInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
rotatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
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
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type McpOAuthRefreshTokenCountOutputType
|
|
*/
|
|
|
|
export type McpOAuthRefreshTokenCountOutputType = {
|
|
accessTokens: number
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
accessTokens?: boolean | McpOAuthRefreshTokenCountOutputTypeCountAccessTokensArgs
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshTokenCountOutputType without action
|
|
*/
|
|
export type McpOAuthRefreshTokenCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpOAuthRefreshTokenCountOutputType
|
|
*/
|
|
select?: Prisma.McpOAuthRefreshTokenCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshTokenCountOutputType without action
|
|
*/
|
|
export type McpOAuthRefreshTokenCountOutputTypeCountAccessTokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.McpOAuthAccessTokenWhereInput
|
|
}
|
|
|
|
|
|
export type McpOAuthRefreshTokenSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
rotatedAt?: boolean
|
|
clientId?: boolean
|
|
userId?: boolean
|
|
tenantId?: boolean
|
|
tenantSlug?: boolean
|
|
tokenHash?: boolean
|
|
scopes?: boolean
|
|
resource?: boolean
|
|
expiresAt?: boolean
|
|
revokedAt?: boolean
|
|
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
|
|
accessTokens?: boolean | Prisma.McpOAuthRefreshToken$accessTokensArgs<ExtArgs>
|
|
_count?: boolean | Prisma.McpOAuthRefreshTokenCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mcpOAuthRefreshToken"]>
|
|
|
|
export type McpOAuthRefreshTokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
rotatedAt?: boolean
|
|
clientId?: boolean
|
|
userId?: boolean
|
|
tenantId?: boolean
|
|
tenantSlug?: boolean
|
|
tokenHash?: boolean
|
|
scopes?: boolean
|
|
resource?: boolean
|
|
expiresAt?: boolean
|
|
revokedAt?: boolean
|
|
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mcpOAuthRefreshToken"]>
|
|
|
|
export type McpOAuthRefreshTokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
rotatedAt?: boolean
|
|
clientId?: boolean
|
|
userId?: boolean
|
|
tenantId?: boolean
|
|
tenantSlug?: boolean
|
|
tokenHash?: boolean
|
|
scopes?: boolean
|
|
resource?: boolean
|
|
expiresAt?: boolean
|
|
revokedAt?: boolean
|
|
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["mcpOAuthRefreshToken"]>
|
|
|
|
export type McpOAuthRefreshTokenSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
rotatedAt?: boolean
|
|
clientId?: boolean
|
|
userId?: boolean
|
|
tenantId?: boolean
|
|
tenantSlug?: boolean
|
|
tokenHash?: boolean
|
|
scopes?: boolean
|
|
resource?: boolean
|
|
expiresAt?: boolean
|
|
revokedAt?: boolean
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "rotatedAt" | "clientId" | "userId" | "tenantId" | "tenantSlug" | "tokenHash" | "scopes" | "resource" | "expiresAt" | "revokedAt", ExtArgs["result"]["mcpOAuthRefreshToken"]>
|
|
export type McpOAuthRefreshTokenInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
|
|
accessTokens?: boolean | Prisma.McpOAuthRefreshToken$accessTokensArgs<ExtArgs>
|
|
_count?: boolean | Prisma.McpOAuthRefreshTokenCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type McpOAuthRefreshTokenIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
|
|
}
|
|
export type McpOAuthRefreshTokenIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
client?: boolean | Prisma.McpOAuthClientDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $McpOAuthRefreshTokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "McpOAuthRefreshToken"
|
|
objects: {
|
|
client: Prisma.$McpOAuthClientPayload<ExtArgs>
|
|
accessTokens: Prisma.$McpOAuthAccessTokenPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
rotatedAt: Date | null
|
|
clientId: string
|
|
userId: string
|
|
tenantId: string
|
|
tenantSlug: string
|
|
tokenHash: string
|
|
scopes: runtime.JsonValue
|
|
resource: string
|
|
expiresAt: Date
|
|
revokedAt: Date | null
|
|
}, ExtArgs["result"]["mcpOAuthRefreshToken"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type McpOAuthRefreshTokenGetPayload<S extends boolean | null | undefined | McpOAuthRefreshTokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload, S>
|
|
|
|
export type McpOAuthRefreshTokenCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<McpOAuthRefreshTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: McpOAuthRefreshTokenCountAggregateInputType | true
|
|
}
|
|
|
|
export interface McpOAuthRefreshTokenDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['McpOAuthRefreshToken'], meta: { name: 'McpOAuthRefreshToken' } }
|
|
/**
|
|
* Find zero or one McpOAuthRefreshToken that matches the filter.
|
|
* @param {McpOAuthRefreshTokenFindUniqueArgs} args - Arguments to find a McpOAuthRefreshToken
|
|
* @example
|
|
* // Get one McpOAuthRefreshToken
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends McpOAuthRefreshTokenFindUniqueArgs>(args: Prisma.SelectSubset<T, McpOAuthRefreshTokenFindUniqueArgs<ExtArgs>>): Prisma.Prisma__McpOAuthRefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one McpOAuthRefreshToken that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {McpOAuthRefreshTokenFindUniqueOrThrowArgs} args - Arguments to find a McpOAuthRefreshToken
|
|
* @example
|
|
* // Get one McpOAuthRefreshToken
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends McpOAuthRefreshTokenFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, McpOAuthRefreshTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpOAuthRefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first McpOAuthRefreshToken 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 {McpOAuthRefreshTokenFindFirstArgs} args - Arguments to find a McpOAuthRefreshToken
|
|
* @example
|
|
* // Get one McpOAuthRefreshToken
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends McpOAuthRefreshTokenFindFirstArgs>(args?: Prisma.SelectSubset<T, McpOAuthRefreshTokenFindFirstArgs<ExtArgs>>): Prisma.Prisma__McpOAuthRefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first McpOAuthRefreshToken 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 {McpOAuthRefreshTokenFindFirstOrThrowArgs} args - Arguments to find a McpOAuthRefreshToken
|
|
* @example
|
|
* // Get one McpOAuthRefreshToken
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends McpOAuthRefreshTokenFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, McpOAuthRefreshTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpOAuthRefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more McpOAuthRefreshTokens 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 {McpOAuthRefreshTokenFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all McpOAuthRefreshTokens
|
|
* const mcpOAuthRefreshTokens = await prisma.mcpOAuthRefreshToken.findMany()
|
|
*
|
|
* // Get first 10 McpOAuthRefreshTokens
|
|
* const mcpOAuthRefreshTokens = await prisma.mcpOAuthRefreshToken.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const mcpOAuthRefreshTokenWithIdOnly = await prisma.mcpOAuthRefreshToken.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends McpOAuthRefreshTokenFindManyArgs>(args?: Prisma.SelectSubset<T, McpOAuthRefreshTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a McpOAuthRefreshToken.
|
|
* @param {McpOAuthRefreshTokenCreateArgs} args - Arguments to create a McpOAuthRefreshToken.
|
|
* @example
|
|
* // Create one McpOAuthRefreshToken
|
|
* const McpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.create({
|
|
* data: {
|
|
* // ... data to create a McpOAuthRefreshToken
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends McpOAuthRefreshTokenCreateArgs>(args: Prisma.SelectSubset<T, McpOAuthRefreshTokenCreateArgs<ExtArgs>>): Prisma.Prisma__McpOAuthRefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many McpOAuthRefreshTokens.
|
|
* @param {McpOAuthRefreshTokenCreateManyArgs} args - Arguments to create many McpOAuthRefreshTokens.
|
|
* @example
|
|
* // Create many McpOAuthRefreshTokens
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends McpOAuthRefreshTokenCreateManyArgs>(args?: Prisma.SelectSubset<T, McpOAuthRefreshTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many McpOAuthRefreshTokens and returns the data saved in the database.
|
|
* @param {McpOAuthRefreshTokenCreateManyAndReturnArgs} args - Arguments to create many McpOAuthRefreshTokens.
|
|
* @example
|
|
* // Create many McpOAuthRefreshTokens
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many McpOAuthRefreshTokens and only return the `id`
|
|
* const mcpOAuthRefreshTokenWithIdOnly = await prisma.mcpOAuthRefreshToken.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 McpOAuthRefreshTokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, McpOAuthRefreshTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a McpOAuthRefreshToken.
|
|
* @param {McpOAuthRefreshTokenDeleteArgs} args - Arguments to delete one McpOAuthRefreshToken.
|
|
* @example
|
|
* // Delete one McpOAuthRefreshToken
|
|
* const McpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.delete({
|
|
* where: {
|
|
* // ... filter to delete one McpOAuthRefreshToken
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends McpOAuthRefreshTokenDeleteArgs>(args: Prisma.SelectSubset<T, McpOAuthRefreshTokenDeleteArgs<ExtArgs>>): Prisma.Prisma__McpOAuthRefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one McpOAuthRefreshToken.
|
|
* @param {McpOAuthRefreshTokenUpdateArgs} args - Arguments to update one McpOAuthRefreshToken.
|
|
* @example
|
|
* // Update one McpOAuthRefreshToken
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends McpOAuthRefreshTokenUpdateArgs>(args: Prisma.SelectSubset<T, McpOAuthRefreshTokenUpdateArgs<ExtArgs>>): Prisma.Prisma__McpOAuthRefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more McpOAuthRefreshTokens.
|
|
* @param {McpOAuthRefreshTokenDeleteManyArgs} args - Arguments to filter McpOAuthRefreshTokens to delete.
|
|
* @example
|
|
* // Delete a few McpOAuthRefreshTokens
|
|
* const { count } = await prisma.mcpOAuthRefreshToken.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends McpOAuthRefreshTokenDeleteManyArgs>(args?: Prisma.SelectSubset<T, McpOAuthRefreshTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more McpOAuthRefreshTokens.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {McpOAuthRefreshTokenUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many McpOAuthRefreshTokens
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends McpOAuthRefreshTokenUpdateManyArgs>(args: Prisma.SelectSubset<T, McpOAuthRefreshTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more McpOAuthRefreshTokens and returns the data updated in the database.
|
|
* @param {McpOAuthRefreshTokenUpdateManyAndReturnArgs} args - Arguments to update many McpOAuthRefreshTokens.
|
|
* @example
|
|
* // Update many McpOAuthRefreshTokens
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more McpOAuthRefreshTokens and only return the `id`
|
|
* const mcpOAuthRefreshTokenWithIdOnly = await prisma.mcpOAuthRefreshToken.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 McpOAuthRefreshTokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, McpOAuthRefreshTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one McpOAuthRefreshToken.
|
|
* @param {McpOAuthRefreshTokenUpsertArgs} args - Arguments to update or create a McpOAuthRefreshToken.
|
|
* @example
|
|
* // Update or create a McpOAuthRefreshToken
|
|
* const mcpOAuthRefreshToken = await prisma.mcpOAuthRefreshToken.upsert({
|
|
* create: {
|
|
* // ... data to create a McpOAuthRefreshToken
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the McpOAuthRefreshToken we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends McpOAuthRefreshTokenUpsertArgs>(args: Prisma.SelectSubset<T, McpOAuthRefreshTokenUpsertArgs<ExtArgs>>): Prisma.Prisma__McpOAuthRefreshTokenClient<runtime.Types.Result.GetResult<Prisma.$McpOAuthRefreshTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of McpOAuthRefreshTokens.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {McpOAuthRefreshTokenCountArgs} args - Arguments to filter McpOAuthRefreshTokens to count.
|
|
* @example
|
|
* // Count the number of McpOAuthRefreshTokens
|
|
* const count = await prisma.mcpOAuthRefreshToken.count({
|
|
* where: {
|
|
* // ... the filter for the McpOAuthRefreshTokens we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends McpOAuthRefreshTokenCountArgs>(
|
|
args?: Prisma.Subset<T, McpOAuthRefreshTokenCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], McpOAuthRefreshTokenCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a McpOAuthRefreshToken.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {McpOAuthRefreshTokenAggregateArgs} 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 McpOAuthRefreshTokenAggregateArgs>(args: Prisma.Subset<T, McpOAuthRefreshTokenAggregateArgs>): Prisma.PrismaPromise<GetMcpOAuthRefreshTokenAggregateType<T>>
|
|
|
|
/**
|
|
* Group by McpOAuthRefreshToken.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {McpOAuthRefreshTokenGroupByArgs} 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 McpOAuthRefreshTokenGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: McpOAuthRefreshTokenGroupByArgs['orderBy'] }
|
|
: { orderBy?: McpOAuthRefreshTokenGroupByArgs['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, McpOAuthRefreshTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMcpOAuthRefreshTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the McpOAuthRefreshToken model
|
|
*/
|
|
readonly fields: McpOAuthRefreshTokenFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for McpOAuthRefreshToken.
|
|
* 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__McpOAuthRefreshTokenClient<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>
|
|
accessTokens<T extends Prisma.McpOAuthRefreshToken$accessTokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpOAuthRefreshToken$accessTokensArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpOAuthAccessTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the McpOAuthRefreshToken model
|
|
*/
|
|
export interface McpOAuthRefreshTokenFieldRefs {
|
|
readonly id: Prisma.FieldRef<"McpOAuthRefreshToken", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"McpOAuthRefreshToken", 'DateTime'>
|
|
readonly rotatedAt: Prisma.FieldRef<"McpOAuthRefreshToken", 'DateTime'>
|
|
readonly clientId: Prisma.FieldRef<"McpOAuthRefreshToken", 'String'>
|
|
readonly userId: Prisma.FieldRef<"McpOAuthRefreshToken", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"McpOAuthRefreshToken", 'String'>
|
|
readonly tenantSlug: Prisma.FieldRef<"McpOAuthRefreshToken", 'String'>
|
|
readonly tokenHash: Prisma.FieldRef<"McpOAuthRefreshToken", 'String'>
|
|
readonly scopes: Prisma.FieldRef<"McpOAuthRefreshToken", 'Json'>
|
|
readonly resource: Prisma.FieldRef<"McpOAuthRefreshToken", 'String'>
|
|
readonly expiresAt: Prisma.FieldRef<"McpOAuthRefreshToken", 'DateTime'>
|
|
readonly revokedAt: Prisma.FieldRef<"McpOAuthRefreshToken", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* McpOAuthRefreshToken findUnique
|
|
*/
|
|
export type McpOAuthRefreshTokenFindUniqueArgs<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
|
|
/**
|
|
* Filter, which McpOAuthRefreshToken to fetch.
|
|
*/
|
|
where: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken findUniqueOrThrow
|
|
*/
|
|
export type McpOAuthRefreshTokenFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which McpOAuthRefreshToken to fetch.
|
|
*/
|
|
where: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken findFirst
|
|
*/
|
|
export type McpOAuthRefreshTokenFindFirstArgs<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
|
|
/**
|
|
* Filter, which McpOAuthRefreshToken to fetch.
|
|
*/
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of McpOAuthRefreshTokens to fetch.
|
|
*/
|
|
orderBy?: Prisma.McpOAuthRefreshTokenOrderByWithRelationInput | Prisma.McpOAuthRefreshTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for McpOAuthRefreshTokens.
|
|
*/
|
|
cursor?: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` McpOAuthRefreshTokens 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` McpOAuthRefreshTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of McpOAuthRefreshTokens.
|
|
*/
|
|
distinct?: Prisma.McpOAuthRefreshTokenScalarFieldEnum | Prisma.McpOAuthRefreshTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken findFirstOrThrow
|
|
*/
|
|
export type McpOAuthRefreshTokenFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which McpOAuthRefreshToken to fetch.
|
|
*/
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of McpOAuthRefreshTokens to fetch.
|
|
*/
|
|
orderBy?: Prisma.McpOAuthRefreshTokenOrderByWithRelationInput | Prisma.McpOAuthRefreshTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for McpOAuthRefreshTokens.
|
|
*/
|
|
cursor?: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` McpOAuthRefreshTokens 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` McpOAuthRefreshTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of McpOAuthRefreshTokens.
|
|
*/
|
|
distinct?: Prisma.McpOAuthRefreshTokenScalarFieldEnum | Prisma.McpOAuthRefreshTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken findMany
|
|
*/
|
|
export type McpOAuthRefreshTokenFindManyArgs<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
|
|
/**
|
|
* Filter, which McpOAuthRefreshTokens to fetch.
|
|
*/
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of McpOAuthRefreshTokens to fetch.
|
|
*/
|
|
orderBy?: Prisma.McpOAuthRefreshTokenOrderByWithRelationInput | Prisma.McpOAuthRefreshTokenOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing McpOAuthRefreshTokens.
|
|
*/
|
|
cursor?: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` McpOAuthRefreshTokens 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` McpOAuthRefreshTokens.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of McpOAuthRefreshTokens.
|
|
*/
|
|
distinct?: Prisma.McpOAuthRefreshTokenScalarFieldEnum | Prisma.McpOAuthRefreshTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken create
|
|
*/
|
|
export type McpOAuthRefreshTokenCreateArgs<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
|
|
/**
|
|
* The data needed to create a McpOAuthRefreshToken.
|
|
*/
|
|
data: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateInput, Prisma.McpOAuthRefreshTokenUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken createMany
|
|
*/
|
|
export type McpOAuthRefreshTokenCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many McpOAuthRefreshTokens.
|
|
*/
|
|
data: Prisma.McpOAuthRefreshTokenCreateManyInput | Prisma.McpOAuthRefreshTokenCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken createManyAndReturn
|
|
*/
|
|
export type McpOAuthRefreshTokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpOAuthRefreshToken
|
|
*/
|
|
select?: Prisma.McpOAuthRefreshTokenSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpOAuthRefreshToken
|
|
*/
|
|
omit?: Prisma.McpOAuthRefreshTokenOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many McpOAuthRefreshTokens.
|
|
*/
|
|
data: Prisma.McpOAuthRefreshTokenCreateManyInput | Prisma.McpOAuthRefreshTokenCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpOAuthRefreshTokenIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken update
|
|
*/
|
|
export type McpOAuthRefreshTokenUpdateArgs<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
|
|
/**
|
|
* The data needed to update a McpOAuthRefreshToken.
|
|
*/
|
|
data: Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateInput, Prisma.McpOAuthRefreshTokenUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which McpOAuthRefreshToken to update.
|
|
*/
|
|
where: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken updateMany
|
|
*/
|
|
export type McpOAuthRefreshTokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update McpOAuthRefreshTokens.
|
|
*/
|
|
data: Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateManyMutationInput, Prisma.McpOAuthRefreshTokenUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which McpOAuthRefreshTokens to update
|
|
*/
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
/**
|
|
* Limit how many McpOAuthRefreshTokens to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken updateManyAndReturn
|
|
*/
|
|
export type McpOAuthRefreshTokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the McpOAuthRefreshToken
|
|
*/
|
|
select?: Prisma.McpOAuthRefreshTokenSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the McpOAuthRefreshToken
|
|
*/
|
|
omit?: Prisma.McpOAuthRefreshTokenOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update McpOAuthRefreshTokens.
|
|
*/
|
|
data: Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateManyMutationInput, Prisma.McpOAuthRefreshTokenUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which McpOAuthRefreshTokens to update
|
|
*/
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
/**
|
|
* Limit how many McpOAuthRefreshTokens to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.McpOAuthRefreshTokenIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken upsert
|
|
*/
|
|
export type McpOAuthRefreshTokenUpsertArgs<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
|
|
/**
|
|
* The filter to search for the McpOAuthRefreshToken to update in case it exists.
|
|
*/
|
|
where: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
/**
|
|
* In case the McpOAuthRefreshToken found by the `where` argument doesn't exist, create a new McpOAuthRefreshToken with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.McpOAuthRefreshTokenCreateInput, Prisma.McpOAuthRefreshTokenUncheckedCreateInput>
|
|
/**
|
|
* In case the McpOAuthRefreshToken was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.McpOAuthRefreshTokenUpdateInput, Prisma.McpOAuthRefreshTokenUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken delete
|
|
*/
|
|
export type McpOAuthRefreshTokenDeleteArgs<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
|
|
/**
|
|
* Filter which McpOAuthRefreshToken to delete.
|
|
*/
|
|
where: Prisma.McpOAuthRefreshTokenWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken deleteMany
|
|
*/
|
|
export type McpOAuthRefreshTokenDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which McpOAuthRefreshTokens to delete
|
|
*/
|
|
where?: Prisma.McpOAuthRefreshTokenWhereInput
|
|
/**
|
|
* Limit how many McpOAuthRefreshTokens to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken.accessTokens
|
|
*/
|
|
export type McpOAuthRefreshToken$accessTokensArgs<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
|
|
where?: Prisma.McpOAuthAccessTokenWhereInput
|
|
orderBy?: Prisma.McpOAuthAccessTokenOrderByWithRelationInput | Prisma.McpOAuthAccessTokenOrderByWithRelationInput[]
|
|
cursor?: Prisma.McpOAuthAccessTokenWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.McpOAuthAccessTokenScalarFieldEnum | Prisma.McpOAuthAccessTokenScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* McpOAuthRefreshToken without action
|
|
*/
|
|
export type McpOAuthRefreshTokenDefaultArgs<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
|
|
}
|