/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `OAuthSession` 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" import type * as Prisma from "../internal/prismaNamespace" /** * Model OAuthSession * */ export type OAuthSessionModel = runtime.Types.Result.DefaultSelection export type AggregateOAuthSession = { _count: OAuthSessionCountAggregateOutputType | null _avg: OAuthSessionAvgAggregateOutputType | null _sum: OAuthSessionSumAggregateOutputType | null _min: OAuthSessionMinAggregateOutputType | null _max: OAuthSessionMaxAggregateOutputType | null } export type OAuthSessionAvgAggregateOutputType = { mcpTokenExpiry: number | null gitlabTokenExpiry: number | null gitlabUserId: number | null createdAt: number | null updatedAt: number | null } export type OAuthSessionSumAggregateOutputType = { mcpTokenExpiry: bigint | null gitlabTokenExpiry: bigint | null gitlabUserId: number | null createdAt: bigint | null updatedAt: bigint | null } export type OAuthSessionMinAggregateOutputType = { id: string | null mcpAccessToken: string | null mcpRefreshToken: string | null mcpTokenExpiry: bigint | null gitlabAccessToken: string | null gitlabRefreshToken: string | null gitlabTokenExpiry: bigint | null gitlabUserId: number | null gitlabUsername: string | null gitlabApiUrl: string | null instanceLabel: string | null clientId: string | null createdAt: bigint | null updatedAt: bigint | null } export type OAuthSessionMaxAggregateOutputType = { id: string | null mcpAccessToken: string | null mcpRefreshToken: string | null mcpTokenExpiry: bigint | null gitlabAccessToken: string | null gitlabRefreshToken: string | null gitlabTokenExpiry: bigint | null gitlabUserId: number | null gitlabUsername: string | null gitlabApiUrl: string | null instanceLabel: string | null clientId: string | null createdAt: bigint | null updatedAt: bigint | null } export type OAuthSessionCountAggregateOutputType = { id: number mcpAccessToken: number mcpRefreshToken: number mcpTokenExpiry: number gitlabAccessToken: number gitlabRefreshToken: number gitlabTokenExpiry: number gitlabUserId: number gitlabUsername: number gitlabApiUrl: number instanceLabel: number clientId: number scopes: number createdAt: number updatedAt: number _all: number } export type OAuthSessionAvgAggregateInputType = { mcpTokenExpiry?: true gitlabTokenExpiry?: true gitlabUserId?: true createdAt?: true updatedAt?: true } export type OAuthSessionSumAggregateInputType = { mcpTokenExpiry?: true gitlabTokenExpiry?: true gitlabUserId?: true createdAt?: true updatedAt?: true } export type OAuthSessionMinAggregateInputType = { id?: true mcpAccessToken?: true mcpRefreshToken?: true mcpTokenExpiry?: true gitlabAccessToken?: true gitlabRefreshToken?: true gitlabTokenExpiry?: true gitlabUserId?: true gitlabUsername?: true gitlabApiUrl?: true instanceLabel?: true clientId?: true createdAt?: true updatedAt?: true } export type OAuthSessionMaxAggregateInputType = { id?: true mcpAccessToken?: true mcpRefreshToken?: true mcpTokenExpiry?: true gitlabAccessToken?: true gitlabRefreshToken?: true gitlabTokenExpiry?: true gitlabUserId?: true gitlabUsername?: true gitlabApiUrl?: true instanceLabel?: true clientId?: true createdAt?: true updatedAt?: true } export type OAuthSessionCountAggregateInputType = { id?: true mcpAccessToken?: true mcpRefreshToken?: true mcpTokenExpiry?: true gitlabAccessToken?: true gitlabRefreshToken?: true gitlabTokenExpiry?: true gitlabUserId?: true gitlabUsername?: true gitlabApiUrl?: true instanceLabel?: true clientId?: true scopes?: true createdAt?: true updatedAt?: true _all?: true } export type OAuthSessionAggregateArgs = { /** * Filter which OAuthSession to aggregate. */ where?: Prisma.OAuthSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthSessions to fetch. */ orderBy?: Prisma.OAuthSessionOrderByWithRelationInput | Prisma.OAuthSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.OAuthSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OAuthSessions 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` OAuthSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned OAuthSessions **/ _count?: true | OAuthSessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: OAuthSessionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: OAuthSessionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OAuthSessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OAuthSessionMaxAggregateInputType } export type GetOAuthSessionAggregateType = { [P in keyof T & keyof AggregateOAuthSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type OAuthSessionGroupByArgs = { where?: Prisma.OAuthSessionWhereInput orderBy?: Prisma.OAuthSessionOrderByWithAggregationInput | Prisma.OAuthSessionOrderByWithAggregationInput[] by: Prisma.OAuthSessionScalarFieldEnum[] | Prisma.OAuthSessionScalarFieldEnum having?: Prisma.OAuthSessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: OAuthSessionCountAggregateInputType | true _avg?: OAuthSessionAvgAggregateInputType _sum?: OAuthSessionSumAggregateInputType _min?: OAuthSessionMinAggregateInputType _max?: OAuthSessionMaxAggregateInputType } export type OAuthSessionGroupByOutputType = { id: string mcpAccessToken: string mcpRefreshToken: string mcpTokenExpiry: bigint gitlabAccessToken: string gitlabRefreshToken: string gitlabTokenExpiry: bigint gitlabUserId: number gitlabUsername: string gitlabApiUrl: string | null instanceLabel: string | null clientId: string scopes: string[] createdAt: bigint updatedAt: bigint _count: OAuthSessionCountAggregateOutputType | null _avg: OAuthSessionAvgAggregateOutputType | null _sum: OAuthSessionSumAggregateOutputType | null _min: OAuthSessionMinAggregateOutputType | null _max: OAuthSessionMaxAggregateOutputType | null } type GetOAuthSessionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof OAuthSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type OAuthSessionWhereInput = { AND?: Prisma.OAuthSessionWhereInput | Prisma.OAuthSessionWhereInput[] OR?: Prisma.OAuthSessionWhereInput[] NOT?: Prisma.OAuthSessionWhereInput | Prisma.OAuthSessionWhereInput[] id?: Prisma.StringFilter<"OAuthSession"> | string mcpAccessToken?: Prisma.StringFilter<"OAuthSession"> | string mcpRefreshToken?: Prisma.StringFilter<"OAuthSession"> | string mcpTokenExpiry?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number gitlabAccessToken?: Prisma.StringFilter<"OAuthSession"> | string gitlabRefreshToken?: Prisma.StringFilter<"OAuthSession"> | string gitlabTokenExpiry?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number gitlabUserId?: Prisma.IntFilter<"OAuthSession"> | number gitlabUsername?: Prisma.StringFilter<"OAuthSession"> | string gitlabApiUrl?: Prisma.StringNullableFilter<"OAuthSession"> | string | null instanceLabel?: Prisma.StringNullableFilter<"OAuthSession"> | string | null clientId?: Prisma.StringFilter<"OAuthSession"> | string scopes?: Prisma.StringNullableListFilter<"OAuthSession"> createdAt?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number updatedAt?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number authorizationCodes?: Prisma.AuthorizationCodeListRelationFilter mcpSessionMappings?: Prisma.McpSessionMappingListRelationFilter } export type OAuthSessionOrderByWithRelationInput = { id?: Prisma.SortOrder mcpAccessToken?: Prisma.SortOrder mcpRefreshToken?: Prisma.SortOrder mcpTokenExpiry?: Prisma.SortOrder gitlabAccessToken?: Prisma.SortOrder gitlabRefreshToken?: Prisma.SortOrder gitlabTokenExpiry?: Prisma.SortOrder gitlabUserId?: Prisma.SortOrder gitlabUsername?: Prisma.SortOrder gitlabApiUrl?: Prisma.SortOrderInput | Prisma.SortOrder instanceLabel?: Prisma.SortOrderInput | Prisma.SortOrder clientId?: Prisma.SortOrder scopes?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder authorizationCodes?: Prisma.AuthorizationCodeOrderByRelationAggregateInput mcpSessionMappings?: Prisma.McpSessionMappingOrderByRelationAggregateInput } export type OAuthSessionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.OAuthSessionWhereInput | Prisma.OAuthSessionWhereInput[] OR?: Prisma.OAuthSessionWhereInput[] NOT?: Prisma.OAuthSessionWhereInput | Prisma.OAuthSessionWhereInput[] mcpAccessToken?: Prisma.StringFilter<"OAuthSession"> | string mcpRefreshToken?: Prisma.StringFilter<"OAuthSession"> | string mcpTokenExpiry?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number gitlabAccessToken?: Prisma.StringFilter<"OAuthSession"> | string gitlabRefreshToken?: Prisma.StringFilter<"OAuthSession"> | string gitlabTokenExpiry?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number gitlabUserId?: Prisma.IntFilter<"OAuthSession"> | number gitlabUsername?: Prisma.StringFilter<"OAuthSession"> | string gitlabApiUrl?: Prisma.StringNullableFilter<"OAuthSession"> | string | null instanceLabel?: Prisma.StringNullableFilter<"OAuthSession"> | string | null clientId?: Prisma.StringFilter<"OAuthSession"> | string scopes?: Prisma.StringNullableListFilter<"OAuthSession"> createdAt?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number updatedAt?: Prisma.BigIntFilter<"OAuthSession"> | bigint | number authorizationCodes?: Prisma.AuthorizationCodeListRelationFilter mcpSessionMappings?: Prisma.McpSessionMappingListRelationFilter }, "id"> export type OAuthSessionOrderByWithAggregationInput = { id?: Prisma.SortOrder mcpAccessToken?: Prisma.SortOrder mcpRefreshToken?: Prisma.SortOrder mcpTokenExpiry?: Prisma.SortOrder gitlabAccessToken?: Prisma.SortOrder gitlabRefreshToken?: Prisma.SortOrder gitlabTokenExpiry?: Prisma.SortOrder gitlabUserId?: Prisma.SortOrder gitlabUsername?: Prisma.SortOrder gitlabApiUrl?: Prisma.SortOrderInput | Prisma.SortOrder instanceLabel?: Prisma.SortOrderInput | Prisma.SortOrder clientId?: Prisma.SortOrder scopes?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.OAuthSessionCountOrderByAggregateInput _avg?: Prisma.OAuthSessionAvgOrderByAggregateInput _max?: Prisma.OAuthSessionMaxOrderByAggregateInput _min?: Prisma.OAuthSessionMinOrderByAggregateInput _sum?: Prisma.OAuthSessionSumOrderByAggregateInput } export type OAuthSessionScalarWhereWithAggregatesInput = { AND?: Prisma.OAuthSessionScalarWhereWithAggregatesInput | Prisma.OAuthSessionScalarWhereWithAggregatesInput[] OR?: Prisma.OAuthSessionScalarWhereWithAggregatesInput[] NOT?: Prisma.OAuthSessionScalarWhereWithAggregatesInput | Prisma.OAuthSessionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string mcpAccessToken?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string mcpRefreshToken?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string mcpTokenExpiry?: Prisma.BigIntWithAggregatesFilter<"OAuthSession"> | bigint | number gitlabAccessToken?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string gitlabRefreshToken?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string gitlabTokenExpiry?: Prisma.BigIntWithAggregatesFilter<"OAuthSession"> | bigint | number gitlabUserId?: Prisma.IntWithAggregatesFilter<"OAuthSession"> | number gitlabUsername?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string gitlabApiUrl?: Prisma.StringNullableWithAggregatesFilter<"OAuthSession"> | string | null instanceLabel?: Prisma.StringNullableWithAggregatesFilter<"OAuthSession"> | string | null clientId?: Prisma.StringWithAggregatesFilter<"OAuthSession"> | string scopes?: Prisma.StringNullableListFilter<"OAuthSession"> createdAt?: Prisma.BigIntWithAggregatesFilter<"OAuthSession"> | bigint | number updatedAt?: Prisma.BigIntWithAggregatesFilter<"OAuthSession"> | bigint | number } export type OAuthSessionCreateInput = { id?: string mcpAccessToken: string mcpRefreshToken: string mcpTokenExpiry: bigint | number gitlabAccessToken: string gitlabRefreshToken: string gitlabTokenExpiry: bigint | number gitlabUserId: number gitlabUsername: string gitlabApiUrl?: string | null instanceLabel?: string | null clientId: string scopes?: Prisma.OAuthSessionCreatescopesInput | string[] createdAt: bigint | number updatedAt: bigint | number authorizationCodes?: Prisma.AuthorizationCodeCreateNestedManyWithoutSessionInput mcpSessionMappings?: Prisma.McpSessionMappingCreateNestedManyWithoutOauthSessionInput } export type OAuthSessionUncheckedCreateInput = { id?: string mcpAccessToken: string mcpRefreshToken: string mcpTokenExpiry: bigint | number gitlabAccessToken: string gitlabRefreshToken: string gitlabTokenExpiry: bigint | number gitlabUserId: number gitlabUsername: string gitlabApiUrl?: string | null instanceLabel?: string | null clientId: string scopes?: Prisma.OAuthSessionCreatescopesInput | string[] createdAt: bigint | number updatedAt: bigint | number authorizationCodes?: Prisma.AuthorizationCodeUncheckedCreateNestedManyWithoutSessionInput mcpSessionMappings?: Prisma.McpSessionMappingUncheckedCreateNestedManyWithoutOauthSessionInput } export type OAuthSessionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mcpAccessToken?: Prisma.StringFieldUpdateOperationsInput | string mcpRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string mcpTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null clientId?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.OAuthSessionUpdatescopesInput | string[] createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number authorizationCodes?: Prisma.AuthorizationCodeUpdateManyWithoutSessionNestedInput mcpSessionMappings?: Prisma.McpSessionMappingUpdateManyWithoutOauthSessionNestedInput } export type OAuthSessionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mcpAccessToken?: Prisma.StringFieldUpdateOperationsInput | string mcpRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string mcpTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null clientId?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.OAuthSessionUpdatescopesInput | string[] createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number authorizationCodes?: Prisma.AuthorizationCodeUncheckedUpdateManyWithoutSessionNestedInput mcpSessionMappings?: Prisma.McpSessionMappingUncheckedUpdateManyWithoutOauthSessionNestedInput } export type OAuthSessionCreateManyInput = { id?: string mcpAccessToken: string mcpRefreshToken: string mcpTokenExpiry: bigint | number gitlabAccessToken: string gitlabRefreshToken: string gitlabTokenExpiry: bigint | number gitlabUserId: number gitlabUsername: string gitlabApiUrl?: string | null instanceLabel?: string | null clientId: string scopes?: Prisma.OAuthSessionCreatescopesInput | string[] createdAt: bigint | number updatedAt: bigint | number } export type OAuthSessionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mcpAccessToken?: Prisma.StringFieldUpdateOperationsInput | string mcpRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string mcpTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null clientId?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.OAuthSessionUpdatescopesInput | string[] createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type OAuthSessionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mcpAccessToken?: Prisma.StringFieldUpdateOperationsInput | string mcpRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string mcpTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null clientId?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.OAuthSessionUpdatescopesInput | string[] createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type StringNullableListFilter<$PrismaModel = never> = { equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> isEmpty?: boolean } export type OAuthSessionCountOrderByAggregateInput = { id?: Prisma.SortOrder mcpAccessToken?: Prisma.SortOrder mcpRefreshToken?: Prisma.SortOrder mcpTokenExpiry?: Prisma.SortOrder gitlabAccessToken?: Prisma.SortOrder gitlabRefreshToken?: Prisma.SortOrder gitlabTokenExpiry?: Prisma.SortOrder gitlabUserId?: Prisma.SortOrder gitlabUsername?: Prisma.SortOrder gitlabApiUrl?: Prisma.SortOrder instanceLabel?: Prisma.SortOrder clientId?: Prisma.SortOrder scopes?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OAuthSessionAvgOrderByAggregateInput = { mcpTokenExpiry?: Prisma.SortOrder gitlabTokenExpiry?: Prisma.SortOrder gitlabUserId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OAuthSessionMaxOrderByAggregateInput = { id?: Prisma.SortOrder mcpAccessToken?: Prisma.SortOrder mcpRefreshToken?: Prisma.SortOrder mcpTokenExpiry?: Prisma.SortOrder gitlabAccessToken?: Prisma.SortOrder gitlabRefreshToken?: Prisma.SortOrder gitlabTokenExpiry?: Prisma.SortOrder gitlabUserId?: Prisma.SortOrder gitlabUsername?: Prisma.SortOrder gitlabApiUrl?: Prisma.SortOrder instanceLabel?: Prisma.SortOrder clientId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OAuthSessionMinOrderByAggregateInput = { id?: Prisma.SortOrder mcpAccessToken?: Prisma.SortOrder mcpRefreshToken?: Prisma.SortOrder mcpTokenExpiry?: Prisma.SortOrder gitlabAccessToken?: Prisma.SortOrder gitlabRefreshToken?: Prisma.SortOrder gitlabTokenExpiry?: Prisma.SortOrder gitlabUserId?: Prisma.SortOrder gitlabUsername?: Prisma.SortOrder gitlabApiUrl?: Prisma.SortOrder instanceLabel?: Prisma.SortOrder clientId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OAuthSessionSumOrderByAggregateInput = { mcpTokenExpiry?: Prisma.SortOrder gitlabTokenExpiry?: Prisma.SortOrder gitlabUserId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type OAuthSessionScalarRelationFilter = { is?: Prisma.OAuthSessionWhereInput isNot?: Prisma.OAuthSessionWhereInput } export type OAuthSessionCreatescopesInput = { set: string[] } export type StringFieldUpdateOperationsInput = { set?: string } export type BigIntFieldUpdateOperationsInput = { set?: bigint | number increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type OAuthSessionUpdatescopesInput = { set?: string[] push?: string | string[] } export type OAuthSessionCreateNestedOneWithoutAuthorizationCodesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OAuthSessionCreateOrConnectWithoutAuthorizationCodesInput connect?: Prisma.OAuthSessionWhereUniqueInput } export type OAuthSessionUpdateOneRequiredWithoutAuthorizationCodesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OAuthSessionCreateOrConnectWithoutAuthorizationCodesInput upsert?: Prisma.OAuthSessionUpsertWithoutAuthorizationCodesInput connect?: Prisma.OAuthSessionWhereUniqueInput update?: Prisma.XOR, Prisma.OAuthSessionUncheckedUpdateWithoutAuthorizationCodesInput> } export type OAuthSessionCreateNestedOneWithoutMcpSessionMappingsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OAuthSessionCreateOrConnectWithoutMcpSessionMappingsInput connect?: Prisma.OAuthSessionWhereUniqueInput } export type OAuthSessionUpdateOneRequiredWithoutMcpSessionMappingsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OAuthSessionCreateOrConnectWithoutMcpSessionMappingsInput upsert?: Prisma.OAuthSessionUpsertWithoutMcpSessionMappingsInput connect?: Prisma.OAuthSessionWhereUniqueInput update?: Prisma.XOR, Prisma.OAuthSessionUncheckedUpdateWithoutMcpSessionMappingsInput> } export type OAuthSessionCreateWithoutAuthorizationCodesInput = { id?: string mcpAccessToken: string mcpRefreshToken: string mcpTokenExpiry: bigint | number gitlabAccessToken: string gitlabRefreshToken: string gitlabTokenExpiry: bigint | number gitlabUserId: number gitlabUsername: string gitlabApiUrl?: string | null instanceLabel?: string | null clientId: string scopes?: Prisma.OAuthSessionCreatescopesInput | string[] createdAt: bigint | number updatedAt: bigint | number mcpSessionMappings?: Prisma.McpSessionMappingCreateNestedManyWithoutOauthSessionInput } export type OAuthSessionUncheckedCreateWithoutAuthorizationCodesInput = { id?: string mcpAccessToken: string mcpRefreshToken: string mcpTokenExpiry: bigint | number gitlabAccessToken: string gitlabRefreshToken: string gitlabTokenExpiry: bigint | number gitlabUserId: number gitlabUsername: string gitlabApiUrl?: string | null instanceLabel?: string | null clientId: string scopes?: Prisma.OAuthSessionCreatescopesInput | string[] createdAt: bigint | number updatedAt: bigint | number mcpSessionMappings?: Prisma.McpSessionMappingUncheckedCreateNestedManyWithoutOauthSessionInput } export type OAuthSessionCreateOrConnectWithoutAuthorizationCodesInput = { where: Prisma.OAuthSessionWhereUniqueInput create: Prisma.XOR } export type OAuthSessionUpsertWithoutAuthorizationCodesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.OAuthSessionWhereInput } export type OAuthSessionUpdateToOneWithWhereWithoutAuthorizationCodesInput = { where?: Prisma.OAuthSessionWhereInput data: Prisma.XOR } export type OAuthSessionUpdateWithoutAuthorizationCodesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mcpAccessToken?: Prisma.StringFieldUpdateOperationsInput | string mcpRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string mcpTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null clientId?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.OAuthSessionUpdatescopesInput | string[] createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number mcpSessionMappings?: Prisma.McpSessionMappingUpdateManyWithoutOauthSessionNestedInput } export type OAuthSessionUncheckedUpdateWithoutAuthorizationCodesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mcpAccessToken?: Prisma.StringFieldUpdateOperationsInput | string mcpRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string mcpTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null clientId?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.OAuthSessionUpdatescopesInput | string[] createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number mcpSessionMappings?: Prisma.McpSessionMappingUncheckedUpdateManyWithoutOauthSessionNestedInput } export type OAuthSessionCreateWithoutMcpSessionMappingsInput = { id?: string mcpAccessToken: string mcpRefreshToken: string mcpTokenExpiry: bigint | number gitlabAccessToken: string gitlabRefreshToken: string gitlabTokenExpiry: bigint | number gitlabUserId: number gitlabUsername: string gitlabApiUrl?: string | null instanceLabel?: string | null clientId: string scopes?: Prisma.OAuthSessionCreatescopesInput | string[] createdAt: bigint | number updatedAt: bigint | number authorizationCodes?: Prisma.AuthorizationCodeCreateNestedManyWithoutSessionInput } export type OAuthSessionUncheckedCreateWithoutMcpSessionMappingsInput = { id?: string mcpAccessToken: string mcpRefreshToken: string mcpTokenExpiry: bigint | number gitlabAccessToken: string gitlabRefreshToken: string gitlabTokenExpiry: bigint | number gitlabUserId: number gitlabUsername: string gitlabApiUrl?: string | null instanceLabel?: string | null clientId: string scopes?: Prisma.OAuthSessionCreatescopesInput | string[] createdAt: bigint | number updatedAt: bigint | number authorizationCodes?: Prisma.AuthorizationCodeUncheckedCreateNestedManyWithoutSessionInput } export type OAuthSessionCreateOrConnectWithoutMcpSessionMappingsInput = { where: Prisma.OAuthSessionWhereUniqueInput create: Prisma.XOR } export type OAuthSessionUpsertWithoutMcpSessionMappingsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.OAuthSessionWhereInput } export type OAuthSessionUpdateToOneWithWhereWithoutMcpSessionMappingsInput = { where?: Prisma.OAuthSessionWhereInput data: Prisma.XOR } export type OAuthSessionUpdateWithoutMcpSessionMappingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mcpAccessToken?: Prisma.StringFieldUpdateOperationsInput | string mcpRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string mcpTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null clientId?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.OAuthSessionUpdatescopesInput | string[] createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number authorizationCodes?: Prisma.AuthorizationCodeUpdateManyWithoutSessionNestedInput } export type OAuthSessionUncheckedUpdateWithoutMcpSessionMappingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mcpAccessToken?: Prisma.StringFieldUpdateOperationsInput | string mcpRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string mcpTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabAccessToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabRefreshToken?: Prisma.StringFieldUpdateOperationsInput | string gitlabTokenExpiry?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number gitlabUserId?: Prisma.IntFieldUpdateOperationsInput | number gitlabUsername?: Prisma.StringFieldUpdateOperationsInput | string gitlabApiUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null instanceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null clientId?: Prisma.StringFieldUpdateOperationsInput | string scopes?: Prisma.OAuthSessionUpdatescopesInput | string[] createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number authorizationCodes?: Prisma.AuthorizationCodeUncheckedUpdateManyWithoutSessionNestedInput } /** * Count Type OAuthSessionCountOutputType */ export type OAuthSessionCountOutputType = { authorizationCodes: number mcpSessionMappings: number } export type OAuthSessionCountOutputTypeSelect = { authorizationCodes?: boolean | OAuthSessionCountOutputTypeCountAuthorizationCodesArgs mcpSessionMappings?: boolean | OAuthSessionCountOutputTypeCountMcpSessionMappingsArgs } /** * OAuthSessionCountOutputType without action */ export type OAuthSessionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the OAuthSessionCountOutputType */ select?: Prisma.OAuthSessionCountOutputTypeSelect | null } /** * OAuthSessionCountOutputType without action */ export type OAuthSessionCountOutputTypeCountAuthorizationCodesArgs = { where?: Prisma.AuthorizationCodeWhereInput } /** * OAuthSessionCountOutputType without action */ export type OAuthSessionCountOutputTypeCountMcpSessionMappingsArgs = { where?: Prisma.McpSessionMappingWhereInput } export type OAuthSessionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean mcpAccessToken?: boolean mcpRefreshToken?: boolean mcpTokenExpiry?: boolean gitlabAccessToken?: boolean gitlabRefreshToken?: boolean gitlabTokenExpiry?: boolean gitlabUserId?: boolean gitlabUsername?: boolean gitlabApiUrl?: boolean instanceLabel?: boolean clientId?: boolean scopes?: boolean createdAt?: boolean updatedAt?: boolean authorizationCodes?: boolean | Prisma.OAuthSession$authorizationCodesArgs mcpSessionMappings?: boolean | Prisma.OAuthSession$mcpSessionMappingsArgs _count?: boolean | Prisma.OAuthSessionCountOutputTypeDefaultArgs }, ExtArgs["result"]["oAuthSession"]> export type OAuthSessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean mcpAccessToken?: boolean mcpRefreshToken?: boolean mcpTokenExpiry?: boolean gitlabAccessToken?: boolean gitlabRefreshToken?: boolean gitlabTokenExpiry?: boolean gitlabUserId?: boolean gitlabUsername?: boolean gitlabApiUrl?: boolean instanceLabel?: boolean clientId?: boolean scopes?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["oAuthSession"]> export type OAuthSessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean mcpAccessToken?: boolean mcpRefreshToken?: boolean mcpTokenExpiry?: boolean gitlabAccessToken?: boolean gitlabRefreshToken?: boolean gitlabTokenExpiry?: boolean gitlabUserId?: boolean gitlabUsername?: boolean gitlabApiUrl?: boolean instanceLabel?: boolean clientId?: boolean scopes?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["oAuthSession"]> export type OAuthSessionSelectScalar = { id?: boolean mcpAccessToken?: boolean mcpRefreshToken?: boolean mcpTokenExpiry?: boolean gitlabAccessToken?: boolean gitlabRefreshToken?: boolean gitlabTokenExpiry?: boolean gitlabUserId?: boolean gitlabUsername?: boolean gitlabApiUrl?: boolean instanceLabel?: boolean clientId?: boolean scopes?: boolean createdAt?: boolean updatedAt?: boolean } export type OAuthSessionOmit = runtime.Types.Extensions.GetOmit<"id" | "mcpAccessToken" | "mcpRefreshToken" | "mcpTokenExpiry" | "gitlabAccessToken" | "gitlabRefreshToken" | "gitlabTokenExpiry" | "gitlabUserId" | "gitlabUsername" | "gitlabApiUrl" | "instanceLabel" | "clientId" | "scopes" | "createdAt" | "updatedAt", ExtArgs["result"]["oAuthSession"]> export type OAuthSessionInclude = { authorizationCodes?: boolean | Prisma.OAuthSession$authorizationCodesArgs mcpSessionMappings?: boolean | Prisma.OAuthSession$mcpSessionMappingsArgs _count?: boolean | Prisma.OAuthSessionCountOutputTypeDefaultArgs } export type OAuthSessionIncludeCreateManyAndReturn = {} export type OAuthSessionIncludeUpdateManyAndReturn = {} export type $OAuthSessionPayload = { name: "OAuthSession" objects: { authorizationCodes: Prisma.$AuthorizationCodePayload[] mcpSessionMappings: Prisma.$McpSessionMappingPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string mcpAccessToken: string mcpRefreshToken: string mcpTokenExpiry: bigint gitlabAccessToken: string gitlabRefreshToken: string gitlabTokenExpiry: bigint gitlabUserId: number gitlabUsername: string gitlabApiUrl: string | null instanceLabel: string | null clientId: string scopes: string[] createdAt: bigint updatedAt: bigint }, ExtArgs["result"]["oAuthSession"]> composites: {} } export type OAuthSessionGetPayload = runtime.Types.Result.GetResult export type OAuthSessionCountArgs = Omit & { select?: OAuthSessionCountAggregateInputType | true } export interface OAuthSessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['OAuthSession'], meta: { name: 'OAuthSession' } } /** * Find zero or one OAuthSession that matches the filter. * @param {OAuthSessionFindUniqueArgs} args - Arguments to find a OAuthSession * @example * // Get one OAuthSession * const oAuthSession = await prisma.oAuthSession.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one OAuthSession that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OAuthSessionFindUniqueOrThrowArgs} args - Arguments to find a OAuthSession * @example * // Get one OAuthSession * const oAuthSession = await prisma.oAuthSession.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first OAuthSession 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 {OAuthSessionFindFirstArgs} args - Arguments to find a OAuthSession * @example * // Get one OAuthSession * const oAuthSession = await prisma.oAuthSession.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first OAuthSession 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 {OAuthSessionFindFirstOrThrowArgs} args - Arguments to find a OAuthSession * @example * // Get one OAuthSession * const oAuthSession = await prisma.oAuthSession.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more OAuthSessions 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 {OAuthSessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all OAuthSessions * const oAuthSessions = await prisma.oAuthSession.findMany() * * // Get first 10 OAuthSessions * const oAuthSessions = await prisma.oAuthSession.findMany({ take: 10 }) * * // Only select the `id` * const oAuthSessionWithIdOnly = await prisma.oAuthSession.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a OAuthSession. * @param {OAuthSessionCreateArgs} args - Arguments to create a OAuthSession. * @example * // Create one OAuthSession * const OAuthSession = await prisma.oAuthSession.create({ * data: { * // ... data to create a OAuthSession * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many OAuthSessions. * @param {OAuthSessionCreateManyArgs} args - Arguments to create many OAuthSessions. * @example * // Create many OAuthSessions * const oAuthSession = await prisma.oAuthSession.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many OAuthSessions and returns the data saved in the database. * @param {OAuthSessionCreateManyAndReturnArgs} args - Arguments to create many OAuthSessions. * @example * // Create many OAuthSessions * const oAuthSession = await prisma.oAuthSession.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many OAuthSessions and only return the `id` * const oAuthSessionWithIdOnly = await prisma.oAuthSession.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 OAuthSession. * @param {OAuthSessionDeleteArgs} args - Arguments to delete one OAuthSession. * @example * // Delete one OAuthSession * const OAuthSession = await prisma.oAuthSession.delete({ * where: { * // ... filter to delete one OAuthSession * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one OAuthSession. * @param {OAuthSessionUpdateArgs} args - Arguments to update one OAuthSession. * @example * // Update one OAuthSession * const oAuthSession = await prisma.oAuthSession.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more OAuthSessions. * @param {OAuthSessionDeleteManyArgs} args - Arguments to filter OAuthSessions to delete. * @example * // Delete a few OAuthSessions * const { count } = await prisma.oAuthSession.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OAuthSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthSessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many OAuthSessions * const oAuthSession = await prisma.oAuthSession.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more OAuthSessions and returns the data updated in the database. * @param {OAuthSessionUpdateManyAndReturnArgs} args - Arguments to update many OAuthSessions. * @example * // Update many OAuthSessions * const oAuthSession = await prisma.oAuthSession.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more OAuthSessions and only return the `id` * const oAuthSessionWithIdOnly = await prisma.oAuthSession.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 OAuthSession. * @param {OAuthSessionUpsertArgs} args - Arguments to update or create a OAuthSession. * @example * // Update or create a OAuthSession * const oAuthSession = await prisma.oAuthSession.upsert({ * create: { * // ... data to create a OAuthSession * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the OAuthSession we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of OAuthSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthSessionCountArgs} args - Arguments to filter OAuthSessions to count. * @example * // Count the number of OAuthSessions * const count = await prisma.oAuthSession.count({ * where: { * // ... the filter for the OAuthSessions 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 OAuthSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthSessionAggregateArgs} 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 OAuthSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthSessionGroupByArgs} 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 OAuthSessionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: OAuthSessionGroupByArgs['orderBy'] } : { orderBy?: OAuthSessionGroupByArgs['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 ? GetOAuthSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the OAuthSession model */ readonly fields: OAuthSessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for OAuthSession. * 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__OAuthSessionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" authorizationCodes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> mcpSessionMappings = {}>(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 OAuthSession model */ export interface OAuthSessionFieldRefs { readonly id: Prisma.FieldRef<"OAuthSession", 'String'> readonly mcpAccessToken: Prisma.FieldRef<"OAuthSession", 'String'> readonly mcpRefreshToken: Prisma.FieldRef<"OAuthSession", 'String'> readonly mcpTokenExpiry: Prisma.FieldRef<"OAuthSession", 'BigInt'> readonly gitlabAccessToken: Prisma.FieldRef<"OAuthSession", 'String'> readonly gitlabRefreshToken: Prisma.FieldRef<"OAuthSession", 'String'> readonly gitlabTokenExpiry: Prisma.FieldRef<"OAuthSession", 'BigInt'> readonly gitlabUserId: Prisma.FieldRef<"OAuthSession", 'Int'> readonly gitlabUsername: Prisma.FieldRef<"OAuthSession", 'String'> readonly gitlabApiUrl: Prisma.FieldRef<"OAuthSession", 'String'> readonly instanceLabel: Prisma.FieldRef<"OAuthSession", 'String'> readonly clientId: Prisma.FieldRef<"OAuthSession", 'String'> readonly scopes: Prisma.FieldRef<"OAuthSession", 'String[]'> readonly createdAt: Prisma.FieldRef<"OAuthSession", 'BigInt'> readonly updatedAt: Prisma.FieldRef<"OAuthSession", 'BigInt'> } // Custom InputTypes /** * OAuthSession findUnique */ export type OAuthSessionFindUniqueArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null /** * Filter, which OAuthSession to fetch. */ where: Prisma.OAuthSessionWhereUniqueInput } /** * OAuthSession findUniqueOrThrow */ export type OAuthSessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null /** * Filter, which OAuthSession to fetch. */ where: Prisma.OAuthSessionWhereUniqueInput } /** * OAuthSession findFirst */ export type OAuthSessionFindFirstArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null /** * Filter, which OAuthSession to fetch. */ where?: Prisma.OAuthSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthSessions to fetch. */ orderBy?: Prisma.OAuthSessionOrderByWithRelationInput | Prisma.OAuthSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OAuthSessions. */ cursor?: Prisma.OAuthSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OAuthSessions 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` OAuthSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OAuthSessions. */ distinct?: Prisma.OAuthSessionScalarFieldEnum | Prisma.OAuthSessionScalarFieldEnum[] } /** * OAuthSession findFirstOrThrow */ export type OAuthSessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null /** * Filter, which OAuthSession to fetch. */ where?: Prisma.OAuthSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthSessions to fetch. */ orderBy?: Prisma.OAuthSessionOrderByWithRelationInput | Prisma.OAuthSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for OAuthSessions. */ cursor?: Prisma.OAuthSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OAuthSessions 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` OAuthSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OAuthSessions. */ distinct?: Prisma.OAuthSessionScalarFieldEnum | Prisma.OAuthSessionScalarFieldEnum[] } /** * OAuthSession findMany */ export type OAuthSessionFindManyArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null /** * Filter, which OAuthSessions to fetch. */ where?: Prisma.OAuthSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthSessions to fetch. */ orderBy?: Prisma.OAuthSessionOrderByWithRelationInput | Prisma.OAuthSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing OAuthSessions. */ cursor?: Prisma.OAuthSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` OAuthSessions 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` OAuthSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of OAuthSessions. */ distinct?: Prisma.OAuthSessionScalarFieldEnum | Prisma.OAuthSessionScalarFieldEnum[] } /** * OAuthSession create */ export type OAuthSessionCreateArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null /** * The data needed to create a OAuthSession. */ data: Prisma.XOR } /** * OAuthSession createMany */ export type OAuthSessionCreateManyArgs = { /** * The data used to create many OAuthSessions. */ data: Prisma.OAuthSessionCreateManyInput | Prisma.OAuthSessionCreateManyInput[] skipDuplicates?: boolean } /** * OAuthSession createManyAndReturn */ export type OAuthSessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelectCreateManyAndReturn | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * The data used to create many OAuthSessions. */ data: Prisma.OAuthSessionCreateManyInput | Prisma.OAuthSessionCreateManyInput[] skipDuplicates?: boolean } /** * OAuthSession update */ export type OAuthSessionUpdateArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null /** * The data needed to update a OAuthSession. */ data: Prisma.XOR /** * Choose, which OAuthSession to update. */ where: Prisma.OAuthSessionWhereUniqueInput } /** * OAuthSession updateMany */ export type OAuthSessionUpdateManyArgs = { /** * The data used to update OAuthSessions. */ data: Prisma.XOR /** * Filter which OAuthSessions to update */ where?: Prisma.OAuthSessionWhereInput /** * Limit how many OAuthSessions to update. */ limit?: number } /** * OAuthSession updateManyAndReturn */ export type OAuthSessionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelectUpdateManyAndReturn | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * The data used to update OAuthSessions. */ data: Prisma.XOR /** * Filter which OAuthSessions to update */ where?: Prisma.OAuthSessionWhereInput /** * Limit how many OAuthSessions to update. */ limit?: number } /** * OAuthSession upsert */ export type OAuthSessionUpsertArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null /** * The filter to search for the OAuthSession to update in case it exists. */ where: Prisma.OAuthSessionWhereUniqueInput /** * In case the OAuthSession found by the `where` argument doesn't exist, create a new OAuthSession with this data. */ create: Prisma.XOR /** * In case the OAuthSession was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * OAuthSession delete */ export type OAuthSessionDeleteArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null /** * Filter which OAuthSession to delete. */ where: Prisma.OAuthSessionWhereUniqueInput } /** * OAuthSession deleteMany */ export type OAuthSessionDeleteManyArgs = { /** * Filter which OAuthSessions to delete */ where?: Prisma.OAuthSessionWhereInput /** * Limit how many OAuthSessions to delete. */ limit?: number } /** * OAuthSession.authorizationCodes */ export type OAuthSession$authorizationCodesArgs = { /** * Select specific fields to fetch from the AuthorizationCode */ select?: Prisma.AuthorizationCodeSelect | null /** * Omit specific fields from the AuthorizationCode */ omit?: Prisma.AuthorizationCodeOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AuthorizationCodeInclude | null where?: Prisma.AuthorizationCodeWhereInput orderBy?: Prisma.AuthorizationCodeOrderByWithRelationInput | Prisma.AuthorizationCodeOrderByWithRelationInput[] cursor?: Prisma.AuthorizationCodeWhereUniqueInput take?: number skip?: number distinct?: Prisma.AuthorizationCodeScalarFieldEnum | Prisma.AuthorizationCodeScalarFieldEnum[] } /** * OAuthSession.mcpSessionMappings */ export type OAuthSession$mcpSessionMappingsArgs = { /** * Select specific fields to fetch from the McpSessionMapping */ select?: Prisma.McpSessionMappingSelect | null /** * Omit specific fields from the McpSessionMapping */ omit?: Prisma.McpSessionMappingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.McpSessionMappingInclude | null where?: Prisma.McpSessionMappingWhereInput orderBy?: Prisma.McpSessionMappingOrderByWithRelationInput | Prisma.McpSessionMappingOrderByWithRelationInput[] cursor?: Prisma.McpSessionMappingWhereUniqueInput take?: number skip?: number distinct?: Prisma.McpSessionMappingScalarFieldEnum | Prisma.McpSessionMappingScalarFieldEnum[] } /** * OAuthSession without action */ export type OAuthSessionDefaultArgs = { /** * Select specific fields to fetch from the OAuthSession */ select?: Prisma.OAuthSessionSelect | null /** * Omit specific fields from the OAuthSession */ omit?: Prisma.OAuthSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionInclude | null }