@actuate-media/cms-core 0.90.1 → 0.91.1

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