@sentry/junior 0.314.0 → 0.316.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 (667) hide show
  1. package/dist/{channel-access-BOL29BG3.js → adapter-context-Bref7aPI.js} +42 -3
  2. package/dist/{admin-BXGAySz0.js → admin-QYiDMnsu.js} +1 -1
  3. package/dist/agent-runner-Cr5Fhjf-.js +23870 -0
  4. package/dist/{agent-update-delivery-CZ5M8RDa.js → agent-update-delivery-BY13DPSD.js} +46 -9
  5. package/dist/api/schema.d.ts +9549 -2
  6. package/dist/api/schema.js +4 -6
  7. package/dist/api.d.ts +2 -3
  8. package/dist/api.js +747 -293
  9. package/dist/{app-D7tKnw9a.d.ts → app-BhvzRD__.d.ts} +314 -29
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +268 -58
  12. package/dist/change-record-Bqsa5ZXE.d.ts +175 -0
  13. package/dist/chat-core-engine-3dtlMku3.js +123 -0
  14. package/dist/cli/chat.d.ts +4 -1
  15. package/dist/cli/chat.js +39 -21
  16. package/dist/cli/check.js +4 -4
  17. package/dist/cli/main.js +2 -2
  18. package/dist/cli/plugins.js +3 -4
  19. package/dist/cli/run.d.ts +1 -1
  20. package/dist/cli/run.js +1 -1
  21. package/dist/cli/snapshot-create.js +2 -5
  22. package/dist/cli/upgrade.d.ts +1 -1
  23. package/dist/cli/upgrade.js +46 -74
  24. package/dist/{continue-in-slack-fnmD2Ifb.js → continue-in-slack-DbQUFe_F.js} +3 -5
  25. package/dist/{conversation-feed-DdFQuQDR.js → conversation-feed-B84pMjHo.js} +28 -3
  26. package/dist/{conversation-turn-DScuDYmN.js → conversation-turn-DzEpTIaf.js} +152 -199
  27. package/dist/{create-CrNt4Ewu.js → create-DUJBXr6E.js} +4 -4
  28. package/dist/{credential-sync-CtqsGjj1.js → credential-sync-JH_K9Adg.js} +10 -15
  29. package/dist/db-BpxcYXfD.d.ts +2 -0
  30. package/dist/{credentialed-dWRA3-oJ.js → db-DhzvUY23.js} +21830 -9264
  31. package/dist/deployment-BhvrhQeh.js +51 -0
  32. package/dist/engine-context-C9Nal48K.js +1814 -0
  33. package/dist/{html-B8rBt7F4.js → html-B_12WjKT.js} +2 -5
  34. package/dist/instrumentation.js +2 -2
  35. package/dist/job-runner-DO8nslyY.js +1139 -0
  36. package/dist/{lineage-EULJkGO1.js → lineage-D3AZAJVe.js} +1 -1
  37. package/dist/{list-C5400AlJ.js → list-B0zsb5Cp.js} +307 -146
  38. package/dist/{markers-DUP8aBOp.js → list-mkB_GU8R.js} +96 -124
  39. package/dist/local-server-CpnGhYml.js +276 -0
  40. package/dist/{conversation-privacy-DtZhI91r.js → logging-B8KEJegM.js} +2 -231
  41. package/dist/{media-FYM-Bl3H.js → media-BebquhET.js} +684 -37
  42. package/dist/{message-DuDelZFr.js → message-B5fKDYzz.js} +18 -16
  43. package/dist/{model-input-0osF3pBS.js → model-input-CuMWy37l.js} +3 -3
  44. package/dist/nitro.d.ts +7 -1
  45. package/dist/nitro.js +48 -293
  46. package/dist/{oauth-callback-server-DX2fQ7Nq.js → oauth-callback-server-B3Vvlydo.js} +2 -2
  47. package/dist/{oauth-relay-PwPMdZJv.js → oauth-relay-6ERrGPbA.js} +1 -1
  48. package/dist/{package-discovery-DD9vencX.js → package-discovery-BI6T_RkD.js} +50 -1
  49. package/dist/people-CUtFApfL.js +81 -0
  50. package/dist/proxy-path-BTmXDjfx.js +203 -0
  51. package/dist/{resolve-D8CPJcNK.js → resolve-D5JVvv6A.js} +229 -4
  52. package/dist/{result-D090hxr5.js → result-CS_7mo8a.js} +95 -144
  53. package/dist/{runner-BU7fgrm-.js → runner-BzAES5W3.js} +7 -7
  54. package/dist/{sandbox-egress-signals-BUmVrsoG.js → sandbox-egress-signals-Dwhk2Q5F.js} +1 -1
  55. package/dist/{schema-7gW9vBpJ.js → schema-z5-wA6N4.js} +132 -15
  56. package/dist/{service-account-plA-uzIB.js → service-account-D6AsAtc1.js} +1 -3
  57. package/dist/{mailbox-turn-DL3Lvsm0.js → session-stop-DponjDUZ.js} +3259 -3793
  58. package/dist/{skills-CIosT6bS.js → skills-DgJ9GBPR.js} +4 -4
  59. package/dist/{slack-conversation-unfurl-CBgZqth6.js → slack-conversation-unfurl-Dq71EkhM.js} +6 -8
  60. package/dist/{spawn-DRjdzh3R.js → spawn-BJWpdwhQ.js} +4 -5
  61. package/dist/start-conversation-B-LIqqNi.js +162 -0
  62. package/dist/system-prompt-table-iIgpmslr.js +1171 -0
  63. package/dist/{task-runner-C-pXsgHM.js → task-runner-BJae4JwE.js} +83 -17
  64. package/dist/{thread-context-CDX4dSZd.js → thread-context-fiMNylbg.js} +5 -6
  65. package/dist/topic-CRYYBYp-.js +7 -0
  66. package/dist/transcript-CCi7323k.js +410 -0
  67. package/dist/turn-session-routing-D15orfwy.js +1309 -0
  68. package/dist/{turn-wake-Bzq1Efrm.js → turn-wake-BjDW7x-5.js} +5 -7
  69. package/dist/{validation-bTq88sya.js → validation-D5WmmmhX.js} +1 -1
  70. package/dist/{version-DGUa1dZK.js → version-CBQoanXb.js} +1 -1
  71. package/dist/version.js +1 -1
  72. package/dist/virtual-module-BeKA_EII.js +12 -0
  73. package/dist/{worker-AkZg7Dg1.js → worker-Cyb4kF17.js} +3 -5
  74. package/migrations/20260711145847_initial/snapshot.json +2103 -0
  75. package/migrations/20260711145900_conversation_metrics/snapshot.json +135 -0
  76. package/migrations/20260712153649_conversation_message_search/snapshot.json +50 -0
  77. package/migrations/20260713040256_peaceful_scalphunter/snapshot.json +42 -0
  78. package/migrations/20260715174202_useful_magus/snapshot.json +42 -0
  79. package/migrations/20260715174203_conversation_events/snapshot.json +539 -0
  80. package/migrations/20260723042835_drop_legacy_conversation_messages/snapshot.json +9 -0
  81. package/migrations/20260723050612_thick_sugar_man/snapshot.json +120 -0
  82. package/migrations/20260727223822_sticky_rage/snapshot.json +274 -0
  83. package/migrations/20260728033158_slippery_harrier/snapshot.json +191 -0
  84. package/migrations/20260728040836_native_conversation_history/snapshot.json +9 -0
  85. package/migrations/20260728204900_sour_golden_guardian/snapshot.json +124 -0
  86. package/migrations/20260730233332_structured_conversation_events/snapshot.json +9 -0
  87. package/migrations/20260731164038_conversation_session_source/snapshot.json +42 -0
  88. package/migrations/20260801230336_source_visibility/snapshot.json +9 -0
  89. package/migrations/20260802023731_magical_ezekiel_stane/snapshot.json +266 -0
  90. package/migrations/20260804015843_neat_the_anarchist/snapshot.json +714 -0
  91. package/migrations/20260804165952_drop_paused_scheduled_tasks/snapshot.json +9 -0
  92. package/migrations/20260804225613_curvy_excalibur/snapshot.json +223 -0
  93. package/migrations/20260805174033_lowly_valkyrie/snapshot.json +344 -0
  94. package/migrations/20260805200301_restrict_task_execution_kinds/snapshot.json +36 -0
  95. package/migrations/20260806030729_first_warhawk/snapshot.json +690 -0
  96. package/migrations/20260807185200_task_execution_status/snapshot.json +92 -0
  97. package/migrations/20260808014743_task_title_columns/snapshot.json +68 -0
  98. package/migrations/20260809220421_misty_typhoid_mary/snapshot.json +191 -0
  99. package/migrations/20260811193709_mcp_credential_subject/snapshot.json +9 -0
  100. package/migrations/20260812032924_conversation_event_actor_and_participants/snapshot.json +393 -0
  101. package/migrations/20260812172418_attachment_storage/snapshot.json +341 -0
  102. package/migrations/20260813230732_artifacts/snapshot.json +349 -0
  103. package/migrations/20260814062905_dizzy_barracuda/snapshot.json +342 -0
  104. package/migrations/20260814231353_drop_workspace_repo_primary/snapshot.json +55 -0
  105. package/migrations/20260815030100_wild_phantom_reporter/snapshot.json +135 -0
  106. package/migrations/20260817082233_workspace_snapshots_table/snapshot.json +625 -0
  107. package/migrations/20260818160339_workspace_snapshot_active_build/snapshot.json +62 -0
  108. package/migrations/20260821180755_strong_randall/snapshot.json +42 -0
  109. package/migrations/20260823030308_workspace_snapshot_size_bytes/snapshot.json +62 -0
  110. package/migrations/20260824190313_complex_rage/snapshot.json +690 -0
  111. package/migrations/20260827233711_conversation_location/snapshot.json +42 -0
  112. package/migrations/20260901224306_event_task_status/snapshot.json +100 -0
  113. package/migrations/20260904153232_attachment_provider/snapshot.json +234 -0
  114. package/migrations/20260909111415_conversation_briefs/snapshot.json +364 -0
  115. package/migrations/20260910144928_automation_outcomes_backfill/snapshot.json +9 -0
  116. package/migrations/20260911184346_conversation_metrics/snapshot.json +226 -0
  117. package/migrations/20260921140842_scheduled_automation_channel_destinations/snapshot.json +9 -0
  118. package/migrations/20260922221709_event_automation_channel_destinations/snapshot.json +9 -0
  119. package/migrations/20261001113455_conversation_forks/snapshot.json +120 -0
  120. package/migrations/20261005161844_automation_versions/snapshot.json +150 -0
  121. package/migrations/20261006152043_user_timezone/snapshot.json +37 -0
  122. package/migrations/20261008200858_user_admin/snapshot.json +37 -0
  123. package/migrations/20261009145407_event_automation_status_reason/snapshot.json +42 -0
  124. package/migrations/20261013160816_agent_invocation_parent_mailbox/snapshot.json +93 -0
  125. package/migrations/20261013215020_agent_invocation_parent_tool_call/snapshot.json +42 -0
  126. package/migrations/20261014011138_agent_invocation_title/snapshot.json +42 -0
  127. package/migrations/20261014211942_conversation_stopped_at/snapshot.json +42 -0
  128. package/migrations/20261015012820_flowery_rage/snapshot.json +42 -0
  129. package/migrations/20261017000924_automations/snapshot.json +790 -0
  130. package/migrations/20261017134736_automation_runs/snapshot.json +474 -0
  131. package/migrations/20261017170250_drop_legacy_automation_tables/snapshot.json +397 -0
  132. package/migrations/20261018134754_automation_creator_identity/snapshot.json +130 -0
  133. package/migrations/20261023071954_automation_run_version/snapshot.json +79 -0
  134. package/migrations/20261025233137_identity_signed_in_at/snapshot.json +42 -0
  135. package/migrations/20261027234315_workspace_vcpus/snapshot.json +37 -0
  136. package/migrations/20261028124242_plugin_report_index/snapshot.json +68 -0
  137. package/migrations/20261028154230_agent_invocation_type/snapshot.json +42 -0
  138. package/migrations/20261030021803_any_resource_event_triggers/snapshot.json +42 -0
  139. package/migrations/20261030234309_user_customization/snapshot.json +37 -0
  140. package/migrations/20261031020656_review_items/snapshot.json +1078 -0
  141. package/migrations/20261031024151_review_item_dedupe_tenant/snapshot.json +62 -0
  142. package/migrations/20261031024246_review_item_slack_cards/snapshot.json +159 -0
  143. package/migrations/20261031155308_system_identity/snapshot.json +9 -0
  144. package/migrations/20261101193952_review_item_foreign_keys/snapshot.json +108 -0
  145. package/migrations/20261102172751_review_item_turn/snapshot.json +42 -0
  146. package/migrations/20261102221411_conversation_read_positions/snapshot.json +190 -0
  147. package/migrations/20261104085028_conversation_quick_question/snapshot.json +42 -0
  148. package/migrations/20261104145136_conversation_participant_pins/snapshot.json +42 -0
  149. package/migrations/20261104164429_conversation_detail_version/snapshot.json +42 -0
  150. package/migrations/20261104172055_conversation_auto_archive/snapshot.json +206 -0
  151. package/migrations/20261105005443_drop_agent_invocation_model_profile/snapshot.json +30 -0
  152. package/migrations/20261105043807_plugin_conversation_index/snapshot.json +76 -0
  153. package/migrations/20261105051837_conversation_event_author_index/snapshot.json +70 -0
  154. package/migrations/20261105182854_conversation_event_latest_message_indexes/snapshot.json +136 -0
  155. package/migrations/20261106011443_conversation_pin_position/snapshot.json +42 -0
  156. package/migrations/20261106095004_push_notifications/snapshot.json +308 -0
  157. package/migrations/20261106162740_conversation_kind/snapshot.json +88 -0
  158. package/migrations/20261107002001_read_position_backfill/snapshot.json +9 -0
  159. package/migrations/20261107025209_child_archived_at/snapshot.json +42 -0
  160. package/migrations/20261107035735_shared_archive/snapshot.json +67 -0
  161. package/migrations/20261107215055_child_location/snapshot.json +9 -0
  162. package/migrations/20261108191927_conversation_unsubscribe/snapshot.json +42 -0
  163. package/migrations/20261109021618_conversation_paused_status/snapshot.json +9 -0
  164. package/migrations/20261109111553_guardian_review_time_index/snapshot.json +54 -0
  165. package/migrations/20261109173130_conversation_participant_unsubscribed_index/snapshot.json +62 -0
  166. package/migrations/20261109182006_turn_metric_actor/snapshot.json +128 -0
  167. package/migrations/20261109202836_participant_root_actor_backfill/snapshot.json +9 -0
  168. package/migrations/20261109232640_conversation_delivery_paused_at/snapshot.json +42 -0
  169. package/migrations/20261110120937_web_linked_slack_identity_repair/snapshot.json +9 -0
  170. package/migrations/20261110175824_automation_task_kind/snapshot.json +145 -0
  171. package/migrations/20261110210242_conversation_kind_automation/snapshot.json +55 -0
  172. package/migrations/20261110222632_review_item_plugin_actions/snapshot.json +37 -0
  173. package/migrations/20261110225157_conversation_last_message_at/snapshot.json +42 -0
  174. package/migrations/20261111013351_automation_task_kind_repair/snapshot.json +9 -0
  175. package/migrations/20261111163126_drop_legacy_columns/snapshot.json +9 -0
  176. package/migrations/20261111170150_code_change_last_activity/snapshot.json +42 -0
  177. package/migrations/20261111191441_agent_invocation_fork/snapshot.json +42 -0
  178. package/migrations/20261112142841_code_change_draft/snapshot.json +37 -0
  179. package/migrations/20261112202901_attachment_uploads/snapshot.json +255 -0
  180. package/migrations/20261112220407_conversation_agent_config/snapshot.json +42 -0
  181. package/migrations/20261113081247_attachment_deferred_download/snapshot.json +52 -0
  182. package/migrations/20261113225551_conversation_embeddings/snapshot.json +203 -0
  183. package/migrations/20261114213238_user_preferences/snapshot.json +37 -0
  184. package/migrations/20261114222527_code_change_repository_state_index/snapshot.json +70 -0
  185. package/migrations/20261115172605_attachment_kinds/snapshot.json +244 -0
  186. package/migrations/20261115173004_attachment_url_fill/snapshot.json +9 -0
  187. package/migrations/20261115180216_attachment_url_index/snapshot.json +62 -0
  188. package/migrations/20261116103700_plan_items/snapshot.json +420 -0
  189. package/migrations/20261117100100_automation_creator_slack_index/snapshot.json +62 -0
  190. package/migrations/20261117132522_conversation_event_search/snapshot.json +396 -0
  191. package/migrations/20261117164007_automation_last_run/snapshot.json +108 -0
  192. package/migrations/20261117164047_automation_last_run_index/snapshot.json +54 -0
  193. package/migrations/20261117210444_money_micro_usd/snapshot.json +68 -0
  194. package/migrations/20261117210505_conversation_cost_micro_usd/snapshot.json +9 -0
  195. package/migrations/20261118081416_people_list_metric_index/snapshot.json +86 -0
  196. package/migrations/20261118095216_automation_rollout_repair/snapshot.json +9 -0
  197. package/migrations/20261118143948_cache_warming_history_reset/snapshot.json +9 -0
  198. package/migrations/20261119040651_artifact_visibility/snapshot.json +132 -0
  199. package/migrations/20261119040715_artifact_public_sha_index/snapshot.json +9 -0
  200. package/migrations/20261119052706_artifact_drop_public/snapshot.json +71 -0
  201. package/migrations/20261119053831_artifact_path/snapshot.json +114 -0
  202. package/migrations/20261119053844_artifact_path_index/snapshot.json +9 -0
  203. package/migrations/20261119091949_review_item_answered_index/snapshot.json +70 -0
  204. package/migrations/20261119100029_review_item_status_index/snapshot.json +54 -0
  205. package/migrations/20261119165607_brief_outcome_status/snapshot.json +42 -0
  206. package/migrations/20261119165622_brief_outcome_status_backfill/snapshot.json +9 -0
  207. package/migrations/20261119213716_brief_created_at_index/snapshot.json +62 -0
  208. package/migrations/20261119222456_slack_person_search_index/snapshot.json +50 -0
  209. package/migrations/20261119225522_code_change_size/snapshot.json +104 -0
  210. package/migrations/20261119232253_merge_conflict_notice_dismiss/snapshot.json +9 -0
  211. package/migrations/20261119235649_inbox_snoozes/snapshot.json +605 -0
  212. package/migrations/20261120093118_code_change_search_index/snapshot.json +89 -0
  213. package/migrations/20261120093452_review_item_owner/snapshot.json +314 -0
  214. package/migrations/20261120185654_review_item_owner_index/snapshot.json +62 -0
  215. package/migrations/20261120185754_memory_core_adoption/snapshot.json +1184 -0
  216. package/migrations/20261120185854_memory_core_indexes/snapshot.json +70 -0
  217. package/migrations/20261120235226_todos/snapshot.json +473 -0
  218. package/migrations/20261121082316_inbox_items/snapshot.json +2026 -0
  219. package/migrations/20261121175651_todo_changed_by_agent/snapshot.json +42 -0
  220. package/migrations/20261121183527_inbox_item_subject_title_parts/snapshot.json +42 -0
  221. package/migrations/20261121194143_inbox_snooze_wake_reason/snapshot.json +42 -0
  222. package/migrations/20261121222400_authorization_request_index/snapshot.json +62 -0
  223. package/migrations/20261121225908_conversation_metadata/snapshot.json +184 -0
  224. package/migrations/20261121225910_conversation_metadata_fill/snapshot.json +9 -0
  225. package/migrations/20261121225913_conversation_search_index/snapshot.json +50 -0
  226. package/migrations/20261122022900_inbox_item_legacy_automation_keys/snapshot.json +9 -0
  227. package/migrations/20261122024454_artifact_expiry/snapshot.json +37 -0
  228. package/migrations/20261122024455_artifact_permanent_sha_index/snapshot.json +62 -0
  229. package/migrations/20261122024457_artifact_drop_public_sha_index/snapshot.json +37 -0
  230. package/migrations/20261122024458_conversation_kind_lead/snapshot.json +55 -0
  231. package/migrations/20261122024459_conversation_lead_actor_index/snapshot.json +54 -0
  232. package/migrations/20261122071549_keep_legacy_archive_columns/snapshot.json +49 -0
  233. package/migrations/20261122191400_conversation_embeddings_fk_validate/snapshot.json +9 -0
  234. package/migrations/20261122204325_money_micro_usd_repair/snapshot.json +9 -0
  235. package/migrations/20261122204326_agent_config_backfill/snapshot.json +143 -0
  236. package/migrations/20261122221456_inbox_item_deliveries/snapshot.json +301 -0
  237. package/migrations/20261123155735_pg_trgm/snapshot.json +9 -0
  238. package/migrations/20261123155739_search_indexes/snapshot.json +167 -0
  239. package/migrations/20261123172647_drop_legacy_archive_columns/snapshot.json +9 -0
  240. package/migrations/20261123192506_memory_prefix_index/snapshot.json +69 -0
  241. package/migrations/20261123201740_todo_search_indexes/snapshot.json +89 -0
  242. package/migrations/20261123211505_todo_inbox_items/snapshot.json +38 -0
  243. package/migrations/20261123214917_drop_code_urls/snapshot.json +44 -0
  244. package/migrations/20261123224000_code_change_conversations_index/migration.sql +1 -0
  245. package/migrations/20261123224000_code_change_conversations_index/snapshot.json +54 -0
  246. package/migrations/20261124122023_drop_code_change_sizes/migration.sql +4 -0
  247. package/migrations/20261124122023_drop_code_change_sizes/snapshot.json +82 -0
  248. package/migrations/20261124142958_conversation_root_lookup_index/migration.sql +1 -0
  249. package/migrations/20261124142958_conversation_root_lookup_index/snapshot.json +62 -0
  250. package/migrations/20261124183352_legacy_brief_metadata_fill/migration.sql +26 -0
  251. package/migrations/20261124183352_legacy_brief_metadata_fill/snapshot.json +114 -0
  252. package/migrations/20261124202143_drizzle_v1_baseline/migration.sql +5 -0
  253. package/migrations/20261124202143_drizzle_v1_baseline/snapshot.json +2012 -0
  254. package/migrations/20261124221751_spaces/migration.sql +22 -0
  255. package/migrations/20261124221751_spaces/snapshot.json +436 -0
  256. package/migrations/20261124230319_conversation_metrics_utc_day_stats/migration.sql +11 -0
  257. package/migrations/20261124230319_conversation_metrics_utc_day_stats/snapshot.json +9 -0
  258. package/migrations/20261124234024_space_conversations/migration.sql +5 -0
  259. package/migrations/20261124234024_space_conversations/snapshot.json +103 -0
  260. package/migrations/20261124234026_space_conversations_index/migration.sql +1 -0
  261. package/migrations/20261124234026_space_conversations_index/snapshot.json +62 -0
  262. package/migrations/20261125012448_drop_lead_actor_index/migration.sql +3 -0
  263. package/migrations/20261125012448_drop_lead_actor_index/snapshot.json +36 -0
  264. package/migrations/20261125012452_space_lead_index/migration.sql +1 -0
  265. package/migrations/20261125012452_space_lead_index/snapshot.json +54 -0
  266. package/migrations/20261125043821_space_configurations/migration.sql +11 -0
  267. package/migrations/20261125043821_space_configurations/snapshot.json +194 -0
  268. package/migrations/20261125064854_agent_update_done_status/migration.sql +9 -0
  269. package/migrations/20261125064854_agent_update_done_status/snapshot.json +9 -0
  270. package/migrations/20261125073321_turn_engine_tables/migration.sql +75 -0
  271. package/migrations/20261125073321_turn_engine_tables/snapshot.json +1497 -0
  272. package/migrations/20261125073339_turn_inbox_one_source/migration.sql +5 -0
  273. package/migrations/20261125073339_turn_inbox_one_source/snapshot.json +9 -0
  274. package/migrations/20261125124506_versions_notify/migration.sql +27 -0
  275. package/migrations/20261125124506_versions_notify/snapshot.json +9 -0
  276. package/migrations/20261125140339_turn_group_key/migration.sql +14 -0
  277. package/migrations/20261125140339_turn_group_key/snapshot.json +75 -0
  278. package/migrations/20261125140343_turn_group_key_not_null/migration.sql +4 -0
  279. package/migrations/20261125140343_turn_group_key_not_null/snapshot.json +29 -0
  280. package/migrations/20261125142845_code_change_requesters/migration.sql +1 -0
  281. package/migrations/20261125142845_code_change_requesters/snapshot.json +42 -0
  282. package/migrations/20261125142846_code_change_requesters_index/migration.sql +1 -0
  283. package/migrations/20261125142846_code_change_requesters_index/snapshot.json +54 -0
  284. package/migrations/20261125143903_space_visibility/migration.sql +1 -0
  285. package/migrations/20261125143903_space_visibility/snapshot.json +37 -0
  286. package/migrations/20261125154848_merge_leaves/migration.sql +2 -0
  287. package/migrations/20261125154848_merge_leaves/snapshot.json +14 -0
  288. package/migrations/20261125171254_conversation_visibility/migration.sql +4 -0
  289. package/migrations/20261125171254_conversation_visibility/snapshot.json +67 -0
  290. package/migrations/20261125171257_conversation_visibility_backfill/migration.sql +25 -0
  291. package/migrations/20261125171257_conversation_visibility_backfill/snapshot.json +9 -0
  292. package/migrations/20261125213232_drop_versions_notify/migration.sql +19 -0
  293. package/migrations/20261125213232_drop_versions_notify/snapshot.json +9 -0
  294. package/migrations/20261125225138_conversation_kind_root_thread/migration.sql +23 -0
  295. package/migrations/20261125225138_conversation_kind_root_thread/snapshot.json +55 -0
  296. package/migrations/20261125225142_conversation_kind_root_thread_backfill/migration.sql +7 -0
  297. package/migrations/20261125225142_conversation_kind_root_thread_backfill/snapshot.json +9 -0
  298. package/migrations/20261126000151_conversation_event_message_role_seq_index/migration.sql +1 -0
  299. package/migrations/20261126000151_conversation_event_message_role_seq_index/snapshot.json +69 -0
  300. package/migrations/20261126012917_merge_leaves/migration.sql +2 -0
  301. package/migrations/20261126012917_merge_leaves/snapshot.json +12 -0
  302. package/package.json +13 -12
  303. package/skills/design-automation-skill/SKILL.md +1 -1
  304. package/skills/jr-rpc/SKILL.md +3 -5
  305. package/dist/adapter-JARQvoLw.js +0 -258
  306. package/dist/adapter-context-B4BrJZuS.js +0 -43
  307. package/dist/agent-runner-qZU5TR8i.js +0 -11974
  308. package/dist/agent-update-cS7Z9mnG.js +0 -26
  309. package/dist/background-compaction-queue-C_uIBUvS.js +0 -145
  310. package/dist/callback-C8SdXCwr.js +0 -68
  311. package/dist/catalog-runtime-BLKtnUL3.js +0 -6
  312. package/dist/config-BIfHKNXN.js +0 -2336
  313. package/dist/db-BTmLKZrp.js +0 -5804
  314. package/dist/db-DcmzbA55.d.ts +0 -274
  315. package/dist/history-CneKY7_V.js +0 -595
  316. package/dist/install-OtFboxOM.js +0 -228
  317. package/dist/proxy-path-BHYoKZdq.js +0 -15
  318. package/dist/registry-D6kS6xYH.js +0 -3024
  319. package/dist/rule-DAxQY-1h.js +0 -20
  320. package/dist/schema-BB6E0wyV.d.ts +0 -9472
  321. package/dist/start-conversation-a4NXH4X9.js +0 -752
  322. package/dist/store-BuhF1QDm.js +0 -490
  323. package/dist/task-queue-CrRjFzOh.js +0 -79
  324. package/dist/turn-session-routing-CZTRU8IY.js +0 -116
  325. package/dist/vercel-queue-nL0Hq3hr.js +0 -234
  326. package/dist/warmup-CCOuIwAS.js +0 -12759
  327. package/migrations/meta/0000_snapshot.json +0 -946
  328. package/migrations/meta/0001_snapshot.json +0 -972
  329. package/migrations/meta/0002_snapshot.json +0 -987
  330. package/migrations/meta/0003_snapshot.json +0 -1035
  331. package/migrations/meta/0004_snapshot.json +0 -1041
  332. package/migrations/meta/0005_snapshot.json +0 -948
  333. package/migrations/meta/0006_snapshot.json +0 -948
  334. package/migrations/meta/0007_snapshot.json +0 -1013
  335. package/migrations/meta/0008_snapshot.json +0 -1076
  336. package/migrations/meta/0009_snapshot.json +0 -1146
  337. package/migrations/meta/0010_snapshot.json +0 -1190
  338. package/migrations/meta/0011_snapshot.json +0 -1195
  339. package/migrations/meta/0012_snapshot.json +0 -1244
  340. package/migrations/meta/0013_snapshot.json +0 -1250
  341. package/migrations/meta/0014_snapshot.json +0 -1201
  342. package/migrations/meta/0015_snapshot.json +0 -1360
  343. package/migrations/meta/0016_snapshot.json +0 -1617
  344. package/migrations/meta/0017_snapshot.json +0 -1666
  345. package/migrations/meta/0018_snapshot.json +0 -1756
  346. package/migrations/meta/0019_snapshot.json +0 -1904
  347. package/migrations/meta/0020_snapshot.json +0 -1848
  348. package/migrations/meta/0021_snapshot.json +0 -2176
  349. package/migrations/meta/0022_snapshot.json +0 -2186
  350. package/migrations/meta/0023_snapshot.json +0 -2198
  351. package/migrations/meta/0024_snapshot.json +0 -2275
  352. package/migrations/meta/0025_snapshot.json +0 -2275
  353. package/migrations/meta/0026_snapshot.json +0 -2424
  354. package/migrations/meta/0027_snapshot.json +0 -2554
  355. package/migrations/meta/0028_snapshot.json +0 -2685
  356. package/migrations/meta/0029_snapshot.json +0 -2709
  357. package/migrations/meta/0030_snapshot.json +0 -2799
  358. package/migrations/meta/0031_snapshot.json +0 -2823
  359. package/migrations/meta/0032_snapshot.json +0 -2892
  360. package/migrations/meta/0033_snapshot.json +0 -2914
  361. package/migrations/meta/0034_snapshot.json +0 -3038
  362. package/migrations/meta/0035_snapshot.json +0 -3048
  363. package/migrations/meta/0036_snapshot.json +0 -3186
  364. package/migrations/meta/0037_snapshot.json +0 -3192
  365. package/migrations/meta/0038_snapshot.json +0 -3323
  366. package/migrations/meta/0039_snapshot.json +0 -3368
  367. package/migrations/meta/0040_snapshot.json +0 -3516
  368. package/migrations/meta/0041_snapshot.json +0 -3516
  369. package/migrations/meta/0042_snapshot.json +0 -3610
  370. package/migrations/meta/0043_snapshot.json +0 -3610
  371. package/migrations/meta/0044_snapshot.json +0 -3473
  372. package/migrations/meta/0045_snapshot.json +0 -3503
  373. package/migrations/meta/0046_snapshot.json +0 -3707
  374. package/migrations/meta/0047_snapshot.json +0 -3713
  375. package/migrations/meta/0048_snapshot.json +0 -3720
  376. package/migrations/meta/0049_snapshot.json +0 -3581
  377. package/migrations/meta/0050_snapshot.json +0 -3753
  378. package/migrations/meta/0051_snapshot.json +0 -3759
  379. package/migrations/meta/0052_snapshot.json +0 -3765
  380. package/migrations/meta/0053_snapshot.json +0 -3771
  381. package/migrations/meta/0054_snapshot.json +0 -3777
  382. package/migrations/meta/0055_snapshot.json +0 -3948
  383. package/migrations/meta/0056_snapshot.json +0 -4280
  384. package/migrations/meta/0057_snapshot.json +0 -3618
  385. package/migrations/meta/0058_snapshot.json +0 -3598
  386. package/migrations/meta/0059_snapshot.json +0 -3619
  387. package/migrations/meta/0060_snapshot.json +0 -3465
  388. package/migrations/meta/0061_snapshot.json +0 -3471
  389. package/migrations/meta/0062_snapshot.json +0 -3499
  390. package/migrations/meta/0063_snapshot.json +0 -3505
  391. package/migrations/meta/0064_snapshot.json +0 -3505
  392. package/migrations/meta/0065_snapshot.json +0 -3511
  393. package/migrations/meta/0066_snapshot.json +0 -4099
  394. package/migrations/meta/0067_snapshot.json +0 -3921
  395. package/migrations/meta/0068_snapshot.json +0 -4176
  396. package/migrations/meta/0069_snapshot.json +0 -3979
  397. package/migrations/meta/0070_snapshot.json +0 -3997
  398. package/migrations/meta/0071_snapshot.json +0 -4003
  399. package/migrations/meta/0072_snapshot.json +0 -4064
  400. package/migrations/meta/0073_snapshot.json +0 -4070
  401. package/migrations/meta/0074_snapshot.json +0 -4076
  402. package/migrations/meta/0075_snapshot.json +0 -4083
  403. package/migrations/meta/0076_snapshot.json +0 -4147
  404. package/migrations/meta/0077_snapshot.json +0 -4141
  405. package/migrations/meta/0078_snapshot.json +0 -4175
  406. package/migrations/meta/0079_snapshot.json +0 -4203
  407. package/migrations/meta/0080_snapshot.json +0 -4265
  408. package/migrations/meta/0081_snapshot.json +0 -4271
  409. package/migrations/meta/0082_snapshot.json +0 -4373
  410. package/migrations/meta/0083_snapshot.json +0 -4388
  411. package/migrations/meta/0084_snapshot.json +0 -4388
  412. package/migrations/meta/0085_snapshot.json +0 -4394
  413. package/migrations/meta/0086_snapshot.json +0 -4366
  414. package/migrations/meta/0087_snapshot.json +0 -4366
  415. package/migrations/meta/0088_snapshot.json +0 -4372
  416. package/migrations/meta/0089_snapshot.json +0 -4372
  417. package/migrations/meta/0090_snapshot.json +0 -4388
  418. package/migrations/meta/0091_snapshot.json +0 -4410
  419. package/migrations/meta/0092_snapshot.json +0 -4446
  420. package/migrations/meta/0093_snapshot.json +0 -4446
  421. package/migrations/meta/0094_snapshot.json +0 -4452
  422. package/migrations/meta/0095_snapshot.json +0 -4452
  423. package/migrations/meta/0096_snapshot.json +0 -4490
  424. package/migrations/meta/0097_snapshot.json +0 -4490
  425. package/migrations/meta/0098_snapshot.json +0 -4490
  426. package/migrations/meta/0099_snapshot.json +0 -4496
  427. package/migrations/meta/0100_snapshot.json +0 -4496
  428. package/migrations/meta/0101_snapshot.json +0 -4496
  429. package/migrations/meta/0102_snapshot.json +0 -4502
  430. package/migrations/meta/0103_snapshot.json +0 -4509
  431. package/migrations/meta/0104_snapshot.json +0 -4516
  432. package/migrations/meta/0105_snapshot.json +0 -4611
  433. package/migrations/meta/0106_snapshot.json +0 -4617
  434. package/migrations/meta/0107_snapshot.json +0 -4617
  435. package/migrations/meta/0108_snapshot.json +0 -4688
  436. package/migrations/meta/0109_snapshot.json +0 -4925
  437. package/migrations/meta/0110_snapshot.json +0 -4952
  438. package/migrations/meta/0111_snapshot.json +0 -5011
  439. package/migrations/meta/0112_snapshot.json +0 -5011
  440. package/migrations/meta/0113_snapshot.json +0 -5033
  441. package/migrations/meta/0114_snapshot.json +0 -5203
  442. package/migrations/meta/0115_snapshot.json +0 -5225
  443. package/migrations/meta/0116_snapshot.json +0 -5388
  444. package/migrations/meta/0117_snapshot.json +0 -5413
  445. package/migrations/meta/0118_snapshot.json +0 -5428
  446. package/migrations/meta/0119_snapshot.json +0 -5441
  447. package/migrations/meta/0120_snapshot.json +0 -5441
  448. package/migrations/meta/0121_snapshot.json +0 -5481
  449. package/migrations/meta/0122_snapshot.json +0 -5481
  450. package/migrations/meta/0123_snapshot.json +0 -5481
  451. package/migrations/meta/0124_snapshot.json +0 -5516
  452. package/migrations/meta/0125_snapshot.json +0 -5516
  453. package/migrations/meta/0126_snapshot.json +0 -5488
  454. package/migrations/meta/0127_snapshot.json +0 -5519
  455. package/migrations/meta/0128_snapshot.json +0 -5519
  456. package/migrations/meta/0129_snapshot.json +0 -5547
  457. package/migrations/meta/0130_snapshot.json +0 -5563
  458. package/migrations/meta/0131_snapshot.json +0 -5569
  459. package/migrations/meta/0132_snapshot.json +0 -5569
  460. package/migrations/meta/0133_snapshot.json +0 -5590
  461. package/migrations/meta/0134_snapshot.json +0 -5606
  462. package/migrations/meta/0135_snapshot.json +0 -5624
  463. package/migrations/meta/0136_snapshot.json +0 -5624
  464. package/migrations/meta/0137_snapshot.json +0 -5864
  465. package/migrations/meta/0138_snapshot.json +0 -5894
  466. package/migrations/meta/0139_snapshot.json +0 -5898
  467. package/migrations/meta/0140_snapshot.json +0 -5919
  468. package/migrations/meta/0141_snapshot.json +0 -6429
  469. package/migrations/meta/0142_snapshot.json +0 -6457
  470. package/migrations/meta/0143_snapshot.json +0 -6434
  471. package/migrations/meta/0144_snapshot.json +0 -6434
  472. package/migrations/meta/0145_snapshot.json +0 -6440
  473. package/migrations/meta/0146_snapshot.json +0 -6446
  474. package/migrations/meta/0147_snapshot.json +0 -6452
  475. package/migrations/meta/0148_snapshot.json +0 -6474
  476. package/migrations/meta/0149_snapshot.json +0 -6490
  477. package/migrations/meta/0150_snapshot.json +0 -6490
  478. package/migrations/meta/0151_snapshot.json +0 -6505
  479. package/migrations/meta/0152_snapshot.json +0 -6505
  480. package/migrations/meta/0153_snapshot.json +0 -6511
  481. package/migrations/meta/0154_snapshot.json +0 -6533
  482. package/migrations/meta/0155_snapshot.json +0 -6511
  483. package/migrations/meta/0156_snapshot.json +0 -6511
  484. package/migrations/meta/0157_snapshot.json +0 -6527
  485. package/migrations/meta/0158_snapshot.json +0 -6515
  486. package/migrations/meta/0159_snapshot.json +0 -6515
  487. package/migrations/meta/0160_snapshot.json +0 -6515
  488. package/migrations/meta/0161_snapshot.json +0 -6278
  489. package/migrations/meta/0162_snapshot.json +0 -6404
  490. package/migrations/meta/0163_snapshot.json +0 -6404
  491. package/migrations/meta/0164_snapshot.json +0 -6466
  492. package/migrations/meta/0165_snapshot.json +0 -6466
  493. package/migrations/meta/0166_snapshot.json +0 -6494
  494. package/migrations/meta/0167_snapshot.json +0 -6525
  495. package/migrations/meta/0168_snapshot.json +0 -6525
  496. package/migrations/meta/0169_snapshot.json +0 -6513
  497. package/migrations/meta/_journal.json +0 -1196
  498. /package/migrations/{0000_initial.sql → 20260711145847_initial/migration.sql} +0 -0
  499. /package/migrations/{0001_conversation_metrics.sql → 20260711145900_conversation_metrics/migration.sql} +0 -0
  500. /package/migrations/{0002_conversation_message_search.sql → 20260712153649_conversation_message_search/migration.sql} +0 -0
  501. /package/migrations/{0003_peaceful_scalphunter.sql → 20260713040256_peaceful_scalphunter/migration.sql} +0 -0
  502. /package/migrations/{0004_useful_magus.sql → 20260715174202_useful_magus/migration.sql} +0 -0
  503. /package/migrations/{0005_conversation_events.sql → 20260715174203_conversation_events/migration.sql} +0 -0
  504. /package/migrations/{0006_drop_legacy_conversation_messages.sql → 20260723042835_drop_legacy_conversation_messages/migration.sql} +0 -0
  505. /package/migrations/{0007_thick_sugar_man.sql → 20260723050612_thick_sugar_man/migration.sql} +0 -0
  506. /package/migrations/{0008_sticky_rage.sql → 20260727223822_sticky_rage/migration.sql} +0 -0
  507. /package/migrations/{0009_slippery_harrier.sql → 20260728033158_slippery_harrier/migration.sql} +0 -0
  508. /package/migrations/{0010_native_conversation_history.sql → 20260728040836_native_conversation_history/migration.sql} +0 -0
  509. /package/migrations/{0011_sour_golden_guardian.sql → 20260728204900_sour_golden_guardian/migration.sql} +0 -0
  510. /package/migrations/{0012_structured_conversation_events.sql → 20260730233332_structured_conversation_events/migration.sql} +0 -0
  511. /package/migrations/{0013_conversation_session_source.sql → 20260731164038_conversation_session_source/migration.sql} +0 -0
  512. /package/migrations/{0014_source_visibility.sql → 20260801230336_source_visibility/migration.sql} +0 -0
  513. /package/migrations/{0015_magical_ezekiel_stane.sql → 20260802023731_magical_ezekiel_stane/migration.sql} +0 -0
  514. /package/migrations/{0016_neat_the_anarchist.sql → 20260804015843_neat_the_anarchist/migration.sql} +0 -0
  515. /package/migrations/{0017_drop_paused_scheduled_tasks.sql → 20260804165952_drop_paused_scheduled_tasks/migration.sql} +0 -0
  516. /package/migrations/{0018_curvy_excalibur.sql → 20260804225613_curvy_excalibur/migration.sql} +0 -0
  517. /package/migrations/{0019_lowly_valkyrie.sql → 20260805174033_lowly_valkyrie/migration.sql} +0 -0
  518. /package/migrations/{0020_restrict_task_execution_kinds.sql → 20260805200301_restrict_task_execution_kinds/migration.sql} +0 -0
  519. /package/migrations/{0021_first_warhawk.sql → 20260806030729_first_warhawk/migration.sql} +0 -0
  520. /package/migrations/{0022_task_execution_status.sql → 20260807185200_task_execution_status/migration.sql} +0 -0
  521. /package/migrations/{0023_task_title_columns.sql → 20260808014743_task_title_columns/migration.sql} +0 -0
  522. /package/migrations/{0024_misty_typhoid_mary.sql → 20260809220421_misty_typhoid_mary/migration.sql} +0 -0
  523. /package/migrations/{0025_mcp_credential_subject.sql → 20260811193709_mcp_credential_subject/migration.sql} +0 -0
  524. /package/migrations/{0026_conversation_event_actor_and_participants.sql → 20260812032924_conversation_event_actor_and_participants/migration.sql} +0 -0
  525. /package/migrations/{0027_attachment_storage.sql → 20260812172418_attachment_storage/migration.sql} +0 -0
  526. /package/migrations/{0028_artifacts.sql → 20260813230732_artifacts/migration.sql} +0 -0
  527. /package/migrations/{0029_dizzy_barracuda.sql → 20260814062905_dizzy_barracuda/migration.sql} +0 -0
  528. /package/migrations/{0030_drop_workspace_repo_primary.sql → 20260814231353_drop_workspace_repo_primary/migration.sql} +0 -0
  529. /package/migrations/{0031_wild_phantom_reporter.sql → 20260815030100_wild_phantom_reporter/migration.sql} +0 -0
  530. /package/migrations/{0032_workspace_snapshots_table.sql → 20260817082233_workspace_snapshots_table/migration.sql} +0 -0
  531. /package/migrations/{0033_workspace_snapshot_active_build.sql → 20260818160339_workspace_snapshot_active_build/migration.sql} +0 -0
  532. /package/migrations/{0034_strong_randall.sql → 20260821180755_strong_randall/migration.sql} +0 -0
  533. /package/migrations/{0035_workspace_snapshot_size_bytes.sql → 20260823030308_workspace_snapshot_size_bytes/migration.sql} +0 -0
  534. /package/migrations/{0036_complex_rage.sql → 20260824190313_complex_rage/migration.sql} +0 -0
  535. /package/migrations/{0037_conversation_location.sql → 20260827233711_conversation_location/migration.sql} +0 -0
  536. /package/migrations/{0038_event_task_status.sql → 20260901224306_event_task_status/migration.sql} +0 -0
  537. /package/migrations/{0039_attachment_provider.sql → 20260904153232_attachment_provider/migration.sql} +0 -0
  538. /package/migrations/{0040_conversation_briefs.sql → 20260909111415_conversation_briefs/migration.sql} +0 -0
  539. /package/migrations/{0041_automation_outcomes_backfill.sql → 20260910144928_automation_outcomes_backfill/migration.sql} +0 -0
  540. /package/migrations/{0042_conversation_metrics.sql → 20260911184346_conversation_metrics/migration.sql} +0 -0
  541. /package/migrations/{0043_scheduled_automation_channel_destinations.sql → 20260921140842_scheduled_automation_channel_destinations/migration.sql} +0 -0
  542. /package/migrations/{0044_event_automation_channel_destinations.sql → 20260922221709_event_automation_channel_destinations/migration.sql} +0 -0
  543. /package/migrations/{0045_conversation_forks.sql → 20261001113455_conversation_forks/migration.sql} +0 -0
  544. /package/migrations/{0046_automation_versions.sql → 20261005161844_automation_versions/migration.sql} +0 -0
  545. /package/migrations/{0047_user_timezone.sql → 20261006152043_user_timezone/migration.sql} +0 -0
  546. /package/migrations/{0048_user_admin.sql → 20261008200858_user_admin/migration.sql} +0 -0
  547. /package/migrations/{0049_event_automation_status_reason.sql → 20261009145407_event_automation_status_reason/migration.sql} +0 -0
  548. /package/migrations/{0050_agent_invocation_parent_mailbox.sql → 20261013160816_agent_invocation_parent_mailbox/migration.sql} +0 -0
  549. /package/migrations/{0051_agent_invocation_parent_tool_call.sql → 20261013215020_agent_invocation_parent_tool_call/migration.sql} +0 -0
  550. /package/migrations/{0052_agent_invocation_title.sql → 20261014011138_agent_invocation_title/migration.sql} +0 -0
  551. /package/migrations/{0053_conversation_stopped_at.sql → 20261014211942_conversation_stopped_at/migration.sql} +0 -0
  552. /package/migrations/{0054_flowery_rage.sql → 20261015012820_flowery_rage/migration.sql} +0 -0
  553. /package/migrations/{0055_automations.sql → 20261017000924_automations/migration.sql} +0 -0
  554. /package/migrations/{0056_automation_runs.sql → 20261017134736_automation_runs/migration.sql} +0 -0
  555. /package/migrations/{0057_drop_legacy_automation_tables.sql → 20261017170250_drop_legacy_automation_tables/migration.sql} +0 -0
  556. /package/migrations/{0058_automation_creator_identity.sql → 20261018134754_automation_creator_identity/migration.sql} +0 -0
  557. /package/migrations/{0059_automation_run_version.sql → 20261023071954_automation_run_version/migration.sql} +0 -0
  558. /package/migrations/{0060_identity_signed_in_at.sql → 20261025233137_identity_signed_in_at/migration.sql} +0 -0
  559. /package/migrations/{0061_workspace_vcpus.sql → 20261027234315_workspace_vcpus/migration.sql} +0 -0
  560. /package/migrations/{0062_plugin_report_index.sql → 20261028124242_plugin_report_index/migration.sql} +0 -0
  561. /package/migrations/{0063_agent_invocation_type.sql → 20261028154230_agent_invocation_type/migration.sql} +0 -0
  562. /package/migrations/{0064_any_resource_event_triggers.sql → 20261030021803_any_resource_event_triggers/migration.sql} +0 -0
  563. /package/migrations/{0065_user_customization.sql → 20261030234309_user_customization/migration.sql} +0 -0
  564. /package/migrations/{0066_review_items.sql → 20261031020656_review_items/migration.sql} +0 -0
  565. /package/migrations/{0067_review_item_dedupe_tenant.sql → 20261031024151_review_item_dedupe_tenant/migration.sql} +0 -0
  566. /package/migrations/{0068_review_item_slack_cards.sql → 20261031024246_review_item_slack_cards/migration.sql} +0 -0
  567. /package/migrations/{0069_system_identity.sql → 20261031155308_system_identity/migration.sql} +0 -0
  568. /package/migrations/{0070_review_item_foreign_keys.sql → 20261101193952_review_item_foreign_keys/migration.sql} +0 -0
  569. /package/migrations/{0071_review_item_turn.sql → 20261102172751_review_item_turn/migration.sql} +0 -0
  570. /package/migrations/{0072_conversation_read_positions.sql → 20261102221411_conversation_read_positions/migration.sql} +0 -0
  571. /package/migrations/{0073_conversation_quick_question.sql → 20261104085028_conversation_quick_question/migration.sql} +0 -0
  572. /package/migrations/{0074_conversation_participant_pins.sql → 20261104145136_conversation_participant_pins/migration.sql} +0 -0
  573. /package/migrations/{0075_conversation_detail_version.sql → 20261104164429_conversation_detail_version/migration.sql} +0 -0
  574. /package/migrations/{0076_conversation_auto_archive.sql → 20261104172055_conversation_auto_archive/migration.sql} +0 -0
  575. /package/migrations/{0077_drop_agent_invocation_model_profile.sql → 20261105005443_drop_agent_invocation_model_profile/migration.sql} +0 -0
  576. /package/migrations/{0078_plugin_conversation_index.sql → 20261105043807_plugin_conversation_index/migration.sql} +0 -0
  577. /package/migrations/{0079_conversation_event_author_index.sql → 20261105051837_conversation_event_author_index/migration.sql} +0 -0
  578. /package/migrations/{0080_conversation_event_latest_message_indexes.sql → 20261105182854_conversation_event_latest_message_indexes/migration.sql} +0 -0
  579. /package/migrations/{0081_conversation_pin_position.sql → 20261106011443_conversation_pin_position/migration.sql} +0 -0
  580. /package/migrations/{0082_push_notifications.sql → 20261106095004_push_notifications/migration.sql} +0 -0
  581. /package/migrations/{0083_conversation_kind.sql → 20261106162740_conversation_kind/migration.sql} +0 -0
  582. /package/migrations/{0084_read_position_backfill.sql → 20261107002001_read_position_backfill/migration.sql} +0 -0
  583. /package/migrations/{0085_child_archived_at.sql → 20261107025209_child_archived_at/migration.sql} +0 -0
  584. /package/migrations/{0086_shared_archive.sql → 20261107035735_shared_archive/migration.sql} +0 -0
  585. /package/migrations/{0087_child_location.sql → 20261107215055_child_location/migration.sql} +0 -0
  586. /package/migrations/{0088_conversation_unsubscribe.sql → 20261108191927_conversation_unsubscribe/migration.sql} +0 -0
  587. /package/migrations/{0089_conversation_paused_status.sql → 20261109021618_conversation_paused_status/migration.sql} +0 -0
  588. /package/migrations/{0090_guardian_review_time_index.sql → 20261109111553_guardian_review_time_index/migration.sql} +0 -0
  589. /package/migrations/{0091_conversation_participant_unsubscribed_index.sql → 20261109173130_conversation_participant_unsubscribed_index/migration.sql} +0 -0
  590. /package/migrations/{0092_turn_metric_actor.sql → 20261109182006_turn_metric_actor/migration.sql} +0 -0
  591. /package/migrations/{0093_participant_root_actor_backfill.sql → 20261109202836_participant_root_actor_backfill/migration.sql} +0 -0
  592. /package/migrations/{0094_conversation_delivery_paused_at.sql → 20261109232640_conversation_delivery_paused_at/migration.sql} +0 -0
  593. /package/migrations/{0095_web_linked_slack_identity_repair.sql → 20261110120937_web_linked_slack_identity_repair/migration.sql} +0 -0
  594. /package/migrations/{0096_automation_task_kind.sql → 20261110175824_automation_task_kind/migration.sql} +0 -0
  595. /package/migrations/{0097_conversation_kind_automation.sql → 20261110210242_conversation_kind_automation/migration.sql} +0 -0
  596. /package/migrations/{0098_review_item_plugin_actions.sql → 20261110222632_review_item_plugin_actions/migration.sql} +0 -0
  597. /package/migrations/{0099_conversation_last_message_at.sql → 20261110225157_conversation_last_message_at/migration.sql} +0 -0
  598. /package/migrations/{0100_automation_task_kind_repair.sql → 20261111013351_automation_task_kind_repair/migration.sql} +0 -0
  599. /package/migrations/{0101_drop_legacy_columns.sql → 20261111163126_drop_legacy_columns/migration.sql} +0 -0
  600. /package/migrations/{0102_code_change_last_activity.sql → 20261111170150_code_change_last_activity/migration.sql} +0 -0
  601. /package/migrations/{0103_agent_invocation_fork.sql → 20261111191441_agent_invocation_fork/migration.sql} +0 -0
  602. /package/migrations/{0104_code_change_draft.sql → 20261112142841_code_change_draft/migration.sql} +0 -0
  603. /package/migrations/{0105_attachment_uploads.sql → 20261112202901_attachment_uploads/migration.sql} +0 -0
  604. /package/migrations/{0106_conversation_agent_config.sql → 20261112220407_conversation_agent_config/migration.sql} +0 -0
  605. /package/migrations/{0107_attachment_deferred_download.sql → 20261113081247_attachment_deferred_download/migration.sql} +0 -0
  606. /package/migrations/{0108_conversation_embeddings.sql → 20261113225551_conversation_embeddings/migration.sql} +0 -0
  607. /package/migrations/{0109_user_preferences.sql → 20261114213238_user_preferences/migration.sql} +0 -0
  608. /package/migrations/{0110_code_change_repository_state_index.sql → 20261114222527_code_change_repository_state_index/migration.sql} +0 -0
  609. /package/migrations/{0111_attachment_kinds.sql → 20261115172605_attachment_kinds/migration.sql} +0 -0
  610. /package/migrations/{0112_attachment_url_fill.sql → 20261115173004_attachment_url_fill/migration.sql} +0 -0
  611. /package/migrations/{0113_attachment_url_index.sql → 20261115180216_attachment_url_index/migration.sql} +0 -0
  612. /package/migrations/{0114_plan_items.sql → 20261116103700_plan_items/migration.sql} +0 -0
  613. /package/migrations/{0115_automation_creator_slack_index.sql → 20261117100100_automation_creator_slack_index/migration.sql} +0 -0
  614. /package/migrations/{0116_conversation_event_search.sql → 20261117132522_conversation_event_search/migration.sql} +0 -0
  615. /package/migrations/{0117_automation_last_run.sql → 20261117164007_automation_last_run/migration.sql} +0 -0
  616. /package/migrations/{0118_automation_last_run_index.sql → 20261117164047_automation_last_run_index/migration.sql} +0 -0
  617. /package/migrations/{0119_money_micro_usd.sql → 20261117210444_money_micro_usd/migration.sql} +0 -0
  618. /package/migrations/{0120_conversation_cost_micro_usd.sql → 20261117210505_conversation_cost_micro_usd/migration.sql} +0 -0
  619. /package/migrations/{0121_people_list_metric_index.sql → 20261118081416_people_list_metric_index/migration.sql} +0 -0
  620. /package/migrations/{0122_automation_rollout_repair.sql → 20261118095216_automation_rollout_repair/migration.sql} +0 -0
  621. /package/migrations/{0123_cache_warming_history_reset.sql → 20261118143948_cache_warming_history_reset/migration.sql} +0 -0
  622. /package/migrations/{0124_artifact_visibility.sql → 20261119040651_artifact_visibility/migration.sql} +0 -0
  623. /package/migrations/{0125_artifact_public_sha_index.sql → 20261119040715_artifact_public_sha_index/migration.sql} +0 -0
  624. /package/migrations/{0126_artifact_drop_public.sql → 20261119052706_artifact_drop_public/migration.sql} +0 -0
  625. /package/migrations/{0127_artifact_path.sql → 20261119053831_artifact_path/migration.sql} +0 -0
  626. /package/migrations/{0128_artifact_path_index.sql → 20261119053844_artifact_path_index/migration.sql} +0 -0
  627. /package/migrations/{0129_review_item_answered_index.sql → 20261119091949_review_item_answered_index/migration.sql} +0 -0
  628. /package/migrations/{0130_review_item_status_index.sql → 20261119100029_review_item_status_index/migration.sql} +0 -0
  629. /package/migrations/{0131_brief_outcome_status.sql → 20261119165607_brief_outcome_status/migration.sql} +0 -0
  630. /package/migrations/{0132_brief_outcome_status_backfill.sql → 20261119165622_brief_outcome_status_backfill/migration.sql} +0 -0
  631. /package/migrations/{0133_brief_created_at_index.sql → 20261119213716_brief_created_at_index/migration.sql} +0 -0
  632. /package/migrations/{0134_slack_person_search_index.sql → 20261119222456_slack_person_search_index/migration.sql} +0 -0
  633. /package/migrations/{0135_code_change_size.sql → 20261119225522_code_change_size/migration.sql} +0 -0
  634. /package/migrations/{0136_merge_conflict_notice_dismiss.sql → 20261119232253_merge_conflict_notice_dismiss/migration.sql} +0 -0
  635. /package/migrations/{0137_inbox_snoozes.sql → 20261119235649_inbox_snoozes/migration.sql} +0 -0
  636. /package/migrations/{0138_code_change_search_index.sql → 20261120093118_code_change_search_index/migration.sql} +0 -0
  637. /package/migrations/{0139_review_item_owner.sql → 20261120093452_review_item_owner/migration.sql} +0 -0
  638. /package/migrations/{0140_review_item_owner_index.sql → 20261120185654_review_item_owner_index/migration.sql} +0 -0
  639. /package/migrations/{0141_memory_core_adoption.sql → 20261120185754_memory_core_adoption/migration.sql} +0 -0
  640. /package/migrations/{0142_memory_core_indexes.sql → 20261120185854_memory_core_indexes/migration.sql} +0 -0
  641. /package/migrations/{0143_todos.sql → 20261120235226_todos/migration.sql} +0 -0
  642. /package/migrations/{0144_inbox_items.sql → 20261121082316_inbox_items/migration.sql} +0 -0
  643. /package/migrations/{0145_todo_changed_by_agent.sql → 20261121175651_todo_changed_by_agent/migration.sql} +0 -0
  644. /package/migrations/{0146_inbox_item_subject_title_parts.sql → 20261121183527_inbox_item_subject_title_parts/migration.sql} +0 -0
  645. /package/migrations/{0147_inbox_snooze_wake_reason.sql → 20261121194143_inbox_snooze_wake_reason/migration.sql} +0 -0
  646. /package/migrations/{0148_authorization_request_index.sql → 20261121222400_authorization_request_index/migration.sql} +0 -0
  647. /package/migrations/{0149_conversation_metadata.sql → 20261121225908_conversation_metadata/migration.sql} +0 -0
  648. /package/migrations/{0150_conversation_metadata_fill.sql → 20261121225910_conversation_metadata_fill/migration.sql} +0 -0
  649. /package/migrations/{0151_conversation_search_index.sql → 20261121225913_conversation_search_index/migration.sql} +0 -0
  650. /package/migrations/{0152_inbox_item_legacy_automation_keys.sql → 20261122022900_inbox_item_legacy_automation_keys/migration.sql} +0 -0
  651. /package/migrations/{0153_artifact_expiry.sql → 20261122024454_artifact_expiry/migration.sql} +0 -0
  652. /package/migrations/{0154_artifact_permanent_sha_index.sql → 20261122024455_artifact_permanent_sha_index/migration.sql} +0 -0
  653. /package/migrations/{0155_artifact_drop_public_sha_index.sql → 20261122024457_artifact_drop_public_sha_index/migration.sql} +0 -0
  654. /package/migrations/{0156_conversation_kind_lead.sql → 20261122024458_conversation_kind_lead/migration.sql} +0 -0
  655. /package/migrations/{0157_conversation_lead_actor_index.sql → 20261122024459_conversation_lead_actor_index/migration.sql} +0 -0
  656. /package/migrations/{0158_keep_legacy_archive_columns.sql → 20261122071549_keep_legacy_archive_columns/migration.sql} +0 -0
  657. /package/migrations/{0159_conversation_embeddings_fk_validate.sql → 20261122191400_conversation_embeddings_fk_validate/migration.sql} +0 -0
  658. /package/migrations/{0160_money_micro_usd_repair.sql → 20261122204325_money_micro_usd_repair/migration.sql} +0 -0
  659. /package/migrations/{0161_agent_config_backfill.sql → 20261122204326_agent_config_backfill/migration.sql} +0 -0
  660. /package/migrations/{0162_inbox_item_deliveries.sql → 20261122221456_inbox_item_deliveries/migration.sql} +0 -0
  661. /package/migrations/{0163_pg_trgm.sql → 20261123155735_pg_trgm/migration.sql} +0 -0
  662. /package/migrations/{0164_search_indexes.sql → 20261123155739_search_indexes/migration.sql} +0 -0
  663. /package/migrations/{0165_drop_legacy_archive_columns.sql → 20261123172647_drop_legacy_archive_columns/migration.sql} +0 -0
  664. /package/migrations/{0166_memory_prefix_index.sql → 20261123192506_memory_prefix_index/migration.sql} +0 -0
  665. /package/migrations/{0167_todo_search_indexes.sql → 20261123201740_todo_search_indexes/migration.sql} +0 -0
  666. /package/migrations/{0168_todo_inbox_items.sql → 20261123211505_todo_inbox_items/migration.sql} +0 -0
  667. /package/migrations/{0169_drop_code_urls.sql → 20261123214917_drop_code_urls/migration.sql} +0 -0
