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