/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Device` 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 Device * */ export type DeviceModel = runtime.Types.Result.DefaultSelection export type AggregateDevice = { _count: DeviceCountAggregateOutputType | null _avg: DeviceAvgAggregateOutputType | null _sum: DeviceSumAggregateOutputType | null _min: DeviceMinAggregateOutputType | null _max: DeviceMaxAggregateOutputType | null } export type DeviceAvgAggregateOutputType = { id: number | null } export type DeviceSumAggregateOutputType = { id: number | null } export type DeviceMinAggregateOutputType = { id: number | null uuid: string | null name: string | null accountId: string | null createdAt: Date | null updatedAt: Date | null password: string | null passwordHint: string | null namespace: string | null } export type DeviceMaxAggregateOutputType = { id: number | null uuid: string | null name: string | null accountId: string | null createdAt: Date | null updatedAt: Date | null password: string | null passwordHint: string | null namespace: string | null } export type DeviceCountAggregateOutputType = { id: number uuid: number name: number accountId: number createdAt: number updatedAt: number password: number passwordHint: number namespace: number _all: number } export type DeviceAvgAggregateInputType = { id?: true } export type DeviceSumAggregateInputType = { id?: true } export type DeviceMinAggregateInputType = { id?: true uuid?: true name?: true accountId?: true createdAt?: true updatedAt?: true password?: true passwordHint?: true namespace?: true } export type DeviceMaxAggregateInputType = { id?: true uuid?: true name?: true accountId?: true createdAt?: true updatedAt?: true password?: true passwordHint?: true namespace?: true } export type DeviceCountAggregateInputType = { id?: true uuid?: true name?: true accountId?: true createdAt?: true updatedAt?: true password?: true passwordHint?: true namespace?: true _all?: true } export type DeviceAggregateArgs = { /** * Filter which Device to aggregate. */ where?: Prisma.DeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Devices to fetch. */ orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.DeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Devices 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` Devices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Devices **/ _count?: true | DeviceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DeviceAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DeviceSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceMaxAggregateInputType } export type GetDeviceAggregateType = { [P in keyof T & keyof AggregateDevice]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type DeviceGroupByArgs = { where?: Prisma.DeviceWhereInput orderBy?: Prisma.DeviceOrderByWithAggregationInput | Prisma.DeviceOrderByWithAggregationInput[] by: Prisma.DeviceScalarFieldEnum[] | Prisma.DeviceScalarFieldEnum having?: Prisma.DeviceScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceCountAggregateInputType | true _avg?: DeviceAvgAggregateInputType _sum?: DeviceSumAggregateInputType _min?: DeviceMinAggregateInputType _max?: DeviceMaxAggregateInputType } export type DeviceGroupByOutputType = { id: number uuid: string name: string | null accountId: string | null createdAt: Date updatedAt: Date password: string | null passwordHint: string | null namespace: string | null _count: DeviceCountAggregateOutputType | null _avg: DeviceAvgAggregateOutputType | null _sum: DeviceSumAggregateOutputType | null _min: DeviceMinAggregateOutputType | null _max: DeviceMaxAggregateOutputType | null } type GetDeviceGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DeviceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type DeviceWhereInput = { AND?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[] OR?: Prisma.DeviceWhereInput[] NOT?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[] id?: Prisma.IntFilter<"Device"> | number uuid?: Prisma.StringFilter<"Device"> | string name?: Prisma.StringNullableFilter<"Device"> | string | null accountId?: Prisma.StringNullableFilter<"Device"> | string | null createdAt?: Prisma.DateTimeFilter<"Device"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Device"> | Date | string password?: Prisma.StringNullableFilter<"Device"> | string | null passwordHint?: Prisma.StringNullableFilter<"Device"> | string | null namespace?: Prisma.StringNullableFilter<"Device"> | string | null account?: Prisma.XOR | null appInstalls?: Prisma.AppInstallListRelationFilter kvStore?: Prisma.KVStoreListRelationFilter autoAuths?: Prisma.AutoAuthListRelationFilter } export type DeviceOrderByWithRelationInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder name?: Prisma.SortOrderInput | Prisma.SortOrder accountId?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder password?: Prisma.SortOrderInput | Prisma.SortOrder passwordHint?: Prisma.SortOrderInput | Prisma.SortOrder namespace?: Prisma.SortOrderInput | Prisma.SortOrder account?: Prisma.AccountOrderByWithRelationInput appInstalls?: Prisma.AppInstallOrderByRelationAggregateInput kvStore?: Prisma.KVStoreOrderByRelationAggregateInput autoAuths?: Prisma.AutoAuthOrderByRelationAggregateInput } export type DeviceWhereUniqueInput = Prisma.AtLeast<{ id?: number uuid?: string namespace?: string AND?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[] OR?: Prisma.DeviceWhereInput[] NOT?: Prisma.DeviceWhereInput | Prisma.DeviceWhereInput[] name?: Prisma.StringNullableFilter<"Device"> | string | null accountId?: Prisma.StringNullableFilter<"Device"> | string | null createdAt?: Prisma.DateTimeFilter<"Device"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Device"> | Date | string password?: Prisma.StringNullableFilter<"Device"> | string | null passwordHint?: Prisma.StringNullableFilter<"Device"> | string | null account?: Prisma.XOR | null appInstalls?: Prisma.AppInstallListRelationFilter kvStore?: Prisma.KVStoreListRelationFilter autoAuths?: Prisma.AutoAuthListRelationFilter }, "id" | "uuid" | "namespace"> export type DeviceOrderByWithAggregationInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder name?: Prisma.SortOrderInput | Prisma.SortOrder accountId?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder password?: Prisma.SortOrderInput | Prisma.SortOrder passwordHint?: Prisma.SortOrderInput | Prisma.SortOrder namespace?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.DeviceCountOrderByAggregateInput _avg?: Prisma.DeviceAvgOrderByAggregateInput _max?: Prisma.DeviceMaxOrderByAggregateInput _min?: Prisma.DeviceMinOrderByAggregateInput _sum?: Prisma.DeviceSumOrderByAggregateInput } export type DeviceScalarWhereWithAggregatesInput = { AND?: Prisma.DeviceScalarWhereWithAggregatesInput | Prisma.DeviceScalarWhereWithAggregatesInput[] OR?: Prisma.DeviceScalarWhereWithAggregatesInput[] NOT?: Prisma.DeviceScalarWhereWithAggregatesInput | Prisma.DeviceScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"Device"> | number uuid?: Prisma.StringWithAggregatesFilter<"Device"> | string name?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null accountId?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"Device"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Device"> | Date | string password?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null passwordHint?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null namespace?: Prisma.StringNullableWithAggregatesFilter<"Device"> | string | null } export type DeviceCreateInput = { id: number uuid: string name?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null account?: Prisma.AccountCreateNestedOneWithoutDevicesInput appInstalls?: Prisma.AppInstallCreateNestedManyWithoutDeviceInput kvStore?: Prisma.KVStoreCreateNestedManyWithoutDeviceInput autoAuths?: Prisma.AutoAuthCreateNestedManyWithoutDeviceInput } export type DeviceUncheckedCreateInput = { id: number uuid: string name?: string | null accountId?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null appInstalls?: Prisma.AppInstallUncheckedCreateNestedManyWithoutDeviceInput kvStore?: Prisma.KVStoreUncheckedCreateNestedManyWithoutDeviceInput autoAuths?: Prisma.AutoAuthUncheckedCreateNestedManyWithoutDeviceInput } export type DeviceUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null account?: Prisma.AccountUpdateOneWithoutDevicesNestedInput appInstalls?: Prisma.AppInstallUpdateManyWithoutDeviceNestedInput kvStore?: Prisma.KVStoreUpdateManyWithoutDeviceNestedInput autoAuths?: Prisma.AutoAuthUpdateManyWithoutDeviceNestedInput } export type DeviceUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appInstalls?: Prisma.AppInstallUncheckedUpdateManyWithoutDeviceNestedInput kvStore?: Prisma.KVStoreUncheckedUpdateManyWithoutDeviceNestedInput autoAuths?: Prisma.AutoAuthUncheckedUpdateManyWithoutDeviceNestedInput } export type DeviceCreateManyInput = { id: number uuid: string name?: string | null accountId?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null } export type DeviceUpdateManyMutationInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type DeviceListRelationFilter = { every?: Prisma.DeviceWhereInput some?: Prisma.DeviceWhereInput none?: Prisma.DeviceWhereInput } export type DeviceOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type DeviceScalarRelationFilter = { is?: Prisma.DeviceWhereInput isNot?: Prisma.DeviceWhereInput } export type DeviceCountOrderByAggregateInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder name?: Prisma.SortOrder accountId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder password?: Prisma.SortOrder passwordHint?: Prisma.SortOrder namespace?: Prisma.SortOrder } export type DeviceAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type DeviceMaxOrderByAggregateInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder name?: Prisma.SortOrder accountId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder password?: Prisma.SortOrder passwordHint?: Prisma.SortOrder namespace?: Prisma.SortOrder } export type DeviceMinOrderByAggregateInput = { id?: Prisma.SortOrder uuid?: Prisma.SortOrder name?: Prisma.SortOrder accountId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder password?: Prisma.SortOrder passwordHint?: Prisma.SortOrder namespace?: Prisma.SortOrder } export type DeviceSumOrderByAggregateInput = { id?: Prisma.SortOrder } export type DeviceCreateNestedManyWithoutAccountInput = { create?: Prisma.XOR | Prisma.DeviceCreateWithoutAccountInput[] | Prisma.DeviceUncheckedCreateWithoutAccountInput[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccountInput | Prisma.DeviceCreateOrConnectWithoutAccountInput[] createMany?: Prisma.DeviceCreateManyAccountInputEnvelope connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] } export type DeviceUncheckedCreateNestedManyWithoutAccountInput = { create?: Prisma.XOR | Prisma.DeviceCreateWithoutAccountInput[] | Prisma.DeviceUncheckedCreateWithoutAccountInput[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccountInput | Prisma.DeviceCreateOrConnectWithoutAccountInput[] createMany?: Prisma.DeviceCreateManyAccountInputEnvelope connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] } export type DeviceUpdateManyWithoutAccountNestedInput = { create?: Prisma.XOR | Prisma.DeviceCreateWithoutAccountInput[] | Prisma.DeviceUncheckedCreateWithoutAccountInput[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccountInput | Prisma.DeviceCreateOrConnectWithoutAccountInput[] upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutAccountInput | Prisma.DeviceUpsertWithWhereUniqueWithoutAccountInput[] createMany?: Prisma.DeviceCreateManyAccountInputEnvelope set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] update?: Prisma.DeviceUpdateWithWhereUniqueWithoutAccountInput | Prisma.DeviceUpdateWithWhereUniqueWithoutAccountInput[] updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutAccountInput | Prisma.DeviceUpdateManyWithWhereWithoutAccountInput[] deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[] } export type DeviceUncheckedUpdateManyWithoutAccountNestedInput = { create?: Prisma.XOR | Prisma.DeviceCreateWithoutAccountInput[] | Prisma.DeviceUncheckedCreateWithoutAccountInput[] connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAccountInput | Prisma.DeviceCreateOrConnectWithoutAccountInput[] upsert?: Prisma.DeviceUpsertWithWhereUniqueWithoutAccountInput | Prisma.DeviceUpsertWithWhereUniqueWithoutAccountInput[] createMany?: Prisma.DeviceCreateManyAccountInputEnvelope set?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] disconnect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] delete?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] connect?: Prisma.DeviceWhereUniqueInput | Prisma.DeviceWhereUniqueInput[] update?: Prisma.DeviceUpdateWithWhereUniqueWithoutAccountInput | Prisma.DeviceUpdateWithWhereUniqueWithoutAccountInput[] updateMany?: Prisma.DeviceUpdateManyWithWhereWithoutAccountInput | Prisma.DeviceUpdateManyWithWhereWithoutAccountInput[] deleteMany?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[] } export type DeviceCreateNestedOneWithoutAppInstallsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAppInstallsInput connect?: Prisma.DeviceWhereUniqueInput } export type DeviceUpdateOneRequiredWithoutAppInstallsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAppInstallsInput upsert?: Prisma.DeviceUpsertWithoutAppInstallsInput connect?: Prisma.DeviceWhereUniqueInput update?: Prisma.XOR, Prisma.DeviceUncheckedUpdateWithoutAppInstallsInput> } export type DeviceCreateNestedOneWithoutAutoAuthsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAutoAuthsInput connect?: Prisma.DeviceWhereUniqueInput } export type DeviceUpdateOneRequiredWithoutAutoAuthsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutAutoAuthsInput upsert?: Prisma.DeviceUpsertWithoutAutoAuthsInput connect?: Prisma.DeviceWhereUniqueInput update?: Prisma.XOR, Prisma.DeviceUncheckedUpdateWithoutAutoAuthsInput> } export type DeviceCreateNestedOneWithoutKvStoreInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutKvStoreInput connect?: Prisma.DeviceWhereUniqueInput } export type DeviceUpdateOneRequiredWithoutKvStoreNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.DeviceCreateOrConnectWithoutKvStoreInput upsert?: Prisma.DeviceUpsertWithoutKvStoreInput connect?: Prisma.DeviceWhereUniqueInput update?: Prisma.XOR, Prisma.DeviceUncheckedUpdateWithoutKvStoreInput> } export type DeviceCreateWithoutAccountInput = { id: number uuid: string name?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null appInstalls?: Prisma.AppInstallCreateNestedManyWithoutDeviceInput kvStore?: Prisma.KVStoreCreateNestedManyWithoutDeviceInput autoAuths?: Prisma.AutoAuthCreateNestedManyWithoutDeviceInput } export type DeviceUncheckedCreateWithoutAccountInput = { id: number uuid: string name?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null appInstalls?: Prisma.AppInstallUncheckedCreateNestedManyWithoutDeviceInput kvStore?: Prisma.KVStoreUncheckedCreateNestedManyWithoutDeviceInput autoAuths?: Prisma.AutoAuthUncheckedCreateNestedManyWithoutDeviceInput } export type DeviceCreateOrConnectWithoutAccountInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } export type DeviceCreateManyAccountInputEnvelope = { data: Prisma.DeviceCreateManyAccountInput | Prisma.DeviceCreateManyAccountInput[] skipDuplicates?: boolean } export type DeviceUpsertWithWhereUniqueWithoutAccountInput = { where: Prisma.DeviceWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceUpdateWithWhereUniqueWithoutAccountInput = { where: Prisma.DeviceWhereUniqueInput data: Prisma.XOR } export type DeviceUpdateManyWithWhereWithoutAccountInput = { where: Prisma.DeviceScalarWhereInput data: Prisma.XOR } export type DeviceScalarWhereInput = { AND?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[] OR?: Prisma.DeviceScalarWhereInput[] NOT?: Prisma.DeviceScalarWhereInput | Prisma.DeviceScalarWhereInput[] id?: Prisma.IntFilter<"Device"> | number uuid?: Prisma.StringFilter<"Device"> | string name?: Prisma.StringNullableFilter<"Device"> | string | null accountId?: Prisma.StringNullableFilter<"Device"> | string | null createdAt?: Prisma.DateTimeFilter<"Device"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Device"> | Date | string password?: Prisma.StringNullableFilter<"Device"> | string | null passwordHint?: Prisma.StringNullableFilter<"Device"> | string | null namespace?: Prisma.StringNullableFilter<"Device"> | string | null } export type DeviceCreateWithoutAppInstallsInput = { id: number uuid: string name?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null account?: Prisma.AccountCreateNestedOneWithoutDevicesInput kvStore?: Prisma.KVStoreCreateNestedManyWithoutDeviceInput autoAuths?: Prisma.AutoAuthCreateNestedManyWithoutDeviceInput } export type DeviceUncheckedCreateWithoutAppInstallsInput = { id: number uuid: string name?: string | null accountId?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null kvStore?: Prisma.KVStoreUncheckedCreateNestedManyWithoutDeviceInput autoAuths?: Prisma.AutoAuthUncheckedCreateNestedManyWithoutDeviceInput } export type DeviceCreateOrConnectWithoutAppInstallsInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } export type DeviceUpsertWithoutAppInstallsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.DeviceWhereInput } export type DeviceUpdateToOneWithWhereWithoutAppInstallsInput = { where?: Prisma.DeviceWhereInput data: Prisma.XOR } export type DeviceUpdateWithoutAppInstallsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null account?: Prisma.AccountUpdateOneWithoutDevicesNestedInput kvStore?: Prisma.KVStoreUpdateManyWithoutDeviceNestedInput autoAuths?: Prisma.AutoAuthUpdateManyWithoutDeviceNestedInput } export type DeviceUncheckedUpdateWithoutAppInstallsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null kvStore?: Prisma.KVStoreUncheckedUpdateManyWithoutDeviceNestedInput autoAuths?: Prisma.AutoAuthUncheckedUpdateManyWithoutDeviceNestedInput } export type DeviceCreateWithoutAutoAuthsInput = { id: number uuid: string name?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null account?: Prisma.AccountCreateNestedOneWithoutDevicesInput appInstalls?: Prisma.AppInstallCreateNestedManyWithoutDeviceInput kvStore?: Prisma.KVStoreCreateNestedManyWithoutDeviceInput } export type DeviceUncheckedCreateWithoutAutoAuthsInput = { id: number uuid: string name?: string | null accountId?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null appInstalls?: Prisma.AppInstallUncheckedCreateNestedManyWithoutDeviceInput kvStore?: Prisma.KVStoreUncheckedCreateNestedManyWithoutDeviceInput } export type DeviceCreateOrConnectWithoutAutoAuthsInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } export type DeviceUpsertWithoutAutoAuthsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.DeviceWhereInput } export type DeviceUpdateToOneWithWhereWithoutAutoAuthsInput = { where?: Prisma.DeviceWhereInput data: Prisma.XOR } export type DeviceUpdateWithoutAutoAuthsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null account?: Prisma.AccountUpdateOneWithoutDevicesNestedInput appInstalls?: Prisma.AppInstallUpdateManyWithoutDeviceNestedInput kvStore?: Prisma.KVStoreUpdateManyWithoutDeviceNestedInput } export type DeviceUncheckedUpdateWithoutAutoAuthsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appInstalls?: Prisma.AppInstallUncheckedUpdateManyWithoutDeviceNestedInput kvStore?: Prisma.KVStoreUncheckedUpdateManyWithoutDeviceNestedInput } export type DeviceCreateWithoutKvStoreInput = { id: number uuid: string name?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null account?: Prisma.AccountCreateNestedOneWithoutDevicesInput appInstalls?: Prisma.AppInstallCreateNestedManyWithoutDeviceInput autoAuths?: Prisma.AutoAuthCreateNestedManyWithoutDeviceInput } export type DeviceUncheckedCreateWithoutKvStoreInput = { id: number uuid: string name?: string | null accountId?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null appInstalls?: Prisma.AppInstallUncheckedCreateNestedManyWithoutDeviceInput autoAuths?: Prisma.AutoAuthUncheckedCreateNestedManyWithoutDeviceInput } export type DeviceCreateOrConnectWithoutKvStoreInput = { where: Prisma.DeviceWhereUniqueInput create: Prisma.XOR } export type DeviceUpsertWithoutKvStoreInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.DeviceWhereInput } export type DeviceUpdateToOneWithWhereWithoutKvStoreInput = { where?: Prisma.DeviceWhereInput data: Prisma.XOR } export type DeviceUpdateWithoutKvStoreInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null account?: Prisma.AccountUpdateOneWithoutDevicesNestedInput appInstalls?: Prisma.AppInstallUpdateManyWithoutDeviceNestedInput autoAuths?: Prisma.AutoAuthUpdateManyWithoutDeviceNestedInput } export type DeviceUncheckedUpdateWithoutKvStoreInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null accountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appInstalls?: Prisma.AppInstallUncheckedUpdateManyWithoutDeviceNestedInput autoAuths?: Prisma.AutoAuthUncheckedUpdateManyWithoutDeviceNestedInput } export type DeviceCreateManyAccountInput = { id: number uuid: string name?: string | null createdAt?: Date | string updatedAt?: Date | string password?: string | null passwordHint?: string | null namespace?: string | null } export type DeviceUpdateWithoutAccountInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appInstalls?: Prisma.AppInstallUpdateManyWithoutDeviceNestedInput kvStore?: Prisma.KVStoreUpdateManyWithoutDeviceNestedInput autoAuths?: Prisma.AutoAuthUpdateManyWithoutDeviceNestedInput } export type DeviceUncheckedUpdateWithoutAccountInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null appInstalls?: Prisma.AppInstallUncheckedUpdateManyWithoutDeviceNestedInput kvStore?: Prisma.KVStoreUncheckedUpdateManyWithoutDeviceNestedInput autoAuths?: Prisma.AutoAuthUncheckedUpdateManyWithoutDeviceNestedInput } export type DeviceUncheckedUpdateManyWithoutAccountInput = { id?: Prisma.IntFieldUpdateOperationsInput | number uuid?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null passwordHint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null namespace?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type DeviceCountOutputType */ export type DeviceCountOutputType = { appInstalls: number kvStore: number autoAuths: number } export type DeviceCountOutputTypeSelect = { appInstalls?: boolean | DeviceCountOutputTypeCountAppInstallsArgs kvStore?: boolean | DeviceCountOutputTypeCountKvStoreArgs autoAuths?: boolean | DeviceCountOutputTypeCountAutoAuthsArgs } /** * DeviceCountOutputType without action */ export type DeviceCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the DeviceCountOutputType */ select?: Prisma.DeviceCountOutputTypeSelect | null } /** * DeviceCountOutputType without action */ export type DeviceCountOutputTypeCountAppInstallsArgs = { where?: Prisma.AppInstallWhereInput } /** * DeviceCountOutputType without action */ export type DeviceCountOutputTypeCountKvStoreArgs = { where?: Prisma.KVStoreWhereInput } /** * DeviceCountOutputType without action */ export type DeviceCountOutputTypeCountAutoAuthsArgs = { where?: Prisma.AutoAuthWhereInput } export type DeviceSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean uuid?: boolean name?: boolean accountId?: boolean createdAt?: boolean updatedAt?: boolean password?: boolean passwordHint?: boolean namespace?: boolean account?: boolean | Prisma.Device$accountArgs appInstalls?: boolean | Prisma.Device$appInstallsArgs kvStore?: boolean | Prisma.Device$kvStoreArgs autoAuths?: boolean | Prisma.Device$autoAuthsArgs _count?: boolean | Prisma.DeviceCountOutputTypeDefaultArgs }, ExtArgs["result"]["device"]> export type DeviceSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean uuid?: boolean name?: boolean accountId?: boolean createdAt?: boolean updatedAt?: boolean password?: boolean passwordHint?: boolean namespace?: boolean account?: boolean | Prisma.Device$accountArgs }, ExtArgs["result"]["device"]> export type DeviceSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean uuid?: boolean name?: boolean accountId?: boolean createdAt?: boolean updatedAt?: boolean password?: boolean passwordHint?: boolean namespace?: boolean account?: boolean | Prisma.Device$accountArgs }, ExtArgs["result"]["device"]> export type DeviceSelectScalar = { id?: boolean uuid?: boolean name?: boolean accountId?: boolean createdAt?: boolean updatedAt?: boolean password?: boolean passwordHint?: boolean namespace?: boolean } export type DeviceOmit = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "name" | "accountId" | "createdAt" | "updatedAt" | "password" | "passwordHint" | "namespace", ExtArgs["result"]["device"]> export type DeviceInclude = { account?: boolean | Prisma.Device$accountArgs appInstalls?: boolean | Prisma.Device$appInstallsArgs kvStore?: boolean | Prisma.Device$kvStoreArgs autoAuths?: boolean | Prisma.Device$autoAuthsArgs _count?: boolean | Prisma.DeviceCountOutputTypeDefaultArgs } export type DeviceIncludeCreateManyAndReturn = { account?: boolean | Prisma.Device$accountArgs } export type DeviceIncludeUpdateManyAndReturn = { account?: boolean | Prisma.Device$accountArgs } export type $DevicePayload = { name: "Device" objects: { account: Prisma.$AccountPayload | null appInstalls: Prisma.$AppInstallPayload[] kvStore: Prisma.$KVStorePayload[] autoAuths: Prisma.$AutoAuthPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number uuid: string name: string | null accountId: string | null createdAt: Date updatedAt: Date password: string | null passwordHint: string | null namespace: string | null }, ExtArgs["result"]["device"]> composites: {} } export type DeviceGetPayload = runtime.Types.Result.GetResult export type DeviceCountArgs = Omit & { select?: DeviceCountAggregateInputType | true } export interface DeviceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Device'], meta: { name: 'Device' } } /** * Find zero or one Device that matches the filter. * @param {DeviceFindUniqueArgs} args - Arguments to find a Device * @example * // Get one Device * const device = await prisma.device.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Device that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeviceFindUniqueOrThrowArgs} args - Arguments to find a Device * @example * // Get one Device * const device = await prisma.device.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Device 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 {DeviceFindFirstArgs} args - Arguments to find a Device * @example * // Get one Device * const device = await prisma.device.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Device 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 {DeviceFindFirstOrThrowArgs} args - Arguments to find a Device * @example * // Get one Device * const device = await prisma.device.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Devices 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 {DeviceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Devices * const devices = await prisma.device.findMany() * * // Get first 10 Devices * const devices = await prisma.device.findMany({ take: 10 }) * * // Only select the `id` * const deviceWithIdOnly = await prisma.device.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Device. * @param {DeviceCreateArgs} args - Arguments to create a Device. * @example * // Create one Device * const Device = await prisma.device.create({ * data: { * // ... data to create a Device * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Devices. * @param {DeviceCreateManyArgs} args - Arguments to create many Devices. * @example * // Create many Devices * const device = await prisma.device.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Devices and returns the data saved in the database. * @param {DeviceCreateManyAndReturnArgs} args - Arguments to create many Devices. * @example * // Create many Devices * const device = await prisma.device.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Devices and only return the `id` * const deviceWithIdOnly = await prisma.device.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 Device. * @param {DeviceDeleteArgs} args - Arguments to delete one Device. * @example * // Delete one Device * const Device = await prisma.device.delete({ * where: { * // ... filter to delete one Device * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Device. * @param {DeviceUpdateArgs} args - Arguments to update one Device. * @example * // Update one Device * const device = await prisma.device.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Devices. * @param {DeviceDeleteManyArgs} args - Arguments to filter Devices to delete. * @example * // Delete a few Devices * const { count } = await prisma.device.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Devices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Devices * const device = await prisma.device.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Devices and returns the data updated in the database. * @param {DeviceUpdateManyAndReturnArgs} args - Arguments to update many Devices. * @example * // Update many Devices * const device = await prisma.device.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Devices and only return the `id` * const deviceWithIdOnly = await prisma.device.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 Device. * @param {DeviceUpsertArgs} args - Arguments to update or create a Device. * @example * // Update or create a Device * const device = await prisma.device.upsert({ * create: { * // ... data to create a Device * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Device we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Devices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceCountArgs} args - Arguments to filter Devices to count. * @example * // Count the number of Devices * const count = await prisma.device.count({ * where: { * // ... the filter for the Devices 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 Device. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceAggregateArgs} 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 Device. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceGroupByArgs} 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 DeviceGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: DeviceGroupByArgs['orderBy'] } : { orderBy?: DeviceGroupByArgs['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 ? GetDeviceGroupByPayload : Prisma.PrismaPromise /** * Fields of the Device model */ readonly fields: DeviceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Device. * 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__DeviceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" account = {}>(args?: Prisma.Subset>): Prisma.Prisma__AccountClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> appInstalls = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> kvStore = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> autoAuths = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 Device model */ export interface DeviceFieldRefs { readonly id: Prisma.FieldRef<"Device", 'Int'> readonly uuid: Prisma.FieldRef<"Device", 'String'> readonly name: Prisma.FieldRef<"Device", 'String'> readonly accountId: Prisma.FieldRef<"Device", 'String'> readonly createdAt: Prisma.FieldRef<"Device", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Device", 'DateTime'> readonly password: Prisma.FieldRef<"Device", 'String'> readonly passwordHint: Prisma.FieldRef<"Device", 'String'> readonly namespace: Prisma.FieldRef<"Device", 'String'> } // Custom InputTypes /** * Device findUnique */ export type DeviceFindUniqueArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * Filter, which Device to fetch. */ where: Prisma.DeviceWhereUniqueInput } /** * Device findUniqueOrThrow */ export type DeviceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * Filter, which Device to fetch. */ where: Prisma.DeviceWhereUniqueInput } /** * Device findFirst */ export type DeviceFindFirstArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * Filter, which Device to fetch. */ where?: Prisma.DeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Devices to fetch. */ orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Devices. */ cursor?: Prisma.DeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Devices 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` Devices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Devices. */ distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] } /** * Device findFirstOrThrow */ export type DeviceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * Filter, which Device to fetch. */ where?: Prisma.DeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Devices to fetch. */ orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Devices. */ cursor?: Prisma.DeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Devices 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` Devices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Devices. */ distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] } /** * Device findMany */ export type DeviceFindManyArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * Filter, which Devices to fetch. */ where?: Prisma.DeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Devices to fetch. */ orderBy?: Prisma.DeviceOrderByWithRelationInput | Prisma.DeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Devices. */ cursor?: Prisma.DeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Devices 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` Devices. */ skip?: number distinct?: Prisma.DeviceScalarFieldEnum | Prisma.DeviceScalarFieldEnum[] } /** * Device create */ export type DeviceCreateArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * The data needed to create a Device. */ data: Prisma.XOR } /** * Device createMany */ export type DeviceCreateManyArgs = { /** * The data used to create many Devices. */ data: Prisma.DeviceCreateManyInput | Prisma.DeviceCreateManyInput[] skipDuplicates?: boolean } /** * Device createManyAndReturn */ export type DeviceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelectCreateManyAndReturn | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * The data used to create many Devices. */ data: Prisma.DeviceCreateManyInput | Prisma.DeviceCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceIncludeCreateManyAndReturn | null } /** * Device update */ export type DeviceUpdateArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * The data needed to update a Device. */ data: Prisma.XOR /** * Choose, which Device to update. */ where: Prisma.DeviceWhereUniqueInput } /** * Device updateMany */ export type DeviceUpdateManyArgs = { /** * The data used to update Devices. */ data: Prisma.XOR /** * Filter which Devices to update */ where?: Prisma.DeviceWhereInput /** * Limit how many Devices to update. */ limit?: number } /** * Device updateManyAndReturn */ export type DeviceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelectUpdateManyAndReturn | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * The data used to update Devices. */ data: Prisma.XOR /** * Filter which Devices to update */ where?: Prisma.DeviceWhereInput /** * Limit how many Devices to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceIncludeUpdateManyAndReturn | null } /** * Device upsert */ export type DeviceUpsertArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * The filter to search for the Device to update in case it exists. */ where: Prisma.DeviceWhereUniqueInput /** * In case the Device found by the `where` argument doesn't exist, create a new Device with this data. */ create: Prisma.XOR /** * In case the Device was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Device delete */ export type DeviceDeleteArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null /** * Filter which Device to delete. */ where: Prisma.DeviceWhereUniqueInput } /** * Device deleteMany */ export type DeviceDeleteManyArgs = { /** * Filter which Devices to delete */ where?: Prisma.DeviceWhereInput /** * Limit how many Devices to delete. */ limit?: number } /** * Device.account */ export type Device$accountArgs = { /** * Select specific fields to fetch from the Account */ select?: Prisma.AccountSelect | null /** * Omit specific fields from the Account */ omit?: Prisma.AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AccountInclude | null where?: Prisma.AccountWhereInput } /** * Device.appInstalls */ export type Device$appInstallsArgs = { /** * Select specific fields to fetch from the AppInstall */ select?: Prisma.AppInstallSelect | null /** * Omit specific fields from the AppInstall */ omit?: Prisma.AppInstallOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AppInstallInclude | null where?: Prisma.AppInstallWhereInput orderBy?: Prisma.AppInstallOrderByWithRelationInput | Prisma.AppInstallOrderByWithRelationInput[] cursor?: Prisma.AppInstallWhereUniqueInput take?: number skip?: number distinct?: Prisma.AppInstallScalarFieldEnum | Prisma.AppInstallScalarFieldEnum[] } /** * Device.kvStore */ export type Device$kvStoreArgs = { /** * Select specific fields to fetch from the KVStore */ select?: Prisma.KVStoreSelect | null /** * Omit specific fields from the KVStore */ omit?: Prisma.KVStoreOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KVStoreInclude | null where?: Prisma.KVStoreWhereInput orderBy?: Prisma.KVStoreOrderByWithRelationInput | Prisma.KVStoreOrderByWithRelationInput[] cursor?: Prisma.KVStoreWhereUniqueInput take?: number skip?: number distinct?: Prisma.KVStoreScalarFieldEnum | Prisma.KVStoreScalarFieldEnum[] } /** * Device.autoAuths */ export type Device$autoAuthsArgs = { /** * 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 where?: Prisma.AutoAuthWhereInput orderBy?: Prisma.AutoAuthOrderByWithRelationInput | Prisma.AutoAuthOrderByWithRelationInput[] cursor?: Prisma.AutoAuthWhereUniqueInput take?: number skip?: number distinct?: Prisma.AutoAuthScalarFieldEnum | Prisma.AutoAuthScalarFieldEnum[] } /** * Device without action */ export type DeviceDefaultArgs = { /** * Select specific fields to fetch from the Device */ select?: Prisma.DeviceSelect | null /** * Omit specific fields from the Device */ omit?: Prisma.DeviceOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceInclude | null }