@sentry/junior 0.314.0 → 0.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (655) hide show
  1. package/dist/{channel-access-BOL29BG3.js → adapter-context-BlSGE44V.js} +42 -3
  2. package/dist/{admin-BXGAySz0.js → admin-5jUYY46p.js} +1 -1
  3. package/dist/agent-runner-C7GNLRB6.js +23438 -0
  4. package/dist/agent-update-delivery-BNEYQsAf.js +149 -0
  5. package/dist/api/schema.d.ts +9500 -2
  6. package/dist/api/schema.js +4 -6
  7. package/dist/api.d.ts +2 -3
  8. package/dist/api.js +850 -283
  9. package/dist/{app-D7tKnw9a.d.ts → app-D_bAXRDe.d.ts} +310 -29
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +260 -50
  12. package/dist/change-record-Bqsa5ZXE.d.ts +175 -0
  13. package/dist/chat-core-engine-CxkwRpn9.js +123 -0
  14. package/dist/cli/chat.d.ts +4 -1
  15. package/dist/cli/chat.js +39 -21
  16. package/dist/cli/check.js +4 -4
  17. package/dist/cli/main.js +2 -2
  18. package/dist/cli/plugins.js +3 -4
  19. package/dist/cli/run.d.ts +1 -1
  20. package/dist/cli/run.js +1 -1
  21. package/dist/cli/snapshot-create.js +2 -5
  22. package/dist/cli/upgrade.d.ts +1 -1
  23. package/dist/cli/upgrade.js +48 -96
  24. package/dist/{continue-in-slack-fnmD2Ifb.js → continue-in-slack-BGKjIdFp.js} +3 -5
  25. package/dist/{conversation-feed-DdFQuQDR.js → conversation-feed-Sl8lKKmR.js} +22 -2
  26. package/dist/{conversation-turn-DScuDYmN.js → conversation-turn-BoLK9i6g.js} +149 -103
  27. package/dist/{create-CrNt4Ewu.js → create-BOycVH9h.js} +5 -4
  28. package/dist/{credential-sync-CtqsGjj1.js → credential-sync-Mn4OdkEh.js} +10 -15
  29. package/dist/db-BpxcYXfD.d.ts +2 -0
  30. package/dist/{credentialed-dWRA3-oJ.js → db-DXTOYRzR.js} +21687 -9285
  31. package/dist/deployment-CG3TchWh.js +51 -0
  32. package/dist/direct-url-BYgYfuIy.js +22 -0
  33. package/dist/engine-context-dyWlfNdD.js +1817 -0
  34. package/dist/{html-B8rBt7F4.js → html-CfXEwl_h.js} +2 -5
  35. package/dist/instrumentation.js +2 -2
  36. package/dist/job-runner-CySgpi9v.js +1131 -0
  37. package/dist/{lineage-EULJkGO1.js → lineage-tRTOcrsL.js} +1 -1
  38. package/dist/{list-C5400AlJ.js → list-DXBz8SYL.js} +411 -132
  39. package/dist/local-server-CpnGhYml.js +276 -0
  40. package/dist/{conversation-privacy-DtZhI91r.js → logging-czs0nqLC.js} +2 -231
  41. package/dist/{mailbox-turn-DL3Lvsm0.js → mailbox-turn-79Nv1JXv.js} +1922 -2439
  42. package/dist/markers-CE0HMXWT.js +67 -0
  43. package/dist/{media-FYM-Bl3H.js → media-Cr9pGkzr.js} +670 -35
  44. package/dist/{message-DuDelZFr.js → message-BTox2Cmb.js} +18 -16
  45. package/dist/{model-input-0osF3pBS.js → model-input-IRGa98V7.js} +3 -3
  46. package/dist/nitro.d.ts +7 -1
  47. package/dist/nitro.js +48 -293
  48. package/dist/{oauth-callback-server-DX2fQ7Nq.js → oauth-callback-server-NXK7AlBp.js} +2 -2
  49. package/dist/{oauth-relay-PwPMdZJv.js → oauth-relay-6NBPSpFE.js} +1 -1
  50. package/dist/{package-discovery-DD9vencX.js → package-discovery-BI6T_RkD.js} +50 -1
  51. package/dist/{markers-DUP8aBOp.js → parent-result-Dg6P6roR.js} +71 -71
  52. package/dist/people-Cegp1Iwq.js +81 -0
  53. package/dist/proxy-path-Dc-0jXGi.js +203 -0
  54. package/dist/{resolve-D8CPJcNK.js → resolve-BUFkmxkT.js} +229 -4
  55. package/dist/{result-D090hxr5.js → result-DfATzX77.js} +79 -144
  56. package/dist/{runner-BU7fgrm-.js → runner-CmKP3inb.js} +7 -7
  57. package/dist/{sandbox-egress-signals-BUmVrsoG.js → sandbox-egress-signals-DYo5BsM7.js} +1 -1
  58. package/dist/{schema-7gW9vBpJ.js → schema-DrBMdPmv.js} +111 -15
  59. package/dist/{service-account-plA-uzIB.js → service-account-CxTX7nnR.js} +1 -3
  60. package/dist/{skills-CIosT6bS.js → skills-BlHUDj7k.js} +4 -4
  61. package/dist/{slack-conversation-unfurl-CBgZqth6.js → slack-conversation-unfurl-Dhe3lB1U.js} +6 -8
  62. package/dist/{spawn-DRjdzh3R.js → spawn-CfvlFdfz.js} +4 -5
  63. package/dist/start-conversation-Uh8Sk1EF.js +162 -0
  64. package/dist/system-prompt-table-CDCYVwqN.js +1169 -0
  65. package/dist/{task-runner-C-pXsgHM.js → task-runner-DcdQJd9e.js} +71 -17
  66. package/dist/{thread-context-CDX4dSZd.js → thread-context-DF5uDcWN.js} +5 -6
  67. package/dist/topic-CRYYBYp-.js +7 -0
  68. package/dist/transcript-BHhJVY0P.js +410 -0
  69. package/dist/turn-session-routing-GtetHsdO.js +1309 -0
  70. package/dist/{turn-wake-Bzq1Efrm.js → turn-wake-um5Ubd4m.js} +5 -7
  71. package/dist/{validation-bTq88sya.js → validation-CJyuOPD2.js} +1 -1
  72. package/dist/{version-DGUa1dZK.js → version-Bhe7RPIe.js} +1 -1
  73. package/dist/version.js +1 -1
  74. package/dist/virtual-module-BeKA_EII.js +12 -0
  75. package/dist/{worker-AkZg7Dg1.js → worker-D8PRgUqr.js} +3 -5
  76. package/migrations/20260711145847_initial/snapshot.json +2103 -0
  77. package/migrations/20260711145900_conversation_metrics/snapshot.json +135 -0
  78. package/migrations/20260712153649_conversation_message_search/snapshot.json +50 -0
  79. package/migrations/20260713040256_peaceful_scalphunter/snapshot.json +42 -0
  80. package/migrations/20260715174202_useful_magus/snapshot.json +42 -0
  81. package/migrations/20260715174203_conversation_events/snapshot.json +539 -0
  82. package/migrations/20260723042835_drop_legacy_conversation_messages/snapshot.json +9 -0
  83. package/migrations/20260723050612_thick_sugar_man/snapshot.json +120 -0
  84. package/migrations/20260727223822_sticky_rage/snapshot.json +274 -0
  85. package/migrations/20260728033158_slippery_harrier/snapshot.json +191 -0
  86. package/migrations/20260728040836_native_conversation_history/snapshot.json +9 -0
  87. package/migrations/20260728204900_sour_golden_guardian/snapshot.json +124 -0
  88. package/migrations/20260730233332_structured_conversation_events/snapshot.json +9 -0
  89. package/migrations/20260731164038_conversation_session_source/snapshot.json +42 -0
  90. package/migrations/20260801230336_source_visibility/snapshot.json +9 -0
  91. package/migrations/20260802023731_magical_ezekiel_stane/snapshot.json +266 -0
  92. package/migrations/20260804015843_neat_the_anarchist/snapshot.json +714 -0
  93. package/migrations/20260804165952_drop_paused_scheduled_tasks/snapshot.json +9 -0
  94. package/migrations/20260804225613_curvy_excalibur/snapshot.json +223 -0
  95. package/migrations/20260805174033_lowly_valkyrie/snapshot.json +344 -0
  96. package/migrations/20260805200301_restrict_task_execution_kinds/snapshot.json +36 -0
  97. package/migrations/20260806030729_first_warhawk/snapshot.json +690 -0
  98. package/migrations/20260807185200_task_execution_status/snapshot.json +92 -0
  99. package/migrations/20260808014743_task_title_columns/snapshot.json +68 -0
  100. package/migrations/20260809220421_misty_typhoid_mary/snapshot.json +191 -0
  101. package/migrations/20260811193709_mcp_credential_subject/snapshot.json +9 -0
  102. package/migrations/20260812032924_conversation_event_actor_and_participants/snapshot.json +393 -0
  103. package/migrations/20260812172418_attachment_storage/snapshot.json +341 -0
  104. package/migrations/20260813230732_artifacts/snapshot.json +349 -0
  105. package/migrations/20260814062905_dizzy_barracuda/snapshot.json +342 -0
  106. package/migrations/20260814231353_drop_workspace_repo_primary/snapshot.json +55 -0
  107. package/migrations/20260815030100_wild_phantom_reporter/snapshot.json +135 -0
  108. package/migrations/20260817082233_workspace_snapshots_table/snapshot.json +625 -0
  109. package/migrations/20260818160339_workspace_snapshot_active_build/snapshot.json +62 -0
  110. package/migrations/20260821180755_strong_randall/snapshot.json +42 -0
  111. package/migrations/20260823030308_workspace_snapshot_size_bytes/snapshot.json +62 -0
  112. package/migrations/20260824190313_complex_rage/snapshot.json +690 -0
  113. package/migrations/20260827233711_conversation_location/snapshot.json +42 -0
  114. package/migrations/20260901224306_event_task_status/snapshot.json +100 -0
  115. package/migrations/20260904153232_attachment_provider/snapshot.json +234 -0
  116. package/migrations/20260909111415_conversation_briefs/snapshot.json +364 -0
  117. package/migrations/20260910144928_automation_outcomes_backfill/snapshot.json +9 -0
  118. package/migrations/20260911184346_conversation_metrics/snapshot.json +226 -0
  119. package/migrations/20260921140842_scheduled_automation_channel_destinations/snapshot.json +9 -0
  120. package/migrations/20260922221709_event_automation_channel_destinations/snapshot.json +9 -0
  121. package/migrations/20261001113455_conversation_forks/snapshot.json +120 -0
  122. package/migrations/20261005161844_automation_versions/snapshot.json +150 -0
  123. package/migrations/20261006152043_user_timezone/snapshot.json +37 -0
  124. package/migrations/20261008200858_user_admin/snapshot.json +37 -0
  125. package/migrations/20261009145407_event_automation_status_reason/snapshot.json +42 -0
  126. package/migrations/20261013160816_agent_invocation_parent_mailbox/snapshot.json +93 -0
  127. package/migrations/20261013215020_agent_invocation_parent_tool_call/snapshot.json +42 -0
  128. package/migrations/20261014011138_agent_invocation_title/snapshot.json +42 -0
  129. package/migrations/20261014211942_conversation_stopped_at/snapshot.json +42 -0
  130. package/migrations/20261015012820_flowery_rage/snapshot.json +42 -0
  131. package/migrations/20261017000924_automations/snapshot.json +790 -0
  132. package/migrations/20261017134736_automation_runs/snapshot.json +474 -0
  133. package/migrations/20261017170250_drop_legacy_automation_tables/snapshot.json +397 -0
  134. package/migrations/20261018134754_automation_creator_identity/snapshot.json +130 -0
  135. package/migrations/20261023071954_automation_run_version/snapshot.json +79 -0
  136. package/migrations/20261025233137_identity_signed_in_at/snapshot.json +42 -0
  137. package/migrations/20261027234315_workspace_vcpus/snapshot.json +37 -0
  138. package/migrations/20261028124242_plugin_report_index/snapshot.json +68 -0
  139. package/migrations/20261028154230_agent_invocation_type/snapshot.json +42 -0
  140. package/migrations/20261030021803_any_resource_event_triggers/snapshot.json +42 -0
  141. package/migrations/20261030234309_user_customization/snapshot.json +37 -0
  142. package/migrations/20261031020656_review_items/snapshot.json +1078 -0
  143. package/migrations/20261031024151_review_item_dedupe_tenant/snapshot.json +62 -0
  144. package/migrations/20261031024246_review_item_slack_cards/snapshot.json +159 -0
  145. package/migrations/20261031155308_system_identity/snapshot.json +9 -0
  146. package/migrations/20261101193952_review_item_foreign_keys/snapshot.json +108 -0
  147. package/migrations/20261102172751_review_item_turn/snapshot.json +42 -0
  148. package/migrations/20261102221411_conversation_read_positions/snapshot.json +190 -0
  149. package/migrations/20261104085028_conversation_quick_question/snapshot.json +42 -0
  150. package/migrations/20261104145136_conversation_participant_pins/snapshot.json +42 -0
  151. package/migrations/20261104164429_conversation_detail_version/snapshot.json +42 -0
  152. package/migrations/20261104172055_conversation_auto_archive/snapshot.json +206 -0
  153. package/migrations/20261105005443_drop_agent_invocation_model_profile/snapshot.json +30 -0
  154. package/migrations/20261105043807_plugin_conversation_index/snapshot.json +76 -0
  155. package/migrations/20261105051837_conversation_event_author_index/snapshot.json +70 -0
  156. package/migrations/20261105182854_conversation_event_latest_message_indexes/snapshot.json +136 -0
  157. package/migrations/20261106011443_conversation_pin_position/snapshot.json +42 -0
  158. package/migrations/20261106095004_push_notifications/snapshot.json +308 -0
  159. package/migrations/20261106162740_conversation_kind/snapshot.json +88 -0
  160. package/migrations/20261107002001_read_position_backfill/snapshot.json +9 -0
  161. package/migrations/20261107025209_child_archived_at/snapshot.json +42 -0
  162. package/migrations/20261107035735_shared_archive/snapshot.json +67 -0
  163. package/migrations/20261107215055_child_location/snapshot.json +9 -0
  164. package/migrations/20261108191927_conversation_unsubscribe/snapshot.json +42 -0
  165. package/migrations/20261109021618_conversation_paused_status/snapshot.json +9 -0
  166. package/migrations/20261109111553_guardian_review_time_index/snapshot.json +54 -0
  167. package/migrations/20261109173130_conversation_participant_unsubscribed_index/snapshot.json +62 -0
  168. package/migrations/20261109182006_turn_metric_actor/snapshot.json +128 -0
  169. package/migrations/20261109202836_participant_root_actor_backfill/snapshot.json +9 -0
  170. package/migrations/20261109232640_conversation_delivery_paused_at/snapshot.json +42 -0
  171. package/migrations/20261110120937_web_linked_slack_identity_repair/snapshot.json +9 -0
  172. package/migrations/20261110175824_automation_task_kind/snapshot.json +145 -0
  173. package/migrations/20261110210242_conversation_kind_automation/snapshot.json +55 -0
  174. package/migrations/20261110222632_review_item_plugin_actions/snapshot.json +37 -0
  175. package/migrations/20261110225157_conversation_last_message_at/snapshot.json +42 -0
  176. package/migrations/20261111013351_automation_task_kind_repair/snapshot.json +9 -0
  177. package/migrations/20261111163126_drop_legacy_columns/snapshot.json +9 -0
  178. package/migrations/20261111170150_code_change_last_activity/snapshot.json +42 -0
  179. package/migrations/20261111191441_agent_invocation_fork/snapshot.json +42 -0
  180. package/migrations/20261112142841_code_change_draft/snapshot.json +37 -0
  181. package/migrations/20261112202901_attachment_uploads/snapshot.json +255 -0
  182. package/migrations/20261112220407_conversation_agent_config/snapshot.json +42 -0
  183. package/migrations/20261113081247_attachment_deferred_download/snapshot.json +52 -0
  184. package/migrations/20261113225551_conversation_embeddings/snapshot.json +203 -0
  185. package/migrations/20261114213238_user_preferences/snapshot.json +37 -0
  186. package/migrations/20261114222527_code_change_repository_state_index/snapshot.json +70 -0
  187. package/migrations/20261115172605_attachment_kinds/snapshot.json +244 -0
  188. package/migrations/20261115173004_attachment_url_fill/snapshot.json +9 -0
  189. package/migrations/20261115180216_attachment_url_index/snapshot.json +62 -0
  190. package/migrations/20261116103700_plan_items/snapshot.json +420 -0
  191. package/migrations/20261117100100_automation_creator_slack_index/snapshot.json +62 -0
  192. package/migrations/20261117132522_conversation_event_search/snapshot.json +396 -0
  193. package/migrations/20261117164007_automation_last_run/snapshot.json +108 -0
  194. package/migrations/20261117164047_automation_last_run_index/snapshot.json +54 -0
  195. package/migrations/20261117210444_money_micro_usd/snapshot.json +68 -0
  196. package/migrations/20261117210505_conversation_cost_micro_usd/snapshot.json +9 -0
  197. package/migrations/20261118081416_people_list_metric_index/snapshot.json +86 -0
  198. package/migrations/20261118095216_automation_rollout_repair/snapshot.json +9 -0
  199. package/migrations/20261118143948_cache_warming_history_reset/snapshot.json +9 -0
  200. package/migrations/20261119040651_artifact_visibility/snapshot.json +132 -0
  201. package/migrations/20261119040715_artifact_public_sha_index/snapshot.json +9 -0
  202. package/migrations/20261119052706_artifact_drop_public/snapshot.json +71 -0
  203. package/migrations/20261119053831_artifact_path/snapshot.json +114 -0
  204. package/migrations/20261119053844_artifact_path_index/snapshot.json +9 -0
  205. package/migrations/20261119091949_review_item_answered_index/snapshot.json +70 -0
  206. package/migrations/20261119100029_review_item_status_index/snapshot.json +54 -0
  207. package/migrations/20261119165607_brief_outcome_status/snapshot.json +42 -0
  208. package/migrations/20261119165622_brief_outcome_status_backfill/snapshot.json +9 -0
  209. package/migrations/20261119213716_brief_created_at_index/snapshot.json +62 -0
  210. package/migrations/20261119222456_slack_person_search_index/snapshot.json +50 -0
  211. package/migrations/20261119225522_code_change_size/snapshot.json +104 -0
  212. package/migrations/20261119232253_merge_conflict_notice_dismiss/snapshot.json +9 -0
  213. package/migrations/20261119235649_inbox_snoozes/snapshot.json +605 -0
  214. package/migrations/20261120093118_code_change_search_index/snapshot.json +89 -0
  215. package/migrations/20261120093452_review_item_owner/snapshot.json +314 -0
  216. package/migrations/20261120185654_review_item_owner_index/snapshot.json +62 -0
  217. package/migrations/20261120185754_memory_core_adoption/snapshot.json +1184 -0
  218. package/migrations/20261120185854_memory_core_indexes/snapshot.json +70 -0
  219. package/migrations/20261120235226_todos/snapshot.json +473 -0
  220. package/migrations/20261121082316_inbox_items/snapshot.json +2026 -0
  221. package/migrations/20261121175651_todo_changed_by_agent/snapshot.json +42 -0
  222. package/migrations/20261121183527_inbox_item_subject_title_parts/snapshot.json +42 -0
  223. package/migrations/20261121194143_inbox_snooze_wake_reason/snapshot.json +42 -0
  224. package/migrations/20261121222400_authorization_request_index/snapshot.json +62 -0
  225. package/migrations/20261121225908_conversation_metadata/snapshot.json +184 -0
  226. package/migrations/20261121225910_conversation_metadata_fill/snapshot.json +9 -0
  227. package/migrations/20261121225913_conversation_search_index/snapshot.json +50 -0
  228. package/migrations/20261122022900_inbox_item_legacy_automation_keys/snapshot.json +9 -0
  229. package/migrations/20261122024454_artifact_expiry/snapshot.json +37 -0
  230. package/migrations/20261122024455_artifact_permanent_sha_index/snapshot.json +62 -0
  231. package/migrations/20261122024457_artifact_drop_public_sha_index/snapshot.json +37 -0
  232. package/migrations/20261122024458_conversation_kind_lead/snapshot.json +55 -0
  233. package/migrations/20261122024459_conversation_lead_actor_index/snapshot.json +54 -0
  234. package/migrations/20261122071549_keep_legacy_archive_columns/snapshot.json +49 -0
  235. package/migrations/20261122191400_conversation_embeddings_fk_validate/snapshot.json +9 -0
  236. package/migrations/20261122204325_money_micro_usd_repair/snapshot.json +9 -0
  237. package/migrations/20261122204326_agent_config_backfill/snapshot.json +143 -0
  238. package/migrations/20261122221456_inbox_item_deliveries/snapshot.json +301 -0
  239. package/migrations/20261123155735_pg_trgm/snapshot.json +9 -0
  240. package/migrations/20261123155739_search_indexes/snapshot.json +167 -0
  241. package/migrations/20261123172647_drop_legacy_archive_columns/snapshot.json +9 -0
  242. package/migrations/20261123192506_memory_prefix_index/snapshot.json +69 -0
  243. package/migrations/20261123201740_todo_search_indexes/snapshot.json +89 -0
  244. package/migrations/20261123211505_todo_inbox_items/snapshot.json +38 -0
  245. package/migrations/20261123214917_drop_code_urls/snapshot.json +44 -0
  246. package/migrations/20261123224000_code_change_conversations_index/migration.sql +1 -0
  247. package/migrations/20261123224000_code_change_conversations_index/snapshot.json +54 -0
  248. package/migrations/20261124122023_drop_code_change_sizes/migration.sql +4 -0
  249. package/migrations/20261124122023_drop_code_change_sizes/snapshot.json +82 -0
  250. package/migrations/20261124142958_conversation_root_lookup_index/migration.sql +1 -0
  251. package/migrations/20261124142958_conversation_root_lookup_index/snapshot.json +62 -0
  252. package/migrations/20261124183352_legacy_brief_metadata_fill/migration.sql +26 -0
  253. package/migrations/20261124183352_legacy_brief_metadata_fill/snapshot.json +114 -0
  254. package/migrations/20261124202143_drizzle_v1_baseline/migration.sql +5 -0
  255. package/migrations/20261124202143_drizzle_v1_baseline/snapshot.json +2012 -0
  256. package/migrations/20261124221751_spaces/migration.sql +22 -0
  257. package/migrations/20261124221751_spaces/snapshot.json +436 -0
  258. package/migrations/20261124230319_conversation_metrics_utc_day_stats/migration.sql +11 -0
  259. package/migrations/20261124230319_conversation_metrics_utc_day_stats/snapshot.json +9 -0
  260. package/migrations/20261124234024_space_conversations/migration.sql +5 -0
  261. package/migrations/20261124234024_space_conversations/snapshot.json +103 -0
  262. package/migrations/20261124234026_space_conversations_index/migration.sql +1 -0
  263. package/migrations/20261124234026_space_conversations_index/snapshot.json +62 -0
  264. package/migrations/20261125012448_drop_lead_actor_index/migration.sql +3 -0
  265. package/migrations/20261125012448_drop_lead_actor_index/snapshot.json +36 -0
  266. package/migrations/20261125012452_space_lead_index/migration.sql +1 -0
  267. package/migrations/20261125012452_space_lead_index/snapshot.json +54 -0
  268. package/migrations/20261125043821_space_configurations/migration.sql +11 -0
  269. package/migrations/20261125043821_space_configurations/snapshot.json +194 -0
  270. package/migrations/20261125064854_agent_update_done_status/migration.sql +9 -0
  271. package/migrations/20261125064854_agent_update_done_status/snapshot.json +9 -0
  272. package/migrations/20261125073321_turn_engine_tables/migration.sql +75 -0
  273. package/migrations/20261125073321_turn_engine_tables/snapshot.json +1497 -0
  274. package/migrations/20261125073339_turn_inbox_one_source/migration.sql +5 -0
  275. package/migrations/20261125073339_turn_inbox_one_source/snapshot.json +9 -0
  276. package/migrations/20261125124506_versions_notify/migration.sql +27 -0
  277. package/migrations/20261125124506_versions_notify/snapshot.json +9 -0
  278. package/migrations/20261125140339_turn_group_key/migration.sql +14 -0
  279. package/migrations/20261125140339_turn_group_key/snapshot.json +75 -0
  280. package/migrations/20261125140343_turn_group_key_not_null/migration.sql +4 -0
  281. package/migrations/20261125140343_turn_group_key_not_null/snapshot.json +29 -0
  282. package/migrations/20261125142845_code_change_requesters/migration.sql +1 -0
  283. package/migrations/20261125142845_code_change_requesters/snapshot.json +42 -0
  284. package/migrations/20261125142846_code_change_requesters_index/migration.sql +1 -0
  285. package/migrations/20261125142846_code_change_requesters_index/snapshot.json +54 -0
  286. package/migrations/20261125143903_space_visibility/migration.sql +1 -0
  287. package/migrations/20261125143903_space_visibility/snapshot.json +37 -0
  288. package/migrations/20261125154848_merge_leaves/migration.sql +2 -0
  289. package/migrations/20261125154848_merge_leaves/snapshot.json +14 -0
  290. package/package.json +13 -12
  291. package/skills/design-automation-skill/SKILL.md +1 -1
  292. package/dist/adapter-JARQvoLw.js +0 -258
  293. package/dist/adapter-context-B4BrJZuS.js +0 -43
  294. package/dist/agent-runner-qZU5TR8i.js +0 -11974
  295. package/dist/agent-update-cS7Z9mnG.js +0 -26
  296. package/dist/agent-update-delivery-CZ5M8RDa.js +0 -85
  297. package/dist/background-compaction-queue-C_uIBUvS.js +0 -145
  298. package/dist/callback-C8SdXCwr.js +0 -68
  299. package/dist/catalog-runtime-BLKtnUL3.js +0 -6
  300. package/dist/config-BIfHKNXN.js +0 -2336
  301. package/dist/db-BTmLKZrp.js +0 -5804
  302. package/dist/db-DcmzbA55.d.ts +0 -274
  303. package/dist/history-CneKY7_V.js +0 -595
  304. package/dist/install-OtFboxOM.js +0 -228
  305. package/dist/proxy-path-BHYoKZdq.js +0 -15
  306. package/dist/registry-D6kS6xYH.js +0 -3024
  307. package/dist/rule-DAxQY-1h.js +0 -20
  308. package/dist/schema-BB6E0wyV.d.ts +0 -9472
  309. package/dist/start-conversation-a4NXH4X9.js +0 -752
  310. package/dist/store-BuhF1QDm.js +0 -490
  311. package/dist/task-queue-CrRjFzOh.js +0 -79
  312. package/dist/turn-session-routing-CZTRU8IY.js +0 -116
  313. package/dist/vercel-queue-nL0Hq3hr.js +0 -234
  314. package/dist/warmup-CCOuIwAS.js +0 -12759
  315. package/migrations/meta/0000_snapshot.json +0 -946
  316. package/migrations/meta/0001_snapshot.json +0 -972
  317. package/migrations/meta/0002_snapshot.json +0 -987
  318. package/migrations/meta/0003_snapshot.json +0 -1035
  319. package/migrations/meta/0004_snapshot.json +0 -1041
  320. package/migrations/meta/0005_snapshot.json +0 -948
  321. package/migrations/meta/0006_snapshot.json +0 -948
  322. package/migrations/meta/0007_snapshot.json +0 -1013
  323. package/migrations/meta/0008_snapshot.json +0 -1076
  324. package/migrations/meta/0009_snapshot.json +0 -1146
  325. package/migrations/meta/0010_snapshot.json +0 -1190
  326. package/migrations/meta/0011_snapshot.json +0 -1195
  327. package/migrations/meta/0012_snapshot.json +0 -1244
  328. package/migrations/meta/0013_snapshot.json +0 -1250
  329. package/migrations/meta/0014_snapshot.json +0 -1201
  330. package/migrations/meta/0015_snapshot.json +0 -1360
  331. package/migrations/meta/0016_snapshot.json +0 -1617
  332. package/migrations/meta/0017_snapshot.json +0 -1666
  333. package/migrations/meta/0018_snapshot.json +0 -1756
  334. package/migrations/meta/0019_snapshot.json +0 -1904
  335. package/migrations/meta/0020_snapshot.json +0 -1848
  336. package/migrations/meta/0021_snapshot.json +0 -2176
  337. package/migrations/meta/0022_snapshot.json +0 -2186
  338. package/migrations/meta/0023_snapshot.json +0 -2198
  339. package/migrations/meta/0024_snapshot.json +0 -2275
  340. package/migrations/meta/0025_snapshot.json +0 -2275
  341. package/migrations/meta/0026_snapshot.json +0 -2424
  342. package/migrations/meta/0027_snapshot.json +0 -2554
  343. package/migrations/meta/0028_snapshot.json +0 -2685
  344. package/migrations/meta/0029_snapshot.json +0 -2709
  345. package/migrations/meta/0030_snapshot.json +0 -2799
  346. package/migrations/meta/0031_snapshot.json +0 -2823
  347. package/migrations/meta/0032_snapshot.json +0 -2892
  348. package/migrations/meta/0033_snapshot.json +0 -2914
  349. package/migrations/meta/0034_snapshot.json +0 -3038
  350. package/migrations/meta/0035_snapshot.json +0 -3048
  351. package/migrations/meta/0036_snapshot.json +0 -3186
  352. package/migrations/meta/0037_snapshot.json +0 -3192
  353. package/migrations/meta/0038_snapshot.json +0 -3323
  354. package/migrations/meta/0039_snapshot.json +0 -3368
  355. package/migrations/meta/0040_snapshot.json +0 -3516
  356. package/migrations/meta/0041_snapshot.json +0 -3516
  357. package/migrations/meta/0042_snapshot.json +0 -3610
  358. package/migrations/meta/0043_snapshot.json +0 -3610
  359. package/migrations/meta/0044_snapshot.json +0 -3473
  360. package/migrations/meta/0045_snapshot.json +0 -3503
  361. package/migrations/meta/0046_snapshot.json +0 -3707
  362. package/migrations/meta/0047_snapshot.json +0 -3713
  363. package/migrations/meta/0048_snapshot.json +0 -3720
  364. package/migrations/meta/0049_snapshot.json +0 -3581
  365. package/migrations/meta/0050_snapshot.json +0 -3753
  366. package/migrations/meta/0051_snapshot.json +0 -3759
  367. package/migrations/meta/0052_snapshot.json +0 -3765
  368. package/migrations/meta/0053_snapshot.json +0 -3771
  369. package/migrations/meta/0054_snapshot.json +0 -3777
  370. package/migrations/meta/0055_snapshot.json +0 -3948
  371. package/migrations/meta/0056_snapshot.json +0 -4280
  372. package/migrations/meta/0057_snapshot.json +0 -3618
  373. package/migrations/meta/0058_snapshot.json +0 -3598
  374. package/migrations/meta/0059_snapshot.json +0 -3619
  375. package/migrations/meta/0060_snapshot.json +0 -3465
  376. package/migrations/meta/0061_snapshot.json +0 -3471
  377. package/migrations/meta/0062_snapshot.json +0 -3499
  378. package/migrations/meta/0063_snapshot.json +0 -3505
  379. package/migrations/meta/0064_snapshot.json +0 -3505
  380. package/migrations/meta/0065_snapshot.json +0 -3511
  381. package/migrations/meta/0066_snapshot.json +0 -4099
  382. package/migrations/meta/0067_snapshot.json +0 -3921
  383. package/migrations/meta/0068_snapshot.json +0 -4176
  384. package/migrations/meta/0069_snapshot.json +0 -3979
  385. package/migrations/meta/0070_snapshot.json +0 -3997
  386. package/migrations/meta/0071_snapshot.json +0 -4003
  387. package/migrations/meta/0072_snapshot.json +0 -4064
  388. package/migrations/meta/0073_snapshot.json +0 -4070
  389. package/migrations/meta/0074_snapshot.json +0 -4076
  390. package/migrations/meta/0075_snapshot.json +0 -4083
  391. package/migrations/meta/0076_snapshot.json +0 -4147
  392. package/migrations/meta/0077_snapshot.json +0 -4141
  393. package/migrations/meta/0078_snapshot.json +0 -4175
  394. package/migrations/meta/0079_snapshot.json +0 -4203
  395. package/migrations/meta/0080_snapshot.json +0 -4265
  396. package/migrations/meta/0081_snapshot.json +0 -4271
  397. package/migrations/meta/0082_snapshot.json +0 -4373
  398. package/migrations/meta/0083_snapshot.json +0 -4388
  399. package/migrations/meta/0084_snapshot.json +0 -4388
  400. package/migrations/meta/0085_snapshot.json +0 -4394
  401. package/migrations/meta/0086_snapshot.json +0 -4366
  402. package/migrations/meta/0087_snapshot.json +0 -4366
  403. package/migrations/meta/0088_snapshot.json +0 -4372
  404. package/migrations/meta/0089_snapshot.json +0 -4372
  405. package/migrations/meta/0090_snapshot.json +0 -4388
  406. package/migrations/meta/0091_snapshot.json +0 -4410
  407. package/migrations/meta/0092_snapshot.json +0 -4446
  408. package/migrations/meta/0093_snapshot.json +0 -4446
  409. package/migrations/meta/0094_snapshot.json +0 -4452
  410. package/migrations/meta/0095_snapshot.json +0 -4452
  411. package/migrations/meta/0096_snapshot.json +0 -4490
  412. package/migrations/meta/0097_snapshot.json +0 -4490
  413. package/migrations/meta/0098_snapshot.json +0 -4490
  414. package/migrations/meta/0099_snapshot.json +0 -4496
  415. package/migrations/meta/0100_snapshot.json +0 -4496
  416. package/migrations/meta/0101_snapshot.json +0 -4496
  417. package/migrations/meta/0102_snapshot.json +0 -4502
  418. package/migrations/meta/0103_snapshot.json +0 -4509
  419. package/migrations/meta/0104_snapshot.json +0 -4516
  420. package/migrations/meta/0105_snapshot.json +0 -4611
  421. package/migrations/meta/0106_snapshot.json +0 -4617
  422. package/migrations/meta/0107_snapshot.json +0 -4617
  423. package/migrations/meta/0108_snapshot.json +0 -4688
  424. package/migrations/meta/0109_snapshot.json +0 -4925
  425. package/migrations/meta/0110_snapshot.json +0 -4952
  426. package/migrations/meta/0111_snapshot.json +0 -5011
  427. package/migrations/meta/0112_snapshot.json +0 -5011
  428. package/migrations/meta/0113_snapshot.json +0 -5033
  429. package/migrations/meta/0114_snapshot.json +0 -5203
  430. package/migrations/meta/0115_snapshot.json +0 -5225
  431. package/migrations/meta/0116_snapshot.json +0 -5388
  432. package/migrations/meta/0117_snapshot.json +0 -5413
  433. package/migrations/meta/0118_snapshot.json +0 -5428
  434. package/migrations/meta/0119_snapshot.json +0 -5441
  435. package/migrations/meta/0120_snapshot.json +0 -5441
  436. package/migrations/meta/0121_snapshot.json +0 -5481
  437. package/migrations/meta/0122_snapshot.json +0 -5481
  438. package/migrations/meta/0123_snapshot.json +0 -5481
  439. package/migrations/meta/0124_snapshot.json +0 -5516
  440. package/migrations/meta/0125_snapshot.json +0 -5516
  441. package/migrations/meta/0126_snapshot.json +0 -5488
  442. package/migrations/meta/0127_snapshot.json +0 -5519
  443. package/migrations/meta/0128_snapshot.json +0 -5519
  444. package/migrations/meta/0129_snapshot.json +0 -5547
  445. package/migrations/meta/0130_snapshot.json +0 -5563
  446. package/migrations/meta/0131_snapshot.json +0 -5569
  447. package/migrations/meta/0132_snapshot.json +0 -5569
  448. package/migrations/meta/0133_snapshot.json +0 -5590
  449. package/migrations/meta/0134_snapshot.json +0 -5606
  450. package/migrations/meta/0135_snapshot.json +0 -5624
  451. package/migrations/meta/0136_snapshot.json +0 -5624
  452. package/migrations/meta/0137_snapshot.json +0 -5864
  453. package/migrations/meta/0138_snapshot.json +0 -5894
  454. package/migrations/meta/0139_snapshot.json +0 -5898
  455. package/migrations/meta/0140_snapshot.json +0 -5919
  456. package/migrations/meta/0141_snapshot.json +0 -6429
  457. package/migrations/meta/0142_snapshot.json +0 -6457
  458. package/migrations/meta/0143_snapshot.json +0 -6434
  459. package/migrations/meta/0144_snapshot.json +0 -6434
  460. package/migrations/meta/0145_snapshot.json +0 -6440
  461. package/migrations/meta/0146_snapshot.json +0 -6446
  462. package/migrations/meta/0147_snapshot.json +0 -6452
  463. package/migrations/meta/0148_snapshot.json +0 -6474
  464. package/migrations/meta/0149_snapshot.json +0 -6490
  465. package/migrations/meta/0150_snapshot.json +0 -6490
  466. package/migrations/meta/0151_snapshot.json +0 -6505
  467. package/migrations/meta/0152_snapshot.json +0 -6505
  468. package/migrations/meta/0153_snapshot.json +0 -6511
  469. package/migrations/meta/0154_snapshot.json +0 -6533
  470. package/migrations/meta/0155_snapshot.json +0 -6511
  471. package/migrations/meta/0156_snapshot.json +0 -6511
  472. package/migrations/meta/0157_snapshot.json +0 -6527
  473. package/migrations/meta/0158_snapshot.json +0 -6515
  474. package/migrations/meta/0159_snapshot.json +0 -6515
  475. package/migrations/meta/0160_snapshot.json +0 -6515
  476. package/migrations/meta/0161_snapshot.json +0 -6278
  477. package/migrations/meta/0162_snapshot.json +0 -6404
  478. package/migrations/meta/0163_snapshot.json +0 -6404
  479. package/migrations/meta/0164_snapshot.json +0 -6466
  480. package/migrations/meta/0165_snapshot.json +0 -6466
  481. package/migrations/meta/0166_snapshot.json +0 -6494
  482. package/migrations/meta/0167_snapshot.json +0 -6525
  483. package/migrations/meta/0168_snapshot.json +0 -6525
  484. package/migrations/meta/0169_snapshot.json +0 -6513
  485. package/migrations/meta/_journal.json +0 -1196
  486. /package/migrations/{0000_initial.sql → 20260711145847_initial/migration.sql} +0 -0
  487. /package/migrations/{0001_conversation_metrics.sql → 20260711145900_conversation_metrics/migration.sql} +0 -0
  488. /package/migrations/{0002_conversation_message_search.sql → 20260712153649_conversation_message_search/migration.sql} +0 -0
  489. /package/migrations/{0003_peaceful_scalphunter.sql → 20260713040256_peaceful_scalphunter/migration.sql} +0 -0
  490. /package/migrations/{0004_useful_magus.sql → 20260715174202_useful_magus/migration.sql} +0 -0
  491. /package/migrations/{0005_conversation_events.sql → 20260715174203_conversation_events/migration.sql} +0 -0
  492. /package/migrations/{0006_drop_legacy_conversation_messages.sql → 20260723042835_drop_legacy_conversation_messages/migration.sql} +0 -0
  493. /package/migrations/{0007_thick_sugar_man.sql → 20260723050612_thick_sugar_man/migration.sql} +0 -0
  494. /package/migrations/{0008_sticky_rage.sql → 20260727223822_sticky_rage/migration.sql} +0 -0
  495. /package/migrations/{0009_slippery_harrier.sql → 20260728033158_slippery_harrier/migration.sql} +0 -0
  496. /package/migrations/{0010_native_conversation_history.sql → 20260728040836_native_conversation_history/migration.sql} +0 -0
  497. /package/migrations/{0011_sour_golden_guardian.sql → 20260728204900_sour_golden_guardian/migration.sql} +0 -0
  498. /package/migrations/{0012_structured_conversation_events.sql → 20260730233332_structured_conversation_events/migration.sql} +0 -0
  499. /package/migrations/{0013_conversation_session_source.sql → 20260731164038_conversation_session_source/migration.sql} +0 -0
  500. /package/migrations/{0014_source_visibility.sql → 20260801230336_source_visibility/migration.sql} +0 -0
  501. /package/migrations/{0015_magical_ezekiel_stane.sql → 20260802023731_magical_ezekiel_stane/migration.sql} +0 -0
  502. /package/migrations/{0016_neat_the_anarchist.sql → 20260804015843_neat_the_anarchist/migration.sql} +0 -0
  503. /package/migrations/{0017_drop_paused_scheduled_tasks.sql → 20260804165952_drop_paused_scheduled_tasks/migration.sql} +0 -0
  504. /package/migrations/{0018_curvy_excalibur.sql → 20260804225613_curvy_excalibur/migration.sql} +0 -0
  505. /package/migrations/{0019_lowly_valkyrie.sql → 20260805174033_lowly_valkyrie/migration.sql} +0 -0
  506. /package/migrations/{0020_restrict_task_execution_kinds.sql → 20260805200301_restrict_task_execution_kinds/migration.sql} +0 -0
  507. /package/migrations/{0021_first_warhawk.sql → 20260806030729_first_warhawk/migration.sql} +0 -0
  508. /package/migrations/{0022_task_execution_status.sql → 20260807185200_task_execution_status/migration.sql} +0 -0
  509. /package/migrations/{0023_task_title_columns.sql → 20260808014743_task_title_columns/migration.sql} +0 -0
  510. /package/migrations/{0024_misty_typhoid_mary.sql → 20260809220421_misty_typhoid_mary/migration.sql} +0 -0
  511. /package/migrations/{0025_mcp_credential_subject.sql → 20260811193709_mcp_credential_subject/migration.sql} +0 -0
  512. /package/migrations/{0026_conversation_event_actor_and_participants.sql → 20260812032924_conversation_event_actor_and_participants/migration.sql} +0 -0
  513. /package/migrations/{0027_attachment_storage.sql → 20260812172418_attachment_storage/migration.sql} +0 -0
  514. /package/migrations/{0028_artifacts.sql → 20260813230732_artifacts/migration.sql} +0 -0
  515. /package/migrations/{0029_dizzy_barracuda.sql → 20260814062905_dizzy_barracuda/migration.sql} +0 -0
  516. /package/migrations/{0030_drop_workspace_repo_primary.sql → 20260814231353_drop_workspace_repo_primary/migration.sql} +0 -0
  517. /package/migrations/{0031_wild_phantom_reporter.sql → 20260815030100_wild_phantom_reporter/migration.sql} +0 -0
  518. /package/migrations/{0032_workspace_snapshots_table.sql → 20260817082233_workspace_snapshots_table/migration.sql} +0 -0
  519. /package/migrations/{0033_workspace_snapshot_active_build.sql → 20260818160339_workspace_snapshot_active_build/migration.sql} +0 -0
  520. /package/migrations/{0034_strong_randall.sql → 20260821180755_strong_randall/migration.sql} +0 -0
  521. /package/migrations/{0035_workspace_snapshot_size_bytes.sql → 20260823030308_workspace_snapshot_size_bytes/migration.sql} +0 -0
  522. /package/migrations/{0036_complex_rage.sql → 20260824190313_complex_rage/migration.sql} +0 -0
  523. /package/migrations/{0037_conversation_location.sql → 20260827233711_conversation_location/migration.sql} +0 -0
  524. /package/migrations/{0038_event_task_status.sql → 20260901224306_event_task_status/migration.sql} +0 -0
  525. /package/migrations/{0039_attachment_provider.sql → 20260904153232_attachment_provider/migration.sql} +0 -0
  526. /package/migrations/{0040_conversation_briefs.sql → 20260909111415_conversation_briefs/migration.sql} +0 -0
  527. /package/migrations/{0041_automation_outcomes_backfill.sql → 20260910144928_automation_outcomes_backfill/migration.sql} +0 -0
  528. /package/migrations/{0042_conversation_metrics.sql → 20260911184346_conversation_metrics/migration.sql} +0 -0
  529. /package/migrations/{0043_scheduled_automation_channel_destinations.sql → 20260921140842_scheduled_automation_channel_destinations/migration.sql} +0 -0
  530. /package/migrations/{0044_event_automation_channel_destinations.sql → 20260922221709_event_automation_channel_destinations/migration.sql} +0 -0
  531. /package/migrations/{0045_conversation_forks.sql → 20261001113455_conversation_forks/migration.sql} +0 -0
  532. /package/migrations/{0046_automation_versions.sql → 20261005161844_automation_versions/migration.sql} +0 -0
  533. /package/migrations/{0047_user_timezone.sql → 20261006152043_user_timezone/migration.sql} +0 -0
  534. /package/migrations/{0048_user_admin.sql → 20261008200858_user_admin/migration.sql} +0 -0
  535. /package/migrations/{0049_event_automation_status_reason.sql → 20261009145407_event_automation_status_reason/migration.sql} +0 -0
  536. /package/migrations/{0050_agent_invocation_parent_mailbox.sql → 20261013160816_agent_invocation_parent_mailbox/migration.sql} +0 -0
  537. /package/migrations/{0051_agent_invocation_parent_tool_call.sql → 20261013215020_agent_invocation_parent_tool_call/migration.sql} +0 -0
  538. /package/migrations/{0052_agent_invocation_title.sql → 20261014011138_agent_invocation_title/migration.sql} +0 -0
  539. /package/migrations/{0053_conversation_stopped_at.sql → 20261014211942_conversation_stopped_at/migration.sql} +0 -0
  540. /package/migrations/{0054_flowery_rage.sql → 20261015012820_flowery_rage/migration.sql} +0 -0
  541. /package/migrations/{0055_automations.sql → 20261017000924_automations/migration.sql} +0 -0
  542. /package/migrations/{0056_automation_runs.sql → 20261017134736_automation_runs/migration.sql} +0 -0
  543. /package/migrations/{0057_drop_legacy_automation_tables.sql → 20261017170250_drop_legacy_automation_tables/migration.sql} +0 -0
  544. /package/migrations/{0058_automation_creator_identity.sql → 20261018134754_automation_creator_identity/migration.sql} +0 -0
  545. /package/migrations/{0059_automation_run_version.sql → 20261023071954_automation_run_version/migration.sql} +0 -0
  546. /package/migrations/{0060_identity_signed_in_at.sql → 20261025233137_identity_signed_in_at/migration.sql} +0 -0
  547. /package/migrations/{0061_workspace_vcpus.sql → 20261027234315_workspace_vcpus/migration.sql} +0 -0
  548. /package/migrations/{0062_plugin_report_index.sql → 20261028124242_plugin_report_index/migration.sql} +0 -0
  549. /package/migrations/{0063_agent_invocation_type.sql → 20261028154230_agent_invocation_type/migration.sql} +0 -0
  550. /package/migrations/{0064_any_resource_event_triggers.sql → 20261030021803_any_resource_event_triggers/migration.sql} +0 -0
  551. /package/migrations/{0065_user_customization.sql → 20261030234309_user_customization/migration.sql} +0 -0
  552. /package/migrations/{0066_review_items.sql → 20261031020656_review_items/migration.sql} +0 -0
  553. /package/migrations/{0067_review_item_dedupe_tenant.sql → 20261031024151_review_item_dedupe_tenant/migration.sql} +0 -0
  554. /package/migrations/{0068_review_item_slack_cards.sql → 20261031024246_review_item_slack_cards/migration.sql} +0 -0
  555. /package/migrations/{0069_system_identity.sql → 20261031155308_system_identity/migration.sql} +0 -0
  556. /package/migrations/{0070_review_item_foreign_keys.sql → 20261101193952_review_item_foreign_keys/migration.sql} +0 -0
  557. /package/migrations/{0071_review_item_turn.sql → 20261102172751_review_item_turn/migration.sql} +0 -0
  558. /package/migrations/{0072_conversation_read_positions.sql → 20261102221411_conversation_read_positions/migration.sql} +0 -0
  559. /package/migrations/{0073_conversation_quick_question.sql → 20261104085028_conversation_quick_question/migration.sql} +0 -0
  560. /package/migrations/{0074_conversation_participant_pins.sql → 20261104145136_conversation_participant_pins/migration.sql} +0 -0
  561. /package/migrations/{0075_conversation_detail_version.sql → 20261104164429_conversation_detail_version/migration.sql} +0 -0
  562. /package/migrations/{0076_conversation_auto_archive.sql → 20261104172055_conversation_auto_archive/migration.sql} +0 -0
  563. /package/migrations/{0077_drop_agent_invocation_model_profile.sql → 20261105005443_drop_agent_invocation_model_profile/migration.sql} +0 -0
  564. /package/migrations/{0078_plugin_conversation_index.sql → 20261105043807_plugin_conversation_index/migration.sql} +0 -0
  565. /package/migrations/{0079_conversation_event_author_index.sql → 20261105051837_conversation_event_author_index/migration.sql} +0 -0
  566. /package/migrations/{0080_conversation_event_latest_message_indexes.sql → 20261105182854_conversation_event_latest_message_indexes/migration.sql} +0 -0
  567. /package/migrations/{0081_conversation_pin_position.sql → 20261106011443_conversation_pin_position/migration.sql} +0 -0
  568. /package/migrations/{0082_push_notifications.sql → 20261106095004_push_notifications/migration.sql} +0 -0
  569. /package/migrations/{0083_conversation_kind.sql → 20261106162740_conversation_kind/migration.sql} +0 -0
  570. /package/migrations/{0084_read_position_backfill.sql → 20261107002001_read_position_backfill/migration.sql} +0 -0
  571. /package/migrations/{0085_child_archived_at.sql → 20261107025209_child_archived_at/migration.sql} +0 -0
  572. /package/migrations/{0086_shared_archive.sql → 20261107035735_shared_archive/migration.sql} +0 -0
  573. /package/migrations/{0087_child_location.sql → 20261107215055_child_location/migration.sql} +0 -0
  574. /package/migrations/{0088_conversation_unsubscribe.sql → 20261108191927_conversation_unsubscribe/migration.sql} +0 -0
  575. /package/migrations/{0089_conversation_paused_status.sql → 20261109021618_conversation_paused_status/migration.sql} +0 -0
  576. /package/migrations/{0090_guardian_review_time_index.sql → 20261109111553_guardian_review_time_index/migration.sql} +0 -0
  577. /package/migrations/{0091_conversation_participant_unsubscribed_index.sql → 20261109173130_conversation_participant_unsubscribed_index/migration.sql} +0 -0
  578. /package/migrations/{0092_turn_metric_actor.sql → 20261109182006_turn_metric_actor/migration.sql} +0 -0
  579. /package/migrations/{0093_participant_root_actor_backfill.sql → 20261109202836_participant_root_actor_backfill/migration.sql} +0 -0
  580. /package/migrations/{0094_conversation_delivery_paused_at.sql → 20261109232640_conversation_delivery_paused_at/migration.sql} +0 -0
  581. /package/migrations/{0095_web_linked_slack_identity_repair.sql → 20261110120937_web_linked_slack_identity_repair/migration.sql} +0 -0
  582. /package/migrations/{0096_automation_task_kind.sql → 20261110175824_automation_task_kind/migration.sql} +0 -0
  583. /package/migrations/{0097_conversation_kind_automation.sql → 20261110210242_conversation_kind_automation/migration.sql} +0 -0
  584. /package/migrations/{0098_review_item_plugin_actions.sql → 20261110222632_review_item_plugin_actions/migration.sql} +0 -0
  585. /package/migrations/{0099_conversation_last_message_at.sql → 20261110225157_conversation_last_message_at/migration.sql} +0 -0
  586. /package/migrations/{0100_automation_task_kind_repair.sql → 20261111013351_automation_task_kind_repair/migration.sql} +0 -0
  587. /package/migrations/{0101_drop_legacy_columns.sql → 20261111163126_drop_legacy_columns/migration.sql} +0 -0
  588. /package/migrations/{0102_code_change_last_activity.sql → 20261111170150_code_change_last_activity/migration.sql} +0 -0
  589. /package/migrations/{0103_agent_invocation_fork.sql → 20261111191441_agent_invocation_fork/migration.sql} +0 -0
  590. /package/migrations/{0104_code_change_draft.sql → 20261112142841_code_change_draft/migration.sql} +0 -0
  591. /package/migrations/{0105_attachment_uploads.sql → 20261112202901_attachment_uploads/migration.sql} +0 -0
  592. /package/migrations/{0106_conversation_agent_config.sql → 20261112220407_conversation_agent_config/migration.sql} +0 -0
  593. /package/migrations/{0107_attachment_deferred_download.sql → 20261113081247_attachment_deferred_download/migration.sql} +0 -0
  594. /package/migrations/{0108_conversation_embeddings.sql → 20261113225551_conversation_embeddings/migration.sql} +0 -0
  595. /package/migrations/{0109_user_preferences.sql → 20261114213238_user_preferences/migration.sql} +0 -0
  596. /package/migrations/{0110_code_change_repository_state_index.sql → 20261114222527_code_change_repository_state_index/migration.sql} +0 -0
  597. /package/migrations/{0111_attachment_kinds.sql → 20261115172605_attachment_kinds/migration.sql} +0 -0
  598. /package/migrations/{0112_attachment_url_fill.sql → 20261115173004_attachment_url_fill/migration.sql} +0 -0
  599. /package/migrations/{0113_attachment_url_index.sql → 20261115180216_attachment_url_index/migration.sql} +0 -0
  600. /package/migrations/{0114_plan_items.sql → 20261116103700_plan_items/migration.sql} +0 -0
  601. /package/migrations/{0115_automation_creator_slack_index.sql → 20261117100100_automation_creator_slack_index/migration.sql} +0 -0
  602. /package/migrations/{0116_conversation_event_search.sql → 20261117132522_conversation_event_search/migration.sql} +0 -0
  603. /package/migrations/{0117_automation_last_run.sql → 20261117164007_automation_last_run/migration.sql} +0 -0
  604. /package/migrations/{0118_automation_last_run_index.sql → 20261117164047_automation_last_run_index/migration.sql} +0 -0
  605. /package/migrations/{0119_money_micro_usd.sql → 20261117210444_money_micro_usd/migration.sql} +0 -0
  606. /package/migrations/{0120_conversation_cost_micro_usd.sql → 20261117210505_conversation_cost_micro_usd/migration.sql} +0 -0
  607. /package/migrations/{0121_people_list_metric_index.sql → 20261118081416_people_list_metric_index/migration.sql} +0 -0
  608. /package/migrations/{0122_automation_rollout_repair.sql → 20261118095216_automation_rollout_repair/migration.sql} +0 -0
  609. /package/migrations/{0123_cache_warming_history_reset.sql → 20261118143948_cache_warming_history_reset/migration.sql} +0 -0
  610. /package/migrations/{0124_artifact_visibility.sql → 20261119040651_artifact_visibility/migration.sql} +0 -0
  611. /package/migrations/{0125_artifact_public_sha_index.sql → 20261119040715_artifact_public_sha_index/migration.sql} +0 -0
  612. /package/migrations/{0126_artifact_drop_public.sql → 20261119052706_artifact_drop_public/migration.sql} +0 -0
  613. /package/migrations/{0127_artifact_path.sql → 20261119053831_artifact_path/migration.sql} +0 -0
  614. /package/migrations/{0128_artifact_path_index.sql → 20261119053844_artifact_path_index/migration.sql} +0 -0
  615. /package/migrations/{0129_review_item_answered_index.sql → 20261119091949_review_item_answered_index/migration.sql} +0 -0
  616. /package/migrations/{0130_review_item_status_index.sql → 20261119100029_review_item_status_index/migration.sql} +0 -0
  617. /package/migrations/{0131_brief_outcome_status.sql → 20261119165607_brief_outcome_status/migration.sql} +0 -0
  618. /package/migrations/{0132_brief_outcome_status_backfill.sql → 20261119165622_brief_outcome_status_backfill/migration.sql} +0 -0
  619. /package/migrations/{0133_brief_created_at_index.sql → 20261119213716_brief_created_at_index/migration.sql} +0 -0
  620. /package/migrations/{0134_slack_person_search_index.sql → 20261119222456_slack_person_search_index/migration.sql} +0 -0
  621. /package/migrations/{0135_code_change_size.sql → 20261119225522_code_change_size/migration.sql} +0 -0
  622. /package/migrations/{0136_merge_conflict_notice_dismiss.sql → 20261119232253_merge_conflict_notice_dismiss/migration.sql} +0 -0
  623. /package/migrations/{0137_inbox_snoozes.sql → 20261119235649_inbox_snoozes/migration.sql} +0 -0
  624. /package/migrations/{0138_code_change_search_index.sql → 20261120093118_code_change_search_index/migration.sql} +0 -0
  625. /package/migrations/{0139_review_item_owner.sql → 20261120093452_review_item_owner/migration.sql} +0 -0
  626. /package/migrations/{0140_review_item_owner_index.sql → 20261120185654_review_item_owner_index/migration.sql} +0 -0
  627. /package/migrations/{0141_memory_core_adoption.sql → 20261120185754_memory_core_adoption/migration.sql} +0 -0
  628. /package/migrations/{0142_memory_core_indexes.sql → 20261120185854_memory_core_indexes/migration.sql} +0 -0
  629. /package/migrations/{0143_todos.sql → 20261120235226_todos/migration.sql} +0 -0
  630. /package/migrations/{0144_inbox_items.sql → 20261121082316_inbox_items/migration.sql} +0 -0
  631. /package/migrations/{0145_todo_changed_by_agent.sql → 20261121175651_todo_changed_by_agent/migration.sql} +0 -0
  632. /package/migrations/{0146_inbox_item_subject_title_parts.sql → 20261121183527_inbox_item_subject_title_parts/migration.sql} +0 -0
  633. /package/migrations/{0147_inbox_snooze_wake_reason.sql → 20261121194143_inbox_snooze_wake_reason/migration.sql} +0 -0
  634. /package/migrations/{0148_authorization_request_index.sql → 20261121222400_authorization_request_index/migration.sql} +0 -0
  635. /package/migrations/{0149_conversation_metadata.sql → 20261121225908_conversation_metadata/migration.sql} +0 -0
  636. /package/migrations/{0150_conversation_metadata_fill.sql → 20261121225910_conversation_metadata_fill/migration.sql} +0 -0
  637. /package/migrations/{0151_conversation_search_index.sql → 20261121225913_conversation_search_index/migration.sql} +0 -0
  638. /package/migrations/{0152_inbox_item_legacy_automation_keys.sql → 20261122022900_inbox_item_legacy_automation_keys/migration.sql} +0 -0
  639. /package/migrations/{0153_artifact_expiry.sql → 20261122024454_artifact_expiry/migration.sql} +0 -0
  640. /package/migrations/{0154_artifact_permanent_sha_index.sql → 20261122024455_artifact_permanent_sha_index/migration.sql} +0 -0
  641. /package/migrations/{0155_artifact_drop_public_sha_index.sql → 20261122024457_artifact_drop_public_sha_index/migration.sql} +0 -0
  642. /package/migrations/{0156_conversation_kind_lead.sql → 20261122024458_conversation_kind_lead/migration.sql} +0 -0
  643. /package/migrations/{0157_conversation_lead_actor_index.sql → 20261122024459_conversation_lead_actor_index/migration.sql} +0 -0
  644. /package/migrations/{0158_keep_legacy_archive_columns.sql → 20261122071549_keep_legacy_archive_columns/migration.sql} +0 -0
  645. /package/migrations/{0159_conversation_embeddings_fk_validate.sql → 20261122191400_conversation_embeddings_fk_validate/migration.sql} +0 -0
  646. /package/migrations/{0160_money_micro_usd_repair.sql → 20261122204325_money_micro_usd_repair/migration.sql} +0 -0
  647. /package/migrations/{0161_agent_config_backfill.sql → 20261122204326_agent_config_backfill/migration.sql} +0 -0
  648. /package/migrations/{0162_inbox_item_deliveries.sql → 20261122221456_inbox_item_deliveries/migration.sql} +0 -0
  649. /package/migrations/{0163_pg_trgm.sql → 20261123155735_pg_trgm/migration.sql} +0 -0
  650. /package/migrations/{0164_search_indexes.sql → 20261123155739_search_indexes/migration.sql} +0 -0
  651. /package/migrations/{0165_drop_legacy_archive_columns.sql → 20261123172647_drop_legacy_archive_columns/migration.sql} +0 -0
  652. /package/migrations/{0166_memory_prefix_index.sql → 20261123192506_memory_prefix_index/migration.sql} +0 -0
  653. /package/migrations/{0167_todo_search_indexes.sql → 20261123201740_todo_search_indexes/migration.sql} +0 -0
  654. /package/migrations/{0168_todo_inbox_items.sql → 20261123211505_todo_inbox_items/migration.sql} +0 -0
  655. /package/migrations/{0169_drop_code_urls.sql → 20261123214917_drop_code_urls/migration.sql} +0 -0
