@sentry/junior 0.99.0 → 0.100.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.
Files changed (79) hide show
  1. package/dist/{agent-hooks-OSW6C3CJ.js → agent-hooks-V6KU7PQN.js} +6 -5
  2. package/dist/api/activity.d.ts +14 -0
  3. package/dist/api/conversations/aggregate.d.ts +16 -0
  4. package/dist/api/conversations/detail-projection.d.ts +1 -0
  5. package/dist/api/conversations/list.query.d.ts +3 -0
  6. package/dist/api/conversations/projection.d.ts +1 -0
  7. package/dist/api/conversations/reporting.d.ts +42 -0
  8. package/dist/api/conversations/schema.d.ts +7 -7
  9. package/dist/api/conversations/stats.query.d.ts +1 -1
  10. package/dist/api/locations/detail.d.ts +81 -0
  11. package/dist/api/locations/list.d.ts +30 -0
  12. package/dist/api/locations/query.d.ts +5 -0
  13. package/dist/api/locations/schema.d.ts +175 -0
  14. package/dist/api/people/list.query.d.ts +1 -1
  15. package/dist/api/people/profile.query.d.ts +1 -1
  16. package/dist/api/people/schema.d.ts +10 -14
  17. package/dist/api/people/shared.d.ts +38 -78
  18. package/dist/api/schema.d.ts +8 -0
  19. package/dist/api/schema.js +14 -3
  20. package/dist/api.js +24 -11
  21. package/dist/app.js +25 -19
  22. package/dist/chat/agent/request.d.ts +3 -0
  23. package/dist/chat/config.d.ts +2 -0
  24. package/dist/chat/reasoning-level.d.ts +4 -0
  25. package/dist/chat/services/{turn-thinking-level.d.ts → turn-reasoning-level.d.ts} +11 -10
  26. package/dist/chat/services/turn-result.d.ts +3 -3
  27. package/dist/chat/tools/search-tools.d.ts +2 -2
  28. package/dist/{chunk-T55RBE4Z.js → chunk-2RNOB32R.js} +3 -1
  29. package/dist/{chunk-NJEDJFK4.js → chunk-2T7DCRAW.js} +1 -1
  30. package/dist/{chunk-PYK7R5A7.js → chunk-45DMFMY2.js} +66 -65
  31. package/dist/chunk-4AQUWWEM.js +75 -0
  32. package/dist/{chunk-EEZCY5WX.js → chunk-A7X2FDUO.js} +18 -2
  33. package/dist/{chunk-WTYEKPXU.js → chunk-FP5N5OWZ.js} +1 -1
  34. package/dist/chunk-FXFQNHRU.js +48 -0
  35. package/dist/chunk-GEUUJRQF.js +102 -0
  36. package/dist/{chunk-CRQVIHDI.js → chunk-IDZBM3NW.js} +2 -8
  37. package/dist/{chunk-DHHU2WSG.js → chunk-IQIBZXGB.js} +2 -2
  38. package/dist/{chunk-OL6XQ23W.js → chunk-IVXL57YF.js} +3 -3
  39. package/dist/{chunk-IO65E4ZD.js → chunk-JPQISMMJ.js} +3 -3
  40. package/dist/{chunk-KFUSLFLL.js → chunk-JSAANELJ.js} +11 -4
  41. package/dist/{chunk-EUZ44ROE.js → chunk-MM5UFDAC.js} +1 -3
  42. package/dist/{chunk-WJ7STXT6.js → chunk-NSOCZGOH.js} +3 -3
  43. package/dist/chunk-PGGEOCQY.js +77 -0
  44. package/dist/{chunk-EOWXRY5E.js → chunk-PWC24W5F.js} +1 -1
  45. package/dist/chunk-QOZOJNSE.js +96 -0
  46. package/dist/chunk-QSBQJ3PA.js +275 -0
  47. package/dist/{chunk-FTTFV6DC.js → chunk-TPTJEHUE.js} +4 -4
  48. package/dist/{chunk-OGHXZ4KQ.js → chunk-VHRM6GNH.js} +88 -122
  49. package/dist/{chunk-NG2AV7IB.js → chunk-VVIXK2BX.js} +1 -1
  50. package/dist/{chunk-ZZUBLPXD.js → chunk-VY7BT4SM.js} +5 -4
  51. package/dist/{chunk-H66UCBPW.js → chunk-XJA7BPHS.js} +1 -1
  52. package/dist/{chunk-ER45IV77.js → chunk-XSBIISXS.js} +9 -9
  53. package/dist/cli/chat.js +15 -14
  54. package/dist/cli/plugins.js +6 -5
  55. package/dist/cli/snapshot-warmup.js +2 -2
  56. package/dist/cli/upgrade.js +8 -7
  57. package/dist/db/schema/conversations.d.ts +17 -0
  58. package/dist/db/schema/destinations.d.ts +12 -3
  59. package/dist/db/schema.d.ts +19 -2
  60. package/dist/{db-GFSCDAHS.js → db-RCZB7KNM.js} +3 -2
  61. package/dist/detail-5SLCGT6J.js +29 -0
  62. package/dist/{detail-Q4IVDNGS.js → detail-LU6COZO6.js} +11 -10
  63. package/dist/{legacy-import-6WWXMALY.js → legacy-import-VCYLWT2V.js} +4 -3
  64. package/dist/list-2FI5SFV7.js +80 -0
  65. package/dist/list-4ALSU6ZW.js +30 -0
  66. package/dist/{list-A3F5JDYV.js → list-KHRAWZWU.js} +7 -6
  67. package/dist/{plugin-conversations-PDCQWU3O.js → plugin-conversations-JANXC4GA.js} +6 -5
  68. package/dist/profile-3O3OVENT.js +212 -0
  69. package/dist/{runner-267ZRLZD.js → runner-BM7D35YW.js} +12 -11
  70. package/dist/stats-J3YGCYDF.js +174 -0
  71. package/dist/{subagent-UN3MP6LV.js → subagent-P7HOSMVC.js} +10 -9
  72. package/migrations/0003_peaceful_scalphunter.sql +4 -0
  73. package/migrations/meta/0003_snapshot.json +1035 -0
  74. package/migrations/meta/_journal.json +8 -1
  75. package/package.json +5 -5
  76. package/dist/chunk-CV22LUIV.js +0 -261
  77. package/dist/list-M5BRWW3D.js +0 -92
  78. package/dist/profile-UEIRSVT3.js +0 -146
  79. package/dist/stats-L62E4O4U.js +0 -207
