@cerbos/orm-prisma 3.3.0 → 4.1.0

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 (74) hide show
  1. package/README.md +243 -10
  2. package/lib/index.d.ts +102 -2
  3. package/lib/index.d.ts.map +1 -1
  4. package/lib/index.js +1754 -155
  5. package/lib/index.js.map +1 -1
  6. package/package.json +24 -15
  7. package/src/adversarial.test.ts +1281 -0
  8. package/src/corpus.ts +414 -0
  9. package/src/generated/prisma-adversarial/browser.ts +54 -0
  10. package/src/generated/prisma-adversarial/client.ts +76 -0
  11. package/src/generated/{prisma → prisma-adversarial}/commonInputTypes.ts +131 -27
  12. package/src/generated/prisma-adversarial/enums.ts +15 -0
  13. package/src/generated/prisma-adversarial/internal/class.ts +264 -0
  14. package/src/generated/prisma-adversarial/internal/prismaNamespace.ts +1332 -0
  15. package/src/generated/{prisma → prisma-adversarial}/internal/prismaNamespaceBrowser.ts +45 -47
  16. package/src/generated/prisma-adversarial/models/AdversarialCategory.ts +1401 -0
  17. package/src/generated/prisma-adversarial/models/AdversarialInner.ts +1369 -0
  18. package/src/generated/prisma-adversarial/models/AdversarialLabel.ts +1272 -0
  19. package/src/generated/prisma-adversarial/models/AdversarialParent.ts +1474 -0
  20. package/src/generated/prisma-adversarial/models/AdversarialResource.ts +1789 -0
  21. package/src/generated/prisma-adversarial/models/AdversarialSubCategory.ts +1401 -0
  22. package/src/generated/prisma-adversarial/models/AdversarialTag.ts +1307 -0
  23. package/src/generated/prisma-adversarial/models.ts +18 -0
  24. package/src/generated/{prisma → prisma-adversarial-pg}/browser.ts +14 -19
  25. package/src/generated/{prisma → prisma-adversarial-pg}/client.ts +16 -21
  26. package/src/generated/prisma-adversarial-pg/commonInputTypes.ts +356 -0
  27. package/src/generated/prisma-adversarial-pg/internal/class.ts +264 -0
  28. package/src/generated/prisma-adversarial-pg/internal/prismaNamespace.ts +1371 -0
  29. package/src/generated/prisma-adversarial-pg/internal/prismaNamespaceBrowser.ts +177 -0
  30. package/src/generated/prisma-adversarial-pg/models/AdversarialCategory.ts +1404 -0
  31. package/src/generated/prisma-adversarial-pg/models/AdversarialInner.ts +1371 -0
  32. package/src/generated/prisma-adversarial-pg/models/AdversarialLabel.ts +1275 -0
  33. package/src/generated/prisma-adversarial-pg/models/AdversarialParent.ts +1476 -0
  34. package/src/generated/prisma-adversarial-pg/models/AdversarialResource.ts +1791 -0
  35. package/src/generated/prisma-adversarial-pg/models/AdversarialSubCategory.ts +1404 -0
  36. package/src/generated/prisma-adversarial-pg/models/AdversarialTag.ts +1310 -0
  37. package/src/generated/prisma-adversarial-pg/models.ts +18 -0
  38. package/src/generated/prisma-adversarial-pg-v6/index.d.ts +11830 -0
  39. package/src/generated/prisma-adversarial-v6/client.d.ts +1 -0
  40. package/src/generated/prisma-adversarial-v6/default.d.ts +1 -0
  41. package/src/generated/prisma-adversarial-v6/edge.d.ts +1 -0
  42. package/src/generated/prisma-adversarial-v6/index.d.ts +11769 -0
  43. package/src/generated/prisma-adversarial-v6/runtime/index-browser.d.ts +370 -0
  44. package/src/generated/prisma-adversarial-v6/runtime/library.d.ts +3982 -0
  45. package/src/generated/prisma-adversarial-v6/wasm.d.ts +1 -0
  46. package/src/index.ts +2515 -219
  47. package/src/test-setup.adversarial-url.ts +18 -0
  48. package/src/test-setup.adversarial.pg.v6.ts +13 -0
  49. package/src/test-setup.adversarial.pg.v7.ts +9 -0
  50. package/src/test-setup.adversarial.v6.ts +5 -0
  51. package/src/test-setup.adversarial.v7.ts +12 -0
  52. package/src/translator.test.ts +1586 -0
  53. package/src/generated/prisma/internal/class.ts +0 -274
  54. package/src/generated/prisma/internal/prismaNamespace.ts +0 -1333
  55. package/src/generated/prisma/models/Category.ts +0 -1412
  56. package/src/generated/prisma/models/Label.ts +0 -1276
  57. package/src/generated/prisma/models/NestedResource.ts +0 -1562
  58. package/src/generated/prisma/models/NextLevelNestedResource.ts +0 -1337
  59. package/src/generated/prisma/models/Resource.ts +0 -2136
  60. package/src/generated/prisma/models/SubCategory.ts +0 -1412
  61. package/src/generated/prisma/models/Tag.ts +0 -1276
  62. package/src/generated/prisma/models/User.ts +0 -1503
  63. package/src/generated/prisma/models.ts +0 -19
  64. package/src/generated/prisma-v6/index.d.ts +0 -13639
  65. package/src/index.test.ts +0 -6322
  66. package/src/test-setup.v6.ts +0 -5
  67. package/src/test-setup.v7.ts +0 -7
  68. /package/src/generated/{prisma → prisma-adversarial-pg}/enums.ts +0 -0
  69. /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/client.d.ts +0 -0
  70. /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/default.d.ts +0 -0
  71. /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/edge.d.ts +0 -0
  72. /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/runtime/index-browser.d.ts +0 -0
  73. /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/runtime/library.d.ts +0 -0
  74. /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/wasm.d.ts +0 -0
