@sentry/junior 0.125.0 → 0.126.1

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 (54) hide show
  1. package/dist/{agent-hooks-MF5UZRCO.js → agent-hooks-U5YGLX6Y.js} +8 -9
  2. package/dist/api.js +30 -24
  3. package/dist/app.js +49 -37
  4. package/dist/{catalog-runtime-V6SJTUV7.js → catalog-runtime-OUPLWD7F.js} +5 -6
  5. package/dist/chat/agent/request.d.ts +2 -1
  6. package/dist/chat/agent/resume.d.ts +2 -0
  7. package/dist/chat/agent-dispatch/types.d.ts +2 -1
  8. package/dist/chat/conversation-privacy.d.ts +7 -12
  9. package/dist/chat/conversations/destination-visibility.d.ts +7 -0
  10. package/dist/chat/conversations/store.d.ts +3 -3
  11. package/dist/chat/services/turn-session-record.d.ts +4 -1
  12. package/dist/chat/slack/conversation-context.d.ts +4 -7
  13. package/dist/chat/slack/footer.d.ts +10 -1
  14. package/dist/chat/slack/reply.d.ts +9 -2
  15. package/dist/chat/state/turn-session.d.ts +2 -6
  16. package/dist/{chunk-K6MQWEEJ.js → chunk-7VF3JAVF.js} +11 -13
  17. package/dist/{chunk-2R5MASH3.js → chunk-7ZMY4GCG.js} +1 -1
  18. package/dist/{chunk-XJYGLTYI.js → chunk-F2ARYRKC.js} +1 -1
  19. package/dist/{chunk-LG5TXWXI.js → chunk-GLNB2R42.js} +57 -36
  20. package/dist/{chunk-2U5CLBYF.js → chunk-HXWOZ4HG.js} +1 -1
  21. package/dist/{chunk-NM3PMQS6.js → chunk-JKV244BI.js} +1 -1
  22. package/dist/{chunk-7K57FJXR.js → chunk-KBW6J5GA.js} +13 -11
  23. package/dist/{chunk-JT3YMQR3.js → chunk-OG6E44DH.js} +8 -8
  24. package/dist/{chunk-MVYNJECP.js → chunk-PD6J33TO.js} +15 -5
  25. package/dist/chunk-QMK2VF6K.js +102 -0
  26. package/dist/{chunk-MYKSUTUV.js → chunk-QVSYR5CV.js} +4 -4
  27. package/dist/{chunk-CAPBVX4L.js → chunk-R3GXQJEE.js} +2 -2
  28. package/dist/{chunk-IS4DGI5J.js → chunk-S4LM6UB7.js} +14 -11
  29. package/dist/{chunk-HT7DSLKL.js → chunk-SD2VFSN6.js} +56 -38
  30. package/dist/{chunk-S7G34U75.js → chunk-U36WL4OL.js} +5 -121
  31. package/dist/{chunk-ZXGBLAYQ.js → chunk-W3JHZHAN.js} +1 -1
  32. package/dist/{chunk-KN7QI56S.js → chunk-WIIPHGJY.js} +3 -8
  33. package/dist/{chunk-IHNBJHEP.js → chunk-Y2QRKPI7.js} +1 -1
  34. package/dist/{chunk-Q3UF3K77.js → chunk-YFE6VNHU.js} +1 -1
  35. package/dist/{chunk-EXD2Z3YR.js → chunk-YUPNY2HZ.js} +16 -14
  36. package/dist/{chunk-ODB55JM7.js → chunk-YZHA2L7P.js} +9 -9
  37. package/dist/cli/chat.js +23 -23
  38. package/dist/cli/check.js +6 -7
  39. package/dist/cli/plugins.js +11 -12
  40. package/dist/cli/snapshot-create.js +9 -10
  41. package/dist/cli/upgrade.js +6 -7
  42. package/dist/{db-JSDSWK7T.js → db-FQID26JW.js} +6 -7
  43. package/dist/instrumentation.js +4 -5
  44. package/dist/nitro.js +2 -2
  45. package/dist/{oauth-callback-server-UMS2T3HN.js → oauth-callback-server-Z5MHHKFD.js} +16 -16
  46. package/dist/{runner-RGOANIRV.js → runner-PGPGKYSF.js} +11 -12
  47. package/dist/{skills-GBLPOQOD.js → skills-BCQHR636.js} +6 -7
  48. package/dist/{validation-BMQY6CD4.js → validation-QP3FYBLZ.js} +6 -7
  49. package/dist/version.js +1 -1
  50. package/migrations/0014_source_visibility.sql +8 -0
  51. package/migrations/meta/0014_snapshot.json +1201 -0
  52. package/migrations/meta/_journal.json +8 -1
  53. package/package.json +5 -5
  54. package/dist/chunk-OB42YVAE.js +0 -16
