@kosha-ai/server 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/config/kosha-config.d.ts +21 -0
  2. package/dist/config/kosha-config.d.ts.map +1 -1
  3. package/dist/config/kosha-config.js +31 -2
  4. package/dist/credentials/credentials.module.d.ts +3 -0
  5. package/dist/credentials/credentials.module.d.ts.map +1 -0
  6. package/dist/credentials/credentials.module.js +15 -0
  7. package/dist/credentials/credentials.service.d.ts +55 -0
  8. package/dist/credentials/credentials.service.d.ts.map +1 -0
  9. package/dist/credentials/credentials.service.js +108 -0
  10. package/dist/egress/ca.service.d.ts +36 -0
  11. package/dist/egress/ca.service.d.ts.map +1 -0
  12. package/dist/egress/ca.service.js +117 -0
  13. package/dist/egress/egress.controller.d.ts +24 -0
  14. package/dist/egress/egress.controller.d.ts.map +1 -0
  15. package/dist/egress/egress.controller.js +59 -0
  16. package/dist/egress/egress.listener.d.ts +37 -0
  17. package/dist/egress/egress.listener.d.ts.map +1 -0
  18. package/dist/egress/egress.listener.js +324 -0
  19. package/dist/egress/egress.module.d.ts +7 -0
  20. package/dist/egress/egress.module.d.ts.map +1 -0
  21. package/dist/egress/egress.module.js +23 -0
  22. package/dist/egress/grants.service.d.ts +132 -0
  23. package/dist/egress/grants.service.d.ts.map +1 -0
  24. package/dist/egress/grants.service.js +219 -0
  25. package/dist/egress/host-rules.service.d.ts +35 -0
  26. package/dist/egress/host-rules.service.d.ts.map +1 -0
  27. package/dist/egress/host-rules.service.js +48 -0
  28. package/dist/generated/prisma/browser.d.ts +5 -0
  29. package/dist/generated/prisma/browser.d.ts.map +1 -1
  30. package/dist/generated/prisma/client.d.ts +5 -0
  31. package/dist/generated/prisma/client.d.ts.map +1 -1
  32. package/dist/generated/prisma/internal/class.d.ts +11 -0
  33. package/dist/generated/prisma/internal/class.d.ts.map +1 -1
  34. package/dist/generated/prisma/internal/class.js +4 -4
  35. package/dist/generated/prisma/internal/prismaNamespace.d.ts +91 -1
  36. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -1
  37. package/dist/generated/prisma/internal/prismaNamespace.js +15 -1
  38. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +15 -0
  39. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -1
  40. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +15 -1
  41. package/dist/generated/prisma/models/EgressGrant.d.ts +1538 -0
  42. package/dist/generated/prisma/models/EgressGrant.d.ts.map +1 -0
  43. package/dist/generated/prisma/models/EgressGrant.js +1 -0
  44. package/dist/generated/prisma/models/EndUser.d.ts +127 -0
  45. package/dist/generated/prisma/models/EndUser.d.ts.map +1 -1
  46. package/dist/generated/prisma/models/Organization.d.ts +147 -0
  47. package/dist/generated/prisma/models/Organization.d.ts.map +1 -1
  48. package/dist/generated/prisma/models.d.ts +1 -0
  49. package/dist/generated/prisma/models.d.ts.map +1 -1
  50. package/dist/index.d.ts +6 -1
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +6 -1
  53. package/dist/kosha.module.d.ts.map +1 -1
  54. package/dist/kosha.module.js +4 -0
  55. package/dist/proxy/proxy.module.d.ts.map +1 -1
  56. package/dist/proxy/proxy.module.js +2 -3
  57. package/dist/proxy/proxy.service.d.ts +3 -19
  58. package/dist/proxy/proxy.service.d.ts.map +1 -1
  59. package/dist/proxy/proxy.service.js +9 -89
  60. package/package.json +6 -4
  61. package/prisma/migrations/20260921000000_add_egress_grant/migration.sql +31 -0
  62. package/prisma/schema.prisma +30 -0
