@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,1157 @@
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
+ _relevance?: Prisma.AdversarialLabelOrderByRelevanceInput
178
+ }
179
+
180
+ export type AdversarialLabelWhereUniqueInput = Prisma.AtLeast<{
181
+ id?: string
182
+ AND?: Prisma.AdversarialLabelWhereInput | Prisma.AdversarialLabelWhereInput[]
183
+ OR?: Prisma.AdversarialLabelWhereInput[]
184
+ NOT?: Prisma.AdversarialLabelWhereInput | Prisma.AdversarialLabelWhereInput[]
185
+ name?: Prisma.StringNullableFilter<"AdversarialLabel"> | string | null
186
+ subCategoryId?: Prisma.StringFilter<"AdversarialLabel"> | string
187
+ subCategory?: Prisma.XOR<Prisma.AdversarialSubCategoryScalarRelationFilter, Prisma.AdversarialSubCategoryWhereInput>
188
+ }, "id">
189
+
190
+ export type AdversarialLabelOrderByWithAggregationInput = {
191
+ id?: Prisma.SortOrder
192
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
193
+ subCategoryId?: Prisma.SortOrder
194
+ _count?: Prisma.AdversarialLabelCountOrderByAggregateInput
195
+ _max?: Prisma.AdversarialLabelMaxOrderByAggregateInput
196
+ _min?: Prisma.AdversarialLabelMinOrderByAggregateInput
197
+ }
198
+
199
+ export type AdversarialLabelScalarWhereWithAggregatesInput = {
200
+ AND?: Prisma.AdversarialLabelScalarWhereWithAggregatesInput | Prisma.AdversarialLabelScalarWhereWithAggregatesInput[]
201
+ OR?: Prisma.AdversarialLabelScalarWhereWithAggregatesInput[]
202
+ NOT?: Prisma.AdversarialLabelScalarWhereWithAggregatesInput | Prisma.AdversarialLabelScalarWhereWithAggregatesInput[]
203
+ id?: Prisma.StringWithAggregatesFilter<"AdversarialLabel"> | string
204
+ name?: Prisma.StringNullableWithAggregatesFilter<"AdversarialLabel"> | string | null
205
+ subCategoryId?: Prisma.StringWithAggregatesFilter<"AdversarialLabel"> | string
206
+ }
207
+
208
+ export type AdversarialLabelCreateInput = {
209
+ id?: string
210
+ name?: string | null
211
+ subCategory: Prisma.AdversarialSubCategoryCreateNestedOneWithoutLabelsInput
212
+ }
213
+
214
+ export type AdversarialLabelUncheckedCreateInput = {
215
+ id?: string
216
+ name?: string | null
217
+ subCategoryId: string
218
+ }
219
+
220
+ export type AdversarialLabelUpdateInput = {
221
+ id?: Prisma.StringFieldUpdateOperationsInput | string
222
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
223
+ subCategory?: Prisma.AdversarialSubCategoryUpdateOneRequiredWithoutLabelsNestedInput
224
+ }
225
+
226
+ export type AdversarialLabelUncheckedUpdateInput = {
227
+ id?: Prisma.StringFieldUpdateOperationsInput | string
228
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
229
+ subCategoryId?: Prisma.StringFieldUpdateOperationsInput | string
230
+ }
231
+
232
+ export type AdversarialLabelCreateManyInput = {
233
+ id?: string
234
+ name?: string | null
235
+ subCategoryId: string
236
+ }
237
+
238
+ export type AdversarialLabelUpdateManyMutationInput = {
239
+ id?: Prisma.StringFieldUpdateOperationsInput | string
240
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
241
+ }
242
+
243
+ export type AdversarialLabelUncheckedUpdateManyInput = {
244
+ id?: Prisma.StringFieldUpdateOperationsInput | string
245
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
246
+ subCategoryId?: Prisma.StringFieldUpdateOperationsInput | string
247
+ }
248
+
249
+ export type AdversarialLabelListRelationFilter = {
250
+ every?: Prisma.AdversarialLabelWhereInput
251
+ some?: Prisma.AdversarialLabelWhereInput
252
+ none?: Prisma.AdversarialLabelWhereInput
253
+ }
254
+
255
+ export type AdversarialLabelOrderByRelationAggregateInput = {
256
+ _count?: Prisma.SortOrder
257
+ }
258
+
259
+ export type AdversarialLabelOrderByRelevanceInput = {
260
+ fields: Prisma.AdversarialLabelOrderByRelevanceFieldEnum | Prisma.AdversarialLabelOrderByRelevanceFieldEnum[]
261
+ sort: Prisma.SortOrder
262
+ search: string
263
+ }
264
+
265
+ export type AdversarialLabelCountOrderByAggregateInput = {
266
+ id?: Prisma.SortOrder
267
+ name?: Prisma.SortOrder
268
+ subCategoryId?: Prisma.SortOrder
269
+ }
270
+
271
+ export type AdversarialLabelMaxOrderByAggregateInput = {
272
+ id?: Prisma.SortOrder
273
+ name?: Prisma.SortOrder
274
+ subCategoryId?: Prisma.SortOrder
275
+ }
276
+
277
+ export type AdversarialLabelMinOrderByAggregateInput = {
278
+ id?: Prisma.SortOrder
279
+ name?: Prisma.SortOrder
280
+ subCategoryId?: Prisma.SortOrder
281
+ }
282
+
283
+ export type AdversarialLabelCreateNestedManyWithoutSubCategoryInput = {
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 AdversarialLabelUncheckedCreateNestedManyWithoutSubCategoryInput = {
291
+ create?: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput> | Prisma.AdversarialLabelCreateWithoutSubCategoryInput[] | Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput[]
292
+ connectOrCreate?: Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput | Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput[]
293
+ createMany?: Prisma.AdversarialLabelCreateManySubCategoryInputEnvelope
294
+ connect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
295
+ }
296
+
297
+ export type AdversarialLabelUpdateManyWithoutSubCategoryNestedInput = {
298
+ create?: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput> | Prisma.AdversarialLabelCreateWithoutSubCategoryInput[] | Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput[]
299
+ connectOrCreate?: Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput | Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput[]
300
+ upsert?: Prisma.AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput | Prisma.AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput[]
301
+ createMany?: Prisma.AdversarialLabelCreateManySubCategoryInputEnvelope
302
+ set?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
303
+ disconnect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
304
+ delete?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
305
+ connect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
306
+ update?: Prisma.AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput | Prisma.AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput[]
307
+ updateMany?: Prisma.AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput | Prisma.AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput[]
308
+ deleteMany?: Prisma.AdversarialLabelScalarWhereInput | Prisma.AdversarialLabelScalarWhereInput[]
309
+ }
310
+
311
+ export type AdversarialLabelUncheckedUpdateManyWithoutSubCategoryNestedInput = {
312
+ create?: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput> | Prisma.AdversarialLabelCreateWithoutSubCategoryInput[] | Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput[]
313
+ connectOrCreate?: Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput | Prisma.AdversarialLabelCreateOrConnectWithoutSubCategoryInput[]
314
+ upsert?: Prisma.AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput | Prisma.AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput[]
315
+ createMany?: Prisma.AdversarialLabelCreateManySubCategoryInputEnvelope
316
+ set?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
317
+ disconnect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
318
+ delete?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
319
+ connect?: Prisma.AdversarialLabelWhereUniqueInput | Prisma.AdversarialLabelWhereUniqueInput[]
320
+ update?: Prisma.AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput | Prisma.AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput[]
321
+ updateMany?: Prisma.AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput | Prisma.AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput[]
322
+ deleteMany?: Prisma.AdversarialLabelScalarWhereInput | Prisma.AdversarialLabelScalarWhereInput[]
323
+ }
324
+
325
+ export type AdversarialLabelCreateWithoutSubCategoryInput = {
326
+ id?: string
327
+ name?: string | null
328
+ }
329
+
330
+ export type AdversarialLabelUncheckedCreateWithoutSubCategoryInput = {
331
+ id?: string
332
+ name?: string | null
333
+ }
334
+
335
+ export type AdversarialLabelCreateOrConnectWithoutSubCategoryInput = {
336
+ where: Prisma.AdversarialLabelWhereUniqueInput
337
+ create: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput>
338
+ }
339
+
340
+ export type AdversarialLabelCreateManySubCategoryInputEnvelope = {
341
+ data: Prisma.AdversarialLabelCreateManySubCategoryInput | Prisma.AdversarialLabelCreateManySubCategoryInput[]
342
+ skipDuplicates?: boolean
343
+ }
344
+
345
+ export type AdversarialLabelUpsertWithWhereUniqueWithoutSubCategoryInput = {
346
+ where: Prisma.AdversarialLabelWhereUniqueInput
347
+ update: Prisma.XOR<Prisma.AdversarialLabelUpdateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedUpdateWithoutSubCategoryInput>
348
+ create: Prisma.XOR<Prisma.AdversarialLabelCreateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedCreateWithoutSubCategoryInput>
349
+ }
350
+
351
+ export type AdversarialLabelUpdateWithWhereUniqueWithoutSubCategoryInput = {
352
+ where: Prisma.AdversarialLabelWhereUniqueInput
353
+ data: Prisma.XOR<Prisma.AdversarialLabelUpdateWithoutSubCategoryInput, Prisma.AdversarialLabelUncheckedUpdateWithoutSubCategoryInput>
354
+ }
355
+
356
+ export type AdversarialLabelUpdateManyWithWhereWithoutSubCategoryInput = {
357
+ where: Prisma.AdversarialLabelScalarWhereInput
358
+ data: Prisma.XOR<Prisma.AdversarialLabelUpdateManyMutationInput, Prisma.AdversarialLabelUncheckedUpdateManyWithoutSubCategoryInput>
359
+ }
360
+
361
+ export type AdversarialLabelScalarWhereInput = {
362
+ AND?: Prisma.AdversarialLabelScalarWhereInput | Prisma.AdversarialLabelScalarWhereInput[]
363
+ OR?: Prisma.AdversarialLabelScalarWhereInput[]
364
+ NOT?: Prisma.AdversarialLabelScalarWhereInput | Prisma.AdversarialLabelScalarWhereInput[]
365
+ id?: Prisma.StringFilter<"AdversarialLabel"> | string
366
+ name?: Prisma.StringNullableFilter<"AdversarialLabel"> | string | null
367
+ subCategoryId?: Prisma.StringFilter<"AdversarialLabel"> | string
368
+ }
369
+
370
+ export type AdversarialLabelCreateManySubCategoryInput = {
371
+ id?: string
372
+ name?: string | null
373
+ }
374
+
375
+ export type AdversarialLabelUpdateWithoutSubCategoryInput = {
376
+ id?: Prisma.StringFieldUpdateOperationsInput | string
377
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
378
+ }
379
+
380
+ export type AdversarialLabelUncheckedUpdateWithoutSubCategoryInput = {
381
+ id?: Prisma.StringFieldUpdateOperationsInput | string
382
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
383
+ }
384
+
385
+ export type AdversarialLabelUncheckedUpdateManyWithoutSubCategoryInput = {
386
+ id?: Prisma.StringFieldUpdateOperationsInput | string
387
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
388
+ }
389
+
390
+
391
+
392
+ export type AdversarialLabelSelect<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
+
400
+
401
+ export type AdversarialLabelSelectScalar = {
402
+ id?: boolean
403
+ name?: boolean
404
+ subCategoryId?: boolean
405
+ }
406
+
407
+ export type AdversarialLabelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "subCategoryId", ExtArgs["result"]["adversarialLabel"]>
408
+ export type AdversarialLabelInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
409
+ subCategory?: boolean | Prisma.AdversarialSubCategoryDefaultArgs<ExtArgs>
410
+ }
411
+
412
+ export type $AdversarialLabelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
413
+ name: "AdversarialLabel"
414
+ objects: {
415
+ subCategory: Prisma.$AdversarialSubCategoryPayload<ExtArgs>
416
+ }
417
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
418
+ id: string
419
+ name: string | null
420
+ subCategoryId: string
421
+ }, ExtArgs["result"]["adversarialLabel"]>
422
+ composites: {}
423
+ }
424
+
425
+ export type AdversarialLabelGetPayload<S extends boolean | null | undefined | AdversarialLabelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload, S>
426
+
427
+ export type AdversarialLabelCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
428
+ Omit<AdversarialLabelFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
429
+ select?: AdversarialLabelCountAggregateInputType | true
430
+ }
431
+
432
+ export interface AdversarialLabelDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
433
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdversarialLabel'], meta: { name: 'AdversarialLabel' } }
434
+ /**
435
+ * Find zero or one AdversarialLabel that matches the filter.
436
+ * @param {AdversarialLabelFindUniqueArgs} args - Arguments to find a AdversarialLabel
437
+ * @example
438
+ * // Get one AdversarialLabel
439
+ * const adversarialLabel = await prisma.adversarialLabel.findUnique({
440
+ * where: {
441
+ * // ... provide filter here
442
+ * }
443
+ * })
444
+ */
445
+ 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>
446
+
447
+ /**
448
+ * Find one AdversarialLabel that matches the filter or throw an error with `error.code='P2025'`
449
+ * if no matches were found.
450
+ * @param {AdversarialLabelFindUniqueOrThrowArgs} args - Arguments to find a AdversarialLabel
451
+ * @example
452
+ * // Get one AdversarialLabel
453
+ * const adversarialLabel = await prisma.adversarialLabel.findUniqueOrThrow({
454
+ * where: {
455
+ * // ... provide filter here
456
+ * }
457
+ * })
458
+ */
459
+ 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>
460
+
461
+ /**
462
+ * Find the first AdversarialLabel that matches the filter.
463
+ * Note, that providing `undefined` is treated as the value not being there.
464
+ * Read more here: https://pris.ly/d/null-undefined
465
+ * @param {AdversarialLabelFindFirstArgs} args - Arguments to find a AdversarialLabel
466
+ * @example
467
+ * // Get one AdversarialLabel
468
+ * const adversarialLabel = await prisma.adversarialLabel.findFirst({
469
+ * where: {
470
+ * // ... provide filter here
471
+ * }
472
+ * })
473
+ */
474
+ 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>
475
+
476
+ /**
477
+ * Find the first AdversarialLabel that matches the filter or
478
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
479
+ * Note, that providing `undefined` is treated as the value not being there.
480
+ * Read more here: https://pris.ly/d/null-undefined
481
+ * @param {AdversarialLabelFindFirstOrThrowArgs} args - Arguments to find a AdversarialLabel
482
+ * @example
483
+ * // Get one AdversarialLabel
484
+ * const adversarialLabel = await prisma.adversarialLabel.findFirstOrThrow({
485
+ * where: {
486
+ * // ... provide filter here
487
+ * }
488
+ * })
489
+ */
490
+ 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>
491
+
492
+ /**
493
+ * Find zero or more AdversarialLabels that matches the filter.
494
+ * Note, that providing `undefined` is treated as the value not being there.
495
+ * Read more here: https://pris.ly/d/null-undefined
496
+ * @param {AdversarialLabelFindManyArgs} args - Arguments to filter and select certain fields only.
497
+ * @example
498
+ * // Get all AdversarialLabels
499
+ * const adversarialLabels = await prisma.adversarialLabel.findMany()
500
+ *
501
+ * // Get first 10 AdversarialLabels
502
+ * const adversarialLabels = await prisma.adversarialLabel.findMany({ take: 10 })
503
+ *
504
+ * // Only select the `id`
505
+ * const adversarialLabelWithIdOnly = await prisma.adversarialLabel.findMany({ select: { id: true } })
506
+ *
507
+ */
508
+ findMany<T extends AdversarialLabelFindManyArgs>(args?: Prisma.SelectSubset<T, AdversarialLabelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialLabelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
509
+
510
+ /**
511
+ * Create a AdversarialLabel.
512
+ * @param {AdversarialLabelCreateArgs} args - Arguments to create a AdversarialLabel.
513
+ * @example
514
+ * // Create one AdversarialLabel
515
+ * const AdversarialLabel = await prisma.adversarialLabel.create({
516
+ * data: {
517
+ * // ... data to create a AdversarialLabel
518
+ * }
519
+ * })
520
+ *
521
+ */
522
+ 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>
523
+
524
+ /**
525
+ * Create many AdversarialLabels.
526
+ * @param {AdversarialLabelCreateManyArgs} args - Arguments to create many AdversarialLabels.
527
+ * @example
528
+ * // Create many AdversarialLabels
529
+ * const adversarialLabel = await prisma.adversarialLabel.createMany({
530
+ * data: [
531
+ * // ... provide data here
532
+ * ]
533
+ * })
534
+ *
535
+ */
536
+ createMany<T extends AdversarialLabelCreateManyArgs>(args?: Prisma.SelectSubset<T, AdversarialLabelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
537
+
538
+ /**
539
+ * Delete a AdversarialLabel.
540
+ * @param {AdversarialLabelDeleteArgs} args - Arguments to delete one AdversarialLabel.
541
+ * @example
542
+ * // Delete one AdversarialLabel
543
+ * const AdversarialLabel = await prisma.adversarialLabel.delete({
544
+ * where: {
545
+ * // ... filter to delete one AdversarialLabel
546
+ * }
547
+ * })
548
+ *
549
+ */
550
+ 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>
551
+
552
+ /**
553
+ * Update one AdversarialLabel.
554
+ * @param {AdversarialLabelUpdateArgs} args - Arguments to update one AdversarialLabel.
555
+ * @example
556
+ * // Update one AdversarialLabel
557
+ * const adversarialLabel = await prisma.adversarialLabel.update({
558
+ * where: {
559
+ * // ... provide filter here
560
+ * },
561
+ * data: {
562
+ * // ... provide data here
563
+ * }
564
+ * })
565
+ *
566
+ */
567
+ 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>
568
+
569
+ /**
570
+ * Delete zero or more AdversarialLabels.
571
+ * @param {AdversarialLabelDeleteManyArgs} args - Arguments to filter AdversarialLabels to delete.
572
+ * @example
573
+ * // Delete a few AdversarialLabels
574
+ * const { count } = await prisma.adversarialLabel.deleteMany({
575
+ * where: {
576
+ * // ... provide filter here
577
+ * }
578
+ * })
579
+ *
580
+ */
581
+ deleteMany<T extends AdversarialLabelDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdversarialLabelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
582
+
583
+ /**
584
+ * Update zero or more AdversarialLabels.
585
+ * Note, that providing `undefined` is treated as the value not being there.
586
+ * Read more here: https://pris.ly/d/null-undefined
587
+ * @param {AdversarialLabelUpdateManyArgs} args - Arguments to update one or more rows.
588
+ * @example
589
+ * // Update many AdversarialLabels
590
+ * const adversarialLabel = await prisma.adversarialLabel.updateMany({
591
+ * where: {
592
+ * // ... provide filter here
593
+ * },
594
+ * data: {
595
+ * // ... provide data here
596
+ * }
597
+ * })
598
+ *
599
+ */
600
+ updateMany<T extends AdversarialLabelUpdateManyArgs>(args: Prisma.SelectSubset<T, AdversarialLabelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
601
+
602
+ /**
603
+ * Create or update one AdversarialLabel.
604
+ * @param {AdversarialLabelUpsertArgs} args - Arguments to update or create a AdversarialLabel.
605
+ * @example
606
+ * // Update or create a AdversarialLabel
607
+ * const adversarialLabel = await prisma.adversarialLabel.upsert({
608
+ * create: {
609
+ * // ... data to create a AdversarialLabel
610
+ * },
611
+ * update: {
612
+ * // ... in case it already exists, update
613
+ * },
614
+ * where: {
615
+ * // ... the filter for the AdversarialLabel we want to update
616
+ * }
617
+ * })
618
+ */
619
+ 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>
620
+
621
+
622
+ /**
623
+ * Count the number of AdversarialLabels.
624
+ * Note, that providing `undefined` is treated as the value not being there.
625
+ * Read more here: https://pris.ly/d/null-undefined
626
+ * @param {AdversarialLabelCountArgs} args - Arguments to filter AdversarialLabels to count.
627
+ * @example
628
+ * // Count the number of AdversarialLabels
629
+ * const count = await prisma.adversarialLabel.count({
630
+ * where: {
631
+ * // ... the filter for the AdversarialLabels we want to count
632
+ * }
633
+ * })
634
+ **/
635
+ count<T extends AdversarialLabelCountArgs>(
636
+ args?: Prisma.Subset<T, AdversarialLabelCountArgs>,
637
+ ): Prisma.PrismaPromise<
638
+ T extends runtime.Types.Utils.Record<'select', any>
639
+ ? T['select'] extends true
640
+ ? number
641
+ : Prisma.GetScalarType<T['select'], AdversarialLabelCountAggregateOutputType>
642
+ : number
643
+ >
644
+
645
+ /**
646
+ * Allows you to perform aggregations operations on a AdversarialLabel.
647
+ * Note, that providing `undefined` is treated as the value not being there.
648
+ * Read more here: https://pris.ly/d/null-undefined
649
+ * @param {AdversarialLabelAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
650
+ * @example
651
+ * // Ordered by age ascending
652
+ * // Where email contains prisma.io
653
+ * // Limited to the 10 users
654
+ * const aggregations = await prisma.user.aggregate({
655
+ * _avg: {
656
+ * age: true,
657
+ * },
658
+ * where: {
659
+ * email: {
660
+ * contains: "prisma.io",
661
+ * },
662
+ * },
663
+ * orderBy: {
664
+ * age: "asc",
665
+ * },
666
+ * take: 10,
667
+ * })
668
+ **/
669
+ aggregate<T extends AdversarialLabelAggregateArgs>(args: Prisma.Subset<T, AdversarialLabelAggregateArgs>): Prisma.PrismaPromise<GetAdversarialLabelAggregateType<T>>
670
+
671
+ /**
672
+ * Group by AdversarialLabel.
673
+ * Note, that providing `undefined` is treated as the value not being there.
674
+ * Read more here: https://pris.ly/d/null-undefined
675
+ * @param {AdversarialLabelGroupByArgs} args - Group by arguments.
676
+ * @example
677
+ * // Group by city, order by createdAt, get count
678
+ * const result = await prisma.user.groupBy({
679
+ * by: ['city', 'createdAt'],
680
+ * orderBy: {
681
+ * createdAt: true
682
+ * },
683
+ * _count: {
684
+ * _all: true
685
+ * },
686
+ * })
687
+ *
688
+ **/
689
+ groupBy<
690
+ T extends AdversarialLabelGroupByArgs,
691
+ HasSelectOrTake extends Prisma.Or<
692
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
693
+ Prisma.Extends<'take', Prisma.Keys<T>>
694
+ >,
695
+ OrderByArg extends Prisma.True extends HasSelectOrTake
696
+ ? { orderBy: AdversarialLabelGroupByArgs['orderBy'] }
697
+ : { orderBy?: AdversarialLabelGroupByArgs['orderBy'] },
698
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
699
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
700
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
701
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
702
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
703
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
704
+ InputErrors extends ByEmpty extends Prisma.True
705
+ ? `Error: "by" must not be empty.`
706
+ : HavingValid extends Prisma.False
707
+ ? {
708
+ [P in HavingFields]: P extends ByFields
709
+ ? never
710
+ : P extends string
711
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
712
+ : [
713
+ Error,
714
+ 'Field ',
715
+ P,
716
+ ` in "having" needs to be provided in "by"`,
717
+ ]
718
+ }[HavingFields]
719
+ : 'take' extends Prisma.Keys<T>
720
+ ? 'orderBy' extends Prisma.Keys<T>
721
+ ? ByValid extends Prisma.True
722
+ ? {}
723
+ : {
724
+ [P in OrderFields]: P extends ByFields
725
+ ? never
726
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
727
+ }[OrderFields]
728
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
729
+ : 'skip' extends Prisma.Keys<T>
730
+ ? 'orderBy' extends Prisma.Keys<T>
731
+ ? ByValid extends Prisma.True
732
+ ? {}
733
+ : {
734
+ [P in OrderFields]: P extends ByFields
735
+ ? never
736
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
737
+ }[OrderFields]
738
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
739
+ : ByValid extends Prisma.True
740
+ ? {}
741
+ : {
742
+ [P in OrderFields]: P extends ByFields
743
+ ? never
744
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
745
+ }[OrderFields]
746
+ >(args: Prisma.SubsetIntersection<T, AdversarialLabelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdversarialLabelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
747
+ /**
748
+ * Fields of the AdversarialLabel model
749
+ */
750
+ readonly fields: AdversarialLabelFieldRefs;
751
+ }
752
+
753
+ /**
754
+ * The delegate class that acts as a "Promise-like" for AdversarialLabel.
755
+ * Why is this prefixed with `Prisma__`?
756
+ * Because we want to prevent naming conflicts as mentioned in
757
+ * https://github.com/prisma/prisma-client-js/issues/707
758
+ */
759
+ export interface Prisma__AdversarialLabelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
760
+ readonly [Symbol.toStringTag]: "PrismaPromise"
761
+ 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>
762
+ /**
763
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
764
+ * @param onfulfilled The callback to execute when the Promise is resolved.
765
+ * @param onrejected The callback to execute when the Promise is rejected.
766
+ * @returns A Promise for the completion of which ever callback is executed.
767
+ */
768
+ 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>
769
+ /**
770
+ * Attaches a callback for only the rejection of the Promise.
771
+ * @param onrejected The callback to execute when the Promise is rejected.
772
+ * @returns A Promise for the completion of the callback.
773
+ */
774
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
775
+ /**
776
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
777
+ * resolved value cannot be modified from the callback.
778
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
779
+ * @returns A Promise for the completion of the callback.
780
+ */
781
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
782
+ }
783
+
784
+
785
+
786
+
787
+ /**
788
+ * Fields of the AdversarialLabel model
789
+ */
790
+ export interface AdversarialLabelFieldRefs {
791
+ readonly id: Prisma.FieldRef<"AdversarialLabel", 'String'>
792
+ readonly name: Prisma.FieldRef<"AdversarialLabel", 'String'>
793
+ readonly subCategoryId: Prisma.FieldRef<"AdversarialLabel", 'String'>
794
+ }
795
+
796
+
797
+ // Custom InputTypes
798
+ /**
799
+ * AdversarialLabel findUnique
800
+ */
801
+ export type AdversarialLabelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
802
+ /**
803
+ * Select specific fields to fetch from the AdversarialLabel
804
+ */
805
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
806
+ /**
807
+ * Omit specific fields from the AdversarialLabel
808
+ */
809
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
810
+ /**
811
+ * Choose, which related nodes to fetch as well
812
+ */
813
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
814
+ /**
815
+ * Filter, which AdversarialLabel to fetch.
816
+ */
817
+ where: Prisma.AdversarialLabelWhereUniqueInput
818
+ }
819
+
820
+ /**
821
+ * AdversarialLabel findUniqueOrThrow
822
+ */
823
+ export type AdversarialLabelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
824
+ /**
825
+ * Select specific fields to fetch from the AdversarialLabel
826
+ */
827
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
828
+ /**
829
+ * Omit specific fields from the AdversarialLabel
830
+ */
831
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
832
+ /**
833
+ * Choose, which related nodes to fetch as well
834
+ */
835
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
836
+ /**
837
+ * Filter, which AdversarialLabel to fetch.
838
+ */
839
+ where: Prisma.AdversarialLabelWhereUniqueInput
840
+ }
841
+
842
+ /**
843
+ * AdversarialLabel findFirst
844
+ */
845
+ export type AdversarialLabelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
846
+ /**
847
+ * Select specific fields to fetch from the AdversarialLabel
848
+ */
849
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
850
+ /**
851
+ * Omit specific fields from the AdversarialLabel
852
+ */
853
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
854
+ /**
855
+ * Choose, which related nodes to fetch as well
856
+ */
857
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
858
+ /**
859
+ * Filter, which AdversarialLabel to fetch.
860
+ */
861
+ where?: Prisma.AdversarialLabelWhereInput
862
+ /**
863
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
864
+ *
865
+ * Determine the order of AdversarialLabels to fetch.
866
+ */
867
+ orderBy?: Prisma.AdversarialLabelOrderByWithRelationInput | Prisma.AdversarialLabelOrderByWithRelationInput[]
868
+ /**
869
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
870
+ *
871
+ * Sets the position for searching for AdversarialLabels.
872
+ */
873
+ cursor?: Prisma.AdversarialLabelWhereUniqueInput
874
+ /**
875
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
876
+ *
877
+ * Take `±n` AdversarialLabels from the position of the cursor.
878
+ */
879
+ take?: number
880
+ /**
881
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
882
+ *
883
+ * Skip the first `n` AdversarialLabels.
884
+ */
885
+ skip?: number
886
+ /**
887
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
888
+ *
889
+ * Filter by unique combinations of AdversarialLabels.
890
+ */
891
+ distinct?: Prisma.AdversarialLabelScalarFieldEnum | Prisma.AdversarialLabelScalarFieldEnum[]
892
+ }
893
+
894
+ /**
895
+ * AdversarialLabel findFirstOrThrow
896
+ */
897
+ export type AdversarialLabelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
898
+ /**
899
+ * Select specific fields to fetch from the AdversarialLabel
900
+ */
901
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
902
+ /**
903
+ * Omit specific fields from the AdversarialLabel
904
+ */
905
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
906
+ /**
907
+ * Choose, which related nodes to fetch as well
908
+ */
909
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
910
+ /**
911
+ * Filter, which AdversarialLabel to fetch.
912
+ */
913
+ where?: Prisma.AdversarialLabelWhereInput
914
+ /**
915
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
916
+ *
917
+ * Determine the order of AdversarialLabels to fetch.
918
+ */
919
+ orderBy?: Prisma.AdversarialLabelOrderByWithRelationInput | Prisma.AdversarialLabelOrderByWithRelationInput[]
920
+ /**
921
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
922
+ *
923
+ * Sets the position for searching for AdversarialLabels.
924
+ */
925
+ cursor?: Prisma.AdversarialLabelWhereUniqueInput
926
+ /**
927
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
928
+ *
929
+ * Take `±n` AdversarialLabels from the position of the cursor.
930
+ */
931
+ take?: number
932
+ /**
933
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
934
+ *
935
+ * Skip the first `n` AdversarialLabels.
936
+ */
937
+ skip?: number
938
+ /**
939
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
940
+ *
941
+ * Filter by unique combinations of AdversarialLabels.
942
+ */
943
+ distinct?: Prisma.AdversarialLabelScalarFieldEnum | Prisma.AdversarialLabelScalarFieldEnum[]
944
+ }
945
+
946
+ /**
947
+ * AdversarialLabel findMany
948
+ */
949
+ export type AdversarialLabelFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
950
+ /**
951
+ * Select specific fields to fetch from the AdversarialLabel
952
+ */
953
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
954
+ /**
955
+ * Omit specific fields from the AdversarialLabel
956
+ */
957
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
958
+ /**
959
+ * Choose, which related nodes to fetch as well
960
+ */
961
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
962
+ /**
963
+ * Filter, which AdversarialLabels to fetch.
964
+ */
965
+ where?: Prisma.AdversarialLabelWhereInput
966
+ /**
967
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
968
+ *
969
+ * Determine the order of AdversarialLabels to fetch.
970
+ */
971
+ orderBy?: Prisma.AdversarialLabelOrderByWithRelationInput | Prisma.AdversarialLabelOrderByWithRelationInput[]
972
+ /**
973
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
974
+ *
975
+ * Sets the position for listing AdversarialLabels.
976
+ */
977
+ cursor?: Prisma.AdversarialLabelWhereUniqueInput
978
+ /**
979
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
980
+ *
981
+ * Take `±n` AdversarialLabels from the position of the cursor.
982
+ */
983
+ take?: number
984
+ /**
985
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
986
+ *
987
+ * Skip the first `n` AdversarialLabels.
988
+ */
989
+ skip?: number
990
+ /**
991
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
992
+ *
993
+ * Filter by unique combinations of AdversarialLabels.
994
+ */
995
+ distinct?: Prisma.AdversarialLabelScalarFieldEnum | Prisma.AdversarialLabelScalarFieldEnum[]
996
+ }
997
+
998
+ /**
999
+ * AdversarialLabel create
1000
+ */
1001
+ export type AdversarialLabelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1002
+ /**
1003
+ * Select specific fields to fetch from the AdversarialLabel
1004
+ */
1005
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1006
+ /**
1007
+ * Omit specific fields from the AdversarialLabel
1008
+ */
1009
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1010
+ /**
1011
+ * Choose, which related nodes to fetch as well
1012
+ */
1013
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1014
+ /**
1015
+ * The data needed to create a AdversarialLabel.
1016
+ */
1017
+ data: Prisma.XOR<Prisma.AdversarialLabelCreateInput, Prisma.AdversarialLabelUncheckedCreateInput>
1018
+ }
1019
+
1020
+ /**
1021
+ * AdversarialLabel createMany
1022
+ */
1023
+ export type AdversarialLabelCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1024
+ /**
1025
+ * The data used to create many AdversarialLabels.
1026
+ */
1027
+ data: Prisma.AdversarialLabelCreateManyInput | Prisma.AdversarialLabelCreateManyInput[]
1028
+ skipDuplicates?: boolean
1029
+ }
1030
+
1031
+ /**
1032
+ * AdversarialLabel update
1033
+ */
1034
+ export type AdversarialLabelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1035
+ /**
1036
+ * Select specific fields to fetch from the AdversarialLabel
1037
+ */
1038
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1039
+ /**
1040
+ * Omit specific fields from the AdversarialLabel
1041
+ */
1042
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1043
+ /**
1044
+ * Choose, which related nodes to fetch as well
1045
+ */
1046
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1047
+ /**
1048
+ * The data needed to update a AdversarialLabel.
1049
+ */
1050
+ data: Prisma.XOR<Prisma.AdversarialLabelUpdateInput, Prisma.AdversarialLabelUncheckedUpdateInput>
1051
+ /**
1052
+ * Choose, which AdversarialLabel to update.
1053
+ */
1054
+ where: Prisma.AdversarialLabelWhereUniqueInput
1055
+ }
1056
+
1057
+ /**
1058
+ * AdversarialLabel updateMany
1059
+ */
1060
+ export type AdversarialLabelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1061
+ /**
1062
+ * The data used to update AdversarialLabels.
1063
+ */
1064
+ data: Prisma.XOR<Prisma.AdversarialLabelUpdateManyMutationInput, Prisma.AdversarialLabelUncheckedUpdateManyInput>
1065
+ /**
1066
+ * Filter which AdversarialLabels to update
1067
+ */
1068
+ where?: Prisma.AdversarialLabelWhereInput
1069
+ /**
1070
+ * Limit how many AdversarialLabels to update.
1071
+ */
1072
+ limit?: number
1073
+ }
1074
+
1075
+ /**
1076
+ * AdversarialLabel upsert
1077
+ */
1078
+ export type AdversarialLabelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1079
+ /**
1080
+ * Select specific fields to fetch from the AdversarialLabel
1081
+ */
1082
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1083
+ /**
1084
+ * Omit specific fields from the AdversarialLabel
1085
+ */
1086
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1087
+ /**
1088
+ * Choose, which related nodes to fetch as well
1089
+ */
1090
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1091
+ /**
1092
+ * The filter to search for the AdversarialLabel to update in case it exists.
1093
+ */
1094
+ where: Prisma.AdversarialLabelWhereUniqueInput
1095
+ /**
1096
+ * In case the AdversarialLabel found by the `where` argument doesn't exist, create a new AdversarialLabel with this data.
1097
+ */
1098
+ create: Prisma.XOR<Prisma.AdversarialLabelCreateInput, Prisma.AdversarialLabelUncheckedCreateInput>
1099
+ /**
1100
+ * In case the AdversarialLabel was found with the provided `where` argument, update it with this data.
1101
+ */
1102
+ update: Prisma.XOR<Prisma.AdversarialLabelUpdateInput, Prisma.AdversarialLabelUncheckedUpdateInput>
1103
+ }
1104
+
1105
+ /**
1106
+ * AdversarialLabel delete
1107
+ */
1108
+ export type AdversarialLabelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1109
+ /**
1110
+ * Select specific fields to fetch from the AdversarialLabel
1111
+ */
1112
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1113
+ /**
1114
+ * Omit specific fields from the AdversarialLabel
1115
+ */
1116
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1117
+ /**
1118
+ * Choose, which related nodes to fetch as well
1119
+ */
1120
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1121
+ /**
1122
+ * Filter which AdversarialLabel to delete.
1123
+ */
1124
+ where: Prisma.AdversarialLabelWhereUniqueInput
1125
+ }
1126
+
1127
+ /**
1128
+ * AdversarialLabel deleteMany
1129
+ */
1130
+ export type AdversarialLabelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1131
+ /**
1132
+ * Filter which AdversarialLabels to delete
1133
+ */
1134
+ where?: Prisma.AdversarialLabelWhereInput
1135
+ /**
1136
+ * Limit how many AdversarialLabels to delete.
1137
+ */
1138
+ limit?: number
1139
+ }
1140
+
1141
+ /**
1142
+ * AdversarialLabel without action
1143
+ */
1144
+ export type AdversarialLabelDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1145
+ /**
1146
+ * Select specific fields to fetch from the AdversarialLabel
1147
+ */
1148
+ select?: Prisma.AdversarialLabelSelect<ExtArgs> | null
1149
+ /**
1150
+ * Omit specific fields from the AdversarialLabel
1151
+ */
1152
+ omit?: Prisma.AdversarialLabelOmit<ExtArgs> | null
1153
+ /**
1154
+ * Choose, which related nodes to fetch as well
1155
+ */
1156
+ include?: Prisma.AdversarialLabelInclude<ExtArgs> | null
1157
+ }