/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `DeviceFlowState` 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 DeviceFlowState * */ export type DeviceFlowStateModel = runtime.Types.Result.DefaultSelection export type AggregateDeviceFlowState = { _count: DeviceFlowStateCountAggregateOutputType | null _avg: DeviceFlowStateAvgAggregateOutputType | null _sum: DeviceFlowStateSumAggregateOutputType | null _min: DeviceFlowStateMinAggregateOutputType | null _max: DeviceFlowStateMaxAggregateOutputType | null } export type DeviceFlowStateAvgAggregateOutputType = { expiresAt: number | null interval: number | null } export type DeviceFlowStateSumAggregateOutputType = { expiresAt: bigint | null interval: number | null } export type DeviceFlowStateMinAggregateOutputType = { state: string | null deviceCode: string | null userCode: string | null verificationUri: string | null verificationUriComplete: string | null expiresAt: bigint | null interval: number | null clientId: string | null codeChallenge: string | null codeChallengeMethod: string | null redirectUri: string | null } export type DeviceFlowStateMaxAggregateOutputType = { state: string | null deviceCode: string | null userCode: string | null verificationUri: string | null verificationUriComplete: string | null expiresAt: bigint | null interval: number | null clientId: string | null codeChallenge: string | null codeChallengeMethod: string | null redirectUri: string | null } export type DeviceFlowStateCountAggregateOutputType = { state: number deviceCode: number userCode: number verificationUri: number verificationUriComplete: number expiresAt: number interval: number clientId: number codeChallenge: number codeChallengeMethod: number redirectUri: number _all: number } export type DeviceFlowStateAvgAggregateInputType = { expiresAt?: true interval?: true } export type DeviceFlowStateSumAggregateInputType = { expiresAt?: true interval?: true } export type DeviceFlowStateMinAggregateInputType = { state?: true deviceCode?: true userCode?: true verificationUri?: true verificationUriComplete?: true expiresAt?: true interval?: true clientId?: true codeChallenge?: true codeChallengeMethod?: true redirectUri?: true } export type DeviceFlowStateMaxAggregateInputType = { state?: true deviceCode?: true userCode?: true verificationUri?: true verificationUriComplete?: true expiresAt?: true interval?: true clientId?: true codeChallenge?: true codeChallengeMethod?: true redirectUri?: true } export type DeviceFlowStateCountAggregateInputType = { state?: true deviceCode?: true userCode?: true verificationUri?: true verificationUriComplete?: true expiresAt?: true interval?: true clientId?: true codeChallenge?: true codeChallengeMethod?: true redirectUri?: true _all?: true } export type DeviceFlowStateAggregateArgs = { /** * Filter which DeviceFlowState to aggregate. */ where?: Prisma.DeviceFlowStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceFlowStates to fetch. */ orderBy?: Prisma.DeviceFlowStateOrderByWithRelationInput | Prisma.DeviceFlowStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.DeviceFlowStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceFlowStates 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` DeviceFlowStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DeviceFlowStates **/ _count?: true | DeviceFlowStateCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DeviceFlowStateAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DeviceFlowStateSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceFlowStateMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceFlowStateMaxAggregateInputType } export type GetDeviceFlowStateAggregateType = { [P in keyof T & keyof AggregateDeviceFlowState]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type DeviceFlowStateGroupByArgs = { where?: Prisma.DeviceFlowStateWhereInput orderBy?: Prisma.DeviceFlowStateOrderByWithAggregationInput | Prisma.DeviceFlowStateOrderByWithAggregationInput[] by: Prisma.DeviceFlowStateScalarFieldEnum[] | Prisma.DeviceFlowStateScalarFieldEnum having?: Prisma.DeviceFlowStateScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceFlowStateCountAggregateInputType | true _avg?: DeviceFlowStateAvgAggregateInputType _sum?: DeviceFlowStateSumAggregateInputType _min?: DeviceFlowStateMinAggregateInputType _max?: DeviceFlowStateMaxAggregateInputType } export type DeviceFlowStateGroupByOutputType = { state: string deviceCode: string userCode: string verificationUri: string verificationUriComplete: string | null expiresAt: bigint interval: number clientId: string codeChallenge: string codeChallengeMethod: string redirectUri: string | null _count: DeviceFlowStateCountAggregateOutputType | null _avg: DeviceFlowStateAvgAggregateOutputType | null _sum: DeviceFlowStateSumAggregateOutputType | null _min: DeviceFlowStateMinAggregateOutputType | null _max: DeviceFlowStateMaxAggregateOutputType | null } type GetDeviceFlowStateGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DeviceFlowStateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type DeviceFlowStateWhereInput = { AND?: Prisma.DeviceFlowStateWhereInput | Prisma.DeviceFlowStateWhereInput[] OR?: Prisma.DeviceFlowStateWhereInput[] NOT?: Prisma.DeviceFlowStateWhereInput | Prisma.DeviceFlowStateWhereInput[] state?: Prisma.StringFilter<"DeviceFlowState"> | string deviceCode?: Prisma.StringFilter<"DeviceFlowState"> | string userCode?: Prisma.StringFilter<"DeviceFlowState"> | string verificationUri?: Prisma.StringFilter<"DeviceFlowState"> | string verificationUriComplete?: Prisma.StringNullableFilter<"DeviceFlowState"> | string | null expiresAt?: Prisma.BigIntFilter<"DeviceFlowState"> | bigint | number interval?: Prisma.IntFilter<"DeviceFlowState"> | number clientId?: Prisma.StringFilter<"DeviceFlowState"> | string codeChallenge?: Prisma.StringFilter<"DeviceFlowState"> | string codeChallengeMethod?: Prisma.StringFilter<"DeviceFlowState"> | string redirectUri?: Prisma.StringNullableFilter<"DeviceFlowState"> | string | null } export type DeviceFlowStateOrderByWithRelationInput = { state?: Prisma.SortOrder deviceCode?: Prisma.SortOrder userCode?: Prisma.SortOrder verificationUri?: Prisma.SortOrder verificationUriComplete?: Prisma.SortOrderInput | Prisma.SortOrder expiresAt?: Prisma.SortOrder interval?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder redirectUri?: Prisma.SortOrderInput | Prisma.SortOrder } export type DeviceFlowStateWhereUniqueInput = Prisma.AtLeast<{ state?: string AND?: Prisma.DeviceFlowStateWhereInput | Prisma.DeviceFlowStateWhereInput[] OR?: Prisma.DeviceFlowStateWhereInput[] NOT?: Prisma.DeviceFlowStateWhereInput | Prisma.DeviceFlowStateWhereInput[] deviceCode?: Prisma.StringFilter<"DeviceFlowState"> | string userCode?: Prisma.StringFilter<"DeviceFlowState"> | string verificationUri?: Prisma.StringFilter<"DeviceFlowState"> | string verificationUriComplete?: Prisma.StringNullableFilter<"DeviceFlowState"> | string | null expiresAt?: Prisma.BigIntFilter<"DeviceFlowState"> | bigint | number interval?: Prisma.IntFilter<"DeviceFlowState"> | number clientId?: Prisma.StringFilter<"DeviceFlowState"> | string codeChallenge?: Prisma.StringFilter<"DeviceFlowState"> | string codeChallengeMethod?: Prisma.StringFilter<"DeviceFlowState"> | string redirectUri?: Prisma.StringNullableFilter<"DeviceFlowState"> | string | null }, "state"> export type DeviceFlowStateOrderByWithAggregationInput = { state?: Prisma.SortOrder deviceCode?: Prisma.SortOrder userCode?: Prisma.SortOrder verificationUri?: Prisma.SortOrder verificationUriComplete?: Prisma.SortOrderInput | Prisma.SortOrder expiresAt?: Prisma.SortOrder interval?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder redirectUri?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.DeviceFlowStateCountOrderByAggregateInput _avg?: Prisma.DeviceFlowStateAvgOrderByAggregateInput _max?: Prisma.DeviceFlowStateMaxOrderByAggregateInput _min?: Prisma.DeviceFlowStateMinOrderByAggregateInput _sum?: Prisma.DeviceFlowStateSumOrderByAggregateInput } export type DeviceFlowStateScalarWhereWithAggregatesInput = { AND?: Prisma.DeviceFlowStateScalarWhereWithAggregatesInput | Prisma.DeviceFlowStateScalarWhereWithAggregatesInput[] OR?: Prisma.DeviceFlowStateScalarWhereWithAggregatesInput[] NOT?: Prisma.DeviceFlowStateScalarWhereWithAggregatesInput | Prisma.DeviceFlowStateScalarWhereWithAggregatesInput[] state?: Prisma.StringWithAggregatesFilter<"DeviceFlowState"> | string deviceCode?: Prisma.StringWithAggregatesFilter<"DeviceFlowState"> | string userCode?: Prisma.StringWithAggregatesFilter<"DeviceFlowState"> | string verificationUri?: Prisma.StringWithAggregatesFilter<"DeviceFlowState"> | string verificationUriComplete?: Prisma.StringNullableWithAggregatesFilter<"DeviceFlowState"> | string | null expiresAt?: Prisma.BigIntWithAggregatesFilter<"DeviceFlowState"> | bigint | number interval?: Prisma.IntWithAggregatesFilter<"DeviceFlowState"> | number clientId?: Prisma.StringWithAggregatesFilter<"DeviceFlowState"> | string codeChallenge?: Prisma.StringWithAggregatesFilter<"DeviceFlowState"> | string codeChallengeMethod?: Prisma.StringWithAggregatesFilter<"DeviceFlowState"> | string redirectUri?: Prisma.StringNullableWithAggregatesFilter<"DeviceFlowState"> | string | null } export type DeviceFlowStateCreateInput = { state: string deviceCode: string userCode: string verificationUri: string verificationUriComplete?: string | null expiresAt: bigint | number interval: number clientId: string codeChallenge: string codeChallengeMethod: string redirectUri?: string | null } export type DeviceFlowStateUncheckedCreateInput = { state: string deviceCode: string userCode: string verificationUri: string verificationUriComplete?: string | null expiresAt: bigint | number interval: number clientId: string codeChallenge: string codeChallengeMethod: string redirectUri?: string | null } export type DeviceFlowStateUpdateInput = { state?: Prisma.StringFieldUpdateOperationsInput | string deviceCode?: Prisma.StringFieldUpdateOperationsInput | string userCode?: Prisma.StringFieldUpdateOperationsInput | string verificationUri?: Prisma.StringFieldUpdateOperationsInput | string verificationUriComplete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expiresAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number interval?: Prisma.IntFieldUpdateOperationsInput | number clientId?: Prisma.StringFieldUpdateOperationsInput | string codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string codeChallengeMethod?: Prisma.StringFieldUpdateOperationsInput | string redirectUri?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceFlowStateUncheckedUpdateInput = { state?: Prisma.StringFieldUpdateOperationsInput | string deviceCode?: Prisma.StringFieldUpdateOperationsInput | string userCode?: Prisma.StringFieldUpdateOperationsInput | string verificationUri?: Prisma.StringFieldUpdateOperationsInput | string verificationUriComplete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expiresAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number interval?: Prisma.IntFieldUpdateOperationsInput | number clientId?: Prisma.StringFieldUpdateOperationsInput | string codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string codeChallengeMethod?: Prisma.StringFieldUpdateOperationsInput | string redirectUri?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceFlowStateCreateManyInput = { state: string deviceCode: string userCode: string verificationUri: string verificationUriComplete?: string | null expiresAt: bigint | number interval: number clientId: string codeChallenge: string codeChallengeMethod: string redirectUri?: string | null } export type DeviceFlowStateUpdateManyMutationInput = { state?: Prisma.StringFieldUpdateOperationsInput | string deviceCode?: Prisma.StringFieldUpdateOperationsInput | string userCode?: Prisma.StringFieldUpdateOperationsInput | string verificationUri?: Prisma.StringFieldUpdateOperationsInput | string verificationUriComplete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expiresAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number interval?: Prisma.IntFieldUpdateOperationsInput | number clientId?: Prisma.StringFieldUpdateOperationsInput | string codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string codeChallengeMethod?: Prisma.StringFieldUpdateOperationsInput | string redirectUri?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceFlowStateUncheckedUpdateManyInput = { state?: Prisma.StringFieldUpdateOperationsInput | string deviceCode?: Prisma.StringFieldUpdateOperationsInput | string userCode?: Prisma.StringFieldUpdateOperationsInput | string verificationUri?: Prisma.StringFieldUpdateOperationsInput | string verificationUriComplete?: Prisma.NullableStringFieldUpdateOperationsInput | string | null expiresAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number interval?: Prisma.IntFieldUpdateOperationsInput | number clientId?: Prisma.StringFieldUpdateOperationsInput | string codeChallenge?: Prisma.StringFieldUpdateOperationsInput | string codeChallengeMethod?: Prisma.StringFieldUpdateOperationsInput | string redirectUri?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceFlowStateCountOrderByAggregateInput = { state?: Prisma.SortOrder deviceCode?: Prisma.SortOrder userCode?: Prisma.SortOrder verificationUri?: Prisma.SortOrder verificationUriComplete?: Prisma.SortOrder expiresAt?: Prisma.SortOrder interval?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder redirectUri?: Prisma.SortOrder } export type DeviceFlowStateAvgOrderByAggregateInput = { expiresAt?: Prisma.SortOrder interval?: Prisma.SortOrder } export type DeviceFlowStateMaxOrderByAggregateInput = { state?: Prisma.SortOrder deviceCode?: Prisma.SortOrder userCode?: Prisma.SortOrder verificationUri?: Prisma.SortOrder verificationUriComplete?: Prisma.SortOrder expiresAt?: Prisma.SortOrder interval?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder redirectUri?: Prisma.SortOrder } export type DeviceFlowStateMinOrderByAggregateInput = { state?: Prisma.SortOrder deviceCode?: Prisma.SortOrder userCode?: Prisma.SortOrder verificationUri?: Prisma.SortOrder verificationUriComplete?: Prisma.SortOrder expiresAt?: Prisma.SortOrder interval?: Prisma.SortOrder clientId?: Prisma.SortOrder codeChallenge?: Prisma.SortOrder codeChallengeMethod?: Prisma.SortOrder redirectUri?: Prisma.SortOrder } export type DeviceFlowStateSumOrderByAggregateInput = { expiresAt?: Prisma.SortOrder interval?: Prisma.SortOrder } export type DeviceFlowStateSelect = runtime.Types.Extensions.GetSelect<{ state?: boolean deviceCode?: boolean userCode?: boolean verificationUri?: boolean verificationUriComplete?: boolean expiresAt?: boolean interval?: boolean clientId?: boolean codeChallenge?: boolean codeChallengeMethod?: boolean redirectUri?: boolean }, ExtArgs["result"]["deviceFlowState"]> export type DeviceFlowStateSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ state?: boolean deviceCode?: boolean userCode?: boolean verificationUri?: boolean verificationUriComplete?: boolean expiresAt?: boolean interval?: boolean clientId?: boolean codeChallenge?: boolean codeChallengeMethod?: boolean redirectUri?: boolean }, ExtArgs["result"]["deviceFlowState"]> export type DeviceFlowStateSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ state?: boolean deviceCode?: boolean userCode?: boolean verificationUri?: boolean verificationUriComplete?: boolean expiresAt?: boolean interval?: boolean clientId?: boolean codeChallenge?: boolean codeChallengeMethod?: boolean redirectUri?: boolean }, ExtArgs["result"]["deviceFlowState"]> export type DeviceFlowStateSelectScalar = { state?: boolean deviceCode?: boolean userCode?: boolean verificationUri?: boolean verificationUriComplete?: boolean expiresAt?: boolean interval?: boolean clientId?: boolean codeChallenge?: boolean codeChallengeMethod?: boolean redirectUri?: boolean } export type DeviceFlowStateOmit = runtime.Types.Extensions.GetOmit<"state" | "deviceCode" | "userCode" | "verificationUri" | "verificationUriComplete" | "expiresAt" | "interval" | "clientId" | "codeChallenge" | "codeChallengeMethod" | "redirectUri", ExtArgs["result"]["deviceFlowState"]> export type $DeviceFlowStatePayload = { name: "DeviceFlowState" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ state: string deviceCode: string userCode: string verificationUri: string verificationUriComplete: string | null expiresAt: bigint interval: number clientId: string codeChallenge: string codeChallengeMethod: string redirectUri: string | null }, ExtArgs["result"]["deviceFlowState"]> composites: {} } export type DeviceFlowStateGetPayload = runtime.Types.Result.GetResult export type DeviceFlowStateCountArgs = Omit & { select?: DeviceFlowStateCountAggregateInputType | true } export interface DeviceFlowStateDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DeviceFlowState'], meta: { name: 'DeviceFlowState' } } /** * Find zero or one DeviceFlowState that matches the filter. * @param {DeviceFlowStateFindUniqueArgs} args - Arguments to find a DeviceFlowState * @example * // Get one DeviceFlowState * const deviceFlowState = await prisma.deviceFlowState.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceFlowStateClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one DeviceFlowState that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeviceFlowStateFindUniqueOrThrowArgs} args - Arguments to find a DeviceFlowState * @example * // Get one DeviceFlowState * const deviceFlowState = await prisma.deviceFlowState.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceFlowStateClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first DeviceFlowState 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 {DeviceFlowStateFindFirstArgs} args - Arguments to find a DeviceFlowState * @example * // Get one DeviceFlowState * const deviceFlowState = await prisma.deviceFlowState.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceFlowStateClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first DeviceFlowState 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 {DeviceFlowStateFindFirstOrThrowArgs} args - Arguments to find a DeviceFlowState * @example * // Get one DeviceFlowState * const deviceFlowState = await prisma.deviceFlowState.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceFlowStateClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more DeviceFlowStates 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 {DeviceFlowStateFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DeviceFlowStates * const deviceFlowStates = await prisma.deviceFlowState.findMany() * * // Get first 10 DeviceFlowStates * const deviceFlowStates = await prisma.deviceFlowState.findMany({ take: 10 }) * * // Only select the `state` * const deviceFlowStateWithStateOnly = await prisma.deviceFlowState.findMany({ select: { state: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a DeviceFlowState. * @param {DeviceFlowStateCreateArgs} args - Arguments to create a DeviceFlowState. * @example * // Create one DeviceFlowState * const DeviceFlowState = await prisma.deviceFlowState.create({ * data: { * // ... data to create a DeviceFlowState * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceFlowStateClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many DeviceFlowStates. * @param {DeviceFlowStateCreateManyArgs} args - Arguments to create many DeviceFlowStates. * @example * // Create many DeviceFlowStates * const deviceFlowState = await prisma.deviceFlowState.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many DeviceFlowStates and returns the data saved in the database. * @param {DeviceFlowStateCreateManyAndReturnArgs} args - Arguments to create many DeviceFlowStates. * @example * // Create many DeviceFlowStates * const deviceFlowState = await prisma.deviceFlowState.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DeviceFlowStates and only return the `state` * const deviceFlowStateWithStateOnly = await prisma.deviceFlowState.createManyAndReturn({ * select: { state: 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 DeviceFlowState. * @param {DeviceFlowStateDeleteArgs} args - Arguments to delete one DeviceFlowState. * @example * // Delete one DeviceFlowState * const DeviceFlowState = await prisma.deviceFlowState.delete({ * where: { * // ... filter to delete one DeviceFlowState * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceFlowStateClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one DeviceFlowState. * @param {DeviceFlowStateUpdateArgs} args - Arguments to update one DeviceFlowState. * @example * // Update one DeviceFlowState * const deviceFlowState = await prisma.deviceFlowState.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceFlowStateClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more DeviceFlowStates. * @param {DeviceFlowStateDeleteManyArgs} args - Arguments to filter DeviceFlowStates to delete. * @example * // Delete a few DeviceFlowStates * const { count } = await prisma.deviceFlowState.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceFlowStates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceFlowStateUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DeviceFlowStates * const deviceFlowState = await prisma.deviceFlowState.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceFlowStates and returns the data updated in the database. * @param {DeviceFlowStateUpdateManyAndReturnArgs} args - Arguments to update many DeviceFlowStates. * @example * // Update many DeviceFlowStates * const deviceFlowState = await prisma.deviceFlowState.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DeviceFlowStates and only return the `state` * const deviceFlowStateWithStateOnly = await prisma.deviceFlowState.updateManyAndReturn({ * select: { state: 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 DeviceFlowState. * @param {DeviceFlowStateUpsertArgs} args - Arguments to update or create a DeviceFlowState. * @example * // Update or create a DeviceFlowState * const deviceFlowState = await prisma.deviceFlowState.upsert({ * create: { * // ... data to create a DeviceFlowState * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DeviceFlowState we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceFlowStateClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of DeviceFlowStates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceFlowStateCountArgs} args - Arguments to filter DeviceFlowStates to count. * @example * // Count the number of DeviceFlowStates * const count = await prisma.deviceFlowState.count({ * where: { * // ... the filter for the DeviceFlowStates 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 DeviceFlowState. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceFlowStateAggregateArgs} 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 DeviceFlowState. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceFlowStateGroupByArgs} 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 DeviceFlowStateGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: DeviceFlowStateGroupByArgs['orderBy'] } : { orderBy?: DeviceFlowStateGroupByArgs['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 ? GetDeviceFlowStateGroupByPayload : Prisma.PrismaPromise /** * Fields of the DeviceFlowState model */ readonly fields: DeviceFlowStateFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DeviceFlowState. * 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__DeviceFlowStateClient 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 DeviceFlowState model */ export interface DeviceFlowStateFieldRefs { readonly state: Prisma.FieldRef<"DeviceFlowState", 'String'> readonly deviceCode: Prisma.FieldRef<"DeviceFlowState", 'String'> readonly userCode: Prisma.FieldRef<"DeviceFlowState", 'String'> readonly verificationUri: Prisma.FieldRef<"DeviceFlowState", 'String'> readonly verificationUriComplete: Prisma.FieldRef<"DeviceFlowState", 'String'> readonly expiresAt: Prisma.FieldRef<"DeviceFlowState", 'BigInt'> readonly interval: Prisma.FieldRef<"DeviceFlowState", 'Int'> readonly clientId: Prisma.FieldRef<"DeviceFlowState", 'String'> readonly codeChallenge: Prisma.FieldRef<"DeviceFlowState", 'String'> readonly codeChallengeMethod: Prisma.FieldRef<"DeviceFlowState", 'String'> readonly redirectUri: Prisma.FieldRef<"DeviceFlowState", 'String'> } // Custom InputTypes /** * DeviceFlowState findUnique */ export type DeviceFlowStateFindUniqueArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * Filter, which DeviceFlowState to fetch. */ where: Prisma.DeviceFlowStateWhereUniqueInput } /** * DeviceFlowState findUniqueOrThrow */ export type DeviceFlowStateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * Filter, which DeviceFlowState to fetch. */ where: Prisma.DeviceFlowStateWhereUniqueInput } /** * DeviceFlowState findFirst */ export type DeviceFlowStateFindFirstArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * Filter, which DeviceFlowState to fetch. */ where?: Prisma.DeviceFlowStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceFlowStates to fetch. */ orderBy?: Prisma.DeviceFlowStateOrderByWithRelationInput | Prisma.DeviceFlowStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceFlowStates. */ cursor?: Prisma.DeviceFlowStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceFlowStates 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` DeviceFlowStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceFlowStates. */ distinct?: Prisma.DeviceFlowStateScalarFieldEnum | Prisma.DeviceFlowStateScalarFieldEnum[] } /** * DeviceFlowState findFirstOrThrow */ export type DeviceFlowStateFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * Filter, which DeviceFlowState to fetch. */ where?: Prisma.DeviceFlowStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceFlowStates to fetch. */ orderBy?: Prisma.DeviceFlowStateOrderByWithRelationInput | Prisma.DeviceFlowStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceFlowStates. */ cursor?: Prisma.DeviceFlowStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceFlowStates 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` DeviceFlowStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceFlowStates. */ distinct?: Prisma.DeviceFlowStateScalarFieldEnum | Prisma.DeviceFlowStateScalarFieldEnum[] } /** * DeviceFlowState findMany */ export type DeviceFlowStateFindManyArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * Filter, which DeviceFlowStates to fetch. */ where?: Prisma.DeviceFlowStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceFlowStates to fetch. */ orderBy?: Prisma.DeviceFlowStateOrderByWithRelationInput | Prisma.DeviceFlowStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DeviceFlowStates. */ cursor?: Prisma.DeviceFlowStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceFlowStates 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` DeviceFlowStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceFlowStates. */ distinct?: Prisma.DeviceFlowStateScalarFieldEnum | Prisma.DeviceFlowStateScalarFieldEnum[] } /** * DeviceFlowState create */ export type DeviceFlowStateCreateArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * The data needed to create a DeviceFlowState. */ data: Prisma.XOR } /** * DeviceFlowState createMany */ export type DeviceFlowStateCreateManyArgs = { /** * The data used to create many DeviceFlowStates. */ data: Prisma.DeviceFlowStateCreateManyInput | Prisma.DeviceFlowStateCreateManyInput[] skipDuplicates?: boolean } /** * DeviceFlowState createManyAndReturn */ export type DeviceFlowStateCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelectCreateManyAndReturn | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * The data used to create many DeviceFlowStates. */ data: Prisma.DeviceFlowStateCreateManyInput | Prisma.DeviceFlowStateCreateManyInput[] skipDuplicates?: boolean } /** * DeviceFlowState update */ export type DeviceFlowStateUpdateArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * The data needed to update a DeviceFlowState. */ data: Prisma.XOR /** * Choose, which DeviceFlowState to update. */ where: Prisma.DeviceFlowStateWhereUniqueInput } /** * DeviceFlowState updateMany */ export type DeviceFlowStateUpdateManyArgs = { /** * The data used to update DeviceFlowStates. */ data: Prisma.XOR /** * Filter which DeviceFlowStates to update */ where?: Prisma.DeviceFlowStateWhereInput /** * Limit how many DeviceFlowStates to update. */ limit?: number } /** * DeviceFlowState updateManyAndReturn */ export type DeviceFlowStateUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelectUpdateManyAndReturn | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * The data used to update DeviceFlowStates. */ data: Prisma.XOR /** * Filter which DeviceFlowStates to update */ where?: Prisma.DeviceFlowStateWhereInput /** * Limit how many DeviceFlowStates to update. */ limit?: number } /** * DeviceFlowState upsert */ export type DeviceFlowStateUpsertArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * The filter to search for the DeviceFlowState to update in case it exists. */ where: Prisma.DeviceFlowStateWhereUniqueInput /** * In case the DeviceFlowState found by the `where` argument doesn't exist, create a new DeviceFlowState with this data. */ create: Prisma.XOR /** * In case the DeviceFlowState was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * DeviceFlowState delete */ export type DeviceFlowStateDeleteArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null /** * Filter which DeviceFlowState to delete. */ where: Prisma.DeviceFlowStateWhereUniqueInput } /** * DeviceFlowState deleteMany */ export type DeviceFlowStateDeleteManyArgs = { /** * Filter which DeviceFlowStates to delete */ where?: Prisma.DeviceFlowStateWhereInput /** * Limit how many DeviceFlowStates to delete. */ limit?: number } /** * DeviceFlowState without action */ export type DeviceFlowStateDefaultArgs = { /** * Select specific fields to fetch from the DeviceFlowState */ select?: Prisma.DeviceFlowStateSelect | null /** * Omit specific fields from the DeviceFlowState */ omit?: Prisma.DeviceFlowStateOmit | null }