@@ -0,0 +1,1791 @@
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 `AdversarialResource` 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.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
14
+
15
+ /**
16
+ * Model AdversarialResource
17
+ *
18
+ */
19
+ export type AdversarialResourceModel = runtime.Types.Result.DefaultSelection<Prisma.$AdversarialResourcePayload>
20
+
21
+ export type AggregateAdversarialResource = {
22
+ _count: AdversarialResourceCountAggregateOutputType | null
23
+ _avg: AdversarialResourceAvgAggregateOutputType | null
24
+ _sum: AdversarialResourceSumAggregateOutputType | null
25
+ _min: AdversarialResourceMinAggregateOutputType | null
26
+ _max: AdversarialResourceMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type AdversarialResourceAvgAggregateOutputType = {
30
+ aNumber: number | null
31
+ aDouble: number | null
32
+ }
33
+
34
+ export type AdversarialResourceSumAggregateOutputType = {
35
+ aNumber: number | null
36
+ aDouble: number | null
37
+ }
38
+
39
+ export type AdversarialResourceMinAggregateOutputType = {
40
+ id: string | null
41
+ aBool: boolean | null
42
+ aString: string | null
43
+ aNumber: number | null
44
+ aDouble: number | null
45
+ aOptionalString: string | null
46
+ createdBy: string | null
47
+ scope: string | null
48
+ createdAt: Date | null
49
+ }
50
+
51
+ export type AdversarialResourceMaxAggregateOutputType = {
52
+ id: string | null
53
+ aBool: boolean | null
54
+ aString: string | null
55
+ aNumber: number | null
56
+ aDouble: number | null
57
+ aOptionalString: string | null
58
+ createdBy: string | null
59
+ scope: string | null
60
+ createdAt: Date | null
61
+ }
62
+
63
+ export type AdversarialResourceCountAggregateOutputType = {
64
+ id: number
65
+ aBool: number
66
+ aString: number
67
+ aNumber: number
68
+ aDouble: number
69
+ aOptionalString: number
70
+ createdBy: number
71
+ scope: number
72
+ createdAt: number
73
+ _all: number
74
+ }
75
+
76
+
77
+ export type AdversarialResourceAvgAggregateInputType = {
78
+ aNumber?: true
79
+ aDouble?: true
80
+ }
81
+
82
+ export type AdversarialResourceSumAggregateInputType = {
83
+ aNumber?: true
84
+ aDouble?: true
85
+ }
86
+
87
+ export type AdversarialResourceMinAggregateInputType = {
88
+ id?: true
89
+ aBool?: true
90
+ aString?: true
91
+ aNumber?: true
92
+ aDouble?: true
93
+ aOptionalString?: true
94
+ createdBy?: true
95
+ scope?: true
96
+ createdAt?: true
97
+ }
98
+
99
+ export type AdversarialResourceMaxAggregateInputType = {
100
+ id?: true
101
+ aBool?: true
102
+ aString?: true
103
+ aNumber?: true
104
+ aDouble?: true
105
+ aOptionalString?: true
106
+ createdBy?: true
107
+ scope?: true
108
+ createdAt?: true
109
+ }
110
+
111
+ export type AdversarialResourceCountAggregateInputType = {
112
+ id?: true
113
+ aBool?: true
114
+ aString?: true
115
+ aNumber?: true
116
+ aDouble?: true
117
+ aOptionalString?: true
118
+ createdBy?: true
119
+ scope?: true
120
+ createdAt?: true
121
+ _all?: true
122
+ }
123
+
124
+ export type AdversarialResourceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
125
+ /**
126
+ * Filter which AdversarialResource to aggregate.
127
+ */
128
+ where?: Prisma.AdversarialResourceWhereInput
129
+ /**
130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
131
+ *
132
+ * Determine the order of AdversarialResources to fetch.
133
+ */
134
+ orderBy?: Prisma.AdversarialResourceOrderByWithRelationInput | Prisma.AdversarialResourceOrderByWithRelationInput[]
135
+ /**
136
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
137
+ *
138
+ * Sets the start position
139
+ */
140
+ cursor?: Prisma.AdversarialResourceWhereUniqueInput
141
+ /**
142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
143
+ *
144
+ * Take `±n` AdversarialResources from the position of the cursor.
145
+ */
146
+ take?: number
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
149
+ *
150
+ * Skip the first `n` AdversarialResources.
151
+ */
152
+ skip?: number
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
155
+ *
156
+ * Count returned AdversarialResources
157
+ **/
158
+ _count?: true | AdversarialResourceCountAggregateInputType
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
161
+ *
162
+ * Select which fields to average
163
+ **/
164
+ _avg?: AdversarialResourceAvgAggregateInputType
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
167
+ *
168
+ * Select which fields to sum
169
+ **/
170
+ _sum?: AdversarialResourceSumAggregateInputType
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
+ *
174
+ * Select which fields to find the minimum value
175
+ **/
176
+ _min?: AdversarialResourceMinAggregateInputType
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Select which fields to find the maximum value
181
+ **/
182
+ _max?: AdversarialResourceMaxAggregateInputType
183
+ }
184
+
185
+ export type GetAdversarialResourceAggregateType<T extends AdversarialResourceAggregateArgs> = {
186
+ [P in keyof T & keyof AggregateAdversarialResource]: P extends '_count' | 'count'
187
+ ? T[P] extends true
188
+ ? number
189
+ : Prisma.GetScalarType<T[P], AggregateAdversarialResource[P]>
190
+ : Prisma.GetScalarType<T[P], AggregateAdversarialResource[P]>
191
+ }
192
+
193
+
194
+
195
+
196
+ export type AdversarialResourceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
197
+ where?: Prisma.AdversarialResourceWhereInput
198
+ orderBy?: Prisma.AdversarialResourceOrderByWithAggregationInput | Prisma.AdversarialResourceOrderByWithAggregationInput[]
199
+ by: Prisma.AdversarialResourceScalarFieldEnum[] | Prisma.AdversarialResourceScalarFieldEnum
200
+ having?: Prisma.AdversarialResourceScalarWhereWithAggregatesInput
201
+ take?: number
202
+ skip?: number
203
+ _count?: AdversarialResourceCountAggregateInputType | true
204
+ _avg?: AdversarialResourceAvgAggregateInputType
205
+ _sum?: AdversarialResourceSumAggregateInputType
206
+ _min?: AdversarialResourceMinAggregateInputType
207
+ _max?: AdversarialResourceMaxAggregateInputType
208
+ }
209
+
210
+ export type AdversarialResourceGroupByOutputType = {
211
+ id: string
212
+ aBool: boolean
213
+ aString: string
214
+ aNumber: number
215
+ aDouble: number | null
216
+ aOptionalString: string | null
217
+ createdBy: string
218
+ scope: string | null
219
+ createdAt: Date | null
220
+ _count: AdversarialResourceCountAggregateOutputType | null
221
+ _avg: AdversarialResourceAvgAggregateOutputType | null
222
+ _sum: AdversarialResourceSumAggregateOutputType | null
223
+ _min: AdversarialResourceMinAggregateOutputType | null
224
+ _max: AdversarialResourceMaxAggregateOutputType | null
225
+ }
226
+
227
+ export type GetAdversarialResourceGroupByPayload<T extends AdversarialResourceGroupByArgs> = Prisma.PrismaPromise<
228
+ Array<
229
+ Prisma.PickEnumerable<AdversarialResourceGroupByOutputType, T['by']> &
230
+ {
231
+ [P in ((keyof T) & (keyof AdversarialResourceGroupByOutputType))]: P extends '_count'
232
+ ? T[P] extends boolean
233
+ ? number
234
+ : Prisma.GetScalarType<T[P], AdversarialResourceGroupByOutputType[P]>
235
+ : Prisma.GetScalarType<T[P], AdversarialResourceGroupByOutputType[P]>
236
+ }
237
+ >
238
+ >
239
+
240
+
241
+
242
+ export type AdversarialResourceWhereInput = {
243
+ AND?: Prisma.AdversarialResourceWhereInput | Prisma.AdversarialResourceWhereInput[]
244
+ OR?: Prisma.AdversarialResourceWhereInput[]
245
+ NOT?: Prisma.AdversarialResourceWhereInput | Prisma.AdversarialResourceWhereInput[]
246
+ id?: Prisma.StringFilter<"AdversarialResource"> | string
247
+ aBool?: Prisma.BoolFilter<"AdversarialResource"> | boolean
248
+ aString?: Prisma.StringFilter<"AdversarialResource"> | string
249
+ aNumber?: Prisma.IntFilter<"AdversarialResource"> | number
250
+ aDouble?: Prisma.FloatNullableFilter<"AdversarialResource"> | number | null
251
+ aOptionalString?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
252
+ createdBy?: Prisma.StringFilter<"AdversarialResource"> | string
253
+ scope?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
254
+ createdAt?: Prisma.DateTimeNullableFilter<"AdversarialResource"> | Date | string | null
255
+ tags?: Prisma.AdversarialTagListRelationFilter
256
+ categories?: Prisma.AdversarialCategoryListRelationFilter
257
+ parent?: Prisma.XOR<Prisma.AdversarialParentNullableScalarRelationFilter, Prisma.AdversarialParentWhereInput> | null
258
+ }
259
+
260
+ export type AdversarialResourceOrderByWithRelationInput = {
261
+ id?: Prisma.SortOrder
262
+ aBool?: Prisma.SortOrder
263
+ aString?: Prisma.SortOrder
264
+ aNumber?: Prisma.SortOrder
265
+ aDouble?: Prisma.SortOrderInput | Prisma.SortOrder
266
+ aOptionalString?: Prisma.SortOrderInput | Prisma.SortOrder
267
+ createdBy?: Prisma.SortOrder
268
+ scope?: Prisma.SortOrderInput | Prisma.SortOrder
269
+ createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
270
+ tags?: Prisma.AdversarialTagOrderByRelationAggregateInput
271
+ categories?: Prisma.AdversarialCategoryOrderByRelationAggregateInput
272
+ parent?: Prisma.AdversarialParentOrderByWithRelationInput
273
+ }
274
+
275
+ export type AdversarialResourceWhereUniqueInput = Prisma.AtLeast<{
276
+ id?: string
277
+ AND?: Prisma.AdversarialResourceWhereInput | Prisma.AdversarialResourceWhereInput[]
278
+ OR?: Prisma.AdversarialResourceWhereInput[]
279
+ NOT?: Prisma.AdversarialResourceWhereInput | Prisma.AdversarialResourceWhereInput[]
280
+ aBool?: Prisma.BoolFilter<"AdversarialResource"> | boolean
281
+ aString?: Prisma.StringFilter<"AdversarialResource"> | string
282
+ aNumber?: Prisma.IntFilter<"AdversarialResource"> | number
283
+ aDouble?: Prisma.FloatNullableFilter<"AdversarialResource"> | number | null
284
+ aOptionalString?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
285
+ createdBy?: Prisma.StringFilter<"AdversarialResource"> | string
286
+ scope?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
287
+ createdAt?: Prisma.DateTimeNullableFilter<"AdversarialResource"> | Date | string | null
288
+ tags?: Prisma.AdversarialTagListRelationFilter
289
+ categories?: Prisma.AdversarialCategoryListRelationFilter
290
+ parent?: Prisma.XOR<Prisma.AdversarialParentNullableScalarRelationFilter, Prisma.AdversarialParentWhereInput> | null
291
+ }, "id">
292
+
293
+ export type AdversarialResourceOrderByWithAggregationInput = {
294
+ id?: Prisma.SortOrder
295
+ aBool?: Prisma.SortOrder
296
+ aString?: Prisma.SortOrder
297
+ aNumber?: Prisma.SortOrder
298
+ aDouble?: Prisma.SortOrderInput | Prisma.SortOrder
299
+ aOptionalString?: Prisma.SortOrderInput | Prisma.SortOrder
300
+ createdBy?: Prisma.SortOrder
301
+ scope?: Prisma.SortOrderInput | Prisma.SortOrder
302
+ createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
303
+ _count?: Prisma.AdversarialResourceCountOrderByAggregateInput
304
+ _avg?: Prisma.AdversarialResourceAvgOrderByAggregateInput
305
+ _max?: Prisma.AdversarialResourceMaxOrderByAggregateInput
306
+ _min?: Prisma.AdversarialResourceMinOrderByAggregateInput
307
+ _sum?: Prisma.AdversarialResourceSumOrderByAggregateInput
308
+ }
309
+
310
+ export type AdversarialResourceScalarWhereWithAggregatesInput = {
311
+ AND?: Prisma.AdversarialResourceScalarWhereWithAggregatesInput | Prisma.AdversarialResourceScalarWhereWithAggregatesInput[]
312
+ OR?: Prisma.AdversarialResourceScalarWhereWithAggregatesInput[]
313
+ NOT?: Prisma.AdversarialResourceScalarWhereWithAggregatesInput | Prisma.AdversarialResourceScalarWhereWithAggregatesInput[]
314
+ id?: Prisma.StringWithAggregatesFilter<"AdversarialResource"> | string
315
+ aBool?: Prisma.BoolWithAggregatesFilter<"AdversarialResource"> | boolean
316
+ aString?: Prisma.StringWithAggregatesFilter<"AdversarialResource"> | string
317
+ aNumber?: Prisma.IntWithAggregatesFilter<"AdversarialResource"> | number
318
+ aDouble?: Prisma.FloatNullableWithAggregatesFilter<"AdversarialResource"> | number | null
319
+ aOptionalString?: Prisma.StringNullableWithAggregatesFilter<"AdversarialResource"> | string | null
320
+ createdBy?: Prisma.StringWithAggregatesFilter<"AdversarialResource"> | string
321
+ scope?: Prisma.StringNullableWithAggregatesFilter<"AdversarialResource"> | string | null
322
+ createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdversarialResource"> | Date | string | null
323
+ }
324
+
325
+ export type AdversarialResourceCreateInput = {
326
+ id: string
327
+ aBool: boolean
328
+ aString: string
329
+ aNumber: number
330
+ aDouble?: number | null
331
+ aOptionalString?: string | null
332
+ createdBy: string
333
+ scope?: string | null
334
+ createdAt?: Date | string | null
335
+ tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
336
+ categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
337
+ parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
338
+ }
339
+
340
+ export type AdversarialResourceUncheckedCreateInput = {
341
+ id: string
342
+ aBool: boolean
343
+ aString: string
344
+ aNumber: number
345
+ aDouble?: number | null
346
+ aOptionalString?: string | null
347
+ createdBy: string
348
+ scope?: string | null
349
+ createdAt?: Date | string | null
350
+ tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
351
+ categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
352
+ parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
353
+ }
354
+
355
+ export type AdversarialResourceUpdateInput = {
356
+ id?: Prisma.StringFieldUpdateOperationsInput | string
357
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
358
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
359
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
360
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
361
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
362
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
363
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
364
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
365
+ tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
366
+ categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
367
+ parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
368
+ }
369
+
370
+ export type AdversarialResourceUncheckedUpdateInput = {
371
+ id?: Prisma.StringFieldUpdateOperationsInput | string
372
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
373
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
374
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
375
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
376
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
377
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
378
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
379
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
380
+ tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
381
+ categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
382
+ parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
383
+ }
384
+
385
+ export type AdversarialResourceCreateManyInput = {
386
+ id: string
387
+ aBool: boolean
388
+ aString: string
389
+ aNumber: number
390
+ aDouble?: number | null
391
+ aOptionalString?: string | null
392
+ createdBy: string
393
+ scope?: string | null
394
+ createdAt?: Date | string | null
395
+ }
396
+
397
+ export type AdversarialResourceUpdateManyMutationInput = {
398
+ id?: Prisma.StringFieldUpdateOperationsInput | string
399
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
400
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
401
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
402
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
403
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
404
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
405
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
406
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
407
+ }
408
+
409
+ export type AdversarialResourceUncheckedUpdateManyInput = {
410
+ id?: Prisma.StringFieldUpdateOperationsInput | string
411
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
412
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
413
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
414
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
415
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
416
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
417
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
418
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
419
+ }
420
+
421
+ export type AdversarialResourceCountOrderByAggregateInput = {
422
+ id?: Prisma.SortOrder
423
+ aBool?: Prisma.SortOrder
424
+ aString?: Prisma.SortOrder
425
+ aNumber?: Prisma.SortOrder
426
+ aDouble?: Prisma.SortOrder
427
+ aOptionalString?: Prisma.SortOrder
428
+ createdBy?: Prisma.SortOrder
429
+ scope?: Prisma.SortOrder
430
+ createdAt?: Prisma.SortOrder
431
+ }
432
+
433
+ export type AdversarialResourceAvgOrderByAggregateInput = {
434
+ aNumber?: Prisma.SortOrder
435
+ aDouble?: Prisma.SortOrder
436
+ }
437
+
438
+ export type AdversarialResourceMaxOrderByAggregateInput = {
439
+ id?: Prisma.SortOrder
440
+ aBool?: Prisma.SortOrder
441
+ aString?: Prisma.SortOrder
442
+ aNumber?: Prisma.SortOrder
443
+ aDouble?: Prisma.SortOrder
444
+ aOptionalString?: Prisma.SortOrder
445
+ createdBy?: Prisma.SortOrder
446
+ scope?: Prisma.SortOrder
447
+ createdAt?: Prisma.SortOrder
448
+ }
449
+
450
+ export type AdversarialResourceMinOrderByAggregateInput = {
451
+ id?: Prisma.SortOrder
452
+ aBool?: Prisma.SortOrder
453
+ aString?: Prisma.SortOrder
454
+ aNumber?: Prisma.SortOrder
455
+ aDouble?: Prisma.SortOrder
456
+ aOptionalString?: Prisma.SortOrder
457
+ createdBy?: Prisma.SortOrder
458
+ scope?: Prisma.SortOrder
459
+ createdAt?: Prisma.SortOrder
460
+ }
461
+
462
+ export type AdversarialResourceSumOrderByAggregateInput = {
463
+ aNumber?: Prisma.SortOrder
464
+ aDouble?: Prisma.SortOrder
465
+ }
466
+
467
+ export type AdversarialResourceScalarRelationFilter = {
468
+ is?: Prisma.AdversarialResourceWhereInput
469
+ isNot?: Prisma.AdversarialResourceWhereInput
470
+ }
471
+
472
+ export type StringFieldUpdateOperationsInput = {
473
+ set?: string
474
+ }
475
+
476
+ export type BoolFieldUpdateOperationsInput = {
477
+ set?: boolean
478
+ }
479
+
480
+ export type IntFieldUpdateOperationsInput = {
481
+ set?: number
482
+ increment?: number
483
+ decrement?: number
484
+ multiply?: number
485
+ divide?: number
486
+ }
487
+
488
+ export type NullableFloatFieldUpdateOperationsInput = {
489
+ set?: number | null
490
+ increment?: number
491
+ decrement?: number
492
+ multiply?: number
493
+ divide?: number
494
+ }
495
+
496
+ export type NullableStringFieldUpdateOperationsInput = {
497
+ set?: string | null
498
+ }
499
+
500
+ export type NullableDateTimeFieldUpdateOperationsInput = {
501
+ set?: Date | string | null
502
+ }
503
+
504
+ export type AdversarialResourceCreateNestedOneWithoutTagsInput = {
505
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutTagsInput, Prisma.AdversarialResourceUncheckedCreateWithoutTagsInput>
506
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutTagsInput
507
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
508
+ }
509
+
510
+ export type AdversarialResourceUpdateOneRequiredWithoutTagsNestedInput = {
511
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutTagsInput, Prisma.AdversarialResourceUncheckedCreateWithoutTagsInput>
512
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutTagsInput
513
+ upsert?: Prisma.AdversarialResourceUpsertWithoutTagsInput
514
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
515
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutTagsInput, Prisma.AdversarialResourceUpdateWithoutTagsInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutTagsInput>
516
+ }
517
+
518
+ export type AdversarialResourceCreateNestedOneWithoutCategoriesInput = {
519
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedCreateWithoutCategoriesInput>
520
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutCategoriesInput
521
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
522
+ }
523
+
524
+ export type AdversarialResourceUpdateOneRequiredWithoutCategoriesNestedInput = {
525
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedCreateWithoutCategoriesInput>
526
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutCategoriesInput
527
+ upsert?: Prisma.AdversarialResourceUpsertWithoutCategoriesInput
528
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
529
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutCategoriesInput, Prisma.AdversarialResourceUpdateWithoutCategoriesInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutCategoriesInput>
530
+ }
531
+
532
+ export type AdversarialResourceCreateNestedOneWithoutParentInput = {
533
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
534
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutParentInput
535
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
536
+ }
537
+
538
+ export type AdversarialResourceUpdateOneRequiredWithoutParentNestedInput = {
539
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
540
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutParentInput
541
+ upsert?: Prisma.AdversarialResourceUpsertWithoutParentInput
542
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
543
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutParentInput, Prisma.AdversarialResourceUpdateWithoutParentInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutParentInput>
544
+ }
545
+
546
+ export type AdversarialResourceCreateWithoutTagsInput = {
547
+ id: string
548
+ aBool: boolean
549
+ aString: string
550
+ aNumber: number
551
+ aDouble?: number | null
552
+ aOptionalString?: string | null
553
+ createdBy: string
554
+ scope?: string | null
555
+ createdAt?: Date | string | null
556
+ categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
557
+ parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
558
+ }
559
+
560
+ export type AdversarialResourceUncheckedCreateWithoutTagsInput = {
561
+ id: string
562
+ aBool: boolean
563
+ aString: string
564
+ aNumber: number
565
+ aDouble?: number | null
566
+ aOptionalString?: string | null
567
+ createdBy: string
568
+ scope?: string | null
569
+ createdAt?: Date | string | null
570
+ categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
571
+ parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
572
+ }
573
+
574
+ export type AdversarialResourceCreateOrConnectWithoutTagsInput = {
575
+ where: Prisma.AdversarialResourceWhereUniqueInput
576
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutTagsInput, Prisma.AdversarialResourceUncheckedCreateWithoutTagsInput>
577
+ }
578
+
579
+ export type AdversarialResourceUpsertWithoutTagsInput = {
580
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutTagsInput, Prisma.AdversarialResourceUncheckedUpdateWithoutTagsInput>
581
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutTagsInput, Prisma.AdversarialResourceUncheckedCreateWithoutTagsInput>
582
+ where?: Prisma.AdversarialResourceWhereInput
583
+ }
584
+
585
+ export type AdversarialResourceUpdateToOneWithWhereWithoutTagsInput = {
586
+ where?: Prisma.AdversarialResourceWhereInput
587
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutTagsInput, Prisma.AdversarialResourceUncheckedUpdateWithoutTagsInput>
588
+ }
589
+
590
+ export type AdversarialResourceUpdateWithoutTagsInput = {
591
+ id?: Prisma.StringFieldUpdateOperationsInput | string
592
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
593
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
594
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
595
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
596
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
597
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
598
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
599
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
600
+ categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
601
+ parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
602
+ }
603
+
604
+ export type AdversarialResourceUncheckedUpdateWithoutTagsInput = {
605
+ id?: Prisma.StringFieldUpdateOperationsInput | string
606
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
607
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
608
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
609
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
610
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
611
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
612
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
613
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
614
+ categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
615
+ parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
616
+ }
617
+
618
+ export type AdversarialResourceCreateWithoutCategoriesInput = {
619
+ id: string
620
+ aBool: boolean
621
+ aString: string
622
+ aNumber: number
623
+ aDouble?: number | null
624
+ aOptionalString?: string | null
625
+ createdBy: string
626
+ scope?: string | null
627
+ createdAt?: Date | string | null
628
+ tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
629
+ parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
630
+ }
631
+
632
+ export type AdversarialResourceUncheckedCreateWithoutCategoriesInput = {
633
+ id: string
634
+ aBool: boolean
635
+ aString: string
636
+ aNumber: number
637
+ aDouble?: number | null
638
+ aOptionalString?: string | null
639
+ createdBy: string
640
+ scope?: string | null
641
+ createdAt?: Date | string | null
642
+ tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
643
+ parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
644
+ }
645
+
646
+ export type AdversarialResourceCreateOrConnectWithoutCategoriesInput = {
647
+ where: Prisma.AdversarialResourceWhereUniqueInput
648
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedCreateWithoutCategoriesInput>
649
+ }
650
+
651
+ export type AdversarialResourceUpsertWithoutCategoriesInput = {
652
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedUpdateWithoutCategoriesInput>
653
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedCreateWithoutCategoriesInput>
654
+ where?: Prisma.AdversarialResourceWhereInput
655
+ }
656
+
657
+ export type AdversarialResourceUpdateToOneWithWhereWithoutCategoriesInput = {
658
+ where?: Prisma.AdversarialResourceWhereInput
659
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedUpdateWithoutCategoriesInput>
660
+ }
661
+
662
+ export type AdversarialResourceUpdateWithoutCategoriesInput = {
663
+ id?: Prisma.StringFieldUpdateOperationsInput | string
664
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
665
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
666
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
667
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
668
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
669
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
670
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
671
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
672
+ tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
673
+ parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
674
+ }
675
+
676
+ export type AdversarialResourceUncheckedUpdateWithoutCategoriesInput = {
677
+ id?: Prisma.StringFieldUpdateOperationsInput | string
678
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
679
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
680
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
681
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
682
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
683
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
684
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
685
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
686
+ tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
687
+ parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
688
+ }
689
+
690
+ export type AdversarialResourceCreateWithoutParentInput = {
691
+ id: string
692
+ aBool: boolean
693
+ aString: string
694
+ aNumber: number
695
+ aDouble?: number | null
696
+ aOptionalString?: string | null
697
+ createdBy: string
698
+ scope?: string | null
699
+ createdAt?: Date | string | null
700
+ tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
701
+ categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
702
+ }
703
+
704
+ export type AdversarialResourceUncheckedCreateWithoutParentInput = {
705
+ id: string
706
+ aBool: boolean
707
+ aString: string
708
+ aNumber: number
709
+ aDouble?: number | null
710
+ aOptionalString?: string | null
711
+ createdBy: string
712
+ scope?: string | null
713
+ createdAt?: Date | string | null
714
+ tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
715
+ categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
716
+ }
717
+
718
+ export type AdversarialResourceCreateOrConnectWithoutParentInput = {
719
+ where: Prisma.AdversarialResourceWhereUniqueInput
720
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
721
+ }
722
+
723
+ export type AdversarialResourceUpsertWithoutParentInput = {
724
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutParentInput, Prisma.AdversarialResourceUncheckedUpdateWithoutParentInput>
725
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
726
+ where?: Prisma.AdversarialResourceWhereInput
727
+ }
728
+
729
+ export type AdversarialResourceUpdateToOneWithWhereWithoutParentInput = {
730
+ where?: Prisma.AdversarialResourceWhereInput
731
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutParentInput, Prisma.AdversarialResourceUncheckedUpdateWithoutParentInput>
732
+ }
733
+
734
+ export type AdversarialResourceUpdateWithoutParentInput = {
735
+ id?: Prisma.StringFieldUpdateOperationsInput | string
736
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
737
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
738
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
739
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
740
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
741
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
742
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
743
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
744
+ tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
745
+ categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
746
+ }
747
+
748
+ export type AdversarialResourceUncheckedUpdateWithoutParentInput = {
749
+ id?: Prisma.StringFieldUpdateOperationsInput | string
750
+ aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
751
+ aString?: Prisma.StringFieldUpdateOperationsInput | string
752
+ aNumber?: Prisma.IntFieldUpdateOperationsInput | number
753
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
754
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
755
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
756
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
757
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
758
+ tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
759
+ categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
760
+ }
761
+
762
+
763
+ /**
764
+ * Count Type AdversarialResourceCountOutputType
765
+ */
766
+
767
+ export type AdversarialResourceCountOutputType = {
768
+ tags: number
769
+ categories: number
770
+ }
771
+
772
+ export type AdversarialResourceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
773
+ tags?: boolean | AdversarialResourceCountOutputTypeCountTagsArgs
774
+ categories?: boolean | AdversarialResourceCountOutputTypeCountCategoriesArgs
775
+ }
776
+
777
+ /**
778
+ * AdversarialResourceCountOutputType without action
779
+ */
780
+ export type AdversarialResourceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
781
+ /**
782
+ * Select specific fields to fetch from the AdversarialResourceCountOutputType
783
+ */
784
+ select?: Prisma.AdversarialResourceCountOutputTypeSelect<ExtArgs> | null
785
+ }
786
+
787
+ /**
788
+ * AdversarialResourceCountOutputType without action
789
+ */
790
+ export type AdversarialResourceCountOutputTypeCountTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
791
+ where?: Prisma.AdversarialTagWhereInput
792
+ }
793
+
794
+ /**
795
+ * AdversarialResourceCountOutputType without action
796
+ */
797
+ export type AdversarialResourceCountOutputTypeCountCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
798
+ where?: Prisma.AdversarialCategoryWhereInput
799
+ }
800
+
801
+
802
+ export type AdversarialResourceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
803
+ id?: boolean
804
+ aBool?: boolean
805
+ aString?: boolean
806
+ aNumber?: boolean
807
+ aDouble?: boolean
808
+ aOptionalString?: boolean
809
+ createdBy?: boolean
810
+ scope?: boolean
811
+ createdAt?: boolean
812
+ tags?: boolean | Prisma.AdversarialResource$tagsArgs<ExtArgs>
813
+ categories?: boolean | Prisma.AdversarialResource$categoriesArgs<ExtArgs>
814
+ parent?: boolean | Prisma.AdversarialResource$parentArgs<ExtArgs>
815
+ _count?: boolean | Prisma.AdversarialResourceCountOutputTypeDefaultArgs<ExtArgs>
816
+ }, ExtArgs["result"]["adversarialResource"]>
817
+
818
+ export type AdversarialResourceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
819
+ id?: boolean
820
+ aBool?: boolean
821
+ aString?: boolean
822
+ aNumber?: boolean
823
+ aDouble?: boolean
824
+ aOptionalString?: boolean
825
+ createdBy?: boolean
826
+ scope?: boolean
827
+ createdAt?: boolean
828
+ }, ExtArgs["result"]["adversarialResource"]>
829
+
830
+ export type AdversarialResourceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
831
+ id?: boolean
832
+ aBool?: boolean
833
+ aString?: boolean
834
+ aNumber?: boolean
835
+ aDouble?: boolean
836
+ aOptionalString?: boolean
837
+ createdBy?: boolean
838
+ scope?: boolean
839
+ createdAt?: boolean
840
+ }, ExtArgs["result"]["adversarialResource"]>
841
+
842
+ export type AdversarialResourceSelectScalar = {
843
+ id?: boolean
844
+ aBool?: boolean
845
+ aString?: boolean
846
+ aNumber?: boolean
847
+ aDouble?: boolean
848
+ aOptionalString?: boolean
849
+ createdBy?: boolean
850
+ scope?: boolean
851
+ createdAt?: boolean
852
+ }
853
+
854
+ export type AdversarialResourceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "aBool" | "aString" | "aNumber" | "aDouble" | "aOptionalString" | "createdBy" | "scope" | "createdAt", ExtArgs["result"]["adversarialResource"]>
855
+ export type AdversarialResourceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
856
+ tags?: boolean | Prisma.AdversarialResource$tagsArgs<ExtArgs>
857
+ categories?: boolean | Prisma.AdversarialResource$categoriesArgs<ExtArgs>
858
+ parent?: boolean | Prisma.AdversarialResource$parentArgs<ExtArgs>
859
+ _count?: boolean | Prisma.AdversarialResourceCountOutputTypeDefaultArgs<ExtArgs>
860
+ }
861
+ export type AdversarialResourceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
862
+ export type AdversarialResourceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
863
+
864
+ export type $AdversarialResourcePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
865
+ name: "AdversarialResource"
866
+ objects: {
867
+ tags: Prisma.$AdversarialTagPayload<ExtArgs>[]
868
+ categories: Prisma.$AdversarialCategoryPayload<ExtArgs>[]
869
+ parent: Prisma.$AdversarialParentPayload<ExtArgs> | null
870
+ }
871
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
872
+ id: string
873
+ aBool: boolean
874
+ aString: string
875
+ aNumber: number
876
+ aDouble: number | null
877
+ aOptionalString: string | null
878
+ createdBy: string
879
+ scope: string | null
880
+ createdAt: Date | null
881
+ }, ExtArgs["result"]["adversarialResource"]>
882
+ composites: {}
883
+ }
884
+
885
+ export type AdversarialResourceGetPayload<S extends boolean | null | undefined | AdversarialResourceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload, S>
886
+
887
+ export type AdversarialResourceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
888
+ Omit<AdversarialResourceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
889
+ select?: AdversarialResourceCountAggregateInputType | true
890
+ }
891
+
892
+ export interface AdversarialResourceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
893
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdversarialResource'], meta: { name: 'AdversarialResource' } }
894
+ /**
895
+ * Find zero or one AdversarialResource that matches the filter.
896
+ * @param {AdversarialResourceFindUniqueArgs} args - Arguments to find a AdversarialResource
897
+ * @example
898
+ * // Get one AdversarialResource
899
+ * const adversarialResource = await prisma.adversarialResource.findUnique({
900
+ * where: {
901
+ * // ... provide filter here
902
+ * }
903
+ * })
904
+ */
905
+ findUnique<T extends AdversarialResourceFindUniqueArgs>(args: Prisma.SelectSubset<T, AdversarialResourceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
906
+
907
+ /**
908
+ * Find one AdversarialResource that matches the filter or throw an error with `error.code='P2025'`
909
+ * if no matches were found.
910
+ * @param {AdversarialResourceFindUniqueOrThrowArgs} args - Arguments to find a AdversarialResource
911
+ * @example
912
+ * // Get one AdversarialResource
913
+ * const adversarialResource = await prisma.adversarialResource.findUniqueOrThrow({
914
+ * where: {
915
+ * // ... provide filter here
916
+ * }
917
+ * })
918
+ */
919
+ findUniqueOrThrow<T extends AdversarialResourceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdversarialResourceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
920
+
921
+ /**
922
+ * Find the first AdversarialResource that matches the filter.
923
+ * Note, that providing `undefined` is treated as the value not being there.
924
+ * Read more here: https://pris.ly/d/null-undefined
925
+ * @param {AdversarialResourceFindFirstArgs} args - Arguments to find a AdversarialResource
926
+ * @example
927
+ * // Get one AdversarialResource
928
+ * const adversarialResource = await prisma.adversarialResource.findFirst({
929
+ * where: {
930
+ * // ... provide filter here
931
+ * }
932
+ * })
933
+ */
934
+ findFirst<T extends AdversarialResourceFindFirstArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
935
+
936
+ /**
937
+ * Find the first AdversarialResource that matches the filter or
938
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
939
+ * Note, that providing `undefined` is treated as the value not being there.
940
+ * Read more here: https://pris.ly/d/null-undefined
941
+ * @param {AdversarialResourceFindFirstOrThrowArgs} args - Arguments to find a AdversarialResource
942
+ * @example
943
+ * // Get one AdversarialResource
944
+ * const adversarialResource = await prisma.adversarialResource.findFirstOrThrow({
945
+ * where: {
946
+ * // ... provide filter here
947
+ * }
948
+ * })
949
+ */
950
+ findFirstOrThrow<T extends AdversarialResourceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
951
+
952
+ /**
953
+ * Find zero or more AdversarialResources that matches the filter.
954
+ * Note, that providing `undefined` is treated as the value not being there.
955
+ * Read more here: https://pris.ly/d/null-undefined
956
+ * @param {AdversarialResourceFindManyArgs} args - Arguments to filter and select certain fields only.
957
+ * @example
958
+ * // Get all AdversarialResources
959
+ * const adversarialResources = await prisma.adversarialResource.findMany()
960
+ *
961
+ * // Get first 10 AdversarialResources
962
+ * const adversarialResources = await prisma.adversarialResource.findMany({ take: 10 })
963
+ *
964
+ * // Only select the `id`
965
+ * const adversarialResourceWithIdOnly = await prisma.adversarialResource.findMany({ select: { id: true } })
966
+ *
967
+ */
968
+ findMany<T extends AdversarialResourceFindManyArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
969
+
970
+ /**
971
+ * Create a AdversarialResource.
972
+ * @param {AdversarialResourceCreateArgs} args - Arguments to create a AdversarialResource.
973
+ * @example
974
+ * // Create one AdversarialResource
975
+ * const AdversarialResource = await prisma.adversarialResource.create({
976
+ * data: {
977
+ * // ... data to create a AdversarialResource
978
+ * }
979
+ * })
980
+ *
981
+ */
982
+ create<T extends AdversarialResourceCreateArgs>(args: Prisma.SelectSubset<T, AdversarialResourceCreateArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
983
+
984
+ /**
985
+ * Create many AdversarialResources.
986
+ * @param {AdversarialResourceCreateManyArgs} args - Arguments to create many AdversarialResources.
987
+ * @example
988
+ * // Create many AdversarialResources
989
+ * const adversarialResource = await prisma.adversarialResource.createMany({
990
+ * data: [
991
+ * // ... provide data here
992
+ * ]
993
+ * })
994
+ *
995
+ */
996
+ createMany<T extends AdversarialResourceCreateManyArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
997
+
998
+ /**
999
+ * Create many AdversarialResources and returns the data saved in the database.
1000
+ * @param {AdversarialResourceCreateManyAndReturnArgs} args - Arguments to create many AdversarialResources.
1001
+ * @example
1002
+ * // Create many AdversarialResources
1003
+ * const adversarialResource = await prisma.adversarialResource.createManyAndReturn({
1004
+ * data: [
1005
+ * // ... provide data here
1006
+ * ]
1007
+ * })
1008
+ *
1009
+ * // Create many AdversarialResources and only return the `id`
1010
+ * const adversarialResourceWithIdOnly = await prisma.adversarialResource.createManyAndReturn({
1011
+ * select: { id: true },
1012
+ * data: [
1013
+ * // ... provide data here
1014
+ * ]
1015
+ * })
1016
+ * Note, that providing `undefined` is treated as the value not being there.
1017
+ * Read more here: https://pris.ly/d/null-undefined
1018
+ *
1019
+ */
1020
+ createManyAndReturn<T extends AdversarialResourceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1021
+
1022
+ /**
1023
+ * Delete a AdversarialResource.
1024
+ * @param {AdversarialResourceDeleteArgs} args - Arguments to delete one AdversarialResource.
1025
+ * @example
1026
+ * // Delete one AdversarialResource
1027
+ * const AdversarialResource = await prisma.adversarialResource.delete({
1028
+ * where: {
1029
+ * // ... filter to delete one AdversarialResource
1030
+ * }
1031
+ * })
1032
+ *
1033
+ */
1034
+ delete<T extends AdversarialResourceDeleteArgs>(args: Prisma.SelectSubset<T, AdversarialResourceDeleteArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1035
+
1036
+ /**
1037
+ * Update one AdversarialResource.
1038
+ * @param {AdversarialResourceUpdateArgs} args - Arguments to update one AdversarialResource.
1039
+ * @example
1040
+ * // Update one AdversarialResource
1041
+ * const adversarialResource = await prisma.adversarialResource.update({
1042
+ * where: {
1043
+ * // ... provide filter here
1044
+ * },
1045
+ * data: {
1046
+ * // ... provide data here
1047
+ * }
1048
+ * })
1049
+ *
1050
+ */
1051
+ update<T extends AdversarialResourceUpdateArgs>(args: Prisma.SelectSubset<T, AdversarialResourceUpdateArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1052
+
1053
+ /**
1054
+ * Delete zero or more AdversarialResources.
1055
+ * @param {AdversarialResourceDeleteManyArgs} args - Arguments to filter AdversarialResources to delete.
1056
+ * @example
1057
+ * // Delete a few AdversarialResources
1058
+ * const { count } = await prisma.adversarialResource.deleteMany({
1059
+ * where: {
1060
+ * // ... provide filter here
1061
+ * }
1062
+ * })
1063
+ *
1064
+ */
1065
+ deleteMany<T extends AdversarialResourceDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1066
+
1067
+ /**
1068
+ * Update zero or more AdversarialResources.
1069
+ * Note, that providing `undefined` is treated as the value not being there.
1070
+ * Read more here: https://pris.ly/d/null-undefined
1071
+ * @param {AdversarialResourceUpdateManyArgs} args - Arguments to update one or more rows.
1072
+ * @example
1073
+ * // Update many AdversarialResources
1074
+ * const adversarialResource = await prisma.adversarialResource.updateMany({
1075
+ * where: {
1076
+ * // ... provide filter here
1077
+ * },
1078
+ * data: {
1079
+ * // ... provide data here
1080
+ * }
1081
+ * })
1082
+ *
1083
+ */
1084
+ updateMany<T extends AdversarialResourceUpdateManyArgs>(args: Prisma.SelectSubset<T, AdversarialResourceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1085
+
1086
+ /**
1087
+ * Update zero or more AdversarialResources and returns the data updated in the database.
1088
+ * @param {AdversarialResourceUpdateManyAndReturnArgs} args - Arguments to update many AdversarialResources.
1089
+ * @example
1090
+ * // Update many AdversarialResources
1091
+ * const adversarialResource = await prisma.adversarialResource.updateManyAndReturn({
1092
+ * where: {
1093
+ * // ... provide filter here
1094
+ * },
1095
+ * data: [
1096
+ * // ... provide data here
1097
+ * ]
1098
+ * })
1099
+ *
1100
+ * // Update zero or more AdversarialResources and only return the `id`
1101
+ * const adversarialResourceWithIdOnly = await prisma.adversarialResource.updateManyAndReturn({
1102
+ * select: { id: true },
1103
+ * where: {
1104
+ * // ... provide filter here
1105
+ * },
1106
+ * data: [
1107
+ * // ... provide data here
1108
+ * ]
1109
+ * })
1110
+ * Note, that providing `undefined` is treated as the value not being there.
1111
+ * Read more here: https://pris.ly/d/null-undefined
1112
+ *
1113
+ */
1114
+ updateManyAndReturn<T extends AdversarialResourceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdversarialResourceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1115
+
1116
+ /**
1117
+ * Create or update one AdversarialResource.
1118
+ * @param {AdversarialResourceUpsertArgs} args - Arguments to update or create a AdversarialResource.
1119
+ * @example
1120
+ * // Update or create a AdversarialResource
1121
+ * const adversarialResource = await prisma.adversarialResource.upsert({
1122
+ * create: {
1123
+ * // ... data to create a AdversarialResource
1124
+ * },
1125
+ * update: {
1126
+ * // ... in case it already exists, update
1127
+ * },
1128
+ * where: {
1129
+ * // ... the filter for the AdversarialResource we want to update
1130
+ * }
1131
+ * })
1132
+ */
1133
+ upsert<T extends AdversarialResourceUpsertArgs>(args: Prisma.SelectSubset<T, AdversarialResourceUpsertArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1134
+
1135
+
1136
+ /**
1137
+ * Count the number of AdversarialResources.
1138
+ * Note, that providing `undefined` is treated as the value not being there.
1139
+ * Read more here: https://pris.ly/d/null-undefined
1140
+ * @param {AdversarialResourceCountArgs} args - Arguments to filter AdversarialResources to count.
1141
+ * @example
1142
+ * // Count the number of AdversarialResources
1143
+ * const count = await prisma.adversarialResource.count({
1144
+ * where: {
1145
+ * // ... the filter for the AdversarialResources we want to count
1146
+ * }
1147
+ * })
1148
+ **/
1149
+ count<T extends AdversarialResourceCountArgs>(
1150
+ args?: Prisma.Subset<T, AdversarialResourceCountArgs>,
1151
+ ): Prisma.PrismaPromise<
1152
+ T extends runtime.Types.Utils.Record<'select', any>
1153
+ ? T['select'] extends true
1154
+ ? number
1155
+ : Prisma.GetScalarType<T['select'], AdversarialResourceCountAggregateOutputType>
1156
+ : number
1157
+ >
1158
+
1159
+ /**
1160
+ * Allows you to perform aggregations operations on a AdversarialResource.
1161
+ * Note, that providing `undefined` is treated as the value not being there.
1162
+ * Read more here: https://pris.ly/d/null-undefined
1163
+ * @param {AdversarialResourceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1164
+ * @example
1165
+ * // Ordered by age ascending
1166
+ * // Where email contains prisma.io
1167
+ * // Limited to the 10 users
1168
+ * const aggregations = await prisma.user.aggregate({
1169
+ * _avg: {
1170
+ * age: true,
1171
+ * },
1172
+ * where: {
1173
+ * email: {
1174
+ * contains: "prisma.io",
1175
+ * },
1176
+ * },
1177
+ * orderBy: {
1178
+ * age: "asc",
1179
+ * },
1180
+ * take: 10,
1181
+ * })
1182
+ **/
1183
+ aggregate<T extends AdversarialResourceAggregateArgs>(args: Prisma.Subset<T, AdversarialResourceAggregateArgs>): Prisma.PrismaPromise<GetAdversarialResourceAggregateType<T>>
1184
+
1185
+ /**
1186
+ * Group by AdversarialResource.
1187
+ * Note, that providing `undefined` is treated as the value not being there.
1188
+ * Read more here: https://pris.ly/d/null-undefined
1189
+ * @param {AdversarialResourceGroupByArgs} args - Group by arguments.
1190
+ * @example
1191
+ * // Group by city, order by createdAt, get count
1192
+ * const result = await prisma.user.groupBy({
1193
+ * by: ['city', 'createdAt'],
1194
+ * orderBy: {
1195
+ * createdAt: true
1196
+ * },
1197
+ * _count: {
1198
+ * _all: true
1199
+ * },
1200
+ * })
1201
+ *
1202
+ **/
1203
+ groupBy<
1204
+ T extends AdversarialResourceGroupByArgs,
1205
+ HasSelectOrTake extends Prisma.Or<
1206
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1207
+ Prisma.Extends<'take', Prisma.Keys<T>>
1208
+ >,
1209
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1210
+ ? { orderBy: AdversarialResourceGroupByArgs['orderBy'] }
1211
+ : { orderBy?: AdversarialResourceGroupByArgs['orderBy'] },
1212
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1213
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1214
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1215
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1216
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1217
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1218
+ InputErrors extends ByEmpty extends Prisma.True
1219
+ ? `Error: "by" must not be empty.`
1220
+ : HavingValid extends Prisma.False
1221
+ ? {
1222
+ [P in HavingFields]: P extends ByFields
1223
+ ? never
1224
+ : P extends string
1225
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1226
+ : [
1227
+ Error,
1228
+ 'Field ',
1229
+ P,
1230
+ ` in "having" needs to be provided in "by"`,
1231
+ ]
1232
+ }[HavingFields]
1233
+ : 'take' extends Prisma.Keys<T>
1234
+ ? 'orderBy' extends Prisma.Keys<T>
1235
+ ? ByValid extends Prisma.True
1236
+ ? {}
1237
+ : {
1238
+ [P in OrderFields]: P extends ByFields
1239
+ ? never
1240
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1241
+ }[OrderFields]
1242
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1243
+ : 'skip' extends Prisma.Keys<T>
1244
+ ? 'orderBy' extends Prisma.Keys<T>
1245
+ ? ByValid extends Prisma.True
1246
+ ? {}
1247
+ : {
1248
+ [P in OrderFields]: P extends ByFields
1249
+ ? never
1250
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1251
+ }[OrderFields]
1252
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1253
+ : ByValid extends Prisma.True
1254
+ ? {}
1255
+ : {
1256
+ [P in OrderFields]: P extends ByFields
1257
+ ? never
1258
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1259
+ }[OrderFields]
1260
+ >(args: Prisma.SubsetIntersection<T, AdversarialResourceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdversarialResourceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1261
+ /**
1262
+ * Fields of the AdversarialResource model
1263
+ */
1264
+ readonly fields: AdversarialResourceFieldRefs;
1265
+ }
1266
+
1267
+ /**
1268
+ * The delegate class that acts as a "Promise-like" for AdversarialResource.
1269
+ * Why is this prefixed with `Prisma__`?
1270
+ * Because we want to prevent naming conflicts as mentioned in
1271
+ * https://github.com/prisma/prisma-client-js/issues/707
1272
+ */
1273
+ export interface Prisma__AdversarialResourceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1274
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1275
+ tags<T extends Prisma.AdversarialResource$tagsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$tagsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialTagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1276
+ categories<T extends Prisma.AdversarialResource$categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1277
+ parent<T extends Prisma.AdversarialResource$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$parentArgs<ExtArgs>>): Prisma.Prisma__AdversarialParentClient<runtime.Types.Result.GetResult<Prisma.$AdversarialParentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1278
+ /**
1279
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1280
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1281
+ * @param onrejected The callback to execute when the Promise is rejected.
1282
+ * @returns A Promise for the completion of which ever callback is executed.
1283
+ */
1284
+ 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>
1285
+ /**
1286
+ * Attaches a callback for only the rejection of the Promise.
1287
+ * @param onrejected The callback to execute when the Promise is rejected.
1288
+ * @returns A Promise for the completion of the callback.
1289
+ */
1290
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1291
+ /**
1292
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1293
+ * resolved value cannot be modified from the callback.
1294
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1295
+ * @returns A Promise for the completion of the callback.
1296
+ */
1297
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1298
+ }
1299
+
1300
+
1301
+
1302
+
1303
+ /**
1304
+ * Fields of the AdversarialResource model
1305
+ */
1306
+ export interface AdversarialResourceFieldRefs {
1307
+ readonly id: Prisma.FieldRef<"AdversarialResource", 'String'>
1308
+ readonly aBool: Prisma.FieldRef<"AdversarialResource", 'Boolean'>
1309
+ readonly aString: Prisma.FieldRef<"AdversarialResource", 'String'>
1310
+ readonly aNumber: Prisma.FieldRef<"AdversarialResource", 'Int'>
1311
+ readonly aDouble: Prisma.FieldRef<"AdversarialResource", 'Float'>
1312
+ readonly aOptionalString: Prisma.FieldRef<"AdversarialResource", 'String'>
1313
+ readonly createdBy: Prisma.FieldRef<"AdversarialResource", 'String'>
1314
+ readonly scope: Prisma.FieldRef<"AdversarialResource", 'String'>
1315
+ readonly createdAt: Prisma.FieldRef<"AdversarialResource", 'DateTime'>
1316
+ }
1317
+
1318
+
1319
+ // Custom InputTypes
1320
+ /**
1321
+ * AdversarialResource findUnique
1322
+ */
1323
+ export type AdversarialResourceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1324
+ /**
1325
+ * Select specific fields to fetch from the AdversarialResource
1326
+ */
1327
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1328
+ /**
1329
+ * Omit specific fields from the AdversarialResource
1330
+ */
1331
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1332
+ /**
1333
+ * Choose, which related nodes to fetch as well
1334
+ */
1335
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1336
+ /**
1337
+ * Filter, which AdversarialResource to fetch.
1338
+ */
1339
+ where: Prisma.AdversarialResourceWhereUniqueInput
1340
+ }
1341
+
1342
+ /**
1343
+ * AdversarialResource findUniqueOrThrow
1344
+ */
1345
+ export type AdversarialResourceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1346
+ /**
1347
+ * Select specific fields to fetch from the AdversarialResource
1348
+ */
1349
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1350
+ /**
1351
+ * Omit specific fields from the AdversarialResource
1352
+ */
1353
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1354
+ /**
1355
+ * Choose, which related nodes to fetch as well
1356
+ */
1357
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1358
+ /**
1359
+ * Filter, which AdversarialResource to fetch.
1360
+ */
1361
+ where: Prisma.AdversarialResourceWhereUniqueInput
1362
+ }
1363
+
1364
+ /**
1365
+ * AdversarialResource findFirst
1366
+ */
1367
+ export type AdversarialResourceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1368
+ /**
1369
+ * Select specific fields to fetch from the AdversarialResource
1370
+ */
1371
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1372
+ /**
1373
+ * Omit specific fields from the AdversarialResource
1374
+ */
1375
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1376
+ /**
1377
+ * Choose, which related nodes to fetch as well
1378
+ */
1379
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1380
+ /**
1381
+ * Filter, which AdversarialResource to fetch.
1382
+ */
1383
+ where?: Prisma.AdversarialResourceWhereInput
1384
+ /**
1385
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1386
+ *
1387
+ * Determine the order of AdversarialResources to fetch.
1388
+ */
1389
+ orderBy?: Prisma.AdversarialResourceOrderByWithRelationInput | Prisma.AdversarialResourceOrderByWithRelationInput[]
1390
+ /**
1391
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1392
+ *
1393
+ * Sets the position for searching for AdversarialResources.
1394
+ */
1395
+ cursor?: Prisma.AdversarialResourceWhereUniqueInput
1396
+ /**
1397
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1398
+ *
1399
+ * Take `±n` AdversarialResources from the position of the cursor.
1400
+ */
1401
+ take?: number
1402
+ /**
1403
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1404
+ *
1405
+ * Skip the first `n` AdversarialResources.
1406
+ */
1407
+ skip?: number
1408
+ /**
1409
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1410
+ *
1411
+ * Filter by unique combinations of AdversarialResources.
1412
+ */
1413
+ distinct?: Prisma.AdversarialResourceScalarFieldEnum | Prisma.AdversarialResourceScalarFieldEnum[]
1414
+ }
1415
+
1416
+ /**
1417
+ * AdversarialResource findFirstOrThrow
1418
+ */
1419
+ export type AdversarialResourceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1420
+ /**
1421
+ * Select specific fields to fetch from the AdversarialResource
1422
+ */
1423
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1424
+ /**
1425
+ * Omit specific fields from the AdversarialResource
1426
+ */
1427
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1428
+ /**
1429
+ * Choose, which related nodes to fetch as well
1430
+ */
1431
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1432
+ /**
1433
+ * Filter, which AdversarialResource to fetch.
1434
+ */
1435
+ where?: Prisma.AdversarialResourceWhereInput
1436
+ /**
1437
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1438
+ *
1439
+ * Determine the order of AdversarialResources to fetch.
1440
+ */
1441
+ orderBy?: Prisma.AdversarialResourceOrderByWithRelationInput | Prisma.AdversarialResourceOrderByWithRelationInput[]
1442
+ /**
1443
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1444
+ *
1445
+ * Sets the position for searching for AdversarialResources.
1446
+ */
1447
+ cursor?: Prisma.AdversarialResourceWhereUniqueInput
1448
+ /**
1449
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1450
+ *
1451
+ * Take `±n` AdversarialResources from the position of the cursor.
1452
+ */
1453
+ take?: number
1454
+ /**
1455
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1456
+ *
1457
+ * Skip the first `n` AdversarialResources.
1458
+ */
1459
+ skip?: number
1460
+ /**
1461
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1462
+ *
1463
+ * Filter by unique combinations of AdversarialResources.
1464
+ */
1465
+ distinct?: Prisma.AdversarialResourceScalarFieldEnum | Prisma.AdversarialResourceScalarFieldEnum[]
1466
+ }
1467
+
1468
+ /**
1469
+ * AdversarialResource findMany
1470
+ */
1471
+ export type AdversarialResourceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1472
+ /**
1473
+ * Select specific fields to fetch from the AdversarialResource
1474
+ */
1475
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1476
+ /**
1477
+ * Omit specific fields from the AdversarialResource
1478
+ */
1479
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1480
+ /**
1481
+ * Choose, which related nodes to fetch as well
1482
+ */
1483
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1484
+ /**
1485
+ * Filter, which AdversarialResources to fetch.
1486
+ */
1487
+ where?: Prisma.AdversarialResourceWhereInput
1488
+ /**
1489
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1490
+ *
1491
+ * Determine the order of AdversarialResources to fetch.
1492
+ */
1493
+ orderBy?: Prisma.AdversarialResourceOrderByWithRelationInput | Prisma.AdversarialResourceOrderByWithRelationInput[]
1494
+ /**
1495
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1496
+ *
1497
+ * Sets the position for listing AdversarialResources.
1498
+ */
1499
+ cursor?: Prisma.AdversarialResourceWhereUniqueInput
1500
+ /**
1501
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1502
+ *
1503
+ * Take `±n` AdversarialResources from the position of the cursor.
1504
+ */
1505
+ take?: number
1506
+ /**
1507
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1508
+ *
1509
+ * Skip the first `n` AdversarialResources.
1510
+ */
1511
+ skip?: number
1512
+ /**
1513
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1514
+ *
1515
+ * Filter by unique combinations of AdversarialResources.
1516
+ */
1517
+ distinct?: Prisma.AdversarialResourceScalarFieldEnum | Prisma.AdversarialResourceScalarFieldEnum[]
1518
+ }
1519
+
1520
+ /**
1521
+ * AdversarialResource create
1522
+ */
1523
+ export type AdversarialResourceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1524
+ /**
1525
+ * Select specific fields to fetch from the AdversarialResource
1526
+ */
1527
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1528
+ /**
1529
+ * Omit specific fields from the AdversarialResource
1530
+ */
1531
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1532
+ /**
1533
+ * Choose, which related nodes to fetch as well
1534
+ */
1535
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1536
+ /**
1537
+ * The data needed to create a AdversarialResource.
1538
+ */
1539
+ data: Prisma.XOR<Prisma.AdversarialResourceCreateInput, Prisma.AdversarialResourceUncheckedCreateInput>
1540
+ }
1541
+
1542
+ /**
1543
+ * AdversarialResource createMany
1544
+ */
1545
+ export type AdversarialResourceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1546
+ /**
1547
+ * The data used to create many AdversarialResources.
1548
+ */
1549
+ data: Prisma.AdversarialResourceCreateManyInput | Prisma.AdversarialResourceCreateManyInput[]
1550
+ skipDuplicates?: boolean
1551
+ }
1552
+
1553
+ /**
1554
+ * AdversarialResource createManyAndReturn
1555
+ */
1556
+ export type AdversarialResourceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1557
+ /**
1558
+ * Select specific fields to fetch from the AdversarialResource
1559
+ */
1560
+ select?: Prisma.AdversarialResourceSelectCreateManyAndReturn<ExtArgs> | null
1561
+ /**
1562
+ * Omit specific fields from the AdversarialResource
1563
+ */
1564
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1565
+ /**
1566
+ * The data used to create many AdversarialResources.
1567
+ */
1568
+ data: Prisma.AdversarialResourceCreateManyInput | Prisma.AdversarialResourceCreateManyInput[]
1569
+ skipDuplicates?: boolean
1570
+ }
1571
+
1572
+ /**
1573
+ * AdversarialResource update
1574
+ */
1575
+ export type AdversarialResourceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1576
+ /**
1577
+ * Select specific fields to fetch from the AdversarialResource
1578
+ */
1579
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1580
+ /**
1581
+ * Omit specific fields from the AdversarialResource
1582
+ */
1583
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1584
+ /**
1585
+ * Choose, which related nodes to fetch as well
1586
+ */
1587
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1588
+ /**
1589
+ * The data needed to update a AdversarialResource.
1590
+ */
1591
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateInput, Prisma.AdversarialResourceUncheckedUpdateInput>
1592
+ /**
1593
+ * Choose, which AdversarialResource to update.
1594
+ */
1595
+ where: Prisma.AdversarialResourceWhereUniqueInput
1596
+ }
1597
+
1598
+ /**
1599
+ * AdversarialResource updateMany
1600
+ */
1601
+ export type AdversarialResourceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
+ /**
1603
+ * The data used to update AdversarialResources.
1604
+ */
1605
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateManyMutationInput, Prisma.AdversarialResourceUncheckedUpdateManyInput>
1606
+ /**
1607
+ * Filter which AdversarialResources to update
1608
+ */
1609
+ where?: Prisma.AdversarialResourceWhereInput
1610
+ /**
1611
+ * Limit how many AdversarialResources to update.
1612
+ */
1613
+ limit?: number
1614
+ }
1615
+
1616
+ /**
1617
+ * AdversarialResource updateManyAndReturn
1618
+ */
1619
+ export type AdversarialResourceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1620
+ /**
1621
+ * Select specific fields to fetch from the AdversarialResource
1622
+ */
1623
+ select?: Prisma.AdversarialResourceSelectUpdateManyAndReturn<ExtArgs> | null
1624
+ /**
1625
+ * Omit specific fields from the AdversarialResource
1626
+ */
1627
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1628
+ /**
1629
+ * The data used to update AdversarialResources.
1630
+ */
1631
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateManyMutationInput, Prisma.AdversarialResourceUncheckedUpdateManyInput>
1632
+ /**
1633
+ * Filter which AdversarialResources to update
1634
+ */
1635
+ where?: Prisma.AdversarialResourceWhereInput
1636
+ /**
1637
+ * Limit how many AdversarialResources to update.
1638
+ */
1639
+ limit?: number
1640
+ }
1641
+
1642
+ /**
1643
+ * AdversarialResource upsert
1644
+ */
1645
+ export type AdversarialResourceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1646
+ /**
1647
+ * Select specific fields to fetch from the AdversarialResource
1648
+ */
1649
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1650
+ /**
1651
+ * Omit specific fields from the AdversarialResource
1652
+ */
1653
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1654
+ /**
1655
+ * Choose, which related nodes to fetch as well
1656
+ */
1657
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1658
+ /**
1659
+ * The filter to search for the AdversarialResource to update in case it exists.
1660
+ */
1661
+ where: Prisma.AdversarialResourceWhereUniqueInput
1662
+ /**
1663
+ * In case the AdversarialResource found by the `where` argument doesn't exist, create a new AdversarialResource with this data.
1664
+ */
1665
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateInput, Prisma.AdversarialResourceUncheckedCreateInput>
1666
+ /**
1667
+ * In case the AdversarialResource was found with the provided `where` argument, update it with this data.
1668
+ */
1669
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateInput, Prisma.AdversarialResourceUncheckedUpdateInput>
1670
+ }
1671
+
1672
+ /**
1673
+ * AdversarialResource delete
1674
+ */
1675
+ export type AdversarialResourceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1676
+ /**
1677
+ * Select specific fields to fetch from the AdversarialResource
1678
+ */
1679
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1680
+ /**
1681
+ * Omit specific fields from the AdversarialResource
1682
+ */
1683
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1684
+ /**
1685
+ * Choose, which related nodes to fetch as well
1686
+ */
1687
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1688
+ /**
1689
+ * Filter which AdversarialResource to delete.
1690
+ */
1691
+ where: Prisma.AdversarialResourceWhereUniqueInput
1692
+ }
1693
+
1694
+ /**
1695
+ * AdversarialResource deleteMany
1696
+ */
1697
+ export type AdversarialResourceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1698
+ /**
1699
+ * Filter which AdversarialResources to delete
1700
+ */
1701
+ where?: Prisma.AdversarialResourceWhereInput
1702
+ /**
1703
+ * Limit how many AdversarialResources to delete.
1704
+ */
1705
+ limit?: number
1706
+ }
1707
+
1708
+ /**
1709
+ * AdversarialResource.tags
1710
+ */
1711
+ export type AdversarialResource$tagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1712
+ /**
1713
+ * Select specific fields to fetch from the AdversarialTag
1714
+ */
1715
+ select?: Prisma.AdversarialTagSelect<ExtArgs> | null
1716
+ /**
1717
+ * Omit specific fields from the AdversarialTag
1718
+ */
1719
+ omit?: Prisma.AdversarialTagOmit<ExtArgs> | null
1720
+ /**
1721
+ * Choose, which related nodes to fetch as well
1722
+ */
1723
+ include?: Prisma.AdversarialTagInclude<ExtArgs> | null
1724
+ where?: Prisma.AdversarialTagWhereInput
1725
+ orderBy?: Prisma.AdversarialTagOrderByWithRelationInput | Prisma.AdversarialTagOrderByWithRelationInput[]
1726
+ cursor?: Prisma.AdversarialTagWhereUniqueInput
1727
+ take?: number
1728
+ skip?: number
1729
+ distinct?: Prisma.AdversarialTagScalarFieldEnum | Prisma.AdversarialTagScalarFieldEnum[]
1730
+ }
1731
+
1732
+ /**
1733
+ * AdversarialResource.categories
1734
+ */
1735
+ export type AdversarialResource$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1736
+ /**
1737
+ * Select specific fields to fetch from the AdversarialCategory
1738
+ */
1739
+ select?: Prisma.AdversarialCategorySelect<ExtArgs> | null
1740
+ /**
1741
+ * Omit specific fields from the AdversarialCategory
1742
+ */
1743
+ omit?: Prisma.AdversarialCategoryOmit<ExtArgs> | null
1744
+ /**
1745
+ * Choose, which related nodes to fetch as well
1746
+ */
1747
+ include?: Prisma.AdversarialCategoryInclude<ExtArgs> | null
1748
+ where?: Prisma.AdversarialCategoryWhereInput
1749
+ orderBy?: Prisma.AdversarialCategoryOrderByWithRelationInput | Prisma.AdversarialCategoryOrderByWithRelationInput[]
1750
+ cursor?: Prisma.AdversarialCategoryWhereUniqueInput
1751
+ take?: number
1752
+ skip?: number
1753
+ distinct?: Prisma.AdversarialCategoryScalarFieldEnum | Prisma.AdversarialCategoryScalarFieldEnum[]
1754
+ }
1755
+
1756
+ /**
1757
+ * AdversarialResource.parent
1758
+ */
1759
+ export type AdversarialResource$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1760
+ /**
1761
+ * Select specific fields to fetch from the AdversarialParent
1762
+ */
1763
+ select?: Prisma.AdversarialParentSelect<ExtArgs> | null
1764
+ /**
1765
+ * Omit specific fields from the AdversarialParent
1766
+ */
1767
+ omit?: Prisma.AdversarialParentOmit<ExtArgs> | null
1768
+ /**
1769
+ * Choose, which related nodes to fetch as well
1770
+ */
1771
+ include?: Prisma.AdversarialParentInclude<ExtArgs> | null
1772
+ where?: Prisma.AdversarialParentWhereInput
1773
+ }
1774
+
1775
+ /**
1776
+ * AdversarialResource without action
1777
+ */
1778
+ export type AdversarialResourceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1779
+ /**
1780
+ * Select specific fields to fetch from the AdversarialResource
1781
+ */
1782
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1783
+ /**
1784
+ * Omit specific fields from the AdversarialResource
1785
+ */
1786
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1787
+ /**
1788
+ * Choose, which related nodes to fetch as well
1789
+ */
1790
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1791
+ }