@actuate-media/cms-core 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/LICENSE +21 -21
  2. package/dist/__tests__/api/api-key-auth.test.d.ts +2 -0
  3. package/dist/__tests__/api/api-key-auth.test.d.ts.map +1 -0
  4. package/dist/__tests__/api/api-key-auth.test.js +217 -0
  5. package/dist/__tests__/api/api-key-auth.test.js.map +1 -0
  6. package/dist/__tests__/api/health.test.d.ts +2 -0
  7. package/dist/__tests__/api/health.test.d.ts.map +1 -0
  8. package/dist/__tests__/api/health.test.js +140 -0
  9. package/dist/__tests__/api/health.test.js.map +1 -0
  10. package/dist/__tests__/auth/oauth.test.d.ts +2 -0
  11. package/dist/__tests__/auth/oauth.test.d.ts.map +1 -0
  12. package/dist/__tests__/auth/oauth.test.js +406 -0
  13. package/dist/__tests__/auth/oauth.test.js.map +1 -0
  14. package/dist/__tests__/auth/reset.test.d.ts +2 -0
  15. package/dist/__tests__/auth/reset.test.d.ts.map +1 -0
  16. package/dist/__tests__/auth/reset.test.js +303 -0
  17. package/dist/__tests__/auth/reset.test.js.map +1 -0
  18. package/dist/__tests__/diagnostics/env.test.d.ts +2 -0
  19. package/dist/__tests__/diagnostics/env.test.d.ts.map +1 -0
  20. package/dist/__tests__/diagnostics/env.test.js +119 -0
  21. package/dist/__tests__/diagnostics/env.test.js.map +1 -0
  22. package/dist/__tests__/diagnostics/logger.test.d.ts +2 -0
  23. package/dist/__tests__/diagnostics/logger.test.d.ts.map +1 -0
  24. package/dist/__tests__/diagnostics/logger.test.js +111 -0
  25. package/dist/__tests__/diagnostics/logger.test.js.map +1 -0
  26. package/dist/__tests__/security/api-key-enhanced.test.d.ts +2 -0
  27. package/dist/__tests__/security/api-key-enhanced.test.d.ts.map +1 -0
  28. package/dist/__tests__/security/api-key-enhanced.test.js +110 -0
  29. package/dist/__tests__/security/api-key-enhanced.test.js.map +1 -0
  30. package/dist/__tests__/security/rate-limit.test.js +42 -0
  31. package/dist/__tests__/security/rate-limit.test.js.map +1 -1
  32. package/dist/actions.d.ts.map +1 -1
  33. package/dist/actions.js +7 -6
  34. package/dist/actions.js.map +1 -1
  35. package/dist/api/handler-factory.d.ts.map +1 -1
  36. package/dist/api/handler-factory.js +31 -8
  37. package/dist/api/handler-factory.js.map +1 -1
  38. package/dist/api/handlers.d.ts.map +1 -1
  39. package/dist/api/handlers.js +508 -55
  40. package/dist/api/handlers.js.map +1 -1
  41. package/dist/auth/oauth.d.ts.map +1 -1
  42. package/dist/auth/oauth.js +5 -1
  43. package/dist/auth/oauth.js.map +1 -1
  44. package/dist/auth/reset.d.ts.map +1 -1
  45. package/dist/auth/reset.js +2 -1
  46. package/dist/auth/reset.js.map +1 -1
  47. package/dist/config/runtime.d.ts +99 -0
  48. package/dist/config/runtime.d.ts.map +1 -0
  49. package/dist/config/runtime.js +43 -0
  50. package/dist/config/runtime.js.map +1 -0
  51. package/dist/config/types.d.ts +21 -0
  52. package/dist/config/types.d.ts.map +1 -1
  53. package/dist/diagnostics/env.d.ts +44 -0
  54. package/dist/diagnostics/env.d.ts.map +1 -0
  55. package/dist/diagnostics/env.js +293 -0
  56. package/dist/diagnostics/env.js.map +1 -0
  57. package/dist/diagnostics/logger.d.ts +38 -0
  58. package/dist/diagnostics/logger.d.ts.map +1 -0
  59. package/dist/diagnostics/logger.js +89 -0
  60. package/dist/diagnostics/logger.js.map +1 -0
  61. package/dist/page-builder/blocks.d.ts.map +1 -1
  62. package/dist/page-builder/blocks.js +6 -1
  63. package/dist/page-builder/blocks.js.map +1 -1
  64. package/dist/security/api-key-enhanced.d.ts +48 -5
  65. package/dist/security/api-key-enhanced.d.ts.map +1 -1
  66. package/dist/security/api-key-enhanced.js +60 -9
  67. package/dist/security/api-key-enhanced.js.map +1 -1
  68. package/dist/security/audit.d.ts.map +1 -1
  69. package/dist/security/audit.js +3 -1
  70. package/dist/security/audit.js.map +1 -1
  71. package/dist/security/rate-limit.d.ts +8 -0
  72. package/dist/security/rate-limit.d.ts.map +1 -1
  73. package/dist/security/rate-limit.js +81 -3
  74. package/dist/security/rate-limit.js.map +1 -1
  75. package/generated/browser.ts +109 -0
  76. package/generated/client.ts +133 -0
  77. package/generated/commonInputTypes.ts +709 -0
  78. package/generated/enums.ts +125 -0
  79. package/generated/internal/class.ts +376 -0
  80. package/generated/internal/prismaNamespace.ts +2617 -0
  81. package/generated/internal/prismaNamespaceBrowser.ts +611 -0
  82. package/generated/models/ApiKey.ts +1550 -0
  83. package/generated/models/AuditLog.ts +1206 -0
  84. package/generated/models/BackupRecord.ts +1250 -0
  85. package/generated/models/ContentLock.ts +1472 -0
  86. package/generated/models/ContentTemplate.ts +1416 -0
  87. package/generated/models/Document.ts +3005 -0
  88. package/generated/models/Folder.ts +1904 -0
  89. package/generated/models/FormSubmission.ts +1200 -0
  90. package/generated/models/InAppNotification.ts +1457 -0
  91. package/generated/models/Media.ts +2340 -0
  92. package/generated/models/MediaUsage.ts +1472 -0
  93. package/generated/models/OAuthAccount.ts +1463 -0
  94. package/generated/models/Redirect.ts +1284 -0
  95. package/generated/models/Session.ts +1492 -0
  96. package/generated/models/Site.ts +1206 -0
  97. package/generated/models/User.ts +3513 -0
  98. package/generated/models/Version.ts +1511 -0
  99. package/generated/models/WorkflowState.ts +1514 -0
  100. package/generated/models.ts +29 -0
  101. package/package.json +1 -1
  102. package/prisma/cms-schema.prisma +306 -306
  103. package/prisma/migrations/0001_init/migration.sql +384 -384
  104. package/prisma/migrations/0002_folders/migration.sql +39 -39
  105. package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -50
  106. package/prisma/migrations/0004_script_tags/migration.sql +21 -21
  107. package/prisma/migrations/0005_password_reset_tokens/migration.sql +20 -20
  108. package/prisma/migrations/0006_page_builder/migration.sql +38 -38
  109. package/prisma/migrations/migration_lock.toml +3 -3
  110. package/prisma/schema.prisma +549 -549
