@sentry/junior 0.108.0 → 0.109.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 (62) hide show
  1. package/dist/{agent-hooks-NU5HK3PS.js → agent-hooks-FHHVLNPA.js} +12 -12
  2. package/dist/api/conversations/events.d.ts +1 -1
  3. package/dist/api/conversations/schema.d.ts +57 -6
  4. package/dist/api/schema.js +1 -1
  5. package/dist/api.js +108 -22
  6. package/dist/app.d.ts +1 -0
  7. package/dist/app.js +1481 -420
  8. package/dist/{catalog-runtime-FOFNPR3P.js → catalog-runtime-DMGJSLV2.js} +6 -4
  9. package/dist/chat/conversations/sql/store.d.ts +0 -7
  10. package/dist/chat/log-context.d.ts +40 -0
  11. package/dist/chat/logging.d.ts +3 -26
  12. package/dist/chat/runtime/slack-resume.d.ts +2 -2
  13. package/dist/chat/services/turn-session-record.d.ts +0 -2
  14. package/dist/chat/slack/reply.d.ts +7 -19
  15. package/dist/chat/state/conversation.d.ts +1 -0
  16. package/dist/chat/task-execution/slack-work.d.ts +2 -2
  17. package/dist/chunk-3SXUV423.js +10 -0
  18. package/dist/{chunk-3RGQLX2F.js → chunk-72OMGPDS.js} +1010 -26
  19. package/dist/{chunk-2XXEKR44.js → chunk-7Q6WCISF.js} +1 -1
  20. package/dist/{chunk-TE4QHJH4.js → chunk-FENLIFJD.js} +72 -591
  21. package/dist/{chunk-XKB7LGIW.js → chunk-FWJRXN4F.js} +3 -3
  22. package/dist/{chunk-PUAMO4PI.js → chunk-HHVY4SMP.js} +41 -7
  23. package/dist/{chunk-B5I5LMSP.js → chunk-HO5NT6OE.js} +5 -7
  24. package/dist/{chunk-O24R4DCK.js → chunk-ISMWX44P.js} +93 -55
  25. package/dist/{chunk-7FBGKXPE.js → chunk-IVVGFRQQ.js} +5 -0
  26. package/dist/{chunk-KPMPQ6AA.js → chunk-IXKSQGIO.js} +90 -100
  27. package/dist/{chunk-SS67LUOK.js → chunk-JNAVF45E.js} +6 -7
  28. package/dist/{chunk-DY7TRYB5.js → chunk-MGUMR35T.js} +1 -1
  29. package/dist/{chunk-A5CO2EHL.js → chunk-MXW4GL53.js} +11 -15
  30. package/dist/{chunk-RT5BUHR5.js → chunk-O3JMSZLI.js} +1 -1
  31. package/dist/chunk-OCD3OZRK.js +125 -0
  32. package/dist/{chunk-H3QYZL7K.js → chunk-OUHNWH46.js} +28 -3
  33. package/dist/{chunk-VIXFG2VC.js → chunk-PLB7MRCQ.js} +1 -2
  34. package/dist/{chunk-UD6THJ2I.js → chunk-QY636HZU.js} +114 -12
  35. package/dist/{chunk-VH6KWKG2.js → chunk-RGX4V75M.js} +3 -3
  36. package/dist/{chunk-B7PUBQQM.js → chunk-SYAQIR5Z.js} +1 -1
  37. package/dist/chunk-TMBRFULF.js +471 -0
  38. package/dist/{chunk-YIPD3L6L.js → chunk-TT6GMXNA.js} +8 -10
  39. package/dist/{chunk-YT72TOEK.js → chunk-WHMOBKT7.js} +2 -2
  40. package/dist/cli/chat.js +23 -23
  41. package/dist/cli/check.js +8 -6
  42. package/dist/cli/plugins.js +16 -16
  43. package/dist/cli/snapshot-warmup.js +10 -9
  44. package/dist/cli/upgrade.js +314 -3505
  45. package/dist/db/db.d.ts +1 -1
  46. package/dist/{db-AMRBAT5D.js → db-V3NU72O2.js} +8 -6
  47. package/dist/instrumentation.js +3 -2
  48. package/dist/nitro.js +5 -4
  49. package/dist/{runner-TQH5GAJ4.js → runner-JYBCQBLK.js} +17 -20
  50. package/dist/{skills-ITNHBARB.js → skills-U6MDAST7.js} +7 -5
  51. package/dist/{validation-AGQ46ZGV.js → validation-72N3JVRU.js} +7 -5
  52. package/dist/version.d.ts +2 -0
  53. package/dist/version.js +7 -0
  54. package/migrations/0006_drop_legacy_conversation_messages.sql +1 -0
  55. package/migrations/README.md +12 -9
  56. package/migrations/meta/0006_snapshot.json +948 -0
  57. package/migrations/meta/_journal.json +7 -0
  58. package/package.json +9 -5
  59. package/dist/chunk-AHJR2IFF.js +0 -115
  60. package/dist/chunk-G3E7SCME.js +0 -28
  61. package/dist/chunk-J3B3FPP2.js +0 -1061
  62. package/dist/chunk-TWINAEZQ.js +0 -1283
