Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/ApiKey.ts
T

2700 lines
110 KiB
TypeScript

/* !!! 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<Prisma.$ApiKeyPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends ApiKeyAggregateArgs> = {
[P in keyof T & keyof AggregateApiKey]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateApiKey[P]>
: Prisma.GetScalarType<T[P], AggregateApiKey[P]>
}
export type ApiKeyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends ApiKeyGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<ApiKeyGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ApiKeyGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], ApiKeyGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], ApiKeyGroupByOutputType[P]>
}
>
>
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<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
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<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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<Prisma.ApiKeyCreateWithoutTenantIpAddressesInput, Prisma.ApiKeyUncheckedCreateWithoutTenantIpAddressesInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutTenantIpAddressesInput
connect?: Prisma.ApiKeyWhereUniqueInput
}
export type ApiKeyUpdateOneWithoutTenantIpAddressesNestedInput = {
create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutTenantIpAddressesInput, Prisma.ApiKeyUncheckedCreateWithoutTenantIpAddressesInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutTenantIpAddressesInput
upsert?: Prisma.ApiKeyUpsertWithoutTenantIpAddressesInput
disconnect?: Prisma.ApiKeyWhereInput | boolean
delete?: Prisma.ApiKeyWhereInput | boolean
connect?: Prisma.ApiKeyWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ApiKeyUpdateToOneWithWhereWithoutTenantIpAddressesInput, Prisma.ApiKeyUpdateWithoutTenantIpAddressesInput>, Prisma.ApiKeyUncheckedUpdateWithoutTenantIpAddressesInput>
}
export type ApiKeyCreateNestedOneWithoutLogsInput = {
create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutLogsInput, Prisma.ApiKeyUncheckedCreateWithoutLogsInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutLogsInput
connect?: Prisma.ApiKeyWhereUniqueInput
}
export type ApiKeyUpdateOneWithoutLogsNestedInput = {
create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutLogsInput, Prisma.ApiKeyUncheckedCreateWithoutLogsInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutLogsInput
upsert?: Prisma.ApiKeyUpsertWithoutLogsInput
disconnect?: Prisma.ApiKeyWhereInput | boolean
delete?: Prisma.ApiKeyWhereInput | boolean
connect?: Prisma.ApiKeyWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ApiKeyUpdateToOneWithWhereWithoutLogsInput, Prisma.ApiKeyUpdateWithoutLogsInput>, Prisma.ApiKeyUncheckedUpdateWithoutLogsInput>
}
export type ApiKeyCreateNestedOneWithoutApiKeyLogsInput = {
create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutApiKeyLogsInput, Prisma.ApiKeyUncheckedCreateWithoutApiKeyLogsInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutApiKeyLogsInput
connect?: Prisma.ApiKeyWhereUniqueInput
}
export type ApiKeyUpdateOneWithoutApiKeyLogsNestedInput = {
create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutApiKeyLogsInput, Prisma.ApiKeyUncheckedCreateWithoutApiKeyLogsInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutApiKeyLogsInput
upsert?: Prisma.ApiKeyUpsertWithoutApiKeyLogsInput
disconnect?: Prisma.ApiKeyWhereInput | boolean
delete?: Prisma.ApiKeyWhereInput | boolean
connect?: Prisma.ApiKeyWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ApiKeyUpdateToOneWithWhereWithoutApiKeyLogsInput, Prisma.ApiKeyUpdateWithoutApiKeyLogsInput>, Prisma.ApiKeyUncheckedUpdateWithoutApiKeyLogsInput>
}
export type ApiKeyCreateNestedOneWithoutCreatedRowsInput = {
create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutCreatedRowsInput, Prisma.ApiKeyUncheckedCreateWithoutCreatedRowsInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutCreatedRowsInput
connect?: Prisma.ApiKeyWhereUniqueInput
}
export type ApiKeyUpdateOneWithoutCreatedRowsNestedInput = {
create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutCreatedRowsInput, Prisma.ApiKeyUncheckedCreateWithoutCreatedRowsInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutCreatedRowsInput
upsert?: Prisma.ApiKeyUpsertWithoutCreatedRowsInput
disconnect?: Prisma.ApiKeyWhereInput | boolean
delete?: Prisma.ApiKeyWhereInput | boolean
connect?: Prisma.ApiKeyWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ApiKeyUpdateToOneWithWhereWithoutCreatedRowsInput, Prisma.ApiKeyUpdateWithoutCreatedRowsInput>, Prisma.ApiKeyUncheckedUpdateWithoutCreatedRowsInput>
}
export type ApiKeyCreateNestedOneWithoutEntitiesInput = {
create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutEntitiesInput, Prisma.ApiKeyUncheckedCreateWithoutEntitiesInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutEntitiesInput
connect?: Prisma.ApiKeyWhereUniqueInput
}
export type ApiKeyUpdateOneRequiredWithoutEntitiesNestedInput = {
create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutEntitiesInput, Prisma.ApiKeyUncheckedCreateWithoutEntitiesInput>
connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutEntitiesInput
upsert?: Prisma.ApiKeyUpsertWithoutEntitiesInput
connect?: Prisma.ApiKeyWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ApiKeyUpdateToOneWithWhereWithoutEntitiesInput, Prisma.ApiKeyUpdateWithoutEntitiesInput>, 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<Prisma.ApiKeyCreateWithoutCreatedByUserInput, Prisma.ApiKeyUncheckedCreateWithoutCreatedByUserInput>
}
export type ApiKeyCreateManyCreatedByUserInputEnvelope = {
data: Prisma.ApiKeyCreateManyCreatedByUserInput | Prisma.ApiKeyCreateManyCreatedByUserInput[]
skipDuplicates?: boolean
}
export type ApiKeyUpsertWithWhereUniqueWithoutCreatedByUserInput = {
where: Prisma.ApiKeyWhereUniqueInput
update: Prisma.XOR<Prisma.ApiKeyUpdateWithoutCreatedByUserInput, Prisma.ApiKeyUncheckedUpdateWithoutCreatedByUserInput>
create: Prisma.XOR<Prisma.ApiKeyCreateWithoutCreatedByUserInput, Prisma.ApiKeyUncheckedCreateWithoutCreatedByUserInput>
}
export type ApiKeyUpdateWithWhereUniqueWithoutCreatedByUserInput = {
where: Prisma.ApiKeyWhereUniqueInput
data: Prisma.XOR<Prisma.ApiKeyUpdateWithoutCreatedByUserInput, Prisma.ApiKeyUncheckedUpdateWithoutCreatedByUserInput>
}
export type ApiKeyUpdateManyWithWhereWithoutCreatedByUserInput = {
where: Prisma.ApiKeyScalarWhereInput
data: Prisma.XOR<Prisma.ApiKeyUpdateManyMutationInput, Prisma.ApiKeyUncheckedUpdateManyWithoutCreatedByUserInput>
}
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<Prisma.ApiKeyCreateWithoutTenantInput, Prisma.ApiKeyUncheckedCreateWithoutTenantInput>
}
export type ApiKeyCreateManyTenantInputEnvelope = {
data: Prisma.ApiKeyCreateManyTenantInput | Prisma.ApiKeyCreateManyTenantInput[]
skipDuplicates?: boolean
}
export type ApiKeyUpsertWithWhereUniqueWithoutTenantInput = {
where: Prisma.ApiKeyWhereUniqueInput
update: Prisma.XOR<Prisma.ApiKeyUpdateWithoutTenantInput, Prisma.ApiKeyUncheckedUpdateWithoutTenantInput>
create: Prisma.XOR<Prisma.ApiKeyCreateWithoutTenantInput, Prisma.ApiKeyUncheckedCreateWithoutTenantInput>
}
export type ApiKeyUpdateWithWhereUniqueWithoutTenantInput = {
where: Prisma.ApiKeyWhereUniqueInput
data: Prisma.XOR<Prisma.ApiKeyUpdateWithoutTenantInput, Prisma.ApiKeyUncheckedUpdateWithoutTenantInput>
}
export type ApiKeyUpdateManyWithWhereWithoutTenantInput = {
where: Prisma.ApiKeyScalarWhereInput
data: Prisma.XOR<Prisma.ApiKeyUpdateManyMutationInput, Prisma.ApiKeyUncheckedUpdateManyWithoutTenantInput>
}
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<Prisma.ApiKeyCreateWithoutTenantIpAddressesInput, Prisma.ApiKeyUncheckedCreateWithoutTenantIpAddressesInput>
}
export type ApiKeyUpsertWithoutTenantIpAddressesInput = {
update: Prisma.XOR<Prisma.ApiKeyUpdateWithoutTenantIpAddressesInput, Prisma.ApiKeyUncheckedUpdateWithoutTenantIpAddressesInput>
create: Prisma.XOR<Prisma.ApiKeyCreateWithoutTenantIpAddressesInput, Prisma.ApiKeyUncheckedCreateWithoutTenantIpAddressesInput>
where?: Prisma.ApiKeyWhereInput
}
export type ApiKeyUpdateToOneWithWhereWithoutTenantIpAddressesInput = {
where?: Prisma.ApiKeyWhereInput
data: Prisma.XOR<Prisma.ApiKeyUpdateWithoutTenantIpAddressesInput, Prisma.ApiKeyUncheckedUpdateWithoutTenantIpAddressesInput>
}
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<Prisma.ApiKeyCreateWithoutLogsInput, Prisma.ApiKeyUncheckedCreateWithoutLogsInput>
}
export type ApiKeyUpsertWithoutLogsInput = {
update: Prisma.XOR<Prisma.ApiKeyUpdateWithoutLogsInput, Prisma.ApiKeyUncheckedUpdateWithoutLogsInput>
create: Prisma.XOR<Prisma.ApiKeyCreateWithoutLogsInput, Prisma.ApiKeyUncheckedCreateWithoutLogsInput>
where?: Prisma.ApiKeyWhereInput
}
export type ApiKeyUpdateToOneWithWhereWithoutLogsInput = {
where?: Prisma.ApiKeyWhereInput
data: Prisma.XOR<Prisma.ApiKeyUpdateWithoutLogsInput, Prisma.ApiKeyUncheckedUpdateWithoutLogsInput>
}
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<Prisma.ApiKeyCreateWithoutApiKeyLogsInput, Prisma.ApiKeyUncheckedCreateWithoutApiKeyLogsInput>
}
export type ApiKeyUpsertWithoutApiKeyLogsInput = {
update: Prisma.XOR<Prisma.ApiKeyUpdateWithoutApiKeyLogsInput, Prisma.ApiKeyUncheckedUpdateWithoutApiKeyLogsInput>
create: Prisma.XOR<Prisma.ApiKeyCreateWithoutApiKeyLogsInput, Prisma.ApiKeyUncheckedCreateWithoutApiKeyLogsInput>
where?: Prisma.ApiKeyWhereInput
}
export type ApiKeyUpdateToOneWithWhereWithoutApiKeyLogsInput = {
where?: Prisma.ApiKeyWhereInput
data: Prisma.XOR<Prisma.ApiKeyUpdateWithoutApiKeyLogsInput, Prisma.ApiKeyUncheckedUpdateWithoutApiKeyLogsInput>
}
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<Prisma.ApiKeyCreateWithoutCreatedRowsInput, Prisma.ApiKeyUncheckedCreateWithoutCreatedRowsInput>
}
export type ApiKeyUpsertWithoutCreatedRowsInput = {
update: Prisma.XOR<Prisma.ApiKeyUpdateWithoutCreatedRowsInput, Prisma.ApiKeyUncheckedUpdateWithoutCreatedRowsInput>
create: Prisma.XOR<Prisma.ApiKeyCreateWithoutCreatedRowsInput, Prisma.ApiKeyUncheckedCreateWithoutCreatedRowsInput>
where?: Prisma.ApiKeyWhereInput
}
export type ApiKeyUpdateToOneWithWhereWithoutCreatedRowsInput = {
where?: Prisma.ApiKeyWhereInput
data: Prisma.XOR<Prisma.ApiKeyUpdateWithoutCreatedRowsInput, Prisma.ApiKeyUncheckedUpdateWithoutCreatedRowsInput>
}
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<Prisma.ApiKeyCreateWithoutEntitiesInput, Prisma.ApiKeyUncheckedCreateWithoutEntitiesInput>
}
export type ApiKeyUpsertWithoutEntitiesInput = {
update: Prisma.XOR<Prisma.ApiKeyUpdateWithoutEntitiesInput, Prisma.ApiKeyUncheckedUpdateWithoutEntitiesInput>
create: Prisma.XOR<Prisma.ApiKeyCreateWithoutEntitiesInput, Prisma.ApiKeyUncheckedCreateWithoutEntitiesInput>
where?: Prisma.ApiKeyWhereInput
}
export type ApiKeyUpdateToOneWithWhereWithoutEntitiesInput = {
where?: Prisma.ApiKeyWhereInput
data: Prisma.XOR<Prisma.ApiKeyUpdateWithoutEntitiesInput, Prisma.ApiKeyUncheckedUpdateWithoutEntitiesInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
entities?: boolean | ApiKeyCountOutputTypeCountEntitiesArgs
apiKeyLogs?: boolean | ApiKeyCountOutputTypeCountApiKeyLogsArgs
logs?: boolean | ApiKeyCountOutputTypeCountLogsArgs
createdRows?: boolean | ApiKeyCountOutputTypeCountCreatedRowsArgs
tenantIpAddresses?: boolean | ApiKeyCountOutputTypeCountTenantIpAddressesArgs
}
/**
* ApiKeyCountOutputType without action
*/
export type ApiKeyCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKeyCountOutputType
*/
select?: Prisma.ApiKeyCountOutputTypeSelect<ExtArgs> | null
}
/**
* ApiKeyCountOutputType without action
*/
export type ApiKeyCountOutputTypeCountEntitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ApiKeyEntityWhereInput
}
/**
* ApiKeyCountOutputType without action
*/
export type ApiKeyCountOutputTypeCountApiKeyLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ApiKeyLogWhereInput
}
/**
* ApiKeyCountOutputType without action
*/
export type ApiKeyCountOutputTypeCountLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.LogWhereInput
}
/**
* ApiKeyCountOutputType without action
*/
export type ApiKeyCountOutputTypeCountCreatedRowsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.RowWhereInput
}
/**
* ApiKeyCountOutputType without action
*/
export type ApiKeyCountOutputTypeCountTenantIpAddressesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.TenantIpAddressWhereInput
}
export type ApiKeySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
entities?: boolean | Prisma.ApiKey$entitiesArgs<ExtArgs>
apiKeyLogs?: boolean | Prisma.ApiKey$apiKeyLogsArgs<ExtArgs>
logs?: boolean | Prisma.ApiKey$logsArgs<ExtArgs>
createdRows?: boolean | Prisma.ApiKey$createdRowsArgs<ExtArgs>
tenantIpAddresses?: boolean | Prisma.ApiKey$tenantIpAddressesArgs<ExtArgs>
_count?: boolean | Prisma.ApiKeyCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["apiKey"]>
export type ApiKeySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}, ExtArgs["result"]["apiKey"]>
export type ApiKeySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "createdByUserId" | "tenantId" | "key" | "keyHash" | "keyPrefix" | "keyLastFour" | "hashedAt" | "keyVersion" | "alias" | "expires" | "active", ExtArgs["result"]["apiKey"]>
export type ApiKeyInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
createdByUser?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
entities?: boolean | Prisma.ApiKey$entitiesArgs<ExtArgs>
apiKeyLogs?: boolean | Prisma.ApiKey$apiKeyLogsArgs<ExtArgs>
logs?: boolean | Prisma.ApiKey$logsArgs<ExtArgs>
createdRows?: boolean | Prisma.ApiKey$createdRowsArgs<ExtArgs>
tenantIpAddresses?: boolean | Prisma.ApiKey$tenantIpAddressesArgs<ExtArgs>
_count?: boolean | Prisma.ApiKeyCountOutputTypeDefaultArgs<ExtArgs>
}
export type ApiKeyIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
createdByUser?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}
export type ApiKeyIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
createdByUser?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}
export type $ApiKeyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "ApiKey"
objects: {
createdByUser: Prisma.$UserPayload<ExtArgs>
tenant: Prisma.$TenantPayload<ExtArgs>
entities: Prisma.$ApiKeyEntityPayload<ExtArgs>[]
apiKeyLogs: Prisma.$ApiKeyLogPayload<ExtArgs>[]
logs: Prisma.$LogPayload<ExtArgs>[]
createdRows: Prisma.$RowPayload<ExtArgs>[]
tenantIpAddresses: Prisma.$TenantIpAddressPayload<ExtArgs>[]
}
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<S extends boolean | null | undefined | ApiKeyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload, S>
export type ApiKeyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<ApiKeyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ApiKeyCountAggregateInputType | true
}
export interface ApiKeyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends ApiKeyFindUniqueArgs>(args: Prisma.SelectSubset<T, ApiKeyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ApiKeyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyFindFirstArgs>(args?: Prisma.SelectSubset<T, ApiKeyFindFirstArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ApiKeyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyFindManyArgs>(args?: Prisma.SelectSubset<T, ApiKeyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyCreateArgs>(args: Prisma.SelectSubset<T, ApiKeyCreateArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyCreateManyArgs>(args?: Prisma.SelectSubset<T, ApiKeyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends ApiKeyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ApiKeyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyDeleteArgs>(args: Prisma.SelectSubset<T, ApiKeyDeleteArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyUpdateArgs>(args: Prisma.SelectSubset<T, ApiKeyUpdateArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyDeleteManyArgs>(args?: Prisma.SelectSubset<T, ApiKeyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends ApiKeyUpdateManyArgs>(args: Prisma.SelectSubset<T, ApiKeyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends ApiKeyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ApiKeyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyUpsertArgs>(args: Prisma.SelectSubset<T, ApiKeyUpsertArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, 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<T extends ApiKeyCountArgs>(
args?: Prisma.Subset<T, ApiKeyCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], ApiKeyCountAggregateOutputType>
: 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<T extends ApiKeyAggregateArgs>(args: Prisma.Subset<T, ApiKeyAggregateArgs>): Prisma.PrismaPromise<GetApiKeyAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: ApiKeyGroupByArgs['orderBy'] }
: { orderBy?: ApiKeyGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, ApiKeyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetApiKeyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
createdByUser<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
entities<T extends Prisma.ApiKey$entitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApiKey$entitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyEntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
apiKeyLogs<T extends Prisma.ApiKey$apiKeyLogsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApiKey$apiKeyLogsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
logs<T extends Prisma.ApiKey$logsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApiKey$logsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
createdRows<T extends Prisma.ApiKey$createdRowsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApiKey$createdRowsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RowPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
tenantIpAddresses<T extends Prisma.ApiKey$tenantIpAddressesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApiKey$tenantIpAddressesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TenantIpAddressPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | null
/**
* Filter, which ApiKey to fetch.
*/
where: Prisma.ApiKeyWhereUniqueInput
}
/**
* ApiKey findUniqueOrThrow
*/
export type ApiKeyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | null
/**
* Filter, which ApiKey to fetch.
*/
where: Prisma.ApiKeyWhereUniqueInput
}
/**
* ApiKey findFirst
*/
export type ApiKeyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | null
/**
* The data needed to create a ApiKey.
*/
data: Prisma.XOR<Prisma.ApiKeyCreateInput, Prisma.ApiKeyUncheckedCreateInput>
}
/**
* ApiKey createMany
*/
export type ApiKeyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many ApiKeys.
*/
data: Prisma.ApiKeyCreateManyInput | Prisma.ApiKeyCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ApiKey createManyAndReturn
*/
export type ApiKeyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | 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<ExtArgs> | null
}
/**
* ApiKey update
*/
export type ApiKeyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | null
/**
* The data needed to update a ApiKey.
*/
data: Prisma.XOR<Prisma.ApiKeyUpdateInput, Prisma.ApiKeyUncheckedUpdateInput>
/**
* Choose, which ApiKey to update.
*/
where: Prisma.ApiKeyWhereUniqueInput
}
/**
* ApiKey updateMany
*/
export type ApiKeyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update ApiKeys.
*/
data: Prisma.XOR<Prisma.ApiKeyUpdateManyMutationInput, Prisma.ApiKeyUncheckedUpdateManyInput>
/**
* Filter which ApiKeys to update
*/
where?: Prisma.ApiKeyWhereInput
/**
* Limit how many ApiKeys to update.
*/
limit?: number
}
/**
* ApiKey updateManyAndReturn
*/
export type ApiKeyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* The data used to update ApiKeys.
*/
data: Prisma.XOR<Prisma.ApiKeyUpdateManyMutationInput, Prisma.ApiKeyUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* ApiKey upsert
*/
export type ApiKeyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | 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<Prisma.ApiKeyCreateInput, Prisma.ApiKeyUncheckedCreateInput>
/**
* In case the ApiKey was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.ApiKeyUpdateInput, Prisma.ApiKeyUncheckedUpdateInput>
}
/**
* ApiKey delete
*/
export type ApiKeyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | null
/**
* Filter which ApiKey to delete.
*/
where: Prisma.ApiKeyWhereUniqueInput
}
/**
* ApiKey deleteMany
*/
export type ApiKeyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which ApiKeys to delete
*/
where?: Prisma.ApiKeyWhereInput
/**
* Limit how many ApiKeys to delete.
*/
limit?: number
}
/**
* ApiKey.entities
*/
export type ApiKey$entitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKeyEntity
*/
select?: Prisma.ApiKeyEntitySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKeyEntity
*/
omit?: Prisma.ApiKeyEntityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyEntityInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKeyLog
*/
select?: Prisma.ApiKeyLogSelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKeyLog
*/
omit?: Prisma.ApiKeyLogOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyLogInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Log
*/
select?: Prisma.LogSelect<ExtArgs> | null
/**
* Omit specific fields from the Log
*/
omit?: Prisma.LogOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.LogInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Row
*/
select?: Prisma.RowSelect<ExtArgs> | null
/**
* Omit specific fields from the Row
*/
omit?: Prisma.RowOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.RowInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TenantIpAddress
*/
select?: Prisma.TenantIpAddressSelect<ExtArgs> | null
/**
* Omit specific fields from the TenantIpAddress
*/
omit?: Prisma.TenantIpAddressOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TenantIpAddressInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ApiKey
*/
select?: Prisma.ApiKeySelect<ExtArgs> | null
/**
* Omit specific fields from the ApiKey
*/
omit?: Prisma.ApiKeyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ApiKeyInclude<ExtArgs> | null
}