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