@@ -0,0 +1,1201 @@
1
+ {
2
+ "id": "7ee48964-32cb-4444-913d-33cc5680a64e",
3
+ "prevId": "5d0244f5-7ca6-4a03-ad59-4699ba6bf0e1",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.junior_api_tokens": {
8
+ "name": "junior_api_tokens",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "owner_email_normalized": {
18
+ "name": "owner_email_normalized",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "name": {
24
+ "name": "name",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "token_hash": {
30
+ "name": "token_hash",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "token_suffix": {
36
+ "name": "token_suffix",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "created_at": {
42
+ "name": "created_at",
43
+ "type": "timestamp with time zone",
44
+ "primaryKey": false,
45
+ "notNull": true
46
+ },
47
+ "expires_at": {
48
+ "name": "expires_at",
49
+ "type": "timestamp with time zone",
50
+ "primaryKey": false,
51
+ "notNull": true
52
+ },
53
+ "last_used_at": {
54
+ "name": "last_used_at",
55
+ "type": "timestamp with time zone",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "revoked_at": {
60
+ "name": "revoked_at",
61
+ "type": "timestamp with time zone",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ }
65
+ },
66
+ "indexes": {
67
+ "junior_api_tokens_token_hash_uidx": {
68
+ "name": "junior_api_tokens_token_hash_uidx",
69
+ "columns": [
70
+ {
71
+ "expression": "token_hash",
72
+ "isExpression": false,
73
+ "asc": true,
74
+ "nulls": "last"
75
+ }
76
+ ],
77
+ "isUnique": true,
78
+ "with": {},
79
+ "method": "btree",
80
+ "concurrently": false
81
+ },
82
+ "junior_api_tokens_owner_email_idx": {
83
+ "name": "junior_api_tokens_owner_email_idx",
84
+ "columns": [
85
+ {
86
+ "expression": "owner_email_normalized",
87
+ "isExpression": false,
88
+ "asc": true,
89
+ "nulls": "last"
90
+ }
91
+ ],
92
+ "isUnique": false,
93
+ "with": {},
94
+ "method": "btree",
95
+ "concurrently": false
96
+ }
97
+ },
98
+ "foreignKeys": {},
99
+ "compositePrimaryKeys": {},
100
+ "uniqueConstraints": {},
101
+ "policies": {},
102
+ "checkConstraints": {},
103
+ "isRLSEnabled": false
104
+ },
105
+ "public.junior_conversation_annotations": {
106
+ "name": "junior_conversation_annotations",
107
+ "schema": "",
108
+ "columns": {
109
+ "conversation_id": {
110
+ "name": "conversation_id",
111
+ "type": "text",
112
+ "primaryKey": false,
113
+ "notNull": true
114
+ },
115
+ "plugin": {
116
+ "name": "plugin",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": true
120
+ },
121
+ "kind": {
122
+ "name": "kind",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true
126
+ },
127
+ "key": {
128
+ "name": "key",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": true
132
+ },
133
+ "annotation_json": {
134
+ "name": "annotation_json",
135
+ "type": "jsonb",
136
+ "primaryKey": false,
137
+ "notNull": true
138
+ },
139
+ "created_at": {
140
+ "name": "created_at",
141
+ "type": "timestamp with time zone",
142
+ "primaryKey": false,
143
+ "notNull": true
144
+ },
145
+ "updated_at": {
146
+ "name": "updated_at",
147
+ "type": "timestamp with time zone",
148
+ "primaryKey": false,
149
+ "notNull": true
150
+ }
151
+ },
152
+ "indexes": {},
153
+ "foreignKeys": {
154
+ "junior_conversation_annotations_conversation_id_fk": {
155
+ "name": "junior_conversation_annotations_conversation_id_fk",
156
+ "tableFrom": "junior_conversation_annotations",
157
+ "columnsFrom": ["conversation_id"],
158
+ "tableTo": "junior_conversations",
159
+ "columnsTo": ["conversation_id"],
160
+ "onUpdate": "no action",
161
+ "onDelete": "cascade"
162
+ }
163
+ },
164
+ "compositePrimaryKeys": {
165
+ "junior_conversation_annotations_pk": {
166
+ "name": "junior_conversation_annotations_pk",
167
+ "columns": ["conversation_id", "plugin", "kind", "key"]
168
+ }
169
+ },
170
+ "uniqueConstraints": {},
171
+ "policies": {},
172
+ "checkConstraints": {},
173
+ "isRLSEnabled": false
174
+ },
175
+ "public.junior_conversation_events": {
176
+ "name": "junior_conversation_events",
177
+ "schema": "",
178
+ "columns": {
179
+ "conversation_id": {
180
+ "name": "conversation_id",
181
+ "type": "text",
182
+ "primaryKey": false,
183
+ "notNull": true
184
+ },
185
+ "seq": {
186
+ "name": "seq",
187
+ "type": "integer",
188
+ "primaryKey": false,
189
+ "notNull": true
190
+ },
191
+ "history_version": {
192
+ "name": "history_version",
193
+ "type": "integer",
194
+ "primaryKey": false,
195
+ "notNull": true
196
+ },
197
+ "schema_version": {
198
+ "name": "schema_version",
199
+ "type": "integer",
200
+ "primaryKey": false,
201
+ "notNull": true,
202
+ "default": 1
203
+ },
204
+ "idempotency_key": {
205
+ "name": "idempotency_key",
206
+ "type": "text",
207
+ "primaryKey": false,
208
+ "notNull": false
209
+ },
210
+ "type": {
211
+ "name": "type",
212
+ "type": "text",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "payload": {
217
+ "name": "payload",
218
+ "type": "jsonb",
219
+ "primaryKey": false,
220
+ "notNull": true
221
+ },
222
+ "created_at": {
223
+ "name": "created_at",
224
+ "type": "timestamp with time zone",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ }
228
+ },
229
+ "indexes": {
230
+ "junior_conversation_events_history_version_idx": {
231
+ "name": "junior_conversation_events_history_version_idx",
232
+ "columns": [
233
+ {
234
+ "expression": "conversation_id",
235
+ "isExpression": false,
236
+ "asc": true,
237
+ "nulls": "last"
238
+ },
239
+ {
240
+ "expression": "history_version",
241
+ "isExpression": false,
242
+ "asc": true,
243
+ "nulls": "last"
244
+ },
245
+ {
246
+ "expression": "seq",
247
+ "isExpression": false,
248
+ "asc": true,
249
+ "nulls": "last"
250
+ }
251
+ ],
252
+ "isUnique": false,
253
+ "with": {},
254
+ "method": "btree",
255
+ "concurrently": false
256
+ },
257
+ "junior_conversation_events_type_idx": {
258
+ "name": "junior_conversation_events_type_idx",
259
+ "columns": [
260
+ {
261
+ "expression": "conversation_id",
262
+ "isExpression": false,
263
+ "asc": true,
264
+ "nulls": "last"
265
+ },
266
+ {
267
+ "expression": "type",
268
+ "isExpression": false,
269
+ "asc": true,
270
+ "nulls": "last"
271
+ },
272
+ {
273
+ "expression": "seq",
274
+ "isExpression": false,
275
+ "asc": true,
276
+ "nulls": "last"
277
+ }
278
+ ],
279
+ "isUnique": false,
280
+ "with": {},
281
+ "method": "btree",
282
+ "concurrently": false
283
+ },
284
+ "junior_conversation_events_message_search_idx": {
285
+ "name": "junior_conversation_events_message_search_idx",
286
+ "columns": [
287
+ {
288
+ "expression": "to_tsvector('english', \"payload\"->>'text')",
289
+ "isExpression": true,
290
+ "asc": true,
291
+ "nulls": "last"
292
+ }
293
+ ],
294
+ "isUnique": false,
295
+ "with": {},
296
+ "method": "gin",
297
+ "where": "\"junior_conversation_events\".\"type\" = 'message'",
298
+ "concurrently": false
299
+ },
300
+ "junior_conversation_events_idempotency_idx": {
301
+ "name": "junior_conversation_events_idempotency_idx",
302
+ "columns": [
303
+ {
304
+ "expression": "conversation_id",
305
+ "isExpression": false,
306
+ "asc": true,
307
+ "nulls": "last"
308
+ },
309
+ {
310
+ "expression": "idempotency_key",
311
+ "isExpression": false,
312
+ "asc": true,
313
+ "nulls": "last"
314
+ }
315
+ ],
316
+ "isUnique": true,
317
+ "with": {},
318
+ "method": "btree",
319
+ "concurrently": false
320
+ }
321
+ },
322
+ "foreignKeys": {
323
+ "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
324
+ "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
325
+ "tableFrom": "junior_conversation_events",
326
+ "columnsFrom": ["conversation_id"],
327
+ "tableTo": "junior_conversations",
328
+ "columnsTo": ["conversation_id"],
329
+ "onUpdate": "no action",
330
+ "onDelete": "no action"
331
+ }
332
+ },
333
+ "compositePrimaryKeys": {
334
+ "junior_conversation_events_conversation_id_seq_pk": {
335
+ "name": "junior_conversation_events_conversation_id_seq_pk",
336
+ "columns": ["conversation_id", "seq"]
337
+ }
338
+ },
339
+ "uniqueConstraints": {},
340
+ "policies": {},
341
+ "checkConstraints": {},
342
+ "isRLSEnabled": false
343
+ },
344
+ "public.junior_conversations": {
345
+ "name": "junior_conversations",
346
+ "schema": "",
347
+ "columns": {
348
+ "conversation_id": {
349
+ "name": "conversation_id",
350
+ "type": "text",
351
+ "primaryKey": true,
352
+ "notNull": true
353
+ },
354
+ "schema_version": {
355
+ "name": "schema_version",
356
+ "type": "integer",
357
+ "primaryKey": false,
358
+ "notNull": true,
359
+ "default": 1
360
+ },
361
+ "source": {
362
+ "name": "source",
363
+ "type": "text",
364
+ "primaryKey": false,
365
+ "notNull": false
366
+ },
367
+ "source_json": {
368
+ "name": "source_json",
369
+ "type": "jsonb",
370
+ "primaryKey": false,
371
+ "notNull": false
372
+ },
373
+ "origin_type": {
374
+ "name": "origin_type",
375
+ "type": "text",
376
+ "primaryKey": false,
377
+ "notNull": false
378
+ },
379
+ "origin_id": {
380
+ "name": "origin_id",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": false
384
+ },
385
+ "origin_run_id": {
386
+ "name": "origin_run_id",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": false
390
+ },
391
+ "destination_id": {
392
+ "name": "destination_id",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": false
396
+ },
397
+ "destination_json": {
398
+ "name": "destination_json",
399
+ "type": "jsonb",
400
+ "primaryKey": false,
401
+ "notNull": false
402
+ },
403
+ "actor_identity_id": {
404
+ "name": "actor_identity_id",
405
+ "type": "text",
406
+ "primaryKey": false,
407
+ "notNull": false
408
+ },
409
+ "creator_identity_id": {
410
+ "name": "creator_identity_id",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": false
414
+ },
415
+ "credential_subject_identity_id": {
416
+ "name": "credential_subject_identity_id",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": false
420
+ },
421
+ "actor_json": {
422
+ "name": "actor_json",
423
+ "type": "jsonb",
424
+ "primaryKey": false,
425
+ "notNull": false
426
+ },
427
+ "channel_name": {
428
+ "name": "channel_name",
429
+ "type": "text",
430
+ "primaryKey": false,
431
+ "notNull": false
432
+ },
433
+ "title": {
434
+ "name": "title",
435
+ "type": "text",
436
+ "primaryKey": false,
437
+ "notNull": false
438
+ },
439
+ "created_at": {
440
+ "name": "created_at",
441
+ "type": "timestamp with time zone",
442
+ "primaryKey": false,
443
+ "notNull": true
444
+ },
445
+ "last_activity_at": {
446
+ "name": "last_activity_at",
447
+ "type": "timestamp with time zone",
448
+ "primaryKey": false,
449
+ "notNull": true
450
+ },
451
+ "updated_at": {
452
+ "name": "updated_at",
453
+ "type": "timestamp with time zone",
454
+ "primaryKey": false,
455
+ "notNull": true
456
+ },
457
+ "execution_updated_at": {
458
+ "name": "execution_updated_at",
459
+ "type": "timestamp with time zone",
460
+ "primaryKey": false,
461
+ "notNull": false
462
+ },
463
+ "execution_status": {
464
+ "name": "execution_status",
465
+ "type": "text",
466
+ "primaryKey": false,
467
+ "notNull": true
468
+ },
469
+ "run_id": {
470
+ "name": "run_id",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": false
474
+ },
475
+ "last_checkpoint_at": {
476
+ "name": "last_checkpoint_at",
477
+ "type": "timestamp with time zone",
478
+ "primaryKey": false,
479
+ "notNull": false
480
+ },
481
+ "last_enqueued_at": {
482
+ "name": "last_enqueued_at",
483
+ "type": "timestamp with time zone",
484
+ "primaryKey": false,
485
+ "notNull": false
486
+ },
487
+ "parent_conversation_id": {
488
+ "name": "parent_conversation_id",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": false
492
+ },
493
+ "root_conversation_id": {
494
+ "name": "root_conversation_id",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": false
498
+ },
499
+ "transcript_purged_at": {
500
+ "name": "transcript_purged_at",
501
+ "type": "timestamp with time zone",
502
+ "primaryKey": false,
503
+ "notNull": false
504
+ },
505
+ "duration_ms": {
506
+ "name": "duration_ms",
507
+ "type": "integer",
508
+ "primaryKey": false,
509
+ "notNull": true,
510
+ "default": 0
511
+ },
512
+ "usage_json": {
513
+ "name": "usage_json",
514
+ "type": "jsonb",
515
+ "primaryKey": false,
516
+ "notNull": false
517
+ },
518
+ "execution_duration_ms": {
519
+ "name": "execution_duration_ms",
520
+ "type": "integer",
521
+ "primaryKey": false,
522
+ "notNull": true,
523
+ "default": 0
524
+ },
525
+ "execution_usage_json": {
526
+ "name": "execution_usage_json",
527
+ "type": "jsonb",
528
+ "primaryKey": false,
529
+ "notNull": false
530
+ },
531
+ "metric_run_id": {
532
+ "name": "metric_run_id",
533
+ "type": "text",
534
+ "primaryKey": false,
535
+ "notNull": false
536
+ },
537
+ "archived_at": {
538
+ "name": "archived_at",
539
+ "type": "timestamp with time zone",
540
+ "primaryKey": false,
541
+ "notNull": false
542
+ }
543
+ },
544
+ "indexes": {
545
+ "junior_conversations_last_activity_idx": {
546
+ "name": "junior_conversations_last_activity_idx",
547
+ "columns": [
548
+ {
549
+ "expression": "last_activity_at",
550
+ "isExpression": false,
551
+ "asc": false,
552
+ "nulls": "last"
553
+ },
554
+ {
555
+ "expression": "conversation_id",
556
+ "isExpression": false,
557
+ "asc": true,
558
+ "nulls": "last"
559
+ }
560
+ ],
561
+ "isUnique": false,
562
+ "with": {},
563
+ "method": "btree",
564
+ "concurrently": false
565
+ },
566
+ "junior_conversations_active_idx": {
567
+ "name": "junior_conversations_active_idx",
568
+ "columns": [
569
+ {
570
+ "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
571
+ "isExpression": true,
572
+ "asc": true,
573
+ "nulls": "last"
574
+ },
575
+ {
576
+ "expression": "conversation_id",
577
+ "isExpression": false,
578
+ "asc": true,
579
+ "nulls": "last"
580
+ }
581
+ ],
582
+ "isUnique": false,
583
+ "with": {},
584
+ "method": "btree",
585
+ "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
586
+ "concurrently": false
587
+ },
588
+ "junior_conversations_destination_activity_idx": {
589
+ "name": "junior_conversations_destination_activity_idx",
590
+ "columns": [
591
+ {
592
+ "expression": "destination_id",
593
+ "isExpression": false,
594
+ "asc": true,
595
+ "nulls": "last"
596
+ },
597
+ {
598
+ "expression": "last_activity_at",
599
+ "isExpression": false,
600
+ "asc": false,
601
+ "nulls": "last"
602
+ }
603
+ ],
604
+ "isUnique": false,
605
+ "with": {},
606
+ "method": "btree",
607
+ "concurrently": false
608
+ },
609
+ "junior_conversations_actor_activity_idx": {
610
+ "name": "junior_conversations_actor_activity_idx",
611
+ "columns": [
612
+ {
613
+ "expression": "actor_identity_id",
614
+ "isExpression": false,
615
+ "asc": true,
616
+ "nulls": "last"
617
+ },
618
+ {
619
+ "expression": "last_activity_at",
620
+ "isExpression": false,
621
+ "asc": false,
622
+ "nulls": "last"
623
+ }
624
+ ],
625
+ "isUnique": false,
626
+ "with": {},
627
+ "method": "btree",
628
+ "concurrently": false
629
+ },
630
+ "junior_conversations_origin_idx": {
631
+ "name": "junior_conversations_origin_idx",
632
+ "columns": [
633
+ {
634
+ "expression": "origin_type",
635
+ "isExpression": false,
636
+ "asc": true,
637
+ "nulls": "last"
638
+ },
639
+ {
640
+ "expression": "origin_id",
641
+ "isExpression": false,
642
+ "asc": true,
643
+ "nulls": "last"
644
+ },
645
+ {
646
+ "expression": "last_activity_at",
647
+ "isExpression": false,
648
+ "asc": false,
649
+ "nulls": "last"
650
+ }
651
+ ],
652
+ "isUnique": false,
653
+ "with": {},
654
+ "method": "btree",
655
+ "concurrently": false
656
+ },
657
+ "junior_conversations_parent_idx": {
658
+ "name": "junior_conversations_parent_idx",
659
+ "columns": [
660
+ {
661
+ "expression": "parent_conversation_id",
662
+ "isExpression": false,
663
+ "asc": true,
664
+ "nulls": "last"
665
+ }
666
+ ],
667
+ "isUnique": false,
668
+ "with": {},
669
+ "method": "btree",
670
+ "concurrently": false
671
+ },
672
+ "junior_conversations_root_idx": {
673
+ "name": "junior_conversations_root_idx",
674
+ "columns": [
675
+ {
676
+ "expression": "root_conversation_id",
677
+ "isExpression": false,
678
+ "asc": true,
679
+ "nulls": "last"
680
+ }
681
+ ],
682
+ "isUnique": false,
683
+ "with": {},
684
+ "method": "btree",
685
+ "concurrently": false
686
+ }
687
+ },
688
+ "foreignKeys": {
689
+ "junior_conversations_destination_id_junior_destinations_id_fk": {
690
+ "name": "junior_conversations_destination_id_junior_destinations_id_fk",
691
+ "tableFrom": "junior_conversations",
692
+ "columnsFrom": ["destination_id"],
693
+ "tableTo": "junior_destinations",
694
+ "columnsTo": ["id"],
695
+ "onUpdate": "no action",
696
+ "onDelete": "no action"
697
+ },
698
+ "junior_conversations_actor_identity_id_junior_identities_id_fk": {
699
+ "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
700
+ "tableFrom": "junior_conversations",
701
+ "columnsFrom": ["actor_identity_id"],
702
+ "tableTo": "junior_identities",
703
+ "columnsTo": ["id"],
704
+ "onUpdate": "no action",
705
+ "onDelete": "no action"
706
+ },
707
+ "junior_conversations_creator_identity_id_junior_identities_id_fk": {
708
+ "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
709
+ "tableFrom": "junior_conversations",
710
+ "columnsFrom": ["creator_identity_id"],
711
+ "tableTo": "junior_identities",
712
+ "columnsTo": ["id"],
713
+ "onUpdate": "no action",
714
+ "onDelete": "no action"
715
+ },
716
+ "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
717
+ "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
718
+ "tableFrom": "junior_conversations",
719
+ "columnsFrom": ["credential_subject_identity_id"],
720
+ "tableTo": "junior_identities",
721
+ "columnsTo": ["id"],
722
+ "onUpdate": "no action",
723
+ "onDelete": "no action"
724
+ },
725
+ "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
726
+ "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
727
+ "tableFrom": "junior_conversations",
728
+ "columnsFrom": ["parent_conversation_id"],
729
+ "tableTo": "junior_conversations",
730
+ "columnsTo": ["conversation_id"],
731
+ "onUpdate": "no action",
732
+ "onDelete": "no action"
733
+ },
734
+ "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
735
+ "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
736
+ "tableFrom": "junior_conversations",
737
+ "columnsFrom": ["root_conversation_id"],
738
+ "tableTo": "junior_conversations",
739
+ "columnsTo": ["conversation_id"],
740
+ "onUpdate": "no action",
741
+ "onDelete": "no action"
742
+ }
743
+ },
744
+ "compositePrimaryKeys": {},
745
+ "uniqueConstraints": {},
746
+ "policies": {},
747
+ "checkConstraints": {},
748
+ "isRLSEnabled": false
749
+ },
750
+ "public.junior_destinations": {
751
+ "name": "junior_destinations",
752
+ "schema": "",
753
+ "columns": {
754
+ "id": {
755
+ "name": "id",
756
+ "type": "text",
757
+ "primaryKey": true,
758
+ "notNull": true
759
+ },
760
+ "provider": {
761
+ "name": "provider",
762
+ "type": "text",
763
+ "primaryKey": false,
764
+ "notNull": true
765
+ },
766
+ "provider_tenant_id": {
767
+ "name": "provider_tenant_id",
768
+ "type": "text",
769
+ "primaryKey": false,
770
+ "notNull": true,
771
+ "default": "''"
772
+ },
773
+ "provider_destination_id": {
774
+ "name": "provider_destination_id",
775
+ "type": "text",
776
+ "primaryKey": false,
777
+ "notNull": true
778
+ },
779
+ "kind": {
780
+ "name": "kind",
781
+ "type": "text",
782
+ "primaryKey": false,
783
+ "notNull": true
784
+ },
785
+ "parent_destination_id": {
786
+ "name": "parent_destination_id",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": false
790
+ },
791
+ "display_name": {
792
+ "name": "display_name",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": false
796
+ },
797
+ "visibility": {
798
+ "name": "visibility",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": true,
802
+ "default": "'unknown'"
803
+ },
804
+ "metadata_json": {
805
+ "name": "metadata_json",
806
+ "type": "jsonb",
807
+ "primaryKey": false,
808
+ "notNull": false
809
+ },
810
+ "created_at": {
811
+ "name": "created_at",
812
+ "type": "timestamp with time zone",
813
+ "primaryKey": false,
814
+ "notNull": true
815
+ },
816
+ "updated_at": {
817
+ "name": "updated_at",
818
+ "type": "timestamp with time zone",
819
+ "primaryKey": false,
820
+ "notNull": true
821
+ }
822
+ },
823
+ "indexes": {
824
+ "junior_destinations_provider_destination_uidx": {
825
+ "name": "junior_destinations_provider_destination_uidx",
826
+ "columns": [
827
+ {
828
+ "expression": "provider",
829
+ "isExpression": false,
830
+ "asc": true,
831
+ "nulls": "last"
832
+ },
833
+ {
834
+ "expression": "provider_tenant_id",
835
+ "isExpression": false,
836
+ "asc": true,
837
+ "nulls": "last"
838
+ },
839
+ {
840
+ "expression": "provider_destination_id",
841
+ "isExpression": false,
842
+ "asc": true,
843
+ "nulls": "last"
844
+ }
845
+ ],
846
+ "isUnique": true,
847
+ "with": {},
848
+ "method": "btree",
849
+ "concurrently": false
850
+ },
851
+ "junior_destinations_provider_kind_idx": {
852
+ "name": "junior_destinations_provider_kind_idx",
853
+ "columns": [
854
+ {
855
+ "expression": "provider",
856
+ "isExpression": false,
857
+ "asc": true,
858
+ "nulls": "last"
859
+ },
860
+ {
861
+ "expression": "kind",
862
+ "isExpression": false,
863
+ "asc": true,
864
+ "nulls": "last"
865
+ }
866
+ ],
867
+ "isUnique": false,
868
+ "with": {},
869
+ "method": "btree",
870
+ "concurrently": false
871
+ }
872
+ },
873
+ "foreignKeys": {},
874
+ "compositePrimaryKeys": {},
875
+ "uniqueConstraints": {},
876
+ "policies": {},
877
+ "checkConstraints": {},
878
+ "isRLSEnabled": false
879
+ },
880
+ "public.junior_identities": {
881
+ "name": "junior_identities",
882
+ "schema": "",
883
+ "columns": {
884
+ "id": {
885
+ "name": "id",
886
+ "type": "text",
887
+ "primaryKey": true,
888
+ "notNull": true
889
+ },
890
+ "kind": {
891
+ "name": "kind",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true
895
+ },
896
+ "provider": {
897
+ "name": "provider",
898
+ "type": "text",
899
+ "primaryKey": false,
900
+ "notNull": true
901
+ },
902
+ "provider_tenant_id": {
903
+ "name": "provider_tenant_id",
904
+ "type": "text",
905
+ "primaryKey": false,
906
+ "notNull": true,
907
+ "default": "''"
908
+ },
909
+ "provider_subject_id": {
910
+ "name": "provider_subject_id",
911
+ "type": "text",
912
+ "primaryKey": false,
913
+ "notNull": true
914
+ },
915
+ "display_name": {
916
+ "name": "display_name",
917
+ "type": "text",
918
+ "primaryKey": false,
919
+ "notNull": false
920
+ },
921
+ "handle": {
922
+ "name": "handle",
923
+ "type": "text",
924
+ "primaryKey": false,
925
+ "notNull": false
926
+ },
927
+ "email": {
928
+ "name": "email",
929
+ "type": "text",
930
+ "primaryKey": false,
931
+ "notNull": false
932
+ },
933
+ "avatar_url": {
934
+ "name": "avatar_url",
935
+ "type": "text",
936
+ "primaryKey": false,
937
+ "notNull": false
938
+ },
939
+ "metadata_json": {
940
+ "name": "metadata_json",
941
+ "type": "jsonb",
942
+ "primaryKey": false,
943
+ "notNull": false
944
+ },
945
+ "created_at": {
946
+ "name": "created_at",
947
+ "type": "timestamp with time zone",
948
+ "primaryKey": false,
949
+ "notNull": true
950
+ },
951
+ "updated_at": {
952
+ "name": "updated_at",
953
+ "type": "timestamp with time zone",
954
+ "primaryKey": false,
955
+ "notNull": true
956
+ },
957
+ "user_id": {
958
+ "name": "user_id",
959
+ "type": "text",
960
+ "primaryKey": false,
961
+ "notNull": false
962
+ },
963
+ "email_normalized": {
964
+ "name": "email_normalized",
965
+ "type": "text",
966
+ "primaryKey": false,
967
+ "notNull": false
968
+ },
969
+ "email_verified": {
970
+ "name": "email_verified",
971
+ "type": "boolean",
972
+ "primaryKey": false,
973
+ "notNull": true,
974
+ "default": false
975
+ }
976
+ },
977
+ "indexes": {
978
+ "junior_identities_provider_subject_uidx": {
979
+ "name": "junior_identities_provider_subject_uidx",
980
+ "columns": [
981
+ {
982
+ "expression": "provider",
983
+ "isExpression": false,
984
+ "asc": true,
985
+ "nulls": "last"
986
+ },
987
+ {
988
+ "expression": "provider_tenant_id",
989
+ "isExpression": false,
990
+ "asc": true,
991
+ "nulls": "last"
992
+ },
993
+ {
994
+ "expression": "provider_subject_id",
995
+ "isExpression": false,
996
+ "asc": true,
997
+ "nulls": "last"
998
+ }
999
+ ],
1000
+ "isUnique": true,
1001
+ "with": {},
1002
+ "method": "btree",
1003
+ "concurrently": false
1004
+ },
1005
+ "junior_identities_user_idx": {
1006
+ "name": "junior_identities_user_idx",
1007
+ "columns": [
1008
+ {
1009
+ "expression": "user_id",
1010
+ "isExpression": false,
1011
+ "asc": true,
1012
+ "nulls": "last"
1013
+ }
1014
+ ],
1015
+ "isUnique": false,
1016
+ "with": {},
1017
+ "method": "btree",
1018
+ "concurrently": false
1019
+ },
1020
+ "junior_identities_verified_email_idx": {
1021
+ "name": "junior_identities_verified_email_idx",
1022
+ "columns": [
1023
+ {
1024
+ "expression": "email_normalized",
1025
+ "isExpression": false,
1026
+ "asc": true,
1027
+ "nulls": "last"
1028
+ }
1029
+ ],
1030
+ "isUnique": false,
1031
+ "with": {},
1032
+ "method": "btree",
1033
+ "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
1034
+ "concurrently": false
1035
+ },
1036
+ "junior_identities_kind_provider_idx": {
1037
+ "name": "junior_identities_kind_provider_idx",
1038
+ "columns": [
1039
+ {
1040
+ "expression": "kind",
1041
+ "isExpression": false,
1042
+ "asc": true,
1043
+ "nulls": "last"
1044
+ },
1045
+ {
1046
+ "expression": "provider",
1047
+ "isExpression": false,
1048
+ "asc": true,
1049
+ "nulls": "last"
1050
+ }
1051
+ ],
1052
+ "isUnique": false,
1053
+ "with": {},
1054
+ "method": "btree",
1055
+ "concurrently": false
1056
+ }
1057
+ },
1058
+ "foreignKeys": {
1059
+ "junior_identities_user_id_junior_users_id_fk": {
1060
+ "name": "junior_identities_user_id_junior_users_id_fk",
1061
+ "tableFrom": "junior_identities",
1062
+ "columnsFrom": ["user_id"],
1063
+ "tableTo": "junior_users",
1064
+ "columnsTo": ["id"],
1065
+ "onUpdate": "no action",
1066
+ "onDelete": "no action"
1067
+ }
1068
+ },
1069
+ "compositePrimaryKeys": {},
1070
+ "uniqueConstraints": {},
1071
+ "policies": {},
1072
+ "checkConstraints": {},
1073
+ "isRLSEnabled": false
1074
+ },
1075
+ "public.junior_stats": {
1076
+ "name": "junior_stats",
1077
+ "schema": "",
1078
+ "columns": {
1079
+ "date": {
1080
+ "name": "date",
1081
+ "type": "date",
1082
+ "primaryKey": false,
1083
+ "notNull": true
1084
+ },
1085
+ "namespace": {
1086
+ "name": "namespace",
1087
+ "type": "text",
1088
+ "primaryKey": false,
1089
+ "notNull": true
1090
+ },
1091
+ "metric": {
1092
+ "name": "metric",
1093
+ "type": "text",
1094
+ "primaryKey": false,
1095
+ "notNull": true
1096
+ },
1097
+ "name": {
1098
+ "name": "name",
1099
+ "type": "text",
1100
+ "primaryKey": false,
1101
+ "notNull": true
1102
+ },
1103
+ "count": {
1104
+ "name": "count",
1105
+ "type": "integer",
1106
+ "primaryKey": false,
1107
+ "notNull": true,
1108
+ "default": 0
1109
+ }
1110
+ },
1111
+ "indexes": {},
1112
+ "foreignKeys": {},
1113
+ "compositePrimaryKeys": {
1114
+ "junior_stats_date_namespace_metric_name_pk": {
1115
+ "name": "junior_stats_date_namespace_metric_name_pk",
1116
+ "columns": ["date", "namespace", "metric", "name"]
1117
+ }
1118
+ },
1119
+ "uniqueConstraints": {},
1120
+ "policies": {},
1121
+ "checkConstraints": {},
1122
+ "isRLSEnabled": false
1123
+ },
1124
+ "public.junior_users": {
1125
+ "name": "junior_users",
1126
+ "schema": "",
1127
+ "columns": {
1128
+ "id": {
1129
+ "name": "id",
1130
+ "type": "text",
1131
+ "primaryKey": true,
1132
+ "notNull": true
1133
+ },
1134
+ "primary_email": {
1135
+ "name": "primary_email",
1136
+ "type": "text",
1137
+ "primaryKey": false,
1138
+ "notNull": true
1139
+ },
1140
+ "primary_email_normalized": {
1141
+ "name": "primary_email_normalized",
1142
+ "type": "text",
1143
+ "primaryKey": false,
1144
+ "notNull": true
1145
+ },
1146
+ "display_name": {
1147
+ "name": "display_name",
1148
+ "type": "text",
1149
+ "primaryKey": false,
1150
+ "notNull": false
1151
+ },
1152
+ "created_at": {
1153
+ "name": "created_at",
1154
+ "type": "timestamp with time zone",
1155
+ "primaryKey": false,
1156
+ "notNull": true
1157
+ },
1158
+ "updated_at": {
1159
+ "name": "updated_at",
1160
+ "type": "timestamp with time zone",
1161
+ "primaryKey": false,
1162
+ "notNull": true
1163
+ }
1164
+ },
1165
+ "indexes": {
1166
+ "junior_users_primary_email_normalized_uidx": {
1167
+ "name": "junior_users_primary_email_normalized_uidx",
1168
+ "columns": [
1169
+ {
1170
+ "expression": "primary_email_normalized",
1171
+ "isExpression": false,
1172
+ "asc": true,
1173
+ "nulls": "last"
1174
+ }
1175
+ ],
1176
+ "isUnique": true,
1177
+ "with": {},
1178
+ "method": "btree",
1179
+ "concurrently": false
1180
+ }
1181
+ },
1182
+ "foreignKeys": {},
1183
+ "compositePrimaryKeys": {},
1184
+ "uniqueConstraints": {},
1185
+ "policies": {},
1186
+ "checkConstraints": {},
1187
+ "isRLSEnabled": false
1188
+ }
1189
+ },
1190
+ "enums": {},
1191
+ "schemas": {},
1192
+ "views": {},
1193
+ "sequences": {},
1194
+ "roles": {},
1195
+ "policies": {},
1196
+ "_meta": {
1197
+ "columns": {},
1198
+ "schemas": {},
1199
+ "tables": {}
1200
+ }
1201
+ }