/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `OAuthSessions` 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 OAuthSessions * */ export type OAuthSessionsModel = runtime.Types.Result.DefaultSelection export type AggregateOAuthSessions = { _count: OAuthSessionsCountAggregateOutputType | null _min: OAuthSessionsMinAggregateOutputType | null _max: OAuthSessionsMaxAggregateOutputType | null } export type OAuthSessionsMinAggregateOutputType = { id: string | null user_id: string | null application: string | null access_token: string | null refresh_token: string | null access_token_expiry: Date | null refresh_token_expiry: Date | null is_revoked: boolean | null created_at: Date | null updated_at: Date | null sid: string | null } export type OAuthSessionsMaxAggregateOutputType = { id: string | null user_id: string | null application: string | null access_token: string | null refresh_token: string | null access_token_expiry: Date | null refresh_token_expiry: Date | null is_revoked: boolean | null created_at: Date | null updated_at: Date | null sid: string | null } export type OAuthSessionsCountAggregateOutputType = { id: number user_id: number application: number access_token: number refresh_token: number access_token_expiry: number refresh_token_expiry: number is_revoked: number scopes: number created_at: number updated_at: number sid: number _all: number } export type OAuthSessionsMinAggregateInputType = { id?: true user_id?: true application?: true access_token?: true refresh_token?: true access_token_expiry?: true refresh_token_expiry?: true is_revoked?: true created_at?: true updated_at?: true sid?: true } export type OAuthSessionsMaxAggregateInputType = { id?: true user_id?: true application?: true access_token?: true refresh_token?: true access_token_expiry?: true refresh_token_expiry?: true is_revoked?: true created_at?: true updated_at?: true sid?: true } export type OAuthSessionsCountAggregateInputType = { id?: true user_id?: true application?: true access_token?: true refresh_token?: true access_token_expiry?: true refresh_token_expiry?: true is_revoked?: true scopes?: true created_at?: true updated_at?: true sid?: true _all?: true } export type OAuthSessionsAggregateArgs = { /** * Filter which OAuthSessions to aggregate. */ where?: Prisma.OAuthSessionsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthSessions to fetch. */ orderBy?: Prisma.OAuthSessionsOrderByWithRelationInput | Prisma.OAuthSessionsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.OAuthSessionsWhereUniqueInput /** * {@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 | OAuthSessionsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OAuthSessionsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OAuthSessionsMaxAggregateInputType } export type GetOAuthSessionsAggregateType = { [P in keyof T & keyof AggregateOAuthSessions]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type OAuthSessionsGroupByArgs = { where?: Prisma.OAuthSessionsWhereInput orderBy?: Prisma.OAuthSessionsOrderByWithAggregationInput | Prisma.OAuthSessionsOrderByWithAggregationInput[] by: Prisma.OAuthSessionsScalarFieldEnum[] | Prisma.OAuthSessionsScalarFieldEnum having?: Prisma.OAuthSessionsScalarWhereWithAggregatesInput take?: number skip?: number _count?: OAuthSessionsCountAggregateInputType | true _min?: OAuthSessionsMinAggregateInputType _max?: OAuthSessionsMaxAggregateInputType } export type OAuthSessionsGroupByOutputType = { id: string user_id: string application: string access_token: string refresh_token: string access_token_expiry: Date refresh_token_expiry: Date | null is_revoked: boolean scopes: runtime.JsonValue created_at: Date updated_at: Date | null sid: string _count: OAuthSessionsCountAggregateOutputType | null _min: OAuthSessionsMinAggregateOutputType | null _max: OAuthSessionsMaxAggregateOutputType | null } type GetOAuthSessionsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof OAuthSessionsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type OAuthSessionsWhereInput = { AND?: Prisma.OAuthSessionsWhereInput | Prisma.OAuthSessionsWhereInput[] OR?: Prisma.OAuthSessionsWhereInput[] NOT?: Prisma.OAuthSessionsWhereInput | Prisma.OAuthSessionsWhereInput[] id?: Prisma.StringFilter<"OAuthSessions"> | string user_id?: Prisma.UuidFilter<"OAuthSessions"> | string application?: Prisma.StringFilter<"OAuthSessions"> | string access_token?: Prisma.StringFilter<"OAuthSessions"> | string refresh_token?: Prisma.StringFilter<"OAuthSessions"> | string access_token_expiry?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string refresh_token_expiry?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null is_revoked?: Prisma.BoolFilter<"OAuthSessions"> | boolean scopes?: Prisma.JsonFilter<"OAuthSessions"> created_at?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string updated_at?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null sid?: Prisma.StringFilter<"OAuthSessions"> | string user?: Prisma.XOR } export type OAuthSessionsOrderByWithRelationInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder application?: Prisma.SortOrder access_token?: Prisma.SortOrder refresh_token?: Prisma.SortOrder access_token_expiry?: Prisma.SortOrder refresh_token_expiry?: Prisma.SortOrderInput | Prisma.SortOrder is_revoked?: Prisma.SortOrder scopes?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder sid?: Prisma.SortOrder user?: Prisma.UsersOrderByWithRelationInput } export type OAuthSessionsWhereUniqueInput = Prisma.AtLeast<{ id?: string access_token?: string refresh_token?: string sid?: string AND?: Prisma.OAuthSessionsWhereInput | Prisma.OAuthSessionsWhereInput[] OR?: Prisma.OAuthSessionsWhereInput[] NOT?: Prisma.OAuthSessionsWhereInput | Prisma.OAuthSessionsWhereInput[] user_id?: Prisma.UuidFilter<"OAuthSessions"> | string application?: Prisma.StringFilter<"OAuthSessions"> | string access_token_expiry?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string refresh_token_expiry?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null is_revoked?: Prisma.BoolFilter<"OAuthSessions"> | boolean scopes?: Prisma.JsonFilter<"OAuthSessions"> created_at?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string updated_at?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null user?: Prisma.XOR }, "id" | "access_token" | "refresh_token" | "sid"> export type OAuthSessionsOrderByWithAggregationInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder application?: Prisma.SortOrder access_token?: Prisma.SortOrder refresh_token?: Prisma.SortOrder access_token_expiry?: Prisma.SortOrder refresh_token_expiry?: Prisma.SortOrderInput | Prisma.SortOrder is_revoked?: Prisma.SortOrder scopes?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder sid?: Prisma.SortOrder _count?: Prisma.OAuthSessionsCountOrderByAggregateInput _max?: Prisma.OAuthSessionsMaxOrderByAggregateInput _min?: Prisma.OAuthSessionsMinOrderByAggregateInput } export type OAuthSessionsScalarWhereWithAggregatesInput = { AND?: Prisma.OAuthSessionsScalarWhereWithAggregatesInput | Prisma.OAuthSessionsScalarWhereWithAggregatesInput[] OR?: Prisma.OAuthSessionsScalarWhereWithAggregatesInput[] NOT?: Prisma.OAuthSessionsScalarWhereWithAggregatesInput | Prisma.OAuthSessionsScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string user_id?: Prisma.UuidWithAggregatesFilter<"OAuthSessions"> | string application?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string access_token?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string refresh_token?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string access_token_expiry?: Prisma.DateTimeWithAggregatesFilter<"OAuthSessions"> | Date | string refresh_token_expiry?: Prisma.DateTimeNullableWithAggregatesFilter<"OAuthSessions"> | Date | string | null is_revoked?: Prisma.BoolWithAggregatesFilter<"OAuthSessions"> | boolean scopes?: Prisma.JsonWithAggregatesFilter<"OAuthSessions"> created_at?: Prisma.DateTimeWithAggregatesFilter<"OAuthSessions"> | Date | string updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"OAuthSessions"> | Date | string | null sid?: Prisma.StringWithAggregatesFilter<"OAuthSessions"> | string } export type OAuthSessionsCreateInput = { id?: string application: string access_token: string refresh_token: string access_token_expiry: Date | string refresh_token_expiry?: Date | string | null is_revoked?: boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Date | string updated_at?: Date | string | null sid: string user: Prisma.UsersCreateNestedOneWithoutOauth_sessionsInput } export type OAuthSessionsUncheckedCreateInput = { id?: string user_id: string application: string access_token: string refresh_token: string access_token_expiry: Date | string refresh_token_expiry?: Date | string | null is_revoked?: boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Date | string updated_at?: Date | string | null sid: string } export type OAuthSessionsUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string application?: Prisma.StringFieldUpdateOperationsInput | string access_token?: Prisma.StringFieldUpdateOperationsInput | string refresh_token?: Prisma.StringFieldUpdateOperationsInput | string access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null sid?: Prisma.StringFieldUpdateOperationsInput | string user?: Prisma.UsersUpdateOneRequiredWithoutOauth_sessionsNestedInput } export type OAuthSessionsUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.StringFieldUpdateOperationsInput | string application?: Prisma.StringFieldUpdateOperationsInput | string access_token?: Prisma.StringFieldUpdateOperationsInput | string refresh_token?: Prisma.StringFieldUpdateOperationsInput | string access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null sid?: Prisma.StringFieldUpdateOperationsInput | string } export type OAuthSessionsCreateManyInput = { id?: string user_id: string application: string access_token: string refresh_token: string access_token_expiry: Date | string refresh_token_expiry?: Date | string | null is_revoked?: boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Date | string updated_at?: Date | string | null sid: string } export type OAuthSessionsUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string application?: Prisma.StringFieldUpdateOperationsInput | string access_token?: Prisma.StringFieldUpdateOperationsInput | string refresh_token?: Prisma.StringFieldUpdateOperationsInput | string access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null sid?: Prisma.StringFieldUpdateOperationsInput | string } export type OAuthSessionsUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.StringFieldUpdateOperationsInput | string application?: Prisma.StringFieldUpdateOperationsInput | string access_token?: Prisma.StringFieldUpdateOperationsInput | string refresh_token?: Prisma.StringFieldUpdateOperationsInput | string access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null sid?: Prisma.StringFieldUpdateOperationsInput | string } export type OAuthSessionsListRelationFilter = { every?: Prisma.OAuthSessionsWhereInput some?: Prisma.OAuthSessionsWhereInput none?: Prisma.OAuthSessionsWhereInput } export type OAuthSessionsOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type OAuthSessionsCountOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder application?: Prisma.SortOrder access_token?: Prisma.SortOrder refresh_token?: Prisma.SortOrder access_token_expiry?: Prisma.SortOrder refresh_token_expiry?: Prisma.SortOrder is_revoked?: Prisma.SortOrder scopes?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder sid?: Prisma.SortOrder } export type OAuthSessionsMaxOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder application?: Prisma.SortOrder access_token?: Prisma.SortOrder refresh_token?: Prisma.SortOrder access_token_expiry?: Prisma.SortOrder refresh_token_expiry?: Prisma.SortOrder is_revoked?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder sid?: Prisma.SortOrder } export type OAuthSessionsMinOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder application?: Prisma.SortOrder access_token?: Prisma.SortOrder refresh_token?: Prisma.SortOrder access_token_expiry?: Prisma.SortOrder refresh_token_expiry?: Prisma.SortOrder is_revoked?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder sid?: Prisma.SortOrder } export type OAuthSessionsCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.OAuthSessionsCreateWithoutUserInput[] | Prisma.OAuthSessionsUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.OAuthSessionsCreateOrConnectWithoutUserInput | Prisma.OAuthSessionsCreateOrConnectWithoutUserInput[] createMany?: Prisma.OAuthSessionsCreateManyUserInputEnvelope connect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] } export type OAuthSessionsUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.OAuthSessionsCreateWithoutUserInput[] | Prisma.OAuthSessionsUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.OAuthSessionsCreateOrConnectWithoutUserInput | Prisma.OAuthSessionsCreateOrConnectWithoutUserInput[] createMany?: Prisma.OAuthSessionsCreateManyUserInputEnvelope connect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] } export type OAuthSessionsUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.OAuthSessionsCreateWithoutUserInput[] | Prisma.OAuthSessionsUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.OAuthSessionsCreateOrConnectWithoutUserInput | Prisma.OAuthSessionsCreateOrConnectWithoutUserInput[] upsert?: Prisma.OAuthSessionsUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthSessionsUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.OAuthSessionsCreateManyUserInputEnvelope set?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] disconnect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] delete?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] connect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] update?: Prisma.OAuthSessionsUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthSessionsUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.OAuthSessionsUpdateManyWithWhereWithoutUserInput | Prisma.OAuthSessionsUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.OAuthSessionsScalarWhereInput | Prisma.OAuthSessionsScalarWhereInput[] } export type OAuthSessionsUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.OAuthSessionsCreateWithoutUserInput[] | Prisma.OAuthSessionsUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.OAuthSessionsCreateOrConnectWithoutUserInput | Prisma.OAuthSessionsCreateOrConnectWithoutUserInput[] upsert?: Prisma.OAuthSessionsUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthSessionsUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.OAuthSessionsCreateManyUserInputEnvelope set?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] disconnect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] delete?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] connect?: Prisma.OAuthSessionsWhereUniqueInput | Prisma.OAuthSessionsWhereUniqueInput[] update?: Prisma.OAuthSessionsUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthSessionsUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.OAuthSessionsUpdateManyWithWhereWithoutUserInput | Prisma.OAuthSessionsUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.OAuthSessionsScalarWhereInput | Prisma.OAuthSessionsScalarWhereInput[] } export type OAuthSessionsCreateWithoutUserInput = { id?: string application: string access_token: string refresh_token: string access_token_expiry: Date | string refresh_token_expiry?: Date | string | null is_revoked?: boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Date | string updated_at?: Date | string | null sid: string } export type OAuthSessionsUncheckedCreateWithoutUserInput = { id?: string application: string access_token: string refresh_token: string access_token_expiry: Date | string refresh_token_expiry?: Date | string | null is_revoked?: boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Date | string updated_at?: Date | string | null sid: string } export type OAuthSessionsCreateOrConnectWithoutUserInput = { where: Prisma.OAuthSessionsWhereUniqueInput create: Prisma.XOR } export type OAuthSessionsCreateManyUserInputEnvelope = { data: Prisma.OAuthSessionsCreateManyUserInput | Prisma.OAuthSessionsCreateManyUserInput[] skipDuplicates?: boolean } export type OAuthSessionsUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.OAuthSessionsWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type OAuthSessionsUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.OAuthSessionsWhereUniqueInput data: Prisma.XOR } export type OAuthSessionsUpdateManyWithWhereWithoutUserInput = { where: Prisma.OAuthSessionsScalarWhereInput data: Prisma.XOR } export type OAuthSessionsScalarWhereInput = { AND?: Prisma.OAuthSessionsScalarWhereInput | Prisma.OAuthSessionsScalarWhereInput[] OR?: Prisma.OAuthSessionsScalarWhereInput[] NOT?: Prisma.OAuthSessionsScalarWhereInput | Prisma.OAuthSessionsScalarWhereInput[] id?: Prisma.StringFilter<"OAuthSessions"> | string user_id?: Prisma.UuidFilter<"OAuthSessions"> | string application?: Prisma.StringFilter<"OAuthSessions"> | string access_token?: Prisma.StringFilter<"OAuthSessions"> | string refresh_token?: Prisma.StringFilter<"OAuthSessions"> | string access_token_expiry?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string refresh_token_expiry?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null is_revoked?: Prisma.BoolFilter<"OAuthSessions"> | boolean scopes?: Prisma.JsonFilter<"OAuthSessions"> created_at?: Prisma.DateTimeFilter<"OAuthSessions"> | Date | string updated_at?: Prisma.DateTimeNullableFilter<"OAuthSessions"> | Date | string | null sid?: Prisma.StringFilter<"OAuthSessions"> | string } export type OAuthSessionsCreateManyUserInput = { id?: string application: string access_token: string refresh_token: string access_token_expiry: Date | string refresh_token_expiry?: Date | string | null is_revoked?: boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Date | string updated_at?: Date | string | null sid: string } export type OAuthSessionsUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string application?: Prisma.StringFieldUpdateOperationsInput | string access_token?: Prisma.StringFieldUpdateOperationsInput | string refresh_token?: Prisma.StringFieldUpdateOperationsInput | string access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null sid?: Prisma.StringFieldUpdateOperationsInput | string } export type OAuthSessionsUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string application?: Prisma.StringFieldUpdateOperationsInput | string access_token?: Prisma.StringFieldUpdateOperationsInput | string refresh_token?: Prisma.StringFieldUpdateOperationsInput | string access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null sid?: Prisma.StringFieldUpdateOperationsInput | string } export type OAuthSessionsUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string application?: Prisma.StringFieldUpdateOperationsInput | string access_token?: Prisma.StringFieldUpdateOperationsInput | string refresh_token?: Prisma.StringFieldUpdateOperationsInput | string access_token_expiry?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string refresh_token_expiry?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null is_revoked?: Prisma.BoolFieldUpdateOperationsInput | boolean scopes?: Prisma.JsonNullValueInput | runtime.InputJsonValue created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null sid?: Prisma.StringFieldUpdateOperationsInput | string } export type OAuthSessionsSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean user_id?: boolean application?: boolean access_token?: boolean refresh_token?: boolean access_token_expiry?: boolean refresh_token_expiry?: boolean is_revoked?: boolean scopes?: boolean created_at?: boolean updated_at?: boolean sid?: boolean user?: boolean | Prisma.UsersDefaultArgs }, ExtArgs["result"]["oAuthSessions"]> export type OAuthSessionsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean user_id?: boolean application?: boolean access_token?: boolean refresh_token?: boolean access_token_expiry?: boolean refresh_token_expiry?: boolean is_revoked?: boolean scopes?: boolean created_at?: boolean updated_at?: boolean sid?: boolean user?: boolean | Prisma.UsersDefaultArgs }, ExtArgs["result"]["oAuthSessions"]> export type OAuthSessionsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean user_id?: boolean application?: boolean access_token?: boolean refresh_token?: boolean access_token_expiry?: boolean refresh_token_expiry?: boolean is_revoked?: boolean scopes?: boolean created_at?: boolean updated_at?: boolean sid?: boolean user?: boolean | Prisma.UsersDefaultArgs }, ExtArgs["result"]["oAuthSessions"]> export type OAuthSessionsSelectScalar = { id?: boolean user_id?: boolean application?: boolean access_token?: boolean refresh_token?: boolean access_token_expiry?: boolean refresh_token_expiry?: boolean is_revoked?: boolean scopes?: boolean created_at?: boolean updated_at?: boolean sid?: boolean } export type OAuthSessionsOmit = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "application" | "access_token" | "refresh_token" | "access_token_expiry" | "refresh_token_expiry" | "is_revoked" | "scopes" | "created_at" | "updated_at" | "sid", ExtArgs["result"]["oAuthSessions"]> export type OAuthSessionsInclude = { user?: boolean | Prisma.UsersDefaultArgs } export type OAuthSessionsIncludeCreateManyAndReturn = { user?: boolean | Prisma.UsersDefaultArgs } export type OAuthSessionsIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UsersDefaultArgs } export type $OAuthSessionsPayload = { name: "OAuthSessions" objects: { user: Prisma.$UsersPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string user_id: string application: string access_token: string refresh_token: string access_token_expiry: Date refresh_token_expiry: Date | null is_revoked: boolean scopes: runtime.JsonValue created_at: Date updated_at: Date | null sid: string }, ExtArgs["result"]["oAuthSessions"]> composites: {} } export type OAuthSessionsGetPayload = runtime.Types.Result.GetResult export type OAuthSessionsCountArgs = Omit & { select?: OAuthSessionsCountAggregateInputType | true } export interface OAuthSessionsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['OAuthSessions'], meta: { name: 'OAuthSessions' } } /** * Find zero or one OAuthSessions that matches the filter. * @param {OAuthSessionsFindUniqueArgs} args - Arguments to find a OAuthSessions * @example * // Get one OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one OAuthSessions that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OAuthSessionsFindUniqueOrThrowArgs} args - Arguments to find a OAuthSessions * @example * // Get one OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first 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 {OAuthSessionsFindFirstArgs} args - Arguments to find a OAuthSessions * @example * // Get one OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first OAuthSessions 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 {OAuthSessionsFindFirstOrThrowArgs} args - Arguments to find a OAuthSessions * @example * // Get one OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, 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 {OAuthSessionsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.findMany() * * // Get first 10 OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.findMany({ take: 10 }) * * // Only select the `id` * const oAuthSessionsWithIdOnly = await prisma.oAuthSessions.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a OAuthSessions. * @param {OAuthSessionsCreateArgs} args - Arguments to create a OAuthSessions. * @example * // Create one OAuthSessions * const OAuthSessions = await prisma.oAuthSessions.create({ * data: { * // ... data to create a OAuthSessions * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many OAuthSessions. * @param {OAuthSessionsCreateManyArgs} args - Arguments to create many OAuthSessions. * @example * // Create many OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many OAuthSessions and returns the data saved in the database. * @param {OAuthSessionsCreateManyAndReturnArgs} args - Arguments to create many OAuthSessions. * @example * // Create many OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many OAuthSessions and only return the `id` * const oAuthSessionsWithIdOnly = await prisma.oAuthSessions.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 OAuthSessions. * @param {OAuthSessionsDeleteArgs} args - Arguments to delete one OAuthSessions. * @example * // Delete one OAuthSessions * const OAuthSessions = await prisma.oAuthSessions.delete({ * where: { * // ... filter to delete one OAuthSessions * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one OAuthSessions. * @param {OAuthSessionsUpdateArgs} args - Arguments to update one OAuthSessions. * @example * // Update one OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more OAuthSessions. * @param {OAuthSessionsDeleteManyArgs} args - Arguments to filter OAuthSessions to delete. * @example * // Delete a few OAuthSessions * const { count } = await prisma.oAuthSessions.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 {OAuthSessionsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.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 {OAuthSessionsUpdateManyAndReturnArgs} args - Arguments to update many OAuthSessions. * @example * // Update many OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more OAuthSessions and only return the `id` * const oAuthSessionsWithIdOnly = await prisma.oAuthSessions.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 OAuthSessions. * @param {OAuthSessionsUpsertArgs} args - Arguments to update or create a OAuthSessions. * @example * // Update or create a OAuthSessions * const oAuthSessions = await prisma.oAuthSessions.upsert({ * create: { * // ... data to create a OAuthSessions * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the OAuthSessions we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthSessionsClient, 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 {OAuthSessionsCountArgs} args - Arguments to filter OAuthSessions to count. * @example * // Count the number of OAuthSessions * const count = await prisma.oAuthSessions.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 OAuthSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthSessionsAggregateArgs} 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 OAuthSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OAuthSessionsGroupByArgs} 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 OAuthSessionsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: OAuthSessionsGroupByArgs['orderBy'] } : { orderBy?: OAuthSessionsGroupByArgs['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 ? GetOAuthSessionsGroupByPayload : Prisma.PrismaPromise /** * Fields of the OAuthSessions model */ readonly fields: OAuthSessionsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for OAuthSessions. * 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__OAuthSessionsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UsersClient, 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 OAuthSessions model */ export interface OAuthSessionsFieldRefs { readonly id: Prisma.FieldRef<"OAuthSessions", 'String'> readonly user_id: Prisma.FieldRef<"OAuthSessions", 'String'> readonly application: Prisma.FieldRef<"OAuthSessions", 'String'> readonly access_token: Prisma.FieldRef<"OAuthSessions", 'String'> readonly refresh_token: Prisma.FieldRef<"OAuthSessions", 'String'> readonly access_token_expiry: Prisma.FieldRef<"OAuthSessions", 'DateTime'> readonly refresh_token_expiry: Prisma.FieldRef<"OAuthSessions", 'DateTime'> readonly is_revoked: Prisma.FieldRef<"OAuthSessions", 'Boolean'> readonly scopes: Prisma.FieldRef<"OAuthSessions", 'Json'> readonly created_at: Prisma.FieldRef<"OAuthSessions", 'DateTime'> readonly updated_at: Prisma.FieldRef<"OAuthSessions", 'DateTime'> readonly sid: Prisma.FieldRef<"OAuthSessions", 'String'> } // Custom InputTypes /** * OAuthSessions findUnique */ export type OAuthSessionsFindUniqueArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null /** * Filter, which OAuthSessions to fetch. */ where: Prisma.OAuthSessionsWhereUniqueInput } /** * OAuthSessions findUniqueOrThrow */ export type OAuthSessionsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null /** * Filter, which OAuthSessions to fetch. */ where: Prisma.OAuthSessionsWhereUniqueInput } /** * OAuthSessions findFirst */ export type OAuthSessionsFindFirstArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null /** * Filter, which OAuthSessions to fetch. */ where?: Prisma.OAuthSessionsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthSessions to fetch. */ orderBy?: Prisma.OAuthSessionsOrderByWithRelationInput | Prisma.OAuthSessionsOrderByWithRelationInput[] /** * {@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.OAuthSessionsWhereUniqueInput /** * {@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.OAuthSessionsScalarFieldEnum | Prisma.OAuthSessionsScalarFieldEnum[] } /** * OAuthSessions findFirstOrThrow */ export type OAuthSessionsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null /** * Filter, which OAuthSessions to fetch. */ where?: Prisma.OAuthSessionsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthSessions to fetch. */ orderBy?: Prisma.OAuthSessionsOrderByWithRelationInput | Prisma.OAuthSessionsOrderByWithRelationInput[] /** * {@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.OAuthSessionsWhereUniqueInput /** * {@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.OAuthSessionsScalarFieldEnum | Prisma.OAuthSessionsScalarFieldEnum[] } /** * OAuthSessions findMany */ export type OAuthSessionsFindManyArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null /** * Filter, which OAuthSessions to fetch. */ where?: Prisma.OAuthSessionsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of OAuthSessions to fetch. */ orderBy?: Prisma.OAuthSessionsOrderByWithRelationInput | Prisma.OAuthSessionsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing OAuthSessions. */ cursor?: Prisma.OAuthSessionsWhereUniqueInput /** * {@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 distinct?: Prisma.OAuthSessionsScalarFieldEnum | Prisma.OAuthSessionsScalarFieldEnum[] } /** * OAuthSessions create */ export type OAuthSessionsCreateArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null /** * The data needed to create a OAuthSessions. */ data: Prisma.XOR } /** * OAuthSessions createMany */ export type OAuthSessionsCreateManyArgs = { /** * The data used to create many OAuthSessions. */ data: Prisma.OAuthSessionsCreateManyInput | Prisma.OAuthSessionsCreateManyInput[] skipDuplicates?: boolean } /** * OAuthSessions createManyAndReturn */ export type OAuthSessionsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelectCreateManyAndReturn | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * The data used to create many OAuthSessions. */ data: Prisma.OAuthSessionsCreateManyInput | Prisma.OAuthSessionsCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsIncludeCreateManyAndReturn | null } /** * OAuthSessions update */ export type OAuthSessionsUpdateArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null /** * The data needed to update a OAuthSessions. */ data: Prisma.XOR /** * Choose, which OAuthSessions to update. */ where: Prisma.OAuthSessionsWhereUniqueInput } /** * OAuthSessions updateMany */ export type OAuthSessionsUpdateManyArgs = { /** * The data used to update OAuthSessions. */ data: Prisma.XOR /** * Filter which OAuthSessions to update */ where?: Prisma.OAuthSessionsWhereInput /** * Limit how many OAuthSessions to update. */ limit?: number } /** * OAuthSessions updateManyAndReturn */ export type OAuthSessionsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelectUpdateManyAndReturn | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * The data used to update OAuthSessions. */ data: Prisma.XOR /** * Filter which OAuthSessions to update */ where?: Prisma.OAuthSessionsWhereInput /** * Limit how many OAuthSessions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsIncludeUpdateManyAndReturn | null } /** * OAuthSessions upsert */ export type OAuthSessionsUpsertArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null /** * The filter to search for the OAuthSessions to update in case it exists. */ where: Prisma.OAuthSessionsWhereUniqueInput /** * In case the OAuthSessions found by the `where` argument doesn't exist, create a new OAuthSessions with this data. */ create: Prisma.XOR /** * In case the OAuthSessions was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * OAuthSessions delete */ export type OAuthSessionsDeleteArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null /** * Filter which OAuthSessions to delete. */ where: Prisma.OAuthSessionsWhereUniqueInput } /** * OAuthSessions deleteMany */ export type OAuthSessionsDeleteManyArgs = { /** * Filter which OAuthSessions to delete */ where?: Prisma.OAuthSessionsWhereInput /** * Limit how many OAuthSessions to delete. */ limit?: number } /** * OAuthSessions without action */ export type OAuthSessionsDefaultArgs = { /** * Select specific fields to fetch from the OAuthSessions */ select?: Prisma.OAuthSessionsSelect | null /** * Omit specific fields from the OAuthSessions */ omit?: Prisma.OAuthSessionsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OAuthSessionsInclude | null }