@app-vitals/agent-admin 1.73.0 → 1.74.0
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.
- package/openapi.platform.json +199 -0
- package/package.json +2 -2
- package/prisma/client/internal/class.ts +4 -4
- package/prisma/client/internal/prismaNamespace.ts +4 -0
- package/prisma/client/internal/prismaNamespaceBrowser.ts +4 -0
- package/prisma/client/models/AgentMember.ts +36 -1
- package/prisma/client/models/ChatThreadWatch.ts +29 -1
- package/prisma/client/models/PushSubscription.ts +29 -1
- package/prisma/client/models/UserNotificationPrefs.ts +29 -1
- package/prisma/migrations/20261118000000_add_member_id_columns/migration.sql +14 -0
- package/prisma/schema/schema.prisma +5 -0
- package/src/admin-boot.ts +13 -0
- package/src/admin-dev-login.smoke.test.ts +1 -0
- package/src/admin-local-agent.smoke.test.ts +9 -1
- package/src/admin-spec.ts +17 -0
- package/src/admin-ui.fixtures.ts +1 -0
- package/src/admin-ui.smoke.test.ts +57 -8
- package/src/agent-cron-run-stats.smoke.test.ts +1 -0
- package/src/agent-members.unit.test.ts +6 -1
- package/src/agents-api.smoke.test.ts +5 -0
- package/src/api.smoke.test.ts +1 -0
- package/src/chat.smoke.test.ts +2 -0
- package/src/openapi-schemas.ts +31 -0
- package/src/principal-lookup.ts +67 -0
- package/src/principal-lookup.unit.test.ts +104 -0
- package/src/principals-api.integration.test.ts +115 -0
- package/src/principals-api.ts +142 -0
- package/src/principals-api.unit.test.ts +83 -0
- package/src/slack-provisioning.integration.test.ts +1 -0
|
@@ -3038,6 +3038,7 @@ export const AgentMemberScalarFieldEnum = {
|
|
|
3038
3038
|
id: 'id',
|
|
3039
3039
|
agentId: 'agentId',
|
|
3040
3040
|
email: 'email',
|
|
3041
|
+
memberId: 'memberId',
|
|
3041
3042
|
createdAt: 'createdAt'
|
|
3042
3043
|
} as const
|
|
3043
3044
|
|
|
@@ -3282,6 +3283,7 @@ export const PushSubscriptionScalarFieldEnum = {
|
|
|
3282
3283
|
p256dh: 'p256dh',
|
|
3283
3284
|
auth: 'auth',
|
|
3284
3285
|
detailOptIn: 'detailOptIn',
|
|
3286
|
+
memberId: 'memberId',
|
|
3285
3287
|
createdAt: 'createdAt',
|
|
3286
3288
|
updatedAt: 'updatedAt'
|
|
3287
3289
|
} as const
|
|
@@ -3294,6 +3296,7 @@ export const ChatThreadWatchScalarFieldEnum = {
|
|
|
3294
3296
|
userEmail: 'userEmail',
|
|
3295
3297
|
threadId: 'threadId',
|
|
3296
3298
|
agentId: 'agentId',
|
|
3299
|
+
memberId: 'memberId',
|
|
3297
3300
|
createdAt: 'createdAt',
|
|
3298
3301
|
updatedAt: 'updatedAt'
|
|
3299
3302
|
} as const
|
|
@@ -3306,6 +3309,7 @@ export const UserNotificationPrefsScalarFieldEnum = {
|
|
|
3306
3309
|
autoFollowSessions: 'autoFollowSessions',
|
|
3307
3310
|
reminderHourLocal: 'reminderHourLocal',
|
|
3308
3311
|
autoFollowSince: 'autoFollowSince',
|
|
3312
|
+
memberId: 'memberId',
|
|
3309
3313
|
createdAt: 'createdAt',
|
|
3310
3314
|
updatedAt: 'updatedAt'
|
|
3311
3315
|
} as const
|
|
@@ -284,6 +284,7 @@ export const AgentMemberScalarFieldEnum = {
|
|
|
284
284
|
id: 'id',
|
|
285
285
|
agentId: 'agentId',
|
|
286
286
|
email: 'email',
|
|
287
|
+
memberId: 'memberId',
|
|
287
288
|
createdAt: 'createdAt'
|
|
288
289
|
} as const
|
|
289
290
|
|
|
@@ -528,6 +529,7 @@ export const PushSubscriptionScalarFieldEnum = {
|
|
|
528
529
|
p256dh: 'p256dh',
|
|
529
530
|
auth: 'auth',
|
|
530
531
|
detailOptIn: 'detailOptIn',
|
|
532
|
+
memberId: 'memberId',
|
|
531
533
|
createdAt: 'createdAt',
|
|
532
534
|
updatedAt: 'updatedAt'
|
|
533
535
|
} as const
|
|
@@ -540,6 +542,7 @@ export const ChatThreadWatchScalarFieldEnum = {
|
|
|
540
542
|
userEmail: 'userEmail',
|
|
541
543
|
threadId: 'threadId',
|
|
542
544
|
agentId: 'agentId',
|
|
545
|
+
memberId: 'memberId',
|
|
543
546
|
createdAt: 'createdAt',
|
|
544
547
|
updatedAt: 'updatedAt'
|
|
545
548
|
} as const
|
|
@@ -552,6 +555,7 @@ export const UserNotificationPrefsScalarFieldEnum = {
|
|
|
552
555
|
autoFollowSessions: 'autoFollowSessions',
|
|
553
556
|
reminderHourLocal: 'reminderHourLocal',
|
|
554
557
|
autoFollowSince: 'autoFollowSince',
|
|
558
|
+
memberId: 'memberId',
|
|
555
559
|
createdAt: 'createdAt',
|
|
556
560
|
updatedAt: 'updatedAt'
|
|
557
561
|
} as const
|
|
@@ -28,6 +28,7 @@ export type AgentMemberMinAggregateOutputType = {
|
|
|
28
28
|
id: string | null
|
|
29
29
|
agentId: string | null
|
|
30
30
|
email: string | null
|
|
31
|
+
memberId: string | null
|
|
31
32
|
createdAt: Date | null
|
|
32
33
|
}
|
|
33
34
|
|
|
@@ -35,6 +36,7 @@ export type AgentMemberMaxAggregateOutputType = {
|
|
|
35
36
|
id: string | null
|
|
36
37
|
agentId: string | null
|
|
37
38
|
email: string | null
|
|
39
|
+
memberId: string | null
|
|
38
40
|
createdAt: Date | null
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -42,6 +44,7 @@ export type AgentMemberCountAggregateOutputType = {
|
|
|
42
44
|
id: number
|
|
43
45
|
agentId: number
|
|
44
46
|
email: number
|
|
47
|
+
memberId: number
|
|
45
48
|
createdAt: number
|
|
46
49
|
_all: number
|
|
47
50
|
}
|
|
@@ -51,6 +54,7 @@ export type AgentMemberMinAggregateInputType = {
|
|
|
51
54
|
id?: true
|
|
52
55
|
agentId?: true
|
|
53
56
|
email?: true
|
|
57
|
+
memberId?: true
|
|
54
58
|
createdAt?: true
|
|
55
59
|
}
|
|
56
60
|
|
|
@@ -58,6 +62,7 @@ export type AgentMemberMaxAggregateInputType = {
|
|
|
58
62
|
id?: true
|
|
59
63
|
agentId?: true
|
|
60
64
|
email?: true
|
|
65
|
+
memberId?: true
|
|
61
66
|
createdAt?: true
|
|
62
67
|
}
|
|
63
68
|
|
|
@@ -65,6 +70,7 @@ export type AgentMemberCountAggregateInputType = {
|
|
|
65
70
|
id?: true
|
|
66
71
|
agentId?: true
|
|
67
72
|
email?: true
|
|
73
|
+
memberId?: true
|
|
68
74
|
createdAt?: true
|
|
69
75
|
_all?: true
|
|
70
76
|
}
|
|
@@ -145,6 +151,7 @@ export type AgentMemberGroupByOutputType = {
|
|
|
145
151
|
id: string
|
|
146
152
|
agentId: string
|
|
147
153
|
email: string
|
|
154
|
+
memberId: string | null
|
|
148
155
|
createdAt: Date
|
|
149
156
|
_count: AgentMemberCountAggregateOutputType | null
|
|
150
157
|
_min: AgentMemberMinAggregateOutputType | null
|
|
@@ -173,6 +180,7 @@ export type AgentMemberWhereInput = {
|
|
|
173
180
|
id?: Prisma.StringFilter<"AgentMember"> | string
|
|
174
181
|
agentId?: Prisma.StringFilter<"AgentMember"> | string
|
|
175
182
|
email?: Prisma.StringFilter<"AgentMember"> | string
|
|
183
|
+
memberId?: Prisma.StringNullableFilter<"AgentMember"> | string | null
|
|
176
184
|
createdAt?: Prisma.DateTimeFilter<"AgentMember"> | Date | string
|
|
177
185
|
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
|
|
178
186
|
}
|
|
@@ -181,6 +189,7 @@ export type AgentMemberOrderByWithRelationInput = {
|
|
|
181
189
|
id?: Prisma.SortOrder
|
|
182
190
|
agentId?: Prisma.SortOrder
|
|
183
191
|
email?: Prisma.SortOrder
|
|
192
|
+
memberId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
184
193
|
createdAt?: Prisma.SortOrder
|
|
185
194
|
agent?: Prisma.AgentOrderByWithRelationInput
|
|
186
195
|
}
|
|
@@ -193,6 +202,7 @@ export type AgentMemberWhereUniqueInput = Prisma.AtLeast<{
|
|
|
193
202
|
NOT?: Prisma.AgentMemberWhereInput | Prisma.AgentMemberWhereInput[]
|
|
194
203
|
agentId?: Prisma.StringFilter<"AgentMember"> | string
|
|
195
204
|
email?: Prisma.StringFilter<"AgentMember"> | string
|
|
205
|
+
memberId?: Prisma.StringNullableFilter<"AgentMember"> | string | null
|
|
196
206
|
createdAt?: Prisma.DateTimeFilter<"AgentMember"> | Date | string
|
|
197
207
|
agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>
|
|
198
208
|
}, "id" | "agentId_email">
|
|
@@ -201,6 +211,7 @@ export type AgentMemberOrderByWithAggregationInput = {
|
|
|
201
211
|
id?: Prisma.SortOrder
|
|
202
212
|
agentId?: Prisma.SortOrder
|
|
203
213
|
email?: Prisma.SortOrder
|
|
214
|
+
memberId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
204
215
|
createdAt?: Prisma.SortOrder
|
|
205
216
|
_count?: Prisma.AgentMemberCountOrderByAggregateInput
|
|
206
217
|
_max?: Prisma.AgentMemberMaxOrderByAggregateInput
|
|
@@ -214,12 +225,14 @@ export type AgentMemberScalarWhereWithAggregatesInput = {
|
|
|
214
225
|
id?: Prisma.StringWithAggregatesFilter<"AgentMember"> | string
|
|
215
226
|
agentId?: Prisma.StringWithAggregatesFilter<"AgentMember"> | string
|
|
216
227
|
email?: Prisma.StringWithAggregatesFilter<"AgentMember"> | string
|
|
228
|
+
memberId?: Prisma.StringNullableWithAggregatesFilter<"AgentMember"> | string | null
|
|
217
229
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentMember"> | Date | string
|
|
218
230
|
}
|
|
219
231
|
|
|
220
232
|
export type AgentMemberCreateInput = {
|
|
221
233
|
id?: string
|
|
222
234
|
email: string
|
|
235
|
+
memberId?: string | null
|
|
223
236
|
createdAt?: Date | string
|
|
224
237
|
agent: Prisma.AgentCreateNestedOneWithoutMembersInput
|
|
225
238
|
}
|
|
@@ -228,12 +241,14 @@ export type AgentMemberUncheckedCreateInput = {
|
|
|
228
241
|
id?: string
|
|
229
242
|
agentId: string
|
|
230
243
|
email: string
|
|
244
|
+
memberId?: string | null
|
|
231
245
|
createdAt?: Date | string
|
|
232
246
|
}
|
|
233
247
|
|
|
234
248
|
export type AgentMemberUpdateInput = {
|
|
235
249
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
236
250
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
251
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
237
252
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
238
253
|
agent?: Prisma.AgentUpdateOneRequiredWithoutMembersNestedInput
|
|
239
254
|
}
|
|
@@ -242,6 +257,7 @@ export type AgentMemberUncheckedUpdateInput = {
|
|
|
242
257
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
243
258
|
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
244
259
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
260
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
245
261
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
246
262
|
}
|
|
247
263
|
|
|
@@ -249,12 +265,14 @@ export type AgentMemberCreateManyInput = {
|
|
|
249
265
|
id?: string
|
|
250
266
|
agentId: string
|
|
251
267
|
email: string
|
|
268
|
+
memberId?: string | null
|
|
252
269
|
createdAt?: Date | string
|
|
253
270
|
}
|
|
254
271
|
|
|
255
272
|
export type AgentMemberUpdateManyMutationInput = {
|
|
256
273
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
257
274
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
275
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
258
276
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
259
277
|
}
|
|
260
278
|
|
|
@@ -262,6 +280,7 @@ export type AgentMemberUncheckedUpdateManyInput = {
|
|
|
262
280
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
263
281
|
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
264
282
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
283
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
265
284
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
266
285
|
}
|
|
267
286
|
|
|
@@ -284,6 +303,7 @@ export type AgentMemberCountOrderByAggregateInput = {
|
|
|
284
303
|
id?: Prisma.SortOrder
|
|
285
304
|
agentId?: Prisma.SortOrder
|
|
286
305
|
email?: Prisma.SortOrder
|
|
306
|
+
memberId?: Prisma.SortOrder
|
|
287
307
|
createdAt?: Prisma.SortOrder
|
|
288
308
|
}
|
|
289
309
|
|
|
@@ -291,6 +311,7 @@ export type AgentMemberMaxOrderByAggregateInput = {
|
|
|
291
311
|
id?: Prisma.SortOrder
|
|
292
312
|
agentId?: Prisma.SortOrder
|
|
293
313
|
email?: Prisma.SortOrder
|
|
314
|
+
memberId?: Prisma.SortOrder
|
|
294
315
|
createdAt?: Prisma.SortOrder
|
|
295
316
|
}
|
|
296
317
|
|
|
@@ -298,6 +319,7 @@ export type AgentMemberMinOrderByAggregateInput = {
|
|
|
298
319
|
id?: Prisma.SortOrder
|
|
299
320
|
agentId?: Prisma.SortOrder
|
|
300
321
|
email?: Prisma.SortOrder
|
|
322
|
+
memberId?: Prisma.SortOrder
|
|
301
323
|
createdAt?: Prisma.SortOrder
|
|
302
324
|
}
|
|
303
325
|
|
|
@@ -346,12 +368,14 @@ export type AgentMemberUncheckedUpdateManyWithoutAgentNestedInput = {
|
|
|
346
368
|
export type AgentMemberCreateWithoutAgentInput = {
|
|
347
369
|
id?: string
|
|
348
370
|
email: string
|
|
371
|
+
memberId?: string | null
|
|
349
372
|
createdAt?: Date | string
|
|
350
373
|
}
|
|
351
374
|
|
|
352
375
|
export type AgentMemberUncheckedCreateWithoutAgentInput = {
|
|
353
376
|
id?: string
|
|
354
377
|
email: string
|
|
378
|
+
memberId?: string | null
|
|
355
379
|
createdAt?: Date | string
|
|
356
380
|
}
|
|
357
381
|
|
|
@@ -388,30 +412,35 @@ export type AgentMemberScalarWhereInput = {
|
|
|
388
412
|
id?: Prisma.StringFilter<"AgentMember"> | string
|
|
389
413
|
agentId?: Prisma.StringFilter<"AgentMember"> | string
|
|
390
414
|
email?: Prisma.StringFilter<"AgentMember"> | string
|
|
415
|
+
memberId?: Prisma.StringNullableFilter<"AgentMember"> | string | null
|
|
391
416
|
createdAt?: Prisma.DateTimeFilter<"AgentMember"> | Date | string
|
|
392
417
|
}
|
|
393
418
|
|
|
394
419
|
export type AgentMemberCreateManyAgentInput = {
|
|
395
420
|
id?: string
|
|
396
421
|
email: string
|
|
422
|
+
memberId?: string | null
|
|
397
423
|
createdAt?: Date | string
|
|
398
424
|
}
|
|
399
425
|
|
|
400
426
|
export type AgentMemberUpdateWithoutAgentInput = {
|
|
401
427
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
402
428
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
429
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
403
430
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
404
431
|
}
|
|
405
432
|
|
|
406
433
|
export type AgentMemberUncheckedUpdateWithoutAgentInput = {
|
|
407
434
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
408
435
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
436
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
409
437
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
410
438
|
}
|
|
411
439
|
|
|
412
440
|
export type AgentMemberUncheckedUpdateManyWithoutAgentInput = {
|
|
413
441
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
414
442
|
email?: Prisma.StringFieldUpdateOperationsInput | string
|
|
443
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
415
444
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
416
445
|
}
|
|
417
446
|
|
|
@@ -421,6 +450,7 @@ export type AgentMemberSelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
421
450
|
id?: boolean
|
|
422
451
|
agentId?: boolean
|
|
423
452
|
email?: boolean
|
|
453
|
+
memberId?: boolean
|
|
424
454
|
createdAt?: boolean
|
|
425
455
|
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
426
456
|
}, ExtArgs["result"]["agentMember"]>
|
|
@@ -429,6 +459,7 @@ export type AgentMemberSelectCreateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
429
459
|
id?: boolean
|
|
430
460
|
agentId?: boolean
|
|
431
461
|
email?: boolean
|
|
462
|
+
memberId?: boolean
|
|
432
463
|
createdAt?: boolean
|
|
433
464
|
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
434
465
|
}, ExtArgs["result"]["agentMember"]>
|
|
@@ -437,6 +468,7 @@ export type AgentMemberSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
437
468
|
id?: boolean
|
|
438
469
|
agentId?: boolean
|
|
439
470
|
email?: boolean
|
|
471
|
+
memberId?: boolean
|
|
440
472
|
createdAt?: boolean
|
|
441
473
|
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
442
474
|
}, ExtArgs["result"]["agentMember"]>
|
|
@@ -445,10 +477,11 @@ export type AgentMemberSelectScalar = {
|
|
|
445
477
|
id?: boolean
|
|
446
478
|
agentId?: boolean
|
|
447
479
|
email?: boolean
|
|
480
|
+
memberId?: boolean
|
|
448
481
|
createdAt?: boolean
|
|
449
482
|
}
|
|
450
483
|
|
|
451
|
-
export type AgentMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "email" | "createdAt", ExtArgs["result"]["agentMember"]>
|
|
484
|
+
export type AgentMemberOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "email" | "memberId" | "createdAt", ExtArgs["result"]["agentMember"]>
|
|
452
485
|
export type AgentMemberInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
453
486
|
agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>
|
|
454
487
|
}
|
|
@@ -468,6 +501,7 @@ export type $AgentMemberPayload<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
468
501
|
id: string
|
|
469
502
|
agentId: string
|
|
470
503
|
email: string
|
|
504
|
+
memberId: string | null
|
|
471
505
|
createdAt: Date
|
|
472
506
|
}, ExtArgs["result"]["agentMember"]>
|
|
473
507
|
composites: {}
|
|
@@ -896,6 +930,7 @@ export interface AgentMemberFieldRefs {
|
|
|
896
930
|
readonly id: Prisma.FieldRef<"AgentMember", 'String'>
|
|
897
931
|
readonly agentId: Prisma.FieldRef<"AgentMember", 'String'>
|
|
898
932
|
readonly email: Prisma.FieldRef<"AgentMember", 'String'>
|
|
933
|
+
readonly memberId: Prisma.FieldRef<"AgentMember", 'String'>
|
|
899
934
|
readonly createdAt: Prisma.FieldRef<"AgentMember", 'DateTime'>
|
|
900
935
|
}
|
|
901
936
|
|
|
@@ -29,6 +29,7 @@ export type ChatThreadWatchMinAggregateOutputType = {
|
|
|
29
29
|
userEmail: string | null
|
|
30
30
|
threadId: string | null
|
|
31
31
|
agentId: string | null
|
|
32
|
+
memberId: string | null
|
|
32
33
|
createdAt: Date | null
|
|
33
34
|
updatedAt: Date | null
|
|
34
35
|
}
|
|
@@ -38,6 +39,7 @@ export type ChatThreadWatchMaxAggregateOutputType = {
|
|
|
38
39
|
userEmail: string | null
|
|
39
40
|
threadId: string | null
|
|
40
41
|
agentId: string | null
|
|
42
|
+
memberId: string | null
|
|
41
43
|
createdAt: Date | null
|
|
42
44
|
updatedAt: Date | null
|
|
43
45
|
}
|
|
@@ -47,6 +49,7 @@ export type ChatThreadWatchCountAggregateOutputType = {
|
|
|
47
49
|
userEmail: number
|
|
48
50
|
threadId: number
|
|
49
51
|
agentId: number
|
|
52
|
+
memberId: number
|
|
50
53
|
createdAt: number
|
|
51
54
|
updatedAt: number
|
|
52
55
|
_all: number
|
|
@@ -58,6 +61,7 @@ export type ChatThreadWatchMinAggregateInputType = {
|
|
|
58
61
|
userEmail?: true
|
|
59
62
|
threadId?: true
|
|
60
63
|
agentId?: true
|
|
64
|
+
memberId?: true
|
|
61
65
|
createdAt?: true
|
|
62
66
|
updatedAt?: true
|
|
63
67
|
}
|
|
@@ -67,6 +71,7 @@ export type ChatThreadWatchMaxAggregateInputType = {
|
|
|
67
71
|
userEmail?: true
|
|
68
72
|
threadId?: true
|
|
69
73
|
agentId?: true
|
|
74
|
+
memberId?: true
|
|
70
75
|
createdAt?: true
|
|
71
76
|
updatedAt?: true
|
|
72
77
|
}
|
|
@@ -76,6 +81,7 @@ export type ChatThreadWatchCountAggregateInputType = {
|
|
|
76
81
|
userEmail?: true
|
|
77
82
|
threadId?: true
|
|
78
83
|
agentId?: true
|
|
84
|
+
memberId?: true
|
|
79
85
|
createdAt?: true
|
|
80
86
|
updatedAt?: true
|
|
81
87
|
_all?: true
|
|
@@ -158,6 +164,7 @@ export type ChatThreadWatchGroupByOutputType = {
|
|
|
158
164
|
userEmail: string
|
|
159
165
|
threadId: string
|
|
160
166
|
agentId: string
|
|
167
|
+
memberId: string | null
|
|
161
168
|
createdAt: Date
|
|
162
169
|
updatedAt: Date
|
|
163
170
|
_count: ChatThreadWatchCountAggregateOutputType | null
|
|
@@ -188,6 +195,7 @@ export type ChatThreadWatchWhereInput = {
|
|
|
188
195
|
userEmail?: Prisma.StringFilter<"ChatThreadWatch"> | string
|
|
189
196
|
threadId?: Prisma.StringFilter<"ChatThreadWatch"> | string
|
|
190
197
|
agentId?: Prisma.StringFilter<"ChatThreadWatch"> | string
|
|
198
|
+
memberId?: Prisma.StringNullableFilter<"ChatThreadWatch"> | string | null
|
|
191
199
|
createdAt?: Prisma.DateTimeFilter<"ChatThreadWatch"> | Date | string
|
|
192
200
|
updatedAt?: Prisma.DateTimeFilter<"ChatThreadWatch"> | Date | string
|
|
193
201
|
}
|
|
@@ -197,6 +205,7 @@ export type ChatThreadWatchOrderByWithRelationInput = {
|
|
|
197
205
|
userEmail?: Prisma.SortOrder
|
|
198
206
|
threadId?: Prisma.SortOrder
|
|
199
207
|
agentId?: Prisma.SortOrder
|
|
208
|
+
memberId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
200
209
|
createdAt?: Prisma.SortOrder
|
|
201
210
|
updatedAt?: Prisma.SortOrder
|
|
202
211
|
}
|
|
@@ -210,6 +219,7 @@ export type ChatThreadWatchWhereUniqueInput = Prisma.AtLeast<{
|
|
|
210
219
|
userEmail?: Prisma.StringFilter<"ChatThreadWatch"> | string
|
|
211
220
|
threadId?: Prisma.StringFilter<"ChatThreadWatch"> | string
|
|
212
221
|
agentId?: Prisma.StringFilter<"ChatThreadWatch"> | string
|
|
222
|
+
memberId?: Prisma.StringNullableFilter<"ChatThreadWatch"> | string | null
|
|
213
223
|
createdAt?: Prisma.DateTimeFilter<"ChatThreadWatch"> | Date | string
|
|
214
224
|
updatedAt?: Prisma.DateTimeFilter<"ChatThreadWatch"> | Date | string
|
|
215
225
|
}, "id" | "userEmail_threadId">
|
|
@@ -219,6 +229,7 @@ export type ChatThreadWatchOrderByWithAggregationInput = {
|
|
|
219
229
|
userEmail?: Prisma.SortOrder
|
|
220
230
|
threadId?: Prisma.SortOrder
|
|
221
231
|
agentId?: Prisma.SortOrder
|
|
232
|
+
memberId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
222
233
|
createdAt?: Prisma.SortOrder
|
|
223
234
|
updatedAt?: Prisma.SortOrder
|
|
224
235
|
_count?: Prisma.ChatThreadWatchCountOrderByAggregateInput
|
|
@@ -234,6 +245,7 @@ export type ChatThreadWatchScalarWhereWithAggregatesInput = {
|
|
|
234
245
|
userEmail?: Prisma.StringWithAggregatesFilter<"ChatThreadWatch"> | string
|
|
235
246
|
threadId?: Prisma.StringWithAggregatesFilter<"ChatThreadWatch"> | string
|
|
236
247
|
agentId?: Prisma.StringWithAggregatesFilter<"ChatThreadWatch"> | string
|
|
248
|
+
memberId?: Prisma.StringNullableWithAggregatesFilter<"ChatThreadWatch"> | string | null
|
|
237
249
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ChatThreadWatch"> | Date | string
|
|
238
250
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ChatThreadWatch"> | Date | string
|
|
239
251
|
}
|
|
@@ -243,6 +255,7 @@ export type ChatThreadWatchCreateInput = {
|
|
|
243
255
|
userEmail: string
|
|
244
256
|
threadId: string
|
|
245
257
|
agentId: string
|
|
258
|
+
memberId?: string | null
|
|
246
259
|
createdAt?: Date | string
|
|
247
260
|
updatedAt?: Date | string
|
|
248
261
|
}
|
|
@@ -252,6 +265,7 @@ export type ChatThreadWatchUncheckedCreateInput = {
|
|
|
252
265
|
userEmail: string
|
|
253
266
|
threadId: string
|
|
254
267
|
agentId: string
|
|
268
|
+
memberId?: string | null
|
|
255
269
|
createdAt?: Date | string
|
|
256
270
|
updatedAt?: Date | string
|
|
257
271
|
}
|
|
@@ -261,6 +275,7 @@ export type ChatThreadWatchUpdateInput = {
|
|
|
261
275
|
userEmail?: Prisma.StringFieldUpdateOperationsInput | string
|
|
262
276
|
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
263
277
|
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
278
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
264
279
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
265
280
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
266
281
|
}
|
|
@@ -270,6 +285,7 @@ export type ChatThreadWatchUncheckedUpdateInput = {
|
|
|
270
285
|
userEmail?: Prisma.StringFieldUpdateOperationsInput | string
|
|
271
286
|
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
272
287
|
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
288
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
273
289
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
274
290
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
275
291
|
}
|
|
@@ -279,6 +295,7 @@ export type ChatThreadWatchCreateManyInput = {
|
|
|
279
295
|
userEmail: string
|
|
280
296
|
threadId: string
|
|
281
297
|
agentId: string
|
|
298
|
+
memberId?: string | null
|
|
282
299
|
createdAt?: Date | string
|
|
283
300
|
updatedAt?: Date | string
|
|
284
301
|
}
|
|
@@ -288,6 +305,7 @@ export type ChatThreadWatchUpdateManyMutationInput = {
|
|
|
288
305
|
userEmail?: Prisma.StringFieldUpdateOperationsInput | string
|
|
289
306
|
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
290
307
|
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
308
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
291
309
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
292
310
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
293
311
|
}
|
|
@@ -297,6 +315,7 @@ export type ChatThreadWatchUncheckedUpdateManyInput = {
|
|
|
297
315
|
userEmail?: Prisma.StringFieldUpdateOperationsInput | string
|
|
298
316
|
threadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
299
317
|
agentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
318
|
+
memberId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
300
319
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
301
320
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
302
321
|
}
|
|
@@ -311,6 +330,7 @@ export type ChatThreadWatchCountOrderByAggregateInput = {
|
|
|
311
330
|
userEmail?: Prisma.SortOrder
|
|
312
331
|
threadId?: Prisma.SortOrder
|
|
313
332
|
agentId?: Prisma.SortOrder
|
|
333
|
+
memberId?: Prisma.SortOrder
|
|
314
334
|
createdAt?: Prisma.SortOrder
|
|
315
335
|
updatedAt?: Prisma.SortOrder
|
|
316
336
|
}
|
|
@@ -320,6 +340,7 @@ export type ChatThreadWatchMaxOrderByAggregateInput = {
|
|
|
320
340
|
userEmail?: Prisma.SortOrder
|
|
321
341
|
threadId?: Prisma.SortOrder
|
|
322
342
|
agentId?: Prisma.SortOrder
|
|
343
|
+
memberId?: Prisma.SortOrder
|
|
323
344
|
createdAt?: Prisma.SortOrder
|
|
324
345
|
updatedAt?: Prisma.SortOrder
|
|
325
346
|
}
|
|
@@ -329,6 +350,7 @@ export type ChatThreadWatchMinOrderByAggregateInput = {
|
|
|
329
350
|
userEmail?: Prisma.SortOrder
|
|
330
351
|
threadId?: Prisma.SortOrder
|
|
331
352
|
agentId?: Prisma.SortOrder
|
|
353
|
+
memberId?: Prisma.SortOrder
|
|
332
354
|
createdAt?: Prisma.SortOrder
|
|
333
355
|
updatedAt?: Prisma.SortOrder
|
|
334
356
|
}
|
|
@@ -340,6 +362,7 @@ export type ChatThreadWatchSelect<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
340
362
|
userEmail?: boolean
|
|
341
363
|
threadId?: boolean
|
|
342
364
|
agentId?: boolean
|
|
365
|
+
memberId?: boolean
|
|
343
366
|
createdAt?: boolean
|
|
344
367
|
updatedAt?: boolean
|
|
345
368
|
}, ExtArgs["result"]["chatThreadWatch"]>
|
|
@@ -349,6 +372,7 @@ export type ChatThreadWatchSelectCreateManyAndReturn<ExtArgs extends runtime.Typ
|
|
|
349
372
|
userEmail?: boolean
|
|
350
373
|
threadId?: boolean
|
|
351
374
|
agentId?: boolean
|
|
375
|
+
memberId?: boolean
|
|
352
376
|
createdAt?: boolean
|
|
353
377
|
updatedAt?: boolean
|
|
354
378
|
}, ExtArgs["result"]["chatThreadWatch"]>
|
|
@@ -358,6 +382,7 @@ export type ChatThreadWatchSelectUpdateManyAndReturn<ExtArgs extends runtime.Typ
|
|
|
358
382
|
userEmail?: boolean
|
|
359
383
|
threadId?: boolean
|
|
360
384
|
agentId?: boolean
|
|
385
|
+
memberId?: boolean
|
|
361
386
|
createdAt?: boolean
|
|
362
387
|
updatedAt?: boolean
|
|
363
388
|
}, ExtArgs["result"]["chatThreadWatch"]>
|
|
@@ -367,11 +392,12 @@ export type ChatThreadWatchSelectScalar = {
|
|
|
367
392
|
userEmail?: boolean
|
|
368
393
|
threadId?: boolean
|
|
369
394
|
agentId?: boolean
|
|
395
|
+
memberId?: boolean
|
|
370
396
|
createdAt?: boolean
|
|
371
397
|
updatedAt?: boolean
|
|
372
398
|
}
|
|
373
399
|
|
|
374
|
-
export type ChatThreadWatchOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userEmail" | "threadId" | "agentId" | "createdAt" | "updatedAt", ExtArgs["result"]["chatThreadWatch"]>
|
|
400
|
+
export type ChatThreadWatchOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userEmail" | "threadId" | "agentId" | "memberId" | "createdAt" | "updatedAt", ExtArgs["result"]["chatThreadWatch"]>
|
|
375
401
|
|
|
376
402
|
export type $ChatThreadWatchPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
377
403
|
name: "ChatThreadWatch"
|
|
@@ -381,6 +407,7 @@ export type $ChatThreadWatchPayload<ExtArgs extends runtime.Types.Extensions.Int
|
|
|
381
407
|
userEmail: string
|
|
382
408
|
threadId: string
|
|
383
409
|
agentId: string
|
|
410
|
+
memberId: string | null
|
|
384
411
|
createdAt: Date
|
|
385
412
|
updatedAt: Date
|
|
386
413
|
}, ExtArgs["result"]["chatThreadWatch"]>
|
|
@@ -810,6 +837,7 @@ export interface ChatThreadWatchFieldRefs {
|
|
|
810
837
|
readonly userEmail: Prisma.FieldRef<"ChatThreadWatch", 'String'>
|
|
811
838
|
readonly threadId: Prisma.FieldRef<"ChatThreadWatch", 'String'>
|
|
812
839
|
readonly agentId: Prisma.FieldRef<"ChatThreadWatch", 'String'>
|
|
840
|
+
readonly memberId: Prisma.FieldRef<"ChatThreadWatch", 'String'>
|
|
813
841
|
readonly createdAt: Prisma.FieldRef<"ChatThreadWatch", 'DateTime'>
|
|
814
842
|
readonly updatedAt: Prisma.FieldRef<"ChatThreadWatch", 'DateTime'>
|
|
815
843
|
}
|