1580 lines
61 KiB
TypeScript
1580 lines
61 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `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<Prisma.$OAuthSessionsPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends OAuthSessionsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateOAuthSessions]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateOAuthSessions[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateOAuthSessions[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type OAuthSessionsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends OAuthSessionsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<OAuthSessionsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof OAuthSessionsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], OAuthSessionsGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], OAuthSessionsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
|
|
}
|
|
|
|
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<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
|
|
}, "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> | 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> | 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> | 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> | 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<Prisma.OAuthSessionsCreateWithoutUserInput, Prisma.OAuthSessionsUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type OAuthSessionsCreateManyUserInputEnvelope = {
|
|
data: Prisma.OAuthSessionsCreateManyUserInput | Prisma.OAuthSessionsCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type OAuthSessionsUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.OAuthSessionsWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.OAuthSessionsUpdateWithoutUserInput, Prisma.OAuthSessionsUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.OAuthSessionsCreateWithoutUserInput, Prisma.OAuthSessionsUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type OAuthSessionsUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.OAuthSessionsWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.OAuthSessionsUpdateWithoutUserInput, Prisma.OAuthSessionsUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type OAuthSessionsUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.OAuthSessionsScalarWhereInput
|
|
data: Prisma.XOR<Prisma.OAuthSessionsUpdateManyMutationInput, Prisma.OAuthSessionsUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, ExtArgs["result"]["oAuthSessions"]>
|
|
|
|
export type OAuthSessionsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, ExtArgs["result"]["oAuthSessions"]>
|
|
|
|
export type OAuthSessionsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
|
|
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
|
}
|
|
export type OAuthSessionsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
|
}
|
|
export type OAuthSessionsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $OAuthSessionsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "OAuthSessions"
|
|
objects: {
|
|
user: Prisma.$UsersPayload<ExtArgs>
|
|
}
|
|
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<S extends boolean | null | undefined | OAuthSessionsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload, S>
|
|
|
|
export type OAuthSessionsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<OAuthSessionsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: OAuthSessionsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface OAuthSessionsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends OAuthSessionsFindUniqueArgs>(args: Prisma.SelectSubset<T, OAuthSessionsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OAuthSessionsClient<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OAuthSessionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OAuthSessionsClient<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsFindFirstArgs>(args?: Prisma.SelectSubset<T, OAuthSessionsFindFirstArgs<ExtArgs>>): Prisma.Prisma__OAuthSessionsClient<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OAuthSessionsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OAuthSessionsClient<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsFindManyArgs>(args?: Prisma.SelectSubset<T, OAuthSessionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsCreateArgs>(args: Prisma.SelectSubset<T, OAuthSessionsCreateArgs<ExtArgs>>): Prisma.Prisma__OAuthSessionsClient<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsCreateManyArgs>(args?: Prisma.SelectSubset<T, OAuthSessionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends OAuthSessionsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OAuthSessionsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsDeleteArgs>(args: Prisma.SelectSubset<T, OAuthSessionsDeleteArgs<ExtArgs>>): Prisma.Prisma__OAuthSessionsClient<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsUpdateArgs>(args: Prisma.SelectSubset<T, OAuthSessionsUpdateArgs<ExtArgs>>): Prisma.Prisma__OAuthSessionsClient<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsDeleteManyArgs>(args?: Prisma.SelectSubset<T, OAuthSessionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends OAuthSessionsUpdateManyArgs>(args: Prisma.SelectSubset<T, OAuthSessionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends OAuthSessionsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OAuthSessionsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsUpsertArgs>(args: Prisma.SelectSubset<T, OAuthSessionsUpsertArgs<ExtArgs>>): Prisma.Prisma__OAuthSessionsClient<runtime.Types.Result.GetResult<Prisma.$OAuthSessionsPayload<ExtArgs>, 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<T extends OAuthSessionsCountArgs>(
|
|
args?: Prisma.Subset<T, OAuthSessionsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], OAuthSessionsCountAggregateOutputType>
|
|
: 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<T extends OAuthSessionsAggregateArgs>(args: Prisma.Subset<T, OAuthSessionsAggregateArgs>): Prisma.PrismaPromise<GetOAuthSessionsAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: OAuthSessionsGroupByArgs['orderBy'] }
|
|
: { orderBy?: OAuthSessionsGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, OAuthSessionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOAuthSessionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
user<T extends Prisma.UsersDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UsersDefaultArgs<ExtArgs>>): Prisma.Prisma__UsersClient<runtime.Types.Result.GetResult<Prisma.$UsersPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which OAuthSessions to fetch.
|
|
*/
|
|
where: Prisma.OAuthSessionsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions findUniqueOrThrow
|
|
*/
|
|
export type OAuthSessionsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which OAuthSessions to fetch.
|
|
*/
|
|
where: Prisma.OAuthSessionsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions findFirst
|
|
*/
|
|
export type OAuthSessionsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a OAuthSessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.OAuthSessionsCreateInput, Prisma.OAuthSessionsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions createMany
|
|
*/
|
|
export type OAuthSessionsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many OAuthSessions.
|
|
*/
|
|
data: Prisma.OAuthSessionsCreateManyInput | Prisma.OAuthSessionsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions createManyAndReturn
|
|
*/
|
|
export type OAuthSessionsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions update
|
|
*/
|
|
export type OAuthSessionsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a OAuthSessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.OAuthSessionsUpdateInput, Prisma.OAuthSessionsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which OAuthSessions to update.
|
|
*/
|
|
where: Prisma.OAuthSessionsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions updateMany
|
|
*/
|
|
export type OAuthSessionsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update OAuthSessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.OAuthSessionsUpdateManyMutationInput, Prisma.OAuthSessionsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which OAuthSessions to update
|
|
*/
|
|
where?: Prisma.OAuthSessionsWhereInput
|
|
/**
|
|
* Limit how many OAuthSessions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions updateManyAndReturn
|
|
*/
|
|
export type OAuthSessionsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update OAuthSessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.OAuthSessionsUpdateManyMutationInput, Prisma.OAuthSessionsUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions upsert
|
|
*/
|
|
export type OAuthSessionsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | 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<Prisma.OAuthSessionsCreateInput, Prisma.OAuthSessionsUncheckedCreateInput>
|
|
/**
|
|
* In case the OAuthSessions was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.OAuthSessionsUpdateInput, Prisma.OAuthSessionsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions delete
|
|
*/
|
|
export type OAuthSessionsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which OAuthSessions to delete.
|
|
*/
|
|
where: Prisma.OAuthSessionsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions deleteMany
|
|
*/
|
|
export type OAuthSessionsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which OAuthSessions to delete
|
|
*/
|
|
where?: Prisma.OAuthSessionsWhereInput
|
|
/**
|
|
* Limit how many OAuthSessions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* OAuthSessions without action
|
|
*/
|
|
export type OAuthSessionsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the OAuthSessions
|
|
*/
|
|
select?: Prisma.OAuthSessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the OAuthSessions
|
|
*/
|
|
omit?: Prisma.OAuthSessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OAuthSessionsInclude<ExtArgs> | null
|
|
}
|