@@ -0,0 +1,1463 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `OAuthAccount` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model OAuthAccount
17
+ *
18
+ */
19
+ export type OAuthAccountModel = runtime.Types.Result.DefaultSelection<Prisma.$OAuthAccountPayload>
20
+
21
+ export type AggregateOAuthAccount = {
22
+ _count: OAuthAccountCountAggregateOutputType | null
23
+ _min: OAuthAccountMinAggregateOutputType | null
24
+ _max: OAuthAccountMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type OAuthAccountMinAggregateOutputType = {
28
+ id: string | null
29
+ userId: string | null
30
+ provider: string | null
31
+ providerAccountId: string | null
32
+ accessToken: string | null
33
+ refreshToken: string | null
34
+ expiresAt: Date | null
35
+ createdAt: Date | null
36
+ }
37
+
38
+ export type OAuthAccountMaxAggregateOutputType = {
39
+ id: string | null
40
+ userId: string | null
41
+ provider: string | null
42
+ providerAccountId: string | null
43
+ accessToken: string | null
44
+ refreshToken: string | null
45
+ expiresAt: Date | null
46
+ createdAt: Date | null
47
+ }
48
+
49
+ export type OAuthAccountCountAggregateOutputType = {
50
+ id: number
51
+ userId: number
52
+ provider: number
53
+ providerAccountId: number
54
+ accessToken: number
55
+ refreshToken: number
56
+ expiresAt: number
57
+ createdAt: number
58
+ _all: number
59
+ }
60
+
61
+
62
+ export type OAuthAccountMinAggregateInputType = {
63
+ id?: true
64
+ userId?: true
65
+ provider?: true
66
+ providerAccountId?: true
67
+ accessToken?: true
68
+ refreshToken?: true
69
+ expiresAt?: true
70
+ createdAt?: true
71
+ }
72
+
73
+ export type OAuthAccountMaxAggregateInputType = {
74
+ id?: true
75
+ userId?: true
76
+ provider?: true
77
+ providerAccountId?: true
78
+ accessToken?: true
79
+ refreshToken?: true
80
+ expiresAt?: true
81
+ createdAt?: true
82
+ }
83
+
84
+ export type OAuthAccountCountAggregateInputType = {
85
+ id?: true
86
+ userId?: true
87
+ provider?: true
88
+ providerAccountId?: true
89
+ accessToken?: true
90
+ refreshToken?: true
91
+ expiresAt?: true
92
+ createdAt?: true
93
+ _all?: true
94
+ }
95
+
96
+ export type OAuthAccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
+ /**
98
+ * Filter which OAuthAccount to aggregate.
99
+ */
100
+ where?: Prisma.OAuthAccountWhereInput
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
103
+ *
104
+ * Determine the order of OAuthAccounts to fetch.
105
+ */
106
+ orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[]
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
109
+ *
110
+ * Sets the start position
111
+ */
112
+ cursor?: Prisma.OAuthAccountWhereUniqueInput
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
115
+ *
116
+ * Take `±n` OAuthAccounts from the position of the cursor.
117
+ */
118
+ take?: number
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
+ *
122
+ * Skip the first `n` OAuthAccounts.
123
+ */
124
+ skip?: number
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Count returned OAuthAccounts
129
+ **/
130
+ _count?: true | OAuthAccountCountAggregateInputType
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Select which fields to find the minimum value
135
+ **/
136
+ _min?: OAuthAccountMinAggregateInputType
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Select which fields to find the maximum value
141
+ **/
142
+ _max?: OAuthAccountMaxAggregateInputType
143
+ }
144
+
145
+ export type GetOAuthAccountAggregateType<T extends OAuthAccountAggregateArgs> = {
146
+ [P in keyof T & keyof AggregateOAuthAccount]: P extends '_count' | 'count'
147
+ ? T[P] extends true
148
+ ? number
149
+ : Prisma.GetScalarType<T[P], AggregateOAuthAccount[P]>
150
+ : Prisma.GetScalarType<T[P], AggregateOAuthAccount[P]>
151
+ }
152
+
153
+
154
+
155
+
156
+ export type OAuthAccountGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
157
+ where?: Prisma.OAuthAccountWhereInput
158
+ orderBy?: Prisma.OAuthAccountOrderByWithAggregationInput | Prisma.OAuthAccountOrderByWithAggregationInput[]
159
+ by: Prisma.OAuthAccountScalarFieldEnum[] | Prisma.OAuthAccountScalarFieldEnum
160
+ having?: Prisma.OAuthAccountScalarWhereWithAggregatesInput
161
+ take?: number
162
+ skip?: number
163
+ _count?: OAuthAccountCountAggregateInputType | true
164
+ _min?: OAuthAccountMinAggregateInputType
165
+ _max?: OAuthAccountMaxAggregateInputType
166
+ }
167
+
168
+ export type OAuthAccountGroupByOutputType = {
169
+ id: string
170
+ userId: string
171
+ provider: string
172
+ providerAccountId: string
173
+ accessToken: string | null
174
+ refreshToken: string | null
175
+ expiresAt: Date | null
176
+ createdAt: Date
177
+ _count: OAuthAccountCountAggregateOutputType | null
178
+ _min: OAuthAccountMinAggregateOutputType | null
179
+ _max: OAuthAccountMaxAggregateOutputType | null
180
+ }
181
+
182
+ type GetOAuthAccountGroupByPayload<T extends OAuthAccountGroupByArgs> = Prisma.PrismaPromise<
183
+ Array<
184
+ Prisma.PickEnumerable<OAuthAccountGroupByOutputType, T['by']> &
185
+ {
186
+ [P in ((keyof T) & (keyof OAuthAccountGroupByOutputType))]: P extends '_count'
187
+ ? T[P] extends boolean
188
+ ? number
189
+ : Prisma.GetScalarType<T[P], OAuthAccountGroupByOutputType[P]>
190
+ : Prisma.GetScalarType<T[P], OAuthAccountGroupByOutputType[P]>
191
+ }
192
+ >
193
+ >
194
+
195
+
196
+
197
+ export type OAuthAccountWhereInput = {
198
+ AND?: Prisma.OAuthAccountWhereInput | Prisma.OAuthAccountWhereInput[]
199
+ OR?: Prisma.OAuthAccountWhereInput[]
200
+ NOT?: Prisma.OAuthAccountWhereInput | Prisma.OAuthAccountWhereInput[]
201
+ id?: Prisma.StringFilter<"OAuthAccount"> | string
202
+ userId?: Prisma.StringFilter<"OAuthAccount"> | string
203
+ provider?: Prisma.StringFilter<"OAuthAccount"> | string
204
+ providerAccountId?: Prisma.StringFilter<"OAuthAccount"> | string
205
+ accessToken?: Prisma.StringNullableFilter<"OAuthAccount"> | string | null
206
+ refreshToken?: Prisma.StringNullableFilter<"OAuthAccount"> | string | null
207
+ expiresAt?: Prisma.DateTimeNullableFilter<"OAuthAccount"> | Date | string | null
208
+ createdAt?: Prisma.DateTimeFilter<"OAuthAccount"> | Date | string
209
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
210
+ }
211
+
212
+ export type OAuthAccountOrderByWithRelationInput = {
213
+ id?: Prisma.SortOrder
214
+ userId?: Prisma.SortOrder
215
+ provider?: Prisma.SortOrder
216
+ providerAccountId?: Prisma.SortOrder
217
+ accessToken?: Prisma.SortOrderInput | Prisma.SortOrder
218
+ refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder
219
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
220
+ createdAt?: Prisma.SortOrder
221
+ user?: Prisma.UserOrderByWithRelationInput
222
+ _relevance?: Prisma.OAuthAccountOrderByRelevanceInput
223
+ }
224
+
225
+ export type OAuthAccountWhereUniqueInput = Prisma.AtLeast<{
226
+ id?: string
227
+ provider_providerAccountId?: Prisma.OAuthAccountProviderProviderAccountIdCompoundUniqueInput
228
+ AND?: Prisma.OAuthAccountWhereInput | Prisma.OAuthAccountWhereInput[]
229
+ OR?: Prisma.OAuthAccountWhereInput[]
230
+ NOT?: Prisma.OAuthAccountWhereInput | Prisma.OAuthAccountWhereInput[]
231
+ userId?: Prisma.StringFilter<"OAuthAccount"> | string
232
+ provider?: Prisma.StringFilter<"OAuthAccount"> | string
233
+ providerAccountId?: Prisma.StringFilter<"OAuthAccount"> | string
234
+ accessToken?: Prisma.StringNullableFilter<"OAuthAccount"> | string | null
235
+ refreshToken?: Prisma.StringNullableFilter<"OAuthAccount"> | string | null
236
+ expiresAt?: Prisma.DateTimeNullableFilter<"OAuthAccount"> | Date | string | null
237
+ createdAt?: Prisma.DateTimeFilter<"OAuthAccount"> | Date | string
238
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
239
+ }, "id" | "provider_providerAccountId">
240
+
241
+ export type OAuthAccountOrderByWithAggregationInput = {
242
+ id?: Prisma.SortOrder
243
+ userId?: Prisma.SortOrder
244
+ provider?: Prisma.SortOrder
245
+ providerAccountId?: Prisma.SortOrder
246
+ accessToken?: Prisma.SortOrderInput | Prisma.SortOrder
247
+ refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder
248
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
249
+ createdAt?: Prisma.SortOrder
250
+ _count?: Prisma.OAuthAccountCountOrderByAggregateInput
251
+ _max?: Prisma.OAuthAccountMaxOrderByAggregateInput
252
+ _min?: Prisma.OAuthAccountMinOrderByAggregateInput
253
+ }
254
+
255
+ export type OAuthAccountScalarWhereWithAggregatesInput = {
256
+ AND?: Prisma.OAuthAccountScalarWhereWithAggregatesInput | Prisma.OAuthAccountScalarWhereWithAggregatesInput[]
257
+ OR?: Prisma.OAuthAccountScalarWhereWithAggregatesInput[]
258
+ NOT?: Prisma.OAuthAccountScalarWhereWithAggregatesInput | Prisma.OAuthAccountScalarWhereWithAggregatesInput[]
259
+ id?: Prisma.StringWithAggregatesFilter<"OAuthAccount"> | string
260
+ userId?: Prisma.StringWithAggregatesFilter<"OAuthAccount"> | string
261
+ provider?: Prisma.StringWithAggregatesFilter<"OAuthAccount"> | string
262
+ providerAccountId?: Prisma.StringWithAggregatesFilter<"OAuthAccount"> | string
263
+ accessToken?: Prisma.StringNullableWithAggregatesFilter<"OAuthAccount"> | string | null
264
+ refreshToken?: Prisma.StringNullableWithAggregatesFilter<"OAuthAccount"> | string | null
265
+ expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"OAuthAccount"> | Date | string | null
266
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"OAuthAccount"> | Date | string
267
+ }
268
+
269
+ export type OAuthAccountCreateInput = {
270
+ id?: string
271
+ provider: string
272
+ providerAccountId: string
273
+ accessToken?: string | null
274
+ refreshToken?: string | null
275
+ expiresAt?: Date | string | null
276
+ createdAt?: Date | string
277
+ user: Prisma.UserCreateNestedOneWithoutOauthAccountsInput
278
+ }
279
+
280
+ export type OAuthAccountUncheckedCreateInput = {
281
+ id?: string
282
+ userId: string
283
+ provider: string
284
+ providerAccountId: string
285
+ accessToken?: string | null
286
+ refreshToken?: string | null
287
+ expiresAt?: Date | string | null
288
+ createdAt?: Date | string
289
+ }
290
+
291
+ export type OAuthAccountUpdateInput = {
292
+ id?: Prisma.StringFieldUpdateOperationsInput | string
293
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
294
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
295
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
296
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
297
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
298
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
299
+ user?: Prisma.UserUpdateOneRequiredWithoutOauthAccountsNestedInput
300
+ }
301
+
302
+ export type OAuthAccountUncheckedUpdateInput = {
303
+ id?: Prisma.StringFieldUpdateOperationsInput | string
304
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
305
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
306
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
307
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
308
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
309
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
310
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
311
+ }
312
+
313
+ export type OAuthAccountCreateManyInput = {
314
+ id?: string
315
+ userId: string
316
+ provider: string
317
+ providerAccountId: string
318
+ accessToken?: string | null
319
+ refreshToken?: string | null
320
+ expiresAt?: Date | string | null
321
+ createdAt?: Date | string
322
+ }
323
+
324
+ export type OAuthAccountUpdateManyMutationInput = {
325
+ id?: Prisma.StringFieldUpdateOperationsInput | string
326
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
327
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
328
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
329
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
330
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
331
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
332
+ }
333
+
334
+ export type OAuthAccountUncheckedUpdateManyInput = {
335
+ id?: Prisma.StringFieldUpdateOperationsInput | string
336
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
337
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
338
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
339
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
340
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
341
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
342
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
343
+ }
344
+
345
+ export type OAuthAccountListRelationFilter = {
346
+ every?: Prisma.OAuthAccountWhereInput
347
+ some?: Prisma.OAuthAccountWhereInput
348
+ none?: Prisma.OAuthAccountWhereInput
349
+ }
350
+
351
+ export type OAuthAccountOrderByRelationAggregateInput = {
352
+ _count?: Prisma.SortOrder
353
+ }
354
+
355
+ export type OAuthAccountOrderByRelevanceInput = {
356
+ fields: Prisma.OAuthAccountOrderByRelevanceFieldEnum | Prisma.OAuthAccountOrderByRelevanceFieldEnum[]
357
+ sort: Prisma.SortOrder
358
+ search: string
359
+ }
360
+
361
+ export type OAuthAccountProviderProviderAccountIdCompoundUniqueInput = {
362
+ provider: string
363
+ providerAccountId: string
364
+ }
365
+
366
+ export type OAuthAccountCountOrderByAggregateInput = {
367
+ id?: Prisma.SortOrder
368
+ userId?: Prisma.SortOrder
369
+ provider?: Prisma.SortOrder
370
+ providerAccountId?: Prisma.SortOrder
371
+ accessToken?: Prisma.SortOrder
372
+ refreshToken?: Prisma.SortOrder
373
+ expiresAt?: Prisma.SortOrder
374
+ createdAt?: Prisma.SortOrder
375
+ }
376
+
377
+ export type OAuthAccountMaxOrderByAggregateInput = {
378
+ id?: Prisma.SortOrder
379
+ userId?: Prisma.SortOrder
380
+ provider?: Prisma.SortOrder
381
+ providerAccountId?: Prisma.SortOrder
382
+ accessToken?: Prisma.SortOrder
383
+ refreshToken?: Prisma.SortOrder
384
+ expiresAt?: Prisma.SortOrder
385
+ createdAt?: Prisma.SortOrder
386
+ }
387
+
388
+ export type OAuthAccountMinOrderByAggregateInput = {
389
+ id?: Prisma.SortOrder
390
+ userId?: Prisma.SortOrder
391
+ provider?: Prisma.SortOrder
392
+ providerAccountId?: Prisma.SortOrder
393
+ accessToken?: Prisma.SortOrder
394
+ refreshToken?: Prisma.SortOrder
395
+ expiresAt?: Prisma.SortOrder
396
+ createdAt?: Prisma.SortOrder
397
+ }
398
+
399
+ export type OAuthAccountCreateNestedManyWithoutUserInput = {
400
+ create?: Prisma.XOR<Prisma.OAuthAccountCreateWithoutUserInput, Prisma.OAuthAccountUncheckedCreateWithoutUserInput> | Prisma.OAuthAccountCreateWithoutUserInput[] | Prisma.OAuthAccountUncheckedCreateWithoutUserInput[]
401
+ connectOrCreate?: Prisma.OAuthAccountCreateOrConnectWithoutUserInput | Prisma.OAuthAccountCreateOrConnectWithoutUserInput[]
402
+ createMany?: Prisma.OAuthAccountCreateManyUserInputEnvelope
403
+ connect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
404
+ }
405
+
406
+ export type OAuthAccountUncheckedCreateNestedManyWithoutUserInput = {
407
+ create?: Prisma.XOR<Prisma.OAuthAccountCreateWithoutUserInput, Prisma.OAuthAccountUncheckedCreateWithoutUserInput> | Prisma.OAuthAccountCreateWithoutUserInput[] | Prisma.OAuthAccountUncheckedCreateWithoutUserInput[]
408
+ connectOrCreate?: Prisma.OAuthAccountCreateOrConnectWithoutUserInput | Prisma.OAuthAccountCreateOrConnectWithoutUserInput[]
409
+ createMany?: Prisma.OAuthAccountCreateManyUserInputEnvelope
410
+ connect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
411
+ }
412
+
413
+ export type OAuthAccountUpdateManyWithoutUserNestedInput = {
414
+ create?: Prisma.XOR<Prisma.OAuthAccountCreateWithoutUserInput, Prisma.OAuthAccountUncheckedCreateWithoutUserInput> | Prisma.OAuthAccountCreateWithoutUserInput[] | Prisma.OAuthAccountUncheckedCreateWithoutUserInput[]
415
+ connectOrCreate?: Prisma.OAuthAccountCreateOrConnectWithoutUserInput | Prisma.OAuthAccountCreateOrConnectWithoutUserInput[]
416
+ upsert?: Prisma.OAuthAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthAccountUpsertWithWhereUniqueWithoutUserInput[]
417
+ createMany?: Prisma.OAuthAccountCreateManyUserInputEnvelope
418
+ set?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
419
+ disconnect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
420
+ delete?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
421
+ connect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
422
+ update?: Prisma.OAuthAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthAccountUpdateWithWhereUniqueWithoutUserInput[]
423
+ updateMany?: Prisma.OAuthAccountUpdateManyWithWhereWithoutUserInput | Prisma.OAuthAccountUpdateManyWithWhereWithoutUserInput[]
424
+ deleteMany?: Prisma.OAuthAccountScalarWhereInput | Prisma.OAuthAccountScalarWhereInput[]
425
+ }
426
+
427
+ export type OAuthAccountUncheckedUpdateManyWithoutUserNestedInput = {
428
+ create?: Prisma.XOR<Prisma.OAuthAccountCreateWithoutUserInput, Prisma.OAuthAccountUncheckedCreateWithoutUserInput> | Prisma.OAuthAccountCreateWithoutUserInput[] | Prisma.OAuthAccountUncheckedCreateWithoutUserInput[]
429
+ connectOrCreate?: Prisma.OAuthAccountCreateOrConnectWithoutUserInput | Prisma.OAuthAccountCreateOrConnectWithoutUserInput[]
430
+ upsert?: Prisma.OAuthAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthAccountUpsertWithWhereUniqueWithoutUserInput[]
431
+ createMany?: Prisma.OAuthAccountCreateManyUserInputEnvelope
432
+ set?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
433
+ disconnect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
434
+ delete?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
435
+ connect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[]
436
+ update?: Prisma.OAuthAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthAccountUpdateWithWhereUniqueWithoutUserInput[]
437
+ updateMany?: Prisma.OAuthAccountUpdateManyWithWhereWithoutUserInput | Prisma.OAuthAccountUpdateManyWithWhereWithoutUserInput[]
438
+ deleteMany?: Prisma.OAuthAccountScalarWhereInput | Prisma.OAuthAccountScalarWhereInput[]
439
+ }
440
+
441
+ export type OAuthAccountCreateWithoutUserInput = {
442
+ id?: string
443
+ provider: string
444
+ providerAccountId: string
445
+ accessToken?: string | null
446
+ refreshToken?: string | null
447
+ expiresAt?: Date | string | null
448
+ createdAt?: Date | string
449
+ }
450
+
451
+ export type OAuthAccountUncheckedCreateWithoutUserInput = {
452
+ id?: string
453
+ provider: string
454
+ providerAccountId: string
455
+ accessToken?: string | null
456
+ refreshToken?: string | null
457
+ expiresAt?: Date | string | null
458
+ createdAt?: Date | string
459
+ }
460
+
461
+ export type OAuthAccountCreateOrConnectWithoutUserInput = {
462
+ where: Prisma.OAuthAccountWhereUniqueInput
463
+ create: Prisma.XOR<Prisma.OAuthAccountCreateWithoutUserInput, Prisma.OAuthAccountUncheckedCreateWithoutUserInput>
464
+ }
465
+
466
+ export type OAuthAccountCreateManyUserInputEnvelope = {
467
+ data: Prisma.OAuthAccountCreateManyUserInput | Prisma.OAuthAccountCreateManyUserInput[]
468
+ skipDuplicates?: boolean
469
+ }
470
+
471
+ export type OAuthAccountUpsertWithWhereUniqueWithoutUserInput = {
472
+ where: Prisma.OAuthAccountWhereUniqueInput
473
+ update: Prisma.XOR<Prisma.OAuthAccountUpdateWithoutUserInput, Prisma.OAuthAccountUncheckedUpdateWithoutUserInput>
474
+ create: Prisma.XOR<Prisma.OAuthAccountCreateWithoutUserInput, Prisma.OAuthAccountUncheckedCreateWithoutUserInput>
475
+ }
476
+
477
+ export type OAuthAccountUpdateWithWhereUniqueWithoutUserInput = {
478
+ where: Prisma.OAuthAccountWhereUniqueInput
479
+ data: Prisma.XOR<Prisma.OAuthAccountUpdateWithoutUserInput, Prisma.OAuthAccountUncheckedUpdateWithoutUserInput>
480
+ }
481
+
482
+ export type OAuthAccountUpdateManyWithWhereWithoutUserInput = {
483
+ where: Prisma.OAuthAccountScalarWhereInput
484
+ data: Prisma.XOR<Prisma.OAuthAccountUpdateManyMutationInput, Prisma.OAuthAccountUncheckedUpdateManyWithoutUserInput>
485
+ }
486
+
487
+ export type OAuthAccountScalarWhereInput = {
488
+ AND?: Prisma.OAuthAccountScalarWhereInput | Prisma.OAuthAccountScalarWhereInput[]
489
+ OR?: Prisma.OAuthAccountScalarWhereInput[]
490
+ NOT?: Prisma.OAuthAccountScalarWhereInput | Prisma.OAuthAccountScalarWhereInput[]
491
+ id?: Prisma.StringFilter<"OAuthAccount"> | string
492
+ userId?: Prisma.StringFilter<"OAuthAccount"> | string
493
+ provider?: Prisma.StringFilter<"OAuthAccount"> | string
494
+ providerAccountId?: Prisma.StringFilter<"OAuthAccount"> | string
495
+ accessToken?: Prisma.StringNullableFilter<"OAuthAccount"> | string | null
496
+ refreshToken?: Prisma.StringNullableFilter<"OAuthAccount"> | string | null
497
+ expiresAt?: Prisma.DateTimeNullableFilter<"OAuthAccount"> | Date | string | null
498
+ createdAt?: Prisma.DateTimeFilter<"OAuthAccount"> | Date | string
499
+ }
500
+
501
+ export type OAuthAccountCreateManyUserInput = {
502
+ id?: string
503
+ provider: string
504
+ providerAccountId: string
505
+ accessToken?: string | null
506
+ refreshToken?: string | null
507
+ expiresAt?: Date | string | null
508
+ createdAt?: Date | string
509
+ }
510
+
511
+ export type OAuthAccountUpdateWithoutUserInput = {
512
+ id?: Prisma.StringFieldUpdateOperationsInput | string
513
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
514
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
515
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
516
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
517
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
518
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
519
+ }
520
+
521
+ export type OAuthAccountUncheckedUpdateWithoutUserInput = {
522
+ id?: Prisma.StringFieldUpdateOperationsInput | string
523
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
524
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
525
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
526
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
527
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
528
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
529
+ }
530
+
531
+ export type OAuthAccountUncheckedUpdateManyWithoutUserInput = {
532
+ id?: Prisma.StringFieldUpdateOperationsInput | string
533
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
534
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
535
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
536
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
537
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
538
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
539
+ }
540
+
541
+
542
+
543
+ export type OAuthAccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
544
+ id?: boolean
545
+ userId?: boolean
546
+ provider?: boolean
547
+ providerAccountId?: boolean
548
+ accessToken?: boolean
549
+ refreshToken?: boolean
550
+ expiresAt?: boolean
551
+ createdAt?: boolean
552
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
553
+ }, ExtArgs["result"]["oAuthAccount"]>
554
+
555
+ export type OAuthAccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
556
+ id?: boolean
557
+ userId?: boolean
558
+ provider?: boolean
559
+ providerAccountId?: boolean
560
+ accessToken?: boolean
561
+ refreshToken?: boolean
562
+ expiresAt?: boolean
563
+ createdAt?: boolean
564
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
565
+ }, ExtArgs["result"]["oAuthAccount"]>
566
+
567
+ export type OAuthAccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
568
+ id?: boolean
569
+ userId?: boolean
570
+ provider?: boolean
571
+ providerAccountId?: boolean
572
+ accessToken?: boolean
573
+ refreshToken?: boolean
574
+ expiresAt?: boolean
575
+ createdAt?: boolean
576
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
577
+ }, ExtArgs["result"]["oAuthAccount"]>
578
+
579
+ export type OAuthAccountSelectScalar = {
580
+ id?: boolean
581
+ userId?: boolean
582
+ provider?: boolean
583
+ providerAccountId?: boolean
584
+ accessToken?: boolean
585
+ refreshToken?: boolean
586
+ expiresAt?: boolean
587
+ createdAt?: boolean
588
+ }
589
+
590
+ export type OAuthAccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "provider" | "providerAccountId" | "accessToken" | "refreshToken" | "expiresAt" | "createdAt", ExtArgs["result"]["oAuthAccount"]>
591
+ export type OAuthAccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
592
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
593
+ }
594
+ export type OAuthAccountIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
595
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
596
+ }
597
+ export type OAuthAccountIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
598
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
599
+ }
600
+
601
+ export type $OAuthAccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
602
+ name: "OAuthAccount"
603
+ objects: {
604
+ user: Prisma.$UserPayload<ExtArgs>
605
+ }
606
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
607
+ id: string
608
+ userId: string
609
+ provider: string
610
+ providerAccountId: string
611
+ accessToken: string | null
612
+ refreshToken: string | null
613
+ expiresAt: Date | null
614
+ createdAt: Date
615
+ }, ExtArgs["result"]["oAuthAccount"]>
616
+ composites: {}
617
+ }
618
+
619
+ export type OAuthAccountGetPayload<S extends boolean | null | undefined | OAuthAccountDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload, S>
620
+
621
+ export type OAuthAccountCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
622
+ Omit<OAuthAccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
623
+ select?: OAuthAccountCountAggregateInputType | true
624
+ }
625
+
626
+ export interface OAuthAccountDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
627
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['OAuthAccount'], meta: { name: 'OAuthAccount' } }
628
+ /**
629
+ * Find zero or one OAuthAccount that matches the filter.
630
+ * @param {OAuthAccountFindUniqueArgs} args - Arguments to find a OAuthAccount
631
+ * @example
632
+ * // Get one OAuthAccount
633
+ * const oAuthAccount = await prisma.oAuthAccount.findUnique({
634
+ * where: {
635
+ * // ... provide filter here
636
+ * }
637
+ * })
638
+ */
639
+ findUnique<T extends OAuthAccountFindUniqueArgs>(args: Prisma.SelectSubset<T, OAuthAccountFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OAuthAccountClient<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
640
+
641
+ /**
642
+ * Find one OAuthAccount that matches the filter or throw an error with `error.code='P2025'`
643
+ * if no matches were found.
644
+ * @param {OAuthAccountFindUniqueOrThrowArgs} args - Arguments to find a OAuthAccount
645
+ * @example
646
+ * // Get one OAuthAccount
647
+ * const oAuthAccount = await prisma.oAuthAccount.findUniqueOrThrow({
648
+ * where: {
649
+ * // ... provide filter here
650
+ * }
651
+ * })
652
+ */
653
+ findUniqueOrThrow<T extends OAuthAccountFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OAuthAccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OAuthAccountClient<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
654
+
655
+ /**
656
+ * Find the first OAuthAccount that matches the filter.
657
+ * Note, that providing `undefined` is treated as the value not being there.
658
+ * Read more here: https://pris.ly/d/null-undefined
659
+ * @param {OAuthAccountFindFirstArgs} args - Arguments to find a OAuthAccount
660
+ * @example
661
+ * // Get one OAuthAccount
662
+ * const oAuthAccount = await prisma.oAuthAccount.findFirst({
663
+ * where: {
664
+ * // ... provide filter here
665
+ * }
666
+ * })
667
+ */
668
+ findFirst<T extends OAuthAccountFindFirstArgs>(args?: Prisma.SelectSubset<T, OAuthAccountFindFirstArgs<ExtArgs>>): Prisma.Prisma__OAuthAccountClient<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
669
+
670
+ /**
671
+ * Find the first OAuthAccount that matches the filter or
672
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
673
+ * Note, that providing `undefined` is treated as the value not being there.
674
+ * Read more here: https://pris.ly/d/null-undefined
675
+ * @param {OAuthAccountFindFirstOrThrowArgs} args - Arguments to find a OAuthAccount
676
+ * @example
677
+ * // Get one OAuthAccount
678
+ * const oAuthAccount = await prisma.oAuthAccount.findFirstOrThrow({
679
+ * where: {
680
+ * // ... provide filter here
681
+ * }
682
+ * })
683
+ */
684
+ findFirstOrThrow<T extends OAuthAccountFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OAuthAccountFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OAuthAccountClient<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
685
+
686
+ /**
687
+ * Find zero or more OAuthAccounts that matches the filter.
688
+ * Note, that providing `undefined` is treated as the value not being there.
689
+ * Read more here: https://pris.ly/d/null-undefined
690
+ * @param {OAuthAccountFindManyArgs} args - Arguments to filter and select certain fields only.
691
+ * @example
692
+ * // Get all OAuthAccounts
693
+ * const oAuthAccounts = await prisma.oAuthAccount.findMany()
694
+ *
695
+ * // Get first 10 OAuthAccounts
696
+ * const oAuthAccounts = await prisma.oAuthAccount.findMany({ take: 10 })
697
+ *
698
+ * // Only select the `id`
699
+ * const oAuthAccountWithIdOnly = await prisma.oAuthAccount.findMany({ select: { id: true } })
700
+ *
701
+ */
702
+ findMany<T extends OAuthAccountFindManyArgs>(args?: Prisma.SelectSubset<T, OAuthAccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
703
+
704
+ /**
705
+ * Create a OAuthAccount.
706
+ * @param {OAuthAccountCreateArgs} args - Arguments to create a OAuthAccount.
707
+ * @example
708
+ * // Create one OAuthAccount
709
+ * const OAuthAccount = await prisma.oAuthAccount.create({
710
+ * data: {
711
+ * // ... data to create a OAuthAccount
712
+ * }
713
+ * })
714
+ *
715
+ */
716
+ create<T extends OAuthAccountCreateArgs>(args: Prisma.SelectSubset<T, OAuthAccountCreateArgs<ExtArgs>>): Prisma.Prisma__OAuthAccountClient<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
717
+
718
+ /**
719
+ * Create many OAuthAccounts.
720
+ * @param {OAuthAccountCreateManyArgs} args - Arguments to create many OAuthAccounts.
721
+ * @example
722
+ * // Create many OAuthAccounts
723
+ * const oAuthAccount = await prisma.oAuthAccount.createMany({
724
+ * data: [
725
+ * // ... provide data here
726
+ * ]
727
+ * })
728
+ *
729
+ */
730
+ createMany<T extends OAuthAccountCreateManyArgs>(args?: Prisma.SelectSubset<T, OAuthAccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
731
+
732
+ /**
733
+ * Create many OAuthAccounts and returns the data saved in the database.
734
+ * @param {OAuthAccountCreateManyAndReturnArgs} args - Arguments to create many OAuthAccounts.
735
+ * @example
736
+ * // Create many OAuthAccounts
737
+ * const oAuthAccount = await prisma.oAuthAccount.createManyAndReturn({
738
+ * data: [
739
+ * // ... provide data here
740
+ * ]
741
+ * })
742
+ *
743
+ * // Create many OAuthAccounts and only return the `id`
744
+ * const oAuthAccountWithIdOnly = await prisma.oAuthAccount.createManyAndReturn({
745
+ * select: { id: true },
746
+ * data: [
747
+ * // ... provide data here
748
+ * ]
749
+ * })
750
+ * Note, that providing `undefined` is treated as the value not being there.
751
+ * Read more here: https://pris.ly/d/null-undefined
752
+ *
753
+ */
754
+ createManyAndReturn<T extends OAuthAccountCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OAuthAccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
755
+
756
+ /**
757
+ * Delete a OAuthAccount.
758
+ * @param {OAuthAccountDeleteArgs} args - Arguments to delete one OAuthAccount.
759
+ * @example
760
+ * // Delete one OAuthAccount
761
+ * const OAuthAccount = await prisma.oAuthAccount.delete({
762
+ * where: {
763
+ * // ... filter to delete one OAuthAccount
764
+ * }
765
+ * })
766
+ *
767
+ */
768
+ delete<T extends OAuthAccountDeleteArgs>(args: Prisma.SelectSubset<T, OAuthAccountDeleteArgs<ExtArgs>>): Prisma.Prisma__OAuthAccountClient<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
769
+
770
+ /**
771
+ * Update one OAuthAccount.
772
+ * @param {OAuthAccountUpdateArgs} args - Arguments to update one OAuthAccount.
773
+ * @example
774
+ * // Update one OAuthAccount
775
+ * const oAuthAccount = await prisma.oAuthAccount.update({
776
+ * where: {
777
+ * // ... provide filter here
778
+ * },
779
+ * data: {
780
+ * // ... provide data here
781
+ * }
782
+ * })
783
+ *
784
+ */
785
+ update<T extends OAuthAccountUpdateArgs>(args: Prisma.SelectSubset<T, OAuthAccountUpdateArgs<ExtArgs>>): Prisma.Prisma__OAuthAccountClient<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
786
+
787
+ /**
788
+ * Delete zero or more OAuthAccounts.
789
+ * @param {OAuthAccountDeleteManyArgs} args - Arguments to filter OAuthAccounts to delete.
790
+ * @example
791
+ * // Delete a few OAuthAccounts
792
+ * const { count } = await prisma.oAuthAccount.deleteMany({
793
+ * where: {
794
+ * // ... provide filter here
795
+ * }
796
+ * })
797
+ *
798
+ */
799
+ deleteMany<T extends OAuthAccountDeleteManyArgs>(args?: Prisma.SelectSubset<T, OAuthAccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
800
+
801
+ /**
802
+ * Update zero or more OAuthAccounts.
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 {OAuthAccountUpdateManyArgs} args - Arguments to update one or more rows.
806
+ * @example
807
+ * // Update many OAuthAccounts
808
+ * const oAuthAccount = await prisma.oAuthAccount.updateMany({
809
+ * where: {
810
+ * // ... provide filter here
811
+ * },
812
+ * data: {
813
+ * // ... provide data here
814
+ * }
815
+ * })
816
+ *
817
+ */
818
+ updateMany<T extends OAuthAccountUpdateManyArgs>(args: Prisma.SelectSubset<T, OAuthAccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
819
+
820
+ /**
821
+ * Update zero or more OAuthAccounts and returns the data updated in the database.
822
+ * @param {OAuthAccountUpdateManyAndReturnArgs} args - Arguments to update many OAuthAccounts.
823
+ * @example
824
+ * // Update many OAuthAccounts
825
+ * const oAuthAccount = await prisma.oAuthAccount.updateManyAndReturn({
826
+ * where: {
827
+ * // ... provide filter here
828
+ * },
829
+ * data: [
830
+ * // ... provide data here
831
+ * ]
832
+ * })
833
+ *
834
+ * // Update zero or more OAuthAccounts and only return the `id`
835
+ * const oAuthAccountWithIdOnly = await prisma.oAuthAccount.updateManyAndReturn({
836
+ * select: { id: true },
837
+ * where: {
838
+ * // ... provide filter here
839
+ * },
840
+ * data: [
841
+ * // ... provide data here
842
+ * ]
843
+ * })
844
+ * Note, that providing `undefined` is treated as the value not being there.
845
+ * Read more here: https://pris.ly/d/null-undefined
846
+ *
847
+ */
848
+ updateManyAndReturn<T extends OAuthAccountUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OAuthAccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
849
+
850
+ /**
851
+ * Create or update one OAuthAccount.
852
+ * @param {OAuthAccountUpsertArgs} args - Arguments to update or create a OAuthAccount.
853
+ * @example
854
+ * // Update or create a OAuthAccount
855
+ * const oAuthAccount = await prisma.oAuthAccount.upsert({
856
+ * create: {
857
+ * // ... data to create a OAuthAccount
858
+ * },
859
+ * update: {
860
+ * // ... in case it already exists, update
861
+ * },
862
+ * where: {
863
+ * // ... the filter for the OAuthAccount we want to update
864
+ * }
865
+ * })
866
+ */
867
+ upsert<T extends OAuthAccountUpsertArgs>(args: Prisma.SelectSubset<T, OAuthAccountUpsertArgs<ExtArgs>>): Prisma.Prisma__OAuthAccountClient<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
868
+
869
+
870
+ /**
871
+ * Count the number of OAuthAccounts.
872
+ * Note, that providing `undefined` is treated as the value not being there.
873
+ * Read more here: https://pris.ly/d/null-undefined
874
+ * @param {OAuthAccountCountArgs} args - Arguments to filter OAuthAccounts to count.
875
+ * @example
876
+ * // Count the number of OAuthAccounts
877
+ * const count = await prisma.oAuthAccount.count({
878
+ * where: {
879
+ * // ... the filter for the OAuthAccounts we want to count
880
+ * }
881
+ * })
882
+ **/
883
+ count<T extends OAuthAccountCountArgs>(
884
+ args?: Prisma.Subset<T, OAuthAccountCountArgs>,
885
+ ): Prisma.PrismaPromise<
886
+ T extends runtime.Types.Utils.Record<'select', any>
887
+ ? T['select'] extends true
888
+ ? number
889
+ : Prisma.GetScalarType<T['select'], OAuthAccountCountAggregateOutputType>
890
+ : number
891
+ >
892
+
893
+ /**
894
+ * Allows you to perform aggregations operations on a OAuthAccount.
895
+ * Note, that providing `undefined` is treated as the value not being there.
896
+ * Read more here: https://pris.ly/d/null-undefined
897
+ * @param {OAuthAccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
898
+ * @example
899
+ * // Ordered by age ascending
900
+ * // Where email contains prisma.io
901
+ * // Limited to the 10 users
902
+ * const aggregations = await prisma.user.aggregate({
903
+ * _avg: {
904
+ * age: true,
905
+ * },
906
+ * where: {
907
+ * email: {
908
+ * contains: "prisma.io",
909
+ * },
910
+ * },
911
+ * orderBy: {
912
+ * age: "asc",
913
+ * },
914
+ * take: 10,
915
+ * })
916
+ **/
917
+ aggregate<T extends OAuthAccountAggregateArgs>(args: Prisma.Subset<T, OAuthAccountAggregateArgs>): Prisma.PrismaPromise<GetOAuthAccountAggregateType<T>>
918
+
919
+ /**
920
+ * Group by OAuthAccount.
921
+ * Note, that providing `undefined` is treated as the value not being there.
922
+ * Read more here: https://pris.ly/d/null-undefined
923
+ * @param {OAuthAccountGroupByArgs} args - Group by arguments.
924
+ * @example
925
+ * // Group by city, order by createdAt, get count
926
+ * const result = await prisma.user.groupBy({
927
+ * by: ['city', 'createdAt'],
928
+ * orderBy: {
929
+ * createdAt: true
930
+ * },
931
+ * _count: {
932
+ * _all: true
933
+ * },
934
+ * })
935
+ *
936
+ **/
937
+ groupBy<
938
+ T extends OAuthAccountGroupByArgs,
939
+ HasSelectOrTake extends Prisma.Or<
940
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
941
+ Prisma.Extends<'take', Prisma.Keys<T>>
942
+ >,
943
+ OrderByArg extends Prisma.True extends HasSelectOrTake
944
+ ? { orderBy: OAuthAccountGroupByArgs['orderBy'] }
945
+ : { orderBy?: OAuthAccountGroupByArgs['orderBy'] },
946
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
947
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
948
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
949
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
950
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
951
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
952
+ InputErrors extends ByEmpty extends Prisma.True
953
+ ? `Error: "by" must not be empty.`
954
+ : HavingValid extends Prisma.False
955
+ ? {
956
+ [P in HavingFields]: P extends ByFields
957
+ ? never
958
+ : P extends string
959
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
960
+ : [
961
+ Error,
962
+ 'Field ',
963
+ P,
964
+ ` in "having" needs to be provided in "by"`,
965
+ ]
966
+ }[HavingFields]
967
+ : 'take' extends Prisma.Keys<T>
968
+ ? 'orderBy' extends Prisma.Keys<T>
969
+ ? ByValid extends Prisma.True
970
+ ? {}
971
+ : {
972
+ [P in OrderFields]: P extends ByFields
973
+ ? never
974
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
975
+ }[OrderFields]
976
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
977
+ : 'skip' extends Prisma.Keys<T>
978
+ ? 'orderBy' extends Prisma.Keys<T>
979
+ ? ByValid extends Prisma.True
980
+ ? {}
981
+ : {
982
+ [P in OrderFields]: P extends ByFields
983
+ ? never
984
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
985
+ }[OrderFields]
986
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
987
+ : ByValid extends Prisma.True
988
+ ? {}
989
+ : {
990
+ [P in OrderFields]: P extends ByFields
991
+ ? never
992
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
993
+ }[OrderFields]
994
+ >(args: Prisma.SubsetIntersection<T, OAuthAccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOAuthAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
995
+ /**
996
+ * Fields of the OAuthAccount model
997
+ */
998
+ readonly fields: OAuthAccountFieldRefs;
999
+ }
1000
+
1001
+ /**
1002
+ * The delegate class that acts as a "Promise-like" for OAuthAccount.
1003
+ * Why is this prefixed with `Prisma__`?
1004
+ * Because we want to prevent naming conflicts as mentioned in
1005
+ * https://github.com/prisma/prisma-client-js/issues/707
1006
+ */
1007
+ export interface Prisma__OAuthAccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1008
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1009
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1010
+ /**
1011
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1012
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1013
+ * @param onrejected The callback to execute when the Promise is rejected.
1014
+ * @returns A Promise for the completion of which ever callback is executed.
1015
+ */
1016
+ 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>
1017
+ /**
1018
+ * Attaches a callback for only the rejection of the Promise.
1019
+ * @param onrejected The callback to execute when the Promise is rejected.
1020
+ * @returns A Promise for the completion of the callback.
1021
+ */
1022
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1023
+ /**
1024
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1025
+ * resolved value cannot be modified from the callback.
1026
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1027
+ * @returns A Promise for the completion of the callback.
1028
+ */
1029
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1030
+ }
1031
+
1032
+
1033
+
1034
+
1035
+ /**
1036
+ * Fields of the OAuthAccount model
1037
+ */
1038
+ export interface OAuthAccountFieldRefs {
1039
+ readonly id: Prisma.FieldRef<"OAuthAccount", 'String'>
1040
+ readonly userId: Prisma.FieldRef<"OAuthAccount", 'String'>
1041
+ readonly provider: Prisma.FieldRef<"OAuthAccount", 'String'>
1042
+ readonly providerAccountId: Prisma.FieldRef<"OAuthAccount", 'String'>
1043
+ readonly accessToken: Prisma.FieldRef<"OAuthAccount", 'String'>
1044
+ readonly refreshToken: Prisma.FieldRef<"OAuthAccount", 'String'>
1045
+ readonly expiresAt: Prisma.FieldRef<"OAuthAccount", 'DateTime'>
1046
+ readonly createdAt: Prisma.FieldRef<"OAuthAccount", 'DateTime'>
1047
+ }
1048
+
1049
+
1050
+ // Custom InputTypes
1051
+ /**
1052
+ * OAuthAccount findUnique
1053
+ */
1054
+ export type OAuthAccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1055
+ /**
1056
+ * Select specific fields to fetch from the OAuthAccount
1057
+ */
1058
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1059
+ /**
1060
+ * Omit specific fields from the OAuthAccount
1061
+ */
1062
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1063
+ /**
1064
+ * Choose, which related nodes to fetch as well
1065
+ */
1066
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1067
+ /**
1068
+ * Filter, which OAuthAccount to fetch.
1069
+ */
1070
+ where: Prisma.OAuthAccountWhereUniqueInput
1071
+ }
1072
+
1073
+ /**
1074
+ * OAuthAccount findUniqueOrThrow
1075
+ */
1076
+ export type OAuthAccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1077
+ /**
1078
+ * Select specific fields to fetch from the OAuthAccount
1079
+ */
1080
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1081
+ /**
1082
+ * Omit specific fields from the OAuthAccount
1083
+ */
1084
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1085
+ /**
1086
+ * Choose, which related nodes to fetch as well
1087
+ */
1088
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1089
+ /**
1090
+ * Filter, which OAuthAccount to fetch.
1091
+ */
1092
+ where: Prisma.OAuthAccountWhereUniqueInput
1093
+ }
1094
+
1095
+ /**
1096
+ * OAuthAccount findFirst
1097
+ */
1098
+ export type OAuthAccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1099
+ /**
1100
+ * Select specific fields to fetch from the OAuthAccount
1101
+ */
1102
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1103
+ /**
1104
+ * Omit specific fields from the OAuthAccount
1105
+ */
1106
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1107
+ /**
1108
+ * Choose, which related nodes to fetch as well
1109
+ */
1110
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1111
+ /**
1112
+ * Filter, which OAuthAccount to fetch.
1113
+ */
1114
+ where?: Prisma.OAuthAccountWhereInput
1115
+ /**
1116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1117
+ *
1118
+ * Determine the order of OAuthAccounts to fetch.
1119
+ */
1120
+ orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[]
1121
+ /**
1122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1123
+ *
1124
+ * Sets the position for searching for OAuthAccounts.
1125
+ */
1126
+ cursor?: Prisma.OAuthAccountWhereUniqueInput
1127
+ /**
1128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1129
+ *
1130
+ * Take `±n` OAuthAccounts from the position of the cursor.
1131
+ */
1132
+ take?: number
1133
+ /**
1134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1135
+ *
1136
+ * Skip the first `n` OAuthAccounts.
1137
+ */
1138
+ skip?: number
1139
+ /**
1140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1141
+ *
1142
+ * Filter by unique combinations of OAuthAccounts.
1143
+ */
1144
+ distinct?: Prisma.OAuthAccountScalarFieldEnum | Prisma.OAuthAccountScalarFieldEnum[]
1145
+ }
1146
+
1147
+ /**
1148
+ * OAuthAccount findFirstOrThrow
1149
+ */
1150
+ export type OAuthAccountFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1151
+ /**
1152
+ * Select specific fields to fetch from the OAuthAccount
1153
+ */
1154
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1155
+ /**
1156
+ * Omit specific fields from the OAuthAccount
1157
+ */
1158
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1159
+ /**
1160
+ * Choose, which related nodes to fetch as well
1161
+ */
1162
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1163
+ /**
1164
+ * Filter, which OAuthAccount to fetch.
1165
+ */
1166
+ where?: Prisma.OAuthAccountWhereInput
1167
+ /**
1168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1169
+ *
1170
+ * Determine the order of OAuthAccounts to fetch.
1171
+ */
1172
+ orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[]
1173
+ /**
1174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1175
+ *
1176
+ * Sets the position for searching for OAuthAccounts.
1177
+ */
1178
+ cursor?: Prisma.OAuthAccountWhereUniqueInput
1179
+ /**
1180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1181
+ *
1182
+ * Take `±n` OAuthAccounts from the position of the cursor.
1183
+ */
1184
+ take?: number
1185
+ /**
1186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1187
+ *
1188
+ * Skip the first `n` OAuthAccounts.
1189
+ */
1190
+ skip?: number
1191
+ /**
1192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1193
+ *
1194
+ * Filter by unique combinations of OAuthAccounts.
1195
+ */
1196
+ distinct?: Prisma.OAuthAccountScalarFieldEnum | Prisma.OAuthAccountScalarFieldEnum[]
1197
+ }
1198
+
1199
+ /**
1200
+ * OAuthAccount findMany
1201
+ */
1202
+ export type OAuthAccountFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1203
+ /**
1204
+ * Select specific fields to fetch from the OAuthAccount
1205
+ */
1206
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1207
+ /**
1208
+ * Omit specific fields from the OAuthAccount
1209
+ */
1210
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1211
+ /**
1212
+ * Choose, which related nodes to fetch as well
1213
+ */
1214
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1215
+ /**
1216
+ * Filter, which OAuthAccounts to fetch.
1217
+ */
1218
+ where?: Prisma.OAuthAccountWhereInput
1219
+ /**
1220
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1221
+ *
1222
+ * Determine the order of OAuthAccounts to fetch.
1223
+ */
1224
+ orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[]
1225
+ /**
1226
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1227
+ *
1228
+ * Sets the position for listing OAuthAccounts.
1229
+ */
1230
+ cursor?: Prisma.OAuthAccountWhereUniqueInput
1231
+ /**
1232
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1233
+ *
1234
+ * Take `±n` OAuthAccounts from the position of the cursor.
1235
+ */
1236
+ take?: number
1237
+ /**
1238
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1239
+ *
1240
+ * Skip the first `n` OAuthAccounts.
1241
+ */
1242
+ skip?: number
1243
+ /**
1244
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1245
+ *
1246
+ * Filter by unique combinations of OAuthAccounts.
1247
+ */
1248
+ distinct?: Prisma.OAuthAccountScalarFieldEnum | Prisma.OAuthAccountScalarFieldEnum[]
1249
+ }
1250
+
1251
+ /**
1252
+ * OAuthAccount create
1253
+ */
1254
+ export type OAuthAccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1255
+ /**
1256
+ * Select specific fields to fetch from the OAuthAccount
1257
+ */
1258
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1259
+ /**
1260
+ * Omit specific fields from the OAuthAccount
1261
+ */
1262
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1263
+ /**
1264
+ * Choose, which related nodes to fetch as well
1265
+ */
1266
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1267
+ /**
1268
+ * The data needed to create a OAuthAccount.
1269
+ */
1270
+ data: Prisma.XOR<Prisma.OAuthAccountCreateInput, Prisma.OAuthAccountUncheckedCreateInput>
1271
+ }
1272
+
1273
+ /**
1274
+ * OAuthAccount createMany
1275
+ */
1276
+ export type OAuthAccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1277
+ /**
1278
+ * The data used to create many OAuthAccounts.
1279
+ */
1280
+ data: Prisma.OAuthAccountCreateManyInput | Prisma.OAuthAccountCreateManyInput[]
1281
+ skipDuplicates?: boolean
1282
+ }
1283
+
1284
+ /**
1285
+ * OAuthAccount createManyAndReturn
1286
+ */
1287
+ export type OAuthAccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1288
+ /**
1289
+ * Select specific fields to fetch from the OAuthAccount
1290
+ */
1291
+ select?: Prisma.OAuthAccountSelectCreateManyAndReturn<ExtArgs> | null
1292
+ /**
1293
+ * Omit specific fields from the OAuthAccount
1294
+ */
1295
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1296
+ /**
1297
+ * The data used to create many OAuthAccounts.
1298
+ */
1299
+ data: Prisma.OAuthAccountCreateManyInput | Prisma.OAuthAccountCreateManyInput[]
1300
+ skipDuplicates?: boolean
1301
+ /**
1302
+ * Choose, which related nodes to fetch as well
1303
+ */
1304
+ include?: Prisma.OAuthAccountIncludeCreateManyAndReturn<ExtArgs> | null
1305
+ }
1306
+
1307
+ /**
1308
+ * OAuthAccount update
1309
+ */
1310
+ export type OAuthAccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1311
+ /**
1312
+ * Select specific fields to fetch from the OAuthAccount
1313
+ */
1314
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1315
+ /**
1316
+ * Omit specific fields from the OAuthAccount
1317
+ */
1318
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1319
+ /**
1320
+ * Choose, which related nodes to fetch as well
1321
+ */
1322
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1323
+ /**
1324
+ * The data needed to update a OAuthAccount.
1325
+ */
1326
+ data: Prisma.XOR<Prisma.OAuthAccountUpdateInput, Prisma.OAuthAccountUncheckedUpdateInput>
1327
+ /**
1328
+ * Choose, which OAuthAccount to update.
1329
+ */
1330
+ where: Prisma.OAuthAccountWhereUniqueInput
1331
+ }
1332
+
1333
+ /**
1334
+ * OAuthAccount updateMany
1335
+ */
1336
+ export type OAuthAccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1337
+ /**
1338
+ * The data used to update OAuthAccounts.
1339
+ */
1340
+ data: Prisma.XOR<Prisma.OAuthAccountUpdateManyMutationInput, Prisma.OAuthAccountUncheckedUpdateManyInput>
1341
+ /**
1342
+ * Filter which OAuthAccounts to update
1343
+ */
1344
+ where?: Prisma.OAuthAccountWhereInput
1345
+ /**
1346
+ * Limit how many OAuthAccounts to update.
1347
+ */
1348
+ limit?: number
1349
+ }
1350
+
1351
+ /**
1352
+ * OAuthAccount updateManyAndReturn
1353
+ */
1354
+ export type OAuthAccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1355
+ /**
1356
+ * Select specific fields to fetch from the OAuthAccount
1357
+ */
1358
+ select?: Prisma.OAuthAccountSelectUpdateManyAndReturn<ExtArgs> | null
1359
+ /**
1360
+ * Omit specific fields from the OAuthAccount
1361
+ */
1362
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1363
+ /**
1364
+ * The data used to update OAuthAccounts.
1365
+ */
1366
+ data: Prisma.XOR<Prisma.OAuthAccountUpdateManyMutationInput, Prisma.OAuthAccountUncheckedUpdateManyInput>
1367
+ /**
1368
+ * Filter which OAuthAccounts to update
1369
+ */
1370
+ where?: Prisma.OAuthAccountWhereInput
1371
+ /**
1372
+ * Limit how many OAuthAccounts to update.
1373
+ */
1374
+ limit?: number
1375
+ /**
1376
+ * Choose, which related nodes to fetch as well
1377
+ */
1378
+ include?: Prisma.OAuthAccountIncludeUpdateManyAndReturn<ExtArgs> | null
1379
+ }
1380
+
1381
+ /**
1382
+ * OAuthAccount upsert
1383
+ */
1384
+ export type OAuthAccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1385
+ /**
1386
+ * Select specific fields to fetch from the OAuthAccount
1387
+ */
1388
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1389
+ /**
1390
+ * Omit specific fields from the OAuthAccount
1391
+ */
1392
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1393
+ /**
1394
+ * Choose, which related nodes to fetch as well
1395
+ */
1396
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1397
+ /**
1398
+ * The filter to search for the OAuthAccount to update in case it exists.
1399
+ */
1400
+ where: Prisma.OAuthAccountWhereUniqueInput
1401
+ /**
1402
+ * In case the OAuthAccount found by the `where` argument doesn't exist, create a new OAuthAccount with this data.
1403
+ */
1404
+ create: Prisma.XOR<Prisma.OAuthAccountCreateInput, Prisma.OAuthAccountUncheckedCreateInput>
1405
+ /**
1406
+ * In case the OAuthAccount was found with the provided `where` argument, update it with this data.
1407
+ */
1408
+ update: Prisma.XOR<Prisma.OAuthAccountUpdateInput, Prisma.OAuthAccountUncheckedUpdateInput>
1409
+ }
1410
+
1411
+ /**
1412
+ * OAuthAccount delete
1413
+ */
1414
+ export type OAuthAccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1415
+ /**
1416
+ * Select specific fields to fetch from the OAuthAccount
1417
+ */
1418
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1419
+ /**
1420
+ * Omit specific fields from the OAuthAccount
1421
+ */
1422
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1423
+ /**
1424
+ * Choose, which related nodes to fetch as well
1425
+ */
1426
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1427
+ /**
1428
+ * Filter which OAuthAccount to delete.
1429
+ */
1430
+ where: Prisma.OAuthAccountWhereUniqueInput
1431
+ }
1432
+
1433
+ /**
1434
+ * OAuthAccount deleteMany
1435
+ */
1436
+ export type OAuthAccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1437
+ /**
1438
+ * Filter which OAuthAccounts to delete
1439
+ */
1440
+ where?: Prisma.OAuthAccountWhereInput
1441
+ /**
1442
+ * Limit how many OAuthAccounts to delete.
1443
+ */
1444
+ limit?: number
1445
+ }
1446
+
1447
+ /**
1448
+ * OAuthAccount without action
1449
+ */
1450
+ export type OAuthAccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1451
+ /**
1452
+ * Select specific fields to fetch from the OAuthAccount
1453
+ */
1454
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null
1455
+ /**
1456
+ * Omit specific fields from the OAuthAccount
1457
+ */
1458
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null
1459
+ /**
1460
+ * Choose, which related nodes to fetch as well
1461
+ */
1462
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null
1463
+ }