@@ -0,0 +1,1538 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model EgressGrant
5
+ *
6
+ */
7
+ export type EgressGrantModel = runtime.Types.Result.DefaultSelection<Prisma.$EgressGrantPayload>;
8
+ export type AggregateEgressGrant = {
9
+ _count: EgressGrantCountAggregateOutputType | null;
10
+ _min: EgressGrantMinAggregateOutputType | null;
11
+ _max: EgressGrantMaxAggregateOutputType | null;
12
+ };
13
+ export type EgressGrantMinAggregateOutputType = {
14
+ id: string | null;
15
+ organizationId: string | null;
16
+ endUserId: string | null;
17
+ tokenHash: string | null;
18
+ caPem: string | null;
19
+ caKey: string | null;
20
+ label: string | null;
21
+ expiresAt: Date | null;
22
+ revokedAt: Date | null;
23
+ createdAt: Date | null;
24
+ };
25
+ export type EgressGrantMaxAggregateOutputType = {
26
+ id: string | null;
27
+ organizationId: string | null;
28
+ endUserId: string | null;
29
+ tokenHash: string | null;
30
+ caPem: string | null;
31
+ caKey: string | null;
32
+ label: string | null;
33
+ expiresAt: Date | null;
34
+ revokedAt: Date | null;
35
+ createdAt: Date | null;
36
+ };
37
+ export type EgressGrantCountAggregateOutputType = {
38
+ id: number;
39
+ organizationId: number;
40
+ endUserId: number;
41
+ tokenHash: number;
42
+ providerKeys: number;
43
+ caPem: number;
44
+ caKey: number;
45
+ label: number;
46
+ expiresAt: number;
47
+ revokedAt: number;
48
+ createdAt: number;
49
+ _all: number;
50
+ };
51
+ export type EgressGrantMinAggregateInputType = {
52
+ id?: true;
53
+ organizationId?: true;
54
+ endUserId?: true;
55
+ tokenHash?: true;
56
+ caPem?: true;
57
+ caKey?: true;
58
+ label?: true;
59
+ expiresAt?: true;
60
+ revokedAt?: true;
61
+ createdAt?: true;
62
+ };
63
+ export type EgressGrantMaxAggregateInputType = {
64
+ id?: true;
65
+ organizationId?: true;
66
+ endUserId?: true;
67
+ tokenHash?: true;
68
+ caPem?: true;
69
+ caKey?: true;
70
+ label?: true;
71
+ expiresAt?: true;
72
+ revokedAt?: true;
73
+ createdAt?: true;
74
+ };
75
+ export type EgressGrantCountAggregateInputType = {
76
+ id?: true;
77
+ organizationId?: true;
78
+ endUserId?: true;
79
+ tokenHash?: true;
80
+ providerKeys?: true;
81
+ caPem?: true;
82
+ caKey?: true;
83
+ label?: true;
84
+ expiresAt?: true;
85
+ revokedAt?: true;
86
+ createdAt?: true;
87
+ _all?: true;
88
+ };
89
+ export type EgressGrantAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
90
+ /**
91
+ * Filter which EgressGrant to aggregate.
92
+ */
93
+ where?: Prisma.EgressGrantWhereInput;
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
96
+ *
97
+ * Determine the order of EgressGrants to fetch.
98
+ */
99
+ orderBy?: Prisma.EgressGrantOrderByWithRelationInput | Prisma.EgressGrantOrderByWithRelationInput[];
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
102
+ *
103
+ * Sets the start position
104
+ */
105
+ cursor?: Prisma.EgressGrantWhereUniqueInput;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
108
+ *
109
+ * Take `±n` EgressGrants from the position of the cursor.
110
+ */
111
+ take?: number;
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
114
+ *
115
+ * Skip the first `n` EgressGrants.
116
+ */
117
+ skip?: number;
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
120
+ *
121
+ * Count returned EgressGrants
122
+ **/
123
+ _count?: true | EgressGrantCountAggregateInputType;
124
+ /**
125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
126
+ *
127
+ * Select which fields to find the minimum value
128
+ **/
129
+ _min?: EgressGrantMinAggregateInputType;
130
+ /**
131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
132
+ *
133
+ * Select which fields to find the maximum value
134
+ **/
135
+ _max?: EgressGrantMaxAggregateInputType;
136
+ };
137
+ export type GetEgressGrantAggregateType<T extends EgressGrantAggregateArgs> = {
138
+ [P in keyof T & keyof AggregateEgressGrant]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateEgressGrant[P]> : Prisma.GetScalarType<T[P], AggregateEgressGrant[P]>;
139
+ };
140
+ export type EgressGrantGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
141
+ where?: Prisma.EgressGrantWhereInput;
142
+ orderBy?: Prisma.EgressGrantOrderByWithAggregationInput | Prisma.EgressGrantOrderByWithAggregationInput[];
143
+ by: Prisma.EgressGrantScalarFieldEnum[] | Prisma.EgressGrantScalarFieldEnum;
144
+ having?: Prisma.EgressGrantScalarWhereWithAggregatesInput;
145
+ take?: number;
146
+ skip?: number;
147
+ _count?: EgressGrantCountAggregateInputType | true;
148
+ _min?: EgressGrantMinAggregateInputType;
149
+ _max?: EgressGrantMaxAggregateInputType;
150
+ };
151
+ export type EgressGrantGroupByOutputType = {
152
+ id: string;
153
+ organizationId: string;
154
+ endUserId: string;
155
+ tokenHash: string;
156
+ providerKeys: string[];
157
+ caPem: string;
158
+ caKey: string;
159
+ label: string | null;
160
+ expiresAt: Date;
161
+ revokedAt: Date | null;
162
+ createdAt: Date;
163
+ _count: EgressGrantCountAggregateOutputType | null;
164
+ _min: EgressGrantMinAggregateOutputType | null;
165
+ _max: EgressGrantMaxAggregateOutputType | null;
166
+ };
167
+ export type GetEgressGrantGroupByPayload<T extends EgressGrantGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<EgressGrantGroupByOutputType, T['by']> & {
168
+ [P in ((keyof T) & (keyof EgressGrantGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], EgressGrantGroupByOutputType[P]> : Prisma.GetScalarType<T[P], EgressGrantGroupByOutputType[P]>;
169
+ }>>;
170
+ export type EgressGrantWhereInput = {
171
+ AND?: Prisma.EgressGrantWhereInput | Prisma.EgressGrantWhereInput[];
172
+ OR?: Prisma.EgressGrantWhereInput[];
173
+ NOT?: Prisma.EgressGrantWhereInput | Prisma.EgressGrantWhereInput[];
174
+ id?: Prisma.StringFilter<"EgressGrant"> | string;
175
+ organizationId?: Prisma.StringFilter<"EgressGrant"> | string;
176
+ endUserId?: Prisma.StringFilter<"EgressGrant"> | string;
177
+ tokenHash?: Prisma.StringFilter<"EgressGrant"> | string;
178
+ providerKeys?: Prisma.StringNullableListFilter<"EgressGrant">;
179
+ caPem?: Prisma.StringFilter<"EgressGrant"> | string;
180
+ caKey?: Prisma.StringFilter<"EgressGrant"> | string;
181
+ label?: Prisma.StringNullableFilter<"EgressGrant"> | string | null;
182
+ expiresAt?: Prisma.DateTimeFilter<"EgressGrant"> | Date | string;
183
+ revokedAt?: Prisma.DateTimeNullableFilter<"EgressGrant"> | Date | string | null;
184
+ createdAt?: Prisma.DateTimeFilter<"EgressGrant"> | Date | string;
185
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
186
+ endUser?: Prisma.XOR<Prisma.EndUserScalarRelationFilter, Prisma.EndUserWhereInput>;
187
+ };
188
+ export type EgressGrantOrderByWithRelationInput = {
189
+ id?: Prisma.SortOrder;
190
+ organizationId?: Prisma.SortOrder;
191
+ endUserId?: Prisma.SortOrder;
192
+ tokenHash?: Prisma.SortOrder;
193
+ providerKeys?: Prisma.SortOrder;
194
+ caPem?: Prisma.SortOrder;
195
+ caKey?: Prisma.SortOrder;
196
+ label?: Prisma.SortOrderInput | Prisma.SortOrder;
197
+ expiresAt?: Prisma.SortOrder;
198
+ revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
199
+ createdAt?: Prisma.SortOrder;
200
+ organization?: Prisma.OrganizationOrderByWithRelationInput;
201
+ endUser?: Prisma.EndUserOrderByWithRelationInput;
202
+ };
203
+ export type EgressGrantWhereUniqueInput = Prisma.AtLeast<{
204
+ id?: string;
205
+ AND?: Prisma.EgressGrantWhereInput | Prisma.EgressGrantWhereInput[];
206
+ OR?: Prisma.EgressGrantWhereInput[];
207
+ NOT?: Prisma.EgressGrantWhereInput | Prisma.EgressGrantWhereInput[];
208
+ organizationId?: Prisma.StringFilter<"EgressGrant"> | string;
209
+ endUserId?: Prisma.StringFilter<"EgressGrant"> | string;
210
+ tokenHash?: Prisma.StringFilter<"EgressGrant"> | string;
211
+ providerKeys?: Prisma.StringNullableListFilter<"EgressGrant">;
212
+ caPem?: Prisma.StringFilter<"EgressGrant"> | string;
213
+ caKey?: Prisma.StringFilter<"EgressGrant"> | string;
214
+ label?: Prisma.StringNullableFilter<"EgressGrant"> | string | null;
215
+ expiresAt?: Prisma.DateTimeFilter<"EgressGrant"> | Date | string;
216
+ revokedAt?: Prisma.DateTimeNullableFilter<"EgressGrant"> | Date | string | null;
217
+ createdAt?: Prisma.DateTimeFilter<"EgressGrant"> | Date | string;
218
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
219
+ endUser?: Prisma.XOR<Prisma.EndUserScalarRelationFilter, Prisma.EndUserWhereInput>;
220
+ }, "id">;
221
+ export type EgressGrantOrderByWithAggregationInput = {
222
+ id?: Prisma.SortOrder;
223
+ organizationId?: Prisma.SortOrder;
224
+ endUserId?: Prisma.SortOrder;
225
+ tokenHash?: Prisma.SortOrder;
226
+ providerKeys?: Prisma.SortOrder;
227
+ caPem?: Prisma.SortOrder;
228
+ caKey?: Prisma.SortOrder;
229
+ label?: Prisma.SortOrderInput | Prisma.SortOrder;
230
+ expiresAt?: Prisma.SortOrder;
231
+ revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
232
+ createdAt?: Prisma.SortOrder;
233
+ _count?: Prisma.EgressGrantCountOrderByAggregateInput;
234
+ _max?: Prisma.EgressGrantMaxOrderByAggregateInput;
235
+ _min?: Prisma.EgressGrantMinOrderByAggregateInput;
236
+ };
237
+ export type EgressGrantScalarWhereWithAggregatesInput = {
238
+ AND?: Prisma.EgressGrantScalarWhereWithAggregatesInput | Prisma.EgressGrantScalarWhereWithAggregatesInput[];
239
+ OR?: Prisma.EgressGrantScalarWhereWithAggregatesInput[];
240
+ NOT?: Prisma.EgressGrantScalarWhereWithAggregatesInput | Prisma.EgressGrantScalarWhereWithAggregatesInput[];
241
+ id?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
242
+ organizationId?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
243
+ endUserId?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
244
+ tokenHash?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
245
+ providerKeys?: Prisma.StringNullableListFilter<"EgressGrant">;
246
+ caPem?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
247
+ caKey?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
248
+ label?: Prisma.StringNullableWithAggregatesFilter<"EgressGrant"> | string | null;
249
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"EgressGrant"> | Date | string;
250
+ revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EgressGrant"> | Date | string | null;
251
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"EgressGrant"> | Date | string;
252
+ };
253
+ export type EgressGrantCreateInput = {
254
+ id?: string;
255
+ tokenHash: string;
256
+ providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
257
+ caPem: string;
258
+ caKey: string;
259
+ label?: string | null;
260
+ expiresAt: Date | string;
261
+ revokedAt?: Date | string | null;
262
+ createdAt?: Date | string;
263
+ organization: Prisma.OrganizationCreateNestedOneWithoutEgressGrantsInput;
264
+ endUser: Prisma.EndUserCreateNestedOneWithoutEgressGrantsInput;
265
+ };
266
+ export type EgressGrantUncheckedCreateInput = {
267
+ id?: string;
268
+ organizationId: string;
269
+ endUserId: string;
270
+ tokenHash: string;
271
+ providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
272
+ caPem: string;
273
+ caKey: string;
274
+ label?: string | null;
275
+ expiresAt: Date | string;
276
+ revokedAt?: Date | string | null;
277
+ createdAt?: Date | string;
278
+ };
279
+ export type EgressGrantUpdateInput = {
280
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
281
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
282
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
283
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
284
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
285
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
286
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
287
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
288
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
289
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutEgressGrantsNestedInput;
290
+ endUser?: Prisma.EndUserUpdateOneRequiredWithoutEgressGrantsNestedInput;
291
+ };
292
+ export type EgressGrantUncheckedUpdateInput = {
293
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
294
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
295
+ endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
297
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
298
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
300
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
301
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
302
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
303
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
304
+ };
305
+ export type EgressGrantCreateManyInput = {
306
+ id?: string;
307
+ organizationId: string;
308
+ endUserId: string;
309
+ tokenHash: string;
310
+ providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
311
+ caPem: string;
312
+ caKey: string;
313
+ label?: string | null;
314
+ expiresAt: Date | string;
315
+ revokedAt?: Date | string | null;
316
+ createdAt?: Date | string;
317
+ };
318
+ export type EgressGrantUpdateManyMutationInput = {
319
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
320
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
321
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
322
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
323
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
325
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
326
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
327
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
328
+ };
329
+ export type EgressGrantUncheckedUpdateManyInput = {
330
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
331
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
332
+ endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
333
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
334
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
335
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
336
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
338
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
339
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
340
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
341
+ };
342
+ export type EgressGrantListRelationFilter = {
343
+ every?: Prisma.EgressGrantWhereInput;
344
+ some?: Prisma.EgressGrantWhereInput;
345
+ none?: Prisma.EgressGrantWhereInput;
346
+ };
347
+ export type EgressGrantOrderByRelationAggregateInput = {
348
+ _count?: Prisma.SortOrder;
349
+ };
350
+ export type EgressGrantCountOrderByAggregateInput = {
351
+ id?: Prisma.SortOrder;
352
+ organizationId?: Prisma.SortOrder;
353
+ endUserId?: Prisma.SortOrder;
354
+ tokenHash?: Prisma.SortOrder;
355
+ providerKeys?: Prisma.SortOrder;
356
+ caPem?: Prisma.SortOrder;
357
+ caKey?: Prisma.SortOrder;
358
+ label?: Prisma.SortOrder;
359
+ expiresAt?: Prisma.SortOrder;
360
+ revokedAt?: Prisma.SortOrder;
361
+ createdAt?: Prisma.SortOrder;
362
+ };
363
+ export type EgressGrantMaxOrderByAggregateInput = {
364
+ id?: Prisma.SortOrder;
365
+ organizationId?: Prisma.SortOrder;
366
+ endUserId?: Prisma.SortOrder;
367
+ tokenHash?: Prisma.SortOrder;
368
+ caPem?: Prisma.SortOrder;
369
+ caKey?: Prisma.SortOrder;
370
+ label?: Prisma.SortOrder;
371
+ expiresAt?: Prisma.SortOrder;
372
+ revokedAt?: Prisma.SortOrder;
373
+ createdAt?: Prisma.SortOrder;
374
+ };
375
+ export type EgressGrantMinOrderByAggregateInput = {
376
+ id?: Prisma.SortOrder;
377
+ organizationId?: Prisma.SortOrder;
378
+ endUserId?: Prisma.SortOrder;
379
+ tokenHash?: Prisma.SortOrder;
380
+ caPem?: Prisma.SortOrder;
381
+ caKey?: Prisma.SortOrder;
382
+ label?: Prisma.SortOrder;
383
+ expiresAt?: Prisma.SortOrder;
384
+ revokedAt?: Prisma.SortOrder;
385
+ createdAt?: Prisma.SortOrder;
386
+ };
387
+ export type EgressGrantCreateNestedManyWithoutOrganizationInput = {
388
+ create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutOrganizationInput, Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput> | Prisma.EgressGrantCreateWithoutOrganizationInput[] | Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput[];
389
+ connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput | Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput[];
390
+ createMany?: Prisma.EgressGrantCreateManyOrganizationInputEnvelope;
391
+ connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
392
+ };
393
+ export type EgressGrantUncheckedCreateNestedManyWithoutOrganizationInput = {
394
+ create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutOrganizationInput, Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput> | Prisma.EgressGrantCreateWithoutOrganizationInput[] | Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput[];
395
+ connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput | Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput[];
396
+ createMany?: Prisma.EgressGrantCreateManyOrganizationInputEnvelope;
397
+ connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
398
+ };
399
+ export type EgressGrantUpdateManyWithoutOrganizationNestedInput = {
400
+ create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutOrganizationInput, Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput> | Prisma.EgressGrantCreateWithoutOrganizationInput[] | Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput[];
401
+ connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput | Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput[];
402
+ upsert?: Prisma.EgressGrantUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.EgressGrantUpsertWithWhereUniqueWithoutOrganizationInput[];
403
+ createMany?: Prisma.EgressGrantCreateManyOrganizationInputEnvelope;
404
+ set?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
405
+ disconnect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
406
+ delete?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
407
+ connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
408
+ update?: Prisma.EgressGrantUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.EgressGrantUpdateWithWhereUniqueWithoutOrganizationInput[];
409
+ updateMany?: Prisma.EgressGrantUpdateManyWithWhereWithoutOrganizationInput | Prisma.EgressGrantUpdateManyWithWhereWithoutOrganizationInput[];
410
+ deleteMany?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
411
+ };
412
+ export type EgressGrantUncheckedUpdateManyWithoutOrganizationNestedInput = {
413
+ create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutOrganizationInput, Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput> | Prisma.EgressGrantCreateWithoutOrganizationInput[] | Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput[];
414
+ connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput | Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput[];
415
+ upsert?: Prisma.EgressGrantUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.EgressGrantUpsertWithWhereUniqueWithoutOrganizationInput[];
416
+ createMany?: Prisma.EgressGrantCreateManyOrganizationInputEnvelope;
417
+ set?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
418
+ disconnect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
419
+ delete?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
420
+ connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
421
+ update?: Prisma.EgressGrantUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.EgressGrantUpdateWithWhereUniqueWithoutOrganizationInput[];
422
+ updateMany?: Prisma.EgressGrantUpdateManyWithWhereWithoutOrganizationInput | Prisma.EgressGrantUpdateManyWithWhereWithoutOrganizationInput[];
423
+ deleteMany?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
424
+ };
425
+ export type EgressGrantCreateNestedManyWithoutEndUserInput = {
426
+ create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput> | Prisma.EgressGrantCreateWithoutEndUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutEndUserInput[];
427
+ connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutEndUserInput | Prisma.EgressGrantCreateOrConnectWithoutEndUserInput[];
428
+ createMany?: Prisma.EgressGrantCreateManyEndUserInputEnvelope;
429
+ connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
430
+ };
431
+ export type EgressGrantUncheckedCreateNestedManyWithoutEndUserInput = {
432
+ create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput> | Prisma.EgressGrantCreateWithoutEndUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutEndUserInput[];
433
+ connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutEndUserInput | Prisma.EgressGrantCreateOrConnectWithoutEndUserInput[];
434
+ createMany?: Prisma.EgressGrantCreateManyEndUserInputEnvelope;
435
+ connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
436
+ };
437
+ export type EgressGrantUpdateManyWithoutEndUserNestedInput = {
438
+ create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput> | Prisma.EgressGrantCreateWithoutEndUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutEndUserInput[];
439
+ connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutEndUserInput | Prisma.EgressGrantCreateOrConnectWithoutEndUserInput[];
440
+ upsert?: Prisma.EgressGrantUpsertWithWhereUniqueWithoutEndUserInput | Prisma.EgressGrantUpsertWithWhereUniqueWithoutEndUserInput[];
441
+ createMany?: Prisma.EgressGrantCreateManyEndUserInputEnvelope;
442
+ set?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
443
+ disconnect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
444
+ delete?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
445
+ connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
446
+ update?: Prisma.EgressGrantUpdateWithWhereUniqueWithoutEndUserInput | Prisma.EgressGrantUpdateWithWhereUniqueWithoutEndUserInput[];
447
+ updateMany?: Prisma.EgressGrantUpdateManyWithWhereWithoutEndUserInput | Prisma.EgressGrantUpdateManyWithWhereWithoutEndUserInput[];
448
+ deleteMany?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
449
+ };
450
+ export type EgressGrantUncheckedUpdateManyWithoutEndUserNestedInput = {
451
+ create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput> | Prisma.EgressGrantCreateWithoutEndUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutEndUserInput[];
452
+ connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutEndUserInput | Prisma.EgressGrantCreateOrConnectWithoutEndUserInput[];
453
+ upsert?: Prisma.EgressGrantUpsertWithWhereUniqueWithoutEndUserInput | Prisma.EgressGrantUpsertWithWhereUniqueWithoutEndUserInput[];
454
+ createMany?: Prisma.EgressGrantCreateManyEndUserInputEnvelope;
455
+ set?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
456
+ disconnect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
457
+ delete?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
458
+ connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
459
+ update?: Prisma.EgressGrantUpdateWithWhereUniqueWithoutEndUserInput | Prisma.EgressGrantUpdateWithWhereUniqueWithoutEndUserInput[];
460
+ updateMany?: Prisma.EgressGrantUpdateManyWithWhereWithoutEndUserInput | Prisma.EgressGrantUpdateManyWithWhereWithoutEndUserInput[];
461
+ deleteMany?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
462
+ };
463
+ export type EgressGrantCreateproviderKeysInput = {
464
+ set: string[];
465
+ };
466
+ export type EgressGrantUpdateproviderKeysInput = {
467
+ set?: string[];
468
+ push?: string | string[];
469
+ };
470
+ export type EgressGrantCreateWithoutOrganizationInput = {
471
+ id?: string;
472
+ tokenHash: string;
473
+ providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
474
+ caPem: string;
475
+ caKey: string;
476
+ label?: string | null;
477
+ expiresAt: Date | string;
478
+ revokedAt?: Date | string | null;
479
+ createdAt?: Date | string;
480
+ endUser: Prisma.EndUserCreateNestedOneWithoutEgressGrantsInput;
481
+ };
482
+ export type EgressGrantUncheckedCreateWithoutOrganizationInput = {
483
+ id?: string;
484
+ endUserId: string;
485
+ tokenHash: string;
486
+ providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
487
+ caPem: string;
488
+ caKey: string;
489
+ label?: string | null;
490
+ expiresAt: Date | string;
491
+ revokedAt?: Date | string | null;
492
+ createdAt?: Date | string;
493
+ };
494
+ export type EgressGrantCreateOrConnectWithoutOrganizationInput = {
495
+ where: Prisma.EgressGrantWhereUniqueInput;
496
+ create: Prisma.XOR<Prisma.EgressGrantCreateWithoutOrganizationInput, Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput>;
497
+ };
498
+ export type EgressGrantCreateManyOrganizationInputEnvelope = {
499
+ data: Prisma.EgressGrantCreateManyOrganizationInput | Prisma.EgressGrantCreateManyOrganizationInput[];
500
+ skipDuplicates?: boolean;
501
+ };
502
+ export type EgressGrantUpsertWithWhereUniqueWithoutOrganizationInput = {
503
+ where: Prisma.EgressGrantWhereUniqueInput;
504
+ update: Prisma.XOR<Prisma.EgressGrantUpdateWithoutOrganizationInput, Prisma.EgressGrantUncheckedUpdateWithoutOrganizationInput>;
505
+ create: Prisma.XOR<Prisma.EgressGrantCreateWithoutOrganizationInput, Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput>;
506
+ };
507
+ export type EgressGrantUpdateWithWhereUniqueWithoutOrganizationInput = {
508
+ where: Prisma.EgressGrantWhereUniqueInput;
509
+ data: Prisma.XOR<Prisma.EgressGrantUpdateWithoutOrganizationInput, Prisma.EgressGrantUncheckedUpdateWithoutOrganizationInput>;
510
+ };
511
+ export type EgressGrantUpdateManyWithWhereWithoutOrganizationInput = {
512
+ where: Prisma.EgressGrantScalarWhereInput;
513
+ data: Prisma.XOR<Prisma.EgressGrantUpdateManyMutationInput, Prisma.EgressGrantUncheckedUpdateManyWithoutOrganizationInput>;
514
+ };
515
+ export type EgressGrantScalarWhereInput = {
516
+ AND?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
517
+ OR?: Prisma.EgressGrantScalarWhereInput[];
518
+ NOT?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
519
+ id?: Prisma.StringFilter<"EgressGrant"> | string;
520
+ organizationId?: Prisma.StringFilter<"EgressGrant"> | string;
521
+ endUserId?: Prisma.StringFilter<"EgressGrant"> | string;
522
+ tokenHash?: Prisma.StringFilter<"EgressGrant"> | string;
523
+ providerKeys?: Prisma.StringNullableListFilter<"EgressGrant">;
524
+ caPem?: Prisma.StringFilter<"EgressGrant"> | string;
525
+ caKey?: Prisma.StringFilter<"EgressGrant"> | string;
526
+ label?: Prisma.StringNullableFilter<"EgressGrant"> | string | null;
527
+ expiresAt?: Prisma.DateTimeFilter<"EgressGrant"> | Date | string;
528
+ revokedAt?: Prisma.DateTimeNullableFilter<"EgressGrant"> | Date | string | null;
529
+ createdAt?: Prisma.DateTimeFilter<"EgressGrant"> | Date | string;
530
+ };
531
+ export type EgressGrantCreateWithoutEndUserInput = {
532
+ id?: string;
533
+ tokenHash: string;
534
+ providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
535
+ caPem: string;
536
+ caKey: string;
537
+ label?: string | null;
538
+ expiresAt: Date | string;
539
+ revokedAt?: Date | string | null;
540
+ createdAt?: Date | string;
541
+ organization: Prisma.OrganizationCreateNestedOneWithoutEgressGrantsInput;
542
+ };
543
+ export type EgressGrantUncheckedCreateWithoutEndUserInput = {
544
+ id?: string;
545
+ organizationId: string;
546
+ tokenHash: string;
547
+ providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
548
+ caPem: string;
549
+ caKey: string;
550
+ label?: string | null;
551
+ expiresAt: Date | string;
552
+ revokedAt?: Date | string | null;
553
+ createdAt?: Date | string;
554
+ };
555
+ export type EgressGrantCreateOrConnectWithoutEndUserInput = {
556
+ where: Prisma.EgressGrantWhereUniqueInput;
557
+ create: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput>;
558
+ };
559
+ export type EgressGrantCreateManyEndUserInputEnvelope = {
560
+ data: Prisma.EgressGrantCreateManyEndUserInput | Prisma.EgressGrantCreateManyEndUserInput[];
561
+ skipDuplicates?: boolean;
562
+ };
563
+ export type EgressGrantUpsertWithWhereUniqueWithoutEndUserInput = {
564
+ where: Prisma.EgressGrantWhereUniqueInput;
565
+ update: Prisma.XOR<Prisma.EgressGrantUpdateWithoutEndUserInput, Prisma.EgressGrantUncheckedUpdateWithoutEndUserInput>;
566
+ create: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput>;
567
+ };
568
+ export type EgressGrantUpdateWithWhereUniqueWithoutEndUserInput = {
569
+ where: Prisma.EgressGrantWhereUniqueInput;
570
+ data: Prisma.XOR<Prisma.EgressGrantUpdateWithoutEndUserInput, Prisma.EgressGrantUncheckedUpdateWithoutEndUserInput>;
571
+ };
572
+ export type EgressGrantUpdateManyWithWhereWithoutEndUserInput = {
573
+ where: Prisma.EgressGrantScalarWhereInput;
574
+ data: Prisma.XOR<Prisma.EgressGrantUpdateManyMutationInput, Prisma.EgressGrantUncheckedUpdateManyWithoutEndUserInput>;
575
+ };
576
+ export type EgressGrantCreateManyOrganizationInput = {
577
+ id?: string;
578
+ endUserId: string;
579
+ tokenHash: string;
580
+ providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
581
+ caPem: string;
582
+ caKey: string;
583
+ label?: string | null;
584
+ expiresAt: Date | string;
585
+ revokedAt?: Date | string | null;
586
+ createdAt?: Date | string;
587
+ };
588
+ export type EgressGrantUpdateWithoutOrganizationInput = {
589
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
590
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
591
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
592
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
593
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
594
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
595
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
596
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
597
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
598
+ endUser?: Prisma.EndUserUpdateOneRequiredWithoutEgressGrantsNestedInput;
599
+ };
600
+ export type EgressGrantUncheckedUpdateWithoutOrganizationInput = {
601
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
602
+ endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
603
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
604
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
605
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
606
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
607
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
608
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
609
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
610
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
611
+ };
612
+ export type EgressGrantUncheckedUpdateManyWithoutOrganizationInput = {
613
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
614
+ endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
615
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
616
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
617
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
618
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
619
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
620
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
621
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
622
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
623
+ };
624
+ export type EgressGrantCreateManyEndUserInput = {
625
+ id?: string;
626
+ organizationId: string;
627
+ tokenHash: string;
628
+ providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
629
+ caPem: string;
630
+ caKey: string;
631
+ label?: string | null;
632
+ expiresAt: Date | string;
633
+ revokedAt?: Date | string | null;
634
+ createdAt?: Date | string;
635
+ };
636
+ export type EgressGrantUpdateWithoutEndUserInput = {
637
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
638
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
639
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
640
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
641
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
642
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
643
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
644
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
645
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
646
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutEgressGrantsNestedInput;
647
+ };
648
+ export type EgressGrantUncheckedUpdateWithoutEndUserInput = {
649
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
650
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
651
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
652
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
653
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
654
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
655
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
656
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
657
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
658
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
659
+ };
660
+ export type EgressGrantUncheckedUpdateManyWithoutEndUserInput = {
661
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
662
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
663
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
664
+ providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
665
+ caPem?: Prisma.StringFieldUpdateOperationsInput | string;
666
+ caKey?: Prisma.StringFieldUpdateOperationsInput | string;
667
+ label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
668
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
669
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
670
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
671
+ };
672
+ export type EgressGrantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
673
+ id?: boolean;
674
+ organizationId?: boolean;
675
+ endUserId?: boolean;
676
+ tokenHash?: boolean;
677
+ providerKeys?: boolean;
678
+ caPem?: boolean;
679
+ caKey?: boolean;
680
+ label?: boolean;
681
+ expiresAt?: boolean;
682
+ revokedAt?: boolean;
683
+ createdAt?: boolean;
684
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
685
+ endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
686
+ }, ExtArgs["result"]["egressGrant"]>;
687
+ export type EgressGrantSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
688
+ id?: boolean;
689
+ organizationId?: boolean;
690
+ endUserId?: boolean;
691
+ tokenHash?: boolean;
692
+ providerKeys?: boolean;
693
+ caPem?: boolean;
694
+ caKey?: boolean;
695
+ label?: boolean;
696
+ expiresAt?: boolean;
697
+ revokedAt?: boolean;
698
+ createdAt?: boolean;
699
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
700
+ endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
701
+ }, ExtArgs["result"]["egressGrant"]>;
702
+ export type EgressGrantSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
703
+ id?: boolean;
704
+ organizationId?: boolean;
705
+ endUserId?: boolean;
706
+ tokenHash?: boolean;
707
+ providerKeys?: boolean;
708
+ caPem?: boolean;
709
+ caKey?: boolean;
710
+ label?: boolean;
711
+ expiresAt?: boolean;
712
+ revokedAt?: boolean;
713
+ createdAt?: boolean;
714
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
715
+ endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
716
+ }, ExtArgs["result"]["egressGrant"]>;
717
+ export type EgressGrantSelectScalar = {
718
+ id?: boolean;
719
+ organizationId?: boolean;
720
+ endUserId?: boolean;
721
+ tokenHash?: boolean;
722
+ providerKeys?: boolean;
723
+ caPem?: boolean;
724
+ caKey?: boolean;
725
+ label?: boolean;
726
+ expiresAt?: boolean;
727
+ revokedAt?: boolean;
728
+ createdAt?: boolean;
729
+ };
730
+ export type EgressGrantOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "endUserId" | "tokenHash" | "providerKeys" | "caPem" | "caKey" | "label" | "expiresAt" | "revokedAt" | "createdAt", ExtArgs["result"]["egressGrant"]>;
731
+ export type EgressGrantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
732
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
733
+ endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
734
+ };
735
+ export type EgressGrantIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
736
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
737
+ endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
738
+ };
739
+ export type EgressGrantIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
740
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
741
+ endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
742
+ };
743
+ export type $EgressGrantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
744
+ name: "EgressGrant";
745
+ objects: {
746
+ organization: Prisma.$OrganizationPayload<ExtArgs>;
747
+ endUser: Prisma.$EndUserPayload<ExtArgs>;
748
+ };
749
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
750
+ id: string;
751
+ organizationId: string;
752
+ endUserId: string;
753
+ /**
754
+ * Unsalted SHA-256. The token is 32 random bytes, so there is nothing to
755
+ * brute-force and a salt would only stop the lookup being an index scan.
756
+ */
757
+ tokenHash: string;
758
+ /**
759
+ * Which providers this grant may borrow. Empty means all the end user has.
760
+ */
761
+ providerKeys: string[];
762
+ caPem: string;
763
+ /**
764
+ * AES-256-GCM ciphertext, like every other secret at rest here.
765
+ */
766
+ caKey: string;
767
+ label: string | null;
768
+ expiresAt: Date;
769
+ revokedAt: Date | null;
770
+ createdAt: Date;
771
+ }, ExtArgs["result"]["egressGrant"]>;
772
+ composites: {};
773
+ };
774
+ export type EgressGrantGetPayload<S extends boolean | null | undefined | EgressGrantDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload, S>;
775
+ export type EgressGrantCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<EgressGrantFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
776
+ select?: EgressGrantCountAggregateInputType | true;
777
+ };
778
+ export interface EgressGrantDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
779
+ [K: symbol]: {
780
+ types: Prisma.TypeMap<ExtArgs>['model']['EgressGrant'];
781
+ meta: {
782
+ name: 'EgressGrant';
783
+ };
784
+ };
785
+ /**
786
+ * Find zero or one EgressGrant that matches the filter.
787
+ * @param {EgressGrantFindUniqueArgs} args - Arguments to find a EgressGrant
788
+ * @example
789
+ * // Get one EgressGrant
790
+ * const egressGrant = await prisma.egressGrant.findUnique({
791
+ * where: {
792
+ * // ... provide filter here
793
+ * }
794
+ * })
795
+ */
796
+ findUnique<T extends EgressGrantFindUniqueArgs>(args: Prisma.SelectSubset<T, EgressGrantFindUniqueArgs<ExtArgs>>): Prisma.Prisma__EgressGrantClient<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
797
+ /**
798
+ * Find one EgressGrant that matches the filter or throw an error with `error.code='P2025'`
799
+ * if no matches were found.
800
+ * @param {EgressGrantFindUniqueOrThrowArgs} args - Arguments to find a EgressGrant
801
+ * @example
802
+ * // Get one EgressGrant
803
+ * const egressGrant = await prisma.egressGrant.findUniqueOrThrow({
804
+ * where: {
805
+ * // ... provide filter here
806
+ * }
807
+ * })
808
+ */
809
+ findUniqueOrThrow<T extends EgressGrantFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, EgressGrantFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__EgressGrantClient<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
810
+ /**
811
+ * Find the first EgressGrant that matches the filter.
812
+ * Note, that providing `undefined` is treated as the value not being there.
813
+ * Read more here: https://pris.ly/d/null-undefined
814
+ * @param {EgressGrantFindFirstArgs} args - Arguments to find a EgressGrant
815
+ * @example
816
+ * // Get one EgressGrant
817
+ * const egressGrant = await prisma.egressGrant.findFirst({
818
+ * where: {
819
+ * // ... provide filter here
820
+ * }
821
+ * })
822
+ */
823
+ findFirst<T extends EgressGrantFindFirstArgs>(args?: Prisma.SelectSubset<T, EgressGrantFindFirstArgs<ExtArgs>>): Prisma.Prisma__EgressGrantClient<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
824
+ /**
825
+ * Find the first EgressGrant that matches the filter or
826
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
827
+ * Note, that providing `undefined` is treated as the value not being there.
828
+ * Read more here: https://pris.ly/d/null-undefined
829
+ * @param {EgressGrantFindFirstOrThrowArgs} args - Arguments to find a EgressGrant
830
+ * @example
831
+ * // Get one EgressGrant
832
+ * const egressGrant = await prisma.egressGrant.findFirstOrThrow({
833
+ * where: {
834
+ * // ... provide filter here
835
+ * }
836
+ * })
837
+ */
838
+ findFirstOrThrow<T extends EgressGrantFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, EgressGrantFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__EgressGrantClient<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
839
+ /**
840
+ * Find zero or more EgressGrants that matches the filter.
841
+ * Note, that providing `undefined` is treated as the value not being there.
842
+ * Read more here: https://pris.ly/d/null-undefined
843
+ * @param {EgressGrantFindManyArgs} args - Arguments to filter and select certain fields only.
844
+ * @example
845
+ * // Get all EgressGrants
846
+ * const egressGrants = await prisma.egressGrant.findMany()
847
+ *
848
+ * // Get first 10 EgressGrants
849
+ * const egressGrants = await prisma.egressGrant.findMany({ take: 10 })
850
+ *
851
+ * // Only select the `id`
852
+ * const egressGrantWithIdOnly = await prisma.egressGrant.findMany({ select: { id: true } })
853
+ *
854
+ */
855
+ findMany<T extends EgressGrantFindManyArgs>(args?: Prisma.SelectSubset<T, EgressGrantFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
856
+ /**
857
+ * Create a EgressGrant.
858
+ * @param {EgressGrantCreateArgs} args - Arguments to create a EgressGrant.
859
+ * @example
860
+ * // Create one EgressGrant
861
+ * const EgressGrant = await prisma.egressGrant.create({
862
+ * data: {
863
+ * // ... data to create a EgressGrant
864
+ * }
865
+ * })
866
+ *
867
+ */
868
+ create<T extends EgressGrantCreateArgs>(args: Prisma.SelectSubset<T, EgressGrantCreateArgs<ExtArgs>>): Prisma.Prisma__EgressGrantClient<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
869
+ /**
870
+ * Create many EgressGrants.
871
+ * @param {EgressGrantCreateManyArgs} args - Arguments to create many EgressGrants.
872
+ * @example
873
+ * // Create many EgressGrants
874
+ * const egressGrant = await prisma.egressGrant.createMany({
875
+ * data: [
876
+ * // ... provide data here
877
+ * ]
878
+ * })
879
+ *
880
+ */
881
+ createMany<T extends EgressGrantCreateManyArgs>(args?: Prisma.SelectSubset<T, EgressGrantCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
882
+ /**
883
+ * Create many EgressGrants and returns the data saved in the database.
884
+ * @param {EgressGrantCreateManyAndReturnArgs} args - Arguments to create many EgressGrants.
885
+ * @example
886
+ * // Create many EgressGrants
887
+ * const egressGrant = await prisma.egressGrant.createManyAndReturn({
888
+ * data: [
889
+ * // ... provide data here
890
+ * ]
891
+ * })
892
+ *
893
+ * // Create many EgressGrants and only return the `id`
894
+ * const egressGrantWithIdOnly = await prisma.egressGrant.createManyAndReturn({
895
+ * select: { id: true },
896
+ * data: [
897
+ * // ... provide data here
898
+ * ]
899
+ * })
900
+ * Note, that providing `undefined` is treated as the value not being there.
901
+ * Read more here: https://pris.ly/d/null-undefined
902
+ *
903
+ */
904
+ createManyAndReturn<T extends EgressGrantCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, EgressGrantCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
905
+ /**
906
+ * Delete a EgressGrant.
907
+ * @param {EgressGrantDeleteArgs} args - Arguments to delete one EgressGrant.
908
+ * @example
909
+ * // Delete one EgressGrant
910
+ * const EgressGrant = await prisma.egressGrant.delete({
911
+ * where: {
912
+ * // ... filter to delete one EgressGrant
913
+ * }
914
+ * })
915
+ *
916
+ */
917
+ delete<T extends EgressGrantDeleteArgs>(args: Prisma.SelectSubset<T, EgressGrantDeleteArgs<ExtArgs>>): Prisma.Prisma__EgressGrantClient<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
918
+ /**
919
+ * Update one EgressGrant.
920
+ * @param {EgressGrantUpdateArgs} args - Arguments to update one EgressGrant.
921
+ * @example
922
+ * // Update one EgressGrant
923
+ * const egressGrant = await prisma.egressGrant.update({
924
+ * where: {
925
+ * // ... provide filter here
926
+ * },
927
+ * data: {
928
+ * // ... provide data here
929
+ * }
930
+ * })
931
+ *
932
+ */
933
+ update<T extends EgressGrantUpdateArgs>(args: Prisma.SelectSubset<T, EgressGrantUpdateArgs<ExtArgs>>): Prisma.Prisma__EgressGrantClient<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
934
+ /**
935
+ * Delete zero or more EgressGrants.
936
+ * @param {EgressGrantDeleteManyArgs} args - Arguments to filter EgressGrants to delete.
937
+ * @example
938
+ * // Delete a few EgressGrants
939
+ * const { count } = await prisma.egressGrant.deleteMany({
940
+ * where: {
941
+ * // ... provide filter here
942
+ * }
943
+ * })
944
+ *
945
+ */
946
+ deleteMany<T extends EgressGrantDeleteManyArgs>(args?: Prisma.SelectSubset<T, EgressGrantDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
947
+ /**
948
+ * Update zero or more EgressGrants.
949
+ * Note, that providing `undefined` is treated as the value not being there.
950
+ * Read more here: https://pris.ly/d/null-undefined
951
+ * @param {EgressGrantUpdateManyArgs} args - Arguments to update one or more rows.
952
+ * @example
953
+ * // Update many EgressGrants
954
+ * const egressGrant = await prisma.egressGrant.updateMany({
955
+ * where: {
956
+ * // ... provide filter here
957
+ * },
958
+ * data: {
959
+ * // ... provide data here
960
+ * }
961
+ * })
962
+ *
963
+ */
964
+ updateMany<T extends EgressGrantUpdateManyArgs>(args: Prisma.SelectSubset<T, EgressGrantUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
965
+ /**
966
+ * Update zero or more EgressGrants and returns the data updated in the database.
967
+ * @param {EgressGrantUpdateManyAndReturnArgs} args - Arguments to update many EgressGrants.
968
+ * @example
969
+ * // Update many EgressGrants
970
+ * const egressGrant = await prisma.egressGrant.updateManyAndReturn({
971
+ * where: {
972
+ * // ... provide filter here
973
+ * },
974
+ * data: [
975
+ * // ... provide data here
976
+ * ]
977
+ * })
978
+ *
979
+ * // Update zero or more EgressGrants and only return the `id`
980
+ * const egressGrantWithIdOnly = await prisma.egressGrant.updateManyAndReturn({
981
+ * select: { id: true },
982
+ * where: {
983
+ * // ... provide filter here
984
+ * },
985
+ * data: [
986
+ * // ... provide data here
987
+ * ]
988
+ * })
989
+ * Note, that providing `undefined` is treated as the value not being there.
990
+ * Read more here: https://pris.ly/d/null-undefined
991
+ *
992
+ */
993
+ updateManyAndReturn<T extends EgressGrantUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, EgressGrantUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
994
+ /**
995
+ * Create or update one EgressGrant.
996
+ * @param {EgressGrantUpsertArgs} args - Arguments to update or create a EgressGrant.
997
+ * @example
998
+ * // Update or create a EgressGrant
999
+ * const egressGrant = await prisma.egressGrant.upsert({
1000
+ * create: {
1001
+ * // ... data to create a EgressGrant
1002
+ * },
1003
+ * update: {
1004
+ * // ... in case it already exists, update
1005
+ * },
1006
+ * where: {
1007
+ * // ... the filter for the EgressGrant we want to update
1008
+ * }
1009
+ * })
1010
+ */
1011
+ upsert<T extends EgressGrantUpsertArgs>(args: Prisma.SelectSubset<T, EgressGrantUpsertArgs<ExtArgs>>): Prisma.Prisma__EgressGrantClient<runtime.Types.Result.GetResult<Prisma.$EgressGrantPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1012
+ /**
1013
+ * Count the number of EgressGrants.
1014
+ * Note, that providing `undefined` is treated as the value not being there.
1015
+ * Read more here: https://pris.ly/d/null-undefined
1016
+ * @param {EgressGrantCountArgs} args - Arguments to filter EgressGrants to count.
1017
+ * @example
1018
+ * // Count the number of EgressGrants
1019
+ * const count = await prisma.egressGrant.count({
1020
+ * where: {
1021
+ * // ... the filter for the EgressGrants we want to count
1022
+ * }
1023
+ * })
1024
+ **/
1025
+ count<T extends EgressGrantCountArgs>(args?: Prisma.Subset<T, EgressGrantCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], EgressGrantCountAggregateOutputType> : number>;
1026
+ /**
1027
+ * Allows you to perform aggregations operations on a EgressGrant.
1028
+ * Note, that providing `undefined` is treated as the value not being there.
1029
+ * Read more here: https://pris.ly/d/null-undefined
1030
+ * @param {EgressGrantAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1031
+ * @example
1032
+ * // Ordered by age ascending
1033
+ * // Where email contains prisma.io
1034
+ * // Limited to the 10 users
1035
+ * const aggregations = await prisma.user.aggregate({
1036
+ * _avg: {
1037
+ * age: true,
1038
+ * },
1039
+ * where: {
1040
+ * email: {
1041
+ * contains: "prisma.io",
1042
+ * },
1043
+ * },
1044
+ * orderBy: {
1045
+ * age: "asc",
1046
+ * },
1047
+ * take: 10,
1048
+ * })
1049
+ **/
1050
+ aggregate<T extends EgressGrantAggregateArgs>(args: Prisma.Subset<T, EgressGrantAggregateArgs>): Prisma.PrismaPromise<GetEgressGrantAggregateType<T>>;
1051
+ /**
1052
+ * Group by EgressGrant.
1053
+ * Note, that providing `undefined` is treated as the value not being there.
1054
+ * Read more here: https://pris.ly/d/null-undefined
1055
+ * @param {EgressGrantGroupByArgs} args - Group by arguments.
1056
+ * @example
1057
+ * // Group by city, order by createdAt, get count
1058
+ * const result = await prisma.user.groupBy({
1059
+ * by: ['city', 'createdAt'],
1060
+ * orderBy: {
1061
+ * createdAt: true
1062
+ * },
1063
+ * _count: {
1064
+ * _all: true
1065
+ * },
1066
+ * })
1067
+ *
1068
+ **/
1069
+ groupBy<T extends EgressGrantGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1070
+ orderBy: EgressGrantGroupByArgs['orderBy'];
1071
+ } : {
1072
+ orderBy?: EgressGrantGroupByArgs['orderBy'];
1073
+ }, 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 ? {
1074
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1075
+ Error,
1076
+ 'Field ',
1077
+ P,
1078
+ ` in "having" needs to be provided in "by"`
1079
+ ];
1080
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1081
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1082
+ }[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 ? {} : {
1083
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1084
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1085
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1086
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, EgressGrantGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEgressGrantGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1087
+ /**
1088
+ * Fields of the EgressGrant model
1089
+ */
1090
+ readonly fields: EgressGrantFieldRefs;
1091
+ }
1092
+ /**
1093
+ * The delegate class that acts as a "Promise-like" for EgressGrant.
1094
+ * Why is this prefixed with `Prisma__`?
1095
+ * Because we want to prevent naming conflicts as mentioned in
1096
+ * https://github.com/prisma/prisma-client-js/issues/707
1097
+ */
1098
+ export interface Prisma__EgressGrantClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1099
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1100
+ organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1101
+ endUser<T extends Prisma.EndUserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EndUserDefaultArgs<ExtArgs>>): Prisma.Prisma__EndUserClient<runtime.Types.Result.GetResult<Prisma.$EndUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1102
+ /**
1103
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1104
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1105
+ * @param onrejected The callback to execute when the Promise is rejected.
1106
+ * @returns A Promise for the completion of which ever callback is executed.
1107
+ */
1108
+ 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>;
1109
+ /**
1110
+ * Attaches a callback for only the rejection of the Promise.
1111
+ * @param onrejected The callback to execute when the Promise is rejected.
1112
+ * @returns A Promise for the completion of the callback.
1113
+ */
1114
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1115
+ /**
1116
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1117
+ * resolved value cannot be modified from the callback.
1118
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1119
+ * @returns A Promise for the completion of the callback.
1120
+ */
1121
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1122
+ }
1123
+ /**
1124
+ * Fields of the EgressGrant model
1125
+ */
1126
+ export interface EgressGrantFieldRefs {
1127
+ readonly id: Prisma.FieldRef<"EgressGrant", 'String'>;
1128
+ readonly organizationId: Prisma.FieldRef<"EgressGrant", 'String'>;
1129
+ readonly endUserId: Prisma.FieldRef<"EgressGrant", 'String'>;
1130
+ readonly tokenHash: Prisma.FieldRef<"EgressGrant", 'String'>;
1131
+ readonly providerKeys: Prisma.FieldRef<"EgressGrant", 'String[]'>;
1132
+ readonly caPem: Prisma.FieldRef<"EgressGrant", 'String'>;
1133
+ readonly caKey: Prisma.FieldRef<"EgressGrant", 'String'>;
1134
+ readonly label: Prisma.FieldRef<"EgressGrant", 'String'>;
1135
+ readonly expiresAt: Prisma.FieldRef<"EgressGrant", 'DateTime'>;
1136
+ readonly revokedAt: Prisma.FieldRef<"EgressGrant", 'DateTime'>;
1137
+ readonly createdAt: Prisma.FieldRef<"EgressGrant", 'DateTime'>;
1138
+ }
1139
+ /**
1140
+ * EgressGrant findUnique
1141
+ */
1142
+ export type EgressGrantFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1143
+ /**
1144
+ * Select specific fields to fetch from the EgressGrant
1145
+ */
1146
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1147
+ /**
1148
+ * Omit specific fields from the EgressGrant
1149
+ */
1150
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1151
+ /**
1152
+ * Choose, which related nodes to fetch as well
1153
+ */
1154
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1155
+ /**
1156
+ * Filter, which EgressGrant to fetch.
1157
+ */
1158
+ where: Prisma.EgressGrantWhereUniqueInput;
1159
+ };
1160
+ /**
1161
+ * EgressGrant findUniqueOrThrow
1162
+ */
1163
+ export type EgressGrantFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1164
+ /**
1165
+ * Select specific fields to fetch from the EgressGrant
1166
+ */
1167
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1168
+ /**
1169
+ * Omit specific fields from the EgressGrant
1170
+ */
1171
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1172
+ /**
1173
+ * Choose, which related nodes to fetch as well
1174
+ */
1175
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1176
+ /**
1177
+ * Filter, which EgressGrant to fetch.
1178
+ */
1179
+ where: Prisma.EgressGrantWhereUniqueInput;
1180
+ };
1181
+ /**
1182
+ * EgressGrant findFirst
1183
+ */
1184
+ export type EgressGrantFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1185
+ /**
1186
+ * Select specific fields to fetch from the EgressGrant
1187
+ */
1188
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1189
+ /**
1190
+ * Omit specific fields from the EgressGrant
1191
+ */
1192
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1193
+ /**
1194
+ * Choose, which related nodes to fetch as well
1195
+ */
1196
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1197
+ /**
1198
+ * Filter, which EgressGrant to fetch.
1199
+ */
1200
+ where?: Prisma.EgressGrantWhereInput;
1201
+ /**
1202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1203
+ *
1204
+ * Determine the order of EgressGrants to fetch.
1205
+ */
1206
+ orderBy?: Prisma.EgressGrantOrderByWithRelationInput | Prisma.EgressGrantOrderByWithRelationInput[];
1207
+ /**
1208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1209
+ *
1210
+ * Sets the position for searching for EgressGrants.
1211
+ */
1212
+ cursor?: Prisma.EgressGrantWhereUniqueInput;
1213
+ /**
1214
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1215
+ *
1216
+ * Take `±n` EgressGrants from the position of the cursor.
1217
+ */
1218
+ take?: number;
1219
+ /**
1220
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1221
+ *
1222
+ * Skip the first `n` EgressGrants.
1223
+ */
1224
+ skip?: number;
1225
+ /**
1226
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1227
+ *
1228
+ * Filter by unique combinations of EgressGrants.
1229
+ */
1230
+ distinct?: Prisma.EgressGrantScalarFieldEnum | Prisma.EgressGrantScalarFieldEnum[];
1231
+ };
1232
+ /**
1233
+ * EgressGrant findFirstOrThrow
1234
+ */
1235
+ export type EgressGrantFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1236
+ /**
1237
+ * Select specific fields to fetch from the EgressGrant
1238
+ */
1239
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1240
+ /**
1241
+ * Omit specific fields from the EgressGrant
1242
+ */
1243
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1244
+ /**
1245
+ * Choose, which related nodes to fetch as well
1246
+ */
1247
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1248
+ /**
1249
+ * Filter, which EgressGrant to fetch.
1250
+ */
1251
+ where?: Prisma.EgressGrantWhereInput;
1252
+ /**
1253
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1254
+ *
1255
+ * Determine the order of EgressGrants to fetch.
1256
+ */
1257
+ orderBy?: Prisma.EgressGrantOrderByWithRelationInput | Prisma.EgressGrantOrderByWithRelationInput[];
1258
+ /**
1259
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1260
+ *
1261
+ * Sets the position for searching for EgressGrants.
1262
+ */
1263
+ cursor?: Prisma.EgressGrantWhereUniqueInput;
1264
+ /**
1265
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1266
+ *
1267
+ * Take `±n` EgressGrants from the position of the cursor.
1268
+ */
1269
+ take?: number;
1270
+ /**
1271
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1272
+ *
1273
+ * Skip the first `n` EgressGrants.
1274
+ */
1275
+ skip?: number;
1276
+ /**
1277
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1278
+ *
1279
+ * Filter by unique combinations of EgressGrants.
1280
+ */
1281
+ distinct?: Prisma.EgressGrantScalarFieldEnum | Prisma.EgressGrantScalarFieldEnum[];
1282
+ };
1283
+ /**
1284
+ * EgressGrant findMany
1285
+ */
1286
+ export type EgressGrantFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1287
+ /**
1288
+ * Select specific fields to fetch from the EgressGrant
1289
+ */
1290
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1291
+ /**
1292
+ * Omit specific fields from the EgressGrant
1293
+ */
1294
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1295
+ /**
1296
+ * Choose, which related nodes to fetch as well
1297
+ */
1298
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1299
+ /**
1300
+ * Filter, which EgressGrants to fetch.
1301
+ */
1302
+ where?: Prisma.EgressGrantWhereInput;
1303
+ /**
1304
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1305
+ *
1306
+ * Determine the order of EgressGrants to fetch.
1307
+ */
1308
+ orderBy?: Prisma.EgressGrantOrderByWithRelationInput | Prisma.EgressGrantOrderByWithRelationInput[];
1309
+ /**
1310
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1311
+ *
1312
+ * Sets the position for listing EgressGrants.
1313
+ */
1314
+ cursor?: Prisma.EgressGrantWhereUniqueInput;
1315
+ /**
1316
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1317
+ *
1318
+ * Take `±n` EgressGrants from the position of the cursor.
1319
+ */
1320
+ take?: number;
1321
+ /**
1322
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1323
+ *
1324
+ * Skip the first `n` EgressGrants.
1325
+ */
1326
+ skip?: number;
1327
+ /**
1328
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1329
+ *
1330
+ * Filter by unique combinations of EgressGrants.
1331
+ */
1332
+ distinct?: Prisma.EgressGrantScalarFieldEnum | Prisma.EgressGrantScalarFieldEnum[];
1333
+ };
1334
+ /**
1335
+ * EgressGrant create
1336
+ */
1337
+ export type EgressGrantCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1338
+ /**
1339
+ * Select specific fields to fetch from the EgressGrant
1340
+ */
1341
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1342
+ /**
1343
+ * Omit specific fields from the EgressGrant
1344
+ */
1345
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1346
+ /**
1347
+ * Choose, which related nodes to fetch as well
1348
+ */
1349
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1350
+ /**
1351
+ * The data needed to create a EgressGrant.
1352
+ */
1353
+ data: Prisma.XOR<Prisma.EgressGrantCreateInput, Prisma.EgressGrantUncheckedCreateInput>;
1354
+ };
1355
+ /**
1356
+ * EgressGrant createMany
1357
+ */
1358
+ export type EgressGrantCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1359
+ /**
1360
+ * The data used to create many EgressGrants.
1361
+ */
1362
+ data: Prisma.EgressGrantCreateManyInput | Prisma.EgressGrantCreateManyInput[];
1363
+ skipDuplicates?: boolean;
1364
+ };
1365
+ /**
1366
+ * EgressGrant createManyAndReturn
1367
+ */
1368
+ export type EgressGrantCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1369
+ /**
1370
+ * Select specific fields to fetch from the EgressGrant
1371
+ */
1372
+ select?: Prisma.EgressGrantSelectCreateManyAndReturn<ExtArgs> | null;
1373
+ /**
1374
+ * Omit specific fields from the EgressGrant
1375
+ */
1376
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1377
+ /**
1378
+ * The data used to create many EgressGrants.
1379
+ */
1380
+ data: Prisma.EgressGrantCreateManyInput | Prisma.EgressGrantCreateManyInput[];
1381
+ skipDuplicates?: boolean;
1382
+ /**
1383
+ * Choose, which related nodes to fetch as well
1384
+ */
1385
+ include?: Prisma.EgressGrantIncludeCreateManyAndReturn<ExtArgs> | null;
1386
+ };
1387
+ /**
1388
+ * EgressGrant update
1389
+ */
1390
+ export type EgressGrantUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1391
+ /**
1392
+ * Select specific fields to fetch from the EgressGrant
1393
+ */
1394
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1395
+ /**
1396
+ * Omit specific fields from the EgressGrant
1397
+ */
1398
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1399
+ /**
1400
+ * Choose, which related nodes to fetch as well
1401
+ */
1402
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1403
+ /**
1404
+ * The data needed to update a EgressGrant.
1405
+ */
1406
+ data: Prisma.XOR<Prisma.EgressGrantUpdateInput, Prisma.EgressGrantUncheckedUpdateInput>;
1407
+ /**
1408
+ * Choose, which EgressGrant to update.
1409
+ */
1410
+ where: Prisma.EgressGrantWhereUniqueInput;
1411
+ };
1412
+ /**
1413
+ * EgressGrant updateMany
1414
+ */
1415
+ export type EgressGrantUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1416
+ /**
1417
+ * The data used to update EgressGrants.
1418
+ */
1419
+ data: Prisma.XOR<Prisma.EgressGrantUpdateManyMutationInput, Prisma.EgressGrantUncheckedUpdateManyInput>;
1420
+ /**
1421
+ * Filter which EgressGrants to update
1422
+ */
1423
+ where?: Prisma.EgressGrantWhereInput;
1424
+ /**
1425
+ * Limit how many EgressGrants to update.
1426
+ */
1427
+ limit?: number;
1428
+ };
1429
+ /**
1430
+ * EgressGrant updateManyAndReturn
1431
+ */
1432
+ export type EgressGrantUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1433
+ /**
1434
+ * Select specific fields to fetch from the EgressGrant
1435
+ */
1436
+ select?: Prisma.EgressGrantSelectUpdateManyAndReturn<ExtArgs> | null;
1437
+ /**
1438
+ * Omit specific fields from the EgressGrant
1439
+ */
1440
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1441
+ /**
1442
+ * The data used to update EgressGrants.
1443
+ */
1444
+ data: Prisma.XOR<Prisma.EgressGrantUpdateManyMutationInput, Prisma.EgressGrantUncheckedUpdateManyInput>;
1445
+ /**
1446
+ * Filter which EgressGrants to update
1447
+ */
1448
+ where?: Prisma.EgressGrantWhereInput;
1449
+ /**
1450
+ * Limit how many EgressGrants to update.
1451
+ */
1452
+ limit?: number;
1453
+ /**
1454
+ * Choose, which related nodes to fetch as well
1455
+ */
1456
+ include?: Prisma.EgressGrantIncludeUpdateManyAndReturn<ExtArgs> | null;
1457
+ };
1458
+ /**
1459
+ * EgressGrant upsert
1460
+ */
1461
+ export type EgressGrantUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1462
+ /**
1463
+ * Select specific fields to fetch from the EgressGrant
1464
+ */
1465
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1466
+ /**
1467
+ * Omit specific fields from the EgressGrant
1468
+ */
1469
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1470
+ /**
1471
+ * Choose, which related nodes to fetch as well
1472
+ */
1473
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1474
+ /**
1475
+ * The filter to search for the EgressGrant to update in case it exists.
1476
+ */
1477
+ where: Prisma.EgressGrantWhereUniqueInput;
1478
+ /**
1479
+ * In case the EgressGrant found by the `where` argument doesn't exist, create a new EgressGrant with this data.
1480
+ */
1481
+ create: Prisma.XOR<Prisma.EgressGrantCreateInput, Prisma.EgressGrantUncheckedCreateInput>;
1482
+ /**
1483
+ * In case the EgressGrant was found with the provided `where` argument, update it with this data.
1484
+ */
1485
+ update: Prisma.XOR<Prisma.EgressGrantUpdateInput, Prisma.EgressGrantUncheckedUpdateInput>;
1486
+ };
1487
+ /**
1488
+ * EgressGrant delete
1489
+ */
1490
+ export type EgressGrantDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1491
+ /**
1492
+ * Select specific fields to fetch from the EgressGrant
1493
+ */
1494
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1495
+ /**
1496
+ * Omit specific fields from the EgressGrant
1497
+ */
1498
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1499
+ /**
1500
+ * Choose, which related nodes to fetch as well
1501
+ */
1502
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1503
+ /**
1504
+ * Filter which EgressGrant to delete.
1505
+ */
1506
+ where: Prisma.EgressGrantWhereUniqueInput;
1507
+ };
1508
+ /**
1509
+ * EgressGrant deleteMany
1510
+ */
1511
+ export type EgressGrantDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1512
+ /**
1513
+ * Filter which EgressGrants to delete
1514
+ */
1515
+ where?: Prisma.EgressGrantWhereInput;
1516
+ /**
1517
+ * Limit how many EgressGrants to delete.
1518
+ */
1519
+ limit?: number;
1520
+ };
1521
+ /**
1522
+ * EgressGrant without action
1523
+ */
1524
+ export type EgressGrantDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1525
+ /**
1526
+ * Select specific fields to fetch from the EgressGrant
1527
+ */
1528
+ select?: Prisma.EgressGrantSelect<ExtArgs> | null;
1529
+ /**
1530
+ * Omit specific fields from the EgressGrant
1531
+ */
1532
+ omit?: Prisma.EgressGrantOmit<ExtArgs> | null;
1533
+ /**
1534
+ * Choose, which related nodes to fetch as well
1535
+ */
1536
+ include?: Prisma.EgressGrantInclude<ExtArgs> | null;
1537
+ };
1538
+ //# sourceMappingURL=EgressGrant.d.ts.map