/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateMcpOAuthRefreshToken]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type McpOAuthRefreshTokenGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof McpOAuthRefreshTokenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 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 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[] connectOrCreate?: Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput | Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutClientInput[] createMany?: Prisma.McpOAuthRefreshTokenCreateManyClientInputEnvelope connect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput | Prisma.McpOAuthRefreshTokenWhereUniqueInput[] } export type McpOAuthRefreshTokenUncheckedCreateNestedManyWithoutClientInput = { create?: Prisma.XOR | 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[] 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[] 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 connectOrCreate?: Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutAccessTokensInput connect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput } export type McpOAuthRefreshTokenUpdateOneWithoutAccessTokensNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.McpOAuthRefreshTokenCreateOrConnectWithoutAccessTokensInput upsert?: Prisma.McpOAuthRefreshTokenUpsertWithoutAccessTokensInput disconnect?: Prisma.McpOAuthRefreshTokenWhereInput | boolean delete?: Prisma.McpOAuthRefreshTokenWhereInput | boolean connect?: Prisma.McpOAuthRefreshTokenWhereUniqueInput update?: Prisma.XOR, 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 } export type McpOAuthRefreshTokenCreateManyClientInputEnvelope = { data: Prisma.McpOAuthRefreshTokenCreateManyClientInput | Prisma.McpOAuthRefreshTokenCreateManyClientInput[] skipDuplicates?: boolean } export type McpOAuthRefreshTokenUpsertWithWhereUniqueWithoutClientInput = { where: Prisma.McpOAuthRefreshTokenWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type McpOAuthRefreshTokenUpdateWithWhereUniqueWithoutClientInput = { where: Prisma.McpOAuthRefreshTokenWhereUniqueInput data: Prisma.XOR } export type McpOAuthRefreshTokenUpdateManyWithWhereWithoutClientInput = { where: Prisma.McpOAuthRefreshTokenScalarWhereInput data: Prisma.XOR } 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 } export type McpOAuthRefreshTokenUpsertWithoutAccessTokensInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.McpOAuthRefreshTokenWhereInput } export type McpOAuthRefreshTokenUpdateToOneWithWhereWithoutAccessTokensInput = { where?: Prisma.McpOAuthRefreshTokenWhereInput data: Prisma.XOR } 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 = { accessTokens?: boolean | McpOAuthRefreshTokenCountOutputTypeCountAccessTokensArgs } /** * McpOAuthRefreshTokenCountOutputType without action */ export type McpOAuthRefreshTokenCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the McpOAuthRefreshTokenCountOutputType */ select?: Prisma.McpOAuthRefreshTokenCountOutputTypeSelect | null } /** * McpOAuthRefreshTokenCountOutputType without action */ export type McpOAuthRefreshTokenCountOutputTypeCountAccessTokensArgs = { where?: Prisma.McpOAuthAccessTokenWhereInput } export type McpOAuthRefreshTokenSelect = 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 accessTokens?: boolean | Prisma.McpOAuthRefreshToken$accessTokensArgs _count?: boolean | Prisma.McpOAuthRefreshTokenCountOutputTypeDefaultArgs }, ExtArgs["result"]["mcpOAuthRefreshToken"]> export type McpOAuthRefreshTokenSelectCreateManyAndReturn = 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["result"]["mcpOAuthRefreshToken"]> export type McpOAuthRefreshTokenSelectUpdateManyAndReturn = 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["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 = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "rotatedAt" | "clientId" | "userId" | "tenantId" | "tenantSlug" | "tokenHash" | "scopes" | "resource" | "expiresAt" | "revokedAt", ExtArgs["result"]["mcpOAuthRefreshToken"]> export type McpOAuthRefreshTokenInclude = { client?: boolean | Prisma.McpOAuthClientDefaultArgs accessTokens?: boolean | Prisma.McpOAuthRefreshToken$accessTokensArgs _count?: boolean | Prisma.McpOAuthRefreshTokenCountOutputTypeDefaultArgs } export type McpOAuthRefreshTokenIncludeCreateManyAndReturn = { client?: boolean | Prisma.McpOAuthClientDefaultArgs } export type McpOAuthRefreshTokenIncludeUpdateManyAndReturn = { client?: boolean | Prisma.McpOAuthClientDefaultArgs } export type $McpOAuthRefreshTokenPayload = { name: "McpOAuthRefreshToken" objects: { client: Prisma.$McpOAuthClientPayload accessTokens: Prisma.$McpOAuthAccessTokenPayload[] } 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 = runtime.Types.Result.GetResult export type McpOAuthRefreshTokenCountArgs = Omit & { select?: McpOAuthRefreshTokenCountAggregateInputType | true } export interface McpOAuthRefreshTokenDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__McpOAuthRefreshTokenClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__McpOAuthRefreshTokenClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__McpOAuthRefreshTokenClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__McpOAuthRefreshTokenClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__McpOAuthRefreshTokenClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__McpOAuthRefreshTokenClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__McpOAuthRefreshTokenClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__McpOAuthRefreshTokenClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: McpOAuthRefreshTokenGroupByArgs['orderBy'] } : { orderBy?: McpOAuthRefreshTokenGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetMcpOAuthRefreshTokenGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" client = {}>(args?: Prisma.Subset>): Prisma.Prisma__McpOAuthClientClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> accessTokens = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | null /** * Filter, which McpOAuthRefreshToken to fetch. */ where: Prisma.McpOAuthRefreshTokenWhereUniqueInput } /** * McpOAuthRefreshToken findUniqueOrThrow */ export type McpOAuthRefreshTokenFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | null /** * Filter, which McpOAuthRefreshToken to fetch. */ where: Prisma.McpOAuthRefreshTokenWhereUniqueInput } /** * McpOAuthRefreshToken findFirst */ export type McpOAuthRefreshTokenFindFirstArgs = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | 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 = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | 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 = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | 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 = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | null /** * The data needed to create a McpOAuthRefreshToken. */ data: Prisma.XOR } /** * McpOAuthRefreshToken createMany */ export type McpOAuthRefreshTokenCreateManyArgs = { /** * The data used to create many McpOAuthRefreshTokens. */ data: Prisma.McpOAuthRefreshTokenCreateManyInput | Prisma.McpOAuthRefreshTokenCreateManyInput[] skipDuplicates?: boolean } /** * McpOAuthRefreshToken createManyAndReturn */ export type McpOAuthRefreshTokenCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelectCreateManyAndReturn | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | 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 | null } /** * McpOAuthRefreshToken update */ export type McpOAuthRefreshTokenUpdateArgs = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | null /** * The data needed to update a McpOAuthRefreshToken. */ data: Prisma.XOR /** * Choose, which McpOAuthRefreshToken to update. */ where: Prisma.McpOAuthRefreshTokenWhereUniqueInput } /** * McpOAuthRefreshToken updateMany */ export type McpOAuthRefreshTokenUpdateManyArgs = { /** * The data used to update McpOAuthRefreshTokens. */ data: Prisma.XOR /** * Filter which McpOAuthRefreshTokens to update */ where?: Prisma.McpOAuthRefreshTokenWhereInput /** * Limit how many McpOAuthRefreshTokens to update. */ limit?: number } /** * McpOAuthRefreshToken updateManyAndReturn */ export type McpOAuthRefreshTokenUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelectUpdateManyAndReturn | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * The data used to update McpOAuthRefreshTokens. */ data: Prisma.XOR /** * 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 | null } /** * McpOAuthRefreshToken upsert */ export type McpOAuthRefreshTokenUpsertArgs = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | 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 /** * In case the McpOAuthRefreshToken was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * McpOAuthRefreshToken delete */ export type McpOAuthRefreshTokenDeleteArgs = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | null /** * Filter which McpOAuthRefreshToken to delete. */ where: Prisma.McpOAuthRefreshTokenWhereUniqueInput } /** * McpOAuthRefreshToken deleteMany */ export type McpOAuthRefreshTokenDeleteManyArgs = { /** * Filter which McpOAuthRefreshTokens to delete */ where?: Prisma.McpOAuthRefreshTokenWhereInput /** * Limit how many McpOAuthRefreshTokens to delete. */ limit?: number } /** * McpOAuthRefreshToken.accessTokens */ export type McpOAuthRefreshToken$accessTokensArgs = { /** * Select specific fields to fetch from the McpOAuthAccessToken */ select?: Prisma.McpOAuthAccessTokenSelect | null /** * Omit specific fields from the McpOAuthAccessToken */ omit?: Prisma.McpOAuthAccessTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthAccessTokenInclude | 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 = { /** * Select specific fields to fetch from the McpOAuthRefreshToken */ select?: Prisma.McpOAuthRefreshTokenSelect | null /** * Omit specific fields from the McpOAuthRefreshToken */ omit?: Prisma.McpOAuthRefreshTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpOAuthRefreshTokenInclude | null }