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