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