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