zele 0.3.0 → 0.3.6

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 (157) hide show
  1. package/README.md +1 -1
  2. package/bin/zele +27 -0
  3. package/dist/api-utils.d.ts +51 -2
  4. package/dist/api-utils.js +89 -3
  5. package/dist/api-utils.js.map +1 -1
  6. package/dist/auth.d.ts +27 -6
  7. package/dist/auth.js +185 -129
  8. package/dist/auth.js.map +1 -1
  9. package/dist/calendar-client.d.ts +16 -9
  10. package/dist/calendar-client.js +163 -59
  11. package/dist/calendar-client.js.map +1 -1
  12. package/dist/cli.js +34 -1
  13. package/dist/cli.js.map +1 -1
  14. package/dist/commands/attachment.js +17 -15
  15. package/dist/commands/attachment.js.map +1 -1
  16. package/dist/commands/auth-cmd.js +20 -9
  17. package/dist/commands/auth-cmd.js.map +1 -1
  18. package/dist/commands/calendar.js +67 -78
  19. package/dist/commands/calendar.js.map +1 -1
  20. package/dist/commands/draft.js +25 -18
  21. package/dist/commands/draft.js.map +1 -1
  22. package/dist/commands/label.js +33 -45
  23. package/dist/commands/label.js.map +1 -1
  24. package/dist/commands/mail-actions.js +11 -13
  25. package/dist/commands/mail-actions.js.map +1 -1
  26. package/dist/commands/mail.js +119 -127
  27. package/dist/commands/mail.js.map +1 -1
  28. package/dist/commands/profile.js +18 -21
  29. package/dist/commands/profile.js.map +1 -1
  30. package/dist/commands/watch.js +33 -261
  31. package/dist/commands/watch.js.map +1 -1
  32. package/dist/db.js +12 -13
  33. package/dist/db.js.map +1 -1
  34. package/dist/generated/browser.d.ts +12 -27
  35. package/dist/generated/client.d.ts +13 -28
  36. package/dist/generated/client.js +1 -1
  37. package/dist/generated/commonInputTypes.d.ts +90 -26
  38. package/dist/generated/enums.d.ts +0 -4
  39. package/dist/generated/enums.js +0 -3
  40. package/dist/generated/enums.js.map +1 -1
  41. package/dist/generated/internal/class.d.ts +22 -55
  42. package/dist/generated/internal/class.js +12 -4
  43. package/dist/generated/internal/class.js.map +1 -1
  44. package/dist/generated/internal/prismaNamespace.d.ts +272 -511
  45. package/dist/generated/internal/prismaNamespace.js +54 -66
  46. package/dist/generated/internal/prismaNamespace.js.map +1 -1
  47. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +60 -74
  48. package/dist/generated/internal/prismaNamespaceBrowser.js +50 -62
  49. package/dist/generated/internal/prismaNamespaceBrowser.js.map +1 -1
  50. package/dist/generated/models/Account.d.ts +1637 -0
  51. package/dist/generated/models/Account.js +2 -0
  52. package/dist/generated/models/Account.js.map +1 -0
  53. package/dist/generated/models/CalendarList.d.ts +1161 -0
  54. package/dist/generated/models/CalendarList.js +2 -0
  55. package/dist/generated/models/CalendarList.js.map +1 -0
  56. package/dist/generated/models/Label.d.ts +1161 -0
  57. package/dist/generated/models/Label.js +2 -0
  58. package/dist/generated/models/Label.js.map +1 -0
  59. package/dist/generated/models/Profile.d.ts +1269 -0
  60. package/dist/generated/models/Profile.js +2 -0
  61. package/dist/generated/models/Profile.js.map +1 -0
  62. package/dist/generated/models/SyncState.d.ts +1130 -0
  63. package/dist/generated/models/SyncState.js +2 -0
  64. package/dist/generated/models/SyncState.js.map +1 -0
  65. package/dist/generated/models/Thread.d.ts +1608 -0
  66. package/dist/generated/models/Thread.js +2 -0
  67. package/dist/generated/models/Thread.js.map +1 -0
  68. package/dist/generated/models.d.ts +6 -9
  69. package/dist/gmail-client.d.ts +119 -94
  70. package/dist/gmail-client.js +862 -322
  71. package/dist/gmail-client.js.map +1 -1
  72. package/dist/mail-tui.d.ts +1 -0
  73. package/dist/mail-tui.js +517 -0
  74. package/dist/mail-tui.js.map +1 -0
  75. package/dist/output.d.ts +6 -0
  76. package/dist/output.js +124 -11
  77. package/dist/output.js.map +1 -1
  78. package/package.json +39 -11
  79. package/schema.prisma +81 -113
  80. package/src/api-utils.ts +103 -5
  81. package/src/auth.ts +224 -143
  82. package/src/calendar-client.ts +196 -89
  83. package/src/cli.ts +39 -1
  84. package/src/commands/attachment.ts +18 -19
  85. package/src/commands/auth-cmd.ts +19 -9
  86. package/src/commands/calendar.ts +42 -85
  87. package/src/commands/draft.ts +19 -22
  88. package/src/commands/label.ts +21 -57
  89. package/src/commands/mail-actions.ts +11 -19
  90. package/src/commands/mail.ts +109 -148
  91. package/src/commands/profile.ts +12 -28
  92. package/src/commands/watch.ts +37 -304
  93. package/src/db.ts +13 -16
  94. package/src/generated/browser.ts +49 -0
  95. package/src/generated/client.ts +71 -0
  96. package/src/generated/commonInputTypes.ts +332 -0
  97. package/src/generated/enums.ts +17 -0
  98. package/src/generated/internal/class.ts +250 -0
  99. package/src/generated/internal/prismaNamespace.ts +1198 -0
  100. package/src/generated/internal/prismaNamespaceBrowser.ts +169 -0
  101. package/src/generated/models/Account.ts +1848 -0
  102. package/src/generated/models/CalendarList.ts +1331 -0
  103. package/src/generated/models/Label.ts +1331 -0
  104. package/src/generated/models/Profile.ts +1439 -0
  105. package/src/generated/models/SyncState.ts +1300 -0
  106. package/src/generated/models/Thread.ts +1787 -0
  107. package/src/generated/models.ts +17 -0
  108. package/src/gmail-client.test.ts +59 -0
  109. package/src/gmail-client.ts +1034 -429
  110. package/src/mail-tui.tsx +1061 -0
  111. package/src/output.test.ts +1093 -0
  112. package/src/output.ts +128 -13
  113. package/src/schema.sql +58 -68
  114. package/src/test-fixtures/email-html/safe-claude-event.html +28 -0
  115. package/src/test-fixtures/email-html/safe-product-announcement.html +25 -0
  116. package/src/test-fixtures/email-html/safe-tracked-links.html +27 -0
  117. package/src/test-fixtures/email-html-snapshots/safe-claude-event.html.md +9 -0
  118. package/src/test-fixtures/email-html-snapshots/safe-product-announcement.html.md +13 -0
  119. package/src/test-fixtures/email-html-snapshots/safe-tracked-links.html.md +7 -0
  120. package/AGENTS.md +0 -26
  121. package/CHANGELOG.md +0 -43
  122. package/dist/generated/models/accounts.d.ts +0 -2000
  123. package/dist/generated/models/accounts.js +0 -2
  124. package/dist/generated/models/accounts.js.map +0 -1
  125. package/dist/generated/models/calendar_events.d.ts +0 -1433
  126. package/dist/generated/models/calendar_events.js +0 -2
  127. package/dist/generated/models/calendar_events.js.map +0 -1
  128. package/dist/generated/models/calendar_lists.d.ts +0 -1131
  129. package/dist/generated/models/calendar_lists.js +0 -2
  130. package/dist/generated/models/calendar_lists.js.map +0 -1
  131. package/dist/generated/models/label_counts.d.ts +0 -1131
  132. package/dist/generated/models/label_counts.js +0 -2
  133. package/dist/generated/models/label_counts.js.map +0 -1
  134. package/dist/generated/models/labels.d.ts +0 -1131
  135. package/dist/generated/models/labels.js +0 -2
  136. package/dist/generated/models/labels.js.map +0 -1
  137. package/dist/generated/models/profiles.d.ts +0 -1131
  138. package/dist/generated/models/profiles.js +0 -2
  139. package/dist/generated/models/profiles.js.map +0 -1
  140. package/dist/generated/models/sync_states.d.ts +0 -1107
  141. package/dist/generated/models/sync_states.js +0 -2
  142. package/dist/generated/models/sync_states.js.map +0 -1
  143. package/dist/generated/models/thread_lists.d.ts +0 -1404
  144. package/dist/generated/models/thread_lists.js +0 -2
  145. package/dist/generated/models/thread_lists.js.map +0 -1
  146. package/dist/generated/models/threads.d.ts +0 -1247
  147. package/dist/generated/models/threads.js +0 -2
  148. package/dist/generated/models/threads.js.map +0 -1
  149. package/dist/gmail-cache.d.ts +0 -60
  150. package/dist/gmail-cache.js +0 -264
  151. package/dist/gmail-cache.js.map +0 -1
  152. package/docs/gogcli-gmail-implementation.md +0 -599
  153. package/scripts/test-device-code-clients.ts +0 -186
  154. package/scripts/test-micropython-scopes.ts +0 -72
  155. package/scripts/test-oauth-clients.ts +0 -257
  156. package/src/gmail-cache.ts +0 -339
  157. package/tsconfig.json +0 -16
