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