@allbluecn/database 0.3.14 → 0.4.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 (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1648 @@
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 `Account` 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 Account
17
+ *
18
+ */
19
+ export type AccountModel = runtime.Types.Result.DefaultSelection<Prisma.$AccountPayload>
20
+
21
+ export type AggregateAccount = {
22
+ _count: AccountCountAggregateOutputType | null
23
+ _avg: AccountAvgAggregateOutputType | null
24
+ _sum: AccountSumAggregateOutputType | null
25
+ _min: AccountMinAggregateOutputType | null
26
+ _max: AccountMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type AccountAvgAggregateOutputType = {
30
+ expires_at: number | null
31
+ }
32
+
33
+ export type AccountSumAggregateOutputType = {
34
+ expires_at: number | null
35
+ }
36
+
37
+ export type AccountMinAggregateOutputType = {
38
+ id: string | null
39
+ userId: string | null
40
+ type: string | null
41
+ provider: string | null
42
+ providerAccountId: string | null
43
+ refresh_token: string | null
44
+ access_token: string | null
45
+ expires_at: number | null
46
+ token_type: string | null
47
+ scope: string | null
48
+ id_token: string | null
49
+ session_state: string | null
50
+ }
51
+
52
+ export type AccountMaxAggregateOutputType = {
53
+ id: string | null
54
+ userId: string | null
55
+ type: string | null
56
+ provider: string | null
57
+ providerAccountId: string | null
58
+ refresh_token: string | null
59
+ access_token: string | null
60
+ expires_at: number | null
61
+ token_type: string | null
62
+ scope: string | null
63
+ id_token: string | null
64
+ session_state: string | null
65
+ }
66
+
67
+ export type AccountCountAggregateOutputType = {
68
+ id: number
69
+ userId: number
70
+ type: number
71
+ provider: number
72
+ providerAccountId: number
73
+ refresh_token: number
74
+ access_token: number
75
+ expires_at: number
76
+ token_type: number
77
+ scope: number
78
+ id_token: number
79
+ session_state: number
80
+ _all: number
81
+ }
82
+
83
+
84
+ export type AccountAvgAggregateInputType = {
85
+ expires_at?: true
86
+ }
87
+
88
+ export type AccountSumAggregateInputType = {
89
+ expires_at?: true
90
+ }
91
+
92
+ export type AccountMinAggregateInputType = {
93
+ id?: true
94
+ userId?: true
95
+ type?: true
96
+ provider?: true
97
+ providerAccountId?: true
98
+ refresh_token?: true
99
+ access_token?: true
100
+ expires_at?: true
101
+ token_type?: true
102
+ scope?: true
103
+ id_token?: true
104
+ session_state?: true
105
+ }
106
+
107
+ export type AccountMaxAggregateInputType = {
108
+ id?: true
109
+ userId?: true
110
+ type?: true
111
+ provider?: true
112
+ providerAccountId?: true
113
+ refresh_token?: true
114
+ access_token?: true
115
+ expires_at?: true
116
+ token_type?: true
117
+ scope?: true
118
+ id_token?: true
119
+ session_state?: true
120
+ }
121
+
122
+ export type AccountCountAggregateInputType = {
123
+ id?: true
124
+ userId?: true
125
+ type?: true
126
+ provider?: true
127
+ providerAccountId?: true
128
+ refresh_token?: true
129
+ access_token?: true
130
+ expires_at?: true
131
+ token_type?: true
132
+ scope?: true
133
+ id_token?: true
134
+ session_state?: true
135
+ _all?: true
136
+ }
137
+
138
+ export type AccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
139
+ /**
140
+ * Filter which Account to aggregate.
141
+ */
142
+ where?: Prisma.AccountWhereInput
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
145
+ *
146
+ * Determine the order of Accounts to fetch.
147
+ */
148
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
151
+ *
152
+ * Sets the start position
153
+ */
154
+ cursor?: Prisma.AccountWhereUniqueInput
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
157
+ *
158
+ * Take `±n` Accounts from the position of the cursor.
159
+ */
160
+ take?: number
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
163
+ *
164
+ * Skip the first `n` Accounts.
165
+ */
166
+ skip?: number
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
+ *
170
+ * Count returned Accounts
171
+ **/
172
+ _count?: true | AccountCountAggregateInputType
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
+ *
176
+ * Select which fields to average
177
+ **/
178
+ _avg?: AccountAvgAggregateInputType
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
+ *
182
+ * Select which fields to sum
183
+ **/
184
+ _sum?: AccountSumAggregateInputType
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
187
+ *
188
+ * Select which fields to find the minimum value
189
+ **/
190
+ _min?: AccountMinAggregateInputType
191
+ /**
192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
+ *
194
+ * Select which fields to find the maximum value
195
+ **/
196
+ _max?: AccountMaxAggregateInputType
197
+ }
198
+
199
+ export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
200
+ [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
201
+ ? T[P] extends true
202
+ ? number
203
+ : Prisma.GetScalarType<T[P], AggregateAccount[P]>
204
+ : Prisma.GetScalarType<T[P], AggregateAccount[P]>
205
+ }
206
+
207
+
208
+
209
+
210
+ export type AccountGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
211
+ where?: Prisma.AccountWhereInput
212
+ orderBy?: Prisma.AccountOrderByWithAggregationInput | Prisma.AccountOrderByWithAggregationInput[]
213
+ by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum
214
+ having?: Prisma.AccountScalarWhereWithAggregatesInput
215
+ take?: number
216
+ skip?: number
217
+ _count?: AccountCountAggregateInputType | true
218
+ _avg?: AccountAvgAggregateInputType
219
+ _sum?: AccountSumAggregateInputType
220
+ _min?: AccountMinAggregateInputType
221
+ _max?: AccountMaxAggregateInputType
222
+ }
223
+
224
+ export type AccountGroupByOutputType = {
225
+ id: string
226
+ userId: string
227
+ type: string
228
+ provider: string
229
+ providerAccountId: string
230
+ refresh_token: string | null
231
+ access_token: string | null
232
+ expires_at: number | null
233
+ token_type: string | null
234
+ scope: string | null
235
+ id_token: string | null
236
+ session_state: string | null
237
+ _count: AccountCountAggregateOutputType | null
238
+ _avg: AccountAvgAggregateOutputType | null
239
+ _sum: AccountSumAggregateOutputType | null
240
+ _min: AccountMinAggregateOutputType | null
241
+ _max: AccountMaxAggregateOutputType | null
242
+ }
243
+
244
+ export type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
245
+ Array<
246
+ Prisma.PickEnumerable<AccountGroupByOutputType, T['by']> &
247
+ {
248
+ [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
249
+ ? T[P] extends boolean
250
+ ? number
251
+ : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>
252
+ : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>
253
+ }
254
+ >
255
+ >
256
+
257
+
258
+
259
+ export type AccountWhereInput = {
260
+ AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
261
+ OR?: Prisma.AccountWhereInput[]
262
+ NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
263
+ id?: Prisma.StringFilter<"Account"> | string
264
+ userId?: Prisma.StringFilter<"Account"> | string
265
+ type?: Prisma.StringFilter<"Account"> | string
266
+ provider?: Prisma.StringFilter<"Account"> | string
267
+ providerAccountId?: Prisma.StringFilter<"Account"> | string
268
+ refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null
269
+ access_token?: Prisma.StringNullableFilter<"Account"> | string | null
270
+ expires_at?: Prisma.IntNullableFilter<"Account"> | number | null
271
+ token_type?: Prisma.StringNullableFilter<"Account"> | string | null
272
+ scope?: Prisma.StringNullableFilter<"Account"> | string | null
273
+ id_token?: Prisma.StringNullableFilter<"Account"> | string | null
274
+ session_state?: Prisma.StringNullableFilter<"Account"> | string | null
275
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
276
+ }
277
+
278
+ export type AccountOrderByWithRelationInput = {
279
+ id?: Prisma.SortOrder
280
+ userId?: Prisma.SortOrder
281
+ type?: Prisma.SortOrder
282
+ provider?: Prisma.SortOrder
283
+ providerAccountId?: Prisma.SortOrder
284
+ refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder
285
+ access_token?: Prisma.SortOrderInput | Prisma.SortOrder
286
+ expires_at?: Prisma.SortOrderInput | Prisma.SortOrder
287
+ token_type?: Prisma.SortOrderInput | Prisma.SortOrder
288
+ scope?: Prisma.SortOrderInput | Prisma.SortOrder
289
+ id_token?: Prisma.SortOrderInput | Prisma.SortOrder
290
+ session_state?: Prisma.SortOrderInput | Prisma.SortOrder
291
+ user?: Prisma.UserOrderByWithRelationInput
292
+ }
293
+
294
+ export type AccountWhereUniqueInput = Prisma.AtLeast<{
295
+ id?: string
296
+ provider_providerAccountId?: Prisma.AccountProviderProviderAccountIdCompoundUniqueInput
297
+ AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
298
+ OR?: Prisma.AccountWhereInput[]
299
+ NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
300
+ userId?: Prisma.StringFilter<"Account"> | string
301
+ type?: Prisma.StringFilter<"Account"> | string
302
+ provider?: Prisma.StringFilter<"Account"> | string
303
+ providerAccountId?: Prisma.StringFilter<"Account"> | string
304
+ refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null
305
+ access_token?: Prisma.StringNullableFilter<"Account"> | string | null
306
+ expires_at?: Prisma.IntNullableFilter<"Account"> | number | null
307
+ token_type?: Prisma.StringNullableFilter<"Account"> | string | null
308
+ scope?: Prisma.StringNullableFilter<"Account"> | string | null
309
+ id_token?: Prisma.StringNullableFilter<"Account"> | string | null
310
+ session_state?: Prisma.StringNullableFilter<"Account"> | string | null
311
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
312
+ }, "id" | "provider_providerAccountId">
313
+
314
+ export type AccountOrderByWithAggregationInput = {
315
+ id?: Prisma.SortOrder
316
+ userId?: Prisma.SortOrder
317
+ type?: Prisma.SortOrder
318
+ provider?: Prisma.SortOrder
319
+ providerAccountId?: Prisma.SortOrder
320
+ refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder
321
+ access_token?: Prisma.SortOrderInput | Prisma.SortOrder
322
+ expires_at?: Prisma.SortOrderInput | Prisma.SortOrder
323
+ token_type?: Prisma.SortOrderInput | Prisma.SortOrder
324
+ scope?: Prisma.SortOrderInput | Prisma.SortOrder
325
+ id_token?: Prisma.SortOrderInput | Prisma.SortOrder
326
+ session_state?: Prisma.SortOrderInput | Prisma.SortOrder
327
+ _count?: Prisma.AccountCountOrderByAggregateInput
328
+ _avg?: Prisma.AccountAvgOrderByAggregateInput
329
+ _max?: Prisma.AccountMaxOrderByAggregateInput
330
+ _min?: Prisma.AccountMinOrderByAggregateInput
331
+ _sum?: Prisma.AccountSumOrderByAggregateInput
332
+ }
333
+
334
+ export type AccountScalarWhereWithAggregatesInput = {
335
+ AND?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[]
336
+ OR?: Prisma.AccountScalarWhereWithAggregatesInput[]
337
+ NOT?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[]
338
+ id?: Prisma.StringWithAggregatesFilter<"Account"> | string
339
+ userId?: Prisma.StringWithAggregatesFilter<"Account"> | string
340
+ type?: Prisma.StringWithAggregatesFilter<"Account"> | string
341
+ provider?: Prisma.StringWithAggregatesFilter<"Account"> | string
342
+ providerAccountId?: Prisma.StringWithAggregatesFilter<"Account"> | string
343
+ refresh_token?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
344
+ access_token?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
345
+ expires_at?: Prisma.IntNullableWithAggregatesFilter<"Account"> | number | null
346
+ token_type?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
347
+ scope?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
348
+ id_token?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
349
+ session_state?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
350
+ }
351
+
352
+ export type AccountCreateInput = {
353
+ id?: string
354
+ type: string
355
+ provider: string
356
+ providerAccountId: string
357
+ refresh_token?: string | null
358
+ access_token?: string | null
359
+ expires_at?: number | null
360
+ token_type?: string | null
361
+ scope?: string | null
362
+ id_token?: string | null
363
+ session_state?: string | null
364
+ user: Prisma.UserCreateNestedOneWithoutAccountsInput
365
+ }
366
+
367
+ export type AccountUncheckedCreateInput = {
368
+ id?: string
369
+ userId: string
370
+ type: string
371
+ provider: string
372
+ providerAccountId: string
373
+ refresh_token?: string | null
374
+ access_token?: string | null
375
+ expires_at?: number | null
376
+ token_type?: string | null
377
+ scope?: string | null
378
+ id_token?: string | null
379
+ session_state?: string | null
380
+ }
381
+
382
+ export type AccountUpdateInput = {
383
+ id?: Prisma.StringFieldUpdateOperationsInput | string
384
+ type?: Prisma.StringFieldUpdateOperationsInput | string
385
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
386
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
387
+ refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
388
+ access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
389
+ expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
390
+ token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
391
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
392
+ id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
393
+ session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
394
+ user?: Prisma.UserUpdateOneRequiredWithoutAccountsNestedInput
395
+ }
396
+
397
+ export type AccountUncheckedUpdateInput = {
398
+ id?: Prisma.StringFieldUpdateOperationsInput | string
399
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
400
+ type?: Prisma.StringFieldUpdateOperationsInput | string
401
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
402
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
403
+ refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
404
+ access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
405
+ expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
406
+ token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
407
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
408
+ id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
409
+ session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
410
+ }
411
+
412
+ export type AccountCreateManyInput = {
413
+ id?: string
414
+ userId: string
415
+ type: string
416
+ provider: string
417
+ providerAccountId: string
418
+ refresh_token?: string | null
419
+ access_token?: string | null
420
+ expires_at?: number | null
421
+ token_type?: string | null
422
+ scope?: string | null
423
+ id_token?: string | null
424
+ session_state?: string | null
425
+ }
426
+
427
+ export type AccountUpdateManyMutationInput = {
428
+ id?: Prisma.StringFieldUpdateOperationsInput | string
429
+ type?: Prisma.StringFieldUpdateOperationsInput | string
430
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
431
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
432
+ refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
433
+ access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
434
+ expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
435
+ token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
436
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
437
+ id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
438
+ session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
439
+ }
440
+
441
+ export type AccountUncheckedUpdateManyInput = {
442
+ id?: Prisma.StringFieldUpdateOperationsInput | string
443
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
444
+ type?: Prisma.StringFieldUpdateOperationsInput | string
445
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
446
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
447
+ refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
448
+ access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
449
+ expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
450
+ token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
451
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
452
+ id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
453
+ session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
454
+ }
455
+
456
+ export type AccountListRelationFilter = {
457
+ every?: Prisma.AccountWhereInput
458
+ some?: Prisma.AccountWhereInput
459
+ none?: Prisma.AccountWhereInput
460
+ }
461
+
462
+ export type AccountOrderByRelationAggregateInput = {
463
+ _count?: Prisma.SortOrder
464
+ }
465
+
466
+ export type AccountProviderProviderAccountIdCompoundUniqueInput = {
467
+ provider: string
468
+ providerAccountId: string
469
+ }
470
+
471
+ export type AccountCountOrderByAggregateInput = {
472
+ id?: Prisma.SortOrder
473
+ userId?: Prisma.SortOrder
474
+ type?: Prisma.SortOrder
475
+ provider?: Prisma.SortOrder
476
+ providerAccountId?: Prisma.SortOrder
477
+ refresh_token?: Prisma.SortOrder
478
+ access_token?: Prisma.SortOrder
479
+ expires_at?: Prisma.SortOrder
480
+ token_type?: Prisma.SortOrder
481
+ scope?: Prisma.SortOrder
482
+ id_token?: Prisma.SortOrder
483
+ session_state?: Prisma.SortOrder
484
+ }
485
+
486
+ export type AccountAvgOrderByAggregateInput = {
487
+ expires_at?: Prisma.SortOrder
488
+ }
489
+
490
+ export type AccountMaxOrderByAggregateInput = {
491
+ id?: Prisma.SortOrder
492
+ userId?: Prisma.SortOrder
493
+ type?: Prisma.SortOrder
494
+ provider?: Prisma.SortOrder
495
+ providerAccountId?: Prisma.SortOrder
496
+ refresh_token?: Prisma.SortOrder
497
+ access_token?: Prisma.SortOrder
498
+ expires_at?: Prisma.SortOrder
499
+ token_type?: Prisma.SortOrder
500
+ scope?: Prisma.SortOrder
501
+ id_token?: Prisma.SortOrder
502
+ session_state?: Prisma.SortOrder
503
+ }
504
+
505
+ export type AccountMinOrderByAggregateInput = {
506
+ id?: Prisma.SortOrder
507
+ userId?: Prisma.SortOrder
508
+ type?: Prisma.SortOrder
509
+ provider?: Prisma.SortOrder
510
+ providerAccountId?: Prisma.SortOrder
511
+ refresh_token?: Prisma.SortOrder
512
+ access_token?: Prisma.SortOrder
513
+ expires_at?: Prisma.SortOrder
514
+ token_type?: Prisma.SortOrder
515
+ scope?: Prisma.SortOrder
516
+ id_token?: Prisma.SortOrder
517
+ session_state?: Prisma.SortOrder
518
+ }
519
+
520
+ export type AccountSumOrderByAggregateInput = {
521
+ expires_at?: Prisma.SortOrder
522
+ }
523
+
524
+ export type AccountCreateNestedManyWithoutUserInput = {
525
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
526
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
527
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
528
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
529
+ }
530
+
531
+ export type AccountUncheckedCreateNestedManyWithoutUserInput = {
532
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
533
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
534
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
535
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
536
+ }
537
+
538
+ export type AccountUpdateManyWithoutUserNestedInput = {
539
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
540
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
541
+ upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[]
542
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
543
+ set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
544
+ disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
545
+ delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
546
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
547
+ update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[]
548
+ updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[]
549
+ deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
550
+ }
551
+
552
+ export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
553
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
554
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
555
+ upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[]
556
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
557
+ set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
558
+ disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
559
+ delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
560
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
561
+ update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[]
562
+ updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[]
563
+ deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
564
+ }
565
+
566
+ export type NullableIntFieldUpdateOperationsInput = {
567
+ set?: number | null
568
+ increment?: number
569
+ decrement?: number
570
+ multiply?: number
571
+ divide?: number
572
+ }
573
+
574
+ export type AccountCreateWithoutUserInput = {
575
+ id?: string
576
+ type: string
577
+ provider: string
578
+ providerAccountId: string
579
+ refresh_token?: string | null
580
+ access_token?: string | null
581
+ expires_at?: number | null
582
+ token_type?: string | null
583
+ scope?: string | null
584
+ id_token?: string | null
585
+ session_state?: string | null
586
+ }
587
+
588
+ export type AccountUncheckedCreateWithoutUserInput = {
589
+ id?: string
590
+ type: string
591
+ provider: string
592
+ providerAccountId: string
593
+ refresh_token?: string | null
594
+ access_token?: string | null
595
+ expires_at?: number | null
596
+ token_type?: string | null
597
+ scope?: string | null
598
+ id_token?: string | null
599
+ session_state?: string | null
600
+ }
601
+
602
+ export type AccountCreateOrConnectWithoutUserInput = {
603
+ where: Prisma.AccountWhereUniqueInput
604
+ create: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput>
605
+ }
606
+
607
+ export type AccountCreateManyUserInputEnvelope = {
608
+ data: Prisma.AccountCreateManyUserInput | Prisma.AccountCreateManyUserInput[]
609
+ skipDuplicates?: boolean
610
+ }
611
+
612
+ export type AccountUpsertWithWhereUniqueWithoutUserInput = {
613
+ where: Prisma.AccountWhereUniqueInput
614
+ update: Prisma.XOR<Prisma.AccountUpdateWithoutUserInput, Prisma.AccountUncheckedUpdateWithoutUserInput>
615
+ create: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput>
616
+ }
617
+
618
+ export type AccountUpdateWithWhereUniqueWithoutUserInput = {
619
+ where: Prisma.AccountWhereUniqueInput
620
+ data: Prisma.XOR<Prisma.AccountUpdateWithoutUserInput, Prisma.AccountUncheckedUpdateWithoutUserInput>
621
+ }
622
+
623
+ export type AccountUpdateManyWithWhereWithoutUserInput = {
624
+ where: Prisma.AccountScalarWhereInput
625
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyWithoutUserInput>
626
+ }
627
+
628
+ export type AccountScalarWhereInput = {
629
+ AND?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
630
+ OR?: Prisma.AccountScalarWhereInput[]
631
+ NOT?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
632
+ id?: Prisma.StringFilter<"Account"> | string
633
+ userId?: Prisma.StringFilter<"Account"> | string
634
+ type?: Prisma.StringFilter<"Account"> | string
635
+ provider?: Prisma.StringFilter<"Account"> | string
636
+ providerAccountId?: Prisma.StringFilter<"Account"> | string
637
+ refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null
638
+ access_token?: Prisma.StringNullableFilter<"Account"> | string | null
639
+ expires_at?: Prisma.IntNullableFilter<"Account"> | number | null
640
+ token_type?: Prisma.StringNullableFilter<"Account"> | string | null
641
+ scope?: Prisma.StringNullableFilter<"Account"> | string | null
642
+ id_token?: Prisma.StringNullableFilter<"Account"> | string | null
643
+ session_state?: Prisma.StringNullableFilter<"Account"> | string | null
644
+ }
645
+
646
+ export type AccountCreateManyUserInput = {
647
+ id?: string
648
+ type: string
649
+ provider: string
650
+ providerAccountId: string
651
+ refresh_token?: string | null
652
+ access_token?: string | null
653
+ expires_at?: number | null
654
+ token_type?: string | null
655
+ scope?: string | null
656
+ id_token?: string | null
657
+ session_state?: string | null
658
+ }
659
+
660
+ export type AccountUpdateWithoutUserInput = {
661
+ id?: Prisma.StringFieldUpdateOperationsInput | string
662
+ type?: Prisma.StringFieldUpdateOperationsInput | string
663
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
664
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
665
+ refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
666
+ access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
667
+ expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
668
+ token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
669
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
670
+ id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
671
+ session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
672
+ }
673
+
674
+ export type AccountUncheckedUpdateWithoutUserInput = {
675
+ id?: Prisma.StringFieldUpdateOperationsInput | string
676
+ type?: Prisma.StringFieldUpdateOperationsInput | string
677
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
678
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
679
+ refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
680
+ access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
681
+ expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
682
+ token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
683
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
684
+ id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
685
+ session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
686
+ }
687
+
688
+ export type AccountUncheckedUpdateManyWithoutUserInput = {
689
+ id?: Prisma.StringFieldUpdateOperationsInput | string
690
+ type?: Prisma.StringFieldUpdateOperationsInput | string
691
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
692
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
693
+ refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
694
+ access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
695
+ expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
696
+ token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
697
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
698
+ id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
699
+ session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
700
+ }
701
+
702
+
703
+
704
+ export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
705
+ id?: boolean
706
+ userId?: boolean
707
+ type?: boolean
708
+ provider?: boolean
709
+ providerAccountId?: boolean
710
+ refresh_token?: boolean
711
+ access_token?: boolean
712
+ expires_at?: boolean
713
+ token_type?: boolean
714
+ scope?: boolean
715
+ id_token?: boolean
716
+ session_state?: boolean
717
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
718
+ }, ExtArgs["result"]["account"]>
719
+
720
+ export type AccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
721
+ id?: boolean
722
+ userId?: boolean
723
+ type?: boolean
724
+ provider?: boolean
725
+ providerAccountId?: boolean
726
+ refresh_token?: boolean
727
+ access_token?: boolean
728
+ expires_at?: boolean
729
+ token_type?: boolean
730
+ scope?: boolean
731
+ id_token?: boolean
732
+ session_state?: boolean
733
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
734
+ }, ExtArgs["result"]["account"]>
735
+
736
+ export type AccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
737
+ id?: boolean
738
+ userId?: boolean
739
+ type?: boolean
740
+ provider?: boolean
741
+ providerAccountId?: boolean
742
+ refresh_token?: boolean
743
+ access_token?: boolean
744
+ expires_at?: boolean
745
+ token_type?: boolean
746
+ scope?: boolean
747
+ id_token?: boolean
748
+ session_state?: boolean
749
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
750
+ }, ExtArgs["result"]["account"]>
751
+
752
+ export type AccountSelectScalar = {
753
+ id?: boolean
754
+ userId?: boolean
755
+ type?: boolean
756
+ provider?: boolean
757
+ providerAccountId?: boolean
758
+ refresh_token?: boolean
759
+ access_token?: boolean
760
+ expires_at?: boolean
761
+ token_type?: boolean
762
+ scope?: boolean
763
+ id_token?: boolean
764
+ session_state?: boolean
765
+ }
766
+
767
+ export type AccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "type" | "provider" | "providerAccountId" | "refresh_token" | "access_token" | "expires_at" | "token_type" | "scope" | "id_token" | "session_state", ExtArgs["result"]["account"]>
768
+ export type AccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
769
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
770
+ }
771
+ export type AccountIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
772
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
773
+ }
774
+ export type AccountIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
775
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
776
+ }
777
+
778
+ export type $AccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
779
+ name: "Account"
780
+ objects: {
781
+ user: Prisma.$UserPayload<ExtArgs>
782
+ }
783
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
784
+ id: string
785
+ userId: string
786
+ type: string
787
+ provider: string
788
+ providerAccountId: string
789
+ refresh_token: string | null
790
+ access_token: string | null
791
+ expires_at: number | null
792
+ token_type: string | null
793
+ scope: string | null
794
+ id_token: string | null
795
+ session_state: string | null
796
+ }, ExtArgs["result"]["account"]>
797
+ composites: {}
798
+ }
799
+
800
+ export type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AccountPayload, S>
801
+
802
+ export type AccountCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
803
+ Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
804
+ select?: AccountCountAggregateInputType | true
805
+ }
806
+
807
+ export interface AccountDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
808
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
809
+ /**
810
+ * Find zero or one Account that matches the filter.
811
+ * @param {AccountFindUniqueArgs} args - Arguments to find a Account
812
+ * @example
813
+ * // Get one Account
814
+ * const account = await prisma.account.findUnique({
815
+ * where: {
816
+ * // ... provide filter here
817
+ * }
818
+ * })
819
+ */
820
+ findUnique<T extends AccountFindUniqueArgs>(args: Prisma.SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
821
+
822
+ /**
823
+ * Find one Account that matches the filter or throw an error with `error.code='P2025'`
824
+ * if no matches were found.
825
+ * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
826
+ * @example
827
+ * // Get one Account
828
+ * const account = await prisma.account.findUniqueOrThrow({
829
+ * where: {
830
+ * // ... provide filter here
831
+ * }
832
+ * })
833
+ */
834
+ findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
835
+
836
+ /**
837
+ * Find the first Account that matches the filter.
838
+ * Note, that providing `undefined` is treated as the value not being there.
839
+ * Read more here: https://pris.ly/d/null-undefined
840
+ * @param {AccountFindFirstArgs} args - Arguments to find a Account
841
+ * @example
842
+ * // Get one Account
843
+ * const account = await prisma.account.findFirst({
844
+ * where: {
845
+ * // ... provide filter here
846
+ * }
847
+ * })
848
+ */
849
+ findFirst<T extends AccountFindFirstArgs>(args?: Prisma.SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
850
+
851
+ /**
852
+ * Find the first Account that matches the filter or
853
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
854
+ * Note, that providing `undefined` is treated as the value not being there.
855
+ * Read more here: https://pris.ly/d/null-undefined
856
+ * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
857
+ * @example
858
+ * // Get one Account
859
+ * const account = await prisma.account.findFirstOrThrow({
860
+ * where: {
861
+ * // ... provide filter here
862
+ * }
863
+ * })
864
+ */
865
+ findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
866
+
867
+ /**
868
+ * Find zero or more Accounts that matches the filter.
869
+ * Note, that providing `undefined` is treated as the value not being there.
870
+ * Read more here: https://pris.ly/d/null-undefined
871
+ * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
872
+ * @example
873
+ * // Get all Accounts
874
+ * const accounts = await prisma.account.findMany()
875
+ *
876
+ * // Get first 10 Accounts
877
+ * const accounts = await prisma.account.findMany({ take: 10 })
878
+ *
879
+ * // Only select the `id`
880
+ * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
881
+ *
882
+ */
883
+ findMany<T extends AccountFindManyArgs>(args?: Prisma.SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
884
+
885
+ /**
886
+ * Create a Account.
887
+ * @param {AccountCreateArgs} args - Arguments to create a Account.
888
+ * @example
889
+ * // Create one Account
890
+ * const Account = await prisma.account.create({
891
+ * data: {
892
+ * // ... data to create a Account
893
+ * }
894
+ * })
895
+ *
896
+ */
897
+ create<T extends AccountCreateArgs>(args: Prisma.SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
898
+
899
+ /**
900
+ * Create many Accounts.
901
+ * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
902
+ * @example
903
+ * // Create many Accounts
904
+ * const account = await prisma.account.createMany({
905
+ * data: [
906
+ * // ... provide data here
907
+ * ]
908
+ * })
909
+ *
910
+ */
911
+ createMany<T extends AccountCreateManyArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
912
+
913
+ /**
914
+ * Create many Accounts and returns the data saved in the database.
915
+ * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
916
+ * @example
917
+ * // Create many Accounts
918
+ * const account = await prisma.account.createManyAndReturn({
919
+ * data: [
920
+ * // ... provide data here
921
+ * ]
922
+ * })
923
+ *
924
+ * // Create many Accounts and only return the `id`
925
+ * const accountWithIdOnly = await prisma.account.createManyAndReturn({
926
+ * select: { id: true },
927
+ * data: [
928
+ * // ... provide data here
929
+ * ]
930
+ * })
931
+ * Note, that providing `undefined` is treated as the value not being there.
932
+ * Read more here: https://pris.ly/d/null-undefined
933
+ *
934
+ */
935
+ createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
936
+
937
+ /**
938
+ * Delete a Account.
939
+ * @param {AccountDeleteArgs} args - Arguments to delete one Account.
940
+ * @example
941
+ * // Delete one Account
942
+ * const Account = await prisma.account.delete({
943
+ * where: {
944
+ * // ... filter to delete one Account
945
+ * }
946
+ * })
947
+ *
948
+ */
949
+ delete<T extends AccountDeleteArgs>(args: Prisma.SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
950
+
951
+ /**
952
+ * Update one Account.
953
+ * @param {AccountUpdateArgs} args - Arguments to update one Account.
954
+ * @example
955
+ * // Update one Account
956
+ * const account = await prisma.account.update({
957
+ * where: {
958
+ * // ... provide filter here
959
+ * },
960
+ * data: {
961
+ * // ... provide data here
962
+ * }
963
+ * })
964
+ *
965
+ */
966
+ update<T extends AccountUpdateArgs>(args: Prisma.SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
967
+
968
+ /**
969
+ * Delete zero or more Accounts.
970
+ * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
971
+ * @example
972
+ * // Delete a few Accounts
973
+ * const { count } = await prisma.account.deleteMany({
974
+ * where: {
975
+ * // ... provide filter here
976
+ * }
977
+ * })
978
+ *
979
+ */
980
+ deleteMany<T extends AccountDeleteManyArgs>(args?: Prisma.SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
981
+
982
+ /**
983
+ * Update zero or more Accounts.
984
+ * Note, that providing `undefined` is treated as the value not being there.
985
+ * Read more here: https://pris.ly/d/null-undefined
986
+ * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
987
+ * @example
988
+ * // Update many Accounts
989
+ * const account = await prisma.account.updateMany({
990
+ * where: {
991
+ * // ... provide filter here
992
+ * },
993
+ * data: {
994
+ * // ... provide data here
995
+ * }
996
+ * })
997
+ *
998
+ */
999
+ updateMany<T extends AccountUpdateManyArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1000
+
1001
+ /**
1002
+ * Update zero or more Accounts and returns the data updated in the database.
1003
+ * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
1004
+ * @example
1005
+ * // Update many Accounts
1006
+ * const account = await prisma.account.updateManyAndReturn({
1007
+ * where: {
1008
+ * // ... provide filter here
1009
+ * },
1010
+ * data: [
1011
+ * // ... provide data here
1012
+ * ]
1013
+ * })
1014
+ *
1015
+ * // Update zero or more Accounts and only return the `id`
1016
+ * const accountWithIdOnly = await prisma.account.updateManyAndReturn({
1017
+ * select: { id: true },
1018
+ * where: {
1019
+ * // ... provide filter here
1020
+ * },
1021
+ * data: [
1022
+ * // ... provide data here
1023
+ * ]
1024
+ * })
1025
+ * Note, that providing `undefined` is treated as the value not being there.
1026
+ * Read more here: https://pris.ly/d/null-undefined
1027
+ *
1028
+ */
1029
+ updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1030
+
1031
+ /**
1032
+ * Create or update one Account.
1033
+ * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
1034
+ * @example
1035
+ * // Update or create a Account
1036
+ * const account = await prisma.account.upsert({
1037
+ * create: {
1038
+ * // ... data to create a Account
1039
+ * },
1040
+ * update: {
1041
+ * // ... in case it already exists, update
1042
+ * },
1043
+ * where: {
1044
+ * // ... the filter for the Account we want to update
1045
+ * }
1046
+ * })
1047
+ */
1048
+ upsert<T extends AccountUpsertArgs>(args: Prisma.SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1049
+
1050
+
1051
+ /**
1052
+ * Count the number of Accounts.
1053
+ * Note, that providing `undefined` is treated as the value not being there.
1054
+ * Read more here: https://pris.ly/d/null-undefined
1055
+ * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
1056
+ * @example
1057
+ * // Count the number of Accounts
1058
+ * const count = await prisma.account.count({
1059
+ * where: {
1060
+ * // ... the filter for the Accounts we want to count
1061
+ * }
1062
+ * })
1063
+ **/
1064
+ count<T extends AccountCountArgs>(
1065
+ args?: Prisma.Subset<T, AccountCountArgs>,
1066
+ ): Prisma.PrismaPromise<
1067
+ T extends runtime.Types.Utils.Record<'select', any>
1068
+ ? T['select'] extends true
1069
+ ? number
1070
+ : Prisma.GetScalarType<T['select'], AccountCountAggregateOutputType>
1071
+ : number
1072
+ >
1073
+
1074
+ /**
1075
+ * Allows you to perform aggregations operations on a Account.
1076
+ * Note, that providing `undefined` is treated as the value not being there.
1077
+ * Read more here: https://pris.ly/d/null-undefined
1078
+ * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1079
+ * @example
1080
+ * // Ordered by age ascending
1081
+ * // Where email contains prisma.io
1082
+ * // Limited to the 10 users
1083
+ * const aggregations = await prisma.user.aggregate({
1084
+ * _avg: {
1085
+ * age: true,
1086
+ * },
1087
+ * where: {
1088
+ * email: {
1089
+ * contains: "prisma.io",
1090
+ * },
1091
+ * },
1092
+ * orderBy: {
1093
+ * age: "asc",
1094
+ * },
1095
+ * take: 10,
1096
+ * })
1097
+ **/
1098
+ aggregate<T extends AccountAggregateArgs>(args: Prisma.Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
1099
+
1100
+ /**
1101
+ * Group by Account.
1102
+ * Note, that providing `undefined` is treated as the value not being there.
1103
+ * Read more here: https://pris.ly/d/null-undefined
1104
+ * @param {AccountGroupByArgs} args - Group by arguments.
1105
+ * @example
1106
+ * // Group by city, order by createdAt, get count
1107
+ * const result = await prisma.user.groupBy({
1108
+ * by: ['city', 'createdAt'],
1109
+ * orderBy: {
1110
+ * createdAt: true
1111
+ * },
1112
+ * _count: {
1113
+ * _all: true
1114
+ * },
1115
+ * })
1116
+ *
1117
+ **/
1118
+ groupBy<
1119
+ T extends AccountGroupByArgs,
1120
+ HasSelectOrTake extends Prisma.Or<
1121
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1122
+ Prisma.Extends<'take', Prisma.Keys<T>>
1123
+ >,
1124
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1125
+ ? { orderBy: AccountGroupByArgs['orderBy'] }
1126
+ : { orderBy?: AccountGroupByArgs['orderBy'] },
1127
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1128
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1129
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1130
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1131
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1132
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1133
+ InputErrors extends ByEmpty extends Prisma.True
1134
+ ? `Error: "by" must not be empty.`
1135
+ : HavingValid extends Prisma.False
1136
+ ? {
1137
+ [P in HavingFields]: P extends ByFields
1138
+ ? never
1139
+ : P extends string
1140
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1141
+ : [
1142
+ Error,
1143
+ 'Field ',
1144
+ P,
1145
+ ` in "having" needs to be provided in "by"`,
1146
+ ]
1147
+ }[HavingFields]
1148
+ : 'take' extends Prisma.Keys<T>
1149
+ ? 'orderBy' extends Prisma.Keys<T>
1150
+ ? ByValid extends Prisma.True
1151
+ ? {}
1152
+ : {
1153
+ [P in OrderFields]: P extends ByFields
1154
+ ? never
1155
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1156
+ }[OrderFields]
1157
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1158
+ : 'skip' extends Prisma.Keys<T>
1159
+ ? 'orderBy' extends Prisma.Keys<T>
1160
+ ? ByValid extends Prisma.True
1161
+ ? {}
1162
+ : {
1163
+ [P in OrderFields]: P extends ByFields
1164
+ ? never
1165
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1166
+ }[OrderFields]
1167
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1168
+ : ByValid extends Prisma.True
1169
+ ? {}
1170
+ : {
1171
+ [P in OrderFields]: P extends ByFields
1172
+ ? never
1173
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1174
+ }[OrderFields]
1175
+ >(args: Prisma.SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1176
+ /**
1177
+ * Fields of the Account model
1178
+ */
1179
+ readonly fields: AccountFieldRefs;
1180
+ }
1181
+
1182
+ /**
1183
+ * The delegate class that acts as a "Promise-like" for Account.
1184
+ * Why is this prefixed with `Prisma__`?
1185
+ * Because we want to prevent naming conflicts as mentioned in
1186
+ * https://github.com/prisma/prisma-client-js/issues/707
1187
+ */
1188
+ export interface Prisma__AccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1189
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1190
+ 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>
1191
+ /**
1192
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1193
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1194
+ * @param onrejected The callback to execute when the Promise is rejected.
1195
+ * @returns A Promise for the completion of which ever callback is executed.
1196
+ */
1197
+ 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>
1198
+ /**
1199
+ * Attaches a callback for only the rejection of the Promise.
1200
+ * @param onrejected The callback to execute when the Promise is rejected.
1201
+ * @returns A Promise for the completion of the callback.
1202
+ */
1203
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1204
+ /**
1205
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1206
+ * resolved value cannot be modified from the callback.
1207
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1208
+ * @returns A Promise for the completion of the callback.
1209
+ */
1210
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1211
+ }
1212
+
1213
+
1214
+
1215
+
1216
+ /**
1217
+ * Fields of the Account model
1218
+ */
1219
+ export interface AccountFieldRefs {
1220
+ readonly id: Prisma.FieldRef<"Account", 'String'>
1221
+ readonly userId: Prisma.FieldRef<"Account", 'String'>
1222
+ readonly type: Prisma.FieldRef<"Account", 'String'>
1223
+ readonly provider: Prisma.FieldRef<"Account", 'String'>
1224
+ readonly providerAccountId: Prisma.FieldRef<"Account", 'String'>
1225
+ readonly refresh_token: Prisma.FieldRef<"Account", 'String'>
1226
+ readonly access_token: Prisma.FieldRef<"Account", 'String'>
1227
+ readonly expires_at: Prisma.FieldRef<"Account", 'Int'>
1228
+ readonly token_type: Prisma.FieldRef<"Account", 'String'>
1229
+ readonly scope: Prisma.FieldRef<"Account", 'String'>
1230
+ readonly id_token: Prisma.FieldRef<"Account", 'String'>
1231
+ readonly session_state: Prisma.FieldRef<"Account", 'String'>
1232
+ }
1233
+
1234
+
1235
+ // Custom InputTypes
1236
+ /**
1237
+ * Account findUnique
1238
+ */
1239
+ export type AccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1240
+ /**
1241
+ * Select specific fields to fetch from the Account
1242
+ */
1243
+ select?: Prisma.AccountSelect<ExtArgs> | null
1244
+ /**
1245
+ * Omit specific fields from the Account
1246
+ */
1247
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1248
+ /**
1249
+ * Choose, which related nodes to fetch as well
1250
+ */
1251
+ include?: Prisma.AccountInclude<ExtArgs> | null
1252
+ /**
1253
+ * Filter, which Account to fetch.
1254
+ */
1255
+ where: Prisma.AccountWhereUniqueInput
1256
+ }
1257
+
1258
+ /**
1259
+ * Account findUniqueOrThrow
1260
+ */
1261
+ export type AccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1262
+ /**
1263
+ * Select specific fields to fetch from the Account
1264
+ */
1265
+ select?: Prisma.AccountSelect<ExtArgs> | null
1266
+ /**
1267
+ * Omit specific fields from the Account
1268
+ */
1269
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1270
+ /**
1271
+ * Choose, which related nodes to fetch as well
1272
+ */
1273
+ include?: Prisma.AccountInclude<ExtArgs> | null
1274
+ /**
1275
+ * Filter, which Account to fetch.
1276
+ */
1277
+ where: Prisma.AccountWhereUniqueInput
1278
+ }
1279
+
1280
+ /**
1281
+ * Account findFirst
1282
+ */
1283
+ export type AccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1284
+ /**
1285
+ * Select specific fields to fetch from the Account
1286
+ */
1287
+ select?: Prisma.AccountSelect<ExtArgs> | null
1288
+ /**
1289
+ * Omit specific fields from the Account
1290
+ */
1291
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1292
+ /**
1293
+ * Choose, which related nodes to fetch as well
1294
+ */
1295
+ include?: Prisma.AccountInclude<ExtArgs> | null
1296
+ /**
1297
+ * Filter, which Account to fetch.
1298
+ */
1299
+ where?: Prisma.AccountWhereInput
1300
+ /**
1301
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1302
+ *
1303
+ * Determine the order of Accounts to fetch.
1304
+ */
1305
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1306
+ /**
1307
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1308
+ *
1309
+ * Sets the position for searching for Accounts.
1310
+ */
1311
+ cursor?: Prisma.AccountWhereUniqueInput
1312
+ /**
1313
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1314
+ *
1315
+ * Take `±n` Accounts from the position of the cursor.
1316
+ */
1317
+ take?: number
1318
+ /**
1319
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1320
+ *
1321
+ * Skip the first `n` Accounts.
1322
+ */
1323
+ skip?: number
1324
+ /**
1325
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1326
+ *
1327
+ * Filter by unique combinations of Accounts.
1328
+ */
1329
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1330
+ }
1331
+
1332
+ /**
1333
+ * Account findFirstOrThrow
1334
+ */
1335
+ export type AccountFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1336
+ /**
1337
+ * Select specific fields to fetch from the Account
1338
+ */
1339
+ select?: Prisma.AccountSelect<ExtArgs> | null
1340
+ /**
1341
+ * Omit specific fields from the Account
1342
+ */
1343
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1344
+ /**
1345
+ * Choose, which related nodes to fetch as well
1346
+ */
1347
+ include?: Prisma.AccountInclude<ExtArgs> | null
1348
+ /**
1349
+ * Filter, which Account to fetch.
1350
+ */
1351
+ where?: Prisma.AccountWhereInput
1352
+ /**
1353
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1354
+ *
1355
+ * Determine the order of Accounts to fetch.
1356
+ */
1357
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1358
+ /**
1359
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1360
+ *
1361
+ * Sets the position for searching for Accounts.
1362
+ */
1363
+ cursor?: Prisma.AccountWhereUniqueInput
1364
+ /**
1365
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1366
+ *
1367
+ * Take `±n` Accounts from the position of the cursor.
1368
+ */
1369
+ take?: number
1370
+ /**
1371
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1372
+ *
1373
+ * Skip the first `n` Accounts.
1374
+ */
1375
+ skip?: number
1376
+ /**
1377
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1378
+ *
1379
+ * Filter by unique combinations of Accounts.
1380
+ */
1381
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1382
+ }
1383
+
1384
+ /**
1385
+ * Account findMany
1386
+ */
1387
+ export type AccountFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1388
+ /**
1389
+ * Select specific fields to fetch from the Account
1390
+ */
1391
+ select?: Prisma.AccountSelect<ExtArgs> | null
1392
+ /**
1393
+ * Omit specific fields from the Account
1394
+ */
1395
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1396
+ /**
1397
+ * Choose, which related nodes to fetch as well
1398
+ */
1399
+ include?: Prisma.AccountInclude<ExtArgs> | null
1400
+ /**
1401
+ * Filter, which Accounts to fetch.
1402
+ */
1403
+ where?: Prisma.AccountWhereInput
1404
+ /**
1405
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1406
+ *
1407
+ * Determine the order of Accounts to fetch.
1408
+ */
1409
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1410
+ /**
1411
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1412
+ *
1413
+ * Sets the position for listing Accounts.
1414
+ */
1415
+ cursor?: Prisma.AccountWhereUniqueInput
1416
+ /**
1417
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1418
+ *
1419
+ * Take `±n` Accounts from the position of the cursor.
1420
+ */
1421
+ take?: number
1422
+ /**
1423
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1424
+ *
1425
+ * Skip the first `n` Accounts.
1426
+ */
1427
+ skip?: number
1428
+ /**
1429
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1430
+ *
1431
+ * Filter by unique combinations of Accounts.
1432
+ */
1433
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1434
+ }
1435
+
1436
+ /**
1437
+ * Account create
1438
+ */
1439
+ export type AccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1440
+ /**
1441
+ * Select specific fields to fetch from the Account
1442
+ */
1443
+ select?: Prisma.AccountSelect<ExtArgs> | null
1444
+ /**
1445
+ * Omit specific fields from the Account
1446
+ */
1447
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1448
+ /**
1449
+ * Choose, which related nodes to fetch as well
1450
+ */
1451
+ include?: Prisma.AccountInclude<ExtArgs> | null
1452
+ /**
1453
+ * The data needed to create a Account.
1454
+ */
1455
+ data: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>
1456
+ }
1457
+
1458
+ /**
1459
+ * Account createMany
1460
+ */
1461
+ export type AccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1462
+ /**
1463
+ * The data used to create many Accounts.
1464
+ */
1465
+ data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[]
1466
+ skipDuplicates?: boolean
1467
+ }
1468
+
1469
+ /**
1470
+ * Account createManyAndReturn
1471
+ */
1472
+ export type AccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1473
+ /**
1474
+ * Select specific fields to fetch from the Account
1475
+ */
1476
+ select?: Prisma.AccountSelectCreateManyAndReturn<ExtArgs> | null
1477
+ /**
1478
+ * Omit specific fields from the Account
1479
+ */
1480
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1481
+ /**
1482
+ * The data used to create many Accounts.
1483
+ */
1484
+ data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[]
1485
+ skipDuplicates?: boolean
1486
+ /**
1487
+ * Choose, which related nodes to fetch as well
1488
+ */
1489
+ include?: Prisma.AccountIncludeCreateManyAndReturn<ExtArgs> | null
1490
+ }
1491
+
1492
+ /**
1493
+ * Account update
1494
+ */
1495
+ export type AccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1496
+ /**
1497
+ * Select specific fields to fetch from the Account
1498
+ */
1499
+ select?: Prisma.AccountSelect<ExtArgs> | null
1500
+ /**
1501
+ * Omit specific fields from the Account
1502
+ */
1503
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1504
+ /**
1505
+ * Choose, which related nodes to fetch as well
1506
+ */
1507
+ include?: Prisma.AccountInclude<ExtArgs> | null
1508
+ /**
1509
+ * The data needed to update a Account.
1510
+ */
1511
+ data: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>
1512
+ /**
1513
+ * Choose, which Account to update.
1514
+ */
1515
+ where: Prisma.AccountWhereUniqueInput
1516
+ }
1517
+
1518
+ /**
1519
+ * Account updateMany
1520
+ */
1521
+ export type AccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1522
+ /**
1523
+ * The data used to update Accounts.
1524
+ */
1525
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>
1526
+ /**
1527
+ * Filter which Accounts to update
1528
+ */
1529
+ where?: Prisma.AccountWhereInput
1530
+ /**
1531
+ * Limit how many Accounts to update.
1532
+ */
1533
+ limit?: number
1534
+ }
1535
+
1536
+ /**
1537
+ * Account updateManyAndReturn
1538
+ */
1539
+ export type AccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1540
+ /**
1541
+ * Select specific fields to fetch from the Account
1542
+ */
1543
+ select?: Prisma.AccountSelectUpdateManyAndReturn<ExtArgs> | null
1544
+ /**
1545
+ * Omit specific fields from the Account
1546
+ */
1547
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1548
+ /**
1549
+ * The data used to update Accounts.
1550
+ */
1551
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>
1552
+ /**
1553
+ * Filter which Accounts to update
1554
+ */
1555
+ where?: Prisma.AccountWhereInput
1556
+ /**
1557
+ * Limit how many Accounts to update.
1558
+ */
1559
+ limit?: number
1560
+ /**
1561
+ * Choose, which related nodes to fetch as well
1562
+ */
1563
+ include?: Prisma.AccountIncludeUpdateManyAndReturn<ExtArgs> | null
1564
+ }
1565
+
1566
+ /**
1567
+ * Account upsert
1568
+ */
1569
+ export type AccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1570
+ /**
1571
+ * Select specific fields to fetch from the Account
1572
+ */
1573
+ select?: Prisma.AccountSelect<ExtArgs> | null
1574
+ /**
1575
+ * Omit specific fields from the Account
1576
+ */
1577
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1578
+ /**
1579
+ * Choose, which related nodes to fetch as well
1580
+ */
1581
+ include?: Prisma.AccountInclude<ExtArgs> | null
1582
+ /**
1583
+ * The filter to search for the Account to update in case it exists.
1584
+ */
1585
+ where: Prisma.AccountWhereUniqueInput
1586
+ /**
1587
+ * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
1588
+ */
1589
+ create: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>
1590
+ /**
1591
+ * In case the Account was found with the provided `where` argument, update it with this data.
1592
+ */
1593
+ update: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>
1594
+ }
1595
+
1596
+ /**
1597
+ * Account delete
1598
+ */
1599
+ export type AccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1600
+ /**
1601
+ * Select specific fields to fetch from the Account
1602
+ */
1603
+ select?: Prisma.AccountSelect<ExtArgs> | null
1604
+ /**
1605
+ * Omit specific fields from the Account
1606
+ */
1607
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1608
+ /**
1609
+ * Choose, which related nodes to fetch as well
1610
+ */
1611
+ include?: Prisma.AccountInclude<ExtArgs> | null
1612
+ /**
1613
+ * Filter which Account to delete.
1614
+ */
1615
+ where: Prisma.AccountWhereUniqueInput
1616
+ }
1617
+
1618
+ /**
1619
+ * Account deleteMany
1620
+ */
1621
+ export type AccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1622
+ /**
1623
+ * Filter which Accounts to delete
1624
+ */
1625
+ where?: Prisma.AccountWhereInput
1626
+ /**
1627
+ * Limit how many Accounts to delete.
1628
+ */
1629
+ limit?: number
1630
+ }
1631
+
1632
+ /**
1633
+ * Account without action
1634
+ */
1635
+ export type AccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1636
+ /**
1637
+ * Select specific fields to fetch from the Account
1638
+ */
1639
+ select?: Prisma.AccountSelect<ExtArgs> | null
1640
+ /**
1641
+ * Omit specific fields from the Account
1642
+ */
1643
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1644
+ /**
1645
+ * Choose, which related nodes to fetch as well
1646
+ */
1647
+ include?: Prisma.AccountInclude<ExtArgs> | null
1648
+ }