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