@app-vitals/agent-admin 1.107.2 → 1.107.3

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 (50) hide show
  1. package/e2e/real/seed.ts +0 -1
  2. package/package.json +2 -2
  3. package/prisma/client/internal/class.ts +4 -4
  4. package/prisma/client/internal/prismaNamespace.ts +1 -5
  5. package/prisma/client/internal/prismaNamespaceBrowser.ts +1 -5
  6. package/prisma/client/models/AgentMember.ts +26 -61
  7. package/prisma/client/models/ChatThreadWatch.ts +19 -47
  8. package/prisma/client/models/PushSubscription.ts +15 -43
  9. package/prisma/client/models/UserNotificationPrefs.ts +38 -66
  10. package/prisma/migrations/20261130000000_drop_email_key_columns/migration.sql +49 -0
  11. package/prisma/schema/schema.prisma +11 -15
  12. package/src/account-member-removal.integration.test.ts +31 -44
  13. package/src/account-members.ts +4 -6
  14. package/src/account-onboarding.ts +2 -5
  15. package/src/account-onboarding.unit.test.ts +71 -0
  16. package/src/accounts.ts +1 -3
  17. package/src/admin-dev-login.smoke.test.ts +1 -1
  18. package/src/admin-local-agent.smoke.test.ts +3 -3
  19. package/src/admin-ui-agent-members.smoke.test.ts +29 -1
  20. package/src/admin-ui.fixtures.ts +1 -1
  21. package/src/admin-ui.smoke.test.ts +18 -18
  22. package/src/admin-ui.ts +20 -12
  23. package/src/agent-cron-run-stats.smoke.test.ts +1 -1
  24. package/src/agent-deletion.integration.test.ts +1 -1
  25. package/src/agent-members.integration.test.ts +14 -10
  26. package/src/agent-members.ts +28 -18
  27. package/src/agents-api.integration.test.ts +2 -2
  28. package/src/agents-api.smoke.test.ts +5 -5
  29. package/src/agents.integration.test.ts +1 -2
  30. package/src/api.smoke.test.ts +1 -1
  31. package/src/chat.smoke.test.ts +68 -14
  32. package/src/drop-email-key-columns-migration.integration.test.ts +141 -0
  33. package/src/ensure-account-member.integration.test.ts +17 -232
  34. package/src/ensure-account-member.ts +0 -5
  35. package/src/github-enterprise-client.unit.test.ts +62 -2
  36. package/src/member-rows.ts +24 -0
  37. package/src/member-rows.unit.test.ts +48 -0
  38. package/src/principals-api.integration.test.ts +3 -2
  39. package/src/push-service.integration.test.ts +7 -12
  40. package/src/push-service.ts +28 -39
  41. package/src/push-service.unit.test.ts +8 -8
  42. package/src/slack-provisioning.integration.test.ts +1 -1
  43. package/src/user-notification-prefs.integration.test.ts +5 -16
  44. package/src/user-notification-prefs.ts +12 -18
  45. package/scripts/backfill-member-id.ts +0 -50
  46. package/src/member-id-backfill.integration.test.ts +0 -167
  47. package/src/member-id-backfill.ts +0 -253
  48. package/src/member-id-backfill.unit.test.ts +0 -12
  49. package/src/member-id-stamp.ts +0 -68
  50. package/src/member-id-stamp.unit.test.ts +0 -81
