chat-js 1.0.0-alpha.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 (1145) hide show
  1. package/README.md +141 -0
  2. package/dist/index.js +74613 -0
  3. package/package.json +71 -0
  4. package/templates/chat-app/.env.example +92 -0
  5. package/templates/chat-app/AGENTS.md +66 -0
  6. package/templates/chat-app/CHANGELOG.md +25 -0
  7. package/templates/chat-app/agent/agent.ts +54 -0
  8. package/templates/chat-app/agent/channels/eve.ts +27 -0
  9. package/templates/chat-app/agent/hooks/activity.ts +37 -0
  10. package/templates/chat-app/agent/hooks/billing.ts +60 -0
  11. package/templates/chat-app/agent/hooks/conversation.ts +34 -0
  12. package/templates/chat-app/agent/hooks/followup-suggestions.ts +2 -0
  13. package/templates/chat-app/agent/hooks/persistent-sandbox.ts +14 -0
  14. package/templates/chat-app/agent/hooks/projects.ts +2 -0
  15. package/templates/chat-app/agent/hooks/search.ts +2 -0
  16. package/templates/chat-app/agent/hooks/tool-selection.ts +23 -0
  17. package/templates/chat-app/agent/instructions/chat.ts +14 -0
  18. package/templates/chat-app/agent/instructions/projects.ts +2 -0
  19. package/templates/chat-app/agent/instructions/tool-selection.ts +23 -0
  20. package/templates/chat-app/agent/sandbox.ts +6 -0
  21. package/templates/chat-app/agent/tools/installed.ts +17 -0
  22. package/templates/chat-app/agent/tools/mcp.ts +2 -0
  23. package/templates/chat-app/app/(auth)/device-login/page.tsx +2 -0
  24. package/templates/chat-app/app/(auth)/login/page.tsx +46 -0
  25. package/templates/chat-app/app/(auth)/register/page.tsx +30 -0
  26. package/templates/chat-app/app/(chat)/api/files/[key]/route.test.ts +78 -0
  27. package/templates/chat-app/app/(chat)/api/files/[key]/route.ts +27 -0
  28. package/templates/chat-app/app/(chat)/api/files/upload/route.ts +2 -0
  29. package/templates/chat-app/app/(chat)/chat/[id]/page.tsx +32 -0
  30. package/templates/chat-app/app/(chat)/layout.tsx +113 -0
  31. package/templates/chat-app/app/(chat)/loading.tsx +11 -0
  32. package/templates/chat-app/app/(chat)/page.tsx +11 -0
  33. package/templates/chat-app/app/(chat)/project/[projectId]/chat/[chatId]/page.tsx +2 -0
  34. package/templates/chat-app/app/(chat)/project/[projectId]/page.tsx +2 -0
  35. package/templates/chat-app/app/(chat)/settings/connectors/[connectorId]/page.tsx +8 -0
  36. package/templates/chat-app/app/(chat)/settings/connectors/page.tsx +6 -0
  37. package/templates/chat-app/app/(chat)/settings/layout.tsx +53 -0
  38. package/templates/chat-app/app/(chat)/settings/loading.tsx +11 -0
  39. package/templates/chat-app/app/(chat)/settings/models/page.tsx +2 -0
  40. package/templates/chat-app/app/(chat)/settings/page.tsx +14 -0
  41. package/templates/chat-app/app/(chat)/share/[id]/page.tsx +25 -0
  42. package/templates/chat-app/app/actions/get-chat-models.ts +6 -0
  43. package/templates/chat-app/app/api/agent-conversation-copies/route.test.ts +190 -0
  44. package/templates/chat-app/app/api/agent-conversation-copies/route.ts +105 -0
  45. package/templates/chat-app/app/api/agent-conversations/[id]/route.test.ts +139 -0
  46. package/templates/chat-app/app/api/agent-conversations/[id]/route.ts +155 -0
  47. package/templates/chat-app/app/api/agent-conversations/route.test.ts +103 -0
  48. package/templates/chat-app/app/api/agent-conversations/route.ts +54 -0
  49. package/templates/chat-app/app/api/agent-response-groups/[id]/route.ts +34 -0
  50. package/templates/chat-app/app/api/agent-response-groups/route.test.ts +147 -0
  51. package/templates/chat-app/app/api/agent-response-groups/route.ts +77 -0
  52. package/templates/chat-app/app/api/agent-workspaces/[id]/route.test.ts +92 -0
  53. package/templates/chat-app/app/api/agent-workspaces/[id]/route.ts +52 -0
  54. package/templates/chat-app/app/api/auth/[...all]/route.ts +4 -0
  55. package/templates/chat-app/app/api/chat-model/route.ts +43 -0
  56. package/templates/chat-app/app/api/cron/cleanup/route.ts +26 -0
  57. package/templates/chat-app/app/api/dev-login/route.test.ts +159 -0
  58. package/templates/chat-app/app/api/dev-login/route.ts +142 -0
  59. package/templates/chat-app/app/api/eve/[...path]/relay-response.ts +20 -0
  60. package/templates/chat-app/app/api/eve/[...path]/route.test.ts +230 -0
  61. package/templates/chat-app/app/api/eve/[...path]/route.ts +327 -0
  62. package/templates/chat-app/app/api/eve-guest/route.ts +2 -0
  63. package/templates/chat-app/app/api/health/route.test.ts +91 -0
  64. package/templates/chat-app/app/api/health/route.ts +58 -0
  65. package/templates/chat-app/app/api/mcp/oauth/callback/route.ts +2 -0
  66. package/templates/chat-app/app/api/trpc/[trpc]/route.ts +17 -0
  67. package/templates/chat-app/app/apple-icon.png +0 -0
  68. package/templates/chat-app/app/chatjs.css +178 -0
  69. package/templates/chat-app/app/editor.css +53 -0
  70. package/templates/chat-app/app/favicon.ico +0 -0
  71. package/templates/chat-app/app/globals.css +141 -0
  72. package/templates/chat-app/app/icon.svg +3 -0
  73. package/templates/chat-app/app/layout.tsx +121 -0
  74. package/templates/chat-app/app/loading.tsx +11 -0
  75. package/templates/chat-app/app/manifest.ts +22 -0
  76. package/templates/chat-app/app/not-found.tsx +25 -0
  77. package/templates/chat-app/app/opengraph-image.png +0 -0
  78. package/templates/chat-app/app/privacy/page.tsx +153 -0
  79. package/templates/chat-app/app/sitemap.ts +19 -0
  80. package/templates/chat-app/app/terms/page.tsx +270 -0
  81. package/templates/chat-app/chat.config.ts +134 -0
  82. package/templates/chat-app/chatjs/core/authentication/contracts.ts +19 -0
  83. package/templates/chat-app/chatjs/core/billing/compose.test.ts +25 -0
  84. package/templates/chat-app/chatjs/core/billing/compose.ts +24 -0
  85. package/templates/chat-app/chatjs/core/billing/contracts.ts +11 -0
  86. package/templates/chat-app/chatjs/core/chat/compose.test.ts +61 -0
  87. package/templates/chat-app/chatjs/core/chat/compose.ts +67 -0
  88. package/templates/chat-app/chatjs/core/chat/contracts.ts +83 -0
  89. package/templates/chat-app/chatjs/core/documents/compose-views.ts +12 -0
  90. package/templates/chat-app/chatjs/core/documents/contracts.ts +91 -0
  91. package/templates/chat-app/chatjs/core/documents/document-definition.test.ts +60 -0
  92. package/templates/chat-app/chatjs/core/documents/document-definition.ts +55 -0
  93. package/templates/chat-app/chatjs/core/documents/ui.ts +67 -0
  94. package/templates/chat-app/chatjs/core/installation/contracts.ts +45 -0
  95. package/templates/chat-app/chatjs/core/installation/plugin.ts +13 -0
  96. package/templates/chat-app/chatjs/core/installation/select.ts +10 -0
  97. package/templates/chat-app/chatjs/core/session/contracts.ts +32 -0
  98. package/templates/chat-app/chatjs/core/tools/define-renderer.tsx +191 -0
  99. package/templates/chat-app/chatjs/core/tools/tool-contract.test.tsx +97 -0
  100. package/templates/chat-app/chatjs/core/tools/tool-definition.test.ts +29 -0
  101. package/templates/chat-app/chatjs/core/tools/tool-definition.ts +30 -0
  102. package/templates/chat-app/chatjs/core/tools/validate-output.ts +10 -0
  103. package/templates/chat-app/chatjs/core/ui/slots.tsx +91 -0
  104. package/templates/chat-app/chatjs/core/uploads/use-attachment-picker.ts +83 -0
  105. package/templates/chat-app/chatjs/generated/code-executor.ts +6 -0
  106. package/templates/chat-app/chatjs/generated/composer-tools.ts +17 -0
  107. package/templates/chat-app/chatjs/generated/document-run.ts +12 -0
  108. package/templates/chat-app/chatjs/generated/document-ui.ts +7 -0
  109. package/templates/chat-app/chatjs/generated/documents.ts +6 -0
  110. package/templates/chat-app/chatjs/generated/installed-auth-ui.ts +5 -0
  111. package/templates/chat-app/chatjs/generated/installed-auth.ts +4 -0
  112. package/templates/chat-app/chatjs/generated/installed-billing.ts +4 -0
  113. package/templates/chat-app/chatjs/generated/installed-chat-ui.ts +23 -0
  114. package/templates/chat-app/chatjs/generated/installed-chat.ts +16 -0
  115. package/templates/chat-app/chatjs/generated/installed-cleanup.ts +6 -0
  116. package/templates/chat-app/chatjs/generated/installed-config.ts +17 -0
  117. package/templates/chat-app/chatjs/generated/installed-database.ts +11 -0
  118. package/templates/chat-app/chatjs/generated/installed-instrumentation.ts +6 -0
  119. package/templates/chat-app/chatjs/generated/installed-layout.ts +11 -0
  120. package/templates/chat-app/chatjs/generated/installed-model-visibility.ts +6 -0
  121. package/templates/chat-app/chatjs/generated/installed-navigation.ts +5 -0
  122. package/templates/chat-app/chatjs/generated/installed-routers.ts +20 -0
  123. package/templates/chat-app/chatjs/generated/installed-session-profiles.ts +6 -0
  124. package/templates/chat-app/chatjs/generated/installed-sign-out.ts +5 -0
  125. package/templates/chat-app/chatjs/generated/installed-signed-out.ts +6 -0
  126. package/templates/chat-app/chatjs/generated/installed-tools.ts +6 -0
  127. package/templates/chat-app/chatjs/generated/installed-uploads.ts +6 -0
  128. package/templates/chat-app/chatjs/generated/installed.ts +18 -0
  129. package/templates/chat-app/chatjs/generated/providers.ts +16 -0
  130. package/templates/chat-app/chatjs/generated/tool-availability.ts +10 -0
  131. package/templates/chat-app/chatjs/generated/tool-definitions.ts +5 -0
  132. package/templates/chat-app/chatjs/generated/tools.ts +34 -0
  133. package/templates/chat-app/chatjs/generated/ui.ts +24 -0
  134. package/templates/chat-app/chatjs/generated/workflow-types.ts +7 -0
  135. package/templates/chat-app/chatjs/plugins/ai-titles/chat.ts +9 -0
  136. package/templates/chat-app/chatjs/plugins/ai-titles/chatjs.json +11 -0
  137. package/templates/chat-app/chatjs/plugins/ai-titles/generate-title.ts +115 -0
  138. package/templates/chat-app/chatjs/plugins/ai-titles/title-queries.ts +59 -0
  139. package/templates/chat-app/chatjs/plugins/attachment-uploads/chatjs.json +23 -0
  140. package/templates/chat-app/chatjs/plugins/attachment-uploads/client-plugin.ts +14 -0
  141. package/templates/chat-app/chatjs/plugins/attachment-uploads/controls.tsx +80 -0
  142. package/templates/chat-app/chatjs/plugins/attachment-uploads/integration.tsx +104 -0
  143. package/templates/chat-app/chatjs/plugins/attachment-uploads/routes/upload.ts +170 -0
  144. package/templates/chat-app/chatjs/plugins/attachment-uploads/upload-prep.ts +115 -0
  145. package/templates/chat-app/chatjs/plugins/attachment-uploads/upload.ts +34 -0
  146. package/templates/chat-app/chatjs/plugins/credits/balance.tsx +23 -0
  147. package/templates/chat-app/chatjs/plugins/credits/billing.ts +19 -0
  148. package/templates/chat-app/chatjs/plugins/credits/chatjs.json +25 -0
  149. package/templates/chat-app/chatjs/plugins/credits/client-plugin.ts +9 -0
  150. package/templates/chat-app/chatjs/plugins/credits/credits-queries.ts +37 -0
  151. package/templates/chat-app/chatjs/plugins/credits/credits-schema.ts +17 -0
  152. package/templates/chat-app/chatjs/plugins/credits/router.ts +15 -0
  153. package/templates/chat-app/chatjs/plugins/credits/server-plugin.ts +5 -0
  154. package/templates/chat-app/chatjs/plugins/credits/use-credits.ts +26 -0
  155. package/templates/chat-app/chatjs/plugins/desktop/auth-form.tsx +81 -0
  156. package/templates/chat-app/chatjs/plugins/desktop/auth-handler.tsx +214 -0
  157. package/templates/chat-app/chatjs/plugins/desktop/auth-server.ts +50 -0
  158. package/templates/chat-app/chatjs/plugins/desktop/auth-ui.tsx +151 -0
  159. package/templates/chat-app/chatjs/plugins/desktop/bridge.ts +45 -0
  160. package/templates/chat-app/chatjs/plugins/desktop/chatjs.json +34 -0
  161. package/templates/chat-app/chatjs/plugins/desktop/client-plugin.ts +9 -0
  162. package/templates/chat-app/chatjs/plugins/desktop/desktop-auth-client.ts +26 -0
  163. package/templates/chat-app/chatjs/plugins/desktop/device-login-page.tsx +211 -0
  164. package/templates/chat-app/chatjs/plugins/desktop/device-login-route.tsx +67 -0
  165. package/templates/chat-app/chatjs/plugins/desktop/electron-auth.ts +78 -0
  166. package/templates/chat-app/chatjs/plugins/desktop/navigation.ts +3 -0
  167. package/templates/chat-app/chatjs/plugins/desktop/protocol.ts +5 -0
  168. package/templates/chat-app/chatjs/plugins/desktop/sign-out.ts +18 -0
  169. package/templates/chat-app/chatjs/plugins/feedback/chat.ts +13 -0
  170. package/templates/chat-app/chatjs/plugins/feedback/chatjs.json +26 -0
  171. package/templates/chat-app/chatjs/plugins/feedback/client-plugin.ts +9 -0
  172. package/templates/chat-app/chatjs/plugins/feedback/feedback-actions.tsx +68 -0
  173. package/templates/chat-app/chatjs/plugins/feedback/feedback-queries.ts +116 -0
  174. package/templates/chat-app/chatjs/plugins/feedback/feedback-schema.ts +15 -0
  175. package/templates/chat-app/chatjs/plugins/feedback/message-vote-actions.tsx +50 -0
  176. package/templates/chat-app/chatjs/plugins/feedback/router.ts +52 -0
  177. package/templates/chat-app/chatjs/plugins/feedback/server-plugin.ts +8 -0
  178. package/templates/chat-app/chatjs/plugins/feedback/vote-message.ts +52 -0
  179. package/templates/chat-app/chatjs/plugins/followup-suggestions/chat.ts +13 -0
  180. package/templates/chat-app/chatjs/plugins/followup-suggestions/chatjs.json +35 -0
  181. package/templates/chat-app/chatjs/plugins/followup-suggestions/client-plugin.ts +9 -0
  182. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-completion.ts +19 -0
  183. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-context.ts +36 -0
  184. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-hook.ts +59 -0
  185. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-queries.ts +79 -0
  186. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-schema.ts +31 -0
  187. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-suggestions-view.tsx +61 -0
  188. package/templates/chat-app/chatjs/plugins/followup-suggestions/generate-suggestions.ts +69 -0
  189. package/templates/chat-app/chatjs/plugins/followup-suggestions/router.ts +31 -0
  190. package/templates/chat-app/chatjs/plugins/followup-suggestions/server-plugin.ts +8 -0
  191. package/templates/chat-app/chatjs/plugins/followup-suggestions/suggestion-output.ts +5 -0
  192. package/templates/chat-app/chatjs/plugins/followup-suggestions/suggestions.tsx +29 -0
  193. package/templates/chat-app/chatjs/plugins/followup-suggestions/use-followups.ts +42 -0
  194. package/templates/chat-app/chatjs/plugins/guest-chat/chatjs.json +33 -0
  195. package/templates/chat-app/chatjs/plugins/guest-chat/cleanup.ts +7 -0
  196. package/templates/chat-app/chatjs/plugins/guest-chat/guest-auth.ts +157 -0
  197. package/templates/chat-app/chatjs/plugins/guest-chat/guest-body.ts +34 -0
  198. package/templates/chat-app/chatjs/plugins/guest-chat/guest-cleanup-auth.ts +19 -0
  199. package/templates/chat-app/chatjs/plugins/guest-chat/guest-cleanup.ts +139 -0
  200. package/templates/chat-app/chatjs/plugins/guest-chat/guest-credential.ts +89 -0
  201. package/templates/chat-app/chatjs/plugins/guest-chat/guest-ip.ts +79 -0
  202. package/templates/chat-app/chatjs/plugins/guest-chat/guest-model.ts +106 -0
  203. package/templates/chat-app/chatjs/plugins/guest-chat/guest-policy.ts +20 -0
  204. package/templates/chat-app/chatjs/plugins/guest-chat/guest-queries.ts +303 -0
  205. package/templates/chat-app/chatjs/plugins/guest-chat/guest-scheduler.ts +114 -0
  206. package/templates/chat-app/chatjs/plugins/guest-chat/guest-schema.ts +74 -0
  207. package/templates/chat-app/chatjs/plugins/guest-chat/routes/create-session.ts +141 -0
  208. package/templates/chat-app/chatjs/plugins/guest-chat/server-plugin.ts +12 -0
  209. package/templates/chat-app/chatjs/plugins/guest-chat/session-profile.ts +11 -0
  210. package/templates/chat-app/chatjs/plugins/guest-chat/signed-out.tsx +363 -0
  211. package/templates/chat-app/chatjs/plugins/langfuse/chatjs.json +14 -0
  212. package/templates/chat-app/chatjs/plugins/langfuse/credentials.ts +22 -0
  213. package/templates/chat-app/chatjs/plugins/langfuse/instrumentation.ts +22 -0
  214. package/templates/chat-app/chatjs/plugins/langfuse/server-plugin.ts +5 -0
  215. package/templates/chat-app/chatjs/plugins/mcp/chatjs.json +55 -0
  216. package/templates/chat-app/chatjs/plugins/mcp/client-plugin.ts +13 -0
  217. package/templates/chat-app/chatjs/plugins/mcp/composer.tsx +143 -0
  218. package/templates/chat-app/chatjs/plugins/mcp/connector-menu-item.tsx +25 -0
  219. package/templates/chat-app/chatjs/plugins/mcp/db/encrypted-text.ts +78 -0
  220. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-connector-queries.ts +161 -0
  221. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-oauth-lock.ts +118 -0
  222. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-oauth-queries.ts +282 -0
  223. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-queries.ts +21 -0
  224. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-schema.ts +81 -0
  225. package/templates/chat-app/chatjs/plugins/mcp/mcp-env.ts +26 -0
  226. package/templates/chat-app/chatjs/plugins/mcp/oauth/cache.ts +147 -0
  227. package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-client-manager.ts +95 -0
  228. package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-client.ts +477 -0
  229. package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-fetch.ts +43 -0
  230. package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-oauth-provider.ts +565 -0
  231. package/templates/chat-app/chatjs/plugins/mcp/oauth/oauth-authorization-required-error.ts +33 -0
  232. package/templates/chat-app/chatjs/plugins/mcp/router.ts +852 -0
  233. package/templates/chat-app/chatjs/plugins/mcp/routes/connector-page.tsx +72 -0
  234. package/templates/chat-app/chatjs/plugins/mcp/routes/connectors-page.tsx +58 -0
  235. package/templates/chat-app/chatjs/plugins/mcp/routes/oauth-callback.ts +180 -0
  236. package/templates/chat-app/chatjs/plugins/mcp/runtime/agent-tools.ts +113 -0
  237. package/templates/chat-app/chatjs/plugins/mcp/runtime/mcp-adapter.ts +94 -0
  238. package/templates/chat-app/chatjs/plugins/mcp/runtime/mcp-tools.ts +459 -0
  239. package/templates/chat-app/chatjs/plugins/mcp/search/mcp-search-params.server.ts +19 -0
  240. package/templates/chat-app/chatjs/plugins/mcp/search/mcp-search-params.ts +16 -0
  241. package/templates/chat-app/chatjs/plugins/mcp/server-plugin.ts +5 -0
  242. package/templates/chat-app/chatjs/plugins/mcp/settings.tsx +10 -0
  243. package/templates/chat-app/chatjs/plugins/mcp/setup.ts +18 -0
  244. package/templates/chat-app/chatjs/plugins/mcp/ui/connector-header.tsx +65 -0
  245. package/templates/chat-app/chatjs/plugins/mcp/ui/connectors-settings.tsx +533 -0
  246. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-connect-dialog.tsx +220 -0
  247. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-create-dialog.tsx +355 -0
  248. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-details-page.tsx +575 -0
  249. package/templates/chat-app/chatjs/plugins/mcp/ui/transport-select.tsx +46 -0
  250. package/templates/chat-app/chatjs/plugins/model-preferences/apply-model-preferences.ts +18 -0
  251. package/templates/chat-app/chatjs/plugins/model-preferences/chatjs.json +31 -0
  252. package/templates/chat-app/chatjs/plugins/model-preferences/client-plugin.ts +11 -0
  253. package/templates/chat-app/chatjs/plugins/model-preferences/model-preferences-queries.ts +40 -0
  254. package/templates/chat-app/chatjs/plugins/model-preferences/model-preferences-schema.ts +36 -0
  255. package/templates/chat-app/chatjs/plugins/model-preferences/model-row.tsx +60 -0
  256. package/templates/chat-app/chatjs/plugins/model-preferences/models-page.tsx +55 -0
  257. package/templates/chat-app/chatjs/plugins/model-preferences/models-settings.tsx +60 -0
  258. package/templates/chat-app/chatjs/plugins/model-preferences/models-table.tsx +198 -0
  259. package/templates/chat-app/chatjs/plugins/model-preferences/router.ts +46 -0
  260. package/templates/chat-app/chatjs/plugins/model-preferences/server-plugin.ts +8 -0
  261. package/templates/chat-app/chatjs/plugins/model-preferences/settings-link.tsx +52 -0
  262. package/templates/chat-app/chatjs/plugins/model-preferences/use-model-preferences.ts +26 -0
  263. package/templates/chat-app/chatjs/plugins/projects/chat.ts +55 -0
  264. package/templates/chat-app/chatjs/plugins/projects/chatjs.json +50 -0
  265. package/templates/chat-app/chatjs/plugins/projects/client-plugin.ts +21 -0
  266. package/templates/chat-app/chatjs/plugins/projects/conversation-hook.ts +44 -0
  267. package/templates/chat-app/chatjs/plugins/projects/creation.ts +28 -0
  268. package/templates/chat-app/chatjs/plugins/projects/db/project-queries.ts +180 -0
  269. package/templates/chat-app/chatjs/plugins/projects/db/project-schema.ts +61 -0
  270. package/templates/chat-app/chatjs/plugins/projects/instructions-state.ts +8 -0
  271. package/templates/chat-app/chatjs/plugins/projects/instructions.ts +19 -0
  272. package/templates/chat-app/chatjs/plugins/projects/project-icons.ts +75 -0
  273. package/templates/chat-app/chatjs/plugins/projects/router.ts +316 -0
  274. package/templates/chat-app/chatjs/plugins/projects/routes/project-chat-page.tsx +37 -0
  275. package/templates/chat-app/chatjs/plugins/projects/routes/project-page.tsx +71 -0
  276. package/templates/chat-app/chatjs/plugins/projects/server-plugin.ts +8 -0
  277. package/templates/chat-app/chatjs/plugins/projects/ui/chat-contributions.tsx +102 -0
  278. package/templates/chat-app/chatjs/plugins/projects/ui/delete-project-dialog.tsx +118 -0
  279. package/templates/chat-app/chatjs/plugins/projects/ui/eve-move-project-dialog.tsx +152 -0
  280. package/templates/chat-app/chatjs/plugins/projects/ui/eve-project-home.tsx +202 -0
  281. package/templates/chat-app/chatjs/plugins/projects/ui/move-menu-item.tsx +22 -0
  282. package/templates/chat-app/chatjs/plugins/projects/ui/project-chat-item.tsx +165 -0
  283. package/templates/chat-app/chatjs/plugins/projects/ui/project-config.tsx +75 -0
  284. package/templates/chat-app/chatjs/plugins/projects/ui/project-details-dialog.tsx +200 -0
  285. package/templates/chat-app/chatjs/plugins/projects/ui/project-history.tsx +57 -0
  286. package/templates/chat-app/chatjs/plugins/projects/ui/project-icon-picker.tsx +101 -0
  287. package/templates/chat-app/chatjs/plugins/projects/ui/project-icon.tsx +92 -0
  288. package/templates/chat-app/chatjs/plugins/projects/ui/project-instructions-dialog.tsx +86 -0
  289. package/templates/chat-app/chatjs/plugins/projects/ui/project-menu-items.tsx +27 -0
  290. package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-project-item.tsx +111 -0
  291. package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-projects.tsx +110 -0
  292. package/templates/chat-app/chatjs/plugins/projects/use-projects.ts +87 -0
  293. package/templates/chat-app/chatjs/plugins/search/backfill.ts +187 -0
  294. package/templates/chat-app/chatjs/plugins/search/chat.ts +14 -0
  295. package/templates/chat-app/chatjs/plugins/search/chatjs.json +34 -0
  296. package/templates/chat-app/chatjs/plugins/search/client-plugin.ts +9 -0
  297. package/templates/chat-app/chatjs/plugins/search/router.ts +46 -0
  298. package/templates/chat-app/chatjs/plugins/search/search-backfill.ts +40 -0
  299. package/templates/chat-app/chatjs/plugins/search/search-chats.tsx +250 -0
  300. package/templates/chat-app/chatjs/plugins/search/search-hook.ts +121 -0
  301. package/templates/chat-app/chatjs/plugins/search/search-queries.ts +298 -0
  302. package/templates/chat-app/chatjs/plugins/search/search-results-view.tsx +215 -0
  303. package/templates/chat-app/chatjs/plugins/search/search-schema.ts +33 -0
  304. package/templates/chat-app/chatjs/plugins/search/search-surface-props.ts +8 -0
  305. package/templates/chat-app/chatjs/plugins/search/search-surface.tsx +28 -0
  306. package/templates/chat-app/chatjs/plugins/search/search-text.ts +60 -0
  307. package/templates/chat-app/chatjs/plugins/search/server-plugin.ts +5 -0
  308. package/templates/chat-app/chatjs/plugins/search/sidebar-item.tsx +13 -0
  309. package/templates/chat-app/chatjs/plugins/search/use-debounced-search.ts +23 -0
  310. package/templates/chat-app/chatjs/plugins/sharing/chat.ts +7 -0
  311. package/templates/chat-app/chatjs/plugins/sharing/chatjs.json +31 -0
  312. package/templates/chat-app/chatjs/plugins/sharing/client-plugin.ts +12 -0
  313. package/templates/chat-app/chatjs/plugins/sharing/public-conversation.ts +48 -0
  314. package/templates/chat-app/chatjs/plugins/sharing/queries.ts +72 -0
  315. package/templates/chat-app/chatjs/plugins/sharing/router.ts +27 -0
  316. package/templates/chat-app/chatjs/plugins/sharing/server-plugin.ts +5 -0
  317. package/templates/chat-app/chatjs/plugins/sharing/ui/chat-contributions.tsx +54 -0
  318. package/templates/chat-app/chatjs/plugins/sharing/ui/share-button.tsx +319 -0
  319. package/templates/chat-app/chatjs/plugins/sharing/ui/share-dialog.tsx +57 -0
  320. package/templates/chat-app/chatjs/plugins/sharing/ui/share-menu-item.tsx +20 -0
  321. package/templates/chat-app/chatjs/plugins/sharing/ui/share-menu-surface.tsx +63 -0
  322. package/templates/chat-app/chatjs/plugins/sharing/ui/shared-badge.tsx +21 -0
  323. package/templates/chat-app/chatjs/plugins/sharing/ui/shared-page.tsx +69 -0
  324. package/templates/chat-app/chatjs/plugins/sharing/ui/transcript-messages.tsx +42 -0
  325. package/templates/chat-app/chatjs/plugins/vercel-analytics/chatjs.json +15 -0
  326. package/templates/chat-app/chatjs/plugins/vercel-analytics/client-plugin.ts +9 -0
  327. package/templates/chat-app/chatjs/plugins/vercel-analytics/component.tsx +5 -0
  328. package/templates/chat-app/chatjs/plugins/vercel-speed-insights/chatjs.json +15 -0
  329. package/templates/chat-app/chatjs/plugins/vercel-speed-insights/client-plugin.ts +9 -0
  330. package/templates/chat-app/chatjs/plugins/vercel-speed-insights/component.tsx +4 -0
  331. package/templates/chat-app/chatjs/providers/gateway-defaults.ts +43 -0
  332. package/templates/chat-app/chatjs/providers/gateway.ts +136 -0
  333. package/templates/chat-app/chatjs/providers/sandbox/adapter.ts +232 -0
  334. package/templates/chat-app/chatjs/providers/sandbox/options.ts +13 -0
  335. package/templates/chat-app/chatjs/providers/sandbox/persistent.ts +258 -0
  336. package/templates/chat-app/chatjs/providers/sandbox/provider.ts +27 -0
  337. package/templates/chat-app/chatjs/providers/sandbox/vercel-sandbox-env.ts +22 -0
  338. package/templates/chat-app/chatjs/providers/storage-options.ts +15 -0
  339. package/templates/chat-app/chatjs/providers/storage.ts +13 -0
  340. package/templates/chat-app/chatjs/tools/_shared/code-execution/code-execution-chart.tsx +83 -0
  341. package/templates/chat-app/chatjs/tools/_shared/code-execution/interactive-chart-impl.tsx +290 -0
  342. package/templates/chat-app/chatjs/tools/_shared/code-execution/interactive-charts.tsx +24 -0
  343. package/templates/chat-app/chatjs/tools/_shared/code-execution/javascript.ts +222 -0
  344. package/templates/chat-app/chatjs/tools/_shared/code-execution/python.ts +381 -0
  345. package/templates/chat-app/chatjs/tools/_shared/code-execution/types.ts +27 -0
  346. package/templates/chat-app/chatjs/tools/_shared/lib/define-tool-renderer.test.ts +194 -0
  347. package/templates/chat-app/chatjs/tools/code-documents/assistant-actions.ts +16 -0
  348. package/templates/chat-app/chatjs/tools/code-documents/chatjs.json +20 -0
  349. package/templates/chat-app/chatjs/tools/code-documents/configuration-schema.ts +7 -0
  350. package/templates/chat-app/chatjs/tools/code-documents/definition.ts +9 -0
  351. package/templates/chat-app/chatjs/tools/code-documents/document.tsx +33 -0
  352. package/templates/chat-app/chatjs/tools/code-documents/editor.tsx +144 -0
  353. package/templates/chat-app/chatjs/tools/code-documents/guidelines.ts +15 -0
  354. package/templates/chat-app/chatjs/tools/code-documents/tool.ts +54 -0
  355. package/templates/chat-app/chatjs/tools/code-execution/chatjs.json +21 -0
  356. package/templates/chat-app/chatjs/tools/code-execution/python.test.ts +207 -0
  357. package/templates/chat-app/chatjs/tools/code-execution/renderer.test.tsx +142 -0
  358. package/templates/chat-app/chatjs/tools/code-execution/renderer.tsx +68 -0
  359. package/templates/chat-app/chatjs/tools/code-execution/schemas.ts +23 -0
  360. package/templates/chat-app/chatjs/tools/code-execution/tool.ts +93 -0
  361. package/templates/chat-app/chatjs/tools/deep-research/agent.ts +18 -0
  362. package/templates/chat-app/chatjs/tools/deep-research/availability.ts +23 -0
  363. package/templates/chat-app/chatjs/tools/deep-research/chatjs.json +21 -0
  364. package/templates/chat-app/chatjs/tools/deep-research/configuration-schema.ts +36 -0
  365. package/templates/chat-app/chatjs/tools/deep-research/configuration.ts +22 -0
  366. package/templates/chat-app/chatjs/tools/deep-research/progress-panel.tsx +121 -0
  367. package/templates/chat-app/chatjs/tools/deep-research/progress.tsx +23 -0
  368. package/templates/chat-app/chatjs/tools/deep-research/prompts.ts +280 -0
  369. package/templates/chat-app/chatjs/tools/deep-research/renderer.tsx +49 -0
  370. package/templates/chat-app/chatjs/tools/deep-research/schemas.ts +46 -0
  371. package/templates/chat-app/chatjs/tools/deep-research/search-updates.ts +76 -0
  372. package/templates/chat-app/chatjs/tools/deep-research/steps.ts +92 -0
  373. package/templates/chat-app/chatjs/tools/deep-research/task.tsx +69 -0
  374. package/templates/chat-app/chatjs/tools/deep-research/tasks.tsx +53 -0
  375. package/templates/chat-app/chatjs/tools/deep-research/tool.ts +1 -0
  376. package/templates/chat-app/chatjs/tools/delete-document/availability.ts +13 -0
  377. package/templates/chat-app/chatjs/tools/delete-document/chatjs.json +9 -0
  378. package/templates/chat-app/chatjs/tools/delete-document/execute.ts +78 -0
  379. package/templates/chat-app/chatjs/tools/delete-document/schemas.ts +18 -0
  380. package/templates/chat-app/chatjs/tools/delete-document/tool.ts +49 -0
  381. package/templates/chat-app/chatjs/tools/generate-image/chatjs.json +22 -0
  382. package/templates/chat-app/chatjs/tools/generate-image/configuration-schema.ts +9 -0
  383. package/templates/chat-app/chatjs/tools/generate-image/image-errors.ts +59 -0
  384. package/templates/chat-app/chatjs/tools/generate-image/image-generation.ts +257 -0
  385. package/templates/chat-app/chatjs/tools/generate-image/image-input.ts +47 -0
  386. package/templates/chat-app/chatjs/tools/generate-image/image-model.ts +58 -0
  387. package/templates/chat-app/chatjs/tools/generate-image/image-request.ts +140 -0
  388. package/templates/chat-app/chatjs/tools/generate-image/renderer.tsx +102 -0
  389. package/templates/chat-app/chatjs/tools/generate-image/schemas.ts +16 -0
  390. package/templates/chat-app/chatjs/tools/generate-image/tool.test.ts +229 -0
  391. package/templates/chat-app/chatjs/tools/generate-image/tool.ts +21 -0
  392. package/templates/chat-app/chatjs/tools/generate-video/chatjs.json +22 -0
  393. package/templates/chat-app/chatjs/tools/generate-video/configuration-schema.ts +9 -0
  394. package/templates/chat-app/chatjs/tools/generate-video/renderer.tsx +55 -0
  395. package/templates/chat-app/chatjs/tools/generate-video/schemas.ts +28 -0
  396. package/templates/chat-app/chatjs/tools/generate-video/tool.test.ts +123 -0
  397. package/templates/chat-app/chatjs/tools/generate-video/tool.ts +288 -0
  398. package/templates/chat-app/chatjs/tools/get-weather/chatjs.json +14 -0
  399. package/templates/chat-app/chatjs/tools/get-weather/definition.ts +10 -0
  400. package/templates/chat-app/chatjs/tools/get-weather/renderer.test.tsx +57 -0
  401. package/templates/chat-app/chatjs/tools/get-weather/renderer.tsx +290 -0
  402. package/templates/chat-app/chatjs/tools/get-weather/schemas.ts +51 -0
  403. package/templates/chat-app/chatjs/tools/get-weather/tool.ts +34 -0
  404. package/templates/chat-app/chatjs/tools/read-document/chatjs.json +8 -0
  405. package/templates/chat-app/chatjs/tools/read-document/tool.ts +27 -0
  406. package/templates/chat-app/chatjs/tools/retrieve-url/chatjs.json +11 -0
  407. package/templates/chat-app/chatjs/tools/retrieve-url/renderer.tsx +200 -0
  408. package/templates/chat-app/chatjs/tools/retrieve-url/retrieve-url-env.ts +11 -0
  409. package/templates/chat-app/chatjs/tools/retrieve-url/schemas.ts +24 -0
  410. package/templates/chat-app/chatjs/tools/retrieve-url/tool.test.ts +144 -0
  411. package/templates/chat-app/chatjs/tools/retrieve-url/tool.ts +169 -0
  412. package/templates/chat-app/chatjs/tools/saved-code-execution/chatjs.json +12 -0
  413. package/templates/chat-app/chatjs/tools/saved-code-execution/document-runs.ts +31 -0
  414. package/templates/chat-app/chatjs/tools/saved-code-execution/document.tsx +84 -0
  415. package/templates/chat-app/chatjs/tools/saved-code-execution/execute.ts +126 -0
  416. package/templates/chat-app/chatjs/tools/saved-code-execution/renderer.tsx +30 -0
  417. package/templates/chat-app/chatjs/tools/saved-code-execution/result.tsx +42 -0
  418. package/templates/chat-app/chatjs/tools/saved-code-execution/schemas.ts +82 -0
  419. package/templates/chat-app/chatjs/tools/saved-code-execution/tool.ts +12 -0
  420. package/templates/chat-app/chatjs/tools/sheet-documents/assistant-actions.ts +22 -0
  421. package/templates/chat-app/chatjs/tools/sheet-documents/chatjs.json +20 -0
  422. package/templates/chat-app/chatjs/tools/sheet-documents/configuration-schema.ts +10 -0
  423. package/templates/chat-app/chatjs/tools/sheet-documents/definition.ts +9 -0
  424. package/templates/chat-app/chatjs/tools/sheet-documents/document.tsx +41 -0
  425. package/templates/chat-app/chatjs/tools/sheet-documents/editor.tsx +180 -0
  426. package/templates/chat-app/chatjs/tools/sheet-documents/guidelines.ts +5 -0
  427. package/templates/chat-app/chatjs/tools/sheet-documents/tool.ts +54 -0
  428. package/templates/chat-app/chatjs/tools/tavily-search/chatjs.json +19 -0
  429. package/templates/chat-app/chatjs/tools/tavily-search/renderer.tsx +25 -0
  430. package/templates/chat-app/chatjs/tools/tavily-search/schemas.ts +39 -0
  431. package/templates/chat-app/chatjs/tools/tavily-search/tavily-search-env.ts +11 -0
  432. package/templates/chat-app/chatjs/tools/tavily-search/tool.test.ts +114 -0
  433. package/templates/chat-app/chatjs/tools/tavily-search/tool.ts +143 -0
  434. package/templates/chat-app/chatjs/tools/text-documents/assistant-actions.ts +12 -0
  435. package/templates/chat-app/chatjs/tools/text-documents/chatjs.json +20 -0
  436. package/templates/chat-app/chatjs/tools/text-documents/comparison.tsx +72 -0
  437. package/templates/chat-app/chatjs/tools/text-documents/configuration-schema.ts +7 -0
  438. package/templates/chat-app/chatjs/tools/text-documents/definition.ts +9 -0
  439. package/templates/chat-app/chatjs/tools/text-documents/diffview.tsx +214 -0
  440. package/templates/chat-app/chatjs/tools/text-documents/document.tsx +46 -0
  441. package/templates/chat-app/chatjs/tools/text-documents/editor-config.ts +53 -0
  442. package/templates/chat-app/chatjs/tools/text-documents/editor.tsx +139 -0
  443. package/templates/chat-app/chatjs/tools/text-documents/guidelines.ts +7 -0
  444. package/templates/chat-app/chatjs/tools/text-documents/tool.ts +54 -0
  445. package/templates/chat-app/chatjs/tools/word-count/chatjs.json +14 -0
  446. package/templates/chat-app/chatjs/tools/word-count/definition.ts +10 -0
  447. package/templates/chat-app/chatjs/tools/word-count/renderer.tsx +64 -0
  448. package/templates/chat-app/chatjs/tools/word-count/schemas.ts +13 -0
  449. package/templates/chat-app/chatjs/tools/word-count/tool.ts +45 -0
  450. package/templates/chat-app/components/account-form.tsx +22 -0
  451. package/templates/chat-app/components/ai-elements/context-hover.radix.tsx +15 -0
  452. package/templates/chat-app/components/ai-elements/context-hover.tsx +17 -0
  453. package/templates/chat-app/components/ai-elements/context.tsx +405 -0
  454. package/templates/chat-app/components/ai-elements/parse-incomplete-markdown.test.ts +34 -0
  455. package/templates/chat-app/components/ai-elements/parse-incomplete-markdown.tsx +138 -0
  456. package/templates/chat-app/components/ai-elements/response.tsx +51 -0
  457. package/templates/chat-app/components/ai-elements/suggestion.tsx +59 -0
  458. package/templates/chat-app/components/app-sidebar.tsx +94 -0
  459. package/templates/chat-app/components/attachment-card-view.tsx +53 -0
  460. package/templates/chat-app/components/attachment-card.tsx +92 -0
  461. package/templates/chat-app/components/attachment-list.tsx +188 -0
  462. package/templates/chat-app/components/attachment-preview-trigger.radix.tsx +12 -0
  463. package/templates/chat-app/components/attachment-preview-trigger.tsx +8 -0
  464. package/templates/chat-app/components/auth-card-skeleton.tsx +52 -0
  465. package/templates/chat-app/components/auth-form-view.tsx +72 -0
  466. package/templates/chat-app/components/auth-providers.tsx +201 -0
  467. package/templates/chat-app/components/chat/chat-layout.tsx +129 -0
  468. package/templates/chat-app/components/chat/chat-welcome-view.tsx +34 -0
  469. package/templates/chat-app/components/chat-header-view.tsx +36 -0
  470. package/templates/chat-app/components/chat-loading-shell.tsx +24 -0
  471. package/templates/chat-app/components/chat-menu-items.tsx +43 -0
  472. package/templates/chat-app/components/chat-message-view.tsx +39 -0
  473. package/templates/chat-app/components/chat-rename-dialog.tsx +156 -0
  474. package/templates/chat-app/components/chat-sidebar-view.tsx +53 -0
  475. package/templates/chat-app/components/chat-slots.tsx +24 -0
  476. package/templates/chat-app/components/client-snapshot.ts +32 -0
  477. package/templates/chat-app/components/clone-chat-button-view.tsx +43 -0
  478. package/templates/chat-app/components/code-snippet.tsx +35 -0
  479. package/templates/chat-app/components/composer/active-tool.tsx +48 -0
  480. package/templates/chat-app/components/composer/composer-attachments.tsx +26 -0
  481. package/templates/chat-app/components/composer/composer-menu.tsx +92 -0
  482. package/templates/chat-app/components/composer/control.ts +20 -0
  483. package/templates/chat-app/components/composer/editor.css +96 -0
  484. package/templates/chat-app/components/composer/prompt-form.tsx +49 -0
  485. package/templates/chat-app/components/composer/submission.ts +10 -0
  486. package/templates/chat-app/components/composer/tool-controls.tsx +139 -0
  487. package/templates/chat-app/components/composer/tool-display.ts +19 -0
  488. package/templates/chat-app/components/composer/tool-menu-item.radix.tsx +24 -0
  489. package/templates/chat-app/components/composer/tool-menu-item.tsx +25 -0
  490. package/templates/chat-app/components/context-bar.tsx +39 -0
  491. package/templates/chat-app/components/controlled-chat-composer.tsx +197 -0
  492. package/templates/chat-app/components/custom-content.ts +17 -0
  493. package/templates/chat-app/components/dev-login-tool.tsx +29 -0
  494. package/templates/chat-app/components/dialog-button.radix.tsx +13 -0
  495. package/templates/chat-app/components/dialog-button.tsx +11 -0
  496. package/templates/chat-app/components/disclosure-button.radix.tsx +13 -0
  497. package/templates/chat-app/components/disclosure-button.tsx +13 -0
  498. package/templates/chat-app/components/document-skeleton.tsx +33 -0
  499. package/templates/chat-app/components/drawer-close-button.radix.tsx +13 -0
  500. package/templates/chat-app/components/drawer-close-button.tsx +11 -0
  501. package/templates/chat-app/components/editable-bubble-props.ts +6 -0
  502. package/templates/chat-app/components/editable-bubble.radix.tsx +18 -0
  503. package/templates/chat-app/components/editable-bubble.tsx +16 -0
  504. package/templates/chat-app/components/eve/eve-artifact-layout.tsx +722 -0
  505. package/templates/chat-app/components/eve/eve-attachment.tsx +62 -0
  506. package/templates/chat-app/components/eve/eve-chat-error.tsx +16 -0
  507. package/templates/chat-app/components/eve/eve-chat-header.tsx +169 -0
  508. package/templates/chat-app/components/eve/eve-chat-page.tsx +120 -0
  509. package/templates/chat-app/components/eve/eve-composer.tsx +184 -0
  510. package/templates/chat-app/components/eve/eve-conversation.tsx +995 -0
  511. package/templates/chat-app/components/eve/eve-copy-button.tsx +165 -0
  512. package/templates/chat-app/components/eve/eve-creation-recovery.tsx +247 -0
  513. package/templates/chat-app/components/eve/eve-delete-dialog.tsx +195 -0
  514. package/templates/chat-app/components/eve/eve-deletion-provider.tsx +108 -0
  515. package/templates/chat-app/components/eve/eve-document-actions.tsx +124 -0
  516. package/templates/chat-app/components/eve/eve-document-assistant-actions.tsx +157 -0
  517. package/templates/chat-app/components/eve/eve-document-body.tsx +29 -0
  518. package/templates/chat-app/components/eve/eve-document-context.tsx +12 -0
  519. package/templates/chat-app/components/eve/eve-document-preview.tsx +128 -0
  520. package/templates/chat-app/components/eve/eve-document-tool.tsx +190 -0
  521. package/templates/chat-app/components/eve/eve-fork-recovery.tsx +79 -0
  522. package/templates/chat-app/components/eve/eve-history-list.tsx +303 -0
  523. package/templates/chat-app/components/eve/eve-history.tsx +25 -0
  524. package/templates/chat-app/components/eve/eve-initial-message.tsx +24 -0
  525. package/templates/chat-app/components/eve/eve-logical-context.tsx +46 -0
  526. package/templates/chat-app/components/eve/eve-logical-group-recovery.tsx +191 -0
  527. package/templates/chat-app/components/eve/eve-logical-navigation.tsx +38 -0
  528. package/templates/chat-app/components/eve/eve-mcp-result.tsx +41 -0
  529. package/templates/chat-app/components/eve/eve-message-part.tsx +176 -0
  530. package/templates/chat-app/components/eve/eve-messages.tsx +389 -0
  531. package/templates/chat-app/components/eve/eve-model-picker.tsx +35 -0
  532. package/templates/chat-app/components/eve/eve-optimistic-response-group.tsx +70 -0
  533. package/templates/chat-app/components/eve/eve-pending-input.tsx +156 -0
  534. package/templates/chat-app/components/eve/eve-response-group-cards.tsx +83 -0
  535. package/templates/chat-app/components/eve/eve-runtime-provider.tsx +372 -0
  536. package/templates/chat-app/components/eve/eve-thinking-message.tsx +42 -0
  537. package/templates/chat-app/components/eve/eve-tool-result.tsx +63 -0
  538. package/templates/chat-app/components/eve/new-conversation-view.tsx +55 -0
  539. package/templates/chat-app/components/eve/new-eve-conversation.tsx +31 -0
  540. package/templates/chat-app/components/eve/use-document-draft.ts +281 -0
  541. package/templates/chat-app/components/eve/use-eve-attachments.ts +34 -0
  542. package/templates/chat-app/components/eve/use-eve-composer-draft.ts +149 -0
  543. package/templates/chat-app/components/eve/use-eve-delivery-receipt.ts +58 -0
  544. package/templates/chat-app/components/eve/use-eve-fork.ts +537 -0
  545. package/templates/chat-app/components/eve/use-eve-message-delivery.ts +171 -0
  546. package/templates/chat-app/components/eve/use-eve-metadata-mutations.ts +61 -0
  547. package/templates/chat-app/components/eve/use-logical-commands.ts +16 -0
  548. package/templates/chat-app/components/eve/use-new-eve-conversation.tsx +342 -0
  549. package/templates/chat-app/components/favicon-group.tsx +50 -0
  550. package/templates/chat-app/components/favicon.tsx +54 -0
  551. package/templates/chat-app/components/get-google-favicon-url.tsx +21 -0
  552. package/templates/chat-app/components/get-url-without-params.ts +9 -0
  553. package/templates/chat-app/components/header-actions.tsx +48 -0
  554. package/templates/chat-app/components/hint.radix.tsx +26 -0
  555. package/templates/chat-app/components/hint.tsx +26 -0
  556. package/templates/chat-app/components/icons.tsx +53 -0
  557. package/templates/chat-app/components/image-modal.tsx +180 -0
  558. package/templates/chat-app/components/internal-link.tsx +89 -0
  559. package/templates/chat-app/components/keyboard-shortcuts.tsx +58 -0
  560. package/templates/chat-app/components/layout-plugins.tsx +10 -0
  561. package/templates/chat-app/components/layout-slots.tsx +4 -0
  562. package/templates/chat-app/components/lexical-chat-input.tsx +276 -0
  563. package/templates/chat-app/components/login-form.tsx +5 -0
  564. package/templates/chat-app/components/menu-button.radix.tsx +13 -0
  565. package/templates/chat-app/components/menu-button.tsx +13 -0
  566. package/templates/chat-app/components/message-action.tsx +28 -0
  567. package/templates/chat-app/components/message-actions-view.tsx +74 -0
  568. package/templates/chat-app/components/message-siblings-view.tsx +48 -0
  569. package/templates/chat-app/components/model-selection-indicator.radix.tsx +17 -0
  570. package/templates/chat-app/components/model-selection-indicator.tsx +17 -0
  571. package/templates/chat-app/components/model-selector-logo.tsx +37 -0
  572. package/templates/chat-app/components/model-selector-view.tsx +772 -0
  573. package/templates/chat-app/components/model-selector.tsx +46 -0
  574. package/templates/chat-app/components/navigation-links.radix.tsx +50 -0
  575. package/templates/chat-app/components/navigation-links.tsx +48 -0
  576. package/templates/chat-app/components/new-chat-button.tsx +41 -0
  577. package/templates/chat-app/components/optional-content.test.ts +28 -0
  578. package/templates/chat-app/components/parallel-responses/client-plugin.ts +11 -0
  579. package/templates/chat-app/components/parallel-responses/model-picker.tsx +75 -0
  580. package/templates/chat-app/components/parallel-responses/responses.tsx +148 -0
  581. package/templates/chat-app/components/part/document-common.tsx +152 -0
  582. package/templates/chat-app/components/part/mcp-tool-result.tsx +43 -0
  583. package/templates/chat-app/components/part/message-reasoning.tsx +71 -0
  584. package/templates/chat-app/components/part/tool-activity.tsx +93 -0
  585. package/templates/chat-app/components/part/tool-data.tsx +77 -0
  586. package/templates/chat-app/components/part/web-search.tsx +75 -0
  587. package/templates/chat-app/components/popover-button.radix.tsx +13 -0
  588. package/templates/chat-app/components/popover-button.tsx +11 -0
  589. package/templates/chat-app/components/response-choice-cards.tsx +60 -0
  590. package/templates/chat-app/components/retry-button-view.tsx +32 -0
  591. package/templates/chat-app/components/sandbox.tsx +43 -0
  592. package/templates/chat-app/components/settings/settings-header.tsx +21 -0
  593. package/templates/chat-app/components/settings/settings-nav.tsx +25 -0
  594. package/templates/chat-app/components/settings/settings-navigation-link.tsx +29 -0
  595. package/templates/chat-app/components/settings/settings-page.tsx +63 -0
  596. package/templates/chat-app/components/sidebar-chat-item.tsx +176 -0
  597. package/templates/chat-app/components/sidebar-menus.radix.tsx +62 -0
  598. package/templates/chat-app/components/sidebar-menus.tsx +66 -0
  599. package/templates/chat-app/components/sidebar-toggle.tsx +42 -0
  600. package/templates/chat-app/components/sidebar-top-row.tsx +64 -0
  601. package/templates/chat-app/components/sidebar-user-nav.tsx +208 -0
  602. package/templates/chat-app/components/signup-form.tsx +5 -0
  603. package/templates/chat-app/components/source-badge.tsx +50 -0
  604. package/templates/chat-app/components/sources.tsx +140 -0
  605. package/templates/chat-app/components/tag.tsx +23 -0
  606. package/templates/chat-app/components/task-cleanup.test.ts +39 -0
  607. package/templates/chat-app/components/task-cleanup.ts +15 -0
  608. package/templates/chat-app/components/test-dom-harness.ts +22 -0
  609. package/templates/chat-app/components/text-value.ts +7 -0
  610. package/templates/chat-app/components/theme-provider.tsx +14 -0
  611. package/templates/chat-app/components/thinking-message.tsx +17 -0
  612. package/templates/chat-app/components/ui/alert-dialog.tsx +187 -0
  613. package/templates/chat-app/components/ui/alert.tsx +75 -0
  614. package/templates/chat-app/components/ui/attachment.tsx +207 -0
  615. package/templates/chat-app/components/ui/avatar.tsx +108 -0
  616. package/templates/chat-app/components/ui/badge.tsx +51 -0
  617. package/templates/chat-app/components/ui/breadcrumb.tsx +124 -0
  618. package/templates/chat-app/components/ui/bubble.tsx +127 -0
  619. package/templates/chat-app/components/ui/button-group.tsx +87 -0
  620. package/templates/chat-app/components/ui/button.tsx +55 -0
  621. package/templates/chat-app/components/ui/card.tsx +99 -0
  622. package/templates/chat-app/components/ui/checkbox.tsx +28 -0
  623. package/templates/chat-app/components/ui/code-block.tsx +252 -0
  624. package/templates/chat-app/components/ui/collapsible.tsx +21 -0
  625. package/templates/chat-app/components/ui/command.tsx +196 -0
  626. package/templates/chat-app/components/ui/dialog.tsx +160 -0
  627. package/templates/chat-app/components/ui/direction.tsx +6 -0
  628. package/templates/chat-app/components/ui/drawer.tsx +227 -0
  629. package/templates/chat-app/components/ui/dropdown-menu.tsx +267 -0
  630. package/templates/chat-app/components/ui/empty.tsx +103 -0
  631. package/templates/chat-app/components/ui/extra/action-container.tsx +50 -0
  632. package/templates/chat-app/components/ui/field.tsx +238 -0
  633. package/templates/chat-app/components/ui/hover-card.tsx +50 -0
  634. package/templates/chat-app/components/ui/input-group.tsx +157 -0
  635. package/templates/chat-app/components/ui/input.tsx +19 -0
  636. package/templates/chat-app/components/ui/item.tsx +201 -0
  637. package/templates/chat-app/components/ui/label.tsx +19 -0
  638. package/templates/chat-app/components/ui/message-scroller.tsx +130 -0
  639. package/templates/chat-app/components/ui/message.tsx +91 -0
  640. package/templates/chat-app/components/ui/popover.tsx +89 -0
  641. package/templates/chat-app/components/ui/progress.tsx +82 -0
  642. package/templates/chat-app/components/ui/questionnaire.tsx +324 -0
  643. package/templates/chat-app/components/ui/resizable.tsx +49 -0
  644. package/templates/chat-app/components/ui/scroll-area.tsx +54 -0
  645. package/templates/chat-app/components/ui/select.tsx +200 -0
  646. package/templates/chat-app/components/ui/separator.tsx +24 -0
  647. package/templates/chat-app/components/ui/sheet.tsx +138 -0
  648. package/templates/chat-app/components/ui/sidebar.tsx +726 -0
  649. package/templates/chat-app/components/ui/skeleton.tsx +13 -0
  650. package/templates/chat-app/components/ui/slider.tsx +51 -0
  651. package/templates/chat-app/components/ui/spinner.tsx +10 -0
  652. package/templates/chat-app/components/ui/switch.tsx +31 -0
  653. package/templates/chat-app/components/ui/table.tsx +115 -0
  654. package/templates/chat-app/components/ui/tabs.tsx +81 -0
  655. package/templates/chat-app/components/ui/textarea.tsx +17 -0
  656. package/templates/chat-app/components/ui/toggle.tsx +44 -0
  657. package/templates/chat-app/components/ui/tooltip.tsx +65 -0
  658. package/templates/chat-app/components/ui/trace.tsx +162 -0
  659. package/templates/chat-app/components/upgrade-cta/login-cta-banner.tsx +112 -0
  660. package/templates/chat-app/components/upgrade-cta/login-prompt.tsx +34 -0
  661. package/templates/chat-app/components/user-message-view.tsx +92 -0
  662. package/templates/chat-app/components/with-skeleton.tsx +35 -0
  663. package/templates/chat-app/components.json +27 -0
  664. package/templates/chat-app/composer-controls.ts +16 -0
  665. package/templates/chat-app/docs/cleanup.md +21 -0
  666. package/templates/chat-app/docs/guest-sessions.md +29 -0
  667. package/templates/chat-app/docs/single-agent-verification.md +35 -0
  668. package/templates/chat-app/drizzle.config.ts +23 -0
  669. package/templates/chat-app/drizzle.generate.config.ts +9 -0
  670. package/templates/chat-app/hooks/responsive-hooks.test.tsx +20 -0
  671. package/templates/chat-app/hooks/use-artifact.tsx +180 -0
  672. package/templates/chat-app/hooks/use-auto-focus.ts +57 -0
  673. package/templates/chat-app/hooks/use-highlighted-code.ts +75 -0
  674. package/templates/chat-app/hooks/use-image-load-error.ts +20 -0
  675. package/templates/chat-app/hooks/use-media-query.tsx +24 -0
  676. package/templates/chat-app/hooks/use-mobile.ts +19 -0
  677. package/templates/chat-app/hooks/use-mounted.ts +11 -0
  678. package/templates/chat-app/instrumentation.ts +14 -0
  679. package/templates/chat-app/integrations/auth/form.ts +8 -0
  680. package/templates/chat-app/integrations/auth/server.ts +12 -0
  681. package/templates/chat-app/integrations/auth/sign-out.ts +6 -0
  682. package/templates/chat-app/integrations/auth/signed-out.ts +7 -0
  683. package/templates/chat-app/integrations/billing.ts +5 -0
  684. package/templates/chat-app/integrations/chat/model-visibility.ts +8 -0
  685. package/templates/chat-app/integrations/chat/server.ts +5 -0
  686. package/templates/chat-app/integrations/chat/session-profiles.ts +3 -0
  687. package/templates/chat-app/integrations/chat/ui.ts +4 -0
  688. package/templates/chat-app/integrations/chat/uploads.ts +18 -0
  689. package/templates/chat-app/integrations/cleanup.ts +3 -0
  690. package/templates/chat-app/integrations/database.ts +3 -0
  691. package/templates/chat-app/integrations/documents/definitions.ts +4 -0
  692. package/templates/chat-app/integrations/documents/run.ts +1 -0
  693. package/templates/chat-app/integrations/documents/ui.ts +4 -0
  694. package/templates/chat-app/integrations/instrumentation.ts +3 -0
  695. package/templates/chat-app/integrations/layout.ts +3 -0
  696. package/templates/chat-app/integrations/navigation.ts +8 -0
  697. package/templates/chat-app/integrations/plugin-catalog.ts +5 -0
  698. package/templates/chat-app/integrations/providers/gateway.ts +5 -0
  699. package/templates/chat-app/integrations/providers/sandbox.ts +10 -0
  700. package/templates/chat-app/integrations/providers/storage.ts +5 -0
  701. package/templates/chat-app/integrations/routers.ts +3 -0
  702. package/templates/chat-app/integrations/tools/availability.ts +3 -0
  703. package/templates/chat-app/integrations/tools/catalog.ts +10 -0
  704. package/templates/chat-app/integrations/tools/code-executor.ts +1 -0
  705. package/templates/chat-app/integrations/tools/composer.ts +20 -0
  706. package/templates/chat-app/integrations/tools/configuration.ts +3 -0
  707. package/templates/chat-app/integrations/tools/definitions.ts +6 -0
  708. package/templates/chat-app/integrations/tools/execution.ts +15 -0
  709. package/templates/chat-app/integrations/tools/providers.ts +3 -0
  710. package/templates/chat-app/integrations/tools/selection.ts +10 -0
  711. package/templates/chat-app/integrations/tools/ui.ts +4 -0
  712. package/templates/chat-app/lib/ai/active-gateway.ts +24 -0
  713. package/templates/chat-app/lib/ai/app-model-id.ts +23 -0
  714. package/templates/chat-app/lib/ai/app-models.test.ts +92 -0
  715. package/templates/chat-app/lib/ai/app-models.ts +153 -0
  716. package/templates/chat-app/lib/ai/gateways/fallback-models.ts +29 -0
  717. package/templates/chat-app/lib/ai/gateways/registry.ts +71 -0
  718. package/templates/chat-app/lib/ai/mcp-name-id.ts +112 -0
  719. package/templates/chat-app/lib/ai/model-data.ts +35 -0
  720. package/templates/chat-app/lib/ai/models.generated.ts +4242 -0
  721. package/templates/chat-app/lib/ai/models.ts +44 -0
  722. package/templates/chat-app/lib/ai/prompts.ts +25 -0
  723. package/templates/chat-app/lib/ai/providers.ts +41 -0
  724. package/templates/chat-app/lib/ai/telemetry.ts +4 -0
  725. package/templates/chat-app/lib/ai/to-model-data.test.ts +24 -0
  726. package/templates/chat-app/lib/ai/to-model-data.ts +63 -0
  727. package/templates/chat-app/lib/ai/tool-context.ts +28 -0
  728. package/templates/chat-app/lib/ai/tool-renderer-registry.ts +30 -0
  729. package/templates/chat-app/lib/ai/types.ts +85 -0
  730. package/templates/chat-app/lib/ai/usage-token-details.test.ts +76 -0
  731. package/templates/chat-app/lib/ai/usage-token-details.ts +33 -0
  732. package/templates/chat-app/lib/artifacts/artifact-kind.ts +8 -0
  733. package/templates/chat-app/lib/artifacts/types.ts +19 -0
  734. package/templates/chat-app/lib/auth-client.ts +5 -0
  735. package/templates/chat-app/lib/auth-session-options.test.ts +106 -0
  736. package/templates/chat-app/lib/auth-session-options.ts +47 -0
  737. package/templates/chat-app/lib/auth.ts +90 -0
  738. package/templates/chat-app/lib/chat-after-create.test.ts +74 -0
  739. package/templates/chat-app/lib/chat-after-create.ts +32 -0
  740. package/templates/chat-app/lib/chat-route.ts +18 -0
  741. package/templates/chat-app/lib/cleanup/contracts.ts +10 -0
  742. package/templates/chat-app/lib/cleanup/job.ts +53 -0
  743. package/templates/chat-app/lib/cleanup/route.test.ts +47 -0
  744. package/templates/chat-app/lib/config-models.ts +30 -0
  745. package/templates/chat-app/lib/config-requirements.test.ts +162 -0
  746. package/templates/chat-app/lib/config-requirements.ts +110 -0
  747. package/templates/chat-app/lib/config-schema.test.ts +71 -0
  748. package/templates/chat-app/lib/config-schema.ts +411 -0
  749. package/templates/chat-app/lib/config.ts +21 -0
  750. package/templates/chat-app/lib/constants.ts +7 -0
  751. package/templates/chat-app/lib/creation-rejected-error.ts +11 -0
  752. package/templates/chat-app/lib/db/client.ts +13 -0
  753. package/templates/chat-app/lib/db/connection.test.ts +56 -0
  754. package/templates/chat-app/lib/db/connection.ts +75 -0
  755. package/templates/chat-app/lib/db/creation-conflict-error.ts +15 -0
  756. package/templates/chat-app/lib/db/eve-billing.ts +398 -0
  757. package/templates/chat-app/lib/db/eve-code-sandboxes.ts +197 -0
  758. package/templates/chat-app/lib/db/eve-creation-failure.ts +37 -0
  759. package/templates/chat-app/lib/db/eve-current-copy.ts +230 -0
  760. package/templates/chat-app/lib/db/eve-deletion-scope.ts +9 -0
  761. package/templates/chat-app/lib/db/eve-deletion.ts +367 -0
  762. package/templates/chat-app/lib/db/eve-dispatch.ts +283 -0
  763. package/templates/chat-app/lib/db/eve-document-retention.ts +36 -0
  764. package/templates/chat-app/lib/db/eve-documents.ts +700 -0
  765. package/templates/chat-app/lib/db/eve-family-lock.ts +15 -0
  766. package/templates/chat-app/lib/db/eve-file-purge.ts +311 -0
  767. package/templates/chat-app/lib/db/eve-files.ts +335 -0
  768. package/templates/chat-app/lib/db/eve-model-ledger.ts +135 -0
  769. package/templates/chat-app/lib/db/eve-orphaned-files.ts +84 -0
  770. package/templates/chat-app/lib/db/eve-queries.ts +1191 -0
  771. package/templates/chat-app/lib/db/eve-response-groups.ts +603 -0
  772. package/templates/chat-app/lib/db/eve-sandbox-run-coverage.ts +97 -0
  773. package/templates/chat-app/lib/db/eve-subagents.ts +170 -0
  774. package/templates/chat-app/lib/db/eve-title.ts +27 -0
  775. package/templates/chat-app/lib/db/eve-workspace-turns.ts +123 -0
  776. package/templates/chat-app/lib/db/eve-workspaces.ts +64 -0
  777. package/templates/chat-app/lib/db/file-storage-keys.ts +38 -0
  778. package/templates/chat-app/lib/db/health.test.ts +36 -0
  779. package/templates/chat-app/lib/db/health.ts +16 -0
  780. package/templates/chat-app/lib/db/migrate.ts +171 -0
  781. package/templates/chat-app/lib/db/migration-history.test.ts +162 -0
  782. package/templates/chat-app/lib/db/migration-history.ts +109 -0
  783. package/templates/chat-app/lib/db/migrations/0000_eve_baseline.sql +433 -0
  784. package/templates/chat-app/lib/db/migrations/0001_brainy_the_stranger.sql +1 -0
  785. package/templates/chat-app/lib/db/migrations/0002_nappy_caretaker.sql +5 -0
  786. package/templates/chat-app/lib/db/migrations/0003_ambitious_oracle.sql +24 -0
  787. package/templates/chat-app/lib/db/migrations/0004_misty_next_avengers.sql +11 -0
  788. package/templates/chat-app/lib/db/migrations/0005_managed_workflow_safeguards.sql +12 -0
  789. package/templates/chat-app/lib/db/migrations/0006_unpriced_usage_index.sql +2 -0
  790. package/templates/chat-app/lib/db/migrations/0007_kind_charles_xavier.sql +13 -0
  791. package/templates/chat-app/lib/db/migrations/0008_mysterious_excalibur.sql +1 -0
  792. package/templates/chat-app/lib/db/migrations/0009_absent_the_hunter.sql +1 -0
  793. package/templates/chat-app/lib/db/migrations/0010_omniscient_junta.sql +11 -0
  794. package/templates/chat-app/lib/db/migrations/0011_followup_chat_index.sql +1 -0
  795. package/templates/chat-app/lib/db/migrations/0012_aberrant_joseph.sql +16 -0
  796. package/templates/chat-app/lib/db/migrations/0013_current_copy_seed.sql +1 -0
  797. package/templates/chat-app/lib/db/migrations/0014_current_copy_ancestry.sql +13 -0
  798. package/templates/chat-app/lib/db/migrations/0015_conscious_gorilla_man.sql +13 -0
  799. package/templates/chat-app/lib/db/migrations/0016_large_zeigeist.sql +21 -0
  800. package/templates/chat-app/lib/db/migrations/0017_flimsy_whiplash.sql +34 -0
  801. package/templates/chat-app/lib/db/migrations/0018_shallow_tyrannus.sql +1 -0
  802. package/templates/chat-app/lib/db/migrations/0019_woozy_wither.sql +50 -0
  803. package/templates/chat-app/lib/db/migrations/0020_organic_black_panther.sql +12 -0
  804. package/templates/chat-app/lib/db/migrations/0021_glorious_chameleon.sql +6 -0
  805. package/templates/chat-app/lib/db/migrations/0022_hard_photon.sql +16 -0
  806. package/templates/chat-app/lib/db/migrations/meta/0000_snapshot.json +2714 -0
  807. package/templates/chat-app/lib/db/migrations/meta/0001_snapshot.json +2720 -0
  808. package/templates/chat-app/lib/db/migrations/meta/0002_snapshot.json +2732 -0
  809. package/templates/chat-app/lib/db/migrations/meta/0003_snapshot.json +2739 -0
  810. package/templates/chat-app/lib/db/migrations/meta/0004_snapshot.json +2837 -0
  811. package/templates/chat-app/lib/db/migrations/meta/0005_snapshot.json +2874 -0
  812. package/templates/chat-app/lib/db/migrations/meta/0006_snapshot.json +2890 -0
  813. package/templates/chat-app/lib/db/migrations/meta/0007_snapshot.json +2975 -0
  814. package/templates/chat-app/lib/db/migrations/meta/0008_snapshot.json +2982 -0
  815. package/templates/chat-app/lib/db/migrations/meta/0009_snapshot.json +3311 -0
  816. package/templates/chat-app/lib/db/migrations/meta/0010_snapshot.json +3385 -0
  817. package/templates/chat-app/lib/db/migrations/meta/0011_snapshot.json +3401 -0
  818. package/templates/chat-app/lib/db/migrations/meta/0012_snapshot.json +3509 -0
  819. package/templates/chat-app/lib/db/migrations/meta/0013_snapshot.json +3515 -0
  820. package/templates/chat-app/lib/db/migrations/meta/0014_snapshot.json +3515 -0
  821. package/templates/chat-app/lib/db/migrations/meta/0015_snapshot.json +3515 -0
  822. package/templates/chat-app/lib/db/migrations/meta/0016_snapshot.json +3668 -0
  823. package/templates/chat-app/lib/db/migrations/meta/0017_snapshot.json +3881 -0
  824. package/templates/chat-app/lib/db/migrations/meta/0018_snapshot.json +3888 -0
  825. package/templates/chat-app/lib/db/migrations/meta/0019_snapshot.json +3926 -0
  826. package/templates/chat-app/lib/db/migrations/meta/0020_snapshot.json +3920 -0
  827. package/templates/chat-app/lib/db/migrations/meta/0021_snapshot.json +3887 -0
  828. package/templates/chat-app/lib/db/migrations/meta/0022_snapshot.json +3659 -0
  829. package/templates/chat-app/lib/db/migrations/meta/_journal.json +167 -0
  830. package/templates/chat-app/lib/db/queries.ts +23 -0
  831. package/templates/chat-app/lib/db/schema.ts +822 -0
  832. package/templates/chat-app/lib/db/update-owned-chat.ts +58 -0
  833. package/templates/chat-app/lib/db/workflow-backend.ts +28 -0
  834. package/templates/chat-app/lib/env-runtime-options.ts +121 -0
  835. package/templates/chat-app/lib/env-schema.test.ts +107 -0
  836. package/templates/chat-app/lib/env-schema.ts +136 -0
  837. package/templates/chat-app/lib/env.ts +24 -0
  838. package/templates/chat-app/lib/eve/accounting-log.ts +49 -0
  839. package/templates/chat-app/lib/eve/activity.ts +14 -0
  840. package/templates/chat-app/lib/eve/admission-retry.ts +41 -0
  841. package/templates/chat-app/lib/eve/channel-files.test.ts +85 -0
  842. package/templates/chat-app/lib/eve/channel-files.ts +57 -0
  843. package/templates/chat-app/lib/eve/cleanup-orphaned-files.test.ts +88 -0
  844. package/templates/chat-app/lib/eve/cleanup-orphaned-files.ts +68 -0
  845. package/templates/chat-app/lib/eve/code-executor.ts +32 -0
  846. package/templates/chat-app/lib/eve/code-sandbox-name.test.ts +60 -0
  847. package/templates/chat-app/lib/eve/code-sandbox-name.ts +56 -0
  848. package/templates/chat-app/lib/eve/code-sandbox-ownership.ts +88 -0
  849. package/templates/chat-app/lib/eve/command-rejection.test.ts +28 -0
  850. package/templates/chat-app/lib/eve/command-rejection.ts +17 -0
  851. package/templates/chat-app/lib/eve/completed-copy-source.test.ts +114 -0
  852. package/templates/chat-app/lib/eve/completed-copy-source.ts +48 -0
  853. package/templates/chat-app/lib/eve/connection-options.ts +40 -0
  854. package/templates/chat-app/lib/eve/contracts.test.ts +246 -0
  855. package/templates/chat-app/lib/eve/contracts.ts +70 -0
  856. package/templates/chat-app/lib/eve/conversation-scope.test.ts +147 -0
  857. package/templates/chat-app/lib/eve/conversation-scope.ts +102 -0
  858. package/templates/chat-app/lib/eve/conversation-title.ts +40 -0
  859. package/templates/chat-app/lib/eve/copy-input.ts +11 -0
  860. package/templates/chat-app/lib/eve/copy-seed.test.ts +101 -0
  861. package/templates/chat-app/lib/eve/copy-seed.ts +143 -0
  862. package/templates/chat-app/lib/eve/copy-transcript.test.ts +372 -0
  863. package/templates/chat-app/lib/eve/copy-transcript.ts +389 -0
  864. package/templates/chat-app/lib/eve/create-conversation-operation.test.ts +223 -0
  865. package/templates/chat-app/lib/eve/create-conversation-operation.ts +107 -0
  866. package/templates/chat-app/lib/eve/create-conversation.test.ts +143 -0
  867. package/templates/chat-app/lib/eve/create-conversation.ts +75 -0
  868. package/templates/chat-app/lib/eve/create-native-copy.ts +38 -0
  869. package/templates/chat-app/lib/eve/create-response-group.test.ts +268 -0
  870. package/templates/chat-app/lib/eve/create-response-group.ts +158 -0
  871. package/templates/chat-app/lib/eve/creation-content-hash.ts +20 -0
  872. package/templates/chat-app/lib/eve/creation-recovery-error.ts +8 -0
  873. package/templates/chat-app/lib/eve/creation-transport.ts +36 -0
  874. package/templates/chat-app/lib/eve/delete-local-conversation.test.ts +145 -0
  875. package/templates/chat-app/lib/eve/delete-local-conversation.ts +54 -0
  876. package/templates/chat-app/lib/eve/deletion-lifecycle.ts +18 -0
  877. package/templates/chat-app/lib/eve/deletion-policy.ts +27 -0
  878. package/templates/chat-app/lib/eve/document-assistant-actions.test.ts +48 -0
  879. package/templates/chat-app/lib/eve/document-assistant-actions.ts +22 -0
  880. package/templates/chat-app/lib/eve/document-kind-lifecycle.test.ts +148 -0
  881. package/templates/chat-app/lib/eve/document-tools.ts +164 -0
  882. package/templates/chat-app/lib/eve/draft.test.ts +32 -0
  883. package/templates/chat-app/lib/eve/draft.ts +70 -0
  884. package/templates/chat-app/lib/eve/environment.test.ts +257 -0
  885. package/templates/chat-app/lib/eve/environment.ts +126 -0
  886. package/templates/chat-app/lib/eve/execute-conversation-creation.ts +198 -0
  887. package/templates/chat-app/lib/eve/file-references.ts +22 -0
  888. package/templates/chat-app/lib/eve/fork-boundary-error.ts +8 -0
  889. package/templates/chat-app/lib/eve/gateway-auth.test.ts +229 -0
  890. package/templates/chat-app/lib/eve/gateway-auth.ts +182 -0
  891. package/templates/chat-app/lib/eve/generated-files.test.ts +75 -0
  892. package/templates/chat-app/lib/eve/generated-files.ts +46 -0
  893. package/templates/chat-app/lib/eve/history-input.ts +31 -0
  894. package/templates/chat-app/lib/eve/image-context.test.ts +66 -0
  895. package/templates/chat-app/lib/eve/image-context.ts +143 -0
  896. package/templates/chat-app/lib/eve/installed-tools.test.ts +162 -0
  897. package/templates/chat-app/lib/eve/lifecycle/postgres/compatibility.ts +84 -0
  898. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-native-purge.ts +205 -0
  899. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-payload-purge.ts +147 -0
  900. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-fence.ts +82 -0
  901. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-inventory.ts +89 -0
  902. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-purge.ts +250 -0
  903. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-resource-fence.ts +213 -0
  904. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-run-inventory.ts +165 -0
  905. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-sandbox-coverage-proof.ts +140 -0
  906. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-session-fence.ts +108 -0
  907. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-stream-positions.ts +81 -0
  908. package/templates/chat-app/lib/eve/lifecycle/postgres/provider.ts +91 -0
  909. package/templates/chat-app/lib/eve/lifecycle/provider.test.ts +57 -0
  910. package/templates/chat-app/lib/eve/lifecycle/provider.ts +102 -0
  911. package/templates/chat-app/lib/eve/local-deletion-available.test.ts +19 -0
  912. package/templates/chat-app/lib/eve/local-deletion-available.ts +22 -0
  913. package/templates/chat-app/lib/eve/logical-chat.test.ts +400 -0
  914. package/templates/chat-app/lib/eve/logical-chat.ts +477 -0
  915. package/templates/chat-app/lib/eve/logical-commands.ts +42 -0
  916. package/templates/chat-app/lib/eve/logical-response-slots.ts +180 -0
  917. package/templates/chat-app/lib/eve/mcp-result.ts +25 -0
  918. package/templates/chat-app/lib/eve/message-delivery.test.ts +165 -0
  919. package/templates/chat-app/lib/eve/message-delivery.ts +145 -0
  920. package/templates/chat-app/lib/eve/message-display.test.ts +105 -0
  921. package/templates/chat-app/lib/eve/message-display.ts +65 -0
  922. package/templates/chat-app/lib/eve/message-input.ts +69 -0
  923. package/templates/chat-app/lib/eve/message-tool-selection.test.ts +23 -0
  924. package/templates/chat-app/lib/eve/message-tool-selection.ts +31 -0
  925. package/templates/chat-app/lib/eve/model-accounting.test.ts +194 -0
  926. package/templates/chat-app/lib/eve/model-accounting.ts +101 -0
  927. package/templates/chat-app/lib/eve/model-ledger.test.ts +485 -0
  928. package/templates/chat-app/lib/eve/model-ledger.ts +239 -0
  929. package/templates/chat-app/lib/eve/model-selection.test.ts +139 -0
  930. package/templates/chat-app/lib/eve/model-selection.ts +99 -0
  931. package/templates/chat-app/lib/eve/optimistic-metadata.test.ts +85 -0
  932. package/templates/chat-app/lib/eve/optimistic-metadata.ts +139 -0
  933. package/templates/chat-app/lib/eve/pending-create.test.ts +112 -0
  934. package/templates/chat-app/lib/eve/pending-create.ts +246 -0
  935. package/templates/chat-app/lib/eve/persisted-wire-order.test.ts +33 -0
  936. package/templates/chat-app/lib/eve/persistent-sandbox-store.ts +621 -0
  937. package/templates/chat-app/lib/eve/persistent-sandbox.test.ts +209 -0
  938. package/templates/chat-app/lib/eve/persistent-sandbox.ts +328 -0
  939. package/templates/chat-app/lib/eve/prepare-deletion.test.ts +118 -0
  940. package/templates/chat-app/lib/eve/prepare-deletion.ts +62 -0
  941. package/templates/chat-app/lib/eve/prepare-message.test.ts +67 -0
  942. package/templates/chat-app/lib/eve/prepare-message.ts +60 -0
  943. package/templates/chat-app/lib/eve/principal.test.ts +25 -0
  944. package/templates/chat-app/lib/eve/principal.ts +23 -0
  945. package/templates/chat-app/lib/eve/project-creation.ts +22 -0
  946. package/templates/chat-app/lib/eve/projects-absent.test.ts +27 -0
  947. package/templates/chat-app/lib/eve/purge-code-sandboxes.test.ts +125 -0
  948. package/templates/chat-app/lib/eve/purge-code-sandboxes.ts +83 -0
  949. package/templates/chat-app/lib/eve/purge-files.test.ts +41 -0
  950. package/templates/chat-app/lib/eve/purge-files.ts +38 -0
  951. package/templates/chat-app/lib/eve/purge-local-resources.ts +73 -0
  952. package/templates/chat-app/lib/eve/readonly-message-types.ts +19 -0
  953. package/templates/chat-app/lib/eve/reconcile-subagent-usage.ts +99 -0
  954. package/templates/chat-app/lib/eve/reconcile-usage.test.ts +488 -0
  955. package/templates/chat-app/lib/eve/reconcile-usage.ts +238 -0
  956. package/templates/chat-app/lib/eve/reconcile-workspace-turn.ts +137 -0
  957. package/templates/chat-app/lib/eve/recover-creations.test.ts +63 -0
  958. package/templates/chat-app/lib/eve/recover-creations.ts +83 -0
  959. package/templates/chat-app/lib/eve/request-copy.test.ts +95 -0
  960. package/templates/chat-app/lib/eve/request-copy.ts +129 -0
  961. package/templates/chat-app/lib/eve/request-policy.test.ts +54 -0
  962. package/templates/chat-app/lib/eve/request-policy.ts +120 -0
  963. package/templates/chat-app/lib/eve/research-progress.test.ts +95 -0
  964. package/templates/chat-app/lib/eve/research-progress.ts +42 -0
  965. package/templates/chat-app/lib/eve/resolve-creation-request.ts +59 -0
  966. package/templates/chat-app/lib/eve/response-group-candidates.ts +16 -0
  967. package/templates/chat-app/lib/eve/response-group-contracts.ts +23 -0
  968. package/templates/chat-app/lib/eve/response-group-input.ts +39 -0
  969. package/templates/chat-app/lib/eve/response-group-lineage.test.ts +133 -0
  970. package/templates/chat-app/lib/eve/response-group-lineage.ts +201 -0
  971. package/templates/chat-app/lib/eve/response-group.test.ts +101 -0
  972. package/templates/chat-app/lib/eve/response-group.ts +139 -0
  973. package/templates/chat-app/lib/eve/response-model.test.ts +52 -0
  974. package/templates/chat-app/lib/eve/response-model.ts +46 -0
  975. package/templates/chat-app/lib/eve/restore-message-attachments.test.ts +421 -0
  976. package/templates/chat-app/lib/eve/restore-message-attachments.ts +241 -0
  977. package/templates/chat-app/lib/eve/retire-session.test.ts +158 -0
  978. package/templates/chat-app/lib/eve/retire-session.ts +140 -0
  979. package/templates/chat-app/lib/eve/sandbox-environment.test.ts +49 -0
  980. package/templates/chat-app/lib/eve/sandbox-environment.ts +29 -0
  981. package/templates/chat-app/lib/eve/save-copy-operation.ts +33 -0
  982. package/templates/chat-app/lib/eve/save-document.ts +87 -0
  983. package/templates/chat-app/lib/eve/selected-tools.ts +22 -0
  984. package/templates/chat-app/lib/eve/send-command.test.ts +36 -0
  985. package/templates/chat-app/lib/eve/send-command.ts +54 -0
  986. package/templates/chat-app/lib/eve/server.test.ts +90 -0
  987. package/templates/chat-app/lib/eve/server.ts +60 -0
  988. package/templates/chat-app/lib/eve/session-identity.ts +21 -0
  989. package/templates/chat-app/lib/eve/session-mapping-error.ts +19 -0
  990. package/templates/chat-app/lib/eve/session-profile.test.ts +49 -0
  991. package/templates/chat-app/lib/eve/session-profile.ts +22 -0
  992. package/templates/chat-app/lib/eve/shared-messages.test.ts +270 -0
  993. package/templates/chat-app/lib/eve/shared-messages.ts +158 -0
  994. package/templates/chat-app/lib/eve/spending-admission.ts +11 -0
  995. package/templates/chat-app/lib/eve/stream-positions.test.ts +51 -0
  996. package/templates/chat-app/lib/eve/stream-positions.ts +27 -0
  997. package/templates/chat-app/lib/eve/tool-availability.ts +34 -0
  998. package/templates/chat-app/lib/eve/tool-cost.test.ts +46 -0
  999. package/templates/chat-app/lib/eve/tool-cost.ts +111 -0
  1000. package/templates/chat-app/lib/eve/tool-image-context.ts +11 -0
  1001. package/templates/chat-app/lib/eve/tool-model-output.ts +15 -0
  1002. package/templates/chat-app/lib/eve/tool-models.ts +36 -0
  1003. package/templates/chat-app/lib/eve/tool-result.test.ts +20 -0
  1004. package/templates/chat-app/lib/eve/tool-result.ts +97 -0
  1005. package/templates/chat-app/lib/eve/tool-types.test.ts +60 -0
  1006. package/templates/chat-app/lib/eve/tool-types.ts +35 -0
  1007. package/templates/chat-app/lib/eve/tool-ui-state.ts +19 -0
  1008. package/templates/chat-app/lib/eve/tool-usage.ts +152 -0
  1009. package/templates/chat-app/lib/eve/turn-tools.ts +52 -0
  1010. package/templates/chat-app/lib/eve/usage-reconciliation-busy.ts +20 -0
  1011. package/templates/chat-app/lib/eve/usage.test.ts +230 -0
  1012. package/templates/chat-app/lib/eve/usage.ts +82 -0
  1013. package/templates/chat-app/lib/eve/verify-local-coverage.ts +84 -0
  1014. package/templates/chat-app/lib/eve/workspace-attachments.ts +173 -0
  1015. package/templates/chat-app/lib/eve/workspace-turn-evidence.test.ts +131 -0
  1016. package/templates/chat-app/lib/eve/workspace-turn-evidence.ts +51 -0
  1017. package/templates/chat-app/lib/eve/world-config.test.ts +43 -0
  1018. package/templates/chat-app/lib/eve/world-config.ts +24 -0
  1019. package/templates/chat-app/lib/features-config.test.ts +17 -0
  1020. package/templates/chat-app/lib/features-config.ts +88 -0
  1021. package/templates/chat-app/lib/file-content-response.test.ts +116 -0
  1022. package/templates/chat-app/lib/file-content-response.ts +151 -0
  1023. package/templates/chat-app/lib/file-language.test.ts +12 -0
  1024. package/templates/chat-app/lib/file-language.ts +51 -0
  1025. package/templates/chat-app/lib/file-storage.test.ts +123 -0
  1026. package/templates/chat-app/lib/file-storage.ts +184 -0
  1027. package/templates/chat-app/lib/file-url.test.ts +60 -0
  1028. package/templates/chat-app/lib/file-url.ts +49 -0
  1029. package/templates/chat-app/lib/highlighter.tsx +124 -0
  1030. package/templates/chat-app/lib/id.ts +5 -0
  1031. package/templates/chat-app/lib/is-non-empty-string.test.ts +21 -0
  1032. package/templates/chat-app/lib/is-non-empty-string.ts +2 -0
  1033. package/templates/chat-app/lib/limits/tokens.ts +9 -0
  1034. package/templates/chat-app/lib/logger.ts +28 -0
  1035. package/templates/chat-app/lib/playwright-test-environment.ts +17 -0
  1036. package/templates/chat-app/lib/plugin-route.ts +16 -0
  1037. package/templates/chat-app/lib/readonly-native-surface.ts +23 -0
  1038. package/templates/chat-app/lib/readonly-react-node.ts +8 -0
  1039. package/templates/chat-app/lib/required-credentials.test.ts +141 -0
  1040. package/templates/chat-app/lib/required-credentials.ts +66 -0
  1041. package/templates/chat-app/lib/sandbox/runtime.ts +12 -0
  1042. package/templates/chat-app/lib/sign-out.test.ts +19 -0
  1043. package/templates/chat-app/lib/sign-out.ts +17 -0
  1044. package/templates/chat-app/lib/social-auth.test.ts +79 -0
  1045. package/templates/chat-app/lib/social-auth.ts +57 -0
  1046. package/templates/chat-app/lib/url-utils.tsx +13 -0
  1047. package/templates/chat-app/lib/url.test.ts +54 -0
  1048. package/templates/chat-app/lib/url.ts +25 -0
  1049. package/templates/chat-app/lib/utils.ts +1 -0
  1050. package/templates/chat-app/logo.svg +1 -0
  1051. package/templates/chat-app/next-env.d.ts +7 -0
  1052. package/templates/chat-app/next.config.test.ts +45 -0
  1053. package/templates/chat-app/next.config.ts +48 -0
  1054. package/templates/chat-app/oxfmt.config.ts +29 -0
  1055. package/templates/chat-app/oxlint.config.ts +38 -0
  1056. package/templates/chat-app/package.json +165 -0
  1057. package/templates/chat-app/playwright.config.ts +106 -0
  1058. package/templates/chat-app/postcss.config.mjs +8 -0
  1059. package/templates/chat-app/providers/chat-models-provider.tsx +74 -0
  1060. package/templates/chat-app/providers/chat-plugins.tsx +8 -0
  1061. package/templates/chat-app/providers/default-model-provider.tsx +91 -0
  1062. package/templates/chat-app/providers/parse-chat-id-from-pathname.test.ts +126 -0
  1063. package/templates/chat-app/providers/parse-chat-id-from-pathname.ts +51 -0
  1064. package/templates/chat-app/providers/session-provider.tsx +107 -0
  1065. package/templates/chat-app/providers/ui-direction.radix.tsx +11 -0
  1066. package/templates/chat-app/providers/ui-direction.tsx +11 -0
  1067. package/templates/chat-app/proxy.test.ts +104 -0
  1068. package/templates/chat-app/proxy.ts +128 -0
  1069. package/templates/chat-app/scripts/build-eve.ts +28 -0
  1070. package/templates/chat-app/scripts/check-db.test.ts +49 -0
  1071. package/templates/chat-app/scripts/check-db.ts +99 -0
  1072. package/templates/chat-app/scripts/check-env.ts +337 -0
  1073. package/templates/chat-app/scripts/check-worker-typescript.ts +88 -0
  1074. package/templates/chat-app/scripts/check-workflow-backend.ts +29 -0
  1075. package/templates/chat-app/scripts/cleanup.ts +112 -0
  1076. package/templates/chat-app/scripts/dev-health.ts +64 -0
  1077. package/templates/chat-app/scripts/dev-process-tree.ts +41 -0
  1078. package/templates/chat-app/scripts/dev-recovery.ts +38 -0
  1079. package/templates/chat-app/scripts/dev-supervisor.mts +297 -0
  1080. package/templates/chat-app/scripts/environment-validation-report.ts +46 -0
  1081. package/templates/chat-app/scripts/eve-setup-config.test.ts +73 -0
  1082. package/templates/chat-app/scripts/eve-setup-config.ts +51 -0
  1083. package/templates/chat-app/scripts/eve-setup.ts +179 -0
  1084. package/templates/chat-app/scripts/fetch-models.ts +30 -0
  1085. package/templates/chat-app/scripts/gateway-snapshot-warning.test.ts +9 -0
  1086. package/templates/chat-app/scripts/installed-environment-validation.ts +39 -0
  1087. package/templates/chat-app/scripts/persistent-sandbox-cleanup.ts +128 -0
  1088. package/templates/chat-app/scripts/stop-persistent-sandboxes.ts +24 -0
  1089. package/templates/chat-app/scripts/worker-bundle-source.test.ts +37 -0
  1090. package/templates/chat-app/scripts/worker-bundle-source.ts +14 -0
  1091. package/templates/chat-app/scripts/worktree-setup.sh +27 -0
  1092. package/templates/chat-app/tests/artifacts.e2e.ts +7 -0
  1093. package/templates/chat-app/tests/auth.setup.e2e.ts +11 -0
  1094. package/templates/chat-app/tests/chat.e2e.ts +20 -0
  1095. package/templates/chat-app/tests/fixtures/eve-subagent-tool.ts +1 -0
  1096. package/templates/chat-app/tests/fixtures/models/openai.svg +3 -0
  1097. package/templates/chat-app/tests/helpers/eve-dynamic-context.ts +20 -0
  1098. package/templates/chat-app/tests/helpers/eve-hook-context.ts +26 -0
  1099. package/templates/chat-app/tests/helpers/eve-tool-context.ts +24 -0
  1100. package/templates/chat-app/tests/helpers/eve-tool-events.ts +24 -0
  1101. package/templates/chat-app/tests/presentation-fonts.ts +20 -0
  1102. package/templates/chat-app/tests/reasoning.e2e.ts +7 -0
  1103. package/templates/chat-app/tests/reasoning.setup.e2e.ts +11 -0
  1104. package/templates/chat-app/tests/visual-capture.css +4 -0
  1105. package/templates/chat-app/tools/platform/documents/types.ts +11 -0
  1106. package/templates/chat-app/tools/platform/research-updates-schema.ts +60 -0
  1107. package/templates/chat-app/tools/platform/search-presentation.ts +138 -0
  1108. package/templates/chat-app/tools/platform/steps/multi-query-web-search.test.ts +45 -0
  1109. package/templates/chat-app/tools/platform/steps/multi-query-web-search.ts +142 -0
  1110. package/templates/chat-app/tools/platform/steps/search-utils.ts +26 -0
  1111. package/templates/chat-app/trpc/eve-owned-procedure.ts +26 -0
  1112. package/templates/chat-app/trpc/init.ts +173 -0
  1113. package/templates/chat-app/trpc/is-aborted-request.test.ts +26 -0
  1114. package/templates/chat-app/trpc/is-aborted-request.ts +9 -0
  1115. package/templates/chat-app/trpc/preload-query.test.ts +29 -0
  1116. package/templates/chat-app/trpc/preload-query.ts +11 -0
  1117. package/templates/chat-app/trpc/query-client.ts +32 -0
  1118. package/templates/chat-app/trpc/react.tsx +99 -0
  1119. package/templates/chat-app/trpc/routers/_app.ts +29 -0
  1120. package/templates/chat-app/trpc/routers/eve.router.ts +247 -0
  1121. package/templates/chat-app/trpc/server.tsx +33 -0
  1122. package/templates/chat-app/tsconfig.json +50 -0
  1123. package/templates/chat-app/vendor/workflow-world-postgres-5.0.0-beta.40.tgz +0 -0
  1124. package/templates/chat-app/vercel.json +10 -0
  1125. package/templates/chat-app/vitest.config.ts +11 -0
  1126. package/templates/chat-app/vitest.eve-runtime.config.ts +10 -0
  1127. package/templates/electron/CHANGELOG.md +19 -0
  1128. package/templates/electron/entitlements.mac.plist +10 -0
  1129. package/templates/electron/forge.config.ts +207 -0
  1130. package/templates/electron/icon.png +0 -0
  1131. package/templates/electron/package.json +56 -0
  1132. package/templates/electron/scripts/generate-icons.test.js +39 -0
  1133. package/templates/electron/scripts/generate-icons.ts +47 -0
  1134. package/templates/electron/scripts/run-forge.cjs +56 -0
  1135. package/templates/electron/scripts/write-branding.ts +44 -0
  1136. package/templates/electron/src/auth-request-options.test.ts +46 -0
  1137. package/templates/electron/src/auth-request-options.ts +42 -0
  1138. package/templates/electron/src/config.ts +50 -0
  1139. package/templates/electron/src/lib/auth-client.ts +53 -0
  1140. package/templates/electron/src/lib/auth-cookies.test.ts +34 -0
  1141. package/templates/electron/src/lib/auth-cookies.ts +28 -0
  1142. package/templates/electron/src/main.ts +747 -0
  1143. package/templates/electron/src/preload.d.ts +31 -0
  1144. package/templates/electron/src/preload.ts +28 -0
  1145. package/templates/electron/tsconfig.json +24 -0
