@sentry/junior 0.313.0 → 0.315.0

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