/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ApiKey` 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 ApiKey * */ export type ApiKeyModel = runtime.Types.Result.DefaultSelection export type AggregateApiKey = { _count: ApiKeyCountAggregateOutputType | null _avg: ApiKeyAvgAggregateOutputType | null _sum: ApiKeySumAggregateOutputType | null _min: ApiKeyMinAggregateOutputType | null _max: ApiKeyMaxAggregateOutputType | null } export type ApiKeyAvgAggregateOutputType = { keyVersion: number | null } export type ApiKeySumAggregateOutputType = { keyVersion: number | null } export type ApiKeyMinAggregateOutputType = { id: string | null createdAt: Date | null createdByUserId: string | null tenantId: string | null key: string | null keyHash: string | null keyPrefix: string | null keyLastFour: string | null hashedAt: Date | null keyVersion: number | null alias: string | null expires: Date | null active: boolean | null } export type ApiKeyMaxAggregateOutputType = { id: string | null createdAt: Date | null createdByUserId: string | null tenantId: string | null key: string | null keyHash: string | null keyPrefix: string | null keyLastFour: string | null hashedAt: Date | null keyVersion: number | null alias: string | null expires: Date | null active: boolean | null } export type ApiKeyCountAggregateOutputType = { id: number createdAt: number createdByUserId: number tenantId: number key: number keyHash: number keyPrefix: number keyLastFour: number hashedAt: number keyVersion: number alias: number expires: number active: number _all: number } export type ApiKeyAvgAggregateInputType = { keyVersion?: true } export type ApiKeySumAggregateInputType = { keyVersion?: true } export type ApiKeyMinAggregateInputType = { id?: true createdAt?: true createdByUserId?: true tenantId?: true key?: true keyHash?: true keyPrefix?: true keyLastFour?: true hashedAt?: true keyVersion?: true alias?: true expires?: true active?: true } export type ApiKeyMaxAggregateInputType = { id?: true createdAt?: true createdByUserId?: true tenantId?: true key?: true keyHash?: true keyPrefix?: true keyLastFour?: true hashedAt?: true keyVersion?: true alias?: true expires?: true active?: true } export type ApiKeyCountAggregateInputType = { id?: true createdAt?: true createdByUserId?: true tenantId?: true key?: true keyHash?: true keyPrefix?: true keyLastFour?: true hashedAt?: true keyVersion?: true alias?: true expires?: true active?: true _all?: true } export type ApiKeyAggregateArgs = { /** * Filter which ApiKey to aggregate. */ where?: Prisma.ApiKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ApiKeys to fetch. */ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ApiKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ApiKeys 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` ApiKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ApiKeys **/ _count?: true | ApiKeyCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ApiKeyAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ApiKeySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ApiKeyMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ApiKeyMaxAggregateInputType } export type GetApiKeyAggregateType = { [P in keyof T & keyof AggregateApiKey]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ApiKeyGroupByArgs = { where?: Prisma.ApiKeyWhereInput orderBy?: Prisma.ApiKeyOrderByWithAggregationInput | Prisma.ApiKeyOrderByWithAggregationInput[] by: Prisma.ApiKeyScalarFieldEnum[] | Prisma.ApiKeyScalarFieldEnum having?: Prisma.ApiKeyScalarWhereWithAggregatesInput take?: number skip?: number _count?: ApiKeyCountAggregateInputType | true _avg?: ApiKeyAvgAggregateInputType _sum?: ApiKeySumAggregateInputType _min?: ApiKeyMinAggregateInputType _max?: ApiKeyMaxAggregateInputType } export type ApiKeyGroupByOutputType = { id: string createdAt: Date createdByUserId: string tenantId: string key: string keyHash: string | null keyPrefix: string | null keyLastFour: string | null hashedAt: Date | null keyVersion: number alias: string expires: Date | null active: boolean _count: ApiKeyCountAggregateOutputType | null _avg: ApiKeyAvgAggregateOutputType | null _sum: ApiKeySumAggregateOutputType | null _min: ApiKeyMinAggregateOutputType | null _max: ApiKeyMaxAggregateOutputType | null } export type GetApiKeyGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ApiKeyGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ApiKeyWhereInput = { AND?: Prisma.ApiKeyWhereInput | Prisma.ApiKeyWhereInput[] OR?: Prisma.ApiKeyWhereInput[] NOT?: Prisma.ApiKeyWhereInput | Prisma.ApiKeyWhereInput[] id?: Prisma.StringFilter<"ApiKey"> | string createdAt?: Prisma.DateTimeFilter<"ApiKey"> | Date | string createdByUserId?: Prisma.StringFilter<"ApiKey"> | string tenantId?: Prisma.StringFilter<"ApiKey"> | string key?: Prisma.StringFilter<"ApiKey"> | string keyHash?: Prisma.StringNullableFilter<"ApiKey"> | string | null keyPrefix?: Prisma.StringNullableFilter<"ApiKey"> | string | null keyLastFour?: Prisma.StringNullableFilter<"ApiKey"> | string | null hashedAt?: Prisma.DateTimeNullableFilter<"ApiKey"> | Date | string | null keyVersion?: Prisma.IntFilter<"ApiKey"> | number alias?: Prisma.StringFilter<"ApiKey"> | string expires?: Prisma.DateTimeNullableFilter<"ApiKey"> | Date | string | null active?: Prisma.BoolFilter<"ApiKey"> | boolean createdByUser?: Prisma.XOR tenant?: Prisma.XOR entities?: Prisma.ApiKeyEntityListRelationFilter apiKeyLogs?: Prisma.ApiKeyLogListRelationFilter logs?: Prisma.LogListRelationFilter createdRows?: Prisma.RowListRelationFilter tenantIpAddresses?: Prisma.TenantIpAddressListRelationFilter } export type ApiKeyOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder tenantId?: Prisma.SortOrder key?: Prisma.SortOrder keyHash?: Prisma.SortOrderInput | Prisma.SortOrder keyPrefix?: Prisma.SortOrderInput | Prisma.SortOrder keyLastFour?: Prisma.SortOrderInput | Prisma.SortOrder hashedAt?: Prisma.SortOrderInput | Prisma.SortOrder keyVersion?: Prisma.SortOrder alias?: Prisma.SortOrder expires?: Prisma.SortOrderInput | Prisma.SortOrder active?: Prisma.SortOrder createdByUser?: Prisma.UserOrderByWithRelationInput tenant?: Prisma.TenantOrderByWithRelationInput entities?: Prisma.ApiKeyEntityOrderByRelationAggregateInput apiKeyLogs?: Prisma.ApiKeyLogOrderByRelationAggregateInput logs?: Prisma.LogOrderByRelationAggregateInput createdRows?: Prisma.RowOrderByRelationAggregateInput tenantIpAddresses?: Prisma.TenantIpAddressOrderByRelationAggregateInput } export type ApiKeyWhereUniqueInput = Prisma.AtLeast<{ id?: string keyHash?: string tenantId_alias?: Prisma.ApiKeyTenantIdAliasCompoundUniqueInput tenantId_key?: Prisma.ApiKeyTenantIdKeyCompoundUniqueInput AND?: Prisma.ApiKeyWhereInput | Prisma.ApiKeyWhereInput[] OR?: Prisma.ApiKeyWhereInput[] NOT?: Prisma.ApiKeyWhereInput | Prisma.ApiKeyWhereInput[] createdAt?: Prisma.DateTimeFilter<"ApiKey"> | Date | string createdByUserId?: Prisma.StringFilter<"ApiKey"> | string tenantId?: Prisma.StringFilter<"ApiKey"> | string key?: Prisma.StringFilter<"ApiKey"> | string keyPrefix?: Prisma.StringNullableFilter<"ApiKey"> | string | null keyLastFour?: Prisma.StringNullableFilter<"ApiKey"> | string | null hashedAt?: Prisma.DateTimeNullableFilter<"ApiKey"> | Date | string | null keyVersion?: Prisma.IntFilter<"ApiKey"> | number alias?: Prisma.StringFilter<"ApiKey"> | string expires?: Prisma.DateTimeNullableFilter<"ApiKey"> | Date | string | null active?: Prisma.BoolFilter<"ApiKey"> | boolean createdByUser?: Prisma.XOR tenant?: Prisma.XOR entities?: Prisma.ApiKeyEntityListRelationFilter apiKeyLogs?: Prisma.ApiKeyLogListRelationFilter logs?: Prisma.LogListRelationFilter createdRows?: Prisma.RowListRelationFilter tenantIpAddresses?: Prisma.TenantIpAddressListRelationFilter }, "id" | "tenantId_alias" | "tenantId_key" | "api_key_hash_key"> export type ApiKeyOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder tenantId?: Prisma.SortOrder key?: Prisma.SortOrder keyHash?: Prisma.SortOrderInput | Prisma.SortOrder keyPrefix?: Prisma.SortOrderInput | Prisma.SortOrder keyLastFour?: Prisma.SortOrderInput | Prisma.SortOrder hashedAt?: Prisma.SortOrderInput | Prisma.SortOrder keyVersion?: Prisma.SortOrder alias?: Prisma.SortOrder expires?: Prisma.SortOrderInput | Prisma.SortOrder active?: Prisma.SortOrder _count?: Prisma.ApiKeyCountOrderByAggregateInput _avg?: Prisma.ApiKeyAvgOrderByAggregateInput _max?: Prisma.ApiKeyMaxOrderByAggregateInput _min?: Prisma.ApiKeyMinOrderByAggregateInput _sum?: Prisma.ApiKeySumOrderByAggregateInput } export type ApiKeyScalarWhereWithAggregatesInput = { AND?: Prisma.ApiKeyScalarWhereWithAggregatesInput | Prisma.ApiKeyScalarWhereWithAggregatesInput[] OR?: Prisma.ApiKeyScalarWhereWithAggregatesInput[] NOT?: Prisma.ApiKeyScalarWhereWithAggregatesInput | Prisma.ApiKeyScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"ApiKey"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"ApiKey"> | Date | string createdByUserId?: Prisma.StringWithAggregatesFilter<"ApiKey"> | string tenantId?: Prisma.StringWithAggregatesFilter<"ApiKey"> | string key?: Prisma.StringWithAggregatesFilter<"ApiKey"> | string keyHash?: Prisma.StringNullableWithAggregatesFilter<"ApiKey"> | string | null keyPrefix?: Prisma.StringNullableWithAggregatesFilter<"ApiKey"> | string | null keyLastFour?: Prisma.StringNullableWithAggregatesFilter<"ApiKey"> | string | null hashedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ApiKey"> | Date | string | null keyVersion?: Prisma.IntWithAggregatesFilter<"ApiKey"> | number alias?: Prisma.StringWithAggregatesFilter<"ApiKey"> | string expires?: Prisma.DateTimeNullableWithAggregatesFilter<"ApiKey"> | Date | string | null active?: Prisma.BoolWithAggregatesFilter<"ApiKey"> | boolean } export type ApiKeyCreateInput = { id?: string createdAt?: Date | string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean createdByUser: Prisma.UserCreateNestedOneWithoutCreatedApiKeysInput tenant: Prisma.TenantCreateNestedOneWithoutApiKeysInput entities?: Prisma.ApiKeyEntityCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressCreateNestedManyWithoutApiKeyInput } export type ApiKeyUncheckedCreateInput = { id?: string createdAt?: Date | string createdByUserId: string tenantId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean entities?: Prisma.ApiKeyEntityUncheckedCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogUncheckedCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowUncheckedCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedCreateNestedManyWithoutApiKeyInput } export type ApiKeyUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedApiKeysNestedInput tenant?: Prisma.TenantUpdateOneRequiredWithoutApiKeysNestedInput entities?: Prisma.ApiKeyEntityUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUpdateManyWithoutApiKeyNestedInput } export type ApiKeyUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean entities?: Prisma.ApiKeyEntityUncheckedUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUncheckedUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUncheckedUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedUpdateManyWithoutApiKeyNestedInput } export type ApiKeyCreateManyInput = { id?: string createdAt?: Date | string createdByUserId: string tenantId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean } export type ApiKeyUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type ApiKeyUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type ApiKeyListRelationFilter = { every?: Prisma.ApiKeyWhereInput some?: Prisma.ApiKeyWhereInput none?: Prisma.ApiKeyWhereInput } export type ApiKeyOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type ApiKeyNullableScalarRelationFilter = { is?: Prisma.ApiKeyWhereInput | null isNot?: Prisma.ApiKeyWhereInput | null } export type ApiKeyTenantIdAliasCompoundUniqueInput = { tenantId: string alias: string } export type ApiKeyTenantIdKeyCompoundUniqueInput = { tenantId: string key: string } export type ApiKeyCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder tenantId?: Prisma.SortOrder key?: Prisma.SortOrder keyHash?: Prisma.SortOrder keyPrefix?: Prisma.SortOrder keyLastFour?: Prisma.SortOrder hashedAt?: Prisma.SortOrder keyVersion?: Prisma.SortOrder alias?: Prisma.SortOrder expires?: Prisma.SortOrder active?: Prisma.SortOrder } export type ApiKeyAvgOrderByAggregateInput = { keyVersion?: Prisma.SortOrder } export type ApiKeyMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder tenantId?: Prisma.SortOrder key?: Prisma.SortOrder keyHash?: Prisma.SortOrder keyPrefix?: Prisma.SortOrder keyLastFour?: Prisma.SortOrder hashedAt?: Prisma.SortOrder keyVersion?: Prisma.SortOrder alias?: Prisma.SortOrder expires?: Prisma.SortOrder active?: Prisma.SortOrder } export type ApiKeyMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder tenantId?: Prisma.SortOrder key?: Prisma.SortOrder keyHash?: Prisma.SortOrder keyPrefix?: Prisma.SortOrder keyLastFour?: Prisma.SortOrder hashedAt?: Prisma.SortOrder keyVersion?: Prisma.SortOrder alias?: Prisma.SortOrder expires?: Prisma.SortOrder active?: Prisma.SortOrder } export type ApiKeySumOrderByAggregateInput = { keyVersion?: Prisma.SortOrder } export type ApiKeyScalarRelationFilter = { is?: Prisma.ApiKeyWhereInput isNot?: Prisma.ApiKeyWhereInput } export type ApiKeyCreateNestedManyWithoutCreatedByUserInput = { create?: Prisma.XOR | Prisma.ApiKeyCreateWithoutCreatedByUserInput[] | Prisma.ApiKeyUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutCreatedByUserInput | Prisma.ApiKeyCreateOrConnectWithoutCreatedByUserInput[] createMany?: Prisma.ApiKeyCreateManyCreatedByUserInputEnvelope connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] } export type ApiKeyUncheckedCreateNestedManyWithoutCreatedByUserInput = { create?: Prisma.XOR | Prisma.ApiKeyCreateWithoutCreatedByUserInput[] | Prisma.ApiKeyUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutCreatedByUserInput | Prisma.ApiKeyCreateOrConnectWithoutCreatedByUserInput[] createMany?: Prisma.ApiKeyCreateManyCreatedByUserInputEnvelope connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] } export type ApiKeyUpdateManyWithoutCreatedByUserNestedInput = { create?: Prisma.XOR | Prisma.ApiKeyCreateWithoutCreatedByUserInput[] | Prisma.ApiKeyUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutCreatedByUserInput | Prisma.ApiKeyCreateOrConnectWithoutCreatedByUserInput[] upsert?: Prisma.ApiKeyUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.ApiKeyUpsertWithWhereUniqueWithoutCreatedByUserInput[] createMany?: Prisma.ApiKeyCreateManyCreatedByUserInputEnvelope set?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] disconnect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] delete?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] update?: Prisma.ApiKeyUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.ApiKeyUpdateWithWhereUniqueWithoutCreatedByUserInput[] updateMany?: Prisma.ApiKeyUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.ApiKeyUpdateManyWithWhereWithoutCreatedByUserInput[] deleteMany?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[] } export type ApiKeyUncheckedUpdateManyWithoutCreatedByUserNestedInput = { create?: Prisma.XOR | Prisma.ApiKeyCreateWithoutCreatedByUserInput[] | Prisma.ApiKeyUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutCreatedByUserInput | Prisma.ApiKeyCreateOrConnectWithoutCreatedByUserInput[] upsert?: Prisma.ApiKeyUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.ApiKeyUpsertWithWhereUniqueWithoutCreatedByUserInput[] createMany?: Prisma.ApiKeyCreateManyCreatedByUserInputEnvelope set?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] disconnect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] delete?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] update?: Prisma.ApiKeyUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.ApiKeyUpdateWithWhereUniqueWithoutCreatedByUserInput[] updateMany?: Prisma.ApiKeyUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.ApiKeyUpdateManyWithWhereWithoutCreatedByUserInput[] deleteMany?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[] } export type ApiKeyCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.ApiKeyCreateWithoutTenantInput[] | Prisma.ApiKeyUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutTenantInput | Prisma.ApiKeyCreateOrConnectWithoutTenantInput[] createMany?: Prisma.ApiKeyCreateManyTenantInputEnvelope connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] } export type ApiKeyUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.ApiKeyCreateWithoutTenantInput[] | Prisma.ApiKeyUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutTenantInput | Prisma.ApiKeyCreateOrConnectWithoutTenantInput[] createMany?: Prisma.ApiKeyCreateManyTenantInputEnvelope connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] } export type ApiKeyUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.ApiKeyCreateWithoutTenantInput[] | Prisma.ApiKeyUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutTenantInput | Prisma.ApiKeyCreateOrConnectWithoutTenantInput[] upsert?: Prisma.ApiKeyUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.ApiKeyCreateManyTenantInputEnvelope set?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] disconnect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] delete?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] update?: Prisma.ApiKeyUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.ApiKeyUpdateManyWithWhereWithoutTenantInput | Prisma.ApiKeyUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[] } export type ApiKeyUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.ApiKeyCreateWithoutTenantInput[] | Prisma.ApiKeyUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutTenantInput | Prisma.ApiKeyCreateOrConnectWithoutTenantInput[] upsert?: Prisma.ApiKeyUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.ApiKeyCreateManyTenantInputEnvelope set?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] disconnect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] delete?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[] update?: Prisma.ApiKeyUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.ApiKeyUpdateManyWithWhereWithoutTenantInput | Prisma.ApiKeyUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[] } export type ApiKeyCreateNestedOneWithoutTenantIpAddressesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutTenantIpAddressesInput connect?: Prisma.ApiKeyWhereUniqueInput } export type ApiKeyUpdateOneWithoutTenantIpAddressesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutTenantIpAddressesInput upsert?: Prisma.ApiKeyUpsertWithoutTenantIpAddressesInput disconnect?: Prisma.ApiKeyWhereInput | boolean delete?: Prisma.ApiKeyWhereInput | boolean connect?: Prisma.ApiKeyWhereUniqueInput update?: Prisma.XOR, Prisma.ApiKeyUncheckedUpdateWithoutTenantIpAddressesInput> } export type ApiKeyCreateNestedOneWithoutLogsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutLogsInput connect?: Prisma.ApiKeyWhereUniqueInput } export type ApiKeyUpdateOneWithoutLogsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutLogsInput upsert?: Prisma.ApiKeyUpsertWithoutLogsInput disconnect?: Prisma.ApiKeyWhereInput | boolean delete?: Prisma.ApiKeyWhereInput | boolean connect?: Prisma.ApiKeyWhereUniqueInput update?: Prisma.XOR, Prisma.ApiKeyUncheckedUpdateWithoutLogsInput> } export type ApiKeyCreateNestedOneWithoutApiKeyLogsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutApiKeyLogsInput connect?: Prisma.ApiKeyWhereUniqueInput } export type ApiKeyUpdateOneWithoutApiKeyLogsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutApiKeyLogsInput upsert?: Prisma.ApiKeyUpsertWithoutApiKeyLogsInput disconnect?: Prisma.ApiKeyWhereInput | boolean delete?: Prisma.ApiKeyWhereInput | boolean connect?: Prisma.ApiKeyWhereUniqueInput update?: Prisma.XOR, Prisma.ApiKeyUncheckedUpdateWithoutApiKeyLogsInput> } export type ApiKeyCreateNestedOneWithoutCreatedRowsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutCreatedRowsInput connect?: Prisma.ApiKeyWhereUniqueInput } export type ApiKeyUpdateOneWithoutCreatedRowsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutCreatedRowsInput upsert?: Prisma.ApiKeyUpsertWithoutCreatedRowsInput disconnect?: Prisma.ApiKeyWhereInput | boolean delete?: Prisma.ApiKeyWhereInput | boolean connect?: Prisma.ApiKeyWhereUniqueInput update?: Prisma.XOR, Prisma.ApiKeyUncheckedUpdateWithoutCreatedRowsInput> } export type ApiKeyCreateNestedOneWithoutEntitiesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutEntitiesInput connect?: Prisma.ApiKeyWhereUniqueInput } export type ApiKeyUpdateOneRequiredWithoutEntitiesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutEntitiesInput upsert?: Prisma.ApiKeyUpsertWithoutEntitiesInput connect?: Prisma.ApiKeyWhereUniqueInput update?: Prisma.XOR, Prisma.ApiKeyUncheckedUpdateWithoutEntitiesInput> } export type ApiKeyCreateWithoutCreatedByUserInput = { id?: string createdAt?: Date | string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean tenant: Prisma.TenantCreateNestedOneWithoutApiKeysInput entities?: Prisma.ApiKeyEntityCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressCreateNestedManyWithoutApiKeyInput } export type ApiKeyUncheckedCreateWithoutCreatedByUserInput = { id?: string createdAt?: Date | string tenantId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean entities?: Prisma.ApiKeyEntityUncheckedCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogUncheckedCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowUncheckedCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedCreateNestedManyWithoutApiKeyInput } export type ApiKeyCreateOrConnectWithoutCreatedByUserInput = { where: Prisma.ApiKeyWhereUniqueInput create: Prisma.XOR } export type ApiKeyCreateManyCreatedByUserInputEnvelope = { data: Prisma.ApiKeyCreateManyCreatedByUserInput | Prisma.ApiKeyCreateManyCreatedByUserInput[] skipDuplicates?: boolean } export type ApiKeyUpsertWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.ApiKeyWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ApiKeyUpdateWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.ApiKeyWhereUniqueInput data: Prisma.XOR } export type ApiKeyUpdateManyWithWhereWithoutCreatedByUserInput = { where: Prisma.ApiKeyScalarWhereInput data: Prisma.XOR } export type ApiKeyScalarWhereInput = { AND?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[] OR?: Prisma.ApiKeyScalarWhereInput[] NOT?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[] id?: Prisma.StringFilter<"ApiKey"> | string createdAt?: Prisma.DateTimeFilter<"ApiKey"> | Date | string createdByUserId?: Prisma.StringFilter<"ApiKey"> | string tenantId?: Prisma.StringFilter<"ApiKey"> | string key?: Prisma.StringFilter<"ApiKey"> | string keyHash?: Prisma.StringNullableFilter<"ApiKey"> | string | null keyPrefix?: Prisma.StringNullableFilter<"ApiKey"> | string | null keyLastFour?: Prisma.StringNullableFilter<"ApiKey"> | string | null hashedAt?: Prisma.DateTimeNullableFilter<"ApiKey"> | Date | string | null keyVersion?: Prisma.IntFilter<"ApiKey"> | number alias?: Prisma.StringFilter<"ApiKey"> | string expires?: Prisma.DateTimeNullableFilter<"ApiKey"> | Date | string | null active?: Prisma.BoolFilter<"ApiKey"> | boolean } export type ApiKeyCreateWithoutTenantInput = { id?: string createdAt?: Date | string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean createdByUser: Prisma.UserCreateNestedOneWithoutCreatedApiKeysInput entities?: Prisma.ApiKeyEntityCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressCreateNestedManyWithoutApiKeyInput } export type ApiKeyUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string createdByUserId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean entities?: Prisma.ApiKeyEntityUncheckedCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogUncheckedCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowUncheckedCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedCreateNestedManyWithoutApiKeyInput } export type ApiKeyCreateOrConnectWithoutTenantInput = { where: Prisma.ApiKeyWhereUniqueInput create: Prisma.XOR } export type ApiKeyCreateManyTenantInputEnvelope = { data: Prisma.ApiKeyCreateManyTenantInput | Prisma.ApiKeyCreateManyTenantInput[] skipDuplicates?: boolean } export type ApiKeyUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.ApiKeyWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ApiKeyUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.ApiKeyWhereUniqueInput data: Prisma.XOR } export type ApiKeyUpdateManyWithWhereWithoutTenantInput = { where: Prisma.ApiKeyScalarWhereInput data: Prisma.XOR } export type ApiKeyCreateWithoutTenantIpAddressesInput = { id?: string createdAt?: Date | string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean createdByUser: Prisma.UserCreateNestedOneWithoutCreatedApiKeysInput tenant: Prisma.TenantCreateNestedOneWithoutApiKeysInput entities?: Prisma.ApiKeyEntityCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowCreateNestedManyWithoutCreatedByApiKeyInput } export type ApiKeyUncheckedCreateWithoutTenantIpAddressesInput = { id?: string createdAt?: Date | string createdByUserId: string tenantId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean entities?: Prisma.ApiKeyEntityUncheckedCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogUncheckedCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowUncheckedCreateNestedManyWithoutCreatedByApiKeyInput } export type ApiKeyCreateOrConnectWithoutTenantIpAddressesInput = { where: Prisma.ApiKeyWhereUniqueInput create: Prisma.XOR } export type ApiKeyUpsertWithoutTenantIpAddressesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ApiKeyWhereInput } export type ApiKeyUpdateToOneWithWhereWithoutTenantIpAddressesInput = { where?: Prisma.ApiKeyWhereInput data: Prisma.XOR } export type ApiKeyUpdateWithoutTenantIpAddressesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedApiKeysNestedInput tenant?: Prisma.TenantUpdateOneRequiredWithoutApiKeysNestedInput entities?: Prisma.ApiKeyEntityUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUpdateManyWithoutCreatedByApiKeyNestedInput } export type ApiKeyUncheckedUpdateWithoutTenantIpAddressesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean entities?: Prisma.ApiKeyEntityUncheckedUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUncheckedUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUncheckedUpdateManyWithoutCreatedByApiKeyNestedInput } export type ApiKeyCreateWithoutLogsInput = { id?: string createdAt?: Date | string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean createdByUser: Prisma.UserCreateNestedOneWithoutCreatedApiKeysInput tenant: Prisma.TenantCreateNestedOneWithoutApiKeysInput entities?: Prisma.ApiKeyEntityCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressCreateNestedManyWithoutApiKeyInput } export type ApiKeyUncheckedCreateWithoutLogsInput = { id?: string createdAt?: Date | string createdByUserId: string tenantId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean entities?: Prisma.ApiKeyEntityUncheckedCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowUncheckedCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedCreateNestedManyWithoutApiKeyInput } export type ApiKeyCreateOrConnectWithoutLogsInput = { where: Prisma.ApiKeyWhereUniqueInput create: Prisma.XOR } export type ApiKeyUpsertWithoutLogsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ApiKeyWhereInput } export type ApiKeyUpdateToOneWithWhereWithoutLogsInput = { where?: Prisma.ApiKeyWhereInput data: Prisma.XOR } export type ApiKeyUpdateWithoutLogsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedApiKeysNestedInput tenant?: Prisma.TenantUpdateOneRequiredWithoutApiKeysNestedInput entities?: Prisma.ApiKeyEntityUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUpdateManyWithoutApiKeyNestedInput } export type ApiKeyUncheckedUpdateWithoutLogsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean entities?: Prisma.ApiKeyEntityUncheckedUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUncheckedUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedUpdateManyWithoutApiKeyNestedInput } export type ApiKeyCreateWithoutApiKeyLogsInput = { id?: string createdAt?: Date | string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean createdByUser: Prisma.UserCreateNestedOneWithoutCreatedApiKeysInput tenant: Prisma.TenantCreateNestedOneWithoutApiKeysInput entities?: Prisma.ApiKeyEntityCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressCreateNestedManyWithoutApiKeyInput } export type ApiKeyUncheckedCreateWithoutApiKeyLogsInput = { id?: string createdAt?: Date | string createdByUserId: string tenantId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean entities?: Prisma.ApiKeyEntityUncheckedCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogUncheckedCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowUncheckedCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedCreateNestedManyWithoutApiKeyInput } export type ApiKeyCreateOrConnectWithoutApiKeyLogsInput = { where: Prisma.ApiKeyWhereUniqueInput create: Prisma.XOR } export type ApiKeyUpsertWithoutApiKeyLogsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ApiKeyWhereInput } export type ApiKeyUpdateToOneWithWhereWithoutApiKeyLogsInput = { where?: Prisma.ApiKeyWhereInput data: Prisma.XOR } export type ApiKeyUpdateWithoutApiKeyLogsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedApiKeysNestedInput tenant?: Prisma.TenantUpdateOneRequiredWithoutApiKeysNestedInput entities?: Prisma.ApiKeyEntityUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUpdateManyWithoutApiKeyNestedInput } export type ApiKeyUncheckedUpdateWithoutApiKeyLogsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean entities?: Prisma.ApiKeyEntityUncheckedUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUncheckedUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUncheckedUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedUpdateManyWithoutApiKeyNestedInput } export type ApiKeyCreateWithoutCreatedRowsInput = { id?: string createdAt?: Date | string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean createdByUser: Prisma.UserCreateNestedOneWithoutCreatedApiKeysInput tenant: Prisma.TenantCreateNestedOneWithoutApiKeysInput entities?: Prisma.ApiKeyEntityCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogCreateNestedManyWithoutApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressCreateNestedManyWithoutApiKeyInput } export type ApiKeyUncheckedCreateWithoutCreatedRowsInput = { id?: string createdAt?: Date | string createdByUserId: string tenantId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean entities?: Prisma.ApiKeyEntityUncheckedCreateNestedManyWithoutApiKeyInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogUncheckedCreateNestedManyWithoutApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedCreateNestedManyWithoutApiKeyInput } export type ApiKeyCreateOrConnectWithoutCreatedRowsInput = { where: Prisma.ApiKeyWhereUniqueInput create: Prisma.XOR } export type ApiKeyUpsertWithoutCreatedRowsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ApiKeyWhereInput } export type ApiKeyUpdateToOneWithWhereWithoutCreatedRowsInput = { where?: Prisma.ApiKeyWhereInput data: Prisma.XOR } export type ApiKeyUpdateWithoutCreatedRowsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedApiKeysNestedInput tenant?: Prisma.TenantUpdateOneRequiredWithoutApiKeysNestedInput entities?: Prisma.ApiKeyEntityUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUpdateManyWithoutApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUpdateManyWithoutApiKeyNestedInput } export type ApiKeyUncheckedUpdateWithoutCreatedRowsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean entities?: Prisma.ApiKeyEntityUncheckedUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUncheckedUpdateManyWithoutApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedUpdateManyWithoutApiKeyNestedInput } export type ApiKeyCreateWithoutEntitiesInput = { id?: string createdAt?: Date | string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean createdByUser: Prisma.UserCreateNestedOneWithoutCreatedApiKeysInput tenant: Prisma.TenantCreateNestedOneWithoutApiKeysInput apiKeyLogs?: Prisma.ApiKeyLogCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressCreateNestedManyWithoutApiKeyInput } export type ApiKeyUncheckedCreateWithoutEntitiesInput = { id?: string createdAt?: Date | string createdByUserId: string tenantId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean apiKeyLogs?: Prisma.ApiKeyLogUncheckedCreateNestedManyWithoutApiKeyInput logs?: Prisma.LogUncheckedCreateNestedManyWithoutApiKeyInput createdRows?: Prisma.RowUncheckedCreateNestedManyWithoutCreatedByApiKeyInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedCreateNestedManyWithoutApiKeyInput } export type ApiKeyCreateOrConnectWithoutEntitiesInput = { where: Prisma.ApiKeyWhereUniqueInput create: Prisma.XOR } export type ApiKeyUpsertWithoutEntitiesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ApiKeyWhereInput } export type ApiKeyUpdateToOneWithWhereWithoutEntitiesInput = { where?: Prisma.ApiKeyWhereInput data: Prisma.XOR } export type ApiKeyUpdateWithoutEntitiesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedApiKeysNestedInput tenant?: Prisma.TenantUpdateOneRequiredWithoutApiKeysNestedInput apiKeyLogs?: Prisma.ApiKeyLogUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUpdateManyWithoutApiKeyNestedInput } export type ApiKeyUncheckedUpdateWithoutEntitiesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean apiKeyLogs?: Prisma.ApiKeyLogUncheckedUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUncheckedUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUncheckedUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedUpdateManyWithoutApiKeyNestedInput } export type ApiKeyCreateManyCreatedByUserInput = { id?: string createdAt?: Date | string tenantId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean } export type ApiKeyUpdateWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean tenant?: Prisma.TenantUpdateOneRequiredWithoutApiKeysNestedInput entities?: Prisma.ApiKeyEntityUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUpdateManyWithoutApiKeyNestedInput } export type ApiKeyUncheckedUpdateWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean entities?: Prisma.ApiKeyEntityUncheckedUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUncheckedUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUncheckedUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedUpdateManyWithoutApiKeyNestedInput } export type ApiKeyUncheckedUpdateManyWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean } export type ApiKeyCreateManyTenantInput = { id?: string createdAt?: Date | string createdByUserId: string key?: string keyHash?: string | null keyPrefix?: string | null keyLastFour?: string | null hashedAt?: Date | string | null keyVersion?: number alias: string expires?: Date | string | null active: boolean } export type ApiKeyUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean createdByUser?: Prisma.UserUpdateOneRequiredWithoutCreatedApiKeysNestedInput entities?: Prisma.ApiKeyEntityUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUpdateManyWithoutApiKeyNestedInput } export type ApiKeyUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean entities?: Prisma.ApiKeyEntityUncheckedUpdateManyWithoutApiKeyNestedInput apiKeyLogs?: Prisma.ApiKeyLogUncheckedUpdateManyWithoutApiKeyNestedInput logs?: Prisma.LogUncheckedUpdateManyWithoutApiKeyNestedInput createdRows?: Prisma.RowUncheckedUpdateManyWithoutCreatedByApiKeyNestedInput tenantIpAddresses?: Prisma.TenantIpAddressUncheckedUpdateManyWithoutApiKeyNestedInput } export type ApiKeyUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string key?: Prisma.StringFieldUpdateOperationsInput | string keyHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyPrefix?: Prisma.NullableStringFieldUpdateOperationsInput | string | null keyLastFour?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hashedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null keyVersion?: Prisma.IntFieldUpdateOperationsInput | number alias?: Prisma.StringFieldUpdateOperationsInput | string expires?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null active?: Prisma.BoolFieldUpdateOperationsInput | boolean } /** * Count Type ApiKeyCountOutputType */ export type ApiKeyCountOutputType = { entities: number apiKeyLogs: number logs: number createdRows: number tenantIpAddresses: number } export type ApiKeyCountOutputTypeSelect = { entities?: boolean | ApiKeyCountOutputTypeCountEntitiesArgs apiKeyLogs?: boolean | ApiKeyCountOutputTypeCountApiKeyLogsArgs logs?: boolean | ApiKeyCountOutputTypeCountLogsArgs createdRows?: boolean | ApiKeyCountOutputTypeCountCreatedRowsArgs tenantIpAddresses?: boolean | ApiKeyCountOutputTypeCountTenantIpAddressesArgs } /** * ApiKeyCountOutputType without action */ export type ApiKeyCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ApiKeyCountOutputType */ select?: Prisma.ApiKeyCountOutputTypeSelect | null } /** * ApiKeyCountOutputType without action */ export type ApiKeyCountOutputTypeCountEntitiesArgs = { where?: Prisma.ApiKeyEntityWhereInput } /** * ApiKeyCountOutputType without action */ export type ApiKeyCountOutputTypeCountApiKeyLogsArgs = { where?: Prisma.ApiKeyLogWhereInput } /** * ApiKeyCountOutputType without action */ export type ApiKeyCountOutputTypeCountLogsArgs = { where?: Prisma.LogWhereInput } /** * ApiKeyCountOutputType without action */ export type ApiKeyCountOutputTypeCountCreatedRowsArgs = { where?: Prisma.RowWhereInput } /** * ApiKeyCountOutputType without action */ export type ApiKeyCountOutputTypeCountTenantIpAddressesArgs = { where?: Prisma.TenantIpAddressWhereInput } export type ApiKeySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean createdByUserId?: boolean tenantId?: boolean key?: boolean keyHash?: boolean keyPrefix?: boolean keyLastFour?: boolean hashedAt?: boolean keyVersion?: boolean alias?: boolean expires?: boolean active?: boolean createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.TenantDefaultArgs entities?: boolean | Prisma.ApiKey$entitiesArgs apiKeyLogs?: boolean | Prisma.ApiKey$apiKeyLogsArgs logs?: boolean | Prisma.ApiKey$logsArgs createdRows?: boolean | Prisma.ApiKey$createdRowsArgs tenantIpAddresses?: boolean | Prisma.ApiKey$tenantIpAddressesArgs _count?: boolean | Prisma.ApiKeyCountOutputTypeDefaultArgs }, ExtArgs["result"]["apiKey"]> export type ApiKeySelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean createdByUserId?: boolean tenantId?: boolean key?: boolean keyHash?: boolean keyPrefix?: boolean keyLastFour?: boolean hashedAt?: boolean keyVersion?: boolean alias?: boolean expires?: boolean active?: boolean createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.TenantDefaultArgs }, ExtArgs["result"]["apiKey"]> export type ApiKeySelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean createdByUserId?: boolean tenantId?: boolean key?: boolean keyHash?: boolean keyPrefix?: boolean keyLastFour?: boolean hashedAt?: boolean keyVersion?: boolean alias?: boolean expires?: boolean active?: boolean createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.TenantDefaultArgs }, ExtArgs["result"]["apiKey"]> export type ApiKeySelectScalar = { id?: boolean createdAt?: boolean createdByUserId?: boolean tenantId?: boolean key?: boolean keyHash?: boolean keyPrefix?: boolean keyLastFour?: boolean hashedAt?: boolean keyVersion?: boolean alias?: boolean expires?: boolean active?: boolean } export type ApiKeyOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "createdByUserId" | "tenantId" | "key" | "keyHash" | "keyPrefix" | "keyLastFour" | "hashedAt" | "keyVersion" | "alias" | "expires" | "active", ExtArgs["result"]["apiKey"]> export type ApiKeyInclude = { createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.TenantDefaultArgs entities?: boolean | Prisma.ApiKey$entitiesArgs apiKeyLogs?: boolean | Prisma.ApiKey$apiKeyLogsArgs logs?: boolean | Prisma.ApiKey$logsArgs createdRows?: boolean | Prisma.ApiKey$createdRowsArgs tenantIpAddresses?: boolean | Prisma.ApiKey$tenantIpAddressesArgs _count?: boolean | Prisma.ApiKeyCountOutputTypeDefaultArgs } export type ApiKeyIncludeCreateManyAndReturn = { createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.TenantDefaultArgs } export type ApiKeyIncludeUpdateManyAndReturn = { createdByUser?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.TenantDefaultArgs } export type $ApiKeyPayload = { name: "ApiKey" objects: { createdByUser: Prisma.$UserPayload tenant: Prisma.$TenantPayload entities: Prisma.$ApiKeyEntityPayload[] apiKeyLogs: Prisma.$ApiKeyLogPayload[] logs: Prisma.$LogPayload[] createdRows: Prisma.$RowPayload[] tenantIpAddresses: Prisma.$TenantIpAddressPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date createdByUserId: string tenantId: string key: string keyHash: string | null keyPrefix: string | null keyLastFour: string | null hashedAt: Date | null keyVersion: number alias: string expires: Date | null active: boolean }, ExtArgs["result"]["apiKey"]> composites: {} } export type ApiKeyGetPayload = runtime.Types.Result.GetResult export type ApiKeyCountArgs = Omit & { select?: ApiKeyCountAggregateInputType | true } export interface ApiKeyDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ApiKey'], meta: { name: 'ApiKey' } } /** * Find zero or one ApiKey that matches the filter. * @param {ApiKeyFindUniqueArgs} args - Arguments to find a ApiKey * @example * // Get one ApiKey * const apiKey = await prisma.apiKey.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ApiKey that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ApiKeyFindUniqueOrThrowArgs} args - Arguments to find a ApiKey * @example * // Get one ApiKey * const apiKey = await prisma.apiKey.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ApiKey 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 {ApiKeyFindFirstArgs} args - Arguments to find a ApiKey * @example * // Get one ApiKey * const apiKey = await prisma.apiKey.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ApiKey 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 {ApiKeyFindFirstOrThrowArgs} args - Arguments to find a ApiKey * @example * // Get one ApiKey * const apiKey = await prisma.apiKey.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ApiKeys 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 {ApiKeyFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ApiKeys * const apiKeys = await prisma.apiKey.findMany() * * // Get first 10 ApiKeys * const apiKeys = await prisma.apiKey.findMany({ take: 10 }) * * // Only select the `id` * const apiKeyWithIdOnly = await prisma.apiKey.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ApiKey. * @param {ApiKeyCreateArgs} args - Arguments to create a ApiKey. * @example * // Create one ApiKey * const ApiKey = await prisma.apiKey.create({ * data: { * // ... data to create a ApiKey * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ApiKeys. * @param {ApiKeyCreateManyArgs} args - Arguments to create many ApiKeys. * @example * // Create many ApiKeys * const apiKey = await prisma.apiKey.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many ApiKeys and returns the data saved in the database. * @param {ApiKeyCreateManyAndReturnArgs} args - Arguments to create many ApiKeys. * @example * // Create many ApiKeys * const apiKey = await prisma.apiKey.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ApiKeys and only return the `id` * const apiKeyWithIdOnly = await prisma.apiKey.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 ApiKey. * @param {ApiKeyDeleteArgs} args - Arguments to delete one ApiKey. * @example * // Delete one ApiKey * const ApiKey = await prisma.apiKey.delete({ * where: { * // ... filter to delete one ApiKey * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ApiKey. * @param {ApiKeyUpdateArgs} args - Arguments to update one ApiKey. * @example * // Update one ApiKey * const apiKey = await prisma.apiKey.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ApiKeys. * @param {ApiKeyDeleteManyArgs} args - Arguments to filter ApiKeys to delete. * @example * // Delete a few ApiKeys * const { count } = await prisma.apiKey.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ApiKeys. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ApiKeyUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ApiKeys * const apiKey = await prisma.apiKey.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ApiKeys and returns the data updated in the database. * @param {ApiKeyUpdateManyAndReturnArgs} args - Arguments to update many ApiKeys. * @example * // Update many ApiKeys * const apiKey = await prisma.apiKey.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ApiKeys and only return the `id` * const apiKeyWithIdOnly = await prisma.apiKey.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 ApiKey. * @param {ApiKeyUpsertArgs} args - Arguments to update or create a ApiKey. * @example * // Update or create a ApiKey * const apiKey = await prisma.apiKey.upsert({ * create: { * // ... data to create a ApiKey * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ApiKey we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ApiKeys. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ApiKeyCountArgs} args - Arguments to filter ApiKeys to count. * @example * // Count the number of ApiKeys * const count = await prisma.apiKey.count({ * where: { * // ... the filter for the ApiKeys 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 ApiKey. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ApiKeyAggregateArgs} 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 ApiKey. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ApiKeyGroupByArgs} 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 ApiKeyGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ApiKeyGroupByArgs['orderBy'] } : { orderBy?: ApiKeyGroupByArgs['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 ? GetApiKeyGroupByPayload : Prisma.PrismaPromise /** * Fields of the ApiKey model */ readonly fields: ApiKeyFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ApiKey. * 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__ApiKeyClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" createdByUser = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> entities = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> apiKeyLogs = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> logs = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> createdRows = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> tenantIpAddresses = {}>(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 ApiKey model */ export interface ApiKeyFieldRefs { readonly id: Prisma.FieldRef<"ApiKey", 'String'> readonly createdAt: Prisma.FieldRef<"ApiKey", 'DateTime'> readonly createdByUserId: Prisma.FieldRef<"ApiKey", 'String'> readonly tenantId: Prisma.FieldRef<"ApiKey", 'String'> readonly key: Prisma.FieldRef<"ApiKey", 'String'> readonly keyHash: Prisma.FieldRef<"ApiKey", 'String'> readonly keyPrefix: Prisma.FieldRef<"ApiKey", 'String'> readonly keyLastFour: Prisma.FieldRef<"ApiKey", 'String'> readonly hashedAt: Prisma.FieldRef<"ApiKey", 'DateTime'> readonly keyVersion: Prisma.FieldRef<"ApiKey", 'Int'> readonly alias: Prisma.FieldRef<"ApiKey", 'String'> readonly expires: Prisma.FieldRef<"ApiKey", 'DateTime'> readonly active: Prisma.FieldRef<"ApiKey", 'Boolean'> } // Custom InputTypes /** * ApiKey findUnique */ export type ApiKeyFindUniqueArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null /** * Filter, which ApiKey to fetch. */ where: Prisma.ApiKeyWhereUniqueInput } /** * ApiKey findUniqueOrThrow */ export type ApiKeyFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null /** * Filter, which ApiKey to fetch. */ where: Prisma.ApiKeyWhereUniqueInput } /** * ApiKey findFirst */ export type ApiKeyFindFirstArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null /** * Filter, which ApiKey to fetch. */ where?: Prisma.ApiKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ApiKeys to fetch. */ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ApiKeys. */ cursor?: Prisma.ApiKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ApiKeys 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` ApiKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ApiKeys. */ distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[] } /** * ApiKey findFirstOrThrow */ export type ApiKeyFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null /** * Filter, which ApiKey to fetch. */ where?: Prisma.ApiKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ApiKeys to fetch. */ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ApiKeys. */ cursor?: Prisma.ApiKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ApiKeys 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` ApiKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ApiKeys. */ distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[] } /** * ApiKey findMany */ export type ApiKeyFindManyArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null /** * Filter, which ApiKeys to fetch. */ where?: Prisma.ApiKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ApiKeys to fetch. */ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ApiKeys. */ cursor?: Prisma.ApiKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ApiKeys 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` ApiKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ApiKeys. */ distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[] } /** * ApiKey create */ export type ApiKeyCreateArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null /** * The data needed to create a ApiKey. */ data: Prisma.XOR } /** * ApiKey createMany */ export type ApiKeyCreateManyArgs = { /** * The data used to create many ApiKeys. */ data: Prisma.ApiKeyCreateManyInput | Prisma.ApiKeyCreateManyInput[] skipDuplicates?: boolean } /** * ApiKey createManyAndReturn */ export type ApiKeyCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelectCreateManyAndReturn | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * The data used to create many ApiKeys. */ data: Prisma.ApiKeyCreateManyInput | Prisma.ApiKeyCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyIncludeCreateManyAndReturn | null } /** * ApiKey update */ export type ApiKeyUpdateArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null /** * The data needed to update a ApiKey. */ data: Prisma.XOR /** * Choose, which ApiKey to update. */ where: Prisma.ApiKeyWhereUniqueInput } /** * ApiKey updateMany */ export type ApiKeyUpdateManyArgs = { /** * The data used to update ApiKeys. */ data: Prisma.XOR /** * Filter which ApiKeys to update */ where?: Prisma.ApiKeyWhereInput /** * Limit how many ApiKeys to update. */ limit?: number } /** * ApiKey updateManyAndReturn */ export type ApiKeyUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelectUpdateManyAndReturn | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * The data used to update ApiKeys. */ data: Prisma.XOR /** * Filter which ApiKeys to update */ where?: Prisma.ApiKeyWhereInput /** * Limit how many ApiKeys to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyIncludeUpdateManyAndReturn | null } /** * ApiKey upsert */ export type ApiKeyUpsertArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null /** * The filter to search for the ApiKey to update in case it exists. */ where: Prisma.ApiKeyWhereUniqueInput /** * In case the ApiKey found by the `where` argument doesn't exist, create a new ApiKey with this data. */ create: Prisma.XOR /** * In case the ApiKey was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ApiKey delete */ export type ApiKeyDeleteArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null /** * Filter which ApiKey to delete. */ where: Prisma.ApiKeyWhereUniqueInput } /** * ApiKey deleteMany */ export type ApiKeyDeleteManyArgs = { /** * Filter which ApiKeys to delete */ where?: Prisma.ApiKeyWhereInput /** * Limit how many ApiKeys to delete. */ limit?: number } /** * ApiKey.entities */ export type ApiKey$entitiesArgs = { /** * Select specific fields to fetch from the ApiKeyEntity */ select?: Prisma.ApiKeyEntitySelect | null /** * Omit specific fields from the ApiKeyEntity */ omit?: Prisma.ApiKeyEntityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyEntityInclude | null where?: Prisma.ApiKeyEntityWhereInput orderBy?: Prisma.ApiKeyEntityOrderByWithRelationInput | Prisma.ApiKeyEntityOrderByWithRelationInput[] cursor?: Prisma.ApiKeyEntityWhereUniqueInput take?: number skip?: number distinct?: Prisma.ApiKeyEntityScalarFieldEnum | Prisma.ApiKeyEntityScalarFieldEnum[] } /** * ApiKey.apiKeyLogs */ export type ApiKey$apiKeyLogsArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null where?: Prisma.ApiKeyLogWhereInput orderBy?: Prisma.ApiKeyLogOrderByWithRelationInput | Prisma.ApiKeyLogOrderByWithRelationInput[] cursor?: Prisma.ApiKeyLogWhereUniqueInput take?: number skip?: number distinct?: Prisma.ApiKeyLogScalarFieldEnum | Prisma.ApiKeyLogScalarFieldEnum[] } /** * ApiKey.logs */ export type ApiKey$logsArgs = { /** * Select specific fields to fetch from the Log */ select?: Prisma.LogSelect | null /** * Omit specific fields from the Log */ omit?: Prisma.LogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LogInclude | null where?: Prisma.LogWhereInput orderBy?: Prisma.LogOrderByWithRelationInput | Prisma.LogOrderByWithRelationInput[] cursor?: Prisma.LogWhereUniqueInput take?: number skip?: number distinct?: Prisma.LogScalarFieldEnum | Prisma.LogScalarFieldEnum[] } /** * ApiKey.createdRows */ export type ApiKey$createdRowsArgs = { /** * Select specific fields to fetch from the Row */ select?: Prisma.RowSelect | null /** * Omit specific fields from the Row */ omit?: Prisma.RowOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.RowInclude | null where?: Prisma.RowWhereInput orderBy?: Prisma.RowOrderByWithRelationInput | Prisma.RowOrderByWithRelationInput[] cursor?: Prisma.RowWhereUniqueInput take?: number skip?: number distinct?: Prisma.RowScalarFieldEnum | Prisma.RowScalarFieldEnum[] } /** * ApiKey.tenantIpAddresses */ export type ApiKey$tenantIpAddressesArgs = { /** * Select specific fields to fetch from the TenantIpAddress */ select?: Prisma.TenantIpAddressSelect | null /** * Omit specific fields from the TenantIpAddress */ omit?: Prisma.TenantIpAddressOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantIpAddressInclude | null where?: Prisma.TenantIpAddressWhereInput orderBy?: Prisma.TenantIpAddressOrderByWithRelationInput | Prisma.TenantIpAddressOrderByWithRelationInput[] cursor?: Prisma.TenantIpAddressWhereUniqueInput take?: number skip?: number distinct?: Prisma.TenantIpAddressScalarFieldEnum | Prisma.TenantIpAddressScalarFieldEnum[] } /** * ApiKey without action */ export type ApiKeyDefaultArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null }