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