@allbluecn/database 0.4.15 → 0.4.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/generated/browser.ts +10 -0
  2. package/generated/client.ts +10 -0
  3. package/generated/commonInputTypes.ts +34 -0
  4. package/generated/internal/class.ts +24 -4
  5. package/generated/internal/prismaNamespace.ts +191 -1
  6. package/generated/internal/prismaNamespaceBrowser.ts +26 -0
  7. package/generated/models/KnowledgeBase.ts +138 -0
  8. package/generated/models/Project.ts +158 -0
  9. package/generated/models/ProjectKnowledgeBase.ts +1430 -0
  10. package/generated/models/Story.ts +270 -0
  11. package/generated/models/StoryAttachment.ts +110 -1
  12. package/generated/models/StoryExternalLink.ts +1352 -0
  13. package/generated/models.ts +2 -0
  14. package/generated-sqlite/browser.ts +5 -0
  15. package/generated-sqlite/client.ts +5 -0
  16. package/generated-sqlite/internal/class.ts +14 -4
  17. package/generated-sqlite/internal/prismaNamespace.ts +87 -1
  18. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +11 -0
  19. package/generated-sqlite/models/KnowledgeBase.ts +138 -0
  20. package/generated-sqlite/models/Project.ts +150 -0
  21. package/generated-sqlite/models/ProjectKnowledgeBase.ts +1426 -0
  22. package/generated-sqlite/models.ts +1 -0
  23. package/migrations/20260831063744_project_knowledge_base/migration.sql +24 -0
  24. package/migrations/20260831123150_story_external_link/migration.sql +19 -0
  25. package/migrations/20260831151740_story_attachment_bytes/migration.sql +2 -0
  26. package/migrations/20260901010000_story_attachment_description/migration.sql +2 -0
  27. package/package.json +2 -2
  28. package/schema.prisma +51 -13
  29. package/schema.sqlite.prisma +25 -7
