@crossauth/fastify 1.0.0 → 1.1.0

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