@explita/tunnel-server-plugin 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/LICENSE +21 -0
  3. package/README.md +63 -2
  4. package/bin/cli.js +100 -0
  5. package/dist/generated/prisma/browser.d.ts +25 -0
  6. package/dist/generated/prisma/browser.d.ts.map +1 -0
  7. package/dist/generated/prisma/browser.js +18 -0
  8. package/dist/generated/prisma/browser.js.map +1 -0
  9. package/dist/generated/prisma/client.d.ts +44 -0
  10. package/dist/generated/prisma/client.d.ts.map +1 -0
  11. package/dist/generated/prisma/client.js +35 -0
  12. package/dist/generated/prisma/client.js.map +1 -0
  13. package/dist/generated/prisma/commonInputTypes.d.ts +278 -0
  14. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
  15. package/dist/generated/prisma/commonInputTypes.js +11 -0
  16. package/dist/generated/prisma/commonInputTypes.js.map +1 -0
  17. package/dist/generated/prisma/enums.d.ts +2 -0
  18. package/dist/generated/prisma/enums.d.ts.map +1 -0
  19. package/dist/generated/prisma/enums.js +11 -0
  20. package/dist/generated/prisma/enums.js.map +1 -0
  21. package/dist/generated/prisma/internal/class.d.ts +166 -0
  22. package/dist/generated/prisma/internal/class.d.ts.map +1 -0
  23. package/dist/generated/prisma/internal/class.js +50 -0
  24. package/dist/generated/prisma/internal/class.js.map +1 -0
  25. package/dist/generated/prisma/internal/prismaNamespace.d.ts +867 -0
  26. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  27. package/dist/generated/prisma/internal/prismaNamespace.js +128 -0
  28. package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
  29. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +92 -0
  30. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  31. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +99 -0
  32. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  33. package/dist/generated/prisma/models/DailyMetric.d.ts +1152 -0
  34. package/dist/generated/prisma/models/DailyMetric.d.ts.map +1 -0
  35. package/dist/generated/prisma/models/DailyMetric.js +2 -0
  36. package/dist/generated/prisma/models/DailyMetric.js.map +1 -0
  37. package/dist/generated/prisma/models/Developer.d.ts +1134 -0
  38. package/dist/generated/prisma/models/Developer.d.ts.map +1 -0
  39. package/dist/generated/prisma/models/Developer.js +2 -0
  40. package/dist/generated/prisma/models/Developer.js.map +1 -0
  41. package/dist/generated/prisma/models/SystemMetric.d.ts +1048 -0
  42. package/dist/generated/prisma/models/SystemMetric.d.ts.map +1 -0
  43. package/dist/generated/prisma/models/SystemMetric.js +2 -0
  44. package/dist/generated/prisma/models/SystemMetric.js.map +1 -0
  45. package/dist/generated/prisma/models/Token.d.ts +1214 -0
  46. package/dist/generated/prisma/models/Token.d.ts.map +1 -0
  47. package/dist/generated/prisma/models/Token.js +2 -0
  48. package/dist/generated/prisma/models/Token.js.map +1 -0
  49. package/dist/generated/prisma/models.d.ts +6 -0
  50. package/dist/generated/prisma/models.d.ts.map +1 -0
  51. package/dist/generated/prisma/models.js +2 -0
  52. package/dist/generated/prisma/models.js.map +1 -0
  53. package/dist/index.d.ts +21 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/index.js +45 -0
  56. package/dist/index.js.map +1 -0
  57. package/dist/issue.d.ts +3 -0
  58. package/dist/issue.d.ts.map +1 -0
  59. package/dist/issue.js +102 -0
  60. package/dist/issue.js.map +1 -0
  61. package/dist/lib/cache.d.ts +2 -0
  62. package/dist/lib/cache.d.ts.map +1 -0
  63. package/dist/lib/cache.js +6 -0
  64. package/dist/lib/cache.js.map +1 -0
  65. package/dist/lib/mailer.d.ts +28 -0
  66. package/dist/lib/mailer.d.ts.map +1 -0
  67. package/dist/lib/mailer.js +116 -0
  68. package/dist/lib/mailer.js.map +1 -0
  69. package/dist/lib/metrics.d.ts +27 -0
  70. package/dist/lib/metrics.d.ts.map +1 -0
  71. package/dist/lib/metrics.js +93 -0
  72. package/dist/lib/metrics.js.map +1 -0
  73. package/dist/lib/prisma.d.ts +3 -0
  74. package/dist/lib/prisma.d.ts.map +1 -0
  75. package/dist/lib/prisma.js +20 -0
  76. package/dist/lib/prisma.js.map +1 -0
  77. package/dist/lib/utils.d.ts +2 -0
  78. package/dist/lib/utils.d.ts.map +1 -0
  79. package/dist/lib/utils.js +5 -0
  80. package/dist/lib/utils.js.map +1 -0
  81. package/dist/request.d.ts +4 -0
  82. package/dist/request.d.ts.map +1 -0
  83. package/dist/request.js +29 -0
  84. package/dist/request.js.map +1 -0
  85. package/dist/validate.d.ts +2 -0
  86. package/dist/validate.d.ts.map +1 -0
  87. package/dist/validate.js +48 -0
  88. package/dist/validate.js.map +1 -0
  89. package/dist/verify.d.ts +3 -0
  90. package/dist/verify.d.ts.map +1 -0
  91. package/dist/verify.js +53 -0
  92. package/dist/verify.js.map +1 -0
  93. package/package.json +52 -4
  94. package/prisma/schema.prisma +62 -0
