@valentine-efagene/qshelter-common 2.0.64 → 2.0.66

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