@@ -0,0 +1,3887 @@
1
+ {
2
+ "id": "eeeae1bb-1632-466d-8667-a8459399d692",
3
+ "prevId": "91ee9555-636d-4542-8153-cf56959a3ff1",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account": {
8
+ "name": "account",
9
+ "schema": "",
10
+ "columns": {
11
+ "access_token": {
12
+ "name": "access_token",
13
+ "type": "text",
14
+ "primaryKey": false,
15
+ "notNull": false
16
+ },
17
+ "access_token_expires_at": {
18
+ "name": "access_token_expires_at",
19
+ "type": "timestamp",
20
+ "primaryKey": false,
21
+ "notNull": false
22
+ },
23
+ "account_id": {
24
+ "name": "account_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "created_at": {
30
+ "name": "created_at",
31
+ "type": "timestamp",
32
+ "primaryKey": false,
33
+ "notNull": true,
34
+ "default": "now()"
35
+ },
36
+ "id": {
37
+ "name": "id",
38
+ "type": "text",
39
+ "primaryKey": true,
40
+ "notNull": true
41
+ },
42
+ "id_token": {
43
+ "name": "id_token",
44
+ "type": "text",
45
+ "primaryKey": false,
46
+ "notNull": false
47
+ },
48
+ "password": {
49
+ "name": "password",
50
+ "type": "text",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ },
54
+ "provider_id": {
55
+ "name": "provider_id",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": true
59
+ },
60
+ "refresh_token": {
61
+ "name": "refresh_token",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false
65
+ },
66
+ "refresh_token_expires_at": {
67
+ "name": "refresh_token_expires_at",
68
+ "type": "timestamp",
69
+ "primaryKey": false,
70
+ "notNull": false
71
+ },
72
+ "scope": {
73
+ "name": "scope",
74
+ "type": "text",
75
+ "primaryKey": false,
76
+ "notNull": false
77
+ },
78
+ "updated_at": {
79
+ "name": "updated_at",
80
+ "type": "timestamp",
81
+ "primaryKey": false,
82
+ "notNull": true
83
+ },
84
+ "user_id": {
85
+ "name": "user_id",
86
+ "type": "text",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ }
90
+ },
91
+ "indexes": {},
92
+ "foreignKeys": {
93
+ "account_user_id_user_id_fk": {
94
+ "name": "account_user_id_user_id_fk",
95
+ "tableFrom": "account",
96
+ "tableTo": "user",
97
+ "columnsFrom": [
98
+ "user_id"
99
+ ],
100
+ "columnsTo": [
101
+ "id"
102
+ ],
103
+ "onDelete": "cascade",
104
+ "onUpdate": "no action"
105
+ }
106
+ },
107
+ "compositePrimaryKeys": {},
108
+ "uniqueConstraints": {},
109
+ "policies": {},
110
+ "checkConstraints": {},
111
+ "isRLSEnabled": false
112
+ },
113
+ "public.EveChat": {
114
+ "name": "EveChat",
115
+ "schema": "",
116
+ "columns": {
117
+ "activeConversationId": {
118
+ "name": "activeConversationId",
119
+ "type": "uuid",
120
+ "primaryKey": false,
121
+ "notNull": false
122
+ },
123
+ "createdAt": {
124
+ "name": "createdAt",
125
+ "type": "timestamp",
126
+ "primaryKey": false,
127
+ "notNull": true,
128
+ "default": "now()"
129
+ },
130
+ "id": {
131
+ "name": "id",
132
+ "type": "uuid",
133
+ "primaryKey": true,
134
+ "notNull": true,
135
+ "default": "gen_random_uuid()"
136
+ },
137
+ "isPinned": {
138
+ "name": "isPinned",
139
+ "type": "boolean",
140
+ "primaryKey": false,
141
+ "notNull": true,
142
+ "default": false
143
+ },
144
+ "ownerId": {
145
+ "name": "ownerId",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ },
150
+ "title": {
151
+ "name": "title",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": true
155
+ },
156
+ "titleStatus": {
157
+ "name": "titleStatus",
158
+ "type": "text",
159
+ "primaryKey": false,
160
+ "notNull": true,
161
+ "default": "'pending'"
162
+ },
163
+ "updatedAt": {
164
+ "name": "updatedAt",
165
+ "type": "timestamp",
166
+ "primaryKey": false,
167
+ "notNull": true,
168
+ "default": "now()"
169
+ }
170
+ },
171
+ "indexes": {
172
+ "EveChat_search_title": {
173
+ "name": "EveChat_search_title",
174
+ "columns": [
175
+ {
176
+ "expression": "to_tsvector('simple', \"title\")",
177
+ "asc": true,
178
+ "isExpression": true,
179
+ "nulls": "last"
180
+ }
181
+ ],
182
+ "isUnique": false,
183
+ "concurrently": false,
184
+ "method": "gin",
185
+ "with": {}
186
+ },
187
+ "EveChat_owner_activity": {
188
+ "name": "EveChat_owner_activity",
189
+ "columns": [
190
+ {
191
+ "expression": "ownerId",
192
+ "isExpression": false,
193
+ "asc": true,
194
+ "nulls": "last"
195
+ },
196
+ {
197
+ "expression": "isPinned",
198
+ "isExpression": false,
199
+ "asc": true,
200
+ "nulls": "last"
201
+ },
202
+ {
203
+ "expression": "updatedAt",
204
+ "isExpression": false,
205
+ "asc": true,
206
+ "nulls": "last"
207
+ }
208
+ ],
209
+ "isUnique": false,
210
+ "concurrently": false,
211
+ "method": "btree",
212
+ "with": {}
213
+ }
214
+ },
215
+ "foreignKeys": {
216
+ "EveChat_ownerId_user_id_fk": {
217
+ "name": "EveChat_ownerId_user_id_fk",
218
+ "tableFrom": "EveChat",
219
+ "tableTo": "user",
220
+ "columnsFrom": [
221
+ "ownerId"
222
+ ],
223
+ "columnsTo": [
224
+ "id"
225
+ ],
226
+ "onDelete": "cascade",
227
+ "onUpdate": "no action"
228
+ }
229
+ },
230
+ "compositePrimaryKeys": {},
231
+ "uniqueConstraints": {
232
+ "EveChat_id_owner": {
233
+ "name": "EveChat_id_owner",
234
+ "nullsNotDistinct": false,
235
+ "columns": [
236
+ "id",
237
+ "ownerId"
238
+ ]
239
+ }
240
+ },
241
+ "policies": {},
242
+ "checkConstraints": {
243
+ "EveChat_title_status": {
244
+ "name": "EveChat_title_status",
245
+ "value": "\"EveChat\".\"titleStatus\" in ('pending', 'fallback', 'generated', 'manual')"
246
+ }
247
+ },
248
+ "isRLSEnabled": false
249
+ },
250
+ "public.EveCodeSandbox": {
251
+ "name": "EveCodeSandbox",
252
+ "schema": "",
253
+ "columns": {
254
+ "callId": {
255
+ "name": "callId",
256
+ "type": "text",
257
+ "primaryKey": false,
258
+ "notNull": true
259
+ },
260
+ "conversationId": {
261
+ "name": "conversationId",
262
+ "type": "uuid",
263
+ "primaryKey": false,
264
+ "notNull": true
265
+ },
266
+ "createdAt": {
267
+ "name": "createdAt",
268
+ "type": "timestamp",
269
+ "primaryKey": false,
270
+ "notNull": true,
271
+ "default": "now()"
272
+ },
273
+ "creationConfirmed": {
274
+ "name": "creationConfirmed",
275
+ "type": "boolean",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "default": false
279
+ },
280
+ "name": {
281
+ "name": "name",
282
+ "type": "text",
283
+ "primaryKey": true,
284
+ "notNull": true
285
+ },
286
+ "ownerId": {
287
+ "name": "ownerId",
288
+ "type": "text",
289
+ "primaryKey": false,
290
+ "notNull": true
291
+ },
292
+ "state": {
293
+ "name": "state",
294
+ "type": "text",
295
+ "primaryKey": false,
296
+ "notNull": true,
297
+ "default": "'unresolved'"
298
+ }
299
+ },
300
+ "indexes": {
301
+ "EveCodeSandbox_conversation": {
302
+ "name": "EveCodeSandbox_conversation",
303
+ "columns": [
304
+ {
305
+ "expression": "conversationId",
306
+ "isExpression": false,
307
+ "asc": true,
308
+ "nulls": "last"
309
+ }
310
+ ],
311
+ "isUnique": false,
312
+ "concurrently": false,
313
+ "method": "btree",
314
+ "with": {}
315
+ }
316
+ },
317
+ "foreignKeys": {
318
+ "EveCodeSandbox_conversationId_ownerId_EveConversation_id_ownerId_fk": {
319
+ "name": "EveCodeSandbox_conversationId_ownerId_EveConversation_id_ownerId_fk",
320
+ "tableFrom": "EveCodeSandbox",
321
+ "tableTo": "EveConversation",
322
+ "columnsFrom": [
323
+ "conversationId",
324
+ "ownerId"
325
+ ],
326
+ "columnsTo": [
327
+ "id",
328
+ "ownerId"
329
+ ],
330
+ "onDelete": "no action",
331
+ "onUpdate": "no action"
332
+ }
333
+ },
334
+ "compositePrimaryKeys": {},
335
+ "uniqueConstraints": {},
336
+ "policies": {},
337
+ "checkConstraints": {},
338
+ "isRLSEnabled": false
339
+ },
340
+ "public.EveConversation": {
341
+ "name": "EveConversation",
342
+ "schema": "",
343
+ "columns": {
344
+ "chatId": {
345
+ "name": "chatId",
346
+ "type": "uuid",
347
+ "primaryKey": false,
348
+ "notNull": true
349
+ },
350
+ "workspaceId": {
351
+ "name": "workspaceId",
352
+ "type": "uuid",
353
+ "primaryKey": false,
354
+ "notNull": true
355
+ },
356
+ "createdAt": {
357
+ "name": "createdAt",
358
+ "type": "timestamp",
359
+ "primaryKey": false,
360
+ "notNull": true,
361
+ "default": "now()"
362
+ },
363
+ "creationKind": {
364
+ "name": "creationKind",
365
+ "type": "text",
366
+ "primaryKey": false,
367
+ "notNull": true,
368
+ "default": "'message'"
369
+ },
370
+ "firstMessage": {
371
+ "name": "firstMessage",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": true
375
+ },
376
+ "forkCheckpointId": {
377
+ "name": "forkCheckpointId",
378
+ "type": "uuid",
379
+ "primaryKey": false,
380
+ "notNull": false
381
+ },
382
+ "forkKind": {
383
+ "name": "forkKind",
384
+ "type": "text",
385
+ "primaryKey": false,
386
+ "notNull": false
387
+ },
388
+ "forkMessageId": {
389
+ "name": "forkMessageId",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": false
393
+ },
394
+ "forkTurnId": {
395
+ "name": "forkTurnId",
396
+ "type": "text",
397
+ "primaryKey": false,
398
+ "notNull": false
399
+ },
400
+ "guestCleanupAttemptedAt": {
401
+ "name": "guestCleanupAttemptedAt",
402
+ "type": "timestamp with time zone",
403
+ "primaryKey": false,
404
+ "notNull": false
405
+ },
406
+ "id": {
407
+ "name": "id",
408
+ "type": "uuid",
409
+ "primaryKey": true,
410
+ "notNull": true,
411
+ "default": "gen_random_uuid()"
412
+ },
413
+ "initialContentHash": {
414
+ "name": "initialContentHash",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": false
418
+ },
419
+ "initialModelId": {
420
+ "name": "initialModelId",
421
+ "type": "text",
422
+ "primaryKey": false,
423
+ "notNull": false
424
+ },
425
+ "initialRequest": {
426
+ "name": "initialRequest",
427
+ "type": "jsonb",
428
+ "primaryKey": false,
429
+ "notNull": false
430
+ },
431
+ "initialSeed": {
432
+ "name": "initialSeed",
433
+ "type": "jsonb",
434
+ "primaryKey": false,
435
+ "notNull": false
436
+ },
437
+ "operationId": {
438
+ "name": "operationId",
439
+ "type": "uuid",
440
+ "primaryKey": false,
441
+ "notNull": true
442
+ },
443
+ "ownerId": {
444
+ "name": "ownerId",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ },
449
+ "parentConversationId": {
450
+ "name": "parentConversationId",
451
+ "type": "uuid",
452
+ "primaryKey": false,
453
+ "notNull": false
454
+ },
455
+ "rootConversationId": {
456
+ "name": "rootConversationId",
457
+ "type": "uuid",
458
+ "primaryKey": false,
459
+ "notNull": false
460
+ },
461
+ "sessionId": {
462
+ "name": "sessionId",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": false
466
+ },
467
+ "state": {
468
+ "name": "state",
469
+ "type": "text",
470
+ "primaryKey": false,
471
+ "notNull": true,
472
+ "default": "'creating'"
473
+ },
474
+ "usageStreamIndex": {
475
+ "name": "usageStreamIndex",
476
+ "type": "integer",
477
+ "primaryKey": false,
478
+ "notNull": true,
479
+ "default": 0
480
+ },
481
+ "visibility": {
482
+ "name": "visibility",
483
+ "type": "varchar",
484
+ "primaryKey": false,
485
+ "notNull": true,
486
+ "default": "'private'"
487
+ }
488
+ },
489
+ "indexes": {
490
+ "EveConversation_owner_chat": {
491
+ "name": "EveConversation_owner_chat",
492
+ "columns": [
493
+ {
494
+ "expression": "ownerId",
495
+ "isExpression": false,
496
+ "asc": true,
497
+ "nulls": "last"
498
+ },
499
+ {
500
+ "expression": "chatId",
501
+ "isExpression": false,
502
+ "asc": true,
503
+ "nulls": "last"
504
+ }
505
+ ],
506
+ "isUnique": false,
507
+ "concurrently": false,
508
+ "method": "btree",
509
+ "with": {}
510
+ },
511
+ "EveConversation_workspace": {
512
+ "name": "EveConversation_workspace",
513
+ "columns": [
514
+ {
515
+ "expression": "workspaceId",
516
+ "isExpression": false,
517
+ "asc": true,
518
+ "nulls": "last"
519
+ }
520
+ ],
521
+ "isUnique": false,
522
+ "concurrently": false,
523
+ "method": "btree",
524
+ "with": {}
525
+ },
526
+ "EveConversation_owner_root": {
527
+ "name": "EveConversation_owner_root",
528
+ "columns": [
529
+ {
530
+ "expression": "ownerId",
531
+ "isExpression": false,
532
+ "asc": true,
533
+ "nulls": "last"
534
+ },
535
+ {
536
+ "expression": "rootConversationId",
537
+ "isExpression": false,
538
+ "asc": true,
539
+ "nulls": "last"
540
+ }
541
+ ],
542
+ "isUnique": false,
543
+ "concurrently": false,
544
+ "method": "btree",
545
+ "with": {}
546
+ },
547
+ "EveConversation_owner_operation": {
548
+ "name": "EveConversation_owner_operation",
549
+ "columns": [
550
+ {
551
+ "expression": "ownerId",
552
+ "isExpression": false,
553
+ "asc": true,
554
+ "nulls": "last"
555
+ },
556
+ {
557
+ "expression": "operationId",
558
+ "isExpression": false,
559
+ "asc": true,
560
+ "nulls": "last"
561
+ }
562
+ ],
563
+ "isUnique": true,
564
+ "concurrently": false,
565
+ "method": "btree",
566
+ "with": {}
567
+ }
568
+ },
569
+ "foreignKeys": {
570
+ "EveConversation_ownerId_user_id_fk": {
571
+ "name": "EveConversation_ownerId_user_id_fk",
572
+ "tableFrom": "EveConversation",
573
+ "tableTo": "user",
574
+ "columnsFrom": [
575
+ "ownerId"
576
+ ],
577
+ "columnsTo": [
578
+ "id"
579
+ ],
580
+ "onDelete": "no action",
581
+ "onUpdate": "no action"
582
+ },
583
+ "EveConversation_workspace_owner_fk": {
584
+ "name": "EveConversation_workspace_owner_fk",
585
+ "tableFrom": "EveConversation",
586
+ "tableTo": "EveWorkspace",
587
+ "columnsFrom": [
588
+ "workspaceId",
589
+ "ownerId"
590
+ ],
591
+ "columnsTo": [
592
+ "id",
593
+ "ownerId"
594
+ ],
595
+ "onDelete": "no action",
596
+ "onUpdate": "no action"
597
+ },
598
+ "EveConversation_chat_owner_fk": {
599
+ "name": "EveConversation_chat_owner_fk",
600
+ "tableFrom": "EveConversation",
601
+ "tableTo": "EveChat",
602
+ "columnsFrom": [
603
+ "chatId",
604
+ "ownerId"
605
+ ],
606
+ "columnsTo": [
607
+ "id",
608
+ "ownerId"
609
+ ],
610
+ "onDelete": "no action",
611
+ "onUpdate": "no action"
612
+ },
613
+ "EveConversation_parent_owner_fk": {
614
+ "name": "EveConversation_parent_owner_fk",
615
+ "tableFrom": "EveConversation",
616
+ "tableTo": "EveConversation",
617
+ "columnsFrom": [
618
+ "parentConversationId",
619
+ "ownerId",
620
+ "chatId"
621
+ ],
622
+ "columnsTo": [
623
+ "id",
624
+ "ownerId",
625
+ "chatId"
626
+ ],
627
+ "onDelete": "no action",
628
+ "onUpdate": "no action"
629
+ },
630
+ "EveConversation_root_owner_fk": {
631
+ "name": "EveConversation_root_owner_fk",
632
+ "tableFrom": "EveConversation",
633
+ "tableTo": "EveConversation",
634
+ "columnsFrom": [
635
+ "rootConversationId",
636
+ "ownerId",
637
+ "chatId"
638
+ ],
639
+ "columnsTo": [
640
+ "id",
641
+ "ownerId",
642
+ "chatId"
643
+ ],
644
+ "onDelete": "no action",
645
+ "onUpdate": "no action"
646
+ }
647
+ },
648
+ "compositePrimaryKeys": {},
649
+ "uniqueConstraints": {
650
+ "EveConversation_sessionId_unique": {
651
+ "name": "EveConversation_sessionId_unique",
652
+ "nullsNotDistinct": false,
653
+ "columns": [
654
+ "sessionId"
655
+ ]
656
+ },
657
+ "EveConversation_id_owner": {
658
+ "name": "EveConversation_id_owner",
659
+ "nullsNotDistinct": false,
660
+ "columns": [
661
+ "id",
662
+ "ownerId"
663
+ ]
664
+ },
665
+ "EveConversation_id_owner_chat": {
666
+ "name": "EveConversation_id_owner_chat",
667
+ "nullsNotDistinct": false,
668
+ "columns": [
669
+ "id",
670
+ "ownerId",
671
+ "chatId"
672
+ ]
673
+ }
674
+ },
675
+ "policies": {},
676
+ "checkConstraints": {
677
+ "EveConversation_creation_kind": {
678
+ "name": "EveConversation_creation_kind",
679
+ "value": "\"EveConversation\".\"creationKind\" in ('message', 'copy')"
680
+ },
681
+ "EveConversation_named_fork_shape": {
682
+ "name": "EveConversation_named_fork_shape",
683
+ "value": "\"EveConversation\".\"forkCheckpointId\" is null or (\n \"EveConversation\".\"parentConversationId\" is not null and \"EveConversation\".\"forkMessageId\" is null\n )"
684
+ },
685
+ "EveConversation_fork_shape": {
686
+ "name": "EveConversation_fork_shape",
687
+ "value": "(\n \"EveConversation\".\"parentConversationId\" is null and \"EveConversation\".\"rootConversationId\" is null and\n \"EveConversation\".\"forkTurnId\" is null and \"EveConversation\".\"forkMessageId\" is null and \"EveConversation\".\"forkKind\" is null\n ) or (\n \"EveConversation\".\"parentConversationId\" is not null and \"EveConversation\".\"rootConversationId\" is not null and\n (\n (\"EveConversation\".\"forkTurnId\" is null and \"EveConversation\".\"forkMessageId\" is null) or\n (\"EveConversation\".\"forkTurnId\" is not null and \"EveConversation\".\"forkTurnId\" ~ '^turn_(0|[1-9][0-9]*)$' and \"EveConversation\".\"forkMessageId\" is null) or\n (\"EveConversation\".\"forkMessageId\" is not null and length(\"EveConversation\".\"forkMessageId\") between 1 and 512 and \"EveConversation\".\"forkTurnId\" is null)\n ) and\n \"EveConversation\".\"parentConversationId\" <> \"EveConversation\".\"id\" and \"EveConversation\".\"rootConversationId\" <> \"EveConversation\".\"id\"\n )"
688
+ },
689
+ "EveConversation_fork_kind": {
690
+ "name": "EveConversation_fork_kind",
691
+ "value": "\"EveConversation\".\"forkKind\" is null or \"EveConversation\".\"forkKind\" in ('edit', 'regenerate', 'comparison')"
692
+ }
693
+ },
694
+ "isRLSEnabled": false
695
+ },
696
+ "public.EveDispatch": {
697
+ "name": "EveDispatch",
698
+ "schema": "",
699
+ "columns": {
700
+ "ownerId": {
701
+ "name": "ownerId",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": true
705
+ },
706
+ "operationId": {
707
+ "name": "operationId",
708
+ "type": "uuid",
709
+ "primaryKey": false,
710
+ "notNull": true
711
+ },
712
+ "conversationId": {
713
+ "name": "conversationId",
714
+ "type": "uuid",
715
+ "primaryKey": false,
716
+ "notNull": true
717
+ },
718
+ "kind": {
719
+ "name": "kind",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": true
723
+ },
724
+ "intent": {
725
+ "name": "intent",
726
+ "type": "jsonb",
727
+ "primaryKey": false,
728
+ "notNull": true
729
+ },
730
+ "sessionId": {
731
+ "name": "sessionId",
732
+ "type": "text",
733
+ "primaryKey": false,
734
+ "notNull": false
735
+ },
736
+ "deliveryId": {
737
+ "name": "deliveryId",
738
+ "type": "text",
739
+ "primaryKey": false,
740
+ "notNull": false
741
+ },
742
+ "createdAt": {
743
+ "name": "createdAt",
744
+ "type": "timestamp",
745
+ "primaryKey": false,
746
+ "notNull": true,
747
+ "default": "now()"
748
+ }
749
+ },
750
+ "indexes": {},
751
+ "foreignKeys": {
752
+ "EveDispatch_ownerId_user_id_fk": {
753
+ "name": "EveDispatch_ownerId_user_id_fk",
754
+ "tableFrom": "EveDispatch",
755
+ "tableTo": "user",
756
+ "columnsFrom": [
757
+ "ownerId"
758
+ ],
759
+ "columnsTo": [
760
+ "id"
761
+ ],
762
+ "onDelete": "no action",
763
+ "onUpdate": "no action"
764
+ },
765
+ "EveDispatch_conversation_owner_fk": {
766
+ "name": "EveDispatch_conversation_owner_fk",
767
+ "tableFrom": "EveDispatch",
768
+ "tableTo": "EveConversation",
769
+ "columnsFrom": [
770
+ "conversationId",
771
+ "ownerId"
772
+ ],
773
+ "columnsTo": [
774
+ "id",
775
+ "ownerId"
776
+ ],
777
+ "onDelete": "no action",
778
+ "onUpdate": "no action"
779
+ }
780
+ },
781
+ "compositePrimaryKeys": {
782
+ "EveDispatch_ownerId_operationId_pk": {
783
+ "name": "EveDispatch_ownerId_operationId_pk",
784
+ "columns": [
785
+ "ownerId",
786
+ "operationId"
787
+ ]
788
+ }
789
+ },
790
+ "uniqueConstraints": {},
791
+ "policies": {},
792
+ "checkConstraints": {
793
+ "EveDispatch_kind": {
794
+ "name": "EveDispatch_kind",
795
+ "value": "\"EveDispatch\".\"kind\" in ('create', 'copy', 'send')"
796
+ },
797
+ "EveDispatch_binding": {
798
+ "name": "EveDispatch_binding",
799
+ "value": "\"EveDispatch\".\"deliveryId\" is null or \"EveDispatch\".\"sessionId\" is not null"
800
+ }
801
+ },
802
+ "isRLSEnabled": false
803
+ },
804
+ "public.EveDocumentCheckpoint": {
805
+ "name": "EveDocumentCheckpoint",
806
+ "schema": "",
807
+ "columns": {
808
+ "conversationId": {
809
+ "name": "conversationId",
810
+ "type": "uuid",
811
+ "primaryKey": false,
812
+ "notNull": true
813
+ },
814
+ "ownerId": {
815
+ "name": "ownerId",
816
+ "type": "text",
817
+ "primaryKey": false,
818
+ "notNull": true
819
+ },
820
+ "turnIndex": {
821
+ "name": "turnIndex",
822
+ "type": "integer",
823
+ "primaryKey": false,
824
+ "notNull": true
825
+ }
826
+ },
827
+ "indexes": {},
828
+ "foreignKeys": {
829
+ "EveDocumentCheckpoint_conversation_owner_fk": {
830
+ "name": "EveDocumentCheckpoint_conversation_owner_fk",
831
+ "tableFrom": "EveDocumentCheckpoint",
832
+ "tableTo": "EveConversation",
833
+ "columnsFrom": [
834
+ "conversationId",
835
+ "ownerId"
836
+ ],
837
+ "columnsTo": [
838
+ "id",
839
+ "ownerId"
840
+ ],
841
+ "onDelete": "no action",
842
+ "onUpdate": "no action"
843
+ }
844
+ },
845
+ "compositePrimaryKeys": {
846
+ "EveDocumentCheckpoint_conversationId_turnIndex_pk": {
847
+ "name": "EveDocumentCheckpoint_conversationId_turnIndex_pk",
848
+ "columns": [
849
+ "conversationId",
850
+ "turnIndex"
851
+ ]
852
+ }
853
+ },
854
+ "uniqueConstraints": {
855
+ "EveDocumentCheckpoint_owner_identity": {
856
+ "name": "EveDocumentCheckpoint_owner_identity",
857
+ "nullsNotDistinct": false,
858
+ "columns": [
859
+ "conversationId",
860
+ "turnIndex",
861
+ "ownerId"
862
+ ]
863
+ }
864
+ },
865
+ "policies": {},
866
+ "checkConstraints": {
867
+ "EveDocumentCheckpoint_turn_nonnegative": {
868
+ "name": "EveDocumentCheckpoint_turn_nonnegative",
869
+ "value": "\"EveDocumentCheckpoint\".\"turnIndex\" >= 0"
870
+ }
871
+ },
872
+ "isRLSEnabled": false
873
+ },
874
+ "public.EveDocumentCheckpointEntry": {
875
+ "name": "EveDocumentCheckpointEntry",
876
+ "schema": "",
877
+ "columns": {
878
+ "conversationId": {
879
+ "name": "conversationId",
880
+ "type": "uuid",
881
+ "primaryKey": false,
882
+ "notNull": true
883
+ },
884
+ "documentId": {
885
+ "name": "documentId",
886
+ "type": "uuid",
887
+ "primaryKey": false,
888
+ "notNull": true
889
+ },
890
+ "ownerId": {
891
+ "name": "ownerId",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true
895
+ },
896
+ "revisionId": {
897
+ "name": "revisionId",
898
+ "type": "uuid",
899
+ "primaryKey": false,
900
+ "notNull": true
901
+ },
902
+ "turnIndex": {
903
+ "name": "turnIndex",
904
+ "type": "integer",
905
+ "primaryKey": false,
906
+ "notNull": true
907
+ }
908
+ },
909
+ "indexes": {},
910
+ "foreignKeys": {
911
+ "EveDocumentCheckpointEntry_checkpoint_owner_fk": {
912
+ "name": "EveDocumentCheckpointEntry_checkpoint_owner_fk",
913
+ "tableFrom": "EveDocumentCheckpointEntry",
914
+ "tableTo": "EveDocumentCheckpoint",
915
+ "columnsFrom": [
916
+ "conversationId",
917
+ "turnIndex",
918
+ "ownerId"
919
+ ],
920
+ "columnsTo": [
921
+ "conversationId",
922
+ "turnIndex",
923
+ "ownerId"
924
+ ],
925
+ "onDelete": "no action",
926
+ "onUpdate": "no action"
927
+ },
928
+ "EveDocumentCheckpointEntry_revision_owner_fk": {
929
+ "name": "EveDocumentCheckpointEntry_revision_owner_fk",
930
+ "tableFrom": "EveDocumentCheckpointEntry",
931
+ "tableTo": "EveDocumentRevision",
932
+ "columnsFrom": [
933
+ "revisionId",
934
+ "documentId",
935
+ "ownerId"
936
+ ],
937
+ "columnsTo": [
938
+ "id",
939
+ "documentId",
940
+ "ownerId"
941
+ ],
942
+ "onDelete": "no action",
943
+ "onUpdate": "no action"
944
+ }
945
+ },
946
+ "compositePrimaryKeys": {
947
+ "EveDocumentCheckpointEntry_conversationId_turnIndex_documentId_pk": {
948
+ "name": "EveDocumentCheckpointEntry_conversationId_turnIndex_documentId_pk",
949
+ "columns": [
950
+ "conversationId",
951
+ "turnIndex",
952
+ "documentId"
953
+ ]
954
+ }
955
+ },
956
+ "uniqueConstraints": {},
957
+ "policies": {},
958
+ "checkConstraints": {},
959
+ "isRLSEnabled": false
960
+ },
961
+ "public.EveDocumentHead": {
962
+ "name": "EveDocumentHead",
963
+ "schema": "",
964
+ "columns": {
965
+ "conversationId": {
966
+ "name": "conversationId",
967
+ "type": "uuid",
968
+ "primaryKey": false,
969
+ "notNull": true
970
+ },
971
+ "documentId": {
972
+ "name": "documentId",
973
+ "type": "uuid",
974
+ "primaryKey": false,
975
+ "notNull": true
976
+ },
977
+ "ownerId": {
978
+ "name": "ownerId",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": true
982
+ },
983
+ "revisionId": {
984
+ "name": "revisionId",
985
+ "type": "uuid",
986
+ "primaryKey": false,
987
+ "notNull": true
988
+ }
989
+ },
990
+ "indexes": {},
991
+ "foreignKeys": {
992
+ "EveDocumentHead_conversation_owner_fk": {
993
+ "name": "EveDocumentHead_conversation_owner_fk",
994
+ "tableFrom": "EveDocumentHead",
995
+ "tableTo": "EveConversation",
996
+ "columnsFrom": [
997
+ "conversationId",
998
+ "ownerId"
999
+ ],
1000
+ "columnsTo": [
1001
+ "id",
1002
+ "ownerId"
1003
+ ],
1004
+ "onDelete": "no action",
1005
+ "onUpdate": "no action"
1006
+ },
1007
+ "EveDocumentHead_revision_document_owner_fk": {
1008
+ "name": "EveDocumentHead_revision_document_owner_fk",
1009
+ "tableFrom": "EveDocumentHead",
1010
+ "tableTo": "EveDocumentRevision",
1011
+ "columnsFrom": [
1012
+ "revisionId",
1013
+ "documentId",
1014
+ "ownerId"
1015
+ ],
1016
+ "columnsTo": [
1017
+ "id",
1018
+ "documentId",
1019
+ "ownerId"
1020
+ ],
1021
+ "onDelete": "no action",
1022
+ "onUpdate": "no action"
1023
+ }
1024
+ },
1025
+ "compositePrimaryKeys": {
1026
+ "EveDocumentHead_conversationId_documentId_pk": {
1027
+ "name": "EveDocumentHead_conversationId_documentId_pk",
1028
+ "columns": [
1029
+ "conversationId",
1030
+ "documentId"
1031
+ ]
1032
+ }
1033
+ },
1034
+ "uniqueConstraints": {},
1035
+ "policies": {},
1036
+ "checkConstraints": {},
1037
+ "isRLSEnabled": false
1038
+ },
1039
+ "public.EveDocumentRevision": {
1040
+ "name": "EveDocumentRevision",
1041
+ "schema": "",
1042
+ "columns": {
1043
+ "content": {
1044
+ "name": "content",
1045
+ "type": "text",
1046
+ "primaryKey": false,
1047
+ "notNull": true
1048
+ },
1049
+ "conversationId": {
1050
+ "name": "conversationId",
1051
+ "type": "uuid",
1052
+ "primaryKey": false,
1053
+ "notNull": true
1054
+ },
1055
+ "createdAt": {
1056
+ "name": "createdAt",
1057
+ "type": "timestamp",
1058
+ "primaryKey": false,
1059
+ "notNull": true,
1060
+ "default": "now()"
1061
+ },
1062
+ "documentId": {
1063
+ "name": "documentId",
1064
+ "type": "uuid",
1065
+ "primaryKey": false,
1066
+ "notNull": true
1067
+ },
1068
+ "fileIds": {
1069
+ "name": "fileIds",
1070
+ "type": "jsonb",
1071
+ "primaryKey": false,
1072
+ "notNull": true,
1073
+ "default": "'[]'::jsonb"
1074
+ },
1075
+ "id": {
1076
+ "name": "id",
1077
+ "type": "uuid",
1078
+ "primaryKey": true,
1079
+ "notNull": true,
1080
+ "default": "gen_random_uuid()"
1081
+ },
1082
+ "kind": {
1083
+ "name": "kind",
1084
+ "type": "varchar",
1085
+ "primaryKey": false,
1086
+ "notNull": true
1087
+ },
1088
+ "operationId": {
1089
+ "name": "operationId",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": true
1093
+ },
1094
+ "ownerId": {
1095
+ "name": "ownerId",
1096
+ "type": "text",
1097
+ "primaryKey": false,
1098
+ "notNull": true
1099
+ },
1100
+ "parentRevisionId": {
1101
+ "name": "parentRevisionId",
1102
+ "type": "uuid",
1103
+ "primaryKey": false,
1104
+ "notNull": false
1105
+ },
1106
+ "title": {
1107
+ "name": "title",
1108
+ "type": "text",
1109
+ "primaryKey": false,
1110
+ "notNull": true
1111
+ },
1112
+ "turnIndex": {
1113
+ "name": "turnIndex",
1114
+ "type": "integer",
1115
+ "primaryKey": false,
1116
+ "notNull": false
1117
+ }
1118
+ },
1119
+ "indexes": {
1120
+ "EveDocumentRevision_operation": {
1121
+ "name": "EveDocumentRevision_operation",
1122
+ "columns": [
1123
+ {
1124
+ "expression": "conversationId",
1125
+ "isExpression": false,
1126
+ "asc": true,
1127
+ "nulls": "last"
1128
+ },
1129
+ {
1130
+ "expression": "operationId",
1131
+ "isExpression": false,
1132
+ "asc": true,
1133
+ "nulls": "last"
1134
+ }
1135
+ ],
1136
+ "isUnique": true,
1137
+ "concurrently": false,
1138
+ "method": "btree",
1139
+ "with": {}
1140
+ }
1141
+ },
1142
+ "foreignKeys": {
1143
+ "EveDocumentRevision_conversation_owner_fk": {
1144
+ "name": "EveDocumentRevision_conversation_owner_fk",
1145
+ "tableFrom": "EveDocumentRevision",
1146
+ "tableTo": "EveConversation",
1147
+ "columnsFrom": [
1148
+ "conversationId",
1149
+ "ownerId"
1150
+ ],
1151
+ "columnsTo": [
1152
+ "id",
1153
+ "ownerId"
1154
+ ],
1155
+ "onDelete": "no action",
1156
+ "onUpdate": "no action"
1157
+ },
1158
+ "EveDocumentRevision_parent_document_owner_fk": {
1159
+ "name": "EveDocumentRevision_parent_document_owner_fk",
1160
+ "tableFrom": "EveDocumentRevision",
1161
+ "tableTo": "EveDocumentRevision",
1162
+ "columnsFrom": [
1163
+ "parentRevisionId",
1164
+ "documentId",
1165
+ "ownerId"
1166
+ ],
1167
+ "columnsTo": [
1168
+ "id",
1169
+ "documentId",
1170
+ "ownerId"
1171
+ ],
1172
+ "onDelete": "no action",
1173
+ "onUpdate": "no action"
1174
+ }
1175
+ },
1176
+ "compositePrimaryKeys": {},
1177
+ "uniqueConstraints": {
1178
+ "EveDocumentRevision_identity": {
1179
+ "name": "EveDocumentRevision_identity",
1180
+ "nullsNotDistinct": false,
1181
+ "columns": [
1182
+ "id",
1183
+ "documentId",
1184
+ "ownerId"
1185
+ ]
1186
+ }
1187
+ },
1188
+ "policies": {},
1189
+ "checkConstraints": {
1190
+ "EveDocumentRevision_turn_nonnegative": {
1191
+ "name": "EveDocumentRevision_turn_nonnegative",
1192
+ "value": "\"EveDocumentRevision\".\"turnIndex\" >= 0"
1193
+ }
1194
+ },
1195
+ "isRLSEnabled": false
1196
+ },
1197
+ "public.EveFileReference": {
1198
+ "name": "EveFileReference",
1199
+ "schema": "",
1200
+ "columns": {
1201
+ "conversationId": {
1202
+ "name": "conversationId",
1203
+ "type": "uuid",
1204
+ "primaryKey": false,
1205
+ "notNull": true
1206
+ },
1207
+ "key": {
1208
+ "name": "key",
1209
+ "type": "text",
1210
+ "primaryKey": false,
1211
+ "notNull": true
1212
+ },
1213
+ "ownerId": {
1214
+ "name": "ownerId",
1215
+ "type": "text",
1216
+ "primaryKey": false,
1217
+ "notNull": true
1218
+ }
1219
+ },
1220
+ "indexes": {
1221
+ "EveFileReference_key": {
1222
+ "name": "EveFileReference_key",
1223
+ "columns": [
1224
+ {
1225
+ "expression": "key",
1226
+ "isExpression": false,
1227
+ "asc": true,
1228
+ "nulls": "last"
1229
+ }
1230
+ ],
1231
+ "isUnique": false,
1232
+ "concurrently": false,
1233
+ "method": "btree",
1234
+ "with": {}
1235
+ }
1236
+ },
1237
+ "foreignKeys": {
1238
+ "EveFileReference_conversationId_ownerId_EveConversation_id_ownerId_fk": {
1239
+ "name": "EveFileReference_conversationId_ownerId_EveConversation_id_ownerId_fk",
1240
+ "tableFrom": "EveFileReference",
1241
+ "tableTo": "EveConversation",
1242
+ "columnsFrom": [
1243
+ "conversationId",
1244
+ "ownerId"
1245
+ ],
1246
+ "columnsTo": [
1247
+ "id",
1248
+ "ownerId"
1249
+ ],
1250
+ "onDelete": "no action",
1251
+ "onUpdate": "no action"
1252
+ },
1253
+ "EveFileReference_key_ownerId_EveStoredFile_key_ownerId_fk": {
1254
+ "name": "EveFileReference_key_ownerId_EveStoredFile_key_ownerId_fk",
1255
+ "tableFrom": "EveFileReference",
1256
+ "tableTo": "EveStoredFile",
1257
+ "columnsFrom": [
1258
+ "key",
1259
+ "ownerId"
1260
+ ],
1261
+ "columnsTo": [
1262
+ "key",
1263
+ "ownerId"
1264
+ ],
1265
+ "onDelete": "no action",
1266
+ "onUpdate": "no action"
1267
+ }
1268
+ },
1269
+ "compositePrimaryKeys": {
1270
+ "EveFileReference_conversationId_key_pk": {
1271
+ "name": "EveFileReference_conversationId_key_pk",
1272
+ "columns": [
1273
+ "conversationId",
1274
+ "key"
1275
+ ]
1276
+ }
1277
+ },
1278
+ "uniqueConstraints": {},
1279
+ "policies": {},
1280
+ "checkConstraints": {},
1281
+ "isRLSEnabled": false
1282
+ },
1283
+ "public.EveGuest": {
1284
+ "name": "EveGuest",
1285
+ "schema": "",
1286
+ "columns": {
1287
+ "createdAt": {
1288
+ "name": "createdAt",
1289
+ "type": "timestamp with time zone",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "default": "now()"
1293
+ },
1294
+ "expiresAt": {
1295
+ "name": "expiresAt",
1296
+ "type": "timestamp with time zone",
1297
+ "primaryKey": false,
1298
+ "notNull": true
1299
+ },
1300
+ "ownerId": {
1301
+ "name": "ownerId",
1302
+ "type": "text",
1303
+ "primaryKey": true,
1304
+ "notNull": true
1305
+ },
1306
+ "tokenHash": {
1307
+ "name": "tokenHash",
1308
+ "type": "varchar(64)",
1309
+ "primaryKey": false,
1310
+ "notNull": true
1311
+ }
1312
+ },
1313
+ "indexes": {
1314
+ "EveGuest_expiry_idx": {
1315
+ "name": "EveGuest_expiry_idx",
1316
+ "columns": [
1317
+ {
1318
+ "expression": "expiresAt",
1319
+ "isExpression": false,
1320
+ "asc": true,
1321
+ "nulls": "last"
1322
+ }
1323
+ ],
1324
+ "isUnique": false,
1325
+ "concurrently": false,
1326
+ "method": "btree",
1327
+ "with": {}
1328
+ }
1329
+ },
1330
+ "foreignKeys": {
1331
+ "EveGuest_ownerId_user_id_fk": {
1332
+ "name": "EveGuest_ownerId_user_id_fk",
1333
+ "tableFrom": "EveGuest",
1334
+ "tableTo": "user",
1335
+ "columnsFrom": [
1336
+ "ownerId"
1337
+ ],
1338
+ "columnsTo": [
1339
+ "id"
1340
+ ],
1341
+ "onDelete": "cascade",
1342
+ "onUpdate": "no action"
1343
+ }
1344
+ },
1345
+ "compositePrimaryKeys": {},
1346
+ "uniqueConstraints": {
1347
+ "EveGuest_tokenHash_unique": {
1348
+ "name": "EveGuest_tokenHash_unique",
1349
+ "nullsNotDistinct": false,
1350
+ "columns": [
1351
+ "tokenHash"
1352
+ ]
1353
+ }
1354
+ },
1355
+ "policies": {},
1356
+ "checkConstraints": {
1357
+ "EveGuest_token_hash": {
1358
+ "name": "EveGuest_token_hash",
1359
+ "value": "\"EveGuest\".\"tokenHash\" ~ '^[0-9a-f]{64}$'"
1360
+ }
1361
+ },
1362
+ "isRLSEnabled": false
1363
+ },
1364
+ "public.EveGuestMessage": {
1365
+ "name": "EveGuestMessage",
1366
+ "schema": "",
1367
+ "columns": {
1368
+ "ipHash": {
1369
+ "name": "ipHash",
1370
+ "type": "varchar(64)",
1371
+ "primaryKey": false,
1372
+ "notNull": true
1373
+ },
1374
+ "operationId": {
1375
+ "name": "operationId",
1376
+ "type": "uuid",
1377
+ "primaryKey": false,
1378
+ "notNull": true
1379
+ },
1380
+ "ownerId": {
1381
+ "name": "ownerId",
1382
+ "type": "text",
1383
+ "primaryKey": false,
1384
+ "notNull": true
1385
+ },
1386
+ "requestHash": {
1387
+ "name": "requestHash",
1388
+ "type": "varchar(64)",
1389
+ "primaryKey": false,
1390
+ "notNull": true
1391
+ },
1392
+ "reservationId": {
1393
+ "name": "reservationId",
1394
+ "type": "uuid",
1395
+ "primaryKey": false,
1396
+ "notNull": true
1397
+ },
1398
+ "reservedAt": {
1399
+ "name": "reservedAt",
1400
+ "type": "timestamp with time zone",
1401
+ "primaryKey": false,
1402
+ "notNull": true
1403
+ },
1404
+ "state": {
1405
+ "name": "state",
1406
+ "type": "text",
1407
+ "primaryKey": false,
1408
+ "notNull": true
1409
+ }
1410
+ },
1411
+ "indexes": {},
1412
+ "foreignKeys": {
1413
+ "EveGuestMessage_ownerId_EveGuest_ownerId_fk": {
1414
+ "name": "EveGuestMessage_ownerId_EveGuest_ownerId_fk",
1415
+ "tableFrom": "EveGuestMessage",
1416
+ "tableTo": "EveGuest",
1417
+ "columnsFrom": [
1418
+ "ownerId"
1419
+ ],
1420
+ "columnsTo": [
1421
+ "ownerId"
1422
+ ],
1423
+ "onDelete": "cascade",
1424
+ "onUpdate": "no action"
1425
+ }
1426
+ },
1427
+ "compositePrimaryKeys": {
1428
+ "EveGuestMessage_ownerId_operationId_pk": {
1429
+ "name": "EveGuestMessage_ownerId_operationId_pk",
1430
+ "columns": [
1431
+ "ownerId",
1432
+ "operationId"
1433
+ ]
1434
+ }
1435
+ },
1436
+ "uniqueConstraints": {},
1437
+ "policies": {},
1438
+ "checkConstraints": {
1439
+ "EveGuestMessage_state": {
1440
+ "name": "EveGuestMessage_state",
1441
+ "value": "\"EveGuestMessage\".\"state\" in ('reserved', 'committed', 'released')"
1442
+ },
1443
+ "EveGuestMessage_request_hash": {
1444
+ "name": "EveGuestMessage_request_hash",
1445
+ "value": "\"EveGuestMessage\".\"requestHash\" ~ '^[0-9a-f]{64}$'"
1446
+ }
1447
+ },
1448
+ "isRLSEnabled": false
1449
+ },
1450
+ "public.EveGuestRate": {
1451
+ "name": "EveGuestRate",
1452
+ "schema": "",
1453
+ "columns": {
1454
+ "ipHash": {
1455
+ "name": "ipHash",
1456
+ "type": "varchar(64)",
1457
+ "primaryKey": false,
1458
+ "notNull": true
1459
+ },
1460
+ "requests": {
1461
+ "name": "requests",
1462
+ "type": "integer",
1463
+ "primaryKey": false,
1464
+ "notNull": true
1465
+ },
1466
+ "startsAt": {
1467
+ "name": "startsAt",
1468
+ "type": "timestamp with time zone",
1469
+ "primaryKey": false,
1470
+ "notNull": true
1471
+ },
1472
+ "windowSeconds": {
1473
+ "name": "windowSeconds",
1474
+ "type": "integer",
1475
+ "primaryKey": false,
1476
+ "notNull": true
1477
+ }
1478
+ },
1479
+ "indexes": {},
1480
+ "foreignKeys": {},
1481
+ "compositePrimaryKeys": {
1482
+ "EveGuestRate_ipHash_windowSeconds_startsAt_pk": {
1483
+ "name": "EveGuestRate_ipHash_windowSeconds_startsAt_pk",
1484
+ "columns": [
1485
+ "ipHash",
1486
+ "windowSeconds",
1487
+ "startsAt"
1488
+ ]
1489
+ }
1490
+ },
1491
+ "uniqueConstraints": {},
1492
+ "policies": {},
1493
+ "checkConstraints": {
1494
+ "EveGuestRate_requests": {
1495
+ "name": "EveGuestRate_requests",
1496
+ "value": "\"EveGuestRate\".\"requests\" >= 0"
1497
+ },
1498
+ "EveGuestRate_window": {
1499
+ "name": "EveGuestRate_window",
1500
+ "value": "\"EveGuestRate\".\"windowSeconds\" in (60, 2592000)"
1501
+ }
1502
+ },
1503
+ "isRLSEnabled": false
1504
+ },
1505
+ "public.EveImportedDocumentCheckpoint": {
1506
+ "name": "EveImportedDocumentCheckpoint",
1507
+ "schema": "",
1508
+ "columns": {
1509
+ "conversationId": {
1510
+ "name": "conversationId",
1511
+ "type": "uuid",
1512
+ "primaryKey": false,
1513
+ "notNull": true
1514
+ },
1515
+ "messageIndex": {
1516
+ "name": "messageIndex",
1517
+ "type": "integer",
1518
+ "primaryKey": false,
1519
+ "notNull": true
1520
+ },
1521
+ "ownerId": {
1522
+ "name": "ownerId",
1523
+ "type": "text",
1524
+ "primaryKey": false,
1525
+ "notNull": true
1526
+ }
1527
+ },
1528
+ "indexes": {},
1529
+ "foreignKeys": {
1530
+ "EveImportedDocumentCheckpoint_conversation_owner_fk": {
1531
+ "name": "EveImportedDocumentCheckpoint_conversation_owner_fk",
1532
+ "tableFrom": "EveImportedDocumentCheckpoint",
1533
+ "tableTo": "EveConversation",
1534
+ "columnsFrom": [
1535
+ "conversationId",
1536
+ "ownerId"
1537
+ ],
1538
+ "columnsTo": [
1539
+ "id",
1540
+ "ownerId"
1541
+ ],
1542
+ "onDelete": "no action",
1543
+ "onUpdate": "no action"
1544
+ }
1545
+ },
1546
+ "compositePrimaryKeys": {
1547
+ "EveImportedDocumentCheckpoint_conversationId_messageIndex_pk": {
1548
+ "name": "EveImportedDocumentCheckpoint_conversationId_messageIndex_pk",
1549
+ "columns": [
1550
+ "conversationId",
1551
+ "messageIndex"
1552
+ ]
1553
+ }
1554
+ },
1555
+ "uniqueConstraints": {
1556
+ "EveImportedDocumentCheckpoint_owner_identity": {
1557
+ "name": "EveImportedDocumentCheckpoint_owner_identity",
1558
+ "nullsNotDistinct": false,
1559
+ "columns": [
1560
+ "conversationId",
1561
+ "messageIndex",
1562
+ "ownerId"
1563
+ ]
1564
+ }
1565
+ },
1566
+ "policies": {},
1567
+ "checkConstraints": {
1568
+ "EveImportedDocumentCheckpoint_message_range": {
1569
+ "name": "EveImportedDocumentCheckpoint_message_range",
1570
+ "value": "\"EveImportedDocumentCheckpoint\".\"messageIndex\" between 0 and 9999"
1571
+ }
1572
+ },
1573
+ "isRLSEnabled": false
1574
+ },
1575
+ "public.EveImportedDocumentCheckpointEntry": {
1576
+ "name": "EveImportedDocumentCheckpointEntry",
1577
+ "schema": "",
1578
+ "columns": {
1579
+ "conversationId": {
1580
+ "name": "conversationId",
1581
+ "type": "uuid",
1582
+ "primaryKey": false,
1583
+ "notNull": true
1584
+ },
1585
+ "documentId": {
1586
+ "name": "documentId",
1587
+ "type": "uuid",
1588
+ "primaryKey": false,
1589
+ "notNull": true
1590
+ },
1591
+ "messageIndex": {
1592
+ "name": "messageIndex",
1593
+ "type": "integer",
1594
+ "primaryKey": false,
1595
+ "notNull": true
1596
+ },
1597
+ "ownerId": {
1598
+ "name": "ownerId",
1599
+ "type": "text",
1600
+ "primaryKey": false,
1601
+ "notNull": true
1602
+ },
1603
+ "revisionId": {
1604
+ "name": "revisionId",
1605
+ "type": "uuid",
1606
+ "primaryKey": false,
1607
+ "notNull": true
1608
+ }
1609
+ },
1610
+ "indexes": {},
1611
+ "foreignKeys": {
1612
+ "EveImportedDocumentCheckpointEntry_checkpoint_owner_fk": {
1613
+ "name": "EveImportedDocumentCheckpointEntry_checkpoint_owner_fk",
1614
+ "tableFrom": "EveImportedDocumentCheckpointEntry",
1615
+ "tableTo": "EveImportedDocumentCheckpoint",
1616
+ "columnsFrom": [
1617
+ "conversationId",
1618
+ "messageIndex",
1619
+ "ownerId"
1620
+ ],
1621
+ "columnsTo": [
1622
+ "conversationId",
1623
+ "messageIndex",
1624
+ "ownerId"
1625
+ ],
1626
+ "onDelete": "no action",
1627
+ "onUpdate": "no action"
1628
+ },
1629
+ "EveImportedDocumentCheckpointEntry_revision_owner_fk": {
1630
+ "name": "EveImportedDocumentCheckpointEntry_revision_owner_fk",
1631
+ "tableFrom": "EveImportedDocumentCheckpointEntry",
1632
+ "tableTo": "EveDocumentRevision",
1633
+ "columnsFrom": [
1634
+ "revisionId",
1635
+ "documentId",
1636
+ "ownerId"
1637
+ ],
1638
+ "columnsTo": [
1639
+ "id",
1640
+ "documentId",
1641
+ "ownerId"
1642
+ ],
1643
+ "onDelete": "no action",
1644
+ "onUpdate": "no action"
1645
+ }
1646
+ },
1647
+ "compositePrimaryKeys": {
1648
+ "EveImportedDocumentCheckpointEntry_conversationId_messageIndex_documentId_pk": {
1649
+ "name": "EveImportedDocumentCheckpointEntry_conversationId_messageIndex_documentId_pk",
1650
+ "columns": [
1651
+ "conversationId",
1652
+ "messageIndex",
1653
+ "documentId"
1654
+ ]
1655
+ }
1656
+ },
1657
+ "uniqueConstraints": {},
1658
+ "policies": {},
1659
+ "checkConstraints": {},
1660
+ "isRLSEnabled": false
1661
+ },
1662
+ "public.EveNamedDocumentCheckpoint": {
1663
+ "name": "EveNamedDocumentCheckpoint",
1664
+ "schema": "",
1665
+ "columns": {
1666
+ "checkpointId": {
1667
+ "name": "checkpointId",
1668
+ "type": "uuid",
1669
+ "primaryKey": false,
1670
+ "notNull": true
1671
+ },
1672
+ "conversationId": {
1673
+ "name": "conversationId",
1674
+ "type": "uuid",
1675
+ "primaryKey": false,
1676
+ "notNull": true
1677
+ },
1678
+ "ownerId": {
1679
+ "name": "ownerId",
1680
+ "type": "text",
1681
+ "primaryKey": false,
1682
+ "notNull": true
1683
+ },
1684
+ "turnIndex": {
1685
+ "name": "turnIndex",
1686
+ "type": "integer",
1687
+ "primaryKey": false,
1688
+ "notNull": true
1689
+ }
1690
+ },
1691
+ "indexes": {},
1692
+ "foreignKeys": {
1693
+ "EveNamedDocumentCheckpoint_conversation_owner_fk": {
1694
+ "name": "EveNamedDocumentCheckpoint_conversation_owner_fk",
1695
+ "tableFrom": "EveNamedDocumentCheckpoint",
1696
+ "tableTo": "EveConversation",
1697
+ "columnsFrom": [
1698
+ "conversationId",
1699
+ "ownerId"
1700
+ ],
1701
+ "columnsTo": [
1702
+ "id",
1703
+ "ownerId"
1704
+ ],
1705
+ "onDelete": "no action",
1706
+ "onUpdate": "no action"
1707
+ }
1708
+ },
1709
+ "compositePrimaryKeys": {
1710
+ "EveNamedDocumentCheckpoint_conversationId_checkpointId_pk": {
1711
+ "name": "EveNamedDocumentCheckpoint_conversationId_checkpointId_pk",
1712
+ "columns": [
1713
+ "conversationId",
1714
+ "checkpointId"
1715
+ ]
1716
+ }
1717
+ },
1718
+ "uniqueConstraints": {
1719
+ "EveNamedDocumentCheckpoint_owner_identity": {
1720
+ "name": "EveNamedDocumentCheckpoint_owner_identity",
1721
+ "nullsNotDistinct": false,
1722
+ "columns": [
1723
+ "conversationId",
1724
+ "checkpointId",
1725
+ "ownerId"
1726
+ ]
1727
+ }
1728
+ },
1729
+ "policies": {},
1730
+ "checkConstraints": {
1731
+ "EveNamedDocumentCheckpoint_turn_nonnegative": {
1732
+ "name": "EveNamedDocumentCheckpoint_turn_nonnegative",
1733
+ "value": "\"EveNamedDocumentCheckpoint\".\"turnIndex\" >= 0"
1734
+ }
1735
+ },
1736
+ "isRLSEnabled": false
1737
+ },
1738
+ "public.EveNamedDocumentCheckpointEntry": {
1739
+ "name": "EveNamedDocumentCheckpointEntry",
1740
+ "schema": "",
1741
+ "columns": {
1742
+ "checkpointId": {
1743
+ "name": "checkpointId",
1744
+ "type": "uuid",
1745
+ "primaryKey": false,
1746
+ "notNull": true
1747
+ },
1748
+ "conversationId": {
1749
+ "name": "conversationId",
1750
+ "type": "uuid",
1751
+ "primaryKey": false,
1752
+ "notNull": true
1753
+ },
1754
+ "documentId": {
1755
+ "name": "documentId",
1756
+ "type": "uuid",
1757
+ "primaryKey": false,
1758
+ "notNull": true
1759
+ },
1760
+ "ownerId": {
1761
+ "name": "ownerId",
1762
+ "type": "text",
1763
+ "primaryKey": false,
1764
+ "notNull": true
1765
+ },
1766
+ "revisionId": {
1767
+ "name": "revisionId",
1768
+ "type": "uuid",
1769
+ "primaryKey": false,
1770
+ "notNull": true
1771
+ }
1772
+ },
1773
+ "indexes": {},
1774
+ "foreignKeys": {
1775
+ "EveNamedDocumentCheckpointEntry_checkpoint_owner_fk": {
1776
+ "name": "EveNamedDocumentCheckpointEntry_checkpoint_owner_fk",
1777
+ "tableFrom": "EveNamedDocumentCheckpointEntry",
1778
+ "tableTo": "EveNamedDocumentCheckpoint",
1779
+ "columnsFrom": [
1780
+ "conversationId",
1781
+ "checkpointId",
1782
+ "ownerId"
1783
+ ],
1784
+ "columnsTo": [
1785
+ "conversationId",
1786
+ "checkpointId",
1787
+ "ownerId"
1788
+ ],
1789
+ "onDelete": "no action",
1790
+ "onUpdate": "no action"
1791
+ },
1792
+ "EveNamedDocumentCheckpointEntry_revision_owner_fk": {
1793
+ "name": "EveNamedDocumentCheckpointEntry_revision_owner_fk",
1794
+ "tableFrom": "EveNamedDocumentCheckpointEntry",
1795
+ "tableTo": "EveDocumentRevision",
1796
+ "columnsFrom": [
1797
+ "revisionId",
1798
+ "documentId",
1799
+ "ownerId"
1800
+ ],
1801
+ "columnsTo": [
1802
+ "id",
1803
+ "documentId",
1804
+ "ownerId"
1805
+ ],
1806
+ "onDelete": "no action",
1807
+ "onUpdate": "no action"
1808
+ }
1809
+ },
1810
+ "compositePrimaryKeys": {
1811
+ "EveNamedDocumentCheckpointEntry_conversationId_checkpointId_documentId_pk": {
1812
+ "name": "EveNamedDocumentCheckpointEntry_conversationId_checkpointId_documentId_pk",
1813
+ "columns": [
1814
+ "conversationId",
1815
+ "checkpointId",
1816
+ "documentId"
1817
+ ]
1818
+ }
1819
+ },
1820
+ "uniqueConstraints": {},
1821
+ "policies": {},
1822
+ "checkConstraints": {},
1823
+ "isRLSEnabled": false
1824
+ },
1825
+ "public.EvePersistentSandbox": {
1826
+ "name": "EvePersistentSandbox",
1827
+ "schema": "",
1828
+ "columns": {
1829
+ "name": {
1830
+ "name": "name",
1831
+ "type": "text",
1832
+ "primaryKey": true,
1833
+ "notNull": true
1834
+ },
1835
+ "workspaceId": {
1836
+ "name": "workspaceId",
1837
+ "type": "uuid",
1838
+ "primaryKey": false,
1839
+ "notNull": true
1840
+ },
1841
+ "providerId": {
1842
+ "name": "providerId",
1843
+ "type": "text",
1844
+ "primaryKey": false,
1845
+ "notNull": true
1846
+ },
1847
+ "accountId": {
1848
+ "name": "accountId",
1849
+ "type": "text",
1850
+ "primaryKey": false,
1851
+ "notNull": true
1852
+ },
1853
+ "scopeId": {
1854
+ "name": "scopeId",
1855
+ "type": "text",
1856
+ "primaryKey": false,
1857
+ "notNull": true
1858
+ },
1859
+ "state": {
1860
+ "name": "state",
1861
+ "type": "text",
1862
+ "primaryKey": false,
1863
+ "notNull": true
1864
+ }
1865
+ },
1866
+ "indexes": {},
1867
+ "foreignKeys": {
1868
+ "EvePersistentSandbox_workspaceId_EveWorkspace_id_fk": {
1869
+ "name": "EvePersistentSandbox_workspaceId_EveWorkspace_id_fk",
1870
+ "tableFrom": "EvePersistentSandbox",
1871
+ "tableTo": "EveWorkspace",
1872
+ "columnsFrom": [
1873
+ "workspaceId"
1874
+ ],
1875
+ "columnsTo": [
1876
+ "id"
1877
+ ],
1878
+ "onDelete": "no action",
1879
+ "onUpdate": "no action"
1880
+ }
1881
+ },
1882
+ "compositePrimaryKeys": {},
1883
+ "uniqueConstraints": {
1884
+ "EvePersistentSandbox_workspace": {
1885
+ "name": "EvePersistentSandbox_workspace",
1886
+ "nullsNotDistinct": false,
1887
+ "columns": [
1888
+ "workspaceId"
1889
+ ]
1890
+ }
1891
+ },
1892
+ "policies": {},
1893
+ "checkConstraints": {},
1894
+ "isRLSEnabled": false
1895
+ },
1896
+ "public.EveResponseGroup": {
1897
+ "name": "EveResponseGroup",
1898
+ "schema": "",
1899
+ "columns": {
1900
+ "candidateOperationIds": {
1901
+ "name": "candidateOperationIds",
1902
+ "type": "uuid[]",
1903
+ "primaryKey": false,
1904
+ "notNull": true
1905
+ },
1906
+ "candidates": {
1907
+ "name": "candidates",
1908
+ "type": "jsonb",
1909
+ "primaryKey": false,
1910
+ "notNull": false
1911
+ },
1912
+ "createdAt": {
1913
+ "name": "createdAt",
1914
+ "type": "timestamp",
1915
+ "primaryKey": false,
1916
+ "notNull": true,
1917
+ "default": "now()"
1918
+ },
1919
+ "deleted": {
1920
+ "name": "deleted",
1921
+ "type": "boolean",
1922
+ "primaryKey": false,
1923
+ "notNull": true,
1924
+ "default": false
1925
+ },
1926
+ "id": {
1927
+ "name": "id",
1928
+ "type": "uuid",
1929
+ "primaryKey": true,
1930
+ "notNull": true,
1931
+ "default": "gen_random_uuid()"
1932
+ },
1933
+ "inputHash": {
1934
+ "name": "inputHash",
1935
+ "type": "text",
1936
+ "primaryKey": false,
1937
+ "notNull": false
1938
+ },
1939
+ "operationId": {
1940
+ "name": "operationId",
1941
+ "type": "uuid",
1942
+ "primaryKey": false,
1943
+ "notNull": true
1944
+ },
1945
+ "ownerId": {
1946
+ "name": "ownerId",
1947
+ "type": "text",
1948
+ "primaryKey": false,
1949
+ "notNull": true
1950
+ },
1951
+ "sourceConversationId": {
1952
+ "name": "sourceConversationId",
1953
+ "type": "uuid",
1954
+ "primaryKey": false,
1955
+ "notNull": false
1956
+ },
1957
+ "sourceIdentityKnown": {
1958
+ "name": "sourceIdentityKnown",
1959
+ "type": "boolean",
1960
+ "primaryKey": false,
1961
+ "notNull": true,
1962
+ "default": false
1963
+ }
1964
+ },
1965
+ "indexes": {
1966
+ "EveResponseGroup_owner_operation": {
1967
+ "name": "EveResponseGroup_owner_operation",
1968
+ "columns": [
1969
+ {
1970
+ "expression": "ownerId",
1971
+ "isExpression": false,
1972
+ "asc": true,
1973
+ "nulls": "last"
1974
+ },
1975
+ {
1976
+ "expression": "operationId",
1977
+ "isExpression": false,
1978
+ "asc": true,
1979
+ "nulls": "last"
1980
+ }
1981
+ ],
1982
+ "isUnique": true,
1983
+ "concurrently": false,
1984
+ "method": "btree",
1985
+ "with": {}
1986
+ }
1987
+ },
1988
+ "foreignKeys": {
1989
+ "EveResponseGroup_ownerId_user_id_fk": {
1990
+ "name": "EveResponseGroup_ownerId_user_id_fk",
1991
+ "tableFrom": "EveResponseGroup",
1992
+ "tableTo": "user",
1993
+ "columnsFrom": [
1994
+ "ownerId"
1995
+ ],
1996
+ "columnsTo": [
1997
+ "id"
1998
+ ],
1999
+ "onDelete": "no action",
2000
+ "onUpdate": "no action"
2001
+ }
2002
+ },
2003
+ "compositePrimaryKeys": {},
2004
+ "uniqueConstraints": {},
2005
+ "policies": {},
2006
+ "checkConstraints": {},
2007
+ "isRLSEnabled": false
2008
+ },
2009
+ "public.EveSandboxSession": {
2010
+ "name": "EveSandboxSession",
2011
+ "schema": "",
2012
+ "columns": {
2013
+ "sessionId": {
2014
+ "name": "sessionId",
2015
+ "type": "text",
2016
+ "primaryKey": true,
2017
+ "notNull": true
2018
+ },
2019
+ "rootSessionId": {
2020
+ "name": "rootSessionId",
2021
+ "type": "text",
2022
+ "primaryKey": false,
2023
+ "notNull": true
2024
+ },
2025
+ "conversationId": {
2026
+ "name": "conversationId",
2027
+ "type": "uuid",
2028
+ "primaryKey": false,
2029
+ "notNull": true
2030
+ },
2031
+ "workspaceId": {
2032
+ "name": "workspaceId",
2033
+ "type": "uuid",
2034
+ "primaryKey": false,
2035
+ "notNull": true
2036
+ },
2037
+ "ownerId": {
2038
+ "name": "ownerId",
2039
+ "type": "text",
2040
+ "primaryKey": false,
2041
+ "notNull": true
2042
+ },
2043
+ "devRunId": {
2044
+ "name": "devRunId",
2045
+ "type": "text",
2046
+ "primaryKey": false,
2047
+ "notNull": false
2048
+ },
2049
+ "state": {
2050
+ "name": "state",
2051
+ "type": "text",
2052
+ "primaryKey": false,
2053
+ "notNull": true
2054
+ }
2055
+ },
2056
+ "indexes": {
2057
+ "EveSandboxSession_root": {
2058
+ "name": "EveSandboxSession_root",
2059
+ "columns": [
2060
+ {
2061
+ "expression": "rootSessionId",
2062
+ "isExpression": false,
2063
+ "asc": true,
2064
+ "nulls": "last"
2065
+ }
2066
+ ],
2067
+ "isUnique": false,
2068
+ "concurrently": false,
2069
+ "method": "btree",
2070
+ "with": {}
2071
+ },
2072
+ "EveSandboxSession_workspace": {
2073
+ "name": "EveSandboxSession_workspace",
2074
+ "columns": [
2075
+ {
2076
+ "expression": "workspaceId",
2077
+ "isExpression": false,
2078
+ "asc": true,
2079
+ "nulls": "last"
2080
+ }
2081
+ ],
2082
+ "isUnique": false,
2083
+ "concurrently": false,
2084
+ "method": "btree",
2085
+ "with": {}
2086
+ },
2087
+ "EveSandboxSession_dev": {
2088
+ "name": "EveSandboxSession_dev",
2089
+ "columns": [
2090
+ {
2091
+ "expression": "devRunId",
2092
+ "isExpression": false,
2093
+ "asc": true,
2094
+ "nulls": "last"
2095
+ }
2096
+ ],
2097
+ "isUnique": false,
2098
+ "concurrently": false,
2099
+ "method": "btree",
2100
+ "with": {}
2101
+ }
2102
+ },
2103
+ "foreignKeys": {
2104
+ "EveSandboxSession_conversation_owner_fk": {
2105
+ "name": "EveSandboxSession_conversation_owner_fk",
2106
+ "tableFrom": "EveSandboxSession",
2107
+ "tableTo": "EveConversation",
2108
+ "columnsFrom": [
2109
+ "conversationId",
2110
+ "ownerId"
2111
+ ],
2112
+ "columnsTo": [
2113
+ "id",
2114
+ "ownerId"
2115
+ ],
2116
+ "onDelete": "no action",
2117
+ "onUpdate": "no action"
2118
+ },
2119
+ "EveSandboxSession_workspace_owner_fk": {
2120
+ "name": "EveSandboxSession_workspace_owner_fk",
2121
+ "tableFrom": "EveSandboxSession",
2122
+ "tableTo": "EveWorkspace",
2123
+ "columnsFrom": [
2124
+ "workspaceId",
2125
+ "ownerId"
2126
+ ],
2127
+ "columnsTo": [
2128
+ "id",
2129
+ "ownerId"
2130
+ ],
2131
+ "onDelete": "no action",
2132
+ "onUpdate": "no action"
2133
+ }
2134
+ },
2135
+ "compositePrimaryKeys": {},
2136
+ "uniqueConstraints": {},
2137
+ "policies": {},
2138
+ "checkConstraints": {},
2139
+ "isRLSEnabled": false
2140
+ },
2141
+ "public.EveStoredFile": {
2142
+ "name": "EveStoredFile",
2143
+ "schema": "",
2144
+ "columns": {
2145
+ "createdAt": {
2146
+ "name": "createdAt",
2147
+ "type": "timestamp",
2148
+ "primaryKey": false,
2149
+ "notNull": true,
2150
+ "default": "now()"
2151
+ },
2152
+ "key": {
2153
+ "name": "key",
2154
+ "type": "text",
2155
+ "primaryKey": true,
2156
+ "notNull": true
2157
+ },
2158
+ "ownerId": {
2159
+ "name": "ownerId",
2160
+ "type": "text",
2161
+ "primaryKey": false,
2162
+ "notNull": true
2163
+ },
2164
+ "state": {
2165
+ "name": "state",
2166
+ "type": "text",
2167
+ "primaryKey": false,
2168
+ "notNull": true,
2169
+ "default": "'active'"
2170
+ },
2171
+ "storageKey": {
2172
+ "name": "storageKey",
2173
+ "type": "text",
2174
+ "primaryKey": false,
2175
+ "notNull": true,
2176
+ "default": "gen_random_uuid()::text"
2177
+ }
2178
+ },
2179
+ "indexes": {
2180
+ "EveStoredFile_owner": {
2181
+ "name": "EveStoredFile_owner",
2182
+ "columns": [
2183
+ {
2184
+ "expression": "ownerId",
2185
+ "isExpression": false,
2186
+ "asc": true,
2187
+ "nulls": "last"
2188
+ }
2189
+ ],
2190
+ "isUnique": false,
2191
+ "concurrently": false,
2192
+ "method": "btree",
2193
+ "with": {}
2194
+ }
2195
+ },
2196
+ "foreignKeys": {
2197
+ "EveStoredFile_ownerId_user_id_fk": {
2198
+ "name": "EveStoredFile_ownerId_user_id_fk",
2199
+ "tableFrom": "EveStoredFile",
2200
+ "tableTo": "user",
2201
+ "columnsFrom": [
2202
+ "ownerId"
2203
+ ],
2204
+ "columnsTo": [
2205
+ "id"
2206
+ ],
2207
+ "onDelete": "no action",
2208
+ "onUpdate": "no action"
2209
+ }
2210
+ },
2211
+ "compositePrimaryKeys": {},
2212
+ "uniqueConstraints": {
2213
+ "EveStoredFile_storageKey_unique": {
2214
+ "name": "EveStoredFile_storageKey_unique",
2215
+ "nullsNotDistinct": false,
2216
+ "columns": [
2217
+ "storageKey"
2218
+ ]
2219
+ },
2220
+ "EveStoredFile_key_owner": {
2221
+ "name": "EveStoredFile_key_owner",
2222
+ "nullsNotDistinct": false,
2223
+ "columns": [
2224
+ "key",
2225
+ "ownerId"
2226
+ ]
2227
+ }
2228
+ },
2229
+ "policies": {},
2230
+ "checkConstraints": {},
2231
+ "isRLSEnabled": false
2232
+ },
2233
+ "public.EveSubagentSession": {
2234
+ "name": "EveSubagentSession",
2235
+ "schema": "",
2236
+ "columns": {
2237
+ "conversationId": {
2238
+ "name": "conversationId",
2239
+ "type": "uuid",
2240
+ "primaryKey": false,
2241
+ "notNull": true
2242
+ },
2243
+ "ownerId": {
2244
+ "name": "ownerId",
2245
+ "type": "text",
2246
+ "primaryKey": false,
2247
+ "notNull": true
2248
+ },
2249
+ "parentSessionId": {
2250
+ "name": "parentSessionId",
2251
+ "type": "text",
2252
+ "primaryKey": false,
2253
+ "notNull": true
2254
+ },
2255
+ "rootTurnId": {
2256
+ "name": "rootTurnId",
2257
+ "type": "text",
2258
+ "primaryKey": false,
2259
+ "notNull": true
2260
+ },
2261
+ "sessionId": {
2262
+ "name": "sessionId",
2263
+ "type": "text",
2264
+ "primaryKey": true,
2265
+ "notNull": true
2266
+ },
2267
+ "usageStreamIndex": {
2268
+ "name": "usageStreamIndex",
2269
+ "type": "integer",
2270
+ "primaryKey": false,
2271
+ "notNull": true,
2272
+ "default": 0
2273
+ }
2274
+ },
2275
+ "indexes": {
2276
+ "EveSubagentSession_conversation": {
2277
+ "name": "EveSubagentSession_conversation",
2278
+ "columns": [
2279
+ {
2280
+ "expression": "conversationId",
2281
+ "isExpression": false,
2282
+ "asc": true,
2283
+ "nulls": "last"
2284
+ }
2285
+ ],
2286
+ "isUnique": false,
2287
+ "concurrently": false,
2288
+ "method": "btree",
2289
+ "with": {}
2290
+ }
2291
+ },
2292
+ "foreignKeys": {
2293
+ "EveSubagentSession_conversation_owner_fk": {
2294
+ "name": "EveSubagentSession_conversation_owner_fk",
2295
+ "tableFrom": "EveSubagentSession",
2296
+ "tableTo": "EveConversation",
2297
+ "columnsFrom": [
2298
+ "conversationId",
2299
+ "ownerId"
2300
+ ],
2301
+ "columnsTo": [
2302
+ "id",
2303
+ "ownerId"
2304
+ ],
2305
+ "onDelete": "cascade",
2306
+ "onUpdate": "no action"
2307
+ }
2308
+ },
2309
+ "compositePrimaryKeys": {},
2310
+ "uniqueConstraints": {},
2311
+ "policies": {},
2312
+ "checkConstraints": {
2313
+ "EveSubagentSession_not_self": {
2314
+ "name": "EveSubagentSession_not_self",
2315
+ "value": "\"EveSubagentSession\".\"sessionId\" <> \"EveSubagentSession\".\"parentSessionId\""
2316
+ },
2317
+ "EveSubagentSession_cursor": {
2318
+ "name": "EveSubagentSession_cursor",
2319
+ "value": "\"EveSubagentSession\".\"usageStreamIndex\" >= 0"
2320
+ }
2321
+ },
2322
+ "isRLSEnabled": false
2323
+ },
2324
+ "public.EveUsage": {
2325
+ "name": "EveUsage",
2326
+ "schema": "",
2327
+ "columns": {
2328
+ "chargedCents": {
2329
+ "name": "chargedCents",
2330
+ "type": "integer",
2331
+ "primaryKey": false,
2332
+ "notNull": true,
2333
+ "default": 0
2334
+ },
2335
+ "costUsd": {
2336
+ "name": "costUsd",
2337
+ "type": "numeric(24, 12)",
2338
+ "primaryKey": false,
2339
+ "notNull": false
2340
+ },
2341
+ "createdAt": {
2342
+ "name": "createdAt",
2343
+ "type": "timestamp",
2344
+ "primaryKey": false,
2345
+ "notNull": true,
2346
+ "default": "now()"
2347
+ },
2348
+ "eventId": {
2349
+ "name": "eventId",
2350
+ "type": "text",
2351
+ "primaryKey": true,
2352
+ "notNull": true
2353
+ },
2354
+ "generationId": {
2355
+ "name": "generationId",
2356
+ "type": "text",
2357
+ "primaryKey": false,
2358
+ "notNull": false
2359
+ },
2360
+ "modelAttempt": {
2361
+ "name": "modelAttempt",
2362
+ "type": "jsonb",
2363
+ "primaryKey": false,
2364
+ "notNull": false
2365
+ },
2366
+ "ownerId": {
2367
+ "name": "ownerId",
2368
+ "type": "text",
2369
+ "primaryKey": false,
2370
+ "notNull": true
2371
+ },
2372
+ "sessionId": {
2373
+ "name": "sessionId",
2374
+ "type": "text",
2375
+ "primaryKey": false,
2376
+ "notNull": true
2377
+ },
2378
+ "turnId": {
2379
+ "name": "turnId",
2380
+ "type": "text",
2381
+ "primaryKey": false,
2382
+ "notNull": true
2383
+ }
2384
+ },
2385
+ "indexes": {
2386
+ "EveUsage_session_turn": {
2387
+ "name": "EveUsage_session_turn",
2388
+ "columns": [
2389
+ {
2390
+ "expression": "sessionId",
2391
+ "isExpression": false,
2392
+ "asc": true,
2393
+ "nulls": "last"
2394
+ },
2395
+ {
2396
+ "expression": "turnId",
2397
+ "isExpression": false,
2398
+ "asc": true,
2399
+ "nulls": "last"
2400
+ }
2401
+ ],
2402
+ "isUnique": false,
2403
+ "concurrently": false,
2404
+ "method": "btree",
2405
+ "with": {}
2406
+ },
2407
+ "EveUsage_unpriced_owner": {
2408
+ "name": "EveUsage_unpriced_owner",
2409
+ "columns": [
2410
+ {
2411
+ "expression": "ownerId",
2412
+ "isExpression": false,
2413
+ "asc": true,
2414
+ "nulls": "last"
2415
+ }
2416
+ ],
2417
+ "isUnique": false,
2418
+ "where": "\"EveUsage\".\"costUsd\" is null",
2419
+ "concurrently": false,
2420
+ "method": "btree",
2421
+ "with": {}
2422
+ }
2423
+ },
2424
+ "foreignKeys": {
2425
+ "EveUsage_ownerId_user_id_fk": {
2426
+ "name": "EveUsage_ownerId_user_id_fk",
2427
+ "tableFrom": "EveUsage",
2428
+ "tableTo": "user",
2429
+ "columnsFrom": [
2430
+ "ownerId"
2431
+ ],
2432
+ "columnsTo": [
2433
+ "id"
2434
+ ],
2435
+ "onDelete": "no action",
2436
+ "onUpdate": "no action"
2437
+ }
2438
+ },
2439
+ "compositePrimaryKeys": {},
2440
+ "uniqueConstraints": {},
2441
+ "policies": {},
2442
+ "checkConstraints": {},
2443
+ "isRLSEnabled": false
2444
+ },
2445
+ "public.EveWorkflowBackend": {
2446
+ "name": "EveWorkflowBackend",
2447
+ "schema": "",
2448
+ "columns": {
2449
+ "id": {
2450
+ "name": "id",
2451
+ "type": "integer",
2452
+ "primaryKey": true,
2453
+ "notNull": true,
2454
+ "default": 1
2455
+ },
2456
+ "world": {
2457
+ "name": "world",
2458
+ "type": "text",
2459
+ "primaryKey": false,
2460
+ "notNull": true
2461
+ }
2462
+ },
2463
+ "indexes": {},
2464
+ "foreignKeys": {},
2465
+ "compositePrimaryKeys": {},
2466
+ "uniqueConstraints": {},
2467
+ "policies": {},
2468
+ "checkConstraints": {
2469
+ "EveWorkflowBackend_singleton": {
2470
+ "name": "EveWorkflowBackend_singleton",
2471
+ "value": "\"EveWorkflowBackend\".\"id\" = 1"
2472
+ }
2473
+ },
2474
+ "isRLSEnabled": false
2475
+ },
2476
+ "public.EveWorkspace": {
2477
+ "name": "EveWorkspace",
2478
+ "schema": "",
2479
+ "columns": {
2480
+ "id": {
2481
+ "name": "id",
2482
+ "type": "uuid",
2483
+ "primaryKey": true,
2484
+ "notNull": true,
2485
+ "default": "gen_random_uuid()"
2486
+ },
2487
+ "ownerId": {
2488
+ "name": "ownerId",
2489
+ "type": "text",
2490
+ "primaryKey": false,
2491
+ "notNull": true
2492
+ },
2493
+ "state": {
2494
+ "name": "state",
2495
+ "type": "text",
2496
+ "primaryKey": false,
2497
+ "notNull": true,
2498
+ "default": "'active'"
2499
+ },
2500
+ "activeOperationId": {
2501
+ "name": "activeOperationId",
2502
+ "type": "uuid",
2503
+ "primaryKey": false,
2504
+ "notNull": false
2505
+ }
2506
+ },
2507
+ "indexes": {},
2508
+ "foreignKeys": {
2509
+ "EveWorkspace_ownerId_user_id_fk": {
2510
+ "name": "EveWorkspace_ownerId_user_id_fk",
2511
+ "tableFrom": "EveWorkspace",
2512
+ "tableTo": "user",
2513
+ "columnsFrom": [
2514
+ "ownerId"
2515
+ ],
2516
+ "columnsTo": [
2517
+ "id"
2518
+ ],
2519
+ "onDelete": "cascade",
2520
+ "onUpdate": "no action"
2521
+ }
2522
+ },
2523
+ "compositePrimaryKeys": {},
2524
+ "uniqueConstraints": {
2525
+ "EveWorkspace_id_owner": {
2526
+ "name": "EveWorkspace_id_owner",
2527
+ "nullsNotDistinct": false,
2528
+ "columns": [
2529
+ "id",
2530
+ "ownerId"
2531
+ ]
2532
+ }
2533
+ },
2534
+ "policies": {},
2535
+ "checkConstraints": {},
2536
+ "isRLSEnabled": false
2537
+ },
2538
+ "public.EveWorkspaceAttachment": {
2539
+ "name": "EveWorkspaceAttachment",
2540
+ "schema": "",
2541
+ "columns": {
2542
+ "workspaceId": {
2543
+ "name": "workspaceId",
2544
+ "type": "uuid",
2545
+ "primaryKey": false,
2546
+ "notNull": true
2547
+ },
2548
+ "fileKey": {
2549
+ "name": "fileKey",
2550
+ "type": "text",
2551
+ "primaryKey": false,
2552
+ "notNull": true
2553
+ },
2554
+ "ownerId": {
2555
+ "name": "ownerId",
2556
+ "type": "text",
2557
+ "primaryKey": false,
2558
+ "notNull": true
2559
+ },
2560
+ "sha256": {
2561
+ "name": "sha256",
2562
+ "type": "text",
2563
+ "primaryKey": false,
2564
+ "notNull": true
2565
+ },
2566
+ "paths": {
2567
+ "name": "paths",
2568
+ "type": "text[]",
2569
+ "primaryKey": false,
2570
+ "notNull": true,
2571
+ "default": "'{}'::text[]"
2572
+ }
2573
+ },
2574
+ "indexes": {
2575
+ "EveWorkspaceAttachment_file": {
2576
+ "name": "EveWorkspaceAttachment_file",
2577
+ "columns": [
2578
+ {
2579
+ "expression": "fileKey",
2580
+ "isExpression": false,
2581
+ "asc": true,
2582
+ "nulls": "last"
2583
+ }
2584
+ ],
2585
+ "isUnique": false,
2586
+ "concurrently": false,
2587
+ "method": "btree",
2588
+ "with": {}
2589
+ }
2590
+ },
2591
+ "foreignKeys": {
2592
+ "EveWorkspaceAttachment_workspace_owner_fk": {
2593
+ "name": "EveWorkspaceAttachment_workspace_owner_fk",
2594
+ "tableFrom": "EveWorkspaceAttachment",
2595
+ "tableTo": "EveWorkspace",
2596
+ "columnsFrom": [
2597
+ "workspaceId",
2598
+ "ownerId"
2599
+ ],
2600
+ "columnsTo": [
2601
+ "id",
2602
+ "ownerId"
2603
+ ],
2604
+ "onDelete": "no action",
2605
+ "onUpdate": "no action"
2606
+ },
2607
+ "EveWorkspaceAttachment_file_owner_fk": {
2608
+ "name": "EveWorkspaceAttachment_file_owner_fk",
2609
+ "tableFrom": "EveWorkspaceAttachment",
2610
+ "tableTo": "EveStoredFile",
2611
+ "columnsFrom": [
2612
+ "fileKey",
2613
+ "ownerId"
2614
+ ],
2615
+ "columnsTo": [
2616
+ "key",
2617
+ "ownerId"
2618
+ ],
2619
+ "onDelete": "no action",
2620
+ "onUpdate": "no action"
2621
+ }
2622
+ },
2623
+ "compositePrimaryKeys": {
2624
+ "EveWorkspaceAttachment_workspaceId_fileKey_pk": {
2625
+ "name": "EveWorkspaceAttachment_workspaceId_fileKey_pk",
2626
+ "columns": [
2627
+ "workspaceId",
2628
+ "fileKey"
2629
+ ]
2630
+ }
2631
+ },
2632
+ "uniqueConstraints": {},
2633
+ "policies": {},
2634
+ "checkConstraints": {},
2635
+ "isRLSEnabled": false
2636
+ },
2637
+ "public.GuestRuntimeRate": {
2638
+ "name": "GuestRuntimeRate",
2639
+ "schema": "",
2640
+ "columns": {
2641
+ "ipHash": {
2642
+ "name": "ipHash",
2643
+ "type": "text",
2644
+ "primaryKey": false,
2645
+ "notNull": true
2646
+ },
2647
+ "kind": {
2648
+ "name": "kind",
2649
+ "type": "text",
2650
+ "primaryKey": false,
2651
+ "notNull": true
2652
+ },
2653
+ "startsAt": {
2654
+ "name": "startsAt",
2655
+ "type": "timestamp with time zone",
2656
+ "primaryKey": false,
2657
+ "notNull": true
2658
+ },
2659
+ "requests": {
2660
+ "name": "requests",
2661
+ "type": "integer",
2662
+ "primaryKey": false,
2663
+ "notNull": true,
2664
+ "default": 0
2665
+ }
2666
+ },
2667
+ "indexes": {},
2668
+ "foreignKeys": {},
2669
+ "compositePrimaryKeys": {
2670
+ "GuestRuntimeRate_ipHash_kind_startsAt_pk": {
2671
+ "name": "GuestRuntimeRate_ipHash_kind_startsAt_pk",
2672
+ "columns": [
2673
+ "ipHash",
2674
+ "kind",
2675
+ "startsAt"
2676
+ ]
2677
+ }
2678
+ },
2679
+ "uniqueConstraints": {},
2680
+ "policies": {},
2681
+ "checkConstraints": {
2682
+ "GuestRuntimeRate_requests": {
2683
+ "name": "GuestRuntimeRate_requests",
2684
+ "value": "\"GuestRuntimeRate\".\"requests\" >= 0"
2685
+ },
2686
+ "GuestRuntimeRate_kind": {
2687
+ "name": "GuestRuntimeRate_kind",
2688
+ "value": "\"GuestRuntimeRate\".\"kind\" in ('session', 'message')"
2689
+ }
2690
+ },
2691
+ "isRLSEnabled": false
2692
+ },
2693
+ "public.GuestRuntimeSession": {
2694
+ "name": "GuestRuntimeSession",
2695
+ "schema": "",
2696
+ "columns": {
2697
+ "id": {
2698
+ "name": "id",
2699
+ "type": "uuid",
2700
+ "primaryKey": true,
2701
+ "notNull": true,
2702
+ "default": "gen_random_uuid()"
2703
+ },
2704
+ "ownerId": {
2705
+ "name": "ownerId",
2706
+ "type": "text",
2707
+ "primaryKey": false,
2708
+ "notNull": true
2709
+ },
2710
+ "sessionId": {
2711
+ "name": "sessionId",
2712
+ "type": "text",
2713
+ "primaryKey": false,
2714
+ "notNull": false
2715
+ },
2716
+ "modelId": {
2717
+ "name": "modelId",
2718
+ "type": "text",
2719
+ "primaryKey": false,
2720
+ "notNull": true
2721
+ },
2722
+ "ipHash": {
2723
+ "name": "ipHash",
2724
+ "type": "text",
2725
+ "primaryKey": false,
2726
+ "notNull": true
2727
+ },
2728
+ "policyVersion": {
2729
+ "name": "policyVersion",
2730
+ "type": "integer",
2731
+ "primaryKey": false,
2732
+ "notNull": true,
2733
+ "default": 1
2734
+ },
2735
+ "state": {
2736
+ "name": "state",
2737
+ "type": "text",
2738
+ "primaryKey": false,
2739
+ "notNull": true,
2740
+ "default": "'active'"
2741
+ },
2742
+ "createdAt": {
2743
+ "name": "createdAt",
2744
+ "type": "timestamp with time zone",
2745
+ "primaryKey": false,
2746
+ "notNull": true,
2747
+ "default": "now()"
2748
+ },
2749
+ "expiresAt": {
2750
+ "name": "expiresAt",
2751
+ "type": "timestamp with time zone",
2752
+ "primaryKey": false,
2753
+ "notNull": true,
2754
+ "default": "now() + interval '24 hours'"
2755
+ },
2756
+ "credentialExpiresAt": {
2757
+ "name": "credentialExpiresAt",
2758
+ "type": "timestamp with time zone",
2759
+ "primaryKey": false,
2760
+ "notNull": true
2761
+ },
2762
+ "inputCharactersUsed": {
2763
+ "name": "inputCharactersUsed",
2764
+ "type": "integer",
2765
+ "primaryKey": false,
2766
+ "notNull": true,
2767
+ "default": 0
2768
+ },
2769
+ "cleanupAttemptedAt": {
2770
+ "name": "cleanupAttemptedAt",
2771
+ "type": "timestamp with time zone",
2772
+ "primaryKey": false,
2773
+ "notNull": false
2774
+ },
2775
+ "deletedAt": {
2776
+ "name": "deletedAt",
2777
+ "type": "timestamp with time zone",
2778
+ "primaryKey": false,
2779
+ "notNull": false
2780
+ }
2781
+ },
2782
+ "indexes": {
2783
+ "GuestRuntimeSession_cleanup_idx": {
2784
+ "name": "GuestRuntimeSession_cleanup_idx",
2785
+ "columns": [
2786
+ {
2787
+ "expression": "state",
2788
+ "isExpression": false,
2789
+ "asc": true,
2790
+ "nulls": "last"
2791
+ },
2792
+ {
2793
+ "expression": "expiresAt",
2794
+ "isExpression": false,
2795
+ "asc": true,
2796
+ "nulls": "last"
2797
+ }
2798
+ ],
2799
+ "isUnique": false,
2800
+ "concurrently": false,
2801
+ "method": "btree",
2802
+ "with": {}
2803
+ }
2804
+ },
2805
+ "foreignKeys": {},
2806
+ "compositePrimaryKeys": {},
2807
+ "uniqueConstraints": {
2808
+ "GuestRuntimeSession_ownerId_unique": {
2809
+ "name": "GuestRuntimeSession_ownerId_unique",
2810
+ "nullsNotDistinct": false,
2811
+ "columns": [
2812
+ "ownerId"
2813
+ ]
2814
+ },
2815
+ "GuestRuntimeSession_sessionId_unique": {
2816
+ "name": "GuestRuntimeSession_sessionId_unique",
2817
+ "nullsNotDistinct": false,
2818
+ "columns": [
2819
+ "sessionId"
2820
+ ]
2821
+ }
2822
+ },
2823
+ "policies": {},
2824
+ "checkConstraints": {
2825
+ "GuestRuntimeSession_state": {
2826
+ "name": "GuestRuntimeSession_state",
2827
+ "value": "\"GuestRuntimeSession\".\"state\" in ('active', 'deleting', 'deleted')"
2828
+ },
2829
+ "GuestRuntimeSession_ip_hash": {
2830
+ "name": "GuestRuntimeSession_ip_hash",
2831
+ "value": "\"GuestRuntimeSession\".\"ipHash\" ~ '^[0-9a-f]{64}$'"
2832
+ },
2833
+ "GuestRuntimeSession_expiry": {
2834
+ "name": "GuestRuntimeSession_expiry",
2835
+ "value": "\"GuestRuntimeSession\".\"expiresAt\" = \"GuestRuntimeSession\".\"createdAt\" + interval '24 hours'"
2836
+ }
2837
+ },
2838
+ "isRLSEnabled": false
2839
+ },
2840
+ "public.session": {
2841
+ "name": "session",
2842
+ "schema": "",
2843
+ "columns": {
2844
+ "created_at": {
2845
+ "name": "created_at",
2846
+ "type": "timestamp",
2847
+ "primaryKey": false,
2848
+ "notNull": true,
2849
+ "default": "now()"
2850
+ },
2851
+ "expires_at": {
2852
+ "name": "expires_at",
2853
+ "type": "timestamp",
2854
+ "primaryKey": false,
2855
+ "notNull": true
2856
+ },
2857
+ "id": {
2858
+ "name": "id",
2859
+ "type": "text",
2860
+ "primaryKey": true,
2861
+ "notNull": true
2862
+ },
2863
+ "ip_address": {
2864
+ "name": "ip_address",
2865
+ "type": "text",
2866
+ "primaryKey": false,
2867
+ "notNull": false
2868
+ },
2869
+ "token": {
2870
+ "name": "token",
2871
+ "type": "text",
2872
+ "primaryKey": false,
2873
+ "notNull": true
2874
+ },
2875
+ "updated_at": {
2876
+ "name": "updated_at",
2877
+ "type": "timestamp",
2878
+ "primaryKey": false,
2879
+ "notNull": true
2880
+ },
2881
+ "user_agent": {
2882
+ "name": "user_agent",
2883
+ "type": "text",
2884
+ "primaryKey": false,
2885
+ "notNull": false
2886
+ },
2887
+ "user_id": {
2888
+ "name": "user_id",
2889
+ "type": "text",
2890
+ "primaryKey": false,
2891
+ "notNull": true
2892
+ }
2893
+ },
2894
+ "indexes": {},
2895
+ "foreignKeys": {
2896
+ "session_user_id_user_id_fk": {
2897
+ "name": "session_user_id_user_id_fk",
2898
+ "tableFrom": "session",
2899
+ "tableTo": "user",
2900
+ "columnsFrom": [
2901
+ "user_id"
2902
+ ],
2903
+ "columnsTo": [
2904
+ "id"
2905
+ ],
2906
+ "onDelete": "cascade",
2907
+ "onUpdate": "no action"
2908
+ }
2909
+ },
2910
+ "compositePrimaryKeys": {},
2911
+ "uniqueConstraints": {
2912
+ "session_token_unique": {
2913
+ "name": "session_token_unique",
2914
+ "nullsNotDistinct": false,
2915
+ "columns": [
2916
+ "token"
2917
+ ]
2918
+ }
2919
+ },
2920
+ "policies": {},
2921
+ "checkConstraints": {},
2922
+ "isRLSEnabled": false
2923
+ },
2924
+ "public.user": {
2925
+ "name": "user",
2926
+ "schema": "",
2927
+ "columns": {
2928
+ "created_at": {
2929
+ "name": "created_at",
2930
+ "type": "timestamp",
2931
+ "primaryKey": false,
2932
+ "notNull": true,
2933
+ "default": "now()"
2934
+ },
2935
+ "email": {
2936
+ "name": "email",
2937
+ "type": "text",
2938
+ "primaryKey": false,
2939
+ "notNull": true
2940
+ },
2941
+ "email_verified": {
2942
+ "name": "email_verified",
2943
+ "type": "boolean",
2944
+ "primaryKey": false,
2945
+ "notNull": true,
2946
+ "default": false
2947
+ },
2948
+ "eve_usage_reconciled_at": {
2949
+ "name": "eve_usage_reconciled_at",
2950
+ "type": "timestamp",
2951
+ "primaryKey": false,
2952
+ "notNull": false
2953
+ },
2954
+ "id": {
2955
+ "name": "id",
2956
+ "type": "text",
2957
+ "primaryKey": true,
2958
+ "notNull": true
2959
+ },
2960
+ "image": {
2961
+ "name": "image",
2962
+ "type": "text",
2963
+ "primaryKey": false,
2964
+ "notNull": false
2965
+ },
2966
+ "name": {
2967
+ "name": "name",
2968
+ "type": "text",
2969
+ "primaryKey": false,
2970
+ "notNull": true
2971
+ },
2972
+ "updated_at": {
2973
+ "name": "updated_at",
2974
+ "type": "timestamp",
2975
+ "primaryKey": false,
2976
+ "notNull": true,
2977
+ "default": "now()"
2978
+ }
2979
+ },
2980
+ "indexes": {},
2981
+ "foreignKeys": {},
2982
+ "compositePrimaryKeys": {},
2983
+ "uniqueConstraints": {
2984
+ "user_email_unique": {
2985
+ "name": "user_email_unique",
2986
+ "nullsNotDistinct": false,
2987
+ "columns": [
2988
+ "email"
2989
+ ]
2990
+ }
2991
+ },
2992
+ "policies": {},
2993
+ "checkConstraints": {},
2994
+ "isRLSEnabled": false
2995
+ },
2996
+ "public.UserCredit": {
2997
+ "name": "UserCredit",
2998
+ "schema": "",
2999
+ "columns": {
3000
+ "credits": {
3001
+ "name": "credits",
3002
+ "type": "integer",
3003
+ "primaryKey": false,
3004
+ "notNull": true,
3005
+ "default": 50
3006
+ },
3007
+ "userId": {
3008
+ "name": "userId",
3009
+ "type": "text",
3010
+ "primaryKey": true,
3011
+ "notNull": true
3012
+ }
3013
+ },
3014
+ "indexes": {},
3015
+ "foreignKeys": {
3016
+ "UserCredit_userId_user_id_fk": {
3017
+ "name": "UserCredit_userId_user_id_fk",
3018
+ "tableFrom": "UserCredit",
3019
+ "tableTo": "user",
3020
+ "columnsFrom": [
3021
+ "userId"
3022
+ ],
3023
+ "columnsTo": [
3024
+ "id"
3025
+ ],
3026
+ "onDelete": "cascade",
3027
+ "onUpdate": "no action"
3028
+ }
3029
+ },
3030
+ "compositePrimaryKeys": {},
3031
+ "uniqueConstraints": {},
3032
+ "policies": {},
3033
+ "checkConstraints": {},
3034
+ "isRLSEnabled": false
3035
+ },
3036
+ "public.UserModelPreference": {
3037
+ "name": "UserModelPreference",
3038
+ "schema": "",
3039
+ "columns": {
3040
+ "createdAt": {
3041
+ "name": "createdAt",
3042
+ "type": "timestamp",
3043
+ "primaryKey": false,
3044
+ "notNull": true,
3045
+ "default": "now()"
3046
+ },
3047
+ "enabled": {
3048
+ "name": "enabled",
3049
+ "type": "boolean",
3050
+ "primaryKey": false,
3051
+ "notNull": true
3052
+ },
3053
+ "modelId": {
3054
+ "name": "modelId",
3055
+ "type": "varchar(256)",
3056
+ "primaryKey": false,
3057
+ "notNull": true
3058
+ },
3059
+ "updatedAt": {
3060
+ "name": "updatedAt",
3061
+ "type": "timestamp",
3062
+ "primaryKey": false,
3063
+ "notNull": true,
3064
+ "default": "now()"
3065
+ },
3066
+ "userId": {
3067
+ "name": "userId",
3068
+ "type": "text",
3069
+ "primaryKey": false,
3070
+ "notNull": true
3071
+ }
3072
+ },
3073
+ "indexes": {
3074
+ "UserModelPreference_user_id_idx": {
3075
+ "name": "UserModelPreference_user_id_idx",
3076
+ "columns": [
3077
+ {
3078
+ "expression": "userId",
3079
+ "isExpression": false,
3080
+ "asc": true,
3081
+ "nulls": "last"
3082
+ }
3083
+ ],
3084
+ "isUnique": false,
3085
+ "concurrently": false,
3086
+ "method": "btree",
3087
+ "with": {}
3088
+ }
3089
+ },
3090
+ "foreignKeys": {
3091
+ "UserModelPreference_userId_user_id_fk": {
3092
+ "name": "UserModelPreference_userId_user_id_fk",
3093
+ "tableFrom": "UserModelPreference",
3094
+ "tableTo": "user",
3095
+ "columnsFrom": [
3096
+ "userId"
3097
+ ],
3098
+ "columnsTo": [
3099
+ "id"
3100
+ ],
3101
+ "onDelete": "cascade",
3102
+ "onUpdate": "no action"
3103
+ }
3104
+ },
3105
+ "compositePrimaryKeys": {
3106
+ "UserModelPreference_userId_modelId_pk": {
3107
+ "name": "UserModelPreference_userId_modelId_pk",
3108
+ "columns": [
3109
+ "userId",
3110
+ "modelId"
3111
+ ]
3112
+ }
3113
+ },
3114
+ "uniqueConstraints": {},
3115
+ "policies": {},
3116
+ "checkConstraints": {},
3117
+ "isRLSEnabled": false
3118
+ },
3119
+ "public.verification": {
3120
+ "name": "verification",
3121
+ "schema": "",
3122
+ "columns": {
3123
+ "created_at": {
3124
+ "name": "created_at",
3125
+ "type": "timestamp",
3126
+ "primaryKey": false,
3127
+ "notNull": true,
3128
+ "default": "now()"
3129
+ },
3130
+ "expires_at": {
3131
+ "name": "expires_at",
3132
+ "type": "timestamp",
3133
+ "primaryKey": false,
3134
+ "notNull": true
3135
+ },
3136
+ "id": {
3137
+ "name": "id",
3138
+ "type": "text",
3139
+ "primaryKey": true,
3140
+ "notNull": true
3141
+ },
3142
+ "identifier": {
3143
+ "name": "identifier",
3144
+ "type": "text",
3145
+ "primaryKey": false,
3146
+ "notNull": true
3147
+ },
3148
+ "updated_at": {
3149
+ "name": "updated_at",
3150
+ "type": "timestamp",
3151
+ "primaryKey": false,
3152
+ "notNull": true,
3153
+ "default": "now()"
3154
+ },
3155
+ "value": {
3156
+ "name": "value",
3157
+ "type": "text",
3158
+ "primaryKey": false,
3159
+ "notNull": true
3160
+ }
3161
+ },
3162
+ "indexes": {},
3163
+ "foreignKeys": {},
3164
+ "compositePrimaryKeys": {},
3165
+ "uniqueConstraints": {},
3166
+ "policies": {},
3167
+ "checkConstraints": {},
3168
+ "isRLSEnabled": false
3169
+ },
3170
+ "public.EveVote": {
3171
+ "name": "EveVote",
3172
+ "schema": "",
3173
+ "columns": {
3174
+ "conversationId": {
3175
+ "name": "conversationId",
3176
+ "type": "uuid",
3177
+ "primaryKey": false,
3178
+ "notNull": true
3179
+ },
3180
+ "isUpvoted": {
3181
+ "name": "isUpvoted",
3182
+ "type": "boolean",
3183
+ "primaryKey": false,
3184
+ "notNull": true
3185
+ },
3186
+ "messageId": {
3187
+ "name": "messageId",
3188
+ "type": "text",
3189
+ "primaryKey": false,
3190
+ "notNull": true
3191
+ }
3192
+ },
3193
+ "indexes": {},
3194
+ "foreignKeys": {
3195
+ "EveVote_conversationId_EveConversation_id_fk": {
3196
+ "name": "EveVote_conversationId_EveConversation_id_fk",
3197
+ "tableFrom": "EveVote",
3198
+ "tableTo": "EveConversation",
3199
+ "columnsFrom": [
3200
+ "conversationId"
3201
+ ],
3202
+ "columnsTo": [
3203
+ "id"
3204
+ ],
3205
+ "onDelete": "cascade",
3206
+ "onUpdate": "no action"
3207
+ }
3208
+ },
3209
+ "compositePrimaryKeys": {
3210
+ "EveVote_conversationId_messageId_pk": {
3211
+ "name": "EveVote_conversationId_messageId_pk",
3212
+ "columns": [
3213
+ "conversationId",
3214
+ "messageId"
3215
+ ]
3216
+ }
3217
+ },
3218
+ "uniqueConstraints": {},
3219
+ "policies": {},
3220
+ "checkConstraints": {},
3221
+ "isRLSEnabled": false
3222
+ },
3223
+ "public.EveFollowup": {
3224
+ "name": "EveFollowup",
3225
+ "schema": "",
3226
+ "columns": {
3227
+ "chatId": {
3228
+ "name": "chatId",
3229
+ "type": "uuid",
3230
+ "primaryKey": false,
3231
+ "notNull": true
3232
+ },
3233
+ "ownerId": {
3234
+ "name": "ownerId",
3235
+ "type": "text",
3236
+ "primaryKey": false,
3237
+ "notNull": true
3238
+ },
3239
+ "turnId": {
3240
+ "name": "turnId",
3241
+ "type": "text",
3242
+ "primaryKey": false,
3243
+ "notNull": true
3244
+ },
3245
+ "sessionId": {
3246
+ "name": "sessionId",
3247
+ "type": "text",
3248
+ "primaryKey": false,
3249
+ "notNull": true
3250
+ },
3251
+ "eventId": {
3252
+ "name": "eventId",
3253
+ "type": "text",
3254
+ "primaryKey": true,
3255
+ "notNull": true
3256
+ },
3257
+ "suggestions": {
3258
+ "name": "suggestions",
3259
+ "type": "jsonb",
3260
+ "primaryKey": false,
3261
+ "notNull": false
3262
+ }
3263
+ },
3264
+ "indexes": {
3265
+ "EveFollowup_chat": {
3266
+ "name": "EveFollowup_chat",
3267
+ "columns": [
3268
+ {
3269
+ "expression": "chatId",
3270
+ "isExpression": false,
3271
+ "asc": true,
3272
+ "nulls": "last"
3273
+ }
3274
+ ],
3275
+ "isUnique": false,
3276
+ "concurrently": false,
3277
+ "method": "btree",
3278
+ "with": {}
3279
+ }
3280
+ },
3281
+ "foreignKeys": {
3282
+ "EveFollowup_chatId_ownerId_EveChat_id_ownerId_fk": {
3283
+ "name": "EveFollowup_chatId_ownerId_EveChat_id_ownerId_fk",
3284
+ "tableFrom": "EveFollowup",
3285
+ "tableTo": "EveChat",
3286
+ "columnsFrom": [
3287
+ "chatId",
3288
+ "ownerId"
3289
+ ],
3290
+ "columnsTo": [
3291
+ "id",
3292
+ "ownerId"
3293
+ ],
3294
+ "onDelete": "cascade",
3295
+ "onUpdate": "no action"
3296
+ }
3297
+ },
3298
+ "compositePrimaryKeys": {},
3299
+ "uniqueConstraints": {
3300
+ "EveFollowup_sessionId_turnId_unique": {
3301
+ "name": "EveFollowup_sessionId_turnId_unique",
3302
+ "nullsNotDistinct": false,
3303
+ "columns": [
3304
+ "sessionId",
3305
+ "turnId"
3306
+ ]
3307
+ }
3308
+ },
3309
+ "policies": {},
3310
+ "checkConstraints": {},
3311
+ "isRLSEnabled": false
3312
+ },
3313
+ "public.McpConnector": {
3314
+ "name": "McpConnector",
3315
+ "schema": "",
3316
+ "columns": {
3317
+ "createdAt": {
3318
+ "name": "createdAt",
3319
+ "type": "timestamp",
3320
+ "primaryKey": false,
3321
+ "notNull": true,
3322
+ "default": "now()"
3323
+ },
3324
+ "enabled": {
3325
+ "name": "enabled",
3326
+ "type": "boolean",
3327
+ "primaryKey": false,
3328
+ "notNull": true,
3329
+ "default": true
3330
+ },
3331
+ "id": {
3332
+ "name": "id",
3333
+ "type": "uuid",
3334
+ "primaryKey": true,
3335
+ "notNull": true,
3336
+ "default": "gen_random_uuid()"
3337
+ },
3338
+ "name": {
3339
+ "name": "name",
3340
+ "type": "varchar(256)",
3341
+ "primaryKey": false,
3342
+ "notNull": true
3343
+ },
3344
+ "nameId": {
3345
+ "name": "nameId",
3346
+ "type": "varchar(256)",
3347
+ "primaryKey": false,
3348
+ "notNull": true
3349
+ },
3350
+ "oauthClientId": {
3351
+ "name": "oauthClientId",
3352
+ "type": "text",
3353
+ "primaryKey": false,
3354
+ "notNull": false
3355
+ },
3356
+ "oauthClientSecret": {
3357
+ "name": "oauthClientSecret",
3358
+ "type": "text",
3359
+ "primaryKey": false,
3360
+ "notNull": false
3361
+ },
3362
+ "requireApproval": {
3363
+ "name": "requireApproval",
3364
+ "type": "boolean",
3365
+ "primaryKey": false,
3366
+ "notNull": true,
3367
+ "default": false
3368
+ },
3369
+ "type": {
3370
+ "name": "type",
3371
+ "type": "varchar",
3372
+ "primaryKey": false,
3373
+ "notNull": true,
3374
+ "default": "'http'"
3375
+ },
3376
+ "updatedAt": {
3377
+ "name": "updatedAt",
3378
+ "type": "timestamp",
3379
+ "primaryKey": false,
3380
+ "notNull": true,
3381
+ "default": "now()"
3382
+ },
3383
+ "url": {
3384
+ "name": "url",
3385
+ "type": "text",
3386
+ "primaryKey": false,
3387
+ "notNull": true
3388
+ },
3389
+ "userId": {
3390
+ "name": "userId",
3391
+ "type": "text",
3392
+ "primaryKey": false,
3393
+ "notNull": false
3394
+ }
3395
+ },
3396
+ "indexes": {
3397
+ "McpConnector_user_id_idx": {
3398
+ "name": "McpConnector_user_id_idx",
3399
+ "columns": [
3400
+ {
3401
+ "expression": "userId",
3402
+ "isExpression": false,
3403
+ "asc": true,
3404
+ "nulls": "last"
3405
+ }
3406
+ ],
3407
+ "isUnique": false,
3408
+ "concurrently": false,
3409
+ "method": "btree",
3410
+ "with": {}
3411
+ },
3412
+ "McpConnector_user_name_id_idx": {
3413
+ "name": "McpConnector_user_name_id_idx",
3414
+ "columns": [
3415
+ {
3416
+ "expression": "userId",
3417
+ "isExpression": false,
3418
+ "asc": true,
3419
+ "nulls": "last"
3420
+ },
3421
+ {
3422
+ "expression": "nameId",
3423
+ "isExpression": false,
3424
+ "asc": true,
3425
+ "nulls": "last"
3426
+ }
3427
+ ],
3428
+ "isUnique": false,
3429
+ "concurrently": false,
3430
+ "method": "btree",
3431
+ "with": {}
3432
+ },
3433
+ "McpConnector_user_name_id_unique": {
3434
+ "name": "McpConnector_user_name_id_unique",
3435
+ "columns": [
3436
+ {
3437
+ "expression": "userId",
3438
+ "isExpression": false,
3439
+ "asc": true,
3440
+ "nulls": "last"
3441
+ },
3442
+ {
3443
+ "expression": "nameId",
3444
+ "isExpression": false,
3445
+ "asc": true,
3446
+ "nulls": "last"
3447
+ }
3448
+ ],
3449
+ "isUnique": true,
3450
+ "concurrently": false,
3451
+ "method": "btree",
3452
+ "with": {}
3453
+ }
3454
+ },
3455
+ "foreignKeys": {
3456
+ "McpConnector_userId_user_id_fk": {
3457
+ "name": "McpConnector_userId_user_id_fk",
3458
+ "tableFrom": "McpConnector",
3459
+ "tableTo": "user",
3460
+ "columnsFrom": [
3461
+ "userId"
3462
+ ],
3463
+ "columnsTo": [
3464
+ "id"
3465
+ ],
3466
+ "onDelete": "cascade",
3467
+ "onUpdate": "no action"
3468
+ }
3469
+ },
3470
+ "compositePrimaryKeys": {},
3471
+ "uniqueConstraints": {},
3472
+ "policies": {},
3473
+ "checkConstraints": {},
3474
+ "isRLSEnabled": false
3475
+ },
3476
+ "public.McpOAuthSession": {
3477
+ "name": "McpOAuthSession",
3478
+ "schema": "",
3479
+ "columns": {
3480
+ "clientInfo": {
3481
+ "name": "clientInfo",
3482
+ "type": "text",
3483
+ "primaryKey": false,
3484
+ "notNull": false
3485
+ },
3486
+ "codeVerifier": {
3487
+ "name": "codeVerifier",
3488
+ "type": "text",
3489
+ "primaryKey": false,
3490
+ "notNull": false
3491
+ },
3492
+ "createdAt": {
3493
+ "name": "createdAt",
3494
+ "type": "timestamp",
3495
+ "primaryKey": false,
3496
+ "notNull": true,
3497
+ "default": "now()"
3498
+ },
3499
+ "id": {
3500
+ "name": "id",
3501
+ "type": "uuid",
3502
+ "primaryKey": true,
3503
+ "notNull": true,
3504
+ "default": "gen_random_uuid()"
3505
+ },
3506
+ "mcpConnectorId": {
3507
+ "name": "mcpConnectorId",
3508
+ "type": "uuid",
3509
+ "primaryKey": false,
3510
+ "notNull": true
3511
+ },
3512
+ "serverUrl": {
3513
+ "name": "serverUrl",
3514
+ "type": "text",
3515
+ "primaryKey": false,
3516
+ "notNull": true
3517
+ },
3518
+ "state": {
3519
+ "name": "state",
3520
+ "type": "text",
3521
+ "primaryKey": false,
3522
+ "notNull": false
3523
+ },
3524
+ "tokens": {
3525
+ "name": "tokens",
3526
+ "type": "text",
3527
+ "primaryKey": false,
3528
+ "notNull": false
3529
+ },
3530
+ "updatedAt": {
3531
+ "name": "updatedAt",
3532
+ "type": "timestamp",
3533
+ "primaryKey": false,
3534
+ "notNull": true,
3535
+ "default": "now()"
3536
+ }
3537
+ },
3538
+ "indexes": {
3539
+ "McpOAuthSession_connector_idx": {
3540
+ "name": "McpOAuthSession_connector_idx",
3541
+ "columns": [
3542
+ {
3543
+ "expression": "mcpConnectorId",
3544
+ "isExpression": false,
3545
+ "asc": true,
3546
+ "nulls": "last"
3547
+ }
3548
+ ],
3549
+ "isUnique": false,
3550
+ "concurrently": false,
3551
+ "method": "btree",
3552
+ "with": {}
3553
+ },
3554
+ "McpOAuthSession_state_idx": {
3555
+ "name": "McpOAuthSession_state_idx",
3556
+ "columns": [
3557
+ {
3558
+ "expression": "state",
3559
+ "isExpression": false,
3560
+ "asc": true,
3561
+ "nulls": "last"
3562
+ }
3563
+ ],
3564
+ "isUnique": false,
3565
+ "concurrently": false,
3566
+ "method": "btree",
3567
+ "with": {}
3568
+ }
3569
+ },
3570
+ "foreignKeys": {
3571
+ "McpOAuthSession_mcpConnectorId_McpConnector_id_fk": {
3572
+ "name": "McpOAuthSession_mcpConnectorId_McpConnector_id_fk",
3573
+ "tableFrom": "McpOAuthSession",
3574
+ "tableTo": "McpConnector",
3575
+ "columnsFrom": [
3576
+ "mcpConnectorId"
3577
+ ],
3578
+ "columnsTo": [
3579
+ "id"
3580
+ ],
3581
+ "onDelete": "cascade",
3582
+ "onUpdate": "no action"
3583
+ }
3584
+ },
3585
+ "compositePrimaryKeys": {},
3586
+ "uniqueConstraints": {
3587
+ "McpOAuthSession_state_unique": {
3588
+ "name": "McpOAuthSession_state_unique",
3589
+ "nullsNotDistinct": false,
3590
+ "columns": [
3591
+ "state"
3592
+ ]
3593
+ }
3594
+ },
3595
+ "policies": {},
3596
+ "checkConstraints": {},
3597
+ "isRLSEnabled": false
3598
+ },
3599
+ "public.EveChatProject": {
3600
+ "name": "EveChatProject",
3601
+ "schema": "",
3602
+ "columns": {
3603
+ "chatId": {
3604
+ "name": "chatId",
3605
+ "type": "uuid",
3606
+ "primaryKey": true,
3607
+ "notNull": true
3608
+ },
3609
+ "ownerId": {
3610
+ "name": "ownerId",
3611
+ "type": "text",
3612
+ "primaryKey": false,
3613
+ "notNull": true
3614
+ },
3615
+ "projectId": {
3616
+ "name": "projectId",
3617
+ "type": "uuid",
3618
+ "primaryKey": false,
3619
+ "notNull": true
3620
+ }
3621
+ },
3622
+ "indexes": {
3623
+ "EveChatProject_project": {
3624
+ "name": "EveChatProject_project",
3625
+ "columns": [
3626
+ {
3627
+ "expression": "projectId",
3628
+ "isExpression": false,
3629
+ "asc": true,
3630
+ "nulls": "last"
3631
+ }
3632
+ ],
3633
+ "isUnique": false,
3634
+ "concurrently": false,
3635
+ "method": "btree",
3636
+ "with": {}
3637
+ }
3638
+ },
3639
+ "foreignKeys": {
3640
+ "EveChatProject_chatId_ownerId_EveChat_id_ownerId_fk": {
3641
+ "name": "EveChatProject_chatId_ownerId_EveChat_id_ownerId_fk",
3642
+ "tableFrom": "EveChatProject",
3643
+ "tableTo": "EveChat",
3644
+ "columnsFrom": [
3645
+ "chatId",
3646
+ "ownerId"
3647
+ ],
3648
+ "columnsTo": [
3649
+ "id",
3650
+ "ownerId"
3651
+ ],
3652
+ "onDelete": "cascade",
3653
+ "onUpdate": "no action"
3654
+ },
3655
+ "EveChatProject_projectId_ownerId_Project_id_userId_fk": {
3656
+ "name": "EveChatProject_projectId_ownerId_Project_id_userId_fk",
3657
+ "tableFrom": "EveChatProject",
3658
+ "tableTo": "Project",
3659
+ "columnsFrom": [
3660
+ "projectId",
3661
+ "ownerId"
3662
+ ],
3663
+ "columnsTo": [
3664
+ "id",
3665
+ "userId"
3666
+ ],
3667
+ "onDelete": "cascade",
3668
+ "onUpdate": "no action"
3669
+ }
3670
+ },
3671
+ "compositePrimaryKeys": {},
3672
+ "uniqueConstraints": {},
3673
+ "policies": {},
3674
+ "checkConstraints": {},
3675
+ "isRLSEnabled": false
3676
+ },
3677
+ "public.Project": {
3678
+ "name": "Project",
3679
+ "schema": "",
3680
+ "columns": {
3681
+ "createdAt": {
3682
+ "name": "createdAt",
3683
+ "type": "timestamp",
3684
+ "primaryKey": false,
3685
+ "notNull": true,
3686
+ "default": "now()"
3687
+ },
3688
+ "icon": {
3689
+ "name": "icon",
3690
+ "type": "varchar(64)",
3691
+ "primaryKey": false,
3692
+ "notNull": true,
3693
+ "default": "'folder'"
3694
+ },
3695
+ "iconColor": {
3696
+ "name": "iconColor",
3697
+ "type": "varchar(32)",
3698
+ "primaryKey": false,
3699
+ "notNull": true,
3700
+ "default": "'gray'"
3701
+ },
3702
+ "id": {
3703
+ "name": "id",
3704
+ "type": "uuid",
3705
+ "primaryKey": true,
3706
+ "notNull": true,
3707
+ "default": "gen_random_uuid()"
3708
+ },
3709
+ "instructions": {
3710
+ "name": "instructions",
3711
+ "type": "text",
3712
+ "primaryKey": false,
3713
+ "notNull": true,
3714
+ "default": "''"
3715
+ },
3716
+ "name": {
3717
+ "name": "name",
3718
+ "type": "text",
3719
+ "primaryKey": false,
3720
+ "notNull": true
3721
+ },
3722
+ "updatedAt": {
3723
+ "name": "updatedAt",
3724
+ "type": "timestamp",
3725
+ "primaryKey": false,
3726
+ "notNull": true,
3727
+ "default": "now()"
3728
+ },
3729
+ "userId": {
3730
+ "name": "userId",
3731
+ "type": "text",
3732
+ "primaryKey": false,
3733
+ "notNull": true
3734
+ }
3735
+ },
3736
+ "indexes": {
3737
+ "Project_user_id_idx": {
3738
+ "name": "Project_user_id_idx",
3739
+ "columns": [
3740
+ {
3741
+ "expression": "userId",
3742
+ "isExpression": false,
3743
+ "asc": true,
3744
+ "nulls": "last"
3745
+ }
3746
+ ],
3747
+ "isUnique": false,
3748
+ "concurrently": false,
3749
+ "method": "btree",
3750
+ "with": {}
3751
+ }
3752
+ },
3753
+ "foreignKeys": {
3754
+ "Project_userId_user_id_fk": {
3755
+ "name": "Project_userId_user_id_fk",
3756
+ "tableFrom": "Project",
3757
+ "tableTo": "user",
3758
+ "columnsFrom": [
3759
+ "userId"
3760
+ ],
3761
+ "columnsTo": [
3762
+ "id"
3763
+ ],
3764
+ "onDelete": "cascade",
3765
+ "onUpdate": "no action"
3766
+ }
3767
+ },
3768
+ "compositePrimaryKeys": {},
3769
+ "uniqueConstraints": {
3770
+ "Project_id_user": {
3771
+ "name": "Project_id_user",
3772
+ "nullsNotDistinct": false,
3773
+ "columns": [
3774
+ "id",
3775
+ "userId"
3776
+ ]
3777
+ }
3778
+ },
3779
+ "policies": {},
3780
+ "checkConstraints": {},
3781
+ "isRLSEnabled": false
3782
+ },
3783
+ "public.EveSearchText": {
3784
+ "name": "EveSearchText",
3785
+ "schema": "",
3786
+ "columns": {
3787
+ "conversationId": {
3788
+ "name": "conversationId",
3789
+ "type": "uuid",
3790
+ "primaryKey": false,
3791
+ "notNull": true
3792
+ },
3793
+ "key": {
3794
+ "name": "key",
3795
+ "type": "text",
3796
+ "primaryKey": false,
3797
+ "notNull": true
3798
+ },
3799
+ "ownerId": {
3800
+ "name": "ownerId",
3801
+ "type": "text",
3802
+ "primaryKey": false,
3803
+ "notNull": true
3804
+ },
3805
+ "text": {
3806
+ "name": "text",
3807
+ "type": "text",
3808
+ "primaryKey": false,
3809
+ "notNull": true
3810
+ }
3811
+ },
3812
+ "indexes": {
3813
+ "EveSearchText_owner": {
3814
+ "name": "EveSearchText_owner",
3815
+ "columns": [
3816
+ {
3817
+ "expression": "ownerId",
3818
+ "isExpression": false,
3819
+ "asc": true,
3820
+ "nulls": "last"
3821
+ }
3822
+ ],
3823
+ "isUnique": false,
3824
+ "concurrently": false,
3825
+ "method": "btree",
3826
+ "with": {}
3827
+ },
3828
+ "EveSearchText_content": {
3829
+ "name": "EveSearchText_content",
3830
+ "columns": [
3831
+ {
3832
+ "expression": "to_tsvector('simple', \"text\")",
3833
+ "asc": true,
3834
+ "isExpression": true,
3835
+ "nulls": "last"
3836
+ }
3837
+ ],
3838
+ "isUnique": false,
3839
+ "concurrently": false,
3840
+ "method": "gin",
3841
+ "with": {}
3842
+ }
3843
+ },
3844
+ "foreignKeys": {
3845
+ "EveSearchText_conversationId_ownerId_EveConversation_id_ownerId_fk": {
3846
+ "name": "EveSearchText_conversationId_ownerId_EveConversation_id_ownerId_fk",
3847
+ "tableFrom": "EveSearchText",
3848
+ "tableTo": "EveConversation",
3849
+ "columnsFrom": [
3850
+ "conversationId",
3851
+ "ownerId"
3852
+ ],
3853
+ "columnsTo": [
3854
+ "id",
3855
+ "ownerId"
3856
+ ],
3857
+ "onDelete": "cascade",
3858
+ "onUpdate": "no action"
3859
+ }
3860
+ },
3861
+ "compositePrimaryKeys": {
3862
+ "EveSearchText_conversationId_key_pk": {
3863
+ "name": "EveSearchText_conversationId_key_pk",
3864
+ "columns": [
3865
+ "conversationId",
3866
+ "key"
3867
+ ]
3868
+ }
3869
+ },
3870
+ "uniqueConstraints": {},
3871
+ "policies": {},
3872
+ "checkConstraints": {},
3873
+ "isRLSEnabled": false
3874
+ }
3875
+ },
3876
+ "enums": {},
3877
+ "schemas": {},
3878
+ "sequences": {},
3879
+ "roles": {},
3880
+ "policies": {},
3881
+ "views": {},
3882
+ "_meta": {
3883
+ "columns": {},
3884
+ "schemas": {},
3885
+ "tables": {}
3886
+ }
3887
+ }