@@ -0,0 +1,1035 @@
1
+ {
2
+ "id": "3668b705-7991-4e7e-8fb2-6e4ef8147aac",
3
+ "prevId": "df0fd278-b0ca-43c5-8d4c-f3881004516b",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.junior_agent_steps": {
8
+ "name": "junior_agent_steps",
9
+ "schema": "",
10
+ "columns": {
11
+ "conversation_id": {
12
+ "name": "conversation_id",
13
+ "type": "text",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "seq": {
18
+ "name": "seq",
19
+ "type": "integer",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "context_epoch": {
24
+ "name": "context_epoch",
25
+ "type": "integer",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "type": {
30
+ "name": "type",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "role": {
36
+ "name": "role",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "payload": {
42
+ "name": "payload",
43
+ "type": "jsonb",
44
+ "primaryKey": false,
45
+ "notNull": true
46
+ },
47
+ "created_at": {
48
+ "name": "created_at",
49
+ "type": "timestamp with time zone",
50
+ "primaryKey": false,
51
+ "notNull": true
52
+ }
53
+ },
54
+ "indexes": {
55
+ "junior_agent_steps_epoch_idx": {
56
+ "name": "junior_agent_steps_epoch_idx",
57
+ "columns": [
58
+ {
59
+ "expression": "conversation_id",
60
+ "isExpression": false,
61
+ "asc": true,
62
+ "nulls": "last"
63
+ },
64
+ {
65
+ "expression": "context_epoch",
66
+ "isExpression": false,
67
+ "asc": true,
68
+ "nulls": "last"
69
+ },
70
+ {
71
+ "expression": "seq",
72
+ "isExpression": false,
73
+ "asc": true,
74
+ "nulls": "last"
75
+ }
76
+ ],
77
+ "isUnique": false,
78
+ "concurrently": false,
79
+ "method": "btree",
80
+ "with": {}
81
+ }
82
+ },
83
+ "foreignKeys": {
84
+ "junior_agent_steps_conversation_id_junior_conversations_conversation_id_fk": {
85
+ "name": "junior_agent_steps_conversation_id_junior_conversations_conversation_id_fk",
86
+ "tableFrom": "junior_agent_steps",
87
+ "tableTo": "junior_conversations",
88
+ "columnsFrom": [
89
+ "conversation_id"
90
+ ],
91
+ "columnsTo": [
92
+ "conversation_id"
93
+ ],
94
+ "onDelete": "no action",
95
+ "onUpdate": "no action"
96
+ }
97
+ },
98
+ "compositePrimaryKeys": {
99
+ "junior_agent_steps_conversation_id_seq_pk": {
100
+ "name": "junior_agent_steps_conversation_id_seq_pk",
101
+ "columns": [
102
+ "conversation_id",
103
+ "seq"
104
+ ]
105
+ }
106
+ },
107
+ "uniqueConstraints": {},
108
+ "policies": {},
109
+ "checkConstraints": {},
110
+ "isRLSEnabled": false
111
+ },
112
+ "public.junior_conversation_messages": {
113
+ "name": "junior_conversation_messages",
114
+ "schema": "",
115
+ "columns": {
116
+ "conversation_id": {
117
+ "name": "conversation_id",
118
+ "type": "text",
119
+ "primaryKey": false,
120
+ "notNull": true
121
+ },
122
+ "message_id": {
123
+ "name": "message_id",
124
+ "type": "text",
125
+ "primaryKey": false,
126
+ "notNull": true
127
+ },
128
+ "role": {
129
+ "name": "role",
130
+ "type": "text",
131
+ "primaryKey": false,
132
+ "notNull": true
133
+ },
134
+ "author_identity_id": {
135
+ "name": "author_identity_id",
136
+ "type": "text",
137
+ "primaryKey": false,
138
+ "notNull": false
139
+ },
140
+ "text": {
141
+ "name": "text",
142
+ "type": "text",
143
+ "primaryKey": false,
144
+ "notNull": true
145
+ },
146
+ "meta": {
147
+ "name": "meta",
148
+ "type": "jsonb",
149
+ "primaryKey": false,
150
+ "notNull": false
151
+ },
152
+ "replied_at": {
153
+ "name": "replied_at",
154
+ "type": "timestamp with time zone",
155
+ "primaryKey": false,
156
+ "notNull": false
157
+ },
158
+ "created_at": {
159
+ "name": "created_at",
160
+ "type": "timestamp with time zone",
161
+ "primaryKey": false,
162
+ "notNull": true
163
+ }
164
+ },
165
+ "indexes": {
166
+ "junior_conversation_messages_activity_idx": {
167
+ "name": "junior_conversation_messages_activity_idx",
168
+ "columns": [
169
+ {
170
+ "expression": "conversation_id",
171
+ "isExpression": false,
172
+ "asc": true,
173
+ "nulls": "last"
174
+ },
175
+ {
176
+ "expression": "created_at",
177
+ "isExpression": false,
178
+ "asc": true,
179
+ "nulls": "last"
180
+ }
181
+ ],
182
+ "isUnique": false,
183
+ "concurrently": false,
184
+ "method": "btree",
185
+ "with": {}
186
+ },
187
+ "junior_conversation_messages_search_idx": {
188
+ "name": "junior_conversation_messages_search_idx",
189
+ "columns": [
190
+ {
191
+ "expression": "to_tsvector('english', \"text\")",
192
+ "asc": true,
193
+ "isExpression": true,
194
+ "nulls": "last"
195
+ }
196
+ ],
197
+ "isUnique": false,
198
+ "concurrently": false,
199
+ "method": "gin",
200
+ "with": {}
201
+ }
202
+ },
203
+ "foreignKeys": {
204
+ "junior_conversation_messages_conversation_id_junior_conversations_conversation_id_fk": {
205
+ "name": "junior_conversation_messages_conversation_id_junior_conversations_conversation_id_fk",
206
+ "tableFrom": "junior_conversation_messages",
207
+ "tableTo": "junior_conversations",
208
+ "columnsFrom": [
209
+ "conversation_id"
210
+ ],
211
+ "columnsTo": [
212
+ "conversation_id"
213
+ ],
214
+ "onDelete": "no action",
215
+ "onUpdate": "no action"
216
+ },
217
+ "junior_conversation_messages_author_identity_id_junior_identities_id_fk": {
218
+ "name": "junior_conversation_messages_author_identity_id_junior_identities_id_fk",
219
+ "tableFrom": "junior_conversation_messages",
220
+ "tableTo": "junior_identities",
221
+ "columnsFrom": [
222
+ "author_identity_id"
223
+ ],
224
+ "columnsTo": [
225
+ "id"
226
+ ],
227
+ "onDelete": "no action",
228
+ "onUpdate": "no action"
229
+ }
230
+ },
231
+ "compositePrimaryKeys": {
232
+ "junior_conversation_messages_conversation_id_message_id_pk": {
233
+ "name": "junior_conversation_messages_conversation_id_message_id_pk",
234
+ "columns": [
235
+ "conversation_id",
236
+ "message_id"
237
+ ]
238
+ }
239
+ },
240
+ "uniqueConstraints": {},
241
+ "policies": {},
242
+ "checkConstraints": {},
243
+ "isRLSEnabled": false
244
+ },
245
+ "public.junior_conversations": {
246
+ "name": "junior_conversations",
247
+ "schema": "",
248
+ "columns": {
249
+ "conversation_id": {
250
+ "name": "conversation_id",
251
+ "type": "text",
252
+ "primaryKey": true,
253
+ "notNull": true
254
+ },
255
+ "schema_version": {
256
+ "name": "schema_version",
257
+ "type": "integer",
258
+ "primaryKey": false,
259
+ "notNull": true,
260
+ "default": 1
261
+ },
262
+ "source": {
263
+ "name": "source",
264
+ "type": "text",
265
+ "primaryKey": false,
266
+ "notNull": false
267
+ },
268
+ "origin_type": {
269
+ "name": "origin_type",
270
+ "type": "text",
271
+ "primaryKey": false,
272
+ "notNull": false
273
+ },
274
+ "origin_id": {
275
+ "name": "origin_id",
276
+ "type": "text",
277
+ "primaryKey": false,
278
+ "notNull": false
279
+ },
280
+ "origin_run_id": {
281
+ "name": "origin_run_id",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": false
285
+ },
286
+ "destination_id": {
287
+ "name": "destination_id",
288
+ "type": "text",
289
+ "primaryKey": false,
290
+ "notNull": false
291
+ },
292
+ "destination_json": {
293
+ "name": "destination_json",
294
+ "type": "jsonb",
295
+ "primaryKey": false,
296
+ "notNull": false
297
+ },
298
+ "actor_identity_id": {
299
+ "name": "actor_identity_id",
300
+ "type": "text",
301
+ "primaryKey": false,
302
+ "notNull": false
303
+ },
304
+ "creator_identity_id": {
305
+ "name": "creator_identity_id",
306
+ "type": "text",
307
+ "primaryKey": false,
308
+ "notNull": false
309
+ },
310
+ "credential_subject_identity_id": {
311
+ "name": "credential_subject_identity_id",
312
+ "type": "text",
313
+ "primaryKey": false,
314
+ "notNull": false
315
+ },
316
+ "actor_json": {
317
+ "name": "actor_json",
318
+ "type": "jsonb",
319
+ "primaryKey": false,
320
+ "notNull": false
321
+ },
322
+ "channel_name": {
323
+ "name": "channel_name",
324
+ "type": "text",
325
+ "primaryKey": false,
326
+ "notNull": false
327
+ },
328
+ "title": {
329
+ "name": "title",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": false
333
+ },
334
+ "created_at": {
335
+ "name": "created_at",
336
+ "type": "timestamp with time zone",
337
+ "primaryKey": false,
338
+ "notNull": true
339
+ },
340
+ "last_activity_at": {
341
+ "name": "last_activity_at",
342
+ "type": "timestamp with time zone",
343
+ "primaryKey": false,
344
+ "notNull": true
345
+ },
346
+ "updated_at": {
347
+ "name": "updated_at",
348
+ "type": "timestamp with time zone",
349
+ "primaryKey": false,
350
+ "notNull": true
351
+ },
352
+ "execution_updated_at": {
353
+ "name": "execution_updated_at",
354
+ "type": "timestamp with time zone",
355
+ "primaryKey": false,
356
+ "notNull": false
357
+ },
358
+ "execution_status": {
359
+ "name": "execution_status",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": true
363
+ },
364
+ "run_id": {
365
+ "name": "run_id",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": false
369
+ },
370
+ "last_checkpoint_at": {
371
+ "name": "last_checkpoint_at",
372
+ "type": "timestamp with time zone",
373
+ "primaryKey": false,
374
+ "notNull": false
375
+ },
376
+ "last_enqueued_at": {
377
+ "name": "last_enqueued_at",
378
+ "type": "timestamp with time zone",
379
+ "primaryKey": false,
380
+ "notNull": false
381
+ },
382
+ "parent_conversation_id": {
383
+ "name": "parent_conversation_id",
384
+ "type": "text",
385
+ "primaryKey": false,
386
+ "notNull": false
387
+ },
388
+ "transcript_purged_at": {
389
+ "name": "transcript_purged_at",
390
+ "type": "timestamp with time zone",
391
+ "primaryKey": false,
392
+ "notNull": false
393
+ },
394
+ "duration_ms": {
395
+ "name": "duration_ms",
396
+ "type": "integer",
397
+ "primaryKey": false,
398
+ "notNull": true,
399
+ "default": 0
400
+ },
401
+ "usage_json": {
402
+ "name": "usage_json",
403
+ "type": "jsonb",
404
+ "primaryKey": false,
405
+ "notNull": false
406
+ },
407
+ "metric_run_id": {
408
+ "name": "metric_run_id",
409
+ "type": "text",
410
+ "primaryKey": false,
411
+ "notNull": false
412
+ },
413
+ "execution_duration_ms": {
414
+ "name": "execution_duration_ms",
415
+ "type": "integer",
416
+ "primaryKey": false,
417
+ "notNull": true,
418
+ "default": 0
419
+ },
420
+ "execution_usage_json": {
421
+ "name": "execution_usage_json",
422
+ "type": "jsonb",
423
+ "primaryKey": false,
424
+ "notNull": false
425
+ }
426
+ },
427
+ "indexes": {
428
+ "junior_conversations_last_activity_idx": {
429
+ "name": "junior_conversations_last_activity_idx",
430
+ "columns": [
431
+ {
432
+ "expression": "last_activity_at",
433
+ "isExpression": false,
434
+ "asc": false,
435
+ "nulls": "last"
436
+ },
437
+ {
438
+ "expression": "conversation_id",
439
+ "isExpression": false,
440
+ "asc": true,
441
+ "nulls": "last"
442
+ }
443
+ ],
444
+ "isUnique": false,
445
+ "concurrently": false,
446
+ "method": "btree",
447
+ "with": {}
448
+ },
449
+ "junior_conversations_active_idx": {
450
+ "name": "junior_conversations_active_idx",
451
+ "columns": [
452
+ {
453
+ "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
454
+ "asc": true,
455
+ "isExpression": true,
456
+ "nulls": "last"
457
+ },
458
+ {
459
+ "expression": "conversation_id",
460
+ "isExpression": false,
461
+ "asc": true,
462
+ "nulls": "last"
463
+ }
464
+ ],
465
+ "isUnique": false,
466
+ "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
467
+ "concurrently": false,
468
+ "method": "btree",
469
+ "with": {}
470
+ },
471
+ "junior_conversations_destination_activity_idx": {
472
+ "name": "junior_conversations_destination_activity_idx",
473
+ "columns": [
474
+ {
475
+ "expression": "destination_id",
476
+ "isExpression": false,
477
+ "asc": true,
478
+ "nulls": "last"
479
+ },
480
+ {
481
+ "expression": "last_activity_at",
482
+ "isExpression": false,
483
+ "asc": false,
484
+ "nulls": "last"
485
+ }
486
+ ],
487
+ "isUnique": false,
488
+ "concurrently": false,
489
+ "method": "btree",
490
+ "with": {}
491
+ },
492
+ "junior_conversations_actor_activity_idx": {
493
+ "name": "junior_conversations_actor_activity_idx",
494
+ "columns": [
495
+ {
496
+ "expression": "actor_identity_id",
497
+ "isExpression": false,
498
+ "asc": true,
499
+ "nulls": "last"
500
+ },
501
+ {
502
+ "expression": "last_activity_at",
503
+ "isExpression": false,
504
+ "asc": false,
505
+ "nulls": "last"
506
+ }
507
+ ],
508
+ "isUnique": false,
509
+ "concurrently": false,
510
+ "method": "btree",
511
+ "with": {}
512
+ },
513
+ "junior_conversations_origin_idx": {
514
+ "name": "junior_conversations_origin_idx",
515
+ "columns": [
516
+ {
517
+ "expression": "origin_type",
518
+ "isExpression": false,
519
+ "asc": true,
520
+ "nulls": "last"
521
+ },
522
+ {
523
+ "expression": "origin_id",
524
+ "isExpression": false,
525
+ "asc": true,
526
+ "nulls": "last"
527
+ },
528
+ {
529
+ "expression": "last_activity_at",
530
+ "isExpression": false,
531
+ "asc": false,
532
+ "nulls": "last"
533
+ }
534
+ ],
535
+ "isUnique": false,
536
+ "concurrently": false,
537
+ "method": "btree",
538
+ "with": {}
539
+ },
540
+ "junior_conversations_parent_idx": {
541
+ "name": "junior_conversations_parent_idx",
542
+ "columns": [
543
+ {
544
+ "expression": "parent_conversation_id",
545
+ "isExpression": false,
546
+ "asc": true,
547
+ "nulls": "last"
548
+ }
549
+ ],
550
+ "isUnique": false,
551
+ "concurrently": false,
552
+ "method": "btree",
553
+ "with": {}
554
+ }
555
+ },
556
+ "foreignKeys": {
557
+ "junior_conversations_destination_id_junior_destinations_id_fk": {
558
+ "name": "junior_conversations_destination_id_junior_destinations_id_fk",
559
+ "tableFrom": "junior_conversations",
560
+ "tableTo": "junior_destinations",
561
+ "columnsFrom": [
562
+ "destination_id"
563
+ ],
564
+ "columnsTo": [
565
+ "id"
566
+ ],
567
+ "onDelete": "no action",
568
+ "onUpdate": "no action"
569
+ },
570
+ "junior_conversations_actor_identity_id_junior_identities_id_fk": {
571
+ "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
572
+ "tableFrom": "junior_conversations",
573
+ "tableTo": "junior_identities",
574
+ "columnsFrom": [
575
+ "actor_identity_id"
576
+ ],
577
+ "columnsTo": [
578
+ "id"
579
+ ],
580
+ "onDelete": "no action",
581
+ "onUpdate": "no action"
582
+ },
583
+ "junior_conversations_creator_identity_id_junior_identities_id_fk": {
584
+ "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
585
+ "tableFrom": "junior_conversations",
586
+ "tableTo": "junior_identities",
587
+ "columnsFrom": [
588
+ "creator_identity_id"
589
+ ],
590
+ "columnsTo": [
591
+ "id"
592
+ ],
593
+ "onDelete": "no action",
594
+ "onUpdate": "no action"
595
+ },
596
+ "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
597
+ "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
598
+ "tableFrom": "junior_conversations",
599
+ "tableTo": "junior_identities",
600
+ "columnsFrom": [
601
+ "credential_subject_identity_id"
602
+ ],
603
+ "columnsTo": [
604
+ "id"
605
+ ],
606
+ "onDelete": "no action",
607
+ "onUpdate": "no action"
608
+ },
609
+ "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
610
+ "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
611
+ "tableFrom": "junior_conversations",
612
+ "tableTo": "junior_conversations",
613
+ "columnsFrom": [
614
+ "parent_conversation_id"
615
+ ],
616
+ "columnsTo": [
617
+ "conversation_id"
618
+ ],
619
+ "onDelete": "no action",
620
+ "onUpdate": "no action"
621
+ }
622
+ },
623
+ "compositePrimaryKeys": {},
624
+ "uniqueConstraints": {},
625
+ "policies": {},
626
+ "checkConstraints": {},
627
+ "isRLSEnabled": false
628
+ },
629
+ "public.junior_destinations": {
630
+ "name": "junior_destinations",
631
+ "schema": "",
632
+ "columns": {
633
+ "id": {
634
+ "name": "id",
635
+ "type": "text",
636
+ "primaryKey": true,
637
+ "notNull": true
638
+ },
639
+ "provider": {
640
+ "name": "provider",
641
+ "type": "text",
642
+ "primaryKey": false,
643
+ "notNull": true
644
+ },
645
+ "provider_tenant_id": {
646
+ "name": "provider_tenant_id",
647
+ "type": "text",
648
+ "primaryKey": false,
649
+ "notNull": true,
650
+ "default": "''"
651
+ },
652
+ "provider_destination_id": {
653
+ "name": "provider_destination_id",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": true
657
+ },
658
+ "kind": {
659
+ "name": "kind",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": true
663
+ },
664
+ "parent_destination_id": {
665
+ "name": "parent_destination_id",
666
+ "type": "text",
667
+ "primaryKey": false,
668
+ "notNull": false
669
+ },
670
+ "display_name": {
671
+ "name": "display_name",
672
+ "type": "text",
673
+ "primaryKey": false,
674
+ "notNull": false
675
+ },
676
+ "visibility": {
677
+ "name": "visibility",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": true,
681
+ "default": "'unknown'"
682
+ },
683
+ "metadata_json": {
684
+ "name": "metadata_json",
685
+ "type": "jsonb",
686
+ "primaryKey": false,
687
+ "notNull": false
688
+ },
689
+ "created_at": {
690
+ "name": "created_at",
691
+ "type": "timestamp with time zone",
692
+ "primaryKey": false,
693
+ "notNull": true
694
+ },
695
+ "updated_at": {
696
+ "name": "updated_at",
697
+ "type": "timestamp with time zone",
698
+ "primaryKey": false,
699
+ "notNull": true
700
+ }
701
+ },
702
+ "indexes": {
703
+ "junior_destinations_provider_destination_uidx": {
704
+ "name": "junior_destinations_provider_destination_uidx",
705
+ "columns": [
706
+ {
707
+ "expression": "provider",
708
+ "isExpression": false,
709
+ "asc": true,
710
+ "nulls": "last"
711
+ },
712
+ {
713
+ "expression": "provider_tenant_id",
714
+ "isExpression": false,
715
+ "asc": true,
716
+ "nulls": "last"
717
+ },
718
+ {
719
+ "expression": "provider_destination_id",
720
+ "isExpression": false,
721
+ "asc": true,
722
+ "nulls": "last"
723
+ }
724
+ ],
725
+ "isUnique": true,
726
+ "concurrently": false,
727
+ "method": "btree",
728
+ "with": {}
729
+ },
730
+ "junior_destinations_provider_kind_idx": {
731
+ "name": "junior_destinations_provider_kind_idx",
732
+ "columns": [
733
+ {
734
+ "expression": "provider",
735
+ "isExpression": false,
736
+ "asc": true,
737
+ "nulls": "last"
738
+ },
739
+ {
740
+ "expression": "kind",
741
+ "isExpression": false,
742
+ "asc": true,
743
+ "nulls": "last"
744
+ }
745
+ ],
746
+ "isUnique": false,
747
+ "concurrently": false,
748
+ "method": "btree",
749
+ "with": {}
750
+ }
751
+ },
752
+ "foreignKeys": {},
753
+ "compositePrimaryKeys": {},
754
+ "uniqueConstraints": {},
755
+ "policies": {},
756
+ "checkConstraints": {},
757
+ "isRLSEnabled": false
758
+ },
759
+ "public.junior_identities": {
760
+ "name": "junior_identities",
761
+ "schema": "",
762
+ "columns": {
763
+ "id": {
764
+ "name": "id",
765
+ "type": "text",
766
+ "primaryKey": true,
767
+ "notNull": true
768
+ },
769
+ "kind": {
770
+ "name": "kind",
771
+ "type": "text",
772
+ "primaryKey": false,
773
+ "notNull": true
774
+ },
775
+ "provider": {
776
+ "name": "provider",
777
+ "type": "text",
778
+ "primaryKey": false,
779
+ "notNull": true
780
+ },
781
+ "provider_tenant_id": {
782
+ "name": "provider_tenant_id",
783
+ "type": "text",
784
+ "primaryKey": false,
785
+ "notNull": true,
786
+ "default": "''"
787
+ },
788
+ "provider_subject_id": {
789
+ "name": "provider_subject_id",
790
+ "type": "text",
791
+ "primaryKey": false,
792
+ "notNull": true
793
+ },
794
+ "display_name": {
795
+ "name": "display_name",
796
+ "type": "text",
797
+ "primaryKey": false,
798
+ "notNull": false
799
+ },
800
+ "handle": {
801
+ "name": "handle",
802
+ "type": "text",
803
+ "primaryKey": false,
804
+ "notNull": false
805
+ },
806
+ "email": {
807
+ "name": "email",
808
+ "type": "text",
809
+ "primaryKey": false,
810
+ "notNull": false
811
+ },
812
+ "avatar_url": {
813
+ "name": "avatar_url",
814
+ "type": "text",
815
+ "primaryKey": false,
816
+ "notNull": false
817
+ },
818
+ "metadata_json": {
819
+ "name": "metadata_json",
820
+ "type": "jsonb",
821
+ "primaryKey": false,
822
+ "notNull": false
823
+ },
824
+ "created_at": {
825
+ "name": "created_at",
826
+ "type": "timestamp with time zone",
827
+ "primaryKey": false,
828
+ "notNull": true
829
+ },
830
+ "updated_at": {
831
+ "name": "updated_at",
832
+ "type": "timestamp with time zone",
833
+ "primaryKey": false,
834
+ "notNull": true
835
+ },
836
+ "user_id": {
837
+ "name": "user_id",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": false
841
+ },
842
+ "email_normalized": {
843
+ "name": "email_normalized",
844
+ "type": "text",
845
+ "primaryKey": false,
846
+ "notNull": false
847
+ },
848
+ "email_verified": {
849
+ "name": "email_verified",
850
+ "type": "boolean",
851
+ "primaryKey": false,
852
+ "notNull": true,
853
+ "default": false
854
+ }
855
+ },
856
+ "indexes": {
857
+ "junior_identities_provider_subject_uidx": {
858
+ "name": "junior_identities_provider_subject_uidx",
859
+ "columns": [
860
+ {
861
+ "expression": "provider",
862
+ "isExpression": false,
863
+ "asc": true,
864
+ "nulls": "last"
865
+ },
866
+ {
867
+ "expression": "provider_tenant_id",
868
+ "isExpression": false,
869
+ "asc": true,
870
+ "nulls": "last"
871
+ },
872
+ {
873
+ "expression": "provider_subject_id",
874
+ "isExpression": false,
875
+ "asc": true,
876
+ "nulls": "last"
877
+ }
878
+ ],
879
+ "isUnique": true,
880
+ "concurrently": false,
881
+ "method": "btree",
882
+ "with": {}
883
+ },
884
+ "junior_identities_user_idx": {
885
+ "name": "junior_identities_user_idx",
886
+ "columns": [
887
+ {
888
+ "expression": "user_id",
889
+ "isExpression": false,
890
+ "asc": true,
891
+ "nulls": "last"
892
+ }
893
+ ],
894
+ "isUnique": false,
895
+ "concurrently": false,
896
+ "method": "btree",
897
+ "with": {}
898
+ },
899
+ "junior_identities_verified_email_idx": {
900
+ "name": "junior_identities_verified_email_idx",
901
+ "columns": [
902
+ {
903
+ "expression": "email_normalized",
904
+ "isExpression": false,
905
+ "asc": true,
906
+ "nulls": "last"
907
+ }
908
+ ],
909
+ "isUnique": false,
910
+ "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
911
+ "concurrently": false,
912
+ "method": "btree",
913
+ "with": {}
914
+ },
915
+ "junior_identities_kind_provider_idx": {
916
+ "name": "junior_identities_kind_provider_idx",
917
+ "columns": [
918
+ {
919
+ "expression": "kind",
920
+ "isExpression": false,
921
+ "asc": true,
922
+ "nulls": "last"
923
+ },
924
+ {
925
+ "expression": "provider",
926
+ "isExpression": false,
927
+ "asc": true,
928
+ "nulls": "last"
929
+ }
930
+ ],
931
+ "isUnique": false,
932
+ "concurrently": false,
933
+ "method": "btree",
934
+ "with": {}
935
+ }
936
+ },
937
+ "foreignKeys": {
938
+ "junior_identities_user_id_junior_users_id_fk": {
939
+ "name": "junior_identities_user_id_junior_users_id_fk",
940
+ "tableFrom": "junior_identities",
941
+ "tableTo": "junior_users",
942
+ "columnsFrom": [
943
+ "user_id"
944
+ ],
945
+ "columnsTo": [
946
+ "id"
947
+ ],
948
+ "onDelete": "no action",
949
+ "onUpdate": "no action"
950
+ }
951
+ },
952
+ "compositePrimaryKeys": {},
953
+ "uniqueConstraints": {},
954
+ "policies": {},
955
+ "checkConstraints": {},
956
+ "isRLSEnabled": false
957
+ },
958
+ "public.junior_users": {
959
+ "name": "junior_users",
960
+ "schema": "",
961
+ "columns": {
962
+ "id": {
963
+ "name": "id",
964
+ "type": "text",
965
+ "primaryKey": true,
966
+ "notNull": true
967
+ },
968
+ "primary_email": {
969
+ "name": "primary_email",
970
+ "type": "text",
971
+ "primaryKey": false,
972
+ "notNull": true
973
+ },
974
+ "primary_email_normalized": {
975
+ "name": "primary_email_normalized",
976
+ "type": "text",
977
+ "primaryKey": false,
978
+ "notNull": true
979
+ },
980
+ "display_name": {
981
+ "name": "display_name",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": false
985
+ },
986
+ "created_at": {
987
+ "name": "created_at",
988
+ "type": "timestamp with time zone",
989
+ "primaryKey": false,
990
+ "notNull": true
991
+ },
992
+ "updated_at": {
993
+ "name": "updated_at",
994
+ "type": "timestamp with time zone",
995
+ "primaryKey": false,
996
+ "notNull": true
997
+ }
998
+ },
999
+ "indexes": {
1000
+ "junior_users_primary_email_normalized_uidx": {
1001
+ "name": "junior_users_primary_email_normalized_uidx",
1002
+ "columns": [
1003
+ {
1004
+ "expression": "primary_email_normalized",
1005
+ "isExpression": false,
1006
+ "asc": true,
1007
+ "nulls": "last"
1008
+ }
1009
+ ],
1010
+ "isUnique": true,
1011
+ "concurrently": false,
1012
+ "method": "btree",
1013
+ "with": {}
1014
+ }
1015
+ },
1016
+ "foreignKeys": {},
1017
+ "compositePrimaryKeys": {},
1018
+ "uniqueConstraints": {},
1019
+ "policies": {},
1020
+ "checkConstraints": {},
1021
+ "isRLSEnabled": false
1022
+ }
1023
+ },
1024
+ "enums": {},
1025
+ "schemas": {},
1026
+ "sequences": {},
1027
+ "roles": {},
1028
+ "policies": {},
1029
+ "views": {},
1030
+ "_meta": {
1031
+ "columns": {},
1032
+ "schemas": {},
1033
+ "tables": {}
1034
+ }
1035
+ }