@cerbos/orm-prisma 4.0.0 → 5.0.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 (203) hide show
  1. package/README.md +611 -460
  2. package/lib/collections.d.ts +30 -0
  3. package/lib/collections.d.ts.map +1 -0
  4. package/lib/collections.js +421 -0
  5. package/lib/collections.js.map +1 -0
  6. package/lib/comparison.d.ts +24 -0
  7. package/lib/comparison.d.ts.map +1 -0
  8. package/lib/comparison.js +731 -0
  9. package/lib/comparison.js.map +1 -0
  10. package/lib/errors.d.ts +13 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +17 -0
  13. package/lib/errors.js.map +1 -0
  14. package/lib/evaluate.d.ts +5 -0
  15. package/lib/evaluate.d.ts.map +1 -0
  16. package/lib/evaluate.js +118 -0
  17. package/lib/evaluate.js.map +1 -0
  18. package/lib/fields.d.ts +34 -0
  19. package/lib/fields.d.ts.map +1 -0
  20. package/lib/fields.js +253 -0
  21. package/lib/fields.js.map +1 -0
  22. package/lib/functions.d.ts +5 -0
  23. package/lib/functions.d.ts.map +1 -0
  24. package/lib/functions.js +408 -0
  25. package/lib/functions.js.map +1 -0
  26. package/lib/hierarchy.d.ts +6 -0
  27. package/lib/hierarchy.d.ts.map +1 -0
  28. package/lib/hierarchy.js +266 -0
  29. package/lib/hierarchy.js.map +1 -0
  30. package/lib/index.d.ts +91 -8
  31. package/lib/index.d.ts.map +1 -1
  32. package/lib/index.js +34 -2301
  33. package/lib/index.js.map +1 -1
  34. package/lib/literals.d.ts +20 -0
  35. package/lib/literals.d.ts.map +1 -0
  36. package/lib/literals.js +290 -0
  37. package/lib/literals.js.map +1 -0
  38. package/lib/mapping.d.ts +95 -0
  39. package/lib/mapping.d.ts.map +1 -0
  40. package/lib/mapping.js +316 -0
  41. package/lib/mapping.js.map +1 -0
  42. package/lib/narrowing.d.ts +12 -0
  43. package/lib/narrowing.d.ts.map +1 -0
  44. package/lib/narrowing.js +32 -0
  45. package/lib/narrowing.js.map +1 -0
  46. package/lib/plan.d.ts +49 -0
  47. package/lib/plan.d.ts.map +1 -0
  48. package/lib/plan.js +86 -0
  49. package/lib/plan.js.map +1 -0
  50. package/lib/presence.d.ts +25 -0
  51. package/lib/presence.d.ts.map +1 -0
  52. package/lib/presence.js +82 -0
  53. package/lib/presence.js.map +1 -0
  54. package/lib/regex.d.ts +33 -0
  55. package/lib/regex.d.ts.map +1 -0
  56. package/lib/regex.js +480 -0
  57. package/lib/regex.js.map +1 -0
  58. package/lib/relations.d.ts +58 -0
  59. package/lib/relations.d.ts.map +1 -0
  60. package/lib/relations.js +175 -0
  61. package/lib/relations.js.map +1 -0
  62. package/lib/rewrite.d.ts +36 -0
  63. package/lib/rewrite.d.ts.map +1 -0
  64. package/lib/rewrite.js +366 -0
  65. package/lib/rewrite.js.map +1 -0
  66. package/lib/solve.d.ts +20 -0
  67. package/lib/solve.d.ts.map +1 -0
  68. package/lib/solve.js +77 -0
  69. package/lib/solve.js.map +1 -0
  70. package/lib/strings.d.ts +12 -0
  71. package/lib/strings.d.ts.map +1 -0
  72. package/lib/strings.js +110 -0
  73. package/lib/strings.js.map +1 -0
  74. package/lib/ternary.d.ts +12 -0
  75. package/lib/ternary.d.ts.map +1 -0
  76. package/lib/ternary.js +192 -0
  77. package/lib/ternary.js.map +1 -0
  78. package/lib/timestamp.d.ts +45 -0
  79. package/lib/timestamp.d.ts.map +1 -0
  80. package/lib/timestamp.js +225 -0
  81. package/lib/timestamp.js.map +1 -0
  82. package/lib/translate.d.ts +20 -0
  83. package/lib/translate.d.ts.map +1 -0
  84. package/lib/translate.js +287 -0
  85. package/lib/translate.js.map +1 -0
  86. package/lib/types.d.ts +29 -0
  87. package/lib/types.d.ts.map +1 -0
  88. package/lib/types.js +980 -0
  89. package/lib/types.js.map +1 -0
  90. package/lib/value.d.ts +8 -0
  91. package/lib/value.d.ts.map +1 -0
  92. package/lib/value.js +7 -0
  93. package/lib/value.js.map +1 -0
  94. package/package.json +31 -18
  95. package/src/adversarial.test.ts +488 -488
  96. package/src/collections.ts +738 -0
  97. package/src/comparison.ts +1157 -0
  98. package/src/corpus.ts +597 -0
  99. package/src/errors.ts +12 -0
  100. package/src/evaluate.ts +170 -0
  101. package/src/fields.ts +373 -0
  102. package/src/functions.ts +548 -0
  103. package/src/generated/prisma-adversarial/browser.ts +20 -0
  104. package/src/generated/prisma-adversarial/client.ts +20 -0
  105. package/src/generated/prisma-adversarial/commonInputTypes.ts +116 -127
  106. package/src/generated/prisma-adversarial/internal/class.ts +44 -4
  107. package/src/generated/prisma-adversarial/internal/prismaNamespace.ts +350 -3
  108. package/src/generated/prisma-adversarial/internal/prismaNamespaceBrowser.ts +49 -2
  109. package/src/generated/prisma-adversarial/models/AdversarialBoolListElement.ts +1272 -0
  110. package/src/generated/prisma-adversarial/models/AdversarialInner.ts +1369 -0
  111. package/src/generated/prisma-adversarial/models/AdversarialNumberListElement.ts +1316 -0
  112. package/src/generated/prisma-adversarial/models/AdversarialParent.ts +1474 -0
  113. package/src/generated/prisma-adversarial/models/AdversarialResource.ts +547 -75
  114. package/src/generated/prisma-adversarial/models.ts +4 -0
  115. package/src/generated/prisma-adversarial-mysql/browser.ts +64 -0
  116. package/src/generated/{prisma → prisma-adversarial-mysql}/client.ts +23 -18
  117. package/src/generated/{prisma → prisma-adversarial-mysql}/commonInputTypes.ts +167 -92
  118. package/src/generated/prisma-adversarial-mysql/internal/class.ts +284 -0
  119. package/src/generated/prisma-adversarial-mysql/internal/prismaNamespace.ts +1518 -0
  120. package/src/generated/prisma-adversarial-mysql/internal/prismaNamespaceBrowser.ts +274 -0
  121. package/src/generated/prisma-adversarial-mysql/models/AdversarialBoolListElement.ts +1157 -0
  122. package/src/generated/prisma-adversarial-mysql/models/AdversarialCategory.ts +1286 -0
  123. package/src/generated/prisma-adversarial-mysql/models/AdversarialInner.ts +1247 -0
  124. package/src/generated/prisma-adversarial-mysql/models/AdversarialLabel.ts +1157 -0
  125. package/src/generated/prisma-adversarial-mysql/models/AdversarialNumberListElement.ts +1201 -0
  126. package/src/generated/prisma-adversarial-mysql/models/AdversarialParent.ts +1352 -0
  127. package/src/generated/prisma-adversarial-mysql/models/AdversarialResource.ts +2021 -0
  128. package/src/generated/prisma-adversarial-mysql/models/AdversarialSubCategory.ts +1286 -0
  129. package/src/generated/prisma-adversarial-mysql/models/AdversarialTag.ts +1190 -0
  130. package/src/generated/prisma-adversarial-mysql/models.ts +20 -0
  131. package/src/generated/prisma-adversarial-mysql-v6/index.d.ts +13822 -0
  132. package/src/generated/prisma-adversarial-pg/browser.ts +64 -0
  133. package/src/generated/prisma-adversarial-pg/client.ts +86 -0
  134. package/src/generated/prisma-adversarial-pg/commonInputTypes.ts +345 -0
  135. package/src/generated/prisma-adversarial-pg/enums.ts +15 -0
  136. package/src/generated/prisma-adversarial-pg/internal/class.ts +284 -0
  137. package/src/generated/prisma-adversarial-pg/internal/prismaNamespace.ts +1542 -0
  138. package/src/generated/{prisma → prisma-adversarial-pg}/internal/prismaNamespaceBrowser.ts +72 -43
  139. package/src/generated/prisma-adversarial-pg/models/AdversarialBoolListElement.ts +1275 -0
  140. package/src/generated/prisma-adversarial-pg/models/AdversarialCategory.ts +1404 -0
  141. package/src/generated/prisma-adversarial-pg/models/AdversarialInner.ts +1371 -0
  142. package/src/generated/prisma-adversarial-pg/models/AdversarialLabel.ts +1275 -0
  143. package/src/generated/prisma-adversarial-pg/models/AdversarialNumberListElement.ts +1319 -0
  144. package/src/generated/prisma-adversarial-pg/models/AdversarialParent.ts +1476 -0
  145. package/src/generated/prisma-adversarial-pg/models/AdversarialResource.ts +2139 -0
  146. package/src/generated/prisma-adversarial-pg/models/AdversarialSubCategory.ts +1404 -0
  147. package/src/generated/prisma-adversarial-pg/models/AdversarialTag.ts +1310 -0
  148. package/src/generated/prisma-adversarial-pg/models.ts +20 -0
  149. package/src/generated/prisma-adversarial-pg-v6/client.d.ts +1 -0
  150. package/src/generated/prisma-adversarial-pg-v6/default.d.ts +1 -0
  151. package/src/generated/prisma-adversarial-pg-v6/edge.d.ts +1 -0
  152. package/src/generated/prisma-adversarial-pg-v6/index.d.ts +14918 -0
  153. package/src/generated/prisma-adversarial-pg-v6/runtime/index-browser.d.ts +370 -0
  154. package/src/generated/prisma-adversarial-pg-v6/runtime/library.d.ts +3982 -0
  155. package/src/generated/prisma-adversarial-pg-v6/wasm.d.ts +1 -0
  156. package/src/generated/prisma-adversarial-v6/index.d.ts +6515 -304
  157. package/src/hierarchy.ts +405 -0
  158. package/src/index.ts +134 -3325
  159. package/src/literals.ts +363 -0
  160. package/src/mapping.ts +474 -0
  161. package/src/narrowing.ts +33 -0
  162. package/src/plan.ts +125 -0
  163. package/src/presence.ts +114 -0
  164. package/src/regex.ts +596 -0
  165. package/src/relations.ts +226 -0
  166. package/src/rewrite.ts +524 -0
  167. package/src/solve.ts +96 -0
  168. package/src/strings.ts +152 -0
  169. package/src/ternary.ts +359 -0
  170. package/src/test-setup.adversarial-url.ts +21 -0
  171. package/src/test-setup.adversarial.mysql.v6.ts +13 -0
  172. package/src/test-setup.adversarial.mysql.v7.ts +12 -0
  173. package/src/test-setup.adversarial.pg.v6.ts +13 -0
  174. package/src/test-setup.adversarial.pg.v7.ts +9 -0
  175. package/src/test-setup.adversarial.v7.ts +1 -0
  176. package/src/timestamp.ts +308 -0
  177. package/src/translate.ts +419 -0
  178. package/src/translator.test.ts +766 -0
  179. package/src/types.ts +1310 -0
  180. package/src/value.ts +16 -0
  181. package/src/generated/prisma/browser.ts +0 -59
  182. package/src/generated/prisma/internal/class.ts +0 -274
  183. package/src/generated/prisma/internal/prismaNamespace.ts +0 -1403
  184. package/src/generated/prisma/models/Category.ts +0 -1412
  185. package/src/generated/prisma/models/Label.ts +0 -1276
  186. package/src/generated/prisma/models/NestedResource.ts +0 -1562
  187. package/src/generated/prisma/models/NextLevelNestedResource.ts +0 -1337
  188. package/src/generated/prisma/models/Resource.ts +0 -2196
  189. package/src/generated/prisma/models/SubCategory.ts +0 -1412
  190. package/src/generated/prisma/models/Tag.ts +0 -1276
  191. package/src/generated/prisma/models/User.ts +0 -1503
  192. package/src/generated/prisma/models.ts +0 -19
  193. package/src/generated/prisma-v6/index.d.ts +0 -13726
  194. package/src/index.test.ts +0 -8885
  195. package/src/test-setup.v6.ts +0 -5
  196. package/src/test-setup.v7.ts +0 -7
  197. /package/src/generated/{prisma → prisma-adversarial-mysql}/enums.ts +0 -0
  198. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/client.d.ts +0 -0
  199. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/default.d.ts +0 -0
  200. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/edge.d.ts +0 -0
  201. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/runtime/index-browser.d.ts +0 -0
  202. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/runtime/library.d.ts +0 -0
  203. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/wasm.d.ts +0 -0
