@sentry/junior 0.94.0 → 0.96.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 (127) hide show
  1. package/dist/{agent-hooks-ZG7IDOIN.js → agent-hooks-5URSMY3O.js} +10 -11
  2. package/dist/api/people/list.js +8 -8
  3. package/dist/api/people/profile.js +8 -8
  4. package/dist/api/people/shared.d.ts +2 -2
  5. package/dist/api-reference.d.ts +2 -2
  6. package/dist/app.js +434 -199
  7. package/dist/{catalog-runtime-NZHMSMYC.js → catalog-runtime-MSMAYYIK.js} +4 -4
  8. package/dist/chat/advisor-request.d.ts +4 -0
  9. package/dist/chat/agent/request.d.ts +2 -0
  10. package/dist/chat/agent/resume.d.ts +2 -0
  11. package/dist/chat/conversations/history.d.ts +128 -0
  12. package/dist/chat/conversations/legacy-import.d.ts +38 -0
  13. package/dist/chat/conversations/messages.d.ts +39 -0
  14. package/dist/chat/conversations/projection.d.ts +94 -0
  15. package/dist/chat/conversations/retention.d.ts +36 -0
  16. package/dist/chat/conversations/sql/conversation-row.d.ts +14 -0
  17. package/dist/chat/conversations/sql/history.d.ts +4 -0
  18. package/dist/chat/conversations/sql/legacy-history-import.d.ts +55 -0
  19. package/dist/chat/conversations/sql/messages.d.ts +4 -0
  20. package/dist/chat/conversations/sql/migrations.d.ts +14 -3
  21. package/dist/chat/conversations/sql/purge.d.ts +53 -0
  22. package/dist/chat/conversations/sql/store.d.ts +7 -2
  23. package/dist/chat/conversations/store.d.ts +19 -0
  24. package/dist/chat/conversations/visible-compactions.d.ts +11 -0
  25. package/dist/chat/conversations/visible-messages.d.ts +47 -0
  26. package/dist/chat/db.d.ts +12 -1
  27. package/dist/chat/identities/sql.d.ts +1 -1
  28. package/dist/chat/logging.d.ts +4 -3
  29. package/dist/chat/plugins/auth/oauth-request.d.ts +2 -0
  30. package/dist/chat/resource-events/notification.d.ts +2 -0
  31. package/dist/chat/resource-events/store.d.ts +2 -1
  32. package/dist/chat/runtime/agent-run-outcome.d.ts +3 -0
  33. package/dist/chat/runtime/reply-executor.d.ts +8 -0
  34. package/dist/chat/runtime/thread-state.d.ts +2 -0
  35. package/dist/chat/sandbox/resources.d.ts +4 -0
  36. package/dist/chat/sentry.d.ts +1 -1
  37. package/dist/chat/services/mcp-auth-orchestration.d.ts +8 -0
  38. package/dist/chat/services/plugin-auth-orchestration.d.ts +12 -0
  39. package/dist/chat/services/turn-session-record.d.ts +14 -2
  40. package/dist/chat/sleep.d.ts +2 -0
  41. package/dist/chat/state/conversation.d.ts +7 -4
  42. package/dist/chat/state/session-log.d.ts +23 -1
  43. package/dist/chat/state/turn-session.d.ts +9 -1
  44. package/dist/chat/tool-support/private-trace-result.d.ts +4 -0
  45. package/dist/chat/tool-support/zod-tool.d.ts +1 -0
  46. package/dist/chat/tools/advisor/tool.d.ts +9 -4
  47. package/dist/chat/tools/definition.d.ts +2 -0
  48. package/dist/chat/tools/execution/tool-error-handler.d.ts +2 -2
  49. package/dist/chat/tools/system-time.d.ts +8 -0
  50. package/dist/chat/usage.d.ts +27 -13
  51. package/dist/chat/xml.d.ts +2 -0
  52. package/dist/{chunk-TNUUATT7.js → chunk-2NAZZPPS.js} +2 -2
  53. package/dist/{chunk-NYWPISSO.js → chunk-2XXEKR44.js} +1 -1
  54. package/dist/chunk-5C6XTTFI.js +1037 -0
  55. package/dist/{chunk-3DA7X2U3.js → chunk-6GWA276C.js} +15 -0
  56. package/dist/{chunk-LFLTJQVR.js → chunk-7FBGKXPE.js} +4 -0
  57. package/dist/{chunk-LNCREA5Z.js → chunk-AAZXTVJT.js} +4 -128
  58. package/dist/{chunk-GHGPTPBL.js → chunk-B7PUBQQM.js} +1 -1
  59. package/dist/{chunk-6H4PP63X.js → chunk-BYZWPRJA.js} +24 -14
  60. package/dist/chunk-CM5EZD5F.js +17 -0
  61. package/dist/{chunk-G3E7SCME.js → chunk-CZEX6KIQ.js} +23 -0
  62. package/dist/{chunk-YJ4OPVNA.js → chunk-DZENG5ML.js} +1 -1
  63. package/dist/{chunk-QGEWC27H.js → chunk-GQ3GK22G.js} +5 -7
  64. package/dist/{chunk-YYBX2BD5.js → chunk-GY34VGP5.js} +1 -1
  65. package/dist/{chunk-S6QKIGRM.js → chunk-I35CTGPO.js} +71 -29
  66. package/dist/{chunk-KRMANDHI.js → chunk-IYM2SIVG.js} +1489 -355
  67. package/dist/{chunk-BTH37NCU.js → chunk-L7CDEIVJ.js} +12 -4
  68. package/dist/chunk-MNTINMWR.js +865 -0
  69. package/dist/{chunk-MAVOJ54A.js → chunk-P3YFQLEN.js} +25 -388
  70. package/dist/{chunk-YTNPU7I2.js → chunk-PMNN6ST4.js} +2 -2
  71. package/dist/{chunk-PFXC67GJ.js → chunk-RAIB6WSG.js} +6 -80
  72. package/dist/{chunk-NFXSLTYG.js → chunk-RITD7E5L.js} +864 -62
  73. package/dist/{chunk-UUB3D2XI.js → chunk-S5KZ5LPG.js} +8 -10
  74. package/dist/{chunk-HDNWZMUN.js → chunk-UKHVMPX5.js} +112 -103
  75. package/dist/chunk-WM6KHPBQ.js +48 -0
  76. package/dist/{chunk-MC4ZZE4Q.js → chunk-YDT7SNCN.js} +1 -1
  77. package/dist/{chunk-NAPITCZ6.js → chunk-YDVEH3SB.js} +251 -6
  78. package/dist/cli/chat.js +25 -24
  79. package/dist/cli/check.js +5 -5
  80. package/dist/cli/main.js +1 -1
  81. package/dist/cli/plugins.js +12 -13
  82. package/dist/cli/snapshot-warmup.js +8 -9
  83. package/dist/cli/upgrade.js +79 -18
  84. package/dist/db/schema/agent-steps.d.ts +134 -0
  85. package/dist/db/schema/conversation-messages.d.ts +153 -0
  86. package/dist/{chat/conversations/sql → db}/schema/conversations.d.ts +34 -0
  87. package/dist/{chat/conversations/sql → db}/schema.d.ts +319 -8
  88. package/dist/db-2D6RMG67.js +24 -0
  89. package/dist/deployment.d.ts +2 -0
  90. package/dist/handlers/retention.d.ts +6 -0
  91. package/dist/instrumentation.js +17 -4
  92. package/dist/legacy-import-VZ2MEGP7.js +17 -0
  93. package/dist/nitro.js +14 -4
  94. package/dist/reporting/conversations/activity.d.ts +40 -0
  95. package/dist/reporting/conversations/context.d.ts +8 -0
  96. package/dist/reporting/conversations/details.d.ts +6 -0
  97. package/dist/reporting/conversations/index.d.ts +4 -0
  98. package/dist/reporting/conversations/shared.d.ts +9 -0
  99. package/dist/reporting/conversations/statistics.d.ts +4 -0
  100. package/dist/reporting/conversations/summaries.d.ts +20 -0
  101. package/dist/reporting/conversations/transcript.d.ts +28 -0
  102. package/dist/reporting/conversations/types.d.ts +191 -0
  103. package/dist/reporting/conversations.d.ts +1 -178
  104. package/dist/reporting.d.ts +5 -4
  105. package/dist/reporting.js +703 -837
  106. package/dist/{runner-XAZPJNAQ.js → runner-JZBRQP4F.js} +36 -42
  107. package/dist/{sentry-EGFOV3DH.js → sentry-JMWTS32N.js} +11 -1
  108. package/dist/{validation-KYAWETI4.js → validation-6XOOQGME.js} +5 -5
  109. package/migrations/README.md +32 -0
  110. package/migrations/meta/0000_snapshot.json +978 -0
  111. package/migrations/meta/_journal.json +13 -0
  112. package/package.json +10 -7
  113. package/dist/chat/sql/schema.d.ts +0 -1049
  114. package/dist/chat/state/conversation-details.d.ts +0 -47
  115. package/dist/chunk-7STN2ZSK.js +0 -250
  116. package/dist/chunk-LE5ANBUZ.js +0 -1040
  117. package/dist/chunk-QL66APYJ.js +0 -1377
  118. package/dist/db-YDN6AFJH.js +0 -18
  119. /package/dist/{chat/sql → db}/db.d.ts +0 -0
  120. /package/dist/{chat/sql → db}/executor.d.ts +0 -0
  121. /package/dist/{chat/sql → db}/neon.d.ts +0 -0
  122. /package/dist/{chat/sql → db}/postgres.d.ts +0 -0
  123. /package/dist/{chat/conversations/sql → db}/schema/destinations.d.ts +0 -0
  124. /package/dist/{chat/conversations/sql → db}/schema/identities.d.ts +0 -0
  125. /package/dist/{chat/conversations/sql → db}/schema/migrations.d.ts +0 -0
  126. /package/dist/{chat/conversations/sql → db}/schema/timestamps.d.ts +0 -0
  127. /package/dist/{chat/conversations/sql → db}/schema/users.d.ts +0 -0