@@ -0,0 +1,1048 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model SystemMetric
5
+ *
6
+ */
7
+ export type SystemMetricModel = runtime.Types.Result.DefaultSelection<Prisma.$SystemMetricPayload>;
8
+ export type AggregateSystemMetric = {
9
+ _count: SystemMetricCountAggregateOutputType | null;
10
+ _avg: SystemMetricAvgAggregateOutputType | null;
11
+ _sum: SystemMetricSumAggregateOutputType | null;
12
+ _min: SystemMetricMinAggregateOutputType | null;
13
+ _max: SystemMetricMaxAggregateOutputType | null;
14
+ };
15
+ export type SystemMetricAvgAggregateOutputType = {
16
+ totalTunnels: number | null;
17
+ totalRequests: number | null;
18
+ totalBytes: number | null;
19
+ };
20
+ export type SystemMetricSumAggregateOutputType = {
21
+ totalTunnels: bigint | null;
22
+ totalRequests: bigint | null;
23
+ totalBytes: bigint | null;
24
+ };
25
+ export type SystemMetricMinAggregateOutputType = {
26
+ id: string | null;
27
+ totalTunnels: bigint | null;
28
+ totalRequests: bigint | null;
29
+ totalBytes: bigint | null;
30
+ updatedAt: Date | null;
31
+ };
32
+ export type SystemMetricMaxAggregateOutputType = {
33
+ id: string | null;
34
+ totalTunnels: bigint | null;
35
+ totalRequests: bigint | null;
36
+ totalBytes: bigint | null;
37
+ updatedAt: Date | null;
38
+ };
39
+ export type SystemMetricCountAggregateOutputType = {
40
+ id: number;
41
+ totalTunnels: number;
42
+ totalRequests: number;
43
+ totalBytes: number;
44
+ updatedAt: number;
45
+ _all: number;
46
+ };
47
+ export type SystemMetricAvgAggregateInputType = {
48
+ totalTunnels?: true;
49
+ totalRequests?: true;
50
+ totalBytes?: true;
51
+ };
52
+ export type SystemMetricSumAggregateInputType = {
53
+ totalTunnels?: true;
54
+ totalRequests?: true;
55
+ totalBytes?: true;
56
+ };
57
+ export type SystemMetricMinAggregateInputType = {
58
+ id?: true;
59
+ totalTunnels?: true;
60
+ totalRequests?: true;
61
+ totalBytes?: true;
62
+ updatedAt?: true;
63
+ };
64
+ export type SystemMetricMaxAggregateInputType = {
65
+ id?: true;
66
+ totalTunnels?: true;
67
+ totalRequests?: true;
68
+ totalBytes?: true;
69
+ updatedAt?: true;
70
+ };
71
+ export type SystemMetricCountAggregateInputType = {
72
+ id?: true;
73
+ totalTunnels?: true;
74
+ totalRequests?: true;
75
+ totalBytes?: true;
76
+ updatedAt?: true;
77
+ _all?: true;
78
+ };
79
+ export type SystemMetricAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
80
+ /**
81
+ * Filter which SystemMetric to aggregate.
82
+ */
83
+ where?: Prisma.SystemMetricWhereInput;
84
+ /**
85
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
86
+ *
87
+ * Determine the order of SystemMetrics to fetch.
88
+ */
89
+ orderBy?: Prisma.SystemMetricOrderByWithRelationInput | Prisma.SystemMetricOrderByWithRelationInput[];
90
+ /**
91
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
92
+ *
93
+ * Sets the start position
94
+ */
95
+ cursor?: Prisma.SystemMetricWhereUniqueInput;
96
+ /**
97
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
98
+ *
99
+ * Take `±n` SystemMetrics from the position of the cursor.
100
+ */
101
+ take?: number;
102
+ /**
103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
104
+ *
105
+ * Skip the first `n` SystemMetrics.
106
+ */
107
+ skip?: number;
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
110
+ *
111
+ * Count returned SystemMetrics
112
+ **/
113
+ _count?: true | SystemMetricCountAggregateInputType;
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
116
+ *
117
+ * Select which fields to average
118
+ **/
119
+ _avg?: SystemMetricAvgAggregateInputType;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
122
+ *
123
+ * Select which fields to sum
124
+ **/
125
+ _sum?: SystemMetricSumAggregateInputType;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
128
+ *
129
+ * Select which fields to find the minimum value
130
+ **/
131
+ _min?: SystemMetricMinAggregateInputType;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Select which fields to find the maximum value
136
+ **/
137
+ _max?: SystemMetricMaxAggregateInputType;
138
+ };
139
+ export type GetSystemMetricAggregateType<T extends SystemMetricAggregateArgs> = {
140
+ [P in keyof T & keyof AggregateSystemMetric]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSystemMetric[P]> : Prisma.GetScalarType<T[P], AggregateSystemMetric[P]>;
141
+ };
142
+ export type SystemMetricGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
143
+ where?: Prisma.SystemMetricWhereInput;
144
+ orderBy?: Prisma.SystemMetricOrderByWithAggregationInput | Prisma.SystemMetricOrderByWithAggregationInput[];
145
+ by: Prisma.SystemMetricScalarFieldEnum[] | Prisma.SystemMetricScalarFieldEnum;
146
+ having?: Prisma.SystemMetricScalarWhereWithAggregatesInput;
147
+ take?: number;
148
+ skip?: number;
149
+ _count?: SystemMetricCountAggregateInputType | true;
150
+ _avg?: SystemMetricAvgAggregateInputType;
151
+ _sum?: SystemMetricSumAggregateInputType;
152
+ _min?: SystemMetricMinAggregateInputType;
153
+ _max?: SystemMetricMaxAggregateInputType;
154
+ };
155
+ export type SystemMetricGroupByOutputType = {
156
+ id: string;
157
+ totalTunnels: bigint;
158
+ totalRequests: bigint;
159
+ totalBytes: bigint;
160
+ updatedAt: Date;
161
+ _count: SystemMetricCountAggregateOutputType | null;
162
+ _avg: SystemMetricAvgAggregateOutputType | null;
163
+ _sum: SystemMetricSumAggregateOutputType | null;
164
+ _min: SystemMetricMinAggregateOutputType | null;
165
+ _max: SystemMetricMaxAggregateOutputType | null;
166
+ };
167
+ export type GetSystemMetricGroupByPayload<T extends SystemMetricGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<SystemMetricGroupByOutputType, T['by']> & {
168
+ [P in ((keyof T) & (keyof SystemMetricGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], SystemMetricGroupByOutputType[P]> : Prisma.GetScalarType<T[P], SystemMetricGroupByOutputType[P]>;
169
+ }>>;
170
+ export type SystemMetricWhereInput = {
171
+ AND?: Prisma.SystemMetricWhereInput | Prisma.SystemMetricWhereInput[];
172
+ OR?: Prisma.SystemMetricWhereInput[];
173
+ NOT?: Prisma.SystemMetricWhereInput | Prisma.SystemMetricWhereInput[];
174
+ id?: Prisma.StringFilter<"SystemMetric"> | string;
175
+ totalTunnels?: Prisma.BigIntFilter<"SystemMetric"> | bigint | number;
176
+ totalRequests?: Prisma.BigIntFilter<"SystemMetric"> | bigint | number;
177
+ totalBytes?: Prisma.BigIntFilter<"SystemMetric"> | bigint | number;
178
+ updatedAt?: Prisma.DateTimeFilter<"SystemMetric"> | Date | string;
179
+ };
180
+ export type SystemMetricOrderByWithRelationInput = {
181
+ id?: Prisma.SortOrder;
182
+ totalTunnels?: Prisma.SortOrder;
183
+ totalRequests?: Prisma.SortOrder;
184
+ totalBytes?: Prisma.SortOrder;
185
+ updatedAt?: Prisma.SortOrder;
186
+ };
187
+ export type SystemMetricWhereUniqueInput = Prisma.AtLeast<{
188
+ id?: string;
189
+ AND?: Prisma.SystemMetricWhereInput | Prisma.SystemMetricWhereInput[];
190
+ OR?: Prisma.SystemMetricWhereInput[];
191
+ NOT?: Prisma.SystemMetricWhereInput | Prisma.SystemMetricWhereInput[];
192
+ totalTunnels?: Prisma.BigIntFilter<"SystemMetric"> | bigint | number;
193
+ totalRequests?: Prisma.BigIntFilter<"SystemMetric"> | bigint | number;
194
+ totalBytes?: Prisma.BigIntFilter<"SystemMetric"> | bigint | number;
195
+ updatedAt?: Prisma.DateTimeFilter<"SystemMetric"> | Date | string;
196
+ }, "id">;
197
+ export type SystemMetricOrderByWithAggregationInput = {
198
+ id?: Prisma.SortOrder;
199
+ totalTunnels?: Prisma.SortOrder;
200
+ totalRequests?: Prisma.SortOrder;
201
+ totalBytes?: Prisma.SortOrder;
202
+ updatedAt?: Prisma.SortOrder;
203
+ _count?: Prisma.SystemMetricCountOrderByAggregateInput;
204
+ _avg?: Prisma.SystemMetricAvgOrderByAggregateInput;
205
+ _max?: Prisma.SystemMetricMaxOrderByAggregateInput;
206
+ _min?: Prisma.SystemMetricMinOrderByAggregateInput;
207
+ _sum?: Prisma.SystemMetricSumOrderByAggregateInput;
208
+ };
209
+ export type SystemMetricScalarWhereWithAggregatesInput = {
210
+ AND?: Prisma.SystemMetricScalarWhereWithAggregatesInput | Prisma.SystemMetricScalarWhereWithAggregatesInput[];
211
+ OR?: Prisma.SystemMetricScalarWhereWithAggregatesInput[];
212
+ NOT?: Prisma.SystemMetricScalarWhereWithAggregatesInput | Prisma.SystemMetricScalarWhereWithAggregatesInput[];
213
+ id?: Prisma.StringWithAggregatesFilter<"SystemMetric"> | string;
214
+ totalTunnels?: Prisma.BigIntWithAggregatesFilter<"SystemMetric"> | bigint | number;
215
+ totalRequests?: Prisma.BigIntWithAggregatesFilter<"SystemMetric"> | bigint | number;
216
+ totalBytes?: Prisma.BigIntWithAggregatesFilter<"SystemMetric"> | bigint | number;
217
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SystemMetric"> | Date | string;
218
+ };
219
+ export type SystemMetricCreateInput = {
220
+ id?: string;
221
+ totalTunnels?: bigint | number;
222
+ totalRequests?: bigint | number;
223
+ totalBytes?: bigint | number;
224
+ updatedAt?: Date | string;
225
+ };
226
+ export type SystemMetricUncheckedCreateInput = {
227
+ id?: string;
228
+ totalTunnels?: bigint | number;
229
+ totalRequests?: bigint | number;
230
+ totalBytes?: bigint | number;
231
+ updatedAt?: Date | string;
232
+ };
233
+ export type SystemMetricUpdateInput = {
234
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
235
+ totalTunnels?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
236
+ totalRequests?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
237
+ totalBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
238
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
239
+ };
240
+ export type SystemMetricUncheckedUpdateInput = {
241
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
242
+ totalTunnels?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
243
+ totalRequests?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
244
+ totalBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
245
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
246
+ };
247
+ export type SystemMetricCreateManyInput = {
248
+ id?: string;
249
+ totalTunnels?: bigint | number;
250
+ totalRequests?: bigint | number;
251
+ totalBytes?: bigint | number;
252
+ updatedAt?: Date | string;
253
+ };
254
+ export type SystemMetricUpdateManyMutationInput = {
255
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
256
+ totalTunnels?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
257
+ totalRequests?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
258
+ totalBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
259
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
260
+ };
261
+ export type SystemMetricUncheckedUpdateManyInput = {
262
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
263
+ totalTunnels?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
264
+ totalRequests?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
265
+ totalBytes?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
266
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
267
+ };
268
+ export type SystemMetricCountOrderByAggregateInput = {
269
+ id?: Prisma.SortOrder;
270
+ totalTunnels?: Prisma.SortOrder;
271
+ totalRequests?: Prisma.SortOrder;
272
+ totalBytes?: Prisma.SortOrder;
273
+ updatedAt?: Prisma.SortOrder;
274
+ };
275
+ export type SystemMetricAvgOrderByAggregateInput = {
276
+ totalTunnels?: Prisma.SortOrder;
277
+ totalRequests?: Prisma.SortOrder;
278
+ totalBytes?: Prisma.SortOrder;
279
+ };
280
+ export type SystemMetricMaxOrderByAggregateInput = {
281
+ id?: Prisma.SortOrder;
282
+ totalTunnels?: Prisma.SortOrder;
283
+ totalRequests?: Prisma.SortOrder;
284
+ totalBytes?: Prisma.SortOrder;
285
+ updatedAt?: Prisma.SortOrder;
286
+ };
287
+ export type SystemMetricMinOrderByAggregateInput = {
288
+ id?: Prisma.SortOrder;
289
+ totalTunnels?: Prisma.SortOrder;
290
+ totalRequests?: Prisma.SortOrder;
291
+ totalBytes?: Prisma.SortOrder;
292
+ updatedAt?: Prisma.SortOrder;
293
+ };
294
+ export type SystemMetricSumOrderByAggregateInput = {
295
+ totalTunnels?: Prisma.SortOrder;
296
+ totalRequests?: Prisma.SortOrder;
297
+ totalBytes?: Prisma.SortOrder;
298
+ };
299
+ export type SystemMetricSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
300
+ id?: boolean;
301
+ totalTunnels?: boolean;
302
+ totalRequests?: boolean;
303
+ totalBytes?: boolean;
304
+ updatedAt?: boolean;
305
+ }, ExtArgs["result"]["systemMetric"]>;
306
+ export type SystemMetricSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
307
+ id?: boolean;
308
+ totalTunnels?: boolean;
309
+ totalRequests?: boolean;
310
+ totalBytes?: boolean;
311
+ updatedAt?: boolean;
312
+ }, ExtArgs["result"]["systemMetric"]>;
313
+ export type SystemMetricSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
314
+ id?: boolean;
315
+ totalTunnels?: boolean;
316
+ totalRequests?: boolean;
317
+ totalBytes?: boolean;
318
+ updatedAt?: boolean;
319
+ }, ExtArgs["result"]["systemMetric"]>;
320
+ export type SystemMetricSelectScalar = {
321
+ id?: boolean;
322
+ totalTunnels?: boolean;
323
+ totalRequests?: boolean;
324
+ totalBytes?: boolean;
325
+ updatedAt?: boolean;
326
+ };
327
+ export type SystemMetricOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "totalTunnels" | "totalRequests" | "totalBytes" | "updatedAt", ExtArgs["result"]["systemMetric"]>;
328
+ export type $SystemMetricPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
329
+ name: "SystemMetric";
330
+ objects: {};
331
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
332
+ id: string;
333
+ totalTunnels: bigint;
334
+ totalRequests: bigint;
335
+ totalBytes: bigint;
336
+ updatedAt: Date;
337
+ }, ExtArgs["result"]["systemMetric"]>;
338
+ composites: {};
339
+ };
340
+ export type SystemMetricGetPayload<S extends boolean | null | undefined | SystemMetricDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload, S>;
341
+ export type SystemMetricCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<SystemMetricFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
342
+ select?: SystemMetricCountAggregateInputType | true;
343
+ };
344
+ export interface SystemMetricDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
345
+ [K: symbol]: {
346
+ types: Prisma.TypeMap<ExtArgs>['model']['SystemMetric'];
347
+ meta: {
348
+ name: 'SystemMetric';
349
+ };
350
+ };
351
+ /**
352
+ * Find zero or one SystemMetric that matches the filter.
353
+ * @param {SystemMetricFindUniqueArgs} args - Arguments to find a SystemMetric
354
+ * @example
355
+ * // Get one SystemMetric
356
+ * const systemMetric = await prisma.systemMetric.findUnique({
357
+ * where: {
358
+ * // ... provide filter here
359
+ * }
360
+ * })
361
+ */
362
+ findUnique<T extends SystemMetricFindUniqueArgs>(args: Prisma.SelectSubset<T, SystemMetricFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SystemMetricClient<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
363
+ /**
364
+ * Find one SystemMetric that matches the filter or throw an error with `error.code='P2025'`
365
+ * if no matches were found.
366
+ * @param {SystemMetricFindUniqueOrThrowArgs} args - Arguments to find a SystemMetric
367
+ * @example
368
+ * // Get one SystemMetric
369
+ * const systemMetric = await prisma.systemMetric.findUniqueOrThrow({
370
+ * where: {
371
+ * // ... provide filter here
372
+ * }
373
+ * })
374
+ */
375
+ findUniqueOrThrow<T extends SystemMetricFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SystemMetricFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SystemMetricClient<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
376
+ /**
377
+ * Find the first SystemMetric that matches the filter.
378
+ * Note, that providing `undefined` is treated as the value not being there.
379
+ * Read more here: https://pris.ly/d/null-undefined
380
+ * @param {SystemMetricFindFirstArgs} args - Arguments to find a SystemMetric
381
+ * @example
382
+ * // Get one SystemMetric
383
+ * const systemMetric = await prisma.systemMetric.findFirst({
384
+ * where: {
385
+ * // ... provide filter here
386
+ * }
387
+ * })
388
+ */
389
+ findFirst<T extends SystemMetricFindFirstArgs>(args?: Prisma.SelectSubset<T, SystemMetricFindFirstArgs<ExtArgs>>): Prisma.Prisma__SystemMetricClient<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
390
+ /**
391
+ * Find the first SystemMetric that matches the filter or
392
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
393
+ * Note, that providing `undefined` is treated as the value not being there.
394
+ * Read more here: https://pris.ly/d/null-undefined
395
+ * @param {SystemMetricFindFirstOrThrowArgs} args - Arguments to find a SystemMetric
396
+ * @example
397
+ * // Get one SystemMetric
398
+ * const systemMetric = await prisma.systemMetric.findFirstOrThrow({
399
+ * where: {
400
+ * // ... provide filter here
401
+ * }
402
+ * })
403
+ */
404
+ findFirstOrThrow<T extends SystemMetricFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SystemMetricFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SystemMetricClient<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
405
+ /**
406
+ * Find zero or more SystemMetrics that matches the filter.
407
+ * Note, that providing `undefined` is treated as the value not being there.
408
+ * Read more here: https://pris.ly/d/null-undefined
409
+ * @param {SystemMetricFindManyArgs} args - Arguments to filter and select certain fields only.
410
+ * @example
411
+ * // Get all SystemMetrics
412
+ * const systemMetrics = await prisma.systemMetric.findMany()
413
+ *
414
+ * // Get first 10 SystemMetrics
415
+ * const systemMetrics = await prisma.systemMetric.findMany({ take: 10 })
416
+ *
417
+ * // Only select the `id`
418
+ * const systemMetricWithIdOnly = await prisma.systemMetric.findMany({ select: { id: true } })
419
+ *
420
+ */
421
+ findMany<T extends SystemMetricFindManyArgs>(args?: Prisma.SelectSubset<T, SystemMetricFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
422
+ /**
423
+ * Create a SystemMetric.
424
+ * @param {SystemMetricCreateArgs} args - Arguments to create a SystemMetric.
425
+ * @example
426
+ * // Create one SystemMetric
427
+ * const SystemMetric = await prisma.systemMetric.create({
428
+ * data: {
429
+ * // ... data to create a SystemMetric
430
+ * }
431
+ * })
432
+ *
433
+ */
434
+ create<T extends SystemMetricCreateArgs>(args: Prisma.SelectSubset<T, SystemMetricCreateArgs<ExtArgs>>): Prisma.Prisma__SystemMetricClient<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
435
+ /**
436
+ * Create many SystemMetrics.
437
+ * @param {SystemMetricCreateManyArgs} args - Arguments to create many SystemMetrics.
438
+ * @example
439
+ * // Create many SystemMetrics
440
+ * const systemMetric = await prisma.systemMetric.createMany({
441
+ * data: [
442
+ * // ... provide data here
443
+ * ]
444
+ * })
445
+ *
446
+ */
447
+ createMany<T extends SystemMetricCreateManyArgs>(args?: Prisma.SelectSubset<T, SystemMetricCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
448
+ /**
449
+ * Create many SystemMetrics and returns the data saved in the database.
450
+ * @param {SystemMetricCreateManyAndReturnArgs} args - Arguments to create many SystemMetrics.
451
+ * @example
452
+ * // Create many SystemMetrics
453
+ * const systemMetric = await prisma.systemMetric.createManyAndReturn({
454
+ * data: [
455
+ * // ... provide data here
456
+ * ]
457
+ * })
458
+ *
459
+ * // Create many SystemMetrics and only return the `id`
460
+ * const systemMetricWithIdOnly = await prisma.systemMetric.createManyAndReturn({
461
+ * select: { id: true },
462
+ * data: [
463
+ * // ... provide data here
464
+ * ]
465
+ * })
466
+ * Note, that providing `undefined` is treated as the value not being there.
467
+ * Read more here: https://pris.ly/d/null-undefined
468
+ *
469
+ */
470
+ createManyAndReturn<T extends SystemMetricCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SystemMetricCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
471
+ /**
472
+ * Delete a SystemMetric.
473
+ * @param {SystemMetricDeleteArgs} args - Arguments to delete one SystemMetric.
474
+ * @example
475
+ * // Delete one SystemMetric
476
+ * const SystemMetric = await prisma.systemMetric.delete({
477
+ * where: {
478
+ * // ... filter to delete one SystemMetric
479
+ * }
480
+ * })
481
+ *
482
+ */
483
+ delete<T extends SystemMetricDeleteArgs>(args: Prisma.SelectSubset<T, SystemMetricDeleteArgs<ExtArgs>>): Prisma.Prisma__SystemMetricClient<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
484
+ /**
485
+ * Update one SystemMetric.
486
+ * @param {SystemMetricUpdateArgs} args - Arguments to update one SystemMetric.
487
+ * @example
488
+ * // Update one SystemMetric
489
+ * const systemMetric = await prisma.systemMetric.update({
490
+ * where: {
491
+ * // ... provide filter here
492
+ * },
493
+ * data: {
494
+ * // ... provide data here
495
+ * }
496
+ * })
497
+ *
498
+ */
499
+ update<T extends SystemMetricUpdateArgs>(args: Prisma.SelectSubset<T, SystemMetricUpdateArgs<ExtArgs>>): Prisma.Prisma__SystemMetricClient<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
500
+ /**
501
+ * Delete zero or more SystemMetrics.
502
+ * @param {SystemMetricDeleteManyArgs} args - Arguments to filter SystemMetrics to delete.
503
+ * @example
504
+ * // Delete a few SystemMetrics
505
+ * const { count } = await prisma.systemMetric.deleteMany({
506
+ * where: {
507
+ * // ... provide filter here
508
+ * }
509
+ * })
510
+ *
511
+ */
512
+ deleteMany<T extends SystemMetricDeleteManyArgs>(args?: Prisma.SelectSubset<T, SystemMetricDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
513
+ /**
514
+ * Update zero or more SystemMetrics.
515
+ * Note, that providing `undefined` is treated as the value not being there.
516
+ * Read more here: https://pris.ly/d/null-undefined
517
+ * @param {SystemMetricUpdateManyArgs} args - Arguments to update one or more rows.
518
+ * @example
519
+ * // Update many SystemMetrics
520
+ * const systemMetric = await prisma.systemMetric.updateMany({
521
+ * where: {
522
+ * // ... provide filter here
523
+ * },
524
+ * data: {
525
+ * // ... provide data here
526
+ * }
527
+ * })
528
+ *
529
+ */
530
+ updateMany<T extends SystemMetricUpdateManyArgs>(args: Prisma.SelectSubset<T, SystemMetricUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
531
+ /**
532
+ * Update zero or more SystemMetrics and returns the data updated in the database.
533
+ * @param {SystemMetricUpdateManyAndReturnArgs} args - Arguments to update many SystemMetrics.
534
+ * @example
535
+ * // Update many SystemMetrics
536
+ * const systemMetric = await prisma.systemMetric.updateManyAndReturn({
537
+ * where: {
538
+ * // ... provide filter here
539
+ * },
540
+ * data: [
541
+ * // ... provide data here
542
+ * ]
543
+ * })
544
+ *
545
+ * // Update zero or more SystemMetrics and only return the `id`
546
+ * const systemMetricWithIdOnly = await prisma.systemMetric.updateManyAndReturn({
547
+ * select: { id: true },
548
+ * where: {
549
+ * // ... provide filter here
550
+ * },
551
+ * data: [
552
+ * // ... provide data here
553
+ * ]
554
+ * })
555
+ * Note, that providing `undefined` is treated as the value not being there.
556
+ * Read more here: https://pris.ly/d/null-undefined
557
+ *
558
+ */
559
+ updateManyAndReturn<T extends SystemMetricUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SystemMetricUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
560
+ /**
561
+ * Create or update one SystemMetric.
562
+ * @param {SystemMetricUpsertArgs} args - Arguments to update or create a SystemMetric.
563
+ * @example
564
+ * // Update or create a SystemMetric
565
+ * const systemMetric = await prisma.systemMetric.upsert({
566
+ * create: {
567
+ * // ... data to create a SystemMetric
568
+ * },
569
+ * update: {
570
+ * // ... in case it already exists, update
571
+ * },
572
+ * where: {
573
+ * // ... the filter for the SystemMetric we want to update
574
+ * }
575
+ * })
576
+ */
577
+ upsert<T extends SystemMetricUpsertArgs>(args: Prisma.SelectSubset<T, SystemMetricUpsertArgs<ExtArgs>>): Prisma.Prisma__SystemMetricClient<runtime.Types.Result.GetResult<Prisma.$SystemMetricPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
578
+ /**
579
+ * Count the number of SystemMetrics.
580
+ * Note, that providing `undefined` is treated as the value not being there.
581
+ * Read more here: https://pris.ly/d/null-undefined
582
+ * @param {SystemMetricCountArgs} args - Arguments to filter SystemMetrics to count.
583
+ * @example
584
+ * // Count the number of SystemMetrics
585
+ * const count = await prisma.systemMetric.count({
586
+ * where: {
587
+ * // ... the filter for the SystemMetrics we want to count
588
+ * }
589
+ * })
590
+ **/
591
+ count<T extends SystemMetricCountArgs>(args?: Prisma.Subset<T, SystemMetricCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SystemMetricCountAggregateOutputType> : number>;
592
+ /**
593
+ * Allows you to perform aggregations operations on a SystemMetric.
594
+ * Note, that providing `undefined` is treated as the value not being there.
595
+ * Read more here: https://pris.ly/d/null-undefined
596
+ * @param {SystemMetricAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
597
+ * @example
598
+ * // Ordered by age ascending
599
+ * // Where email contains prisma.io
600
+ * // Limited to the 10 users
601
+ * const aggregations = await prisma.user.aggregate({
602
+ * _avg: {
603
+ * age: true,
604
+ * },
605
+ * where: {
606
+ * email: {
607
+ * contains: "prisma.io",
608
+ * },
609
+ * },
610
+ * orderBy: {
611
+ * age: "asc",
612
+ * },
613
+ * take: 10,
614
+ * })
615
+ **/
616
+ aggregate<T extends SystemMetricAggregateArgs>(args: Prisma.Subset<T, SystemMetricAggregateArgs>): Prisma.PrismaPromise<GetSystemMetricAggregateType<T>>;
617
+ /**
618
+ * Group by SystemMetric.
619
+ * Note, that providing `undefined` is treated as the value not being there.
620
+ * Read more here: https://pris.ly/d/null-undefined
621
+ * @param {SystemMetricGroupByArgs} args - Group by arguments.
622
+ * @example
623
+ * // Group by city, order by createdAt, get count
624
+ * const result = await prisma.user.groupBy({
625
+ * by: ['city', 'createdAt'],
626
+ * orderBy: {
627
+ * createdAt: true
628
+ * },
629
+ * _count: {
630
+ * _all: true
631
+ * },
632
+ * })
633
+ *
634
+ **/
635
+ groupBy<T extends SystemMetricGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
636
+ orderBy: SystemMetricGroupByArgs['orderBy'];
637
+ } : {
638
+ orderBy?: SystemMetricGroupByArgs['orderBy'];
639
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
640
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
641
+ Error,
642
+ 'Field ',
643
+ P,
644
+ ` in "having" needs to be provided in "by"`
645
+ ];
646
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
647
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
648
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
649
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
650
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
651
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
652
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, SystemMetricGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSystemMetricGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
653
+ /**
654
+ * Fields of the SystemMetric model
655
+ */
656
+ readonly fields: SystemMetricFieldRefs;
657
+ }
658
+ /**
659
+ * The delegate class that acts as a "Promise-like" for SystemMetric.
660
+ * Why is this prefixed with `Prisma__`?
661
+ * Because we want to prevent naming conflicts as mentioned in
662
+ * https://github.com/prisma/prisma-client-js/issues/707
663
+ */
664
+ export interface Prisma__SystemMetricClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
665
+ readonly [Symbol.toStringTag]: "PrismaPromise";
666
+ /**
667
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
668
+ * @param onfulfilled The callback to execute when the Promise is resolved.
669
+ * @param onrejected The callback to execute when the Promise is rejected.
670
+ * @returns A Promise for the completion of which ever callback is executed.
671
+ */
672
+ 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>;
673
+ /**
674
+ * Attaches a callback for only the rejection of the Promise.
675
+ * @param onrejected The callback to execute when the Promise is rejected.
676
+ * @returns A Promise for the completion of the callback.
677
+ */
678
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
679
+ /**
680
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
681
+ * resolved value cannot be modified from the callback.
682
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
683
+ * @returns A Promise for the completion of the callback.
684
+ */
685
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
686
+ }
687
+ /**
688
+ * Fields of the SystemMetric model
689
+ */
690
+ export interface SystemMetricFieldRefs {
691
+ readonly id: Prisma.FieldRef<"SystemMetric", 'String'>;
692
+ readonly totalTunnels: Prisma.FieldRef<"SystemMetric", 'BigInt'>;
693
+ readonly totalRequests: Prisma.FieldRef<"SystemMetric", 'BigInt'>;
694
+ readonly totalBytes: Prisma.FieldRef<"SystemMetric", 'BigInt'>;
695
+ readonly updatedAt: Prisma.FieldRef<"SystemMetric", 'DateTime'>;
696
+ }
697
+ /**
698
+ * SystemMetric findUnique
699
+ */
700
+ export type SystemMetricFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
701
+ /**
702
+ * Select specific fields to fetch from the SystemMetric
703
+ */
704
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
705
+ /**
706
+ * Omit specific fields from the SystemMetric
707
+ */
708
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
709
+ /**
710
+ * Filter, which SystemMetric to fetch.
711
+ */
712
+ where: Prisma.SystemMetricWhereUniqueInput;
713
+ };
714
+ /**
715
+ * SystemMetric findUniqueOrThrow
716
+ */
717
+ export type SystemMetricFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
718
+ /**
719
+ * Select specific fields to fetch from the SystemMetric
720
+ */
721
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
722
+ /**
723
+ * Omit specific fields from the SystemMetric
724
+ */
725
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
726
+ /**
727
+ * Filter, which SystemMetric to fetch.
728
+ */
729
+ where: Prisma.SystemMetricWhereUniqueInput;
730
+ };
731
+ /**
732
+ * SystemMetric findFirst
733
+ */
734
+ export type SystemMetricFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
735
+ /**
736
+ * Select specific fields to fetch from the SystemMetric
737
+ */
738
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
739
+ /**
740
+ * Omit specific fields from the SystemMetric
741
+ */
742
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
743
+ /**
744
+ * Filter, which SystemMetric to fetch.
745
+ */
746
+ where?: Prisma.SystemMetricWhereInput;
747
+ /**
748
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
749
+ *
750
+ * Determine the order of SystemMetrics to fetch.
751
+ */
752
+ orderBy?: Prisma.SystemMetricOrderByWithRelationInput | Prisma.SystemMetricOrderByWithRelationInput[];
753
+ /**
754
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
755
+ *
756
+ * Sets the position for searching for SystemMetrics.
757
+ */
758
+ cursor?: Prisma.SystemMetricWhereUniqueInput;
759
+ /**
760
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
761
+ *
762
+ * Take `±n` SystemMetrics from the position of the cursor.
763
+ */
764
+ take?: number;
765
+ /**
766
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
767
+ *
768
+ * Skip the first `n` SystemMetrics.
769
+ */
770
+ skip?: number;
771
+ /**
772
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
773
+ *
774
+ * Filter by unique combinations of SystemMetrics.
775
+ */
776
+ distinct?: Prisma.SystemMetricScalarFieldEnum | Prisma.SystemMetricScalarFieldEnum[];
777
+ };
778
+ /**
779
+ * SystemMetric findFirstOrThrow
780
+ */
781
+ export type SystemMetricFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
782
+ /**
783
+ * Select specific fields to fetch from the SystemMetric
784
+ */
785
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
786
+ /**
787
+ * Omit specific fields from the SystemMetric
788
+ */
789
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
790
+ /**
791
+ * Filter, which SystemMetric to fetch.
792
+ */
793
+ where?: Prisma.SystemMetricWhereInput;
794
+ /**
795
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
796
+ *
797
+ * Determine the order of SystemMetrics to fetch.
798
+ */
799
+ orderBy?: Prisma.SystemMetricOrderByWithRelationInput | Prisma.SystemMetricOrderByWithRelationInput[];
800
+ /**
801
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
802
+ *
803
+ * Sets the position for searching for SystemMetrics.
804
+ */
805
+ cursor?: Prisma.SystemMetricWhereUniqueInput;
806
+ /**
807
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
808
+ *
809
+ * Take `±n` SystemMetrics from the position of the cursor.
810
+ */
811
+ take?: number;
812
+ /**
813
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
814
+ *
815
+ * Skip the first `n` SystemMetrics.
816
+ */
817
+ skip?: number;
818
+ /**
819
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
820
+ *
821
+ * Filter by unique combinations of SystemMetrics.
822
+ */
823
+ distinct?: Prisma.SystemMetricScalarFieldEnum | Prisma.SystemMetricScalarFieldEnum[];
824
+ };
825
+ /**
826
+ * SystemMetric findMany
827
+ */
828
+ export type SystemMetricFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
829
+ /**
830
+ * Select specific fields to fetch from the SystemMetric
831
+ */
832
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
833
+ /**
834
+ * Omit specific fields from the SystemMetric
835
+ */
836
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
837
+ /**
838
+ * Filter, which SystemMetrics to fetch.
839
+ */
840
+ where?: Prisma.SystemMetricWhereInput;
841
+ /**
842
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
843
+ *
844
+ * Determine the order of SystemMetrics to fetch.
845
+ */
846
+ orderBy?: Prisma.SystemMetricOrderByWithRelationInput | Prisma.SystemMetricOrderByWithRelationInput[];
847
+ /**
848
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
849
+ *
850
+ * Sets the position for listing SystemMetrics.
851
+ */
852
+ cursor?: Prisma.SystemMetricWhereUniqueInput;
853
+ /**
854
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
855
+ *
856
+ * Take `±n` SystemMetrics from the position of the cursor.
857
+ */
858
+ take?: number;
859
+ /**
860
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
861
+ *
862
+ * Skip the first `n` SystemMetrics.
863
+ */
864
+ skip?: number;
865
+ /**
866
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
867
+ *
868
+ * Filter by unique combinations of SystemMetrics.
869
+ */
870
+ distinct?: Prisma.SystemMetricScalarFieldEnum | Prisma.SystemMetricScalarFieldEnum[];
871
+ };
872
+ /**
873
+ * SystemMetric create
874
+ */
875
+ export type SystemMetricCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
876
+ /**
877
+ * Select specific fields to fetch from the SystemMetric
878
+ */
879
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
880
+ /**
881
+ * Omit specific fields from the SystemMetric
882
+ */
883
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
884
+ /**
885
+ * The data needed to create a SystemMetric.
886
+ */
887
+ data: Prisma.XOR<Prisma.SystemMetricCreateInput, Prisma.SystemMetricUncheckedCreateInput>;
888
+ };
889
+ /**
890
+ * SystemMetric createMany
891
+ */
892
+ export type SystemMetricCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
893
+ /**
894
+ * The data used to create many SystemMetrics.
895
+ */
896
+ data: Prisma.SystemMetricCreateManyInput | Prisma.SystemMetricCreateManyInput[];
897
+ skipDuplicates?: boolean;
898
+ };
899
+ /**
900
+ * SystemMetric createManyAndReturn
901
+ */
902
+ export type SystemMetricCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
903
+ /**
904
+ * Select specific fields to fetch from the SystemMetric
905
+ */
906
+ select?: Prisma.SystemMetricSelectCreateManyAndReturn<ExtArgs> | null;
907
+ /**
908
+ * Omit specific fields from the SystemMetric
909
+ */
910
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
911
+ /**
912
+ * The data used to create many SystemMetrics.
913
+ */
914
+ data: Prisma.SystemMetricCreateManyInput | Prisma.SystemMetricCreateManyInput[];
915
+ skipDuplicates?: boolean;
916
+ };
917
+ /**
918
+ * SystemMetric update
919
+ */
920
+ export type SystemMetricUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
921
+ /**
922
+ * Select specific fields to fetch from the SystemMetric
923
+ */
924
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
925
+ /**
926
+ * Omit specific fields from the SystemMetric
927
+ */
928
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
929
+ /**
930
+ * The data needed to update a SystemMetric.
931
+ */
932
+ data: Prisma.XOR<Prisma.SystemMetricUpdateInput, Prisma.SystemMetricUncheckedUpdateInput>;
933
+ /**
934
+ * Choose, which SystemMetric to update.
935
+ */
936
+ where: Prisma.SystemMetricWhereUniqueInput;
937
+ };
938
+ /**
939
+ * SystemMetric updateMany
940
+ */
941
+ export type SystemMetricUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
942
+ /**
943
+ * The data used to update SystemMetrics.
944
+ */
945
+ data: Prisma.XOR<Prisma.SystemMetricUpdateManyMutationInput, Prisma.SystemMetricUncheckedUpdateManyInput>;
946
+ /**
947
+ * Filter which SystemMetrics to update
948
+ */
949
+ where?: Prisma.SystemMetricWhereInput;
950
+ /**
951
+ * Limit how many SystemMetrics to update.
952
+ */
953
+ limit?: number;
954
+ };
955
+ /**
956
+ * SystemMetric updateManyAndReturn
957
+ */
958
+ export type SystemMetricUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
959
+ /**
960
+ * Select specific fields to fetch from the SystemMetric
961
+ */
962
+ select?: Prisma.SystemMetricSelectUpdateManyAndReturn<ExtArgs> | null;
963
+ /**
964
+ * Omit specific fields from the SystemMetric
965
+ */
966
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
967
+ /**
968
+ * The data used to update SystemMetrics.
969
+ */
970
+ data: Prisma.XOR<Prisma.SystemMetricUpdateManyMutationInput, Prisma.SystemMetricUncheckedUpdateManyInput>;
971
+ /**
972
+ * Filter which SystemMetrics to update
973
+ */
974
+ where?: Prisma.SystemMetricWhereInput;
975
+ /**
976
+ * Limit how many SystemMetrics to update.
977
+ */
978
+ limit?: number;
979
+ };
980
+ /**
981
+ * SystemMetric upsert
982
+ */
983
+ export type SystemMetricUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
984
+ /**
985
+ * Select specific fields to fetch from the SystemMetric
986
+ */
987
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
988
+ /**
989
+ * Omit specific fields from the SystemMetric
990
+ */
991
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
992
+ /**
993
+ * The filter to search for the SystemMetric to update in case it exists.
994
+ */
995
+ where: Prisma.SystemMetricWhereUniqueInput;
996
+ /**
997
+ * In case the SystemMetric found by the `where` argument doesn't exist, create a new SystemMetric with this data.
998
+ */
999
+ create: Prisma.XOR<Prisma.SystemMetricCreateInput, Prisma.SystemMetricUncheckedCreateInput>;
1000
+ /**
1001
+ * In case the SystemMetric was found with the provided `where` argument, update it with this data.
1002
+ */
1003
+ update: Prisma.XOR<Prisma.SystemMetricUpdateInput, Prisma.SystemMetricUncheckedUpdateInput>;
1004
+ };
1005
+ /**
1006
+ * SystemMetric delete
1007
+ */
1008
+ export type SystemMetricDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1009
+ /**
1010
+ * Select specific fields to fetch from the SystemMetric
1011
+ */
1012
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
1013
+ /**
1014
+ * Omit specific fields from the SystemMetric
1015
+ */
1016
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
1017
+ /**
1018
+ * Filter which SystemMetric to delete.
1019
+ */
1020
+ where: Prisma.SystemMetricWhereUniqueInput;
1021
+ };
1022
+ /**
1023
+ * SystemMetric deleteMany
1024
+ */
1025
+ export type SystemMetricDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1026
+ /**
1027
+ * Filter which SystemMetrics to delete
1028
+ */
1029
+ where?: Prisma.SystemMetricWhereInput;
1030
+ /**
1031
+ * Limit how many SystemMetrics to delete.
1032
+ */
1033
+ limit?: number;
1034
+ };
1035
+ /**
1036
+ * SystemMetric without action
1037
+ */
1038
+ export type SystemMetricDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1039
+ /**
1040
+ * Select specific fields to fetch from the SystemMetric
1041
+ */
1042
+ select?: Prisma.SystemMetricSelect<ExtArgs> | null;
1043
+ /**
1044
+ * Omit specific fields from the SystemMetric
1045
+ */
1046
+ omit?: Prisma.SystemMetricOmit<ExtArgs> | null;
1047
+ };
1048
+ //# sourceMappingURL=SystemMetric.d.ts.map