/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `IdempotencyKey` 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 IdempotencyKey * */ export type IdempotencyKeyModel = runtime.Types.Result.DefaultSelection export type AggregateIdempotencyKey = { _count: IdempotencyKeyCountAggregateOutputType | null _avg: IdempotencyKeyAvgAggregateOutputType | null _sum: IdempotencyKeySumAggregateOutputType | null _min: IdempotencyKeyMinAggregateOutputType | null _max: IdempotencyKeyMaxAggregateOutputType | null } export type IdempotencyKeyAvgAggregateOutputType = { responseStatus: number | null } export type IdempotencyKeySumAggregateOutputType = { responseStatus: number | null } export type IdempotencyKeyMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null expiresAt: Date | null scope: string | null key: string | null requestHash: string | null responseStatus: number | null } export type IdempotencyKeyMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null expiresAt: Date | null scope: string | null key: string | null requestHash: string | null responseStatus: number | null } export type IdempotencyKeyCountAggregateOutputType = { id: number createdAt: number updatedAt: number expiresAt: number scope: number key: number requestHash: number responseStatus: number responseBody: number responseHeaders: number _all: number } export type IdempotencyKeyAvgAggregateInputType = { responseStatus?: true } export type IdempotencyKeySumAggregateInputType = { responseStatus?: true } export type IdempotencyKeyMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true expiresAt?: true scope?: true key?: true requestHash?: true responseStatus?: true } export type IdempotencyKeyMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true expiresAt?: true scope?: true key?: true requestHash?: true responseStatus?: true } export type IdempotencyKeyCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true expiresAt?: true scope?: true key?: true requestHash?: true responseStatus?: true responseBody?: true responseHeaders?: true _all?: true } export type IdempotencyKeyAggregateArgs = { /** * Filter which IdempotencyKey to aggregate. */ where?: Prisma.IdempotencyKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IdempotencyKeys to fetch. */ orderBy?: Prisma.IdempotencyKeyOrderByWithRelationInput | Prisma.IdempotencyKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.IdempotencyKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IdempotencyKeys 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` IdempotencyKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned IdempotencyKeys **/ _count?: true | IdempotencyKeyCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: IdempotencyKeyAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: IdempotencyKeySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: IdempotencyKeyMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: IdempotencyKeyMaxAggregateInputType } export type GetIdempotencyKeyAggregateType = { [P in keyof T & keyof AggregateIdempotencyKey]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type IdempotencyKeyGroupByArgs = { where?: Prisma.IdempotencyKeyWhereInput orderBy?: Prisma.IdempotencyKeyOrderByWithAggregationInput | Prisma.IdempotencyKeyOrderByWithAggregationInput[] by: Prisma.IdempotencyKeyScalarFieldEnum[] | Prisma.IdempotencyKeyScalarFieldEnum having?: Prisma.IdempotencyKeyScalarWhereWithAggregatesInput take?: number skip?: number _count?: IdempotencyKeyCountAggregateInputType | true _avg?: IdempotencyKeyAvgAggregateInputType _sum?: IdempotencyKeySumAggregateInputType _min?: IdempotencyKeyMinAggregateInputType _max?: IdempotencyKeyMaxAggregateInputType } export type IdempotencyKeyGroupByOutputType = { id: string createdAt: Date updatedAt: Date expiresAt: Date | null scope: string key: string requestHash: string responseStatus: number responseBody: runtime.JsonValue | null responseHeaders: runtime.JsonValue | null _count: IdempotencyKeyCountAggregateOutputType | null _avg: IdempotencyKeyAvgAggregateOutputType | null _sum: IdempotencyKeySumAggregateOutputType | null _min: IdempotencyKeyMinAggregateOutputType | null _max: IdempotencyKeyMaxAggregateOutputType | null } export type GetIdempotencyKeyGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof IdempotencyKeyGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type IdempotencyKeyWhereInput = { AND?: Prisma.IdempotencyKeyWhereInput | Prisma.IdempotencyKeyWhereInput[] OR?: Prisma.IdempotencyKeyWhereInput[] NOT?: Prisma.IdempotencyKeyWhereInput | Prisma.IdempotencyKeyWhereInput[] id?: Prisma.StringFilter<"IdempotencyKey"> | string createdAt?: Prisma.DateTimeFilter<"IdempotencyKey"> | Date | string updatedAt?: Prisma.DateTimeFilter<"IdempotencyKey"> | Date | string expiresAt?: Prisma.DateTimeNullableFilter<"IdempotencyKey"> | Date | string | null scope?: Prisma.StringFilter<"IdempotencyKey"> | string key?: Prisma.StringFilter<"IdempotencyKey"> | string requestHash?: Prisma.StringFilter<"IdempotencyKey"> | string responseStatus?: Prisma.IntFilter<"IdempotencyKey"> | number responseBody?: Prisma.JsonNullableFilter<"IdempotencyKey"> responseHeaders?: Prisma.JsonNullableFilter<"IdempotencyKey"> } export type IdempotencyKeyOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder scope?: Prisma.SortOrder key?: Prisma.SortOrder requestHash?: Prisma.SortOrder responseStatus?: Prisma.SortOrder responseBody?: Prisma.SortOrderInput | Prisma.SortOrder responseHeaders?: Prisma.SortOrderInput | Prisma.SortOrder } export type IdempotencyKeyWhereUniqueInput = Prisma.AtLeast<{ id?: string idempotency_key_scope_key?: Prisma.IdempotencyKeyIdempotency_key_scope_keyCompoundUniqueInput AND?: Prisma.IdempotencyKeyWhereInput | Prisma.IdempotencyKeyWhereInput[] OR?: Prisma.IdempotencyKeyWhereInput[] NOT?: Prisma.IdempotencyKeyWhereInput | Prisma.IdempotencyKeyWhereInput[] createdAt?: Prisma.DateTimeFilter<"IdempotencyKey"> | Date | string updatedAt?: Prisma.DateTimeFilter<"IdempotencyKey"> | Date | string expiresAt?: Prisma.DateTimeNullableFilter<"IdempotencyKey"> | Date | string | null scope?: Prisma.StringFilter<"IdempotencyKey"> | string key?: Prisma.StringFilter<"IdempotencyKey"> | string requestHash?: Prisma.StringFilter<"IdempotencyKey"> | string responseStatus?: Prisma.IntFilter<"IdempotencyKey"> | number responseBody?: Prisma.JsonNullableFilter<"IdempotencyKey"> responseHeaders?: Prisma.JsonNullableFilter<"IdempotencyKey"> }, "id" | "idempotency_key_scope_key"> export type IdempotencyKeyOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder scope?: Prisma.SortOrder key?: Prisma.SortOrder requestHash?: Prisma.SortOrder responseStatus?: Prisma.SortOrder responseBody?: Prisma.SortOrderInput | Prisma.SortOrder responseHeaders?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.IdempotencyKeyCountOrderByAggregateInput _avg?: Prisma.IdempotencyKeyAvgOrderByAggregateInput _max?: Prisma.IdempotencyKeyMaxOrderByAggregateInput _min?: Prisma.IdempotencyKeyMinOrderByAggregateInput _sum?: Prisma.IdempotencyKeySumOrderByAggregateInput } export type IdempotencyKeyScalarWhereWithAggregatesInput = { AND?: Prisma.IdempotencyKeyScalarWhereWithAggregatesInput | Prisma.IdempotencyKeyScalarWhereWithAggregatesInput[] OR?: Prisma.IdempotencyKeyScalarWhereWithAggregatesInput[] NOT?: Prisma.IdempotencyKeyScalarWhereWithAggregatesInput | Prisma.IdempotencyKeyScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"IdempotencyKey"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"IdempotencyKey"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"IdempotencyKey"> | Date | string expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"IdempotencyKey"> | Date | string | null scope?: Prisma.StringWithAggregatesFilter<"IdempotencyKey"> | string key?: Prisma.StringWithAggregatesFilter<"IdempotencyKey"> | string requestHash?: Prisma.StringWithAggregatesFilter<"IdempotencyKey"> | string responseStatus?: Prisma.IntWithAggregatesFilter<"IdempotencyKey"> | number responseBody?: Prisma.JsonNullableWithAggregatesFilter<"IdempotencyKey"> responseHeaders?: Prisma.JsonNullableWithAggregatesFilter<"IdempotencyKey"> } export type IdempotencyKeyCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string expiresAt?: Date | string | null scope: string key: string requestHash: string responseStatus: number responseBody?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue responseHeaders?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type IdempotencyKeyUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string expiresAt?: Date | string | null scope: string key: string requestHash: string responseStatus: number responseBody?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue responseHeaders?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type IdempotencyKeyUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string requestHash?: Prisma.StringFieldUpdateOperationsInput | string responseStatus?: Prisma.IntFieldUpdateOperationsInput | number responseBody?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue responseHeaders?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type IdempotencyKeyUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string requestHash?: Prisma.StringFieldUpdateOperationsInput | string responseStatus?: Prisma.IntFieldUpdateOperationsInput | number responseBody?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue responseHeaders?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type IdempotencyKeyCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string expiresAt?: Date | string | null scope: string key: string requestHash: string responseStatus: number responseBody?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue responseHeaders?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type IdempotencyKeyUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string requestHash?: Prisma.StringFieldUpdateOperationsInput | string responseStatus?: Prisma.IntFieldUpdateOperationsInput | number responseBody?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue responseHeaders?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type IdempotencyKeyUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string requestHash?: Prisma.StringFieldUpdateOperationsInput | string responseStatus?: Prisma.IntFieldUpdateOperationsInput | number responseBody?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue responseHeaders?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue } export type IdempotencyKeyIdempotency_key_scope_keyCompoundUniqueInput = { scope: string key: string } export type IdempotencyKeyCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrder scope?: Prisma.SortOrder key?: Prisma.SortOrder requestHash?: Prisma.SortOrder responseStatus?: Prisma.SortOrder responseBody?: Prisma.SortOrder responseHeaders?: Prisma.SortOrder } export type IdempotencyKeyAvgOrderByAggregateInput = { responseStatus?: Prisma.SortOrder } export type IdempotencyKeyMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrder scope?: Prisma.SortOrder key?: Prisma.SortOrder requestHash?: Prisma.SortOrder responseStatus?: Prisma.SortOrder } export type IdempotencyKeyMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrder scope?: Prisma.SortOrder key?: Prisma.SortOrder requestHash?: Prisma.SortOrder responseStatus?: Prisma.SortOrder } export type IdempotencyKeySumOrderByAggregateInput = { responseStatus?: Prisma.SortOrder } export type IdempotencyKeySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean expiresAt?: boolean scope?: boolean key?: boolean requestHash?: boolean responseStatus?: boolean responseBody?: boolean responseHeaders?: boolean }, ExtArgs["result"]["idempotencyKey"]> export type IdempotencyKeySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean expiresAt?: boolean scope?: boolean key?: boolean requestHash?: boolean responseStatus?: boolean responseBody?: boolean responseHeaders?: boolean }, ExtArgs["result"]["idempotencyKey"]> export type IdempotencyKeySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean expiresAt?: boolean scope?: boolean key?: boolean requestHash?: boolean responseStatus?: boolean responseBody?: boolean responseHeaders?: boolean }, ExtArgs["result"]["idempotencyKey"]> export type IdempotencyKeySelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean expiresAt?: boolean scope?: boolean key?: boolean requestHash?: boolean responseStatus?: boolean responseBody?: boolean responseHeaders?: boolean } export type IdempotencyKeyOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "expiresAt" | "scope" | "key" | "requestHash" | "responseStatus" | "responseBody" | "responseHeaders", ExtArgs["result"]["idempotencyKey"]> export type $IdempotencyKeyPayload = { name: "IdempotencyKey" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date expiresAt: Date | null scope: string key: string requestHash: string responseStatus: number responseBody: runtime.JsonValue | null responseHeaders: runtime.JsonValue | null }, ExtArgs["result"]["idempotencyKey"]> composites: {} } export type IdempotencyKeyGetPayload = runtime.Types.Result.GetResult export type IdempotencyKeyCountArgs = Omit & { select?: IdempotencyKeyCountAggregateInputType | true } export interface IdempotencyKeyDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['IdempotencyKey'], meta: { name: 'IdempotencyKey' } } /** * Find zero or one IdempotencyKey that matches the filter. * @param {IdempotencyKeyFindUniqueArgs} args - Arguments to find a IdempotencyKey * @example * // Get one IdempotencyKey * const idempotencyKey = await prisma.idempotencyKey.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__IdempotencyKeyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one IdempotencyKey that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {IdempotencyKeyFindUniqueOrThrowArgs} args - Arguments to find a IdempotencyKey * @example * // Get one IdempotencyKey * const idempotencyKey = await prisma.idempotencyKey.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__IdempotencyKeyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first IdempotencyKey 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 {IdempotencyKeyFindFirstArgs} args - Arguments to find a IdempotencyKey * @example * // Get one IdempotencyKey * const idempotencyKey = await prisma.idempotencyKey.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__IdempotencyKeyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first IdempotencyKey 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 {IdempotencyKeyFindFirstOrThrowArgs} args - Arguments to find a IdempotencyKey * @example * // Get one IdempotencyKey * const idempotencyKey = await prisma.idempotencyKey.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__IdempotencyKeyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more IdempotencyKeys 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 {IdempotencyKeyFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all IdempotencyKeys * const idempotencyKeys = await prisma.idempotencyKey.findMany() * * // Get first 10 IdempotencyKeys * const idempotencyKeys = await prisma.idempotencyKey.findMany({ take: 10 }) * * // Only select the `id` * const idempotencyKeyWithIdOnly = await prisma.idempotencyKey.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a IdempotencyKey. * @param {IdempotencyKeyCreateArgs} args - Arguments to create a IdempotencyKey. * @example * // Create one IdempotencyKey * const IdempotencyKey = await prisma.idempotencyKey.create({ * data: { * // ... data to create a IdempotencyKey * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__IdempotencyKeyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many IdempotencyKeys. * @param {IdempotencyKeyCreateManyArgs} args - Arguments to create many IdempotencyKeys. * @example * // Create many IdempotencyKeys * const idempotencyKey = await prisma.idempotencyKey.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many IdempotencyKeys and returns the data saved in the database. * @param {IdempotencyKeyCreateManyAndReturnArgs} args - Arguments to create many IdempotencyKeys. * @example * // Create many IdempotencyKeys * const idempotencyKey = await prisma.idempotencyKey.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many IdempotencyKeys and only return the `id` * const idempotencyKeyWithIdOnly = await prisma.idempotencyKey.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 IdempotencyKey. * @param {IdempotencyKeyDeleteArgs} args - Arguments to delete one IdempotencyKey. * @example * // Delete one IdempotencyKey * const IdempotencyKey = await prisma.idempotencyKey.delete({ * where: { * // ... filter to delete one IdempotencyKey * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__IdempotencyKeyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one IdempotencyKey. * @param {IdempotencyKeyUpdateArgs} args - Arguments to update one IdempotencyKey. * @example * // Update one IdempotencyKey * const idempotencyKey = await prisma.idempotencyKey.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__IdempotencyKeyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more IdempotencyKeys. * @param {IdempotencyKeyDeleteManyArgs} args - Arguments to filter IdempotencyKeys to delete. * @example * // Delete a few IdempotencyKeys * const { count } = await prisma.idempotencyKey.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more IdempotencyKeys. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IdempotencyKeyUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many IdempotencyKeys * const idempotencyKey = await prisma.idempotencyKey.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more IdempotencyKeys and returns the data updated in the database. * @param {IdempotencyKeyUpdateManyAndReturnArgs} args - Arguments to update many IdempotencyKeys. * @example * // Update many IdempotencyKeys * const idempotencyKey = await prisma.idempotencyKey.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more IdempotencyKeys and only return the `id` * const idempotencyKeyWithIdOnly = await prisma.idempotencyKey.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 IdempotencyKey. * @param {IdempotencyKeyUpsertArgs} args - Arguments to update or create a IdempotencyKey. * @example * // Update or create a IdempotencyKey * const idempotencyKey = await prisma.idempotencyKey.upsert({ * create: { * // ... data to create a IdempotencyKey * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the IdempotencyKey we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__IdempotencyKeyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of IdempotencyKeys. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IdempotencyKeyCountArgs} args - Arguments to filter IdempotencyKeys to count. * @example * // Count the number of IdempotencyKeys * const count = await prisma.idempotencyKey.count({ * where: { * // ... the filter for the IdempotencyKeys 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 IdempotencyKey. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IdempotencyKeyAggregateArgs} 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 IdempotencyKey. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IdempotencyKeyGroupByArgs} 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 IdempotencyKeyGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: IdempotencyKeyGroupByArgs['orderBy'] } : { orderBy?: IdempotencyKeyGroupByArgs['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 ? GetIdempotencyKeyGroupByPayload : Prisma.PrismaPromise /** * Fields of the IdempotencyKey model */ readonly fields: IdempotencyKeyFieldRefs; } /** * The delegate class that acts as a "Promise-like" for IdempotencyKey. * 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__IdempotencyKeyClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the IdempotencyKey model */ export interface IdempotencyKeyFieldRefs { readonly id: Prisma.FieldRef<"IdempotencyKey", 'String'> readonly createdAt: Prisma.FieldRef<"IdempotencyKey", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"IdempotencyKey", 'DateTime'> readonly expiresAt: Prisma.FieldRef<"IdempotencyKey", 'DateTime'> readonly scope: Prisma.FieldRef<"IdempotencyKey", 'String'> readonly key: Prisma.FieldRef<"IdempotencyKey", 'String'> readonly requestHash: Prisma.FieldRef<"IdempotencyKey", 'String'> readonly responseStatus: Prisma.FieldRef<"IdempotencyKey", 'Int'> readonly responseBody: Prisma.FieldRef<"IdempotencyKey", 'Json'> readonly responseHeaders: Prisma.FieldRef<"IdempotencyKey", 'Json'> } // Custom InputTypes /** * IdempotencyKey findUnique */ export type IdempotencyKeyFindUniqueArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * Filter, which IdempotencyKey to fetch. */ where: Prisma.IdempotencyKeyWhereUniqueInput } /** * IdempotencyKey findUniqueOrThrow */ export type IdempotencyKeyFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * Filter, which IdempotencyKey to fetch. */ where: Prisma.IdempotencyKeyWhereUniqueInput } /** * IdempotencyKey findFirst */ export type IdempotencyKeyFindFirstArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * Filter, which IdempotencyKey to fetch. */ where?: Prisma.IdempotencyKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IdempotencyKeys to fetch. */ orderBy?: Prisma.IdempotencyKeyOrderByWithRelationInput | Prisma.IdempotencyKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for IdempotencyKeys. */ cursor?: Prisma.IdempotencyKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IdempotencyKeys 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` IdempotencyKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IdempotencyKeys. */ distinct?: Prisma.IdempotencyKeyScalarFieldEnum | Prisma.IdempotencyKeyScalarFieldEnum[] } /** * IdempotencyKey findFirstOrThrow */ export type IdempotencyKeyFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * Filter, which IdempotencyKey to fetch. */ where?: Prisma.IdempotencyKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IdempotencyKeys to fetch. */ orderBy?: Prisma.IdempotencyKeyOrderByWithRelationInput | Prisma.IdempotencyKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for IdempotencyKeys. */ cursor?: Prisma.IdempotencyKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IdempotencyKeys 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` IdempotencyKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IdempotencyKeys. */ distinct?: Prisma.IdempotencyKeyScalarFieldEnum | Prisma.IdempotencyKeyScalarFieldEnum[] } /** * IdempotencyKey findMany */ export type IdempotencyKeyFindManyArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * Filter, which IdempotencyKeys to fetch. */ where?: Prisma.IdempotencyKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IdempotencyKeys to fetch. */ orderBy?: Prisma.IdempotencyKeyOrderByWithRelationInput | Prisma.IdempotencyKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing IdempotencyKeys. */ cursor?: Prisma.IdempotencyKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IdempotencyKeys 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` IdempotencyKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IdempotencyKeys. */ distinct?: Prisma.IdempotencyKeyScalarFieldEnum | Prisma.IdempotencyKeyScalarFieldEnum[] } /** * IdempotencyKey create */ export type IdempotencyKeyCreateArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * The data needed to create a IdempotencyKey. */ data: Prisma.XOR } /** * IdempotencyKey createMany */ export type IdempotencyKeyCreateManyArgs = { /** * The data used to create many IdempotencyKeys. */ data: Prisma.IdempotencyKeyCreateManyInput | Prisma.IdempotencyKeyCreateManyInput[] skipDuplicates?: boolean } /** * IdempotencyKey createManyAndReturn */ export type IdempotencyKeyCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelectCreateManyAndReturn | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * The data used to create many IdempotencyKeys. */ data: Prisma.IdempotencyKeyCreateManyInput | Prisma.IdempotencyKeyCreateManyInput[] skipDuplicates?: boolean } /** * IdempotencyKey update */ export type IdempotencyKeyUpdateArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * The data needed to update a IdempotencyKey. */ data: Prisma.XOR /** * Choose, which IdempotencyKey to update. */ where: Prisma.IdempotencyKeyWhereUniqueInput } /** * IdempotencyKey updateMany */ export type IdempotencyKeyUpdateManyArgs = { /** * The data used to update IdempotencyKeys. */ data: Prisma.XOR /** * Filter which IdempotencyKeys to update */ where?: Prisma.IdempotencyKeyWhereInput /** * Limit how many IdempotencyKeys to update. */ limit?: number } /** * IdempotencyKey updateManyAndReturn */ export type IdempotencyKeyUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelectUpdateManyAndReturn | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * The data used to update IdempotencyKeys. */ data: Prisma.XOR /** * Filter which IdempotencyKeys to update */ where?: Prisma.IdempotencyKeyWhereInput /** * Limit how many IdempotencyKeys to update. */ limit?: number } /** * IdempotencyKey upsert */ export type IdempotencyKeyUpsertArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * The filter to search for the IdempotencyKey to update in case it exists. */ where: Prisma.IdempotencyKeyWhereUniqueInput /** * In case the IdempotencyKey found by the `where` argument doesn't exist, create a new IdempotencyKey with this data. */ create: Prisma.XOR /** * In case the IdempotencyKey was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * IdempotencyKey delete */ export type IdempotencyKeyDeleteArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null /** * Filter which IdempotencyKey to delete. */ where: Prisma.IdempotencyKeyWhereUniqueInput } /** * IdempotencyKey deleteMany */ export type IdempotencyKeyDeleteManyArgs = { /** * Filter which IdempotencyKeys to delete */ where?: Prisma.IdempotencyKeyWhereInput /** * Limit how many IdempotencyKeys to delete. */ limit?: number } /** * IdempotencyKey without action */ export type IdempotencyKeyDefaultArgs = { /** * Select specific fields to fetch from the IdempotencyKey */ select?: Prisma.IdempotencyKeySelect | null /** * Omit specific fields from the IdempotencyKey */ omit?: Prisma.IdempotencyKeyOmit | null }