@@ -1,1848 +0,0 @@
1
- {
2
- "id": "0c1e6611-1101-44ef-9c06-e6e389a0a435",
3
- "prevId": "80dc4db3-8037-4fb0-a375-a2b4d217feb5",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.junior_api_tokens": {
8
- "name": "junior_api_tokens",
9
- "schema": "",
10
- "columns": {
11
- "id": {
12
- "name": "id",
13
- "type": "text",
14
- "primaryKey": true,
15
- "notNull": true
16
- },
17
- "owner_email_normalized": {
18
- "name": "owner_email_normalized",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true
22
- },
23
- "name": {
24
- "name": "name",
25
- "type": "text",
26
- "primaryKey": false,
27
- "notNull": true
28
- },
29
- "token_hash": {
30
- "name": "token_hash",
31
- "type": "text",
32
- "primaryKey": false,
33
- "notNull": true
34
- },
35
- "token_suffix": {
36
- "name": "token_suffix",
37
- "type": "text",
38
- "primaryKey": false,
39
- "notNull": true
40
- },
41
- "created_at": {
42
- "name": "created_at",
43
- "type": "timestamp with time zone",
44
- "primaryKey": false,
45
- "notNull": true
46
- },
47
- "expires_at": {
48
- "name": "expires_at",
49
- "type": "timestamp with time zone",
50
- "primaryKey": false,
51
- "notNull": true
52
- },
53
- "last_used_at": {
54
- "name": "last_used_at",
55
- "type": "timestamp with time zone",
56
- "primaryKey": false,
57
- "notNull": false
58
- },
59
- "revoked_at": {
60
- "name": "revoked_at",
61
- "type": "timestamp with time zone",
62
- "primaryKey": false,
63
- "notNull": false
64
- }
65
- },
66
- "indexes": {
67
- "junior_api_tokens_token_hash_uidx": {
68
- "name": "junior_api_tokens_token_hash_uidx",
69
- "columns": [
70
- {
71
- "expression": "token_hash",
72
- "isExpression": false,
73
- "asc": true,
74
- "nulls": "last"
75
- }
76
- ],
77
- "isUnique": true,
78
- "concurrently": false,
79
- "method": "btree",
80
- "with": {}
81
- },
82
- "junior_api_tokens_owner_email_idx": {
83
- "name": "junior_api_tokens_owner_email_idx",
84
- "columns": [
85
- {
86
- "expression": "owner_email_normalized",
87
- "isExpression": false,
88
- "asc": true,
89
- "nulls": "last"
90
- }
91
- ],
92
- "isUnique": false,
93
- "concurrently": false,
94
- "method": "btree",
95
- "with": {}
96
- }
97
- },
98
- "foreignKeys": {},
99
- "compositePrimaryKeys": {},
100
- "uniqueConstraints": {},
101
- "policies": {},
102
- "checkConstraints": {},
103
- "isRLSEnabled": false
104
- },
105
- "public.junior_conversation_annotations": {
106
- "name": "junior_conversation_annotations",
107
- "schema": "",
108
- "columns": {
109
- "conversation_id": {
110
- "name": "conversation_id",
111
- "type": "text",
112
- "primaryKey": false,
113
- "notNull": true
114
- },
115
- "plugin": {
116
- "name": "plugin",
117
- "type": "text",
118
- "primaryKey": false,
119
- "notNull": true
120
- },
121
- "kind": {
122
- "name": "kind",
123
- "type": "text",
124
- "primaryKey": false,
125
- "notNull": true
126
- },
127
- "key": {
128
- "name": "key",
129
- "type": "text",
130
- "primaryKey": false,
131
- "notNull": true
132
- },
133
- "annotation_json": {
134
- "name": "annotation_json",
135
- "type": "jsonb",
136
- "primaryKey": false,
137
- "notNull": true
138
- },
139
- "created_at": {
140
- "name": "created_at",
141
- "type": "timestamp with time zone",
142
- "primaryKey": false,
143
- "notNull": true
144
- },
145
- "updated_at": {
146
- "name": "updated_at",
147
- "type": "timestamp with time zone",
148
- "primaryKey": false,
149
- "notNull": true
150
- }
151
- },
152
- "indexes": {},
153
- "foreignKeys": {
154
- "junior_conversation_annotations_conversation_id_fk": {
155
- "name": "junior_conversation_annotations_conversation_id_fk",
156
- "tableFrom": "junior_conversation_annotations",
157
- "tableTo": "junior_conversations",
158
- "columnsFrom": ["conversation_id"],
159
- "columnsTo": ["conversation_id"],
160
- "onDelete": "cascade",
161
- "onUpdate": "no action"
162
- }
163
- },
164
- "compositePrimaryKeys": {
165
- "junior_conversation_annotations_pk": {
166
- "name": "junior_conversation_annotations_pk",
167
- "columns": ["conversation_id", "plugin", "kind", "key"]
168
- }
169
- },
170
- "uniqueConstraints": {},
171
- "policies": {},
172
- "checkConstraints": {},
173
- "isRLSEnabled": false
174
- },
175
- "public.junior_conversation_bindings": {
176
- "name": "junior_conversation_bindings",
177
- "schema": "",
178
- "columns": {
179
- "conversation_id": {
180
- "name": "conversation_id",
181
- "type": "text",
182
- "primaryKey": false,
183
- "notNull": true
184
- },
185
- "provider": {
186
- "name": "provider",
187
- "type": "text",
188
- "primaryKey": false,
189
- "notNull": true
190
- },
191
- "provider_tenant_id": {
192
- "name": "provider_tenant_id",
193
- "type": "text",
194
- "primaryKey": false,
195
- "notNull": true,
196
- "default": "''"
197
- },
198
- "provider_destination_id": {
199
- "name": "provider_destination_id",
200
- "type": "text",
201
- "primaryKey": false,
202
- "notNull": true
203
- },
204
- "provider_conversation_id": {
205
- "name": "provider_conversation_id",
206
- "type": "text",
207
- "primaryKey": false,
208
- "notNull": true
209
- },
210
- "created_at": {
211
- "name": "created_at",
212
- "type": "timestamp with time zone",
213
- "primaryKey": false,
214
- "notNull": true
215
- }
216
- },
217
- "indexes": {
218
- "junior_conversation_bindings_conversation_idx": {
219
- "name": "junior_conversation_bindings_conversation_idx",
220
- "columns": [
221
- {
222
- "expression": "conversation_id",
223
- "isExpression": false,
224
- "asc": true,
225
- "nulls": "last"
226
- }
227
- ],
228
- "isUnique": false,
229
- "concurrently": false,
230
- "method": "btree",
231
- "with": {}
232
- }
233
- },
234
- "foreignKeys": {
235
- "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk": {
236
- "name": "junior_conversation_bindings_conversation_id_junior_conversations_conversation_id_fk",
237
- "tableFrom": "junior_conversation_bindings",
238
- "tableTo": "junior_conversations",
239
- "columnsFrom": ["conversation_id"],
240
- "columnsTo": ["conversation_id"],
241
- "onDelete": "no action",
242
- "onUpdate": "no action"
243
- }
244
- },
245
- "compositePrimaryKeys": {
246
- "junior_conversation_bindings_provider_conversation_pk": {
247
- "name": "junior_conversation_bindings_provider_conversation_pk",
248
- "columns": [
249
- "provider",
250
- "provider_tenant_id",
251
- "provider_destination_id",
252
- "provider_conversation_id"
253
- ]
254
- }
255
- },
256
- "uniqueConstraints": {},
257
- "policies": {},
258
- "checkConstraints": {},
259
- "isRLSEnabled": false
260
- },
261
- "public.junior_conversation_events": {
262
- "name": "junior_conversation_events",
263
- "schema": "",
264
- "columns": {
265
- "conversation_id": {
266
- "name": "conversation_id",
267
- "type": "text",
268
- "primaryKey": false,
269
- "notNull": true
270
- },
271
- "seq": {
272
- "name": "seq",
273
- "type": "integer",
274
- "primaryKey": false,
275
- "notNull": true
276
- },
277
- "history_version": {
278
- "name": "history_version",
279
- "type": "integer",
280
- "primaryKey": false,
281
- "notNull": true
282
- },
283
- "schema_version": {
284
- "name": "schema_version",
285
- "type": "integer",
286
- "primaryKey": false,
287
- "notNull": true,
288
- "default": 1
289
- },
290
- "idempotency_key": {
291
- "name": "idempotency_key",
292
- "type": "text",
293
- "primaryKey": false,
294
- "notNull": false
295
- },
296
- "type": {
297
- "name": "type",
298
- "type": "text",
299
- "primaryKey": false,
300
- "notNull": true
301
- },
302
- "payload": {
303
- "name": "payload",
304
- "type": "jsonb",
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
- },
315
- "indexes": {
316
- "junior_conversation_events_history_version_idx": {
317
- "name": "junior_conversation_events_history_version_idx",
318
- "columns": [
319
- {
320
- "expression": "conversation_id",
321
- "isExpression": false,
322
- "asc": true,
323
- "nulls": "last"
324
- },
325
- {
326
- "expression": "history_version",
327
- "isExpression": false,
328
- "asc": true,
329
- "nulls": "last"
330
- },
331
- {
332
- "expression": "seq",
333
- "isExpression": false,
334
- "asc": true,
335
- "nulls": "last"
336
- }
337
- ],
338
- "isUnique": false,
339
- "concurrently": false,
340
- "method": "btree",
341
- "with": {}
342
- },
343
- "junior_conversation_events_type_idx": {
344
- "name": "junior_conversation_events_type_idx",
345
- "columns": [
346
- {
347
- "expression": "conversation_id",
348
- "isExpression": false,
349
- "asc": true,
350
- "nulls": "last"
351
- },
352
- {
353
- "expression": "type",
354
- "isExpression": false,
355
- "asc": true,
356
- "nulls": "last"
357
- },
358
- {
359
- "expression": "seq",
360
- "isExpression": false,
361
- "asc": true,
362
- "nulls": "last"
363
- }
364
- ],
365
- "isUnique": false,
366
- "concurrently": false,
367
- "method": "btree",
368
- "with": {}
369
- },
370
- "junior_conversation_events_message_search_idx": {
371
- "name": "junior_conversation_events_message_search_idx",
372
- "columns": [
373
- {
374
- "expression": "to_tsvector('english', \"payload\"->>'text')",
375
- "asc": true,
376
- "isExpression": true,
377
- "nulls": "last"
378
- }
379
- ],
380
- "isUnique": false,
381
- "where": "\"junior_conversation_events\".\"type\" = 'message'",
382
- "concurrently": false,
383
- "method": "gin",
384
- "with": {}
385
- },
386
- "junior_conversation_events_idempotency_idx": {
387
- "name": "junior_conversation_events_idempotency_idx",
388
- "columns": [
389
- {
390
- "expression": "conversation_id",
391
- "isExpression": false,
392
- "asc": true,
393
- "nulls": "last"
394
- },
395
- {
396
- "expression": "idempotency_key",
397
- "isExpression": false,
398
- "asc": true,
399
- "nulls": "last"
400
- }
401
- ],
402
- "isUnique": true,
403
- "concurrently": false,
404
- "method": "btree",
405
- "with": {}
406
- }
407
- },
408
- "foreignKeys": {
409
- "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk": {
410
- "name": "junior_conversation_events_conversation_id_junior_conversations_conversation_id_fk",
411
- "tableFrom": "junior_conversation_events",
412
- "tableTo": "junior_conversations",
413
- "columnsFrom": ["conversation_id"],
414
- "columnsTo": ["conversation_id"],
415
- "onDelete": "no action",
416
- "onUpdate": "no action"
417
- }
418
- },
419
- "compositePrimaryKeys": {
420
- "junior_conversation_events_conversation_id_seq_pk": {
421
- "name": "junior_conversation_events_conversation_id_seq_pk",
422
- "columns": ["conversation_id", "seq"]
423
- }
424
- },
425
- "uniqueConstraints": {},
426
- "policies": {},
427
- "checkConstraints": {},
428
- "isRLSEnabled": false
429
- },
430
- "public.junior_conversations": {
431
- "name": "junior_conversations",
432
- "schema": "",
433
- "columns": {
434
- "conversation_id": {
435
- "name": "conversation_id",
436
- "type": "text",
437
- "primaryKey": true,
438
- "notNull": true
439
- },
440
- "schema_version": {
441
- "name": "schema_version",
442
- "type": "integer",
443
- "primaryKey": false,
444
- "notNull": true,
445
- "default": 1
446
- },
447
- "source": {
448
- "name": "source",
449
- "type": "text",
450
- "primaryKey": false,
451
- "notNull": false
452
- },
453
- "source_json": {
454
- "name": "source_json",
455
- "type": "jsonb",
456
- "primaryKey": false,
457
- "notNull": false
458
- },
459
- "origin_type": {
460
- "name": "origin_type",
461
- "type": "text",
462
- "primaryKey": false,
463
- "notNull": false
464
- },
465
- "origin_id": {
466
- "name": "origin_id",
467
- "type": "text",
468
- "primaryKey": false,
469
- "notNull": false
470
- },
471
- "origin_run_id": {
472
- "name": "origin_run_id",
473
- "type": "text",
474
- "primaryKey": false,
475
- "notNull": false
476
- },
477
- "destination_id": {
478
- "name": "destination_id",
479
- "type": "text",
480
- "primaryKey": false,
481
- "notNull": false
482
- },
483
- "destination_json": {
484
- "name": "destination_json",
485
- "type": "jsonb",
486
- "primaryKey": false,
487
- "notNull": false
488
- },
489
- "actor_identity_id": {
490
- "name": "actor_identity_id",
491
- "type": "text",
492
- "primaryKey": false,
493
- "notNull": false
494
- },
495
- "creator_identity_id": {
496
- "name": "creator_identity_id",
497
- "type": "text",
498
- "primaryKey": false,
499
- "notNull": false
500
- },
501
- "credential_subject_identity_id": {
502
- "name": "credential_subject_identity_id",
503
- "type": "text",
504
- "primaryKey": false,
505
- "notNull": false
506
- },
507
- "actor_json": {
508
- "name": "actor_json",
509
- "type": "jsonb",
510
- "primaryKey": false,
511
- "notNull": false
512
- },
513
- "channel_name": {
514
- "name": "channel_name",
515
- "type": "text",
516
- "primaryKey": false,
517
- "notNull": false
518
- },
519
- "title": {
520
- "name": "title",
521
- "type": "text",
522
- "primaryKey": false,
523
- "notNull": false
524
- },
525
- "created_at": {
526
- "name": "created_at",
527
- "type": "timestamp with time zone",
528
- "primaryKey": false,
529
- "notNull": true
530
- },
531
- "last_activity_at": {
532
- "name": "last_activity_at",
533
- "type": "timestamp with time zone",
534
- "primaryKey": false,
535
- "notNull": true
536
- },
537
- "updated_at": {
538
- "name": "updated_at",
539
- "type": "timestamp with time zone",
540
- "primaryKey": false,
541
- "notNull": true
542
- },
543
- "execution_updated_at": {
544
- "name": "execution_updated_at",
545
- "type": "timestamp with time zone",
546
- "primaryKey": false,
547
- "notNull": false
548
- },
549
- "execution_status": {
550
- "name": "execution_status",
551
- "type": "text",
552
- "primaryKey": false,
553
- "notNull": true
554
- },
555
- "run_id": {
556
- "name": "run_id",
557
- "type": "text",
558
- "primaryKey": false,
559
- "notNull": false
560
- },
561
- "last_checkpoint_at": {
562
- "name": "last_checkpoint_at",
563
- "type": "timestamp with time zone",
564
- "primaryKey": false,
565
- "notNull": false
566
- },
567
- "last_enqueued_at": {
568
- "name": "last_enqueued_at",
569
- "type": "timestamp with time zone",
570
- "primaryKey": false,
571
- "notNull": false
572
- },
573
- "parent_conversation_id": {
574
- "name": "parent_conversation_id",
575
- "type": "text",
576
- "primaryKey": false,
577
- "notNull": false
578
- },
579
- "root_conversation_id": {
580
- "name": "root_conversation_id",
581
- "type": "text",
582
- "primaryKey": false,
583
- "notNull": false
584
- },
585
- "transcript_purged_at": {
586
- "name": "transcript_purged_at",
587
- "type": "timestamp with time zone",
588
- "primaryKey": false,
589
- "notNull": false
590
- },
591
- "duration_ms": {
592
- "name": "duration_ms",
593
- "type": "integer",
594
- "primaryKey": false,
595
- "notNull": true,
596
- "default": 0
597
- },
598
- "usage_json": {
599
- "name": "usage_json",
600
- "type": "jsonb",
601
- "primaryKey": false,
602
- "notNull": false
603
- },
604
- "execution_duration_ms": {
605
- "name": "execution_duration_ms",
606
- "type": "integer",
607
- "primaryKey": false,
608
- "notNull": true,
609
- "default": 0
610
- },
611
- "execution_usage_json": {
612
- "name": "execution_usage_json",
613
- "type": "jsonb",
614
- "primaryKey": false,
615
- "notNull": false
616
- },
617
- "metric_run_id": {
618
- "name": "metric_run_id",
619
- "type": "text",
620
- "primaryKey": false,
621
- "notNull": false
622
- },
623
- "archived_at": {
624
- "name": "archived_at",
625
- "type": "timestamp with time zone",
626
- "primaryKey": false,
627
- "notNull": false
628
- }
629
- },
630
- "indexes": {
631
- "junior_conversations_last_activity_idx": {
632
- "name": "junior_conversations_last_activity_idx",
633
- "columns": [
634
- {
635
- "expression": "last_activity_at",
636
- "isExpression": false,
637
- "asc": false,
638
- "nulls": "last"
639
- },
640
- {
641
- "expression": "conversation_id",
642
- "isExpression": false,
643
- "asc": true,
644
- "nulls": "last"
645
- }
646
- ],
647
- "isUnique": false,
648
- "concurrently": false,
649
- "method": "btree",
650
- "with": {}
651
- },
652
- "junior_conversations_active_idx": {
653
- "name": "junior_conversations_active_idx",
654
- "columns": [
655
- {
656
- "expression": "coalesce(\"execution_updated_at\", \"updated_at\")",
657
- "asc": true,
658
- "isExpression": true,
659
- "nulls": "last"
660
- },
661
- {
662
- "expression": "conversation_id",
663
- "isExpression": false,
664
- "asc": true,
665
- "nulls": "last"
666
- }
667
- ],
668
- "isUnique": false,
669
- "where": "\"junior_conversations\".\"execution_status\" <> 'idle'",
670
- "concurrently": false,
671
- "method": "btree",
672
- "with": {}
673
- },
674
- "junior_conversations_destination_activity_idx": {
675
- "name": "junior_conversations_destination_activity_idx",
676
- "columns": [
677
- {
678
- "expression": "destination_id",
679
- "isExpression": false,
680
- "asc": true,
681
- "nulls": "last"
682
- },
683
- {
684
- "expression": "last_activity_at",
685
- "isExpression": false,
686
- "asc": false,
687
- "nulls": "last"
688
- }
689
- ],
690
- "isUnique": false,
691
- "concurrently": false,
692
- "method": "btree",
693
- "with": {}
694
- },
695
- "junior_conversations_actor_activity_idx": {
696
- "name": "junior_conversations_actor_activity_idx",
697
- "columns": [
698
- {
699
- "expression": "actor_identity_id",
700
- "isExpression": false,
701
- "asc": true,
702
- "nulls": "last"
703
- },
704
- {
705
- "expression": "last_activity_at",
706
- "isExpression": false,
707
- "asc": false,
708
- "nulls": "last"
709
- }
710
- ],
711
- "isUnique": false,
712
- "concurrently": false,
713
- "method": "btree",
714
- "with": {}
715
- },
716
- "junior_conversations_origin_idx": {
717
- "name": "junior_conversations_origin_idx",
718
- "columns": [
719
- {
720
- "expression": "origin_type",
721
- "isExpression": false,
722
- "asc": true,
723
- "nulls": "last"
724
- },
725
- {
726
- "expression": "origin_id",
727
- "isExpression": false,
728
- "asc": true,
729
- "nulls": "last"
730
- },
731
- {
732
- "expression": "last_activity_at",
733
- "isExpression": false,
734
- "asc": false,
735
- "nulls": "last"
736
- }
737
- ],
738
- "isUnique": false,
739
- "concurrently": false,
740
- "method": "btree",
741
- "with": {}
742
- },
743
- "junior_conversations_parent_idx": {
744
- "name": "junior_conversations_parent_idx",
745
- "columns": [
746
- {
747
- "expression": "parent_conversation_id",
748
- "isExpression": false,
749
- "asc": true,
750
- "nulls": "last"
751
- }
752
- ],
753
- "isUnique": false,
754
- "concurrently": false,
755
- "method": "btree",
756
- "with": {}
757
- },
758
- "junior_conversations_root_idx": {
759
- "name": "junior_conversations_root_idx",
760
- "columns": [
761
- {
762
- "expression": "root_conversation_id",
763
- "isExpression": false,
764
- "asc": true,
765
- "nulls": "last"
766
- }
767
- ],
768
- "isUnique": false,
769
- "concurrently": false,
770
- "method": "btree",
771
- "with": {}
772
- }
773
- },
774
- "foreignKeys": {
775
- "junior_conversations_destination_id_junior_destinations_id_fk": {
776
- "name": "junior_conversations_destination_id_junior_destinations_id_fk",
777
- "tableFrom": "junior_conversations",
778
- "tableTo": "junior_destinations",
779
- "columnsFrom": ["destination_id"],
780
- "columnsTo": ["id"],
781
- "onDelete": "no action",
782
- "onUpdate": "no action"
783
- },
784
- "junior_conversations_actor_identity_id_junior_identities_id_fk": {
785
- "name": "junior_conversations_actor_identity_id_junior_identities_id_fk",
786
- "tableFrom": "junior_conversations",
787
- "tableTo": "junior_identities",
788
- "columnsFrom": ["actor_identity_id"],
789
- "columnsTo": ["id"],
790
- "onDelete": "no action",
791
- "onUpdate": "no action"
792
- },
793
- "junior_conversations_creator_identity_id_junior_identities_id_fk": {
794
- "name": "junior_conversations_creator_identity_id_junior_identities_id_fk",
795
- "tableFrom": "junior_conversations",
796
- "tableTo": "junior_identities",
797
- "columnsFrom": ["creator_identity_id"],
798
- "columnsTo": ["id"],
799
- "onDelete": "no action",
800
- "onUpdate": "no action"
801
- },
802
- "junior_conversations_credential_subject_identity_id_junior_identities_id_fk": {
803
- "name": "junior_conversations_credential_subject_identity_id_junior_identities_id_fk",
804
- "tableFrom": "junior_conversations",
805
- "tableTo": "junior_identities",
806
- "columnsFrom": ["credential_subject_identity_id"],
807
- "columnsTo": ["id"],
808
- "onDelete": "no action",
809
- "onUpdate": "no action"
810
- },
811
- "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk": {
812
- "name": "junior_conversations_parent_conversation_id_junior_conversations_conversation_id_fk",
813
- "tableFrom": "junior_conversations",
814
- "tableTo": "junior_conversations",
815
- "columnsFrom": ["parent_conversation_id"],
816
- "columnsTo": ["conversation_id"],
817
- "onDelete": "no action",
818
- "onUpdate": "no action"
819
- },
820
- "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk": {
821
- "name": "junior_conversations_root_conversation_id_junior_conversations_conversation_id_fk",
822
- "tableFrom": "junior_conversations",
823
- "tableTo": "junior_conversations",
824
- "columnsFrom": ["root_conversation_id"],
825
- "columnsTo": ["conversation_id"],
826
- "onDelete": "no action",
827
- "onUpdate": "no action"
828
- }
829
- },
830
- "compositePrimaryKeys": {},
831
- "uniqueConstraints": {},
832
- "policies": {},
833
- "checkConstraints": {},
834
- "isRLSEnabled": false
835
- },
836
- "public.junior_destinations": {
837
- "name": "junior_destinations",
838
- "schema": "",
839
- "columns": {
840
- "id": {
841
- "name": "id",
842
- "type": "text",
843
- "primaryKey": true,
844
- "notNull": true
845
- },
846
- "provider": {
847
- "name": "provider",
848
- "type": "text",
849
- "primaryKey": false,
850
- "notNull": true
851
- },
852
- "provider_tenant_id": {
853
- "name": "provider_tenant_id",
854
- "type": "text",
855
- "primaryKey": false,
856
- "notNull": true,
857
- "default": "''"
858
- },
859
- "provider_destination_id": {
860
- "name": "provider_destination_id",
861
- "type": "text",
862
- "primaryKey": false,
863
- "notNull": true
864
- },
865
- "kind": {
866
- "name": "kind",
867
- "type": "text",
868
- "primaryKey": false,
869
- "notNull": true
870
- },
871
- "parent_destination_id": {
872
- "name": "parent_destination_id",
873
- "type": "text",
874
- "primaryKey": false,
875
- "notNull": false
876
- },
877
- "display_name": {
878
- "name": "display_name",
879
- "type": "text",
880
- "primaryKey": false,
881
- "notNull": false
882
- },
883
- "visibility": {
884
- "name": "visibility",
885
- "type": "text",
886
- "primaryKey": false,
887
- "notNull": true,
888
- "default": "'unknown'"
889
- },
890
- "metadata_json": {
891
- "name": "metadata_json",
892
- "type": "jsonb",
893
- "primaryKey": false,
894
- "notNull": false
895
- },
896
- "created_at": {
897
- "name": "created_at",
898
- "type": "timestamp with time zone",
899
- "primaryKey": false,
900
- "notNull": true
901
- },
902
- "updated_at": {
903
- "name": "updated_at",
904
- "type": "timestamp with time zone",
905
- "primaryKey": false,
906
- "notNull": true
907
- }
908
- },
909
- "indexes": {
910
- "junior_destinations_provider_destination_uidx": {
911
- "name": "junior_destinations_provider_destination_uidx",
912
- "columns": [
913
- {
914
- "expression": "provider",
915
- "isExpression": false,
916
- "asc": true,
917
- "nulls": "last"
918
- },
919
- {
920
- "expression": "provider_tenant_id",
921
- "isExpression": false,
922
- "asc": true,
923
- "nulls": "last"
924
- },
925
- {
926
- "expression": "provider_destination_id",
927
- "isExpression": false,
928
- "asc": true,
929
- "nulls": "last"
930
- }
931
- ],
932
- "isUnique": true,
933
- "concurrently": false,
934
- "method": "btree",
935
- "with": {}
936
- },
937
- "junior_destinations_provider_kind_idx": {
938
- "name": "junior_destinations_provider_kind_idx",
939
- "columns": [
940
- {
941
- "expression": "provider",
942
- "isExpression": false,
943
- "asc": true,
944
- "nulls": "last"
945
- },
946
- {
947
- "expression": "kind",
948
- "isExpression": false,
949
- "asc": true,
950
- "nulls": "last"
951
- }
952
- ],
953
- "isUnique": false,
954
- "concurrently": false,
955
- "method": "btree",
956
- "with": {}
957
- }
958
- },
959
- "foreignKeys": {},
960
- "compositePrimaryKeys": {},
961
- "uniqueConstraints": {},
962
- "policies": {},
963
- "checkConstraints": {},
964
- "isRLSEnabled": false
965
- },
966
- "public.junior_event_tasks": {
967
- "name": "junior_event_tasks",
968
- "schema": "",
969
- "columns": {
970
- "id": {
971
- "name": "id",
972
- "type": "text",
973
- "primaryKey": true,
974
- "notNull": true
975
- },
976
- "team_id": {
977
- "name": "team_id",
978
- "type": "text",
979
- "primaryKey": false,
980
- "notNull": true
981
- },
982
- "namespace": {
983
- "name": "namespace",
984
- "type": "text",
985
- "primaryKey": false,
986
- "notNull": true
987
- },
988
- "identifier": {
989
- "name": "identifier",
990
- "type": "text",
991
- "primaryKey": false,
992
- "notNull": true
993
- },
994
- "created_at_ms": {
995
- "name": "created_at_ms",
996
- "type": "bigint",
997
- "primaryKey": false,
998
- "notNull": true
999
- },
1000
- "task_json": {
1001
- "name": "task_json",
1002
- "type": "jsonb",
1003
- "primaryKey": false,
1004
- "notNull": true
1005
- }
1006
- },
1007
- "indexes": {
1008
- "junior_event_tasks_team_idx": {
1009
- "name": "junior_event_tasks_team_idx",
1010
- "columns": [
1011
- {
1012
- "expression": "team_id",
1013
- "isExpression": false,
1014
- "asc": true,
1015
- "nulls": "last"
1016
- },
1017
- {
1018
- "expression": "created_at_ms",
1019
- "isExpression": false,
1020
- "asc": true,
1021
- "nulls": "last"
1022
- },
1023
- {
1024
- "expression": "id",
1025
- "isExpression": false,
1026
- "asc": true,
1027
- "nulls": "last"
1028
- }
1029
- ],
1030
- "isUnique": false,
1031
- "concurrently": false,
1032
- "method": "btree",
1033
- "with": {}
1034
- },
1035
- "junior_event_tasks_match_idx": {
1036
- "name": "junior_event_tasks_match_idx",
1037
- "columns": [
1038
- {
1039
- "expression": "namespace",
1040
- "isExpression": false,
1041
- "asc": true,
1042
- "nulls": "last"
1043
- },
1044
- {
1045
- "expression": "identifier",
1046
- "isExpression": false,
1047
- "asc": true,
1048
- "nulls": "last"
1049
- },
1050
- {
1051
- "expression": "created_at_ms",
1052
- "isExpression": false,
1053
- "asc": true,
1054
- "nulls": "last"
1055
- },
1056
- {
1057
- "expression": "id",
1058
- "isExpression": false,
1059
- "asc": true,
1060
- "nulls": "last"
1061
- }
1062
- ],
1063
- "isUnique": false,
1064
- "concurrently": false,
1065
- "method": "btree",
1066
- "with": {}
1067
- }
1068
- },
1069
- "foreignKeys": {},
1070
- "compositePrimaryKeys": {},
1071
- "uniqueConstraints": {},
1072
- "policies": {},
1073
- "checkConstraints": {},
1074
- "isRLSEnabled": false
1075
- },
1076
- "public.junior_identities": {
1077
- "name": "junior_identities",
1078
- "schema": "",
1079
- "columns": {
1080
- "id": {
1081
- "name": "id",
1082
- "type": "text",
1083
- "primaryKey": true,
1084
- "notNull": true
1085
- },
1086
- "kind": {
1087
- "name": "kind",
1088
- "type": "text",
1089
- "primaryKey": false,
1090
- "notNull": true
1091
- },
1092
- "provider": {
1093
- "name": "provider",
1094
- "type": "text",
1095
- "primaryKey": false,
1096
- "notNull": true
1097
- },
1098
- "provider_tenant_id": {
1099
- "name": "provider_tenant_id",
1100
- "type": "text",
1101
- "primaryKey": false,
1102
- "notNull": true,
1103
- "default": "''"
1104
- },
1105
- "provider_subject_id": {
1106
- "name": "provider_subject_id",
1107
- "type": "text",
1108
- "primaryKey": false,
1109
- "notNull": true
1110
- },
1111
- "display_name": {
1112
- "name": "display_name",
1113
- "type": "text",
1114
- "primaryKey": false,
1115
- "notNull": false
1116
- },
1117
- "handle": {
1118
- "name": "handle",
1119
- "type": "text",
1120
- "primaryKey": false,
1121
- "notNull": false
1122
- },
1123
- "email": {
1124
- "name": "email",
1125
- "type": "text",
1126
- "primaryKey": false,
1127
- "notNull": false
1128
- },
1129
- "avatar_url": {
1130
- "name": "avatar_url",
1131
- "type": "text",
1132
- "primaryKey": false,
1133
- "notNull": false
1134
- },
1135
- "metadata_json": {
1136
- "name": "metadata_json",
1137
- "type": "jsonb",
1138
- "primaryKey": false,
1139
- "notNull": false
1140
- },
1141
- "created_at": {
1142
- "name": "created_at",
1143
- "type": "timestamp with time zone",
1144
- "primaryKey": false,
1145
- "notNull": true
1146
- },
1147
- "updated_at": {
1148
- "name": "updated_at",
1149
- "type": "timestamp with time zone",
1150
- "primaryKey": false,
1151
- "notNull": true
1152
- },
1153
- "user_id": {
1154
- "name": "user_id",
1155
- "type": "text",
1156
- "primaryKey": false,
1157
- "notNull": false
1158
- },
1159
- "email_normalized": {
1160
- "name": "email_normalized",
1161
- "type": "text",
1162
- "primaryKey": false,
1163
- "notNull": false
1164
- },
1165
- "email_verified": {
1166
- "name": "email_verified",
1167
- "type": "boolean",
1168
- "primaryKey": false,
1169
- "notNull": true,
1170
- "default": false
1171
- }
1172
- },
1173
- "indexes": {
1174
- "junior_identities_provider_subject_uidx": {
1175
- "name": "junior_identities_provider_subject_uidx",
1176
- "columns": [
1177
- {
1178
- "expression": "provider",
1179
- "isExpression": false,
1180
- "asc": true,
1181
- "nulls": "last"
1182
- },
1183
- {
1184
- "expression": "provider_tenant_id",
1185
- "isExpression": false,
1186
- "asc": true,
1187
- "nulls": "last"
1188
- },
1189
- {
1190
- "expression": "provider_subject_id",
1191
- "isExpression": false,
1192
- "asc": true,
1193
- "nulls": "last"
1194
- }
1195
- ],
1196
- "isUnique": true,
1197
- "concurrently": false,
1198
- "method": "btree",
1199
- "with": {}
1200
- },
1201
- "junior_identities_user_idx": {
1202
- "name": "junior_identities_user_idx",
1203
- "columns": [
1204
- {
1205
- "expression": "user_id",
1206
- "isExpression": false,
1207
- "asc": true,
1208
- "nulls": "last"
1209
- }
1210
- ],
1211
- "isUnique": false,
1212
- "concurrently": false,
1213
- "method": "btree",
1214
- "with": {}
1215
- },
1216
- "junior_identities_verified_email_idx": {
1217
- "name": "junior_identities_verified_email_idx",
1218
- "columns": [
1219
- {
1220
- "expression": "email_normalized",
1221
- "isExpression": false,
1222
- "asc": true,
1223
- "nulls": "last"
1224
- }
1225
- ],
1226
- "isUnique": false,
1227
- "where": "\"junior_identities\".\"email_verified\" = true AND \"junior_identities\".\"email_normalized\" IS NOT NULL",
1228
- "concurrently": false,
1229
- "method": "btree",
1230
- "with": {}
1231
- },
1232
- "junior_identities_kind_provider_idx": {
1233
- "name": "junior_identities_kind_provider_idx",
1234
- "columns": [
1235
- {
1236
- "expression": "kind",
1237
- "isExpression": false,
1238
- "asc": true,
1239
- "nulls": "last"
1240
- },
1241
- {
1242
- "expression": "provider",
1243
- "isExpression": false,
1244
- "asc": true,
1245
- "nulls": "last"
1246
- }
1247
- ],
1248
- "isUnique": false,
1249
- "concurrently": false,
1250
- "method": "btree",
1251
- "with": {}
1252
- }
1253
- },
1254
- "foreignKeys": {
1255
- "junior_identities_user_id_junior_users_id_fk": {
1256
- "name": "junior_identities_user_id_junior_users_id_fk",
1257
- "tableFrom": "junior_identities",
1258
- "tableTo": "junior_users",
1259
- "columnsFrom": ["user_id"],
1260
- "columnsTo": ["id"],
1261
- "onDelete": "no action",
1262
- "onUpdate": "no action"
1263
- }
1264
- },
1265
- "compositePrimaryKeys": {},
1266
- "uniqueConstraints": {},
1267
- "policies": {},
1268
- "checkConstraints": {},
1269
- "isRLSEnabled": false
1270
- },
1271
- "public.junior_scheduler_runs": {
1272
- "name": "junior_scheduler_runs",
1273
- "schema": "",
1274
- "columns": {
1275
- "id": {
1276
- "name": "id",
1277
- "type": "text",
1278
- "primaryKey": true,
1279
- "notNull": true
1280
- },
1281
- "task_id": {
1282
- "name": "task_id",
1283
- "type": "text",
1284
- "primaryKey": false,
1285
- "notNull": true
1286
- },
1287
- "status": {
1288
- "name": "status",
1289
- "type": "text",
1290
- "primaryKey": false,
1291
- "notNull": true
1292
- },
1293
- "scheduled_for_ms": {
1294
- "name": "scheduled_for_ms",
1295
- "type": "bigint",
1296
- "primaryKey": false,
1297
- "notNull": true
1298
- },
1299
- "record": {
1300
- "name": "record",
1301
- "type": "jsonb",
1302
- "primaryKey": false,
1303
- "notNull": true
1304
- }
1305
- },
1306
- "indexes": {
1307
- "junior_scheduler_runs_task_status_idx": {
1308
- "name": "junior_scheduler_runs_task_status_idx",
1309
- "columns": [
1310
- {
1311
- "expression": "task_id",
1312
- "isExpression": false,
1313
- "asc": true,
1314
- "nulls": "last"
1315
- },
1316
- {
1317
- "expression": "status",
1318
- "isExpression": false,
1319
- "asc": true,
1320
- "nulls": "last"
1321
- },
1322
- {
1323
- "expression": "scheduled_for_ms",
1324
- "isExpression": false,
1325
- "asc": true,
1326
- "nulls": "last"
1327
- }
1328
- ],
1329
- "isUnique": false,
1330
- "concurrently": false,
1331
- "method": "btree",
1332
- "with": {}
1333
- },
1334
- "junior_scheduler_runs_status_idx": {
1335
- "name": "junior_scheduler_runs_status_idx",
1336
- "columns": [
1337
- {
1338
- "expression": "status",
1339
- "isExpression": false,
1340
- "asc": true,
1341
- "nulls": "last"
1342
- },
1343
- {
1344
- "expression": "scheduled_for_ms",
1345
- "isExpression": false,
1346
- "asc": true,
1347
- "nulls": "last"
1348
- }
1349
- ],
1350
- "isUnique": false,
1351
- "concurrently": false,
1352
- "method": "btree",
1353
- "with": {}
1354
- }
1355
- },
1356
- "foreignKeys": {},
1357
- "compositePrimaryKeys": {},
1358
- "uniqueConstraints": {},
1359
- "policies": {},
1360
- "checkConstraints": {},
1361
- "isRLSEnabled": false
1362
- },
1363
- "public.junior_scheduler_tasks": {
1364
- "name": "junior_scheduler_tasks",
1365
- "schema": "",
1366
- "columns": {
1367
- "id": {
1368
- "name": "id",
1369
- "type": "text",
1370
- "primaryKey": true,
1371
- "notNull": true
1372
- },
1373
- "team_id": {
1374
- "name": "team_id",
1375
- "type": "text",
1376
- "primaryKey": false,
1377
- "notNull": true
1378
- },
1379
- "creator_slack_user_id": {
1380
- "name": "creator_slack_user_id",
1381
- "type": "text",
1382
- "primaryKey": false,
1383
- "notNull": false
1384
- },
1385
- "creator_identity_id": {
1386
- "name": "creator_identity_id",
1387
- "type": "text",
1388
- "primaryKey": false,
1389
- "notNull": false
1390
- },
1391
- "status": {
1392
- "name": "status",
1393
- "type": "text",
1394
- "primaryKey": false,
1395
- "notNull": true
1396
- },
1397
- "next_run_at_ms": {
1398
- "name": "next_run_at_ms",
1399
- "type": "bigint",
1400
- "primaryKey": false,
1401
- "notNull": false
1402
- },
1403
- "run_now_at_ms": {
1404
- "name": "run_now_at_ms",
1405
- "type": "bigint",
1406
- "primaryKey": false,
1407
- "notNull": false
1408
- },
1409
- "created_at_ms": {
1410
- "name": "created_at_ms",
1411
- "type": "bigint",
1412
- "primaryKey": false,
1413
- "notNull": true
1414
- },
1415
- "record": {
1416
- "name": "record",
1417
- "type": "jsonb",
1418
- "primaryKey": false,
1419
- "notNull": true
1420
- }
1421
- },
1422
- "indexes": {
1423
- "junior_scheduler_tasks_creator_idx": {
1424
- "name": "junior_scheduler_tasks_creator_idx",
1425
- "columns": [
1426
- {
1427
- "expression": "team_id",
1428
- "isExpression": false,
1429
- "asc": true,
1430
- "nulls": "last"
1431
- },
1432
- {
1433
- "expression": "creator_slack_user_id",
1434
- "isExpression": false,
1435
- "asc": true,
1436
- "nulls": "last"
1437
- },
1438
- {
1439
- "expression": "created_at_ms",
1440
- "isExpression": false,
1441
- "asc": true,
1442
- "nulls": "last"
1443
- },
1444
- {
1445
- "expression": "id",
1446
- "isExpression": false,
1447
- "asc": true,
1448
- "nulls": "last"
1449
- }
1450
- ],
1451
- "isUnique": false,
1452
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
1453
- "concurrently": false,
1454
- "method": "btree",
1455
- "with": {}
1456
- },
1457
- "junior_scheduler_tasks_creator_identity_idx": {
1458
- "name": "junior_scheduler_tasks_creator_identity_idx",
1459
- "columns": [
1460
- {
1461
- "expression": "creator_identity_id",
1462
- "isExpression": false,
1463
- "asc": true,
1464
- "nulls": "last"
1465
- },
1466
- {
1467
- "expression": "created_at_ms",
1468
- "isExpression": false,
1469
- "asc": true,
1470
- "nulls": "last"
1471
- },
1472
- {
1473
- "expression": "id",
1474
- "isExpression": false,
1475
- "asc": true,
1476
- "nulls": "last"
1477
- }
1478
- ],
1479
- "isUnique": false,
1480
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted' AND \"junior_scheduler_tasks\".\"creator_identity_id\" IS NOT NULL",
1481
- "concurrently": false,
1482
- "method": "btree",
1483
- "with": {}
1484
- },
1485
- "junior_scheduler_tasks_team_status_idx": {
1486
- "name": "junior_scheduler_tasks_team_status_idx",
1487
- "columns": [
1488
- {
1489
- "expression": "team_id",
1490
- "isExpression": false,
1491
- "asc": true,
1492
- "nulls": "last"
1493
- },
1494
- {
1495
- "expression": "created_at_ms",
1496
- "isExpression": false,
1497
- "asc": true,
1498
- "nulls": "last"
1499
- },
1500
- {
1501
- "expression": "id",
1502
- "isExpression": false,
1503
- "asc": true,
1504
- "nulls": "last"
1505
- }
1506
- ],
1507
- "isUnique": false,
1508
- "where": "\"junior_scheduler_tasks\".\"status\" <> 'deleted'",
1509
- "concurrently": false,
1510
- "method": "btree",
1511
- "with": {}
1512
- },
1513
- "junior_scheduler_tasks_run_now_due_idx": {
1514
- "name": "junior_scheduler_tasks_run_now_due_idx",
1515
- "columns": [
1516
- {
1517
- "expression": "run_now_at_ms",
1518
- "isExpression": false,
1519
- "asc": true,
1520
- "nulls": "last"
1521
- },
1522
- {
1523
- "expression": "created_at_ms",
1524
- "isExpression": false,
1525
- "asc": true,
1526
- "nulls": "last"
1527
- },
1528
- {
1529
- "expression": "id",
1530
- "isExpression": false,
1531
- "asc": true,
1532
- "nulls": "last"
1533
- }
1534
- ],
1535
- "isUnique": false,
1536
- "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"run_now_at_ms\" IS NOT NULL",
1537
- "concurrently": false,
1538
- "method": "btree",
1539
- "with": {}
1540
- },
1541
- "junior_scheduler_tasks_next_run_due_idx": {
1542
- "name": "junior_scheduler_tasks_next_run_due_idx",
1543
- "columns": [
1544
- {
1545
- "expression": "next_run_at_ms",
1546
- "isExpression": false,
1547
- "asc": true,
1548
- "nulls": "last"
1549
- },
1550
- {
1551
- "expression": "created_at_ms",
1552
- "isExpression": false,
1553
- "asc": true,
1554
- "nulls": "last"
1555
- },
1556
- {
1557
- "expression": "id",
1558
- "isExpression": false,
1559
- "asc": true,
1560
- "nulls": "last"
1561
- }
1562
- ],
1563
- "isUnique": false,
1564
- "where": "\"junior_scheduler_tasks\".\"status\" = 'active' AND \"junior_scheduler_tasks\".\"next_run_at_ms\" IS NOT NULL",
1565
- "concurrently": false,
1566
- "method": "btree",
1567
- "with": {}
1568
- }
1569
- },
1570
- "foreignKeys": {},
1571
- "compositePrimaryKeys": {},
1572
- "uniqueConstraints": {},
1573
- "policies": {},
1574
- "checkConstraints": {},
1575
- "isRLSEnabled": false
1576
- },
1577
- "public.junior_stats": {
1578
- "name": "junior_stats",
1579
- "schema": "",
1580
- "columns": {
1581
- "date": {
1582
- "name": "date",
1583
- "type": "date",
1584
- "primaryKey": false,
1585
- "notNull": true
1586
- },
1587
- "namespace": {
1588
- "name": "namespace",
1589
- "type": "text",
1590
- "primaryKey": false,
1591
- "notNull": true
1592
- },
1593
- "metric": {
1594
- "name": "metric",
1595
- "type": "text",
1596
- "primaryKey": false,
1597
- "notNull": true
1598
- },
1599
- "name": {
1600
- "name": "name",
1601
- "type": "text",
1602
- "primaryKey": false,
1603
- "notNull": true
1604
- },
1605
- "count": {
1606
- "name": "count",
1607
- "type": "integer",
1608
- "primaryKey": false,
1609
- "notNull": true,
1610
- "default": 0
1611
- }
1612
- },
1613
- "indexes": {},
1614
- "foreignKeys": {},
1615
- "compositePrimaryKeys": {
1616
- "junior_stats_date_namespace_metric_name_pk": {
1617
- "name": "junior_stats_date_namespace_metric_name_pk",
1618
- "columns": ["date", "namespace", "metric", "name"]
1619
- }
1620
- },
1621
- "uniqueConstraints": {},
1622
- "policies": {},
1623
- "checkConstraints": {},
1624
- "isRLSEnabled": false
1625
- },
1626
- "public.junior_task_executions": {
1627
- "name": "junior_task_executions",
1628
- "schema": "",
1629
- "columns": {
1630
- "execution_id": {
1631
- "name": "execution_id",
1632
- "type": "text",
1633
- "primaryKey": false,
1634
- "notNull": true
1635
- },
1636
- "kind": {
1637
- "name": "kind",
1638
- "type": "text",
1639
- "primaryKey": false,
1640
- "notNull": true
1641
- },
1642
- "namespace": {
1643
- "name": "namespace",
1644
- "type": "text",
1645
- "primaryKey": false,
1646
- "notNull": true
1647
- },
1648
- "task_id": {
1649
- "name": "task_id",
1650
- "type": "text",
1651
- "primaryKey": false,
1652
- "notNull": true
1653
- },
1654
- "conversation_id": {
1655
- "name": "conversation_id",
1656
- "type": "text",
1657
- "primaryKey": false,
1658
- "notNull": true
1659
- },
1660
- "executed_at_ms": {
1661
- "name": "executed_at_ms",
1662
- "type": "bigint",
1663
- "primaryKey": false,
1664
- "notNull": true
1665
- }
1666
- },
1667
- "indexes": {
1668
- "junior_task_executions_task_time_idx": {
1669
- "name": "junior_task_executions_task_time_idx",
1670
- "columns": [
1671
- {
1672
- "expression": "kind",
1673
- "isExpression": false,
1674
- "asc": true,
1675
- "nulls": "last"
1676
- },
1677
- {
1678
- "expression": "namespace",
1679
- "isExpression": false,
1680
- "asc": true,
1681
- "nulls": "last"
1682
- },
1683
- {
1684
- "expression": "task_id",
1685
- "isExpression": false,
1686
- "asc": true,
1687
- "nulls": "last"
1688
- },
1689
- {
1690
- "expression": "executed_at_ms",
1691
- "isExpression": false,
1692
- "asc": true,
1693
- "nulls": "last"
1694
- }
1695
- ],
1696
- "isUnique": false,
1697
- "concurrently": false,
1698
- "method": "btree",
1699
- "with": {}
1700
- },
1701
- "junior_task_executions_time_kind_idx": {
1702
- "name": "junior_task_executions_time_kind_idx",
1703
- "columns": [
1704
- {
1705
- "expression": "executed_at_ms",
1706
- "isExpression": false,
1707
- "asc": true,
1708
- "nulls": "last"
1709
- },
1710
- {
1711
- "expression": "kind",
1712
- "isExpression": false,
1713
- "asc": true,
1714
- "nulls": "last"
1715
- }
1716
- ],
1717
- "isUnique": false,
1718
- "concurrently": false,
1719
- "method": "btree",
1720
- "with": {}
1721
- },
1722
- "junior_task_executions_conversation_time_idx": {
1723
- "name": "junior_task_executions_conversation_time_idx",
1724
- "columns": [
1725
- {
1726
- "expression": "conversation_id",
1727
- "isExpression": false,
1728
- "asc": true,
1729
- "nulls": "last"
1730
- },
1731
- {
1732
- "expression": "executed_at_ms",
1733
- "isExpression": false,
1734
- "asc": true,
1735
- "nulls": "last"
1736
- }
1737
- ],
1738
- "isUnique": false,
1739
- "concurrently": false,
1740
- "method": "btree",
1741
- "with": {}
1742
- }
1743
- },
1744
- "foreignKeys": {
1745
- "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk": {
1746
- "name": "junior_task_executions_conversation_id_junior_conversations_conversation_id_fk",
1747
- "tableFrom": "junior_task_executions",
1748
- "tableTo": "junior_conversations",
1749
- "columnsFrom": ["conversation_id"],
1750
- "columnsTo": ["conversation_id"],
1751
- "onDelete": "no action",
1752
- "onUpdate": "no action"
1753
- }
1754
- },
1755
- "compositePrimaryKeys": {
1756
- "junior_task_executions_kind_namespace_execution_id_pk": {
1757
- "name": "junior_task_executions_kind_namespace_execution_id_pk",
1758
- "columns": ["kind", "namespace", "execution_id"]
1759
- }
1760
- },
1761
- "uniqueConstraints": {},
1762
- "policies": {},
1763
- "checkConstraints": {
1764
- "junior_task_executions_kind_check": {
1765
- "name": "junior_task_executions_kind_check",
1766
- "value": "\"junior_task_executions\".\"kind\" in ('scheduled', 'event')"
1767
- }
1768
- },
1769
- "isRLSEnabled": false
1770
- },
1771
- "public.junior_users": {
1772
- "name": "junior_users",
1773
- "schema": "",
1774
- "columns": {
1775
- "id": {
1776
- "name": "id",
1777
- "type": "text",
1778
- "primaryKey": true,
1779
- "notNull": true
1780
- },
1781
- "primary_email": {
1782
- "name": "primary_email",
1783
- "type": "text",
1784
- "primaryKey": false,
1785
- "notNull": true
1786
- },
1787
- "primary_email_normalized": {
1788
- "name": "primary_email_normalized",
1789
- "type": "text",
1790
- "primaryKey": false,
1791
- "notNull": true
1792
- },
1793
- "display_name": {
1794
- "name": "display_name",
1795
- "type": "text",
1796
- "primaryKey": false,
1797
- "notNull": false
1798
- },
1799
- "created_at": {
1800
- "name": "created_at",
1801
- "type": "timestamp with time zone",
1802
- "primaryKey": false,
1803
- "notNull": true
1804
- },
1805
- "updated_at": {
1806
- "name": "updated_at",
1807
- "type": "timestamp with time zone",
1808
- "primaryKey": false,
1809
- "notNull": true
1810
- }
1811
- },
1812
- "indexes": {
1813
- "junior_users_primary_email_normalized_uidx": {
1814
- "name": "junior_users_primary_email_normalized_uidx",
1815
- "columns": [
1816
- {
1817
- "expression": "primary_email_normalized",
1818
- "isExpression": false,
1819
- "asc": true,
1820
- "nulls": "last"
1821
- }
1822
- ],
1823
- "isUnique": true,
1824
- "concurrently": false,
1825
- "method": "btree",
1826
- "with": {}
1827
- }
1828
- },
1829
- "foreignKeys": {},
1830
- "compositePrimaryKeys": {},
1831
- "uniqueConstraints": {},
1832
- "policies": {},
1833
- "checkConstraints": {},
1834
- "isRLSEnabled": false
1835
- }
1836
- },
1837
- "enums": {},
1838
- "schemas": {},
1839
- "sequences": {},
1840
- "roles": {},
1841
- "policies": {},
1842
- "views": {},
1843
- "_meta": {
1844
- "columns": {},
1845
- "schemas": {},
1846
- "tables": {}
1847
- }
1848
- }