@@ -0,0 +1,1848 @@
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.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
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
+ _min: AccountMinAggregateOutputType | null
24
+ _max: AccountMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type AccountMinAggregateOutputType = {
28
+ email: string | null
29
+ appId: string | null
30
+ accountStatus: $Enums.AccountStatus | null
31
+ tokens: string | null
32
+ createdAt: Date | null
33
+ updatedAt: Date | null
34
+ }
35
+
36
+ export type AccountMaxAggregateOutputType = {
37
+ email: string | null
38
+ appId: string | null
39
+ accountStatus: $Enums.AccountStatus | null
40
+ tokens: string | null
41
+ createdAt: Date | null
42
+ updatedAt: Date | null
43
+ }
44
+
45
+ export type AccountCountAggregateOutputType = {
46
+ email: number
47
+ appId: number
48
+ accountStatus: number
49
+ tokens: number
50
+ createdAt: number
51
+ updatedAt: number
52
+ _all: number
53
+ }
54
+
55
+
56
+ export type AccountMinAggregateInputType = {
57
+ email?: true
58
+ appId?: true
59
+ accountStatus?: true
60
+ tokens?: true
61
+ createdAt?: true
62
+ updatedAt?: true
63
+ }
64
+
65
+ export type AccountMaxAggregateInputType = {
66
+ email?: true
67
+ appId?: true
68
+ accountStatus?: true
69
+ tokens?: true
70
+ createdAt?: true
71
+ updatedAt?: true
72
+ }
73
+
74
+ export type AccountCountAggregateInputType = {
75
+ email?: true
76
+ appId?: true
77
+ accountStatus?: true
78
+ tokens?: true
79
+ createdAt?: true
80
+ updatedAt?: true
81
+ _all?: true
82
+ }
83
+
84
+ export type AccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
85
+ /**
86
+ * Filter which Account to aggregate.
87
+ */
88
+ where?: Prisma.AccountWhereInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
91
+ *
92
+ * Determine the order of Accounts to fetch.
93
+ */
94
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
97
+ *
98
+ * Sets the start position
99
+ */
100
+ cursor?: Prisma.AccountWhereUniqueInput
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
103
+ *
104
+ * Take `±n` Accounts from the position of the cursor.
105
+ */
106
+ take?: number
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
109
+ *
110
+ * Skip the first `n` Accounts.
111
+ */
112
+ skip?: number
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Count returned Accounts
117
+ **/
118
+ _count?: true | AccountCountAggregateInputType
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Select which fields to find the minimum value
123
+ **/
124
+ _min?: AccountMinAggregateInputType
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Select which fields to find the maximum value
129
+ **/
130
+ _max?: AccountMaxAggregateInputType
131
+ }
132
+
133
+ export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
134
+ [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
135
+ ? T[P] extends true
136
+ ? number
137
+ : Prisma.GetScalarType<T[P], AggregateAccount[P]>
138
+ : Prisma.GetScalarType<T[P], AggregateAccount[P]>
139
+ }
140
+
141
+
142
+
143
+
144
+ export type AccountGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
145
+ where?: Prisma.AccountWhereInput
146
+ orderBy?: Prisma.AccountOrderByWithAggregationInput | Prisma.AccountOrderByWithAggregationInput[]
147
+ by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum
148
+ having?: Prisma.AccountScalarWhereWithAggregatesInput
149
+ take?: number
150
+ skip?: number
151
+ _count?: AccountCountAggregateInputType | true
152
+ _min?: AccountMinAggregateInputType
153
+ _max?: AccountMaxAggregateInputType
154
+ }
155
+
156
+ export type AccountGroupByOutputType = {
157
+ email: string
158
+ appId: string
159
+ accountStatus: $Enums.AccountStatus
160
+ tokens: string
161
+ createdAt: Date
162
+ updatedAt: Date
163
+ _count: AccountCountAggregateOutputType | null
164
+ _min: AccountMinAggregateOutputType | null
165
+ _max: AccountMaxAggregateOutputType | null
166
+ }
167
+
168
+ type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
169
+ Array<
170
+ Prisma.PickEnumerable<AccountGroupByOutputType, T['by']> &
171
+ {
172
+ [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
173
+ ? T[P] extends boolean
174
+ ? number
175
+ : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>
176
+ : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>
177
+ }
178
+ >
179
+ >
180
+
181
+
182
+
183
+ export type AccountWhereInput = {
184
+ AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
185
+ OR?: Prisma.AccountWhereInput[]
186
+ NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
187
+ email?: Prisma.StringFilter<"Account"> | string
188
+ appId?: Prisma.StringFilter<"Account"> | string
189
+ accountStatus?: Prisma.EnumAccountStatusFilter<"Account"> | $Enums.AccountStatus
190
+ tokens?: Prisma.StringFilter<"Account"> | string
191
+ createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string
192
+ updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string
193
+ threads?: Prisma.ThreadListRelationFilter
194
+ labels?: Prisma.XOR<Prisma.LabelNullableScalarRelationFilter, Prisma.LabelWhereInput> | null
195
+ profiles?: Prisma.XOR<Prisma.ProfileNullableScalarRelationFilter, Prisma.ProfileWhereInput> | null
196
+ syncStates?: Prisma.SyncStateListRelationFilter
197
+ calendarLists?: Prisma.XOR<Prisma.CalendarListNullableScalarRelationFilter, Prisma.CalendarListWhereInput> | null
198
+ }
199
+
200
+ export type AccountOrderByWithRelationInput = {
201
+ email?: Prisma.SortOrder
202
+ appId?: Prisma.SortOrder
203
+ accountStatus?: Prisma.SortOrder
204
+ tokens?: Prisma.SortOrder
205
+ createdAt?: Prisma.SortOrder
206
+ updatedAt?: Prisma.SortOrder
207
+ threads?: Prisma.ThreadOrderByRelationAggregateInput
208
+ labels?: Prisma.LabelOrderByWithRelationInput
209
+ profiles?: Prisma.ProfileOrderByWithRelationInput
210
+ syncStates?: Prisma.SyncStateOrderByRelationAggregateInput
211
+ calendarLists?: Prisma.CalendarListOrderByWithRelationInput
212
+ }
213
+
214
+ export type AccountWhereUniqueInput = Prisma.AtLeast<{
215
+ email_appId?: Prisma.AccountEmailAppIdCompoundUniqueInput
216
+ AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
217
+ OR?: Prisma.AccountWhereInput[]
218
+ NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
219
+ email?: Prisma.StringFilter<"Account"> | string
220
+ appId?: Prisma.StringFilter<"Account"> | string
221
+ accountStatus?: Prisma.EnumAccountStatusFilter<"Account"> | $Enums.AccountStatus
222
+ tokens?: Prisma.StringFilter<"Account"> | string
223
+ createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string
224
+ updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string
225
+ threads?: Prisma.ThreadListRelationFilter
226
+ labels?: Prisma.XOR<Prisma.LabelNullableScalarRelationFilter, Prisma.LabelWhereInput> | null
227
+ profiles?: Prisma.XOR<Prisma.ProfileNullableScalarRelationFilter, Prisma.ProfileWhereInput> | null
228
+ syncStates?: Prisma.SyncStateListRelationFilter
229
+ calendarLists?: Prisma.XOR<Prisma.CalendarListNullableScalarRelationFilter, Prisma.CalendarListWhereInput> | null
230
+ }, "email_appId">
231
+
232
+ export type AccountOrderByWithAggregationInput = {
233
+ email?: Prisma.SortOrder
234
+ appId?: Prisma.SortOrder
235
+ accountStatus?: Prisma.SortOrder
236
+ tokens?: Prisma.SortOrder
237
+ createdAt?: Prisma.SortOrder
238
+ updatedAt?: Prisma.SortOrder
239
+ _count?: Prisma.AccountCountOrderByAggregateInput
240
+ _max?: Prisma.AccountMaxOrderByAggregateInput
241
+ _min?: Prisma.AccountMinOrderByAggregateInput
242
+ }
243
+
244
+ export type AccountScalarWhereWithAggregatesInput = {
245
+ AND?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[]
246
+ OR?: Prisma.AccountScalarWhereWithAggregatesInput[]
247
+ NOT?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[]
248
+ email?: Prisma.StringWithAggregatesFilter<"Account"> | string
249
+ appId?: Prisma.StringWithAggregatesFilter<"Account"> | string
250
+ accountStatus?: Prisma.EnumAccountStatusWithAggregatesFilter<"Account"> | $Enums.AccountStatus
251
+ tokens?: Prisma.StringWithAggregatesFilter<"Account"> | string
252
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Account"> | Date | string
253
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Account"> | Date | string
254
+ }
255
+
256
+ export type AccountCreateInput = {
257
+ email: string
258
+ appId: string
259
+ accountStatus: $Enums.AccountStatus
260
+ tokens: string
261
+ createdAt: Date | string
262
+ updatedAt?: Date | string
263
+ threads?: Prisma.ThreadCreateNestedManyWithoutAccountInput
264
+ labels?: Prisma.LabelCreateNestedOneWithoutAccountInput
265
+ profiles?: Prisma.ProfileCreateNestedOneWithoutAccountInput
266
+ syncStates?: Prisma.SyncStateCreateNestedManyWithoutAccountInput
267
+ calendarLists?: Prisma.CalendarListCreateNestedOneWithoutAccountInput
268
+ }
269
+
270
+ export type AccountUncheckedCreateInput = {
271
+ email: string
272
+ appId: string
273
+ accountStatus: $Enums.AccountStatus
274
+ tokens: string
275
+ createdAt: Date | string
276
+ updatedAt?: Date | string
277
+ threads?: Prisma.ThreadUncheckedCreateNestedManyWithoutAccountInput
278
+ labels?: Prisma.LabelUncheckedCreateNestedOneWithoutAccountInput
279
+ profiles?: Prisma.ProfileUncheckedCreateNestedOneWithoutAccountInput
280
+ syncStates?: Prisma.SyncStateUncheckedCreateNestedManyWithoutAccountInput
281
+ calendarLists?: Prisma.CalendarListUncheckedCreateNestedOneWithoutAccountInput
282
+ }
283
+
284
+ export type AccountUpdateInput = {
285
+ email?: Prisma.StringFieldUpdateOperationsInput | string
286
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
287
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
288
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
289
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
290
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
291
+ threads?: Prisma.ThreadUpdateManyWithoutAccountNestedInput
292
+ labels?: Prisma.LabelUpdateOneWithoutAccountNestedInput
293
+ profiles?: Prisma.ProfileUpdateOneWithoutAccountNestedInput
294
+ syncStates?: Prisma.SyncStateUpdateManyWithoutAccountNestedInput
295
+ calendarLists?: Prisma.CalendarListUpdateOneWithoutAccountNestedInput
296
+ }
297
+
298
+ export type AccountUncheckedUpdateInput = {
299
+ email?: Prisma.StringFieldUpdateOperationsInput | string
300
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
301
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
302
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
303
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
304
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
305
+ threads?: Prisma.ThreadUncheckedUpdateManyWithoutAccountNestedInput
306
+ labels?: Prisma.LabelUncheckedUpdateOneWithoutAccountNestedInput
307
+ profiles?: Prisma.ProfileUncheckedUpdateOneWithoutAccountNestedInput
308
+ syncStates?: Prisma.SyncStateUncheckedUpdateManyWithoutAccountNestedInput
309
+ calendarLists?: Prisma.CalendarListUncheckedUpdateOneWithoutAccountNestedInput
310
+ }
311
+
312
+ export type AccountCreateManyInput = {
313
+ email: string
314
+ appId: string
315
+ accountStatus: $Enums.AccountStatus
316
+ tokens: string
317
+ createdAt: Date | string
318
+ updatedAt?: Date | string
319
+ }
320
+
321
+ export type AccountUpdateManyMutationInput = {
322
+ email?: Prisma.StringFieldUpdateOperationsInput | string
323
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
324
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
325
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
326
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
327
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
328
+ }
329
+
330
+ export type AccountUncheckedUpdateManyInput = {
331
+ email?: Prisma.StringFieldUpdateOperationsInput | string
332
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
333
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
334
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
335
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
336
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
337
+ }
338
+
339
+ export type AccountEmailAppIdCompoundUniqueInput = {
340
+ email: string
341
+ appId: string
342
+ }
343
+
344
+ export type AccountCountOrderByAggregateInput = {
345
+ email?: Prisma.SortOrder
346
+ appId?: Prisma.SortOrder
347
+ accountStatus?: Prisma.SortOrder
348
+ tokens?: Prisma.SortOrder
349
+ createdAt?: Prisma.SortOrder
350
+ updatedAt?: Prisma.SortOrder
351
+ }
352
+
353
+ export type AccountMaxOrderByAggregateInput = {
354
+ email?: Prisma.SortOrder
355
+ appId?: Prisma.SortOrder
356
+ accountStatus?: Prisma.SortOrder
357
+ tokens?: Prisma.SortOrder
358
+ createdAt?: Prisma.SortOrder
359
+ updatedAt?: Prisma.SortOrder
360
+ }
361
+
362
+ export type AccountMinOrderByAggregateInput = {
363
+ email?: Prisma.SortOrder
364
+ appId?: Prisma.SortOrder
365
+ accountStatus?: Prisma.SortOrder
366
+ tokens?: Prisma.SortOrder
367
+ createdAt?: Prisma.SortOrder
368
+ updatedAt?: Prisma.SortOrder
369
+ }
370
+
371
+ export type AccountScalarRelationFilter = {
372
+ is?: Prisma.AccountWhereInput
373
+ isNot?: Prisma.AccountWhereInput
374
+ }
375
+
376
+ export type StringFieldUpdateOperationsInput = {
377
+ set?: string
378
+ }
379
+
380
+ export type EnumAccountStatusFieldUpdateOperationsInput = {
381
+ set?: $Enums.AccountStatus
382
+ }
383
+
384
+ export type DateTimeFieldUpdateOperationsInput = {
385
+ set?: Date | string
386
+ }
387
+
388
+ export type AccountCreateNestedOneWithoutThreadsInput = {
389
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutThreadsInput, Prisma.AccountUncheckedCreateWithoutThreadsInput>
390
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutThreadsInput
391
+ connect?: Prisma.AccountWhereUniqueInput
392
+ }
393
+
394
+ export type AccountUpdateOneRequiredWithoutThreadsNestedInput = {
395
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutThreadsInput, Prisma.AccountUncheckedCreateWithoutThreadsInput>
396
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutThreadsInput
397
+ upsert?: Prisma.AccountUpsertWithoutThreadsInput
398
+ connect?: Prisma.AccountWhereUniqueInput
399
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutThreadsInput, Prisma.AccountUpdateWithoutThreadsInput>, Prisma.AccountUncheckedUpdateWithoutThreadsInput>
400
+ }
401
+
402
+ export type AccountCreateNestedOneWithoutLabelsInput = {
403
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutLabelsInput, Prisma.AccountUncheckedCreateWithoutLabelsInput>
404
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutLabelsInput
405
+ connect?: Prisma.AccountWhereUniqueInput
406
+ }
407
+
408
+ export type AccountUpdateOneRequiredWithoutLabelsNestedInput = {
409
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutLabelsInput, Prisma.AccountUncheckedCreateWithoutLabelsInput>
410
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutLabelsInput
411
+ upsert?: Prisma.AccountUpsertWithoutLabelsInput
412
+ connect?: Prisma.AccountWhereUniqueInput
413
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutLabelsInput, Prisma.AccountUpdateWithoutLabelsInput>, Prisma.AccountUncheckedUpdateWithoutLabelsInput>
414
+ }
415
+
416
+ export type AccountCreateNestedOneWithoutProfilesInput = {
417
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutProfilesInput, Prisma.AccountUncheckedCreateWithoutProfilesInput>
418
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutProfilesInput
419
+ connect?: Prisma.AccountWhereUniqueInput
420
+ }
421
+
422
+ export type AccountUpdateOneRequiredWithoutProfilesNestedInput = {
423
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutProfilesInput, Prisma.AccountUncheckedCreateWithoutProfilesInput>
424
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutProfilesInput
425
+ upsert?: Prisma.AccountUpsertWithoutProfilesInput
426
+ connect?: Prisma.AccountWhereUniqueInput
427
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutProfilesInput, Prisma.AccountUpdateWithoutProfilesInput>, Prisma.AccountUncheckedUpdateWithoutProfilesInput>
428
+ }
429
+
430
+ export type AccountCreateNestedOneWithoutCalendarListsInput = {
431
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutCalendarListsInput, Prisma.AccountUncheckedCreateWithoutCalendarListsInput>
432
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutCalendarListsInput
433
+ connect?: Prisma.AccountWhereUniqueInput
434
+ }
435
+
436
+ export type AccountUpdateOneRequiredWithoutCalendarListsNestedInput = {
437
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutCalendarListsInput, Prisma.AccountUncheckedCreateWithoutCalendarListsInput>
438
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutCalendarListsInput
439
+ upsert?: Prisma.AccountUpsertWithoutCalendarListsInput
440
+ connect?: Prisma.AccountWhereUniqueInput
441
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutCalendarListsInput, Prisma.AccountUpdateWithoutCalendarListsInput>, Prisma.AccountUncheckedUpdateWithoutCalendarListsInput>
442
+ }
443
+
444
+ export type AccountCreateNestedOneWithoutSyncStatesInput = {
445
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutSyncStatesInput, Prisma.AccountUncheckedCreateWithoutSyncStatesInput>
446
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutSyncStatesInput
447
+ connect?: Prisma.AccountWhereUniqueInput
448
+ }
449
+
450
+ export type AccountUpdateOneRequiredWithoutSyncStatesNestedInput = {
451
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutSyncStatesInput, Prisma.AccountUncheckedCreateWithoutSyncStatesInput>
452
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutSyncStatesInput
453
+ upsert?: Prisma.AccountUpsertWithoutSyncStatesInput
454
+ connect?: Prisma.AccountWhereUniqueInput
455
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AccountUpdateToOneWithWhereWithoutSyncStatesInput, Prisma.AccountUpdateWithoutSyncStatesInput>, Prisma.AccountUncheckedUpdateWithoutSyncStatesInput>
456
+ }
457
+
458
+ export type AccountCreateWithoutThreadsInput = {
459
+ email: string
460
+ appId: string
461
+ accountStatus: $Enums.AccountStatus
462
+ tokens: string
463
+ createdAt: Date | string
464
+ updatedAt?: Date | string
465
+ labels?: Prisma.LabelCreateNestedOneWithoutAccountInput
466
+ profiles?: Prisma.ProfileCreateNestedOneWithoutAccountInput
467
+ syncStates?: Prisma.SyncStateCreateNestedManyWithoutAccountInput
468
+ calendarLists?: Prisma.CalendarListCreateNestedOneWithoutAccountInput
469
+ }
470
+
471
+ export type AccountUncheckedCreateWithoutThreadsInput = {
472
+ email: string
473
+ appId: string
474
+ accountStatus: $Enums.AccountStatus
475
+ tokens: string
476
+ createdAt: Date | string
477
+ updatedAt?: Date | string
478
+ labels?: Prisma.LabelUncheckedCreateNestedOneWithoutAccountInput
479
+ profiles?: Prisma.ProfileUncheckedCreateNestedOneWithoutAccountInput
480
+ syncStates?: Prisma.SyncStateUncheckedCreateNestedManyWithoutAccountInput
481
+ calendarLists?: Prisma.CalendarListUncheckedCreateNestedOneWithoutAccountInput
482
+ }
483
+
484
+ export type AccountCreateOrConnectWithoutThreadsInput = {
485
+ where: Prisma.AccountWhereUniqueInput
486
+ create: Prisma.XOR<Prisma.AccountCreateWithoutThreadsInput, Prisma.AccountUncheckedCreateWithoutThreadsInput>
487
+ }
488
+
489
+ export type AccountUpsertWithoutThreadsInput = {
490
+ update: Prisma.XOR<Prisma.AccountUpdateWithoutThreadsInput, Prisma.AccountUncheckedUpdateWithoutThreadsInput>
491
+ create: Prisma.XOR<Prisma.AccountCreateWithoutThreadsInput, Prisma.AccountUncheckedCreateWithoutThreadsInput>
492
+ where?: Prisma.AccountWhereInput
493
+ }
494
+
495
+ export type AccountUpdateToOneWithWhereWithoutThreadsInput = {
496
+ where?: Prisma.AccountWhereInput
497
+ data: Prisma.XOR<Prisma.AccountUpdateWithoutThreadsInput, Prisma.AccountUncheckedUpdateWithoutThreadsInput>
498
+ }
499
+
500
+ export type AccountUpdateWithoutThreadsInput = {
501
+ email?: Prisma.StringFieldUpdateOperationsInput | string
502
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
503
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
504
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
505
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
506
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
507
+ labels?: Prisma.LabelUpdateOneWithoutAccountNestedInput
508
+ profiles?: Prisma.ProfileUpdateOneWithoutAccountNestedInput
509
+ syncStates?: Prisma.SyncStateUpdateManyWithoutAccountNestedInput
510
+ calendarLists?: Prisma.CalendarListUpdateOneWithoutAccountNestedInput
511
+ }
512
+
513
+ export type AccountUncheckedUpdateWithoutThreadsInput = {
514
+ email?: Prisma.StringFieldUpdateOperationsInput | string
515
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
516
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
517
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
518
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
519
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
520
+ labels?: Prisma.LabelUncheckedUpdateOneWithoutAccountNestedInput
521
+ profiles?: Prisma.ProfileUncheckedUpdateOneWithoutAccountNestedInput
522
+ syncStates?: Prisma.SyncStateUncheckedUpdateManyWithoutAccountNestedInput
523
+ calendarLists?: Prisma.CalendarListUncheckedUpdateOneWithoutAccountNestedInput
524
+ }
525
+
526
+ export type AccountCreateWithoutLabelsInput = {
527
+ email: string
528
+ appId: string
529
+ accountStatus: $Enums.AccountStatus
530
+ tokens: string
531
+ createdAt: Date | string
532
+ updatedAt?: Date | string
533
+ threads?: Prisma.ThreadCreateNestedManyWithoutAccountInput
534
+ profiles?: Prisma.ProfileCreateNestedOneWithoutAccountInput
535
+ syncStates?: Prisma.SyncStateCreateNestedManyWithoutAccountInput
536
+ calendarLists?: Prisma.CalendarListCreateNestedOneWithoutAccountInput
537
+ }
538
+
539
+ export type AccountUncheckedCreateWithoutLabelsInput = {
540
+ email: string
541
+ appId: string
542
+ accountStatus: $Enums.AccountStatus
543
+ tokens: string
544
+ createdAt: Date | string
545
+ updatedAt?: Date | string
546
+ threads?: Prisma.ThreadUncheckedCreateNestedManyWithoutAccountInput
547
+ profiles?: Prisma.ProfileUncheckedCreateNestedOneWithoutAccountInput
548
+ syncStates?: Prisma.SyncStateUncheckedCreateNestedManyWithoutAccountInput
549
+ calendarLists?: Prisma.CalendarListUncheckedCreateNestedOneWithoutAccountInput
550
+ }
551
+
552
+ export type AccountCreateOrConnectWithoutLabelsInput = {
553
+ where: Prisma.AccountWhereUniqueInput
554
+ create: Prisma.XOR<Prisma.AccountCreateWithoutLabelsInput, Prisma.AccountUncheckedCreateWithoutLabelsInput>
555
+ }
556
+
557
+ export type AccountUpsertWithoutLabelsInput = {
558
+ update: Prisma.XOR<Prisma.AccountUpdateWithoutLabelsInput, Prisma.AccountUncheckedUpdateWithoutLabelsInput>
559
+ create: Prisma.XOR<Prisma.AccountCreateWithoutLabelsInput, Prisma.AccountUncheckedCreateWithoutLabelsInput>
560
+ where?: Prisma.AccountWhereInput
561
+ }
562
+
563
+ export type AccountUpdateToOneWithWhereWithoutLabelsInput = {
564
+ where?: Prisma.AccountWhereInput
565
+ data: Prisma.XOR<Prisma.AccountUpdateWithoutLabelsInput, Prisma.AccountUncheckedUpdateWithoutLabelsInput>
566
+ }
567
+
568
+ export type AccountUpdateWithoutLabelsInput = {
569
+ email?: Prisma.StringFieldUpdateOperationsInput | string
570
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
571
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
572
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
573
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
574
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
575
+ threads?: Prisma.ThreadUpdateManyWithoutAccountNestedInput
576
+ profiles?: Prisma.ProfileUpdateOneWithoutAccountNestedInput
577
+ syncStates?: Prisma.SyncStateUpdateManyWithoutAccountNestedInput
578
+ calendarLists?: Prisma.CalendarListUpdateOneWithoutAccountNestedInput
579
+ }
580
+
581
+ export type AccountUncheckedUpdateWithoutLabelsInput = {
582
+ email?: Prisma.StringFieldUpdateOperationsInput | string
583
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
584
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
585
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
586
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
587
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
588
+ threads?: Prisma.ThreadUncheckedUpdateManyWithoutAccountNestedInput
589
+ profiles?: Prisma.ProfileUncheckedUpdateOneWithoutAccountNestedInput
590
+ syncStates?: Prisma.SyncStateUncheckedUpdateManyWithoutAccountNestedInput
591
+ calendarLists?: Prisma.CalendarListUncheckedUpdateOneWithoutAccountNestedInput
592
+ }
593
+
594
+ export type AccountCreateWithoutProfilesInput = {
595
+ email: string
596
+ appId: string
597
+ accountStatus: $Enums.AccountStatus
598
+ tokens: string
599
+ createdAt: Date | string
600
+ updatedAt?: Date | string
601
+ threads?: Prisma.ThreadCreateNestedManyWithoutAccountInput
602
+ labels?: Prisma.LabelCreateNestedOneWithoutAccountInput
603
+ syncStates?: Prisma.SyncStateCreateNestedManyWithoutAccountInput
604
+ calendarLists?: Prisma.CalendarListCreateNestedOneWithoutAccountInput
605
+ }
606
+
607
+ export type AccountUncheckedCreateWithoutProfilesInput = {
608
+ email: string
609
+ appId: string
610
+ accountStatus: $Enums.AccountStatus
611
+ tokens: string
612
+ createdAt: Date | string
613
+ updatedAt?: Date | string
614
+ threads?: Prisma.ThreadUncheckedCreateNestedManyWithoutAccountInput
615
+ labels?: Prisma.LabelUncheckedCreateNestedOneWithoutAccountInput
616
+ syncStates?: Prisma.SyncStateUncheckedCreateNestedManyWithoutAccountInput
617
+ calendarLists?: Prisma.CalendarListUncheckedCreateNestedOneWithoutAccountInput
618
+ }
619
+
620
+ export type AccountCreateOrConnectWithoutProfilesInput = {
621
+ where: Prisma.AccountWhereUniqueInput
622
+ create: Prisma.XOR<Prisma.AccountCreateWithoutProfilesInput, Prisma.AccountUncheckedCreateWithoutProfilesInput>
623
+ }
624
+
625
+ export type AccountUpsertWithoutProfilesInput = {
626
+ update: Prisma.XOR<Prisma.AccountUpdateWithoutProfilesInput, Prisma.AccountUncheckedUpdateWithoutProfilesInput>
627
+ create: Prisma.XOR<Prisma.AccountCreateWithoutProfilesInput, Prisma.AccountUncheckedCreateWithoutProfilesInput>
628
+ where?: Prisma.AccountWhereInput
629
+ }
630
+
631
+ export type AccountUpdateToOneWithWhereWithoutProfilesInput = {
632
+ where?: Prisma.AccountWhereInput
633
+ data: Prisma.XOR<Prisma.AccountUpdateWithoutProfilesInput, Prisma.AccountUncheckedUpdateWithoutProfilesInput>
634
+ }
635
+
636
+ export type AccountUpdateWithoutProfilesInput = {
637
+ email?: Prisma.StringFieldUpdateOperationsInput | string
638
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
639
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
640
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
641
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
642
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
643
+ threads?: Prisma.ThreadUpdateManyWithoutAccountNestedInput
644
+ labels?: Prisma.LabelUpdateOneWithoutAccountNestedInput
645
+ syncStates?: Prisma.SyncStateUpdateManyWithoutAccountNestedInput
646
+ calendarLists?: Prisma.CalendarListUpdateOneWithoutAccountNestedInput
647
+ }
648
+
649
+ export type AccountUncheckedUpdateWithoutProfilesInput = {
650
+ email?: Prisma.StringFieldUpdateOperationsInput | string
651
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
652
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
653
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
654
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
655
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
656
+ threads?: Prisma.ThreadUncheckedUpdateManyWithoutAccountNestedInput
657
+ labels?: Prisma.LabelUncheckedUpdateOneWithoutAccountNestedInput
658
+ syncStates?: Prisma.SyncStateUncheckedUpdateManyWithoutAccountNestedInput
659
+ calendarLists?: Prisma.CalendarListUncheckedUpdateOneWithoutAccountNestedInput
660
+ }
661
+
662
+ export type AccountCreateWithoutCalendarListsInput = {
663
+ email: string
664
+ appId: string
665
+ accountStatus: $Enums.AccountStatus
666
+ tokens: string
667
+ createdAt: Date | string
668
+ updatedAt?: Date | string
669
+ threads?: Prisma.ThreadCreateNestedManyWithoutAccountInput
670
+ labels?: Prisma.LabelCreateNestedOneWithoutAccountInput
671
+ profiles?: Prisma.ProfileCreateNestedOneWithoutAccountInput
672
+ syncStates?: Prisma.SyncStateCreateNestedManyWithoutAccountInput
673
+ }
674
+
675
+ export type AccountUncheckedCreateWithoutCalendarListsInput = {
676
+ email: string
677
+ appId: string
678
+ accountStatus: $Enums.AccountStatus
679
+ tokens: string
680
+ createdAt: Date | string
681
+ updatedAt?: Date | string
682
+ threads?: Prisma.ThreadUncheckedCreateNestedManyWithoutAccountInput
683
+ labels?: Prisma.LabelUncheckedCreateNestedOneWithoutAccountInput
684
+ profiles?: Prisma.ProfileUncheckedCreateNestedOneWithoutAccountInput
685
+ syncStates?: Prisma.SyncStateUncheckedCreateNestedManyWithoutAccountInput
686
+ }
687
+
688
+ export type AccountCreateOrConnectWithoutCalendarListsInput = {
689
+ where: Prisma.AccountWhereUniqueInput
690
+ create: Prisma.XOR<Prisma.AccountCreateWithoutCalendarListsInput, Prisma.AccountUncheckedCreateWithoutCalendarListsInput>
691
+ }
692
+
693
+ export type AccountUpsertWithoutCalendarListsInput = {
694
+ update: Prisma.XOR<Prisma.AccountUpdateWithoutCalendarListsInput, Prisma.AccountUncheckedUpdateWithoutCalendarListsInput>
695
+ create: Prisma.XOR<Prisma.AccountCreateWithoutCalendarListsInput, Prisma.AccountUncheckedCreateWithoutCalendarListsInput>
696
+ where?: Prisma.AccountWhereInput
697
+ }
698
+
699
+ export type AccountUpdateToOneWithWhereWithoutCalendarListsInput = {
700
+ where?: Prisma.AccountWhereInput
701
+ data: Prisma.XOR<Prisma.AccountUpdateWithoutCalendarListsInput, Prisma.AccountUncheckedUpdateWithoutCalendarListsInput>
702
+ }
703
+
704
+ export type AccountUpdateWithoutCalendarListsInput = {
705
+ email?: Prisma.StringFieldUpdateOperationsInput | string
706
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
707
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
708
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
709
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
710
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
711
+ threads?: Prisma.ThreadUpdateManyWithoutAccountNestedInput
712
+ labels?: Prisma.LabelUpdateOneWithoutAccountNestedInput
713
+ profiles?: Prisma.ProfileUpdateOneWithoutAccountNestedInput
714
+ syncStates?: Prisma.SyncStateUpdateManyWithoutAccountNestedInput
715
+ }
716
+
717
+ export type AccountUncheckedUpdateWithoutCalendarListsInput = {
718
+ email?: Prisma.StringFieldUpdateOperationsInput | string
719
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
720
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
721
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
722
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
723
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
724
+ threads?: Prisma.ThreadUncheckedUpdateManyWithoutAccountNestedInput
725
+ labels?: Prisma.LabelUncheckedUpdateOneWithoutAccountNestedInput
726
+ profiles?: Prisma.ProfileUncheckedUpdateOneWithoutAccountNestedInput
727
+ syncStates?: Prisma.SyncStateUncheckedUpdateManyWithoutAccountNestedInput
728
+ }
729
+
730
+ export type AccountCreateWithoutSyncStatesInput = {
731
+ email: string
732
+ appId: string
733
+ accountStatus: $Enums.AccountStatus
734
+ tokens: string
735
+ createdAt: Date | string
736
+ updatedAt?: Date | string
737
+ threads?: Prisma.ThreadCreateNestedManyWithoutAccountInput
738
+ labels?: Prisma.LabelCreateNestedOneWithoutAccountInput
739
+ profiles?: Prisma.ProfileCreateNestedOneWithoutAccountInput
740
+ calendarLists?: Prisma.CalendarListCreateNestedOneWithoutAccountInput
741
+ }
742
+
743
+ export type AccountUncheckedCreateWithoutSyncStatesInput = {
744
+ email: string
745
+ appId: string
746
+ accountStatus: $Enums.AccountStatus
747
+ tokens: string
748
+ createdAt: Date | string
749
+ updatedAt?: Date | string
750
+ threads?: Prisma.ThreadUncheckedCreateNestedManyWithoutAccountInput
751
+ labels?: Prisma.LabelUncheckedCreateNestedOneWithoutAccountInput
752
+ profiles?: Prisma.ProfileUncheckedCreateNestedOneWithoutAccountInput
753
+ calendarLists?: Prisma.CalendarListUncheckedCreateNestedOneWithoutAccountInput
754
+ }
755
+
756
+ export type AccountCreateOrConnectWithoutSyncStatesInput = {
757
+ where: Prisma.AccountWhereUniqueInput
758
+ create: Prisma.XOR<Prisma.AccountCreateWithoutSyncStatesInput, Prisma.AccountUncheckedCreateWithoutSyncStatesInput>
759
+ }
760
+
761
+ export type AccountUpsertWithoutSyncStatesInput = {
762
+ update: Prisma.XOR<Prisma.AccountUpdateWithoutSyncStatesInput, Prisma.AccountUncheckedUpdateWithoutSyncStatesInput>
763
+ create: Prisma.XOR<Prisma.AccountCreateWithoutSyncStatesInput, Prisma.AccountUncheckedCreateWithoutSyncStatesInput>
764
+ where?: Prisma.AccountWhereInput
765
+ }
766
+
767
+ export type AccountUpdateToOneWithWhereWithoutSyncStatesInput = {
768
+ where?: Prisma.AccountWhereInput
769
+ data: Prisma.XOR<Prisma.AccountUpdateWithoutSyncStatesInput, Prisma.AccountUncheckedUpdateWithoutSyncStatesInput>
770
+ }
771
+
772
+ export type AccountUpdateWithoutSyncStatesInput = {
773
+ email?: Prisma.StringFieldUpdateOperationsInput | string
774
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
775
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
776
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
777
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
778
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
779
+ threads?: Prisma.ThreadUpdateManyWithoutAccountNestedInput
780
+ labels?: Prisma.LabelUpdateOneWithoutAccountNestedInput
781
+ profiles?: Prisma.ProfileUpdateOneWithoutAccountNestedInput
782
+ calendarLists?: Prisma.CalendarListUpdateOneWithoutAccountNestedInput
783
+ }
784
+
785
+ export type AccountUncheckedUpdateWithoutSyncStatesInput = {
786
+ email?: Prisma.StringFieldUpdateOperationsInput | string
787
+ appId?: Prisma.StringFieldUpdateOperationsInput | string
788
+ accountStatus?: Prisma.EnumAccountStatusFieldUpdateOperationsInput | $Enums.AccountStatus
789
+ tokens?: Prisma.StringFieldUpdateOperationsInput | string
790
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
791
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
792
+ threads?: Prisma.ThreadUncheckedUpdateManyWithoutAccountNestedInput
793
+ labels?: Prisma.LabelUncheckedUpdateOneWithoutAccountNestedInput
794
+ profiles?: Prisma.ProfileUncheckedUpdateOneWithoutAccountNestedInput
795
+ calendarLists?: Prisma.CalendarListUncheckedUpdateOneWithoutAccountNestedInput
796
+ }
797
+
798
+
799
+ /**
800
+ * Count Type AccountCountOutputType
801
+ */
802
+
803
+ export type AccountCountOutputType = {
804
+ threads: number
805
+ syncStates: number
806
+ }
807
+
808
+ export type AccountCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
809
+ threads?: boolean | AccountCountOutputTypeCountThreadsArgs
810
+ syncStates?: boolean | AccountCountOutputTypeCountSyncStatesArgs
811
+ }
812
+
813
+ /**
814
+ * AccountCountOutputType without action
815
+ */
816
+ export type AccountCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
817
+ /**
818
+ * Select specific fields to fetch from the AccountCountOutputType
819
+ */
820
+ select?: Prisma.AccountCountOutputTypeSelect<ExtArgs> | null
821
+ }
822
+
823
+ /**
824
+ * AccountCountOutputType without action
825
+ */
826
+ export type AccountCountOutputTypeCountThreadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
827
+ where?: Prisma.ThreadWhereInput
828
+ }
829
+
830
+ /**
831
+ * AccountCountOutputType without action
832
+ */
833
+ export type AccountCountOutputTypeCountSyncStatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
834
+ where?: Prisma.SyncStateWhereInput
835
+ }
836
+
837
+
838
+ export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
839
+ email?: boolean
840
+ appId?: boolean
841
+ accountStatus?: boolean
842
+ tokens?: boolean
843
+ createdAt?: boolean
844
+ updatedAt?: boolean
845
+ threads?: boolean | Prisma.Account$threadsArgs<ExtArgs>
846
+ labels?: boolean | Prisma.Account$labelsArgs<ExtArgs>
847
+ profiles?: boolean | Prisma.Account$profilesArgs<ExtArgs>
848
+ syncStates?: boolean | Prisma.Account$syncStatesArgs<ExtArgs>
849
+ calendarLists?: boolean | Prisma.Account$calendarListsArgs<ExtArgs>
850
+ _count?: boolean | Prisma.AccountCountOutputTypeDefaultArgs<ExtArgs>
851
+ }, ExtArgs["result"]["account"]>
852
+
853
+ export type AccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
854
+ email?: boolean
855
+ appId?: boolean
856
+ accountStatus?: boolean
857
+ tokens?: boolean
858
+ createdAt?: boolean
859
+ updatedAt?: boolean
860
+ }, ExtArgs["result"]["account"]>
861
+
862
+ export type AccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
863
+ email?: boolean
864
+ appId?: boolean
865
+ accountStatus?: boolean
866
+ tokens?: boolean
867
+ createdAt?: boolean
868
+ updatedAt?: boolean
869
+ }, ExtArgs["result"]["account"]>
870
+
871
+ export type AccountSelectScalar = {
872
+ email?: boolean
873
+ appId?: boolean
874
+ accountStatus?: boolean
875
+ tokens?: boolean
876
+ createdAt?: boolean
877
+ updatedAt?: boolean
878
+ }
879
+
880
+ export type AccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"email" | "appId" | "accountStatus" | "tokens" | "createdAt" | "updatedAt", ExtArgs["result"]["account"]>
881
+ export type AccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
882
+ threads?: boolean | Prisma.Account$threadsArgs<ExtArgs>
883
+ labels?: boolean | Prisma.Account$labelsArgs<ExtArgs>
884
+ profiles?: boolean | Prisma.Account$profilesArgs<ExtArgs>
885
+ syncStates?: boolean | Prisma.Account$syncStatesArgs<ExtArgs>
886
+ calendarLists?: boolean | Prisma.Account$calendarListsArgs<ExtArgs>
887
+ _count?: boolean | Prisma.AccountCountOutputTypeDefaultArgs<ExtArgs>
888
+ }
889
+ export type AccountIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
890
+ export type AccountIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
891
+
892
+ export type $AccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
893
+ name: "Account"
894
+ objects: {
895
+ threads: Prisma.$ThreadPayload<ExtArgs>[]
896
+ labels: Prisma.$LabelPayload<ExtArgs> | null
897
+ profiles: Prisma.$ProfilePayload<ExtArgs> | null
898
+ syncStates: Prisma.$SyncStatePayload<ExtArgs>[]
899
+ calendarLists: Prisma.$CalendarListPayload<ExtArgs> | null
900
+ }
901
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
902
+ email: string
903
+ appId: string
904
+ accountStatus: $Enums.AccountStatus
905
+ tokens: string
906
+ createdAt: Date
907
+ updatedAt: Date
908
+ }, ExtArgs["result"]["account"]>
909
+ composites: {}
910
+ }
911
+
912
+ export type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AccountPayload, S>
913
+
914
+ export type AccountCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
915
+ Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
916
+ select?: AccountCountAggregateInputType | true
917
+ }
918
+
919
+ export interface AccountDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
920
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
921
+ /**
922
+ * Find zero or one Account that matches the filter.
923
+ * @param {AccountFindUniqueArgs} args - Arguments to find a Account
924
+ * @example
925
+ * // Get one Account
926
+ * const account = await prisma.account.findUnique({
927
+ * where: {
928
+ * // ... provide filter here
929
+ * }
930
+ * })
931
+ */
932
+ 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>
933
+
934
+ /**
935
+ * Find one Account that matches the filter or throw an error with `error.code='P2025'`
936
+ * if no matches were found.
937
+ * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
938
+ * @example
939
+ * // Get one Account
940
+ * const account = await prisma.account.findUniqueOrThrow({
941
+ * where: {
942
+ * // ... provide filter here
943
+ * }
944
+ * })
945
+ */
946
+ 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>
947
+
948
+ /**
949
+ * Find the first Account that matches the filter.
950
+ * Note, that providing `undefined` is treated as the value not being there.
951
+ * Read more here: https://pris.ly/d/null-undefined
952
+ * @param {AccountFindFirstArgs} args - Arguments to find a Account
953
+ * @example
954
+ * // Get one Account
955
+ * const account = await prisma.account.findFirst({
956
+ * where: {
957
+ * // ... provide filter here
958
+ * }
959
+ * })
960
+ */
961
+ 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>
962
+
963
+ /**
964
+ * Find the first Account that matches the filter or
965
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
966
+ * Note, that providing `undefined` is treated as the value not being there.
967
+ * Read more here: https://pris.ly/d/null-undefined
968
+ * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
969
+ * @example
970
+ * // Get one Account
971
+ * const account = await prisma.account.findFirstOrThrow({
972
+ * where: {
973
+ * // ... provide filter here
974
+ * }
975
+ * })
976
+ */
977
+ 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>
978
+
979
+ /**
980
+ * Find zero or more Accounts that matches the filter.
981
+ * Note, that providing `undefined` is treated as the value not being there.
982
+ * Read more here: https://pris.ly/d/null-undefined
983
+ * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
984
+ * @example
985
+ * // Get all Accounts
986
+ * const accounts = await prisma.account.findMany()
987
+ *
988
+ * // Get first 10 Accounts
989
+ * const accounts = await prisma.account.findMany({ take: 10 })
990
+ *
991
+ * // Only select the `email`
992
+ * const accountWithEmailOnly = await prisma.account.findMany({ select: { email: true } })
993
+ *
994
+ */
995
+ findMany<T extends AccountFindManyArgs>(args?: Prisma.SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
996
+
997
+ /**
998
+ * Create a Account.
999
+ * @param {AccountCreateArgs} args - Arguments to create a Account.
1000
+ * @example
1001
+ * // Create one Account
1002
+ * const Account = await prisma.account.create({
1003
+ * data: {
1004
+ * // ... data to create a Account
1005
+ * }
1006
+ * })
1007
+ *
1008
+ */
1009
+ 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>
1010
+
1011
+ /**
1012
+ * Create many Accounts.
1013
+ * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
1014
+ * @example
1015
+ * // Create many Accounts
1016
+ * const account = await prisma.account.createMany({
1017
+ * data: [
1018
+ * // ... provide data here
1019
+ * ]
1020
+ * })
1021
+ *
1022
+ */
1023
+ createMany<T extends AccountCreateManyArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1024
+
1025
+ /**
1026
+ * Create many Accounts and returns the data saved in the database.
1027
+ * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
1028
+ * @example
1029
+ * // Create many Accounts
1030
+ * const account = await prisma.account.createManyAndReturn({
1031
+ * data: [
1032
+ * // ... provide data here
1033
+ * ]
1034
+ * })
1035
+ *
1036
+ * // Create many Accounts and only return the `email`
1037
+ * const accountWithEmailOnly = await prisma.account.createManyAndReturn({
1038
+ * select: { email: true },
1039
+ * data: [
1040
+ * // ... provide data here
1041
+ * ]
1042
+ * })
1043
+ * Note, that providing `undefined` is treated as the value not being there.
1044
+ * Read more here: https://pris.ly/d/null-undefined
1045
+ *
1046
+ */
1047
+ createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1048
+
1049
+ /**
1050
+ * Delete a Account.
1051
+ * @param {AccountDeleteArgs} args - Arguments to delete one Account.
1052
+ * @example
1053
+ * // Delete one Account
1054
+ * const Account = await prisma.account.delete({
1055
+ * where: {
1056
+ * // ... filter to delete one Account
1057
+ * }
1058
+ * })
1059
+ *
1060
+ */
1061
+ 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>
1062
+
1063
+ /**
1064
+ * Update one Account.
1065
+ * @param {AccountUpdateArgs} args - Arguments to update one Account.
1066
+ * @example
1067
+ * // Update one Account
1068
+ * const account = await prisma.account.update({
1069
+ * where: {
1070
+ * // ... provide filter here
1071
+ * },
1072
+ * data: {
1073
+ * // ... provide data here
1074
+ * }
1075
+ * })
1076
+ *
1077
+ */
1078
+ 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>
1079
+
1080
+ /**
1081
+ * Delete zero or more Accounts.
1082
+ * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
1083
+ * @example
1084
+ * // Delete a few Accounts
1085
+ * const { count } = await prisma.account.deleteMany({
1086
+ * where: {
1087
+ * // ... provide filter here
1088
+ * }
1089
+ * })
1090
+ *
1091
+ */
1092
+ deleteMany<T extends AccountDeleteManyArgs>(args?: Prisma.SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1093
+
1094
+ /**
1095
+ * Update zero or more Accounts.
1096
+ * Note, that providing `undefined` is treated as the value not being there.
1097
+ * Read more here: https://pris.ly/d/null-undefined
1098
+ * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
1099
+ * @example
1100
+ * // Update many Accounts
1101
+ * const account = await prisma.account.updateMany({
1102
+ * where: {
1103
+ * // ... provide filter here
1104
+ * },
1105
+ * data: {
1106
+ * // ... provide data here
1107
+ * }
1108
+ * })
1109
+ *
1110
+ */
1111
+ updateMany<T extends AccountUpdateManyArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1112
+
1113
+ /**
1114
+ * Update zero or more Accounts and returns the data updated in the database.
1115
+ * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
1116
+ * @example
1117
+ * // Update many Accounts
1118
+ * const account = await prisma.account.updateManyAndReturn({
1119
+ * where: {
1120
+ * // ... provide filter here
1121
+ * },
1122
+ * data: [
1123
+ * // ... provide data here
1124
+ * ]
1125
+ * })
1126
+ *
1127
+ * // Update zero or more Accounts and only return the `email`
1128
+ * const accountWithEmailOnly = await prisma.account.updateManyAndReturn({
1129
+ * select: { email: true },
1130
+ * where: {
1131
+ * // ... provide filter here
1132
+ * },
1133
+ * data: [
1134
+ * // ... provide data here
1135
+ * ]
1136
+ * })
1137
+ * Note, that providing `undefined` is treated as the value not being there.
1138
+ * Read more here: https://pris.ly/d/null-undefined
1139
+ *
1140
+ */
1141
+ updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1142
+
1143
+ /**
1144
+ * Create or update one Account.
1145
+ * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
1146
+ * @example
1147
+ * // Update or create a Account
1148
+ * const account = await prisma.account.upsert({
1149
+ * create: {
1150
+ * // ... data to create a Account
1151
+ * },
1152
+ * update: {
1153
+ * // ... in case it already exists, update
1154
+ * },
1155
+ * where: {
1156
+ * // ... the filter for the Account we want to update
1157
+ * }
1158
+ * })
1159
+ */
1160
+ 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>
1161
+
1162
+
1163
+ /**
1164
+ * Count the number of Accounts.
1165
+ * Note, that providing `undefined` is treated as the value not being there.
1166
+ * Read more here: https://pris.ly/d/null-undefined
1167
+ * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
1168
+ * @example
1169
+ * // Count the number of Accounts
1170
+ * const count = await prisma.account.count({
1171
+ * where: {
1172
+ * // ... the filter for the Accounts we want to count
1173
+ * }
1174
+ * })
1175
+ **/
1176
+ count<T extends AccountCountArgs>(
1177
+ args?: Prisma.Subset<T, AccountCountArgs>,
1178
+ ): Prisma.PrismaPromise<
1179
+ T extends runtime.Types.Utils.Record<'select', any>
1180
+ ? T['select'] extends true
1181
+ ? number
1182
+ : Prisma.GetScalarType<T['select'], AccountCountAggregateOutputType>
1183
+ : number
1184
+ >
1185
+
1186
+ /**
1187
+ * Allows you to perform aggregations operations on a Account.
1188
+ * Note, that providing `undefined` is treated as the value not being there.
1189
+ * Read more here: https://pris.ly/d/null-undefined
1190
+ * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1191
+ * @example
1192
+ * // Ordered by age ascending
1193
+ * // Where email contains prisma.io
1194
+ * // Limited to the 10 users
1195
+ * const aggregations = await prisma.user.aggregate({
1196
+ * _avg: {
1197
+ * age: true,
1198
+ * },
1199
+ * where: {
1200
+ * email: {
1201
+ * contains: "prisma.io",
1202
+ * },
1203
+ * },
1204
+ * orderBy: {
1205
+ * age: "asc",
1206
+ * },
1207
+ * take: 10,
1208
+ * })
1209
+ **/
1210
+ aggregate<T extends AccountAggregateArgs>(args: Prisma.Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
1211
+
1212
+ /**
1213
+ * Group by Account.
1214
+ * Note, that providing `undefined` is treated as the value not being there.
1215
+ * Read more here: https://pris.ly/d/null-undefined
1216
+ * @param {AccountGroupByArgs} args - Group by arguments.
1217
+ * @example
1218
+ * // Group by city, order by createdAt, get count
1219
+ * const result = await prisma.user.groupBy({
1220
+ * by: ['city', 'createdAt'],
1221
+ * orderBy: {
1222
+ * createdAt: true
1223
+ * },
1224
+ * _count: {
1225
+ * _all: true
1226
+ * },
1227
+ * })
1228
+ *
1229
+ **/
1230
+ groupBy<
1231
+ T extends AccountGroupByArgs,
1232
+ HasSelectOrTake extends Prisma.Or<
1233
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1234
+ Prisma.Extends<'take', Prisma.Keys<T>>
1235
+ >,
1236
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1237
+ ? { orderBy: AccountGroupByArgs['orderBy'] }
1238
+ : { orderBy?: AccountGroupByArgs['orderBy'] },
1239
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1240
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1241
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1242
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1243
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1244
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1245
+ InputErrors extends ByEmpty extends Prisma.True
1246
+ ? `Error: "by" must not be empty.`
1247
+ : HavingValid extends Prisma.False
1248
+ ? {
1249
+ [P in HavingFields]: P extends ByFields
1250
+ ? never
1251
+ : P extends string
1252
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1253
+ : [
1254
+ Error,
1255
+ 'Field ',
1256
+ P,
1257
+ ` in "having" needs to be provided in "by"`,
1258
+ ]
1259
+ }[HavingFields]
1260
+ : 'take' extends Prisma.Keys<T>
1261
+ ? 'orderBy' extends Prisma.Keys<T>
1262
+ ? ByValid extends Prisma.True
1263
+ ? {}
1264
+ : {
1265
+ [P in OrderFields]: P extends ByFields
1266
+ ? never
1267
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1268
+ }[OrderFields]
1269
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1270
+ : 'skip' extends Prisma.Keys<T>
1271
+ ? 'orderBy' extends Prisma.Keys<T>
1272
+ ? ByValid extends Prisma.True
1273
+ ? {}
1274
+ : {
1275
+ [P in OrderFields]: P extends ByFields
1276
+ ? never
1277
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1278
+ }[OrderFields]
1279
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1280
+ : ByValid extends Prisma.True
1281
+ ? {}
1282
+ : {
1283
+ [P in OrderFields]: P extends ByFields
1284
+ ? never
1285
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1286
+ }[OrderFields]
1287
+ >(args: Prisma.SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1288
+ /**
1289
+ * Fields of the Account model
1290
+ */
1291
+ readonly fields: AccountFieldRefs;
1292
+ }
1293
+
1294
+ /**
1295
+ * The delegate class that acts as a "Promise-like" for Account.
1296
+ * Why is this prefixed with `Prisma__`?
1297
+ * Because we want to prevent naming conflicts as mentioned in
1298
+ * https://github.com/prisma/prisma-client-js/issues/707
1299
+ */
1300
+ export interface Prisma__AccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1301
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1302
+ threads<T extends Prisma.Account$threadsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$threadsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ThreadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1303
+ labels<T extends Prisma.Account$labelsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$labelsArgs<ExtArgs>>): Prisma.Prisma__LabelClient<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1304
+ profiles<T extends Prisma.Account$profilesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$profilesArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1305
+ syncStates<T extends Prisma.Account$syncStatesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$syncStatesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SyncStatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1306
+ calendarLists<T extends Prisma.Account$calendarListsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$calendarListsArgs<ExtArgs>>): Prisma.Prisma__CalendarListClient<runtime.Types.Result.GetResult<Prisma.$CalendarListPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1307
+ /**
1308
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1309
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1310
+ * @param onrejected The callback to execute when the Promise is rejected.
1311
+ * @returns A Promise for the completion of which ever callback is executed.
1312
+ */
1313
+ 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>
1314
+ /**
1315
+ * Attaches a callback for only the rejection of the Promise.
1316
+ * @param onrejected The callback to execute when the Promise is rejected.
1317
+ * @returns A Promise for the completion of the callback.
1318
+ */
1319
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1320
+ /**
1321
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1322
+ * resolved value cannot be modified from the callback.
1323
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1324
+ * @returns A Promise for the completion of the callback.
1325
+ */
1326
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1327
+ }
1328
+
1329
+
1330
+
1331
+
1332
+ /**
1333
+ * Fields of the Account model
1334
+ */
1335
+ export interface AccountFieldRefs {
1336
+ readonly email: Prisma.FieldRef<"Account", 'String'>
1337
+ readonly appId: Prisma.FieldRef<"Account", 'String'>
1338
+ readonly accountStatus: Prisma.FieldRef<"Account", 'AccountStatus'>
1339
+ readonly tokens: Prisma.FieldRef<"Account", 'String'>
1340
+ readonly createdAt: Prisma.FieldRef<"Account", 'DateTime'>
1341
+ readonly updatedAt: Prisma.FieldRef<"Account", 'DateTime'>
1342
+ }
1343
+
1344
+
1345
+ // Custom InputTypes
1346
+ /**
1347
+ * Account findUnique
1348
+ */
1349
+ export type AccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1350
+ /**
1351
+ * Select specific fields to fetch from the Account
1352
+ */
1353
+ select?: Prisma.AccountSelect<ExtArgs> | null
1354
+ /**
1355
+ * Omit specific fields from the Account
1356
+ */
1357
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1358
+ /**
1359
+ * Choose, which related nodes to fetch as well
1360
+ */
1361
+ include?: Prisma.AccountInclude<ExtArgs> | null
1362
+ /**
1363
+ * Filter, which Account to fetch.
1364
+ */
1365
+ where: Prisma.AccountWhereUniqueInput
1366
+ }
1367
+
1368
+ /**
1369
+ * Account findUniqueOrThrow
1370
+ */
1371
+ export type AccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1372
+ /**
1373
+ * Select specific fields to fetch from the Account
1374
+ */
1375
+ select?: Prisma.AccountSelect<ExtArgs> | null
1376
+ /**
1377
+ * Omit specific fields from the Account
1378
+ */
1379
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1380
+ /**
1381
+ * Choose, which related nodes to fetch as well
1382
+ */
1383
+ include?: Prisma.AccountInclude<ExtArgs> | null
1384
+ /**
1385
+ * Filter, which Account to fetch.
1386
+ */
1387
+ where: Prisma.AccountWhereUniqueInput
1388
+ }
1389
+
1390
+ /**
1391
+ * Account findFirst
1392
+ */
1393
+ export type AccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1394
+ /**
1395
+ * Select specific fields to fetch from the Account
1396
+ */
1397
+ select?: Prisma.AccountSelect<ExtArgs> | null
1398
+ /**
1399
+ * Omit specific fields from the Account
1400
+ */
1401
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1402
+ /**
1403
+ * Choose, which related nodes to fetch as well
1404
+ */
1405
+ include?: Prisma.AccountInclude<ExtArgs> | null
1406
+ /**
1407
+ * Filter, which Account to fetch.
1408
+ */
1409
+ where?: Prisma.AccountWhereInput
1410
+ /**
1411
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1412
+ *
1413
+ * Determine the order of Accounts to fetch.
1414
+ */
1415
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1416
+ /**
1417
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1418
+ *
1419
+ * Sets the position for searching for Accounts.
1420
+ */
1421
+ cursor?: Prisma.AccountWhereUniqueInput
1422
+ /**
1423
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1424
+ *
1425
+ * Take `±n` Accounts from the position of the cursor.
1426
+ */
1427
+ take?: number
1428
+ /**
1429
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1430
+ *
1431
+ * Skip the first `n` Accounts.
1432
+ */
1433
+ skip?: number
1434
+ /**
1435
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1436
+ *
1437
+ * Filter by unique combinations of Accounts.
1438
+ */
1439
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1440
+ }
1441
+
1442
+ /**
1443
+ * Account findFirstOrThrow
1444
+ */
1445
+ export type AccountFindFirstOrThrowArgs<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
+ * Filter, which Account to fetch.
1460
+ */
1461
+ where?: Prisma.AccountWhereInput
1462
+ /**
1463
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1464
+ *
1465
+ * Determine the order of Accounts to fetch.
1466
+ */
1467
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1468
+ /**
1469
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1470
+ *
1471
+ * Sets the position for searching for Accounts.
1472
+ */
1473
+ cursor?: Prisma.AccountWhereUniqueInput
1474
+ /**
1475
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1476
+ *
1477
+ * Take `±n` Accounts from the position of the cursor.
1478
+ */
1479
+ take?: number
1480
+ /**
1481
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1482
+ *
1483
+ * Skip the first `n` Accounts.
1484
+ */
1485
+ skip?: number
1486
+ /**
1487
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1488
+ *
1489
+ * Filter by unique combinations of Accounts.
1490
+ */
1491
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1492
+ }
1493
+
1494
+ /**
1495
+ * Account findMany
1496
+ */
1497
+ export type AccountFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1498
+ /**
1499
+ * Select specific fields to fetch from the Account
1500
+ */
1501
+ select?: Prisma.AccountSelect<ExtArgs> | null
1502
+ /**
1503
+ * Omit specific fields from the Account
1504
+ */
1505
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1506
+ /**
1507
+ * Choose, which related nodes to fetch as well
1508
+ */
1509
+ include?: Prisma.AccountInclude<ExtArgs> | null
1510
+ /**
1511
+ * Filter, which Accounts to fetch.
1512
+ */
1513
+ where?: Prisma.AccountWhereInput
1514
+ /**
1515
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1516
+ *
1517
+ * Determine the order of Accounts to fetch.
1518
+ */
1519
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1520
+ /**
1521
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1522
+ *
1523
+ * Sets the position for listing Accounts.
1524
+ */
1525
+ cursor?: Prisma.AccountWhereUniqueInput
1526
+ /**
1527
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1528
+ *
1529
+ * Take `±n` Accounts from the position of the cursor.
1530
+ */
1531
+ take?: number
1532
+ /**
1533
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1534
+ *
1535
+ * Skip the first `n` Accounts.
1536
+ */
1537
+ skip?: number
1538
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1539
+ }
1540
+
1541
+ /**
1542
+ * Account create
1543
+ */
1544
+ export type AccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1545
+ /**
1546
+ * Select specific fields to fetch from the Account
1547
+ */
1548
+ select?: Prisma.AccountSelect<ExtArgs> | null
1549
+ /**
1550
+ * Omit specific fields from the Account
1551
+ */
1552
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1553
+ /**
1554
+ * Choose, which related nodes to fetch as well
1555
+ */
1556
+ include?: Prisma.AccountInclude<ExtArgs> | null
1557
+ /**
1558
+ * The data needed to create a Account.
1559
+ */
1560
+ data: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>
1561
+ }
1562
+
1563
+ /**
1564
+ * Account createMany
1565
+ */
1566
+ export type AccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1567
+ /**
1568
+ * The data used to create many Accounts.
1569
+ */
1570
+ data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[]
1571
+ }
1572
+
1573
+ /**
1574
+ * Account createManyAndReturn
1575
+ */
1576
+ export type AccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1577
+ /**
1578
+ * Select specific fields to fetch from the Account
1579
+ */
1580
+ select?: Prisma.AccountSelectCreateManyAndReturn<ExtArgs> | null
1581
+ /**
1582
+ * Omit specific fields from the Account
1583
+ */
1584
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1585
+ /**
1586
+ * The data used to create many Accounts.
1587
+ */
1588
+ data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[]
1589
+ }
1590
+
1591
+ /**
1592
+ * Account update
1593
+ */
1594
+ export type AccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1595
+ /**
1596
+ * Select specific fields to fetch from the Account
1597
+ */
1598
+ select?: Prisma.AccountSelect<ExtArgs> | null
1599
+ /**
1600
+ * Omit specific fields from the Account
1601
+ */
1602
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1603
+ /**
1604
+ * Choose, which related nodes to fetch as well
1605
+ */
1606
+ include?: Prisma.AccountInclude<ExtArgs> | null
1607
+ /**
1608
+ * The data needed to update a Account.
1609
+ */
1610
+ data: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>
1611
+ /**
1612
+ * Choose, which Account to update.
1613
+ */
1614
+ where: Prisma.AccountWhereUniqueInput
1615
+ }
1616
+
1617
+ /**
1618
+ * Account updateMany
1619
+ */
1620
+ export type AccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1621
+ /**
1622
+ * The data used to update Accounts.
1623
+ */
1624
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>
1625
+ /**
1626
+ * Filter which Accounts to update
1627
+ */
1628
+ where?: Prisma.AccountWhereInput
1629
+ /**
1630
+ * Limit how many Accounts to update.
1631
+ */
1632
+ limit?: number
1633
+ }
1634
+
1635
+ /**
1636
+ * Account updateManyAndReturn
1637
+ */
1638
+ export type AccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1639
+ /**
1640
+ * Select specific fields to fetch from the Account
1641
+ */
1642
+ select?: Prisma.AccountSelectUpdateManyAndReturn<ExtArgs> | null
1643
+ /**
1644
+ * Omit specific fields from the Account
1645
+ */
1646
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1647
+ /**
1648
+ * The data used to update Accounts.
1649
+ */
1650
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>
1651
+ /**
1652
+ * Filter which Accounts to update
1653
+ */
1654
+ where?: Prisma.AccountWhereInput
1655
+ /**
1656
+ * Limit how many Accounts to update.
1657
+ */
1658
+ limit?: number
1659
+ }
1660
+
1661
+ /**
1662
+ * Account upsert
1663
+ */
1664
+ export type AccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1665
+ /**
1666
+ * Select specific fields to fetch from the Account
1667
+ */
1668
+ select?: Prisma.AccountSelect<ExtArgs> | null
1669
+ /**
1670
+ * Omit specific fields from the Account
1671
+ */
1672
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1673
+ /**
1674
+ * Choose, which related nodes to fetch as well
1675
+ */
1676
+ include?: Prisma.AccountInclude<ExtArgs> | null
1677
+ /**
1678
+ * The filter to search for the Account to update in case it exists.
1679
+ */
1680
+ where: Prisma.AccountWhereUniqueInput
1681
+ /**
1682
+ * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
1683
+ */
1684
+ create: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>
1685
+ /**
1686
+ * In case the Account was found with the provided `where` argument, update it with this data.
1687
+ */
1688
+ update: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>
1689
+ }
1690
+
1691
+ /**
1692
+ * Account delete
1693
+ */
1694
+ export type AccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1695
+ /**
1696
+ * Select specific fields to fetch from the Account
1697
+ */
1698
+ select?: Prisma.AccountSelect<ExtArgs> | null
1699
+ /**
1700
+ * Omit specific fields from the Account
1701
+ */
1702
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1703
+ /**
1704
+ * Choose, which related nodes to fetch as well
1705
+ */
1706
+ include?: Prisma.AccountInclude<ExtArgs> | null
1707
+ /**
1708
+ * Filter which Account to delete.
1709
+ */
1710
+ where: Prisma.AccountWhereUniqueInput
1711
+ }
1712
+
1713
+ /**
1714
+ * Account deleteMany
1715
+ */
1716
+ export type AccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1717
+ /**
1718
+ * Filter which Accounts to delete
1719
+ */
1720
+ where?: Prisma.AccountWhereInput
1721
+ /**
1722
+ * Limit how many Accounts to delete.
1723
+ */
1724
+ limit?: number
1725
+ }
1726
+
1727
+ /**
1728
+ * Account.threads
1729
+ */
1730
+ export type Account$threadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1731
+ /**
1732
+ * Select specific fields to fetch from the Thread
1733
+ */
1734
+ select?: Prisma.ThreadSelect<ExtArgs> | null
1735
+ /**
1736
+ * Omit specific fields from the Thread
1737
+ */
1738
+ omit?: Prisma.ThreadOmit<ExtArgs> | null
1739
+ /**
1740
+ * Choose, which related nodes to fetch as well
1741
+ */
1742
+ include?: Prisma.ThreadInclude<ExtArgs> | null
1743
+ where?: Prisma.ThreadWhereInput
1744
+ orderBy?: Prisma.ThreadOrderByWithRelationInput | Prisma.ThreadOrderByWithRelationInput[]
1745
+ cursor?: Prisma.ThreadWhereUniqueInput
1746
+ take?: number
1747
+ skip?: number
1748
+ distinct?: Prisma.ThreadScalarFieldEnum | Prisma.ThreadScalarFieldEnum[]
1749
+ }
1750
+
1751
+ /**
1752
+ * Account.labels
1753
+ */
1754
+ export type Account$labelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1755
+ /**
1756
+ * Select specific fields to fetch from the Label
1757
+ */
1758
+ select?: Prisma.LabelSelect<ExtArgs> | null
1759
+ /**
1760
+ * Omit specific fields from the Label
1761
+ */
1762
+ omit?: Prisma.LabelOmit<ExtArgs> | null
1763
+ /**
1764
+ * Choose, which related nodes to fetch as well
1765
+ */
1766
+ include?: Prisma.LabelInclude<ExtArgs> | null
1767
+ where?: Prisma.LabelWhereInput
1768
+ }
1769
+
1770
+ /**
1771
+ * Account.profiles
1772
+ */
1773
+ export type Account$profilesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1774
+ /**
1775
+ * Select specific fields to fetch from the Profile
1776
+ */
1777
+ select?: Prisma.ProfileSelect<ExtArgs> | null
1778
+ /**
1779
+ * Omit specific fields from the Profile
1780
+ */
1781
+ omit?: Prisma.ProfileOmit<ExtArgs> | null
1782
+ /**
1783
+ * Choose, which related nodes to fetch as well
1784
+ */
1785
+ include?: Prisma.ProfileInclude<ExtArgs> | null
1786
+ where?: Prisma.ProfileWhereInput
1787
+ }
1788
+
1789
+ /**
1790
+ * Account.syncStates
1791
+ */
1792
+ export type Account$syncStatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1793
+ /**
1794
+ * Select specific fields to fetch from the SyncState
1795
+ */
1796
+ select?: Prisma.SyncStateSelect<ExtArgs> | null
1797
+ /**
1798
+ * Omit specific fields from the SyncState
1799
+ */
1800
+ omit?: Prisma.SyncStateOmit<ExtArgs> | null
1801
+ /**
1802
+ * Choose, which related nodes to fetch as well
1803
+ */
1804
+ include?: Prisma.SyncStateInclude<ExtArgs> | null
1805
+ where?: Prisma.SyncStateWhereInput
1806
+ orderBy?: Prisma.SyncStateOrderByWithRelationInput | Prisma.SyncStateOrderByWithRelationInput[]
1807
+ cursor?: Prisma.SyncStateWhereUniqueInput
1808
+ take?: number
1809
+ skip?: number
1810
+ distinct?: Prisma.SyncStateScalarFieldEnum | Prisma.SyncStateScalarFieldEnum[]
1811
+ }
1812
+
1813
+ /**
1814
+ * Account.calendarLists
1815
+ */
1816
+ export type Account$calendarListsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1817
+ /**
1818
+ * Select specific fields to fetch from the CalendarList
1819
+ */
1820
+ select?: Prisma.CalendarListSelect<ExtArgs> | null
1821
+ /**
1822
+ * Omit specific fields from the CalendarList
1823
+ */
1824
+ omit?: Prisma.CalendarListOmit<ExtArgs> | null
1825
+ /**
1826
+ * Choose, which related nodes to fetch as well
1827
+ */
1828
+ include?: Prisma.CalendarListInclude<ExtArgs> | null
1829
+ where?: Prisma.CalendarListWhereInput
1830
+ }
1831
+
1832
+ /**
1833
+ * Account without action
1834
+ */
1835
+ export type AccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1836
+ /**
1837
+ * Select specific fields to fetch from the Account
1838
+ */
1839
+ select?: Prisma.AccountSelect<ExtArgs> | null
1840
+ /**
1841
+ * Omit specific fields from the Account
1842
+ */
1843
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1844
+ /**
1845
+ * Choose, which related nodes to fetch as well
1846
+ */
1847
+ include?: Prisma.AccountInclude<ExtArgs> | null
1848
+ }