@@ -0,0 +1,1275 @@
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 `AdversarialLabel` 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 AdversarialLabel
17
+ *
18
+ */
19
+ export type AdversarialLabelModel = runtime.Types.Result.DefaultSelection<Prisma.$AdversarialLabelPayload>
20
+
21
+ export type AggregateAdversarialLabel = {
22
+ _count: AdversarialLabelCountAggregateOutputType | null
23
+ _min: AdversarialLabelMinAggregateOutputType | null
24
+ _max: AdversarialLabelMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type AdversarialLabelMinAggregateOutputType = {
28
+ id: string | null
29
+ name: string | null
30
+ subCategoryId: string | null
31
+ }
32
+
33
+ export type AdversarialLabelMaxAggregateOutputType = {
34
+ id: string | null
35
+ name: string | null
36
+ subCategoryId: string | null
37
+ }
38
+
39
+ export type AdversarialLabelCountAggregateOutputType = {
40
+ id: number
41
+ name: number
42
+ subCategoryId: number
43
+ _all: number
44
+ }
45
+
46
+
47
+ export type AdversarialLabelMinAggregateInputType = {
48
+ id?: true
49
+ name?: true
50
+ subCategoryId?: true
51
+ }
52
+
53
+ export type AdversarialLabelMaxAggregateInputType = {
54
+ id?: true
55
+ name?: true
56
+ subCategoryId?: true
57
+ }
58
+
59
+ export type AdversarialLabelCountAggregateInputType = {
60
+ id?: true
61
+ name?: true
62
+ subCategoryId?: true
63
+ _all?: true
64
+ }
65
+
66
+ export type AdversarialLabelAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
67
+ /**
68
+ * Filter which AdversarialLabel to aggregate.
69
+ */
70
+ where?: Prisma.AdversarialLabelWhereInput
71
+ /**
72
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
73
+ *
74
+ * Determine the order of AdversarialLabels to fetch.
75
+ */
76
+ orderBy?: Prisma.AdversarialLabelOrderByWithRelationInput | Prisma.AdversarialLabelOrderByWithRelationInput[]
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
79
+ *
80
+ * Sets the start position
81
+ */
82
+ cursor?: Prisma.AdversarialLabelWhereUniqueInput
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
85
+ *
86
+ * Take `±n` AdversarialLabels from the position of the cursor.
87
+ */
88
+ take?: number
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Skip the first `n` AdversarialLabels.
93
+ */
94
+ skip?: number
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
97
+ *
98
+ * Count returned AdversarialLabels
99
+ **/
100
+ _count?: true | AdversarialLabelCountAggregateInputType
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Select which fields to find the minimum value
105
+ **/
106
+ _min?: AdversarialLabelMinAggregateInputType
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to find the maximum value
111
+ **/
112
+ _max?: AdversarialLabelMaxAggregateInputType
113
+ }
114
+
115
+ export type GetAdversarialLabelAggregateType<T extends AdversarialLabelAggregateArgs> = {
116
+ [P in keyof T & keyof AggregateAdversarialLabel]: P extends '_count' | 'count'
117
+ ? T[P] extends true
118
+ ? number
119
+ : Prisma.GetScalarType<T[P], AggregateAdversarialLabel[P]>
120
+ : Prisma.GetScalarType<T[P], AggregateAdversarialLabel[P]>
121
+ }
122
+
123
+
124
+
125
+
126
+ export type AdversarialLabelGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
+ where?: Prisma.AdversarialLabelWhereInput
128
+ orderBy?: Prisma.AdversarialLabelOrderByWithAggregationInput | Prisma.AdversarialLabelOrderByWithAggregationInput[]
129
+ by: Prisma.AdversarialLabelScalarFieldEnum[] | Prisma.AdversarialLabelScalarFieldEnum
130
+ having?: Prisma.AdversarialLabelScalarWhereWithAggregatesInput
131
+ take?: number
132
+ skip?: number
133
+ _count?: AdversarialLabelCountAggregateInputType | true
134
+ _min?: AdversarialLabelMinAggregateInputType
135
+ _max?: AdversarialLabelMaxAggregateInputType
136
+ }
137
+
138
+ export type AdversarialLabelGroupByOutputType = {
139
+ id: string
140
+ name: string | null
141
+ subCategoryId: string
142
+ _count: AdversarialLabelCountAggregateOutputType | null
143
+ _min: AdversarialLabelMinAggregateOutputType | null
144
+ _max: AdversarialLabelMaxAggregateOutputType | null
145
+ }
146
+
147
+ export type GetAdversarialLabelGroupByPayload<T extends AdversarialLabelGroupByArgs> = Prisma.PrismaPromise<
148
+ Array<
149
+ Prisma.PickEnumerable<AdversarialLabelGroupByOutputType, T['by']> &
150
+ {
151
+ [P in ((keyof T) & (keyof AdversarialLabelGroupByOutputType))]: P extends '_count'
152
+ ? T[P] extends boolean
153
+ ? number
154
+ : Prisma.GetScalarType<T[P], AdversarialLabelGroupByOutputType[P]>
155
+ : Prisma.GetScalarType<T[P], AdversarialLabelGroupByOutputType[P]>
156
+ }
157
+ >
158
+ >
159
+
160
+
161
+
162
+ export type AdversarialLabelWhereInput = {
163
+ AND?: Prisma.AdversarialLabelWhereInput | Prisma.AdversarialLabelWhereInput[]
164
+ OR?: Prisma.AdversarialLabelWhereInput[]
165
+ NOT?: Prisma.AdversarialLabelWhereInput | Prisma.AdversarialLabelWhereInput[]
166
+ id?: Prisma.StringFilter<"AdversarialLabel"> | string
167
+ name?: Prisma.StringNullableFilter<"AdversarialLabel"> | string | null
168
+ subCategoryId?: Prisma.StringFilter<"AdversarialLabel"> | string
169
+ subCategory?: Prisma.XOR<Prisma.AdversarialSubCategoryScalarRelationFilter, Prisma.AdversarialSubCategoryWhereInput>
170
+ }
171
+
172
+ export type AdversarialLabelOrderByWithRelationInput = {
173
+ id?: Prisma.SortOrder
174
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
175
+ subCategoryId?: Prisma.SortOrder
176
+ subCategory?: Prisma.AdversarialSubCategoryOrderByWithRelationInput
177
+ }
178
+
179
+ export type AdversarialLabelWhereUniqueInput = Prisma.AtLeast<{
180
+ id?: string
181
+ AND?: Prisma.AdversarialLabelWhereInput | Prisma.AdversarialLabelWhereInput[]
182
+ OR?: Prisma.AdversarialLabelWhereInput[]
183
+ NOT?: Prisma.AdversarialLabelWhereInput | Prisma.AdversarialLabelWhereInput[]
184
+ name?: Prisma.StringNullableFilter<"AdversarialLabel"> | string | null
185
+ subCategoryId?: Prisma.StringFilter<"AdversarialLabel"> | string
186
+ subCategory?: Prisma.XOR<Prisma.AdversarialSubCategoryScalarRelationFilter, Prisma.AdversarialSubCategoryWhereInput>
187
+ }, "id">
188
+
189
+ export type AdversarialLabelOrderByWithAggregationInput = {
190
+ id?: Prisma.SortOrder
191
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
192
+ subCategoryId?: Prisma.SortOrder
193
+ _count?: Prisma.AdversarialLabelCountOrderByAggregateInput
194
+ _max?: Prisma.AdversarialLabelMaxOrderByAggregateInput
195
+ _min?: Prisma.AdversarialLabelMinOrderByAggregateInput
196
+ }
197
+
198
+ export type AdversarialLabelScalarWhereWithAggregatesInput = {
199
+ AND?: Prisma.AdversarialLabelScalarWhereWithAggregatesInput | Prisma.AdversarialLabelScalarWhereWithAggregatesInput[]
200
+ OR?: Prisma.AdversarialLabelScalarWhereWithAggregatesInput[]
201
+ NOT?: Prisma.AdversarialLabelScalarWhereWithAggregatesInput | Prisma.AdversarialLabelScalarWhereWithAggregatesInput[]
202
+ id?: Prisma.StringWithAggregatesFilter<"AdversarialLabel"> | string
203
+ name?: Prisma.StringNullableWithAggregatesFilter<"AdversarialLabel"> | string | null
204
+ subCategoryId?: Prisma.StringWithAggregatesFilter<"AdversarialLabel"> | string
205
+ }
206
+
207
+ export type AdversarialLabelCreateInput = {
208
+ id?: string
209
+ name?: string | null
210
+ subCategory: Prisma.AdversarialSubCategoryCreateNestedOneWithoutLabelsInput
211
+ }
212
+
213
+ export type AdversarialLabelUncheckedCreateInput = {
214
+ id?: string
215
+ name?: string | null
216
+ subCategoryId: string
217
+ }
218
+
219
+ export type AdversarialLabelUpdateInput = {
220
+ id?: Prisma.StringFieldUpdateOperationsInput | string
221
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
222
+ subCategory?: Prisma.AdversarialSubCategoryUpdateOneRequiredWithoutLabelsNestedInput
223
+ }
224
+
225
+ export type AdversarialLabelUncheckedUpdateInput = {
226
+ id?: Prisma.StringFieldUpdateOperationsInput | string
227
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
228
+ subCategoryId?: Prisma.StringFieldUpdateOperationsInput | string
229
+ }
230
+
231
+ export type AdversarialLabelCreateManyInput = {
232
+ id?: string
233
+ name?: string | null
234
+ subCategoryId: string
235
+ }
236
+
237
+ export type AdversarialLabelUpdateManyMutationInput = {
238
+ id?: Prisma.StringFieldUpdateOperationsInput | string
239
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
240
+ }
241
+
242
+ export type AdversarialLabelUncheckedUpdateManyInput = {
243
+ id?: Prisma.StringFieldUpdateOperationsInput | string
244
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
245
+ subCategoryId?: Prisma.StringFieldUpdateOperationsInput | string
246
+ }
247
+
248
+ export type AdversarialLabelListRelationFilter = {
249
+ every?: Prisma.AdversarialLabelWhereInput
250
+ some?: Prisma.AdversarialLabelWhereInput
251
+ none?: Prisma.AdversarialLabelWhereInput
252
+ }
253
+
254
+ export type AdversarialLabelOrderByRelationAggregateInput = {
255
+ _count?: Prisma.SortOrder
256
+ }
257
+
258
+ export type AdversarialLabelCountOrderByAggregateInput = {
259
+ id?: Prisma.SortOrder
260
+ name?: Prisma.SortOrder
261
+ subCategoryId?: Prisma.SortOrder
262
+ }
263
+
264
+ export type AdversarialLabelMaxOrderByAggregateInput = {
265
+ id?: Prisma.SortOrder
266
+ name?: Prisma.SortOrder
267
+ subCategoryId?: Prisma.SortOrder
268
+ }
269
+
270
+ export type AdversarialLabelMinOrderByAggregateInput = {
271
+ id?: Prisma.SortOrder
272
+ name?: Prisma.SortOrder
273
+ subCategoryId?: Prisma.SortOrder
274
+ }
275
+
276
+ export type AdversarialLabelCreateNestedManyWithoutSubCategoryInput = {
277
+ create?: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput> | Prisma.AdversarialLabelCreateWithoutSubCategoryInput[] | Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput[]
278
+ connectOrCreate?: Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput | Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput[]
279
+ createMany?: Prisma.AdversarialLabelCreateManySubCategoryInputEnvelope
280
+ connect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
281
+ }
282
+
283
+ export type AdversarialLabelUncheckedCreateNestedManyWithoutSubCategoryInput = {
284
+ create?: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput> | Prisma.AdversarialLabelCreateWithoutSubCategoryInput[] | Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput[]
285
+ connectOrCreate?: Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput | Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput[]
286
+ createMany?: Prisma.AdversarialLabelCreateManySubCategoryInputEnvelope
287
+ connect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
288
+ }
289
+
290
+ export type AdversarialLabelUpdateManyWithoutSubCategoryNestedInput = {
291
+ create?: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput> | Prisma.AdversarialLabelCreateWithoutSubCategoryInput[] | Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput[]
292
+ connectOrCreate?: Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput | Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput[]
293
+ upsert?: Prisma.AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput | Prisma.AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput[]
294
+ createMany?: Prisma.AdversarialLabelCreateManySubCategoryInputEnvelope
295
+ set?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
296
+ disconnect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
297
+ delete?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
298
+ connect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
299
+ update?: Prisma.AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput | Prisma.AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput[]
300
+ updateMany?: Prisma.AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput | Prisma.AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput[]
301
+ deleteMany?: Prisma.AdversarialLabelScalarWhereInput | Prisma.AdversarialLabelScalarWhereInput[]
302
+ }
303
+
304
+ export type AdversarialLabelUncheckedUpdateManyWithoutSubCategoryNestedInput = {
305
+ create?: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput> | Prisma.AdversarialLabelCreateWithoutSubCategoryInput[] | Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput[]
306
+ connectOrCreate?: Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput | Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput[]
307
+ upsert?: Prisma.AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput | Prisma.AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput[]
308
+ createMany?: Prisma.AdversarialLabelCreateManySubCategoryInputEnvelope
309
+ set?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
310
+ disconnect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
311
+ delete?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
312
+ connect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
313
+ update?: Prisma.AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput | Prisma.AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput[]
314
+ updateMany?: Prisma.AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput | Prisma.AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput[]
315
+ deleteMany?: Prisma.AdversarialLabelScalarWhereInput | Prisma.AdversarialLabelScalarWhereInput[]
316
+ }
317
+
318
+ export type AdversarialLabelCreateWithoutSubCategoryInput = {
319
+ id?: string
320
+ name?: string | null
321
+ }
322
+
323
+ export type AdversarialLabelUncheckedCreateWithoutSubCategoryInput = {
324
+ id?: string
325
+ name?: string | null
326
+ }
327
+
328
+ export type AdversarialLabelCreateOrConnectWithoutSubCategoryInput = {
329
+ where: Prisma.AdversarialLabelWhereUniqueInput
330
+ create: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput>
331
+ }
332
+
333
+ export type AdversarialLabelCreateManySubCategoryInputEnvelope = {
334
+ data: Prisma.AdversarialLabelCreateManySubCategoryInput | Prisma.AdversarialLabelCreateManySubCategoryInput[]
335
+ skipDuplicates?: boolean
336
+ }
337
+
338
+ export type AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput = {
339
+ where: Prisma.AdversarialLabelWhereUniqueInput
340
+ update: Prisma.XOR<Prisma.AdversarialLabelUpdateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedUpdateWithoutSubCategoryInput>
341
+ create: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput>
342
+ }
343
+
344
+ export type AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput = {
345
+ where: Prisma.AdversarialLabelWhereUniqueInput
346
+ data: Prisma.XOR<Prisma.AdversarialLabelUpdateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedUpdateWithoutSubCategoryInput>
347
+ }
348
+
349
+ export type AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput = {
350
+ where: Prisma.AdversarialLabelScalarWhereInput
351
+ data: Prisma.XOR<Prisma.AdversarialLabelUpdateManyMutationInput, Prisma.AdversarialLabelUncheckedUpdateManyWithoutSubCategoryInput>
352
+ }
353
+
354
+ export type AdversarialLabelScalarWhereInput = {
355
+ AND?: Prisma.AdversarialLabelScalarWhereInput | Prisma.AdversarialLabelScalarWhereInput[]
356
+ OR?: Prisma.AdversarialLabelScalarWhereInput[]
357
+ NOT?: Prisma.AdversarialLabelScalarWhereInput | Prisma.AdversarialLabelScalarWhereInput[]
358
+ id?: Prisma.StringFilter<"AdversarialLabel"> | string
359
+ name?: Prisma.StringNullableFilter<"AdversarialLabel"> | string | null
360
+ subCategoryId?: Prisma.StringFilter<"AdversarialLabel"> | string
361
+ }
362
+
363
+ export type AdversarialLabelCreateManySubCategoryInput = {
364
+ id?: string
365
+ name?: string | null
366
+ }
367
+
368
+ export type AdversarialLabelUpdateWithoutSubCategoryInput = {
369
+ id?: Prisma.StringFieldUpdateOperationsInput | string
370
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
371
+ }
372
+
373
+ export type AdversarialLabelUncheckedUpdateWithoutSubCategoryInput = {
374
+ id?: Prisma.StringFieldUpdateOperationsInput | string
375
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
376
+ }
377
+
378
+ export type AdversarialLabelUncheckedUpdateManyWithoutSubCategoryInput = {
379
+ id?: Prisma.StringFieldUpdateOperationsInput | string
380
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
381
+ }
382
+
383
+
384
+
385
+ export type AdversarialLabelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
386
+ id?: boolean
387
+ name?: boolean
388
+ subCategoryId?: boolean
389
+ subCategory?: boolean | Prisma.AdversarialSubCategoryDefaultArgs<ExtArgs>
390
+ }, ExtArgs["result"]["adversarialLabel"]>
391
+
392
+ export type AdversarialLabelSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
393
+ id?: boolean
394
+ name?: boolean
395
+ subCategoryId?: boolean
396
+ subCategory?: boolean | Prisma.AdversarialSubCategoryDefaultArgs<ExtArgs>
397
+ }, ExtArgs["result"]["adversarialLabel"]>
398
+
399
+ export type AdversarialLabelSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
400
+ id?: boolean
401
+ name?: boolean
402
+ subCategoryId?: boolean
403
+ subCategory?: boolean | Prisma.AdversarialSubCategoryDefaultArgs<ExtArgs>
404
+ }, ExtArgs["result"]["adversarialLabel"]>
405
+
406
+ export type AdversarialLabelSelectScalar = {
407
+ id?: boolean
408
+ name?: boolean
409
+ subCategoryId?: boolean
410
+ }
411
+
412
+ export type AdversarialLabelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "subCategoryId", ExtArgs["result"]["adversarialLabel"]>
413
+ export type AdversarialLabelInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
414
+ subCategory?: boolean | Prisma.AdversarialSubCategoryDefaultArgs<ExtArgs>
415
+ }
416
+ export type AdversarialLabelIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
417
+ subCategory?: boolean | Prisma.AdversarialSubCategoryDefaultArgs<ExtArgs>
418
+ }
419
+ export type AdversarialLabelIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
420
+ subCategory?: boolean | Prisma.AdversarialSubCategoryDefaultArgs<ExtArgs>
421
+ }
422
+
423
+ export type $AdversarialLabelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
424
+ name: "AdversarialLabel"
425
+ objects: {
426
+ subCategory: Prisma.$AdversarialSubCategoryPayload<ExtArgs>
427
+ }
428
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
429
+ id: string
430
+ name: string | null
431
+ subCategoryId: string
432
+ }, ExtArgs["result"]["adversarialLabel"]>
433
+ composites: {}
434
+ }
435
+
436
+ export type AdversarialLabelGetPayload<S extends boolean | null | undefined | AdversarialLabelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload, S>
437
+
438
+ export type AdversarialLabelCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
439
+ Omit<AdversarialLabelFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
440
+ select?: AdversarialLabelCountAggregateInputType | true
441
+ }
442
+
443
+ export interface AdversarialLabelDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
444
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdversarialLabel'], meta: { name: 'AdversarialLabel' } }
445
+ /**
446
+ * Find zero or one AdversarialLabel that matches the filter.
447
+ * @param {AdversarialLabelFindUniqueArgs} args - Arguments to find a AdversarialLabel
448
+ * @example
449
+ * // Get one AdversarialLabel
450
+ * const adversarialLabel = await prisma.adversarialLabel.findUnique({
451
+ * where: {
452
+ * // ... provide filter here
453
+ * }
454
+ * })
455
+ */
456
+ findUnique<T extends AdversarialLabelFindUniqueArgs>(args: Prisma.SelectSubset<T, AdversarialLabelFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdversarialLabelClient<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
457
+
458
+ /**
459
+ * Find one AdversarialLabel that matches the filter or throw an error with `error.code='P2025'`
460
+ * if no matches were found.
461
+ * @param {AdversarialLabelFindUniqueOrThrowArgs} args - Arguments to find a AdversarialLabel
462
+ * @example
463
+ * // Get one AdversarialLabel
464
+ * const adversarialLabel = await prisma.adversarialLabel.findUniqueOrThrow({
465
+ * where: {
466
+ * // ... provide filter here
467
+ * }
468
+ * })
469
+ */
470
+ findUniqueOrThrow<T extends AdversarialLabelFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdversarialLabelFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdversarialLabelClient<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
471
+
472
+ /**
473
+ * Find the first AdversarialLabel that matches the filter.
474
+ * Note, that providing `undefined` is treated as the value not being there.
475
+ * Read more here: https://pris.ly/d/null-undefined
476
+ * @param {AdversarialLabelFindFirstArgs} args - Arguments to find a AdversarialLabel
477
+ * @example
478
+ * // Get one AdversarialLabel
479
+ * const adversarialLabel = await prisma.adversarialLabel.findFirst({
480
+ * where: {
481
+ * // ... provide filter here
482
+ * }
483
+ * })
484
+ */
485
+ findFirst<T extends AdversarialLabelFindFirstArgs>(args?: Prisma.SelectSubset<T, AdversarialLabelFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdversarialLabelClient<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
486
+
487
+ /**
488
+ * Find the first AdversarialLabel that matches the filter or
489
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
490
+ * Note, that providing `undefined` is treated as the value not being there.
491
+ * Read more here: https://pris.ly/d/null-undefined
492
+ * @param {AdversarialLabelFindFirstOrThrowArgs} args - Arguments to find a AdversarialLabel
493
+ * @example
494
+ * // Get one AdversarialLabel
495
+ * const adversarialLabel = await prisma.adversarialLabel.findFirstOrThrow({
496
+ * where: {
497
+ * // ... provide filter here
498
+ * }
499
+ * })
500
+ */
501
+ findFirstOrThrow<T extends AdversarialLabelFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdversarialLabelFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdversarialLabelClient<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
502
+
503
+ /**
504
+ * Find zero or more AdversarialLabels that matches the filter.
505
+ * Note, that providing `undefined` is treated as the value not being there.
506
+ * Read more here: https://pris.ly/d/null-undefined
507
+ * @param {AdversarialLabelFindManyArgs} args - Arguments to filter and select certain fields only.
508
+ * @example
509
+ * // Get all AdversarialLabels
510
+ * const adversarialLabels = await prisma.adversarialLabel.findMany()
511
+ *
512
+ * // Get first 10 AdversarialLabels
513
+ * const adversarialLabels = await prisma.adversarialLabel.findMany({ take: 10 })
514
+ *
515
+ * // Only select the `id`
516
+ * const adversarialLabelWithIdOnly = await prisma.adversarialLabel.findMany({ select: { id: true } })
517
+ *
518
+ */
519
+ findMany<T extends AdversarialLabelFindManyArgs>(args?: Prisma.SelectSubset<T, AdversarialLabelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
520
+
521
+ /**
522
+ * Create a AdversarialLabel.
523
+ * @param {AdversarialLabelCreateArgs} args - Arguments to create a AdversarialLabel.
524
+ * @example
525
+ * // Create one AdversarialLabel
526
+ * const AdversarialLabel = await prisma.adversarialLabel.create({
527
+ * data: {
528
+ * // ... data to create a AdversarialLabel
529
+ * }
530
+ * })
531
+ *
532
+ */
533
+ create<T extends AdversarialLabelCreateArgs>(args: Prisma.SelectSubset<T, AdversarialLabelCreateArgs<ExtArgs>>): Prisma.Prisma__AdversarialLabelClient<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
534
+
535
+ /**
536
+ * Create many AdversarialLabels.
537
+ * @param {AdversarialLabelCreateManyArgs} args - Arguments to create many AdversarialLabels.
538
+ * @example
539
+ * // Create many AdversarialLabels
540
+ * const adversarialLabel = await prisma.adversarialLabel.createMany({
541
+ * data: [
542
+ * // ... provide data here
543
+ * ]
544
+ * })
545
+ *
546
+ */
547
+ createMany<T extends AdversarialLabelCreateManyArgs>(args?: Prisma.SelectSubset<T, AdversarialLabelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
548
+
549
+ /**
550
+ * Create many AdversarialLabels and returns the data saved in the database.
551
+ * @param {AdversarialLabelCreateManyAndReturnArgs} args - Arguments to create many AdversarialLabels.
552
+ * @example
553
+ * // Create many AdversarialLabels
554
+ * const adversarialLabel = await prisma.adversarialLabel.createManyAndReturn({
555
+ * data: [
556
+ * // ... provide data here
557
+ * ]
558
+ * })
559
+ *
560
+ * // Create many AdversarialLabels and only return the `id`
561
+ * const adversarialLabelWithIdOnly = await prisma.adversarialLabel.createManyAndReturn({
562
+ * select: { id: true },
563
+ * data: [
564
+ * // ... provide data here
565
+ * ]
566
+ * })
567
+ * Note, that providing `undefined` is treated as the value not being there.
568
+ * Read more here: https://pris.ly/d/null-undefined
569
+ *
570
+ */
571
+ createManyAndReturn<T extends AdversarialLabelCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdversarialLabelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
572
+
573
+ /**
574
+ * Delete a AdversarialLabel.
575
+ * @param {AdversarialLabelDeleteArgs} args - Arguments to delete one AdversarialLabel.
576
+ * @example
577
+ * // Delete one AdversarialLabel
578
+ * const AdversarialLabel = await prisma.adversarialLabel.delete({
579
+ * where: {
580
+ * // ... filter to delete one AdversarialLabel
581
+ * }
582
+ * })
583
+ *
584
+ */
585
+ delete<T extends AdversarialLabelDeleteArgs>(args: Prisma.SelectSubset<T, AdversarialLabelDeleteArgs<ExtArgs>>): Prisma.Prisma__AdversarialLabelClient<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
586
+
587
+ /**
588
+ * Update one AdversarialLabel.
589
+ * @param {AdversarialLabelUpdateArgs} args - Arguments to update one AdversarialLabel.
590
+ * @example
591
+ * // Update one AdversarialLabel
592
+ * const adversarialLabel = await prisma.adversarialLabel.update({
593
+ * where: {
594
+ * // ... provide filter here
595
+ * },
596
+ * data: {
597
+ * // ... provide data here
598
+ * }
599
+ * })
600
+ *
601
+ */
602
+ update<T extends AdversarialLabelUpdateArgs>(args: Prisma.SelectSubset<T, AdversarialLabelUpdateArgs<ExtArgs>>): Prisma.Prisma__AdversarialLabelClient<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
603
+
604
+ /**
605
+ * Delete zero or more AdversarialLabels.
606
+ * @param {AdversarialLabelDeleteManyArgs} args - Arguments to filter AdversarialLabels to delete.
607
+ * @example
608
+ * // Delete a few AdversarialLabels
609
+ * const { count } = await prisma.adversarialLabel.deleteMany({
610
+ * where: {
611
+ * // ... provide filter here
612
+ * }
613
+ * })
614
+ *
615
+ */
616
+ deleteMany<T extends AdversarialLabelDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdversarialLabelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
617
+
618
+ /**
619
+ * Update zero or more AdversarialLabels.
620
+ * Note, that providing `undefined` is treated as the value not being there.
621
+ * Read more here: https://pris.ly/d/null-undefined
622
+ * @param {AdversarialLabelUpdateManyArgs} args - Arguments to update one or more rows.
623
+ * @example
624
+ * // Update many AdversarialLabels
625
+ * const adversarialLabel = await prisma.adversarialLabel.updateMany({
626
+ * where: {
627
+ * // ... provide filter here
628
+ * },
629
+ * data: {
630
+ * // ... provide data here
631
+ * }
632
+ * })
633
+ *
634
+ */
635
+ updateMany<T extends AdversarialLabelUpdateManyArgs>(args: Prisma.SelectSubset<T, AdversarialLabelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
636
+
637
+ /**
638
+ * Update zero or more AdversarialLabels and returns the data updated in the database.
639
+ * @param {AdversarialLabelUpdateManyAndReturnArgs} args - Arguments to update many AdversarialLabels.
640
+ * @example
641
+ * // Update many AdversarialLabels
642
+ * const adversarialLabel = await prisma.adversarialLabel.updateManyAndReturn({
643
+ * where: {
644
+ * // ... provide filter here
645
+ * },
646
+ * data: [
647
+ * // ... provide data here
648
+ * ]
649
+ * })
650
+ *
651
+ * // Update zero or more AdversarialLabels and only return the `id`
652
+ * const adversarialLabelWithIdOnly = await prisma.adversarialLabel.updateManyAndReturn({
653
+ * select: { id: true },
654
+ * where: {
655
+ * // ... provide filter here
656
+ * },
657
+ * data: [
658
+ * // ... provide data here
659
+ * ]
660
+ * })
661
+ * Note, that providing `undefined` is treated as the value not being there.
662
+ * Read more here: https://pris.ly/d/null-undefined
663
+ *
664
+ */
665
+ updateManyAndReturn<T extends AdversarialLabelUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdversarialLabelUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
666
+
667
+ /**
668
+ * Create or update one AdversarialLabel.
669
+ * @param {AdversarialLabelUpsertArgs} args - Arguments to update or create a AdversarialLabel.
670
+ * @example
671
+ * // Update or create a AdversarialLabel
672
+ * const adversarialLabel = await prisma.adversarialLabel.upsert({
673
+ * create: {
674
+ * // ... data to create a AdversarialLabel
675
+ * },
676
+ * update: {
677
+ * // ... in case it already exists, update
678
+ * },
679
+ * where: {
680
+ * // ... the filter for the AdversarialLabel we want to update
681
+ * }
682
+ * })
683
+ */
684
+ upsert<T extends AdversarialLabelUpsertArgs>(args: Prisma.SelectSubset<T, AdversarialLabelUpsertArgs<ExtArgs>>): Prisma.Prisma__AdversarialLabelClient<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
685
+
686
+
687
+ /**
688
+ * Count the number of AdversarialLabels.
689
+ * Note, that providing `undefined` is treated as the value not being there.
690
+ * Read more here: https://pris.ly/d/null-undefined
691
+ * @param {AdversarialLabelCountArgs} args - Arguments to filter AdversarialLabels to count.
692
+ * @example
693
+ * // Count the number of AdversarialLabels
694
+ * const count = await prisma.adversarialLabel.count({
695
+ * where: {
696
+ * // ... the filter for the AdversarialLabels we want to count
697
+ * }
698
+ * })
699
+ **/
700
+ count<T extends AdversarialLabelCountArgs>(
701
+ args?: Prisma.Subset<T, AdversarialLabelCountArgs>,
702
+ ): Prisma.PrismaPromise<
703
+ T extends runtime.Types.Utils.Record<'select', any>
704
+ ? T['select'] extends true
705
+ ? number
706
+ : Prisma.GetScalarType<T['select'], AdversarialLabelCountAggregateOutputType>
707
+ : number
708
+ >
709
+
710
+ /**
711
+ * Allows you to perform aggregations operations on a AdversarialLabel.
712
+ * Note, that providing `undefined` is treated as the value not being there.
713
+ * Read more here: https://pris.ly/d/null-undefined
714
+ * @param {AdversarialLabelAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
715
+ * @example
716
+ * // Ordered by age ascending
717
+ * // Where email contains prisma.io
718
+ * // Limited to the 10 users
719
+ * const aggregations = await prisma.user.aggregate({
720
+ * _avg: {
721
+ * age: true,
722
+ * },
723
+ * where: {
724
+ * email: {
725
+ * contains: "prisma.io",
726
+ * },
727
+ * },
728
+ * orderBy: {
729
+ * age: "asc",
730
+ * },
731
+ * take: 10,
732
+ * })
733
+ **/
734
+ aggregate<T extends AdversarialLabelAggregateArgs>(args: Prisma.Subset<T, AdversarialLabelAggregateArgs>): Prisma.PrismaPromise<GetAdversarialLabelAggregateType<T>>
735
+
736
+ /**
737
+ * Group by AdversarialLabel.
738
+ * Note, that providing `undefined` is treated as the value not being there.
739
+ * Read more here: https://pris.ly/d/null-undefined
740
+ * @param {AdversarialLabelGroupByArgs} args - Group by arguments.
741
+ * @example
742
+ * // Group by city, order by createdAt, get count
743
+ * const result = await prisma.user.groupBy({
744
+ * by: ['city', 'createdAt'],
745
+ * orderBy: {
746
+ * createdAt: true
747
+ * },
748
+ * _count: {
749
+ * _all: true
750
+ * },
751
+ * })
752
+ *
753
+ **/
754
+ groupBy<
755
+ T extends AdversarialLabelGroupByArgs,
756
+ HasSelectOrTake extends Prisma.Or<
757
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
758
+ Prisma.Extends<'take', Prisma.Keys<T>>
759
+ >,
760
+ OrderByArg extends Prisma.True extends HasSelectOrTake
761
+ ? { orderBy: AdversarialLabelGroupByArgs['orderBy'] }
762
+ : { orderBy?: AdversarialLabelGroupByArgs['orderBy'] },
763
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
764
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
765
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
766
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
767
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
768
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
769
+ InputErrors extends ByEmpty extends Prisma.True
770
+ ? `Error: "by" must not be empty.`
771
+ : HavingValid extends Prisma.False
772
+ ? {
773
+ [P in HavingFields]: P extends ByFields
774
+ ? never
775
+ : P extends string
776
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
777
+ : [
778
+ Error,
779
+ 'Field ',
780
+ P,
781
+ ` in "having" needs to be provided in "by"`,
782
+ ]
783
+ }[HavingFields]
784
+ : 'take' extends Prisma.Keys<T>
785
+ ? 'orderBy' extends Prisma.Keys<T>
786
+ ? ByValid extends Prisma.True
787
+ ? {}
788
+ : {
789
+ [P in OrderFields]: P extends ByFields
790
+ ? never
791
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
792
+ }[OrderFields]
793
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
794
+ : 'skip' extends Prisma.Keys<T>
795
+ ? 'orderBy' extends Prisma.Keys<T>
796
+ ? ByValid extends Prisma.True
797
+ ? {}
798
+ : {
799
+ [P in OrderFields]: P extends ByFields
800
+ ? never
801
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
802
+ }[OrderFields]
803
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
804
+ : ByValid extends Prisma.True
805
+ ? {}
806
+ : {
807
+ [P in OrderFields]: P extends ByFields
808
+ ? never
809
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
810
+ }[OrderFields]
811
+ >(args: Prisma.SubsetIntersection<T, AdversarialLabelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdversarialLabelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
812
+ /**
813
+ * Fields of the AdversarialLabel model
814
+ */
815
+ readonly fields: AdversarialLabelFieldRefs;
816
+ }
817
+
818
+ /**
819
+ * The delegate class that acts as a "Promise-like" for AdversarialLabel.
820
+ * Why is this prefixed with `Prisma__`?
821
+ * Because we want to prevent naming conflicts as mentioned in
822
+ * https://github.com/prisma/prisma-client-js/issues/707
823
+ */
824
+ export interface Prisma__AdversarialLabelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
825
+ readonly [Symbol.toStringTag]: "PrismaPromise"
826
+ subCategory<T extends Prisma.AdversarialSubCategoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialSubCategoryDefaultArgs<ExtArgs>>): Prisma.Prisma__AdversarialSubCategoryClient<runtime.Types.Result.GetResult<Prisma.$AdversarialSubCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
827
+ /**
828
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
829
+ * @param onfulfilled The callback to execute when the Promise is resolved.
830
+ * @param onrejected The callback to execute when the Promise is rejected.
831
+ * @returns A Promise for the completion of which ever callback is executed.
832
+ */
833
+ 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>
834
+ /**
835
+ * Attaches a callback for only the rejection of the Promise.
836
+ * @param onrejected The callback to execute when the Promise is rejected.
837
+ * @returns A Promise for the completion of the callback.
838
+ */
839
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
840
+ /**
841
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
842
+ * resolved value cannot be modified from the callback.
843
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
844
+ * @returns A Promise for the completion of the callback.
845
+ */
846
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
847
+ }
848
+
849
+
850
+
851
+
852
+ /**
853
+ * Fields of the AdversarialLabel model
854
+ */
855
+ export interface AdversarialLabelFieldRefs {
856
+ readonly id: Prisma.FieldRef<"AdversarialLabel", 'String'>
857
+ readonly name: Prisma.FieldRef<"AdversarialLabel", 'String'>
858
+ readonly subCategoryId: Prisma.FieldRef<"AdversarialLabel", 'String'>
859
+ }
860
+
861
+
862
+ // Custom InputTypes
863
+ /**
864
+ * AdversarialLabel findUnique
865
+ */
866
+ export type AdversarialLabelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
867
+ /**
868
+ * Select specific fields to fetch from the AdversarialLabel
869
+ */
870
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
871
+ /**
872
+ * Omit specific fields from the AdversarialLabel
873
+ */
874
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
875
+ /**
876
+ * Choose, which related nodes to fetch as well
877
+ */
878
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
879
+ /**
880
+ * Filter, which AdversarialLabel to fetch.
881
+ */
882
+ where: Prisma.AdversarialLabelWhereUniqueInput
883
+ }
884
+
885
+ /**
886
+ * AdversarialLabel findUniqueOrThrow
887
+ */
888
+ export type AdversarialLabelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
889
+ /**
890
+ * Select specific fields to fetch from the AdversarialLabel
891
+ */
892
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
893
+ /**
894
+ * Omit specific fields from the AdversarialLabel
895
+ */
896
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
897
+ /**
898
+ * Choose, which related nodes to fetch as well
899
+ */
900
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
901
+ /**
902
+ * Filter, which AdversarialLabel to fetch.
903
+ */
904
+ where: Prisma.AdversarialLabelWhereUniqueInput
905
+ }
906
+
907
+ /**
908
+ * AdversarialLabel findFirst
909
+ */
910
+ export type AdversarialLabelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
911
+ /**
912
+ * Select specific fields to fetch from the AdversarialLabel
913
+ */
914
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
915
+ /**
916
+ * Omit specific fields from the AdversarialLabel
917
+ */
918
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
919
+ /**
920
+ * Choose, which related nodes to fetch as well
921
+ */
922
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
923
+ /**
924
+ * Filter, which AdversarialLabel to fetch.
925
+ */
926
+ where?: Prisma.AdversarialLabelWhereInput
927
+ /**
928
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
929
+ *
930
+ * Determine the order of AdversarialLabels to fetch.
931
+ */
932
+ orderBy?: Prisma.AdversarialLabelOrderByWithRelationInput | Prisma.AdversarialLabelOrderByWithRelationInput[]
933
+ /**
934
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
935
+ *
936
+ * Sets the position for searching for AdversarialLabels.
937
+ */
938
+ cursor?: Prisma.AdversarialLabelWhereUniqueInput
939
+ /**
940
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
941
+ *
942
+ * Take `±n` AdversarialLabels from the position of the cursor.
943
+ */
944
+ take?: number
945
+ /**
946
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
947
+ *
948
+ * Skip the first `n` AdversarialLabels.
949
+ */
950
+ skip?: number
951
+ /**
952
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
953
+ *
954
+ * Filter by unique combinations of AdversarialLabels.
955
+ */
956
+ distinct?: Prisma.AdversarialLabelScalarFieldEnum | Prisma.AdversarialLabelScalarFieldEnum[]
957
+ }
958
+
959
+ /**
960
+ * AdversarialLabel findFirstOrThrow
961
+ */
962
+ export type AdversarialLabelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
963
+ /**
964
+ * Select specific fields to fetch from the AdversarialLabel
965
+ */
966
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
967
+ /**
968
+ * Omit specific fields from the AdversarialLabel
969
+ */
970
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
971
+ /**
972
+ * Choose, which related nodes to fetch as well
973
+ */
974
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
975
+ /**
976
+ * Filter, which AdversarialLabel to fetch.
977
+ */
978
+ where?: Prisma.AdversarialLabelWhereInput
979
+ /**
980
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
981
+ *
982
+ * Determine the order of AdversarialLabels to fetch.
983
+ */
984
+ orderBy?: Prisma.AdversarialLabelOrderByWithRelationInput | Prisma.AdversarialLabelOrderByWithRelationInput[]
985
+ /**
986
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
987
+ *
988
+ * Sets the position for searching for AdversarialLabels.
989
+ */
990
+ cursor?: Prisma.AdversarialLabelWhereUniqueInput
991
+ /**
992
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
993
+ *
994
+ * Take `±n` AdversarialLabels from the position of the cursor.
995
+ */
996
+ take?: number
997
+ /**
998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
999
+ *
1000
+ * Skip the first `n` AdversarialLabels.
1001
+ */
1002
+ skip?: number
1003
+ /**
1004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1005
+ *
1006
+ * Filter by unique combinations of AdversarialLabels.
1007
+ */
1008
+ distinct?: Prisma.AdversarialLabelScalarFieldEnum | Prisma.AdversarialLabelScalarFieldEnum[]
1009
+ }
1010
+
1011
+ /**
1012
+ * AdversarialLabel findMany
1013
+ */
1014
+ export type AdversarialLabelFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1015
+ /**
1016
+ * Select specific fields to fetch from the AdversarialLabel
1017
+ */
1018
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1019
+ /**
1020
+ * Omit specific fields from the AdversarialLabel
1021
+ */
1022
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1023
+ /**
1024
+ * Choose, which related nodes to fetch as well
1025
+ */
1026
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1027
+ /**
1028
+ * Filter, which AdversarialLabels to fetch.
1029
+ */
1030
+ where?: Prisma.AdversarialLabelWhereInput
1031
+ /**
1032
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1033
+ *
1034
+ * Determine the order of AdversarialLabels to fetch.
1035
+ */
1036
+ orderBy?: Prisma.AdversarialLabelOrderByWithRelationInput | Prisma.AdversarialLabelOrderByWithRelationInput[]
1037
+ /**
1038
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1039
+ *
1040
+ * Sets the position for listing AdversarialLabels.
1041
+ */
1042
+ cursor?: Prisma.AdversarialLabelWhereUniqueInput
1043
+ /**
1044
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1045
+ *
1046
+ * Take `±n` AdversarialLabels from the position of the cursor.
1047
+ */
1048
+ take?: number
1049
+ /**
1050
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1051
+ *
1052
+ * Skip the first `n` AdversarialLabels.
1053
+ */
1054
+ skip?: number
1055
+ /**
1056
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1057
+ *
1058
+ * Filter by unique combinations of AdversarialLabels.
1059
+ */
1060
+ distinct?: Prisma.AdversarialLabelScalarFieldEnum | Prisma.AdversarialLabelScalarFieldEnum[]
1061
+ }
1062
+
1063
+ /**
1064
+ * AdversarialLabel create
1065
+ */
1066
+ export type AdversarialLabelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1067
+ /**
1068
+ * Select specific fields to fetch from the AdversarialLabel
1069
+ */
1070
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1071
+ /**
1072
+ * Omit specific fields from the AdversarialLabel
1073
+ */
1074
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1075
+ /**
1076
+ * Choose, which related nodes to fetch as well
1077
+ */
1078
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1079
+ /**
1080
+ * The data needed to create a AdversarialLabel.
1081
+ */
1082
+ data: Prisma.XOR<Prisma.AdversarialLabelCreateInput, Prisma.AdversarialLabelUncheckedCreateInput>
1083
+ }
1084
+
1085
+ /**
1086
+ * AdversarialLabel createMany
1087
+ */
1088
+ export type AdversarialLabelCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1089
+ /**
1090
+ * The data used to create many AdversarialLabels.
1091
+ */
1092
+ data: Prisma.AdversarialLabelCreateManyInput | Prisma.AdversarialLabelCreateManyInput[]
1093
+ skipDuplicates?: boolean
1094
+ }
1095
+
1096
+ /**
1097
+ * AdversarialLabel createManyAndReturn
1098
+ */
1099
+ export type AdversarialLabelCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1100
+ /**
1101
+ * Select specific fields to fetch from the AdversarialLabel
1102
+ */
1103
+ select?: Prisma.AdversarialLabelSelectCreateManyAndReturn<ExtArgs> | null
1104
+ /**
1105
+ * Omit specific fields from the AdversarialLabel
1106
+ */
1107
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1108
+ /**
1109
+ * The data used to create many AdversarialLabels.
1110
+ */
1111
+ data: Prisma.AdversarialLabelCreateManyInput | Prisma.AdversarialLabelCreateManyInput[]
1112
+ skipDuplicates?: boolean
1113
+ /**
1114
+ * Choose, which related nodes to fetch as well
1115
+ */
1116
+ include?: Prisma.AdversarialLabelIncludeCreateManyAndReturn<ExtArgs> | null
1117
+ }
1118
+
1119
+ /**
1120
+ * AdversarialLabel update
1121
+ */
1122
+ export type AdversarialLabelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1123
+ /**
1124
+ * Select specific fields to fetch from the AdversarialLabel
1125
+ */
1126
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1127
+ /**
1128
+ * Omit specific fields from the AdversarialLabel
1129
+ */
1130
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1131
+ /**
1132
+ * Choose, which related nodes to fetch as well
1133
+ */
1134
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1135
+ /**
1136
+ * The data needed to update a AdversarialLabel.
1137
+ */
1138
+ data: Prisma.XOR<Prisma.AdversarialLabelUpdateInput, Prisma.AdversarialLabelUncheckedUpdateInput>
1139
+ /**
1140
+ * Choose, which AdversarialLabel to update.
1141
+ */
1142
+ where: Prisma.AdversarialLabelWhereUniqueInput
1143
+ }
1144
+
1145
+ /**
1146
+ * AdversarialLabel updateMany
1147
+ */
1148
+ export type AdversarialLabelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1149
+ /**
1150
+ * The data used to update AdversarialLabels.
1151
+ */
1152
+ data: Prisma.XOR<Prisma.AdversarialLabelUpdateManyMutationInput, Prisma.AdversarialLabelUncheckedUpdateManyInput>
1153
+ /**
1154
+ * Filter which AdversarialLabels to update
1155
+ */
1156
+ where?: Prisma.AdversarialLabelWhereInput
1157
+ /**
1158
+ * Limit how many AdversarialLabels to update.
1159
+ */
1160
+ limit?: number
1161
+ }
1162
+
1163
+ /**
1164
+ * AdversarialLabel updateManyAndReturn
1165
+ */
1166
+ export type AdversarialLabelUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1167
+ /**
1168
+ * Select specific fields to fetch from the AdversarialLabel
1169
+ */
1170
+ select?: Prisma.AdversarialLabelSelectUpdateManyAndReturn<ExtArgs> | null
1171
+ /**
1172
+ * Omit specific fields from the AdversarialLabel
1173
+ */
1174
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1175
+ /**
1176
+ * The data used to update AdversarialLabels.
1177
+ */
1178
+ data: Prisma.XOR<Prisma.AdversarialLabelUpdateManyMutationInput, Prisma.AdversarialLabelUncheckedUpdateManyInput>
1179
+ /**
1180
+ * Filter which AdversarialLabels to update
1181
+ */
1182
+ where?: Prisma.AdversarialLabelWhereInput
1183
+ /**
1184
+ * Limit how many AdversarialLabels to update.
1185
+ */
1186
+ limit?: number
1187
+ /**
1188
+ * Choose, which related nodes to fetch as well
1189
+ */
1190
+ include?: Prisma.AdversarialLabelIncludeUpdateManyAndReturn<ExtArgs> | null
1191
+ }
1192
+
1193
+ /**
1194
+ * AdversarialLabel upsert
1195
+ */
1196
+ export type AdversarialLabelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1197
+ /**
1198
+ * Select specific fields to fetch from the AdversarialLabel
1199
+ */
1200
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1201
+ /**
1202
+ * Omit specific fields from the AdversarialLabel
1203
+ */
1204
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1205
+ /**
1206
+ * Choose, which related nodes to fetch as well
1207
+ */
1208
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1209
+ /**
1210
+ * The filter to search for the AdversarialLabel to update in case it exists.
1211
+ */
1212
+ where: Prisma.AdversarialLabelWhereUniqueInput
1213
+ /**
1214
+ * In case the AdversarialLabel found by the `where` argument doesn't exist, create a new AdversarialLabel with this data.
1215
+ */
1216
+ create: Prisma.XOR<Prisma.AdversarialLabelCreateInput, Prisma.AdversarialLabelUncheckedCreateInput>
1217
+ /**
1218
+ * In case the AdversarialLabel was found with the provided `where` argument, update it with this data.
1219
+ */
1220
+ update: Prisma.XOR<Prisma.AdversarialLabelUpdateInput, Prisma.AdversarialLabelUncheckedUpdateInput>
1221
+ }
1222
+
1223
+ /**
1224
+ * AdversarialLabel delete
1225
+ */
1226
+ export type AdversarialLabelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1227
+ /**
1228
+ * Select specific fields to fetch from the AdversarialLabel
1229
+ */
1230
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1231
+ /**
1232
+ * Omit specific fields from the AdversarialLabel
1233
+ */
1234
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1235
+ /**
1236
+ * Choose, which related nodes to fetch as well
1237
+ */
1238
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1239
+ /**
1240
+ * Filter which AdversarialLabel to delete.
1241
+ */
1242
+ where: Prisma.AdversarialLabelWhereUniqueInput
1243
+ }
1244
+
1245
+ /**
1246
+ * AdversarialLabel deleteMany
1247
+ */
1248
+ export type AdversarialLabelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1249
+ /**
1250
+ * Filter which AdversarialLabels to delete
1251
+ */
1252
+ where?: Prisma.AdversarialLabelWhereInput
1253
+ /**
1254
+ * Limit how many AdversarialLabels to delete.
1255
+ */
1256
+ limit?: number
1257
+ }
1258
+
1259
+ /**
1260
+ * AdversarialLabel without action
1261
+ */
1262
+ export type AdversarialLabelDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
+ /**
1264
+ * Select specific fields to fetch from the AdversarialLabel
1265
+ */
1266
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1267
+ /**
1268
+ * Omit specific fields from the AdversarialLabel
1269
+ */
1270
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1271
+ /**
1272
+ * Choose, which related nodes to fetch as well
1273
+ */
1274
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1275
+ }