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