/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `SecureValue` 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 SecureValue * */ export type SecureValueModel = runtime.Types.Result.DefaultSelection export type AggregateSecureValue = { _count: SecureValueCountAggregateOutputType | null _min: SecureValueMinAggregateOutputType | null _max: SecureValueMaxAggregateOutputType | null } export type SecureValueMinAggregateOutputType = { id: string | null name: string | null content: string | null hash: string | null credentialId: string | null createdAt: Date | null updatedAt: Date | null } export type SecureValueMaxAggregateOutputType = { id: string | null name: string | null content: string | null hash: string | null credentialId: string | null createdAt: Date | null updatedAt: Date | null } export type SecureValueCountAggregateOutputType = { id: number name: number content: number hash: number credentialId: number createdAt: number updatedAt: number _all: number } export type SecureValueMinAggregateInputType = { id?: true name?: true content?: true hash?: true credentialId?: true createdAt?: true updatedAt?: true } export type SecureValueMaxAggregateInputType = { id?: true name?: true content?: true hash?: true credentialId?: true createdAt?: true updatedAt?: true } export type SecureValueCountAggregateInputType = { id?: true name?: true content?: true hash?: true credentialId?: true createdAt?: true updatedAt?: true _all?: true } export type SecureValueAggregateArgs = { /** * Filter which SecureValue to aggregate. */ where?: Prisma.SecureValueWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SecureValues to fetch. */ orderBy?: Prisma.SecureValueOrderByWithRelationInput | Prisma.SecureValueOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SecureValueWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SecureValues 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` SecureValues. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SecureValues **/ _count?: true | SecureValueCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SecureValueMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SecureValueMaxAggregateInputType } export type GetSecureValueAggregateType = { [P in keyof T & keyof AggregateSecureValue]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SecureValueGroupByArgs = { where?: Prisma.SecureValueWhereInput orderBy?: Prisma.SecureValueOrderByWithAggregationInput | Prisma.SecureValueOrderByWithAggregationInput[] by: Prisma.SecureValueScalarFieldEnum[] | Prisma.SecureValueScalarFieldEnum having?: Prisma.SecureValueScalarWhereWithAggregatesInput take?: number skip?: number _count?: SecureValueCountAggregateInputType | true _min?: SecureValueMinAggregateInputType _max?: SecureValueMaxAggregateInputType } export type SecureValueGroupByOutputType = { id: string name: string content: string hash: string credentialId: string createdAt: Date updatedAt: Date _count: SecureValueCountAggregateOutputType | null _min: SecureValueMinAggregateOutputType | null _max: SecureValueMaxAggregateOutputType | null } type GetSecureValueGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SecureValueGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SecureValueWhereInput = { AND?: Prisma.SecureValueWhereInput | Prisma.SecureValueWhereInput[] OR?: Prisma.SecureValueWhereInput[] NOT?: Prisma.SecureValueWhereInput | Prisma.SecureValueWhereInput[] id?: Prisma.StringFilter<"SecureValue"> | string name?: Prisma.StringFilter<"SecureValue"> | string content?: Prisma.StringFilter<"SecureValue"> | string hash?: Prisma.StringFilter<"SecureValue"> | string credentialId?: Prisma.StringFilter<"SecureValue"> | string createdAt?: Prisma.DateTimeFilter<"SecureValue"> | Date | string updatedAt?: Prisma.DateTimeFilter<"SecureValue"> | Date | string credential?: Prisma.XOR } export type SecureValueOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder content?: Prisma.SortOrder hash?: Prisma.SortOrder credentialId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder credential?: Prisma.CredentialOrderByWithRelationInput } export type SecureValueWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.SecureValueWhereInput | Prisma.SecureValueWhereInput[] OR?: Prisma.SecureValueWhereInput[] NOT?: Prisma.SecureValueWhereInput | Prisma.SecureValueWhereInput[] name?: Prisma.StringFilter<"SecureValue"> | string content?: Prisma.StringFilter<"SecureValue"> | string hash?: Prisma.StringFilter<"SecureValue"> | string credentialId?: Prisma.StringFilter<"SecureValue"> | string createdAt?: Prisma.DateTimeFilter<"SecureValue"> | Date | string updatedAt?: Prisma.DateTimeFilter<"SecureValue"> | Date | string credential?: Prisma.XOR }, "id"> export type SecureValueOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder content?: Prisma.SortOrder hash?: Prisma.SortOrder credentialId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.SecureValueCountOrderByAggregateInput _max?: Prisma.SecureValueMaxOrderByAggregateInput _min?: Prisma.SecureValueMinOrderByAggregateInput } export type SecureValueScalarWhereWithAggregatesInput = { AND?: Prisma.SecureValueScalarWhereWithAggregatesInput | Prisma.SecureValueScalarWhereWithAggregatesInput[] OR?: Prisma.SecureValueScalarWhereWithAggregatesInput[] NOT?: Prisma.SecureValueScalarWhereWithAggregatesInput | Prisma.SecureValueScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"SecureValue"> | string name?: Prisma.StringWithAggregatesFilter<"SecureValue"> | string content?: Prisma.StringWithAggregatesFilter<"SecureValue"> | string hash?: Prisma.StringWithAggregatesFilter<"SecureValue"> | string credentialId?: Prisma.StringWithAggregatesFilter<"SecureValue"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"SecureValue"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SecureValue"> | Date | string } export type SecureValueCreateInput = { id?: string name: string content: string hash: string createdAt?: Date | string updatedAt?: Date | string credential: Prisma.CredentialCreateNestedOneWithoutSecurevaluesInput } export type SecureValueUncheckedCreateInput = { id?: string name: string content: string hash: string credentialId: string createdAt?: Date | string updatedAt?: Date | string } export type SecureValueUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string credential?: Prisma.CredentialUpdateOneRequiredWithoutSecurevaluesNestedInput } export type SecureValueUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string hash?: Prisma.StringFieldUpdateOperationsInput | string credentialId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SecureValueCreateManyInput = { id?: string name: string content: string hash: string credentialId: string createdAt?: Date | string updatedAt?: Date | string } export type SecureValueUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SecureValueUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string hash?: Prisma.StringFieldUpdateOperationsInput | string credentialId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SecureValueCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder content?: Prisma.SortOrder hash?: Prisma.SortOrder credentialId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type SecureValueMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder content?: Prisma.SortOrder hash?: Prisma.SortOrder credentialId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type SecureValueMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder content?: Prisma.SortOrder hash?: Prisma.SortOrder credentialId?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type SecureValueListRelationFilter = { every?: Prisma.SecureValueWhereInput some?: Prisma.SecureValueWhereInput none?: Prisma.SecureValueWhereInput } export type SecureValueOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type SecureValueCreateNestedManyWithoutCredentialInput = { create?: Prisma.XOR | Prisma.SecureValueCreateWithoutCredentialInput[] | Prisma.SecureValueUncheckedCreateWithoutCredentialInput[] connectOrCreate?: Prisma.SecureValueCreateOrConnectWithoutCredentialInput | Prisma.SecureValueCreateOrConnectWithoutCredentialInput[] createMany?: Prisma.SecureValueCreateManyCredentialInputEnvelope connect?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] } export type SecureValueUncheckedCreateNestedManyWithoutCredentialInput = { create?: Prisma.XOR | Prisma.SecureValueCreateWithoutCredentialInput[] | Prisma.SecureValueUncheckedCreateWithoutCredentialInput[] connectOrCreate?: Prisma.SecureValueCreateOrConnectWithoutCredentialInput | Prisma.SecureValueCreateOrConnectWithoutCredentialInput[] createMany?: Prisma.SecureValueCreateManyCredentialInputEnvelope connect?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] } export type SecureValueUpdateManyWithoutCredentialNestedInput = { create?: Prisma.XOR | Prisma.SecureValueCreateWithoutCredentialInput[] | Prisma.SecureValueUncheckedCreateWithoutCredentialInput[] connectOrCreate?: Prisma.SecureValueCreateOrConnectWithoutCredentialInput | Prisma.SecureValueCreateOrConnectWithoutCredentialInput[] upsert?: Prisma.SecureValueUpsertWithWhereUniqueWithoutCredentialInput | Prisma.SecureValueUpsertWithWhereUniqueWithoutCredentialInput[] createMany?: Prisma.SecureValueCreateManyCredentialInputEnvelope set?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] disconnect?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] delete?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] connect?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] update?: Prisma.SecureValueUpdateWithWhereUniqueWithoutCredentialInput | Prisma.SecureValueUpdateWithWhereUniqueWithoutCredentialInput[] updateMany?: Prisma.SecureValueUpdateManyWithWhereWithoutCredentialInput | Prisma.SecureValueUpdateManyWithWhereWithoutCredentialInput[] deleteMany?: Prisma.SecureValueScalarWhereInput | Prisma.SecureValueScalarWhereInput[] } export type SecureValueUncheckedUpdateManyWithoutCredentialNestedInput = { create?: Prisma.XOR | Prisma.SecureValueCreateWithoutCredentialInput[] | Prisma.SecureValueUncheckedCreateWithoutCredentialInput[] connectOrCreate?: Prisma.SecureValueCreateOrConnectWithoutCredentialInput | Prisma.SecureValueCreateOrConnectWithoutCredentialInput[] upsert?: Prisma.SecureValueUpsertWithWhereUniqueWithoutCredentialInput | Prisma.SecureValueUpsertWithWhereUniqueWithoutCredentialInput[] createMany?: Prisma.SecureValueCreateManyCredentialInputEnvelope set?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] disconnect?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] delete?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] connect?: Prisma.SecureValueWhereUniqueInput | Prisma.SecureValueWhereUniqueInput[] update?: Prisma.SecureValueUpdateWithWhereUniqueWithoutCredentialInput | Prisma.SecureValueUpdateWithWhereUniqueWithoutCredentialInput[] updateMany?: Prisma.SecureValueUpdateManyWithWhereWithoutCredentialInput | Prisma.SecureValueUpdateManyWithWhereWithoutCredentialInput[] deleteMany?: Prisma.SecureValueScalarWhereInput | Prisma.SecureValueScalarWhereInput[] } export type SecureValueCreateWithoutCredentialInput = { id?: string name: string content: string hash: string createdAt?: Date | string updatedAt?: Date | string } export type SecureValueUncheckedCreateWithoutCredentialInput = { id?: string name: string content: string hash: string createdAt?: Date | string updatedAt?: Date | string } export type SecureValueCreateOrConnectWithoutCredentialInput = { where: Prisma.SecureValueWhereUniqueInput create: Prisma.XOR } export type SecureValueCreateManyCredentialInputEnvelope = { data: Prisma.SecureValueCreateManyCredentialInput | Prisma.SecureValueCreateManyCredentialInput[] skipDuplicates?: boolean } export type SecureValueUpsertWithWhereUniqueWithoutCredentialInput = { where: Prisma.SecureValueWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SecureValueUpdateWithWhereUniqueWithoutCredentialInput = { where: Prisma.SecureValueWhereUniqueInput data: Prisma.XOR } export type SecureValueUpdateManyWithWhereWithoutCredentialInput = { where: Prisma.SecureValueScalarWhereInput data: Prisma.XOR } export type SecureValueScalarWhereInput = { AND?: Prisma.SecureValueScalarWhereInput | Prisma.SecureValueScalarWhereInput[] OR?: Prisma.SecureValueScalarWhereInput[] NOT?: Prisma.SecureValueScalarWhereInput | Prisma.SecureValueScalarWhereInput[] id?: Prisma.StringFilter<"SecureValue"> | string name?: Prisma.StringFilter<"SecureValue"> | string content?: Prisma.StringFilter<"SecureValue"> | string hash?: Prisma.StringFilter<"SecureValue"> | string credentialId?: Prisma.StringFilter<"SecureValue"> | string createdAt?: Prisma.DateTimeFilter<"SecureValue"> | Date | string updatedAt?: Prisma.DateTimeFilter<"SecureValue"> | Date | string } export type SecureValueCreateManyCredentialInput = { id?: string name: string content: string hash: string createdAt?: Date | string updatedAt?: Date | string } export type SecureValueUpdateWithoutCredentialInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SecureValueUncheckedUpdateWithoutCredentialInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SecureValueUncheckedUpdateManyWithoutCredentialInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string hash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SecureValueSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean content?: boolean hash?: boolean credentialId?: boolean createdAt?: boolean updatedAt?: boolean credential?: boolean | Prisma.CredentialDefaultArgs }, ExtArgs["result"]["secureValue"]> export type SecureValueSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean content?: boolean hash?: boolean credentialId?: boolean createdAt?: boolean updatedAt?: boolean credential?: boolean | Prisma.CredentialDefaultArgs }, ExtArgs["result"]["secureValue"]> export type SecureValueSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean content?: boolean hash?: boolean credentialId?: boolean createdAt?: boolean updatedAt?: boolean credential?: boolean | Prisma.CredentialDefaultArgs }, ExtArgs["result"]["secureValue"]> export type SecureValueSelectScalar = { id?: boolean name?: boolean content?: boolean hash?: boolean credentialId?: boolean createdAt?: boolean updatedAt?: boolean } export type SecureValueOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "content" | "hash" | "credentialId" | "createdAt" | "updatedAt", ExtArgs["result"]["secureValue"]> export type SecureValueInclude = { credential?: boolean | Prisma.CredentialDefaultArgs } export type SecureValueIncludeCreateManyAndReturn = { credential?: boolean | Prisma.CredentialDefaultArgs } export type SecureValueIncludeUpdateManyAndReturn = { credential?: boolean | Prisma.CredentialDefaultArgs } export type $SecureValuePayload = { name: "SecureValue" objects: { credential: Prisma.$CredentialPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string content: string hash: string credentialId: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["secureValue"]> composites: {} } export type SecureValueGetPayload = runtime.Types.Result.GetResult export type SecureValueCountArgs = Omit & { select?: SecureValueCountAggregateInputType | true } export interface SecureValueDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SecureValue'], meta: { name: 'SecureValue' } } /** * Find zero or one SecureValue that matches the filter. * @param {SecureValueFindUniqueArgs} args - Arguments to find a SecureValue * @example * // Get one SecureValue * const secureValue = await prisma.secureValue.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SecureValueClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SecureValue that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SecureValueFindUniqueOrThrowArgs} args - Arguments to find a SecureValue * @example * // Get one SecureValue * const secureValue = await prisma.secureValue.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SecureValueClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SecureValue 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 {SecureValueFindFirstArgs} args - Arguments to find a SecureValue * @example * // Get one SecureValue * const secureValue = await prisma.secureValue.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SecureValueClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SecureValue 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 {SecureValueFindFirstOrThrowArgs} args - Arguments to find a SecureValue * @example * // Get one SecureValue * const secureValue = await prisma.secureValue.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SecureValueClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SecureValues 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 {SecureValueFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SecureValues * const secureValues = await prisma.secureValue.findMany() * * // Get first 10 SecureValues * const secureValues = await prisma.secureValue.findMany({ take: 10 }) * * // Only select the `id` * const secureValueWithIdOnly = await prisma.secureValue.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a SecureValue. * @param {SecureValueCreateArgs} args - Arguments to create a SecureValue. * @example * // Create one SecureValue * const SecureValue = await prisma.secureValue.create({ * data: { * // ... data to create a SecureValue * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SecureValueClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SecureValues. * @param {SecureValueCreateManyArgs} args - Arguments to create many SecureValues. * @example * // Create many SecureValues * const secureValue = await prisma.secureValue.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many SecureValues and returns the data saved in the database. * @param {SecureValueCreateManyAndReturnArgs} args - Arguments to create many SecureValues. * @example * // Create many SecureValues * const secureValue = await prisma.secureValue.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SecureValues and only return the `id` * const secureValueWithIdOnly = await prisma.secureValue.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 SecureValue. * @param {SecureValueDeleteArgs} args - Arguments to delete one SecureValue. * @example * // Delete one SecureValue * const SecureValue = await prisma.secureValue.delete({ * where: { * // ... filter to delete one SecureValue * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SecureValueClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SecureValue. * @param {SecureValueUpdateArgs} args - Arguments to update one SecureValue. * @example * // Update one SecureValue * const secureValue = await prisma.secureValue.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SecureValueClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SecureValues. * @param {SecureValueDeleteManyArgs} args - Arguments to filter SecureValues to delete. * @example * // Delete a few SecureValues * const { count } = await prisma.secureValue.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SecureValues. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SecureValueUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SecureValues * const secureValue = await prisma.secureValue.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SecureValues and returns the data updated in the database. * @param {SecureValueUpdateManyAndReturnArgs} args - Arguments to update many SecureValues. * @example * // Update many SecureValues * const secureValue = await prisma.secureValue.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SecureValues and only return the `id` * const secureValueWithIdOnly = await prisma.secureValue.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 SecureValue. * @param {SecureValueUpsertArgs} args - Arguments to update or create a SecureValue. * @example * // Update or create a SecureValue * const secureValue = await prisma.secureValue.upsert({ * create: { * // ... data to create a SecureValue * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SecureValue we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SecureValueClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SecureValues. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SecureValueCountArgs} args - Arguments to filter SecureValues to count. * @example * // Count the number of SecureValues * const count = await prisma.secureValue.count({ * where: { * // ... the filter for the SecureValues 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 SecureValue. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SecureValueAggregateArgs} 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 SecureValue. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SecureValueGroupByArgs} 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 SecureValueGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SecureValueGroupByArgs['orderBy'] } : { orderBy?: SecureValueGroupByArgs['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 ? GetSecureValueGroupByPayload : Prisma.PrismaPromise /** * Fields of the SecureValue model */ readonly fields: SecureValueFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SecureValue. * 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__SecureValueClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" credential = {}>(args?: Prisma.Subset>): Prisma.Prisma__CredentialClient, 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 SecureValue model */ export interface SecureValueFieldRefs { readonly id: Prisma.FieldRef<"SecureValue", 'String'> readonly name: Prisma.FieldRef<"SecureValue", 'String'> readonly content: Prisma.FieldRef<"SecureValue", 'String'> readonly hash: Prisma.FieldRef<"SecureValue", 'String'> readonly credentialId: Prisma.FieldRef<"SecureValue", 'String'> readonly createdAt: Prisma.FieldRef<"SecureValue", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"SecureValue", 'DateTime'> } // Custom InputTypes /** * SecureValue findUnique */ export type SecureValueFindUniqueArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null /** * Filter, which SecureValue to fetch. */ where: Prisma.SecureValueWhereUniqueInput } /** * SecureValue findUniqueOrThrow */ export type SecureValueFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null /** * Filter, which SecureValue to fetch. */ where: Prisma.SecureValueWhereUniqueInput } /** * SecureValue findFirst */ export type SecureValueFindFirstArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null /** * Filter, which SecureValue to fetch. */ where?: Prisma.SecureValueWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SecureValues to fetch. */ orderBy?: Prisma.SecureValueOrderByWithRelationInput | Prisma.SecureValueOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SecureValues. */ cursor?: Prisma.SecureValueWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SecureValues 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` SecureValues. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SecureValues. */ distinct?: Prisma.SecureValueScalarFieldEnum | Prisma.SecureValueScalarFieldEnum[] } /** * SecureValue findFirstOrThrow */ export type SecureValueFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null /** * Filter, which SecureValue to fetch. */ where?: Prisma.SecureValueWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SecureValues to fetch. */ orderBy?: Prisma.SecureValueOrderByWithRelationInput | Prisma.SecureValueOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SecureValues. */ cursor?: Prisma.SecureValueWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SecureValues 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` SecureValues. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SecureValues. */ distinct?: Prisma.SecureValueScalarFieldEnum | Prisma.SecureValueScalarFieldEnum[] } /** * SecureValue findMany */ export type SecureValueFindManyArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null /** * Filter, which SecureValues to fetch. */ where?: Prisma.SecureValueWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SecureValues to fetch. */ orderBy?: Prisma.SecureValueOrderByWithRelationInput | Prisma.SecureValueOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SecureValues. */ cursor?: Prisma.SecureValueWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SecureValues 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` SecureValues. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SecureValues. */ distinct?: Prisma.SecureValueScalarFieldEnum | Prisma.SecureValueScalarFieldEnum[] } /** * SecureValue create */ export type SecureValueCreateArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null /** * The data needed to create a SecureValue. */ data: Prisma.XOR } /** * SecureValue createMany */ export type SecureValueCreateManyArgs = { /** * The data used to create many SecureValues. */ data: Prisma.SecureValueCreateManyInput | Prisma.SecureValueCreateManyInput[] skipDuplicates?: boolean } /** * SecureValue createManyAndReturn */ export type SecureValueCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelectCreateManyAndReturn | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * The data used to create many SecureValues. */ data: Prisma.SecureValueCreateManyInput | Prisma.SecureValueCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueIncludeCreateManyAndReturn | null } /** * SecureValue update */ export type SecureValueUpdateArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null /** * The data needed to update a SecureValue. */ data: Prisma.XOR /** * Choose, which SecureValue to update. */ where: Prisma.SecureValueWhereUniqueInput } /** * SecureValue updateMany */ export type SecureValueUpdateManyArgs = { /** * The data used to update SecureValues. */ data: Prisma.XOR /** * Filter which SecureValues to update */ where?: Prisma.SecureValueWhereInput /** * Limit how many SecureValues to update. */ limit?: number } /** * SecureValue updateManyAndReturn */ export type SecureValueUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelectUpdateManyAndReturn | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * The data used to update SecureValues. */ data: Prisma.XOR /** * Filter which SecureValues to update */ where?: Prisma.SecureValueWhereInput /** * Limit how many SecureValues to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueIncludeUpdateManyAndReturn | null } /** * SecureValue upsert */ export type SecureValueUpsertArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null /** * The filter to search for the SecureValue to update in case it exists. */ where: Prisma.SecureValueWhereUniqueInput /** * In case the SecureValue found by the `where` argument doesn't exist, create a new SecureValue with this data. */ create: Prisma.XOR /** * In case the SecureValue was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SecureValue delete */ export type SecureValueDeleteArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null /** * Filter which SecureValue to delete. */ where: Prisma.SecureValueWhereUniqueInput } /** * SecureValue deleteMany */ export type SecureValueDeleteManyArgs = { /** * Filter which SecureValues to delete */ where?: Prisma.SecureValueWhereInput /** * Limit how many SecureValues to delete. */ limit?: number } /** * SecureValue without action */ export type SecureValueDefaultArgs = { /** * Select specific fields to fetch from the SecureValue */ select?: Prisma.SecureValueSelect | null /** * Omit specific fields from the SecureValue */ omit?: Prisma.SecureValueOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SecureValueInclude | null }