@@ -0,0 +1,978 @@
1
+ {
2
+ "id": "e9dd1291-8c50-4b3c-a54a-43ddca3f7421",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
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
+ },
181
+ "foreignKeys": {
182
+ "junior_conversation_messages_conversation_id_junior_conversations_conversation_id_fk": {
183
+ "name": "junior_conversation_messages_conversation_id_junior_conversations_conversation_id_fk",
184
+ "tableFrom": "junior_conversation_messages",
185
+ "tableTo": "junior_conversations",
186
+ "columnsFrom": ["conversation_id"],
187
+ "columnsTo": ["conversation_id"],
188
+ "onDelete": "no action",
189
+ "onUpdate": "no action"
190
+ },
191
+ "junior_conversation_messages_author_identity_id_junior_identities_id_fk": {
192
+ "name": "junior_conversation_messages_author_identity_id_junior_identities_id_fk",
193
+ "tableFrom": "junior_conversation_messages",
194
+ "tableTo": "junior_identities",
195
+ "columnsFrom": ["author_identity_id"],
196
+ "columnsTo": ["id"],
197
+ "onDelete": "no action",
198
+ "onUpdate": "no action"
199
+ }
200
+ },
201
+ "compositePrimaryKeys": {
202
+ "junior_conversation_messages_conversation_id_message_id_pk": {
203
+ "name": "junior_conversation_messages_conversation_id_message_id_pk",
204
+ "columns": ["conversation_id", "message_id"]
205
+ }
206
+ },
207
+ "uniqueConstraints": {},
208
+ "policies": {},
209
+ "checkConstraints": {},
210
+ "isRLSEnabled": false
211
+ },
212
+ "public.junior_conversations": {
213
+ "name": "junior_conversations",
214
+ "schema": "",
215
+ "columns": {
216
+ "conversation_id": {
217
+ "name": "conversation_id",
218
+ "type": "text",
219
+ "primaryKey": true,
220
+ "notNull": true
221
+ },
222
+ "schema_version": {
223
+ "name": "schema_version",
224
+ "type": "integer",
225
+ "primaryKey": false,
226
+ "notNull": true,
227
+ "default": 1
228
+ },
229
+ "source": {
230
+ "name": "source",
231
+ "type": "text",
232
+ "primaryKey": false,
233
+ "notNull": false
234
+ },
235
+ "origin_type": {
236
+ "name": "origin_type",
237
+ "type": "text",
238
+ "primaryKey": false,
239
+ "notNull": false
240
+ },
241
+ "origin_id": {
242
+ "name": "origin_id",
243
+ "type": "text",
244
+ "primaryKey": false,
245
+ "notNull": false
246
+ },
247
+ "origin_run_id": {
248
+ "name": "origin_run_id",
249
+ "type": "text",
250
+ "primaryKey": false,
251
+ "notNull": false
252
+ },
253
+ "destination_id": {
254
+ "name": "destination_id",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": false
258
+ },
259
+ "destination_json": {
260
+ "name": "destination_json",
261
+ "type": "jsonb",
262
+ "primaryKey": false,
263
+ "notNull": false
264
+ },
265
+ "actor_identity_id": {
266
+ "name": "actor_identity_id",
267
+ "type": "text",
268
+ "primaryKey": false,
269
+ "notNull": false
270
+ },
271
+ "creator_identity_id": {
272
+ "name": "creator_identity_id",
273
+ "type": "text",
274
+ "primaryKey": false,
275
+ "notNull": false
276
+ },
277
+ "credential_subject_identity_id": {
278
+ "name": "credential_subject_identity_id",
279
+ "type": "text",
280
+ "primaryKey": false,
281
+ "notNull": false
282
+ },
283
+ "actor_json": {
284
+ "name": "actor_json",
285
+ "type": "jsonb",
286
+ "primaryKey": false,
287
+ "notNull": false
288
+ },
289
+ "channel_name": {
290
+ "name": "channel_name",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": false
294
+ },
295
+ "title": {
296
+ "name": "title",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": false
300
+ },
301
+ "created_at": {
302
+ "name": "created_at",
303
+ "type": "timestamp with time zone",
304
+ "primaryKey": false,
305
+ "notNull": true
306
+ },
307
+ "last_activity_at": {
308
+ "name": "last_activity_at",
309
+ "type": "timestamp with time zone",
310
+ "primaryKey": false,
311
+ "notNull": true
312
+ },
313
+ "updated_at": {
314
+ "name": "updated_at",
315
+ "type": "timestamp with time zone",
316
+ "primaryKey": false,
317
+ "notNull": true
318
+ },
319
+ "execution_updated_at": {
320
+ "name": "execution_updated_at",
321
+ "type": "timestamp with time zone",
322
+ "primaryKey": false,
323
+ "notNull": false
324
+ },
325
+ "execution_status": {
326
+ "name": "execution_status",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": true
330
+ },
331
+ "run_id": {
332
+ "name": "run_id",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": false
336
+ },
337
+ "last_checkpoint_at": {
338
+ "name": "last_checkpoint_at",
339
+ "type": "timestamp with time zone",
340
+ "primaryKey": false,
341
+ "notNull": false
342
+ },
343
+ "last_enqueued_at": {
344
+ "name": "last_enqueued_at",
345
+ "type": "timestamp with time zone",
346
+ "primaryKey": false,
347
+ "notNull": false
348
+ },
349
+ "parent_conversation_id": {
350
+ "name": "parent_conversation_id",
351
+ "type": "text",
352
+ "primaryKey": false,
353
+ "notNull": false
354
+ },
355
+ "transcript_purged_at": {
356
+ "name": "transcript_purged_at",
357
+ "type": "timestamp with time zone",
358
+ "primaryKey": false,
359
+ "notNull": false
360
+ }
361
+ },
362
+ "indexes": {
363
+ "junior_conversations_last_activity_idx": {
364
+ "name": "junior_conversations_last_activity_idx",
365
+ "columns": [
366
+ {
367
+ "expression": "last_activity_at",
368
+ "isExpression": false,
369
+ "asc": false,
370
+ "nulls": "last"
371
+ },
372
+ {
373
+ "expression": "conversation_id",
374
+ "isExpression": false,
375
+ "asc": true,
376
+ "nulls": "last"
377
+ }
378
+ ],
379
+ "isUnique": false,
380
+ "concurrently": false,
381
+ "method": "btree",
382
+ "with": {}
383
+ },
384
+ "junior_conversations_active_idx": {
385
+ "name": "junior_conversations_active_idx",
386
+ "columns": [
387
+ {
388
+ "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
389
+ "asc": true,
390
+ "isExpression": true,
391
+ "nulls": "last"
392
+ },
393
+ {
394
+ "expression": "conversation_id",
395
+ "isExpression": false,
396
+ "asc": true,
397
+ "nulls": "last"
398
+ }
399
+ ],
400
+ "isUnique": false,
401
+ "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
402
+ "concurrently": false,
403
+ "method": "btree",
404
+ "with": {}
405
+ },
406
+ "junior_conversations_destination_activity_idx": {
407
+ "name": "junior_conversations_destination_activity_idx",
408
+ "columns": [
409
+ {
410
+ "expression": "destination_id",
411
+ "isExpression": false,
412
+ "asc": true,
413
+ "nulls": "last"
414
+ },
415
+ {
416
+ "expression": "last_activity_at",
417
+ "isExpression": false,
418
+ "asc": false,
419
+ "nulls": "last"
420
+ }
421
+ ],
422
+ "isUnique": false,
423
+ "concurrently": false,
424
+ "method": "btree",
425
+ "with": {}
426
+ },
427
+ "junior_conversations_actor_activity_idx": {
428
+ "name": "junior_conversations_actor_activity_idx",
429
+ "columns": [
430
+ {
431
+ "expression": "actor_identity_id",
432
+ "isExpression": false,
433
+ "asc": true,
434
+ "nulls": "last"
435
+ },
436
+ {
437
+ "expression": "last_activity_at",
438
+ "isExpression": false,
439
+ "asc": false,
440
+ "nulls": "last"
441
+ }
442
+ ],
443
+ "isUnique": false,
444
+ "concurrently": false,
445
+ "method": "btree",
446
+ "with": {}
447
+ },
448
+ "junior_conversations_origin_idx": {
449
+ "name": "junior_conversations_origin_idx",
450
+ "columns": [
451
+ {
452
+ "expression": "origin_type",
453
+ "isExpression": false,
454
+ "asc": true,
455
+ "nulls": "last"
456
+ },
457
+ {
458
+ "expression": "origin_id",
459
+ "isExpression": false,
460
+ "asc": true,
461
+ "nulls": "last"
462
+ },
463
+ {
464
+ "expression": "last_activity_at",
465
+ "isExpression": false,
466
+ "asc": false,
467
+ "nulls": "last"
468
+ }
469
+ ],
470
+ "isUnique": false,
471
+ "concurrently": false,
472
+ "method": "btree",
473
+ "with": {}
474
+ },
475
+ "junior_conversations_parent_idx": {
476
+ "name": "junior_conversations_parent_idx",
477
+ "columns": [
478
+ {
479
+ "expression": "parent_conversation_id",
480
+ "isExpression": false,
481
+ "asc": true,
482
+ "nulls": "last"
483
+ }
484
+ ],
485
+ "isUnique": false,
486
+ "concurrently": false,
487
+ "method": "btree",
488
+ "with": {}
489
+ }
490
+ },
491
+ "foreignKeys": {
492
+ "junior_conversations_destination_id_junior_destinations_id_fk": {
493
+ "name": "junior_conversations_destination_id_junior_destinations_id_fk",
494
+ "tableFrom": "junior_conversations",
495
+ "tableTo": "junior_destinations",
496
+ "columnsFrom": ["destination_id"],
497
+ "columnsTo": ["id"],
498
+ "onDelete": "no action",
499
+ "onUpdate": "no action"
500
+ },
501
+ "junior_conversations_actor_identity_id_junior_identities_id_fk": {
502
+ "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
503
+ "tableFrom": "junior_conversations",
504
+ "tableTo": "junior_identities",
505
+ "columnsFrom": ["actor_identity_id"],
506
+ "columnsTo": ["id"],
507
+ "onDelete": "no action",
508
+ "onUpdate": "no action"
509
+ },
510
+ "junior_conversations_creator_identity_id_junior_identities_id_fk": {
511
+ "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
512
+ "tableFrom": "junior_conversations",
513
+ "tableTo": "junior_identities",
514
+ "columnsFrom": ["creator_identity_id"],
515
+ "columnsTo": ["id"],
516
+ "onDelete": "no action",
517
+ "onUpdate": "no action"
518
+ },
519
+ "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
520
+ "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
521
+ "tableFrom": "junior_conversations",
522
+ "tableTo": "junior_identities",
523
+ "columnsFrom": ["credential_subject_identity_id"],
524
+ "columnsTo": ["id"],
525
+ "onDelete": "no action",
526
+ "onUpdate": "no action"
527
+ },
528
+ "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
529
+ "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
530
+ "tableFrom": "junior_conversations",
531
+ "tableTo": "junior_conversations",
532
+ "columnsFrom": ["parent_conversation_id"],
533
+ "columnsTo": ["conversation_id"],
534
+ "onDelete": "no action",
535
+ "onUpdate": "no action"
536
+ }
537
+ },
538
+ "compositePrimaryKeys": {},
539
+ "uniqueConstraints": {},
540
+ "policies": {},
541
+ "checkConstraints": {},
542
+ "isRLSEnabled": false
543
+ },
544
+ "public.junior_destinations": {
545
+ "name": "junior_destinations",
546
+ "schema": "",
547
+ "columns": {
548
+ "id": {
549
+ "name": "id",
550
+ "type": "text",
551
+ "primaryKey": true,
552
+ "notNull": true
553
+ },
554
+ "provider": {
555
+ "name": "provider",
556
+ "type": "text",
557
+ "primaryKey": false,
558
+ "notNull": true
559
+ },
560
+ "provider_tenant_id": {
561
+ "name": "provider_tenant_id",
562
+ "type": "text",
563
+ "primaryKey": false,
564
+ "notNull": true,
565
+ "default": "''"
566
+ },
567
+ "provider_destination_id": {
568
+ "name": "provider_destination_id",
569
+ "type": "text",
570
+ "primaryKey": false,
571
+ "notNull": true
572
+ },
573
+ "kind": {
574
+ "name": "kind",
575
+ "type": "text",
576
+ "primaryKey": false,
577
+ "notNull": true
578
+ },
579
+ "parent_destination_id": {
580
+ "name": "parent_destination_id",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": false
584
+ },
585
+ "display_name": {
586
+ "name": "display_name",
587
+ "type": "text",
588
+ "primaryKey": false,
589
+ "notNull": false
590
+ },
591
+ "visibility": {
592
+ "name": "visibility",
593
+ "type": "text",
594
+ "primaryKey": false,
595
+ "notNull": true,
596
+ "default": "'unknown'"
597
+ },
598
+ "metadata_json": {
599
+ "name": "metadata_json",
600
+ "type": "jsonb",
601
+ "primaryKey": false,
602
+ "notNull": false
603
+ },
604
+ "created_at": {
605
+ "name": "created_at",
606
+ "type": "timestamp with time zone",
607
+ "primaryKey": false,
608
+ "notNull": true
609
+ },
610
+ "updated_at": {
611
+ "name": "updated_at",
612
+ "type": "timestamp with time zone",
613
+ "primaryKey": false,
614
+ "notNull": true
615
+ }
616
+ },
617
+ "indexes": {
618
+ "junior_destinations_provider_destination_uidx": {
619
+ "name": "junior_destinations_provider_destination_uidx",
620
+ "columns": [
621
+ {
622
+ "expression": "provider",
623
+ "isExpression": false,
624
+ "asc": true,
625
+ "nulls": "last"
626
+ },
627
+ {
628
+ "expression": "provider_tenant_id",
629
+ "isExpression": false,
630
+ "asc": true,
631
+ "nulls": "last"
632
+ },
633
+ {
634
+ "expression": "provider_destination_id",
635
+ "isExpression": false,
636
+ "asc": true,
637
+ "nulls": "last"
638
+ }
639
+ ],
640
+ "isUnique": true,
641
+ "concurrently": false,
642
+ "method": "btree",
643
+ "with": {}
644
+ },
645
+ "junior_destinations_provider_kind_idx": {
646
+ "name": "junior_destinations_provider_kind_idx",
647
+ "columns": [
648
+ {
649
+ "expression": "provider",
650
+ "isExpression": false,
651
+ "asc": true,
652
+ "nulls": "last"
653
+ },
654
+ {
655
+ "expression": "kind",
656
+ "isExpression": false,
657
+ "asc": true,
658
+ "nulls": "last"
659
+ }
660
+ ],
661
+ "isUnique": false,
662
+ "concurrently": false,
663
+ "method": "btree",
664
+ "with": {}
665
+ }
666
+ },
667
+ "foreignKeys": {},
668
+ "compositePrimaryKeys": {},
669
+ "uniqueConstraints": {},
670
+ "policies": {},
671
+ "checkConstraints": {},
672
+ "isRLSEnabled": false
673
+ },
674
+ "public.junior_identities": {
675
+ "name": "junior_identities",
676
+ "schema": "",
677
+ "columns": {
678
+ "id": {
679
+ "name": "id",
680
+ "type": "text",
681
+ "primaryKey": true,
682
+ "notNull": true
683
+ },
684
+ "kind": {
685
+ "name": "kind",
686
+ "type": "text",
687
+ "primaryKey": false,
688
+ "notNull": true
689
+ },
690
+ "provider": {
691
+ "name": "provider",
692
+ "type": "text",
693
+ "primaryKey": false,
694
+ "notNull": true
695
+ },
696
+ "provider_tenant_id": {
697
+ "name": "provider_tenant_id",
698
+ "type": "text",
699
+ "primaryKey": false,
700
+ "notNull": true,
701
+ "default": "''"
702
+ },
703
+ "provider_subject_id": {
704
+ "name": "provider_subject_id",
705
+ "type": "text",
706
+ "primaryKey": false,
707
+ "notNull": true
708
+ },
709
+ "display_name": {
710
+ "name": "display_name",
711
+ "type": "text",
712
+ "primaryKey": false,
713
+ "notNull": false
714
+ },
715
+ "handle": {
716
+ "name": "handle",
717
+ "type": "text",
718
+ "primaryKey": false,
719
+ "notNull": false
720
+ },
721
+ "email": {
722
+ "name": "email",
723
+ "type": "text",
724
+ "primaryKey": false,
725
+ "notNull": false
726
+ },
727
+ "avatar_url": {
728
+ "name": "avatar_url",
729
+ "type": "text",
730
+ "primaryKey": false,
731
+ "notNull": false
732
+ },
733
+ "metadata_json": {
734
+ "name": "metadata_json",
735
+ "type": "jsonb",
736
+ "primaryKey": false,
737
+ "notNull": false
738
+ },
739
+ "created_at": {
740
+ "name": "created_at",
741
+ "type": "timestamp with time zone",
742
+ "primaryKey": false,
743
+ "notNull": true
744
+ },
745
+ "updated_at": {
746
+ "name": "updated_at",
747
+ "type": "timestamp with time zone",
748
+ "primaryKey": false,
749
+ "notNull": true
750
+ },
751
+ "user_id": {
752
+ "name": "user_id",
753
+ "type": "text",
754
+ "primaryKey": false,
755
+ "notNull": false
756
+ },
757
+ "email_normalized": {
758
+ "name": "email_normalized",
759
+ "type": "text",
760
+ "primaryKey": false,
761
+ "notNull": false
762
+ },
763
+ "email_verified": {
764
+ "name": "email_verified",
765
+ "type": "boolean",
766
+ "primaryKey": false,
767
+ "notNull": true,
768
+ "default": false
769
+ }
770
+ },
771
+ "indexes": {
772
+ "junior_identities_provider_subject_uidx": {
773
+ "name": "junior_identities_provider_subject_uidx",
774
+ "columns": [
775
+ {
776
+ "expression": "provider",
777
+ "isExpression": false,
778
+ "asc": true,
779
+ "nulls": "last"
780
+ },
781
+ {
782
+ "expression": "provider_tenant_id",
783
+ "isExpression": false,
784
+ "asc": true,
785
+ "nulls": "last"
786
+ },
787
+ {
788
+ "expression": "provider_subject_id",
789
+ "isExpression": false,
790
+ "asc": true,
791
+ "nulls": "last"
792
+ }
793
+ ],
794
+ "isUnique": true,
795
+ "concurrently": false,
796
+ "method": "btree",
797
+ "with": {}
798
+ },
799
+ "junior_identities_user_idx": {
800
+ "name": "junior_identities_user_idx",
801
+ "columns": [
802
+ {
803
+ "expression": "user_id",
804
+ "isExpression": false,
805
+ "asc": true,
806
+ "nulls": "last"
807
+ }
808
+ ],
809
+ "isUnique": false,
810
+ "concurrently": false,
811
+ "method": "btree",
812
+ "with": {}
813
+ },
814
+ "junior_identities_verified_email_idx": {
815
+ "name": "junior_identities_verified_email_idx",
816
+ "columns": [
817
+ {
818
+ "expression": "email_normalized",
819
+ "isExpression": false,
820
+ "asc": true,
821
+ "nulls": "last"
822
+ }
823
+ ],
824
+ "isUnique": false,
825
+ "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
826
+ "concurrently": false,
827
+ "method": "btree",
828
+ "with": {}
829
+ },
830
+ "junior_identities_kind_provider_idx": {
831
+ "name": "junior_identities_kind_provider_idx",
832
+ "columns": [
833
+ {
834
+ "expression": "kind",
835
+ "isExpression": false,
836
+ "asc": true,
837
+ "nulls": "last"
838
+ },
839
+ {
840
+ "expression": "provider",
841
+ "isExpression": false,
842
+ "asc": true,
843
+ "nulls": "last"
844
+ }
845
+ ],
846
+ "isUnique": false,
847
+ "concurrently": false,
848
+ "method": "btree",
849
+ "with": {}
850
+ }
851
+ },
852
+ "foreignKeys": {
853
+ "junior_identities_user_id_junior_users_id_fk": {
854
+ "name": "junior_identities_user_id_junior_users_id_fk",
855
+ "tableFrom": "junior_identities",
856
+ "tableTo": "junior_users",
857
+ "columnsFrom": ["user_id"],
858
+ "columnsTo": ["id"],
859
+ "onDelete": "no action",
860
+ "onUpdate": "no action"
861
+ }
862
+ },
863
+ "compositePrimaryKeys": {},
864
+ "uniqueConstraints": {},
865
+ "policies": {},
866
+ "checkConstraints": {},
867
+ "isRLSEnabled": false
868
+ },
869
+ "public.junior_schema_migrations": {
870
+ "name": "junior_schema_migrations",
871
+ "schema": "",
872
+ "columns": {
873
+ "id": {
874
+ "name": "id",
875
+ "type": "text",
876
+ "primaryKey": true,
877
+ "notNull": true
878
+ },
879
+ "checksum": {
880
+ "name": "checksum",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": true
884
+ },
885
+ "applied_at": {
886
+ "name": "applied_at",
887
+ "type": "timestamp with time zone",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "default": "now()"
891
+ }
892
+ },
893
+ "indexes": {},
894
+ "foreignKeys": {},
895
+ "compositePrimaryKeys": {},
896
+ "uniqueConstraints": {},
897
+ "policies": {},
898
+ "checkConstraints": {},
899
+ "isRLSEnabled": false
900
+ },
901
+ "public.junior_users": {
902
+ "name": "junior_users",
903
+ "schema": "",
904
+ "columns": {
905
+ "id": {
906
+ "name": "id",
907
+ "type": "text",
908
+ "primaryKey": true,
909
+ "notNull": true
910
+ },
911
+ "primary_email": {
912
+ "name": "primary_email",
913
+ "type": "text",
914
+ "primaryKey": false,
915
+ "notNull": true
916
+ },
917
+ "primary_email_normalized": {
918
+ "name": "primary_email_normalized",
919
+ "type": "text",
920
+ "primaryKey": false,
921
+ "notNull": true
922
+ },
923
+ "display_name": {
924
+ "name": "display_name",
925
+ "type": "text",
926
+ "primaryKey": false,
927
+ "notNull": false
928
+ },
929
+ "created_at": {
930
+ "name": "created_at",
931
+ "type": "timestamp with time zone",
932
+ "primaryKey": false,
933
+ "notNull": true
934
+ },
935
+ "updated_at": {
936
+ "name": "updated_at",
937
+ "type": "timestamp with time zone",
938
+ "primaryKey": false,
939
+ "notNull": true
940
+ }
941
+ },
942
+ "indexes": {
943
+ "junior_users_primary_email_normalized_uidx": {
944
+ "name": "junior_users_primary_email_normalized_uidx",
945
+ "columns": [
946
+ {
947
+ "expression": "primary_email_normalized",
948
+ "isExpression": false,
949
+ "asc": true,
950
+ "nulls": "last"
951
+ }
952
+ ],
953
+ "isUnique": true,
954
+ "concurrently": false,
955
+ "method": "btree",
956
+ "with": {}
957
+ }
958
+ },
959
+ "foreignKeys": {},
960
+ "compositePrimaryKeys": {},
961
+ "uniqueConstraints": {},
962
+ "policies": {},
963
+ "checkConstraints": {},
964
+ "isRLSEnabled": false
965
+ }
966
+ },
967
+ "enums": {},
968
+ "schemas": {},
969
+ "sequences": {},
970
+ "roles": {},
971
+ "policies": {},
972
+ "views": {},
973
+ "_meta": {
974
+ "columns": {},
975
+ "schemas": {},
976
+ "tables": {}
977
+ }
978
+ }