@@ -1,3610 +0,0 @@
1
- {
2
- "id": "0959e65c-dd48-4eec-b9ce-1a74f0b41ca5",
3
- "prevId": "d002a83e-e566-4dcb-a397-1e3b689ad2cb",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.junior_agent_bindings": {
8
- "name": "junior_agent_bindings",
9
- "schema": "",
10
- "columns": {
11
- "parent_conversation_id": {
12
- "name": "parent_conversation_id",
13
- "type": "text",
14
- "primaryKey": false,
15
- "notNull": true
16
- },
17
- "name": {
18
- "name": "name",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true
22
- },
23
- "child_conversation_id": {
24
- "name": "child_conversation_id",
25
- "type": "text",
26
- "primaryKey": false,
27
- "notNull": true
28
- }
29
- },
30
- "indexes": {
31
- "junior_agent_bindings_child_idx": {
32
- "name": "junior_agent_bindings_child_idx",
33
- "columns": [
34
- {
35
- "expression": "child_conversation_id",
36
- "isExpression": false,
37
- "asc": true,
38
- "nulls": "last"
39
- }
40
- ],
41
- "isUnique": true,
42
- "with": {},
43
- "method": "btree",
44
- "concurrently": false
45
- }
46
- },
47
- "foreignKeys": {
48
- "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk": {
49
- "name": "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk",
50
- "tableFrom": "junior_agent_bindings",
51
- "columnsFrom": [
52
- "parent_conversation_id"
53
- ],
54
- "tableTo": "junior_conversations",
55
- "columnsTo": [
56
- "conversation_id"
57
- ],
58
- "onUpdate": "no action",
59
- "onDelete": "no action"
60
- },
61
- "junior_agent_bindings_child_conversation_id_junior_conversations_conversation_id_fk": {
62
- "name": "junior_agent_bindings_child_conversation_id_junior_conversations_conversation_id_fk",
63
- "tableFrom": "junior_agent_bindings",
64
- "columnsFrom": [
65
- "child_conversation_id"
66
- ],
67
- "tableTo": "junior_conversations",
68
- "columnsTo": [
69
- "conversation_id"
70
- ],
71
- "onUpdate": "no action",
72
- "onDelete": "no action"
73
- }
74
- },
75
- "compositePrimaryKeys": {
76
- "junior_agent_bindings_parent_conversation_id_name_pk": {
77
- "name": "junior_agent_bindings_parent_conversation_id_name_pk",
78
- "columns": [
79
- "parent_conversation_id",
80
- "name"
81
- ]
82
- }
83
- },
84
- "uniqueConstraints": {},
85
- "policies": {},
86
- "checkConstraints": {},
87
- "isRLSEnabled": false
88
- },
89
- "public.junior_agent_invocations": {
90
- "name": "junior_agent_invocations",
91
- "schema": "",
92
- "columns": {
93
- "invocation_id": {
94
- "name": "invocation_id",
95
- "type": "text",
96
- "primaryKey": true,
97
- "notNull": true
98
- },
99
- "parent_conversation_id": {
100
- "name": "parent_conversation_id",
101
- "type": "text",
102
- "primaryKey": false,
103
- "notNull": true
104
- },
105
- "child_conversation_id": {
106
- "name": "child_conversation_id",
107
- "type": "text",
108
- "primaryKey": false,
109
- "notNull": true
110
- },
111
- "agent_name": {
112
- "name": "agent_name",
113
- "type": "text",
114
- "primaryKey": false,
115
- "notNull": false
116
- },
117
- "input": {
118
- "name": "input",
119
- "type": "text",
120
- "primaryKey": false,
121
- "notNull": true
122
- },
123
- "actor_json": {
124
- "name": "actor_json",
125
- "type": "jsonb",
126
- "primaryKey": false,
127
- "notNull": true
128
- },
129
- "credential_context_json": {
130
- "name": "credential_context_json",
131
- "type": "jsonb",
132
- "primaryKey": false,
133
- "notNull": false
134
- },
135
- "source_json": {
136
- "name": "source_json",
137
- "type": "jsonb",
138
- "primaryKey": false,
139
- "notNull": true
140
- },
141
- "destination_json": {
142
- "name": "destination_json",
143
- "type": "jsonb",
144
- "primaryKey": false,
145
- "notNull": true
146
- },
147
- "destination_visibility": {
148
- "name": "destination_visibility",
149
- "type": "text",
150
- "primaryKey": false,
151
- "notNull": false
152
- },
153
- "reasoning_level": {
154
- "name": "reasoning_level",
155
- "type": "text",
156
- "primaryKey": false,
157
- "notNull": false
158
- },
159
- "status": {
160
- "name": "status",
161
- "type": "text",
162
- "primaryKey": false,
163
- "notNull": true
164
- },
165
- "mailbox_status": {
166
- "name": "mailbox_status",
167
- "type": "text",
168
- "primaryKey": false,
169
- "notNull": true
170
- },
171
- "result": {
172
- "name": "result",
173
- "type": "text",
174
- "primaryKey": false,
175
- "notNull": false
176
- },
177
- "error_message": {
178
- "name": "error_message",
179
- "type": "text",
180
- "primaryKey": false,
181
- "notNull": false
182
- },
183
- "created_at": {
184
- "name": "created_at",
185
- "type": "timestamp with time zone",
186
- "primaryKey": false,
187
- "notNull": true
188
- },
189
- "updated_at": {
190
- "name": "updated_at",
191
- "type": "timestamp with time zone",
192
- "primaryKey": false,
193
- "notNull": true
194
- },
195
- "terminal_at": {
196
- "name": "terminal_at",
197
- "type": "timestamp with time zone",
198
- "primaryKey": false,
199
- "notNull": false
200
- }
201
- },
202
- "indexes": {
203
- "junior_agent_invocations_child_idx": {
204
- "name": "junior_agent_invocations_child_idx",
205
- "columns": [
206
- {
207
- "expression": "child_conversation_id",
208
- "isExpression": false,
209
- "asc": true,
210
- "nulls": "last"
211
- }
212
- ],
213
- "isUnique": false,
214
- "with": {},
215
- "method": "btree",
216
- "concurrently": false
217
- },
218
- "junior_agent_invocations_mailbox_idx": {
219
- "name": "junior_agent_invocations_mailbox_idx",
220
- "columns": [
221
- {
222
- "expression": "mailbox_status",
223
- "isExpression": false,
224
- "asc": true,
225
- "nulls": "last"
226
- },
227
- {
228
- "expression": "created_at",
229
- "isExpression": false,
230
- "asc": true,
231
- "nulls": "last"
232
- }
233
- ],
234
- "isUnique": false,
235
- "with": {},
236
- "method": "btree",
237
- "concurrently": false
238
- }
239
- },
240
- "foreignKeys": {
241
- "junior_agent_invocations_parent_conversation_id_junior_conversations_conversation_id_fk": {
242
- "name": "junior_agent_invocations_parent_conversation_id_junior_conversations_conversation_id_fk",
243
- "tableFrom": "junior_agent_invocations",
244
- "columnsFrom": [
245
- "parent_conversation_id"
246
- ],
247
- "tableTo": "junior_conversations",
248
- "columnsTo": [
249
- "conversation_id"
250
- ],
251
- "onUpdate": "no action",
252
- "onDelete": "no action"
253
- },
254
- "junior_agent_invocations_child_conversation_id_junior_conversations_conversation_id_fk": {
255
- "name": "junior_agent_invocations_child_conversation_id_junior_conversations_conversation_id_fk",
256
- "tableFrom": "junior_agent_invocations",
257
- "columnsFrom": [
258
- "child_conversation_id"
259
- ],
260
- "tableTo": "junior_conversations",
261
- "columnsTo": [
262
- "conversation_id"
263
- ],
264
- "onUpdate": "no action",
265
- "onDelete": "no action"
266
- }
267
- },
268
- "compositePrimaryKeys": {},
269
- "uniqueConstraints": {},
270
- "policies": {},
271
- "checkConstraints": {},
272
- "isRLSEnabled": false
273
- },
274
- "public.junior_api_tokens": {
275
- "name": "junior_api_tokens",
276
- "schema": "",
277
- "columns": {
278
- "id": {
279
- "name": "id",
280
- "type": "text",
281
- "primaryKey": true,
282
- "notNull": true
283
- },
284
- "owner_email_normalized": {
285
- "name": "owner_email_normalized",
286
- "type": "text",
287
- "primaryKey": false,
288
- "notNull": true
289
- },
290
- "name": {
291
- "name": "name",
292
- "type": "text",
293
- "primaryKey": false,
294
- "notNull": true
295
- },
296
- "token_hash": {
297
- "name": "token_hash",
298
- "type": "text",
299
- "primaryKey": false,
300
- "notNull": true
301
- },
302
- "token_suffix": {
303
- "name": "token_suffix",
304
- "type": "text",
305
- "primaryKey": false,
306
- "notNull": true
307
- },
308
- "created_at": {
309
- "name": "created_at",
310
- "type": "timestamp with time zone",
311
- "primaryKey": false,
312
- "notNull": true
313
- },
314
- "expires_at": {
315
- "name": "expires_at",
316
- "type": "timestamp with time zone",
317
- "primaryKey": false,
318
- "notNull": true
319
- },
320
- "last_used_at": {
321
- "name": "last_used_at",
322
- "type": "timestamp with time zone",
323
- "primaryKey": false,
324
- "notNull": false
325
- },
326
- "revoked_at": {
327
- "name": "revoked_at",
328
- "type": "timestamp with time zone",
329
- "primaryKey": false,
330
- "notNull": false
331
- }
332
- },
333
- "indexes": {
334
- "junior_api_tokens_token_hash_uidx": {
335
- "name": "junior_api_tokens_token_hash_uidx",
336
- "columns": [
337
- {
338
- "expression": "token_hash",
339
- "isExpression": false,
340
- "asc": true,
341
- "nulls": "last"
342
- }
343
- ],
344
- "isUnique": true,
345
- "with": {},
346
- "method": "btree",
347
- "concurrently": false
348
- },
349
- "junior_api_tokens_owner_email_idx": {
350
- "name": "junior_api_tokens_owner_email_idx",
351
- "columns": [
352
- {
353
- "expression": "owner_email_normalized",
354
- "isExpression": false,
355
- "asc": true,
356
- "nulls": "last"
357
- }
358
- ],
359
- "isUnique": false,
360
- "with": {},
361
- "method": "btree",
362
- "concurrently": false
363
- }
364
- },
365
- "foreignKeys": {},
366
- "compositePrimaryKeys": {},
367
- "uniqueConstraints": {},
368
- "policies": {},
369
- "checkConstraints": {},
370
- "isRLSEnabled": false
371
- },
372
- "public.junior_artifacts": {
373
- "name": "junior_artifacts",
374
- "schema": "",
375
- "columns": {
376
- "id": {
377
- "name": "id",
378
- "type": "text",
379
- "primaryKey": true,
380
- "notNull": true
381
- },
382
- "conversation_id": {
383
- "name": "conversation_id",
384
- "type": "text",
385
- "primaryKey": false,
386
- "notNull": true
387
- },
388
- "sha256": {
389
- "name": "sha256",
390
- "type": "text",
391
- "primaryKey": false,
392
- "notNull": true
393
- },
394
- "ext": {
395
- "name": "ext",
396
- "type": "text",
397
- "primaryKey": false,
398
- "notNull": true
399
- },
400
- "storage_key": {
401
- "name": "storage_key",
402
- "type": "text",
403
- "primaryKey": false,
404
- "notNull": true
405
- },
406
- "content_type": {
407
- "name": "content_type",
408
- "type": "text",
409
- "primaryKey": false,
410
- "notNull": true
411
- },
412
- "bytes": {
413
- "name": "bytes",
414
- "type": "integer",
415
- "primaryKey": false,
416
- "notNull": true
417
- },
418
- "public": {
419
- "name": "public",
420
- "type": "boolean",
421
- "primaryKey": false,
422
- "notNull": true
423
- },
424
- "created_at": {
425
- "name": "created_at",
426
- "type": "timestamp with time zone",
427
- "primaryKey": false,
428
- "notNull": true
429
- },
430
- "delete_requested_at": {
431
- "name": "delete_requested_at",
432
- "type": "timestamp with time zone",
433
- "primaryKey": false,
434
- "notNull": false
435
- }
436
- },
437
- "indexes": {
438
- "junior_artifacts_conversation_sha_uidx": {
439
- "name": "junior_artifacts_conversation_sha_uidx",
440
- "columns": [
441
- {
442
- "expression": "conversation_id",
443
- "isExpression": false,
444
- "asc": true,
445
- "nulls": "last"
446
- },
447
- {
448
- "expression": "sha256",
449
- "isExpression": false,
450
- "asc": true,
451
- "nulls": "last"
452
- }
453
- ],
454
- "isUnique": true,
455
- "with": {},
456
- "method": "btree",
457
- "concurrently": false
458
- },
459
- "junior_artifacts_gc_idx": {
460
- "name": "junior_artifacts_gc_idx",
461
- "columns": [
462
- {
463
- "expression": "delete_requested_at",
464
- "isExpression": false,
465
- "asc": true,
466
- "nulls": "last"
467
- },
468
- {
469
- "expression": "created_at",
470
- "isExpression": false,
471
- "asc": true,
472
- "nulls": "last"
473
- }
474
- ],
475
- "isUnique": false,
476
- "with": {},
477
- "method": "btree",
478
- "concurrently": false
479
- },
480
- "junior_artifacts_conversation_idx": {
481
- "name": "junior_artifacts_conversation_idx",
482
- "columns": [
483
- {
484
- "expression": "conversation_id",
485
- "isExpression": false,
486
- "asc": true,
487
- "nulls": "last"
488
- }
489
- ],
490
- "isUnique": false,
491
- "with": {},
492
- "method": "btree",
493
- "concurrently": false
494
- }
495
- },
496
- "foreignKeys": {},
497
- "compositePrimaryKeys": {},
498
- "uniqueConstraints": {},
499
- "policies": {},
500
- "checkConstraints": {},
501
- "isRLSEnabled": false
502
- },
503
- "public.junior_attachments": {
504
- "name": "junior_attachments",
505
- "schema": "",
506
- "columns": {
507
- "id": {
508
- "name": "id",
509
- "type": "text",
510
- "primaryKey": true,
511
- "notNull": true
512
- },
513
- "conversation_id": {
514
- "name": "conversation_id",
515
- "type": "text",
516
- "primaryKey": false,
517
- "notNull": true
518
- },
519
- "storage_provider": {
520
- "name": "storage_provider",
521
- "type": "text",
522
- "primaryKey": false,
523
- "notNull": true
524
- },
525
- "storage_key": {
526
- "name": "storage_key",
527
- "type": "text",
528
- "primaryKey": false,
529
- "notNull": true
530
- },
531
- "provider": {
532
- "name": "provider",
533
- "type": "text",
534
- "primaryKey": false,
535
- "notNull": false
536
- },
537
- "provider_id": {
538
- "name": "provider_id",
539
- "type": "text",
540
- "primaryKey": false,
541
- "notNull": false
542
- },
543
- "filename": {
544
- "name": "filename",
545
- "type": "text",
546
- "primaryKey": false,
547
- "notNull": true
548
- },
549
- "content_type": {
550
- "name": "content_type",
551
- "type": "text",
552
- "primaryKey": false,
553
- "notNull": true
554
- },
555
- "bytes": {
556
- "name": "bytes",
557
- "type": "integer",
558
- "primaryKey": false,
559
- "notNull": true
560
- },
561
- "sha256": {
562
- "name": "sha256",
563
- "type": "text",
564
- "primaryKey": false,
565
- "notNull": true
566
- },
567
- "vision_summary": {
568
- "name": "vision_summary",
569
- "type": "text",
570
- "primaryKey": false,
571
- "notNull": false
572
- },
573
- "created_at": {
574
- "name": "created_at",
575
- "type": "timestamp with time zone",
576
- "primaryKey": false,
577
- "notNull": true
578
- },
579
- "delete_requested_at": {
580
- "name": "delete_requested_at",
581
- "type": "timestamp with time zone",
582
- "primaryKey": false,
583
- "notNull": false
584
- }
585
- },
586
- "indexes": {
587
- "junior_attachments_conversation_idx": {
588
- "name": "junior_attachments_conversation_idx",
589
- "columns": [
590
- {
591
- "expression": "conversation_id",
592
- "isExpression": false,
593
- "asc": true,
594
- "nulls": "last"
595
- }
596
- ],
597
- "isUnique": false,
598
- "with": {},
599
- "method": "btree",
600
- "concurrently": false
601
- },
602
- "junior_attachments_provider_idx": {
603
- "name": "junior_attachments_provider_idx",
604
- "columns": [
605
- {
606
- "expression": "conversation_id",
607
- "isExpression": false,
608
- "asc": true,
609
- "nulls": "last"
610
- },
611
- {
612
- "expression": "provider",
613
- "isExpression": false,
614
- "asc": true,
615
- "nulls": "last"
616
- },
617
- {
618
- "expression": "provider_id",
619
- "isExpression": false,
620
- "asc": true,
621
- "nulls": "last"
622
- }
623
- ],
624
- "isUnique": false,
625
- "with": {},
626
- "method": "btree",
627
- "concurrently": false
628
- },
629
- "junior_attachments_gc_idx": {
630
- "name": "junior_attachments_gc_idx",
631
- "columns": [
632
- {
633
- "expression": "storage_provider",
634
- "isExpression": false,
635
- "asc": true,
636
- "nulls": "last"
637
- },
638
- {
639
- "expression": "delete_requested_at",
640
- "isExpression": false,
641
- "asc": true,
642
- "nulls": "last"
643
- },
644
- {
645
- "expression": "created_at",
646
- "isExpression": false,
647
- "asc": true,
648
- "nulls": "last"
649
- }
650
- ],
651
- "isUnique": false,
652
- "with": {},
653
- "method": "btree",
654
- "concurrently": false
655
- }
656
- },
657
- "foreignKeys": {
658
- "junior_attachments_conversation_id_junior_conversations_conversation_id_fk": {
659
- "name": "junior_attachments_conversation_id_junior_conversations_conversation_id_fk",
660
- "tableFrom": "junior_attachments",
661
- "columnsFrom": [
662
- "conversation_id"
663
- ],
664
- "tableTo": "junior_conversations",
665
- "columnsTo": [
666
- "conversation_id"
667
- ],
668
- "onUpdate": "no action",
669
- "onDelete": "cascade"
670
- }
671
- },
672
- "compositePrimaryKeys": {},
673
- "uniqueConstraints": {},
674
- "policies": {},
675
- "checkConstraints": {},
676
- "isRLSEnabled": false
677
- },
678
- "public.junior_task_executions": {
679
- "name": "junior_task_executions",
680
- "schema": "",
681
- "columns": {
682
- "execution_id": {
683
- "name": "execution_id",
684
- "type": "text",
685
- "primaryKey": false,
686
- "notNull": true
687
- },
688
- "kind": {
689
- "name": "kind",
690
- "type": "text",
691
- "primaryKey": false,
692
- "notNull": true
693
- },
694
- "namespace": {
695
- "name": "namespace",
696
- "type": "text",
697
- "primaryKey": false,
698
- "notNull": true
699
- },
700
- "task_id": {
701
- "name": "task_id",
702
- "type": "text",
703
- "primaryKey": false,
704
- "notNull": true
705
- },
706
- "conversation_id": {
707
- "name": "conversation_id",
708
- "type": "text",
709
- "primaryKey": false,
710
- "notNull": false
711
- },
712
- "executed_at_ms": {
713
- "name": "executed_at_ms",
714
- "type": "bigint",
715
- "primaryKey": false,
716
- "notNull": true
717
- },
718
- "status": {
719
- "name": "status",
720
- "type": "text",
721
- "primaryKey": false,
722
- "notNull": true
723
- }
724
- },
725
- "indexes": {
726
- "junior_task_executions_task_time_idx": {
727
- "name": "junior_task_executions_task_time_idx",
728
- "columns": [
729
- {
730
- "expression": "kind",
731
- "isExpression": false,
732
- "asc": true,
733
- "nulls": "last"
734
- },
735
- {
736
- "expression": "namespace",
737
- "isExpression": false,
738
- "asc": true,
739
- "nulls": "last"
740
- },
741
- {
742
- "expression": "task_id",
743
- "isExpression": false,
744
- "asc": true,
745
- "nulls": "last"
746
- },
747
- {
748
- "expression": "executed_at_ms",
749
- "isExpression": false,
750
- "asc": true,
751
- "nulls": "last"
752
- }
753
- ],
754
- "isUnique": false,
755
- "with": {},
756
- "method": "btree",
757
- "concurrently": false
758
- },
759
- "junior_task_executions_time_kind_idx": {
760
- "name": "junior_task_executions_time_kind_idx",
761
- "columns": [
762
- {
763
- "expression": "executed_at_ms",
764
- "isExpression": false,
765
- "asc": true,
766
- "nulls": "last"
767
- },
768
- {
769
- "expression": "kind",
770
- "isExpression": false,
771
- "asc": true,
772
- "nulls": "last"
773
- }
774
- ],
775
- "isUnique": false,
776
- "with": {},
777
- "method": "btree",
778
- "concurrently": false
779
- },
780
- "junior_task_executions_conversation_time_idx": {
781
- "name": "junior_task_executions_conversation_time_idx",
782
- "columns": [
783
- {
784
- "expression": "conversation_id",
785
- "isExpression": false,
786
- "asc": true,
787
- "nulls": "last"
788
- },
789
- {
790
- "expression": "executed_at_ms",
791
- "isExpression": false,
792
- "asc": true,
793
- "nulls": "last"
794
- }
795
- ],
796
- "isUnique": false,
797
- "with": {},
798
- "method": "btree",
799
- "concurrently": false
800
- }
801
- },
802
- "foreignKeys": {
803
- "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk": {
804
- "name": "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk",
805
- "tableFrom": "junior_task_executions",
806
- "columnsFrom": [
807
- "conversation_id"
808
- ],
809
- "tableTo": "junior_conversations",
810
- "columnsTo": [
811
- "conversation_id"
812
- ],
813
- "onUpdate": "no action",
814
- "onDelete": "no action"
815
- }
816
- },
817
- "compositePrimaryKeys": {
818
- "junior_task_executions_kind_namespace_execution_id_pk": {
819
- "name": "junior_task_executions_kind_namespace_execution_id_pk",
820
- "columns": [
821
- "kind",
822
- "namespace",
823
- "execution_id"
824
- ]
825
- }
826
- },
827
- "uniqueConstraints": {},
828
- "policies": {},
829
- "checkConstraints": {
830
- "junior_task_executions_kind_check": {
831
- "name": "junior_task_executions_kind_check",
832
- "value": "\"junior_task_executions\".\"kind\" in ('scheduled', 'event')"
833
- },
834
- "junior_task_executions_status_check": {
835
- "name": "junior_task_executions_status_check",
836
- "value": "\"junior_task_executions\".\"status\" in ('blocked', 'completed', 'failed')"
837
- }
838
- },
839
- "isRLSEnabled": false
840
- },
841
- "public.junior_code_changes": {
842
- "name": "junior_code_changes",
843
- "schema": "",
844
- "columns": {
845
- "id": {
846
- "name": "id",
847
- "type": "uuid",
848
- "primaryKey": true,
849
- "notNull": true
850
- },
851
- "closed_at": {
852
- "name": "closed_at",
853
- "type": "timestamp with time zone",
854
- "primaryKey": false,
855
- "notNull": false
856
- },
857
- "conversation_ids": {
858
- "name": "conversation_ids",
859
- "type": "text[]",
860
- "primaryKey": false,
861
- "notNull": true,
862
- "default": "ARRAY[]::text[]"
863
- },
864
- "merged_at": {
865
- "name": "merged_at",
866
- "type": "timestamp with time zone",
867
- "primaryKey": false,
868
- "notNull": false
869
- },
870
- "number": {
871
- "name": "number",
872
- "type": "integer",
873
- "primaryKey": false,
874
- "notNull": true
875
- },
876
- "opened_at": {
877
- "name": "opened_at",
878
- "type": "timestamp with time zone",
879
- "primaryKey": false,
880
- "notNull": true
881
- },
882
- "provider": {
883
- "name": "provider",
884
- "type": "text",
885
- "primaryKey": false,
886
- "notNull": true
887
- },
888
- "provider_id": {
889
- "name": "provider_id",
890
- "type": "text",
891
- "primaryKey": false,
892
- "notNull": true
893
- },
894
- "repository_id": {
895
- "name": "repository_id",
896
- "type": "uuid",
897
- "primaryKey": false,
898
- "notNull": true
899
- },
900
- "state": {
901
- "name": "state",
902
- "type": "text",
903
- "primaryKey": false,
904
- "notNull": true
905
- },
906
- "title": {
907
- "name": "title",
908
- "type": "text",
909
- "primaryKey": false,
910
- "notNull": false
911
- },
912
- "updated_at": {
913
- "name": "updated_at",
914
- "type": "timestamp with time zone",
915
- "primaryKey": false,
916
- "notNull": true
917
- },
918
- "url": {
919
- "name": "url",
920
- "type": "text",
921
- "primaryKey": false,
922
- "notNull": false
923
- }
924
- },
925
- "indexes": {
926
- "junior_code_changes_provider_id_idx": {
927
- "name": "junior_code_changes_provider_id_idx",
928
- "columns": [
929
- {
930
- "expression": "provider",
931
- "isExpression": false,
932
- "asc": true,
933
- "nulls": "last"
934
- },
935
- {
936
- "expression": "provider_id",
937
- "isExpression": false,
938
- "asc": true,
939
- "nulls": "last"
940
- }
941
- ],
942
- "isUnique": true,
943
- "with": {},
944
- "method": "btree",
945
- "concurrently": false
946
- },
947
- "junior_code_changes_opened_at_idx": {
948
- "name": "junior_code_changes_opened_at_idx",
949
- "columns": [
950
- {
951
- "expression": "opened_at",
952
- "isExpression": false,
953
- "asc": true,
954
- "nulls": "last"
955
- }
956
- ],
957
- "isUnique": false,
958
- "with": {},
959
- "method": "btree",
960
- "concurrently": false
961
- },
962
- "junior_code_changes_merged_at_idx": {
963
- "name": "junior_code_changes_merged_at_idx",
964
- "columns": [
965
- {
966
- "expression": "merged_at",
967
- "isExpression": false,
968
- "asc": true,
969
- "nulls": "last"
970
- }
971
- ],
972
- "isUnique": false,
973
- "with": {},
974
- "method": "btree",
975
- "concurrently": false
976
- },
977
- "junior_code_changes_closed_at_idx": {
978
- "name": "junior_code_changes_closed_at_idx",
979
- "columns": [
980
- {
981
- "expression": "closed_at",
982
- "isExpression": false,
983
- "asc": true,
984
- "nulls": "last"
985
- }
986
- ],
987
- "isUnique": false,
988
- "with": {},
989
- "method": "btree",
990
- "concurrently": false
991
- },
992
- "junior_code_changes_open_idx": {
993
- "name": "junior_code_changes_open_idx",
994
- "columns": [
995
- {
996
- "expression": "id",
997
- "isExpression": false,
998
- "asc": true,
999
- "nulls": "last"
1000
- }
1001
- ],
1002
- "isUnique": false,
1003
- "with": {},
1004
- "method": "btree",
1005
- "where": "\"junior_code_changes\".\"state\" = 'open'",
1006
- "concurrently": false
1007
- }
1008
- },
1009
- "foreignKeys": {
1010
- "junior_code_changes_repository_id_junior_code_repositories_id_fk": {
1011
- "name": "junior_code_changes_repository_id_junior_code_repositories_id_fk",
1012
- "tableFrom": "junior_code_changes",
1013
- "columnsFrom": [
1014
- "repository_id"
1015
- ],
1016
- "tableTo": "junior_code_repositories",
1017
- "columnsTo": [
1018
- "id"
1019
- ],
1020
- "onUpdate": "no action",
1021
- "onDelete": "cascade"
1022
- }
1023
- },
1024
- "compositePrimaryKeys": {},
1025
- "uniqueConstraints": {},
1026
- "policies": {},
1027
- "checkConstraints": {},
1028
- "isRLSEnabled": false
1029
- },
1030
- "public.junior_code_repositories": {
1031
- "name": "junior_code_repositories",
1032
- "schema": "",
1033
- "columns": {
1034
- "id": {
1035
- "name": "id",
1036
- "type": "uuid",
1037
- "primaryKey": true,
1038
- "notNull": true
1039
- },
1040
- "name": {
1041
- "name": "name",
1042
- "type": "text",
1043
- "primaryKey": false,
1044
- "notNull": true
1045
- },
1046
- "provider": {
1047
- "name": "provider",
1048
- "type": "text",
1049
- "primaryKey": false,
1050
- "notNull": true
1051
- },
1052
- "provider_id": {
1053
- "name": "provider_id",
1054
- "type": "text",
1055
- "primaryKey": false,
1056
- "notNull": true
1057
- },
1058
- "url": {
1059
- "name": "url",
1060
- "type": "text",
1061
- "primaryKey": false,
1062
- "notNull": false
1063
- },
1064
- "updated_at": {
1065
- "name": "updated_at",
1066
- "type": "timestamp with time zone",
1067
- "primaryKey": false,
1068
- "notNull": true
1069
- }
1070
- },
1071
- "indexes": {
1072
- "junior_code_repositories_provider_id_idx": {
1073
- "name": "junior_code_repositories_provider_id_idx",
1074
- "columns": [
1075
- {
1076
- "expression": "provider",
1077
- "isExpression": false,
1078
- "asc": true,
1079
- "nulls": "last"
1080
- },
1081
- {
1082
- "expression": "provider_id",
1083
- "isExpression": false,
1084
- "asc": true,
1085
- "nulls": "last"
1086
- }
1087
- ],
1088
- "isUnique": true,
1089
- "with": {},
1090
- "method": "btree",
1091
- "concurrently": false
1092
- }
1093
- },
1094
- "foreignKeys": {},
1095
- "compositePrimaryKeys": {},
1096
- "uniqueConstraints": {},
1097
- "policies": {},
1098
- "checkConstraints": {},
1099
- "isRLSEnabled": false
1100
- },
1101
- "public.junior_conversation_annotations": {
1102
- "name": "junior_conversation_annotations",
1103
- "schema": "",
1104
- "columns": {
1105
- "conversation_id": {
1106
- "name": "conversation_id",
1107
- "type": "text",
1108
- "primaryKey": false,
1109
- "notNull": true
1110
- },
1111
- "plugin": {
1112
- "name": "plugin",
1113
- "type": "text",
1114
- "primaryKey": false,
1115
- "notNull": true
1116
- },
1117
- "kind": {
1118
- "name": "kind",
1119
- "type": "text",
1120
- "primaryKey": false,
1121
- "notNull": true
1122
- },
1123
- "key": {
1124
- "name": "key",
1125
- "type": "text",
1126
- "primaryKey": false,
1127
- "notNull": true
1128
- },
1129
- "annotation_json": {
1130
- "name": "annotation_json",
1131
- "type": "jsonb",
1132
- "primaryKey": false,
1133
- "notNull": true
1134
- },
1135
- "created_at": {
1136
- "name": "created_at",
1137
- "type": "timestamp with time zone",
1138
- "primaryKey": false,
1139
- "notNull": true
1140
- },
1141
- "updated_at": {
1142
- "name": "updated_at",
1143
- "type": "timestamp with time zone",
1144
- "primaryKey": false,
1145
- "notNull": true
1146
- }
1147
- },
1148
- "indexes": {},
1149
- "foreignKeys": {
1150
- "junior_conversation_annotations_conversation_id_fk": {
1151
- "name": "junior_conversation_annotations_conversation_id_fk",
1152
- "tableFrom": "junior_conversation_annotations",
1153
- "columnsFrom": [
1154
- "conversation_id"
1155
- ],
1156
- "tableTo": "junior_conversations",
1157
- "columnsTo": [
1158
- "conversation_id"
1159
- ],
1160
- "onUpdate": "no action",
1161
- "onDelete": "cascade"
1162
- }
1163
- },
1164
- "compositePrimaryKeys": {
1165
- "junior_conversation_annotations_pk": {
1166
- "name": "junior_conversation_annotations_pk",
1167
- "columns": [
1168
- "conversation_id",
1169
- "plugin",
1170
- "kind",
1171
- "key"
1172
- ]
1173
- }
1174
- },
1175
- "uniqueConstraints": {},
1176
- "policies": {},
1177
- "checkConstraints": {},
1178
- "isRLSEnabled": false
1179
- },
1180
- "public.junior_conversation_bindings": {
1181
- "name": "junior_conversation_bindings",
1182
- "schema": "",
1183
- "columns": {
1184
- "conversation_id": {
1185
- "name": "conversation_id",
1186
- "type": "text",
1187
- "primaryKey": false,
1188
- "notNull": true
1189
- },
1190
- "provider": {
1191
- "name": "provider",
1192
- "type": "text",
1193
- "primaryKey": false,
1194
- "notNull": true
1195
- },
1196
- "provider_tenant_id": {
1197
- "name": "provider_tenant_id",
1198
- "type": "text",
1199
- "primaryKey": false,
1200
- "notNull": true,
1201
- "default": "''"
1202
- },
1203
- "provider_destination_id": {
1204
- "name": "provider_destination_id",
1205
- "type": "text",
1206
- "primaryKey": false,
1207
- "notNull": true
1208
- },
1209
- "provider_conversation_id": {
1210
- "name": "provider_conversation_id",
1211
- "type": "text",
1212
- "primaryKey": false,
1213
- "notNull": true
1214
- },
1215
- "created_at": {
1216
- "name": "created_at",
1217
- "type": "timestamp with time zone",
1218
- "primaryKey": false,
1219
- "notNull": true
1220
- }
1221
- },
1222
- "indexes": {
1223
- "junior_conversation_bindings_conversation_idx": {
1224
- "name": "junior_conversation_bindings_conversation_idx",
1225
- "columns": [
1226
- {
1227
- "expression": "conversation_id",
1228
- "isExpression": false,
1229
- "asc": true,
1230
- "nulls": "last"
1231
- }
1232
- ],
1233
- "isUnique": false,
1234
- "with": {},
1235
- "method": "btree",
1236
- "concurrently": false
1237
- }
1238
- },
1239
- "foreignKeys": {
1240
- "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk": {
1241
- "name": "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk",
1242
- "tableFrom": "junior_conversation_bindings",
1243
- "columnsFrom": [
1244
- "conversation_id"
1245
- ],
1246
- "tableTo": "junior_conversations",
1247
- "columnsTo": [
1248
- "conversation_id"
1249
- ],
1250
- "onUpdate": "no action",
1251
- "onDelete": "no action"
1252
- }
1253
- },
1254
- "compositePrimaryKeys": {
1255
- "junior_conversation_bindings_provider_conversation_pk": {
1256
- "name": "junior_conversation_bindings_provider_conversation_pk",
1257
- "columns": [
1258
- "provider",
1259
- "provider_tenant_id",
1260
- "provider_destination_id",
1261
- "provider_conversation_id"
1262
- ]
1263
- }
1264
- },
1265
- "uniqueConstraints": {},
1266
- "policies": {},
1267
- "checkConstraints": {},
1268
- "isRLSEnabled": false
1269
- },
1270
- "public.junior_conversation_briefs": {
1271
- "name": "junior_conversation_briefs",
1272
- "schema": "",
1273
- "columns": {
1274
- "conversation_id": {
1275
- "name": "conversation_id",
1276
- "type": "text",
1277
- "primaryKey": false,
1278
- "notNull": true
1279
- },
1280
- "version": {
1281
- "name": "version",
1282
- "type": "integer",
1283
- "primaryKey": false,
1284
- "notNull": true
1285
- },
1286
- "turn_id": {
1287
- "name": "turn_id",
1288
- "type": "text",
1289
- "primaryKey": false,
1290
- "notNull": true
1291
- },
1292
- "through_seq": {
1293
- "name": "through_seq",
1294
- "type": "integer",
1295
- "primaryKey": false,
1296
- "notNull": true
1297
- },
1298
- "content": {
1299
- "name": "content",
1300
- "type": "jsonb",
1301
- "primaryKey": false,
1302
- "notNull": true
1303
- },
1304
- "search_text": {
1305
- "name": "search_text",
1306
- "type": "text",
1307
- "primaryKey": false,
1308
- "notNull": true
1309
- },
1310
- "model_id": {
1311
- "name": "model_id",
1312
- "type": "text",
1313
- "primaryKey": false,
1314
- "notNull": true
1315
- },
1316
- "cost_usd": {
1317
- "name": "cost_usd",
1318
- "type": "double precision",
1319
- "primaryKey": false,
1320
- "notNull": false
1321
- },
1322
- "created_at": {
1323
- "name": "created_at",
1324
- "type": "timestamp with time zone",
1325
- "primaryKey": false,
1326
- "notNull": true,
1327
- "default": "now()"
1328
- }
1329
- },
1330
- "indexes": {
1331
- "junior_conversation_briefs_conversation_turn_idx": {
1332
- "name": "junior_conversation_briefs_conversation_turn_idx",
1333
- "columns": [
1334
- {
1335
- "expression": "conversation_id",
1336
- "isExpression": false,
1337
- "asc": true,
1338
- "nulls": "last"
1339
- },
1340
- {
1341
- "expression": "turn_id",
1342
- "isExpression": false,
1343
- "asc": true,
1344
- "nulls": "last"
1345
- }
1346
- ],
1347
- "isUnique": true,
1348
- "with": {},
1349
- "method": "btree",
1350
- "concurrently": false
1351
- },
1352
- "junior_conversation_briefs_conversation_version_idx": {
1353
- "name": "junior_conversation_briefs_conversation_version_idx",
1354
- "columns": [
1355
- {
1356
- "expression": "conversation_id",
1357
- "isExpression": false,
1358
- "asc": true,
1359
- "nulls": "last"
1360
- },
1361
- {
1362
- "expression": "version",
1363
- "isExpression": false,
1364
- "asc": false,
1365
- "nulls": "last"
1366
- }
1367
- ],
1368
- "isUnique": false,
1369
- "with": {},
1370
- "method": "btree",
1371
- "concurrently": false
1372
- },
1373
- "junior_conversation_briefs_search_idx": {
1374
- "name": "junior_conversation_briefs_search_idx",
1375
- "columns": [
1376
- {
1377
- "expression": "to_tsvector('english', \"search_text\")",
1378
- "isExpression": true,
1379
- "asc": true,
1380
- "nulls": "last"
1381
- }
1382
- ],
1383
- "isUnique": false,
1384
- "with": {},
1385
- "method": "gin",
1386
- "concurrently": false
1387
- }
1388
- },
1389
- "foreignKeys": {
1390
- "junior_conversation_briefs_conversation_id_junior_conversations_conversation_id_fk": {
1391
- "name": "junior_conversation_briefs_conversation_id_junior_conversations_conversation_id_fk",
1392
- "tableFrom": "junior_conversation_briefs",
1393
- "columnsFrom": [
1394
- "conversation_id"
1395
- ],
1396
- "tableTo": "junior_conversations",
1397
- "columnsTo": [
1398
- "conversation_id"
1399
- ],
1400
- "onUpdate": "no action",
1401
- "onDelete": "cascade"
1402
- }
1403
- },
1404
- "compositePrimaryKeys": {
1405
- "junior_conversation_briefs_conversation_id_version_pk": {
1406
- "name": "junior_conversation_briefs_conversation_id_version_pk",
1407
- "columns": [
1408
- "conversation_id",
1409
- "version"
1410
- ]
1411
- }
1412
- },
1413
- "uniqueConstraints": {},
1414
- "policies": {},
1415
- "checkConstraints": {},
1416
- "isRLSEnabled": false
1417
- },
1418
- "public.junior_conversation_events": {
1419
- "name": "junior_conversation_events",
1420
- "schema": "",
1421
- "columns": {
1422
- "conversation_id": {
1423
- "name": "conversation_id",
1424
- "type": "text",
1425
- "primaryKey": false,
1426
- "notNull": true
1427
- },
1428
- "seq": {
1429
- "name": "seq",
1430
- "type": "integer",
1431
- "primaryKey": false,
1432
- "notNull": true
1433
- },
1434
- "history_version": {
1435
- "name": "history_version",
1436
- "type": "integer",
1437
- "primaryKey": false,
1438
- "notNull": true
1439
- },
1440
- "schema_version": {
1441
- "name": "schema_version",
1442
- "type": "integer",
1443
- "primaryKey": false,
1444
- "notNull": true,
1445
- "default": 1
1446
- },
1447
- "idempotency_key": {
1448
- "name": "idempotency_key",
1449
- "type": "text",
1450
- "primaryKey": false,
1451
- "notNull": false
1452
- },
1453
- "type": {
1454
- "name": "type",
1455
- "type": "text",
1456
- "primaryKey": false,
1457
- "notNull": true
1458
- },
1459
- "payload": {
1460
- "name": "payload",
1461
- "type": "jsonb",
1462
- "primaryKey": false,
1463
- "notNull": true
1464
- },
1465
- "actor_identity_id": {
1466
- "name": "actor_identity_id",
1467
- "type": "text",
1468
- "primaryKey": false,
1469
- "notNull": false
1470
- },
1471
- "created_at": {
1472
- "name": "created_at",
1473
- "type": "timestamp with time zone",
1474
- "primaryKey": false,
1475
- "notNull": true
1476
- }
1477
- },
1478
- "indexes": {
1479
- "junior_conversation_events_history_version_idx": {
1480
- "name": "junior_conversation_events_history_version_idx",
1481
- "columns": [
1482
- {
1483
- "expression": "conversation_id",
1484
- "isExpression": false,
1485
- "asc": true,
1486
- "nulls": "last"
1487
- },
1488
- {
1489
- "expression": "history_version",
1490
- "isExpression": false,
1491
- "asc": true,
1492
- "nulls": "last"
1493
- },
1494
- {
1495
- "expression": "seq",
1496
- "isExpression": false,
1497
- "asc": true,
1498
- "nulls": "last"
1499
- }
1500
- ],
1501
- "isUnique": false,
1502
- "with": {},
1503
- "method": "btree",
1504
- "concurrently": false
1505
- },
1506
- "junior_conversation_events_type_idx": {
1507
- "name": "junior_conversation_events_type_idx",
1508
- "columns": [
1509
- {
1510
- "expression": "conversation_id",
1511
- "isExpression": false,
1512
- "asc": true,
1513
- "nulls": "last"
1514
- },
1515
- {
1516
- "expression": "type",
1517
- "isExpression": false,
1518
- "asc": true,
1519
- "nulls": "last"
1520
- },
1521
- {
1522
- "expression": "seq",
1523
- "isExpression": false,
1524
- "asc": true,
1525
- "nulls": "last"
1526
- }
1527
- ],
1528
- "isUnique": false,
1529
- "with": {},
1530
- "method": "btree",
1531
- "concurrently": false
1532
- },
1533
- "junior_conversation_events_actor_identity_idx": {
1534
- "name": "junior_conversation_events_actor_identity_idx",
1535
- "columns": [
1536
- {
1537
- "expression": "actor_identity_id",
1538
- "isExpression": false,
1539
- "asc": true,
1540
- "nulls": "last"
1541
- },
1542
- {
1543
- "expression": "conversation_id",
1544
- "isExpression": false,
1545
- "asc": true,
1546
- "nulls": "last"
1547
- },
1548
- {
1549
- "expression": "seq",
1550
- "isExpression": false,
1551
- "asc": true,
1552
- "nulls": "last"
1553
- }
1554
- ],
1555
- "isUnique": false,
1556
- "with": {},
1557
- "method": "btree",
1558
- "concurrently": false
1559
- },
1560
- "junior_conversation_events_message_search_idx": {
1561
- "name": "junior_conversation_events_message_search_idx",
1562
- "columns": [
1563
- {
1564
- "expression": "to_tsvector('english', \"payload\"->>'text')",
1565
- "isExpression": true,
1566
- "asc": true,
1567
- "nulls": "last"
1568
- }
1569
- ],
1570
- "isUnique": false,
1571
- "with": {},
1572
- "method": "gin",
1573
- "where": "\"junior_conversation_events\".\"type\" = 'message'",
1574
- "concurrently": false
1575
- },
1576
- "junior_conversation_events_idempotency_idx": {
1577
- "name": "junior_conversation_events_idempotency_idx",
1578
- "columns": [
1579
- {
1580
- "expression": "conversation_id",
1581
- "isExpression": false,
1582
- "asc": true,
1583
- "nulls": "last"
1584
- },
1585
- {
1586
- "expression": "idempotency_key",
1587
- "isExpression": false,
1588
- "asc": true,
1589
- "nulls": "last"
1590
- }
1591
- ],
1592
- "isUnique": true,
1593
- "with": {},
1594
- "method": "btree",
1595
- "concurrently": false
1596
- }
1597
- },
1598
- "foreignKeys": {
1599
- "junior_conversation_events_actor_identity_id_junior_identities_id_fk": {
1600
- "name": "junior_conversation_events_actor_identity_id_junior_identities_id_fk",
1601
- "tableFrom": "junior_conversation_events",
1602
- "columnsFrom": [
1603
- "actor_identity_id"
1604
- ],
1605
- "tableTo": "junior_identities",
1606
- "columnsTo": [
1607
- "id"
1608
- ],
1609
- "onUpdate": "no action",
1610
- "onDelete": "no action"
1611
- },
1612
- "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
1613
- "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
1614
- "tableFrom": "junior_conversation_events",
1615
- "columnsFrom": [
1616
- "conversation_id"
1617
- ],
1618
- "tableTo": "junior_conversations",
1619
- "columnsTo": [
1620
- "conversation_id"
1621
- ],
1622
- "onUpdate": "no action",
1623
- "onDelete": "no action"
1624
- }
1625
- },
1626
- "compositePrimaryKeys": {
1627
- "junior_conversation_events_conversation_id_seq_pk": {
1628
- "name": "junior_conversation_events_conversation_id_seq_pk",
1629
- "columns": [
1630
- "conversation_id",
1631
- "seq"
1632
- ]
1633
- }
1634
- },
1635
- "uniqueConstraints": {},
1636
- "policies": {},
1637
- "checkConstraints": {},
1638
- "isRLSEnabled": false
1639
- },
1640
- "public.junior_conversation_metrics": {
1641
- "name": "junior_conversation_metrics",
1642
- "schema": "",
1643
- "columns": {
1644
- "conversation_id": {
1645
- "name": "conversation_id",
1646
- "type": "text",
1647
- "primaryKey": false,
1648
- "notNull": true
1649
- },
1650
- "run_id": {
1651
- "name": "run_id",
1652
- "type": "text",
1653
- "primaryKey": false,
1654
- "notNull": true
1655
- },
1656
- "metric": {
1657
- "name": "metric",
1658
- "type": "text",
1659
- "primaryKey": false,
1660
- "notNull": true
1661
- },
1662
- "value": {
1663
- "name": "value",
1664
- "type": "double precision",
1665
- "primaryKey": false,
1666
- "notNull": true
1667
- },
1668
- "occurred_at": {
1669
- "name": "occurred_at",
1670
- "type": "timestamp with time zone",
1671
- "primaryKey": false,
1672
- "notNull": true
1673
- },
1674
- "updated_at": {
1675
- "name": "updated_at",
1676
- "type": "timestamp with time zone",
1677
- "primaryKey": false,
1678
- "notNull": true
1679
- }
1680
- },
1681
- "indexes": {
1682
- "junior_conversation_metrics_occurred_at_metric_idx": {
1683
- "name": "junior_conversation_metrics_occurred_at_metric_idx",
1684
- "columns": [
1685
- {
1686
- "expression": "occurred_at",
1687
- "isExpression": false,
1688
- "asc": true,
1689
- "nulls": "last"
1690
- },
1691
- {
1692
- "expression": "metric",
1693
- "isExpression": false,
1694
- "asc": true,
1695
- "nulls": "last"
1696
- }
1697
- ],
1698
- "isUnique": false,
1699
- "with": {},
1700
- "method": "btree",
1701
- "concurrently": false
1702
- }
1703
- },
1704
- "foreignKeys": {
1705
- "junior_conversation_metrics_conversation_id_junior_conversations_conversation_id_fk": {
1706
- "name": "junior_conversation_metrics_conversation_id_junior_conversations_conversation_id_fk",
1707
- "tableFrom": "junior_conversation_metrics",
1708
- "columnsFrom": [
1709
- "conversation_id"
1710
- ],
1711
- "tableTo": "junior_conversations",
1712
- "columnsTo": [
1713
- "conversation_id"
1714
- ],
1715
- "onUpdate": "no action",
1716
- "onDelete": "no action"
1717
- }
1718
- },
1719
- "compositePrimaryKeys": {
1720
- "junior_conversation_metrics_conversation_id_run_id_metric_pk": {
1721
- "name": "junior_conversation_metrics_conversation_id_run_id_metric_pk",
1722
- "columns": [
1723
- "conversation_id",
1724
- "run_id",
1725
- "metric"
1726
- ]
1727
- }
1728
- },
1729
- "uniqueConstraints": {},
1730
- "policies": {},
1731
- "checkConstraints": {},
1732
- "isRLSEnabled": false
1733
- },
1734
- "public.junior_conversation_participants": {
1735
- "name": "junior_conversation_participants",
1736
- "schema": "",
1737
- "columns": {
1738
- "user_id": {
1739
- "name": "user_id",
1740
- "type": "text",
1741
- "primaryKey": false,
1742
- "notNull": true
1743
- },
1744
- "root_conversation_id": {
1745
- "name": "root_conversation_id",
1746
- "type": "text",
1747
- "primaryKey": false,
1748
- "notNull": true
1749
- },
1750
- "last_message_at": {
1751
- "name": "last_message_at",
1752
- "type": "timestamp with time zone",
1753
- "primaryKey": false,
1754
- "notNull": true
1755
- },
1756
- "archived_at": {
1757
- "name": "archived_at",
1758
- "type": "timestamp with time zone",
1759
- "primaryKey": false,
1760
- "notNull": false
1761
- }
1762
- },
1763
- "indexes": {
1764
- "junior_conversation_participants_user_activity_idx": {
1765
- "name": "junior_conversation_participants_user_activity_idx",
1766
- "columns": [
1767
- {
1768
- "expression": "user_id",
1769
- "isExpression": false,
1770
- "asc": true,
1771
- "nulls": "last"
1772
- },
1773
- {
1774
- "expression": "last_message_at",
1775
- "isExpression": false,
1776
- "asc": false,
1777
- "nulls": "last"
1778
- }
1779
- ],
1780
- "isUnique": false,
1781
- "with": {},
1782
- "method": "btree",
1783
- "concurrently": false
1784
- },
1785
- "junior_conversation_participants_root_idx": {
1786
- "name": "junior_conversation_participants_root_idx",
1787
- "columns": [
1788
- {
1789
- "expression": "root_conversation_id",
1790
- "isExpression": false,
1791
- "asc": true,
1792
- "nulls": "last"
1793
- }
1794
- ],
1795
- "isUnique": false,
1796
- "with": {},
1797
- "method": "btree",
1798
- "concurrently": false
1799
- }
1800
- },
1801
- "foreignKeys": {
1802
- "junior_conversation_participants_user_id_junior_users_id_fk": {
1803
- "name": "junior_conversation_participants_user_id_junior_users_id_fk",
1804
- "tableFrom": "junior_conversation_participants",
1805
- "columnsFrom": [
1806
- "user_id"
1807
- ],
1808
- "tableTo": "junior_users",
1809
- "columnsTo": [
1810
- "id"
1811
- ],
1812
- "onUpdate": "no action",
1813
- "onDelete": "no action"
1814
- },
1815
- "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk": {
1816
- "name": "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk",
1817
- "tableFrom": "junior_conversation_participants",
1818
- "columnsFrom": [
1819
- "root_conversation_id"
1820
- ],
1821
- "tableTo": "junior_conversations",
1822
- "columnsTo": [
1823
- "conversation_id"
1824
- ],
1825
- "onUpdate": "no action",
1826
- "onDelete": "no action"
1827
- }
1828
- },
1829
- "compositePrimaryKeys": {
1830
- "junior_conversation_participants_user_root_pk": {
1831
- "name": "junior_conversation_participants_user_root_pk",
1832
- "columns": [
1833
- "user_id",
1834
- "root_conversation_id"
1835
- ]
1836
- }
1837
- },
1838
- "uniqueConstraints": {},
1839
- "policies": {},
1840
- "checkConstraints": {},
1841
- "isRLSEnabled": false
1842
- },
1843
- "public.junior_conversations": {
1844
- "name": "junior_conversations",
1845
- "schema": "",
1846
- "columns": {
1847
- "conversation_id": {
1848
- "name": "conversation_id",
1849
- "type": "text",
1850
- "primaryKey": true,
1851
- "notNull": true
1852
- },
1853
- "schema_version": {
1854
- "name": "schema_version",
1855
- "type": "integer",
1856
- "primaryKey": false,
1857
- "notNull": true,
1858
- "default": 1
1859
- },
1860
- "source": {
1861
- "name": "source",
1862
- "type": "text",
1863
- "primaryKey": false,
1864
- "notNull": false
1865
- },
1866
- "source_json": {
1867
- "name": "source_json",
1868
- "type": "jsonb",
1869
- "primaryKey": false,
1870
- "notNull": false
1871
- },
1872
- "origin_type": {
1873
- "name": "origin_type",
1874
- "type": "text",
1875
- "primaryKey": false,
1876
- "notNull": false
1877
- },
1878
- "origin_id": {
1879
- "name": "origin_id",
1880
- "type": "text",
1881
- "primaryKey": false,
1882
- "notNull": false
1883
- },
1884
- "origin_run_id": {
1885
- "name": "origin_run_id",
1886
- "type": "text",
1887
- "primaryKey": false,
1888
- "notNull": false
1889
- },
1890
- "location_json": {
1891
- "name": "location_json",
1892
- "type": "jsonb",
1893
- "primaryKey": false,
1894
- "notNull": false
1895
- },
1896
- "destination_id": {
1897
- "name": "destination_id",
1898
- "type": "text",
1899
- "primaryKey": false,
1900
- "notNull": false
1901
- },
1902
- "destination_json": {
1903
- "name": "destination_json",
1904
- "type": "jsonb",
1905
- "primaryKey": false,
1906
- "notNull": false
1907
- },
1908
- "actor_identity_id": {
1909
- "name": "actor_identity_id",
1910
- "type": "text",
1911
- "primaryKey": false,
1912
- "notNull": false
1913
- },
1914
- "creator_identity_id": {
1915
- "name": "creator_identity_id",
1916
- "type": "text",
1917
- "primaryKey": false,
1918
- "notNull": false
1919
- },
1920
- "credential_subject_identity_id": {
1921
- "name": "credential_subject_identity_id",
1922
- "type": "text",
1923
- "primaryKey": false,
1924
- "notNull": false
1925
- },
1926
- "actor_json": {
1927
- "name": "actor_json",
1928
- "type": "jsonb",
1929
- "primaryKey": false,
1930
- "notNull": false
1931
- },
1932
- "channel_name": {
1933
- "name": "channel_name",
1934
- "type": "text",
1935
- "primaryKey": false,
1936
- "notNull": false
1937
- },
1938
- "title": {
1939
- "name": "title",
1940
- "type": "text",
1941
- "primaryKey": false,
1942
- "notNull": false
1943
- },
1944
- "created_at": {
1945
- "name": "created_at",
1946
- "type": "timestamp with time zone",
1947
- "primaryKey": false,
1948
- "notNull": true
1949
- },
1950
- "last_activity_at": {
1951
- "name": "last_activity_at",
1952
- "type": "timestamp with time zone",
1953
- "primaryKey": false,
1954
- "notNull": true
1955
- },
1956
- "updated_at": {
1957
- "name": "updated_at",
1958
- "type": "timestamp with time zone",
1959
- "primaryKey": false,
1960
- "notNull": true
1961
- },
1962
- "execution_updated_at": {
1963
- "name": "execution_updated_at",
1964
- "type": "timestamp with time zone",
1965
- "primaryKey": false,
1966
- "notNull": false
1967
- },
1968
- "execution_status": {
1969
- "name": "execution_status",
1970
- "type": "text",
1971
- "primaryKey": false,
1972
- "notNull": true
1973
- },
1974
- "run_id": {
1975
- "name": "run_id",
1976
- "type": "text",
1977
- "primaryKey": false,
1978
- "notNull": false
1979
- },
1980
- "last_checkpoint_at": {
1981
- "name": "last_checkpoint_at",
1982
- "type": "timestamp with time zone",
1983
- "primaryKey": false,
1984
- "notNull": false
1985
- },
1986
- "last_enqueued_at": {
1987
- "name": "last_enqueued_at",
1988
- "type": "timestamp with time zone",
1989
- "primaryKey": false,
1990
- "notNull": false
1991
- },
1992
- "parent_conversation_id": {
1993
- "name": "parent_conversation_id",
1994
- "type": "text",
1995
- "primaryKey": false,
1996
- "notNull": false
1997
- },
1998
- "root_conversation_id": {
1999
- "name": "root_conversation_id",
2000
- "type": "text",
2001
- "primaryKey": false,
2002
- "notNull": false
2003
- },
2004
- "transcript_purged_at": {
2005
- "name": "transcript_purged_at",
2006
- "type": "timestamp with time zone",
2007
- "primaryKey": false,
2008
- "notNull": false
2009
- },
2010
- "duration_ms": {
2011
- "name": "duration_ms",
2012
- "type": "integer",
2013
- "primaryKey": false,
2014
- "notNull": true,
2015
- "default": 0
2016
- },
2017
- "usage_json": {
2018
- "name": "usage_json",
2019
- "type": "jsonb",
2020
- "primaryKey": false,
2021
- "notNull": false
2022
- },
2023
- "execution_duration_ms": {
2024
- "name": "execution_duration_ms",
2025
- "type": "integer",
2026
- "primaryKey": false,
2027
- "notNull": true,
2028
- "default": 0
2029
- },
2030
- "execution_usage_json": {
2031
- "name": "execution_usage_json",
2032
- "type": "jsonb",
2033
- "primaryKey": false,
2034
- "notNull": false
2035
- },
2036
- "metric_run_id": {
2037
- "name": "metric_run_id",
2038
- "type": "text",
2039
- "primaryKey": false,
2040
- "notNull": false
2041
- },
2042
- "archived_at": {
2043
- "name": "archived_at",
2044
- "type": "timestamp with time zone",
2045
- "primaryKey": false,
2046
- "notNull": false
2047
- }
2048
- },
2049
- "indexes": {
2050
- "junior_conversations_last_activity_idx": {
2051
- "name": "junior_conversations_last_activity_idx",
2052
- "columns": [
2053
- {
2054
- "expression": "last_activity_at",
2055
- "isExpression": false,
2056
- "asc": false,
2057
- "nulls": "last"
2058
- },
2059
- {
2060
- "expression": "conversation_id",
2061
- "isExpression": false,
2062
- "asc": true,
2063
- "nulls": "last"
2064
- }
2065
- ],
2066
- "isUnique": false,
2067
- "with": {},
2068
- "method": "btree",
2069
- "concurrently": false
2070
- },
2071
- "junior_conversations_active_idx": {
2072
- "name": "junior_conversations_active_idx",
2073
- "columns": [
2074
- {
2075
- "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
2076
- "isExpression": true,
2077
- "asc": true,
2078
- "nulls": "last"
2079
- },
2080
- {
2081
- "expression": "conversation_id",
2082
- "isExpression": false,
2083
- "asc": true,
2084
- "nulls": "last"
2085
- }
2086
- ],
2087
- "isUnique": false,
2088
- "with": {},
2089
- "method": "btree",
2090
- "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
2091
- "concurrently": false
2092
- },
2093
- "junior_conversations_destination_activity_idx": {
2094
- "name": "junior_conversations_destination_activity_idx",
2095
- "columns": [
2096
- {
2097
- "expression": "destination_id",
2098
- "isExpression": false,
2099
- "asc": true,
2100
- "nulls": "last"
2101
- },
2102
- {
2103
- "expression": "last_activity_at",
2104
- "isExpression": false,
2105
- "asc": false,
2106
- "nulls": "last"
2107
- }
2108
- ],
2109
- "isUnique": false,
2110
- "with": {},
2111
- "method": "btree",
2112
- "concurrently": false
2113
- },
2114
- "junior_conversations_actor_activity_idx": {
2115
- "name": "junior_conversations_actor_activity_idx",
2116
- "columns": [
2117
- {
2118
- "expression": "actor_identity_id",
2119
- "isExpression": false,
2120
- "asc": true,
2121
- "nulls": "last"
2122
- },
2123
- {
2124
- "expression": "last_activity_at",
2125
- "isExpression": false,
2126
- "asc": false,
2127
- "nulls": "last"
2128
- }
2129
- ],
2130
- "isUnique": false,
2131
- "with": {},
2132
- "method": "btree",
2133
- "concurrently": false
2134
- },
2135
- "junior_conversations_origin_idx": {
2136
- "name": "junior_conversations_origin_idx",
2137
- "columns": [
2138
- {
2139
- "expression": "origin_type",
2140
- "isExpression": false,
2141
- "asc": true,
2142
- "nulls": "last"
2143
- },
2144
- {
2145
- "expression": "origin_id",
2146
- "isExpression": false,
2147
- "asc": true,
2148
- "nulls": "last"
2149
- },
2150
- {
2151
- "expression": "last_activity_at",
2152
- "isExpression": false,
2153
- "asc": false,
2154
- "nulls": "last"
2155
- }
2156
- ],
2157
- "isUnique": false,
2158
- "with": {},
2159
- "method": "btree",
2160
- "concurrently": false
2161
- },
2162
- "junior_conversations_parent_idx": {
2163
- "name": "junior_conversations_parent_idx",
2164
- "columns": [
2165
- {
2166
- "expression": "parent_conversation_id",
2167
- "isExpression": false,
2168
- "asc": true,
2169
- "nulls": "last"
2170
- }
2171
- ],
2172
- "isUnique": false,
2173
- "with": {},
2174
- "method": "btree",
2175
- "concurrently": false
2176
- },
2177
- "junior_conversations_root_idx": {
2178
- "name": "junior_conversations_root_idx",
2179
- "columns": [
2180
- {
2181
- "expression": "root_conversation_id",
2182
- "isExpression": false,
2183
- "asc": true,
2184
- "nulls": "last"
2185
- }
2186
- ],
2187
- "isUnique": false,
2188
- "with": {},
2189
- "method": "btree",
2190
- "concurrently": false
2191
- }
2192
- },
2193
- "foreignKeys": {
2194
- "junior_conversations_destination_id_junior_destinations_id_fk": {
2195
- "name": "junior_conversations_destination_id_junior_destinations_id_fk",
2196
- "tableFrom": "junior_conversations",
2197
- "columnsFrom": [
2198
- "destination_id"
2199
- ],
2200
- "tableTo": "junior_destinations",
2201
- "columnsTo": [
2202
- "id"
2203
- ],
2204
- "onUpdate": "no action",
2205
- "onDelete": "no action"
2206
- },
2207
- "junior_conversations_actor_identity_id_junior_identities_id_fk": {
2208
- "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
2209
- "tableFrom": "junior_conversations",
2210
- "columnsFrom": [
2211
- "actor_identity_id"
2212
- ],
2213
- "tableTo": "junior_identities",
2214
- "columnsTo": [
2215
- "id"
2216
- ],
2217
- "onUpdate": "no action",
2218
- "onDelete": "no action"
2219
- },
2220
- "junior_conversations_creator_identity_id_junior_identities_id_fk": {
2221
- "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
2222
- "tableFrom": "junior_conversations",
2223
- "columnsFrom": [
2224
- "creator_identity_id"
2225
- ],
2226
- "tableTo": "junior_identities",
2227
- "columnsTo": [
2228
- "id"
2229
- ],
2230
- "onUpdate": "no action",
2231
- "onDelete": "no action"
2232
- },
2233
- "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
2234
- "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
2235
- "tableFrom": "junior_conversations",
2236
- "columnsFrom": [
2237
- "credential_subject_identity_id"
2238
- ],
2239
- "tableTo": "junior_identities",
2240
- "columnsTo": [
2241
- "id"
2242
- ],
2243
- "onUpdate": "no action",
2244
- "onDelete": "no action"
2245
- },
2246
- "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
2247
- "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
2248
- "tableFrom": "junior_conversations",
2249
- "columnsFrom": [
2250
- "parent_conversation_id"
2251
- ],
2252
- "tableTo": "junior_conversations",
2253
- "columnsTo": [
2254
- "conversation_id"
2255
- ],
2256
- "onUpdate": "no action",
2257
- "onDelete": "no action"
2258
- },
2259
- "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
2260
- "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
2261
- "tableFrom": "junior_conversations",
2262
- "columnsFrom": [
2263
- "root_conversation_id"
2264
- ],
2265
- "tableTo": "junior_conversations",
2266
- "columnsTo": [
2267
- "conversation_id"
2268
- ],
2269
- "onUpdate": "no action",
2270
- "onDelete": "no action"
2271
- }
2272
- },
2273
- "compositePrimaryKeys": {},
2274
- "uniqueConstraints": {},
2275
- "policies": {},
2276
- "checkConstraints": {},
2277
- "isRLSEnabled": false
2278
- },
2279
- "public.junior_destinations": {
2280
- "name": "junior_destinations",
2281
- "schema": "",
2282
- "columns": {
2283
- "id": {
2284
- "name": "id",
2285
- "type": "text",
2286
- "primaryKey": true,
2287
- "notNull": true
2288
- },
2289
- "provider": {
2290
- "name": "provider",
2291
- "type": "text",
2292
- "primaryKey": false,
2293
- "notNull": true
2294
- },
2295
- "provider_tenant_id": {
2296
- "name": "provider_tenant_id",
2297
- "type": "text",
2298
- "primaryKey": false,
2299
- "notNull": true,
2300
- "default": "''"
2301
- },
2302
- "provider_destination_id": {
2303
- "name": "provider_destination_id",
2304
- "type": "text",
2305
- "primaryKey": false,
2306
- "notNull": true
2307
- },
2308
- "kind": {
2309
- "name": "kind",
2310
- "type": "text",
2311
- "primaryKey": false,
2312
- "notNull": true
2313
- },
2314
- "parent_destination_id": {
2315
- "name": "parent_destination_id",
2316
- "type": "text",
2317
- "primaryKey": false,
2318
- "notNull": false
2319
- },
2320
- "display_name": {
2321
- "name": "display_name",
2322
- "type": "text",
2323
- "primaryKey": false,
2324
- "notNull": false
2325
- },
2326
- "visibility": {
2327
- "name": "visibility",
2328
- "type": "text",
2329
- "primaryKey": false,
2330
- "notNull": true,
2331
- "default": "'unknown'"
2332
- },
2333
- "metadata_json": {
2334
- "name": "metadata_json",
2335
- "type": "jsonb",
2336
- "primaryKey": false,
2337
- "notNull": false
2338
- },
2339
- "created_at": {
2340
- "name": "created_at",
2341
- "type": "timestamp with time zone",
2342
- "primaryKey": false,
2343
- "notNull": true
2344
- },
2345
- "updated_at": {
2346
- "name": "updated_at",
2347
- "type": "timestamp with time zone",
2348
- "primaryKey": false,
2349
- "notNull": true
2350
- }
2351
- },
2352
- "indexes": {
2353
- "junior_destinations_provider_destination_uidx": {
2354
- "name": "junior_destinations_provider_destination_uidx",
2355
- "columns": [
2356
- {
2357
- "expression": "provider",
2358
- "isExpression": false,
2359
- "asc": true,
2360
- "nulls": "last"
2361
- },
2362
- {
2363
- "expression": "provider_tenant_id",
2364
- "isExpression": false,
2365
- "asc": true,
2366
- "nulls": "last"
2367
- },
2368
- {
2369
- "expression": "provider_destination_id",
2370
- "isExpression": false,
2371
- "asc": true,
2372
- "nulls": "last"
2373
- }
2374
- ],
2375
- "isUnique": true,
2376
- "with": {},
2377
- "method": "btree",
2378
- "concurrently": false
2379
- },
2380
- "junior_destinations_provider_kind_idx": {
2381
- "name": "junior_destinations_provider_kind_idx",
2382
- "columns": [
2383
- {
2384
- "expression": "provider",
2385
- "isExpression": false,
2386
- "asc": true,
2387
- "nulls": "last"
2388
- },
2389
- {
2390
- "expression": "kind",
2391
- "isExpression": false,
2392
- "asc": true,
2393
- "nulls": "last"
2394
- }
2395
- ],
2396
- "isUnique": false,
2397
- "with": {},
2398
- "method": "btree",
2399
- "concurrently": false
2400
- }
2401
- },
2402
- "foreignKeys": {},
2403
- "compositePrimaryKeys": {},
2404
- "uniqueConstraints": {},
2405
- "policies": {},
2406
- "checkConstraints": {},
2407
- "isRLSEnabled": false
2408
- },
2409
- "public.junior_event_tasks": {
2410
- "name": "junior_event_tasks",
2411
- "schema": "",
2412
- "columns": {
2413
- "id": {
2414
- "name": "id",
2415
- "type": "text",
2416
- "primaryKey": true,
2417
- "notNull": true
2418
- },
2419
- "team_id": {
2420
- "name": "team_id",
2421
- "type": "text",
2422
- "primaryKey": false,
2423
- "notNull": true
2424
- },
2425
- "namespace": {
2426
- "name": "namespace",
2427
- "type": "text",
2428
- "primaryKey": false,
2429
- "notNull": true
2430
- },
2431
- "identifier": {
2432
- "name": "identifier",
2433
- "type": "text",
2434
- "primaryKey": false,
2435
- "notNull": true
2436
- },
2437
- "created_at_ms": {
2438
- "name": "created_at_ms",
2439
- "type": "bigint",
2440
- "primaryKey": false,
2441
- "notNull": true
2442
- },
2443
- "status": {
2444
- "name": "status",
2445
- "type": "text",
2446
- "primaryKey": false,
2447
- "notNull": true,
2448
- "default": "'active'"
2449
- },
2450
- "title": {
2451
- "name": "title",
2452
- "type": "text",
2453
- "primaryKey": false,
2454
- "notNull": false
2455
- },
2456
- "task_json": {
2457
- "name": "task_json",
2458
- "type": "jsonb",
2459
- "primaryKey": false,
2460
- "notNull": true
2461
- }
2462
- },
2463
- "indexes": {
2464
- "junior_event_tasks_team_idx": {
2465
- "name": "junior_event_tasks_team_idx",
2466
- "columns": [
2467
- {
2468
- "expression": "team_id",
2469
- "isExpression": false,
2470
- "asc": true,
2471
- "nulls": "last"
2472
- },
2473
- {
2474
- "expression": "created_at_ms",
2475
- "isExpression": false,
2476
- "asc": true,
2477
- "nulls": "last"
2478
- },
2479
- {
2480
- "expression": "id",
2481
- "isExpression": false,
2482
- "asc": true,
2483
- "nulls": "last"
2484
- }
2485
- ],
2486
- "isUnique": false,
2487
- "with": {},
2488
- "method": "btree",
2489
- "where": "\"junior_event_tasks\".\"status\" <> 'deleted'",
2490
- "concurrently": false
2491
- },
2492
- "junior_event_tasks_match_idx": {
2493
- "name": "junior_event_tasks_match_idx",
2494
- "columns": [
2495
- {
2496
- "expression": "namespace",
2497
- "isExpression": false,
2498
- "asc": true,
2499
- "nulls": "last"
2500
- },
2501
- {
2502
- "expression": "identifier",
2503
- "isExpression": false,
2504
- "asc": true,
2505
- "nulls": "last"
2506
- },
2507
- {
2508
- "expression": "created_at_ms",
2509
- "isExpression": false,
2510
- "asc": true,
2511
- "nulls": "last"
2512
- },
2513
- {
2514
- "expression": "id",
2515
- "isExpression": false,
2516
- "asc": true,
2517
- "nulls": "last"
2518
- }
2519
- ],
2520
- "isUnique": false,
2521
- "with": {},
2522
- "method": "btree",
2523
- "where": "\"junior_event_tasks\".\"status\" <> 'deleted'",
2524
- "concurrently": false
2525
- }
2526
- },
2527
- "foreignKeys": {},
2528
- "compositePrimaryKeys": {},
2529
- "uniqueConstraints": {},
2530
- "policies": {},
2531
- "checkConstraints": {},
2532
- "isRLSEnabled": false
2533
- },
2534
- "public.junior_identities": {
2535
- "name": "junior_identities",
2536
- "schema": "",
2537
- "columns": {
2538
- "id": {
2539
- "name": "id",
2540
- "type": "text",
2541
- "primaryKey": true,
2542
- "notNull": true
2543
- },
2544
- "kind": {
2545
- "name": "kind",
2546
- "type": "text",
2547
- "primaryKey": false,
2548
- "notNull": true
2549
- },
2550
- "provider": {
2551
- "name": "provider",
2552
- "type": "text",
2553
- "primaryKey": false,
2554
- "notNull": true
2555
- },
2556
- "provider_tenant_id": {
2557
- "name": "provider_tenant_id",
2558
- "type": "text",
2559
- "primaryKey": false,
2560
- "notNull": true,
2561
- "default": "''"
2562
- },
2563
- "provider_subject_id": {
2564
- "name": "provider_subject_id",
2565
- "type": "text",
2566
- "primaryKey": false,
2567
- "notNull": true
2568
- },
2569
- "display_name": {
2570
- "name": "display_name",
2571
- "type": "text",
2572
- "primaryKey": false,
2573
- "notNull": false
2574
- },
2575
- "handle": {
2576
- "name": "handle",
2577
- "type": "text",
2578
- "primaryKey": false,
2579
- "notNull": false
2580
- },
2581
- "email": {
2582
- "name": "email",
2583
- "type": "text",
2584
- "primaryKey": false,
2585
- "notNull": false
2586
- },
2587
- "avatar_url": {
2588
- "name": "avatar_url",
2589
- "type": "text",
2590
- "primaryKey": false,
2591
- "notNull": false
2592
- },
2593
- "metadata_json": {
2594
- "name": "metadata_json",
2595
- "type": "jsonb",
2596
- "primaryKey": false,
2597
- "notNull": false
2598
- },
2599
- "created_at": {
2600
- "name": "created_at",
2601
- "type": "timestamp with time zone",
2602
- "primaryKey": false,
2603
- "notNull": true
2604
- },
2605
- "updated_at": {
2606
- "name": "updated_at",
2607
- "type": "timestamp with time zone",
2608
- "primaryKey": false,
2609
- "notNull": true
2610
- },
2611
- "user_id": {
2612
- "name": "user_id",
2613
- "type": "text",
2614
- "primaryKey": false,
2615
- "notNull": false
2616
- },
2617
- "email_normalized": {
2618
- "name": "email_normalized",
2619
- "type": "text",
2620
- "primaryKey": false,
2621
- "notNull": false
2622
- },
2623
- "email_verified": {
2624
- "name": "email_verified",
2625
- "type": "boolean",
2626
- "primaryKey": false,
2627
- "notNull": true,
2628
- "default": false
2629
- }
2630
- },
2631
- "indexes": {
2632
- "junior_identities_provider_subject_uidx": {
2633
- "name": "junior_identities_provider_subject_uidx",
2634
- "columns": [
2635
- {
2636
- "expression": "provider",
2637
- "isExpression": false,
2638
- "asc": true,
2639
- "nulls": "last"
2640
- },
2641
- {
2642
- "expression": "provider_tenant_id",
2643
- "isExpression": false,
2644
- "asc": true,
2645
- "nulls": "last"
2646
- },
2647
- {
2648
- "expression": "provider_subject_id",
2649
- "isExpression": false,
2650
- "asc": true,
2651
- "nulls": "last"
2652
- }
2653
- ],
2654
- "isUnique": true,
2655
- "with": {},
2656
- "method": "btree",
2657
- "concurrently": false
2658
- },
2659
- "junior_identities_user_idx": {
2660
- "name": "junior_identities_user_idx",
2661
- "columns": [
2662
- {
2663
- "expression": "user_id",
2664
- "isExpression": false,
2665
- "asc": true,
2666
- "nulls": "last"
2667
- }
2668
- ],
2669
- "isUnique": false,
2670
- "with": {},
2671
- "method": "btree",
2672
- "concurrently": false
2673
- },
2674
- "junior_identities_verified_email_idx": {
2675
- "name": "junior_identities_verified_email_idx",
2676
- "columns": [
2677
- {
2678
- "expression": "email_normalized",
2679
- "isExpression": false,
2680
- "asc": true,
2681
- "nulls": "last"
2682
- }
2683
- ],
2684
- "isUnique": false,
2685
- "with": {},
2686
- "method": "btree",
2687
- "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
2688
- "concurrently": false
2689
- },
2690
- "junior_identities_kind_provider_idx": {
2691
- "name": "junior_identities_kind_provider_idx",
2692
- "columns": [
2693
- {
2694
- "expression": "kind",
2695
- "isExpression": false,
2696
- "asc": true,
2697
- "nulls": "last"
2698
- },
2699
- {
2700
- "expression": "provider",
2701
- "isExpression": false,
2702
- "asc": true,
2703
- "nulls": "last"
2704
- }
2705
- ],
2706
- "isUnique": false,
2707
- "with": {},
2708
- "method": "btree",
2709
- "concurrently": false
2710
- }
2711
- },
2712
- "foreignKeys": {
2713
- "junior_identities_user_id_junior_users_id_fk": {
2714
- "name": "junior_identities_user_id_junior_users_id_fk",
2715
- "tableFrom": "junior_identities",
2716
- "columnsFrom": [
2717
- "user_id"
2718
- ],
2719
- "tableTo": "junior_users",
2720
- "columnsTo": [
2721
- "id"
2722
- ],
2723
- "onUpdate": "no action",
2724
- "onDelete": "no action"
2725
- }
2726
- },
2727
- "compositePrimaryKeys": {},
2728
- "uniqueConstraints": {},
2729
- "policies": {},
2730
- "checkConstraints": {},
2731
- "isRLSEnabled": false
2732
- },
2733
- "public.junior_location_configurations": {
2734
- "name": "junior_location_configurations",
2735
- "schema": "",
2736
- "columns": {
2737
- "location_id": {
2738
- "name": "location_id",
2739
- "type": "text",
2740
- "primaryKey": false,
2741
- "notNull": true
2742
- },
2743
- "key": {
2744
- "name": "key",
2745
- "type": "text",
2746
- "primaryKey": false,
2747
- "notNull": true
2748
- },
2749
- "value": {
2750
- "name": "value",
2751
- "type": "text",
2752
- "primaryKey": false,
2753
- "notNull": true
2754
- },
2755
- "updated_at": {
2756
- "name": "updated_at",
2757
- "type": "timestamp with time zone",
2758
- "primaryKey": false,
2759
- "notNull": true
2760
- },
2761
- "updated_by": {
2762
- "name": "updated_by",
2763
- "type": "text",
2764
- "primaryKey": false,
2765
- "notNull": false
2766
- },
2767
- "source": {
2768
- "name": "source",
2769
- "type": "text",
2770
- "primaryKey": false,
2771
- "notNull": false
2772
- },
2773
- "expires_at": {
2774
- "name": "expires_at",
2775
- "type": "text",
2776
- "primaryKey": false,
2777
- "notNull": false
2778
- }
2779
- },
2780
- "indexes": {},
2781
- "foreignKeys": {
2782
- "junior_location_configurations_location_id_junior_destinations_id_fk": {
2783
- "name": "junior_location_configurations_location_id_junior_destinations_id_fk",
2784
- "tableFrom": "junior_location_configurations",
2785
- "columnsFrom": [
2786
- "location_id"
2787
- ],
2788
- "tableTo": "junior_destinations",
2789
- "columnsTo": [
2790
- "id"
2791
- ],
2792
- "onUpdate": "no action",
2793
- "onDelete": "cascade"
2794
- }
2795
- },
2796
- "compositePrimaryKeys": {
2797
- "junior_location_configurations_location_id_key_pk": {
2798
- "name": "junior_location_configurations_location_id_key_pk",
2799
- "columns": [
2800
- "location_id",
2801
- "key"
2802
- ]
2803
- }
2804
- },
2805
- "uniqueConstraints": {},
2806
- "policies": {},
2807
- "checkConstraints": {},
2808
- "isRLSEnabled": false
2809
- },
2810
- "public.junior_scheduler_runs": {
2811
- "name": "junior_scheduler_runs",
2812
- "schema": "",
2813
- "columns": {
2814
- "id": {
2815
- "name": "id",
2816
- "type": "text",
2817
- "primaryKey": true,
2818
- "notNull": true
2819
- },
2820
- "task_id": {
2821
- "name": "task_id",
2822
- "type": "text",
2823
- "primaryKey": false,
2824
- "notNull": true
2825
- },
2826
- "status": {
2827
- "name": "status",
2828
- "type": "text",
2829
- "primaryKey": false,
2830
- "notNull": true
2831
- },
2832
- "scheduled_for_ms": {
2833
- "name": "scheduled_for_ms",
2834
- "type": "bigint",
2835
- "primaryKey": false,
2836
- "notNull": true
2837
- },
2838
- "record": {
2839
- "name": "record",
2840
- "type": "jsonb",
2841
- "primaryKey": false,
2842
- "notNull": true
2843
- }
2844
- },
2845
- "indexes": {
2846
- "junior_scheduler_runs_task_status_idx": {
2847
- "name": "junior_scheduler_runs_task_status_idx",
2848
- "columns": [
2849
- {
2850
- "expression": "task_id",
2851
- "isExpression": false,
2852
- "asc": true,
2853
- "nulls": "last"
2854
- },
2855
- {
2856
- "expression": "status",
2857
- "isExpression": false,
2858
- "asc": true,
2859
- "nulls": "last"
2860
- },
2861
- {
2862
- "expression": "scheduled_for_ms",
2863
- "isExpression": false,
2864
- "asc": true,
2865
- "nulls": "last"
2866
- }
2867
- ],
2868
- "isUnique": false,
2869
- "with": {},
2870
- "method": "btree",
2871
- "concurrently": false
2872
- },
2873
- "junior_scheduler_runs_status_idx": {
2874
- "name": "junior_scheduler_runs_status_idx",
2875
- "columns": [
2876
- {
2877
- "expression": "status",
2878
- "isExpression": false,
2879
- "asc": true,
2880
- "nulls": "last"
2881
- },
2882
- {
2883
- "expression": "scheduled_for_ms",
2884
- "isExpression": false,
2885
- "asc": true,
2886
- "nulls": "last"
2887
- }
2888
- ],
2889
- "isUnique": false,
2890
- "with": {},
2891
- "method": "btree",
2892
- "concurrently": false
2893
- }
2894
- },
2895
- "foreignKeys": {},
2896
- "compositePrimaryKeys": {},
2897
- "uniqueConstraints": {},
2898
- "policies": {},
2899
- "checkConstraints": {},
2900
- "isRLSEnabled": false
2901
- },
2902
- "public.junior_scheduler_tasks": {
2903
- "name": "junior_scheduler_tasks",
2904
- "schema": "",
2905
- "columns": {
2906
- "id": {
2907
- "name": "id",
2908
- "type": "text",
2909
- "primaryKey": true,
2910
- "notNull": true
2911
- },
2912
- "team_id": {
2913
- "name": "team_id",
2914
- "type": "text",
2915
- "primaryKey": false,
2916
- "notNull": true
2917
- },
2918
- "creator_slack_user_id": {
2919
- "name": "creator_slack_user_id",
2920
- "type": "text",
2921
- "primaryKey": false,
2922
- "notNull": false
2923
- },
2924
- "creator_identity_id": {
2925
- "name": "creator_identity_id",
2926
- "type": "text",
2927
- "primaryKey": false,
2928
- "notNull": false
2929
- },
2930
- "status": {
2931
- "name": "status",
2932
- "type": "text",
2933
- "primaryKey": false,
2934
- "notNull": true
2935
- },
2936
- "next_run_at_ms": {
2937
- "name": "next_run_at_ms",
2938
- "type": "bigint",
2939
- "primaryKey": false,
2940
- "notNull": false
2941
- },
2942
- "run_now_at_ms": {
2943
- "name": "run_now_at_ms",
2944
- "type": "bigint",
2945
- "primaryKey": false,
2946
- "notNull": false
2947
- },
2948
- "created_at_ms": {
2949
- "name": "created_at_ms",
2950
- "type": "bigint",
2951
- "primaryKey": false,
2952
- "notNull": true
2953
- },
2954
- "title": {
2955
- "name": "title",
2956
- "type": "text",
2957
- "primaryKey": false,
2958
- "notNull": false
2959
- },
2960
- "record": {
2961
- "name": "record",
2962
- "type": "jsonb",
2963
- "primaryKey": false,
2964
- "notNull": true
2965
- }
2966
- },
2967
- "indexes": {
2968
- "junior_scheduler_tasks_creator_idx": {
2969
- "name": "junior_scheduler_tasks_creator_idx",
2970
- "columns": [
2971
- {
2972
- "expression": "team_id",
2973
- "isExpression": false,
2974
- "asc": true,
2975
- "nulls": "last"
2976
- },
2977
- {
2978
- "expression": "creator_slack_user_id",
2979
- "isExpression": false,
2980
- "asc": true,
2981
- "nulls": "last"
2982
- },
2983
- {
2984
- "expression": "created_at_ms",
2985
- "isExpression": false,
2986
- "asc": true,
2987
- "nulls": "last"
2988
- },
2989
- {
2990
- "expression": "id",
2991
- "isExpression": false,
2992
- "asc": true,
2993
- "nulls": "last"
2994
- }
2995
- ],
2996
- "isUnique": false,
2997
- "with": {},
2998
- "method": "btree",
2999
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
3000
- "concurrently": false
3001
- },
3002
- "junior_scheduler_tasks_creator_identity_idx": {
3003
- "name": "junior_scheduler_tasks_creator_identity_idx",
3004
- "columns": [
3005
- {
3006
- "expression": "creator_identity_id",
3007
- "isExpression": false,
3008
- "asc": true,
3009
- "nulls": "last"
3010
- },
3011
- {
3012
- "expression": "created_at_ms",
3013
- "isExpression": false,
3014
- "asc": true,
3015
- "nulls": "last"
3016
- },
3017
- {
3018
- "expression": "id",
3019
- "isExpression": false,
3020
- "asc": true,
3021
- "nulls": "last"
3022
- }
3023
- ],
3024
- "isUnique": false,
3025
- "with": {},
3026
- "method": "btree",
3027
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted' AND \"junior_scheduler_tasks\".\"creator_identity_id\" IS NOT NULL",
3028
- "concurrently": false
3029
- },
3030
- "junior_scheduler_tasks_team_status_idx": {
3031
- "name": "junior_scheduler_tasks_team_status_idx",
3032
- "columns": [
3033
- {
3034
- "expression": "team_id",
3035
- "isExpression": false,
3036
- "asc": true,
3037
- "nulls": "last"
3038
- },
3039
- {
3040
- "expression": "created_at_ms",
3041
- "isExpression": false,
3042
- "asc": true,
3043
- "nulls": "last"
3044
- },
3045
- {
3046
- "expression": "id",
3047
- "isExpression": false,
3048
- "asc": true,
3049
- "nulls": "last"
3050
- }
3051
- ],
3052
- "isUnique": false,
3053
- "with": {},
3054
- "method": "btree",
3055
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
3056
- "concurrently": false
3057
- },
3058
- "junior_scheduler_tasks_run_now_due_idx": {
3059
- "name": "junior_scheduler_tasks_run_now_due_idx",
3060
- "columns": [
3061
- {
3062
- "expression": "run_now_at_ms",
3063
- "isExpression": false,
3064
- "asc": true,
3065
- "nulls": "last"
3066
- },
3067
- {
3068
- "expression": "created_at_ms",
3069
- "isExpression": false,
3070
- "asc": true,
3071
- "nulls": "last"
3072
- },
3073
- {
3074
- "expression": "id",
3075
- "isExpression": false,
3076
- "asc": true,
3077
- "nulls": "last"
3078
- }
3079
- ],
3080
- "isUnique": false,
3081
- "with": {},
3082
- "method": "btree",
3083
- "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"run_now_at_ms\" IS NOT NULL",
3084
- "concurrently": false
3085
- },
3086
- "junior_scheduler_tasks_next_run_due_idx": {
3087
- "name": "junior_scheduler_tasks_next_run_due_idx",
3088
- "columns": [
3089
- {
3090
- "expression": "next_run_at_ms",
3091
- "isExpression": false,
3092
- "asc": true,
3093
- "nulls": "last"
3094
- },
3095
- {
3096
- "expression": "created_at_ms",
3097
- "isExpression": false,
3098
- "asc": true,
3099
- "nulls": "last"
3100
- },
3101
- {
3102
- "expression": "id",
3103
- "isExpression": false,
3104
- "asc": true,
3105
- "nulls": "last"
3106
- }
3107
- ],
3108
- "isUnique": false,
3109
- "with": {},
3110
- "method": "btree",
3111
- "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"next_run_at_ms\" IS NOT NULL",
3112
- "concurrently": false
3113
- }
3114
- },
3115
- "foreignKeys": {},
3116
- "compositePrimaryKeys": {},
3117
- "uniqueConstraints": {},
3118
- "policies": {},
3119
- "checkConstraints": {},
3120
- "isRLSEnabled": false
3121
- },
3122
- "public.junior_snapshots": {
3123
- "name": "junior_snapshots",
3124
- "schema": "",
3125
- "columns": {
3126
- "id": {
3127
- "name": "id",
3128
- "type": "text",
3129
- "primaryKey": true,
3130
- "notNull": true
3131
- },
3132
- "workspace_id": {
3133
- "name": "workspace_id",
3134
- "type": "text",
3135
- "primaryKey": false,
3136
- "notNull": true
3137
- },
3138
- "profile_hash": {
3139
- "name": "profile_hash",
3140
- "type": "text",
3141
- "primaryKey": false,
3142
- "notNull": true
3143
- },
3144
- "status": {
3145
- "name": "status",
3146
- "type": "text",
3147
- "primaryKey": false,
3148
- "notNull": true
3149
- },
3150
- "snapshot_id": {
3151
- "name": "snapshot_id",
3152
- "type": "text",
3153
- "primaryKey": false,
3154
- "notNull": false
3155
- },
3156
- "build_duration_ms": {
3157
- "name": "build_duration_ms",
3158
- "type": "integer",
3159
- "primaryKey": false,
3160
- "notNull": false
3161
- },
3162
- "size_bytes": {
3163
- "name": "size_bytes",
3164
- "type": "bigint",
3165
- "primaryKey": false,
3166
- "notNull": false
3167
- },
3168
- "generated_at": {
3169
- "name": "generated_at",
3170
- "type": "timestamp with time zone",
3171
- "primaryKey": false,
3172
- "notNull": false
3173
- },
3174
- "build_started_at": {
3175
- "name": "build_started_at",
3176
- "type": "timestamp with time zone",
3177
- "primaryKey": false,
3178
- "notNull": false
3179
- },
3180
- "build_phase": {
3181
- "name": "build_phase",
3182
- "type": "text",
3183
- "primaryKey": false,
3184
- "notNull": false
3185
- },
3186
- "build_sandbox_name": {
3187
- "name": "build_sandbox_name",
3188
- "type": "text",
3189
- "primaryKey": false,
3190
- "notNull": false
3191
- },
3192
- "build_command_id": {
3193
- "name": "build_command_id",
3194
- "type": "text",
3195
- "primaryKey": false,
3196
- "notNull": false
3197
- },
3198
- "build_error": {
3199
- "name": "build_error",
3200
- "type": "text",
3201
- "primaryKey": false,
3202
- "notNull": false
3203
- },
3204
- "created_at": {
3205
- "name": "created_at",
3206
- "type": "timestamp with time zone",
3207
- "primaryKey": false,
3208
- "notNull": true
3209
- },
3210
- "updated_at": {
3211
- "name": "updated_at",
3212
- "type": "timestamp with time zone",
3213
- "primaryKey": false,
3214
- "notNull": true
3215
- }
3216
- },
3217
- "indexes": {
3218
- "junior_snapshots_snapshot_id_uidx": {
3219
- "name": "junior_snapshots_snapshot_id_uidx",
3220
- "columns": [
3221
- {
3222
- "expression": "snapshot_id",
3223
- "isExpression": false,
3224
- "asc": true,
3225
- "nulls": "last"
3226
- }
3227
- ],
3228
- "isUnique": true,
3229
- "with": {},
3230
- "method": "btree",
3231
- "concurrently": false
3232
- },
3233
- "junior_snapshots_workspace_idx": {
3234
- "name": "junior_snapshots_workspace_idx",
3235
- "columns": [
3236
- {
3237
- "expression": "workspace_id",
3238
- "isExpression": false,
3239
- "asc": true,
3240
- "nulls": "last"
3241
- }
3242
- ],
3243
- "isUnique": false,
3244
- "with": {},
3245
- "method": "btree",
3246
- "concurrently": false
3247
- },
3248
- "junior_snapshots_workspace_profile_status_idx": {
3249
- "name": "junior_snapshots_workspace_profile_status_idx",
3250
- "columns": [
3251
- {
3252
- "expression": "workspace_id",
3253
- "isExpression": false,
3254
- "asc": true,
3255
- "nulls": "last"
3256
- },
3257
- {
3258
- "expression": "profile_hash",
3259
- "isExpression": false,
3260
- "asc": true,
3261
- "nulls": "last"
3262
- },
3263
- {
3264
- "expression": "status",
3265
- "isExpression": false,
3266
- "asc": true,
3267
- "nulls": "last"
3268
- }
3269
- ],
3270
- "isUnique": false,
3271
- "with": {},
3272
- "method": "btree",
3273
- "concurrently": false
3274
- },
3275
- "junior_snapshots_active_build_uidx": {
3276
- "name": "junior_snapshots_active_build_uidx",
3277
- "columns": [
3278
- {
3279
- "expression": "workspace_id",
3280
- "isExpression": false,
3281
- "asc": true,
3282
- "nulls": "last"
3283
- },
3284
- {
3285
- "expression": "profile_hash",
3286
- "isExpression": false,
3287
- "asc": true,
3288
- "nulls": "last"
3289
- }
3290
- ],
3291
- "isUnique": true,
3292
- "with": {},
3293
- "method": "btree",
3294
- "where": "\"junior_snapshots\".\"status\" = 'building'",
3295
- "concurrently": false
3296
- },
3297
- "junior_snapshots_workspace_status_idx": {
3298
- "name": "junior_snapshots_workspace_status_idx",
3299
- "columns": [
3300
- {
3301
- "expression": "workspace_id",
3302
- "isExpression": false,
3303
- "asc": true,
3304
- "nulls": "last"
3305
- },
3306
- {
3307
- "expression": "status",
3308
- "isExpression": false,
3309
- "asc": true,
3310
- "nulls": "last"
3311
- }
3312
- ],
3313
- "isUnique": false,
3314
- "with": {},
3315
- "method": "btree",
3316
- "concurrently": false
3317
- }
3318
- },
3319
- "foreignKeys": {
3320
- "junior_snapshots_workspace_id_junior_workspaces_id_fk": {
3321
- "name": "junior_snapshots_workspace_id_junior_workspaces_id_fk",
3322
- "tableFrom": "junior_snapshots",
3323
- "columnsFrom": [
3324
- "workspace_id"
3325
- ],
3326
- "tableTo": "junior_workspaces",
3327
- "columnsTo": [
3328
- "id"
3329
- ],
3330
- "onUpdate": "no action",
3331
- "onDelete": "cascade"
3332
- }
3333
- },
3334
- "compositePrimaryKeys": {},
3335
- "uniqueConstraints": {},
3336
- "policies": {},
3337
- "checkConstraints": {
3338
- "junior_snapshots_status_check": {
3339
- "name": "junior_snapshots_status_check",
3340
- "value": "\"junior_snapshots\".\"status\" in ('building', 'failed', 'ready')"
3341
- },
3342
- "junior_snapshots_build_phase_check": {
3343
- "name": "junior_snapshots_build_phase_check",
3344
- "value": "\"junior_snapshots\".\"build_phase\" is null or \"junior_snapshots\".\"build_phase\" in ('created', 'dependencies_installed', 'repositories_prepared')"
3345
- },
3346
- "junior_snapshots_ready_fields_check": {
3347
- "name": "junior_snapshots_ready_fields_check",
3348
- "value": "\"junior_snapshots\".\"status\" <> 'ready' or (\"junior_snapshots\".\"snapshot_id\" is not null and \"junior_snapshots\".\"build_duration_ms\" is not null and \"junior_snapshots\".\"generated_at\" is not null)"
3349
- },
3350
- "junior_snapshots_build_fields_check": {
3351
- "name": "junior_snapshots_build_fields_check",
3352
- "value": "\"junior_snapshots\".\"status\" = 'ready' or (\"junior_snapshots\".\"build_started_at\" is not null and \"junior_snapshots\".\"build_phase\" is not null)"
3353
- },
3354
- "junior_snapshots_build_duration_check": {
3355
- "name": "junior_snapshots_build_duration_check",
3356
- "value": "\"junior_snapshots\".\"build_duration_ms\" is null or \"junior_snapshots\".\"build_duration_ms\" >= 0"
3357
- },
3358
- "junior_snapshots_size_bytes_check": {
3359
- "name": "junior_snapshots_size_bytes_check",
3360
- "value": "\"junior_snapshots\".\"size_bytes\" is null or \"junior_snapshots\".\"size_bytes\" >= 0"
3361
- }
3362
- },
3363
- "isRLSEnabled": false
3364
- },
3365
- "public.junior_stats": {
3366
- "name": "junior_stats",
3367
- "schema": "",
3368
- "columns": {
3369
- "date": {
3370
- "name": "date",
3371
- "type": "date",
3372
- "primaryKey": false,
3373
- "notNull": true
3374
- },
3375
- "namespace": {
3376
- "name": "namespace",
3377
- "type": "text",
3378
- "primaryKey": false,
3379
- "notNull": true
3380
- },
3381
- "metric": {
3382
- "name": "metric",
3383
- "type": "text",
3384
- "primaryKey": false,
3385
- "notNull": true
3386
- },
3387
- "name": {
3388
- "name": "name",
3389
- "type": "text",
3390
- "primaryKey": false,
3391
- "notNull": true
3392
- },
3393
- "count": {
3394
- "name": "count",
3395
- "type": "integer",
3396
- "primaryKey": false,
3397
- "notNull": true,
3398
- "default": 0
3399
- }
3400
- },
3401
- "indexes": {},
3402
- "foreignKeys": {},
3403
- "compositePrimaryKeys": {
3404
- "junior_stats_date_namespace_metric_name_pk": {
3405
- "name": "junior_stats_date_namespace_metric_name_pk",
3406
- "columns": [
3407
- "date",
3408
- "namespace",
3409
- "metric",
3410
- "name"
3411
- ]
3412
- }
3413
- },
3414
- "uniqueConstraints": {},
3415
- "policies": {},
3416
- "checkConstraints": {},
3417
- "isRLSEnabled": false
3418
- },
3419
- "public.junior_users": {
3420
- "name": "junior_users",
3421
- "schema": "",
3422
- "columns": {
3423
- "id": {
3424
- "name": "id",
3425
- "type": "text",
3426
- "primaryKey": true,
3427
- "notNull": true
3428
- },
3429
- "primary_email": {
3430
- "name": "primary_email",
3431
- "type": "text",
3432
- "primaryKey": false,
3433
- "notNull": true
3434
- },
3435
- "primary_email_normalized": {
3436
- "name": "primary_email_normalized",
3437
- "type": "text",
3438
- "primaryKey": false,
3439
- "notNull": true
3440
- },
3441
- "display_name": {
3442
- "name": "display_name",
3443
- "type": "text",
3444
- "primaryKey": false,
3445
- "notNull": false
3446
- },
3447
- "created_at": {
3448
- "name": "created_at",
3449
- "type": "timestamp with time zone",
3450
- "primaryKey": false,
3451
- "notNull": true
3452
- },
3453
- "updated_at": {
3454
- "name": "updated_at",
3455
- "type": "timestamp with time zone",
3456
- "primaryKey": false,
3457
- "notNull": true
3458
- }
3459
- },
3460
- "indexes": {
3461
- "junior_users_primary_email_normalized_uidx": {
3462
- "name": "junior_users_primary_email_normalized_uidx",
3463
- "columns": [
3464
- {
3465
- "expression": "primary_email_normalized",
3466
- "isExpression": false,
3467
- "asc": true,
3468
- "nulls": "last"
3469
- }
3470
- ],
3471
- "isUnique": true,
3472
- "with": {},
3473
- "method": "btree",
3474
- "concurrently": false
3475
- }
3476
- },
3477
- "foreignKeys": {},
3478
- "compositePrimaryKeys": {},
3479
- "uniqueConstraints": {},
3480
- "policies": {},
3481
- "checkConstraints": {},
3482
- "isRLSEnabled": false
3483
- },
3484
- "public.junior_workspace_repos": {
3485
- "name": "junior_workspace_repos",
3486
- "schema": "",
3487
- "columns": {
3488
- "workspace_id": {
3489
- "name": "workspace_id",
3490
- "type": "text",
3491
- "primaryKey": false,
3492
- "notNull": true
3493
- },
3494
- "provider": {
3495
- "name": "provider",
3496
- "type": "text",
3497
- "primaryKey": false,
3498
- "notNull": true
3499
- },
3500
- "repo": {
3501
- "name": "repo",
3502
- "type": "text",
3503
- "primaryKey": false,
3504
- "notNull": true
3505
- }
3506
- },
3507
- "indexes": {},
3508
- "foreignKeys": {
3509
- "junior_workspace_repos_workspace_id_junior_workspaces_id_fk": {
3510
- "name": "junior_workspace_repos_workspace_id_junior_workspaces_id_fk",
3511
- "tableFrom": "junior_workspace_repos",
3512
- "columnsFrom": [
3513
- "workspace_id"
3514
- ],
3515
- "tableTo": "junior_workspaces",
3516
- "columnsTo": [
3517
- "id"
3518
- ],
3519
- "onUpdate": "no action",
3520
- "onDelete": "cascade"
3521
- }
3522
- },
3523
- "compositePrimaryKeys": {
3524
- "junior_workspace_repos_workspace_id_provider_repo_pk": {
3525
- "name": "junior_workspace_repos_workspace_id_provider_repo_pk",
3526
- "columns": [
3527
- "workspace_id",
3528
- "provider",
3529
- "repo"
3530
- ]
3531
- }
3532
- },
3533
- "uniqueConstraints": {},
3534
- "policies": {},
3535
- "checkConstraints": {},
3536
- "isRLSEnabled": false
3537
- },
3538
- "public.junior_workspaces": {
3539
- "name": "junior_workspaces",
3540
- "schema": "",
3541
- "columns": {
3542
- "id": {
3543
- "name": "id",
3544
- "type": "text",
3545
- "primaryKey": true,
3546
- "notNull": true
3547
- },
3548
- "name": {
3549
- "name": "name",
3550
- "type": "text",
3551
- "primaryKey": false,
3552
- "notNull": true
3553
- },
3554
- "setup_script": {
3555
- "name": "setup_script",
3556
- "type": "text",
3557
- "primaryKey": false,
3558
- "notNull": true,
3559
- "default": "''"
3560
- },
3561
- "created_at": {
3562
- "name": "created_at",
3563
- "type": "timestamp with time zone",
3564
- "primaryKey": false,
3565
- "notNull": true
3566
- },
3567
- "updated_at": {
3568
- "name": "updated_at",
3569
- "type": "timestamp with time zone",
3570
- "primaryKey": false,
3571
- "notNull": true
3572
- }
3573
- },
3574
- "indexes": {
3575
- "junior_workspaces_name_idx": {
3576
- "name": "junior_workspaces_name_idx",
3577
- "columns": [
3578
- {
3579
- "expression": "name",
3580
- "isExpression": false,
3581
- "asc": true,
3582
- "nulls": "last"
3583
- }
3584
- ],
3585
- "isUnique": true,
3586
- "with": {},
3587
- "method": "btree",
3588
- "concurrently": false
3589
- }
3590
- },
3591
- "foreignKeys": {},
3592
- "compositePrimaryKeys": {},
3593
- "uniqueConstraints": {},
3594
- "policies": {},
3595
- "checkConstraints": {},
3596
- "isRLSEnabled": false
3597
- }
3598
- },
3599
- "enums": {},
3600
- "schemas": {},
3601
- "views": {},
3602
- "sequences": {},
3603
- "roles": {},
3604
- "policies": {},
3605
- "_meta": {
3606
- "columns": {},
3607
- "schemas": {},
3608
- "tables": {}
3609
- }
3610
- }