@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,3516 +0,0 @@
1
- {
2
- "id": "d3ff503f-3040-4fd5-bd38-65665abc673c",
3
- "prevId": "fd24ecea-6550-46fd-88a8-eb0ba07d356d",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.junior_agent_bindings": {
8
- "name": "junior_agent_bindings",
9
- "schema": "",
10
- "columns": {
11
- "parent_conversation_id": {
12
- "name": "parent_conversation_id",
13
- "type": "text",
14
- "primaryKey": false,
15
- "notNull": true
16
- },
17
- "name": {
18
- "name": "name",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true
22
- },
23
- "child_conversation_id": {
24
- "name": "child_conversation_id",
25
- "type": "text",
26
- "primaryKey": false,
27
- "notNull": true
28
- }
29
- },
30
- "indexes": {
31
- "junior_agent_bindings_child_idx": {
32
- "name": "junior_agent_bindings_child_idx",
33
- "columns": [
34
- {
35
- "expression": "child_conversation_id",
36
- "isExpression": false,
37
- "asc": true,
38
- "nulls": "last"
39
- }
40
- ],
41
- "isUnique": true,
42
- "with": {},
43
- "method": "btree",
44
- "concurrently": false
45
- }
46
- },
47
- "foreignKeys": {
48
- "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk": {
49
- "name": "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk",
50
- "tableFrom": "junior_agent_bindings",
51
- "columnsFrom": [
52
- "parent_conversation_id"
53
- ],
54
- "tableTo": "junior_conversations",
55
- "columnsTo": [
56
- "conversation_id"
57
- ],
58
- "onUpdate": "no action",
59
- "onDelete": "no action"
60
- },
61
- "junior_agent_bindings_child_conversation_id_junior_conversations_conversation_id_fk": {
62
- "name": "junior_agent_bindings_child_conversation_id_junior_conversations_conversation_id_fk",
63
- "tableFrom": "junior_agent_bindings",
64
- "columnsFrom": [
65
- "child_conversation_id"
66
- ],
67
- "tableTo": "junior_conversations",
68
- "columnsTo": [
69
- "conversation_id"
70
- ],
71
- "onUpdate": "no action",
72
- "onDelete": "no action"
73
- }
74
- },
75
- "compositePrimaryKeys": {
76
- "junior_agent_bindings_parent_conversation_id_name_pk": {
77
- "name": "junior_agent_bindings_parent_conversation_id_name_pk",
78
- "columns": [
79
- "parent_conversation_id",
80
- "name"
81
- ]
82
- }
83
- },
84
- "uniqueConstraints": {},
85
- "policies": {},
86
- "checkConstraints": {},
87
- "isRLSEnabled": false
88
- },
89
- "public.junior_agent_invocations": {
90
- "name": "junior_agent_invocations",
91
- "schema": "",
92
- "columns": {
93
- "invocation_id": {
94
- "name": "invocation_id",
95
- "type": "text",
96
- "primaryKey": true,
97
- "notNull": true
98
- },
99
- "parent_conversation_id": {
100
- "name": "parent_conversation_id",
101
- "type": "text",
102
- "primaryKey": false,
103
- "notNull": true
104
- },
105
- "child_conversation_id": {
106
- "name": "child_conversation_id",
107
- "type": "text",
108
- "primaryKey": false,
109
- "notNull": true
110
- },
111
- "agent_name": {
112
- "name": "agent_name",
113
- "type": "text",
114
- "primaryKey": false,
115
- "notNull": false
116
- },
117
- "input": {
118
- "name": "input",
119
- "type": "text",
120
- "primaryKey": false,
121
- "notNull": true
122
- },
123
- "actor_json": {
124
- "name": "actor_json",
125
- "type": "jsonb",
126
- "primaryKey": false,
127
- "notNull": true
128
- },
129
- "credential_context_json": {
130
- "name": "credential_context_json",
131
- "type": "jsonb",
132
- "primaryKey": false,
133
- "notNull": false
134
- },
135
- "source_json": {
136
- "name": "source_json",
137
- "type": "jsonb",
138
- "primaryKey": false,
139
- "notNull": true
140
- },
141
- "destination_json": {
142
- "name": "destination_json",
143
- "type": "jsonb",
144
- "primaryKey": false,
145
- "notNull": true
146
- },
147
- "destination_visibility": {
148
- "name": "destination_visibility",
149
- "type": "text",
150
- "primaryKey": false,
151
- "notNull": false
152
- },
153
- "reasoning_level": {
154
- "name": "reasoning_level",
155
- "type": "text",
156
- "primaryKey": false,
157
- "notNull": false
158
- },
159
- "status": {
160
- "name": "status",
161
- "type": "text",
162
- "primaryKey": false,
163
- "notNull": true
164
- },
165
- "mailbox_status": {
166
- "name": "mailbox_status",
167
- "type": "text",
168
- "primaryKey": false,
169
- "notNull": true
170
- },
171
- "result": {
172
- "name": "result",
173
- "type": "text",
174
- "primaryKey": false,
175
- "notNull": false
176
- },
177
- "error_message": {
178
- "name": "error_message",
179
- "type": "text",
180
- "primaryKey": false,
181
- "notNull": false
182
- },
183
- "created_at": {
184
- "name": "created_at",
185
- "type": "timestamp with time zone",
186
- "primaryKey": false,
187
- "notNull": true
188
- },
189
- "updated_at": {
190
- "name": "updated_at",
191
- "type": "timestamp with time zone",
192
- "primaryKey": false,
193
- "notNull": true
194
- },
195
- "terminal_at": {
196
- "name": "terminal_at",
197
- "type": "timestamp with time zone",
198
- "primaryKey": false,
199
- "notNull": false
200
- }
201
- },
202
- "indexes": {
203
- "junior_agent_invocations_child_idx": {
204
- "name": "junior_agent_invocations_child_idx",
205
- "columns": [
206
- {
207
- "expression": "child_conversation_id",
208
- "isExpression": false,
209
- "asc": true,
210
- "nulls": "last"
211
- }
212
- ],
213
- "isUnique": false,
214
- "with": {},
215
- "method": "btree",
216
- "concurrently": false
217
- },
218
- "junior_agent_invocations_mailbox_idx": {
219
- "name": "junior_agent_invocations_mailbox_idx",
220
- "columns": [
221
- {
222
- "expression": "mailbox_status",
223
- "isExpression": false,
224
- "asc": true,
225
- "nulls": "last"
226
- },
227
- {
228
- "expression": "created_at",
229
- "isExpression": false,
230
- "asc": true,
231
- "nulls": "last"
232
- }
233
- ],
234
- "isUnique": false,
235
- "with": {},
236
- "method": "btree",
237
- "concurrently": false
238
- }
239
- },
240
- "foreignKeys": {
241
- "junior_agent_invocations_parent_conversation_id_junior_conversations_conversation_id_fk": {
242
- "name": "junior_agent_invocations_parent_conversation_id_junior_conversations_conversation_id_fk",
243
- "tableFrom": "junior_agent_invocations",
244
- "columnsFrom": [
245
- "parent_conversation_id"
246
- ],
247
- "tableTo": "junior_conversations",
248
- "columnsTo": [
249
- "conversation_id"
250
- ],
251
- "onUpdate": "no action",
252
- "onDelete": "no action"
253
- },
254
- "junior_agent_invocations_child_conversation_id_junior_conversations_conversation_id_fk": {
255
- "name": "junior_agent_invocations_child_conversation_id_junior_conversations_conversation_id_fk",
256
- "tableFrom": "junior_agent_invocations",
257
- "columnsFrom": [
258
- "child_conversation_id"
259
- ],
260
- "tableTo": "junior_conversations",
261
- "columnsTo": [
262
- "conversation_id"
263
- ],
264
- "onUpdate": "no action",
265
- "onDelete": "no action"
266
- }
267
- },
268
- "compositePrimaryKeys": {},
269
- "uniqueConstraints": {},
270
- "policies": {},
271
- "checkConstraints": {},
272
- "isRLSEnabled": false
273
- },
274
- "public.junior_api_tokens": {
275
- "name": "junior_api_tokens",
276
- "schema": "",
277
- "columns": {
278
- "id": {
279
- "name": "id",
280
- "type": "text",
281
- "primaryKey": true,
282
- "notNull": true
283
- },
284
- "owner_email_normalized": {
285
- "name": "owner_email_normalized",
286
- "type": "text",
287
- "primaryKey": false,
288
- "notNull": true
289
- },
290
- "name": {
291
- "name": "name",
292
- "type": "text",
293
- "primaryKey": false,
294
- "notNull": true
295
- },
296
- "token_hash": {
297
- "name": "token_hash",
298
- "type": "text",
299
- "primaryKey": false,
300
- "notNull": true
301
- },
302
- "token_suffix": {
303
- "name": "token_suffix",
304
- "type": "text",
305
- "primaryKey": false,
306
- "notNull": true
307
- },
308
- "created_at": {
309
- "name": "created_at",
310
- "type": "timestamp with time zone",
311
- "primaryKey": false,
312
- "notNull": true
313
- },
314
- "expires_at": {
315
- "name": "expires_at",
316
- "type": "timestamp with time zone",
317
- "primaryKey": false,
318
- "notNull": true
319
- },
320
- "last_used_at": {
321
- "name": "last_used_at",
322
- "type": "timestamp with time zone",
323
- "primaryKey": false,
324
- "notNull": false
325
- },
326
- "revoked_at": {
327
- "name": "revoked_at",
328
- "type": "timestamp with time zone",
329
- "primaryKey": false,
330
- "notNull": false
331
- }
332
- },
333
- "indexes": {
334
- "junior_api_tokens_token_hash_uidx": {
335
- "name": "junior_api_tokens_token_hash_uidx",
336
- "columns": [
337
- {
338
- "expression": "token_hash",
339
- "isExpression": false,
340
- "asc": true,
341
- "nulls": "last"
342
- }
343
- ],
344
- "isUnique": true,
345
- "with": {},
346
- "method": "btree",
347
- "concurrently": false
348
- },
349
- "junior_api_tokens_owner_email_idx": {
350
- "name": "junior_api_tokens_owner_email_idx",
351
- "columns": [
352
- {
353
- "expression": "owner_email_normalized",
354
- "isExpression": false,
355
- "asc": true,
356
- "nulls": "last"
357
- }
358
- ],
359
- "isUnique": false,
360
- "with": {},
361
- "method": "btree",
362
- "concurrently": false
363
- }
364
- },
365
- "foreignKeys": {},
366
- "compositePrimaryKeys": {},
367
- "uniqueConstraints": {},
368
- "policies": {},
369
- "checkConstraints": {},
370
- "isRLSEnabled": false
371
- },
372
- "public.junior_artifacts": {
373
- "name": "junior_artifacts",
374
- "schema": "",
375
- "columns": {
376
- "id": {
377
- "name": "id",
378
- "type": "text",
379
- "primaryKey": true,
380
- "notNull": true
381
- },
382
- "conversation_id": {
383
- "name": "conversation_id",
384
- "type": "text",
385
- "primaryKey": false,
386
- "notNull": true
387
- },
388
- "sha256": {
389
- "name": "sha256",
390
- "type": "text",
391
- "primaryKey": false,
392
- "notNull": true
393
- },
394
- "ext": {
395
- "name": "ext",
396
- "type": "text",
397
- "primaryKey": false,
398
- "notNull": true
399
- },
400
- "storage_key": {
401
- "name": "storage_key",
402
- "type": "text",
403
- "primaryKey": false,
404
- "notNull": true
405
- },
406
- "content_type": {
407
- "name": "content_type",
408
- "type": "text",
409
- "primaryKey": false,
410
- "notNull": true
411
- },
412
- "bytes": {
413
- "name": "bytes",
414
- "type": "integer",
415
- "primaryKey": false,
416
- "notNull": true
417
- },
418
- "public": {
419
- "name": "public",
420
- "type": "boolean",
421
- "primaryKey": false,
422
- "notNull": true
423
- },
424
- "created_at": {
425
- "name": "created_at",
426
- "type": "timestamp with time zone",
427
- "primaryKey": false,
428
- "notNull": true
429
- },
430
- "delete_requested_at": {
431
- "name": "delete_requested_at",
432
- "type": "timestamp with time zone",
433
- "primaryKey": false,
434
- "notNull": false
435
- }
436
- },
437
- "indexes": {
438
- "junior_artifacts_conversation_sha_uidx": {
439
- "name": "junior_artifacts_conversation_sha_uidx",
440
- "columns": [
441
- {
442
- "expression": "conversation_id",
443
- "isExpression": false,
444
- "asc": true,
445
- "nulls": "last"
446
- },
447
- {
448
- "expression": "sha256",
449
- "isExpression": false,
450
- "asc": true,
451
- "nulls": "last"
452
- }
453
- ],
454
- "isUnique": true,
455
- "with": {},
456
- "method": "btree",
457
- "concurrently": false
458
- },
459
- "junior_artifacts_gc_idx": {
460
- "name": "junior_artifacts_gc_idx",
461
- "columns": [
462
- {
463
- "expression": "delete_requested_at",
464
- "isExpression": false,
465
- "asc": true,
466
- "nulls": "last"
467
- },
468
- {
469
- "expression": "created_at",
470
- "isExpression": false,
471
- "asc": true,
472
- "nulls": "last"
473
- }
474
- ],
475
- "isUnique": false,
476
- "with": {},
477
- "method": "btree",
478
- "concurrently": false
479
- },
480
- "junior_artifacts_conversation_idx": {
481
- "name": "junior_artifacts_conversation_idx",
482
- "columns": [
483
- {
484
- "expression": "conversation_id",
485
- "isExpression": false,
486
- "asc": true,
487
- "nulls": "last"
488
- }
489
- ],
490
- "isUnique": false,
491
- "with": {},
492
- "method": "btree",
493
- "concurrently": false
494
- }
495
- },
496
- "foreignKeys": {},
497
- "compositePrimaryKeys": {},
498
- "uniqueConstraints": {},
499
- "policies": {},
500
- "checkConstraints": {},
501
- "isRLSEnabled": false
502
- },
503
- "public.junior_attachments": {
504
- "name": "junior_attachments",
505
- "schema": "",
506
- "columns": {
507
- "id": {
508
- "name": "id",
509
- "type": "text",
510
- "primaryKey": true,
511
- "notNull": true
512
- },
513
- "conversation_id": {
514
- "name": "conversation_id",
515
- "type": "text",
516
- "primaryKey": false,
517
- "notNull": true
518
- },
519
- "storage_provider": {
520
- "name": "storage_provider",
521
- "type": "text",
522
- "primaryKey": false,
523
- "notNull": true
524
- },
525
- "storage_key": {
526
- "name": "storage_key",
527
- "type": "text",
528
- "primaryKey": false,
529
- "notNull": true
530
- },
531
- "provider": {
532
- "name": "provider",
533
- "type": "text",
534
- "primaryKey": false,
535
- "notNull": false
536
- },
537
- "provider_id": {
538
- "name": "provider_id",
539
- "type": "text",
540
- "primaryKey": false,
541
- "notNull": false
542
- },
543
- "filename": {
544
- "name": "filename",
545
- "type": "text",
546
- "primaryKey": false,
547
- "notNull": true
548
- },
549
- "content_type": {
550
- "name": "content_type",
551
- "type": "text",
552
- "primaryKey": false,
553
- "notNull": true
554
- },
555
- "bytes": {
556
- "name": "bytes",
557
- "type": "integer",
558
- "primaryKey": false,
559
- "notNull": true
560
- },
561
- "sha256": {
562
- "name": "sha256",
563
- "type": "text",
564
- "primaryKey": false,
565
- "notNull": true
566
- },
567
- "vision_summary": {
568
- "name": "vision_summary",
569
- "type": "text",
570
- "primaryKey": false,
571
- "notNull": false
572
- },
573
- "created_at": {
574
- "name": "created_at",
575
- "type": "timestamp with time zone",
576
- "primaryKey": false,
577
- "notNull": true
578
- },
579
- "delete_requested_at": {
580
- "name": "delete_requested_at",
581
- "type": "timestamp with time zone",
582
- "primaryKey": false,
583
- "notNull": false
584
- }
585
- },
586
- "indexes": {
587
- "junior_attachments_conversation_idx": {
588
- "name": "junior_attachments_conversation_idx",
589
- "columns": [
590
- {
591
- "expression": "conversation_id",
592
- "isExpression": false,
593
- "asc": true,
594
- "nulls": "last"
595
- }
596
- ],
597
- "isUnique": false,
598
- "with": {},
599
- "method": "btree",
600
- "concurrently": false
601
- },
602
- "junior_attachments_provider_idx": {
603
- "name": "junior_attachments_provider_idx",
604
- "columns": [
605
- {
606
- "expression": "conversation_id",
607
- "isExpression": false,
608
- "asc": true,
609
- "nulls": "last"
610
- },
611
- {
612
- "expression": "provider",
613
- "isExpression": false,
614
- "asc": true,
615
- "nulls": "last"
616
- },
617
- {
618
- "expression": "provider_id",
619
- "isExpression": false,
620
- "asc": true,
621
- "nulls": "last"
622
- }
623
- ],
624
- "isUnique": false,
625
- "with": {},
626
- "method": "btree",
627
- "concurrently": false
628
- },
629
- "junior_attachments_gc_idx": {
630
- "name": "junior_attachments_gc_idx",
631
- "columns": [
632
- {
633
- "expression": "storage_provider",
634
- "isExpression": false,
635
- "asc": true,
636
- "nulls": "last"
637
- },
638
- {
639
- "expression": "delete_requested_at",
640
- "isExpression": false,
641
- "asc": true,
642
- "nulls": "last"
643
- },
644
- {
645
- "expression": "created_at",
646
- "isExpression": false,
647
- "asc": true,
648
- "nulls": "last"
649
- }
650
- ],
651
- "isUnique": false,
652
- "with": {},
653
- "method": "btree",
654
- "concurrently": false
655
- }
656
- },
657
- "foreignKeys": {
658
- "junior_attachments_conversation_id_junior_conversations_conversation_id_fk": {
659
- "name": "junior_attachments_conversation_id_junior_conversations_conversation_id_fk",
660
- "tableFrom": "junior_attachments",
661
- "columnsFrom": [
662
- "conversation_id"
663
- ],
664
- "tableTo": "junior_conversations",
665
- "columnsTo": [
666
- "conversation_id"
667
- ],
668
- "onUpdate": "no action",
669
- "onDelete": "cascade"
670
- }
671
- },
672
- "compositePrimaryKeys": {},
673
- "uniqueConstraints": {},
674
- "policies": {},
675
- "checkConstraints": {},
676
- "isRLSEnabled": false
677
- },
678
- "public.junior_code_changes": {
679
- "name": "junior_code_changes",
680
- "schema": "",
681
- "columns": {
682
- "id": {
683
- "name": "id",
684
- "type": "uuid",
685
- "primaryKey": true,
686
- "notNull": true
687
- },
688
- "closed_at": {
689
- "name": "closed_at",
690
- "type": "timestamp with time zone",
691
- "primaryKey": false,
692
- "notNull": false
693
- },
694
- "conversation_ids": {
695
- "name": "conversation_ids",
696
- "type": "text[]",
697
- "primaryKey": false,
698
- "notNull": true,
699
- "default": "ARRAY[]::text[]"
700
- },
701
- "merged_at": {
702
- "name": "merged_at",
703
- "type": "timestamp with time zone",
704
- "primaryKey": false,
705
- "notNull": false
706
- },
707
- "number": {
708
- "name": "number",
709
- "type": "integer",
710
- "primaryKey": false,
711
- "notNull": true
712
- },
713
- "opened_at": {
714
- "name": "opened_at",
715
- "type": "timestamp with time zone",
716
- "primaryKey": false,
717
- "notNull": true
718
- },
719
- "provider": {
720
- "name": "provider",
721
- "type": "text",
722
- "primaryKey": false,
723
- "notNull": true
724
- },
725
- "provider_id": {
726
- "name": "provider_id",
727
- "type": "text",
728
- "primaryKey": false,
729
- "notNull": true
730
- },
731
- "repository_id": {
732
- "name": "repository_id",
733
- "type": "uuid",
734
- "primaryKey": false,
735
- "notNull": true
736
- },
737
- "state": {
738
- "name": "state",
739
- "type": "text",
740
- "primaryKey": false,
741
- "notNull": true
742
- },
743
- "title": {
744
- "name": "title",
745
- "type": "text",
746
- "primaryKey": false,
747
- "notNull": false
748
- },
749
- "updated_at": {
750
- "name": "updated_at",
751
- "type": "timestamp with time zone",
752
- "primaryKey": false,
753
- "notNull": true
754
- },
755
- "url": {
756
- "name": "url",
757
- "type": "text",
758
- "primaryKey": false,
759
- "notNull": false
760
- }
761
- },
762
- "indexes": {
763
- "junior_code_changes_provider_id_idx": {
764
- "name": "junior_code_changes_provider_id_idx",
765
- "columns": [
766
- {
767
- "expression": "provider",
768
- "isExpression": false,
769
- "asc": true,
770
- "nulls": "last"
771
- },
772
- {
773
- "expression": "provider_id",
774
- "isExpression": false,
775
- "asc": true,
776
- "nulls": "last"
777
- }
778
- ],
779
- "isUnique": true,
780
- "with": {},
781
- "method": "btree",
782
- "concurrently": false
783
- },
784
- "junior_code_changes_opened_at_idx": {
785
- "name": "junior_code_changes_opened_at_idx",
786
- "columns": [
787
- {
788
- "expression": "opened_at",
789
- "isExpression": false,
790
- "asc": true,
791
- "nulls": "last"
792
- }
793
- ],
794
- "isUnique": false,
795
- "with": {},
796
- "method": "btree",
797
- "concurrently": false
798
- },
799
- "junior_code_changes_merged_at_idx": {
800
- "name": "junior_code_changes_merged_at_idx",
801
- "columns": [
802
- {
803
- "expression": "merged_at",
804
- "isExpression": false,
805
- "asc": true,
806
- "nulls": "last"
807
- }
808
- ],
809
- "isUnique": false,
810
- "with": {},
811
- "method": "btree",
812
- "concurrently": false
813
- },
814
- "junior_code_changes_closed_at_idx": {
815
- "name": "junior_code_changes_closed_at_idx",
816
- "columns": [
817
- {
818
- "expression": "closed_at",
819
- "isExpression": false,
820
- "asc": true,
821
- "nulls": "last"
822
- }
823
- ],
824
- "isUnique": false,
825
- "with": {},
826
- "method": "btree",
827
- "concurrently": false
828
- },
829
- "junior_code_changes_open_idx": {
830
- "name": "junior_code_changes_open_idx",
831
- "columns": [
832
- {
833
- "expression": "id",
834
- "isExpression": false,
835
- "asc": true,
836
- "nulls": "last"
837
- }
838
- ],
839
- "isUnique": false,
840
- "with": {},
841
- "method": "btree",
842
- "where": "\"junior_code_changes\".\"state\" = 'open'",
843
- "concurrently": false
844
- }
845
- },
846
- "foreignKeys": {
847
- "junior_code_changes_repository_id_junior_code_repositories_id_fk": {
848
- "name": "junior_code_changes_repository_id_junior_code_repositories_id_fk",
849
- "tableFrom": "junior_code_changes",
850
- "columnsFrom": [
851
- "repository_id"
852
- ],
853
- "tableTo": "junior_code_repositories",
854
- "columnsTo": [
855
- "id"
856
- ],
857
- "onUpdate": "no action",
858
- "onDelete": "cascade"
859
- }
860
- },
861
- "compositePrimaryKeys": {},
862
- "uniqueConstraints": {},
863
- "policies": {},
864
- "checkConstraints": {},
865
- "isRLSEnabled": false
866
- },
867
- "public.junior_code_repositories": {
868
- "name": "junior_code_repositories",
869
- "schema": "",
870
- "columns": {
871
- "id": {
872
- "name": "id",
873
- "type": "uuid",
874
- "primaryKey": true,
875
- "notNull": true
876
- },
877
- "name": {
878
- "name": "name",
879
- "type": "text",
880
- "primaryKey": false,
881
- "notNull": true
882
- },
883
- "provider": {
884
- "name": "provider",
885
- "type": "text",
886
- "primaryKey": false,
887
- "notNull": true
888
- },
889
- "provider_id": {
890
- "name": "provider_id",
891
- "type": "text",
892
- "primaryKey": false,
893
- "notNull": true
894
- },
895
- "url": {
896
- "name": "url",
897
- "type": "text",
898
- "primaryKey": false,
899
- "notNull": false
900
- },
901
- "updated_at": {
902
- "name": "updated_at",
903
- "type": "timestamp with time zone",
904
- "primaryKey": false,
905
- "notNull": true
906
- }
907
- },
908
- "indexes": {
909
- "junior_code_repositories_provider_id_idx": {
910
- "name": "junior_code_repositories_provider_id_idx",
911
- "columns": [
912
- {
913
- "expression": "provider",
914
- "isExpression": false,
915
- "asc": true,
916
- "nulls": "last"
917
- },
918
- {
919
- "expression": "provider_id",
920
- "isExpression": false,
921
- "asc": true,
922
- "nulls": "last"
923
- }
924
- ],
925
- "isUnique": true,
926
- "with": {},
927
- "method": "btree",
928
- "concurrently": false
929
- }
930
- },
931
- "foreignKeys": {},
932
- "compositePrimaryKeys": {},
933
- "uniqueConstraints": {},
934
- "policies": {},
935
- "checkConstraints": {},
936
- "isRLSEnabled": false
937
- },
938
- "public.junior_conversation_annotations": {
939
- "name": "junior_conversation_annotations",
940
- "schema": "",
941
- "columns": {
942
- "conversation_id": {
943
- "name": "conversation_id",
944
- "type": "text",
945
- "primaryKey": false,
946
- "notNull": true
947
- },
948
- "plugin": {
949
- "name": "plugin",
950
- "type": "text",
951
- "primaryKey": false,
952
- "notNull": true
953
- },
954
- "kind": {
955
- "name": "kind",
956
- "type": "text",
957
- "primaryKey": false,
958
- "notNull": true
959
- },
960
- "key": {
961
- "name": "key",
962
- "type": "text",
963
- "primaryKey": false,
964
- "notNull": true
965
- },
966
- "annotation_json": {
967
- "name": "annotation_json",
968
- "type": "jsonb",
969
- "primaryKey": false,
970
- "notNull": true
971
- },
972
- "created_at": {
973
- "name": "created_at",
974
- "type": "timestamp with time zone",
975
- "primaryKey": false,
976
- "notNull": true
977
- },
978
- "updated_at": {
979
- "name": "updated_at",
980
- "type": "timestamp with time zone",
981
- "primaryKey": false,
982
- "notNull": true
983
- }
984
- },
985
- "indexes": {},
986
- "foreignKeys": {
987
- "junior_conversation_annotations_conversation_id_fk": {
988
- "name": "junior_conversation_annotations_conversation_id_fk",
989
- "tableFrom": "junior_conversation_annotations",
990
- "columnsFrom": [
991
- "conversation_id"
992
- ],
993
- "tableTo": "junior_conversations",
994
- "columnsTo": [
995
- "conversation_id"
996
- ],
997
- "onUpdate": "no action",
998
- "onDelete": "cascade"
999
- }
1000
- },
1001
- "compositePrimaryKeys": {
1002
- "junior_conversation_annotations_pk": {
1003
- "name": "junior_conversation_annotations_pk",
1004
- "columns": [
1005
- "conversation_id",
1006
- "plugin",
1007
- "kind",
1008
- "key"
1009
- ]
1010
- }
1011
- },
1012
- "uniqueConstraints": {},
1013
- "policies": {},
1014
- "checkConstraints": {},
1015
- "isRLSEnabled": false
1016
- },
1017
- "public.junior_conversation_bindings": {
1018
- "name": "junior_conversation_bindings",
1019
- "schema": "",
1020
- "columns": {
1021
- "conversation_id": {
1022
- "name": "conversation_id",
1023
- "type": "text",
1024
- "primaryKey": false,
1025
- "notNull": true
1026
- },
1027
- "provider": {
1028
- "name": "provider",
1029
- "type": "text",
1030
- "primaryKey": false,
1031
- "notNull": true
1032
- },
1033
- "provider_tenant_id": {
1034
- "name": "provider_tenant_id",
1035
- "type": "text",
1036
- "primaryKey": false,
1037
- "notNull": true,
1038
- "default": "''"
1039
- },
1040
- "provider_destination_id": {
1041
- "name": "provider_destination_id",
1042
- "type": "text",
1043
- "primaryKey": false,
1044
- "notNull": true
1045
- },
1046
- "provider_conversation_id": {
1047
- "name": "provider_conversation_id",
1048
- "type": "text",
1049
- "primaryKey": false,
1050
- "notNull": true
1051
- },
1052
- "created_at": {
1053
- "name": "created_at",
1054
- "type": "timestamp with time zone",
1055
- "primaryKey": false,
1056
- "notNull": true
1057
- }
1058
- },
1059
- "indexes": {
1060
- "junior_conversation_bindings_conversation_idx": {
1061
- "name": "junior_conversation_bindings_conversation_idx",
1062
- "columns": [
1063
- {
1064
- "expression": "conversation_id",
1065
- "isExpression": false,
1066
- "asc": true,
1067
- "nulls": "last"
1068
- }
1069
- ],
1070
- "isUnique": false,
1071
- "with": {},
1072
- "method": "btree",
1073
- "concurrently": false
1074
- }
1075
- },
1076
- "foreignKeys": {
1077
- "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk": {
1078
- "name": "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk",
1079
- "tableFrom": "junior_conversation_bindings",
1080
- "columnsFrom": [
1081
- "conversation_id"
1082
- ],
1083
- "tableTo": "junior_conversations",
1084
- "columnsTo": [
1085
- "conversation_id"
1086
- ],
1087
- "onUpdate": "no action",
1088
- "onDelete": "no action"
1089
- }
1090
- },
1091
- "compositePrimaryKeys": {
1092
- "junior_conversation_bindings_provider_conversation_pk": {
1093
- "name": "junior_conversation_bindings_provider_conversation_pk",
1094
- "columns": [
1095
- "provider",
1096
- "provider_tenant_id",
1097
- "provider_destination_id",
1098
- "provider_conversation_id"
1099
- ]
1100
- }
1101
- },
1102
- "uniqueConstraints": {},
1103
- "policies": {},
1104
- "checkConstraints": {},
1105
- "isRLSEnabled": false
1106
- },
1107
- "public.junior_conversation_briefs": {
1108
- "name": "junior_conversation_briefs",
1109
- "schema": "",
1110
- "columns": {
1111
- "conversation_id": {
1112
- "name": "conversation_id",
1113
- "type": "text",
1114
- "primaryKey": false,
1115
- "notNull": true
1116
- },
1117
- "version": {
1118
- "name": "version",
1119
- "type": "integer",
1120
- "primaryKey": false,
1121
- "notNull": true
1122
- },
1123
- "turn_id": {
1124
- "name": "turn_id",
1125
- "type": "text",
1126
- "primaryKey": false,
1127
- "notNull": true
1128
- },
1129
- "through_seq": {
1130
- "name": "through_seq",
1131
- "type": "integer",
1132
- "primaryKey": false,
1133
- "notNull": true
1134
- },
1135
- "content": {
1136
- "name": "content",
1137
- "type": "jsonb",
1138
- "primaryKey": false,
1139
- "notNull": true
1140
- },
1141
- "search_text": {
1142
- "name": "search_text",
1143
- "type": "text",
1144
- "primaryKey": false,
1145
- "notNull": true
1146
- },
1147
- "model_id": {
1148
- "name": "model_id",
1149
- "type": "text",
1150
- "primaryKey": false,
1151
- "notNull": true
1152
- },
1153
- "cost_usd": {
1154
- "name": "cost_usd",
1155
- "type": "double precision",
1156
- "primaryKey": false,
1157
- "notNull": false
1158
- },
1159
- "created_at": {
1160
- "name": "created_at",
1161
- "type": "timestamp with time zone",
1162
- "primaryKey": false,
1163
- "notNull": true,
1164
- "default": "now()"
1165
- }
1166
- },
1167
- "indexes": {
1168
- "junior_conversation_briefs_conversation_turn_idx": {
1169
- "name": "junior_conversation_briefs_conversation_turn_idx",
1170
- "columns": [
1171
- {
1172
- "expression": "conversation_id",
1173
- "isExpression": false,
1174
- "asc": true,
1175
- "nulls": "last"
1176
- },
1177
- {
1178
- "expression": "turn_id",
1179
- "isExpression": false,
1180
- "asc": true,
1181
- "nulls": "last"
1182
- }
1183
- ],
1184
- "isUnique": true,
1185
- "with": {},
1186
- "method": "btree",
1187
- "concurrently": false
1188
- },
1189
- "junior_conversation_briefs_conversation_version_idx": {
1190
- "name": "junior_conversation_briefs_conversation_version_idx",
1191
- "columns": [
1192
- {
1193
- "expression": "conversation_id",
1194
- "isExpression": false,
1195
- "asc": true,
1196
- "nulls": "last"
1197
- },
1198
- {
1199
- "expression": "version",
1200
- "isExpression": false,
1201
- "asc": false,
1202
- "nulls": "last"
1203
- }
1204
- ],
1205
- "isUnique": false,
1206
- "with": {},
1207
- "method": "btree",
1208
- "concurrently": false
1209
- },
1210
- "junior_conversation_briefs_search_idx": {
1211
- "name": "junior_conversation_briefs_search_idx",
1212
- "columns": [
1213
- {
1214
- "expression": "to_tsvector('english', \"search_text\")",
1215
- "isExpression": true,
1216
- "asc": true,
1217
- "nulls": "last"
1218
- }
1219
- ],
1220
- "isUnique": false,
1221
- "with": {},
1222
- "method": "gin",
1223
- "concurrently": false
1224
- }
1225
- },
1226
- "foreignKeys": {
1227
- "junior_conversation_briefs_conversation_id_junior_conversations_conversation_id_fk": {
1228
- "name": "junior_conversation_briefs_conversation_id_junior_conversations_conversation_id_fk",
1229
- "tableFrom": "junior_conversation_briefs",
1230
- "columnsFrom": [
1231
- "conversation_id"
1232
- ],
1233
- "tableTo": "junior_conversations",
1234
- "columnsTo": [
1235
- "conversation_id"
1236
- ],
1237
- "onUpdate": "no action",
1238
- "onDelete": "cascade"
1239
- }
1240
- },
1241
- "compositePrimaryKeys": {
1242
- "junior_conversation_briefs_conversation_id_version_pk": {
1243
- "name": "junior_conversation_briefs_conversation_id_version_pk",
1244
- "columns": [
1245
- "conversation_id",
1246
- "version"
1247
- ]
1248
- }
1249
- },
1250
- "uniqueConstraints": {},
1251
- "policies": {},
1252
- "checkConstraints": {},
1253
- "isRLSEnabled": false
1254
- },
1255
- "public.junior_conversation_events": {
1256
- "name": "junior_conversation_events",
1257
- "schema": "",
1258
- "columns": {
1259
- "conversation_id": {
1260
- "name": "conversation_id",
1261
- "type": "text",
1262
- "primaryKey": false,
1263
- "notNull": true
1264
- },
1265
- "seq": {
1266
- "name": "seq",
1267
- "type": "integer",
1268
- "primaryKey": false,
1269
- "notNull": true
1270
- },
1271
- "history_version": {
1272
- "name": "history_version",
1273
- "type": "integer",
1274
- "primaryKey": false,
1275
- "notNull": true
1276
- },
1277
- "schema_version": {
1278
- "name": "schema_version",
1279
- "type": "integer",
1280
- "primaryKey": false,
1281
- "notNull": true,
1282
- "default": 1
1283
- },
1284
- "idempotency_key": {
1285
- "name": "idempotency_key",
1286
- "type": "text",
1287
- "primaryKey": false,
1288
- "notNull": false
1289
- },
1290
- "type": {
1291
- "name": "type",
1292
- "type": "text",
1293
- "primaryKey": false,
1294
- "notNull": true
1295
- },
1296
- "payload": {
1297
- "name": "payload",
1298
- "type": "jsonb",
1299
- "primaryKey": false,
1300
- "notNull": true
1301
- },
1302
- "actor_identity_id": {
1303
- "name": "actor_identity_id",
1304
- "type": "text",
1305
- "primaryKey": false,
1306
- "notNull": false
1307
- },
1308
- "created_at": {
1309
- "name": "created_at",
1310
- "type": "timestamp with time zone",
1311
- "primaryKey": false,
1312
- "notNull": true
1313
- }
1314
- },
1315
- "indexes": {
1316
- "junior_conversation_events_history_version_idx": {
1317
- "name": "junior_conversation_events_history_version_idx",
1318
- "columns": [
1319
- {
1320
- "expression": "conversation_id",
1321
- "isExpression": false,
1322
- "asc": true,
1323
- "nulls": "last"
1324
- },
1325
- {
1326
- "expression": "history_version",
1327
- "isExpression": false,
1328
- "asc": true,
1329
- "nulls": "last"
1330
- },
1331
- {
1332
- "expression": "seq",
1333
- "isExpression": false,
1334
- "asc": true,
1335
- "nulls": "last"
1336
- }
1337
- ],
1338
- "isUnique": false,
1339
- "with": {},
1340
- "method": "btree",
1341
- "concurrently": false
1342
- },
1343
- "junior_conversation_events_type_idx": {
1344
- "name": "junior_conversation_events_type_idx",
1345
- "columns": [
1346
- {
1347
- "expression": "conversation_id",
1348
- "isExpression": false,
1349
- "asc": true,
1350
- "nulls": "last"
1351
- },
1352
- {
1353
- "expression": "type",
1354
- "isExpression": false,
1355
- "asc": true,
1356
- "nulls": "last"
1357
- },
1358
- {
1359
- "expression": "seq",
1360
- "isExpression": false,
1361
- "asc": true,
1362
- "nulls": "last"
1363
- }
1364
- ],
1365
- "isUnique": false,
1366
- "with": {},
1367
- "method": "btree",
1368
- "concurrently": false
1369
- },
1370
- "junior_conversation_events_actor_identity_idx": {
1371
- "name": "junior_conversation_events_actor_identity_idx",
1372
- "columns": [
1373
- {
1374
- "expression": "actor_identity_id",
1375
- "isExpression": false,
1376
- "asc": true,
1377
- "nulls": "last"
1378
- },
1379
- {
1380
- "expression": "conversation_id",
1381
- "isExpression": false,
1382
- "asc": true,
1383
- "nulls": "last"
1384
- },
1385
- {
1386
- "expression": "seq",
1387
- "isExpression": false,
1388
- "asc": true,
1389
- "nulls": "last"
1390
- }
1391
- ],
1392
- "isUnique": false,
1393
- "with": {},
1394
- "method": "btree",
1395
- "concurrently": false
1396
- },
1397
- "junior_conversation_events_message_search_idx": {
1398
- "name": "junior_conversation_events_message_search_idx",
1399
- "columns": [
1400
- {
1401
- "expression": "to_tsvector('english', \"payload\"->>'text')",
1402
- "isExpression": true,
1403
- "asc": true,
1404
- "nulls": "last"
1405
- }
1406
- ],
1407
- "isUnique": false,
1408
- "with": {},
1409
- "method": "gin",
1410
- "where": "\"junior_conversation_events\".\"type\" = 'message'",
1411
- "concurrently": false
1412
- },
1413
- "junior_conversation_events_idempotency_idx": {
1414
- "name": "junior_conversation_events_idempotency_idx",
1415
- "columns": [
1416
- {
1417
- "expression": "conversation_id",
1418
- "isExpression": false,
1419
- "asc": true,
1420
- "nulls": "last"
1421
- },
1422
- {
1423
- "expression": "idempotency_key",
1424
- "isExpression": false,
1425
- "asc": true,
1426
- "nulls": "last"
1427
- }
1428
- ],
1429
- "isUnique": true,
1430
- "with": {},
1431
- "method": "btree",
1432
- "concurrently": false
1433
- }
1434
- },
1435
- "foreignKeys": {
1436
- "junior_conversation_events_actor_identity_id_junior_identities_id_fk": {
1437
- "name": "junior_conversation_events_actor_identity_id_junior_identities_id_fk",
1438
- "tableFrom": "junior_conversation_events",
1439
- "columnsFrom": [
1440
- "actor_identity_id"
1441
- ],
1442
- "tableTo": "junior_identities",
1443
- "columnsTo": [
1444
- "id"
1445
- ],
1446
- "onUpdate": "no action",
1447
- "onDelete": "no action"
1448
- },
1449
- "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
1450
- "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
1451
- "tableFrom": "junior_conversation_events",
1452
- "columnsFrom": [
1453
- "conversation_id"
1454
- ],
1455
- "tableTo": "junior_conversations",
1456
- "columnsTo": [
1457
- "conversation_id"
1458
- ],
1459
- "onUpdate": "no action",
1460
- "onDelete": "no action"
1461
- }
1462
- },
1463
- "compositePrimaryKeys": {
1464
- "junior_conversation_events_conversation_id_seq_pk": {
1465
- "name": "junior_conversation_events_conversation_id_seq_pk",
1466
- "columns": [
1467
- "conversation_id",
1468
- "seq"
1469
- ]
1470
- }
1471
- },
1472
- "uniqueConstraints": {},
1473
- "policies": {},
1474
- "checkConstraints": {},
1475
- "isRLSEnabled": false
1476
- },
1477
- "public.junior_conversation_participants": {
1478
- "name": "junior_conversation_participants",
1479
- "schema": "",
1480
- "columns": {
1481
- "user_id": {
1482
- "name": "user_id",
1483
- "type": "text",
1484
- "primaryKey": false,
1485
- "notNull": true
1486
- },
1487
- "root_conversation_id": {
1488
- "name": "root_conversation_id",
1489
- "type": "text",
1490
- "primaryKey": false,
1491
- "notNull": true
1492
- },
1493
- "last_message_at": {
1494
- "name": "last_message_at",
1495
- "type": "timestamp with time zone",
1496
- "primaryKey": false,
1497
- "notNull": true
1498
- },
1499
- "archived_at": {
1500
- "name": "archived_at",
1501
- "type": "timestamp with time zone",
1502
- "primaryKey": false,
1503
- "notNull": false
1504
- }
1505
- },
1506
- "indexes": {
1507
- "junior_conversation_participants_user_activity_idx": {
1508
- "name": "junior_conversation_participants_user_activity_idx",
1509
- "columns": [
1510
- {
1511
- "expression": "user_id",
1512
- "isExpression": false,
1513
- "asc": true,
1514
- "nulls": "last"
1515
- },
1516
- {
1517
- "expression": "last_message_at",
1518
- "isExpression": false,
1519
- "asc": false,
1520
- "nulls": "last"
1521
- }
1522
- ],
1523
- "isUnique": false,
1524
- "with": {},
1525
- "method": "btree",
1526
- "concurrently": false
1527
- },
1528
- "junior_conversation_participants_root_idx": {
1529
- "name": "junior_conversation_participants_root_idx",
1530
- "columns": [
1531
- {
1532
- "expression": "root_conversation_id",
1533
- "isExpression": false,
1534
- "asc": true,
1535
- "nulls": "last"
1536
- }
1537
- ],
1538
- "isUnique": false,
1539
- "with": {},
1540
- "method": "btree",
1541
- "concurrently": false
1542
- }
1543
- },
1544
- "foreignKeys": {
1545
- "junior_conversation_participants_user_id_junior_users_id_fk": {
1546
- "name": "junior_conversation_participants_user_id_junior_users_id_fk",
1547
- "tableFrom": "junior_conversation_participants",
1548
- "columnsFrom": [
1549
- "user_id"
1550
- ],
1551
- "tableTo": "junior_users",
1552
- "columnsTo": [
1553
- "id"
1554
- ],
1555
- "onUpdate": "no action",
1556
- "onDelete": "no action"
1557
- },
1558
- "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk": {
1559
- "name": "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk",
1560
- "tableFrom": "junior_conversation_participants",
1561
- "columnsFrom": [
1562
- "root_conversation_id"
1563
- ],
1564
- "tableTo": "junior_conversations",
1565
- "columnsTo": [
1566
- "conversation_id"
1567
- ],
1568
- "onUpdate": "no action",
1569
- "onDelete": "no action"
1570
- }
1571
- },
1572
- "compositePrimaryKeys": {
1573
- "junior_conversation_participants_user_root_pk": {
1574
- "name": "junior_conversation_participants_user_root_pk",
1575
- "columns": [
1576
- "user_id",
1577
- "root_conversation_id"
1578
- ]
1579
- }
1580
- },
1581
- "uniqueConstraints": {},
1582
- "policies": {},
1583
- "checkConstraints": {},
1584
- "isRLSEnabled": false
1585
- },
1586
- "public.junior_conversations": {
1587
- "name": "junior_conversations",
1588
- "schema": "",
1589
- "columns": {
1590
- "conversation_id": {
1591
- "name": "conversation_id",
1592
- "type": "text",
1593
- "primaryKey": true,
1594
- "notNull": true
1595
- },
1596
- "schema_version": {
1597
- "name": "schema_version",
1598
- "type": "integer",
1599
- "primaryKey": false,
1600
- "notNull": true,
1601
- "default": 1
1602
- },
1603
- "source": {
1604
- "name": "source",
1605
- "type": "text",
1606
- "primaryKey": false,
1607
- "notNull": false
1608
- },
1609
- "source_json": {
1610
- "name": "source_json",
1611
- "type": "jsonb",
1612
- "primaryKey": false,
1613
- "notNull": false
1614
- },
1615
- "origin_type": {
1616
- "name": "origin_type",
1617
- "type": "text",
1618
- "primaryKey": false,
1619
- "notNull": false
1620
- },
1621
- "origin_id": {
1622
- "name": "origin_id",
1623
- "type": "text",
1624
- "primaryKey": false,
1625
- "notNull": false
1626
- },
1627
- "origin_run_id": {
1628
- "name": "origin_run_id",
1629
- "type": "text",
1630
- "primaryKey": false,
1631
- "notNull": false
1632
- },
1633
- "location_json": {
1634
- "name": "location_json",
1635
- "type": "jsonb",
1636
- "primaryKey": false,
1637
- "notNull": false
1638
- },
1639
- "destination_id": {
1640
- "name": "destination_id",
1641
- "type": "text",
1642
- "primaryKey": false,
1643
- "notNull": false
1644
- },
1645
- "destination_json": {
1646
- "name": "destination_json",
1647
- "type": "jsonb",
1648
- "primaryKey": false,
1649
- "notNull": false
1650
- },
1651
- "actor_identity_id": {
1652
- "name": "actor_identity_id",
1653
- "type": "text",
1654
- "primaryKey": false,
1655
- "notNull": false
1656
- },
1657
- "creator_identity_id": {
1658
- "name": "creator_identity_id",
1659
- "type": "text",
1660
- "primaryKey": false,
1661
- "notNull": false
1662
- },
1663
- "credential_subject_identity_id": {
1664
- "name": "credential_subject_identity_id",
1665
- "type": "text",
1666
- "primaryKey": false,
1667
- "notNull": false
1668
- },
1669
- "actor_json": {
1670
- "name": "actor_json",
1671
- "type": "jsonb",
1672
- "primaryKey": false,
1673
- "notNull": false
1674
- },
1675
- "channel_name": {
1676
- "name": "channel_name",
1677
- "type": "text",
1678
- "primaryKey": false,
1679
- "notNull": false
1680
- },
1681
- "title": {
1682
- "name": "title",
1683
- "type": "text",
1684
- "primaryKey": false,
1685
- "notNull": false
1686
- },
1687
- "created_at": {
1688
- "name": "created_at",
1689
- "type": "timestamp with time zone",
1690
- "primaryKey": false,
1691
- "notNull": true
1692
- },
1693
- "last_activity_at": {
1694
- "name": "last_activity_at",
1695
- "type": "timestamp with time zone",
1696
- "primaryKey": false,
1697
- "notNull": true
1698
- },
1699
- "updated_at": {
1700
- "name": "updated_at",
1701
- "type": "timestamp with time zone",
1702
- "primaryKey": false,
1703
- "notNull": true
1704
- },
1705
- "execution_updated_at": {
1706
- "name": "execution_updated_at",
1707
- "type": "timestamp with time zone",
1708
- "primaryKey": false,
1709
- "notNull": false
1710
- },
1711
- "execution_status": {
1712
- "name": "execution_status",
1713
- "type": "text",
1714
- "primaryKey": false,
1715
- "notNull": true
1716
- },
1717
- "run_id": {
1718
- "name": "run_id",
1719
- "type": "text",
1720
- "primaryKey": false,
1721
- "notNull": false
1722
- },
1723
- "last_checkpoint_at": {
1724
- "name": "last_checkpoint_at",
1725
- "type": "timestamp with time zone",
1726
- "primaryKey": false,
1727
- "notNull": false
1728
- },
1729
- "last_enqueued_at": {
1730
- "name": "last_enqueued_at",
1731
- "type": "timestamp with time zone",
1732
- "primaryKey": false,
1733
- "notNull": false
1734
- },
1735
- "parent_conversation_id": {
1736
- "name": "parent_conversation_id",
1737
- "type": "text",
1738
- "primaryKey": false,
1739
- "notNull": false
1740
- },
1741
- "root_conversation_id": {
1742
- "name": "root_conversation_id",
1743
- "type": "text",
1744
- "primaryKey": false,
1745
- "notNull": false
1746
- },
1747
- "transcript_purged_at": {
1748
- "name": "transcript_purged_at",
1749
- "type": "timestamp with time zone",
1750
- "primaryKey": false,
1751
- "notNull": false
1752
- },
1753
- "duration_ms": {
1754
- "name": "duration_ms",
1755
- "type": "integer",
1756
- "primaryKey": false,
1757
- "notNull": true,
1758
- "default": 0
1759
- },
1760
- "usage_json": {
1761
- "name": "usage_json",
1762
- "type": "jsonb",
1763
- "primaryKey": false,
1764
- "notNull": false
1765
- },
1766
- "execution_duration_ms": {
1767
- "name": "execution_duration_ms",
1768
- "type": "integer",
1769
- "primaryKey": false,
1770
- "notNull": true,
1771
- "default": 0
1772
- },
1773
- "execution_usage_json": {
1774
- "name": "execution_usage_json",
1775
- "type": "jsonb",
1776
- "primaryKey": false,
1777
- "notNull": false
1778
- },
1779
- "metric_run_id": {
1780
- "name": "metric_run_id",
1781
- "type": "text",
1782
- "primaryKey": false,
1783
- "notNull": false
1784
- },
1785
- "archived_at": {
1786
- "name": "archived_at",
1787
- "type": "timestamp with time zone",
1788
- "primaryKey": false,
1789
- "notNull": false
1790
- }
1791
- },
1792
- "indexes": {
1793
- "junior_conversations_last_activity_idx": {
1794
- "name": "junior_conversations_last_activity_idx",
1795
- "columns": [
1796
- {
1797
- "expression": "last_activity_at",
1798
- "isExpression": false,
1799
- "asc": false,
1800
- "nulls": "last"
1801
- },
1802
- {
1803
- "expression": "conversation_id",
1804
- "isExpression": false,
1805
- "asc": true,
1806
- "nulls": "last"
1807
- }
1808
- ],
1809
- "isUnique": false,
1810
- "with": {},
1811
- "method": "btree",
1812
- "concurrently": false
1813
- },
1814
- "junior_conversations_active_idx": {
1815
- "name": "junior_conversations_active_idx",
1816
- "columns": [
1817
- {
1818
- "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
1819
- "isExpression": true,
1820
- "asc": true,
1821
- "nulls": "last"
1822
- },
1823
- {
1824
- "expression": "conversation_id",
1825
- "isExpression": false,
1826
- "asc": true,
1827
- "nulls": "last"
1828
- }
1829
- ],
1830
- "isUnique": false,
1831
- "with": {},
1832
- "method": "btree",
1833
- "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
1834
- "concurrently": false
1835
- },
1836
- "junior_conversations_destination_activity_idx": {
1837
- "name": "junior_conversations_destination_activity_idx",
1838
- "columns": [
1839
- {
1840
- "expression": "destination_id",
1841
- "isExpression": false,
1842
- "asc": true,
1843
- "nulls": "last"
1844
- },
1845
- {
1846
- "expression": "last_activity_at",
1847
- "isExpression": false,
1848
- "asc": false,
1849
- "nulls": "last"
1850
- }
1851
- ],
1852
- "isUnique": false,
1853
- "with": {},
1854
- "method": "btree",
1855
- "concurrently": false
1856
- },
1857
- "junior_conversations_actor_activity_idx": {
1858
- "name": "junior_conversations_actor_activity_idx",
1859
- "columns": [
1860
- {
1861
- "expression": "actor_identity_id",
1862
- "isExpression": false,
1863
- "asc": true,
1864
- "nulls": "last"
1865
- },
1866
- {
1867
- "expression": "last_activity_at",
1868
- "isExpression": false,
1869
- "asc": false,
1870
- "nulls": "last"
1871
- }
1872
- ],
1873
- "isUnique": false,
1874
- "with": {},
1875
- "method": "btree",
1876
- "concurrently": false
1877
- },
1878
- "junior_conversations_origin_idx": {
1879
- "name": "junior_conversations_origin_idx",
1880
- "columns": [
1881
- {
1882
- "expression": "origin_type",
1883
- "isExpression": false,
1884
- "asc": true,
1885
- "nulls": "last"
1886
- },
1887
- {
1888
- "expression": "origin_id",
1889
- "isExpression": false,
1890
- "asc": true,
1891
- "nulls": "last"
1892
- },
1893
- {
1894
- "expression": "last_activity_at",
1895
- "isExpression": false,
1896
- "asc": false,
1897
- "nulls": "last"
1898
- }
1899
- ],
1900
- "isUnique": false,
1901
- "with": {},
1902
- "method": "btree",
1903
- "concurrently": false
1904
- },
1905
- "junior_conversations_parent_idx": {
1906
- "name": "junior_conversations_parent_idx",
1907
- "columns": [
1908
- {
1909
- "expression": "parent_conversation_id",
1910
- "isExpression": false,
1911
- "asc": true,
1912
- "nulls": "last"
1913
- }
1914
- ],
1915
- "isUnique": false,
1916
- "with": {},
1917
- "method": "btree",
1918
- "concurrently": false
1919
- },
1920
- "junior_conversations_root_idx": {
1921
- "name": "junior_conversations_root_idx",
1922
- "columns": [
1923
- {
1924
- "expression": "root_conversation_id",
1925
- "isExpression": false,
1926
- "asc": true,
1927
- "nulls": "last"
1928
- }
1929
- ],
1930
- "isUnique": false,
1931
- "with": {},
1932
- "method": "btree",
1933
- "concurrently": false
1934
- }
1935
- },
1936
- "foreignKeys": {
1937
- "junior_conversations_destination_id_junior_destinations_id_fk": {
1938
- "name": "junior_conversations_destination_id_junior_destinations_id_fk",
1939
- "tableFrom": "junior_conversations",
1940
- "columnsFrom": [
1941
- "destination_id"
1942
- ],
1943
- "tableTo": "junior_destinations",
1944
- "columnsTo": [
1945
- "id"
1946
- ],
1947
- "onUpdate": "no action",
1948
- "onDelete": "no action"
1949
- },
1950
- "junior_conversations_actor_identity_id_junior_identities_id_fk": {
1951
- "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
1952
- "tableFrom": "junior_conversations",
1953
- "columnsFrom": [
1954
- "actor_identity_id"
1955
- ],
1956
- "tableTo": "junior_identities",
1957
- "columnsTo": [
1958
- "id"
1959
- ],
1960
- "onUpdate": "no action",
1961
- "onDelete": "no action"
1962
- },
1963
- "junior_conversations_creator_identity_id_junior_identities_id_fk": {
1964
- "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
1965
- "tableFrom": "junior_conversations",
1966
- "columnsFrom": [
1967
- "creator_identity_id"
1968
- ],
1969
- "tableTo": "junior_identities",
1970
- "columnsTo": [
1971
- "id"
1972
- ],
1973
- "onUpdate": "no action",
1974
- "onDelete": "no action"
1975
- },
1976
- "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
1977
- "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
1978
- "tableFrom": "junior_conversations",
1979
- "columnsFrom": [
1980
- "credential_subject_identity_id"
1981
- ],
1982
- "tableTo": "junior_identities",
1983
- "columnsTo": [
1984
- "id"
1985
- ],
1986
- "onUpdate": "no action",
1987
- "onDelete": "no action"
1988
- },
1989
- "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
1990
- "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
1991
- "tableFrom": "junior_conversations",
1992
- "columnsFrom": [
1993
- "parent_conversation_id"
1994
- ],
1995
- "tableTo": "junior_conversations",
1996
- "columnsTo": [
1997
- "conversation_id"
1998
- ],
1999
- "onUpdate": "no action",
2000
- "onDelete": "no action"
2001
- },
2002
- "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
2003
- "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
2004
- "tableFrom": "junior_conversations",
2005
- "columnsFrom": [
2006
- "root_conversation_id"
2007
- ],
2008
- "tableTo": "junior_conversations",
2009
- "columnsTo": [
2010
- "conversation_id"
2011
- ],
2012
- "onUpdate": "no action",
2013
- "onDelete": "no action"
2014
- }
2015
- },
2016
- "compositePrimaryKeys": {},
2017
- "uniqueConstraints": {},
2018
- "policies": {},
2019
- "checkConstraints": {},
2020
- "isRLSEnabled": false
2021
- },
2022
- "public.junior_destinations": {
2023
- "name": "junior_destinations",
2024
- "schema": "",
2025
- "columns": {
2026
- "id": {
2027
- "name": "id",
2028
- "type": "text",
2029
- "primaryKey": true,
2030
- "notNull": true
2031
- },
2032
- "provider": {
2033
- "name": "provider",
2034
- "type": "text",
2035
- "primaryKey": false,
2036
- "notNull": true
2037
- },
2038
- "provider_tenant_id": {
2039
- "name": "provider_tenant_id",
2040
- "type": "text",
2041
- "primaryKey": false,
2042
- "notNull": true,
2043
- "default": "''"
2044
- },
2045
- "provider_destination_id": {
2046
- "name": "provider_destination_id",
2047
- "type": "text",
2048
- "primaryKey": false,
2049
- "notNull": true
2050
- },
2051
- "kind": {
2052
- "name": "kind",
2053
- "type": "text",
2054
- "primaryKey": false,
2055
- "notNull": true
2056
- },
2057
- "parent_destination_id": {
2058
- "name": "parent_destination_id",
2059
- "type": "text",
2060
- "primaryKey": false,
2061
- "notNull": false
2062
- },
2063
- "display_name": {
2064
- "name": "display_name",
2065
- "type": "text",
2066
- "primaryKey": false,
2067
- "notNull": false
2068
- },
2069
- "visibility": {
2070
- "name": "visibility",
2071
- "type": "text",
2072
- "primaryKey": false,
2073
- "notNull": true,
2074
- "default": "'unknown'"
2075
- },
2076
- "metadata_json": {
2077
- "name": "metadata_json",
2078
- "type": "jsonb",
2079
- "primaryKey": false,
2080
- "notNull": false
2081
- },
2082
- "created_at": {
2083
- "name": "created_at",
2084
- "type": "timestamp with time zone",
2085
- "primaryKey": false,
2086
- "notNull": true
2087
- },
2088
- "updated_at": {
2089
- "name": "updated_at",
2090
- "type": "timestamp with time zone",
2091
- "primaryKey": false,
2092
- "notNull": true
2093
- }
2094
- },
2095
- "indexes": {
2096
- "junior_destinations_provider_destination_uidx": {
2097
- "name": "junior_destinations_provider_destination_uidx",
2098
- "columns": [
2099
- {
2100
- "expression": "provider",
2101
- "isExpression": false,
2102
- "asc": true,
2103
- "nulls": "last"
2104
- },
2105
- {
2106
- "expression": "provider_tenant_id",
2107
- "isExpression": false,
2108
- "asc": true,
2109
- "nulls": "last"
2110
- },
2111
- {
2112
- "expression": "provider_destination_id",
2113
- "isExpression": false,
2114
- "asc": true,
2115
- "nulls": "last"
2116
- }
2117
- ],
2118
- "isUnique": true,
2119
- "with": {},
2120
- "method": "btree",
2121
- "concurrently": false
2122
- },
2123
- "junior_destinations_provider_kind_idx": {
2124
- "name": "junior_destinations_provider_kind_idx",
2125
- "columns": [
2126
- {
2127
- "expression": "provider",
2128
- "isExpression": false,
2129
- "asc": true,
2130
- "nulls": "last"
2131
- },
2132
- {
2133
- "expression": "kind",
2134
- "isExpression": false,
2135
- "asc": true,
2136
- "nulls": "last"
2137
- }
2138
- ],
2139
- "isUnique": false,
2140
- "with": {},
2141
- "method": "btree",
2142
- "concurrently": false
2143
- }
2144
- },
2145
- "foreignKeys": {},
2146
- "compositePrimaryKeys": {},
2147
- "uniqueConstraints": {},
2148
- "policies": {},
2149
- "checkConstraints": {},
2150
- "isRLSEnabled": false
2151
- },
2152
- "public.junior_event_tasks": {
2153
- "name": "junior_event_tasks",
2154
- "schema": "",
2155
- "columns": {
2156
- "id": {
2157
- "name": "id",
2158
- "type": "text",
2159
- "primaryKey": true,
2160
- "notNull": true
2161
- },
2162
- "team_id": {
2163
- "name": "team_id",
2164
- "type": "text",
2165
- "primaryKey": false,
2166
- "notNull": true
2167
- },
2168
- "namespace": {
2169
- "name": "namespace",
2170
- "type": "text",
2171
- "primaryKey": false,
2172
- "notNull": true
2173
- },
2174
- "identifier": {
2175
- "name": "identifier",
2176
- "type": "text",
2177
- "primaryKey": false,
2178
- "notNull": true
2179
- },
2180
- "created_at_ms": {
2181
- "name": "created_at_ms",
2182
- "type": "bigint",
2183
- "primaryKey": false,
2184
- "notNull": true
2185
- },
2186
- "status": {
2187
- "name": "status",
2188
- "type": "text",
2189
- "primaryKey": false,
2190
- "notNull": true,
2191
- "default": "'active'"
2192
- },
2193
- "title": {
2194
- "name": "title",
2195
- "type": "text",
2196
- "primaryKey": false,
2197
- "notNull": false
2198
- },
2199
- "task_json": {
2200
- "name": "task_json",
2201
- "type": "jsonb",
2202
- "primaryKey": false,
2203
- "notNull": true
2204
- }
2205
- },
2206
- "indexes": {
2207
- "junior_event_tasks_team_idx": {
2208
- "name": "junior_event_tasks_team_idx",
2209
- "columns": [
2210
- {
2211
- "expression": "team_id",
2212
- "isExpression": false,
2213
- "asc": true,
2214
- "nulls": "last"
2215
- },
2216
- {
2217
- "expression": "created_at_ms",
2218
- "isExpression": false,
2219
- "asc": true,
2220
- "nulls": "last"
2221
- },
2222
- {
2223
- "expression": "id",
2224
- "isExpression": false,
2225
- "asc": true,
2226
- "nulls": "last"
2227
- }
2228
- ],
2229
- "isUnique": false,
2230
- "with": {},
2231
- "method": "btree",
2232
- "where": "\"junior_event_tasks\".\"status\" <> 'deleted'",
2233
- "concurrently": false
2234
- },
2235
- "junior_event_tasks_match_idx": {
2236
- "name": "junior_event_tasks_match_idx",
2237
- "columns": [
2238
- {
2239
- "expression": "namespace",
2240
- "isExpression": false,
2241
- "asc": true,
2242
- "nulls": "last"
2243
- },
2244
- {
2245
- "expression": "identifier",
2246
- "isExpression": false,
2247
- "asc": true,
2248
- "nulls": "last"
2249
- },
2250
- {
2251
- "expression": "created_at_ms",
2252
- "isExpression": false,
2253
- "asc": true,
2254
- "nulls": "last"
2255
- },
2256
- {
2257
- "expression": "id",
2258
- "isExpression": false,
2259
- "asc": true,
2260
- "nulls": "last"
2261
- }
2262
- ],
2263
- "isUnique": false,
2264
- "with": {},
2265
- "method": "btree",
2266
- "where": "\"junior_event_tasks\".\"status\" <> 'deleted'",
2267
- "concurrently": false
2268
- }
2269
- },
2270
- "foreignKeys": {},
2271
- "compositePrimaryKeys": {},
2272
- "uniqueConstraints": {},
2273
- "policies": {},
2274
- "checkConstraints": {},
2275
- "isRLSEnabled": false
2276
- },
2277
- "public.junior_identities": {
2278
- "name": "junior_identities",
2279
- "schema": "",
2280
- "columns": {
2281
- "id": {
2282
- "name": "id",
2283
- "type": "text",
2284
- "primaryKey": true,
2285
- "notNull": true
2286
- },
2287
- "kind": {
2288
- "name": "kind",
2289
- "type": "text",
2290
- "primaryKey": false,
2291
- "notNull": true
2292
- },
2293
- "provider": {
2294
- "name": "provider",
2295
- "type": "text",
2296
- "primaryKey": false,
2297
- "notNull": true
2298
- },
2299
- "provider_tenant_id": {
2300
- "name": "provider_tenant_id",
2301
- "type": "text",
2302
- "primaryKey": false,
2303
- "notNull": true,
2304
- "default": "''"
2305
- },
2306
- "provider_subject_id": {
2307
- "name": "provider_subject_id",
2308
- "type": "text",
2309
- "primaryKey": false,
2310
- "notNull": true
2311
- },
2312
- "display_name": {
2313
- "name": "display_name",
2314
- "type": "text",
2315
- "primaryKey": false,
2316
- "notNull": false
2317
- },
2318
- "handle": {
2319
- "name": "handle",
2320
- "type": "text",
2321
- "primaryKey": false,
2322
- "notNull": false
2323
- },
2324
- "email": {
2325
- "name": "email",
2326
- "type": "text",
2327
- "primaryKey": false,
2328
- "notNull": false
2329
- },
2330
- "avatar_url": {
2331
- "name": "avatar_url",
2332
- "type": "text",
2333
- "primaryKey": false,
2334
- "notNull": false
2335
- },
2336
- "metadata_json": {
2337
- "name": "metadata_json",
2338
- "type": "jsonb",
2339
- "primaryKey": false,
2340
- "notNull": false
2341
- },
2342
- "created_at": {
2343
- "name": "created_at",
2344
- "type": "timestamp with time zone",
2345
- "primaryKey": false,
2346
- "notNull": true
2347
- },
2348
- "updated_at": {
2349
- "name": "updated_at",
2350
- "type": "timestamp with time zone",
2351
- "primaryKey": false,
2352
- "notNull": true
2353
- },
2354
- "user_id": {
2355
- "name": "user_id",
2356
- "type": "text",
2357
- "primaryKey": false,
2358
- "notNull": false
2359
- },
2360
- "email_normalized": {
2361
- "name": "email_normalized",
2362
- "type": "text",
2363
- "primaryKey": false,
2364
- "notNull": false
2365
- },
2366
- "email_verified": {
2367
- "name": "email_verified",
2368
- "type": "boolean",
2369
- "primaryKey": false,
2370
- "notNull": true,
2371
- "default": false
2372
- }
2373
- },
2374
- "indexes": {
2375
- "junior_identities_provider_subject_uidx": {
2376
- "name": "junior_identities_provider_subject_uidx",
2377
- "columns": [
2378
- {
2379
- "expression": "provider",
2380
- "isExpression": false,
2381
- "asc": true,
2382
- "nulls": "last"
2383
- },
2384
- {
2385
- "expression": "provider_tenant_id",
2386
- "isExpression": false,
2387
- "asc": true,
2388
- "nulls": "last"
2389
- },
2390
- {
2391
- "expression": "provider_subject_id",
2392
- "isExpression": false,
2393
- "asc": true,
2394
- "nulls": "last"
2395
- }
2396
- ],
2397
- "isUnique": true,
2398
- "with": {},
2399
- "method": "btree",
2400
- "concurrently": false
2401
- },
2402
- "junior_identities_user_idx": {
2403
- "name": "junior_identities_user_idx",
2404
- "columns": [
2405
- {
2406
- "expression": "user_id",
2407
- "isExpression": false,
2408
- "asc": true,
2409
- "nulls": "last"
2410
- }
2411
- ],
2412
- "isUnique": false,
2413
- "with": {},
2414
- "method": "btree",
2415
- "concurrently": false
2416
- },
2417
- "junior_identities_verified_email_idx": {
2418
- "name": "junior_identities_verified_email_idx",
2419
- "columns": [
2420
- {
2421
- "expression": "email_normalized",
2422
- "isExpression": false,
2423
- "asc": true,
2424
- "nulls": "last"
2425
- }
2426
- ],
2427
- "isUnique": false,
2428
- "with": {},
2429
- "method": "btree",
2430
- "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
2431
- "concurrently": false
2432
- },
2433
- "junior_identities_kind_provider_idx": {
2434
- "name": "junior_identities_kind_provider_idx",
2435
- "columns": [
2436
- {
2437
- "expression": "kind",
2438
- "isExpression": false,
2439
- "asc": true,
2440
- "nulls": "last"
2441
- },
2442
- {
2443
- "expression": "provider",
2444
- "isExpression": false,
2445
- "asc": true,
2446
- "nulls": "last"
2447
- }
2448
- ],
2449
- "isUnique": false,
2450
- "with": {},
2451
- "method": "btree",
2452
- "concurrently": false
2453
- }
2454
- },
2455
- "foreignKeys": {
2456
- "junior_identities_user_id_junior_users_id_fk": {
2457
- "name": "junior_identities_user_id_junior_users_id_fk",
2458
- "tableFrom": "junior_identities",
2459
- "columnsFrom": [
2460
- "user_id"
2461
- ],
2462
- "tableTo": "junior_users",
2463
- "columnsTo": [
2464
- "id"
2465
- ],
2466
- "onUpdate": "no action",
2467
- "onDelete": "no action"
2468
- }
2469
- },
2470
- "compositePrimaryKeys": {},
2471
- "uniqueConstraints": {},
2472
- "policies": {},
2473
- "checkConstraints": {},
2474
- "isRLSEnabled": false
2475
- },
2476
- "public.junior_location_configurations": {
2477
- "name": "junior_location_configurations",
2478
- "schema": "",
2479
- "columns": {
2480
- "location_id": {
2481
- "name": "location_id",
2482
- "type": "text",
2483
- "primaryKey": false,
2484
- "notNull": true
2485
- },
2486
- "key": {
2487
- "name": "key",
2488
- "type": "text",
2489
- "primaryKey": false,
2490
- "notNull": true
2491
- },
2492
- "value": {
2493
- "name": "value",
2494
- "type": "text",
2495
- "primaryKey": false,
2496
- "notNull": true
2497
- },
2498
- "updated_at": {
2499
- "name": "updated_at",
2500
- "type": "timestamp with time zone",
2501
- "primaryKey": false,
2502
- "notNull": true
2503
- },
2504
- "updated_by": {
2505
- "name": "updated_by",
2506
- "type": "text",
2507
- "primaryKey": false,
2508
- "notNull": false
2509
- },
2510
- "source": {
2511
- "name": "source",
2512
- "type": "text",
2513
- "primaryKey": false,
2514
- "notNull": false
2515
- },
2516
- "expires_at": {
2517
- "name": "expires_at",
2518
- "type": "text",
2519
- "primaryKey": false,
2520
- "notNull": false
2521
- }
2522
- },
2523
- "indexes": {},
2524
- "foreignKeys": {
2525
- "junior_location_configurations_location_id_junior_destinations_id_fk": {
2526
- "name": "junior_location_configurations_location_id_junior_destinations_id_fk",
2527
- "tableFrom": "junior_location_configurations",
2528
- "columnsFrom": [
2529
- "location_id"
2530
- ],
2531
- "tableTo": "junior_destinations",
2532
- "columnsTo": [
2533
- "id"
2534
- ],
2535
- "onUpdate": "no action",
2536
- "onDelete": "cascade"
2537
- }
2538
- },
2539
- "compositePrimaryKeys": {
2540
- "junior_location_configurations_location_id_key_pk": {
2541
- "name": "junior_location_configurations_location_id_key_pk",
2542
- "columns": [
2543
- "location_id",
2544
- "key"
2545
- ]
2546
- }
2547
- },
2548
- "uniqueConstraints": {},
2549
- "policies": {},
2550
- "checkConstraints": {},
2551
- "isRLSEnabled": false
2552
- },
2553
- "public.junior_scheduler_runs": {
2554
- "name": "junior_scheduler_runs",
2555
- "schema": "",
2556
- "columns": {
2557
- "id": {
2558
- "name": "id",
2559
- "type": "text",
2560
- "primaryKey": true,
2561
- "notNull": true
2562
- },
2563
- "task_id": {
2564
- "name": "task_id",
2565
- "type": "text",
2566
- "primaryKey": false,
2567
- "notNull": true
2568
- },
2569
- "status": {
2570
- "name": "status",
2571
- "type": "text",
2572
- "primaryKey": false,
2573
- "notNull": true
2574
- },
2575
- "scheduled_for_ms": {
2576
- "name": "scheduled_for_ms",
2577
- "type": "bigint",
2578
- "primaryKey": false,
2579
- "notNull": true
2580
- },
2581
- "record": {
2582
- "name": "record",
2583
- "type": "jsonb",
2584
- "primaryKey": false,
2585
- "notNull": true
2586
- }
2587
- },
2588
- "indexes": {
2589
- "junior_scheduler_runs_task_status_idx": {
2590
- "name": "junior_scheduler_runs_task_status_idx",
2591
- "columns": [
2592
- {
2593
- "expression": "task_id",
2594
- "isExpression": false,
2595
- "asc": true,
2596
- "nulls": "last"
2597
- },
2598
- {
2599
- "expression": "status",
2600
- "isExpression": false,
2601
- "asc": true,
2602
- "nulls": "last"
2603
- },
2604
- {
2605
- "expression": "scheduled_for_ms",
2606
- "isExpression": false,
2607
- "asc": true,
2608
- "nulls": "last"
2609
- }
2610
- ],
2611
- "isUnique": false,
2612
- "with": {},
2613
- "method": "btree",
2614
- "concurrently": false
2615
- },
2616
- "junior_scheduler_runs_status_idx": {
2617
- "name": "junior_scheduler_runs_status_idx",
2618
- "columns": [
2619
- {
2620
- "expression": "status",
2621
- "isExpression": false,
2622
- "asc": true,
2623
- "nulls": "last"
2624
- },
2625
- {
2626
- "expression": "scheduled_for_ms",
2627
- "isExpression": false,
2628
- "asc": true,
2629
- "nulls": "last"
2630
- }
2631
- ],
2632
- "isUnique": false,
2633
- "with": {},
2634
- "method": "btree",
2635
- "concurrently": false
2636
- }
2637
- },
2638
- "foreignKeys": {},
2639
- "compositePrimaryKeys": {},
2640
- "uniqueConstraints": {},
2641
- "policies": {},
2642
- "checkConstraints": {},
2643
- "isRLSEnabled": false
2644
- },
2645
- "public.junior_scheduler_tasks": {
2646
- "name": "junior_scheduler_tasks",
2647
- "schema": "",
2648
- "columns": {
2649
- "id": {
2650
- "name": "id",
2651
- "type": "text",
2652
- "primaryKey": true,
2653
- "notNull": true
2654
- },
2655
- "team_id": {
2656
- "name": "team_id",
2657
- "type": "text",
2658
- "primaryKey": false,
2659
- "notNull": true
2660
- },
2661
- "creator_slack_user_id": {
2662
- "name": "creator_slack_user_id",
2663
- "type": "text",
2664
- "primaryKey": false,
2665
- "notNull": false
2666
- },
2667
- "creator_identity_id": {
2668
- "name": "creator_identity_id",
2669
- "type": "text",
2670
- "primaryKey": false,
2671
- "notNull": false
2672
- },
2673
- "status": {
2674
- "name": "status",
2675
- "type": "text",
2676
- "primaryKey": false,
2677
- "notNull": true
2678
- },
2679
- "next_run_at_ms": {
2680
- "name": "next_run_at_ms",
2681
- "type": "bigint",
2682
- "primaryKey": false,
2683
- "notNull": false
2684
- },
2685
- "run_now_at_ms": {
2686
- "name": "run_now_at_ms",
2687
- "type": "bigint",
2688
- "primaryKey": false,
2689
- "notNull": false
2690
- },
2691
- "created_at_ms": {
2692
- "name": "created_at_ms",
2693
- "type": "bigint",
2694
- "primaryKey": false,
2695
- "notNull": true
2696
- },
2697
- "title": {
2698
- "name": "title",
2699
- "type": "text",
2700
- "primaryKey": false,
2701
- "notNull": false
2702
- },
2703
- "record": {
2704
- "name": "record",
2705
- "type": "jsonb",
2706
- "primaryKey": false,
2707
- "notNull": true
2708
- }
2709
- },
2710
- "indexes": {
2711
- "junior_scheduler_tasks_creator_idx": {
2712
- "name": "junior_scheduler_tasks_creator_idx",
2713
- "columns": [
2714
- {
2715
- "expression": "team_id",
2716
- "isExpression": false,
2717
- "asc": true,
2718
- "nulls": "last"
2719
- },
2720
- {
2721
- "expression": "creator_slack_user_id",
2722
- "isExpression": false,
2723
- "asc": true,
2724
- "nulls": "last"
2725
- },
2726
- {
2727
- "expression": "created_at_ms",
2728
- "isExpression": false,
2729
- "asc": true,
2730
- "nulls": "last"
2731
- },
2732
- {
2733
- "expression": "id",
2734
- "isExpression": false,
2735
- "asc": true,
2736
- "nulls": "last"
2737
- }
2738
- ],
2739
- "isUnique": false,
2740
- "with": {},
2741
- "method": "btree",
2742
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
2743
- "concurrently": false
2744
- },
2745
- "junior_scheduler_tasks_creator_identity_idx": {
2746
- "name": "junior_scheduler_tasks_creator_identity_idx",
2747
- "columns": [
2748
- {
2749
- "expression": "creator_identity_id",
2750
- "isExpression": false,
2751
- "asc": true,
2752
- "nulls": "last"
2753
- },
2754
- {
2755
- "expression": "created_at_ms",
2756
- "isExpression": false,
2757
- "asc": true,
2758
- "nulls": "last"
2759
- },
2760
- {
2761
- "expression": "id",
2762
- "isExpression": false,
2763
- "asc": true,
2764
- "nulls": "last"
2765
- }
2766
- ],
2767
- "isUnique": false,
2768
- "with": {},
2769
- "method": "btree",
2770
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted' AND \"junior_scheduler_tasks\".\"creator_identity_id\" IS NOT NULL",
2771
- "concurrently": false
2772
- },
2773
- "junior_scheduler_tasks_team_status_idx": {
2774
- "name": "junior_scheduler_tasks_team_status_idx",
2775
- "columns": [
2776
- {
2777
- "expression": "team_id",
2778
- "isExpression": false,
2779
- "asc": true,
2780
- "nulls": "last"
2781
- },
2782
- {
2783
- "expression": "created_at_ms",
2784
- "isExpression": false,
2785
- "asc": true,
2786
- "nulls": "last"
2787
- },
2788
- {
2789
- "expression": "id",
2790
- "isExpression": false,
2791
- "asc": true,
2792
- "nulls": "last"
2793
- }
2794
- ],
2795
- "isUnique": false,
2796
- "with": {},
2797
- "method": "btree",
2798
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
2799
- "concurrently": false
2800
- },
2801
- "junior_scheduler_tasks_run_now_due_idx": {
2802
- "name": "junior_scheduler_tasks_run_now_due_idx",
2803
- "columns": [
2804
- {
2805
- "expression": "run_now_at_ms",
2806
- "isExpression": false,
2807
- "asc": true,
2808
- "nulls": "last"
2809
- },
2810
- {
2811
- "expression": "created_at_ms",
2812
- "isExpression": false,
2813
- "asc": true,
2814
- "nulls": "last"
2815
- },
2816
- {
2817
- "expression": "id",
2818
- "isExpression": false,
2819
- "asc": true,
2820
- "nulls": "last"
2821
- }
2822
- ],
2823
- "isUnique": false,
2824
- "with": {},
2825
- "method": "btree",
2826
- "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"run_now_at_ms\" IS NOT NULL",
2827
- "concurrently": false
2828
- },
2829
- "junior_scheduler_tasks_next_run_due_idx": {
2830
- "name": "junior_scheduler_tasks_next_run_due_idx",
2831
- "columns": [
2832
- {
2833
- "expression": "next_run_at_ms",
2834
- "isExpression": false,
2835
- "asc": true,
2836
- "nulls": "last"
2837
- },
2838
- {
2839
- "expression": "created_at_ms",
2840
- "isExpression": false,
2841
- "asc": true,
2842
- "nulls": "last"
2843
- },
2844
- {
2845
- "expression": "id",
2846
- "isExpression": false,
2847
- "asc": true,
2848
- "nulls": "last"
2849
- }
2850
- ],
2851
- "isUnique": false,
2852
- "with": {},
2853
- "method": "btree",
2854
- "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"next_run_at_ms\" IS NOT NULL",
2855
- "concurrently": false
2856
- }
2857
- },
2858
- "foreignKeys": {},
2859
- "compositePrimaryKeys": {},
2860
- "uniqueConstraints": {},
2861
- "policies": {},
2862
- "checkConstraints": {},
2863
- "isRLSEnabled": false
2864
- },
2865
- "public.junior_snapshots": {
2866
- "name": "junior_snapshots",
2867
- "schema": "",
2868
- "columns": {
2869
- "id": {
2870
- "name": "id",
2871
- "type": "text",
2872
- "primaryKey": true,
2873
- "notNull": true
2874
- },
2875
- "workspace_id": {
2876
- "name": "workspace_id",
2877
- "type": "text",
2878
- "primaryKey": false,
2879
- "notNull": true
2880
- },
2881
- "profile_hash": {
2882
- "name": "profile_hash",
2883
- "type": "text",
2884
- "primaryKey": false,
2885
- "notNull": true
2886
- },
2887
- "status": {
2888
- "name": "status",
2889
- "type": "text",
2890
- "primaryKey": false,
2891
- "notNull": true
2892
- },
2893
- "snapshot_id": {
2894
- "name": "snapshot_id",
2895
- "type": "text",
2896
- "primaryKey": false,
2897
- "notNull": false
2898
- },
2899
- "build_duration_ms": {
2900
- "name": "build_duration_ms",
2901
- "type": "integer",
2902
- "primaryKey": false,
2903
- "notNull": false
2904
- },
2905
- "size_bytes": {
2906
- "name": "size_bytes",
2907
- "type": "bigint",
2908
- "primaryKey": false,
2909
- "notNull": false
2910
- },
2911
- "generated_at": {
2912
- "name": "generated_at",
2913
- "type": "timestamp with time zone",
2914
- "primaryKey": false,
2915
- "notNull": false
2916
- },
2917
- "build_started_at": {
2918
- "name": "build_started_at",
2919
- "type": "timestamp with time zone",
2920
- "primaryKey": false,
2921
- "notNull": false
2922
- },
2923
- "build_phase": {
2924
- "name": "build_phase",
2925
- "type": "text",
2926
- "primaryKey": false,
2927
- "notNull": false
2928
- },
2929
- "build_sandbox_name": {
2930
- "name": "build_sandbox_name",
2931
- "type": "text",
2932
- "primaryKey": false,
2933
- "notNull": false
2934
- },
2935
- "build_command_id": {
2936
- "name": "build_command_id",
2937
- "type": "text",
2938
- "primaryKey": false,
2939
- "notNull": false
2940
- },
2941
- "build_error": {
2942
- "name": "build_error",
2943
- "type": "text",
2944
- "primaryKey": false,
2945
- "notNull": false
2946
- },
2947
- "created_at": {
2948
- "name": "created_at",
2949
- "type": "timestamp with time zone",
2950
- "primaryKey": false,
2951
- "notNull": true
2952
- },
2953
- "updated_at": {
2954
- "name": "updated_at",
2955
- "type": "timestamp with time zone",
2956
- "primaryKey": false,
2957
- "notNull": true
2958
- }
2959
- },
2960
- "indexes": {
2961
- "junior_snapshots_snapshot_id_uidx": {
2962
- "name": "junior_snapshots_snapshot_id_uidx",
2963
- "columns": [
2964
- {
2965
- "expression": "snapshot_id",
2966
- "isExpression": false,
2967
- "asc": true,
2968
- "nulls": "last"
2969
- }
2970
- ],
2971
- "isUnique": true,
2972
- "with": {},
2973
- "method": "btree",
2974
- "concurrently": false
2975
- },
2976
- "junior_snapshots_workspace_idx": {
2977
- "name": "junior_snapshots_workspace_idx",
2978
- "columns": [
2979
- {
2980
- "expression": "workspace_id",
2981
- "isExpression": false,
2982
- "asc": true,
2983
- "nulls": "last"
2984
- }
2985
- ],
2986
- "isUnique": false,
2987
- "with": {},
2988
- "method": "btree",
2989
- "concurrently": false
2990
- },
2991
- "junior_snapshots_workspace_profile_status_idx": {
2992
- "name": "junior_snapshots_workspace_profile_status_idx",
2993
- "columns": [
2994
- {
2995
- "expression": "workspace_id",
2996
- "isExpression": false,
2997
- "asc": true,
2998
- "nulls": "last"
2999
- },
3000
- {
3001
- "expression": "profile_hash",
3002
- "isExpression": false,
3003
- "asc": true,
3004
- "nulls": "last"
3005
- },
3006
- {
3007
- "expression": "status",
3008
- "isExpression": false,
3009
- "asc": true,
3010
- "nulls": "last"
3011
- }
3012
- ],
3013
- "isUnique": false,
3014
- "with": {},
3015
- "method": "btree",
3016
- "concurrently": false
3017
- },
3018
- "junior_snapshots_active_build_uidx": {
3019
- "name": "junior_snapshots_active_build_uidx",
3020
- "columns": [
3021
- {
3022
- "expression": "workspace_id",
3023
- "isExpression": false,
3024
- "asc": true,
3025
- "nulls": "last"
3026
- },
3027
- {
3028
- "expression": "profile_hash",
3029
- "isExpression": false,
3030
- "asc": true,
3031
- "nulls": "last"
3032
- }
3033
- ],
3034
- "isUnique": true,
3035
- "with": {},
3036
- "method": "btree",
3037
- "where": "\"junior_snapshots\".\"status\" = 'building'",
3038
- "concurrently": false
3039
- },
3040
- "junior_snapshots_workspace_status_idx": {
3041
- "name": "junior_snapshots_workspace_status_idx",
3042
- "columns": [
3043
- {
3044
- "expression": "workspace_id",
3045
- "isExpression": false,
3046
- "asc": true,
3047
- "nulls": "last"
3048
- },
3049
- {
3050
- "expression": "status",
3051
- "isExpression": false,
3052
- "asc": true,
3053
- "nulls": "last"
3054
- }
3055
- ],
3056
- "isUnique": false,
3057
- "with": {},
3058
- "method": "btree",
3059
- "concurrently": false
3060
- }
3061
- },
3062
- "foreignKeys": {
3063
- "junior_snapshots_workspace_id_junior_workspaces_id_fk": {
3064
- "name": "junior_snapshots_workspace_id_junior_workspaces_id_fk",
3065
- "tableFrom": "junior_snapshots",
3066
- "columnsFrom": [
3067
- "workspace_id"
3068
- ],
3069
- "tableTo": "junior_workspaces",
3070
- "columnsTo": [
3071
- "id"
3072
- ],
3073
- "onUpdate": "no action",
3074
- "onDelete": "cascade"
3075
- }
3076
- },
3077
- "compositePrimaryKeys": {},
3078
- "uniqueConstraints": {},
3079
- "policies": {},
3080
- "checkConstraints": {
3081
- "junior_snapshots_status_check": {
3082
- "name": "junior_snapshots_status_check",
3083
- "value": "\"junior_snapshots\".\"status\" in ('building', 'failed', 'ready')"
3084
- },
3085
- "junior_snapshots_build_phase_check": {
3086
- "name": "junior_snapshots_build_phase_check",
3087
- "value": "\"junior_snapshots\".\"build_phase\" is null or \"junior_snapshots\".\"build_phase\" in ('created', 'dependencies_installed', 'repositories_prepared')"
3088
- },
3089
- "junior_snapshots_ready_fields_check": {
3090
- "name": "junior_snapshots_ready_fields_check",
3091
- "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)"
3092
- },
3093
- "junior_snapshots_build_fields_check": {
3094
- "name": "junior_snapshots_build_fields_check",
3095
- "value": "\"junior_snapshots\".\"status\" = 'ready' or (\"junior_snapshots\".\"build_started_at\" is not null and \"junior_snapshots\".\"build_phase\" is not null)"
3096
- },
3097
- "junior_snapshots_build_duration_check": {
3098
- "name": "junior_snapshots_build_duration_check",
3099
- "value": "\"junior_snapshots\".\"build_duration_ms\" is null or \"junior_snapshots\".\"build_duration_ms\" >= 0"
3100
- },
3101
- "junior_snapshots_size_bytes_check": {
3102
- "name": "junior_snapshots_size_bytes_check",
3103
- "value": "\"junior_snapshots\".\"size_bytes\" is null or \"junior_snapshots\".\"size_bytes\" >= 0"
3104
- }
3105
- },
3106
- "isRLSEnabled": false
3107
- },
3108
- "public.junior_stats": {
3109
- "name": "junior_stats",
3110
- "schema": "",
3111
- "columns": {
3112
- "date": {
3113
- "name": "date",
3114
- "type": "date",
3115
- "primaryKey": false,
3116
- "notNull": true
3117
- },
3118
- "namespace": {
3119
- "name": "namespace",
3120
- "type": "text",
3121
- "primaryKey": false,
3122
- "notNull": true
3123
- },
3124
- "metric": {
3125
- "name": "metric",
3126
- "type": "text",
3127
- "primaryKey": false,
3128
- "notNull": true
3129
- },
3130
- "name": {
3131
- "name": "name",
3132
- "type": "text",
3133
- "primaryKey": false,
3134
- "notNull": true
3135
- },
3136
- "count": {
3137
- "name": "count",
3138
- "type": "integer",
3139
- "primaryKey": false,
3140
- "notNull": true,
3141
- "default": 0
3142
- }
3143
- },
3144
- "indexes": {},
3145
- "foreignKeys": {},
3146
- "compositePrimaryKeys": {
3147
- "junior_stats_date_namespace_metric_name_pk": {
3148
- "name": "junior_stats_date_namespace_metric_name_pk",
3149
- "columns": [
3150
- "date",
3151
- "namespace",
3152
- "metric",
3153
- "name"
3154
- ]
3155
- }
3156
- },
3157
- "uniqueConstraints": {},
3158
- "policies": {},
3159
- "checkConstraints": {},
3160
- "isRLSEnabled": false
3161
- },
3162
- "public.junior_task_executions": {
3163
- "name": "junior_task_executions",
3164
- "schema": "",
3165
- "columns": {
3166
- "execution_id": {
3167
- "name": "execution_id",
3168
- "type": "text",
3169
- "primaryKey": false,
3170
- "notNull": true
3171
- },
3172
- "kind": {
3173
- "name": "kind",
3174
- "type": "text",
3175
- "primaryKey": false,
3176
- "notNull": true
3177
- },
3178
- "namespace": {
3179
- "name": "namespace",
3180
- "type": "text",
3181
- "primaryKey": false,
3182
- "notNull": true
3183
- },
3184
- "task_id": {
3185
- "name": "task_id",
3186
- "type": "text",
3187
- "primaryKey": false,
3188
- "notNull": true
3189
- },
3190
- "conversation_id": {
3191
- "name": "conversation_id",
3192
- "type": "text",
3193
- "primaryKey": false,
3194
- "notNull": false
3195
- },
3196
- "executed_at_ms": {
3197
- "name": "executed_at_ms",
3198
- "type": "bigint",
3199
- "primaryKey": false,
3200
- "notNull": true
3201
- },
3202
- "status": {
3203
- "name": "status",
3204
- "type": "text",
3205
- "primaryKey": false,
3206
- "notNull": true
3207
- }
3208
- },
3209
- "indexes": {
3210
- "junior_task_executions_task_time_idx": {
3211
- "name": "junior_task_executions_task_time_idx",
3212
- "columns": [
3213
- {
3214
- "expression": "kind",
3215
- "isExpression": false,
3216
- "asc": true,
3217
- "nulls": "last"
3218
- },
3219
- {
3220
- "expression": "namespace",
3221
- "isExpression": false,
3222
- "asc": true,
3223
- "nulls": "last"
3224
- },
3225
- {
3226
- "expression": "task_id",
3227
- "isExpression": false,
3228
- "asc": true,
3229
- "nulls": "last"
3230
- },
3231
- {
3232
- "expression": "executed_at_ms",
3233
- "isExpression": false,
3234
- "asc": true,
3235
- "nulls": "last"
3236
- }
3237
- ],
3238
- "isUnique": false,
3239
- "with": {},
3240
- "method": "btree",
3241
- "concurrently": false
3242
- },
3243
- "junior_task_executions_time_kind_idx": {
3244
- "name": "junior_task_executions_time_kind_idx",
3245
- "columns": [
3246
- {
3247
- "expression": "executed_at_ms",
3248
- "isExpression": false,
3249
- "asc": true,
3250
- "nulls": "last"
3251
- },
3252
- {
3253
- "expression": "kind",
3254
- "isExpression": false,
3255
- "asc": true,
3256
- "nulls": "last"
3257
- }
3258
- ],
3259
- "isUnique": false,
3260
- "with": {},
3261
- "method": "btree",
3262
- "concurrently": false
3263
- },
3264
- "junior_task_executions_conversation_time_idx": {
3265
- "name": "junior_task_executions_conversation_time_idx",
3266
- "columns": [
3267
- {
3268
- "expression": "conversation_id",
3269
- "isExpression": false,
3270
- "asc": true,
3271
- "nulls": "last"
3272
- },
3273
- {
3274
- "expression": "executed_at_ms",
3275
- "isExpression": false,
3276
- "asc": true,
3277
- "nulls": "last"
3278
- }
3279
- ],
3280
- "isUnique": false,
3281
- "with": {},
3282
- "method": "btree",
3283
- "concurrently": false
3284
- }
3285
- },
3286
- "foreignKeys": {
3287
- "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk": {
3288
- "name": "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk",
3289
- "tableFrom": "junior_task_executions",
3290
- "columnsFrom": [
3291
- "conversation_id"
3292
- ],
3293
- "tableTo": "junior_conversations",
3294
- "columnsTo": [
3295
- "conversation_id"
3296
- ],
3297
- "onUpdate": "no action",
3298
- "onDelete": "no action"
3299
- }
3300
- },
3301
- "compositePrimaryKeys": {
3302
- "junior_task_executions_kind_namespace_execution_id_pk": {
3303
- "name": "junior_task_executions_kind_namespace_execution_id_pk",
3304
- "columns": [
3305
- "kind",
3306
- "namespace",
3307
- "execution_id"
3308
- ]
3309
- }
3310
- },
3311
- "uniqueConstraints": {},
3312
- "policies": {},
3313
- "checkConstraints": {
3314
- "junior_task_executions_kind_check": {
3315
- "name": "junior_task_executions_kind_check",
3316
- "value": "\"junior_task_executions\".\"kind\" in ('scheduled', 'event')"
3317
- },
3318
- "junior_task_executions_status_check": {
3319
- "name": "junior_task_executions_status_check",
3320
- "value": "\"junior_task_executions\".\"status\" in ('blocked', 'completed', 'failed')"
3321
- }
3322
- },
3323
- "isRLSEnabled": false
3324
- },
3325
- "public.junior_users": {
3326
- "name": "junior_users",
3327
- "schema": "",
3328
- "columns": {
3329
- "id": {
3330
- "name": "id",
3331
- "type": "text",
3332
- "primaryKey": true,
3333
- "notNull": true
3334
- },
3335
- "primary_email": {
3336
- "name": "primary_email",
3337
- "type": "text",
3338
- "primaryKey": false,
3339
- "notNull": true
3340
- },
3341
- "primary_email_normalized": {
3342
- "name": "primary_email_normalized",
3343
- "type": "text",
3344
- "primaryKey": false,
3345
- "notNull": true
3346
- },
3347
- "display_name": {
3348
- "name": "display_name",
3349
- "type": "text",
3350
- "primaryKey": false,
3351
- "notNull": false
3352
- },
3353
- "created_at": {
3354
- "name": "created_at",
3355
- "type": "timestamp with time zone",
3356
- "primaryKey": false,
3357
- "notNull": true
3358
- },
3359
- "updated_at": {
3360
- "name": "updated_at",
3361
- "type": "timestamp with time zone",
3362
- "primaryKey": false,
3363
- "notNull": true
3364
- }
3365
- },
3366
- "indexes": {
3367
- "junior_users_primary_email_normalized_uidx": {
3368
- "name": "junior_users_primary_email_normalized_uidx",
3369
- "columns": [
3370
- {
3371
- "expression": "primary_email_normalized",
3372
- "isExpression": false,
3373
- "asc": true,
3374
- "nulls": "last"
3375
- }
3376
- ],
3377
- "isUnique": true,
3378
- "with": {},
3379
- "method": "btree",
3380
- "concurrently": false
3381
- }
3382
- },
3383
- "foreignKeys": {},
3384
- "compositePrimaryKeys": {},
3385
- "uniqueConstraints": {},
3386
- "policies": {},
3387
- "checkConstraints": {},
3388
- "isRLSEnabled": false
3389
- },
3390
- "public.junior_workspace_repos": {
3391
- "name": "junior_workspace_repos",
3392
- "schema": "",
3393
- "columns": {
3394
- "workspace_id": {
3395
- "name": "workspace_id",
3396
- "type": "text",
3397
- "primaryKey": false,
3398
- "notNull": true
3399
- },
3400
- "provider": {
3401
- "name": "provider",
3402
- "type": "text",
3403
- "primaryKey": false,
3404
- "notNull": true
3405
- },
3406
- "repo": {
3407
- "name": "repo",
3408
- "type": "text",
3409
- "primaryKey": false,
3410
- "notNull": true
3411
- }
3412
- },
3413
- "indexes": {},
3414
- "foreignKeys": {
3415
- "junior_workspace_repos_workspace_id_junior_workspaces_id_fk": {
3416
- "name": "junior_workspace_repos_workspace_id_junior_workspaces_id_fk",
3417
- "tableFrom": "junior_workspace_repos",
3418
- "columnsFrom": [
3419
- "workspace_id"
3420
- ],
3421
- "tableTo": "junior_workspaces",
3422
- "columnsTo": [
3423
- "id"
3424
- ],
3425
- "onUpdate": "no action",
3426
- "onDelete": "cascade"
3427
- }
3428
- },
3429
- "compositePrimaryKeys": {
3430
- "junior_workspace_repos_workspace_id_provider_repo_pk": {
3431
- "name": "junior_workspace_repos_workspace_id_provider_repo_pk",
3432
- "columns": [
3433
- "workspace_id",
3434
- "provider",
3435
- "repo"
3436
- ]
3437
- }
3438
- },
3439
- "uniqueConstraints": {},
3440
- "policies": {},
3441
- "checkConstraints": {},
3442
- "isRLSEnabled": false
3443
- },
3444
- "public.junior_workspaces": {
3445
- "name": "junior_workspaces",
3446
- "schema": "",
3447
- "columns": {
3448
- "id": {
3449
- "name": "id",
3450
- "type": "text",
3451
- "primaryKey": true,
3452
- "notNull": true
3453
- },
3454
- "name": {
3455
- "name": "name",
3456
- "type": "text",
3457
- "primaryKey": false,
3458
- "notNull": true
3459
- },
3460
- "setup_script": {
3461
- "name": "setup_script",
3462
- "type": "text",
3463
- "primaryKey": false,
3464
- "notNull": true,
3465
- "default": "''"
3466
- },
3467
- "created_at": {
3468
- "name": "created_at",
3469
- "type": "timestamp with time zone",
3470
- "primaryKey": false,
3471
- "notNull": true
3472
- },
3473
- "updated_at": {
3474
- "name": "updated_at",
3475
- "type": "timestamp with time zone",
3476
- "primaryKey": false,
3477
- "notNull": true
3478
- }
3479
- },
3480
- "indexes": {
3481
- "junior_workspaces_name_idx": {
3482
- "name": "junior_workspaces_name_idx",
3483
- "columns": [
3484
- {
3485
- "expression": "name",
3486
- "isExpression": false,
3487
- "asc": true,
3488
- "nulls": "last"
3489
- }
3490
- ],
3491
- "isUnique": true,
3492
- "with": {},
3493
- "method": "btree",
3494
- "concurrently": false
3495
- }
3496
- },
3497
- "foreignKeys": {},
3498
- "compositePrimaryKeys": {},
3499
- "uniqueConstraints": {},
3500
- "policies": {},
3501
- "checkConstraints": {},
3502
- "isRLSEnabled": false
3503
- }
3504
- },
3505
- "enums": {},
3506
- "schemas": {},
3507
- "views": {},
3508
- "sequences": {},
3509
- "roles": {},
3510
- "policies": {},
3511
- "_meta": {
3512
- "columns": {},
3513
- "schemas": {},
3514
- "tables": {}
3515
- }
3516
- }