/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ApiKeyLog` 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 ApiKeyLog * */ export type ApiKeyLogModel = runtime.Types.Result.DefaultSelection export type AggregateApiKeyLog = { _count: ApiKeyLogCountAggregateOutputType | null _avg: ApiKeyLogAvgAggregateOutputType | null _sum: ApiKeyLogSumAggregateOutputType | null _min: ApiKeyLogMinAggregateOutputType | null _max: ApiKeyLogMaxAggregateOutputType | null } export type ApiKeyLogAvgAggregateOutputType = { status: number | null duration: number | null } export type ApiKeyLogSumAggregateOutputType = { status: number | null duration: number | null } export type ApiKeyLogMinAggregateOutputType = { id: string | null createdAt: Date | null apiKeyId: string | null tenantId: string | null ip: string | null endpoint: string | null method: string | null params: string | null status: number | null duration: number | null error: string | null type: string | null alias: string | null tenantName: string | null } export type ApiKeyLogMaxAggregateOutputType = { id: string | null createdAt: Date | null apiKeyId: string | null tenantId: string | null ip: string | null endpoint: string | null method: string | null params: string | null status: number | null duration: number | null error: string | null type: string | null alias: string | null tenantName: string | null } export type ApiKeyLogCountAggregateOutputType = { id: number createdAt: number apiKeyId: number tenantId: number ip: number endpoint: number method: number params: number status: number duration: number error: number type: number alias: number tenantName: number _all: number } export type ApiKeyLogAvgAggregateInputType = { status?: true duration?: true } export type ApiKeyLogSumAggregateInputType = { status?: true duration?: true } export type ApiKeyLogMinAggregateInputType = { id?: true createdAt?: true apiKeyId?: true tenantId?: true ip?: true endpoint?: true method?: true params?: true status?: true duration?: true error?: true type?: true alias?: true tenantName?: true } export type ApiKeyLogMaxAggregateInputType = { id?: true createdAt?: true apiKeyId?: true tenantId?: true ip?: true endpoint?: true method?: true params?: true status?: true duration?: true error?: true type?: true alias?: true tenantName?: true } export type ApiKeyLogCountAggregateInputType = { id?: true createdAt?: true apiKeyId?: true tenantId?: true ip?: true endpoint?: true method?: true params?: true status?: true duration?: true error?: true type?: true alias?: true tenantName?: true _all?: true } export type ApiKeyLogAggregateArgs = { /** * Filter which ApiKeyLog to aggregate. */ where?: Prisma.ApiKeyLogWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ApiKeyLogs to fetch. */ orderBy?: Prisma.ApiKeyLogOrderByWithRelationInput | Prisma.ApiKeyLogOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ApiKeyLogWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ApiKeyLogs 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` ApiKeyLogs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ApiKeyLogs **/ _count?: true | ApiKeyLogCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ApiKeyLogAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ApiKeyLogSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ApiKeyLogMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ApiKeyLogMaxAggregateInputType } export type GetApiKeyLogAggregateType = { [P in keyof T & keyof AggregateApiKeyLog]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ApiKeyLogGroupByArgs = { where?: Prisma.ApiKeyLogWhereInput orderBy?: Prisma.ApiKeyLogOrderByWithAggregationInput | Prisma.ApiKeyLogOrderByWithAggregationInput[] by: Prisma.ApiKeyLogScalarFieldEnum[] | Prisma.ApiKeyLogScalarFieldEnum having?: Prisma.ApiKeyLogScalarWhereWithAggregatesInput take?: number skip?: number _count?: ApiKeyLogCountAggregateInputType | true _avg?: ApiKeyLogAvgAggregateInputType _sum?: ApiKeyLogSumAggregateInputType _min?: ApiKeyLogMinAggregateInputType _max?: ApiKeyLogMaxAggregateInputType } export type ApiKeyLogGroupByOutputType = { id: string createdAt: Date apiKeyId: string | null tenantId: string | null ip: string endpoint: string method: string params: string status: number | null duration: number | null error: string | null type: string | null alias: string | null tenantName: string | null _count: ApiKeyLogCountAggregateOutputType | null _avg: ApiKeyLogAvgAggregateOutputType | null _sum: ApiKeyLogSumAggregateOutputType | null _min: ApiKeyLogMinAggregateOutputType | null _max: ApiKeyLogMaxAggregateOutputType | null } export type GetApiKeyLogGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ApiKeyLogGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ApiKeyLogWhereInput = { AND?: Prisma.ApiKeyLogWhereInput | Prisma.ApiKeyLogWhereInput[] OR?: Prisma.ApiKeyLogWhereInput[] NOT?: Prisma.ApiKeyLogWhereInput | Prisma.ApiKeyLogWhereInput[] id?: Prisma.StringFilter<"ApiKeyLog"> | string createdAt?: Prisma.DateTimeFilter<"ApiKeyLog"> | Date | string apiKeyId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null tenantId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null ip?: Prisma.StringFilter<"ApiKeyLog"> | string endpoint?: Prisma.StringFilter<"ApiKeyLog"> | string method?: Prisma.StringFilter<"ApiKeyLog"> | string params?: Prisma.StringFilter<"ApiKeyLog"> | string status?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null duration?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null error?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null type?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null alias?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null tenantName?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null apiKey?: Prisma.XOR | null tenant?: Prisma.XOR | null } export type ApiKeyLogOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder apiKeyId?: Prisma.SortOrderInput | Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder ip?: Prisma.SortOrder endpoint?: Prisma.SortOrder method?: Prisma.SortOrder params?: Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder duration?: Prisma.SortOrderInput | Prisma.SortOrder error?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrderInput | Prisma.SortOrder alias?: Prisma.SortOrderInput | Prisma.SortOrder tenantName?: Prisma.SortOrderInput | Prisma.SortOrder apiKey?: Prisma.ApiKeyOrderByWithRelationInput tenant?: Prisma.TenantOrderByWithRelationInput } export type ApiKeyLogWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.ApiKeyLogWhereInput | Prisma.ApiKeyLogWhereInput[] OR?: Prisma.ApiKeyLogWhereInput[] NOT?: Prisma.ApiKeyLogWhereInput | Prisma.ApiKeyLogWhereInput[] createdAt?: Prisma.DateTimeFilter<"ApiKeyLog"> | Date | string apiKeyId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null tenantId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null ip?: Prisma.StringFilter<"ApiKeyLog"> | string endpoint?: Prisma.StringFilter<"ApiKeyLog"> | string method?: Prisma.StringFilter<"ApiKeyLog"> | string params?: Prisma.StringFilter<"ApiKeyLog"> | string status?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null duration?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null error?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null type?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null alias?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null tenantName?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null apiKey?: Prisma.XOR | null tenant?: Prisma.XOR | null }, "id"> export type ApiKeyLogOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder apiKeyId?: Prisma.SortOrderInput | Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder ip?: Prisma.SortOrder endpoint?: Prisma.SortOrder method?: Prisma.SortOrder params?: Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder duration?: Prisma.SortOrderInput | Prisma.SortOrder error?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrderInput | Prisma.SortOrder alias?: Prisma.SortOrderInput | Prisma.SortOrder tenantName?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.ApiKeyLogCountOrderByAggregateInput _avg?: Prisma.ApiKeyLogAvgOrderByAggregateInput _max?: Prisma.ApiKeyLogMaxOrderByAggregateInput _min?: Prisma.ApiKeyLogMinOrderByAggregateInput _sum?: Prisma.ApiKeyLogSumOrderByAggregateInput } export type ApiKeyLogScalarWhereWithAggregatesInput = { AND?: Prisma.ApiKeyLogScalarWhereWithAggregatesInput | Prisma.ApiKeyLogScalarWhereWithAggregatesInput[] OR?: Prisma.ApiKeyLogScalarWhereWithAggregatesInput[] NOT?: Prisma.ApiKeyLogScalarWhereWithAggregatesInput | Prisma.ApiKeyLogScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"ApiKeyLog"> | Date | string apiKeyId?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null tenantId?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null ip?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string endpoint?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string method?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string params?: Prisma.StringWithAggregatesFilter<"ApiKeyLog"> | string status?: Prisma.IntNullableWithAggregatesFilter<"ApiKeyLog"> | number | null duration?: Prisma.IntNullableWithAggregatesFilter<"ApiKeyLog"> | number | null error?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null type?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null alias?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null tenantName?: Prisma.StringNullableWithAggregatesFilter<"ApiKeyLog"> | string | null } export type ApiKeyLogCreateInput = { id?: string createdAt?: Date | string ip: string endpoint: string method: string params: string status?: number | null duration?: number | null error?: string | null type?: string | null alias?: string | null tenantName?: string | null apiKey?: Prisma.ApiKeyCreateNestedOneWithoutApiKeyLogsInput tenant?: Prisma.TenantCreateNestedOneWithoutApiKeyLogsInput } export type ApiKeyLogUncheckedCreateInput = { id?: string createdAt?: Date | string apiKeyId?: string | null tenantId?: string | null ip: string endpoint: string method: string params: string status?: number | null duration?: number | null error?: string | null type?: string | null alias?: string | null tenantName?: string | null } export type ApiKeyLogUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null apiKey?: Prisma.ApiKeyUpdateOneWithoutApiKeyLogsNestedInput tenant?: Prisma.TenantUpdateOneWithoutApiKeyLogsNestedInput } export type ApiKeyLogUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string apiKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ApiKeyLogCreateManyInput = { id?: string createdAt?: Date | string apiKeyId?: string | null tenantId?: string | null ip: string endpoint: string method: string params: string status?: number | null duration?: number | null error?: string | null type?: string | null alias?: string | null tenantName?: string | null } export type ApiKeyLogUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ApiKeyLogUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string apiKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ApiKeyLogListRelationFilter = { every?: Prisma.ApiKeyLogWhereInput some?: Prisma.ApiKeyLogWhereInput none?: Prisma.ApiKeyLogWhereInput } export type ApiKeyLogOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type ApiKeyLogCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder apiKeyId?: Prisma.SortOrder tenantId?: Prisma.SortOrder ip?: Prisma.SortOrder endpoint?: Prisma.SortOrder method?: Prisma.SortOrder params?: Prisma.SortOrder status?: Prisma.SortOrder duration?: Prisma.SortOrder error?: Prisma.SortOrder type?: Prisma.SortOrder alias?: Prisma.SortOrder tenantName?: Prisma.SortOrder } export type ApiKeyLogAvgOrderByAggregateInput = { status?: Prisma.SortOrder duration?: Prisma.SortOrder } export type ApiKeyLogMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder apiKeyId?: Prisma.SortOrder tenantId?: Prisma.SortOrder ip?: Prisma.SortOrder endpoint?: Prisma.SortOrder method?: Prisma.SortOrder params?: Prisma.SortOrder status?: Prisma.SortOrder duration?: Prisma.SortOrder error?: Prisma.SortOrder type?: Prisma.SortOrder alias?: Prisma.SortOrder tenantName?: Prisma.SortOrder } export type ApiKeyLogMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder apiKeyId?: Prisma.SortOrder tenantId?: Prisma.SortOrder ip?: Prisma.SortOrder endpoint?: Prisma.SortOrder method?: Prisma.SortOrder params?: Prisma.SortOrder status?: Prisma.SortOrder duration?: Prisma.SortOrder error?: Prisma.SortOrder type?: Prisma.SortOrder alias?: Prisma.SortOrder tenantName?: Prisma.SortOrder } export type ApiKeyLogSumOrderByAggregateInput = { status?: Prisma.SortOrder duration?: Prisma.SortOrder } export type ApiKeyLogCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.ApiKeyLogCreateWithoutTenantInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput | Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput[] createMany?: Prisma.ApiKeyLogCreateManyTenantInputEnvelope connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] } export type ApiKeyLogUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.ApiKeyLogCreateWithoutTenantInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput | Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput[] createMany?: Prisma.ApiKeyLogCreateManyTenantInputEnvelope connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] } export type ApiKeyLogUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.ApiKeyLogCreateWithoutTenantInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput | Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput[] upsert?: Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.ApiKeyLogCreateManyTenantInputEnvelope set?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] disconnect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] delete?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] update?: Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.ApiKeyLogUpdateManyWithWhereWithoutTenantInput | Prisma.ApiKeyLogUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[] } export type ApiKeyLogUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.ApiKeyLogCreateWithoutTenantInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput | Prisma.ApiKeyLogCreateOrConnectWithoutTenantInput[] upsert?: Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.ApiKeyLogCreateManyTenantInputEnvelope set?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] disconnect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] delete?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] update?: Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput | Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.ApiKeyLogUpdateManyWithWhereWithoutTenantInput | Prisma.ApiKeyLogUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[] } export type ApiKeyLogCreateNestedManyWithoutApiKeyInput = { create?: Prisma.XOR | Prisma.ApiKeyLogCreateWithoutApiKeyInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput[] connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput | Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput[] createMany?: Prisma.ApiKeyLogCreateManyApiKeyInputEnvelope connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] } export type ApiKeyLogUncheckedCreateNestedManyWithoutApiKeyInput = { create?: Prisma.XOR | Prisma.ApiKeyLogCreateWithoutApiKeyInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput[] connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput | Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput[] createMany?: Prisma.ApiKeyLogCreateManyApiKeyInputEnvelope connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] } export type ApiKeyLogUpdateManyWithoutApiKeyNestedInput = { create?: Prisma.XOR | Prisma.ApiKeyLogCreateWithoutApiKeyInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput[] connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput | Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput[] upsert?: Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput | Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput[] createMany?: Prisma.ApiKeyLogCreateManyApiKeyInputEnvelope set?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] disconnect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] delete?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] update?: Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput | Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput[] updateMany?: Prisma.ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput | Prisma.ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput[] deleteMany?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[] } export type ApiKeyLogUncheckedUpdateManyWithoutApiKeyNestedInput = { create?: Prisma.XOR | Prisma.ApiKeyLogCreateWithoutApiKeyInput[] | Prisma.ApiKeyLogUncheckedCreateWithoutApiKeyInput[] connectOrCreate?: Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput | Prisma.ApiKeyLogCreateOrConnectWithoutApiKeyInput[] upsert?: Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput | Prisma.ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput[] createMany?: Prisma.ApiKeyLogCreateManyApiKeyInputEnvelope set?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] disconnect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] delete?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] connect?: Prisma.ApiKeyLogWhereUniqueInput | Prisma.ApiKeyLogWhereUniqueInput[] update?: Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput | Prisma.ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput[] updateMany?: Prisma.ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput | Prisma.ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput[] deleteMany?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[] } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type ApiKeyLogCreateWithoutTenantInput = { id?: string createdAt?: Date | string ip: string endpoint: string method: string params: string status?: number | null duration?: number | null error?: string | null type?: string | null alias?: string | null tenantName?: string | null apiKey?: Prisma.ApiKeyCreateNestedOneWithoutApiKeyLogsInput } export type ApiKeyLogUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string apiKeyId?: string | null ip: string endpoint: string method: string params: string status?: number | null duration?: number | null error?: string | null type?: string | null alias?: string | null tenantName?: string | null } export type ApiKeyLogCreateOrConnectWithoutTenantInput = { where: Prisma.ApiKeyLogWhereUniqueInput create: Prisma.XOR } export type ApiKeyLogCreateManyTenantInputEnvelope = { data: Prisma.ApiKeyLogCreateManyTenantInput | Prisma.ApiKeyLogCreateManyTenantInput[] skipDuplicates?: boolean } export type ApiKeyLogUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.ApiKeyLogWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ApiKeyLogUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.ApiKeyLogWhereUniqueInput data: Prisma.XOR } export type ApiKeyLogUpdateManyWithWhereWithoutTenantInput = { where: Prisma.ApiKeyLogScalarWhereInput data: Prisma.XOR } export type ApiKeyLogScalarWhereInput = { AND?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[] OR?: Prisma.ApiKeyLogScalarWhereInput[] NOT?: Prisma.ApiKeyLogScalarWhereInput | Prisma.ApiKeyLogScalarWhereInput[] id?: Prisma.StringFilter<"ApiKeyLog"> | string createdAt?: Prisma.DateTimeFilter<"ApiKeyLog"> | Date | string apiKeyId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null tenantId?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null ip?: Prisma.StringFilter<"ApiKeyLog"> | string endpoint?: Prisma.StringFilter<"ApiKeyLog"> | string method?: Prisma.StringFilter<"ApiKeyLog"> | string params?: Prisma.StringFilter<"ApiKeyLog"> | string status?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null duration?: Prisma.IntNullableFilter<"ApiKeyLog"> | number | null error?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null type?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null alias?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null tenantName?: Prisma.StringNullableFilter<"ApiKeyLog"> | string | null } export type ApiKeyLogCreateWithoutApiKeyInput = { id?: string createdAt?: Date | string ip: string endpoint: string method: string params: string status?: number | null duration?: number | null error?: string | null type?: string | null alias?: string | null tenantName?: string | null tenant?: Prisma.TenantCreateNestedOneWithoutApiKeyLogsInput } export type ApiKeyLogUncheckedCreateWithoutApiKeyInput = { id?: string createdAt?: Date | string tenantId?: string | null ip: string endpoint: string method: string params: string status?: number | null duration?: number | null error?: string | null type?: string | null alias?: string | null tenantName?: string | null } export type ApiKeyLogCreateOrConnectWithoutApiKeyInput = { where: Prisma.ApiKeyLogWhereUniqueInput create: Prisma.XOR } export type ApiKeyLogCreateManyApiKeyInputEnvelope = { data: Prisma.ApiKeyLogCreateManyApiKeyInput | Prisma.ApiKeyLogCreateManyApiKeyInput[] skipDuplicates?: boolean } export type ApiKeyLogUpsertWithWhereUniqueWithoutApiKeyInput = { where: Prisma.ApiKeyLogWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ApiKeyLogUpdateWithWhereUniqueWithoutApiKeyInput = { where: Prisma.ApiKeyLogWhereUniqueInput data: Prisma.XOR } export type ApiKeyLogUpdateManyWithWhereWithoutApiKeyInput = { where: Prisma.ApiKeyLogScalarWhereInput data: Prisma.XOR } export type ApiKeyLogCreateManyTenantInput = { id?: string createdAt?: Date | string apiKeyId?: string | null ip: string endpoint: string method: string params: string status?: number | null duration?: number | null error?: string | null type?: string | null alias?: string | null tenantName?: string | null } export type ApiKeyLogUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null apiKey?: Prisma.ApiKeyUpdateOneWithoutApiKeyLogsNestedInput } export type ApiKeyLogUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string apiKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ApiKeyLogUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string apiKeyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ApiKeyLogCreateManyApiKeyInput = { id?: string createdAt?: Date | string tenantId?: string | null ip: string endpoint: string method: string params: string status?: number | null duration?: number | null error?: string | null type?: string | null alias?: string | null tenantName?: string | null } export type ApiKeyLogUpdateWithoutApiKeyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenant?: Prisma.TenantUpdateOneWithoutApiKeyLogsNestedInput } export type ApiKeyLogUncheckedUpdateWithoutApiKeyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ApiKeyLogUncheckedUpdateManyWithoutApiKeyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ip?: Prisma.StringFieldUpdateOperationsInput | string endpoint?: Prisma.StringFieldUpdateOperationsInput | string method?: Prisma.StringFieldUpdateOperationsInput | string params?: Prisma.StringFieldUpdateOperationsInput | string status?: Prisma.NullableIntFieldUpdateOperationsInput | number | null duration?: Prisma.NullableIntFieldUpdateOperationsInput | number | null error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null alias?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type ApiKeyLogSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean apiKeyId?: boolean tenantId?: boolean ip?: boolean endpoint?: boolean method?: boolean params?: boolean status?: boolean duration?: boolean error?: boolean type?: boolean alias?: boolean tenantName?: boolean apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs tenant?: boolean | Prisma.ApiKeyLog$tenantArgs }, ExtArgs["result"]["apiKeyLog"]> export type ApiKeyLogSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean apiKeyId?: boolean tenantId?: boolean ip?: boolean endpoint?: boolean method?: boolean params?: boolean status?: boolean duration?: boolean error?: boolean type?: boolean alias?: boolean tenantName?: boolean apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs tenant?: boolean | Prisma.ApiKeyLog$tenantArgs }, ExtArgs["result"]["apiKeyLog"]> export type ApiKeyLogSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean apiKeyId?: boolean tenantId?: boolean ip?: boolean endpoint?: boolean method?: boolean params?: boolean status?: boolean duration?: boolean error?: boolean type?: boolean alias?: boolean tenantName?: boolean apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs tenant?: boolean | Prisma.ApiKeyLog$tenantArgs }, ExtArgs["result"]["apiKeyLog"]> export type ApiKeyLogSelectScalar = { id?: boolean createdAt?: boolean apiKeyId?: boolean tenantId?: boolean ip?: boolean endpoint?: boolean method?: boolean params?: boolean status?: boolean duration?: boolean error?: boolean type?: boolean alias?: boolean tenantName?: boolean } export type ApiKeyLogOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "apiKeyId" | "tenantId" | "ip" | "endpoint" | "method" | "params" | "status" | "duration" | "error" | "type" | "alias" | "tenantName", ExtArgs["result"]["apiKeyLog"]> export type ApiKeyLogInclude = { apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs tenant?: boolean | Prisma.ApiKeyLog$tenantArgs } export type ApiKeyLogIncludeCreateManyAndReturn = { apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs tenant?: boolean | Prisma.ApiKeyLog$tenantArgs } export type ApiKeyLogIncludeUpdateManyAndReturn = { apiKey?: boolean | Prisma.ApiKeyLog$apiKeyArgs tenant?: boolean | Prisma.ApiKeyLog$tenantArgs } export type $ApiKeyLogPayload = { name: "ApiKeyLog" objects: { apiKey: Prisma.$ApiKeyPayload | null tenant: Prisma.$TenantPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date apiKeyId: string | null tenantId: string | null ip: string endpoint: string method: string params: string status: number | null duration: number | null error: string | null type: string | null alias: string | null tenantName: string | null }, ExtArgs["result"]["apiKeyLog"]> composites: {} } export type ApiKeyLogGetPayload = runtime.Types.Result.GetResult export type ApiKeyLogCountArgs = Omit & { select?: ApiKeyLogCountAggregateInputType | true } export interface ApiKeyLogDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ApiKeyLog'], meta: { name: 'ApiKeyLog' } } /** * Find zero or one ApiKeyLog that matches the filter. * @param {ApiKeyLogFindUniqueArgs} args - Arguments to find a ApiKeyLog * @example * // Get one ApiKeyLog * const apiKeyLog = await prisma.apiKeyLog.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyLogClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ApiKeyLog that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ApiKeyLogFindUniqueOrThrowArgs} args - Arguments to find a ApiKeyLog * @example * // Get one ApiKeyLog * const apiKeyLog = await prisma.apiKeyLog.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyLogClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ApiKeyLog 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 {ApiKeyLogFindFirstArgs} args - Arguments to find a ApiKeyLog * @example * // Get one ApiKeyLog * const apiKeyLog = await prisma.apiKeyLog.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyLogClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ApiKeyLog 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 {ApiKeyLogFindFirstOrThrowArgs} args - Arguments to find a ApiKeyLog * @example * // Get one ApiKeyLog * const apiKeyLog = await prisma.apiKeyLog.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyLogClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ApiKeyLogs 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 {ApiKeyLogFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ApiKeyLogs * const apiKeyLogs = await prisma.apiKeyLog.findMany() * * // Get first 10 ApiKeyLogs * const apiKeyLogs = await prisma.apiKeyLog.findMany({ take: 10 }) * * // Only select the `id` * const apiKeyLogWithIdOnly = await prisma.apiKeyLog.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a ApiKeyLog. * @param {ApiKeyLogCreateArgs} args - Arguments to create a ApiKeyLog. * @example * // Create one ApiKeyLog * const ApiKeyLog = await prisma.apiKeyLog.create({ * data: { * // ... data to create a ApiKeyLog * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyLogClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ApiKeyLogs. * @param {ApiKeyLogCreateManyArgs} args - Arguments to create many ApiKeyLogs. * @example * // Create many ApiKeyLogs * const apiKeyLog = await prisma.apiKeyLog.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many ApiKeyLogs and returns the data saved in the database. * @param {ApiKeyLogCreateManyAndReturnArgs} args - Arguments to create many ApiKeyLogs. * @example * // Create many ApiKeyLogs * const apiKeyLog = await prisma.apiKeyLog.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ApiKeyLogs and only return the `id` * const apiKeyLogWithIdOnly = await prisma.apiKeyLog.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ApiKeyLog. * @param {ApiKeyLogDeleteArgs} args - Arguments to delete one ApiKeyLog. * @example * // Delete one ApiKeyLog * const ApiKeyLog = await prisma.apiKeyLog.delete({ * where: { * // ... filter to delete one ApiKeyLog * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyLogClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ApiKeyLog. * @param {ApiKeyLogUpdateArgs} args - Arguments to update one ApiKeyLog. * @example * // Update one ApiKeyLog * const apiKeyLog = await prisma.apiKeyLog.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyLogClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ApiKeyLogs. * @param {ApiKeyLogDeleteManyArgs} args - Arguments to filter ApiKeyLogs to delete. * @example * // Delete a few ApiKeyLogs * const { count } = await prisma.apiKeyLog.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ApiKeyLogs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ApiKeyLogUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ApiKeyLogs * const apiKeyLog = await prisma.apiKeyLog.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ApiKeyLogs and returns the data updated in the database. * @param {ApiKeyLogUpdateManyAndReturnArgs} args - Arguments to update many ApiKeyLogs. * @example * // Update many ApiKeyLogs * const apiKeyLog = await prisma.apiKeyLog.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ApiKeyLogs and only return the `id` * const apiKeyLogWithIdOnly = await prisma.apiKeyLog.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ApiKeyLog. * @param {ApiKeyLogUpsertArgs} args - Arguments to update or create a ApiKeyLog. * @example * // Update or create a ApiKeyLog * const apiKeyLog = await prisma.apiKeyLog.upsert({ * create: { * // ... data to create a ApiKeyLog * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ApiKeyLog we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ApiKeyLogClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ApiKeyLogs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ApiKeyLogCountArgs} args - Arguments to filter ApiKeyLogs to count. * @example * // Count the number of ApiKeyLogs * const count = await prisma.apiKeyLog.count({ * where: { * // ... the filter for the ApiKeyLogs we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a ApiKeyLog. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ApiKeyLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by ApiKeyLog. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ApiKeyLogGroupByArgs} 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 ApiKeyLogGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ApiKeyLogGroupByArgs['orderBy'] } : { orderBy?: ApiKeyLogGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetApiKeyLogGroupByPayload : Prisma.PrismaPromise /** * Fields of the ApiKeyLog model */ readonly fields: ApiKeyLogFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ApiKeyLog. * 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__ApiKeyLogClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" apiKey = {}>(args?: Prisma.Subset>): Prisma.Prisma__ApiKeyClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the ApiKeyLog model */ export interface ApiKeyLogFieldRefs { readonly id: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly createdAt: Prisma.FieldRef<"ApiKeyLog", 'DateTime'> readonly apiKeyId: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly tenantId: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly ip: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly endpoint: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly method: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly params: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly status: Prisma.FieldRef<"ApiKeyLog", 'Int'> readonly duration: Prisma.FieldRef<"ApiKeyLog", 'Int'> readonly error: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly type: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly alias: Prisma.FieldRef<"ApiKeyLog", 'String'> readonly tenantName: Prisma.FieldRef<"ApiKeyLog", 'String'> } // Custom InputTypes /** * ApiKeyLog findUnique */ export type ApiKeyLogFindUniqueArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null /** * Filter, which ApiKeyLog to fetch. */ where: Prisma.ApiKeyLogWhereUniqueInput } /** * ApiKeyLog findUniqueOrThrow */ export type ApiKeyLogFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null /** * Filter, which ApiKeyLog to fetch. */ where: Prisma.ApiKeyLogWhereUniqueInput } /** * ApiKeyLog findFirst */ export type ApiKeyLogFindFirstArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null /** * Filter, which ApiKeyLog to fetch. */ where?: Prisma.ApiKeyLogWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ApiKeyLogs to fetch. */ orderBy?: Prisma.ApiKeyLogOrderByWithRelationInput | Prisma.ApiKeyLogOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ApiKeyLogs. */ cursor?: Prisma.ApiKeyLogWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ApiKeyLogs 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` ApiKeyLogs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ApiKeyLogs. */ distinct?: Prisma.ApiKeyLogScalarFieldEnum | Prisma.ApiKeyLogScalarFieldEnum[] } /** * ApiKeyLog findFirstOrThrow */ export type ApiKeyLogFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null /** * Filter, which ApiKeyLog to fetch. */ where?: Prisma.ApiKeyLogWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ApiKeyLogs to fetch. */ orderBy?: Prisma.ApiKeyLogOrderByWithRelationInput | Prisma.ApiKeyLogOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ApiKeyLogs. */ cursor?: Prisma.ApiKeyLogWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ApiKeyLogs 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` ApiKeyLogs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ApiKeyLogs. */ distinct?: Prisma.ApiKeyLogScalarFieldEnum | Prisma.ApiKeyLogScalarFieldEnum[] } /** * ApiKeyLog findMany */ export type ApiKeyLogFindManyArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null /** * Filter, which ApiKeyLogs to fetch. */ where?: Prisma.ApiKeyLogWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ApiKeyLogs to fetch. */ orderBy?: Prisma.ApiKeyLogOrderByWithRelationInput | Prisma.ApiKeyLogOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ApiKeyLogs. */ cursor?: Prisma.ApiKeyLogWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ApiKeyLogs 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` ApiKeyLogs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ApiKeyLogs. */ distinct?: Prisma.ApiKeyLogScalarFieldEnum | Prisma.ApiKeyLogScalarFieldEnum[] } /** * ApiKeyLog create */ export type ApiKeyLogCreateArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null /** * The data needed to create a ApiKeyLog. */ data: Prisma.XOR } /** * ApiKeyLog createMany */ export type ApiKeyLogCreateManyArgs = { /** * The data used to create many ApiKeyLogs. */ data: Prisma.ApiKeyLogCreateManyInput | Prisma.ApiKeyLogCreateManyInput[] skipDuplicates?: boolean } /** * ApiKeyLog createManyAndReturn */ export type ApiKeyLogCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelectCreateManyAndReturn | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * The data used to create many ApiKeyLogs. */ data: Prisma.ApiKeyLogCreateManyInput | Prisma.ApiKeyLogCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogIncludeCreateManyAndReturn | null } /** * ApiKeyLog update */ export type ApiKeyLogUpdateArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null /** * The data needed to update a ApiKeyLog. */ data: Prisma.XOR /** * Choose, which ApiKeyLog to update. */ where: Prisma.ApiKeyLogWhereUniqueInput } /** * ApiKeyLog updateMany */ export type ApiKeyLogUpdateManyArgs = { /** * The data used to update ApiKeyLogs. */ data: Prisma.XOR /** * Filter which ApiKeyLogs to update */ where?: Prisma.ApiKeyLogWhereInput /** * Limit how many ApiKeyLogs to update. */ limit?: number } /** * ApiKeyLog updateManyAndReturn */ export type ApiKeyLogUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelectUpdateManyAndReturn | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * The data used to update ApiKeyLogs. */ data: Prisma.XOR /** * Filter which ApiKeyLogs to update */ where?: Prisma.ApiKeyLogWhereInput /** * Limit how many ApiKeyLogs to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogIncludeUpdateManyAndReturn | null } /** * ApiKeyLog upsert */ export type ApiKeyLogUpsertArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null /** * The filter to search for the ApiKeyLog to update in case it exists. */ where: Prisma.ApiKeyLogWhereUniqueInput /** * In case the ApiKeyLog found by the `where` argument doesn't exist, create a new ApiKeyLog with this data. */ create: Prisma.XOR /** * In case the ApiKeyLog was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ApiKeyLog delete */ export type ApiKeyLogDeleteArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null /** * Filter which ApiKeyLog to delete. */ where: Prisma.ApiKeyLogWhereUniqueInput } /** * ApiKeyLog deleteMany */ export type ApiKeyLogDeleteManyArgs = { /** * Filter which ApiKeyLogs to delete */ where?: Prisma.ApiKeyLogWhereInput /** * Limit how many ApiKeyLogs to delete. */ limit?: number } /** * ApiKeyLog.apiKey */ export type ApiKeyLog$apiKeyArgs = { /** * Select specific fields to fetch from the ApiKey */ select?: Prisma.ApiKeySelect | null /** * Omit specific fields from the ApiKey */ omit?: Prisma.ApiKeyOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyInclude | null where?: Prisma.ApiKeyWhereInput } /** * ApiKeyLog.tenant */ export type ApiKeyLog$tenantArgs = { /** * Select specific fields to fetch from the Tenant */ select?: Prisma.TenantSelect | null /** * Omit specific fields from the Tenant */ omit?: Prisma.TenantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInclude | null where?: Prisma.TenantWhereInput } /** * ApiKeyLog without action */ export type ApiKeyLogDefaultArgs = { /** * Select specific fields to fetch from the ApiKeyLog */ select?: Prisma.ApiKeyLogSelect | null /** * Omit specific fields from the ApiKeyLog */ omit?: Prisma.ApiKeyLogOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ApiKeyLogInclude | null }