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