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