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