@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,3048 +0,0 @@
1
- {
2
- "id": "7268868b-d27e-4f42-a0f4-6c981de70f1a",
3
- "prevId": "5f541d5b-316b-4af1-aa1e-443fefed33c3",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.junior_agent_bindings": {
8
- "name": "junior_agent_bindings",
9
- "schema": "",
10
- "columns": {
11
- "parent_conversation_id": {
12
- "name": "parent_conversation_id",
13
- "type": "text",
14
- "primaryKey": false,
15
- "notNull": true
16
- },
17
- "name": {
18
- "name": "name",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true
22
- },
23
- "child_conversation_id": {
24
- "name": "child_conversation_id",
25
- "type": "text",
26
- "primaryKey": false,
27
- "notNull": true
28
- }
29
- },
30
- "indexes": {
31
- "junior_agent_bindings_child_idx": {
32
- "name": "junior_agent_bindings_child_idx",
33
- "columns": [
34
- {
35
- "expression": "child_conversation_id",
36
- "isExpression": false,
37
- "asc": true,
38
- "nulls": "last"
39
- }
40
- ],
41
- "isUnique": true,
42
- "concurrently": false,
43
- "method": "btree",
44
- "with": {}
45
- }
46
- },
47
- "foreignKeys": {
48
- "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk": {
49
- "name": "junior_agent_bindings_parent_conversation_id_junior_conversations_conversation_id_fk",
50
- "tableFrom": "junior_agent_bindings",
51
- "tableTo": "junior_conversations",
52
- "columnsFrom": [
53
- "parent_conversation_id"
54
- ],
55
- "columnsTo": [
56
- "conversation_id"
57
- ],
58
- "onDelete": "no action",
59
- "onUpdate": "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
- "tableTo": "junior_conversations",
65
- "columnsFrom": [
66
- "child_conversation_id"
67
- ],
68
- "columnsTo": [
69
- "conversation_id"
70
- ],
71
- "onDelete": "no action",
72
- "onUpdate": "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
- "concurrently": false,
215
- "method": "btree",
216
- "with": {}
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
- "concurrently": false,
236
- "method": "btree",
237
- "with": {}
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
- "tableTo": "junior_conversations",
245
- "columnsFrom": [
246
- "parent_conversation_id"
247
- ],
248
- "columnsTo": [
249
- "conversation_id"
250
- ],
251
- "onDelete": "no action",
252
- "onUpdate": "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
- "tableTo": "junior_conversations",
258
- "columnsFrom": [
259
- "child_conversation_id"
260
- ],
261
- "columnsTo": [
262
- "conversation_id"
263
- ],
264
- "onDelete": "no action",
265
- "onUpdate": "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
- "concurrently": false,
346
- "method": "btree",
347
- "with": {}
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
- "concurrently": false,
361
- "method": "btree",
362
- "with": {}
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
- "concurrently": false,
456
- "method": "btree",
457
- "with": {}
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
- "concurrently": false,
477
- "method": "btree",
478
- "with": {}
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
- "concurrently": false,
492
- "method": "btree",
493
- "with": {}
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
- "provider": {
520
- "name": "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
- "filename": {
532
- "name": "filename",
533
- "type": "text",
534
- "primaryKey": false,
535
- "notNull": true
536
- },
537
- "content_type": {
538
- "name": "content_type",
539
- "type": "text",
540
- "primaryKey": false,
541
- "notNull": true
542
- },
543
- "bytes": {
544
- "name": "bytes",
545
- "type": "integer",
546
- "primaryKey": false,
547
- "notNull": true
548
- },
549
- "sha256": {
550
- "name": "sha256",
551
- "type": "text",
552
- "primaryKey": false,
553
- "notNull": true
554
- },
555
- "created_at": {
556
- "name": "created_at",
557
- "type": "timestamp with time zone",
558
- "primaryKey": false,
559
- "notNull": true
560
- },
561
- "delete_requested_at": {
562
- "name": "delete_requested_at",
563
- "type": "timestamp with time zone",
564
- "primaryKey": false,
565
- "notNull": false
566
- }
567
- },
568
- "indexes": {
569
- "junior_attachments_conversation_idx": {
570
- "name": "junior_attachments_conversation_idx",
571
- "columns": [
572
- {
573
- "expression": "conversation_id",
574
- "isExpression": false,
575
- "asc": true,
576
- "nulls": "last"
577
- }
578
- ],
579
- "isUnique": false,
580
- "concurrently": false,
581
- "method": "btree",
582
- "with": {}
583
- },
584
- "junior_attachments_gc_idx": {
585
- "name": "junior_attachments_gc_idx",
586
- "columns": [
587
- {
588
- "expression": "provider",
589
- "isExpression": false,
590
- "asc": true,
591
- "nulls": "last"
592
- },
593
- {
594
- "expression": "delete_requested_at",
595
- "isExpression": false,
596
- "asc": true,
597
- "nulls": "last"
598
- },
599
- {
600
- "expression": "created_at",
601
- "isExpression": false,
602
- "asc": true,
603
- "nulls": "last"
604
- }
605
- ],
606
- "isUnique": false,
607
- "concurrently": false,
608
- "method": "btree",
609
- "with": {}
610
- }
611
- },
612
- "foreignKeys": {
613
- "junior_attachments_conversation_id_junior_conversations_conversation_id_fk": {
614
- "name": "junior_attachments_conversation_id_junior_conversations_conversation_id_fk",
615
- "tableFrom": "junior_attachments",
616
- "tableTo": "junior_conversations",
617
- "columnsFrom": [
618
- "conversation_id"
619
- ],
620
- "columnsTo": [
621
- "conversation_id"
622
- ],
623
- "onDelete": "cascade",
624
- "onUpdate": "no action"
625
- }
626
- },
627
- "compositePrimaryKeys": {},
628
- "uniqueConstraints": {},
629
- "policies": {},
630
- "checkConstraints": {},
631
- "isRLSEnabled": false
632
- },
633
- "public.junior_conversation_annotations": {
634
- "name": "junior_conversation_annotations",
635
- "schema": "",
636
- "columns": {
637
- "conversation_id": {
638
- "name": "conversation_id",
639
- "type": "text",
640
- "primaryKey": false,
641
- "notNull": true
642
- },
643
- "plugin": {
644
- "name": "plugin",
645
- "type": "text",
646
- "primaryKey": false,
647
- "notNull": true
648
- },
649
- "kind": {
650
- "name": "kind",
651
- "type": "text",
652
- "primaryKey": false,
653
- "notNull": true
654
- },
655
- "key": {
656
- "name": "key",
657
- "type": "text",
658
- "primaryKey": false,
659
- "notNull": true
660
- },
661
- "annotation_json": {
662
- "name": "annotation_json",
663
- "type": "jsonb",
664
- "primaryKey": false,
665
- "notNull": true
666
- },
667
- "created_at": {
668
- "name": "created_at",
669
- "type": "timestamp with time zone",
670
- "primaryKey": false,
671
- "notNull": true
672
- },
673
- "updated_at": {
674
- "name": "updated_at",
675
- "type": "timestamp with time zone",
676
- "primaryKey": false,
677
- "notNull": true
678
- }
679
- },
680
- "indexes": {},
681
- "foreignKeys": {
682
- "junior_conversation_annotations_conversation_id_fk": {
683
- "name": "junior_conversation_annotations_conversation_id_fk",
684
- "tableFrom": "junior_conversation_annotations",
685
- "tableTo": "junior_conversations",
686
- "columnsFrom": [
687
- "conversation_id"
688
- ],
689
- "columnsTo": [
690
- "conversation_id"
691
- ],
692
- "onDelete": "cascade",
693
- "onUpdate": "no action"
694
- }
695
- },
696
- "compositePrimaryKeys": {
697
- "junior_conversation_annotations_pk": {
698
- "name": "junior_conversation_annotations_pk",
699
- "columns": [
700
- "conversation_id",
701
- "plugin",
702
- "kind",
703
- "key"
704
- ]
705
- }
706
- },
707
- "uniqueConstraints": {},
708
- "policies": {},
709
- "checkConstraints": {},
710
- "isRLSEnabled": false
711
- },
712
- "public.junior_conversation_bindings": {
713
- "name": "junior_conversation_bindings",
714
- "schema": "",
715
- "columns": {
716
- "conversation_id": {
717
- "name": "conversation_id",
718
- "type": "text",
719
- "primaryKey": false,
720
- "notNull": true
721
- },
722
- "provider": {
723
- "name": "provider",
724
- "type": "text",
725
- "primaryKey": false,
726
- "notNull": true
727
- },
728
- "provider_tenant_id": {
729
- "name": "provider_tenant_id",
730
- "type": "text",
731
- "primaryKey": false,
732
- "notNull": true,
733
- "default": "''"
734
- },
735
- "provider_destination_id": {
736
- "name": "provider_destination_id",
737
- "type": "text",
738
- "primaryKey": false,
739
- "notNull": true
740
- },
741
- "provider_conversation_id": {
742
- "name": "provider_conversation_id",
743
- "type": "text",
744
- "primaryKey": false,
745
- "notNull": true
746
- },
747
- "created_at": {
748
- "name": "created_at",
749
- "type": "timestamp with time zone",
750
- "primaryKey": false,
751
- "notNull": true
752
- }
753
- },
754
- "indexes": {
755
- "junior_conversation_bindings_conversation_idx": {
756
- "name": "junior_conversation_bindings_conversation_idx",
757
- "columns": [
758
- {
759
- "expression": "conversation_id",
760
- "isExpression": false,
761
- "asc": true,
762
- "nulls": "last"
763
- }
764
- ],
765
- "isUnique": false,
766
- "concurrently": false,
767
- "method": "btree",
768
- "with": {}
769
- }
770
- },
771
- "foreignKeys": {
772
- "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk": {
773
- "name": "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk",
774
- "tableFrom": "junior_conversation_bindings",
775
- "tableTo": "junior_conversations",
776
- "columnsFrom": [
777
- "conversation_id"
778
- ],
779
- "columnsTo": [
780
- "conversation_id"
781
- ],
782
- "onDelete": "no action",
783
- "onUpdate": "no action"
784
- }
785
- },
786
- "compositePrimaryKeys": {
787
- "junior_conversation_bindings_provider_conversation_pk": {
788
- "name": "junior_conversation_bindings_provider_conversation_pk",
789
- "columns": [
790
- "provider",
791
- "provider_tenant_id",
792
- "provider_destination_id",
793
- "provider_conversation_id"
794
- ]
795
- }
796
- },
797
- "uniqueConstraints": {},
798
- "policies": {},
799
- "checkConstraints": {},
800
- "isRLSEnabled": false
801
- },
802
- "public.junior_conversation_events": {
803
- "name": "junior_conversation_events",
804
- "schema": "",
805
- "columns": {
806
- "conversation_id": {
807
- "name": "conversation_id",
808
- "type": "text",
809
- "primaryKey": false,
810
- "notNull": true
811
- },
812
- "seq": {
813
- "name": "seq",
814
- "type": "integer",
815
- "primaryKey": false,
816
- "notNull": true
817
- },
818
- "history_version": {
819
- "name": "history_version",
820
- "type": "integer",
821
- "primaryKey": false,
822
- "notNull": true
823
- },
824
- "schema_version": {
825
- "name": "schema_version",
826
- "type": "integer",
827
- "primaryKey": false,
828
- "notNull": true,
829
- "default": 1
830
- },
831
- "idempotency_key": {
832
- "name": "idempotency_key",
833
- "type": "text",
834
- "primaryKey": false,
835
- "notNull": false
836
- },
837
- "type": {
838
- "name": "type",
839
- "type": "text",
840
- "primaryKey": false,
841
- "notNull": true
842
- },
843
- "payload": {
844
- "name": "payload",
845
- "type": "jsonb",
846
- "primaryKey": false,
847
- "notNull": true
848
- },
849
- "actor_identity_id": {
850
- "name": "actor_identity_id",
851
- "type": "text",
852
- "primaryKey": false,
853
- "notNull": false
854
- },
855
- "created_at": {
856
- "name": "created_at",
857
- "type": "timestamp with time zone",
858
- "primaryKey": false,
859
- "notNull": true
860
- }
861
- },
862
- "indexes": {
863
- "junior_conversation_events_history_version_idx": {
864
- "name": "junior_conversation_events_history_version_idx",
865
- "columns": [
866
- {
867
- "expression": "conversation_id",
868
- "isExpression": false,
869
- "asc": true,
870
- "nulls": "last"
871
- },
872
- {
873
- "expression": "history_version",
874
- "isExpression": false,
875
- "asc": true,
876
- "nulls": "last"
877
- },
878
- {
879
- "expression": "seq",
880
- "isExpression": false,
881
- "asc": true,
882
- "nulls": "last"
883
- }
884
- ],
885
- "isUnique": false,
886
- "concurrently": false,
887
- "method": "btree",
888
- "with": {}
889
- },
890
- "junior_conversation_events_type_idx": {
891
- "name": "junior_conversation_events_type_idx",
892
- "columns": [
893
- {
894
- "expression": "conversation_id",
895
- "isExpression": false,
896
- "asc": true,
897
- "nulls": "last"
898
- },
899
- {
900
- "expression": "type",
901
- "isExpression": false,
902
- "asc": true,
903
- "nulls": "last"
904
- },
905
- {
906
- "expression": "seq",
907
- "isExpression": false,
908
- "asc": true,
909
- "nulls": "last"
910
- }
911
- ],
912
- "isUnique": false,
913
- "concurrently": false,
914
- "method": "btree",
915
- "with": {}
916
- },
917
- "junior_conversation_events_actor_identity_idx": {
918
- "name": "junior_conversation_events_actor_identity_idx",
919
- "columns": [
920
- {
921
- "expression": "actor_identity_id",
922
- "isExpression": false,
923
- "asc": true,
924
- "nulls": "last"
925
- },
926
- {
927
- "expression": "conversation_id",
928
- "isExpression": false,
929
- "asc": true,
930
- "nulls": "last"
931
- },
932
- {
933
- "expression": "seq",
934
- "isExpression": false,
935
- "asc": true,
936
- "nulls": "last"
937
- }
938
- ],
939
- "isUnique": false,
940
- "concurrently": false,
941
- "method": "btree",
942
- "with": {}
943
- },
944
- "junior_conversation_events_message_search_idx": {
945
- "name": "junior_conversation_events_message_search_idx",
946
- "columns": [
947
- {
948
- "expression": "to_tsvector('english', \"payload\"->>'text')",
949
- "asc": true,
950
- "isExpression": true,
951
- "nulls": "last"
952
- }
953
- ],
954
- "isUnique": false,
955
- "where": "\"junior_conversation_events\".\"type\" = 'message'",
956
- "concurrently": false,
957
- "method": "gin",
958
- "with": {}
959
- },
960
- "junior_conversation_events_idempotency_idx": {
961
- "name": "junior_conversation_events_idempotency_idx",
962
- "columns": [
963
- {
964
- "expression": "conversation_id",
965
- "isExpression": false,
966
- "asc": true,
967
- "nulls": "last"
968
- },
969
- {
970
- "expression": "idempotency_key",
971
- "isExpression": false,
972
- "asc": true,
973
- "nulls": "last"
974
- }
975
- ],
976
- "isUnique": true,
977
- "concurrently": false,
978
- "method": "btree",
979
- "with": {}
980
- }
981
- },
982
- "foreignKeys": {
983
- "junior_conversation_events_actor_identity_id_junior_identities_id_fk": {
984
- "name": "junior_conversation_events_actor_identity_id_junior_identities_id_fk",
985
- "tableFrom": "junior_conversation_events",
986
- "tableTo": "junior_identities",
987
- "columnsFrom": [
988
- "actor_identity_id"
989
- ],
990
- "columnsTo": [
991
- "id"
992
- ],
993
- "onDelete": "no action",
994
- "onUpdate": "no action"
995
- },
996
- "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
997
- "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
998
- "tableFrom": "junior_conversation_events",
999
- "tableTo": "junior_conversations",
1000
- "columnsFrom": [
1001
- "conversation_id"
1002
- ],
1003
- "columnsTo": [
1004
- "conversation_id"
1005
- ],
1006
- "onDelete": "no action",
1007
- "onUpdate": "no action"
1008
- }
1009
- },
1010
- "compositePrimaryKeys": {
1011
- "junior_conversation_events_conversation_id_seq_pk": {
1012
- "name": "junior_conversation_events_conversation_id_seq_pk",
1013
- "columns": [
1014
- "conversation_id",
1015
- "seq"
1016
- ]
1017
- }
1018
- },
1019
- "uniqueConstraints": {},
1020
- "policies": {},
1021
- "checkConstraints": {},
1022
- "isRLSEnabled": false
1023
- },
1024
- "public.junior_conversation_participants": {
1025
- "name": "junior_conversation_participants",
1026
- "schema": "",
1027
- "columns": {
1028
- "user_id": {
1029
- "name": "user_id",
1030
- "type": "text",
1031
- "primaryKey": false,
1032
- "notNull": true
1033
- },
1034
- "root_conversation_id": {
1035
- "name": "root_conversation_id",
1036
- "type": "text",
1037
- "primaryKey": false,
1038
- "notNull": true
1039
- },
1040
- "last_message_at": {
1041
- "name": "last_message_at",
1042
- "type": "timestamp with time zone",
1043
- "primaryKey": false,
1044
- "notNull": true
1045
- },
1046
- "archived_at": {
1047
- "name": "archived_at",
1048
- "type": "timestamp with time zone",
1049
- "primaryKey": false,
1050
- "notNull": false
1051
- }
1052
- },
1053
- "indexes": {
1054
- "junior_conversation_participants_user_activity_idx": {
1055
- "name": "junior_conversation_participants_user_activity_idx",
1056
- "columns": [
1057
- {
1058
- "expression": "user_id",
1059
- "isExpression": false,
1060
- "asc": true,
1061
- "nulls": "last"
1062
- },
1063
- {
1064
- "expression": "last_message_at",
1065
- "isExpression": false,
1066
- "asc": false,
1067
- "nulls": "last"
1068
- }
1069
- ],
1070
- "isUnique": false,
1071
- "concurrently": false,
1072
- "method": "btree",
1073
- "with": {}
1074
- },
1075
- "junior_conversation_participants_root_idx": {
1076
- "name": "junior_conversation_participants_root_idx",
1077
- "columns": [
1078
- {
1079
- "expression": "root_conversation_id",
1080
- "isExpression": false,
1081
- "asc": true,
1082
- "nulls": "last"
1083
- }
1084
- ],
1085
- "isUnique": false,
1086
- "concurrently": false,
1087
- "method": "btree",
1088
- "with": {}
1089
- }
1090
- },
1091
- "foreignKeys": {
1092
- "junior_conversation_participants_user_id_junior_users_id_fk": {
1093
- "name": "junior_conversation_participants_user_id_junior_users_id_fk",
1094
- "tableFrom": "junior_conversation_participants",
1095
- "tableTo": "junior_users",
1096
- "columnsFrom": [
1097
- "user_id"
1098
- ],
1099
- "columnsTo": [
1100
- "id"
1101
- ],
1102
- "onDelete": "no action",
1103
- "onUpdate": "no action"
1104
- },
1105
- "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk": {
1106
- "name": "junior_conversation_participants_root_conversation_id_junior_conversations_conversation_id_fk",
1107
- "tableFrom": "junior_conversation_participants",
1108
- "tableTo": "junior_conversations",
1109
- "columnsFrom": [
1110
- "root_conversation_id"
1111
- ],
1112
- "columnsTo": [
1113
- "conversation_id"
1114
- ],
1115
- "onDelete": "no action",
1116
- "onUpdate": "no action"
1117
- }
1118
- },
1119
- "compositePrimaryKeys": {
1120
- "junior_conversation_participants_user_root_pk": {
1121
- "name": "junior_conversation_participants_user_root_pk",
1122
- "columns": [
1123
- "user_id",
1124
- "root_conversation_id"
1125
- ]
1126
- }
1127
- },
1128
- "uniqueConstraints": {},
1129
- "policies": {},
1130
- "checkConstraints": {},
1131
- "isRLSEnabled": false
1132
- },
1133
- "public.junior_conversations": {
1134
- "name": "junior_conversations",
1135
- "schema": "",
1136
- "columns": {
1137
- "conversation_id": {
1138
- "name": "conversation_id",
1139
- "type": "text",
1140
- "primaryKey": true,
1141
- "notNull": true
1142
- },
1143
- "schema_version": {
1144
- "name": "schema_version",
1145
- "type": "integer",
1146
- "primaryKey": false,
1147
- "notNull": true,
1148
- "default": 1
1149
- },
1150
- "source": {
1151
- "name": "source",
1152
- "type": "text",
1153
- "primaryKey": false,
1154
- "notNull": false
1155
- },
1156
- "source_json": {
1157
- "name": "source_json",
1158
- "type": "jsonb",
1159
- "primaryKey": false,
1160
- "notNull": false
1161
- },
1162
- "origin_type": {
1163
- "name": "origin_type",
1164
- "type": "text",
1165
- "primaryKey": false,
1166
- "notNull": false
1167
- },
1168
- "origin_id": {
1169
- "name": "origin_id",
1170
- "type": "text",
1171
- "primaryKey": false,
1172
- "notNull": false
1173
- },
1174
- "origin_run_id": {
1175
- "name": "origin_run_id",
1176
- "type": "text",
1177
- "primaryKey": false,
1178
- "notNull": false
1179
- },
1180
- "destination_id": {
1181
- "name": "destination_id",
1182
- "type": "text",
1183
- "primaryKey": false,
1184
- "notNull": false
1185
- },
1186
- "destination_json": {
1187
- "name": "destination_json",
1188
- "type": "jsonb",
1189
- "primaryKey": false,
1190
- "notNull": false
1191
- },
1192
- "actor_identity_id": {
1193
- "name": "actor_identity_id",
1194
- "type": "text",
1195
- "primaryKey": false,
1196
- "notNull": false
1197
- },
1198
- "creator_identity_id": {
1199
- "name": "creator_identity_id",
1200
- "type": "text",
1201
- "primaryKey": false,
1202
- "notNull": false
1203
- },
1204
- "credential_subject_identity_id": {
1205
- "name": "credential_subject_identity_id",
1206
- "type": "text",
1207
- "primaryKey": false,
1208
- "notNull": false
1209
- },
1210
- "actor_json": {
1211
- "name": "actor_json",
1212
- "type": "jsonb",
1213
- "primaryKey": false,
1214
- "notNull": false
1215
- },
1216
- "channel_name": {
1217
- "name": "channel_name",
1218
- "type": "text",
1219
- "primaryKey": false,
1220
- "notNull": false
1221
- },
1222
- "title": {
1223
- "name": "title",
1224
- "type": "text",
1225
- "primaryKey": false,
1226
- "notNull": false
1227
- },
1228
- "created_at": {
1229
- "name": "created_at",
1230
- "type": "timestamp with time zone",
1231
- "primaryKey": false,
1232
- "notNull": true
1233
- },
1234
- "last_activity_at": {
1235
- "name": "last_activity_at",
1236
- "type": "timestamp with time zone",
1237
- "primaryKey": false,
1238
- "notNull": true
1239
- },
1240
- "updated_at": {
1241
- "name": "updated_at",
1242
- "type": "timestamp with time zone",
1243
- "primaryKey": false,
1244
- "notNull": true
1245
- },
1246
- "execution_updated_at": {
1247
- "name": "execution_updated_at",
1248
- "type": "timestamp with time zone",
1249
- "primaryKey": false,
1250
- "notNull": false
1251
- },
1252
- "execution_status": {
1253
- "name": "execution_status",
1254
- "type": "text",
1255
- "primaryKey": false,
1256
- "notNull": true
1257
- },
1258
- "run_id": {
1259
- "name": "run_id",
1260
- "type": "text",
1261
- "primaryKey": false,
1262
- "notNull": false
1263
- },
1264
- "last_checkpoint_at": {
1265
- "name": "last_checkpoint_at",
1266
- "type": "timestamp with time zone",
1267
- "primaryKey": false,
1268
- "notNull": false
1269
- },
1270
- "last_enqueued_at": {
1271
- "name": "last_enqueued_at",
1272
- "type": "timestamp with time zone",
1273
- "primaryKey": false,
1274
- "notNull": false
1275
- },
1276
- "parent_conversation_id": {
1277
- "name": "parent_conversation_id",
1278
- "type": "text",
1279
- "primaryKey": false,
1280
- "notNull": false
1281
- },
1282
- "root_conversation_id": {
1283
- "name": "root_conversation_id",
1284
- "type": "text",
1285
- "primaryKey": false,
1286
- "notNull": false
1287
- },
1288
- "transcript_purged_at": {
1289
- "name": "transcript_purged_at",
1290
- "type": "timestamp with time zone",
1291
- "primaryKey": false,
1292
- "notNull": false
1293
- },
1294
- "duration_ms": {
1295
- "name": "duration_ms",
1296
- "type": "integer",
1297
- "primaryKey": false,
1298
- "notNull": true,
1299
- "default": 0
1300
- },
1301
- "usage_json": {
1302
- "name": "usage_json",
1303
- "type": "jsonb",
1304
- "primaryKey": false,
1305
- "notNull": false
1306
- },
1307
- "execution_duration_ms": {
1308
- "name": "execution_duration_ms",
1309
- "type": "integer",
1310
- "primaryKey": false,
1311
- "notNull": true,
1312
- "default": 0
1313
- },
1314
- "execution_usage_json": {
1315
- "name": "execution_usage_json",
1316
- "type": "jsonb",
1317
- "primaryKey": false,
1318
- "notNull": false
1319
- },
1320
- "metric_run_id": {
1321
- "name": "metric_run_id",
1322
- "type": "text",
1323
- "primaryKey": false,
1324
- "notNull": false
1325
- },
1326
- "archived_at": {
1327
- "name": "archived_at",
1328
- "type": "timestamp with time zone",
1329
- "primaryKey": false,
1330
- "notNull": false
1331
- }
1332
- },
1333
- "indexes": {
1334
- "junior_conversations_last_activity_idx": {
1335
- "name": "junior_conversations_last_activity_idx",
1336
- "columns": [
1337
- {
1338
- "expression": "last_activity_at",
1339
- "isExpression": false,
1340
- "asc": false,
1341
- "nulls": "last"
1342
- },
1343
- {
1344
- "expression": "conversation_id",
1345
- "isExpression": false,
1346
- "asc": true,
1347
- "nulls": "last"
1348
- }
1349
- ],
1350
- "isUnique": false,
1351
- "concurrently": false,
1352
- "method": "btree",
1353
- "with": {}
1354
- },
1355
- "junior_conversations_active_idx": {
1356
- "name": "junior_conversations_active_idx",
1357
- "columns": [
1358
- {
1359
- "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
1360
- "asc": true,
1361
- "isExpression": true,
1362
- "nulls": "last"
1363
- },
1364
- {
1365
- "expression": "conversation_id",
1366
- "isExpression": false,
1367
- "asc": true,
1368
- "nulls": "last"
1369
- }
1370
- ],
1371
- "isUnique": false,
1372
- "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
1373
- "concurrently": false,
1374
- "method": "btree",
1375
- "with": {}
1376
- },
1377
- "junior_conversations_destination_activity_idx": {
1378
- "name": "junior_conversations_destination_activity_idx",
1379
- "columns": [
1380
- {
1381
- "expression": "destination_id",
1382
- "isExpression": false,
1383
- "asc": true,
1384
- "nulls": "last"
1385
- },
1386
- {
1387
- "expression": "last_activity_at",
1388
- "isExpression": false,
1389
- "asc": false,
1390
- "nulls": "last"
1391
- }
1392
- ],
1393
- "isUnique": false,
1394
- "concurrently": false,
1395
- "method": "btree",
1396
- "with": {}
1397
- },
1398
- "junior_conversations_actor_activity_idx": {
1399
- "name": "junior_conversations_actor_activity_idx",
1400
- "columns": [
1401
- {
1402
- "expression": "actor_identity_id",
1403
- "isExpression": false,
1404
- "asc": true,
1405
- "nulls": "last"
1406
- },
1407
- {
1408
- "expression": "last_activity_at",
1409
- "isExpression": false,
1410
- "asc": false,
1411
- "nulls": "last"
1412
- }
1413
- ],
1414
- "isUnique": false,
1415
- "concurrently": false,
1416
- "method": "btree",
1417
- "with": {}
1418
- },
1419
- "junior_conversations_origin_idx": {
1420
- "name": "junior_conversations_origin_idx",
1421
- "columns": [
1422
- {
1423
- "expression": "origin_type",
1424
- "isExpression": false,
1425
- "asc": true,
1426
- "nulls": "last"
1427
- },
1428
- {
1429
- "expression": "origin_id",
1430
- "isExpression": false,
1431
- "asc": true,
1432
- "nulls": "last"
1433
- },
1434
- {
1435
- "expression": "last_activity_at",
1436
- "isExpression": false,
1437
- "asc": false,
1438
- "nulls": "last"
1439
- }
1440
- ],
1441
- "isUnique": false,
1442
- "concurrently": false,
1443
- "method": "btree",
1444
- "with": {}
1445
- },
1446
- "junior_conversations_parent_idx": {
1447
- "name": "junior_conversations_parent_idx",
1448
- "columns": [
1449
- {
1450
- "expression": "parent_conversation_id",
1451
- "isExpression": false,
1452
- "asc": true,
1453
- "nulls": "last"
1454
- }
1455
- ],
1456
- "isUnique": false,
1457
- "concurrently": false,
1458
- "method": "btree",
1459
- "with": {}
1460
- },
1461
- "junior_conversations_root_idx": {
1462
- "name": "junior_conversations_root_idx",
1463
- "columns": [
1464
- {
1465
- "expression": "root_conversation_id",
1466
- "isExpression": false,
1467
- "asc": true,
1468
- "nulls": "last"
1469
- }
1470
- ],
1471
- "isUnique": false,
1472
- "concurrently": false,
1473
- "method": "btree",
1474
- "with": {}
1475
- }
1476
- },
1477
- "foreignKeys": {
1478
- "junior_conversations_destination_id_junior_destinations_id_fk": {
1479
- "name": "junior_conversations_destination_id_junior_destinations_id_fk",
1480
- "tableFrom": "junior_conversations",
1481
- "tableTo": "junior_destinations",
1482
- "columnsFrom": [
1483
- "destination_id"
1484
- ],
1485
- "columnsTo": [
1486
- "id"
1487
- ],
1488
- "onDelete": "no action",
1489
- "onUpdate": "no action"
1490
- },
1491
- "junior_conversations_actor_identity_id_junior_identities_id_fk": {
1492
- "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
1493
- "tableFrom": "junior_conversations",
1494
- "tableTo": "junior_identities",
1495
- "columnsFrom": [
1496
- "actor_identity_id"
1497
- ],
1498
- "columnsTo": [
1499
- "id"
1500
- ],
1501
- "onDelete": "no action",
1502
- "onUpdate": "no action"
1503
- },
1504
- "junior_conversations_creator_identity_id_junior_identities_id_fk": {
1505
- "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
1506
- "tableFrom": "junior_conversations",
1507
- "tableTo": "junior_identities",
1508
- "columnsFrom": [
1509
- "creator_identity_id"
1510
- ],
1511
- "columnsTo": [
1512
- "id"
1513
- ],
1514
- "onDelete": "no action",
1515
- "onUpdate": "no action"
1516
- },
1517
- "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
1518
- "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
1519
- "tableFrom": "junior_conversations",
1520
- "tableTo": "junior_identities",
1521
- "columnsFrom": [
1522
- "credential_subject_identity_id"
1523
- ],
1524
- "columnsTo": [
1525
- "id"
1526
- ],
1527
- "onDelete": "no action",
1528
- "onUpdate": "no action"
1529
- },
1530
- "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
1531
- "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
1532
- "tableFrom": "junior_conversations",
1533
- "tableTo": "junior_conversations",
1534
- "columnsFrom": [
1535
- "parent_conversation_id"
1536
- ],
1537
- "columnsTo": [
1538
- "conversation_id"
1539
- ],
1540
- "onDelete": "no action",
1541
- "onUpdate": "no action"
1542
- },
1543
- "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
1544
- "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
1545
- "tableFrom": "junior_conversations",
1546
- "tableTo": "junior_conversations",
1547
- "columnsFrom": [
1548
- "root_conversation_id"
1549
- ],
1550
- "columnsTo": [
1551
- "conversation_id"
1552
- ],
1553
- "onDelete": "no action",
1554
- "onUpdate": "no action"
1555
- }
1556
- },
1557
- "compositePrimaryKeys": {},
1558
- "uniqueConstraints": {},
1559
- "policies": {},
1560
- "checkConstraints": {},
1561
- "isRLSEnabled": false
1562
- },
1563
- "public.junior_destinations": {
1564
- "name": "junior_destinations",
1565
- "schema": "",
1566
- "columns": {
1567
- "id": {
1568
- "name": "id",
1569
- "type": "text",
1570
- "primaryKey": true,
1571
- "notNull": true
1572
- },
1573
- "provider": {
1574
- "name": "provider",
1575
- "type": "text",
1576
- "primaryKey": false,
1577
- "notNull": true
1578
- },
1579
- "provider_tenant_id": {
1580
- "name": "provider_tenant_id",
1581
- "type": "text",
1582
- "primaryKey": false,
1583
- "notNull": true,
1584
- "default": "''"
1585
- },
1586
- "provider_destination_id": {
1587
- "name": "provider_destination_id",
1588
- "type": "text",
1589
- "primaryKey": false,
1590
- "notNull": true
1591
- },
1592
- "kind": {
1593
- "name": "kind",
1594
- "type": "text",
1595
- "primaryKey": false,
1596
- "notNull": true
1597
- },
1598
- "parent_destination_id": {
1599
- "name": "parent_destination_id",
1600
- "type": "text",
1601
- "primaryKey": false,
1602
- "notNull": false
1603
- },
1604
- "display_name": {
1605
- "name": "display_name",
1606
- "type": "text",
1607
- "primaryKey": false,
1608
- "notNull": false
1609
- },
1610
- "visibility": {
1611
- "name": "visibility",
1612
- "type": "text",
1613
- "primaryKey": false,
1614
- "notNull": true,
1615
- "default": "'unknown'"
1616
- },
1617
- "metadata_json": {
1618
- "name": "metadata_json",
1619
- "type": "jsonb",
1620
- "primaryKey": false,
1621
- "notNull": false
1622
- },
1623
- "created_at": {
1624
- "name": "created_at",
1625
- "type": "timestamp with time zone",
1626
- "primaryKey": false,
1627
- "notNull": true
1628
- },
1629
- "updated_at": {
1630
- "name": "updated_at",
1631
- "type": "timestamp with time zone",
1632
- "primaryKey": false,
1633
- "notNull": true
1634
- }
1635
- },
1636
- "indexes": {
1637
- "junior_destinations_provider_destination_uidx": {
1638
- "name": "junior_destinations_provider_destination_uidx",
1639
- "columns": [
1640
- {
1641
- "expression": "provider",
1642
- "isExpression": false,
1643
- "asc": true,
1644
- "nulls": "last"
1645
- },
1646
- {
1647
- "expression": "provider_tenant_id",
1648
- "isExpression": false,
1649
- "asc": true,
1650
- "nulls": "last"
1651
- },
1652
- {
1653
- "expression": "provider_destination_id",
1654
- "isExpression": false,
1655
- "asc": true,
1656
- "nulls": "last"
1657
- }
1658
- ],
1659
- "isUnique": true,
1660
- "concurrently": false,
1661
- "method": "btree",
1662
- "with": {}
1663
- },
1664
- "junior_destinations_provider_kind_idx": {
1665
- "name": "junior_destinations_provider_kind_idx",
1666
- "columns": [
1667
- {
1668
- "expression": "provider",
1669
- "isExpression": false,
1670
- "asc": true,
1671
- "nulls": "last"
1672
- },
1673
- {
1674
- "expression": "kind",
1675
- "isExpression": false,
1676
- "asc": true,
1677
- "nulls": "last"
1678
- }
1679
- ],
1680
- "isUnique": false,
1681
- "concurrently": false,
1682
- "method": "btree",
1683
- "with": {}
1684
- }
1685
- },
1686
- "foreignKeys": {},
1687
- "compositePrimaryKeys": {},
1688
- "uniqueConstraints": {},
1689
- "policies": {},
1690
- "checkConstraints": {},
1691
- "isRLSEnabled": false
1692
- },
1693
- "public.junior_event_tasks": {
1694
- "name": "junior_event_tasks",
1695
- "schema": "",
1696
- "columns": {
1697
- "id": {
1698
- "name": "id",
1699
- "type": "text",
1700
- "primaryKey": true,
1701
- "notNull": true
1702
- },
1703
- "team_id": {
1704
- "name": "team_id",
1705
- "type": "text",
1706
- "primaryKey": false,
1707
- "notNull": true
1708
- },
1709
- "namespace": {
1710
- "name": "namespace",
1711
- "type": "text",
1712
- "primaryKey": false,
1713
- "notNull": true
1714
- },
1715
- "identifier": {
1716
- "name": "identifier",
1717
- "type": "text",
1718
- "primaryKey": false,
1719
- "notNull": true
1720
- },
1721
- "created_at_ms": {
1722
- "name": "created_at_ms",
1723
- "type": "bigint",
1724
- "primaryKey": false,
1725
- "notNull": true
1726
- },
1727
- "title": {
1728
- "name": "title",
1729
- "type": "text",
1730
- "primaryKey": false,
1731
- "notNull": false
1732
- },
1733
- "task_json": {
1734
- "name": "task_json",
1735
- "type": "jsonb",
1736
- "primaryKey": false,
1737
- "notNull": true
1738
- }
1739
- },
1740
- "indexes": {
1741
- "junior_event_tasks_team_idx": {
1742
- "name": "junior_event_tasks_team_idx",
1743
- "columns": [
1744
- {
1745
- "expression": "team_id",
1746
- "isExpression": false,
1747
- "asc": true,
1748
- "nulls": "last"
1749
- },
1750
- {
1751
- "expression": "created_at_ms",
1752
- "isExpression": false,
1753
- "asc": true,
1754
- "nulls": "last"
1755
- },
1756
- {
1757
- "expression": "id",
1758
- "isExpression": false,
1759
- "asc": true,
1760
- "nulls": "last"
1761
- }
1762
- ],
1763
- "isUnique": false,
1764
- "concurrently": false,
1765
- "method": "btree",
1766
- "with": {}
1767
- },
1768
- "junior_event_tasks_match_idx": {
1769
- "name": "junior_event_tasks_match_idx",
1770
- "columns": [
1771
- {
1772
- "expression": "namespace",
1773
- "isExpression": false,
1774
- "asc": true,
1775
- "nulls": "last"
1776
- },
1777
- {
1778
- "expression": "identifier",
1779
- "isExpression": false,
1780
- "asc": true,
1781
- "nulls": "last"
1782
- },
1783
- {
1784
- "expression": "created_at_ms",
1785
- "isExpression": false,
1786
- "asc": true,
1787
- "nulls": "last"
1788
- },
1789
- {
1790
- "expression": "id",
1791
- "isExpression": false,
1792
- "asc": true,
1793
- "nulls": "last"
1794
- }
1795
- ],
1796
- "isUnique": false,
1797
- "concurrently": false,
1798
- "method": "btree",
1799
- "with": {}
1800
- }
1801
- },
1802
- "foreignKeys": {},
1803
- "compositePrimaryKeys": {},
1804
- "uniqueConstraints": {},
1805
- "policies": {},
1806
- "checkConstraints": {},
1807
- "isRLSEnabled": false
1808
- },
1809
- "public.junior_identities": {
1810
- "name": "junior_identities",
1811
- "schema": "",
1812
- "columns": {
1813
- "id": {
1814
- "name": "id",
1815
- "type": "text",
1816
- "primaryKey": true,
1817
- "notNull": true
1818
- },
1819
- "kind": {
1820
- "name": "kind",
1821
- "type": "text",
1822
- "primaryKey": false,
1823
- "notNull": true
1824
- },
1825
- "provider": {
1826
- "name": "provider",
1827
- "type": "text",
1828
- "primaryKey": false,
1829
- "notNull": true
1830
- },
1831
- "provider_tenant_id": {
1832
- "name": "provider_tenant_id",
1833
- "type": "text",
1834
- "primaryKey": false,
1835
- "notNull": true,
1836
- "default": "''"
1837
- },
1838
- "provider_subject_id": {
1839
- "name": "provider_subject_id",
1840
- "type": "text",
1841
- "primaryKey": false,
1842
- "notNull": true
1843
- },
1844
- "display_name": {
1845
- "name": "display_name",
1846
- "type": "text",
1847
- "primaryKey": false,
1848
- "notNull": false
1849
- },
1850
- "handle": {
1851
- "name": "handle",
1852
- "type": "text",
1853
- "primaryKey": false,
1854
- "notNull": false
1855
- },
1856
- "email": {
1857
- "name": "email",
1858
- "type": "text",
1859
- "primaryKey": false,
1860
- "notNull": false
1861
- },
1862
- "avatar_url": {
1863
- "name": "avatar_url",
1864
- "type": "text",
1865
- "primaryKey": false,
1866
- "notNull": false
1867
- },
1868
- "metadata_json": {
1869
- "name": "metadata_json",
1870
- "type": "jsonb",
1871
- "primaryKey": false,
1872
- "notNull": false
1873
- },
1874
- "created_at": {
1875
- "name": "created_at",
1876
- "type": "timestamp with time zone",
1877
- "primaryKey": false,
1878
- "notNull": true
1879
- },
1880
- "updated_at": {
1881
- "name": "updated_at",
1882
- "type": "timestamp with time zone",
1883
- "primaryKey": false,
1884
- "notNull": true
1885
- },
1886
- "user_id": {
1887
- "name": "user_id",
1888
- "type": "text",
1889
- "primaryKey": false,
1890
- "notNull": false
1891
- },
1892
- "email_normalized": {
1893
- "name": "email_normalized",
1894
- "type": "text",
1895
- "primaryKey": false,
1896
- "notNull": false
1897
- },
1898
- "email_verified": {
1899
- "name": "email_verified",
1900
- "type": "boolean",
1901
- "primaryKey": false,
1902
- "notNull": true,
1903
- "default": false
1904
- }
1905
- },
1906
- "indexes": {
1907
- "junior_identities_provider_subject_uidx": {
1908
- "name": "junior_identities_provider_subject_uidx",
1909
- "columns": [
1910
- {
1911
- "expression": "provider",
1912
- "isExpression": false,
1913
- "asc": true,
1914
- "nulls": "last"
1915
- },
1916
- {
1917
- "expression": "provider_tenant_id",
1918
- "isExpression": false,
1919
- "asc": true,
1920
- "nulls": "last"
1921
- },
1922
- {
1923
- "expression": "provider_subject_id",
1924
- "isExpression": false,
1925
- "asc": true,
1926
- "nulls": "last"
1927
- }
1928
- ],
1929
- "isUnique": true,
1930
- "concurrently": false,
1931
- "method": "btree",
1932
- "with": {}
1933
- },
1934
- "junior_identities_user_idx": {
1935
- "name": "junior_identities_user_idx",
1936
- "columns": [
1937
- {
1938
- "expression": "user_id",
1939
- "isExpression": false,
1940
- "asc": true,
1941
- "nulls": "last"
1942
- }
1943
- ],
1944
- "isUnique": false,
1945
- "concurrently": false,
1946
- "method": "btree",
1947
- "with": {}
1948
- },
1949
- "junior_identities_verified_email_idx": {
1950
- "name": "junior_identities_verified_email_idx",
1951
- "columns": [
1952
- {
1953
- "expression": "email_normalized",
1954
- "isExpression": false,
1955
- "asc": true,
1956
- "nulls": "last"
1957
- }
1958
- ],
1959
- "isUnique": false,
1960
- "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
1961
- "concurrently": false,
1962
- "method": "btree",
1963
- "with": {}
1964
- },
1965
- "junior_identities_kind_provider_idx": {
1966
- "name": "junior_identities_kind_provider_idx",
1967
- "columns": [
1968
- {
1969
- "expression": "kind",
1970
- "isExpression": false,
1971
- "asc": true,
1972
- "nulls": "last"
1973
- },
1974
- {
1975
- "expression": "provider",
1976
- "isExpression": false,
1977
- "asc": true,
1978
- "nulls": "last"
1979
- }
1980
- ],
1981
- "isUnique": false,
1982
- "concurrently": false,
1983
- "method": "btree",
1984
- "with": {}
1985
- }
1986
- },
1987
- "foreignKeys": {
1988
- "junior_identities_user_id_junior_users_id_fk": {
1989
- "name": "junior_identities_user_id_junior_users_id_fk",
1990
- "tableFrom": "junior_identities",
1991
- "tableTo": "junior_users",
1992
- "columnsFrom": [
1993
- "user_id"
1994
- ],
1995
- "columnsTo": [
1996
- "id"
1997
- ],
1998
- "onDelete": "no action",
1999
- "onUpdate": "no action"
2000
- }
2001
- },
2002
- "compositePrimaryKeys": {},
2003
- "uniqueConstraints": {},
2004
- "policies": {},
2005
- "checkConstraints": {},
2006
- "isRLSEnabled": false
2007
- },
2008
- "public.junior_location_configurations": {
2009
- "name": "junior_location_configurations",
2010
- "schema": "",
2011
- "columns": {
2012
- "location_id": {
2013
- "name": "location_id",
2014
- "type": "text",
2015
- "primaryKey": false,
2016
- "notNull": true
2017
- },
2018
- "key": {
2019
- "name": "key",
2020
- "type": "text",
2021
- "primaryKey": false,
2022
- "notNull": true
2023
- },
2024
- "value": {
2025
- "name": "value",
2026
- "type": "text",
2027
- "primaryKey": false,
2028
- "notNull": true
2029
- },
2030
- "updated_at": {
2031
- "name": "updated_at",
2032
- "type": "timestamp with time zone",
2033
- "primaryKey": false,
2034
- "notNull": true
2035
- },
2036
- "updated_by": {
2037
- "name": "updated_by",
2038
- "type": "text",
2039
- "primaryKey": false,
2040
- "notNull": false
2041
- },
2042
- "source": {
2043
- "name": "source",
2044
- "type": "text",
2045
- "primaryKey": false,
2046
- "notNull": false
2047
- },
2048
- "expires_at": {
2049
- "name": "expires_at",
2050
- "type": "text",
2051
- "primaryKey": false,
2052
- "notNull": false
2053
- }
2054
- },
2055
- "indexes": {},
2056
- "foreignKeys": {
2057
- "junior_location_configurations_location_id_junior_destinations_id_fk": {
2058
- "name": "junior_location_configurations_location_id_junior_destinations_id_fk",
2059
- "tableFrom": "junior_location_configurations",
2060
- "tableTo": "junior_destinations",
2061
- "columnsFrom": [
2062
- "location_id"
2063
- ],
2064
- "columnsTo": [
2065
- "id"
2066
- ],
2067
- "onDelete": "cascade",
2068
- "onUpdate": "no action"
2069
- }
2070
- },
2071
- "compositePrimaryKeys": {
2072
- "junior_location_configurations_location_id_key_pk": {
2073
- "name": "junior_location_configurations_location_id_key_pk",
2074
- "columns": [
2075
- "location_id",
2076
- "key"
2077
- ]
2078
- }
2079
- },
2080
- "uniqueConstraints": {},
2081
- "policies": {},
2082
- "checkConstraints": {},
2083
- "isRLSEnabled": false
2084
- },
2085
- "public.junior_scheduler_runs": {
2086
- "name": "junior_scheduler_runs",
2087
- "schema": "",
2088
- "columns": {
2089
- "id": {
2090
- "name": "id",
2091
- "type": "text",
2092
- "primaryKey": true,
2093
- "notNull": true
2094
- },
2095
- "task_id": {
2096
- "name": "task_id",
2097
- "type": "text",
2098
- "primaryKey": false,
2099
- "notNull": true
2100
- },
2101
- "status": {
2102
- "name": "status",
2103
- "type": "text",
2104
- "primaryKey": false,
2105
- "notNull": true
2106
- },
2107
- "scheduled_for_ms": {
2108
- "name": "scheduled_for_ms",
2109
- "type": "bigint",
2110
- "primaryKey": false,
2111
- "notNull": true
2112
- },
2113
- "record": {
2114
- "name": "record",
2115
- "type": "jsonb",
2116
- "primaryKey": false,
2117
- "notNull": true
2118
- }
2119
- },
2120
- "indexes": {
2121
- "junior_scheduler_runs_task_status_idx": {
2122
- "name": "junior_scheduler_runs_task_status_idx",
2123
- "columns": [
2124
- {
2125
- "expression": "task_id",
2126
- "isExpression": false,
2127
- "asc": true,
2128
- "nulls": "last"
2129
- },
2130
- {
2131
- "expression": "status",
2132
- "isExpression": false,
2133
- "asc": true,
2134
- "nulls": "last"
2135
- },
2136
- {
2137
- "expression": "scheduled_for_ms",
2138
- "isExpression": false,
2139
- "asc": true,
2140
- "nulls": "last"
2141
- }
2142
- ],
2143
- "isUnique": false,
2144
- "concurrently": false,
2145
- "method": "btree",
2146
- "with": {}
2147
- },
2148
- "junior_scheduler_runs_status_idx": {
2149
- "name": "junior_scheduler_runs_status_idx",
2150
- "columns": [
2151
- {
2152
- "expression": "status",
2153
- "isExpression": false,
2154
- "asc": true,
2155
- "nulls": "last"
2156
- },
2157
- {
2158
- "expression": "scheduled_for_ms",
2159
- "isExpression": false,
2160
- "asc": true,
2161
- "nulls": "last"
2162
- }
2163
- ],
2164
- "isUnique": false,
2165
- "concurrently": false,
2166
- "method": "btree",
2167
- "with": {}
2168
- }
2169
- },
2170
- "foreignKeys": {},
2171
- "compositePrimaryKeys": {},
2172
- "uniqueConstraints": {},
2173
- "policies": {},
2174
- "checkConstraints": {},
2175
- "isRLSEnabled": false
2176
- },
2177
- "public.junior_scheduler_tasks": {
2178
- "name": "junior_scheduler_tasks",
2179
- "schema": "",
2180
- "columns": {
2181
- "id": {
2182
- "name": "id",
2183
- "type": "text",
2184
- "primaryKey": true,
2185
- "notNull": true
2186
- },
2187
- "team_id": {
2188
- "name": "team_id",
2189
- "type": "text",
2190
- "primaryKey": false,
2191
- "notNull": true
2192
- },
2193
- "creator_slack_user_id": {
2194
- "name": "creator_slack_user_id",
2195
- "type": "text",
2196
- "primaryKey": false,
2197
- "notNull": false
2198
- },
2199
- "creator_identity_id": {
2200
- "name": "creator_identity_id",
2201
- "type": "text",
2202
- "primaryKey": false,
2203
- "notNull": false
2204
- },
2205
- "status": {
2206
- "name": "status",
2207
- "type": "text",
2208
- "primaryKey": false,
2209
- "notNull": true
2210
- },
2211
- "next_run_at_ms": {
2212
- "name": "next_run_at_ms",
2213
- "type": "bigint",
2214
- "primaryKey": false,
2215
- "notNull": false
2216
- },
2217
- "run_now_at_ms": {
2218
- "name": "run_now_at_ms",
2219
- "type": "bigint",
2220
- "primaryKey": false,
2221
- "notNull": false
2222
- },
2223
- "created_at_ms": {
2224
- "name": "created_at_ms",
2225
- "type": "bigint",
2226
- "primaryKey": false,
2227
- "notNull": true
2228
- },
2229
- "title": {
2230
- "name": "title",
2231
- "type": "text",
2232
- "primaryKey": false,
2233
- "notNull": false
2234
- },
2235
- "record": {
2236
- "name": "record",
2237
- "type": "jsonb",
2238
- "primaryKey": false,
2239
- "notNull": true
2240
- }
2241
- },
2242
- "indexes": {
2243
- "junior_scheduler_tasks_creator_idx": {
2244
- "name": "junior_scheduler_tasks_creator_idx",
2245
- "columns": [
2246
- {
2247
- "expression": "team_id",
2248
- "isExpression": false,
2249
- "asc": true,
2250
- "nulls": "last"
2251
- },
2252
- {
2253
- "expression": "creator_slack_user_id",
2254
- "isExpression": false,
2255
- "asc": true,
2256
- "nulls": "last"
2257
- },
2258
- {
2259
- "expression": "created_at_ms",
2260
- "isExpression": false,
2261
- "asc": true,
2262
- "nulls": "last"
2263
- },
2264
- {
2265
- "expression": "id",
2266
- "isExpression": false,
2267
- "asc": true,
2268
- "nulls": "last"
2269
- }
2270
- ],
2271
- "isUnique": false,
2272
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
2273
- "concurrently": false,
2274
- "method": "btree",
2275
- "with": {}
2276
- },
2277
- "junior_scheduler_tasks_creator_identity_idx": {
2278
- "name": "junior_scheduler_tasks_creator_identity_idx",
2279
- "columns": [
2280
- {
2281
- "expression": "creator_identity_id",
2282
- "isExpression": false,
2283
- "asc": true,
2284
- "nulls": "last"
2285
- },
2286
- {
2287
- "expression": "created_at_ms",
2288
- "isExpression": false,
2289
- "asc": true,
2290
- "nulls": "last"
2291
- },
2292
- {
2293
- "expression": "id",
2294
- "isExpression": false,
2295
- "asc": true,
2296
- "nulls": "last"
2297
- }
2298
- ],
2299
- "isUnique": false,
2300
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted' AND \"junior_scheduler_tasks\".\"creator_identity_id\" IS NOT NULL",
2301
- "concurrently": false,
2302
- "method": "btree",
2303
- "with": {}
2304
- },
2305
- "junior_scheduler_tasks_team_status_idx": {
2306
- "name": "junior_scheduler_tasks_team_status_idx",
2307
- "columns": [
2308
- {
2309
- "expression": "team_id",
2310
- "isExpression": false,
2311
- "asc": true,
2312
- "nulls": "last"
2313
- },
2314
- {
2315
- "expression": "created_at_ms",
2316
- "isExpression": false,
2317
- "asc": true,
2318
- "nulls": "last"
2319
- },
2320
- {
2321
- "expression": "id",
2322
- "isExpression": false,
2323
- "asc": true,
2324
- "nulls": "last"
2325
- }
2326
- ],
2327
- "isUnique": false,
2328
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
2329
- "concurrently": false,
2330
- "method": "btree",
2331
- "with": {}
2332
- },
2333
- "junior_scheduler_tasks_run_now_due_idx": {
2334
- "name": "junior_scheduler_tasks_run_now_due_idx",
2335
- "columns": [
2336
- {
2337
- "expression": "run_now_at_ms",
2338
- "isExpression": false,
2339
- "asc": true,
2340
- "nulls": "last"
2341
- },
2342
- {
2343
- "expression": "created_at_ms",
2344
- "isExpression": false,
2345
- "asc": true,
2346
- "nulls": "last"
2347
- },
2348
- {
2349
- "expression": "id",
2350
- "isExpression": false,
2351
- "asc": true,
2352
- "nulls": "last"
2353
- }
2354
- ],
2355
- "isUnique": false,
2356
- "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"run_now_at_ms\" IS NOT NULL",
2357
- "concurrently": false,
2358
- "method": "btree",
2359
- "with": {}
2360
- },
2361
- "junior_scheduler_tasks_next_run_due_idx": {
2362
- "name": "junior_scheduler_tasks_next_run_due_idx",
2363
- "columns": [
2364
- {
2365
- "expression": "next_run_at_ms",
2366
- "isExpression": false,
2367
- "asc": true,
2368
- "nulls": "last"
2369
- },
2370
- {
2371
- "expression": "created_at_ms",
2372
- "isExpression": false,
2373
- "asc": true,
2374
- "nulls": "last"
2375
- },
2376
- {
2377
- "expression": "id",
2378
- "isExpression": false,
2379
- "asc": true,
2380
- "nulls": "last"
2381
- }
2382
- ],
2383
- "isUnique": false,
2384
- "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"next_run_at_ms\" IS NOT NULL",
2385
- "concurrently": false,
2386
- "method": "btree",
2387
- "with": {}
2388
- }
2389
- },
2390
- "foreignKeys": {},
2391
- "compositePrimaryKeys": {},
2392
- "uniqueConstraints": {},
2393
- "policies": {},
2394
- "checkConstraints": {},
2395
- "isRLSEnabled": false
2396
- },
2397
- "public.junior_snapshots": {
2398
- "name": "junior_snapshots",
2399
- "schema": "",
2400
- "columns": {
2401
- "id": {
2402
- "name": "id",
2403
- "type": "text",
2404
- "primaryKey": true,
2405
- "notNull": true
2406
- },
2407
- "workspace_id": {
2408
- "name": "workspace_id",
2409
- "type": "text",
2410
- "primaryKey": false,
2411
- "notNull": true
2412
- },
2413
- "profile_hash": {
2414
- "name": "profile_hash",
2415
- "type": "text",
2416
- "primaryKey": false,
2417
- "notNull": true
2418
- },
2419
- "status": {
2420
- "name": "status",
2421
- "type": "text",
2422
- "primaryKey": false,
2423
- "notNull": true
2424
- },
2425
- "snapshot_id": {
2426
- "name": "snapshot_id",
2427
- "type": "text",
2428
- "primaryKey": false,
2429
- "notNull": false
2430
- },
2431
- "build_duration_ms": {
2432
- "name": "build_duration_ms",
2433
- "type": "integer",
2434
- "primaryKey": false,
2435
- "notNull": false
2436
- },
2437
- "size_bytes": {
2438
- "name": "size_bytes",
2439
- "type": "bigint",
2440
- "primaryKey": false,
2441
- "notNull": false
2442
- },
2443
- "generated_at": {
2444
- "name": "generated_at",
2445
- "type": "timestamp with time zone",
2446
- "primaryKey": false,
2447
- "notNull": false
2448
- },
2449
- "build_started_at": {
2450
- "name": "build_started_at",
2451
- "type": "timestamp with time zone",
2452
- "primaryKey": false,
2453
- "notNull": false
2454
- },
2455
- "build_phase": {
2456
- "name": "build_phase",
2457
- "type": "text",
2458
- "primaryKey": false,
2459
- "notNull": false
2460
- },
2461
- "build_sandbox_name": {
2462
- "name": "build_sandbox_name",
2463
- "type": "text",
2464
- "primaryKey": false,
2465
- "notNull": false
2466
- },
2467
- "build_command_id": {
2468
- "name": "build_command_id",
2469
- "type": "text",
2470
- "primaryKey": false,
2471
- "notNull": false
2472
- },
2473
- "build_error": {
2474
- "name": "build_error",
2475
- "type": "text",
2476
- "primaryKey": false,
2477
- "notNull": false
2478
- },
2479
- "created_at": {
2480
- "name": "created_at",
2481
- "type": "timestamp with time zone",
2482
- "primaryKey": false,
2483
- "notNull": true
2484
- },
2485
- "updated_at": {
2486
- "name": "updated_at",
2487
- "type": "timestamp with time zone",
2488
- "primaryKey": false,
2489
- "notNull": true
2490
- }
2491
- },
2492
- "indexes": {
2493
- "junior_snapshots_snapshot_id_uidx": {
2494
- "name": "junior_snapshots_snapshot_id_uidx",
2495
- "columns": [
2496
- {
2497
- "expression": "snapshot_id",
2498
- "isExpression": false,
2499
- "asc": true,
2500
- "nulls": "last"
2501
- }
2502
- ],
2503
- "isUnique": true,
2504
- "concurrently": false,
2505
- "method": "btree",
2506
- "with": {}
2507
- },
2508
- "junior_snapshots_workspace_idx": {
2509
- "name": "junior_snapshots_workspace_idx",
2510
- "columns": [
2511
- {
2512
- "expression": "workspace_id",
2513
- "isExpression": false,
2514
- "asc": true,
2515
- "nulls": "last"
2516
- }
2517
- ],
2518
- "isUnique": false,
2519
- "concurrently": false,
2520
- "method": "btree",
2521
- "with": {}
2522
- },
2523
- "junior_snapshots_workspace_profile_status_idx": {
2524
- "name": "junior_snapshots_workspace_profile_status_idx",
2525
- "columns": [
2526
- {
2527
- "expression": "workspace_id",
2528
- "isExpression": false,
2529
- "asc": true,
2530
- "nulls": "last"
2531
- },
2532
- {
2533
- "expression": "profile_hash",
2534
- "isExpression": false,
2535
- "asc": true,
2536
- "nulls": "last"
2537
- },
2538
- {
2539
- "expression": "status",
2540
- "isExpression": false,
2541
- "asc": true,
2542
- "nulls": "last"
2543
- }
2544
- ],
2545
- "isUnique": false,
2546
- "concurrently": false,
2547
- "method": "btree",
2548
- "with": {}
2549
- },
2550
- "junior_snapshots_active_build_uidx": {
2551
- "name": "junior_snapshots_active_build_uidx",
2552
- "columns": [
2553
- {
2554
- "expression": "workspace_id",
2555
- "isExpression": false,
2556
- "asc": true,
2557
- "nulls": "last"
2558
- },
2559
- {
2560
- "expression": "profile_hash",
2561
- "isExpression": false,
2562
- "asc": true,
2563
- "nulls": "last"
2564
- }
2565
- ],
2566
- "isUnique": true,
2567
- "where": "\"junior_snapshots\".\"status\" = 'building'",
2568
- "concurrently": false,
2569
- "method": "btree",
2570
- "with": {}
2571
- },
2572
- "junior_snapshots_workspace_status_idx": {
2573
- "name": "junior_snapshots_workspace_status_idx",
2574
- "columns": [
2575
- {
2576
- "expression": "workspace_id",
2577
- "isExpression": false,
2578
- "asc": true,
2579
- "nulls": "last"
2580
- },
2581
- {
2582
- "expression": "status",
2583
- "isExpression": false,
2584
- "asc": true,
2585
- "nulls": "last"
2586
- }
2587
- ],
2588
- "isUnique": false,
2589
- "concurrently": false,
2590
- "method": "btree",
2591
- "with": {}
2592
- }
2593
- },
2594
- "foreignKeys": {
2595
- "junior_snapshots_workspace_id_junior_workspaces_id_fk": {
2596
- "name": "junior_snapshots_workspace_id_junior_workspaces_id_fk",
2597
- "tableFrom": "junior_snapshots",
2598
- "tableTo": "junior_workspaces",
2599
- "columnsFrom": [
2600
- "workspace_id"
2601
- ],
2602
- "columnsTo": [
2603
- "id"
2604
- ],
2605
- "onDelete": "cascade",
2606
- "onUpdate": "no action"
2607
- }
2608
- },
2609
- "compositePrimaryKeys": {},
2610
- "uniqueConstraints": {},
2611
- "policies": {},
2612
- "checkConstraints": {
2613
- "junior_snapshots_status_check": {
2614
- "name": "junior_snapshots_status_check",
2615
- "value": "\"junior_snapshots\".\"status\" in ('building', 'failed', 'ready')"
2616
- },
2617
- "junior_snapshots_build_phase_check": {
2618
- "name": "junior_snapshots_build_phase_check",
2619
- "value": "\"junior_snapshots\".\"build_phase\" is null or \"junior_snapshots\".\"build_phase\" in ('created', 'dependencies_installed', 'repositories_prepared')"
2620
- },
2621
- "junior_snapshots_ready_fields_check": {
2622
- "name": "junior_snapshots_ready_fields_check",
2623
- "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)"
2624
- },
2625
- "junior_snapshots_build_fields_check": {
2626
- "name": "junior_snapshots_build_fields_check",
2627
- "value": "\"junior_snapshots\".\"status\" = 'ready' or (\"junior_snapshots\".\"build_started_at\" is not null and \"junior_snapshots\".\"build_phase\" is not null)"
2628
- },
2629
- "junior_snapshots_build_duration_check": {
2630
- "name": "junior_snapshots_build_duration_check",
2631
- "value": "\"junior_snapshots\".\"build_duration_ms\" is null or \"junior_snapshots\".\"build_duration_ms\" >= 0"
2632
- },
2633
- "junior_snapshots_size_bytes_check": {
2634
- "name": "junior_snapshots_size_bytes_check",
2635
- "value": "\"junior_snapshots\".\"size_bytes\" is null or \"junior_snapshots\".\"size_bytes\" >= 0"
2636
- }
2637
- },
2638
- "isRLSEnabled": false
2639
- },
2640
- "public.junior_stats": {
2641
- "name": "junior_stats",
2642
- "schema": "",
2643
- "columns": {
2644
- "date": {
2645
- "name": "date",
2646
- "type": "date",
2647
- "primaryKey": false,
2648
- "notNull": true
2649
- },
2650
- "namespace": {
2651
- "name": "namespace",
2652
- "type": "text",
2653
- "primaryKey": false,
2654
- "notNull": true
2655
- },
2656
- "metric": {
2657
- "name": "metric",
2658
- "type": "text",
2659
- "primaryKey": false,
2660
- "notNull": true
2661
- },
2662
- "name": {
2663
- "name": "name",
2664
- "type": "text",
2665
- "primaryKey": false,
2666
- "notNull": true
2667
- },
2668
- "count": {
2669
- "name": "count",
2670
- "type": "integer",
2671
- "primaryKey": false,
2672
- "notNull": true,
2673
- "default": 0
2674
- }
2675
- },
2676
- "indexes": {},
2677
- "foreignKeys": {},
2678
- "compositePrimaryKeys": {
2679
- "junior_stats_date_namespace_metric_name_pk": {
2680
- "name": "junior_stats_date_namespace_metric_name_pk",
2681
- "columns": [
2682
- "date",
2683
- "namespace",
2684
- "metric",
2685
- "name"
2686
- ]
2687
- }
2688
- },
2689
- "uniqueConstraints": {},
2690
- "policies": {},
2691
- "checkConstraints": {},
2692
- "isRLSEnabled": false
2693
- },
2694
- "public.junior_task_executions": {
2695
- "name": "junior_task_executions",
2696
- "schema": "",
2697
- "columns": {
2698
- "execution_id": {
2699
- "name": "execution_id",
2700
- "type": "text",
2701
- "primaryKey": false,
2702
- "notNull": true
2703
- },
2704
- "kind": {
2705
- "name": "kind",
2706
- "type": "text",
2707
- "primaryKey": false,
2708
- "notNull": true
2709
- },
2710
- "namespace": {
2711
- "name": "namespace",
2712
- "type": "text",
2713
- "primaryKey": false,
2714
- "notNull": true
2715
- },
2716
- "task_id": {
2717
- "name": "task_id",
2718
- "type": "text",
2719
- "primaryKey": false,
2720
- "notNull": true
2721
- },
2722
- "conversation_id": {
2723
- "name": "conversation_id",
2724
- "type": "text",
2725
- "primaryKey": false,
2726
- "notNull": false
2727
- },
2728
- "executed_at_ms": {
2729
- "name": "executed_at_ms",
2730
- "type": "bigint",
2731
- "primaryKey": false,
2732
- "notNull": true
2733
- },
2734
- "status": {
2735
- "name": "status",
2736
- "type": "text",
2737
- "primaryKey": false,
2738
- "notNull": true
2739
- }
2740
- },
2741
- "indexes": {
2742
- "junior_task_executions_task_time_idx": {
2743
- "name": "junior_task_executions_task_time_idx",
2744
- "columns": [
2745
- {
2746
- "expression": "kind",
2747
- "isExpression": false,
2748
- "asc": true,
2749
- "nulls": "last"
2750
- },
2751
- {
2752
- "expression": "namespace",
2753
- "isExpression": false,
2754
- "asc": true,
2755
- "nulls": "last"
2756
- },
2757
- {
2758
- "expression": "task_id",
2759
- "isExpression": false,
2760
- "asc": true,
2761
- "nulls": "last"
2762
- },
2763
- {
2764
- "expression": "executed_at_ms",
2765
- "isExpression": false,
2766
- "asc": true,
2767
- "nulls": "last"
2768
- }
2769
- ],
2770
- "isUnique": false,
2771
- "concurrently": false,
2772
- "method": "btree",
2773
- "with": {}
2774
- },
2775
- "junior_task_executions_time_kind_idx": {
2776
- "name": "junior_task_executions_time_kind_idx",
2777
- "columns": [
2778
- {
2779
- "expression": "executed_at_ms",
2780
- "isExpression": false,
2781
- "asc": true,
2782
- "nulls": "last"
2783
- },
2784
- {
2785
- "expression": "kind",
2786
- "isExpression": false,
2787
- "asc": true,
2788
- "nulls": "last"
2789
- }
2790
- ],
2791
- "isUnique": false,
2792
- "concurrently": false,
2793
- "method": "btree",
2794
- "with": {}
2795
- },
2796
- "junior_task_executions_conversation_time_idx": {
2797
- "name": "junior_task_executions_conversation_time_idx",
2798
- "columns": [
2799
- {
2800
- "expression": "conversation_id",
2801
- "isExpression": false,
2802
- "asc": true,
2803
- "nulls": "last"
2804
- },
2805
- {
2806
- "expression": "executed_at_ms",
2807
- "isExpression": false,
2808
- "asc": true,
2809
- "nulls": "last"
2810
- }
2811
- ],
2812
- "isUnique": false,
2813
- "concurrently": false,
2814
- "method": "btree",
2815
- "with": {}
2816
- }
2817
- },
2818
- "foreignKeys": {
2819
- "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk": {
2820
- "name": "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk",
2821
- "tableFrom": "junior_task_executions",
2822
- "tableTo": "junior_conversations",
2823
- "columnsFrom": [
2824
- "conversation_id"
2825
- ],
2826
- "columnsTo": [
2827
- "conversation_id"
2828
- ],
2829
- "onDelete": "no action",
2830
- "onUpdate": "no action"
2831
- }
2832
- },
2833
- "compositePrimaryKeys": {
2834
- "junior_task_executions_kind_namespace_execution_id_pk": {
2835
- "name": "junior_task_executions_kind_namespace_execution_id_pk",
2836
- "columns": [
2837
- "kind",
2838
- "namespace",
2839
- "execution_id"
2840
- ]
2841
- }
2842
- },
2843
- "uniqueConstraints": {},
2844
- "policies": {},
2845
- "checkConstraints": {
2846
- "junior_task_executions_kind_check": {
2847
- "name": "junior_task_executions_kind_check",
2848
- "value": "\"junior_task_executions\".\"kind\" in ('scheduled', 'event')"
2849
- },
2850
- "junior_task_executions_status_check": {
2851
- "name": "junior_task_executions_status_check",
2852
- "value": "\"junior_task_executions\".\"status\" in ('blocked', 'completed', 'failed')"
2853
- }
2854
- },
2855
- "isRLSEnabled": false
2856
- },
2857
- "public.junior_users": {
2858
- "name": "junior_users",
2859
- "schema": "",
2860
- "columns": {
2861
- "id": {
2862
- "name": "id",
2863
- "type": "text",
2864
- "primaryKey": true,
2865
- "notNull": true
2866
- },
2867
- "primary_email": {
2868
- "name": "primary_email",
2869
- "type": "text",
2870
- "primaryKey": false,
2871
- "notNull": true
2872
- },
2873
- "primary_email_normalized": {
2874
- "name": "primary_email_normalized",
2875
- "type": "text",
2876
- "primaryKey": false,
2877
- "notNull": true
2878
- },
2879
- "display_name": {
2880
- "name": "display_name",
2881
- "type": "text",
2882
- "primaryKey": false,
2883
- "notNull": false
2884
- },
2885
- "created_at": {
2886
- "name": "created_at",
2887
- "type": "timestamp with time zone",
2888
- "primaryKey": false,
2889
- "notNull": true
2890
- },
2891
- "updated_at": {
2892
- "name": "updated_at",
2893
- "type": "timestamp with time zone",
2894
- "primaryKey": false,
2895
- "notNull": true
2896
- }
2897
- },
2898
- "indexes": {
2899
- "junior_users_primary_email_normalized_uidx": {
2900
- "name": "junior_users_primary_email_normalized_uidx",
2901
- "columns": [
2902
- {
2903
- "expression": "primary_email_normalized",
2904
- "isExpression": false,
2905
- "asc": true,
2906
- "nulls": "last"
2907
- }
2908
- ],
2909
- "isUnique": true,
2910
- "concurrently": false,
2911
- "method": "btree",
2912
- "with": {}
2913
- }
2914
- },
2915
- "foreignKeys": {},
2916
- "compositePrimaryKeys": {},
2917
- "uniqueConstraints": {},
2918
- "policies": {},
2919
- "checkConstraints": {},
2920
- "isRLSEnabled": false
2921
- },
2922
- "public.junior_workspace_repos": {
2923
- "name": "junior_workspace_repos",
2924
- "schema": "",
2925
- "columns": {
2926
- "workspace_id": {
2927
- "name": "workspace_id",
2928
- "type": "text",
2929
- "primaryKey": false,
2930
- "notNull": true
2931
- },
2932
- "provider": {
2933
- "name": "provider",
2934
- "type": "text",
2935
- "primaryKey": false,
2936
- "notNull": true
2937
- },
2938
- "repo": {
2939
- "name": "repo",
2940
- "type": "text",
2941
- "primaryKey": false,
2942
- "notNull": true
2943
- }
2944
- },
2945
- "indexes": {},
2946
- "foreignKeys": {
2947
- "junior_workspace_repos_workspace_id_junior_workspaces_id_fk": {
2948
- "name": "junior_workspace_repos_workspace_id_junior_workspaces_id_fk",
2949
- "tableFrom": "junior_workspace_repos",
2950
- "tableTo": "junior_workspaces",
2951
- "columnsFrom": [
2952
- "workspace_id"
2953
- ],
2954
- "columnsTo": [
2955
- "id"
2956
- ],
2957
- "onDelete": "cascade",
2958
- "onUpdate": "no action"
2959
- }
2960
- },
2961
- "compositePrimaryKeys": {
2962
- "junior_workspace_repos_workspace_id_provider_repo_pk": {
2963
- "name": "junior_workspace_repos_workspace_id_provider_repo_pk",
2964
- "columns": [
2965
- "workspace_id",
2966
- "provider",
2967
- "repo"
2968
- ]
2969
- }
2970
- },
2971
- "uniqueConstraints": {},
2972
- "policies": {},
2973
- "checkConstraints": {},
2974
- "isRLSEnabled": false
2975
- },
2976
- "public.junior_workspaces": {
2977
- "name": "junior_workspaces",
2978
- "schema": "",
2979
- "columns": {
2980
- "id": {
2981
- "name": "id",
2982
- "type": "text",
2983
- "primaryKey": true,
2984
- "notNull": true
2985
- },
2986
- "name": {
2987
- "name": "name",
2988
- "type": "text",
2989
- "primaryKey": false,
2990
- "notNull": true
2991
- },
2992
- "setup_script": {
2993
- "name": "setup_script",
2994
- "type": "text",
2995
- "primaryKey": false,
2996
- "notNull": true,
2997
- "default": "''"
2998
- },
2999
- "created_at": {
3000
- "name": "created_at",
3001
- "type": "timestamp with time zone",
3002
- "primaryKey": false,
3003
- "notNull": true
3004
- },
3005
- "updated_at": {
3006
- "name": "updated_at",
3007
- "type": "timestamp with time zone",
3008
- "primaryKey": false,
3009
- "notNull": true
3010
- }
3011
- },
3012
- "indexes": {
3013
- "junior_workspaces_name_idx": {
3014
- "name": "junior_workspaces_name_idx",
3015
- "columns": [
3016
- {
3017
- "expression": "name",
3018
- "isExpression": false,
3019
- "asc": true,
3020
- "nulls": "last"
3021
- }
3022
- ],
3023
- "isUnique": true,
3024
- "concurrently": false,
3025
- "method": "btree",
3026
- "with": {}
3027
- }
3028
- },
3029
- "foreignKeys": {},
3030
- "compositePrimaryKeys": {},
3031
- "uniqueConstraints": {},
3032
- "policies": {},
3033
- "checkConstraints": {},
3034
- "isRLSEnabled": false
3035
- }
3036
- },
3037
- "enums": {},
3038
- "schemas": {},
3039
- "sequences": {},
3040
- "roles": {},
3041
- "policies": {},
3042
- "views": {},
3043
- "_meta": {
3044
- "columns": {},
3045
- "schemas": {},
3046
- "tables": {}
3047
- }
3048
- }