@sentry/junior 0.313.0 → 0.315.0

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