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