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,1269 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Profile
5
+ *
6
+ */
7
+ export type ProfileModel = runtime.Types.Result.DefaultSelection<Prisma.$ProfilePayload>;
8
+ export type AggregateProfile = {
9
+ _count: ProfileCountAggregateOutputType | null;
10
+ _avg: ProfileAvgAggregateOutputType | null;
11
+ _sum: ProfileSumAggregateOutputType | null;
12
+ _min: ProfileMinAggregateOutputType | null;
13
+ _max: ProfileMaxAggregateOutputType | null;
14
+ };
15
+ export type ProfileAvgAggregateOutputType = {
16
+ messagesTotal: number | null;
17
+ threadsTotal: number | null;
18
+ ttlMs: number | null;
19
+ };
20
+ export type ProfileSumAggregateOutputType = {
21
+ messagesTotal: number | null;
22
+ threadsTotal: number | null;
23
+ ttlMs: number | null;
24
+ };
25
+ export type ProfileMinAggregateOutputType = {
26
+ email: string | null;
27
+ appId: string | null;
28
+ emailAddress: string | null;
29
+ messagesTotal: number | null;
30
+ threadsTotal: number | null;
31
+ historyId: string | null;
32
+ ttlMs: number | null;
33
+ createdAt: Date | null;
34
+ };
35
+ export type ProfileMaxAggregateOutputType = {
36
+ email: string | null;
37
+ appId: string | null;
38
+ emailAddress: string | null;
39
+ messagesTotal: number | null;
40
+ threadsTotal: number | null;
41
+ historyId: string | null;
42
+ ttlMs: number | null;
43
+ createdAt: Date | null;
44
+ };
45
+ export type ProfileCountAggregateOutputType = {
46
+ email: number;
47
+ appId: number;
48
+ emailAddress: number;
49
+ messagesTotal: number;
50
+ threadsTotal: number;
51
+ historyId: number;
52
+ ttlMs: number;
53
+ createdAt: number;
54
+ _all: number;
55
+ };
56
+ export type ProfileAvgAggregateInputType = {
57
+ messagesTotal?: true;
58
+ threadsTotal?: true;
59
+ ttlMs?: true;
60
+ };
61
+ export type ProfileSumAggregateInputType = {
62
+ messagesTotal?: true;
63
+ threadsTotal?: true;
64
+ ttlMs?: true;
65
+ };
66
+ export type ProfileMinAggregateInputType = {
67
+ email?: true;
68
+ appId?: true;
69
+ emailAddress?: true;
70
+ messagesTotal?: true;
71
+ threadsTotal?: true;
72
+ historyId?: true;
73
+ ttlMs?: true;
74
+ createdAt?: true;
75
+ };
76
+ export type ProfileMaxAggregateInputType = {
77
+ email?: true;
78
+ appId?: true;
79
+ emailAddress?: true;
80
+ messagesTotal?: true;
81
+ threadsTotal?: true;
82
+ historyId?: true;
83
+ ttlMs?: true;
84
+ createdAt?: true;
85
+ };
86
+ export type ProfileCountAggregateInputType = {
87
+ email?: true;
88
+ appId?: true;
89
+ emailAddress?: true;
90
+ messagesTotal?: true;
91
+ threadsTotal?: true;
92
+ historyId?: true;
93
+ ttlMs?: true;
94
+ createdAt?: true;
95
+ _all?: true;
96
+ };
97
+ export type ProfileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
98
+ /**
99
+ * Filter which Profile to aggregate.
100
+ */
101
+ where?: Prisma.ProfileWhereInput;
102
+ /**
103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
104
+ *
105
+ * Determine the order of Profiles to fetch.
106
+ */
107
+ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[];
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
110
+ *
111
+ * Sets the start position
112
+ */
113
+ cursor?: Prisma.ProfileWhereUniqueInput;
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
116
+ *
117
+ * Take `±n` Profiles from the position of the cursor.
118
+ */
119
+ take?: number;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
122
+ *
123
+ * Skip the first `n` Profiles.
124
+ */
125
+ skip?: number;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
128
+ *
129
+ * Count returned Profiles
130
+ **/
131
+ _count?: true | ProfileCountAggregateInputType;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Select which fields to average
136
+ **/
137
+ _avg?: ProfileAvgAggregateInputType;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
+ *
141
+ * Select which fields to sum
142
+ **/
143
+ _sum?: ProfileSumAggregateInputType;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Select which fields to find the minimum value
148
+ **/
149
+ _min?: ProfileMinAggregateInputType;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Select which fields to find the maximum value
154
+ **/
155
+ _max?: ProfileMaxAggregateInputType;
156
+ };
157
+ export type GetProfileAggregateType<T extends ProfileAggregateArgs> = {
158
+ [P in keyof T & keyof AggregateProfile]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProfile[P]> : Prisma.GetScalarType<T[P], AggregateProfile[P]>;
159
+ };
160
+ export type ProfileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
161
+ where?: Prisma.ProfileWhereInput;
162
+ orderBy?: Prisma.ProfileOrderByWithAggregationInput | Prisma.ProfileOrderByWithAggregationInput[];
163
+ by: Prisma.ProfileScalarFieldEnum[] | Prisma.ProfileScalarFieldEnum;
164
+ having?: Prisma.ProfileScalarWhereWithAggregatesInput;
165
+ take?: number;
166
+ skip?: number;
167
+ _count?: ProfileCountAggregateInputType | true;
168
+ _avg?: ProfileAvgAggregateInputType;
169
+ _sum?: ProfileSumAggregateInputType;
170
+ _min?: ProfileMinAggregateInputType;
171
+ _max?: ProfileMaxAggregateInputType;
172
+ };
173
+ export type ProfileGroupByOutputType = {
174
+ email: string;
175
+ appId: string;
176
+ emailAddress: string;
177
+ messagesTotal: number;
178
+ threadsTotal: number;
179
+ historyId: string;
180
+ ttlMs: number;
181
+ createdAt: Date;
182
+ _count: ProfileCountAggregateOutputType | null;
183
+ _avg: ProfileAvgAggregateOutputType | null;
184
+ _sum: ProfileSumAggregateOutputType | null;
185
+ _min: ProfileMinAggregateOutputType | null;
186
+ _max: ProfileMaxAggregateOutputType | null;
187
+ };
188
+ type GetProfileGroupByPayload<T extends ProfileGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ProfileGroupByOutputType, T['by']> & {
189
+ [P in ((keyof T) & (keyof ProfileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ProfileGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ProfileGroupByOutputType[P]>;
190
+ }>>;
191
+ export type ProfileWhereInput = {
192
+ AND?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[];
193
+ OR?: Prisma.ProfileWhereInput[];
194
+ NOT?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[];
195
+ email?: Prisma.StringFilter<"Profile"> | string;
196
+ appId?: Prisma.StringFilter<"Profile"> | string;
197
+ emailAddress?: Prisma.StringFilter<"Profile"> | string;
198
+ messagesTotal?: Prisma.IntFilter<"Profile"> | number;
199
+ threadsTotal?: Prisma.IntFilter<"Profile"> | number;
200
+ historyId?: Prisma.StringFilter<"Profile"> | string;
201
+ ttlMs?: Prisma.IntFilter<"Profile"> | number;
202
+ createdAt?: Prisma.DateTimeFilter<"Profile"> | Date | string;
203
+ account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>;
204
+ };
205
+ export type ProfileOrderByWithRelationInput = {
206
+ email?: Prisma.SortOrder;
207
+ appId?: Prisma.SortOrder;
208
+ emailAddress?: Prisma.SortOrder;
209
+ messagesTotal?: Prisma.SortOrder;
210
+ threadsTotal?: Prisma.SortOrder;
211
+ historyId?: Prisma.SortOrder;
212
+ ttlMs?: Prisma.SortOrder;
213
+ createdAt?: Prisma.SortOrder;
214
+ account?: Prisma.AccountOrderByWithRelationInput;
215
+ };
216
+ export type ProfileWhereUniqueInput = Prisma.AtLeast<{
217
+ email_appId?: Prisma.ProfileEmailAppIdCompoundUniqueInput;
218
+ AND?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[];
219
+ OR?: Prisma.ProfileWhereInput[];
220
+ NOT?: Prisma.ProfileWhereInput | Prisma.ProfileWhereInput[];
221
+ email?: Prisma.StringFilter<"Profile"> | string;
222
+ appId?: Prisma.StringFilter<"Profile"> | string;
223
+ emailAddress?: Prisma.StringFilter<"Profile"> | string;
224
+ messagesTotal?: Prisma.IntFilter<"Profile"> | number;
225
+ threadsTotal?: Prisma.IntFilter<"Profile"> | number;
226
+ historyId?: Prisma.StringFilter<"Profile"> | string;
227
+ ttlMs?: Prisma.IntFilter<"Profile"> | number;
228
+ createdAt?: Prisma.DateTimeFilter<"Profile"> | Date | string;
229
+ account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>;
230
+ }, "email_appId">;
231
+ export type ProfileOrderByWithAggregationInput = {
232
+ email?: Prisma.SortOrder;
233
+ appId?: Prisma.SortOrder;
234
+ emailAddress?: Prisma.SortOrder;
235
+ messagesTotal?: Prisma.SortOrder;
236
+ threadsTotal?: Prisma.SortOrder;
237
+ historyId?: Prisma.SortOrder;
238
+ ttlMs?: Prisma.SortOrder;
239
+ createdAt?: Prisma.SortOrder;
240
+ _count?: Prisma.ProfileCountOrderByAggregateInput;
241
+ _avg?: Prisma.ProfileAvgOrderByAggregateInput;
242
+ _max?: Prisma.ProfileMaxOrderByAggregateInput;
243
+ _min?: Prisma.ProfileMinOrderByAggregateInput;
244
+ _sum?: Prisma.ProfileSumOrderByAggregateInput;
245
+ };
246
+ export type ProfileScalarWhereWithAggregatesInput = {
247
+ AND?: Prisma.ProfileScalarWhereWithAggregatesInput | Prisma.ProfileScalarWhereWithAggregatesInput[];
248
+ OR?: Prisma.ProfileScalarWhereWithAggregatesInput[];
249
+ NOT?: Prisma.ProfileScalarWhereWithAggregatesInput | Prisma.ProfileScalarWhereWithAggregatesInput[];
250
+ email?: Prisma.StringWithAggregatesFilter<"Profile"> | string;
251
+ appId?: Prisma.StringWithAggregatesFilter<"Profile"> | string;
252
+ emailAddress?: Prisma.StringWithAggregatesFilter<"Profile"> | string;
253
+ messagesTotal?: Prisma.IntWithAggregatesFilter<"Profile"> | number;
254
+ threadsTotal?: Prisma.IntWithAggregatesFilter<"Profile"> | number;
255
+ historyId?: Prisma.StringWithAggregatesFilter<"Profile"> | string;
256
+ ttlMs?: Prisma.IntWithAggregatesFilter<"Profile"> | number;
257
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Profile"> | Date | string;
258
+ };
259
+ export type ProfileCreateInput = {
260
+ emailAddress: string;
261
+ messagesTotal: number;
262
+ threadsTotal: number;
263
+ historyId: string;
264
+ ttlMs: number;
265
+ createdAt: Date | string;
266
+ account: Prisma.AccountCreateNestedOneWithoutProfilesInput;
267
+ };
268
+ export type ProfileUncheckedCreateInput = {
269
+ email: string;
270
+ appId: string;
271
+ emailAddress: string;
272
+ messagesTotal: number;
273
+ threadsTotal: number;
274
+ historyId: string;
275
+ ttlMs: number;
276
+ createdAt: Date | string;
277
+ };
278
+ export type ProfileUpdateInput = {
279
+ emailAddress?: Prisma.StringFieldUpdateOperationsInput | string;
280
+ messagesTotal?: Prisma.IntFieldUpdateOperationsInput | number;
281
+ threadsTotal?: Prisma.IntFieldUpdateOperationsInput | number;
282
+ historyId?: Prisma.StringFieldUpdateOperationsInput | string;
283
+ ttlMs?: Prisma.IntFieldUpdateOperationsInput | number;
284
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
285
+ account?: Prisma.AccountUpdateOneRequiredWithoutProfilesNestedInput;
286
+ };
287
+ export type ProfileUncheckedUpdateInput = {
288
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
289
+ appId?: Prisma.StringFieldUpdateOperationsInput | string;
290
+ emailAddress?: Prisma.StringFieldUpdateOperationsInput | string;
291
+ messagesTotal?: Prisma.IntFieldUpdateOperationsInput | number;
292
+ threadsTotal?: Prisma.IntFieldUpdateOperationsInput | number;
293
+ historyId?: Prisma.StringFieldUpdateOperationsInput | string;
294
+ ttlMs?: Prisma.IntFieldUpdateOperationsInput | number;
295
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
296
+ };
297
+ export type ProfileCreateManyInput = {
298
+ email: string;
299
+ appId: string;
300
+ emailAddress: string;
301
+ messagesTotal: number;
302
+ threadsTotal: number;
303
+ historyId: string;
304
+ ttlMs: number;
305
+ createdAt: Date | string;
306
+ };
307
+ export type ProfileUpdateManyMutationInput = {
308
+ emailAddress?: Prisma.StringFieldUpdateOperationsInput | string;
309
+ messagesTotal?: Prisma.IntFieldUpdateOperationsInput | number;
310
+ threadsTotal?: Prisma.IntFieldUpdateOperationsInput | number;
311
+ historyId?: Prisma.StringFieldUpdateOperationsInput | string;
312
+ ttlMs?: Prisma.IntFieldUpdateOperationsInput | number;
313
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
314
+ };
315
+ export type ProfileUncheckedUpdateManyInput = {
316
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
317
+ appId?: Prisma.StringFieldUpdateOperationsInput | string;
318
+ emailAddress?: Prisma.StringFieldUpdateOperationsInput | string;
319
+ messagesTotal?: Prisma.IntFieldUpdateOperationsInput | number;
320
+ threadsTotal?: Prisma.IntFieldUpdateOperationsInput | number;
321
+ historyId?: Prisma.StringFieldUpdateOperationsInput | string;
322
+ ttlMs?: Prisma.IntFieldUpdateOperationsInput | number;
323
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
324
+ };
325
+ export type ProfileNullableScalarRelationFilter = {
326
+ is?: Prisma.ProfileWhereInput | null;
327
+ isNot?: Prisma.ProfileWhereInput | null;
328
+ };
329
+ export type ProfileEmailAppIdCompoundUniqueInput = {
330
+ email: string;
331
+ appId: string;
332
+ };
333
+ export type ProfileCountOrderByAggregateInput = {
334
+ email?: Prisma.SortOrder;
335
+ appId?: Prisma.SortOrder;
336
+ emailAddress?: Prisma.SortOrder;
337
+ messagesTotal?: Prisma.SortOrder;
338
+ threadsTotal?: Prisma.SortOrder;
339
+ historyId?: Prisma.SortOrder;
340
+ ttlMs?: Prisma.SortOrder;
341
+ createdAt?: Prisma.SortOrder;
342
+ };
343
+ export type ProfileAvgOrderByAggregateInput = {
344
+ messagesTotal?: Prisma.SortOrder;
345
+ threadsTotal?: Prisma.SortOrder;
346
+ ttlMs?: Prisma.SortOrder;
347
+ };
348
+ export type ProfileMaxOrderByAggregateInput = {
349
+ email?: Prisma.SortOrder;
350
+ appId?: Prisma.SortOrder;
351
+ emailAddress?: Prisma.SortOrder;
352
+ messagesTotal?: Prisma.SortOrder;
353
+ threadsTotal?: Prisma.SortOrder;
354
+ historyId?: Prisma.SortOrder;
355
+ ttlMs?: Prisma.SortOrder;
356
+ createdAt?: Prisma.SortOrder;
357
+ };
358
+ export type ProfileMinOrderByAggregateInput = {
359
+ email?: Prisma.SortOrder;
360
+ appId?: Prisma.SortOrder;
361
+ emailAddress?: Prisma.SortOrder;
362
+ messagesTotal?: Prisma.SortOrder;
363
+ threadsTotal?: Prisma.SortOrder;
364
+ historyId?: Prisma.SortOrder;
365
+ ttlMs?: Prisma.SortOrder;
366
+ createdAt?: Prisma.SortOrder;
367
+ };
368
+ export type ProfileSumOrderByAggregateInput = {
369
+ messagesTotal?: Prisma.SortOrder;
370
+ threadsTotal?: Prisma.SortOrder;
371
+ ttlMs?: Prisma.SortOrder;
372
+ };
373
+ export type ProfileCreateNestedOneWithoutAccountInput = {
374
+ create?: Prisma.XOR<Prisma.ProfileCreateWithoutAccountInput, Prisma.ProfileUncheckedCreateWithoutAccountInput>;
375
+ connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutAccountInput;
376
+ connect?: Prisma.ProfileWhereUniqueInput;
377
+ };
378
+ export type ProfileUncheckedCreateNestedOneWithoutAccountInput = {
379
+ create?: Prisma.XOR<Prisma.ProfileCreateWithoutAccountInput, Prisma.ProfileUncheckedCreateWithoutAccountInput>;
380
+ connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutAccountInput;
381
+ connect?: Prisma.ProfileWhereUniqueInput;
382
+ };
383
+ export type ProfileUpdateOneWithoutAccountNestedInput = {
384
+ create?: Prisma.XOR<Prisma.ProfileCreateWithoutAccountInput, Prisma.ProfileUncheckedCreateWithoutAccountInput>;
385
+ connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutAccountInput;
386
+ upsert?: Prisma.ProfileUpsertWithoutAccountInput;
387
+ disconnect?: Prisma.ProfileWhereInput | boolean;
388
+ delete?: Prisma.ProfileWhereInput | boolean;
389
+ connect?: Prisma.ProfileWhereUniqueInput;
390
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProfileUpdateToOneWithWhereWithoutAccountInput, Prisma.ProfileUpdateWithoutAccountInput>, Prisma.ProfileUncheckedUpdateWithoutAccountInput>;
391
+ };
392
+ export type ProfileUncheckedUpdateOneWithoutAccountNestedInput = {
393
+ create?: Prisma.XOR<Prisma.ProfileCreateWithoutAccountInput, Prisma.ProfileUncheckedCreateWithoutAccountInput>;
394
+ connectOrCreate?: Prisma.ProfileCreateOrConnectWithoutAccountInput;
395
+ upsert?: Prisma.ProfileUpsertWithoutAccountInput;
396
+ disconnect?: Prisma.ProfileWhereInput | boolean;
397
+ delete?: Prisma.ProfileWhereInput | boolean;
398
+ connect?: Prisma.ProfileWhereUniqueInput;
399
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProfileUpdateToOneWithWhereWithoutAccountInput, Prisma.ProfileUpdateWithoutAccountInput>, Prisma.ProfileUncheckedUpdateWithoutAccountInput>;
400
+ };
401
+ export type ProfileCreateWithoutAccountInput = {
402
+ emailAddress: string;
403
+ messagesTotal: number;
404
+ threadsTotal: number;
405
+ historyId: string;
406
+ ttlMs: number;
407
+ createdAt: Date | string;
408
+ };
409
+ export type ProfileUncheckedCreateWithoutAccountInput = {
410
+ emailAddress: string;
411
+ messagesTotal: number;
412
+ threadsTotal: number;
413
+ historyId: string;
414
+ ttlMs: number;
415
+ createdAt: Date | string;
416
+ };
417
+ export type ProfileCreateOrConnectWithoutAccountInput = {
418
+ where: Prisma.ProfileWhereUniqueInput;
419
+ create: Prisma.XOR<Prisma.ProfileCreateWithoutAccountInput, Prisma.ProfileUncheckedCreateWithoutAccountInput>;
420
+ };
421
+ export type ProfileUpsertWithoutAccountInput = {
422
+ update: Prisma.XOR<Prisma.ProfileUpdateWithoutAccountInput, Prisma.ProfileUncheckedUpdateWithoutAccountInput>;
423
+ create: Prisma.XOR<Prisma.ProfileCreateWithoutAccountInput, Prisma.ProfileUncheckedCreateWithoutAccountInput>;
424
+ where?: Prisma.ProfileWhereInput;
425
+ };
426
+ export type ProfileUpdateToOneWithWhereWithoutAccountInput = {
427
+ where?: Prisma.ProfileWhereInput;
428
+ data: Prisma.XOR<Prisma.ProfileUpdateWithoutAccountInput, Prisma.ProfileUncheckedUpdateWithoutAccountInput>;
429
+ };
430
+ export type ProfileUpdateWithoutAccountInput = {
431
+ emailAddress?: Prisma.StringFieldUpdateOperationsInput | string;
432
+ messagesTotal?: Prisma.IntFieldUpdateOperationsInput | number;
433
+ threadsTotal?: Prisma.IntFieldUpdateOperationsInput | number;
434
+ historyId?: Prisma.StringFieldUpdateOperationsInput | string;
435
+ ttlMs?: Prisma.IntFieldUpdateOperationsInput | number;
436
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
437
+ };
438
+ export type ProfileUncheckedUpdateWithoutAccountInput = {
439
+ emailAddress?: Prisma.StringFieldUpdateOperationsInput | string;
440
+ messagesTotal?: Prisma.IntFieldUpdateOperationsInput | number;
441
+ threadsTotal?: Prisma.IntFieldUpdateOperationsInput | number;
442
+ historyId?: Prisma.StringFieldUpdateOperationsInput | string;
443
+ ttlMs?: Prisma.IntFieldUpdateOperationsInput | number;
444
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
445
+ };
446
+ export type ProfileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
447
+ email?: boolean;
448
+ appId?: boolean;
449
+ emailAddress?: boolean;
450
+ messagesTotal?: boolean;
451
+ threadsTotal?: boolean;
452
+ historyId?: boolean;
453
+ ttlMs?: boolean;
454
+ createdAt?: boolean;
455
+ account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>;
456
+ }, ExtArgs["result"]["profile"]>;
457
+ export type ProfileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
458
+ email?: boolean;
459
+ appId?: boolean;
460
+ emailAddress?: boolean;
461
+ messagesTotal?: boolean;
462
+ threadsTotal?: boolean;
463
+ historyId?: boolean;
464
+ ttlMs?: boolean;
465
+ createdAt?: boolean;
466
+ account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>;
467
+ }, ExtArgs["result"]["profile"]>;
468
+ export type ProfileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
469
+ email?: boolean;
470
+ appId?: boolean;
471
+ emailAddress?: boolean;
472
+ messagesTotal?: boolean;
473
+ threadsTotal?: boolean;
474
+ historyId?: boolean;
475
+ ttlMs?: boolean;
476
+ createdAt?: boolean;
477
+ account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>;
478
+ }, ExtArgs["result"]["profile"]>;
479
+ export type ProfileSelectScalar = {
480
+ email?: boolean;
481
+ appId?: boolean;
482
+ emailAddress?: boolean;
483
+ messagesTotal?: boolean;
484
+ threadsTotal?: boolean;
485
+ historyId?: boolean;
486
+ ttlMs?: boolean;
487
+ createdAt?: boolean;
488
+ };
489
+ export type ProfileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"email" | "appId" | "emailAddress" | "messagesTotal" | "threadsTotal" | "historyId" | "ttlMs" | "createdAt", ExtArgs["result"]["profile"]>;
490
+ export type ProfileInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
491
+ account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>;
492
+ };
493
+ export type ProfileIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
494
+ account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>;
495
+ };
496
+ export type ProfileIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
497
+ account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>;
498
+ };
499
+ export type $ProfilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
500
+ name: "Profile";
501
+ objects: {
502
+ account: Prisma.$AccountPayload<ExtArgs>;
503
+ };
504
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
505
+ email: string;
506
+ appId: string;
507
+ emailAddress: string;
508
+ messagesTotal: number;
509
+ threadsTotal: number;
510
+ historyId: string;
511
+ ttlMs: number;
512
+ createdAt: Date;
513
+ }, ExtArgs["result"]["profile"]>;
514
+ composites: {};
515
+ };
516
+ export type ProfileGetPayload<S extends boolean | null | undefined | ProfileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProfilePayload, S>;
517
+ export type ProfileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ProfileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
518
+ select?: ProfileCountAggregateInputType | true;
519
+ };
520
+ export interface ProfileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
521
+ [K: symbol]: {
522
+ types: Prisma.TypeMap<ExtArgs>['model']['Profile'];
523
+ meta: {
524
+ name: 'Profile';
525
+ };
526
+ };
527
+ /**
528
+ * Find zero or one Profile that matches the filter.
529
+ * @param {ProfileFindUniqueArgs} args - Arguments to find a Profile
530
+ * @example
531
+ * // Get one Profile
532
+ * const profile = await prisma.profile.findUnique({
533
+ * where: {
534
+ * // ... provide filter here
535
+ * }
536
+ * })
537
+ */
538
+ findUnique<T extends ProfileFindUniqueArgs>(args: Prisma.SelectSubset<T, ProfileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
539
+ /**
540
+ * Find one Profile that matches the filter or throw an error with `error.code='P2025'`
541
+ * if no matches were found.
542
+ * @param {ProfileFindUniqueOrThrowArgs} args - Arguments to find a Profile
543
+ * @example
544
+ * // Get one Profile
545
+ * const profile = await prisma.profile.findUniqueOrThrow({
546
+ * where: {
547
+ * // ... provide filter here
548
+ * }
549
+ * })
550
+ */
551
+ findUniqueOrThrow<T extends ProfileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProfileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
552
+ /**
553
+ * Find the first Profile that matches the filter.
554
+ * Note, that providing `undefined` is treated as the value not being there.
555
+ * Read more here: https://pris.ly/d/null-undefined
556
+ * @param {ProfileFindFirstArgs} args - Arguments to find a Profile
557
+ * @example
558
+ * // Get one Profile
559
+ * const profile = await prisma.profile.findFirst({
560
+ * where: {
561
+ * // ... provide filter here
562
+ * }
563
+ * })
564
+ */
565
+ findFirst<T extends ProfileFindFirstArgs>(args?: Prisma.SelectSubset<T, ProfileFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
566
+ /**
567
+ * Find the first Profile that matches the filter or
568
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
569
+ * Note, that providing `undefined` is treated as the value not being there.
570
+ * Read more here: https://pris.ly/d/null-undefined
571
+ * @param {ProfileFindFirstOrThrowArgs} args - Arguments to find a Profile
572
+ * @example
573
+ * // Get one Profile
574
+ * const profile = await prisma.profile.findFirstOrThrow({
575
+ * where: {
576
+ * // ... provide filter here
577
+ * }
578
+ * })
579
+ */
580
+ findFirstOrThrow<T extends ProfileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProfileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
581
+ /**
582
+ * Find zero or more Profiles that matches the filter.
583
+ * Note, that providing `undefined` is treated as the value not being there.
584
+ * Read more here: https://pris.ly/d/null-undefined
585
+ * @param {ProfileFindManyArgs} args - Arguments to filter and select certain fields only.
586
+ * @example
587
+ * // Get all Profiles
588
+ * const profiles = await prisma.profile.findMany()
589
+ *
590
+ * // Get first 10 Profiles
591
+ * const profiles = await prisma.profile.findMany({ take: 10 })
592
+ *
593
+ * // Only select the `email`
594
+ * const profileWithEmailOnly = await prisma.profile.findMany({ select: { email: true } })
595
+ *
596
+ */
597
+ findMany<T extends ProfileFindManyArgs>(args?: Prisma.SelectSubset<T, ProfileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
598
+ /**
599
+ * Create a Profile.
600
+ * @param {ProfileCreateArgs} args - Arguments to create a Profile.
601
+ * @example
602
+ * // Create one Profile
603
+ * const Profile = await prisma.profile.create({
604
+ * data: {
605
+ * // ... data to create a Profile
606
+ * }
607
+ * })
608
+ *
609
+ */
610
+ create<T extends ProfileCreateArgs>(args: Prisma.SelectSubset<T, ProfileCreateArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
611
+ /**
612
+ * Create many Profiles.
613
+ * @param {ProfileCreateManyArgs} args - Arguments to create many Profiles.
614
+ * @example
615
+ * // Create many Profiles
616
+ * const profile = await prisma.profile.createMany({
617
+ * data: [
618
+ * // ... provide data here
619
+ * ]
620
+ * })
621
+ *
622
+ */
623
+ createMany<T extends ProfileCreateManyArgs>(args?: Prisma.SelectSubset<T, ProfileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
624
+ /**
625
+ * Create many Profiles and returns the data saved in the database.
626
+ * @param {ProfileCreateManyAndReturnArgs} args - Arguments to create many Profiles.
627
+ * @example
628
+ * // Create many Profiles
629
+ * const profile = await prisma.profile.createManyAndReturn({
630
+ * data: [
631
+ * // ... provide data here
632
+ * ]
633
+ * })
634
+ *
635
+ * // Create many Profiles and only return the `email`
636
+ * const profileWithEmailOnly = await prisma.profile.createManyAndReturn({
637
+ * select: { email: true },
638
+ * data: [
639
+ * // ... provide data here
640
+ * ]
641
+ * })
642
+ * Note, that providing `undefined` is treated as the value not being there.
643
+ * Read more here: https://pris.ly/d/null-undefined
644
+ *
645
+ */
646
+ createManyAndReturn<T extends ProfileCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProfileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
647
+ /**
648
+ * Delete a Profile.
649
+ * @param {ProfileDeleteArgs} args - Arguments to delete one Profile.
650
+ * @example
651
+ * // Delete one Profile
652
+ * const Profile = await prisma.profile.delete({
653
+ * where: {
654
+ * // ... filter to delete one Profile
655
+ * }
656
+ * })
657
+ *
658
+ */
659
+ delete<T extends ProfileDeleteArgs>(args: Prisma.SelectSubset<T, ProfileDeleteArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
660
+ /**
661
+ * Update one Profile.
662
+ * @param {ProfileUpdateArgs} args - Arguments to update one Profile.
663
+ * @example
664
+ * // Update one Profile
665
+ * const profile = await prisma.profile.update({
666
+ * where: {
667
+ * // ... provide filter here
668
+ * },
669
+ * data: {
670
+ * // ... provide data here
671
+ * }
672
+ * })
673
+ *
674
+ */
675
+ update<T extends ProfileUpdateArgs>(args: Prisma.SelectSubset<T, ProfileUpdateArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
676
+ /**
677
+ * Delete zero or more Profiles.
678
+ * @param {ProfileDeleteManyArgs} args - Arguments to filter Profiles to delete.
679
+ * @example
680
+ * // Delete a few Profiles
681
+ * const { count } = await prisma.profile.deleteMany({
682
+ * where: {
683
+ * // ... provide filter here
684
+ * }
685
+ * })
686
+ *
687
+ */
688
+ deleteMany<T extends ProfileDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProfileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
689
+ /**
690
+ * Update zero or more Profiles.
691
+ * Note, that providing `undefined` is treated as the value not being there.
692
+ * Read more here: https://pris.ly/d/null-undefined
693
+ * @param {ProfileUpdateManyArgs} args - Arguments to update one or more rows.
694
+ * @example
695
+ * // Update many Profiles
696
+ * const profile = await prisma.profile.updateMany({
697
+ * where: {
698
+ * // ... provide filter here
699
+ * },
700
+ * data: {
701
+ * // ... provide data here
702
+ * }
703
+ * })
704
+ *
705
+ */
706
+ updateMany<T extends ProfileUpdateManyArgs>(args: Prisma.SelectSubset<T, ProfileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
707
+ /**
708
+ * Update zero or more Profiles and returns the data updated in the database.
709
+ * @param {ProfileUpdateManyAndReturnArgs} args - Arguments to update many Profiles.
710
+ * @example
711
+ * // Update many Profiles
712
+ * const profile = await prisma.profile.updateManyAndReturn({
713
+ * where: {
714
+ * // ... provide filter here
715
+ * },
716
+ * data: [
717
+ * // ... provide data here
718
+ * ]
719
+ * })
720
+ *
721
+ * // Update zero or more Profiles and only return the `email`
722
+ * const profileWithEmailOnly = await prisma.profile.updateManyAndReturn({
723
+ * select: { email: true },
724
+ * where: {
725
+ * // ... provide filter here
726
+ * },
727
+ * data: [
728
+ * // ... provide data here
729
+ * ]
730
+ * })
731
+ * Note, that providing `undefined` is treated as the value not being there.
732
+ * Read more here: https://pris.ly/d/null-undefined
733
+ *
734
+ */
735
+ updateManyAndReturn<T extends ProfileUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProfileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
736
+ /**
737
+ * Create or update one Profile.
738
+ * @param {ProfileUpsertArgs} args - Arguments to update or create a Profile.
739
+ * @example
740
+ * // Update or create a Profile
741
+ * const profile = await prisma.profile.upsert({
742
+ * create: {
743
+ * // ... data to create a Profile
744
+ * },
745
+ * update: {
746
+ * // ... in case it already exists, update
747
+ * },
748
+ * where: {
749
+ * // ... the filter for the Profile we want to update
750
+ * }
751
+ * })
752
+ */
753
+ upsert<T extends ProfileUpsertArgs>(args: Prisma.SelectSubset<T, ProfileUpsertArgs<ExtArgs>>): Prisma.Prisma__ProfileClient<runtime.Types.Result.GetResult<Prisma.$ProfilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
754
+ /**
755
+ * Count the number of Profiles.
756
+ * Note, that providing `undefined` is treated as the value not being there.
757
+ * Read more here: https://pris.ly/d/null-undefined
758
+ * @param {ProfileCountArgs} args - Arguments to filter Profiles to count.
759
+ * @example
760
+ * // Count the number of Profiles
761
+ * const count = await prisma.profile.count({
762
+ * where: {
763
+ * // ... the filter for the Profiles we want to count
764
+ * }
765
+ * })
766
+ **/
767
+ count<T extends ProfileCountArgs>(args?: Prisma.Subset<T, ProfileCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProfileCountAggregateOutputType> : number>;
768
+ /**
769
+ * Allows you to perform aggregations operations on a Profile.
770
+ * Note, that providing `undefined` is treated as the value not being there.
771
+ * Read more here: https://pris.ly/d/null-undefined
772
+ * @param {ProfileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
773
+ * @example
774
+ * // Ordered by age ascending
775
+ * // Where email contains prisma.io
776
+ * // Limited to the 10 users
777
+ * const aggregations = await prisma.user.aggregate({
778
+ * _avg: {
779
+ * age: true,
780
+ * },
781
+ * where: {
782
+ * email: {
783
+ * contains: "prisma.io",
784
+ * },
785
+ * },
786
+ * orderBy: {
787
+ * age: "asc",
788
+ * },
789
+ * take: 10,
790
+ * })
791
+ **/
792
+ aggregate<T extends ProfileAggregateArgs>(args: Prisma.Subset<T, ProfileAggregateArgs>): Prisma.PrismaPromise<GetProfileAggregateType<T>>;
793
+ /**
794
+ * Group by Profile.
795
+ * Note, that providing `undefined` is treated as the value not being there.
796
+ * Read more here: https://pris.ly/d/null-undefined
797
+ * @param {ProfileGroupByArgs} args - Group by arguments.
798
+ * @example
799
+ * // Group by city, order by createdAt, get count
800
+ * const result = await prisma.user.groupBy({
801
+ * by: ['city', 'createdAt'],
802
+ * orderBy: {
803
+ * createdAt: true
804
+ * },
805
+ * _count: {
806
+ * _all: true
807
+ * },
808
+ * })
809
+ *
810
+ **/
811
+ groupBy<T extends ProfileGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
812
+ orderBy: ProfileGroupByArgs['orderBy'];
813
+ } : {
814
+ orderBy?: ProfileGroupByArgs['orderBy'];
815
+ }, 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 ? {
816
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
817
+ Error,
818
+ 'Field ',
819
+ P,
820
+ ` in "having" needs to be provided in "by"`
821
+ ];
822
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
823
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
824
+ }[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 ? {} : {
825
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
826
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
827
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
828
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ProfileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProfileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
829
+ /**
830
+ * Fields of the Profile model
831
+ */
832
+ readonly fields: ProfileFieldRefs;
833
+ }
834
+ /**
835
+ * The delegate class that acts as a "Promise-like" for Profile.
836
+ * Why is this prefixed with `Prisma__`?
837
+ * Because we want to prevent naming conflicts as mentioned in
838
+ * https://github.com/prisma/prisma-client-js/issues/707
839
+ */
840
+ export interface Prisma__ProfileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
841
+ readonly [Symbol.toStringTag]: "PrismaPromise";
842
+ account<T extends Prisma.AccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AccountDefaultArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
843
+ /**
844
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
845
+ * @param onfulfilled The callback to execute when the Promise is resolved.
846
+ * @param onrejected The callback to execute when the Promise is rejected.
847
+ * @returns A Promise for the completion of which ever callback is executed.
848
+ */
849
+ 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>;
850
+ /**
851
+ * Attaches a callback for only the rejection of the Promise.
852
+ * @param onrejected The callback to execute when the Promise is rejected.
853
+ * @returns A Promise for the completion of the callback.
854
+ */
855
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
856
+ /**
857
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
858
+ * resolved value cannot be modified from the callback.
859
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
860
+ * @returns A Promise for the completion of the callback.
861
+ */
862
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
863
+ }
864
+ /**
865
+ * Fields of the Profile model
866
+ */
867
+ export interface ProfileFieldRefs {
868
+ readonly email: Prisma.FieldRef<"Profile", 'String'>;
869
+ readonly appId: Prisma.FieldRef<"Profile", 'String'>;
870
+ readonly emailAddress: Prisma.FieldRef<"Profile", 'String'>;
871
+ readonly messagesTotal: Prisma.FieldRef<"Profile", 'Int'>;
872
+ readonly threadsTotal: Prisma.FieldRef<"Profile", 'Int'>;
873
+ readonly historyId: Prisma.FieldRef<"Profile", 'String'>;
874
+ readonly ttlMs: Prisma.FieldRef<"Profile", 'Int'>;
875
+ readonly createdAt: Prisma.FieldRef<"Profile", 'DateTime'>;
876
+ }
877
+ /**
878
+ * Profile findUnique
879
+ */
880
+ export type ProfileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
881
+ /**
882
+ * Select specific fields to fetch from the Profile
883
+ */
884
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
885
+ /**
886
+ * Omit specific fields from the Profile
887
+ */
888
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
889
+ /**
890
+ * Choose, which related nodes to fetch as well
891
+ */
892
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
893
+ /**
894
+ * Filter, which Profile to fetch.
895
+ */
896
+ where: Prisma.ProfileWhereUniqueInput;
897
+ };
898
+ /**
899
+ * Profile findUniqueOrThrow
900
+ */
901
+ export type ProfileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
902
+ /**
903
+ * Select specific fields to fetch from the Profile
904
+ */
905
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
906
+ /**
907
+ * Omit specific fields from the Profile
908
+ */
909
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
910
+ /**
911
+ * Choose, which related nodes to fetch as well
912
+ */
913
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
914
+ /**
915
+ * Filter, which Profile to fetch.
916
+ */
917
+ where: Prisma.ProfileWhereUniqueInput;
918
+ };
919
+ /**
920
+ * Profile findFirst
921
+ */
922
+ export type ProfileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
923
+ /**
924
+ * Select specific fields to fetch from the Profile
925
+ */
926
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
927
+ /**
928
+ * Omit specific fields from the Profile
929
+ */
930
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
931
+ /**
932
+ * Choose, which related nodes to fetch as well
933
+ */
934
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
935
+ /**
936
+ * Filter, which Profile to fetch.
937
+ */
938
+ where?: Prisma.ProfileWhereInput;
939
+ /**
940
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
941
+ *
942
+ * Determine the order of Profiles to fetch.
943
+ */
944
+ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[];
945
+ /**
946
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
947
+ *
948
+ * Sets the position for searching for Profiles.
949
+ */
950
+ cursor?: Prisma.ProfileWhereUniqueInput;
951
+ /**
952
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
953
+ *
954
+ * Take `±n` Profiles from the position of the cursor.
955
+ */
956
+ take?: number;
957
+ /**
958
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
959
+ *
960
+ * Skip the first `n` Profiles.
961
+ */
962
+ skip?: number;
963
+ /**
964
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
965
+ *
966
+ * Filter by unique combinations of Profiles.
967
+ */
968
+ distinct?: Prisma.ProfileScalarFieldEnum | Prisma.ProfileScalarFieldEnum[];
969
+ };
970
+ /**
971
+ * Profile findFirstOrThrow
972
+ */
973
+ export type ProfileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
974
+ /**
975
+ * Select specific fields to fetch from the Profile
976
+ */
977
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
978
+ /**
979
+ * Omit specific fields from the Profile
980
+ */
981
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
982
+ /**
983
+ * Choose, which related nodes to fetch as well
984
+ */
985
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
986
+ /**
987
+ * Filter, which Profile to fetch.
988
+ */
989
+ where?: Prisma.ProfileWhereInput;
990
+ /**
991
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
992
+ *
993
+ * Determine the order of Profiles to fetch.
994
+ */
995
+ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[];
996
+ /**
997
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
998
+ *
999
+ * Sets the position for searching for Profiles.
1000
+ */
1001
+ cursor?: Prisma.ProfileWhereUniqueInput;
1002
+ /**
1003
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1004
+ *
1005
+ * Take `±n` Profiles from the position of the cursor.
1006
+ */
1007
+ take?: number;
1008
+ /**
1009
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1010
+ *
1011
+ * Skip the first `n` Profiles.
1012
+ */
1013
+ skip?: number;
1014
+ /**
1015
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1016
+ *
1017
+ * Filter by unique combinations of Profiles.
1018
+ */
1019
+ distinct?: Prisma.ProfileScalarFieldEnum | Prisma.ProfileScalarFieldEnum[];
1020
+ };
1021
+ /**
1022
+ * Profile findMany
1023
+ */
1024
+ export type ProfileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1025
+ /**
1026
+ * Select specific fields to fetch from the Profile
1027
+ */
1028
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
1029
+ /**
1030
+ * Omit specific fields from the Profile
1031
+ */
1032
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1033
+ /**
1034
+ * Choose, which related nodes to fetch as well
1035
+ */
1036
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
1037
+ /**
1038
+ * Filter, which Profiles to fetch.
1039
+ */
1040
+ where?: Prisma.ProfileWhereInput;
1041
+ /**
1042
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1043
+ *
1044
+ * Determine the order of Profiles to fetch.
1045
+ */
1046
+ orderBy?: Prisma.ProfileOrderByWithRelationInput | Prisma.ProfileOrderByWithRelationInput[];
1047
+ /**
1048
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1049
+ *
1050
+ * Sets the position for listing Profiles.
1051
+ */
1052
+ cursor?: Prisma.ProfileWhereUniqueInput;
1053
+ /**
1054
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1055
+ *
1056
+ * Take `±n` Profiles from the position of the cursor.
1057
+ */
1058
+ take?: number;
1059
+ /**
1060
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1061
+ *
1062
+ * Skip the first `n` Profiles.
1063
+ */
1064
+ skip?: number;
1065
+ distinct?: Prisma.ProfileScalarFieldEnum | Prisma.ProfileScalarFieldEnum[];
1066
+ };
1067
+ /**
1068
+ * Profile create
1069
+ */
1070
+ export type ProfileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * Select specific fields to fetch from the Profile
1073
+ */
1074
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
1075
+ /**
1076
+ * Omit specific fields from the Profile
1077
+ */
1078
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1079
+ /**
1080
+ * Choose, which related nodes to fetch as well
1081
+ */
1082
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
1083
+ /**
1084
+ * The data needed to create a Profile.
1085
+ */
1086
+ data: Prisma.XOR<Prisma.ProfileCreateInput, Prisma.ProfileUncheckedCreateInput>;
1087
+ };
1088
+ /**
1089
+ * Profile createMany
1090
+ */
1091
+ export type ProfileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1092
+ /**
1093
+ * The data used to create many Profiles.
1094
+ */
1095
+ data: Prisma.ProfileCreateManyInput | Prisma.ProfileCreateManyInput[];
1096
+ };
1097
+ /**
1098
+ * Profile createManyAndReturn
1099
+ */
1100
+ export type ProfileCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1101
+ /**
1102
+ * Select specific fields to fetch from the Profile
1103
+ */
1104
+ select?: Prisma.ProfileSelectCreateManyAndReturn<ExtArgs> | null;
1105
+ /**
1106
+ * Omit specific fields from the Profile
1107
+ */
1108
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1109
+ /**
1110
+ * The data used to create many Profiles.
1111
+ */
1112
+ data: Prisma.ProfileCreateManyInput | Prisma.ProfileCreateManyInput[];
1113
+ /**
1114
+ * Choose, which related nodes to fetch as well
1115
+ */
1116
+ include?: Prisma.ProfileIncludeCreateManyAndReturn<ExtArgs> | null;
1117
+ };
1118
+ /**
1119
+ * Profile update
1120
+ */
1121
+ export type ProfileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1122
+ /**
1123
+ * Select specific fields to fetch from the Profile
1124
+ */
1125
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
1126
+ /**
1127
+ * Omit specific fields from the Profile
1128
+ */
1129
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1130
+ /**
1131
+ * Choose, which related nodes to fetch as well
1132
+ */
1133
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
1134
+ /**
1135
+ * The data needed to update a Profile.
1136
+ */
1137
+ data: Prisma.XOR<Prisma.ProfileUpdateInput, Prisma.ProfileUncheckedUpdateInput>;
1138
+ /**
1139
+ * Choose, which Profile to update.
1140
+ */
1141
+ where: Prisma.ProfileWhereUniqueInput;
1142
+ };
1143
+ /**
1144
+ * Profile updateMany
1145
+ */
1146
+ export type ProfileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1147
+ /**
1148
+ * The data used to update Profiles.
1149
+ */
1150
+ data: Prisma.XOR<Prisma.ProfileUpdateManyMutationInput, Prisma.ProfileUncheckedUpdateManyInput>;
1151
+ /**
1152
+ * Filter which Profiles to update
1153
+ */
1154
+ where?: Prisma.ProfileWhereInput;
1155
+ /**
1156
+ * Limit how many Profiles to update.
1157
+ */
1158
+ limit?: number;
1159
+ };
1160
+ /**
1161
+ * Profile updateManyAndReturn
1162
+ */
1163
+ export type ProfileUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1164
+ /**
1165
+ * Select specific fields to fetch from the Profile
1166
+ */
1167
+ select?: Prisma.ProfileSelectUpdateManyAndReturn<ExtArgs> | null;
1168
+ /**
1169
+ * Omit specific fields from the Profile
1170
+ */
1171
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1172
+ /**
1173
+ * The data used to update Profiles.
1174
+ */
1175
+ data: Prisma.XOR<Prisma.ProfileUpdateManyMutationInput, Prisma.ProfileUncheckedUpdateManyInput>;
1176
+ /**
1177
+ * Filter which Profiles to update
1178
+ */
1179
+ where?: Prisma.ProfileWhereInput;
1180
+ /**
1181
+ * Limit how many Profiles to update.
1182
+ */
1183
+ limit?: number;
1184
+ /**
1185
+ * Choose, which related nodes to fetch as well
1186
+ */
1187
+ include?: Prisma.ProfileIncludeUpdateManyAndReturn<ExtArgs> | null;
1188
+ };
1189
+ /**
1190
+ * Profile upsert
1191
+ */
1192
+ export type ProfileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1193
+ /**
1194
+ * Select specific fields to fetch from the Profile
1195
+ */
1196
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
1197
+ /**
1198
+ * Omit specific fields from the Profile
1199
+ */
1200
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1201
+ /**
1202
+ * Choose, which related nodes to fetch as well
1203
+ */
1204
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
1205
+ /**
1206
+ * The filter to search for the Profile to update in case it exists.
1207
+ */
1208
+ where: Prisma.ProfileWhereUniqueInput;
1209
+ /**
1210
+ * In case the Profile found by the `where` argument doesn't exist, create a new Profile with this data.
1211
+ */
1212
+ create: Prisma.XOR<Prisma.ProfileCreateInput, Prisma.ProfileUncheckedCreateInput>;
1213
+ /**
1214
+ * In case the Profile was found with the provided `where` argument, update it with this data.
1215
+ */
1216
+ update: Prisma.XOR<Prisma.ProfileUpdateInput, Prisma.ProfileUncheckedUpdateInput>;
1217
+ };
1218
+ /**
1219
+ * Profile delete
1220
+ */
1221
+ export type ProfileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the Profile
1224
+ */
1225
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
1226
+ /**
1227
+ * Omit specific fields from the Profile
1228
+ */
1229
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1230
+ /**
1231
+ * Choose, which related nodes to fetch as well
1232
+ */
1233
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
1234
+ /**
1235
+ * Filter which Profile to delete.
1236
+ */
1237
+ where: Prisma.ProfileWhereUniqueInput;
1238
+ };
1239
+ /**
1240
+ * Profile deleteMany
1241
+ */
1242
+ export type ProfileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1243
+ /**
1244
+ * Filter which Profiles to delete
1245
+ */
1246
+ where?: Prisma.ProfileWhereInput;
1247
+ /**
1248
+ * Limit how many Profiles to delete.
1249
+ */
1250
+ limit?: number;
1251
+ };
1252
+ /**
1253
+ * Profile without action
1254
+ */
1255
+ export type ProfileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1256
+ /**
1257
+ * Select specific fields to fetch from the Profile
1258
+ */
1259
+ select?: Prisma.ProfileSelect<ExtArgs> | null;
1260
+ /**
1261
+ * Omit specific fields from the Profile
1262
+ */
1263
+ omit?: Prisma.ProfileOmit<ExtArgs> | null;
1264
+ /**
1265
+ * Choose, which related nodes to fetch as well
1266
+ */
1267
+ include?: Prisma.ProfileInclude<ExtArgs> | null;
1268
+ };
1269
+ export {};