@@ -0,0 +1,948 @@
1
+ {
2
+ "id": "042f162e-cf21-45a1-a760-bb94aa641a1b",
3
+ "prevId": "5bcf5afe-2cc5-497a-a873-08c54ab1dfb0",
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
+ "with": {},
86
+ "method": "btree",
87
+ "concurrently": false
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
+ "with": {},
113
+ "method": "btree",
114
+ "concurrently": false
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
+ "isExpression": true,
122
+ "asc": true,
123
+ "nulls": "last"
124
+ }
125
+ ],
126
+ "isUnique": false,
127
+ "with": {},
128
+ "method": "gin",
129
+ "where": "\"junior_conversation_events\".\"type\" = 'message'",
130
+ "concurrently": false
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
+ "with": {},
150
+ "method": "btree",
151
+ "concurrently": false
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
+ "columnsFrom": ["conversation_id"],
159
+ "tableTo": "junior_conversations",
160
+ "columnsTo": ["conversation_id"],
161
+ "onUpdate": "no action",
162
+ "onDelete": "no action"
163
+ }
164
+ },
165
+ "compositePrimaryKeys": {
166
+ "junior_conversation_events_conversation_id_seq_pk": {
167
+ "name": "junior_conversation_events_conversation_id_seq_pk",
168
+ "columns": ["conversation_id", "seq"]
169
+ }
170
+ },
171
+ "uniqueConstraints": {},
172
+ "policies": {},
173
+ "checkConstraints": {},
174
+ "isRLSEnabled": false
175
+ },
176
+ "public.junior_conversations": {
177
+ "name": "junior_conversations",
178
+ "schema": "",
179
+ "columns": {
180
+ "conversation_id": {
181
+ "name": "conversation_id",
182
+ "type": "text",
183
+ "primaryKey": true,
184
+ "notNull": true
185
+ },
186
+ "schema_version": {
187
+ "name": "schema_version",
188
+ "type": "integer",
189
+ "primaryKey": false,
190
+ "notNull": true,
191
+ "default": 1
192
+ },
193
+ "source": {
194
+ "name": "source",
195
+ "type": "text",
196
+ "primaryKey": false,
197
+ "notNull": false
198
+ },
199
+ "origin_type": {
200
+ "name": "origin_type",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": false
204
+ },
205
+ "origin_id": {
206
+ "name": "origin_id",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": false
210
+ },
211
+ "origin_run_id": {
212
+ "name": "origin_run_id",
213
+ "type": "text",
214
+ "primaryKey": false,
215
+ "notNull": false
216
+ },
217
+ "destination_id": {
218
+ "name": "destination_id",
219
+ "type": "text",
220
+ "primaryKey": false,
221
+ "notNull": false
222
+ },
223
+ "destination_json": {
224
+ "name": "destination_json",
225
+ "type": "jsonb",
226
+ "primaryKey": false,
227
+ "notNull": false
228
+ },
229
+ "actor_identity_id": {
230
+ "name": "actor_identity_id",
231
+ "type": "text",
232
+ "primaryKey": false,
233
+ "notNull": false
234
+ },
235
+ "creator_identity_id": {
236
+ "name": "creator_identity_id",
237
+ "type": "text",
238
+ "primaryKey": false,
239
+ "notNull": false
240
+ },
241
+ "credential_subject_identity_id": {
242
+ "name": "credential_subject_identity_id",
243
+ "type": "text",
244
+ "primaryKey": false,
245
+ "notNull": false
246
+ },
247
+ "actor_json": {
248
+ "name": "actor_json",
249
+ "type": "jsonb",
250
+ "primaryKey": false,
251
+ "notNull": false
252
+ },
253
+ "channel_name": {
254
+ "name": "channel_name",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": false
258
+ },
259
+ "title": {
260
+ "name": "title",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": false
264
+ },
265
+ "created_at": {
266
+ "name": "created_at",
267
+ "type": "timestamp with time zone",
268
+ "primaryKey": false,
269
+ "notNull": true
270
+ },
271
+ "last_activity_at": {
272
+ "name": "last_activity_at",
273
+ "type": "timestamp with time zone",
274
+ "primaryKey": false,
275
+ "notNull": true
276
+ },
277
+ "updated_at": {
278
+ "name": "updated_at",
279
+ "type": "timestamp with time zone",
280
+ "primaryKey": false,
281
+ "notNull": true
282
+ },
283
+ "execution_updated_at": {
284
+ "name": "execution_updated_at",
285
+ "type": "timestamp with time zone",
286
+ "primaryKey": false,
287
+ "notNull": false
288
+ },
289
+ "execution_status": {
290
+ "name": "execution_status",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": true
294
+ },
295
+ "run_id": {
296
+ "name": "run_id",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": false
300
+ },
301
+ "last_checkpoint_at": {
302
+ "name": "last_checkpoint_at",
303
+ "type": "timestamp with time zone",
304
+ "primaryKey": false,
305
+ "notNull": false
306
+ },
307
+ "last_enqueued_at": {
308
+ "name": "last_enqueued_at",
309
+ "type": "timestamp with time zone",
310
+ "primaryKey": false,
311
+ "notNull": false
312
+ },
313
+ "parent_conversation_id": {
314
+ "name": "parent_conversation_id",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": false
318
+ },
319
+ "transcript_purged_at": {
320
+ "name": "transcript_purged_at",
321
+ "type": "timestamp with time zone",
322
+ "primaryKey": false,
323
+ "notNull": false
324
+ },
325
+ "duration_ms": {
326
+ "name": "duration_ms",
327
+ "type": "integer",
328
+ "primaryKey": false,
329
+ "notNull": true,
330
+ "default": 0
331
+ },
332
+ "usage_json": {
333
+ "name": "usage_json",
334
+ "type": "jsonb",
335
+ "primaryKey": false,
336
+ "notNull": false
337
+ },
338
+ "execution_duration_ms": {
339
+ "name": "execution_duration_ms",
340
+ "type": "integer",
341
+ "primaryKey": false,
342
+ "notNull": true,
343
+ "default": 0
344
+ },
345
+ "execution_usage_json": {
346
+ "name": "execution_usage_json",
347
+ "type": "jsonb",
348
+ "primaryKey": false,
349
+ "notNull": false
350
+ },
351
+ "metric_run_id": {
352
+ "name": "metric_run_id",
353
+ "type": "text",
354
+ "primaryKey": false,
355
+ "notNull": false
356
+ },
357
+ "archived_at": {
358
+ "name": "archived_at",
359
+ "type": "timestamp with time zone",
360
+ "primaryKey": false,
361
+ "notNull": false
362
+ }
363
+ },
364
+ "indexes": {
365
+ "junior_conversations_last_activity_idx": {
366
+ "name": "junior_conversations_last_activity_idx",
367
+ "columns": [
368
+ {
369
+ "expression": "last_activity_at",
370
+ "isExpression": false,
371
+ "asc": false,
372
+ "nulls": "last"
373
+ },
374
+ {
375
+ "expression": "conversation_id",
376
+ "isExpression": false,
377
+ "asc": true,
378
+ "nulls": "last"
379
+ }
380
+ ],
381
+ "isUnique": false,
382
+ "with": {},
383
+ "method": "btree",
384
+ "concurrently": false
385
+ },
386
+ "junior_conversations_active_idx": {
387
+ "name": "junior_conversations_active_idx",
388
+ "columns": [
389
+ {
390
+ "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
391
+ "isExpression": true,
392
+ "asc": true,
393
+ "nulls": "last"
394
+ },
395
+ {
396
+ "expression": "conversation_id",
397
+ "isExpression": false,
398
+ "asc": true,
399
+ "nulls": "last"
400
+ }
401
+ ],
402
+ "isUnique": false,
403
+ "with": {},
404
+ "method": "btree",
405
+ "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
406
+ "concurrently": false
407
+ },
408
+ "junior_conversations_destination_activity_idx": {
409
+ "name": "junior_conversations_destination_activity_idx",
410
+ "columns": [
411
+ {
412
+ "expression": "destination_id",
413
+ "isExpression": false,
414
+ "asc": true,
415
+ "nulls": "last"
416
+ },
417
+ {
418
+ "expression": "last_activity_at",
419
+ "isExpression": false,
420
+ "asc": false,
421
+ "nulls": "last"
422
+ }
423
+ ],
424
+ "isUnique": false,
425
+ "with": {},
426
+ "method": "btree",
427
+ "concurrently": false
428
+ },
429
+ "junior_conversations_actor_activity_idx": {
430
+ "name": "junior_conversations_actor_activity_idx",
431
+ "columns": [
432
+ {
433
+ "expression": "actor_identity_id",
434
+ "isExpression": false,
435
+ "asc": true,
436
+ "nulls": "last"
437
+ },
438
+ {
439
+ "expression": "last_activity_at",
440
+ "isExpression": false,
441
+ "asc": false,
442
+ "nulls": "last"
443
+ }
444
+ ],
445
+ "isUnique": false,
446
+ "with": {},
447
+ "method": "btree",
448
+ "concurrently": false
449
+ },
450
+ "junior_conversations_origin_idx": {
451
+ "name": "junior_conversations_origin_idx",
452
+ "columns": [
453
+ {
454
+ "expression": "origin_type",
455
+ "isExpression": false,
456
+ "asc": true,
457
+ "nulls": "last"
458
+ },
459
+ {
460
+ "expression": "origin_id",
461
+ "isExpression": false,
462
+ "asc": true,
463
+ "nulls": "last"
464
+ },
465
+ {
466
+ "expression": "last_activity_at",
467
+ "isExpression": false,
468
+ "asc": false,
469
+ "nulls": "last"
470
+ }
471
+ ],
472
+ "isUnique": false,
473
+ "with": {},
474
+ "method": "btree",
475
+ "concurrently": false
476
+ },
477
+ "junior_conversations_parent_idx": {
478
+ "name": "junior_conversations_parent_idx",
479
+ "columns": [
480
+ {
481
+ "expression": "parent_conversation_id",
482
+ "isExpression": false,
483
+ "asc": true,
484
+ "nulls": "last"
485
+ }
486
+ ],
487
+ "isUnique": false,
488
+ "with": {},
489
+ "method": "btree",
490
+ "concurrently": false
491
+ }
492
+ },
493
+ "foreignKeys": {
494
+ "junior_conversations_destination_id_junior_destinations_id_fk": {
495
+ "name": "junior_conversations_destination_id_junior_destinations_id_fk",
496
+ "tableFrom": "junior_conversations",
497
+ "columnsFrom": ["destination_id"],
498
+ "tableTo": "junior_destinations",
499
+ "columnsTo": ["id"],
500
+ "onUpdate": "no action",
501
+ "onDelete": "no action"
502
+ },
503
+ "junior_conversations_actor_identity_id_junior_identities_id_fk": {
504
+ "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
505
+ "tableFrom": "junior_conversations",
506
+ "columnsFrom": ["actor_identity_id"],
507
+ "tableTo": "junior_identities",
508
+ "columnsTo": ["id"],
509
+ "onUpdate": "no action",
510
+ "onDelete": "no action"
511
+ },
512
+ "junior_conversations_creator_identity_id_junior_identities_id_fk": {
513
+ "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
514
+ "tableFrom": "junior_conversations",
515
+ "columnsFrom": ["creator_identity_id"],
516
+ "tableTo": "junior_identities",
517
+ "columnsTo": ["id"],
518
+ "onUpdate": "no action",
519
+ "onDelete": "no action"
520
+ },
521
+ "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
522
+ "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
523
+ "tableFrom": "junior_conversations",
524
+ "columnsFrom": ["credential_subject_identity_id"],
525
+ "tableTo": "junior_identities",
526
+ "columnsTo": ["id"],
527
+ "onUpdate": "no action",
528
+ "onDelete": "no action"
529
+ },
530
+ "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
531
+ "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
532
+ "tableFrom": "junior_conversations",
533
+ "columnsFrom": ["parent_conversation_id"],
534
+ "tableTo": "junior_conversations",
535
+ "columnsTo": ["conversation_id"],
536
+ "onUpdate": "no action",
537
+ "onDelete": "no action"
538
+ }
539
+ },
540
+ "compositePrimaryKeys": {},
541
+ "uniqueConstraints": {},
542
+ "policies": {},
543
+ "checkConstraints": {},
544
+ "isRLSEnabled": false
545
+ },
546
+ "public.junior_destinations": {
547
+ "name": "junior_destinations",
548
+ "schema": "",
549
+ "columns": {
550
+ "id": {
551
+ "name": "id",
552
+ "type": "text",
553
+ "primaryKey": true,
554
+ "notNull": true
555
+ },
556
+ "provider": {
557
+ "name": "provider",
558
+ "type": "text",
559
+ "primaryKey": false,
560
+ "notNull": true
561
+ },
562
+ "provider_tenant_id": {
563
+ "name": "provider_tenant_id",
564
+ "type": "text",
565
+ "primaryKey": false,
566
+ "notNull": true,
567
+ "default": "''"
568
+ },
569
+ "provider_destination_id": {
570
+ "name": "provider_destination_id",
571
+ "type": "text",
572
+ "primaryKey": false,
573
+ "notNull": true
574
+ },
575
+ "kind": {
576
+ "name": "kind",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": true
580
+ },
581
+ "parent_destination_id": {
582
+ "name": "parent_destination_id",
583
+ "type": "text",
584
+ "primaryKey": false,
585
+ "notNull": false
586
+ },
587
+ "display_name": {
588
+ "name": "display_name",
589
+ "type": "text",
590
+ "primaryKey": false,
591
+ "notNull": false
592
+ },
593
+ "visibility": {
594
+ "name": "visibility",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": true,
598
+ "default": "'unknown'"
599
+ },
600
+ "metadata_json": {
601
+ "name": "metadata_json",
602
+ "type": "jsonb",
603
+ "primaryKey": false,
604
+ "notNull": false
605
+ },
606
+ "created_at": {
607
+ "name": "created_at",
608
+ "type": "timestamp with time zone",
609
+ "primaryKey": false,
610
+ "notNull": true
611
+ },
612
+ "updated_at": {
613
+ "name": "updated_at",
614
+ "type": "timestamp with time zone",
615
+ "primaryKey": false,
616
+ "notNull": true
617
+ }
618
+ },
619
+ "indexes": {
620
+ "junior_destinations_provider_destination_uidx": {
621
+ "name": "junior_destinations_provider_destination_uidx",
622
+ "columns": [
623
+ {
624
+ "expression": "provider",
625
+ "isExpression": false,
626
+ "asc": true,
627
+ "nulls": "last"
628
+ },
629
+ {
630
+ "expression": "provider_tenant_id",
631
+ "isExpression": false,
632
+ "asc": true,
633
+ "nulls": "last"
634
+ },
635
+ {
636
+ "expression": "provider_destination_id",
637
+ "isExpression": false,
638
+ "asc": true,
639
+ "nulls": "last"
640
+ }
641
+ ],
642
+ "isUnique": true,
643
+ "with": {},
644
+ "method": "btree",
645
+ "concurrently": false
646
+ },
647
+ "junior_destinations_provider_kind_idx": {
648
+ "name": "junior_destinations_provider_kind_idx",
649
+ "columns": [
650
+ {
651
+ "expression": "provider",
652
+ "isExpression": false,
653
+ "asc": true,
654
+ "nulls": "last"
655
+ },
656
+ {
657
+ "expression": "kind",
658
+ "isExpression": false,
659
+ "asc": true,
660
+ "nulls": "last"
661
+ }
662
+ ],
663
+ "isUnique": false,
664
+ "with": {},
665
+ "method": "btree",
666
+ "concurrently": false
667
+ }
668
+ },
669
+ "foreignKeys": {},
670
+ "compositePrimaryKeys": {},
671
+ "uniqueConstraints": {},
672
+ "policies": {},
673
+ "checkConstraints": {},
674
+ "isRLSEnabled": false
675
+ },
676
+ "public.junior_identities": {
677
+ "name": "junior_identities",
678
+ "schema": "",
679
+ "columns": {
680
+ "id": {
681
+ "name": "id",
682
+ "type": "text",
683
+ "primaryKey": true,
684
+ "notNull": true
685
+ },
686
+ "kind": {
687
+ "name": "kind",
688
+ "type": "text",
689
+ "primaryKey": false,
690
+ "notNull": true
691
+ },
692
+ "provider": {
693
+ "name": "provider",
694
+ "type": "text",
695
+ "primaryKey": false,
696
+ "notNull": true
697
+ },
698
+ "provider_tenant_id": {
699
+ "name": "provider_tenant_id",
700
+ "type": "text",
701
+ "primaryKey": false,
702
+ "notNull": true,
703
+ "default": "''"
704
+ },
705
+ "provider_subject_id": {
706
+ "name": "provider_subject_id",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": true
710
+ },
711
+ "display_name": {
712
+ "name": "display_name",
713
+ "type": "text",
714
+ "primaryKey": false,
715
+ "notNull": false
716
+ },
717
+ "handle": {
718
+ "name": "handle",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": false
722
+ },
723
+ "email": {
724
+ "name": "email",
725
+ "type": "text",
726
+ "primaryKey": false,
727
+ "notNull": false
728
+ },
729
+ "avatar_url": {
730
+ "name": "avatar_url",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": false
734
+ },
735
+ "metadata_json": {
736
+ "name": "metadata_json",
737
+ "type": "jsonb",
738
+ "primaryKey": false,
739
+ "notNull": false
740
+ },
741
+ "created_at": {
742
+ "name": "created_at",
743
+ "type": "timestamp with time zone",
744
+ "primaryKey": false,
745
+ "notNull": true
746
+ },
747
+ "updated_at": {
748
+ "name": "updated_at",
749
+ "type": "timestamp with time zone",
750
+ "primaryKey": false,
751
+ "notNull": true
752
+ },
753
+ "user_id": {
754
+ "name": "user_id",
755
+ "type": "text",
756
+ "primaryKey": false,
757
+ "notNull": false
758
+ },
759
+ "email_normalized": {
760
+ "name": "email_normalized",
761
+ "type": "text",
762
+ "primaryKey": false,
763
+ "notNull": false
764
+ },
765
+ "email_verified": {
766
+ "name": "email_verified",
767
+ "type": "boolean",
768
+ "primaryKey": false,
769
+ "notNull": true,
770
+ "default": false
771
+ }
772
+ },
773
+ "indexes": {
774
+ "junior_identities_provider_subject_uidx": {
775
+ "name": "junior_identities_provider_subject_uidx",
776
+ "columns": [
777
+ {
778
+ "expression": "provider",
779
+ "isExpression": false,
780
+ "asc": true,
781
+ "nulls": "last"
782
+ },
783
+ {
784
+ "expression": "provider_tenant_id",
785
+ "isExpression": false,
786
+ "asc": true,
787
+ "nulls": "last"
788
+ },
789
+ {
790
+ "expression": "provider_subject_id",
791
+ "isExpression": false,
792
+ "asc": true,
793
+ "nulls": "last"
794
+ }
795
+ ],
796
+ "isUnique": true,
797
+ "with": {},
798
+ "method": "btree",
799
+ "concurrently": false
800
+ },
801
+ "junior_identities_user_idx": {
802
+ "name": "junior_identities_user_idx",
803
+ "columns": [
804
+ {
805
+ "expression": "user_id",
806
+ "isExpression": false,
807
+ "asc": true,
808
+ "nulls": "last"
809
+ }
810
+ ],
811
+ "isUnique": false,
812
+ "with": {},
813
+ "method": "btree",
814
+ "concurrently": false
815
+ },
816
+ "junior_identities_verified_email_idx": {
817
+ "name": "junior_identities_verified_email_idx",
818
+ "columns": [
819
+ {
820
+ "expression": "email_normalized",
821
+ "isExpression": false,
822
+ "asc": true,
823
+ "nulls": "last"
824
+ }
825
+ ],
826
+ "isUnique": false,
827
+ "with": {},
828
+ "method": "btree",
829
+ "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
830
+ "concurrently": false
831
+ },
832
+ "junior_identities_kind_provider_idx": {
833
+ "name": "junior_identities_kind_provider_idx",
834
+ "columns": [
835
+ {
836
+ "expression": "kind",
837
+ "isExpression": false,
838
+ "asc": true,
839
+ "nulls": "last"
840
+ },
841
+ {
842
+ "expression": "provider",
843
+ "isExpression": false,
844
+ "asc": true,
845
+ "nulls": "last"
846
+ }
847
+ ],
848
+ "isUnique": false,
849
+ "with": {},
850
+ "method": "btree",
851
+ "concurrently": false
852
+ }
853
+ },
854
+ "foreignKeys": {
855
+ "junior_identities_user_id_junior_users_id_fk": {
856
+ "name": "junior_identities_user_id_junior_users_id_fk",
857
+ "tableFrom": "junior_identities",
858
+ "columnsFrom": ["user_id"],
859
+ "tableTo": "junior_users",
860
+ "columnsTo": ["id"],
861
+ "onUpdate": "no action",
862
+ "onDelete": "no action"
863
+ }
864
+ },
865
+ "compositePrimaryKeys": {},
866
+ "uniqueConstraints": {},
867
+ "policies": {},
868
+ "checkConstraints": {},
869
+ "isRLSEnabled": false
870
+ },
871
+ "public.junior_users": {
872
+ "name": "junior_users",
873
+ "schema": "",
874
+ "columns": {
875
+ "id": {
876
+ "name": "id",
877
+ "type": "text",
878
+ "primaryKey": true,
879
+ "notNull": true
880
+ },
881
+ "primary_email": {
882
+ "name": "primary_email",
883
+ "type": "text",
884
+ "primaryKey": false,
885
+ "notNull": true
886
+ },
887
+ "primary_email_normalized": {
888
+ "name": "primary_email_normalized",
889
+ "type": "text",
890
+ "primaryKey": false,
891
+ "notNull": true
892
+ },
893
+ "display_name": {
894
+ "name": "display_name",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": false
898
+ },
899
+ "created_at": {
900
+ "name": "created_at",
901
+ "type": "timestamp with time zone",
902
+ "primaryKey": false,
903
+ "notNull": true
904
+ },
905
+ "updated_at": {
906
+ "name": "updated_at",
907
+ "type": "timestamp with time zone",
908
+ "primaryKey": false,
909
+ "notNull": true
910
+ }
911
+ },
912
+ "indexes": {
913
+ "junior_users_primary_email_normalized_uidx": {
914
+ "name": "junior_users_primary_email_normalized_uidx",
915
+ "columns": [
916
+ {
917
+ "expression": "primary_email_normalized",
918
+ "isExpression": false,
919
+ "asc": true,
920
+ "nulls": "last"
921
+ }
922
+ ],
923
+ "isUnique": true,
924
+ "with": {},
925
+ "method": "btree",
926
+ "concurrently": false
927
+ }
928
+ },
929
+ "foreignKeys": {},
930
+ "compositePrimaryKeys": {},
931
+ "uniqueConstraints": {},
932
+ "policies": {},
933
+ "checkConstraints": {},
934
+ "isRLSEnabled": false
935
+ }
936
+ },
937
+ "enums": {},
938
+ "schemas": {},
939
+ "views": {},
940
+ "sequences": {},
941
+ "roles": {},
942
+ "policies": {},
943
+ "_meta": {
944
+ "columns": {},
945
+ "schemas": {},
946
+ "tables": {}
947
+ }
948
+ }