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