/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AuthCodeFlowState` 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 AuthCodeFlowState * */ export type AuthCodeFlowStateModel = runtime.Types.Result.DefaultSelection export type AggregateAuthCodeFlowState = { _count: AuthCodeFlowStateCountAggregateOutputType | null _avg: AuthCodeFlowStateAvgAggregateOutputType | null _sum: AuthCodeFlowStateSumAggregateOutputType | null _min: AuthCodeFlowStateMinAggregateOutputType | null _max: AuthCodeFlowStateMaxAggregateOutputType | null } export type AuthCodeFlowStateAvgAggregateOutputType = { expiresAt: number | null } export type AuthCodeFlowStateSumAggregateOutputType = { expiresAt: bigint | null } export type AuthCodeFlowStateMinAggregateOutputType = { internalState: string | null clientId: string | null codeChallenge: string | null codeChallengeMethod: string | null clientState: string | null clientRedirectUri: string | null callbackUri: string | null expiresAt: bigint | null } export type AuthCodeFlowStateMaxAggregateOutputType = { internalState: string | null clientId: string | null codeChallenge: string | null codeChallengeMethod: string | null clientState: string | null clientRedirectUri: string | null callbackUri: string | null expiresAt: bigint | null } export type AuthCodeFlowStateCountAggregateOutputType = { internalState: number clientId: number codeChallenge: number codeChallengeMethod: number clientState: number clientRedirectUri: number callbackUri: number expiresAt: number _all: number } export type AuthCodeFlowStateAvgAggregateInputType = { expiresAt?: true } export type AuthCodeFlowStateSumAggregateInputType = { expiresAt?: true } export type AuthCodeFlowStateMinAggregateInputType = { internalState?: true clientId?: true codeChallenge?: true codeChallengeMethod?: true clientState?: true clientRedirectUri?: true callbackUri?: true expiresAt?: true } export type AuthCodeFlowStateMaxAggregateInputType = { internalState?: true clientId?: true codeChallenge?: true codeChallengeMethod?: true clientState?: true clientRedirectUri?: true callbackUri?: true expiresAt?: true } export type AuthCodeFlowStateCountAggregateInputType = { internalState?: true clientId?: true codeChallenge?: true codeChallengeMethod?: true clientState?: true clientRedirectUri?: true callbackUri?: true expiresAt?: true _all?: true } export type AuthCodeFlowStateAggregateArgs = { /** * Filter which AuthCodeFlowState to aggregate. */ where?: Prisma.AuthCodeFlowStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuthCodeFlowStates to fetch. */ orderBy?: Prisma.AuthCodeFlowStateOrderByWithRelationInput | Prisma.AuthCodeFlowStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AuthCodeFlowStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuthCodeFlowStates 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` AuthCodeFlowStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AuthCodeFlowStates **/ _count?: true | AuthCodeFlowStateCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AuthCodeFlowStateAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AuthCodeFlowStateSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AuthCodeFlowStateMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AuthCodeFlowStateMaxAggregateInputType } export type GetAuthCodeFlowStateAggregateType = { [P in keyof T & keyof AggregateAuthCodeFlowState]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AuthCodeFlowStateGroupByArgs = { where?: Prisma.AuthCodeFlowStateWhereInput orderBy?: Prisma.AuthCodeFlowStateOrderByWithAggregationInput | Prisma.AuthCodeFlowStateOrderByWithAggregationInput[] by: Prisma.AuthCodeFlowStateScalarFieldEnum[] | Prisma.AuthCodeFlowStateScalarFieldEnum having?: Prisma.AuthCodeFlowStateScalarWhereWithAggregatesInput take?: number skip?: number _count?: AuthCodeFlowStateCountAggregateInputType | true _avg?: AuthCodeFlowStateAvgAggregateInputType _sum?: AuthCodeFlowStateSumAggregateInputType _min?: AuthCodeFlowStateMinAggregateInputType _max?: AuthCodeFlowStateMaxAggregateInputType } export type AuthCodeFlowStateGroupByOutputType = { internalState: string clientId: string codeChallenge: string codeChallengeMethod: string clientState: string clientRedirectUri: string callbackUri: string expiresAt: bigint _count: AuthCodeFlowStateCountAggregateOutputType | null _avg: AuthCodeFlowStateAvgAggregateOutputType | null _sum: AuthCodeFlowStateSumAggregateOutputType | null _min: AuthCodeFlowStateMinAggregateOutputType | null _max: AuthCodeFlowStateMaxAggregateOutputType | null } type GetAuthCodeFlowStateGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AuthCodeFlowStateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AuthCodeFlowStateWhereInput = { AND?: Prisma.AuthCodeFlowStateWhereInput | Prisma.AuthCodeFlowStateWhereInput[] OR?: Prisma.AuthCodeFlowStateWhereInput[] NOT?: Prisma.AuthCodeFlowStateWhereInput | Prisma.AuthCodeFlowStateWhereInput[] internalState?: Prisma.StringFilter<"AuthCodeFlowState"> | string clientId?: Prisma.StringFilter<"AuthCodeFlowState"> | string codeChallenge?: Prisma.StringFilter<"AuthCodeFlowState"> | string codeChallengeMethod?: Prisma.StringFilter<"AuthCodeFlowState"> | string clientState?: Prisma.StringFilter<"AuthCodeFlowState"> | string clientRedirectUri?: Prisma.StringFilter<"AuthCodeFlowState"> | string callbackUri?: Prisma.StringFilter<"AuthCodeFlowState"> | string expiresAt?: Prisma.BigIntFilter<"AuthCodeFlowState"> | bigint | number } export type AuthCodeFlowStateOrderByWithRelationInput = { internalState?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder clientState?: Prisma.SortOrder clientRedirectUri?: Prisma.SortOrder callbackUri?: Prisma.SortOrder expiresAt?: Prisma.SortOrder } export type AuthCodeFlowStateWhereUniqueInput = Prisma.AtLeast<{ internalState?: string AND?: Prisma.AuthCodeFlowStateWhereInput | Prisma.AuthCodeFlowStateWhereInput[] OR?: Prisma.AuthCodeFlowStateWhereInput[] NOT?: Prisma.AuthCodeFlowStateWhereInput | Prisma.AuthCodeFlowStateWhereInput[] clientId?: Prisma.StringFilter<"AuthCodeFlowState"> | string codeChallenge?: Prisma.StringFilter<"AuthCodeFlowState"> | string codeChallengeMethod?: Prisma.StringFilter<"AuthCodeFlowState"> | string clientState?: Prisma.StringFilter<"AuthCodeFlowState"> | string clientRedirectUri?: Prisma.StringFilter<"AuthCodeFlowState"> | string callbackUri?: Prisma.StringFilter<"AuthCodeFlowState"> | string expiresAt?: Prisma.BigIntFilter<"AuthCodeFlowState"> | bigint | number }, "internalState"> export type AuthCodeFlowStateOrderByWithAggregationInput = { internalState?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder clientState?: Prisma.SortOrder clientRedirectUri?: Prisma.SortOrder callbackUri?: Prisma.SortOrder expiresAt?: Prisma.SortOrder _count?: Prisma.AuthCodeFlowStateCountOrderByAggregateInput _avg?: Prisma.AuthCodeFlowStateAvgOrderByAggregateInput _max?: Prisma.AuthCodeFlowStateMaxOrderByAggregateInput _min?: Prisma.AuthCodeFlowStateMinOrderByAggregateInput _sum?: Prisma.AuthCodeFlowStateSumOrderByAggregateInput } export type AuthCodeFlowStateScalarWhereWithAggregatesInput = { AND?: Prisma.AuthCodeFlowStateScalarWhereWithAggregatesInput | Prisma.AuthCodeFlowStateScalarWhereWithAggregatesInput[] OR?: Prisma.AuthCodeFlowStateScalarWhereWithAggregatesInput[] NOT?: Prisma.AuthCodeFlowStateScalarWhereWithAggregatesInput | Prisma.AuthCodeFlowStateScalarWhereWithAggregatesInput[] internalState?: Prisma.StringWithAggregatesFilter<"AuthCodeFlowState"> | string clientId?: Prisma.StringWithAggregatesFilter<"AuthCodeFlowState"> | string codeChallenge?: Prisma.StringWithAggregatesFilter<"AuthCodeFlowState"> | string codeChallengeMethod?: Prisma.StringWithAggregatesFilter<"AuthCodeFlowState"> | string clientState?: Prisma.StringWithAggregatesFilter<"AuthCodeFlowState"> | string clientRedirectUri?: Prisma.StringWithAggregatesFilter<"AuthCodeFlowState"> | string callbackUri?: Prisma.StringWithAggregatesFilter<"AuthCodeFlowState"> | string expiresAt?: Prisma.BigIntWithAggregatesFilter<"AuthCodeFlowState"> | bigint | number } export type AuthCodeFlowStateCreateInput = { internalState: string clientId: string codeChallenge: string codeChallengeMethod: string clientState: string clientRedirectUri: string callbackUri: string expiresAt: bigint | number } export type AuthCodeFlowStateUncheckedCreateInput = { internalState: string clientId: string codeChallenge: string codeChallengeMethod: string clientState: string clientRedirectUri: string callbackUri: string expiresAt: bigint | number } export type AuthCodeFlowStateUpdateInput = { internalState?: Prisma.StringFieldUpdateOperationsInput | string clientId?: Prisma.StringFieldUpdateOperationsInput | string codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string codeChallengeMethod?: Prisma.StringFieldUpdateOperationsInput | string clientState?: Prisma.StringFieldUpdateOperationsInput | string clientRedirectUri?: Prisma.StringFieldUpdateOperationsInput | string callbackUri?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type AuthCodeFlowStateUncheckedUpdateInput = { internalState?: Prisma.StringFieldUpdateOperationsInput | string clientId?: Prisma.StringFieldUpdateOperationsInput | string codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string codeChallengeMethod?: Prisma.StringFieldUpdateOperationsInput | string clientState?: Prisma.StringFieldUpdateOperationsInput | string clientRedirectUri?: Prisma.StringFieldUpdateOperationsInput | string callbackUri?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type AuthCodeFlowStateCreateManyInput = { internalState: string clientId: string codeChallenge: string codeChallengeMethod: string clientState: string clientRedirectUri: string callbackUri: string expiresAt: bigint | number } export type AuthCodeFlowStateUpdateManyMutationInput = { internalState?: Prisma.StringFieldUpdateOperationsInput | string clientId?: Prisma.StringFieldUpdateOperationsInput | string codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string codeChallengeMethod?: Prisma.StringFieldUpdateOperationsInput | string clientState?: Prisma.StringFieldUpdateOperationsInput | string clientRedirectUri?: Prisma.StringFieldUpdateOperationsInput | string callbackUri?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type AuthCodeFlowStateUncheckedUpdateManyInput = { internalState?: Prisma.StringFieldUpdateOperationsInput | string clientId?: Prisma.StringFieldUpdateOperationsInput | string codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string codeChallengeMethod?: Prisma.StringFieldUpdateOperationsInput | string clientState?: Prisma.StringFieldUpdateOperationsInput | string clientRedirectUri?: Prisma.StringFieldUpdateOperationsInput | string callbackUri?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type AuthCodeFlowStateCountOrderByAggregateInput = { internalState?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder clientState?: Prisma.SortOrder clientRedirectUri?: Prisma.SortOrder callbackUri?: Prisma.SortOrder expiresAt?: Prisma.SortOrder } export type AuthCodeFlowStateAvgOrderByAggregateInput = { expiresAt?: Prisma.SortOrder } export type AuthCodeFlowStateMaxOrderByAggregateInput = { internalState?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder clientState?: Prisma.SortOrder clientRedirectUri?: Prisma.SortOrder callbackUri?: Prisma.SortOrder expiresAt?: Prisma.SortOrder } export type AuthCodeFlowStateMinOrderByAggregateInput = { internalState?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder clientState?: Prisma.SortOrder clientRedirectUri?: Prisma.SortOrder callbackUri?: Prisma.SortOrder expiresAt?: Prisma.SortOrder } export type AuthCodeFlowStateSumOrderByAggregateInput = { expiresAt?: Prisma.SortOrder } export type AuthCodeFlowStateSelect = runtime.Types.Extensions.GetSelect<{ internalState?: boolean clientId?: boolean codeChallenge?: boolean codeChallengeMethod?: boolean clientState?: boolean clientRedirectUri?: boolean callbackUri?: boolean expiresAt?: boolean }, ExtArgs["result"]["authCodeFlowState"]> export type AuthCodeFlowStateSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ internalState?: boolean clientId?: boolean codeChallenge?: boolean codeChallengeMethod?: boolean clientState?: boolean clientRedirectUri?: boolean callbackUri?: boolean expiresAt?: boolean }, ExtArgs["result"]["authCodeFlowState"]> export type AuthCodeFlowStateSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ internalState?: boolean clientId?: boolean codeChallenge?: boolean codeChallengeMethod?: boolean clientState?: boolean clientRedirectUri?: boolean callbackUri?: boolean expiresAt?: boolean }, ExtArgs["result"]["authCodeFlowState"]> export type AuthCodeFlowStateSelectScalar = { internalState?: boolean clientId?: boolean codeChallenge?: boolean codeChallengeMethod?: boolean clientState?: boolean clientRedirectUri?: boolean callbackUri?: boolean expiresAt?: boolean } export type AuthCodeFlowStateOmit = runtime.Types.Extensions.GetOmit<"internalState" | "clientId" | "codeChallenge" | "codeChallengeMethod" | "clientState" | "clientRedirectUri" | "callbackUri" | "expiresAt", ExtArgs["result"]["authCodeFlowState"]> export type $AuthCodeFlowStatePayload = { name: "AuthCodeFlowState" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ internalState: string clientId: string codeChallenge: string codeChallengeMethod: string clientState: string clientRedirectUri: string callbackUri: string expiresAt: bigint }, ExtArgs["result"]["authCodeFlowState"]> composites: {} } export type AuthCodeFlowStateGetPayload = runtime.Types.Result.GetResult export type AuthCodeFlowStateCountArgs = Omit & { select?: AuthCodeFlowStateCountAggregateInputType | true } export interface AuthCodeFlowStateDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AuthCodeFlowState'], meta: { name: 'AuthCodeFlowState' } } /** * Find zero or one AuthCodeFlowState that matches the filter. * @param {AuthCodeFlowStateFindUniqueArgs} args - Arguments to find a AuthCodeFlowState * @example * // Get one AuthCodeFlowState * const authCodeFlowState = await prisma.authCodeFlowState.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuthCodeFlowStateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AuthCodeFlowState that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AuthCodeFlowStateFindUniqueOrThrowArgs} args - Arguments to find a AuthCodeFlowState * @example * // Get one AuthCodeFlowState * const authCodeFlowState = await prisma.authCodeFlowState.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuthCodeFlowStateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AuthCodeFlowState 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 {AuthCodeFlowStateFindFirstArgs} args - Arguments to find a AuthCodeFlowState * @example * // Get one AuthCodeFlowState * const authCodeFlowState = await prisma.authCodeFlowState.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthCodeFlowStateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AuthCodeFlowState 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 {AuthCodeFlowStateFindFirstOrThrowArgs} args - Arguments to find a AuthCodeFlowState * @example * // Get one AuthCodeFlowState * const authCodeFlowState = await prisma.authCodeFlowState.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuthCodeFlowStateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AuthCodeFlowStates 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 {AuthCodeFlowStateFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AuthCodeFlowStates * const authCodeFlowStates = await prisma.authCodeFlowState.findMany() * * // Get first 10 AuthCodeFlowStates * const authCodeFlowStates = await prisma.authCodeFlowState.findMany({ take: 10 }) * * // Only select the `internalState` * const authCodeFlowStateWithInternalStateOnly = await prisma.authCodeFlowState.findMany({ select: { internalState: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AuthCodeFlowState. * @param {AuthCodeFlowStateCreateArgs} args - Arguments to create a AuthCodeFlowState. * @example * // Create one AuthCodeFlowState * const AuthCodeFlowState = await prisma.authCodeFlowState.create({ * data: { * // ... data to create a AuthCodeFlowState * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AuthCodeFlowStateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AuthCodeFlowStates. * @param {AuthCodeFlowStateCreateManyArgs} args - Arguments to create many AuthCodeFlowStates. * @example * // Create many AuthCodeFlowStates * const authCodeFlowState = await prisma.authCodeFlowState.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AuthCodeFlowStates and returns the data saved in the database. * @param {AuthCodeFlowStateCreateManyAndReturnArgs} args - Arguments to create many AuthCodeFlowStates. * @example * // Create many AuthCodeFlowStates * const authCodeFlowState = await prisma.authCodeFlowState.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AuthCodeFlowStates and only return the `internalState` * const authCodeFlowStateWithInternalStateOnly = await prisma.authCodeFlowState.createManyAndReturn({ * select: { internalState: 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 AuthCodeFlowState. * @param {AuthCodeFlowStateDeleteArgs} args - Arguments to delete one AuthCodeFlowState. * @example * // Delete one AuthCodeFlowState * const AuthCodeFlowState = await prisma.authCodeFlowState.delete({ * where: { * // ... filter to delete one AuthCodeFlowState * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuthCodeFlowStateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AuthCodeFlowState. * @param {AuthCodeFlowStateUpdateArgs} args - Arguments to update one AuthCodeFlowState. * @example * // Update one AuthCodeFlowState * const authCodeFlowState = await prisma.authCodeFlowState.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AuthCodeFlowStateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AuthCodeFlowStates. * @param {AuthCodeFlowStateDeleteManyArgs} args - Arguments to filter AuthCodeFlowStates to delete. * @example * // Delete a few AuthCodeFlowStates * const { count } = await prisma.authCodeFlowState.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuthCodeFlowStates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuthCodeFlowStateUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AuthCodeFlowStates * const authCodeFlowState = await prisma.authCodeFlowState.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuthCodeFlowStates and returns the data updated in the database. * @param {AuthCodeFlowStateUpdateManyAndReturnArgs} args - Arguments to update many AuthCodeFlowStates. * @example * // Update many AuthCodeFlowStates * const authCodeFlowState = await prisma.authCodeFlowState.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AuthCodeFlowStates and only return the `internalState` * const authCodeFlowStateWithInternalStateOnly = await prisma.authCodeFlowState.updateManyAndReturn({ * select: { internalState: 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 AuthCodeFlowState. * @param {AuthCodeFlowStateUpsertArgs} args - Arguments to update or create a AuthCodeFlowState. * @example * // Update or create a AuthCodeFlowState * const authCodeFlowState = await prisma.authCodeFlowState.upsert({ * create: { * // ... data to create a AuthCodeFlowState * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AuthCodeFlowState we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuthCodeFlowStateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AuthCodeFlowStates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuthCodeFlowStateCountArgs} args - Arguments to filter AuthCodeFlowStates to count. * @example * // Count the number of AuthCodeFlowStates * const count = await prisma.authCodeFlowState.count({ * where: { * // ... the filter for the AuthCodeFlowStates 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 AuthCodeFlowState. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuthCodeFlowStateAggregateArgs} 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 AuthCodeFlowState. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuthCodeFlowStateGroupByArgs} 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 AuthCodeFlowStateGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AuthCodeFlowStateGroupByArgs['orderBy'] } : { orderBy?: AuthCodeFlowStateGroupByArgs['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 ? GetAuthCodeFlowStateGroupByPayload : Prisma.PrismaPromise /** * Fields of the AuthCodeFlowState model */ readonly fields: AuthCodeFlowStateFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AuthCodeFlowState. * 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__AuthCodeFlowStateClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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 AuthCodeFlowState model */ export interface AuthCodeFlowStateFieldRefs { readonly internalState: Prisma.FieldRef<"AuthCodeFlowState", 'String'> readonly clientId: Prisma.FieldRef<"AuthCodeFlowState", 'String'> readonly codeChallenge: Prisma.FieldRef<"AuthCodeFlowState", 'String'> readonly codeChallengeMethod: Prisma.FieldRef<"AuthCodeFlowState", 'String'> readonly clientState: Prisma.FieldRef<"AuthCodeFlowState", 'String'> readonly clientRedirectUri: Prisma.FieldRef<"AuthCodeFlowState", 'String'> readonly callbackUri: Prisma.FieldRef<"AuthCodeFlowState", 'String'> readonly expiresAt: Prisma.FieldRef<"AuthCodeFlowState", 'BigInt'> } // Custom InputTypes /** * AuthCodeFlowState findUnique */ export type AuthCodeFlowStateFindUniqueArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * Filter, which AuthCodeFlowState to fetch. */ where: Prisma.AuthCodeFlowStateWhereUniqueInput } /** * AuthCodeFlowState findUniqueOrThrow */ export type AuthCodeFlowStateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * Filter, which AuthCodeFlowState to fetch. */ where: Prisma.AuthCodeFlowStateWhereUniqueInput } /** * AuthCodeFlowState findFirst */ export type AuthCodeFlowStateFindFirstArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * Filter, which AuthCodeFlowState to fetch. */ where?: Prisma.AuthCodeFlowStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuthCodeFlowStates to fetch. */ orderBy?: Prisma.AuthCodeFlowStateOrderByWithRelationInput | Prisma.AuthCodeFlowStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuthCodeFlowStates. */ cursor?: Prisma.AuthCodeFlowStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuthCodeFlowStates 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` AuthCodeFlowStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuthCodeFlowStates. */ distinct?: Prisma.AuthCodeFlowStateScalarFieldEnum | Prisma.AuthCodeFlowStateScalarFieldEnum[] } /** * AuthCodeFlowState findFirstOrThrow */ export type AuthCodeFlowStateFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * Filter, which AuthCodeFlowState to fetch. */ where?: Prisma.AuthCodeFlowStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuthCodeFlowStates to fetch. */ orderBy?: Prisma.AuthCodeFlowStateOrderByWithRelationInput | Prisma.AuthCodeFlowStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuthCodeFlowStates. */ cursor?: Prisma.AuthCodeFlowStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuthCodeFlowStates 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` AuthCodeFlowStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuthCodeFlowStates. */ distinct?: Prisma.AuthCodeFlowStateScalarFieldEnum | Prisma.AuthCodeFlowStateScalarFieldEnum[] } /** * AuthCodeFlowState findMany */ export type AuthCodeFlowStateFindManyArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * Filter, which AuthCodeFlowStates to fetch. */ where?: Prisma.AuthCodeFlowStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuthCodeFlowStates to fetch. */ orderBy?: Prisma.AuthCodeFlowStateOrderByWithRelationInput | Prisma.AuthCodeFlowStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AuthCodeFlowStates. */ cursor?: Prisma.AuthCodeFlowStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuthCodeFlowStates 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` AuthCodeFlowStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuthCodeFlowStates. */ distinct?: Prisma.AuthCodeFlowStateScalarFieldEnum | Prisma.AuthCodeFlowStateScalarFieldEnum[] } /** * AuthCodeFlowState create */ export type AuthCodeFlowStateCreateArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * The data needed to create a AuthCodeFlowState. */ data: Prisma.XOR } /** * AuthCodeFlowState createMany */ export type AuthCodeFlowStateCreateManyArgs = { /** * The data used to create many AuthCodeFlowStates. */ data: Prisma.AuthCodeFlowStateCreateManyInput | Prisma.AuthCodeFlowStateCreateManyInput[] skipDuplicates?: boolean } /** * AuthCodeFlowState createManyAndReturn */ export type AuthCodeFlowStateCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelectCreateManyAndReturn | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * The data used to create many AuthCodeFlowStates. */ data: Prisma.AuthCodeFlowStateCreateManyInput | Prisma.AuthCodeFlowStateCreateManyInput[] skipDuplicates?: boolean } /** * AuthCodeFlowState update */ export type AuthCodeFlowStateUpdateArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * The data needed to update a AuthCodeFlowState. */ data: Prisma.XOR /** * Choose, which AuthCodeFlowState to update. */ where: Prisma.AuthCodeFlowStateWhereUniqueInput } /** * AuthCodeFlowState updateMany */ export type AuthCodeFlowStateUpdateManyArgs = { /** * The data used to update AuthCodeFlowStates. */ data: Prisma.XOR /** * Filter which AuthCodeFlowStates to update */ where?: Prisma.AuthCodeFlowStateWhereInput /** * Limit how many AuthCodeFlowStates to update. */ limit?: number } /** * AuthCodeFlowState updateManyAndReturn */ export type AuthCodeFlowStateUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelectUpdateManyAndReturn | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * The data used to update AuthCodeFlowStates. */ data: Prisma.XOR /** * Filter which AuthCodeFlowStates to update */ where?: Prisma.AuthCodeFlowStateWhereInput /** * Limit how many AuthCodeFlowStates to update. */ limit?: number } /** * AuthCodeFlowState upsert */ export type AuthCodeFlowStateUpsertArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * The filter to search for the AuthCodeFlowState to update in case it exists. */ where: Prisma.AuthCodeFlowStateWhereUniqueInput /** * In case the AuthCodeFlowState found by the `where` argument doesn't exist, create a new AuthCodeFlowState with this data. */ create: Prisma.XOR /** * In case the AuthCodeFlowState was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AuthCodeFlowState delete */ export type AuthCodeFlowStateDeleteArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null /** * Filter which AuthCodeFlowState to delete. */ where: Prisma.AuthCodeFlowStateWhereUniqueInput } /** * AuthCodeFlowState deleteMany */ export type AuthCodeFlowStateDeleteManyArgs = { /** * Filter which AuthCodeFlowStates to delete */ where?: Prisma.AuthCodeFlowStateWhereInput /** * Limit how many AuthCodeFlowStates to delete. */ limit?: number } /** * AuthCodeFlowState without action */ export type AuthCodeFlowStateDefaultArgs = { /** * Select specific fields to fetch from the AuthCodeFlowState */ select?: Prisma.AuthCodeFlowStateSelect | null /** * Omit specific fields from the AuthCodeFlowState */ omit?: Prisma.AuthCodeFlowStateOmit | null }