@@ -26,7 +26,6 @@ export type AggregatePushSubscription = {
26
26
 
27
27
  export type PushSubscriptionMinAggregateOutputType = {
28
28
  id: string | null
29
- userEmail: string | null
30
29
  endpoint: string | null
31
30
  p256dh: string | null
32
31
  auth: string | null
@@ -38,7 +37,6 @@ export type PushSubscriptionMinAggregateOutputType = {
38
37
 
39
38
  export type PushSubscriptionMaxAggregateOutputType = {
40
39
  id: string | null
41
- userEmail: string | null
42
40
  endpoint: string | null
43
41
  p256dh: string | null
44
42
  auth: string | null
@@ -50,7 +48,6 @@ export type PushSubscriptionMaxAggregateOutputType = {
50
48
 
51
49
  export type PushSubscriptionCountAggregateOutputType = {
52
50
  id: number
53
- userEmail: number
54
51
  endpoint: number
55
52
  p256dh: number
56
53
  auth: number
@@ -64,7 +61,6 @@ export type PushSubscriptionCountAggregateOutputType = {
64
61
 
65
62
  export type PushSubscriptionMinAggregateInputType = {
66
63
  id?: true
67
- userEmail?: true
68
64
  endpoint?: true
69
65
  p256dh?: true
70
66
  auth?: true
@@ -76,7 +72,6 @@ export type PushSubscriptionMinAggregateInputType = {
76
72
 
77
73
  export type PushSubscriptionMaxAggregateInputType = {
78
74
  id?: true
79
- userEmail?: true
80
75
  endpoint?: true
81
76
  p256dh?: true
82
77
  auth?: true
@@ -88,7 +83,6 @@ export type PushSubscriptionMaxAggregateInputType = {
88
83
 
89
84
  export type PushSubscriptionCountAggregateInputType = {
90
85
  id?: true
91
- userEmail?: true
92
86
  endpoint?: true
93
87
  p256dh?: true
94
88
  auth?: true
@@ -173,12 +167,11 @@ export type PushSubscriptionGroupByArgs<ExtArgs extends runtime.Types.Extensions
173
167
 
174
168
  export type PushSubscriptionGroupByOutputType = {
175
169
  id: string
176
- userEmail: string
177
170
  endpoint: string
178
171
  p256dh: string
179
172
  auth: string
180
173
  detailOptIn: string
181
- memberId: string | null
174
+ memberId: string
182
175
  createdAt: Date
183
176
  updatedAt: Date
184
177
  _count: PushSubscriptionCountAggregateOutputType | null
@@ -206,24 +199,22 @@ export type PushSubscriptionWhereInput = {
206
199
  OR?: Prisma.PushSubscriptionWhereInput[]
207
200
  NOT?: Prisma.PushSubscriptionWhereInput | Prisma.PushSubscriptionWhereInput[]
208
201
  id?: Prisma.StringFilter<"PushSubscription"> | string
209
- userEmail?: Prisma.StringFilter<"PushSubscription"> | string
210
202
  endpoint?: Prisma.StringFilter<"PushSubscription"> | string
211
203
  p256dh?: Prisma.StringFilter<"PushSubscription"> | string
212
204
  auth?: Prisma.StringFilter<"PushSubscription"> | string
213
205
  detailOptIn?: Prisma.StringFilter<"PushSubscription"> | string
214
- memberId?: Prisma.StringNullableFilter<"PushSubscription"> | string | null
206
+ memberId?: Prisma.StringFilter<"PushSubscription"> | string
215
207
  createdAt?: Prisma.DateTimeFilter<"PushSubscription"> | Date | string
216
208
  updatedAt?: Prisma.DateTimeFilter<"PushSubscription"> | Date | string
217
209
  }
218
210
 
219
211
  export type PushSubscriptionOrderByWithRelationInput = {
220
212
  id?: Prisma.SortOrder
221
- userEmail?: Prisma.SortOrder
222
213
  endpoint?: Prisma.SortOrder
223
214
  p256dh?: Prisma.SortOrder
224
215
  auth?: Prisma.SortOrder
225
216
  detailOptIn?: Prisma.SortOrder
226
- memberId?: Prisma.SortOrderInput | Prisma.SortOrder
217
+ memberId?: Prisma.SortOrder
227
218
  createdAt?: Prisma.SortOrder
228
219
  updatedAt?: Prisma.SortOrder
229
220
  }
@@ -234,23 +225,21 @@ export type PushSubscriptionWhereUniqueInput = Prisma.AtLeast<{
234
225
  AND?: Prisma.PushSubscriptionWhereInput | Prisma.PushSubscriptionWhereInput[]
235
226
  OR?: Prisma.PushSubscriptionWhereInput[]
236
227
  NOT?: Prisma.PushSubscriptionWhereInput | Prisma.PushSubscriptionWhereInput[]
237
- userEmail?: Prisma.StringFilter<"PushSubscription"> | string
238
228
  p256dh?: Prisma.StringFilter<"PushSubscription"> | string
239
229
  auth?: Prisma.StringFilter<"PushSubscription"> | string
240
230
  detailOptIn?: Prisma.StringFilter<"PushSubscription"> | string
241
- memberId?: Prisma.StringNullableFilter<"PushSubscription"> | string | null
231
+ memberId?: Prisma.StringFilter<"PushSubscription"> | string
242
232
  createdAt?: Prisma.DateTimeFilter<"PushSubscription"> | Date | string
243
233
  updatedAt?: Prisma.DateTimeFilter<"PushSubscription"> | Date | string
244
234
  }, "id" | "endpoint">
245
235
 
246
236
  export type PushSubscriptionOrderByWithAggregationInput = {
247
237
  id?: Prisma.SortOrder
248
- userEmail?: Prisma.SortOrder
249
238
  endpoint?: Prisma.SortOrder
250
239
  p256dh?: Prisma.SortOrder
251
240
  auth?: Prisma.SortOrder
252
241
  detailOptIn?: Prisma.SortOrder
253
- memberId?: Prisma.SortOrderInput | Prisma.SortOrder
242
+ memberId?: Prisma.SortOrder
254
243
  createdAt?: Prisma.SortOrder
255
244
  updatedAt?: Prisma.SortOrder
256
245
  _count?: Prisma.PushSubscriptionCountOrderByAggregateInput
@@ -263,103 +252,94 @@ export type PushSubscriptionScalarWhereWithAggregatesInput = {
263
252
  OR?: Prisma.PushSubscriptionScalarWhereWithAggregatesInput[]
264
253
  NOT?: Prisma.PushSubscriptionScalarWhereWithAggregatesInput | Prisma.PushSubscriptionScalarWhereWithAggregatesInput[]
265
254
  id?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
266
- userEmail?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
267
255
  endpoint?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
268
256
  p256dh?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
269
257
  auth?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
270
258
  detailOptIn?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
271
- memberId?: Prisma.StringNullableWithAggregatesFilter<"PushSubscription"> | string | null
259
+ memberId?: Prisma.StringWithAggregatesFilter<"PushSubscription"> | string
272
260
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"PushSubscription"> | Date | string
273
261
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PushSubscription"> | Date | string
274
262
  }
275
263
 
276
264
  export type PushSubscriptionCreateInput = {
277
265
  id?: string
278
- userEmail: string
279
266
  endpoint: string
280
267
  p256dh: string
281
268
  auth: string
282
269
  detailOptIn?: string
283
- memberId?: string | null
270
+ memberId: string
284
271
  createdAt?: Date | string
285
272
  updatedAt?: Date | string
286
273
  }
287
274
 
288
275
  export type PushSubscriptionUncheckedCreateInput = {
289
276
  id?: string
290
- userEmail: string
291
277
  endpoint: string
292
278
  p256dh: string
293
279
  auth: string
294
280
  detailOptIn?: string
295
- memberId?: string | null
281
+ memberId: string
296
282
  createdAt?: Date | string
297
283
  updatedAt?: Date | string
298
284
  }
299
285
 
300
286
  export type PushSubscriptionUpdateInput = {
301
287
  id?: Prisma.StringFieldUpdateOperationsInput | string
302
- userEmail?: Prisma.StringFieldUpdateOperationsInput | string
303
288
  endpoint?: Prisma.StringFieldUpdateOperationsInput | string
304
289
  p256dh?: Prisma.StringFieldUpdateOperationsInput | string
305
290
  auth?: Prisma.StringFieldUpdateOperationsInput | string
306
291
  detailOptIn?: Prisma.StringFieldUpdateOperationsInput | string
307
- memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
292
+ memberId?: Prisma.StringFieldUpdateOperationsInput | string
308
293
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
309
294
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
310
295
  }
311
296
 
312
297
  export type PushSubscriptionUncheckedUpdateInput = {
313
298
  id?: Prisma.StringFieldUpdateOperationsInput | string
314
- userEmail?: Prisma.StringFieldUpdateOperationsInput | string
315
299
  endpoint?: Prisma.StringFieldUpdateOperationsInput | string
316
300
  p256dh?: Prisma.StringFieldUpdateOperationsInput | string
317
301
  auth?: Prisma.StringFieldUpdateOperationsInput | string
318
302
  detailOptIn?: Prisma.StringFieldUpdateOperationsInput | string
319
- memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
303
+ memberId?: Prisma.StringFieldUpdateOperationsInput | string
320
304
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
321
305
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
322
306
  }
323
307
 
324
308
  export type PushSubscriptionCreateManyInput = {
325
309
  id?: string
326
- userEmail: string
327
310
  endpoint: string
328
311
  p256dh: string
329
312
  auth: string
330
313
  detailOptIn?: string
331
- memberId?: string | null
314
+ memberId: string
332
315
  createdAt?: Date | string
333
316
  updatedAt?: Date | string
334
317
  }
335
318
 
336
319
  export type PushSubscriptionUpdateManyMutationInput = {
337
320
  id?: Prisma.StringFieldUpdateOperationsInput | string
338
- userEmail?: Prisma.StringFieldUpdateOperationsInput | string
339
321
  endpoint?: Prisma.StringFieldUpdateOperationsInput | string
340
322
  p256dh?: Prisma.StringFieldUpdateOperationsInput | string
341
323
  auth?: Prisma.StringFieldUpdateOperationsInput | string
342
324
  detailOptIn?: Prisma.StringFieldUpdateOperationsInput | string
343
- memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
325
+ memberId?: Prisma.StringFieldUpdateOperationsInput | string
344
326
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
345
327
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
346
328
  }
347
329
 
348
330
  export type PushSubscriptionUncheckedUpdateManyInput = {
349
331
  id?: Prisma.StringFieldUpdateOperationsInput | string
350
- userEmail?: Prisma.StringFieldUpdateOperationsInput | string
351
332
  endpoint?: Prisma.StringFieldUpdateOperationsInput | string
352
333
  p256dh?: Prisma.StringFieldUpdateOperationsInput | string
353
334
  auth?: Prisma.StringFieldUpdateOperationsInput | string
354
335
  detailOptIn?: Prisma.StringFieldUpdateOperationsInput | string
355
- memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
336
+ memberId?: Prisma.StringFieldUpdateOperationsInput | string
356
337
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
357
338
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
358
339
  }
359
340
 
360
341
  export type PushSubscriptionCountOrderByAggregateInput = {
361
342
  id?: Prisma.SortOrder
362
- userEmail?: Prisma.SortOrder
363
343
  endpoint?: Prisma.SortOrder
364
344
  p256dh?: Prisma.SortOrder
365
345
  auth?: Prisma.SortOrder
@@ -371,7 +351,6 @@ export type PushSubscriptionCountOrderByAggregateInput = {
371
351
 
372
352
  export type PushSubscriptionMaxOrderByAggregateInput = {
373
353
  id?: Prisma.SortOrder
374
- userEmail?: Prisma.SortOrder
375
354
  endpoint?: Prisma.SortOrder
376
355
  p256dh?: Prisma.SortOrder
377
356
  auth?: Prisma.SortOrder
@@ -383,7 +362,6 @@ export type PushSubscriptionMaxOrderByAggregateInput = {
383
362
 
384
363
  export type PushSubscriptionMinOrderByAggregateInput = {
385
364
  id?: Prisma.SortOrder
386
- userEmail?: Prisma.SortOrder
387
365
  endpoint?: Prisma.SortOrder
388
366
  p256dh?: Prisma.SortOrder
389
367
  auth?: Prisma.SortOrder
@@ -397,7 +375,6 @@ export type PushSubscriptionMinOrderByAggregateInput = {
397
375
 
398
376
  export type PushSubscriptionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
399
377
  id?: boolean
400
- userEmail?: boolean
401
378
  endpoint?: boolean
402
379
  p256dh?: boolean
403
380
  auth?: boolean
@@ -409,7 +386,6 @@ export type PushSubscriptionSelect<ExtArgs extends runtime.Types.Extensions.Inte
409
386
 
410
387
  export type PushSubscriptionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
411
388
  id?: boolean
412
- userEmail?: boolean
413
389
  endpoint?: boolean
414
390
  p256dh?: boolean
415
391
  auth?: boolean
@@ -421,7 +397,6 @@ export type PushSubscriptionSelectCreateManyAndReturn<ExtArgs extends runtime.Ty
421
397
 
422
398
  export type PushSubscriptionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
423
399
  id?: boolean
424
- userEmail?: boolean
425
400
  endpoint?: boolean
426
401
  p256dh?: boolean
427
402
  auth?: boolean
@@ -433,7 +408,6 @@ export type PushSubscriptionSelectUpdateManyAndReturn<ExtArgs extends runtime.Ty
433
408
 
434
409
  export type PushSubscriptionSelectScalar = {
435
410
  id?: boolean
436
- userEmail?: boolean
437
411
  endpoint?: boolean
438
412
  p256dh?: boolean
439
413
  auth?: boolean
@@ -443,19 +417,18 @@ export type PushSubscriptionSelectScalar = {
443
417
  updatedAt?: boolean
444
418
  }
445
419
 
446
- export type PushSubscriptionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userEmail" | "endpoint" | "p256dh" | "auth" | "detailOptIn" | "memberId" | "createdAt" | "updatedAt", ExtArgs["result"]["pushSubscription"]>
420
+ export type PushSubscriptionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "endpoint" | "p256dh" | "auth" | "detailOptIn" | "memberId" | "createdAt" | "updatedAt", ExtArgs["result"]["pushSubscription"]>
447
421
 
448
422
  export type $PushSubscriptionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
449
423
  name: "PushSubscription"
450
424
  objects: {}
451
425
  scalars: runtime.Types.Extensions.GetPayloadResult<{
452
426
  id: string
453
- userEmail: string
454
427
  endpoint: string
455
428
  p256dh: string
456
429
  auth: string
457
430
  detailOptIn: string
458
- memberId: string | null
431
+ memberId: string
459
432
  createdAt: Date
460
433
  updatedAt: Date
461
434
  }, ExtArgs["result"]["pushSubscription"]>
@@ -882,7 +855,6 @@ export interface Prisma__PushSubscriptionClient<T, Null = never, ExtArgs extends
882
855
  */
883
856
  export interface PushSubscriptionFieldRefs {
884
857
  readonly id: Prisma.FieldRef<"PushSubscription", 'String'>
885
- readonly userEmail: Prisma.FieldRef<"PushSubscription", 'String'>
886
858
  readonly endpoint: Prisma.FieldRef<"PushSubscription", 'String'>
887
859
  readonly p256dh: Prisma.FieldRef<"PushSubscription", 'String'>
888
860
  readonly auth: Prisma.FieldRef<"PushSubscription", 'String'>
@@ -35,31 +35,28 @@ export type UserNotificationPrefsSumAggregateOutputType = {
35
35
  }
36
36
 
37
37
  export type UserNotificationPrefsMinAggregateOutputType = {
38
- userEmail: string | null
38
+ memberId: string | null
39
39
  autoFollowSessions: boolean | null
40
40
  reminderHourLocal: number | null
41
41
  autoFollowSince: Date | null
42
- memberId: string | null
43
42
  createdAt: Date | null
44
43
  updatedAt: Date | null
45
44
  }
46
45
 
47
46
  export type UserNotificationPrefsMaxAggregateOutputType = {
48
- userEmail: string | null
47
+ memberId: string | null
49
48
  autoFollowSessions: boolean | null
50
49
  reminderHourLocal: number | null
51
50
  autoFollowSince: Date | null
52
- memberId: string | null
53
51
  createdAt: Date | null
54
52
  updatedAt: Date | null
55
53
  }
56
54
 
57
55
  export type UserNotificationPrefsCountAggregateOutputType = {
58
- userEmail: number
56
+ memberId: number
59
57
  autoFollowSessions: number
60
58
  reminderHourLocal: number
61
59
  autoFollowSince: number
62
- memberId: number
63
60
  createdAt: number
64
61
  updatedAt: number
65
62
  _all: number
@@ -75,31 +72,28 @@ export type UserNotificationPrefsSumAggregateInputType = {
75
72
  }
76
73
 
77
74
  export type UserNotificationPrefsMinAggregateInputType = {
78
- userEmail?: true
75
+ memberId?: true
79
76
  autoFollowSessions?: true
80
77
  reminderHourLocal?: true
81
78
  autoFollowSince?: true
82
- memberId?: true
83
79
  createdAt?: true
84
80
  updatedAt?: true
85
81
  }
86
82
 
87
83
  export type UserNotificationPrefsMaxAggregateInputType = {
88
- userEmail?: true
84
+ memberId?: true
89
85
  autoFollowSessions?: true
90
86
  reminderHourLocal?: true
91
87
  autoFollowSince?: true
92
- memberId?: true
93
88
  createdAt?: true
94
89
  updatedAt?: true
95
90
  }
96
91
 
97
92
  export type UserNotificationPrefsCountAggregateInputType = {
98
- userEmail?: true
93
+ memberId?: true
99
94
  autoFollowSessions?: true
100
95
  reminderHourLocal?: true
101
96
  autoFollowSince?: true
102
- memberId?: true
103
97
  createdAt?: true
104
98
  updatedAt?: true
105
99
  _all?: true
@@ -192,11 +186,10 @@ export type UserNotificationPrefsGroupByArgs<ExtArgs extends runtime.Types.Exten
192
186
  }
193
187
 
194
188
  export type UserNotificationPrefsGroupByOutputType = {
195
- userEmail: string
189
+ memberId: string
196
190
  autoFollowSessions: boolean
197
191
  reminderHourLocal: number
198
192
  autoFollowSince: Date | null
199
- memberId: string | null
200
193
  createdAt: Date
201
194
  updatedAt: Date
202
195
  _count: UserNotificationPrefsCountAggregateOutputType | null
@@ -225,44 +218,40 @@ export type UserNotificationPrefsWhereInput = {
225
218
  AND?: Prisma.UserNotificationPrefsWhereInput | Prisma.UserNotificationPrefsWhereInput[]
226
219
  OR?: Prisma.UserNotificationPrefsWhereInput[]
227
220
  NOT?: Prisma.UserNotificationPrefsWhereInput | Prisma.UserNotificationPrefsWhereInput[]
228
- userEmail?: Prisma.StringFilter<"UserNotificationPrefs"> | string
221
+ memberId?: Prisma.StringFilter<"UserNotificationPrefs"> | string
229
222
  autoFollowSessions?: Prisma.BoolFilter<"UserNotificationPrefs"> | boolean
230
223
  reminderHourLocal?: Prisma.IntFilter<"UserNotificationPrefs"> | number
231
224
  autoFollowSince?: Prisma.DateTimeNullableFilter<"UserNotificationPrefs"> | Date | string | null
232
- memberId?: Prisma.StringNullableFilter<"UserNotificationPrefs"> | string | null
233
225
  createdAt?: Prisma.DateTimeFilter<"UserNotificationPrefs"> | Date | string
234
226
  updatedAt?: Prisma.DateTimeFilter<"UserNotificationPrefs"> | Date | string
235
227
  }
236
228
 
237
229
  export type UserNotificationPrefsOrderByWithRelationInput = {
238
- userEmail?: Prisma.SortOrder
230
+ memberId?: Prisma.SortOrder
239
231
  autoFollowSessions?: Prisma.SortOrder
240
232
  reminderHourLocal?: Prisma.SortOrder
241
233
  autoFollowSince?: Prisma.SortOrderInput | Prisma.SortOrder
242
- memberId?: Prisma.SortOrderInput | Prisma.SortOrder
243
234
  createdAt?: Prisma.SortOrder
244
235
  updatedAt?: Prisma.SortOrder
245
236
  }
246
237
 
247
238
  export type UserNotificationPrefsWhereUniqueInput = Prisma.AtLeast<{
248
- userEmail?: string
239
+ memberId?: string
249
240
  AND?: Prisma.UserNotificationPrefsWhereInput | Prisma.UserNotificationPrefsWhereInput[]
250
241
  OR?: Prisma.UserNotificationPrefsWhereInput[]
251
242
  NOT?: Prisma.UserNotificationPrefsWhereInput | Prisma.UserNotificationPrefsWhereInput[]
252
243
  autoFollowSessions?: Prisma.BoolFilter<"UserNotificationPrefs"> | boolean
253
244
  reminderHourLocal?: Prisma.IntFilter<"UserNotificationPrefs"> | number
254
245
  autoFollowSince?: Prisma.DateTimeNullableFilter<"UserNotificationPrefs"> | Date | string | null
255
- memberId?: Prisma.StringNullableFilter<"UserNotificationPrefs"> | string | null
256
246
  createdAt?: Prisma.DateTimeFilter<"UserNotificationPrefs"> | Date | string
257
247
  updatedAt?: Prisma.DateTimeFilter<"UserNotificationPrefs"> | Date | string
258
- }, "userEmail">
248
+ }, "memberId">
259
249
 
260
250
  export type UserNotificationPrefsOrderByWithAggregationInput = {
261
- userEmail?: Prisma.SortOrder
251
+ memberId?: Prisma.SortOrder
262
252
  autoFollowSessions?: Prisma.SortOrder
263
253
  reminderHourLocal?: Prisma.SortOrder
264
254
  autoFollowSince?: Prisma.SortOrderInput | Prisma.SortOrder
265
- memberId?: Prisma.SortOrderInput | Prisma.SortOrder
266
255
  createdAt?: Prisma.SortOrder
267
256
  updatedAt?: Prisma.SortOrder
268
257
  _count?: Prisma.UserNotificationPrefsCountOrderByAggregateInput
@@ -276,91 +265,82 @@ export type UserNotificationPrefsScalarWhereWithAggregatesInput = {
276
265
  AND?: Prisma.UserNotificationPrefsScalarWhereWithAggregatesInput | Prisma.UserNotificationPrefsScalarWhereWithAggregatesInput[]
277
266
  OR?: Prisma.UserNotificationPrefsScalarWhereWithAggregatesInput[]
278
267
  NOT?: Prisma.UserNotificationPrefsScalarWhereWithAggregatesInput | Prisma.UserNotificationPrefsScalarWhereWithAggregatesInput[]
279
- userEmail?: Prisma.StringWithAggregatesFilter<"UserNotificationPrefs"> | string
268
+ memberId?: Prisma.StringWithAggregatesFilter<"UserNotificationPrefs"> | string
280
269
  autoFollowSessions?: Prisma.BoolWithAggregatesFilter<"UserNotificationPrefs"> | boolean
281
270
  reminderHourLocal?: Prisma.IntWithAggregatesFilter<"UserNotificationPrefs"> | number
282
271
  autoFollowSince?: Prisma.DateTimeNullableWithAggregatesFilter<"UserNotificationPrefs"> | Date | string | null
283
- memberId?: Prisma.StringNullableWithAggregatesFilter<"UserNotificationPrefs"> | string | null
284
272
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserNotificationPrefs"> | Date | string
285
273
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"UserNotificationPrefs"> | Date | string
286
274
  }
287
275
 
288
276
  export type UserNotificationPrefsCreateInput = {
289
- userEmail: string
277
+ memberId: string
290
278
  autoFollowSessions?: boolean
291
279
  reminderHourLocal?: number
292
280
  autoFollowSince?: Date | string | null
293
- memberId?: string | null
294
281
  createdAt?: Date | string
295
282
  updatedAt?: Date | string
296
283
  }
297
284
 
298
285
  export type UserNotificationPrefsUncheckedCreateInput = {
299
- userEmail: string
286
+ memberId: string
300
287
  autoFollowSessions?: boolean
301
288
  reminderHourLocal?: number
302
289
  autoFollowSince?: Date | string | null
303
- memberId?: string | null
304
290
  createdAt?: Date | string
305
291
  updatedAt?: Date | string
306
292
  }
307
293
 
308
294
  export type UserNotificationPrefsUpdateInput = {
309
- userEmail?: Prisma.StringFieldUpdateOperationsInput | string
295
+ memberId?: Prisma.StringFieldUpdateOperationsInput | string
310
296
  autoFollowSessions?: Prisma.BoolFieldUpdateOperationsInput | boolean
311
297
  reminderHourLocal?: Prisma.IntFieldUpdateOperationsInput | number
312
298
  autoFollowSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
313
- memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
314
299
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
315
300
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
316
301
  }
317
302
 
318
303
  export type UserNotificationPrefsUncheckedUpdateInput = {
319
- userEmail?: Prisma.StringFieldUpdateOperationsInput | string
304
+ memberId?: Prisma.StringFieldUpdateOperationsInput | string
320
305
  autoFollowSessions?: Prisma.BoolFieldUpdateOperationsInput | boolean
321
306
  reminderHourLocal?: Prisma.IntFieldUpdateOperationsInput | number
322
307
  autoFollowSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
323
- memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
324
308
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
325
309
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
326
310
  }
327
311
 
328
312
  export type UserNotificationPrefsCreateManyInput = {
329
- userEmail: string
313
+ memberId: string
330
314
  autoFollowSessions?: boolean
331
315
  reminderHourLocal?: number
332
316
  autoFollowSince?: Date | string | null
333
- memberId?: string | null
334
317
  createdAt?: Date | string
335
318
  updatedAt?: Date | string
336
319
  }
337
320
 
338
321
  export type UserNotificationPrefsUpdateManyMutationInput = {
339
- userEmail?: Prisma.StringFieldUpdateOperationsInput | string
322
+ memberId?: Prisma.StringFieldUpdateOperationsInput | string
340
323
  autoFollowSessions?: Prisma.BoolFieldUpdateOperationsInput | boolean
341
324
  reminderHourLocal?: Prisma.IntFieldUpdateOperationsInput | number
342
325
  autoFollowSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
343
- memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
344
326
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
345
327
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
346
328
  }
347
329
 
348
330
  export type UserNotificationPrefsUncheckedUpdateManyInput = {
349
- userEmail?: Prisma.StringFieldUpdateOperationsInput | string
331
+ memberId?: Prisma.StringFieldUpdateOperationsInput | string
350
332
  autoFollowSessions?: Prisma.BoolFieldUpdateOperationsInput | boolean
351
333
  reminderHourLocal?: Prisma.IntFieldUpdateOperationsInput | number
352
334
  autoFollowSince?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
353
- memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
354
335
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
355
336
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
356
337
  }
357
338
 
358
339
  export type UserNotificationPrefsCountOrderByAggregateInput = {
359
- userEmail?: Prisma.SortOrder
340
+ memberId?: Prisma.SortOrder
360
341
  autoFollowSessions?: Prisma.SortOrder
361
342
  reminderHourLocal?: Prisma.SortOrder
362
343
  autoFollowSince?: Prisma.SortOrder
363
- memberId?: Prisma.SortOrder
364
344
  createdAt?: Prisma.SortOrder
365
345
  updatedAt?: Prisma.SortOrder
366
346
  }
@@ -370,21 +350,19 @@ export type UserNotificationPrefsAvgOrderByAggregateInput = {
370
350
  }
371
351
 
372
352
  export type UserNotificationPrefsMaxOrderByAggregateInput = {
373
- userEmail?: Prisma.SortOrder
353
+ memberId?: Prisma.SortOrder
374
354
  autoFollowSessions?: Prisma.SortOrder
375
355
  reminderHourLocal?: Prisma.SortOrder
376
356
  autoFollowSince?: Prisma.SortOrder
377
- memberId?: Prisma.SortOrder
378
357
  createdAt?: Prisma.SortOrder
379
358
  updatedAt?: Prisma.SortOrder
380
359
  }
381
360
 
382
361
  export type UserNotificationPrefsMinOrderByAggregateInput = {
383
- userEmail?: Prisma.SortOrder
362
+ memberId?: Prisma.SortOrder
384
363
  autoFollowSessions?: Prisma.SortOrder
385
364
  reminderHourLocal?: Prisma.SortOrder
386
365
  autoFollowSince?: Prisma.SortOrder
387
- memberId?: Prisma.SortOrder
388
366
  createdAt?: Prisma.SortOrder
389
367
  updatedAt?: Prisma.SortOrder
390
368
  }
@@ -396,56 +374,51 @@ export type UserNotificationPrefsSumOrderByAggregateInput = {
396
374
 
397
375
 
398
376
  export type UserNotificationPrefsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
399
- userEmail?: boolean
377
+ memberId?: boolean
400
378
  autoFollowSessions?: boolean
401
379
  reminderHourLocal?: boolean
402
380
  autoFollowSince?: boolean
403
- memberId?: boolean
404
381
  createdAt?: boolean
405
382
  updatedAt?: boolean
406
383
  }, ExtArgs["result"]["userNotificationPrefs"]>
407
384
 
408
385
  export type UserNotificationPrefsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
409
- userEmail?: boolean
386
+ memberId?: boolean
410
387
  autoFollowSessions?: boolean
411
388
  reminderHourLocal?: boolean
412
389
  autoFollowSince?: boolean
413
- memberId?: boolean
414
390
  createdAt?: boolean
415
391
  updatedAt?: boolean
416
392
  }, ExtArgs["result"]["userNotificationPrefs"]>
417
393
 
418
394
  export type UserNotificationPrefsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
419
- userEmail?: boolean
395
+ memberId?: boolean
420
396
  autoFollowSessions?: boolean
421
397
  reminderHourLocal?: boolean
422
398
  autoFollowSince?: boolean
423
- memberId?: boolean
424
399
  createdAt?: boolean
425
400
  updatedAt?: boolean
426
401
  }, ExtArgs["result"]["userNotificationPrefs"]>
427
402
 
428
403
  export type UserNotificationPrefsSelectScalar = {
429
- userEmail?: boolean
404
+ memberId?: boolean
430
405
  autoFollowSessions?: boolean
431
406
  reminderHourLocal?: boolean
432
407
  autoFollowSince?: boolean
433
- memberId?: boolean
434
408
  createdAt?: boolean
435
409
  updatedAt?: boolean
436
410
  }
437
411
 
438
- export type UserNotificationPrefsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"userEmail" | "autoFollowSessions" | "reminderHourLocal" | "autoFollowSince" | "memberId" | "createdAt" | "updatedAt", ExtArgs["result"]["userNotificationPrefs"]>
412
+ export type UserNotificationPrefsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"memberId" | "autoFollowSessions" | "reminderHourLocal" | "autoFollowSince" | "createdAt" | "updatedAt", ExtArgs["result"]["userNotificationPrefs"]>
439
413
 
440
414
  export type $UserNotificationPrefsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
441
415
  name: "UserNotificationPrefs"
442
416
  objects: {}
443
417
  scalars: runtime.Types.Extensions.GetPayloadResult<{
444
- userEmail: string
418
+ memberId: string
445
419
  autoFollowSessions: boolean
446
420
  reminderHourLocal: number
447
421
  autoFollowSince: Date | null
448
- memberId: string | null
449
422
  createdAt: Date
450
423
  updatedAt: Date
451
424
  }, ExtArgs["result"]["userNotificationPrefs"]>
@@ -531,8 +504,8 @@ export interface UserNotificationPrefsDelegate<ExtArgs extends runtime.Types.Ext
531
504
  * // Get first 10 UserNotificationPrefs
532
505
  * const userNotificationPrefs = await prisma.userNotificationPrefs.findMany({ take: 10 })
533
506
  *
534
- * // Only select the `userEmail`
535
- * const userNotificationPrefsWithUserEmailOnly = await prisma.userNotificationPrefs.findMany({ select: { userEmail: true } })
507
+ * // Only select the `memberId`
508
+ * const userNotificationPrefsWithMemberIdOnly = await prisma.userNotificationPrefs.findMany({ select: { memberId: true } })
536
509
  *
537
510
  */
538
511
  findMany<T extends UserNotificationPrefsFindManyArgs>(args?: Prisma.SelectSubset<T, UserNotificationPrefsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserNotificationPrefsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
@@ -576,9 +549,9 @@ export interface UserNotificationPrefsDelegate<ExtArgs extends runtime.Types.Ext
576
549
  * ]
577
550
  * })
578
551
  *
579
- * // Create many UserNotificationPrefs and only return the `userEmail`
580
- * const userNotificationPrefsWithUserEmailOnly = await prisma.userNotificationPrefs.createManyAndReturn({
581
- * select: { userEmail: true },
552
+ * // Create many UserNotificationPrefs and only return the `memberId`
553
+ * const userNotificationPrefsWithMemberIdOnly = await prisma.userNotificationPrefs.createManyAndReturn({
554
+ * select: { memberId: true },
582
555
  * data: [
583
556
  * // ... provide data here
584
557
  * ]
@@ -667,9 +640,9 @@ export interface UserNotificationPrefsDelegate<ExtArgs extends runtime.Types.Ext
667
640
  * ]
668
641
  * })
669
642
  *
670
- * // Update zero or more UserNotificationPrefs and only return the `userEmail`
671
- * const userNotificationPrefsWithUserEmailOnly = await prisma.userNotificationPrefs.updateManyAndReturn({
672
- * select: { userEmail: true },
643
+ * // Update zero or more UserNotificationPrefs and only return the `memberId`
644
+ * const userNotificationPrefsWithMemberIdOnly = await prisma.userNotificationPrefs.updateManyAndReturn({
645
+ * select: { memberId: true },
673
646
  * where: {
674
647
  * // ... provide filter here
675
648
  * },
@@ -871,11 +844,10 @@ export interface Prisma__UserNotificationPrefsClient<T, Null = never, ExtArgs ex
871
844
  * Fields of the UserNotificationPrefs model
872
845
  */
873
846
  export interface UserNotificationPrefsFieldRefs {
874
- readonly userEmail: Prisma.FieldRef<"UserNotificationPrefs", 'String'>
847
+ readonly memberId: Prisma.FieldRef<"UserNotificationPrefs", 'String'>
875
848
  readonly autoFollowSessions: Prisma.FieldRef<"UserNotificationPrefs", 'Boolean'>
876
849
  readonly reminderHourLocal: Prisma.FieldRef<"UserNotificationPrefs", 'Int'>
877
850
  readonly autoFollowSince: Prisma.FieldRef<"UserNotificationPrefs", 'DateTime'>
878
- readonly memberId: Prisma.FieldRef<"UserNotificationPrefs", 'String'>
879
851
  readonly createdAt: Prisma.FieldRef<"UserNotificationPrefs", 'DateTime'>
880
852
  readonly updatedAt: Prisma.FieldRef<"UserNotificationPrefs", 'DateTime'>
881
853
  }