@@ -0,0 +1,1426 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `ProjectKnowledgeBase` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model ProjectKnowledgeBase
17
+ *
18
+ */
19
+ export type ProjectKnowledgeBaseModel = runtime.Types.Result.DefaultSelection<Prisma.$ProjectKnowledgeBasePayload>
20
+
21
+ export type AggregateProjectKnowledgeBase = {
22
+ _count: ProjectKnowledgeBaseCountAggregateOutputType | null
23
+ _min: ProjectKnowledgeBaseMinAggregateOutputType | null
24
+ _max: ProjectKnowledgeBaseMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type ProjectKnowledgeBaseMinAggregateOutputType = {
28
+ id: string | null
29
+ projectId: string | null
30
+ kbId: string | null
31
+ createdAt: Date | null
32
+ }
33
+
34
+ export type ProjectKnowledgeBaseMaxAggregateOutputType = {
35
+ id: string | null
36
+ projectId: string | null
37
+ kbId: string | null
38
+ createdAt: Date | null
39
+ }
40
+
41
+ export type ProjectKnowledgeBaseCountAggregateOutputType = {
42
+ id: number
43
+ projectId: number
44
+ kbId: number
45
+ createdAt: number
46
+ _all: number
47
+ }
48
+
49
+
50
+ export type ProjectKnowledgeBaseMinAggregateInputType = {
51
+ id?: true
52
+ projectId?: true
53
+ kbId?: true
54
+ createdAt?: true
55
+ }
56
+
57
+ export type ProjectKnowledgeBaseMaxAggregateInputType = {
58
+ id?: true
59
+ projectId?: true
60
+ kbId?: true
61
+ createdAt?: true
62
+ }
63
+
64
+ export type ProjectKnowledgeBaseCountAggregateInputType = {
65
+ id?: true
66
+ projectId?: true
67
+ kbId?: true
68
+ createdAt?: true
69
+ _all?: true
70
+ }
71
+
72
+ export type ProjectKnowledgeBaseAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
73
+ /**
74
+ * Filter which ProjectKnowledgeBase to aggregate.
75
+ */
76
+ where?: Prisma.ProjectKnowledgeBaseWhereInput
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
79
+ *
80
+ * Determine the order of ProjectKnowledgeBases to fetch.
81
+ */
82
+ orderBy?: Prisma.ProjectKnowledgeBaseOrderByWithRelationInput | Prisma.ProjectKnowledgeBaseOrderByWithRelationInput[]
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
85
+ *
86
+ * Sets the start position
87
+ */
88
+ cursor?: Prisma.ProjectKnowledgeBaseWhereUniqueInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Take `±n` ProjectKnowledgeBases from the position of the cursor.
93
+ */
94
+ take?: number
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
97
+ *
98
+ * Skip the first `n` ProjectKnowledgeBases.
99
+ */
100
+ skip?: number
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Count returned ProjectKnowledgeBases
105
+ **/
106
+ _count?: true | ProjectKnowledgeBaseCountAggregateInputType
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to find the minimum value
111
+ **/
112
+ _min?: ProjectKnowledgeBaseMinAggregateInputType
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Select which fields to find the maximum value
117
+ **/
118
+ _max?: ProjectKnowledgeBaseMaxAggregateInputType
119
+ }
120
+
121
+ export type GetProjectKnowledgeBaseAggregateType<T extends ProjectKnowledgeBaseAggregateArgs> = {
122
+ [P in keyof T & keyof AggregateProjectKnowledgeBase]: P extends '_count' | 'count'
123
+ ? T[P] extends true
124
+ ? number
125
+ : Prisma.GetScalarType<T[P], AggregateProjectKnowledgeBase[P]>
126
+ : Prisma.GetScalarType<T[P], AggregateProjectKnowledgeBase[P]>
127
+ }
128
+
129
+
130
+
131
+
132
+ export type ProjectKnowledgeBaseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
133
+ where?: Prisma.ProjectKnowledgeBaseWhereInput
134
+ orderBy?: Prisma.ProjectKnowledgeBaseOrderByWithAggregationInput | Prisma.ProjectKnowledgeBaseOrderByWithAggregationInput[]
135
+ by: Prisma.ProjectKnowledgeBaseScalarFieldEnum[] | Prisma.ProjectKnowledgeBaseScalarFieldEnum
136
+ having?: Prisma.ProjectKnowledgeBaseScalarWhereWithAggregatesInput
137
+ take?: number
138
+ skip?: number
139
+ _count?: ProjectKnowledgeBaseCountAggregateInputType | true
140
+ _min?: ProjectKnowledgeBaseMinAggregateInputType
141
+ _max?: ProjectKnowledgeBaseMaxAggregateInputType
142
+ }
143
+
144
+ export type ProjectKnowledgeBaseGroupByOutputType = {
145
+ id: string
146
+ projectId: string
147
+ kbId: string
148
+ createdAt: Date
149
+ _count: ProjectKnowledgeBaseCountAggregateOutputType | null
150
+ _min: ProjectKnowledgeBaseMinAggregateOutputType | null
151
+ _max: ProjectKnowledgeBaseMaxAggregateOutputType | null
152
+ }
153
+
154
+ export type GetProjectKnowledgeBaseGroupByPayload<T extends ProjectKnowledgeBaseGroupByArgs> = Prisma.PrismaPromise<
155
+ Array<
156
+ Prisma.PickEnumerable<ProjectKnowledgeBaseGroupByOutputType, T['by']> &
157
+ {
158
+ [P in ((keyof T) & (keyof ProjectKnowledgeBaseGroupByOutputType))]: P extends '_count'
159
+ ? T[P] extends boolean
160
+ ? number
161
+ : Prisma.GetScalarType<T[P], ProjectKnowledgeBaseGroupByOutputType[P]>
162
+ : Prisma.GetScalarType<T[P], ProjectKnowledgeBaseGroupByOutputType[P]>
163
+ }
164
+ >
165
+ >
166
+
167
+
168
+
169
+ export type ProjectKnowledgeBaseWhereInput = {
170
+ AND?: Prisma.ProjectKnowledgeBaseWhereInput | Prisma.ProjectKnowledgeBaseWhereInput[]
171
+ OR?: Prisma.ProjectKnowledgeBaseWhereInput[]
172
+ NOT?: Prisma.ProjectKnowledgeBaseWhereInput | Prisma.ProjectKnowledgeBaseWhereInput[]
173
+ id?: Prisma.StringFilter<"ProjectKnowledgeBase"> | string
174
+ projectId?: Prisma.StringFilter<"ProjectKnowledgeBase"> | string
175
+ kbId?: Prisma.StringFilter<"ProjectKnowledgeBase"> | string
176
+ createdAt?: Prisma.DateTimeFilter<"ProjectKnowledgeBase"> | Date | string
177
+ project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
178
+ kb?: Prisma.XOR<Prisma.KnowledgeBaseScalarRelationFilter, Prisma.KnowledgeBaseWhereInput>
179
+ }
180
+
181
+ export type ProjectKnowledgeBaseOrderByWithRelationInput = {
182
+ id?: Prisma.SortOrder
183
+ projectId?: Prisma.SortOrder
184
+ kbId?: Prisma.SortOrder
185
+ createdAt?: Prisma.SortOrder
186
+ project?: Prisma.ProjectOrderByWithRelationInput
187
+ kb?: Prisma.KnowledgeBaseOrderByWithRelationInput
188
+ }
189
+
190
+ export type ProjectKnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
191
+ id?: string
192
+ projectId_kbId?: Prisma.ProjectKnowledgeBaseProjectIdKbIdCompoundUniqueInput
193
+ AND?: Prisma.ProjectKnowledgeBaseWhereInput | Prisma.ProjectKnowledgeBaseWhereInput[]
194
+ OR?: Prisma.ProjectKnowledgeBaseWhereInput[]
195
+ NOT?: Prisma.ProjectKnowledgeBaseWhereInput | Prisma.ProjectKnowledgeBaseWhereInput[]
196
+ projectId?: Prisma.StringFilter<"ProjectKnowledgeBase"> | string
197
+ kbId?: Prisma.StringFilter<"ProjectKnowledgeBase"> | string
198
+ createdAt?: Prisma.DateTimeFilter<"ProjectKnowledgeBase"> | Date | string
199
+ project?: Prisma.XOR<Prisma.ProjectScalarRelationFilter, Prisma.ProjectWhereInput>
200
+ kb?: Prisma.XOR<Prisma.KnowledgeBaseScalarRelationFilter, Prisma.KnowledgeBaseWhereInput>
201
+ }, "id" | "projectId_kbId">
202
+
203
+ export type ProjectKnowledgeBaseOrderByWithAggregationInput = {
204
+ id?: Prisma.SortOrder
205
+ projectId?: Prisma.SortOrder
206
+ kbId?: Prisma.SortOrder
207
+ createdAt?: Prisma.SortOrder
208
+ _count?: Prisma.ProjectKnowledgeBaseCountOrderByAggregateInput
209
+ _max?: Prisma.ProjectKnowledgeBaseMaxOrderByAggregateInput
210
+ _min?: Prisma.ProjectKnowledgeBaseMinOrderByAggregateInput
211
+ }
212
+
213
+ export type ProjectKnowledgeBaseScalarWhereWithAggregatesInput = {
214
+ AND?: Prisma.ProjectKnowledgeBaseScalarWhereWithAggregatesInput | Prisma.ProjectKnowledgeBaseScalarWhereWithAggregatesInput[]
215
+ OR?: Prisma.ProjectKnowledgeBaseScalarWhereWithAggregatesInput[]
216
+ NOT?: Prisma.ProjectKnowledgeBaseScalarWhereWithAggregatesInput | Prisma.ProjectKnowledgeBaseScalarWhereWithAggregatesInput[]
217
+ id?: Prisma.StringWithAggregatesFilter<"ProjectKnowledgeBase"> | string
218
+ projectId?: Prisma.StringWithAggregatesFilter<"ProjectKnowledgeBase"> | string
219
+ kbId?: Prisma.StringWithAggregatesFilter<"ProjectKnowledgeBase"> | string
220
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProjectKnowledgeBase"> | Date | string
221
+ }
222
+
223
+ export type ProjectKnowledgeBaseCreateInput = {
224
+ id?: string
225
+ createdAt?: Date | string
226
+ project: Prisma.ProjectCreateNestedOneWithoutKnowledgeBasesInput
227
+ kb: Prisma.KnowledgeBaseCreateNestedOneWithoutProjectLinksInput
228
+ }
229
+
230
+ export type ProjectKnowledgeBaseUncheckedCreateInput = {
231
+ id?: string
232
+ projectId: string
233
+ kbId: string
234
+ createdAt?: Date | string
235
+ }
236
+
237
+ export type ProjectKnowledgeBaseUpdateInput = {
238
+ id?: Prisma.StringFieldUpdateOperationsInput | string
239
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
240
+ project?: Prisma.ProjectUpdateOneRequiredWithoutKnowledgeBasesNestedInput
241
+ kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutProjectLinksNestedInput
242
+ }
243
+
244
+ export type ProjectKnowledgeBaseUncheckedUpdateInput = {
245
+ id?: Prisma.StringFieldUpdateOperationsInput | string
246
+ projectId?: Prisma.StringFieldUpdateOperationsInput | string
247
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
248
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
249
+ }
250
+
251
+ export type ProjectKnowledgeBaseCreateManyInput = {
252
+ id?: string
253
+ projectId: string
254
+ kbId: string
255
+ createdAt?: Date | string
256
+ }
257
+
258
+ export type ProjectKnowledgeBaseUpdateManyMutationInput = {
259
+ id?: Prisma.StringFieldUpdateOperationsInput | string
260
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
261
+ }
262
+
263
+ export type ProjectKnowledgeBaseUncheckedUpdateManyInput = {
264
+ id?: Prisma.StringFieldUpdateOperationsInput | string
265
+ projectId?: Prisma.StringFieldUpdateOperationsInput | string
266
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
267
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
268
+ }
269
+
270
+ export type ProjectKnowledgeBaseListRelationFilter = {
271
+ every?: Prisma.ProjectKnowledgeBaseWhereInput
272
+ some?: Prisma.ProjectKnowledgeBaseWhereInput
273
+ none?: Prisma.ProjectKnowledgeBaseWhereInput
274
+ }
275
+
276
+ export type ProjectKnowledgeBaseOrderByRelationAggregateInput = {
277
+ _count?: Prisma.SortOrder
278
+ }
279
+
280
+ export type ProjectKnowledgeBaseProjectIdKbIdCompoundUniqueInput = {
281
+ projectId: string
282
+ kbId: string
283
+ }
284
+
285
+ export type ProjectKnowledgeBaseCountOrderByAggregateInput = {
286
+ id?: Prisma.SortOrder
287
+ projectId?: Prisma.SortOrder
288
+ kbId?: Prisma.SortOrder
289
+ createdAt?: Prisma.SortOrder
290
+ }
291
+
292
+ export type ProjectKnowledgeBaseMaxOrderByAggregateInput = {
293
+ id?: Prisma.SortOrder
294
+ projectId?: Prisma.SortOrder
295
+ kbId?: Prisma.SortOrder
296
+ createdAt?: Prisma.SortOrder
297
+ }
298
+
299
+ export type ProjectKnowledgeBaseMinOrderByAggregateInput = {
300
+ id?: Prisma.SortOrder
301
+ projectId?: Prisma.SortOrder
302
+ kbId?: Prisma.SortOrder
303
+ createdAt?: Prisma.SortOrder
304
+ }
305
+
306
+ export type ProjectKnowledgeBaseCreateNestedManyWithoutProjectInput = {
307
+ create?: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput> | Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput[] | Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput[]
308
+ connectOrCreate?: Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutProjectInput | Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutProjectInput[]
309
+ createMany?: Prisma.ProjectKnowledgeBaseCreateManyProjectInputEnvelope
310
+ connect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
311
+ }
312
+
313
+ export type ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutProjectInput = {
314
+ create?: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput> | Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput[] | Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput[]
315
+ connectOrCreate?: Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutProjectInput | Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutProjectInput[]
316
+ createMany?: Prisma.ProjectKnowledgeBaseCreateManyProjectInputEnvelope
317
+ connect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
318
+ }
319
+
320
+ export type ProjectKnowledgeBaseUpdateManyWithoutProjectNestedInput = {
321
+ create?: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput> | Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput[] | Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput[]
322
+ connectOrCreate?: Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutProjectInput | Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutProjectInput[]
323
+ upsert?: Prisma.ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutProjectInput | Prisma.ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutProjectInput[]
324
+ createMany?: Prisma.ProjectKnowledgeBaseCreateManyProjectInputEnvelope
325
+ set?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
326
+ disconnect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
327
+ delete?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
328
+ connect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
329
+ update?: Prisma.ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutProjectInput | Prisma.ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutProjectInput[]
330
+ updateMany?: Prisma.ProjectKnowledgeBaseUpdateManyWithWhereWithoutProjectInput | Prisma.ProjectKnowledgeBaseUpdateManyWithWhereWithoutProjectInput[]
331
+ deleteMany?: Prisma.ProjectKnowledgeBaseScalarWhereInput | Prisma.ProjectKnowledgeBaseScalarWhereInput[]
332
+ }
333
+
334
+ export type ProjectKnowledgeBaseUncheckedUpdateManyWithoutProjectNestedInput = {
335
+ create?: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput> | Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput[] | Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput[]
336
+ connectOrCreate?: Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutProjectInput | Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutProjectInput[]
337
+ upsert?: Prisma.ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutProjectInput | Prisma.ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutProjectInput[]
338
+ createMany?: Prisma.ProjectKnowledgeBaseCreateManyProjectInputEnvelope
339
+ set?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
340
+ disconnect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
341
+ delete?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
342
+ connect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
343
+ update?: Prisma.ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutProjectInput | Prisma.ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutProjectInput[]
344
+ updateMany?: Prisma.ProjectKnowledgeBaseUpdateManyWithWhereWithoutProjectInput | Prisma.ProjectKnowledgeBaseUpdateManyWithWhereWithoutProjectInput[]
345
+ deleteMany?: Prisma.ProjectKnowledgeBaseScalarWhereInput | Prisma.ProjectKnowledgeBaseScalarWhereInput[]
346
+ }
347
+
348
+ export type ProjectKnowledgeBaseCreateNestedManyWithoutKbInput = {
349
+ create?: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutKbInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput> | Prisma.ProjectKnowledgeBaseCreateWithoutKbInput[] | Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput[]
350
+ connectOrCreate?: Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutKbInput | Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutKbInput[]
351
+ createMany?: Prisma.ProjectKnowledgeBaseCreateManyKbInputEnvelope
352
+ connect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
353
+ }
354
+
355
+ export type ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput = {
356
+ create?: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutKbInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput> | Prisma.ProjectKnowledgeBaseCreateWithoutKbInput[] | Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput[]
357
+ connectOrCreate?: Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutKbInput | Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutKbInput[]
358
+ createMany?: Prisma.ProjectKnowledgeBaseCreateManyKbInputEnvelope
359
+ connect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
360
+ }
361
+
362
+ export type ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput = {
363
+ create?: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutKbInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput> | Prisma.ProjectKnowledgeBaseCreateWithoutKbInput[] | Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput[]
364
+ connectOrCreate?: Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutKbInput | Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutKbInput[]
365
+ upsert?: Prisma.ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutKbInput | Prisma.ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutKbInput[]
366
+ createMany?: Prisma.ProjectKnowledgeBaseCreateManyKbInputEnvelope
367
+ set?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
368
+ disconnect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
369
+ delete?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
370
+ connect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
371
+ update?: Prisma.ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutKbInput | Prisma.ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutKbInput[]
372
+ updateMany?: Prisma.ProjectKnowledgeBaseUpdateManyWithWhereWithoutKbInput | Prisma.ProjectKnowledgeBaseUpdateManyWithWhereWithoutKbInput[]
373
+ deleteMany?: Prisma.ProjectKnowledgeBaseScalarWhereInput | Prisma.ProjectKnowledgeBaseScalarWhereInput[]
374
+ }
375
+
376
+ export type ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput = {
377
+ create?: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutKbInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput> | Prisma.ProjectKnowledgeBaseCreateWithoutKbInput[] | Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput[]
378
+ connectOrCreate?: Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutKbInput | Prisma.ProjectKnowledgeBaseCreateOrConnectWithoutKbInput[]
379
+ upsert?: Prisma.ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutKbInput | Prisma.ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutKbInput[]
380
+ createMany?: Prisma.ProjectKnowledgeBaseCreateManyKbInputEnvelope
381
+ set?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
382
+ disconnect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
383
+ delete?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
384
+ connect?: Prisma.ProjectKnowledgeBaseWhereUniqueInput | Prisma.ProjectKnowledgeBaseWhereUniqueInput[]
385
+ update?: Prisma.ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutKbInput | Prisma.ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutKbInput[]
386
+ updateMany?: Prisma.ProjectKnowledgeBaseUpdateManyWithWhereWithoutKbInput | Prisma.ProjectKnowledgeBaseUpdateManyWithWhereWithoutKbInput[]
387
+ deleteMany?: Prisma.ProjectKnowledgeBaseScalarWhereInput | Prisma.ProjectKnowledgeBaseScalarWhereInput[]
388
+ }
389
+
390
+ export type ProjectKnowledgeBaseCreateWithoutProjectInput = {
391
+ id?: string
392
+ createdAt?: Date | string
393
+ kb: Prisma.KnowledgeBaseCreateNestedOneWithoutProjectLinksInput
394
+ }
395
+
396
+ export type ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput = {
397
+ id?: string
398
+ kbId: string
399
+ createdAt?: Date | string
400
+ }
401
+
402
+ export type ProjectKnowledgeBaseCreateOrConnectWithoutProjectInput = {
403
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
404
+ create: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput>
405
+ }
406
+
407
+ export type ProjectKnowledgeBaseCreateManyProjectInputEnvelope = {
408
+ data: Prisma.ProjectKnowledgeBaseCreateManyProjectInput | Prisma.ProjectKnowledgeBaseCreateManyProjectInput[]
409
+ }
410
+
411
+ export type ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutProjectInput = {
412
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
413
+ update: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateWithoutProjectInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateWithoutProjectInput>
414
+ create: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutProjectInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutProjectInput>
415
+ }
416
+
417
+ export type ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutProjectInput = {
418
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
419
+ data: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateWithoutProjectInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateWithoutProjectInput>
420
+ }
421
+
422
+ export type ProjectKnowledgeBaseUpdateManyWithWhereWithoutProjectInput = {
423
+ where: Prisma.ProjectKnowledgeBaseScalarWhereInput
424
+ data: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateManyMutationInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutProjectInput>
425
+ }
426
+
427
+ export type ProjectKnowledgeBaseScalarWhereInput = {
428
+ AND?: Prisma.ProjectKnowledgeBaseScalarWhereInput | Prisma.ProjectKnowledgeBaseScalarWhereInput[]
429
+ OR?: Prisma.ProjectKnowledgeBaseScalarWhereInput[]
430
+ NOT?: Prisma.ProjectKnowledgeBaseScalarWhereInput | Prisma.ProjectKnowledgeBaseScalarWhereInput[]
431
+ id?: Prisma.StringFilter<"ProjectKnowledgeBase"> | string
432
+ projectId?: Prisma.StringFilter<"ProjectKnowledgeBase"> | string
433
+ kbId?: Prisma.StringFilter<"ProjectKnowledgeBase"> | string
434
+ createdAt?: Prisma.DateTimeFilter<"ProjectKnowledgeBase"> | Date | string
435
+ }
436
+
437
+ export type ProjectKnowledgeBaseCreateWithoutKbInput = {
438
+ id?: string
439
+ createdAt?: Date | string
440
+ project: Prisma.ProjectCreateNestedOneWithoutKnowledgeBasesInput
441
+ }
442
+
443
+ export type ProjectKnowledgeBaseUncheckedCreateWithoutKbInput = {
444
+ id?: string
445
+ projectId: string
446
+ createdAt?: Date | string
447
+ }
448
+
449
+ export type ProjectKnowledgeBaseCreateOrConnectWithoutKbInput = {
450
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
451
+ create: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutKbInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput>
452
+ }
453
+
454
+ export type ProjectKnowledgeBaseCreateManyKbInputEnvelope = {
455
+ data: Prisma.ProjectKnowledgeBaseCreateManyKbInput | Prisma.ProjectKnowledgeBaseCreateManyKbInput[]
456
+ }
457
+
458
+ export type ProjectKnowledgeBaseUpsertWithWhereUniqueWithoutKbInput = {
459
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
460
+ update: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateWithoutKbInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateWithoutKbInput>
461
+ create: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateWithoutKbInput, Prisma.ProjectKnowledgeBaseUncheckedCreateWithoutKbInput>
462
+ }
463
+
464
+ export type ProjectKnowledgeBaseUpdateWithWhereUniqueWithoutKbInput = {
465
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
466
+ data: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateWithoutKbInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateWithoutKbInput>
467
+ }
468
+
469
+ export type ProjectKnowledgeBaseUpdateManyWithWhereWithoutKbInput = {
470
+ where: Prisma.ProjectKnowledgeBaseScalarWhereInput
471
+ data: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateManyMutationInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbInput>
472
+ }
473
+
474
+ export type ProjectKnowledgeBaseCreateManyProjectInput = {
475
+ id?: string
476
+ kbId: string
477
+ createdAt?: Date | string
478
+ }
479
+
480
+ export type ProjectKnowledgeBaseUpdateWithoutProjectInput = {
481
+ id?: Prisma.StringFieldUpdateOperationsInput | string
482
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
483
+ kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutProjectLinksNestedInput
484
+ }
485
+
486
+ export type ProjectKnowledgeBaseUncheckedUpdateWithoutProjectInput = {
487
+ id?: Prisma.StringFieldUpdateOperationsInput | string
488
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
489
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
490
+ }
491
+
492
+ export type ProjectKnowledgeBaseUncheckedUpdateManyWithoutProjectInput = {
493
+ id?: Prisma.StringFieldUpdateOperationsInput | string
494
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
495
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
496
+ }
497
+
498
+ export type ProjectKnowledgeBaseCreateManyKbInput = {
499
+ id?: string
500
+ projectId: string
501
+ createdAt?: Date | string
502
+ }
503
+
504
+ export type ProjectKnowledgeBaseUpdateWithoutKbInput = {
505
+ id?: Prisma.StringFieldUpdateOperationsInput | string
506
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
507
+ project?: Prisma.ProjectUpdateOneRequiredWithoutKnowledgeBasesNestedInput
508
+ }
509
+
510
+ export type ProjectKnowledgeBaseUncheckedUpdateWithoutKbInput = {
511
+ id?: Prisma.StringFieldUpdateOperationsInput | string
512
+ projectId?: Prisma.StringFieldUpdateOperationsInput | string
513
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
514
+ }
515
+
516
+ export type ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbInput = {
517
+ id?: Prisma.StringFieldUpdateOperationsInput | string
518
+ projectId?: Prisma.StringFieldUpdateOperationsInput | string
519
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
520
+ }
521
+
522
+
523
+
524
+ export type ProjectKnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
525
+ id?: boolean
526
+ projectId?: boolean
527
+ kbId?: boolean
528
+ createdAt?: boolean
529
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
530
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
531
+ }, ExtArgs["result"]["projectKnowledgeBase"]>
532
+
533
+ export type ProjectKnowledgeBaseSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
534
+ id?: boolean
535
+ projectId?: boolean
536
+ kbId?: boolean
537
+ createdAt?: boolean
538
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
539
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
540
+ }, ExtArgs["result"]["projectKnowledgeBase"]>
541
+
542
+ export type ProjectKnowledgeBaseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
543
+ id?: boolean
544
+ projectId?: boolean
545
+ kbId?: boolean
546
+ createdAt?: boolean
547
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
548
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
549
+ }, ExtArgs["result"]["projectKnowledgeBase"]>
550
+
551
+ export type ProjectKnowledgeBaseSelectScalar = {
552
+ id?: boolean
553
+ projectId?: boolean
554
+ kbId?: boolean
555
+ createdAt?: boolean
556
+ }
557
+
558
+ export type ProjectKnowledgeBaseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "projectId" | "kbId" | "createdAt", ExtArgs["result"]["projectKnowledgeBase"]>
559
+ export type ProjectKnowledgeBaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
560
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
561
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
562
+ }
563
+ export type ProjectKnowledgeBaseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
564
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
565
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
566
+ }
567
+ export type ProjectKnowledgeBaseIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
568
+ project?: boolean | Prisma.ProjectDefaultArgs<ExtArgs>
569
+ kb?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
570
+ }
571
+
572
+ export type $ProjectKnowledgeBasePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
573
+ name: "ProjectKnowledgeBase"
574
+ objects: {
575
+ project: Prisma.$ProjectPayload<ExtArgs>
576
+ kb: Prisma.$KnowledgeBasePayload<ExtArgs>
577
+ }
578
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
579
+ id: string
580
+ projectId: string
581
+ kbId: string
582
+ createdAt: Date
583
+ }, ExtArgs["result"]["projectKnowledgeBase"]>
584
+ composites: {}
585
+ }
586
+
587
+ export type ProjectKnowledgeBaseGetPayload<S extends boolean | null | undefined | ProjectKnowledgeBaseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload, S>
588
+
589
+ export type ProjectKnowledgeBaseCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
590
+ Omit<ProjectKnowledgeBaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
591
+ select?: ProjectKnowledgeBaseCountAggregateInputType | true
592
+ }
593
+
594
+ export interface ProjectKnowledgeBaseDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
595
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ProjectKnowledgeBase'], meta: { name: 'ProjectKnowledgeBase' } }
596
+ /**
597
+ * Find zero or one ProjectKnowledgeBase that matches the filter.
598
+ * @param {ProjectKnowledgeBaseFindUniqueArgs} args - Arguments to find a ProjectKnowledgeBase
599
+ * @example
600
+ * // Get one ProjectKnowledgeBase
601
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.findUnique({
602
+ * where: {
603
+ * // ... provide filter here
604
+ * }
605
+ * })
606
+ */
607
+ findUnique<T extends ProjectKnowledgeBaseFindUniqueArgs>(args: Prisma.SelectSubset<T, ProjectKnowledgeBaseFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProjectKnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
608
+
609
+ /**
610
+ * Find one ProjectKnowledgeBase that matches the filter or throw an error with `error.code='P2025'`
611
+ * if no matches were found.
612
+ * @param {ProjectKnowledgeBaseFindUniqueOrThrowArgs} args - Arguments to find a ProjectKnowledgeBase
613
+ * @example
614
+ * // Get one ProjectKnowledgeBase
615
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.findUniqueOrThrow({
616
+ * where: {
617
+ * // ... provide filter here
618
+ * }
619
+ * })
620
+ */
621
+ findUniqueOrThrow<T extends ProjectKnowledgeBaseFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProjectKnowledgeBaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProjectKnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
622
+
623
+ /**
624
+ * Find the first ProjectKnowledgeBase that matches the filter.
625
+ * Note, that providing `undefined` is treated as the value not being there.
626
+ * Read more here: https://pris.ly/d/null-undefined
627
+ * @param {ProjectKnowledgeBaseFindFirstArgs} args - Arguments to find a ProjectKnowledgeBase
628
+ * @example
629
+ * // Get one ProjectKnowledgeBase
630
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.findFirst({
631
+ * where: {
632
+ * // ... provide filter here
633
+ * }
634
+ * })
635
+ */
636
+ findFirst<T extends ProjectKnowledgeBaseFindFirstArgs>(args?: Prisma.SelectSubset<T, ProjectKnowledgeBaseFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProjectKnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
637
+
638
+ /**
639
+ * Find the first ProjectKnowledgeBase that matches the filter or
640
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
641
+ * Note, that providing `undefined` is treated as the value not being there.
642
+ * Read more here: https://pris.ly/d/null-undefined
643
+ * @param {ProjectKnowledgeBaseFindFirstOrThrowArgs} args - Arguments to find a ProjectKnowledgeBase
644
+ * @example
645
+ * // Get one ProjectKnowledgeBase
646
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.findFirstOrThrow({
647
+ * where: {
648
+ * // ... provide filter here
649
+ * }
650
+ * })
651
+ */
652
+ findFirstOrThrow<T extends ProjectKnowledgeBaseFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProjectKnowledgeBaseFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProjectKnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
653
+
654
+ /**
655
+ * Find zero or more ProjectKnowledgeBases that matches the filter.
656
+ * Note, that providing `undefined` is treated as the value not being there.
657
+ * Read more here: https://pris.ly/d/null-undefined
658
+ * @param {ProjectKnowledgeBaseFindManyArgs} args - Arguments to filter and select certain fields only.
659
+ * @example
660
+ * // Get all ProjectKnowledgeBases
661
+ * const projectKnowledgeBases = await prisma.projectKnowledgeBase.findMany()
662
+ *
663
+ * // Get first 10 ProjectKnowledgeBases
664
+ * const projectKnowledgeBases = await prisma.projectKnowledgeBase.findMany({ take: 10 })
665
+ *
666
+ * // Only select the `id`
667
+ * const projectKnowledgeBaseWithIdOnly = await prisma.projectKnowledgeBase.findMany({ select: { id: true } })
668
+ *
669
+ */
670
+ findMany<T extends ProjectKnowledgeBaseFindManyArgs>(args?: Prisma.SelectSubset<T, ProjectKnowledgeBaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
671
+
672
+ /**
673
+ * Create a ProjectKnowledgeBase.
674
+ * @param {ProjectKnowledgeBaseCreateArgs} args - Arguments to create a ProjectKnowledgeBase.
675
+ * @example
676
+ * // Create one ProjectKnowledgeBase
677
+ * const ProjectKnowledgeBase = await prisma.projectKnowledgeBase.create({
678
+ * data: {
679
+ * // ... data to create a ProjectKnowledgeBase
680
+ * }
681
+ * })
682
+ *
683
+ */
684
+ create<T extends ProjectKnowledgeBaseCreateArgs>(args: Prisma.SelectSubset<T, ProjectKnowledgeBaseCreateArgs<ExtArgs>>): Prisma.Prisma__ProjectKnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
685
+
686
+ /**
687
+ * Create many ProjectKnowledgeBases.
688
+ * @param {ProjectKnowledgeBaseCreateManyArgs} args - Arguments to create many ProjectKnowledgeBases.
689
+ * @example
690
+ * // Create many ProjectKnowledgeBases
691
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.createMany({
692
+ * data: [
693
+ * // ... provide data here
694
+ * ]
695
+ * })
696
+ *
697
+ */
698
+ createMany<T extends ProjectKnowledgeBaseCreateManyArgs>(args?: Prisma.SelectSubset<T, ProjectKnowledgeBaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
699
+
700
+ /**
701
+ * Create many ProjectKnowledgeBases and returns the data saved in the database.
702
+ * @param {ProjectKnowledgeBaseCreateManyAndReturnArgs} args - Arguments to create many ProjectKnowledgeBases.
703
+ * @example
704
+ * // Create many ProjectKnowledgeBases
705
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.createManyAndReturn({
706
+ * data: [
707
+ * // ... provide data here
708
+ * ]
709
+ * })
710
+ *
711
+ * // Create many ProjectKnowledgeBases and only return the `id`
712
+ * const projectKnowledgeBaseWithIdOnly = await prisma.projectKnowledgeBase.createManyAndReturn({
713
+ * select: { id: true },
714
+ * data: [
715
+ * // ... provide data here
716
+ * ]
717
+ * })
718
+ * Note, that providing `undefined` is treated as the value not being there.
719
+ * Read more here: https://pris.ly/d/null-undefined
720
+ *
721
+ */
722
+ createManyAndReturn<T extends ProjectKnowledgeBaseCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProjectKnowledgeBaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
723
+
724
+ /**
725
+ * Delete a ProjectKnowledgeBase.
726
+ * @param {ProjectKnowledgeBaseDeleteArgs} args - Arguments to delete one ProjectKnowledgeBase.
727
+ * @example
728
+ * // Delete one ProjectKnowledgeBase
729
+ * const ProjectKnowledgeBase = await prisma.projectKnowledgeBase.delete({
730
+ * where: {
731
+ * // ... filter to delete one ProjectKnowledgeBase
732
+ * }
733
+ * })
734
+ *
735
+ */
736
+ delete<T extends ProjectKnowledgeBaseDeleteArgs>(args: Prisma.SelectSubset<T, ProjectKnowledgeBaseDeleteArgs<ExtArgs>>): Prisma.Prisma__ProjectKnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
737
+
738
+ /**
739
+ * Update one ProjectKnowledgeBase.
740
+ * @param {ProjectKnowledgeBaseUpdateArgs} args - Arguments to update one ProjectKnowledgeBase.
741
+ * @example
742
+ * // Update one ProjectKnowledgeBase
743
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.update({
744
+ * where: {
745
+ * // ... provide filter here
746
+ * },
747
+ * data: {
748
+ * // ... provide data here
749
+ * }
750
+ * })
751
+ *
752
+ */
753
+ update<T extends ProjectKnowledgeBaseUpdateArgs>(args: Prisma.SelectSubset<T, ProjectKnowledgeBaseUpdateArgs<ExtArgs>>): Prisma.Prisma__ProjectKnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
754
+
755
+ /**
756
+ * Delete zero or more ProjectKnowledgeBases.
757
+ * @param {ProjectKnowledgeBaseDeleteManyArgs} args - Arguments to filter ProjectKnowledgeBases to delete.
758
+ * @example
759
+ * // Delete a few ProjectKnowledgeBases
760
+ * const { count } = await prisma.projectKnowledgeBase.deleteMany({
761
+ * where: {
762
+ * // ... provide filter here
763
+ * }
764
+ * })
765
+ *
766
+ */
767
+ deleteMany<T extends ProjectKnowledgeBaseDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProjectKnowledgeBaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
768
+
769
+ /**
770
+ * Update zero or more ProjectKnowledgeBases.
771
+ * Note, that providing `undefined` is treated as the value not being there.
772
+ * Read more here: https://pris.ly/d/null-undefined
773
+ * @param {ProjectKnowledgeBaseUpdateManyArgs} args - Arguments to update one or more rows.
774
+ * @example
775
+ * // Update many ProjectKnowledgeBases
776
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.updateMany({
777
+ * where: {
778
+ * // ... provide filter here
779
+ * },
780
+ * data: {
781
+ * // ... provide data here
782
+ * }
783
+ * })
784
+ *
785
+ */
786
+ updateMany<T extends ProjectKnowledgeBaseUpdateManyArgs>(args: Prisma.SelectSubset<T, ProjectKnowledgeBaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
787
+
788
+ /**
789
+ * Update zero or more ProjectKnowledgeBases and returns the data updated in the database.
790
+ * @param {ProjectKnowledgeBaseUpdateManyAndReturnArgs} args - Arguments to update many ProjectKnowledgeBases.
791
+ * @example
792
+ * // Update many ProjectKnowledgeBases
793
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.updateManyAndReturn({
794
+ * where: {
795
+ * // ... provide filter here
796
+ * },
797
+ * data: [
798
+ * // ... provide data here
799
+ * ]
800
+ * })
801
+ *
802
+ * // Update zero or more ProjectKnowledgeBases and only return the `id`
803
+ * const projectKnowledgeBaseWithIdOnly = await prisma.projectKnowledgeBase.updateManyAndReturn({
804
+ * select: { id: true },
805
+ * where: {
806
+ * // ... provide filter here
807
+ * },
808
+ * data: [
809
+ * // ... provide data here
810
+ * ]
811
+ * })
812
+ * Note, that providing `undefined` is treated as the value not being there.
813
+ * Read more here: https://pris.ly/d/null-undefined
814
+ *
815
+ */
816
+ updateManyAndReturn<T extends ProjectKnowledgeBaseUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProjectKnowledgeBaseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
817
+
818
+ /**
819
+ * Create or update one ProjectKnowledgeBase.
820
+ * @param {ProjectKnowledgeBaseUpsertArgs} args - Arguments to update or create a ProjectKnowledgeBase.
821
+ * @example
822
+ * // Update or create a ProjectKnowledgeBase
823
+ * const projectKnowledgeBase = await prisma.projectKnowledgeBase.upsert({
824
+ * create: {
825
+ * // ... data to create a ProjectKnowledgeBase
826
+ * },
827
+ * update: {
828
+ * // ... in case it already exists, update
829
+ * },
830
+ * where: {
831
+ * // ... the filter for the ProjectKnowledgeBase we want to update
832
+ * }
833
+ * })
834
+ */
835
+ upsert<T extends ProjectKnowledgeBaseUpsertArgs>(args: Prisma.SelectSubset<T, ProjectKnowledgeBaseUpsertArgs<ExtArgs>>): Prisma.Prisma__ProjectKnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
836
+
837
+
838
+ /**
839
+ * Count the number of ProjectKnowledgeBases.
840
+ * Note, that providing `undefined` is treated as the value not being there.
841
+ * Read more here: https://pris.ly/d/null-undefined
842
+ * @param {ProjectKnowledgeBaseCountArgs} args - Arguments to filter ProjectKnowledgeBases to count.
843
+ * @example
844
+ * // Count the number of ProjectKnowledgeBases
845
+ * const count = await prisma.projectKnowledgeBase.count({
846
+ * where: {
847
+ * // ... the filter for the ProjectKnowledgeBases we want to count
848
+ * }
849
+ * })
850
+ **/
851
+ count<T extends ProjectKnowledgeBaseCountArgs>(
852
+ args?: Prisma.Subset<T, ProjectKnowledgeBaseCountArgs>,
853
+ ): Prisma.PrismaPromise<
854
+ T extends runtime.Types.Utils.Record<'select', any>
855
+ ? T['select'] extends true
856
+ ? number
857
+ : Prisma.GetScalarType<T['select'], ProjectKnowledgeBaseCountAggregateOutputType>
858
+ : number
859
+ >
860
+
861
+ /**
862
+ * Allows you to perform aggregations operations on a ProjectKnowledgeBase.
863
+ * Note, that providing `undefined` is treated as the value not being there.
864
+ * Read more here: https://pris.ly/d/null-undefined
865
+ * @param {ProjectKnowledgeBaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
866
+ * @example
867
+ * // Ordered by age ascending
868
+ * // Where email contains prisma.io
869
+ * // Limited to the 10 users
870
+ * const aggregations = await prisma.user.aggregate({
871
+ * _avg: {
872
+ * age: true,
873
+ * },
874
+ * where: {
875
+ * email: {
876
+ * contains: "prisma.io",
877
+ * },
878
+ * },
879
+ * orderBy: {
880
+ * age: "asc",
881
+ * },
882
+ * take: 10,
883
+ * })
884
+ **/
885
+ aggregate<T extends ProjectKnowledgeBaseAggregateArgs>(args: Prisma.Subset<T, ProjectKnowledgeBaseAggregateArgs>): Prisma.PrismaPromise<GetProjectKnowledgeBaseAggregateType<T>>
886
+
887
+ /**
888
+ * Group by ProjectKnowledgeBase.
889
+ * Note, that providing `undefined` is treated as the value not being there.
890
+ * Read more here: https://pris.ly/d/null-undefined
891
+ * @param {ProjectKnowledgeBaseGroupByArgs} args - Group by arguments.
892
+ * @example
893
+ * // Group by city, order by createdAt, get count
894
+ * const result = await prisma.user.groupBy({
895
+ * by: ['city', 'createdAt'],
896
+ * orderBy: {
897
+ * createdAt: true
898
+ * },
899
+ * _count: {
900
+ * _all: true
901
+ * },
902
+ * })
903
+ *
904
+ **/
905
+ groupBy<
906
+ T extends ProjectKnowledgeBaseGroupByArgs,
907
+ HasSelectOrTake extends Prisma.Or<
908
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
909
+ Prisma.Extends<'take', Prisma.Keys<T>>
910
+ >,
911
+ OrderByArg extends Prisma.True extends HasSelectOrTake
912
+ ? { orderBy: ProjectKnowledgeBaseGroupByArgs['orderBy'] }
913
+ : { orderBy?: ProjectKnowledgeBaseGroupByArgs['orderBy'] },
914
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
915
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
916
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
917
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
918
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
919
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
920
+ InputErrors extends ByEmpty extends Prisma.True
921
+ ? `Error: "by" must not be empty.`
922
+ : HavingValid extends Prisma.False
923
+ ? {
924
+ [P in HavingFields]: P extends ByFields
925
+ ? never
926
+ : P extends string
927
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
928
+ : [
929
+ Error,
930
+ 'Field ',
931
+ P,
932
+ ` in "having" needs to be provided in "by"`,
933
+ ]
934
+ }[HavingFields]
935
+ : 'take' extends Prisma.Keys<T>
936
+ ? 'orderBy' extends Prisma.Keys<T>
937
+ ? ByValid extends Prisma.True
938
+ ? {}
939
+ : {
940
+ [P in OrderFields]: P extends ByFields
941
+ ? never
942
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
943
+ }[OrderFields]
944
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
945
+ : 'skip' extends Prisma.Keys<T>
946
+ ? 'orderBy' extends Prisma.Keys<T>
947
+ ? ByValid extends Prisma.True
948
+ ? {}
949
+ : {
950
+ [P in OrderFields]: P extends ByFields
951
+ ? never
952
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
953
+ }[OrderFields]
954
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
955
+ : ByValid extends Prisma.True
956
+ ? {}
957
+ : {
958
+ [P in OrderFields]: P extends ByFields
959
+ ? never
960
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
961
+ }[OrderFields]
962
+ >(args: Prisma.SubsetIntersection<T, ProjectKnowledgeBaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProjectKnowledgeBaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
963
+ /**
964
+ * Fields of the ProjectKnowledgeBase model
965
+ */
966
+ readonly fields: ProjectKnowledgeBaseFieldRefs;
967
+ }
968
+
969
+ /**
970
+ * The delegate class that acts as a "Promise-like" for ProjectKnowledgeBase.
971
+ * Why is this prefixed with `Prisma__`?
972
+ * Because we want to prevent naming conflicts as mentioned in
973
+ * https://github.com/prisma/prisma-client-js/issues/707
974
+ */
975
+ export interface Prisma__ProjectKnowledgeBaseClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
976
+ readonly [Symbol.toStringTag]: "PrismaPromise"
977
+ project<T extends Prisma.ProjectDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProjectDefaultArgs<ExtArgs>>): Prisma.Prisma__ProjectClient<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
978
+ kb<T extends Prisma.KnowledgeBaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseDefaultArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
979
+ /**
980
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
981
+ * @param onfulfilled The callback to execute when the Promise is resolved.
982
+ * @param onrejected The callback to execute when the Promise is rejected.
983
+ * @returns A Promise for the completion of which ever callback is executed.
984
+ */
985
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
986
+ /**
987
+ * Attaches a callback for only the rejection of the Promise.
988
+ * @param onrejected The callback to execute when the Promise is rejected.
989
+ * @returns A Promise for the completion of the callback.
990
+ */
991
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
992
+ /**
993
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
994
+ * resolved value cannot be modified from the callback.
995
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
996
+ * @returns A Promise for the completion of the callback.
997
+ */
998
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
999
+ }
1000
+
1001
+
1002
+
1003
+
1004
+ /**
1005
+ * Fields of the ProjectKnowledgeBase model
1006
+ */
1007
+ export interface ProjectKnowledgeBaseFieldRefs {
1008
+ readonly id: Prisma.FieldRef<"ProjectKnowledgeBase", 'String'>
1009
+ readonly projectId: Prisma.FieldRef<"ProjectKnowledgeBase", 'String'>
1010
+ readonly kbId: Prisma.FieldRef<"ProjectKnowledgeBase", 'String'>
1011
+ readonly createdAt: Prisma.FieldRef<"ProjectKnowledgeBase", 'DateTime'>
1012
+ }
1013
+
1014
+
1015
+ // Custom InputTypes
1016
+ /**
1017
+ * ProjectKnowledgeBase findUnique
1018
+ */
1019
+ export type ProjectKnowledgeBaseFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1020
+ /**
1021
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1022
+ */
1023
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1024
+ /**
1025
+ * Omit specific fields from the ProjectKnowledgeBase
1026
+ */
1027
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1028
+ /**
1029
+ * Choose, which related nodes to fetch as well
1030
+ */
1031
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1032
+ /**
1033
+ * Filter, which ProjectKnowledgeBase to fetch.
1034
+ */
1035
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
1036
+ }
1037
+
1038
+ /**
1039
+ * ProjectKnowledgeBase findUniqueOrThrow
1040
+ */
1041
+ export type ProjectKnowledgeBaseFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1042
+ /**
1043
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1044
+ */
1045
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1046
+ /**
1047
+ * Omit specific fields from the ProjectKnowledgeBase
1048
+ */
1049
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1050
+ /**
1051
+ * Choose, which related nodes to fetch as well
1052
+ */
1053
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1054
+ /**
1055
+ * Filter, which ProjectKnowledgeBase to fetch.
1056
+ */
1057
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
1058
+ }
1059
+
1060
+ /**
1061
+ * ProjectKnowledgeBase findFirst
1062
+ */
1063
+ export type ProjectKnowledgeBaseFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1064
+ /**
1065
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1066
+ */
1067
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1068
+ /**
1069
+ * Omit specific fields from the ProjectKnowledgeBase
1070
+ */
1071
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1072
+ /**
1073
+ * Choose, which related nodes to fetch as well
1074
+ */
1075
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1076
+ /**
1077
+ * Filter, which ProjectKnowledgeBase to fetch.
1078
+ */
1079
+ where?: Prisma.ProjectKnowledgeBaseWhereInput
1080
+ /**
1081
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1082
+ *
1083
+ * Determine the order of ProjectKnowledgeBases to fetch.
1084
+ */
1085
+ orderBy?: Prisma.ProjectKnowledgeBaseOrderByWithRelationInput | Prisma.ProjectKnowledgeBaseOrderByWithRelationInput[]
1086
+ /**
1087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1088
+ *
1089
+ * Sets the position for searching for ProjectKnowledgeBases.
1090
+ */
1091
+ cursor?: Prisma.ProjectKnowledgeBaseWhereUniqueInput
1092
+ /**
1093
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1094
+ *
1095
+ * Take `±n` ProjectKnowledgeBases from the position of the cursor.
1096
+ */
1097
+ take?: number
1098
+ /**
1099
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1100
+ *
1101
+ * Skip the first `n` ProjectKnowledgeBases.
1102
+ */
1103
+ skip?: number
1104
+ /**
1105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1106
+ *
1107
+ * Filter by unique combinations of ProjectKnowledgeBases.
1108
+ */
1109
+ distinct?: Prisma.ProjectKnowledgeBaseScalarFieldEnum | Prisma.ProjectKnowledgeBaseScalarFieldEnum[]
1110
+ }
1111
+
1112
+ /**
1113
+ * ProjectKnowledgeBase findFirstOrThrow
1114
+ */
1115
+ export type ProjectKnowledgeBaseFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1116
+ /**
1117
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1118
+ */
1119
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1120
+ /**
1121
+ * Omit specific fields from the ProjectKnowledgeBase
1122
+ */
1123
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1124
+ /**
1125
+ * Choose, which related nodes to fetch as well
1126
+ */
1127
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1128
+ /**
1129
+ * Filter, which ProjectKnowledgeBase to fetch.
1130
+ */
1131
+ where?: Prisma.ProjectKnowledgeBaseWhereInput
1132
+ /**
1133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1134
+ *
1135
+ * Determine the order of ProjectKnowledgeBases to fetch.
1136
+ */
1137
+ orderBy?: Prisma.ProjectKnowledgeBaseOrderByWithRelationInput | Prisma.ProjectKnowledgeBaseOrderByWithRelationInput[]
1138
+ /**
1139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1140
+ *
1141
+ * Sets the position for searching for ProjectKnowledgeBases.
1142
+ */
1143
+ cursor?: Prisma.ProjectKnowledgeBaseWhereUniqueInput
1144
+ /**
1145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1146
+ *
1147
+ * Take `±n` ProjectKnowledgeBases from the position of the cursor.
1148
+ */
1149
+ take?: number
1150
+ /**
1151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1152
+ *
1153
+ * Skip the first `n` ProjectKnowledgeBases.
1154
+ */
1155
+ skip?: number
1156
+ /**
1157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1158
+ *
1159
+ * Filter by unique combinations of ProjectKnowledgeBases.
1160
+ */
1161
+ distinct?: Prisma.ProjectKnowledgeBaseScalarFieldEnum | Prisma.ProjectKnowledgeBaseScalarFieldEnum[]
1162
+ }
1163
+
1164
+ /**
1165
+ * ProjectKnowledgeBase findMany
1166
+ */
1167
+ export type ProjectKnowledgeBaseFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1168
+ /**
1169
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1170
+ */
1171
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1172
+ /**
1173
+ * Omit specific fields from the ProjectKnowledgeBase
1174
+ */
1175
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1176
+ /**
1177
+ * Choose, which related nodes to fetch as well
1178
+ */
1179
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1180
+ /**
1181
+ * Filter, which ProjectKnowledgeBases to fetch.
1182
+ */
1183
+ where?: Prisma.ProjectKnowledgeBaseWhereInput
1184
+ /**
1185
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1186
+ *
1187
+ * Determine the order of ProjectKnowledgeBases to fetch.
1188
+ */
1189
+ orderBy?: Prisma.ProjectKnowledgeBaseOrderByWithRelationInput | Prisma.ProjectKnowledgeBaseOrderByWithRelationInput[]
1190
+ /**
1191
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1192
+ *
1193
+ * Sets the position for listing ProjectKnowledgeBases.
1194
+ */
1195
+ cursor?: Prisma.ProjectKnowledgeBaseWhereUniqueInput
1196
+ /**
1197
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1198
+ *
1199
+ * Take `±n` ProjectKnowledgeBases from the position of the cursor.
1200
+ */
1201
+ take?: number
1202
+ /**
1203
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1204
+ *
1205
+ * Skip the first `n` ProjectKnowledgeBases.
1206
+ */
1207
+ skip?: number
1208
+ /**
1209
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1210
+ *
1211
+ * Filter by unique combinations of ProjectKnowledgeBases.
1212
+ */
1213
+ distinct?: Prisma.ProjectKnowledgeBaseScalarFieldEnum | Prisma.ProjectKnowledgeBaseScalarFieldEnum[]
1214
+ }
1215
+
1216
+ /**
1217
+ * ProjectKnowledgeBase create
1218
+ */
1219
+ export type ProjectKnowledgeBaseCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1220
+ /**
1221
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1222
+ */
1223
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1224
+ /**
1225
+ * Omit specific fields from the ProjectKnowledgeBase
1226
+ */
1227
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1228
+ /**
1229
+ * Choose, which related nodes to fetch as well
1230
+ */
1231
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1232
+ /**
1233
+ * The data needed to create a ProjectKnowledgeBase.
1234
+ */
1235
+ data: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateInput, Prisma.ProjectKnowledgeBaseUncheckedCreateInput>
1236
+ }
1237
+
1238
+ /**
1239
+ * ProjectKnowledgeBase createMany
1240
+ */
1241
+ export type ProjectKnowledgeBaseCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1242
+ /**
1243
+ * The data used to create many ProjectKnowledgeBases.
1244
+ */
1245
+ data: Prisma.ProjectKnowledgeBaseCreateManyInput | Prisma.ProjectKnowledgeBaseCreateManyInput[]
1246
+ }
1247
+
1248
+ /**
1249
+ * ProjectKnowledgeBase createManyAndReturn
1250
+ */
1251
+ export type ProjectKnowledgeBaseCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1252
+ /**
1253
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1254
+ */
1255
+ select?: Prisma.ProjectKnowledgeBaseSelectCreateManyAndReturn<ExtArgs> | null
1256
+ /**
1257
+ * Omit specific fields from the ProjectKnowledgeBase
1258
+ */
1259
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1260
+ /**
1261
+ * The data used to create many ProjectKnowledgeBases.
1262
+ */
1263
+ data: Prisma.ProjectKnowledgeBaseCreateManyInput | Prisma.ProjectKnowledgeBaseCreateManyInput[]
1264
+ /**
1265
+ * Choose, which related nodes to fetch as well
1266
+ */
1267
+ include?: Prisma.ProjectKnowledgeBaseIncludeCreateManyAndReturn<ExtArgs> | null
1268
+ }
1269
+
1270
+ /**
1271
+ * ProjectKnowledgeBase update
1272
+ */
1273
+ export type ProjectKnowledgeBaseUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1274
+ /**
1275
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1276
+ */
1277
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1278
+ /**
1279
+ * Omit specific fields from the ProjectKnowledgeBase
1280
+ */
1281
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1282
+ /**
1283
+ * Choose, which related nodes to fetch as well
1284
+ */
1285
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1286
+ /**
1287
+ * The data needed to update a ProjectKnowledgeBase.
1288
+ */
1289
+ data: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateInput>
1290
+ /**
1291
+ * Choose, which ProjectKnowledgeBase to update.
1292
+ */
1293
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
1294
+ }
1295
+
1296
+ /**
1297
+ * ProjectKnowledgeBase updateMany
1298
+ */
1299
+ export type ProjectKnowledgeBaseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1300
+ /**
1301
+ * The data used to update ProjectKnowledgeBases.
1302
+ */
1303
+ data: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateManyMutationInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateManyInput>
1304
+ /**
1305
+ * Filter which ProjectKnowledgeBases to update
1306
+ */
1307
+ where?: Prisma.ProjectKnowledgeBaseWhereInput
1308
+ /**
1309
+ * Limit how many ProjectKnowledgeBases to update.
1310
+ */
1311
+ limit?: number
1312
+ }
1313
+
1314
+ /**
1315
+ * ProjectKnowledgeBase updateManyAndReturn
1316
+ */
1317
+ export type ProjectKnowledgeBaseUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1318
+ /**
1319
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1320
+ */
1321
+ select?: Prisma.ProjectKnowledgeBaseSelectUpdateManyAndReturn<ExtArgs> | null
1322
+ /**
1323
+ * Omit specific fields from the ProjectKnowledgeBase
1324
+ */
1325
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1326
+ /**
1327
+ * The data used to update ProjectKnowledgeBases.
1328
+ */
1329
+ data: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateManyMutationInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateManyInput>
1330
+ /**
1331
+ * Filter which ProjectKnowledgeBases to update
1332
+ */
1333
+ where?: Prisma.ProjectKnowledgeBaseWhereInput
1334
+ /**
1335
+ * Limit how many ProjectKnowledgeBases to update.
1336
+ */
1337
+ limit?: number
1338
+ /**
1339
+ * Choose, which related nodes to fetch as well
1340
+ */
1341
+ include?: Prisma.ProjectKnowledgeBaseIncludeUpdateManyAndReturn<ExtArgs> | null
1342
+ }
1343
+
1344
+ /**
1345
+ * ProjectKnowledgeBase upsert
1346
+ */
1347
+ export type ProjectKnowledgeBaseUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
+ /**
1349
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1350
+ */
1351
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1352
+ /**
1353
+ * Omit specific fields from the ProjectKnowledgeBase
1354
+ */
1355
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1356
+ /**
1357
+ * Choose, which related nodes to fetch as well
1358
+ */
1359
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1360
+ /**
1361
+ * The filter to search for the ProjectKnowledgeBase to update in case it exists.
1362
+ */
1363
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
1364
+ /**
1365
+ * In case the ProjectKnowledgeBase found by the `where` argument doesn't exist, create a new ProjectKnowledgeBase with this data.
1366
+ */
1367
+ create: Prisma.XOR<Prisma.ProjectKnowledgeBaseCreateInput, Prisma.ProjectKnowledgeBaseUncheckedCreateInput>
1368
+ /**
1369
+ * In case the ProjectKnowledgeBase was found with the provided `where` argument, update it with this data.
1370
+ */
1371
+ update: Prisma.XOR<Prisma.ProjectKnowledgeBaseUpdateInput, Prisma.ProjectKnowledgeBaseUncheckedUpdateInput>
1372
+ }
1373
+
1374
+ /**
1375
+ * ProjectKnowledgeBase delete
1376
+ */
1377
+ export type ProjectKnowledgeBaseDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1378
+ /**
1379
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1380
+ */
1381
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1382
+ /**
1383
+ * Omit specific fields from the ProjectKnowledgeBase
1384
+ */
1385
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1386
+ /**
1387
+ * Choose, which related nodes to fetch as well
1388
+ */
1389
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1390
+ /**
1391
+ * Filter which ProjectKnowledgeBase to delete.
1392
+ */
1393
+ where: Prisma.ProjectKnowledgeBaseWhereUniqueInput
1394
+ }
1395
+
1396
+ /**
1397
+ * ProjectKnowledgeBase deleteMany
1398
+ */
1399
+ export type ProjectKnowledgeBaseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1400
+ /**
1401
+ * Filter which ProjectKnowledgeBases to delete
1402
+ */
1403
+ where?: Prisma.ProjectKnowledgeBaseWhereInput
1404
+ /**
1405
+ * Limit how many ProjectKnowledgeBases to delete.
1406
+ */
1407
+ limit?: number
1408
+ }
1409
+
1410
+ /**
1411
+ * ProjectKnowledgeBase without action
1412
+ */
1413
+ export type ProjectKnowledgeBaseDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1414
+ /**
1415
+ * Select specific fields to fetch from the ProjectKnowledgeBase
1416
+ */
1417
+ select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
1418
+ /**
1419
+ * Omit specific fields from the ProjectKnowledgeBase
1420
+ */
1421
+ omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
1422
+ /**
1423
+ * Choose, which related nodes to fetch as well
1424
+ */
1425
+ include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
1426
+ }