/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AutoAuth` 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.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model AutoAuth * */ export type AutoAuthModel = runtime.Types.Result.DefaultSelection export type AggregateAutoAuth = { _count: AutoAuthCountAggregateOutputType | null _avg: AutoAuthAvgAggregateOutputType | null _sum: AutoAuthSumAggregateOutputType | null _min: AutoAuthMinAggregateOutputType | null _max: AutoAuthMaxAggregateOutputType | null } export type AutoAuthAvgAggregateOutputType = { deviceId: number | null } export type AutoAuthSumAggregateOutputType = { deviceId: number | null } export type AutoAuthMinAggregateOutputType = { id: string | null deviceId: number | null password: string | null deviceType: string | null isReadOnly: boolean | null createdAt: Date | null updatedAt: Date | null } export type AutoAuthMaxAggregateOutputType = { id: string | null deviceId: number | null password: string | null deviceType: string | null isReadOnly: boolean | null createdAt: Date | null updatedAt: Date | null } export type AutoAuthCountAggregateOutputType = { id: number deviceId: number password: number deviceType: number isReadOnly: number createdAt: number updatedAt: number _all: number } export type AutoAuthAvgAggregateInputType = { deviceId?: true } export type AutoAuthSumAggregateInputType = { deviceId?: true } export type AutoAuthMinAggregateInputType = { id?: true deviceId?: true password?: true deviceType?: true isReadOnly?: true createdAt?: true updatedAt?: true } export type AutoAuthMaxAggregateInputType = { id?: true deviceId?: true password?: true deviceType?: true isReadOnly?: true createdAt?: true updatedAt?: true } export type AutoAuthCountAggregateInputType = { id?: true deviceId?: true password?: true deviceType?: true isReadOnly?: true createdAt?: true updatedAt?: true _all?: true } export type AutoAuthAggregateArgs = { /** * Filter which AutoAuth to aggregate. */ where?: Prisma.AutoAuthWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutoAuths to fetch. */ orderBy?: Prisma.AutoAuthOrderByWithRelationInput | Prisma.AutoAuthOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AutoAuthWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutoAuths 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` AutoAuths. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AutoAuths **/ _count?: true | AutoAuthCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AutoAuthAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AutoAuthSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AutoAuthMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AutoAuthMaxAggregateInputType } export type GetAutoAuthAggregateType = { [P in keyof T & keyof AggregateAutoAuth]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AutoAuthGroupByArgs = { where?: Prisma.AutoAuthWhereInput orderBy?: Prisma.AutoAuthOrderByWithAggregationInput | Prisma.AutoAuthOrderByWithAggregationInput[] by: Prisma.AutoAuthScalarFieldEnum[] | Prisma.AutoAuthScalarFieldEnum having?: Prisma.AutoAuthScalarWhereWithAggregatesInput take?: number skip?: number _count?: AutoAuthCountAggregateInputType | true _avg?: AutoAuthAvgAggregateInputType _sum?: AutoAuthSumAggregateInputType _min?: AutoAuthMinAggregateInputType _max?: AutoAuthMaxAggregateInputType } export type AutoAuthGroupByOutputType = { id: string deviceId: number password: string | null deviceType: string | null isReadOnly: boolean createdAt: Date updatedAt: Date _count: AutoAuthCountAggregateOutputType | null _avg: AutoAuthAvgAggregateOutputType | null _sum: AutoAuthSumAggregateOutputType | null _min: AutoAuthMinAggregateOutputType | null _max: AutoAuthMaxAggregateOutputType | null } type GetAutoAuthGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AutoAuthGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AutoAuthWhereInput = { AND?: Prisma.AutoAuthWhereInput | Prisma.AutoAuthWhereInput[] OR?: Prisma.AutoAuthWhereInput[] NOT?: Prisma.AutoAuthWhereInput | Prisma.AutoAuthWhereInput[] id?: Prisma.StringFilter<"AutoAuth"> | string deviceId?: Prisma.IntFilter<"AutoAuth"> | number password?: Prisma.StringNullableFilter<"AutoAuth"> | string | null deviceType?: Prisma.StringNullableFilter<"AutoAuth"> | string | null isReadOnly?: Prisma.BoolFilter<"AutoAuth"> | boolean createdAt?: Prisma.DateTimeFilter<"AutoAuth"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutoAuth"> | Date | string device?: Prisma.XOR } export type AutoAuthOrderByWithRelationInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder password?: Prisma.SortOrderInput | Prisma.SortOrder deviceType?: Prisma.SortOrderInput | Prisma.SortOrder isReadOnly?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder device?: Prisma.DeviceOrderByWithRelationInput } export type AutoAuthWhereUniqueInput = Prisma.AtLeast<{ id?: string deviceId_password?: Prisma.AutoAuthDeviceIdPasswordCompoundUniqueInput AND?: Prisma.AutoAuthWhereInput | Prisma.AutoAuthWhereInput[] OR?: Prisma.AutoAuthWhereInput[] NOT?: Prisma.AutoAuthWhereInput | Prisma.AutoAuthWhereInput[] deviceId?: Prisma.IntFilter<"AutoAuth"> | number password?: Prisma.StringNullableFilter<"AutoAuth"> | string | null deviceType?: Prisma.StringNullableFilter<"AutoAuth"> | string | null isReadOnly?: Prisma.BoolFilter<"AutoAuth"> | boolean createdAt?: Prisma.DateTimeFilter<"AutoAuth"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutoAuth"> | Date | string device?: Prisma.XOR }, "id" | "deviceId_password"> export type AutoAuthOrderByWithAggregationInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder password?: Prisma.SortOrderInput | Prisma.SortOrder deviceType?: Prisma.SortOrderInput | Prisma.SortOrder isReadOnly?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.AutoAuthCountOrderByAggregateInput _avg?: Prisma.AutoAuthAvgOrderByAggregateInput _max?: Prisma.AutoAuthMaxOrderByAggregateInput _min?: Prisma.AutoAuthMinOrderByAggregateInput _sum?: Prisma.AutoAuthSumOrderByAggregateInput } export type AutoAuthScalarWhereWithAggregatesInput = { AND?: Prisma.AutoAuthScalarWhereWithAggregatesInput | Prisma.AutoAuthScalarWhereWithAggregatesInput[] OR?: Prisma.AutoAuthScalarWhereWithAggregatesInput[] NOT?: Prisma.AutoAuthScalarWhereWithAggregatesInput | Prisma.AutoAuthScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AutoAuth"> | string deviceId?: Prisma.IntWithAggregatesFilter<"AutoAuth"> | number password?: Prisma.StringNullableWithAggregatesFilter<"AutoAuth"> | string | null deviceType?: Prisma.StringNullableWithAggregatesFilter<"AutoAuth"> | string | null isReadOnly?: Prisma.BoolWithAggregatesFilter<"AutoAuth"> | boolean createdAt?: Prisma.DateTimeWithAggregatesFilter<"AutoAuth"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AutoAuth"> | Date | string } export type AutoAuthCreateInput = { id: string password?: string | null deviceType?: string | null isReadOnly?: boolean createdAt?: Date | string updatedAt?: Date | string device: Prisma.DeviceCreateNestedOneWithoutAutoAuthsInput } export type AutoAuthUncheckedCreateInput = { id: string deviceId: number password?: string | null deviceType?: string | null isReadOnly?: boolean createdAt?: Date | string updatedAt?: Date | string } export type AutoAuthUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isReadOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string device?: Prisma.DeviceUpdateOneRequiredWithoutAutoAuthsNestedInput } export type AutoAuthUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string deviceId?: Prisma.IntFieldUpdateOperationsInput | number password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isReadOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AutoAuthCreateManyInput = { id: string deviceId: number password?: string | null deviceType?: string | null isReadOnly?: boolean createdAt?: Date | string updatedAt?: Date | string } export type AutoAuthUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isReadOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AutoAuthUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string deviceId?: Prisma.IntFieldUpdateOperationsInput | number password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isReadOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AutoAuthDeviceIdPasswordCompoundUniqueInput = { deviceId: number password: string } export type AutoAuthCountOrderByAggregateInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder password?: Prisma.SortOrder deviceType?: Prisma.SortOrder isReadOnly?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type AutoAuthAvgOrderByAggregateInput = { deviceId?: Prisma.SortOrder } export type AutoAuthMaxOrderByAggregateInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder password?: Prisma.SortOrder deviceType?: Prisma.SortOrder isReadOnly?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type AutoAuthMinOrderByAggregateInput = { id?: Prisma.SortOrder deviceId?: Prisma.SortOrder password?: Prisma.SortOrder deviceType?: Prisma.SortOrder isReadOnly?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type AutoAuthSumOrderByAggregateInput = { deviceId?: Prisma.SortOrder } export type AutoAuthListRelationFilter = { every?: Prisma.AutoAuthWhereInput some?: Prisma.AutoAuthWhereInput none?: Prisma.AutoAuthWhereInput } export type AutoAuthOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AutoAuthCreateNestedManyWithoutDeviceInput = { create?: Prisma.XOR | Prisma.AutoAuthCreateWithoutDeviceInput[] | Prisma.AutoAuthUncheckedCreateWithoutDeviceInput[] connectOrCreate?: Prisma.AutoAuthCreateOrConnectWithoutDeviceInput | Prisma.AutoAuthCreateOrConnectWithoutDeviceInput[] createMany?: Prisma.AutoAuthCreateManyDeviceInputEnvelope connect?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] } export type AutoAuthUncheckedCreateNestedManyWithoutDeviceInput = { create?: Prisma.XOR | Prisma.AutoAuthCreateWithoutDeviceInput[] | Prisma.AutoAuthUncheckedCreateWithoutDeviceInput[] connectOrCreate?: Prisma.AutoAuthCreateOrConnectWithoutDeviceInput | Prisma.AutoAuthCreateOrConnectWithoutDeviceInput[] createMany?: Prisma.AutoAuthCreateManyDeviceInputEnvelope connect?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] } export type AutoAuthUpdateManyWithoutDeviceNestedInput = { create?: Prisma.XOR | Prisma.AutoAuthCreateWithoutDeviceInput[] | Prisma.AutoAuthUncheckedCreateWithoutDeviceInput[] connectOrCreate?: Prisma.AutoAuthCreateOrConnectWithoutDeviceInput | Prisma.AutoAuthCreateOrConnectWithoutDeviceInput[] upsert?: Prisma.AutoAuthUpsertWithWhereUniqueWithoutDeviceInput | Prisma.AutoAuthUpsertWithWhereUniqueWithoutDeviceInput[] createMany?: Prisma.AutoAuthCreateManyDeviceInputEnvelope set?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] disconnect?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] delete?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] connect?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] update?: Prisma.AutoAuthUpdateWithWhereUniqueWithoutDeviceInput | Prisma.AutoAuthUpdateWithWhereUniqueWithoutDeviceInput[] updateMany?: Prisma.AutoAuthUpdateManyWithWhereWithoutDeviceInput | Prisma.AutoAuthUpdateManyWithWhereWithoutDeviceInput[] deleteMany?: Prisma.AutoAuthScalarWhereInput | Prisma.AutoAuthScalarWhereInput[] } export type AutoAuthUncheckedUpdateManyWithoutDeviceNestedInput = { create?: Prisma.XOR | Prisma.AutoAuthCreateWithoutDeviceInput[] | Prisma.AutoAuthUncheckedCreateWithoutDeviceInput[] connectOrCreate?: Prisma.AutoAuthCreateOrConnectWithoutDeviceInput | Prisma.AutoAuthCreateOrConnectWithoutDeviceInput[] upsert?: Prisma.AutoAuthUpsertWithWhereUniqueWithoutDeviceInput | Prisma.AutoAuthUpsertWithWhereUniqueWithoutDeviceInput[] createMany?: Prisma.AutoAuthCreateManyDeviceInputEnvelope set?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] disconnect?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] delete?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] connect?: Prisma.AutoAuthWhereUniqueInput | Prisma.AutoAuthWhereUniqueInput[] update?: Prisma.AutoAuthUpdateWithWhereUniqueWithoutDeviceInput | Prisma.AutoAuthUpdateWithWhereUniqueWithoutDeviceInput[] updateMany?: Prisma.AutoAuthUpdateManyWithWhereWithoutDeviceInput | Prisma.AutoAuthUpdateManyWithWhereWithoutDeviceInput[] deleteMany?: Prisma.AutoAuthScalarWhereInput | Prisma.AutoAuthScalarWhereInput[] } export type AutoAuthCreateWithoutDeviceInput = { id: string password?: string | null deviceType?: string | null isReadOnly?: boolean createdAt?: Date | string updatedAt?: Date | string } export type AutoAuthUncheckedCreateWithoutDeviceInput = { id: string password?: string | null deviceType?: string | null isReadOnly?: boolean createdAt?: Date | string updatedAt?: Date | string } export type AutoAuthCreateOrConnectWithoutDeviceInput = { where: Prisma.AutoAuthWhereUniqueInput create: Prisma.XOR } export type AutoAuthCreateManyDeviceInputEnvelope = { data: Prisma.AutoAuthCreateManyDeviceInput | Prisma.AutoAuthCreateManyDeviceInput[] skipDuplicates?: boolean } export type AutoAuthUpsertWithWhereUniqueWithoutDeviceInput = { where: Prisma.AutoAuthWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AutoAuthUpdateWithWhereUniqueWithoutDeviceInput = { where: Prisma.AutoAuthWhereUniqueInput data: Prisma.XOR } export type AutoAuthUpdateManyWithWhereWithoutDeviceInput = { where: Prisma.AutoAuthScalarWhereInput data: Prisma.XOR } export type AutoAuthScalarWhereInput = { AND?: Prisma.AutoAuthScalarWhereInput | Prisma.AutoAuthScalarWhereInput[] OR?: Prisma.AutoAuthScalarWhereInput[] NOT?: Prisma.AutoAuthScalarWhereInput | Prisma.AutoAuthScalarWhereInput[] id?: Prisma.StringFilter<"AutoAuth"> | string deviceId?: Prisma.IntFilter<"AutoAuth"> | number password?: Prisma.StringNullableFilter<"AutoAuth"> | string | null deviceType?: Prisma.StringNullableFilter<"AutoAuth"> | string | null isReadOnly?: Prisma.BoolFilter<"AutoAuth"> | boolean createdAt?: Prisma.DateTimeFilter<"AutoAuth"> | Date | string updatedAt?: Prisma.DateTimeFilter<"AutoAuth"> | Date | string } export type AutoAuthCreateManyDeviceInput = { id: string password?: string | null deviceType?: string | null isReadOnly?: boolean createdAt?: Date | string updatedAt?: Date | string } export type AutoAuthUpdateWithoutDeviceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isReadOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AutoAuthUncheckedUpdateWithoutDeviceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isReadOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AutoAuthUncheckedUpdateManyWithoutDeviceInput = { id?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isReadOnly?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AutoAuthSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean deviceId?: boolean password?: boolean deviceType?: boolean isReadOnly?: boolean createdAt?: boolean updatedAt?: boolean device?: boolean | Prisma.DeviceDefaultArgs }, ExtArgs["result"]["autoAuth"]> export type AutoAuthSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean deviceId?: boolean password?: boolean deviceType?: boolean isReadOnly?: boolean createdAt?: boolean updatedAt?: boolean device?: boolean | Prisma.DeviceDefaultArgs }, ExtArgs["result"]["autoAuth"]> export type AutoAuthSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean deviceId?: boolean password?: boolean deviceType?: boolean isReadOnly?: boolean createdAt?: boolean updatedAt?: boolean device?: boolean | Prisma.DeviceDefaultArgs }, ExtArgs["result"]["autoAuth"]> export type AutoAuthSelectScalar = { id?: boolean deviceId?: boolean password?: boolean deviceType?: boolean isReadOnly?: boolean createdAt?: boolean updatedAt?: boolean } export type AutoAuthOmit = runtime.Types.Extensions.GetOmit<"id" | "deviceId" | "password" | "deviceType" | "isReadOnly" | "createdAt" | "updatedAt", ExtArgs["result"]["autoAuth"]> export type AutoAuthInclude = { device?: boolean | Prisma.DeviceDefaultArgs } export type AutoAuthIncludeCreateManyAndReturn = { device?: boolean | Prisma.DeviceDefaultArgs } export type AutoAuthIncludeUpdateManyAndReturn = { device?: boolean | Prisma.DeviceDefaultArgs } export type $AutoAuthPayload = { name: "AutoAuth" objects: { device: Prisma.$DevicePayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string deviceId: number password: string | null deviceType: string | null isReadOnly: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["autoAuth"]> composites: {} } export type AutoAuthGetPayload = runtime.Types.Result.GetResult export type AutoAuthCountArgs = Omit & { select?: AutoAuthCountAggregateInputType | true } export interface AutoAuthDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AutoAuth'], meta: { name: 'AutoAuth' } } /** * Find zero or one AutoAuth that matches the filter. * @param {AutoAuthFindUniqueArgs} args - Arguments to find a AutoAuth * @example * // Get one AutoAuth * const autoAuth = await prisma.autoAuth.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AutoAuthClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AutoAuth that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AutoAuthFindUniqueOrThrowArgs} args - Arguments to find a AutoAuth * @example * // Get one AutoAuth * const autoAuth = await prisma.autoAuth.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AutoAuthClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AutoAuth 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 {AutoAuthFindFirstArgs} args - Arguments to find a AutoAuth * @example * // Get one AutoAuth * const autoAuth = await prisma.autoAuth.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AutoAuthClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AutoAuth 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 {AutoAuthFindFirstOrThrowArgs} args - Arguments to find a AutoAuth * @example * // Get one AutoAuth * const autoAuth = await prisma.autoAuth.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AutoAuthClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AutoAuths 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 {AutoAuthFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AutoAuths * const autoAuths = await prisma.autoAuth.findMany() * * // Get first 10 AutoAuths * const autoAuths = await prisma.autoAuth.findMany({ take: 10 }) * * // Only select the `id` * const autoAuthWithIdOnly = await prisma.autoAuth.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AutoAuth. * @param {AutoAuthCreateArgs} args - Arguments to create a AutoAuth. * @example * // Create one AutoAuth * const AutoAuth = await prisma.autoAuth.create({ * data: { * // ... data to create a AutoAuth * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AutoAuthClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AutoAuths. * @param {AutoAuthCreateManyArgs} args - Arguments to create many AutoAuths. * @example * // Create many AutoAuths * const autoAuth = await prisma.autoAuth.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AutoAuths and returns the data saved in the database. * @param {AutoAuthCreateManyAndReturnArgs} args - Arguments to create many AutoAuths. * @example * // Create many AutoAuths * const autoAuth = await prisma.autoAuth.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AutoAuths and only return the `id` * const autoAuthWithIdOnly = await prisma.autoAuth.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AutoAuth. * @param {AutoAuthDeleteArgs} args - Arguments to delete one AutoAuth. * @example * // Delete one AutoAuth * const AutoAuth = await prisma.autoAuth.delete({ * where: { * // ... filter to delete one AutoAuth * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AutoAuthClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AutoAuth. * @param {AutoAuthUpdateArgs} args - Arguments to update one AutoAuth. * @example * // Update one AutoAuth * const autoAuth = await prisma.autoAuth.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AutoAuthClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AutoAuths. * @param {AutoAuthDeleteManyArgs} args - Arguments to filter AutoAuths to delete. * @example * // Delete a few AutoAuths * const { count } = await prisma.autoAuth.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AutoAuths. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutoAuthUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AutoAuths * const autoAuth = await prisma.autoAuth.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AutoAuths and returns the data updated in the database. * @param {AutoAuthUpdateManyAndReturnArgs} args - Arguments to update many AutoAuths. * @example * // Update many AutoAuths * const autoAuth = await prisma.autoAuth.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AutoAuths and only return the `id` * const autoAuthWithIdOnly = await prisma.autoAuth.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AutoAuth. * @param {AutoAuthUpsertArgs} args - Arguments to update or create a AutoAuth. * @example * // Update or create a AutoAuth * const autoAuth = await prisma.autoAuth.upsert({ * create: { * // ... data to create a AutoAuth * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AutoAuth we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AutoAuthClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AutoAuths. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutoAuthCountArgs} args - Arguments to filter AutoAuths to count. * @example * // Count the number of AutoAuths * const count = await prisma.autoAuth.count({ * where: { * // ... the filter for the AutoAuths 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 AutoAuth. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutoAuthAggregateArgs} 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 AutoAuth. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AutoAuthGroupByArgs} 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 AutoAuthGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AutoAuthGroupByArgs['orderBy'] } : { orderBy?: AutoAuthGroupByArgs['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 ? GetAutoAuthGroupByPayload : Prisma.PrismaPromise /** * Fields of the AutoAuth model */ readonly fields: AutoAuthFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AutoAuth. * 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__AutoAuthClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" device = {}>(args?: Prisma.Subset>): Prisma.Prisma__DeviceClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the AutoAuth model */ export interface AutoAuthFieldRefs { readonly id: Prisma.FieldRef<"AutoAuth", 'String'> readonly deviceId: Prisma.FieldRef<"AutoAuth", 'Int'> readonly password: Prisma.FieldRef<"AutoAuth", 'String'> readonly deviceType: Prisma.FieldRef<"AutoAuth", 'String'> readonly isReadOnly: Prisma.FieldRef<"AutoAuth", 'Boolean'> readonly createdAt: Prisma.FieldRef<"AutoAuth", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"AutoAuth", 'DateTime'> } // Custom InputTypes /** * AutoAuth findUnique */ export type AutoAuthFindUniqueArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null /** * Filter, which AutoAuth to fetch. */ where: Prisma.AutoAuthWhereUniqueInput } /** * AutoAuth findUniqueOrThrow */ export type AutoAuthFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null /** * Filter, which AutoAuth to fetch. */ where: Prisma.AutoAuthWhereUniqueInput } /** * AutoAuth findFirst */ export type AutoAuthFindFirstArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null /** * Filter, which AutoAuth to fetch. */ where?: Prisma.AutoAuthWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutoAuths to fetch. */ orderBy?: Prisma.AutoAuthOrderByWithRelationInput | Prisma.AutoAuthOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AutoAuths. */ cursor?: Prisma.AutoAuthWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutoAuths 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` AutoAuths. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutoAuths. */ distinct?: Prisma.AutoAuthScalarFieldEnum | Prisma.AutoAuthScalarFieldEnum[] } /** * AutoAuth findFirstOrThrow */ export type AutoAuthFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null /** * Filter, which AutoAuth to fetch. */ where?: Prisma.AutoAuthWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutoAuths to fetch. */ orderBy?: Prisma.AutoAuthOrderByWithRelationInput | Prisma.AutoAuthOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AutoAuths. */ cursor?: Prisma.AutoAuthWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutoAuths 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` AutoAuths. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AutoAuths. */ distinct?: Prisma.AutoAuthScalarFieldEnum | Prisma.AutoAuthScalarFieldEnum[] } /** * AutoAuth findMany */ export type AutoAuthFindManyArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null /** * Filter, which AutoAuths to fetch. */ where?: Prisma.AutoAuthWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AutoAuths to fetch. */ orderBy?: Prisma.AutoAuthOrderByWithRelationInput | Prisma.AutoAuthOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AutoAuths. */ cursor?: Prisma.AutoAuthWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AutoAuths 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` AutoAuths. */ skip?: number distinct?: Prisma.AutoAuthScalarFieldEnum | Prisma.AutoAuthScalarFieldEnum[] } /** * AutoAuth create */ export type AutoAuthCreateArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null /** * The data needed to create a AutoAuth. */ data: Prisma.XOR } /** * AutoAuth createMany */ export type AutoAuthCreateManyArgs = { /** * The data used to create many AutoAuths. */ data: Prisma.AutoAuthCreateManyInput | Prisma.AutoAuthCreateManyInput[] skipDuplicates?: boolean } /** * AutoAuth createManyAndReturn */ export type AutoAuthCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelectCreateManyAndReturn | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * The data used to create many AutoAuths. */ data: Prisma.AutoAuthCreateManyInput | Prisma.AutoAuthCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthIncludeCreateManyAndReturn | null } /** * AutoAuth update */ export type AutoAuthUpdateArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null /** * The data needed to update a AutoAuth. */ data: Prisma.XOR /** * Choose, which AutoAuth to update. */ where: Prisma.AutoAuthWhereUniqueInput } /** * AutoAuth updateMany */ export type AutoAuthUpdateManyArgs = { /** * The data used to update AutoAuths. */ data: Prisma.XOR /** * Filter which AutoAuths to update */ where?: Prisma.AutoAuthWhereInput /** * Limit how many AutoAuths to update. */ limit?: number } /** * AutoAuth updateManyAndReturn */ export type AutoAuthUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelectUpdateManyAndReturn | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * The data used to update AutoAuths. */ data: Prisma.XOR /** * Filter which AutoAuths to update */ where?: Prisma.AutoAuthWhereInput /** * Limit how many AutoAuths to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthIncludeUpdateManyAndReturn | null } /** * AutoAuth upsert */ export type AutoAuthUpsertArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null /** * The filter to search for the AutoAuth to update in case it exists. */ where: Prisma.AutoAuthWhereUniqueInput /** * In case the AutoAuth found by the `where` argument doesn't exist, create a new AutoAuth with this data. */ create: Prisma.XOR /** * In case the AutoAuth was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AutoAuth delete */ export type AutoAuthDeleteArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null /** * Filter which AutoAuth to delete. */ where: Prisma.AutoAuthWhereUniqueInput } /** * AutoAuth deleteMany */ export type AutoAuthDeleteManyArgs = { /** * Filter which AutoAuths to delete */ where?: Prisma.AutoAuthWhereInput /** * Limit how many AutoAuths to delete. */ limit?: number } /** * AutoAuth without action */ export type AutoAuthDefaultArgs = { /** * Select specific fields to fetch from the AutoAuth */ select?: Prisma.AutoAuthSelect | null /** * Omit specific fields from the AutoAuth */ omit?: Prisma.AutoAuthOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AutoAuthInclude | null }