/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `KnowledgeBase` 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 KnowledgeBase * */ export type KnowledgeBaseModel = runtime.Types.Result.DefaultSelection export type AggregateKnowledgeBase = { _count: KnowledgeBaseCountAggregateOutputType | null _avg: KnowledgeBaseAvgAggregateOutputType | null _sum: KnowledgeBaseSumAggregateOutputType | null _min: KnowledgeBaseMinAggregateOutputType | null _max: KnowledgeBaseMaxAggregateOutputType | null } export type KnowledgeBaseAvgAggregateOutputType = { color: number | null } export type KnowledgeBaseSumAggregateOutputType = { color: number | null } export type KnowledgeBaseMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null ownerKey: string | null basePath: string | null slug: string | null title: string | null description: string | null defaultLanguage: string | null layout: string | null color: number | null enabled: boolean | null languages: string | null links: string | null logo: string | null seoImage: string | null } export type KnowledgeBaseMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null ownerKey: string | null basePath: string | null slug: string | null title: string | null description: string | null defaultLanguage: string | null layout: string | null color: number | null enabled: boolean | null languages: string | null links: string | null logo: string | null seoImage: string | null } export type KnowledgeBaseCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number ownerKey: number basePath: number slug: number title: number description: number defaultLanguage: number layout: number color: number enabled: number languages: number links: number logo: number seoImage: number _all: number } export type KnowledgeBaseAvgAggregateInputType = { color?: true } export type KnowledgeBaseSumAggregateInputType = { color?: true } export type KnowledgeBaseMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true ownerKey?: true basePath?: true slug?: true title?: true description?: true defaultLanguage?: true layout?: true color?: true enabled?: true languages?: true links?: true logo?: true seoImage?: true } export type KnowledgeBaseMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true ownerKey?: true basePath?: true slug?: true title?: true description?: true defaultLanguage?: true layout?: true color?: true enabled?: true languages?: true links?: true logo?: true seoImage?: true } export type KnowledgeBaseCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true ownerKey?: true basePath?: true slug?: true title?: true description?: true defaultLanguage?: true layout?: true color?: true enabled?: true languages?: true links?: true logo?: true seoImage?: true _all?: true } export type KnowledgeBaseAggregateArgs = { /** * Filter which KnowledgeBase to aggregate. */ where?: Prisma.KnowledgeBaseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KnowledgeBases to fetch. */ orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.KnowledgeBaseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KnowledgeBases 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` KnowledgeBases. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned KnowledgeBases **/ _count?: true | KnowledgeBaseCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: KnowledgeBaseAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: KnowledgeBaseSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: KnowledgeBaseMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: KnowledgeBaseMaxAggregateInputType } export type GetKnowledgeBaseAggregateType = { [P in keyof T & keyof AggregateKnowledgeBase]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type KnowledgeBaseGroupByArgs = { where?: Prisma.KnowledgeBaseWhereInput orderBy?: Prisma.KnowledgeBaseOrderByWithAggregationInput | Prisma.KnowledgeBaseOrderByWithAggregationInput[] by: Prisma.KnowledgeBaseScalarFieldEnum[] | Prisma.KnowledgeBaseScalarFieldEnum having?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput take?: number skip?: number _count?: KnowledgeBaseCountAggregateInputType | true _avg?: KnowledgeBaseAvgAggregateInputType _sum?: KnowledgeBaseSumAggregateInputType _min?: KnowledgeBaseMinAggregateInputType _max?: KnowledgeBaseMaxAggregateInputType } export type KnowledgeBaseGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string | null ownerKey: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string _count: KnowledgeBaseCountAggregateOutputType | null _avg: KnowledgeBaseAvgAggregateOutputType | null _sum: KnowledgeBaseSumAggregateOutputType | null _min: KnowledgeBaseMinAggregateOutputType | null _max: KnowledgeBaseMaxAggregateOutputType | null } export type GetKnowledgeBaseGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof KnowledgeBaseGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type KnowledgeBaseWhereInput = { AND?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[] OR?: Prisma.KnowledgeBaseWhereInput[] NOT?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[] id?: Prisma.StringFilter<"KnowledgeBase"> | string createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string tenantId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null ownerKey?: Prisma.StringFilter<"KnowledgeBase"> | string basePath?: Prisma.StringFilter<"KnowledgeBase"> | string slug?: Prisma.StringFilter<"KnowledgeBase"> | string title?: Prisma.StringFilter<"KnowledgeBase"> | string description?: Prisma.StringFilter<"KnowledgeBase"> | string defaultLanguage?: Prisma.StringFilter<"KnowledgeBase"> | string layout?: Prisma.StringFilter<"KnowledgeBase"> | string color?: Prisma.IntFilter<"KnowledgeBase"> | number enabled?: Prisma.BoolFilter<"KnowledgeBase"> | boolean languages?: Prisma.StringFilter<"KnowledgeBase"> | string links?: Prisma.StringFilter<"KnowledgeBase"> | string logo?: Prisma.StringFilter<"KnowledgeBase"> | string seoImage?: Prisma.StringFilter<"KnowledgeBase"> | string tenant?: Prisma.XOR | null categories?: Prisma.KnowledgeBaseCategoryListRelationFilter articles?: Prisma.KnowledgeBaseArticleListRelationFilter views?: Prisma.KnowledgeBaseViewsListRelationFilter } export type KnowledgeBaseOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder ownerKey?: Prisma.SortOrder basePath?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder defaultLanguage?: Prisma.SortOrder layout?: Prisma.SortOrder color?: Prisma.SortOrder enabled?: Prisma.SortOrder languages?: Prisma.SortOrder links?: Prisma.SortOrder logo?: Prisma.SortOrder seoImage?: Prisma.SortOrder tenant?: Prisma.TenantOrderByWithRelationInput categories?: Prisma.KnowledgeBaseCategoryOrderByRelationAggregateInput articles?: Prisma.KnowledgeBaseArticleOrderByRelationAggregateInput views?: Prisma.KnowledgeBaseViewsOrderByRelationAggregateInput } export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{ id?: string ownerKey_slug?: Prisma.KnowledgeBaseOwnerKeySlugCompoundUniqueInput AND?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[] OR?: Prisma.KnowledgeBaseWhereInput[] NOT?: Prisma.KnowledgeBaseWhereInput | Prisma.KnowledgeBaseWhereInput[] createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string tenantId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null ownerKey?: Prisma.StringFilter<"KnowledgeBase"> | string basePath?: Prisma.StringFilter<"KnowledgeBase"> | string slug?: Prisma.StringFilter<"KnowledgeBase"> | string title?: Prisma.StringFilter<"KnowledgeBase"> | string description?: Prisma.StringFilter<"KnowledgeBase"> | string defaultLanguage?: Prisma.StringFilter<"KnowledgeBase"> | string layout?: Prisma.StringFilter<"KnowledgeBase"> | string color?: Prisma.IntFilter<"KnowledgeBase"> | number enabled?: Prisma.BoolFilter<"KnowledgeBase"> | boolean languages?: Prisma.StringFilter<"KnowledgeBase"> | string links?: Prisma.StringFilter<"KnowledgeBase"> | string logo?: Prisma.StringFilter<"KnowledgeBase"> | string seoImage?: Prisma.StringFilter<"KnowledgeBase"> | string tenant?: Prisma.XOR | null categories?: Prisma.KnowledgeBaseCategoryListRelationFilter articles?: Prisma.KnowledgeBaseArticleListRelationFilter views?: Prisma.KnowledgeBaseViewsListRelationFilter }, "id" | "ownerKey_slug"> export type KnowledgeBaseOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder ownerKey?: Prisma.SortOrder basePath?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder defaultLanguage?: Prisma.SortOrder layout?: Prisma.SortOrder color?: Prisma.SortOrder enabled?: Prisma.SortOrder languages?: Prisma.SortOrder links?: Prisma.SortOrder logo?: Prisma.SortOrder seoImage?: Prisma.SortOrder _count?: Prisma.KnowledgeBaseCountOrderByAggregateInput _avg?: Prisma.KnowledgeBaseAvgOrderByAggregateInput _max?: Prisma.KnowledgeBaseMaxOrderByAggregateInput _min?: Prisma.KnowledgeBaseMinOrderByAggregateInput _sum?: Prisma.KnowledgeBaseSumOrderByAggregateInput } export type KnowledgeBaseScalarWhereWithAggregatesInput = { AND?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseScalarWhereWithAggregatesInput[] OR?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput[] NOT?: Prisma.KnowledgeBaseScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBase"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBase"> | Date | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeBase"> | string | null ownerKey?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string basePath?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string slug?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string title?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string description?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string defaultLanguage?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string layout?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string color?: Prisma.IntWithAggregatesFilter<"KnowledgeBase"> | number enabled?: Prisma.BoolWithAggregatesFilter<"KnowledgeBase"> | boolean languages?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string links?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string logo?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string seoImage?: Prisma.StringWithAggregatesFilter<"KnowledgeBase"> | string } export type KnowledgeBaseCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string tenant?: Prisma.TenantCreateNestedOneWithoutKnowledgeBasesInput categories?: Prisma.KnowledgeBaseCategoryCreateNestedManyWithoutKnowledgeBaseInput articles?: Prisma.KnowledgeBaseArticleCreateNestedManyWithoutKnowledgeBaseInput views?: Prisma.KnowledgeBaseViewsCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string categories?: Prisma.KnowledgeBaseCategoryUncheckedCreateNestedManyWithoutKnowledgeBaseInput articles?: Prisma.KnowledgeBaseArticleUncheckedCreateNestedManyWithoutKnowledgeBaseInput views?: Prisma.KnowledgeBaseViewsUncheckedCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string tenant?: Prisma.TenantUpdateOneWithoutKnowledgeBasesNestedInput categories?: Prisma.KnowledgeBaseCategoryUpdateManyWithoutKnowledgeBaseNestedInput articles?: Prisma.KnowledgeBaseArticleUpdateManyWithoutKnowledgeBaseNestedInput views?: Prisma.KnowledgeBaseViewsUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string categories?: Prisma.KnowledgeBaseCategoryUncheckedUpdateManyWithoutKnowledgeBaseNestedInput articles?: Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseNestedInput views?: Prisma.KnowledgeBaseViewsUncheckedUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string } export type KnowledgeBaseUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string } export type KnowledgeBaseUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string } export type KnowledgeBaseListRelationFilter = { every?: Prisma.KnowledgeBaseWhereInput some?: Prisma.KnowledgeBaseWhereInput none?: Prisma.KnowledgeBaseWhereInput } export type KnowledgeBaseOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type KnowledgeBaseOwnerKeySlugCompoundUniqueInput = { ownerKey: string slug: string } export type KnowledgeBaseCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder ownerKey?: Prisma.SortOrder basePath?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder defaultLanguage?: Prisma.SortOrder layout?: Prisma.SortOrder color?: Prisma.SortOrder enabled?: Prisma.SortOrder languages?: Prisma.SortOrder links?: Prisma.SortOrder logo?: Prisma.SortOrder seoImage?: Prisma.SortOrder } export type KnowledgeBaseAvgOrderByAggregateInput = { color?: Prisma.SortOrder } export type KnowledgeBaseMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder ownerKey?: Prisma.SortOrder basePath?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder defaultLanguage?: Prisma.SortOrder layout?: Prisma.SortOrder color?: Prisma.SortOrder enabled?: Prisma.SortOrder languages?: Prisma.SortOrder links?: Prisma.SortOrder logo?: Prisma.SortOrder seoImage?: Prisma.SortOrder } export type KnowledgeBaseMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder ownerKey?: Prisma.SortOrder basePath?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder defaultLanguage?: Prisma.SortOrder layout?: Prisma.SortOrder color?: Prisma.SortOrder enabled?: Prisma.SortOrder languages?: Prisma.SortOrder links?: Prisma.SortOrder logo?: Prisma.SortOrder seoImage?: Prisma.SortOrder } export type KnowledgeBaseSumOrderByAggregateInput = { color?: Prisma.SortOrder } export type KnowledgeBaseScalarRelationFilter = { is?: Prisma.KnowledgeBaseWhereInput isNot?: Prisma.KnowledgeBaseWhereInput } export type KnowledgeBaseCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseCreateWithoutTenantInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput | Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput[] createMany?: Prisma.KnowledgeBaseCreateManyTenantInputEnvelope connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] } export type KnowledgeBaseUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseCreateWithoutTenantInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput | Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput[] createMany?: Prisma.KnowledgeBaseCreateManyTenantInputEnvelope connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] } export type KnowledgeBaseUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseCreateWithoutTenantInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput | Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput[] upsert?: Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.KnowledgeBaseCreateManyTenantInputEnvelope set?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] delete?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] update?: Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.KnowledgeBaseUpdateManyWithWhereWithoutTenantInput | Prisma.KnowledgeBaseUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[] } export type KnowledgeBaseUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseCreateWithoutTenantInput[] | Prisma.KnowledgeBaseUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput | Prisma.KnowledgeBaseCreateOrConnectWithoutTenantInput[] upsert?: Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput | Prisma.KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.KnowledgeBaseCreateManyTenantInputEnvelope set?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] delete?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] connect?: Prisma.KnowledgeBaseWhereUniqueInput | Prisma.KnowledgeBaseWhereUniqueInput[] update?: Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput | Prisma.KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.KnowledgeBaseUpdateManyWithWhereWithoutTenantInput | Prisma.KnowledgeBaseUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[] } export type KnowledgeBaseCreateNestedOneWithoutCategoriesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutCategoriesInput connect?: Prisma.KnowledgeBaseWhereUniqueInput } export type KnowledgeBaseUpdateOneRequiredWithoutCategoriesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutCategoriesInput upsert?: Prisma.KnowledgeBaseUpsertWithoutCategoriesInput connect?: Prisma.KnowledgeBaseWhereUniqueInput update?: Prisma.XOR, Prisma.KnowledgeBaseUncheckedUpdateWithoutCategoriesInput> } export type KnowledgeBaseCreateNestedOneWithoutArticlesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutArticlesInput connect?: Prisma.KnowledgeBaseWhereUniqueInput } export type KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutArticlesInput upsert?: Prisma.KnowledgeBaseUpsertWithoutArticlesInput connect?: Prisma.KnowledgeBaseWhereUniqueInput update?: Prisma.XOR, Prisma.KnowledgeBaseUncheckedUpdateWithoutArticlesInput> } export type KnowledgeBaseCreateNestedOneWithoutViewsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutViewsInput connect?: Prisma.KnowledgeBaseWhereUniqueInput } export type KnowledgeBaseUpdateOneRequiredWithoutViewsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutViewsInput upsert?: Prisma.KnowledgeBaseUpsertWithoutViewsInput connect?: Prisma.KnowledgeBaseWhereUniqueInput update?: Prisma.XOR, Prisma.KnowledgeBaseUncheckedUpdateWithoutViewsInput> } export type KnowledgeBaseCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string categories?: Prisma.KnowledgeBaseCategoryCreateNestedManyWithoutKnowledgeBaseInput articles?: Prisma.KnowledgeBaseArticleCreateNestedManyWithoutKnowledgeBaseInput views?: Prisma.KnowledgeBaseViewsCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string categories?: Prisma.KnowledgeBaseCategoryUncheckedCreateNestedManyWithoutKnowledgeBaseInput articles?: Prisma.KnowledgeBaseArticleUncheckedCreateNestedManyWithoutKnowledgeBaseInput views?: Prisma.KnowledgeBaseViewsUncheckedCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseCreateOrConnectWithoutTenantInput = { where: Prisma.KnowledgeBaseWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseCreateManyTenantInputEnvelope = { data: Prisma.KnowledgeBaseCreateManyTenantInput | Prisma.KnowledgeBaseCreateManyTenantInput[] skipDuplicates?: boolean } export type KnowledgeBaseUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.KnowledgeBaseWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type KnowledgeBaseUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.KnowledgeBaseWhereUniqueInput data: Prisma.XOR } export type KnowledgeBaseUpdateManyWithWhereWithoutTenantInput = { where: Prisma.KnowledgeBaseScalarWhereInput data: Prisma.XOR } export type KnowledgeBaseScalarWhereInput = { AND?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[] OR?: Prisma.KnowledgeBaseScalarWhereInput[] NOT?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[] id?: Prisma.StringFilter<"KnowledgeBase"> | string createdAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string tenantId?: Prisma.StringNullableFilter<"KnowledgeBase"> | string | null ownerKey?: Prisma.StringFilter<"KnowledgeBase"> | string basePath?: Prisma.StringFilter<"KnowledgeBase"> | string slug?: Prisma.StringFilter<"KnowledgeBase"> | string title?: Prisma.StringFilter<"KnowledgeBase"> | string description?: Prisma.StringFilter<"KnowledgeBase"> | string defaultLanguage?: Prisma.StringFilter<"KnowledgeBase"> | string layout?: Prisma.StringFilter<"KnowledgeBase"> | string color?: Prisma.IntFilter<"KnowledgeBase"> | number enabled?: Prisma.BoolFilter<"KnowledgeBase"> | boolean languages?: Prisma.StringFilter<"KnowledgeBase"> | string links?: Prisma.StringFilter<"KnowledgeBase"> | string logo?: Prisma.StringFilter<"KnowledgeBase"> | string seoImage?: Prisma.StringFilter<"KnowledgeBase"> | string } export type KnowledgeBaseCreateWithoutCategoriesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string tenant?: Prisma.TenantCreateNestedOneWithoutKnowledgeBasesInput articles?: Prisma.KnowledgeBaseArticleCreateNestedManyWithoutKnowledgeBaseInput views?: Prisma.KnowledgeBaseViewsCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseUncheckedCreateWithoutCategoriesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string articles?: Prisma.KnowledgeBaseArticleUncheckedCreateNestedManyWithoutKnowledgeBaseInput views?: Prisma.KnowledgeBaseViewsUncheckedCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseCreateOrConnectWithoutCategoriesInput = { where: Prisma.KnowledgeBaseWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseUpsertWithoutCategoriesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.KnowledgeBaseWhereInput } export type KnowledgeBaseUpdateToOneWithWhereWithoutCategoriesInput = { where?: Prisma.KnowledgeBaseWhereInput data: Prisma.XOR } export type KnowledgeBaseUpdateWithoutCategoriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string tenant?: Prisma.TenantUpdateOneWithoutKnowledgeBasesNestedInput articles?: Prisma.KnowledgeBaseArticleUpdateManyWithoutKnowledgeBaseNestedInput views?: Prisma.KnowledgeBaseViewsUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseUncheckedUpdateWithoutCategoriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string articles?: Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseNestedInput views?: Prisma.KnowledgeBaseViewsUncheckedUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseCreateWithoutArticlesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string tenant?: Prisma.TenantCreateNestedOneWithoutKnowledgeBasesInput categories?: Prisma.KnowledgeBaseCategoryCreateNestedManyWithoutKnowledgeBaseInput views?: Prisma.KnowledgeBaseViewsCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseUncheckedCreateWithoutArticlesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string categories?: Prisma.KnowledgeBaseCategoryUncheckedCreateNestedManyWithoutKnowledgeBaseInput views?: Prisma.KnowledgeBaseViewsUncheckedCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseCreateOrConnectWithoutArticlesInput = { where: Prisma.KnowledgeBaseWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseUpsertWithoutArticlesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.KnowledgeBaseWhereInput } export type KnowledgeBaseUpdateToOneWithWhereWithoutArticlesInput = { where?: Prisma.KnowledgeBaseWhereInput data: Prisma.XOR } export type KnowledgeBaseUpdateWithoutArticlesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string tenant?: Prisma.TenantUpdateOneWithoutKnowledgeBasesNestedInput categories?: Prisma.KnowledgeBaseCategoryUpdateManyWithoutKnowledgeBaseNestedInput views?: Prisma.KnowledgeBaseViewsUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseUncheckedUpdateWithoutArticlesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string categories?: Prisma.KnowledgeBaseCategoryUncheckedUpdateManyWithoutKnowledgeBaseNestedInput views?: Prisma.KnowledgeBaseViewsUncheckedUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseCreateWithoutViewsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string tenant?: Prisma.TenantCreateNestedOneWithoutKnowledgeBasesInput categories?: Prisma.KnowledgeBaseCategoryCreateNestedManyWithoutKnowledgeBaseInput articles?: Prisma.KnowledgeBaseArticleCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseUncheckedCreateWithoutViewsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string categories?: Prisma.KnowledgeBaseCategoryUncheckedCreateNestedManyWithoutKnowledgeBaseInput articles?: Prisma.KnowledgeBaseArticleUncheckedCreateNestedManyWithoutKnowledgeBaseInput } export type KnowledgeBaseCreateOrConnectWithoutViewsInput = { where: Prisma.KnowledgeBaseWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseUpsertWithoutViewsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.KnowledgeBaseWhereInput } export type KnowledgeBaseUpdateToOneWithWhereWithoutViewsInput = { where?: Prisma.KnowledgeBaseWhereInput data: Prisma.XOR } export type KnowledgeBaseUpdateWithoutViewsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string tenant?: Prisma.TenantUpdateOneWithoutKnowledgeBasesNestedInput categories?: Prisma.KnowledgeBaseCategoryUpdateManyWithoutKnowledgeBaseNestedInput articles?: Prisma.KnowledgeBaseArticleUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseUncheckedUpdateWithoutViewsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string categories?: Prisma.KnowledgeBaseCategoryUncheckedUpdateManyWithoutKnowledgeBaseNestedInput articles?: Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseCreateManyTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string ownerKey?: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string } export type KnowledgeBaseUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string categories?: Prisma.KnowledgeBaseCategoryUpdateManyWithoutKnowledgeBaseNestedInput articles?: Prisma.KnowledgeBaseArticleUpdateManyWithoutKnowledgeBaseNestedInput views?: Prisma.KnowledgeBaseViewsUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string categories?: Prisma.KnowledgeBaseCategoryUncheckedUpdateManyWithoutKnowledgeBaseNestedInput articles?: Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseNestedInput views?: Prisma.KnowledgeBaseViewsUncheckedUpdateManyWithoutKnowledgeBaseNestedInput } export type KnowledgeBaseUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string ownerKey?: Prisma.StringFieldUpdateOperationsInput | string basePath?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string defaultLanguage?: Prisma.StringFieldUpdateOperationsInput | string layout?: Prisma.StringFieldUpdateOperationsInput | string color?: Prisma.IntFieldUpdateOperationsInput | number enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean languages?: Prisma.StringFieldUpdateOperationsInput | string links?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.StringFieldUpdateOperationsInput | string seoImage?: Prisma.StringFieldUpdateOperationsInput | string } /** * Count Type KnowledgeBaseCountOutputType */ export type KnowledgeBaseCountOutputType = { categories: number articles: number views: number } export type KnowledgeBaseCountOutputTypeSelect = { categories?: boolean | KnowledgeBaseCountOutputTypeCountCategoriesArgs articles?: boolean | KnowledgeBaseCountOutputTypeCountArticlesArgs views?: boolean | KnowledgeBaseCountOutputTypeCountViewsArgs } /** * KnowledgeBaseCountOutputType without action */ export type KnowledgeBaseCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the KnowledgeBaseCountOutputType */ select?: Prisma.KnowledgeBaseCountOutputTypeSelect | null } /** * KnowledgeBaseCountOutputType without action */ export type KnowledgeBaseCountOutputTypeCountCategoriesArgs = { where?: Prisma.KnowledgeBaseCategoryWhereInput } /** * KnowledgeBaseCountOutputType without action */ export type KnowledgeBaseCountOutputTypeCountArticlesArgs = { where?: Prisma.KnowledgeBaseArticleWhereInput } /** * KnowledgeBaseCountOutputType without action */ export type KnowledgeBaseCountOutputTypeCountViewsArgs = { where?: Prisma.KnowledgeBaseViewsWhereInput } export type KnowledgeBaseSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean ownerKey?: boolean basePath?: boolean slug?: boolean title?: boolean description?: boolean defaultLanguage?: boolean layout?: boolean color?: boolean enabled?: boolean languages?: boolean links?: boolean logo?: boolean seoImage?: boolean tenant?: boolean | Prisma.KnowledgeBase$tenantArgs categories?: boolean | Prisma.KnowledgeBase$categoriesArgs articles?: boolean | Prisma.KnowledgeBase$articlesArgs views?: boolean | Prisma.KnowledgeBase$viewsArgs _count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs }, ExtArgs["result"]["knowledgeBase"]> export type KnowledgeBaseSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean ownerKey?: boolean basePath?: boolean slug?: boolean title?: boolean description?: boolean defaultLanguage?: boolean layout?: boolean color?: boolean enabled?: boolean languages?: boolean links?: boolean logo?: boolean seoImage?: boolean tenant?: boolean | Prisma.KnowledgeBase$tenantArgs }, ExtArgs["result"]["knowledgeBase"]> export type KnowledgeBaseSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean ownerKey?: boolean basePath?: boolean slug?: boolean title?: boolean description?: boolean defaultLanguage?: boolean layout?: boolean color?: boolean enabled?: boolean languages?: boolean links?: boolean logo?: boolean seoImage?: boolean tenant?: boolean | Prisma.KnowledgeBase$tenantArgs }, ExtArgs["result"]["knowledgeBase"]> export type KnowledgeBaseSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean ownerKey?: boolean basePath?: boolean slug?: boolean title?: boolean description?: boolean defaultLanguage?: boolean layout?: boolean color?: boolean enabled?: boolean languages?: boolean links?: boolean logo?: boolean seoImage?: boolean } export type KnowledgeBaseOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "ownerKey" | "basePath" | "slug" | "title" | "description" | "defaultLanguage" | "layout" | "color" | "enabled" | "languages" | "links" | "logo" | "seoImage", ExtArgs["result"]["knowledgeBase"]> export type KnowledgeBaseInclude = { tenant?: boolean | Prisma.KnowledgeBase$tenantArgs categories?: boolean | Prisma.KnowledgeBase$categoriesArgs articles?: boolean | Prisma.KnowledgeBase$articlesArgs views?: boolean | Prisma.KnowledgeBase$viewsArgs _count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs } export type KnowledgeBaseIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.KnowledgeBase$tenantArgs } export type KnowledgeBaseIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.KnowledgeBase$tenantArgs } export type $KnowledgeBasePayload = { name: "KnowledgeBase" objects: { tenant: Prisma.$TenantPayload | null categories: Prisma.$KnowledgeBaseCategoryPayload[] articles: Prisma.$KnowledgeBaseArticlePayload[] views: Prisma.$KnowledgeBaseViewsPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string | null ownerKey: string basePath: string slug: string title: string description: string defaultLanguage: string layout: string color: number enabled: boolean languages: string links: string logo: string seoImage: string }, ExtArgs["result"]["knowledgeBase"]> composites: {} } export type KnowledgeBaseGetPayload = runtime.Types.Result.GetResult export type KnowledgeBaseCountArgs = Omit & { select?: KnowledgeBaseCountAggregateInputType | true } export interface KnowledgeBaseDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['KnowledgeBase'], meta: { name: 'KnowledgeBase' } } /** * Find zero or one KnowledgeBase that matches the filter. * @param {KnowledgeBaseFindUniqueArgs} args - Arguments to find a KnowledgeBase * @example * // Get one KnowledgeBase * const knowledgeBase = await prisma.knowledgeBase.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one KnowledgeBase that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {KnowledgeBaseFindUniqueOrThrowArgs} args - Arguments to find a KnowledgeBase * @example * // Get one KnowledgeBase * const knowledgeBase = await prisma.knowledgeBase.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first KnowledgeBase 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 {KnowledgeBaseFindFirstArgs} args - Arguments to find a KnowledgeBase * @example * // Get one KnowledgeBase * const knowledgeBase = await prisma.knowledgeBase.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first KnowledgeBase 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 {KnowledgeBaseFindFirstOrThrowArgs} args - Arguments to find a KnowledgeBase * @example * // Get one KnowledgeBase * const knowledgeBase = await prisma.knowledgeBase.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more KnowledgeBases 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 {KnowledgeBaseFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all KnowledgeBases * const knowledgeBases = await prisma.knowledgeBase.findMany() * * // Get first 10 KnowledgeBases * const knowledgeBases = await prisma.knowledgeBase.findMany({ take: 10 }) * * // Only select the `id` * const knowledgeBaseWithIdOnly = await prisma.knowledgeBase.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a KnowledgeBase. * @param {KnowledgeBaseCreateArgs} args - Arguments to create a KnowledgeBase. * @example * // Create one KnowledgeBase * const KnowledgeBase = await prisma.knowledgeBase.create({ * data: { * // ... data to create a KnowledgeBase * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many KnowledgeBases. * @param {KnowledgeBaseCreateManyArgs} args - Arguments to create many KnowledgeBases. * @example * // Create many KnowledgeBases * const knowledgeBase = await prisma.knowledgeBase.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many KnowledgeBases and returns the data saved in the database. * @param {KnowledgeBaseCreateManyAndReturnArgs} args - Arguments to create many KnowledgeBases. * @example * // Create many KnowledgeBases * const knowledgeBase = await prisma.knowledgeBase.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many KnowledgeBases and only return the `id` * const knowledgeBaseWithIdOnly = await prisma.knowledgeBase.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 KnowledgeBase. * @param {KnowledgeBaseDeleteArgs} args - Arguments to delete one KnowledgeBase. * @example * // Delete one KnowledgeBase * const KnowledgeBase = await prisma.knowledgeBase.delete({ * where: { * // ... filter to delete one KnowledgeBase * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one KnowledgeBase. * @param {KnowledgeBaseUpdateArgs} args - Arguments to update one KnowledgeBase. * @example * // Update one KnowledgeBase * const knowledgeBase = await prisma.knowledgeBase.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more KnowledgeBases. * @param {KnowledgeBaseDeleteManyArgs} args - Arguments to filter KnowledgeBases to delete. * @example * // Delete a few KnowledgeBases * const { count } = await prisma.knowledgeBase.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more KnowledgeBases. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KnowledgeBaseUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many KnowledgeBases * const knowledgeBase = await prisma.knowledgeBase.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more KnowledgeBases and returns the data updated in the database. * @param {KnowledgeBaseUpdateManyAndReturnArgs} args - Arguments to update many KnowledgeBases. * @example * // Update many KnowledgeBases * const knowledgeBase = await prisma.knowledgeBase.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more KnowledgeBases and only return the `id` * const knowledgeBaseWithIdOnly = await prisma.knowledgeBase.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 KnowledgeBase. * @param {KnowledgeBaseUpsertArgs} args - Arguments to update or create a KnowledgeBase. * @example * // Update or create a KnowledgeBase * const knowledgeBase = await prisma.knowledgeBase.upsert({ * create: { * // ... data to create a KnowledgeBase * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the KnowledgeBase we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of KnowledgeBases. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KnowledgeBaseCountArgs} args - Arguments to filter KnowledgeBases to count. * @example * // Count the number of KnowledgeBases * const count = await prisma.knowledgeBase.count({ * where: { * // ... the filter for the KnowledgeBases 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 KnowledgeBase. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KnowledgeBaseAggregateArgs} 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 KnowledgeBase. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KnowledgeBaseGroupByArgs} 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 KnowledgeBaseGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: KnowledgeBaseGroupByArgs['orderBy'] } : { orderBy?: KnowledgeBaseGroupByArgs['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 ? GetKnowledgeBaseGroupByPayload : Prisma.PrismaPromise /** * Fields of the KnowledgeBase model */ readonly fields: KnowledgeBaseFieldRefs; } /** * The delegate class that acts as a "Promise-like" for KnowledgeBase. * 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__KnowledgeBaseClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> categories = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> articles = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> views = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the KnowledgeBase model */ export interface KnowledgeBaseFieldRefs { readonly id: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly createdAt: Prisma.FieldRef<"KnowledgeBase", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"KnowledgeBase", 'DateTime'> readonly tenantId: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly ownerKey: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly basePath: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly slug: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly title: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly description: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly defaultLanguage: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly layout: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly color: Prisma.FieldRef<"KnowledgeBase", 'Int'> readonly enabled: Prisma.FieldRef<"KnowledgeBase", 'Boolean'> readonly languages: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly links: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly logo: Prisma.FieldRef<"KnowledgeBase", 'String'> readonly seoImage: Prisma.FieldRef<"KnowledgeBase", 'String'> } // Custom InputTypes /** * KnowledgeBase findUnique */ export type KnowledgeBaseFindUniqueArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null /** * Filter, which KnowledgeBase to fetch. */ where: Prisma.KnowledgeBaseWhereUniqueInput } /** * KnowledgeBase findUniqueOrThrow */ export type KnowledgeBaseFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null /** * Filter, which KnowledgeBase to fetch. */ where: Prisma.KnowledgeBaseWhereUniqueInput } /** * KnowledgeBase findFirst */ export type KnowledgeBaseFindFirstArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null /** * Filter, which KnowledgeBase to fetch. */ where?: Prisma.KnowledgeBaseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KnowledgeBases to fetch. */ orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for KnowledgeBases. */ cursor?: Prisma.KnowledgeBaseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KnowledgeBases 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` KnowledgeBases. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of KnowledgeBases. */ distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[] } /** * KnowledgeBase findFirstOrThrow */ export type KnowledgeBaseFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null /** * Filter, which KnowledgeBase to fetch. */ where?: Prisma.KnowledgeBaseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KnowledgeBases to fetch. */ orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for KnowledgeBases. */ cursor?: Prisma.KnowledgeBaseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KnowledgeBases 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` KnowledgeBases. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of KnowledgeBases. */ distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[] } /** * KnowledgeBase findMany */ export type KnowledgeBaseFindManyArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null /** * Filter, which KnowledgeBases to fetch. */ where?: Prisma.KnowledgeBaseWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KnowledgeBases to fetch. */ orderBy?: Prisma.KnowledgeBaseOrderByWithRelationInput | Prisma.KnowledgeBaseOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing KnowledgeBases. */ cursor?: Prisma.KnowledgeBaseWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KnowledgeBases 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` KnowledgeBases. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of KnowledgeBases. */ distinct?: Prisma.KnowledgeBaseScalarFieldEnum | Prisma.KnowledgeBaseScalarFieldEnum[] } /** * KnowledgeBase create */ export type KnowledgeBaseCreateArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null /** * The data needed to create a KnowledgeBase. */ data: Prisma.XOR } /** * KnowledgeBase createMany */ export type KnowledgeBaseCreateManyArgs = { /** * The data used to create many KnowledgeBases. */ data: Prisma.KnowledgeBaseCreateManyInput | Prisma.KnowledgeBaseCreateManyInput[] skipDuplicates?: boolean } /** * KnowledgeBase createManyAndReturn */ export type KnowledgeBaseCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelectCreateManyAndReturn | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * The data used to create many KnowledgeBases. */ data: Prisma.KnowledgeBaseCreateManyInput | Prisma.KnowledgeBaseCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseIncludeCreateManyAndReturn | null } /** * KnowledgeBase update */ export type KnowledgeBaseUpdateArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null /** * The data needed to update a KnowledgeBase. */ data: Prisma.XOR /** * Choose, which KnowledgeBase to update. */ where: Prisma.KnowledgeBaseWhereUniqueInput } /** * KnowledgeBase updateMany */ export type KnowledgeBaseUpdateManyArgs = { /** * The data used to update KnowledgeBases. */ data: Prisma.XOR /** * Filter which KnowledgeBases to update */ where?: Prisma.KnowledgeBaseWhereInput /** * Limit how many KnowledgeBases to update. */ limit?: number } /** * KnowledgeBase updateManyAndReturn */ export type KnowledgeBaseUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelectUpdateManyAndReturn | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * The data used to update KnowledgeBases. */ data: Prisma.XOR /** * Filter which KnowledgeBases to update */ where?: Prisma.KnowledgeBaseWhereInput /** * Limit how many KnowledgeBases to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseIncludeUpdateManyAndReturn | null } /** * KnowledgeBase upsert */ export type KnowledgeBaseUpsertArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null /** * The filter to search for the KnowledgeBase to update in case it exists. */ where: Prisma.KnowledgeBaseWhereUniqueInput /** * In case the KnowledgeBase found by the `where` argument doesn't exist, create a new KnowledgeBase with this data. */ create: Prisma.XOR /** * In case the KnowledgeBase was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * KnowledgeBase delete */ export type KnowledgeBaseDeleteArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null /** * Filter which KnowledgeBase to delete. */ where: Prisma.KnowledgeBaseWhereUniqueInput } /** * KnowledgeBase deleteMany */ export type KnowledgeBaseDeleteManyArgs = { /** * Filter which KnowledgeBases to delete */ where?: Prisma.KnowledgeBaseWhereInput /** * Limit how many KnowledgeBases to delete. */ limit?: number } /** * KnowledgeBase.tenant */ export type KnowledgeBase$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 } /** * KnowledgeBase.categories */ export type KnowledgeBase$categoriesArgs = { /** * Select specific fields to fetch from the KnowledgeBaseCategory */ select?: Prisma.KnowledgeBaseCategorySelect | null /** * Omit specific fields from the KnowledgeBaseCategory */ omit?: Prisma.KnowledgeBaseCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseCategoryInclude | null where?: Prisma.KnowledgeBaseCategoryWhereInput orderBy?: Prisma.KnowledgeBaseCategoryOrderByWithRelationInput | Prisma.KnowledgeBaseCategoryOrderByWithRelationInput[] cursor?: Prisma.KnowledgeBaseCategoryWhereUniqueInput take?: number skip?: number distinct?: Prisma.KnowledgeBaseCategoryScalarFieldEnum | Prisma.KnowledgeBaseCategoryScalarFieldEnum[] } /** * KnowledgeBase.articles */ export type KnowledgeBase$articlesArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null where?: Prisma.KnowledgeBaseArticleWhereInput orderBy?: Prisma.KnowledgeBaseArticleOrderByWithRelationInput | Prisma.KnowledgeBaseArticleOrderByWithRelationInput[] cursor?: Prisma.KnowledgeBaseArticleWhereUniqueInput take?: number skip?: number distinct?: Prisma.KnowledgeBaseArticleScalarFieldEnum | Prisma.KnowledgeBaseArticleScalarFieldEnum[] } /** * KnowledgeBase.views */ export type KnowledgeBase$viewsArgs = { /** * Select specific fields to fetch from the KnowledgeBaseViews */ select?: Prisma.KnowledgeBaseViewsSelect | null /** * Omit specific fields from the KnowledgeBaseViews */ omit?: Prisma.KnowledgeBaseViewsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseViewsInclude | null where?: Prisma.KnowledgeBaseViewsWhereInput orderBy?: Prisma.KnowledgeBaseViewsOrderByWithRelationInput | Prisma.KnowledgeBaseViewsOrderByWithRelationInput[] cursor?: Prisma.KnowledgeBaseViewsWhereUniqueInput take?: number skip?: number distinct?: Prisma.KnowledgeBaseViewsScalarFieldEnum | Prisma.KnowledgeBaseViewsScalarFieldEnum[] } /** * KnowledgeBase without action */ export type KnowledgeBaseDefaultArgs = { /** * Select specific fields to fetch from the KnowledgeBase */ select?: Prisma.KnowledgeBaseSelect | null /** * Omit specific fields from the KnowledgeBase */ omit?: Prisma.KnowledgeBaseOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseInclude | null }