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,3920 @@
1
+ {
2
+ "id": "91ee9555-636d-4542-8153-cf56959a3ff1",
3
+ "prevId": "156692d6-9333-4def-9972-b3f1083815ed",
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.EveFollowup": {
1284
+ "name": "EveFollowup",
1285
+ "schema": "",
1286
+ "columns": {
1287
+ "chatId": {
1288
+ "name": "chatId",
1289
+ "type": "uuid",
1290
+ "primaryKey": false,
1291
+ "notNull": true
1292
+ },
1293
+ "ownerId": {
1294
+ "name": "ownerId",
1295
+ "type": "text",
1296
+ "primaryKey": false,
1297
+ "notNull": true
1298
+ },
1299
+ "turnId": {
1300
+ "name": "turnId",
1301
+ "type": "text",
1302
+ "primaryKey": false,
1303
+ "notNull": true
1304
+ },
1305
+ "sessionId": {
1306
+ "name": "sessionId",
1307
+ "type": "text",
1308
+ "primaryKey": false,
1309
+ "notNull": true
1310
+ },
1311
+ "eventId": {
1312
+ "name": "eventId",
1313
+ "type": "text",
1314
+ "primaryKey": true,
1315
+ "notNull": true
1316
+ },
1317
+ "suggestions": {
1318
+ "name": "suggestions",
1319
+ "type": "jsonb",
1320
+ "primaryKey": false,
1321
+ "notNull": false
1322
+ }
1323
+ },
1324
+ "indexes": {
1325
+ "EveFollowup_chat": {
1326
+ "name": "EveFollowup_chat",
1327
+ "columns": [
1328
+ {
1329
+ "expression": "chatId",
1330
+ "isExpression": false,
1331
+ "asc": true,
1332
+ "nulls": "last"
1333
+ }
1334
+ ],
1335
+ "isUnique": false,
1336
+ "concurrently": false,
1337
+ "method": "btree",
1338
+ "with": {}
1339
+ }
1340
+ },
1341
+ "foreignKeys": {
1342
+ "EveFollowup_chatId_ownerId_EveChat_id_ownerId_fk": {
1343
+ "name": "EveFollowup_chatId_ownerId_EveChat_id_ownerId_fk",
1344
+ "tableFrom": "EveFollowup",
1345
+ "tableTo": "EveChat",
1346
+ "columnsFrom": [
1347
+ "chatId",
1348
+ "ownerId"
1349
+ ],
1350
+ "columnsTo": [
1351
+ "id",
1352
+ "ownerId"
1353
+ ],
1354
+ "onDelete": "cascade",
1355
+ "onUpdate": "no action"
1356
+ }
1357
+ },
1358
+ "compositePrimaryKeys": {},
1359
+ "uniqueConstraints": {
1360
+ "EveFollowup_sessionId_turnId_unique": {
1361
+ "name": "EveFollowup_sessionId_turnId_unique",
1362
+ "nullsNotDistinct": false,
1363
+ "columns": [
1364
+ "sessionId",
1365
+ "turnId"
1366
+ ]
1367
+ }
1368
+ },
1369
+ "policies": {},
1370
+ "checkConstraints": {},
1371
+ "isRLSEnabled": false
1372
+ },
1373
+ "public.EveGuest": {
1374
+ "name": "EveGuest",
1375
+ "schema": "",
1376
+ "columns": {
1377
+ "createdAt": {
1378
+ "name": "createdAt",
1379
+ "type": "timestamp with time zone",
1380
+ "primaryKey": false,
1381
+ "notNull": true,
1382
+ "default": "now()"
1383
+ },
1384
+ "expiresAt": {
1385
+ "name": "expiresAt",
1386
+ "type": "timestamp with time zone",
1387
+ "primaryKey": false,
1388
+ "notNull": true
1389
+ },
1390
+ "messageLimit": {
1391
+ "name": "messageLimit",
1392
+ "type": "integer",
1393
+ "primaryKey": false,
1394
+ "notNull": true
1395
+ },
1396
+ "ownerId": {
1397
+ "name": "ownerId",
1398
+ "type": "text",
1399
+ "primaryKey": true,
1400
+ "notNull": true
1401
+ },
1402
+ "remainingMessages": {
1403
+ "name": "remainingMessages",
1404
+ "type": "integer",
1405
+ "primaryKey": false,
1406
+ "notNull": true
1407
+ },
1408
+ "tokenHash": {
1409
+ "name": "tokenHash",
1410
+ "type": "varchar(64)",
1411
+ "primaryKey": false,
1412
+ "notNull": true
1413
+ }
1414
+ },
1415
+ "indexes": {
1416
+ "EveGuest_expiry_idx": {
1417
+ "name": "EveGuest_expiry_idx",
1418
+ "columns": [
1419
+ {
1420
+ "expression": "expiresAt",
1421
+ "isExpression": false,
1422
+ "asc": true,
1423
+ "nulls": "last"
1424
+ }
1425
+ ],
1426
+ "isUnique": false,
1427
+ "concurrently": false,
1428
+ "method": "btree",
1429
+ "with": {}
1430
+ }
1431
+ },
1432
+ "foreignKeys": {
1433
+ "EveGuest_ownerId_user_id_fk": {
1434
+ "name": "EveGuest_ownerId_user_id_fk",
1435
+ "tableFrom": "EveGuest",
1436
+ "tableTo": "user",
1437
+ "columnsFrom": [
1438
+ "ownerId"
1439
+ ],
1440
+ "columnsTo": [
1441
+ "id"
1442
+ ],
1443
+ "onDelete": "cascade",
1444
+ "onUpdate": "no action"
1445
+ }
1446
+ },
1447
+ "compositePrimaryKeys": {},
1448
+ "uniqueConstraints": {
1449
+ "EveGuest_tokenHash_unique": {
1450
+ "name": "EveGuest_tokenHash_unique",
1451
+ "nullsNotDistinct": false,
1452
+ "columns": [
1453
+ "tokenHash"
1454
+ ]
1455
+ }
1456
+ },
1457
+ "policies": {},
1458
+ "checkConstraints": {
1459
+ "EveGuest_message_balance": {
1460
+ "name": "EveGuest_message_balance",
1461
+ "value": "\"EveGuest\".\"remainingMessages\" >= 0 and \"EveGuest\".\"remainingMessages\" <= \"EveGuest\".\"messageLimit\""
1462
+ },
1463
+ "EveGuest_token_hash": {
1464
+ "name": "EveGuest_token_hash",
1465
+ "value": "\"EveGuest\".\"tokenHash\" ~ '^[0-9a-f]{64}$'"
1466
+ }
1467
+ },
1468
+ "isRLSEnabled": false
1469
+ },
1470
+ "public.EveGuestMessage": {
1471
+ "name": "EveGuestMessage",
1472
+ "schema": "",
1473
+ "columns": {
1474
+ "ipHash": {
1475
+ "name": "ipHash",
1476
+ "type": "varchar(64)",
1477
+ "primaryKey": false,
1478
+ "notNull": true
1479
+ },
1480
+ "operationId": {
1481
+ "name": "operationId",
1482
+ "type": "uuid",
1483
+ "primaryKey": false,
1484
+ "notNull": true
1485
+ },
1486
+ "ownerId": {
1487
+ "name": "ownerId",
1488
+ "type": "text",
1489
+ "primaryKey": false,
1490
+ "notNull": true
1491
+ },
1492
+ "requestHash": {
1493
+ "name": "requestHash",
1494
+ "type": "varchar(64)",
1495
+ "primaryKey": false,
1496
+ "notNull": true
1497
+ },
1498
+ "reservationId": {
1499
+ "name": "reservationId",
1500
+ "type": "uuid",
1501
+ "primaryKey": false,
1502
+ "notNull": true
1503
+ },
1504
+ "reservedAt": {
1505
+ "name": "reservedAt",
1506
+ "type": "timestamp with time zone",
1507
+ "primaryKey": false,
1508
+ "notNull": true
1509
+ },
1510
+ "state": {
1511
+ "name": "state",
1512
+ "type": "text",
1513
+ "primaryKey": false,
1514
+ "notNull": true
1515
+ }
1516
+ },
1517
+ "indexes": {},
1518
+ "foreignKeys": {
1519
+ "EveGuestMessage_ownerId_EveGuest_ownerId_fk": {
1520
+ "name": "EveGuestMessage_ownerId_EveGuest_ownerId_fk",
1521
+ "tableFrom": "EveGuestMessage",
1522
+ "tableTo": "EveGuest",
1523
+ "columnsFrom": [
1524
+ "ownerId"
1525
+ ],
1526
+ "columnsTo": [
1527
+ "ownerId"
1528
+ ],
1529
+ "onDelete": "cascade",
1530
+ "onUpdate": "no action"
1531
+ }
1532
+ },
1533
+ "compositePrimaryKeys": {
1534
+ "EveGuestMessage_ownerId_operationId_pk": {
1535
+ "name": "EveGuestMessage_ownerId_operationId_pk",
1536
+ "columns": [
1537
+ "ownerId",
1538
+ "operationId"
1539
+ ]
1540
+ }
1541
+ },
1542
+ "uniqueConstraints": {},
1543
+ "policies": {},
1544
+ "checkConstraints": {
1545
+ "EveGuestMessage_state": {
1546
+ "name": "EveGuestMessage_state",
1547
+ "value": "\"EveGuestMessage\".\"state\" in ('reserved', 'committed', 'released')"
1548
+ },
1549
+ "EveGuestMessage_request_hash": {
1550
+ "name": "EveGuestMessage_request_hash",
1551
+ "value": "\"EveGuestMessage\".\"requestHash\" ~ '^[0-9a-f]{64}$'"
1552
+ }
1553
+ },
1554
+ "isRLSEnabled": false
1555
+ },
1556
+ "public.EveGuestRate": {
1557
+ "name": "EveGuestRate",
1558
+ "schema": "",
1559
+ "columns": {
1560
+ "ipHash": {
1561
+ "name": "ipHash",
1562
+ "type": "varchar(64)",
1563
+ "primaryKey": false,
1564
+ "notNull": true
1565
+ },
1566
+ "requests": {
1567
+ "name": "requests",
1568
+ "type": "integer",
1569
+ "primaryKey": false,
1570
+ "notNull": true
1571
+ },
1572
+ "startsAt": {
1573
+ "name": "startsAt",
1574
+ "type": "timestamp with time zone",
1575
+ "primaryKey": false,
1576
+ "notNull": true
1577
+ },
1578
+ "windowSeconds": {
1579
+ "name": "windowSeconds",
1580
+ "type": "integer",
1581
+ "primaryKey": false,
1582
+ "notNull": true
1583
+ }
1584
+ },
1585
+ "indexes": {},
1586
+ "foreignKeys": {},
1587
+ "compositePrimaryKeys": {
1588
+ "EveGuestRate_ipHash_windowSeconds_startsAt_pk": {
1589
+ "name": "EveGuestRate_ipHash_windowSeconds_startsAt_pk",
1590
+ "columns": [
1591
+ "ipHash",
1592
+ "windowSeconds",
1593
+ "startsAt"
1594
+ ]
1595
+ }
1596
+ },
1597
+ "uniqueConstraints": {},
1598
+ "policies": {},
1599
+ "checkConstraints": {
1600
+ "EveGuestRate_requests": {
1601
+ "name": "EveGuestRate_requests",
1602
+ "value": "\"EveGuestRate\".\"requests\" >= 0"
1603
+ },
1604
+ "EveGuestRate_window": {
1605
+ "name": "EveGuestRate_window",
1606
+ "value": "\"EveGuestRate\".\"windowSeconds\" in (60, 2592000)"
1607
+ }
1608
+ },
1609
+ "isRLSEnabled": false
1610
+ },
1611
+ "public.EveImportedDocumentCheckpoint": {
1612
+ "name": "EveImportedDocumentCheckpoint",
1613
+ "schema": "",
1614
+ "columns": {
1615
+ "conversationId": {
1616
+ "name": "conversationId",
1617
+ "type": "uuid",
1618
+ "primaryKey": false,
1619
+ "notNull": true
1620
+ },
1621
+ "messageIndex": {
1622
+ "name": "messageIndex",
1623
+ "type": "integer",
1624
+ "primaryKey": false,
1625
+ "notNull": true
1626
+ },
1627
+ "ownerId": {
1628
+ "name": "ownerId",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": true
1632
+ }
1633
+ },
1634
+ "indexes": {},
1635
+ "foreignKeys": {
1636
+ "EveImportedDocumentCheckpoint_conversation_owner_fk": {
1637
+ "name": "EveImportedDocumentCheckpoint_conversation_owner_fk",
1638
+ "tableFrom": "EveImportedDocumentCheckpoint",
1639
+ "tableTo": "EveConversation",
1640
+ "columnsFrom": [
1641
+ "conversationId",
1642
+ "ownerId"
1643
+ ],
1644
+ "columnsTo": [
1645
+ "id",
1646
+ "ownerId"
1647
+ ],
1648
+ "onDelete": "no action",
1649
+ "onUpdate": "no action"
1650
+ }
1651
+ },
1652
+ "compositePrimaryKeys": {
1653
+ "EveImportedDocumentCheckpoint_conversationId_messageIndex_pk": {
1654
+ "name": "EveImportedDocumentCheckpoint_conversationId_messageIndex_pk",
1655
+ "columns": [
1656
+ "conversationId",
1657
+ "messageIndex"
1658
+ ]
1659
+ }
1660
+ },
1661
+ "uniqueConstraints": {
1662
+ "EveImportedDocumentCheckpoint_owner_identity": {
1663
+ "name": "EveImportedDocumentCheckpoint_owner_identity",
1664
+ "nullsNotDistinct": false,
1665
+ "columns": [
1666
+ "conversationId",
1667
+ "messageIndex",
1668
+ "ownerId"
1669
+ ]
1670
+ }
1671
+ },
1672
+ "policies": {},
1673
+ "checkConstraints": {
1674
+ "EveImportedDocumentCheckpoint_message_range": {
1675
+ "name": "EveImportedDocumentCheckpoint_message_range",
1676
+ "value": "\"EveImportedDocumentCheckpoint\".\"messageIndex\" between 0 and 9999"
1677
+ }
1678
+ },
1679
+ "isRLSEnabled": false
1680
+ },
1681
+ "public.EveImportedDocumentCheckpointEntry": {
1682
+ "name": "EveImportedDocumentCheckpointEntry",
1683
+ "schema": "",
1684
+ "columns": {
1685
+ "conversationId": {
1686
+ "name": "conversationId",
1687
+ "type": "uuid",
1688
+ "primaryKey": false,
1689
+ "notNull": true
1690
+ },
1691
+ "documentId": {
1692
+ "name": "documentId",
1693
+ "type": "uuid",
1694
+ "primaryKey": false,
1695
+ "notNull": true
1696
+ },
1697
+ "messageIndex": {
1698
+ "name": "messageIndex",
1699
+ "type": "integer",
1700
+ "primaryKey": false,
1701
+ "notNull": true
1702
+ },
1703
+ "ownerId": {
1704
+ "name": "ownerId",
1705
+ "type": "text",
1706
+ "primaryKey": false,
1707
+ "notNull": true
1708
+ },
1709
+ "revisionId": {
1710
+ "name": "revisionId",
1711
+ "type": "uuid",
1712
+ "primaryKey": false,
1713
+ "notNull": true
1714
+ }
1715
+ },
1716
+ "indexes": {},
1717
+ "foreignKeys": {
1718
+ "EveImportedDocumentCheckpointEntry_checkpoint_owner_fk": {
1719
+ "name": "EveImportedDocumentCheckpointEntry_checkpoint_owner_fk",
1720
+ "tableFrom": "EveImportedDocumentCheckpointEntry",
1721
+ "tableTo": "EveImportedDocumentCheckpoint",
1722
+ "columnsFrom": [
1723
+ "conversationId",
1724
+ "messageIndex",
1725
+ "ownerId"
1726
+ ],
1727
+ "columnsTo": [
1728
+ "conversationId",
1729
+ "messageIndex",
1730
+ "ownerId"
1731
+ ],
1732
+ "onDelete": "no action",
1733
+ "onUpdate": "no action"
1734
+ },
1735
+ "EveImportedDocumentCheckpointEntry_revision_owner_fk": {
1736
+ "name": "EveImportedDocumentCheckpointEntry_revision_owner_fk",
1737
+ "tableFrom": "EveImportedDocumentCheckpointEntry",
1738
+ "tableTo": "EveDocumentRevision",
1739
+ "columnsFrom": [
1740
+ "revisionId",
1741
+ "documentId",
1742
+ "ownerId"
1743
+ ],
1744
+ "columnsTo": [
1745
+ "id",
1746
+ "documentId",
1747
+ "ownerId"
1748
+ ],
1749
+ "onDelete": "no action",
1750
+ "onUpdate": "no action"
1751
+ }
1752
+ },
1753
+ "compositePrimaryKeys": {
1754
+ "EveImportedDocumentCheckpointEntry_conversationId_messageIndex_documentId_pk": {
1755
+ "name": "EveImportedDocumentCheckpointEntry_conversationId_messageIndex_documentId_pk",
1756
+ "columns": [
1757
+ "conversationId",
1758
+ "messageIndex",
1759
+ "documentId"
1760
+ ]
1761
+ }
1762
+ },
1763
+ "uniqueConstraints": {},
1764
+ "policies": {},
1765
+ "checkConstraints": {},
1766
+ "isRLSEnabled": false
1767
+ },
1768
+ "public.EveNamedDocumentCheckpoint": {
1769
+ "name": "EveNamedDocumentCheckpoint",
1770
+ "schema": "",
1771
+ "columns": {
1772
+ "checkpointId": {
1773
+ "name": "checkpointId",
1774
+ "type": "uuid",
1775
+ "primaryKey": false,
1776
+ "notNull": true
1777
+ },
1778
+ "conversationId": {
1779
+ "name": "conversationId",
1780
+ "type": "uuid",
1781
+ "primaryKey": false,
1782
+ "notNull": true
1783
+ },
1784
+ "ownerId": {
1785
+ "name": "ownerId",
1786
+ "type": "text",
1787
+ "primaryKey": false,
1788
+ "notNull": true
1789
+ },
1790
+ "turnIndex": {
1791
+ "name": "turnIndex",
1792
+ "type": "integer",
1793
+ "primaryKey": false,
1794
+ "notNull": true
1795
+ }
1796
+ },
1797
+ "indexes": {},
1798
+ "foreignKeys": {
1799
+ "EveNamedDocumentCheckpoint_conversation_owner_fk": {
1800
+ "name": "EveNamedDocumentCheckpoint_conversation_owner_fk",
1801
+ "tableFrom": "EveNamedDocumentCheckpoint",
1802
+ "tableTo": "EveConversation",
1803
+ "columnsFrom": [
1804
+ "conversationId",
1805
+ "ownerId"
1806
+ ],
1807
+ "columnsTo": [
1808
+ "id",
1809
+ "ownerId"
1810
+ ],
1811
+ "onDelete": "no action",
1812
+ "onUpdate": "no action"
1813
+ }
1814
+ },
1815
+ "compositePrimaryKeys": {
1816
+ "EveNamedDocumentCheckpoint_conversationId_checkpointId_pk": {
1817
+ "name": "EveNamedDocumentCheckpoint_conversationId_checkpointId_pk",
1818
+ "columns": [
1819
+ "conversationId",
1820
+ "checkpointId"
1821
+ ]
1822
+ }
1823
+ },
1824
+ "uniqueConstraints": {
1825
+ "EveNamedDocumentCheckpoint_owner_identity": {
1826
+ "name": "EveNamedDocumentCheckpoint_owner_identity",
1827
+ "nullsNotDistinct": false,
1828
+ "columns": [
1829
+ "conversationId",
1830
+ "checkpointId",
1831
+ "ownerId"
1832
+ ]
1833
+ }
1834
+ },
1835
+ "policies": {},
1836
+ "checkConstraints": {
1837
+ "EveNamedDocumentCheckpoint_turn_nonnegative": {
1838
+ "name": "EveNamedDocumentCheckpoint_turn_nonnegative",
1839
+ "value": "\"EveNamedDocumentCheckpoint\".\"turnIndex\" >= 0"
1840
+ }
1841
+ },
1842
+ "isRLSEnabled": false
1843
+ },
1844
+ "public.EveNamedDocumentCheckpointEntry": {
1845
+ "name": "EveNamedDocumentCheckpointEntry",
1846
+ "schema": "",
1847
+ "columns": {
1848
+ "checkpointId": {
1849
+ "name": "checkpointId",
1850
+ "type": "uuid",
1851
+ "primaryKey": false,
1852
+ "notNull": true
1853
+ },
1854
+ "conversationId": {
1855
+ "name": "conversationId",
1856
+ "type": "uuid",
1857
+ "primaryKey": false,
1858
+ "notNull": true
1859
+ },
1860
+ "documentId": {
1861
+ "name": "documentId",
1862
+ "type": "uuid",
1863
+ "primaryKey": false,
1864
+ "notNull": true
1865
+ },
1866
+ "ownerId": {
1867
+ "name": "ownerId",
1868
+ "type": "text",
1869
+ "primaryKey": false,
1870
+ "notNull": true
1871
+ },
1872
+ "revisionId": {
1873
+ "name": "revisionId",
1874
+ "type": "uuid",
1875
+ "primaryKey": false,
1876
+ "notNull": true
1877
+ }
1878
+ },
1879
+ "indexes": {},
1880
+ "foreignKeys": {
1881
+ "EveNamedDocumentCheckpointEntry_checkpoint_owner_fk": {
1882
+ "name": "EveNamedDocumentCheckpointEntry_checkpoint_owner_fk",
1883
+ "tableFrom": "EveNamedDocumentCheckpointEntry",
1884
+ "tableTo": "EveNamedDocumentCheckpoint",
1885
+ "columnsFrom": [
1886
+ "conversationId",
1887
+ "checkpointId",
1888
+ "ownerId"
1889
+ ],
1890
+ "columnsTo": [
1891
+ "conversationId",
1892
+ "checkpointId",
1893
+ "ownerId"
1894
+ ],
1895
+ "onDelete": "no action",
1896
+ "onUpdate": "no action"
1897
+ },
1898
+ "EveNamedDocumentCheckpointEntry_revision_owner_fk": {
1899
+ "name": "EveNamedDocumentCheckpointEntry_revision_owner_fk",
1900
+ "tableFrom": "EveNamedDocumentCheckpointEntry",
1901
+ "tableTo": "EveDocumentRevision",
1902
+ "columnsFrom": [
1903
+ "revisionId",
1904
+ "documentId",
1905
+ "ownerId"
1906
+ ],
1907
+ "columnsTo": [
1908
+ "id",
1909
+ "documentId",
1910
+ "ownerId"
1911
+ ],
1912
+ "onDelete": "no action",
1913
+ "onUpdate": "no action"
1914
+ }
1915
+ },
1916
+ "compositePrimaryKeys": {
1917
+ "EveNamedDocumentCheckpointEntry_conversationId_checkpointId_documentId_pk": {
1918
+ "name": "EveNamedDocumentCheckpointEntry_conversationId_checkpointId_documentId_pk",
1919
+ "columns": [
1920
+ "conversationId",
1921
+ "checkpointId",
1922
+ "documentId"
1923
+ ]
1924
+ }
1925
+ },
1926
+ "uniqueConstraints": {},
1927
+ "policies": {},
1928
+ "checkConstraints": {},
1929
+ "isRLSEnabled": false
1930
+ },
1931
+ "public.EvePersistentSandbox": {
1932
+ "name": "EvePersistentSandbox",
1933
+ "schema": "",
1934
+ "columns": {
1935
+ "name": {
1936
+ "name": "name",
1937
+ "type": "text",
1938
+ "primaryKey": true,
1939
+ "notNull": true
1940
+ },
1941
+ "workspaceId": {
1942
+ "name": "workspaceId",
1943
+ "type": "uuid",
1944
+ "primaryKey": false,
1945
+ "notNull": true
1946
+ },
1947
+ "providerId": {
1948
+ "name": "providerId",
1949
+ "type": "text",
1950
+ "primaryKey": false,
1951
+ "notNull": true
1952
+ },
1953
+ "accountId": {
1954
+ "name": "accountId",
1955
+ "type": "text",
1956
+ "primaryKey": false,
1957
+ "notNull": true
1958
+ },
1959
+ "scopeId": {
1960
+ "name": "scopeId",
1961
+ "type": "text",
1962
+ "primaryKey": false,
1963
+ "notNull": true
1964
+ },
1965
+ "state": {
1966
+ "name": "state",
1967
+ "type": "text",
1968
+ "primaryKey": false,
1969
+ "notNull": true
1970
+ }
1971
+ },
1972
+ "indexes": {},
1973
+ "foreignKeys": {
1974
+ "EvePersistentSandbox_workspaceId_EveWorkspace_id_fk": {
1975
+ "name": "EvePersistentSandbox_workspaceId_EveWorkspace_id_fk",
1976
+ "tableFrom": "EvePersistentSandbox",
1977
+ "tableTo": "EveWorkspace",
1978
+ "columnsFrom": [
1979
+ "workspaceId"
1980
+ ],
1981
+ "columnsTo": [
1982
+ "id"
1983
+ ],
1984
+ "onDelete": "no action",
1985
+ "onUpdate": "no action"
1986
+ }
1987
+ },
1988
+ "compositePrimaryKeys": {},
1989
+ "uniqueConstraints": {
1990
+ "EvePersistentSandbox_workspace": {
1991
+ "name": "EvePersistentSandbox_workspace",
1992
+ "nullsNotDistinct": false,
1993
+ "columns": [
1994
+ "workspaceId"
1995
+ ]
1996
+ }
1997
+ },
1998
+ "policies": {},
1999
+ "checkConstraints": {},
2000
+ "isRLSEnabled": false
2001
+ },
2002
+ "public.EveResponseGroup": {
2003
+ "name": "EveResponseGroup",
2004
+ "schema": "",
2005
+ "columns": {
2006
+ "candidateOperationIds": {
2007
+ "name": "candidateOperationIds",
2008
+ "type": "uuid[]",
2009
+ "primaryKey": false,
2010
+ "notNull": true
2011
+ },
2012
+ "candidates": {
2013
+ "name": "candidates",
2014
+ "type": "jsonb",
2015
+ "primaryKey": false,
2016
+ "notNull": false
2017
+ },
2018
+ "createdAt": {
2019
+ "name": "createdAt",
2020
+ "type": "timestamp",
2021
+ "primaryKey": false,
2022
+ "notNull": true,
2023
+ "default": "now()"
2024
+ },
2025
+ "deleted": {
2026
+ "name": "deleted",
2027
+ "type": "boolean",
2028
+ "primaryKey": false,
2029
+ "notNull": true,
2030
+ "default": false
2031
+ },
2032
+ "id": {
2033
+ "name": "id",
2034
+ "type": "uuid",
2035
+ "primaryKey": true,
2036
+ "notNull": true,
2037
+ "default": "gen_random_uuid()"
2038
+ },
2039
+ "inputHash": {
2040
+ "name": "inputHash",
2041
+ "type": "text",
2042
+ "primaryKey": false,
2043
+ "notNull": false
2044
+ },
2045
+ "operationId": {
2046
+ "name": "operationId",
2047
+ "type": "uuid",
2048
+ "primaryKey": false,
2049
+ "notNull": true
2050
+ },
2051
+ "ownerId": {
2052
+ "name": "ownerId",
2053
+ "type": "text",
2054
+ "primaryKey": false,
2055
+ "notNull": true
2056
+ },
2057
+ "sourceConversationId": {
2058
+ "name": "sourceConversationId",
2059
+ "type": "uuid",
2060
+ "primaryKey": false,
2061
+ "notNull": false
2062
+ },
2063
+ "sourceIdentityKnown": {
2064
+ "name": "sourceIdentityKnown",
2065
+ "type": "boolean",
2066
+ "primaryKey": false,
2067
+ "notNull": true,
2068
+ "default": false
2069
+ }
2070
+ },
2071
+ "indexes": {
2072
+ "EveResponseGroup_owner_operation": {
2073
+ "name": "EveResponseGroup_owner_operation",
2074
+ "columns": [
2075
+ {
2076
+ "expression": "ownerId",
2077
+ "isExpression": false,
2078
+ "asc": true,
2079
+ "nulls": "last"
2080
+ },
2081
+ {
2082
+ "expression": "operationId",
2083
+ "isExpression": false,
2084
+ "asc": true,
2085
+ "nulls": "last"
2086
+ }
2087
+ ],
2088
+ "isUnique": true,
2089
+ "concurrently": false,
2090
+ "method": "btree",
2091
+ "with": {}
2092
+ }
2093
+ },
2094
+ "foreignKeys": {
2095
+ "EveResponseGroup_ownerId_user_id_fk": {
2096
+ "name": "EveResponseGroup_ownerId_user_id_fk",
2097
+ "tableFrom": "EveResponseGroup",
2098
+ "tableTo": "user",
2099
+ "columnsFrom": [
2100
+ "ownerId"
2101
+ ],
2102
+ "columnsTo": [
2103
+ "id"
2104
+ ],
2105
+ "onDelete": "no action",
2106
+ "onUpdate": "no action"
2107
+ }
2108
+ },
2109
+ "compositePrimaryKeys": {},
2110
+ "uniqueConstraints": {},
2111
+ "policies": {},
2112
+ "checkConstraints": {},
2113
+ "isRLSEnabled": false
2114
+ },
2115
+ "public.EveSandboxSession": {
2116
+ "name": "EveSandboxSession",
2117
+ "schema": "",
2118
+ "columns": {
2119
+ "sessionId": {
2120
+ "name": "sessionId",
2121
+ "type": "text",
2122
+ "primaryKey": true,
2123
+ "notNull": true
2124
+ },
2125
+ "rootSessionId": {
2126
+ "name": "rootSessionId",
2127
+ "type": "text",
2128
+ "primaryKey": false,
2129
+ "notNull": true
2130
+ },
2131
+ "conversationId": {
2132
+ "name": "conversationId",
2133
+ "type": "uuid",
2134
+ "primaryKey": false,
2135
+ "notNull": true
2136
+ },
2137
+ "workspaceId": {
2138
+ "name": "workspaceId",
2139
+ "type": "uuid",
2140
+ "primaryKey": false,
2141
+ "notNull": true
2142
+ },
2143
+ "ownerId": {
2144
+ "name": "ownerId",
2145
+ "type": "text",
2146
+ "primaryKey": false,
2147
+ "notNull": true
2148
+ },
2149
+ "devRunId": {
2150
+ "name": "devRunId",
2151
+ "type": "text",
2152
+ "primaryKey": false,
2153
+ "notNull": false
2154
+ },
2155
+ "state": {
2156
+ "name": "state",
2157
+ "type": "text",
2158
+ "primaryKey": false,
2159
+ "notNull": true
2160
+ }
2161
+ },
2162
+ "indexes": {
2163
+ "EveSandboxSession_root": {
2164
+ "name": "EveSandboxSession_root",
2165
+ "columns": [
2166
+ {
2167
+ "expression": "rootSessionId",
2168
+ "isExpression": false,
2169
+ "asc": true,
2170
+ "nulls": "last"
2171
+ }
2172
+ ],
2173
+ "isUnique": false,
2174
+ "concurrently": false,
2175
+ "method": "btree",
2176
+ "with": {}
2177
+ },
2178
+ "EveSandboxSession_workspace": {
2179
+ "name": "EveSandboxSession_workspace",
2180
+ "columns": [
2181
+ {
2182
+ "expression": "workspaceId",
2183
+ "isExpression": false,
2184
+ "asc": true,
2185
+ "nulls": "last"
2186
+ }
2187
+ ],
2188
+ "isUnique": false,
2189
+ "concurrently": false,
2190
+ "method": "btree",
2191
+ "with": {}
2192
+ },
2193
+ "EveSandboxSession_dev": {
2194
+ "name": "EveSandboxSession_dev",
2195
+ "columns": [
2196
+ {
2197
+ "expression": "devRunId",
2198
+ "isExpression": false,
2199
+ "asc": true,
2200
+ "nulls": "last"
2201
+ }
2202
+ ],
2203
+ "isUnique": false,
2204
+ "concurrently": false,
2205
+ "method": "btree",
2206
+ "with": {}
2207
+ }
2208
+ },
2209
+ "foreignKeys": {
2210
+ "EveSandboxSession_conversation_owner_fk": {
2211
+ "name": "EveSandboxSession_conversation_owner_fk",
2212
+ "tableFrom": "EveSandboxSession",
2213
+ "tableTo": "EveConversation",
2214
+ "columnsFrom": [
2215
+ "conversationId",
2216
+ "ownerId"
2217
+ ],
2218
+ "columnsTo": [
2219
+ "id",
2220
+ "ownerId"
2221
+ ],
2222
+ "onDelete": "no action",
2223
+ "onUpdate": "no action"
2224
+ },
2225
+ "EveSandboxSession_workspace_owner_fk": {
2226
+ "name": "EveSandboxSession_workspace_owner_fk",
2227
+ "tableFrom": "EveSandboxSession",
2228
+ "tableTo": "EveWorkspace",
2229
+ "columnsFrom": [
2230
+ "workspaceId",
2231
+ "ownerId"
2232
+ ],
2233
+ "columnsTo": [
2234
+ "id",
2235
+ "ownerId"
2236
+ ],
2237
+ "onDelete": "no action",
2238
+ "onUpdate": "no action"
2239
+ }
2240
+ },
2241
+ "compositePrimaryKeys": {},
2242
+ "uniqueConstraints": {},
2243
+ "policies": {},
2244
+ "checkConstraints": {},
2245
+ "isRLSEnabled": false
2246
+ },
2247
+ "public.EveSearchText": {
2248
+ "name": "EveSearchText",
2249
+ "schema": "",
2250
+ "columns": {
2251
+ "conversationId": {
2252
+ "name": "conversationId",
2253
+ "type": "uuid",
2254
+ "primaryKey": false,
2255
+ "notNull": true
2256
+ },
2257
+ "key": {
2258
+ "name": "key",
2259
+ "type": "text",
2260
+ "primaryKey": false,
2261
+ "notNull": true
2262
+ },
2263
+ "ownerId": {
2264
+ "name": "ownerId",
2265
+ "type": "text",
2266
+ "primaryKey": false,
2267
+ "notNull": true
2268
+ },
2269
+ "text": {
2270
+ "name": "text",
2271
+ "type": "text",
2272
+ "primaryKey": false,
2273
+ "notNull": true
2274
+ }
2275
+ },
2276
+ "indexes": {
2277
+ "EveSearchText_owner": {
2278
+ "name": "EveSearchText_owner",
2279
+ "columns": [
2280
+ {
2281
+ "expression": "ownerId",
2282
+ "isExpression": false,
2283
+ "asc": true,
2284
+ "nulls": "last"
2285
+ }
2286
+ ],
2287
+ "isUnique": false,
2288
+ "concurrently": false,
2289
+ "method": "btree",
2290
+ "with": {}
2291
+ },
2292
+ "EveSearchText_content": {
2293
+ "name": "EveSearchText_content",
2294
+ "columns": [
2295
+ {
2296
+ "expression": "to_tsvector('simple', \"text\")",
2297
+ "asc": true,
2298
+ "isExpression": true,
2299
+ "nulls": "last"
2300
+ }
2301
+ ],
2302
+ "isUnique": false,
2303
+ "concurrently": false,
2304
+ "method": "gin",
2305
+ "with": {}
2306
+ }
2307
+ },
2308
+ "foreignKeys": {
2309
+ "EveSearchText_conversationId_ownerId_EveConversation_id_ownerId_fk": {
2310
+ "name": "EveSearchText_conversationId_ownerId_EveConversation_id_ownerId_fk",
2311
+ "tableFrom": "EveSearchText",
2312
+ "tableTo": "EveConversation",
2313
+ "columnsFrom": [
2314
+ "conversationId",
2315
+ "ownerId"
2316
+ ],
2317
+ "columnsTo": [
2318
+ "id",
2319
+ "ownerId"
2320
+ ],
2321
+ "onDelete": "cascade",
2322
+ "onUpdate": "no action"
2323
+ }
2324
+ },
2325
+ "compositePrimaryKeys": {
2326
+ "EveSearchText_conversationId_key_pk": {
2327
+ "name": "EveSearchText_conversationId_key_pk",
2328
+ "columns": [
2329
+ "conversationId",
2330
+ "key"
2331
+ ]
2332
+ }
2333
+ },
2334
+ "uniqueConstraints": {},
2335
+ "policies": {},
2336
+ "checkConstraints": {},
2337
+ "isRLSEnabled": false
2338
+ },
2339
+ "public.EveStoredFile": {
2340
+ "name": "EveStoredFile",
2341
+ "schema": "",
2342
+ "columns": {
2343
+ "createdAt": {
2344
+ "name": "createdAt",
2345
+ "type": "timestamp",
2346
+ "primaryKey": false,
2347
+ "notNull": true,
2348
+ "default": "now()"
2349
+ },
2350
+ "key": {
2351
+ "name": "key",
2352
+ "type": "text",
2353
+ "primaryKey": true,
2354
+ "notNull": true
2355
+ },
2356
+ "ownerId": {
2357
+ "name": "ownerId",
2358
+ "type": "text",
2359
+ "primaryKey": false,
2360
+ "notNull": true
2361
+ },
2362
+ "state": {
2363
+ "name": "state",
2364
+ "type": "text",
2365
+ "primaryKey": false,
2366
+ "notNull": true,
2367
+ "default": "'active'"
2368
+ },
2369
+ "storageKey": {
2370
+ "name": "storageKey",
2371
+ "type": "text",
2372
+ "primaryKey": false,
2373
+ "notNull": true,
2374
+ "default": "gen_random_uuid()::text"
2375
+ }
2376
+ },
2377
+ "indexes": {
2378
+ "EveStoredFile_owner": {
2379
+ "name": "EveStoredFile_owner",
2380
+ "columns": [
2381
+ {
2382
+ "expression": "ownerId",
2383
+ "isExpression": false,
2384
+ "asc": true,
2385
+ "nulls": "last"
2386
+ }
2387
+ ],
2388
+ "isUnique": false,
2389
+ "concurrently": false,
2390
+ "method": "btree",
2391
+ "with": {}
2392
+ }
2393
+ },
2394
+ "foreignKeys": {
2395
+ "EveStoredFile_ownerId_user_id_fk": {
2396
+ "name": "EveStoredFile_ownerId_user_id_fk",
2397
+ "tableFrom": "EveStoredFile",
2398
+ "tableTo": "user",
2399
+ "columnsFrom": [
2400
+ "ownerId"
2401
+ ],
2402
+ "columnsTo": [
2403
+ "id"
2404
+ ],
2405
+ "onDelete": "no action",
2406
+ "onUpdate": "no action"
2407
+ }
2408
+ },
2409
+ "compositePrimaryKeys": {},
2410
+ "uniqueConstraints": {
2411
+ "EveStoredFile_storageKey_unique": {
2412
+ "name": "EveStoredFile_storageKey_unique",
2413
+ "nullsNotDistinct": false,
2414
+ "columns": [
2415
+ "storageKey"
2416
+ ]
2417
+ },
2418
+ "EveStoredFile_key_owner": {
2419
+ "name": "EveStoredFile_key_owner",
2420
+ "nullsNotDistinct": false,
2421
+ "columns": [
2422
+ "key",
2423
+ "ownerId"
2424
+ ]
2425
+ }
2426
+ },
2427
+ "policies": {},
2428
+ "checkConstraints": {},
2429
+ "isRLSEnabled": false
2430
+ },
2431
+ "public.EveSubagentSession": {
2432
+ "name": "EveSubagentSession",
2433
+ "schema": "",
2434
+ "columns": {
2435
+ "conversationId": {
2436
+ "name": "conversationId",
2437
+ "type": "uuid",
2438
+ "primaryKey": false,
2439
+ "notNull": true
2440
+ },
2441
+ "ownerId": {
2442
+ "name": "ownerId",
2443
+ "type": "text",
2444
+ "primaryKey": false,
2445
+ "notNull": true
2446
+ },
2447
+ "parentSessionId": {
2448
+ "name": "parentSessionId",
2449
+ "type": "text",
2450
+ "primaryKey": false,
2451
+ "notNull": true
2452
+ },
2453
+ "rootTurnId": {
2454
+ "name": "rootTurnId",
2455
+ "type": "text",
2456
+ "primaryKey": false,
2457
+ "notNull": true
2458
+ },
2459
+ "sessionId": {
2460
+ "name": "sessionId",
2461
+ "type": "text",
2462
+ "primaryKey": true,
2463
+ "notNull": true
2464
+ },
2465
+ "usageStreamIndex": {
2466
+ "name": "usageStreamIndex",
2467
+ "type": "integer",
2468
+ "primaryKey": false,
2469
+ "notNull": true,
2470
+ "default": 0
2471
+ }
2472
+ },
2473
+ "indexes": {
2474
+ "EveSubagentSession_conversation": {
2475
+ "name": "EveSubagentSession_conversation",
2476
+ "columns": [
2477
+ {
2478
+ "expression": "conversationId",
2479
+ "isExpression": false,
2480
+ "asc": true,
2481
+ "nulls": "last"
2482
+ }
2483
+ ],
2484
+ "isUnique": false,
2485
+ "concurrently": false,
2486
+ "method": "btree",
2487
+ "with": {}
2488
+ }
2489
+ },
2490
+ "foreignKeys": {
2491
+ "EveSubagentSession_conversation_owner_fk": {
2492
+ "name": "EveSubagentSession_conversation_owner_fk",
2493
+ "tableFrom": "EveSubagentSession",
2494
+ "tableTo": "EveConversation",
2495
+ "columnsFrom": [
2496
+ "conversationId",
2497
+ "ownerId"
2498
+ ],
2499
+ "columnsTo": [
2500
+ "id",
2501
+ "ownerId"
2502
+ ],
2503
+ "onDelete": "cascade",
2504
+ "onUpdate": "no action"
2505
+ }
2506
+ },
2507
+ "compositePrimaryKeys": {},
2508
+ "uniqueConstraints": {},
2509
+ "policies": {},
2510
+ "checkConstraints": {
2511
+ "EveSubagentSession_not_self": {
2512
+ "name": "EveSubagentSession_not_self",
2513
+ "value": "\"EveSubagentSession\".\"sessionId\" <> \"EveSubagentSession\".\"parentSessionId\""
2514
+ },
2515
+ "EveSubagentSession_cursor": {
2516
+ "name": "EveSubagentSession_cursor",
2517
+ "value": "\"EveSubagentSession\".\"usageStreamIndex\" >= 0"
2518
+ }
2519
+ },
2520
+ "isRLSEnabled": false
2521
+ },
2522
+ "public.EveUsage": {
2523
+ "name": "EveUsage",
2524
+ "schema": "",
2525
+ "columns": {
2526
+ "chargedCents": {
2527
+ "name": "chargedCents",
2528
+ "type": "integer",
2529
+ "primaryKey": false,
2530
+ "notNull": true,
2531
+ "default": 0
2532
+ },
2533
+ "costUsd": {
2534
+ "name": "costUsd",
2535
+ "type": "numeric(24, 12)",
2536
+ "primaryKey": false,
2537
+ "notNull": false
2538
+ },
2539
+ "createdAt": {
2540
+ "name": "createdAt",
2541
+ "type": "timestamp",
2542
+ "primaryKey": false,
2543
+ "notNull": true,
2544
+ "default": "now()"
2545
+ },
2546
+ "eventId": {
2547
+ "name": "eventId",
2548
+ "type": "text",
2549
+ "primaryKey": true,
2550
+ "notNull": true
2551
+ },
2552
+ "generationId": {
2553
+ "name": "generationId",
2554
+ "type": "text",
2555
+ "primaryKey": false,
2556
+ "notNull": false
2557
+ },
2558
+ "modelAttempt": {
2559
+ "name": "modelAttempt",
2560
+ "type": "jsonb",
2561
+ "primaryKey": false,
2562
+ "notNull": false
2563
+ },
2564
+ "ownerId": {
2565
+ "name": "ownerId",
2566
+ "type": "text",
2567
+ "primaryKey": false,
2568
+ "notNull": true
2569
+ },
2570
+ "sessionId": {
2571
+ "name": "sessionId",
2572
+ "type": "text",
2573
+ "primaryKey": false,
2574
+ "notNull": true
2575
+ },
2576
+ "turnId": {
2577
+ "name": "turnId",
2578
+ "type": "text",
2579
+ "primaryKey": false,
2580
+ "notNull": true
2581
+ }
2582
+ },
2583
+ "indexes": {
2584
+ "EveUsage_session_turn": {
2585
+ "name": "EveUsage_session_turn",
2586
+ "columns": [
2587
+ {
2588
+ "expression": "sessionId",
2589
+ "isExpression": false,
2590
+ "asc": true,
2591
+ "nulls": "last"
2592
+ },
2593
+ {
2594
+ "expression": "turnId",
2595
+ "isExpression": false,
2596
+ "asc": true,
2597
+ "nulls": "last"
2598
+ }
2599
+ ],
2600
+ "isUnique": false,
2601
+ "concurrently": false,
2602
+ "method": "btree",
2603
+ "with": {}
2604
+ },
2605
+ "EveUsage_unpriced_owner": {
2606
+ "name": "EveUsage_unpriced_owner",
2607
+ "columns": [
2608
+ {
2609
+ "expression": "ownerId",
2610
+ "isExpression": false,
2611
+ "asc": true,
2612
+ "nulls": "last"
2613
+ }
2614
+ ],
2615
+ "isUnique": false,
2616
+ "where": "\"EveUsage\".\"costUsd\" is null",
2617
+ "concurrently": false,
2618
+ "method": "btree",
2619
+ "with": {}
2620
+ }
2621
+ },
2622
+ "foreignKeys": {
2623
+ "EveUsage_ownerId_user_id_fk": {
2624
+ "name": "EveUsage_ownerId_user_id_fk",
2625
+ "tableFrom": "EveUsage",
2626
+ "tableTo": "user",
2627
+ "columnsFrom": [
2628
+ "ownerId"
2629
+ ],
2630
+ "columnsTo": [
2631
+ "id"
2632
+ ],
2633
+ "onDelete": "no action",
2634
+ "onUpdate": "no action"
2635
+ }
2636
+ },
2637
+ "compositePrimaryKeys": {},
2638
+ "uniqueConstraints": {},
2639
+ "policies": {},
2640
+ "checkConstraints": {},
2641
+ "isRLSEnabled": false
2642
+ },
2643
+ "public.EveVote": {
2644
+ "name": "EveVote",
2645
+ "schema": "",
2646
+ "columns": {
2647
+ "conversationId": {
2648
+ "name": "conversationId",
2649
+ "type": "uuid",
2650
+ "primaryKey": false,
2651
+ "notNull": true
2652
+ },
2653
+ "isUpvoted": {
2654
+ "name": "isUpvoted",
2655
+ "type": "boolean",
2656
+ "primaryKey": false,
2657
+ "notNull": true
2658
+ },
2659
+ "messageId": {
2660
+ "name": "messageId",
2661
+ "type": "text",
2662
+ "primaryKey": false,
2663
+ "notNull": true
2664
+ }
2665
+ },
2666
+ "indexes": {},
2667
+ "foreignKeys": {
2668
+ "EveVote_conversationId_EveConversation_id_fk": {
2669
+ "name": "EveVote_conversationId_EveConversation_id_fk",
2670
+ "tableFrom": "EveVote",
2671
+ "tableTo": "EveConversation",
2672
+ "columnsFrom": [
2673
+ "conversationId"
2674
+ ],
2675
+ "columnsTo": [
2676
+ "id"
2677
+ ],
2678
+ "onDelete": "cascade",
2679
+ "onUpdate": "no action"
2680
+ }
2681
+ },
2682
+ "compositePrimaryKeys": {
2683
+ "EveVote_conversationId_messageId_pk": {
2684
+ "name": "EveVote_conversationId_messageId_pk",
2685
+ "columns": [
2686
+ "conversationId",
2687
+ "messageId"
2688
+ ]
2689
+ }
2690
+ },
2691
+ "uniqueConstraints": {},
2692
+ "policies": {},
2693
+ "checkConstraints": {},
2694
+ "isRLSEnabled": false
2695
+ },
2696
+ "public.EveWorkflowBackend": {
2697
+ "name": "EveWorkflowBackend",
2698
+ "schema": "",
2699
+ "columns": {
2700
+ "id": {
2701
+ "name": "id",
2702
+ "type": "integer",
2703
+ "primaryKey": true,
2704
+ "notNull": true,
2705
+ "default": 1
2706
+ },
2707
+ "world": {
2708
+ "name": "world",
2709
+ "type": "text",
2710
+ "primaryKey": false,
2711
+ "notNull": true
2712
+ }
2713
+ },
2714
+ "indexes": {},
2715
+ "foreignKeys": {},
2716
+ "compositePrimaryKeys": {},
2717
+ "uniqueConstraints": {},
2718
+ "policies": {},
2719
+ "checkConstraints": {
2720
+ "EveWorkflowBackend_singleton": {
2721
+ "name": "EveWorkflowBackend_singleton",
2722
+ "value": "\"EveWorkflowBackend\".\"id\" = 1"
2723
+ }
2724
+ },
2725
+ "isRLSEnabled": false
2726
+ },
2727
+ "public.EveWorkspace": {
2728
+ "name": "EveWorkspace",
2729
+ "schema": "",
2730
+ "columns": {
2731
+ "id": {
2732
+ "name": "id",
2733
+ "type": "uuid",
2734
+ "primaryKey": true,
2735
+ "notNull": true,
2736
+ "default": "gen_random_uuid()"
2737
+ },
2738
+ "ownerId": {
2739
+ "name": "ownerId",
2740
+ "type": "text",
2741
+ "primaryKey": false,
2742
+ "notNull": true
2743
+ },
2744
+ "state": {
2745
+ "name": "state",
2746
+ "type": "text",
2747
+ "primaryKey": false,
2748
+ "notNull": true,
2749
+ "default": "'active'"
2750
+ },
2751
+ "activeOperationId": {
2752
+ "name": "activeOperationId",
2753
+ "type": "uuid",
2754
+ "primaryKey": false,
2755
+ "notNull": false
2756
+ }
2757
+ },
2758
+ "indexes": {},
2759
+ "foreignKeys": {
2760
+ "EveWorkspace_ownerId_user_id_fk": {
2761
+ "name": "EveWorkspace_ownerId_user_id_fk",
2762
+ "tableFrom": "EveWorkspace",
2763
+ "tableTo": "user",
2764
+ "columnsFrom": [
2765
+ "ownerId"
2766
+ ],
2767
+ "columnsTo": [
2768
+ "id"
2769
+ ],
2770
+ "onDelete": "cascade",
2771
+ "onUpdate": "no action"
2772
+ }
2773
+ },
2774
+ "compositePrimaryKeys": {},
2775
+ "uniqueConstraints": {
2776
+ "EveWorkspace_id_owner": {
2777
+ "name": "EveWorkspace_id_owner",
2778
+ "nullsNotDistinct": false,
2779
+ "columns": [
2780
+ "id",
2781
+ "ownerId"
2782
+ ]
2783
+ }
2784
+ },
2785
+ "policies": {},
2786
+ "checkConstraints": {},
2787
+ "isRLSEnabled": false
2788
+ },
2789
+ "public.EveWorkspaceAttachment": {
2790
+ "name": "EveWorkspaceAttachment",
2791
+ "schema": "",
2792
+ "columns": {
2793
+ "workspaceId": {
2794
+ "name": "workspaceId",
2795
+ "type": "uuid",
2796
+ "primaryKey": false,
2797
+ "notNull": true
2798
+ },
2799
+ "fileKey": {
2800
+ "name": "fileKey",
2801
+ "type": "text",
2802
+ "primaryKey": false,
2803
+ "notNull": true
2804
+ },
2805
+ "ownerId": {
2806
+ "name": "ownerId",
2807
+ "type": "text",
2808
+ "primaryKey": false,
2809
+ "notNull": true
2810
+ },
2811
+ "sha256": {
2812
+ "name": "sha256",
2813
+ "type": "text",
2814
+ "primaryKey": false,
2815
+ "notNull": true
2816
+ },
2817
+ "paths": {
2818
+ "name": "paths",
2819
+ "type": "text[]",
2820
+ "primaryKey": false,
2821
+ "notNull": true,
2822
+ "default": "'{}'::text[]"
2823
+ }
2824
+ },
2825
+ "indexes": {
2826
+ "EveWorkspaceAttachment_file": {
2827
+ "name": "EveWorkspaceAttachment_file",
2828
+ "columns": [
2829
+ {
2830
+ "expression": "fileKey",
2831
+ "isExpression": false,
2832
+ "asc": true,
2833
+ "nulls": "last"
2834
+ }
2835
+ ],
2836
+ "isUnique": false,
2837
+ "concurrently": false,
2838
+ "method": "btree",
2839
+ "with": {}
2840
+ }
2841
+ },
2842
+ "foreignKeys": {
2843
+ "EveWorkspaceAttachment_workspace_owner_fk": {
2844
+ "name": "EveWorkspaceAttachment_workspace_owner_fk",
2845
+ "tableFrom": "EveWorkspaceAttachment",
2846
+ "tableTo": "EveWorkspace",
2847
+ "columnsFrom": [
2848
+ "workspaceId",
2849
+ "ownerId"
2850
+ ],
2851
+ "columnsTo": [
2852
+ "id",
2853
+ "ownerId"
2854
+ ],
2855
+ "onDelete": "no action",
2856
+ "onUpdate": "no action"
2857
+ },
2858
+ "EveWorkspaceAttachment_file_owner_fk": {
2859
+ "name": "EveWorkspaceAttachment_file_owner_fk",
2860
+ "tableFrom": "EveWorkspaceAttachment",
2861
+ "tableTo": "EveStoredFile",
2862
+ "columnsFrom": [
2863
+ "fileKey",
2864
+ "ownerId"
2865
+ ],
2866
+ "columnsTo": [
2867
+ "key",
2868
+ "ownerId"
2869
+ ],
2870
+ "onDelete": "no action",
2871
+ "onUpdate": "no action"
2872
+ }
2873
+ },
2874
+ "compositePrimaryKeys": {
2875
+ "EveWorkspaceAttachment_workspaceId_fileKey_pk": {
2876
+ "name": "EveWorkspaceAttachment_workspaceId_fileKey_pk",
2877
+ "columns": [
2878
+ "workspaceId",
2879
+ "fileKey"
2880
+ ]
2881
+ }
2882
+ },
2883
+ "uniqueConstraints": {},
2884
+ "policies": {},
2885
+ "checkConstraints": {},
2886
+ "isRLSEnabled": false
2887
+ },
2888
+ "public.GuestRuntimeRate": {
2889
+ "name": "GuestRuntimeRate",
2890
+ "schema": "",
2891
+ "columns": {
2892
+ "ipHash": {
2893
+ "name": "ipHash",
2894
+ "type": "text",
2895
+ "primaryKey": false,
2896
+ "notNull": true
2897
+ },
2898
+ "kind": {
2899
+ "name": "kind",
2900
+ "type": "text",
2901
+ "primaryKey": false,
2902
+ "notNull": true
2903
+ },
2904
+ "startsAt": {
2905
+ "name": "startsAt",
2906
+ "type": "timestamp with time zone",
2907
+ "primaryKey": false,
2908
+ "notNull": true
2909
+ },
2910
+ "requests": {
2911
+ "name": "requests",
2912
+ "type": "integer",
2913
+ "primaryKey": false,
2914
+ "notNull": true,
2915
+ "default": 0
2916
+ }
2917
+ },
2918
+ "indexes": {},
2919
+ "foreignKeys": {},
2920
+ "compositePrimaryKeys": {
2921
+ "GuestRuntimeRate_ipHash_kind_startsAt_pk": {
2922
+ "name": "GuestRuntimeRate_ipHash_kind_startsAt_pk",
2923
+ "columns": [
2924
+ "ipHash",
2925
+ "kind",
2926
+ "startsAt"
2927
+ ]
2928
+ }
2929
+ },
2930
+ "uniqueConstraints": {},
2931
+ "policies": {},
2932
+ "checkConstraints": {
2933
+ "GuestRuntimeRate_requests": {
2934
+ "name": "GuestRuntimeRate_requests",
2935
+ "value": "\"GuestRuntimeRate\".\"requests\" >= 0"
2936
+ },
2937
+ "GuestRuntimeRate_kind": {
2938
+ "name": "GuestRuntimeRate_kind",
2939
+ "value": "\"GuestRuntimeRate\".\"kind\" in ('session', 'message')"
2940
+ }
2941
+ },
2942
+ "isRLSEnabled": false
2943
+ },
2944
+ "public.GuestRuntimeSession": {
2945
+ "name": "GuestRuntimeSession",
2946
+ "schema": "",
2947
+ "columns": {
2948
+ "id": {
2949
+ "name": "id",
2950
+ "type": "uuid",
2951
+ "primaryKey": true,
2952
+ "notNull": true,
2953
+ "default": "gen_random_uuid()"
2954
+ },
2955
+ "ownerId": {
2956
+ "name": "ownerId",
2957
+ "type": "text",
2958
+ "primaryKey": false,
2959
+ "notNull": true
2960
+ },
2961
+ "sessionId": {
2962
+ "name": "sessionId",
2963
+ "type": "text",
2964
+ "primaryKey": false,
2965
+ "notNull": false
2966
+ },
2967
+ "modelId": {
2968
+ "name": "modelId",
2969
+ "type": "text",
2970
+ "primaryKey": false,
2971
+ "notNull": true
2972
+ },
2973
+ "ipHash": {
2974
+ "name": "ipHash",
2975
+ "type": "text",
2976
+ "primaryKey": false,
2977
+ "notNull": true
2978
+ },
2979
+ "policyVersion": {
2980
+ "name": "policyVersion",
2981
+ "type": "integer",
2982
+ "primaryKey": false,
2983
+ "notNull": true,
2984
+ "default": 1
2985
+ },
2986
+ "state": {
2987
+ "name": "state",
2988
+ "type": "text",
2989
+ "primaryKey": false,
2990
+ "notNull": true,
2991
+ "default": "'active'"
2992
+ },
2993
+ "createdAt": {
2994
+ "name": "createdAt",
2995
+ "type": "timestamp with time zone",
2996
+ "primaryKey": false,
2997
+ "notNull": true,
2998
+ "default": "now()"
2999
+ },
3000
+ "expiresAt": {
3001
+ "name": "expiresAt",
3002
+ "type": "timestamp with time zone",
3003
+ "primaryKey": false,
3004
+ "notNull": true,
3005
+ "default": "now() + interval '24 hours'"
3006
+ },
3007
+ "credentialExpiresAt": {
3008
+ "name": "credentialExpiresAt",
3009
+ "type": "timestamp with time zone",
3010
+ "primaryKey": false,
3011
+ "notNull": true
3012
+ },
3013
+ "messageLimit": {
3014
+ "name": "messageLimit",
3015
+ "type": "integer",
3016
+ "primaryKey": false,
3017
+ "notNull": true
3018
+ },
3019
+ "messagesUsed": {
3020
+ "name": "messagesUsed",
3021
+ "type": "integer",
3022
+ "primaryKey": false,
3023
+ "notNull": true,
3024
+ "default": 0
3025
+ },
3026
+ "inputCharactersUsed": {
3027
+ "name": "inputCharactersUsed",
3028
+ "type": "integer",
3029
+ "primaryKey": false,
3030
+ "notNull": true,
3031
+ "default": 0
3032
+ },
3033
+ "cleanupAttemptedAt": {
3034
+ "name": "cleanupAttemptedAt",
3035
+ "type": "timestamp with time zone",
3036
+ "primaryKey": false,
3037
+ "notNull": false
3038
+ },
3039
+ "deletedAt": {
3040
+ "name": "deletedAt",
3041
+ "type": "timestamp with time zone",
3042
+ "primaryKey": false,
3043
+ "notNull": false
3044
+ }
3045
+ },
3046
+ "indexes": {
3047
+ "GuestRuntimeSession_cleanup_idx": {
3048
+ "name": "GuestRuntimeSession_cleanup_idx",
3049
+ "columns": [
3050
+ {
3051
+ "expression": "state",
3052
+ "isExpression": false,
3053
+ "asc": true,
3054
+ "nulls": "last"
3055
+ },
3056
+ {
3057
+ "expression": "expiresAt",
3058
+ "isExpression": false,
3059
+ "asc": true,
3060
+ "nulls": "last"
3061
+ }
3062
+ ],
3063
+ "isUnique": false,
3064
+ "concurrently": false,
3065
+ "method": "btree",
3066
+ "with": {}
3067
+ }
3068
+ },
3069
+ "foreignKeys": {},
3070
+ "compositePrimaryKeys": {},
3071
+ "uniqueConstraints": {
3072
+ "GuestRuntimeSession_ownerId_unique": {
3073
+ "name": "GuestRuntimeSession_ownerId_unique",
3074
+ "nullsNotDistinct": false,
3075
+ "columns": [
3076
+ "ownerId"
3077
+ ]
3078
+ },
3079
+ "GuestRuntimeSession_sessionId_unique": {
3080
+ "name": "GuestRuntimeSession_sessionId_unique",
3081
+ "nullsNotDistinct": false,
3082
+ "columns": [
3083
+ "sessionId"
3084
+ ]
3085
+ }
3086
+ },
3087
+ "policies": {},
3088
+ "checkConstraints": {
3089
+ "GuestRuntimeSession_state": {
3090
+ "name": "GuestRuntimeSession_state",
3091
+ "value": "\"GuestRuntimeSession\".\"state\" in ('active', 'deleting', 'deleted')"
3092
+ },
3093
+ "GuestRuntimeSession_balance": {
3094
+ "name": "GuestRuntimeSession_balance",
3095
+ "value": "\"GuestRuntimeSession\".\"messagesUsed\" >= 0 and \"GuestRuntimeSession\".\"messagesUsed\" <= \"GuestRuntimeSession\".\"messageLimit\""
3096
+ },
3097
+ "GuestRuntimeSession_ip_hash": {
3098
+ "name": "GuestRuntimeSession_ip_hash",
3099
+ "value": "\"GuestRuntimeSession\".\"ipHash\" ~ '^[0-9a-f]{64}$'"
3100
+ },
3101
+ "GuestRuntimeSession_expiry": {
3102
+ "name": "GuestRuntimeSession_expiry",
3103
+ "value": "\"GuestRuntimeSession\".\"expiresAt\" = \"GuestRuntimeSession\".\"createdAt\" + interval '24 hours'"
3104
+ }
3105
+ },
3106
+ "isRLSEnabled": false
3107
+ },
3108
+ "public.session": {
3109
+ "name": "session",
3110
+ "schema": "",
3111
+ "columns": {
3112
+ "created_at": {
3113
+ "name": "created_at",
3114
+ "type": "timestamp",
3115
+ "primaryKey": false,
3116
+ "notNull": true,
3117
+ "default": "now()"
3118
+ },
3119
+ "expires_at": {
3120
+ "name": "expires_at",
3121
+ "type": "timestamp",
3122
+ "primaryKey": false,
3123
+ "notNull": true
3124
+ },
3125
+ "id": {
3126
+ "name": "id",
3127
+ "type": "text",
3128
+ "primaryKey": true,
3129
+ "notNull": true
3130
+ },
3131
+ "ip_address": {
3132
+ "name": "ip_address",
3133
+ "type": "text",
3134
+ "primaryKey": false,
3135
+ "notNull": false
3136
+ },
3137
+ "token": {
3138
+ "name": "token",
3139
+ "type": "text",
3140
+ "primaryKey": false,
3141
+ "notNull": true
3142
+ },
3143
+ "updated_at": {
3144
+ "name": "updated_at",
3145
+ "type": "timestamp",
3146
+ "primaryKey": false,
3147
+ "notNull": true
3148
+ },
3149
+ "user_agent": {
3150
+ "name": "user_agent",
3151
+ "type": "text",
3152
+ "primaryKey": false,
3153
+ "notNull": false
3154
+ },
3155
+ "user_id": {
3156
+ "name": "user_id",
3157
+ "type": "text",
3158
+ "primaryKey": false,
3159
+ "notNull": true
3160
+ }
3161
+ },
3162
+ "indexes": {},
3163
+ "foreignKeys": {
3164
+ "session_user_id_user_id_fk": {
3165
+ "name": "session_user_id_user_id_fk",
3166
+ "tableFrom": "session",
3167
+ "tableTo": "user",
3168
+ "columnsFrom": [
3169
+ "user_id"
3170
+ ],
3171
+ "columnsTo": [
3172
+ "id"
3173
+ ],
3174
+ "onDelete": "cascade",
3175
+ "onUpdate": "no action"
3176
+ }
3177
+ },
3178
+ "compositePrimaryKeys": {},
3179
+ "uniqueConstraints": {
3180
+ "session_token_unique": {
3181
+ "name": "session_token_unique",
3182
+ "nullsNotDistinct": false,
3183
+ "columns": [
3184
+ "token"
3185
+ ]
3186
+ }
3187
+ },
3188
+ "policies": {},
3189
+ "checkConstraints": {},
3190
+ "isRLSEnabled": false
3191
+ },
3192
+ "public.user": {
3193
+ "name": "user",
3194
+ "schema": "",
3195
+ "columns": {
3196
+ "created_at": {
3197
+ "name": "created_at",
3198
+ "type": "timestamp",
3199
+ "primaryKey": false,
3200
+ "notNull": true,
3201
+ "default": "now()"
3202
+ },
3203
+ "email": {
3204
+ "name": "email",
3205
+ "type": "text",
3206
+ "primaryKey": false,
3207
+ "notNull": true
3208
+ },
3209
+ "email_verified": {
3210
+ "name": "email_verified",
3211
+ "type": "boolean",
3212
+ "primaryKey": false,
3213
+ "notNull": true,
3214
+ "default": false
3215
+ },
3216
+ "eve_usage_reconciled_at": {
3217
+ "name": "eve_usage_reconciled_at",
3218
+ "type": "timestamp",
3219
+ "primaryKey": false,
3220
+ "notNull": false
3221
+ },
3222
+ "id": {
3223
+ "name": "id",
3224
+ "type": "text",
3225
+ "primaryKey": true,
3226
+ "notNull": true
3227
+ },
3228
+ "image": {
3229
+ "name": "image",
3230
+ "type": "text",
3231
+ "primaryKey": false,
3232
+ "notNull": false
3233
+ },
3234
+ "name": {
3235
+ "name": "name",
3236
+ "type": "text",
3237
+ "primaryKey": false,
3238
+ "notNull": true
3239
+ },
3240
+ "updated_at": {
3241
+ "name": "updated_at",
3242
+ "type": "timestamp",
3243
+ "primaryKey": false,
3244
+ "notNull": true,
3245
+ "default": "now()"
3246
+ }
3247
+ },
3248
+ "indexes": {},
3249
+ "foreignKeys": {},
3250
+ "compositePrimaryKeys": {},
3251
+ "uniqueConstraints": {
3252
+ "user_email_unique": {
3253
+ "name": "user_email_unique",
3254
+ "nullsNotDistinct": false,
3255
+ "columns": [
3256
+ "email"
3257
+ ]
3258
+ }
3259
+ },
3260
+ "policies": {},
3261
+ "checkConstraints": {},
3262
+ "isRLSEnabled": false
3263
+ },
3264
+ "public.UserCredit": {
3265
+ "name": "UserCredit",
3266
+ "schema": "",
3267
+ "columns": {
3268
+ "credits": {
3269
+ "name": "credits",
3270
+ "type": "integer",
3271
+ "primaryKey": false,
3272
+ "notNull": true,
3273
+ "default": 50
3274
+ },
3275
+ "userId": {
3276
+ "name": "userId",
3277
+ "type": "text",
3278
+ "primaryKey": true,
3279
+ "notNull": true
3280
+ }
3281
+ },
3282
+ "indexes": {},
3283
+ "foreignKeys": {
3284
+ "UserCredit_userId_user_id_fk": {
3285
+ "name": "UserCredit_userId_user_id_fk",
3286
+ "tableFrom": "UserCredit",
3287
+ "tableTo": "user",
3288
+ "columnsFrom": [
3289
+ "userId"
3290
+ ],
3291
+ "columnsTo": [
3292
+ "id"
3293
+ ],
3294
+ "onDelete": "cascade",
3295
+ "onUpdate": "no action"
3296
+ }
3297
+ },
3298
+ "compositePrimaryKeys": {},
3299
+ "uniqueConstraints": {},
3300
+ "policies": {},
3301
+ "checkConstraints": {},
3302
+ "isRLSEnabled": false
3303
+ },
3304
+ "public.UserModelPreference": {
3305
+ "name": "UserModelPreference",
3306
+ "schema": "",
3307
+ "columns": {
3308
+ "createdAt": {
3309
+ "name": "createdAt",
3310
+ "type": "timestamp",
3311
+ "primaryKey": false,
3312
+ "notNull": true,
3313
+ "default": "now()"
3314
+ },
3315
+ "enabled": {
3316
+ "name": "enabled",
3317
+ "type": "boolean",
3318
+ "primaryKey": false,
3319
+ "notNull": true
3320
+ },
3321
+ "modelId": {
3322
+ "name": "modelId",
3323
+ "type": "varchar(256)",
3324
+ "primaryKey": false,
3325
+ "notNull": true
3326
+ },
3327
+ "updatedAt": {
3328
+ "name": "updatedAt",
3329
+ "type": "timestamp",
3330
+ "primaryKey": false,
3331
+ "notNull": true,
3332
+ "default": "now()"
3333
+ },
3334
+ "userId": {
3335
+ "name": "userId",
3336
+ "type": "text",
3337
+ "primaryKey": false,
3338
+ "notNull": true
3339
+ }
3340
+ },
3341
+ "indexes": {
3342
+ "UserModelPreference_user_id_idx": {
3343
+ "name": "UserModelPreference_user_id_idx",
3344
+ "columns": [
3345
+ {
3346
+ "expression": "userId",
3347
+ "isExpression": false,
3348
+ "asc": true,
3349
+ "nulls": "last"
3350
+ }
3351
+ ],
3352
+ "isUnique": false,
3353
+ "concurrently": false,
3354
+ "method": "btree",
3355
+ "with": {}
3356
+ }
3357
+ },
3358
+ "foreignKeys": {
3359
+ "UserModelPreference_userId_user_id_fk": {
3360
+ "name": "UserModelPreference_userId_user_id_fk",
3361
+ "tableFrom": "UserModelPreference",
3362
+ "tableTo": "user",
3363
+ "columnsFrom": [
3364
+ "userId"
3365
+ ],
3366
+ "columnsTo": [
3367
+ "id"
3368
+ ],
3369
+ "onDelete": "cascade",
3370
+ "onUpdate": "no action"
3371
+ }
3372
+ },
3373
+ "compositePrimaryKeys": {
3374
+ "UserModelPreference_userId_modelId_pk": {
3375
+ "name": "UserModelPreference_userId_modelId_pk",
3376
+ "columns": [
3377
+ "userId",
3378
+ "modelId"
3379
+ ]
3380
+ }
3381
+ },
3382
+ "uniqueConstraints": {},
3383
+ "policies": {},
3384
+ "checkConstraints": {},
3385
+ "isRLSEnabled": false
3386
+ },
3387
+ "public.verification": {
3388
+ "name": "verification",
3389
+ "schema": "",
3390
+ "columns": {
3391
+ "created_at": {
3392
+ "name": "created_at",
3393
+ "type": "timestamp",
3394
+ "primaryKey": false,
3395
+ "notNull": true,
3396
+ "default": "now()"
3397
+ },
3398
+ "expires_at": {
3399
+ "name": "expires_at",
3400
+ "type": "timestamp",
3401
+ "primaryKey": false,
3402
+ "notNull": true
3403
+ },
3404
+ "id": {
3405
+ "name": "id",
3406
+ "type": "text",
3407
+ "primaryKey": true,
3408
+ "notNull": true
3409
+ },
3410
+ "identifier": {
3411
+ "name": "identifier",
3412
+ "type": "text",
3413
+ "primaryKey": false,
3414
+ "notNull": true
3415
+ },
3416
+ "updated_at": {
3417
+ "name": "updated_at",
3418
+ "type": "timestamp",
3419
+ "primaryKey": false,
3420
+ "notNull": true,
3421
+ "default": "now()"
3422
+ },
3423
+ "value": {
3424
+ "name": "value",
3425
+ "type": "text",
3426
+ "primaryKey": false,
3427
+ "notNull": true
3428
+ }
3429
+ },
3430
+ "indexes": {},
3431
+ "foreignKeys": {},
3432
+ "compositePrimaryKeys": {},
3433
+ "uniqueConstraints": {},
3434
+ "policies": {},
3435
+ "checkConstraints": {},
3436
+ "isRLSEnabled": false
3437
+ },
3438
+ "public.McpConnector": {
3439
+ "name": "McpConnector",
3440
+ "schema": "",
3441
+ "columns": {
3442
+ "createdAt": {
3443
+ "name": "createdAt",
3444
+ "type": "timestamp",
3445
+ "primaryKey": false,
3446
+ "notNull": true,
3447
+ "default": "now()"
3448
+ },
3449
+ "enabled": {
3450
+ "name": "enabled",
3451
+ "type": "boolean",
3452
+ "primaryKey": false,
3453
+ "notNull": true,
3454
+ "default": true
3455
+ },
3456
+ "id": {
3457
+ "name": "id",
3458
+ "type": "uuid",
3459
+ "primaryKey": true,
3460
+ "notNull": true,
3461
+ "default": "gen_random_uuid()"
3462
+ },
3463
+ "name": {
3464
+ "name": "name",
3465
+ "type": "varchar(256)",
3466
+ "primaryKey": false,
3467
+ "notNull": true
3468
+ },
3469
+ "nameId": {
3470
+ "name": "nameId",
3471
+ "type": "varchar(256)",
3472
+ "primaryKey": false,
3473
+ "notNull": true
3474
+ },
3475
+ "oauthClientId": {
3476
+ "name": "oauthClientId",
3477
+ "type": "text",
3478
+ "primaryKey": false,
3479
+ "notNull": false
3480
+ },
3481
+ "oauthClientSecret": {
3482
+ "name": "oauthClientSecret",
3483
+ "type": "text",
3484
+ "primaryKey": false,
3485
+ "notNull": false
3486
+ },
3487
+ "requireApproval": {
3488
+ "name": "requireApproval",
3489
+ "type": "boolean",
3490
+ "primaryKey": false,
3491
+ "notNull": true,
3492
+ "default": false
3493
+ },
3494
+ "type": {
3495
+ "name": "type",
3496
+ "type": "varchar",
3497
+ "primaryKey": false,
3498
+ "notNull": true,
3499
+ "default": "'http'"
3500
+ },
3501
+ "updatedAt": {
3502
+ "name": "updatedAt",
3503
+ "type": "timestamp",
3504
+ "primaryKey": false,
3505
+ "notNull": true,
3506
+ "default": "now()"
3507
+ },
3508
+ "url": {
3509
+ "name": "url",
3510
+ "type": "text",
3511
+ "primaryKey": false,
3512
+ "notNull": true
3513
+ },
3514
+ "userId": {
3515
+ "name": "userId",
3516
+ "type": "text",
3517
+ "primaryKey": false,
3518
+ "notNull": false
3519
+ }
3520
+ },
3521
+ "indexes": {
3522
+ "McpConnector_user_id_idx": {
3523
+ "name": "McpConnector_user_id_idx",
3524
+ "columns": [
3525
+ {
3526
+ "expression": "userId",
3527
+ "isExpression": false,
3528
+ "asc": true,
3529
+ "nulls": "last"
3530
+ }
3531
+ ],
3532
+ "isUnique": false,
3533
+ "concurrently": false,
3534
+ "method": "btree",
3535
+ "with": {}
3536
+ },
3537
+ "McpConnector_user_name_id_idx": {
3538
+ "name": "McpConnector_user_name_id_idx",
3539
+ "columns": [
3540
+ {
3541
+ "expression": "userId",
3542
+ "isExpression": false,
3543
+ "asc": true,
3544
+ "nulls": "last"
3545
+ },
3546
+ {
3547
+ "expression": "nameId",
3548
+ "isExpression": false,
3549
+ "asc": true,
3550
+ "nulls": "last"
3551
+ }
3552
+ ],
3553
+ "isUnique": false,
3554
+ "concurrently": false,
3555
+ "method": "btree",
3556
+ "with": {}
3557
+ },
3558
+ "McpConnector_user_name_id_unique": {
3559
+ "name": "McpConnector_user_name_id_unique",
3560
+ "columns": [
3561
+ {
3562
+ "expression": "userId",
3563
+ "isExpression": false,
3564
+ "asc": true,
3565
+ "nulls": "last"
3566
+ },
3567
+ {
3568
+ "expression": "nameId",
3569
+ "isExpression": false,
3570
+ "asc": true,
3571
+ "nulls": "last"
3572
+ }
3573
+ ],
3574
+ "isUnique": true,
3575
+ "concurrently": false,
3576
+ "method": "btree",
3577
+ "with": {}
3578
+ }
3579
+ },
3580
+ "foreignKeys": {
3581
+ "McpConnector_userId_user_id_fk": {
3582
+ "name": "McpConnector_userId_user_id_fk",
3583
+ "tableFrom": "McpConnector",
3584
+ "tableTo": "user",
3585
+ "columnsFrom": [
3586
+ "userId"
3587
+ ],
3588
+ "columnsTo": [
3589
+ "id"
3590
+ ],
3591
+ "onDelete": "cascade",
3592
+ "onUpdate": "no action"
3593
+ }
3594
+ },
3595
+ "compositePrimaryKeys": {},
3596
+ "uniqueConstraints": {},
3597
+ "policies": {},
3598
+ "checkConstraints": {},
3599
+ "isRLSEnabled": false
3600
+ },
3601
+ "public.McpOAuthSession": {
3602
+ "name": "McpOAuthSession",
3603
+ "schema": "",
3604
+ "columns": {
3605
+ "clientInfo": {
3606
+ "name": "clientInfo",
3607
+ "type": "text",
3608
+ "primaryKey": false,
3609
+ "notNull": false
3610
+ },
3611
+ "codeVerifier": {
3612
+ "name": "codeVerifier",
3613
+ "type": "text",
3614
+ "primaryKey": false,
3615
+ "notNull": false
3616
+ },
3617
+ "createdAt": {
3618
+ "name": "createdAt",
3619
+ "type": "timestamp",
3620
+ "primaryKey": false,
3621
+ "notNull": true,
3622
+ "default": "now()"
3623
+ },
3624
+ "id": {
3625
+ "name": "id",
3626
+ "type": "uuid",
3627
+ "primaryKey": true,
3628
+ "notNull": true,
3629
+ "default": "gen_random_uuid()"
3630
+ },
3631
+ "mcpConnectorId": {
3632
+ "name": "mcpConnectorId",
3633
+ "type": "uuid",
3634
+ "primaryKey": false,
3635
+ "notNull": true
3636
+ },
3637
+ "serverUrl": {
3638
+ "name": "serverUrl",
3639
+ "type": "text",
3640
+ "primaryKey": false,
3641
+ "notNull": true
3642
+ },
3643
+ "state": {
3644
+ "name": "state",
3645
+ "type": "text",
3646
+ "primaryKey": false,
3647
+ "notNull": false
3648
+ },
3649
+ "tokens": {
3650
+ "name": "tokens",
3651
+ "type": "text",
3652
+ "primaryKey": false,
3653
+ "notNull": false
3654
+ },
3655
+ "updatedAt": {
3656
+ "name": "updatedAt",
3657
+ "type": "timestamp",
3658
+ "primaryKey": false,
3659
+ "notNull": true,
3660
+ "default": "now()"
3661
+ }
3662
+ },
3663
+ "indexes": {
3664
+ "McpOAuthSession_connector_idx": {
3665
+ "name": "McpOAuthSession_connector_idx",
3666
+ "columns": [
3667
+ {
3668
+ "expression": "mcpConnectorId",
3669
+ "isExpression": false,
3670
+ "asc": true,
3671
+ "nulls": "last"
3672
+ }
3673
+ ],
3674
+ "isUnique": false,
3675
+ "concurrently": false,
3676
+ "method": "btree",
3677
+ "with": {}
3678
+ },
3679
+ "McpOAuthSession_state_idx": {
3680
+ "name": "McpOAuthSession_state_idx",
3681
+ "columns": [
3682
+ {
3683
+ "expression": "state",
3684
+ "isExpression": false,
3685
+ "asc": true,
3686
+ "nulls": "last"
3687
+ }
3688
+ ],
3689
+ "isUnique": false,
3690
+ "concurrently": false,
3691
+ "method": "btree",
3692
+ "with": {}
3693
+ }
3694
+ },
3695
+ "foreignKeys": {
3696
+ "McpOAuthSession_mcpConnectorId_McpConnector_id_fk": {
3697
+ "name": "McpOAuthSession_mcpConnectorId_McpConnector_id_fk",
3698
+ "tableFrom": "McpOAuthSession",
3699
+ "tableTo": "McpConnector",
3700
+ "columnsFrom": [
3701
+ "mcpConnectorId"
3702
+ ],
3703
+ "columnsTo": [
3704
+ "id"
3705
+ ],
3706
+ "onDelete": "cascade",
3707
+ "onUpdate": "no action"
3708
+ }
3709
+ },
3710
+ "compositePrimaryKeys": {},
3711
+ "uniqueConstraints": {
3712
+ "McpOAuthSession_state_unique": {
3713
+ "name": "McpOAuthSession_state_unique",
3714
+ "nullsNotDistinct": false,
3715
+ "columns": [
3716
+ "state"
3717
+ ]
3718
+ }
3719
+ },
3720
+ "policies": {},
3721
+ "checkConstraints": {},
3722
+ "isRLSEnabled": false
3723
+ },
3724
+ "public.EveChatProject": {
3725
+ "name": "EveChatProject",
3726
+ "schema": "",
3727
+ "columns": {
3728
+ "chatId": {
3729
+ "name": "chatId",
3730
+ "type": "uuid",
3731
+ "primaryKey": true,
3732
+ "notNull": true
3733
+ },
3734
+ "ownerId": {
3735
+ "name": "ownerId",
3736
+ "type": "text",
3737
+ "primaryKey": false,
3738
+ "notNull": true
3739
+ },
3740
+ "projectId": {
3741
+ "name": "projectId",
3742
+ "type": "uuid",
3743
+ "primaryKey": false,
3744
+ "notNull": true
3745
+ }
3746
+ },
3747
+ "indexes": {
3748
+ "EveChatProject_project": {
3749
+ "name": "EveChatProject_project",
3750
+ "columns": [
3751
+ {
3752
+ "expression": "projectId",
3753
+ "isExpression": false,
3754
+ "asc": true,
3755
+ "nulls": "last"
3756
+ }
3757
+ ],
3758
+ "isUnique": false,
3759
+ "concurrently": false,
3760
+ "method": "btree",
3761
+ "with": {}
3762
+ }
3763
+ },
3764
+ "foreignKeys": {
3765
+ "EveChatProject_chatId_ownerId_EveChat_id_ownerId_fk": {
3766
+ "name": "EveChatProject_chatId_ownerId_EveChat_id_ownerId_fk",
3767
+ "tableFrom": "EveChatProject",
3768
+ "tableTo": "EveChat",
3769
+ "columnsFrom": [
3770
+ "chatId",
3771
+ "ownerId"
3772
+ ],
3773
+ "columnsTo": [
3774
+ "id",
3775
+ "ownerId"
3776
+ ],
3777
+ "onDelete": "cascade",
3778
+ "onUpdate": "no action"
3779
+ },
3780
+ "EveChatProject_projectId_ownerId_Project_id_userId_fk": {
3781
+ "name": "EveChatProject_projectId_ownerId_Project_id_userId_fk",
3782
+ "tableFrom": "EveChatProject",
3783
+ "tableTo": "Project",
3784
+ "columnsFrom": [
3785
+ "projectId",
3786
+ "ownerId"
3787
+ ],
3788
+ "columnsTo": [
3789
+ "id",
3790
+ "userId"
3791
+ ],
3792
+ "onDelete": "cascade",
3793
+ "onUpdate": "no action"
3794
+ }
3795
+ },
3796
+ "compositePrimaryKeys": {},
3797
+ "uniqueConstraints": {},
3798
+ "policies": {},
3799
+ "checkConstraints": {},
3800
+ "isRLSEnabled": false
3801
+ },
3802
+ "public.Project": {
3803
+ "name": "Project",
3804
+ "schema": "",
3805
+ "columns": {
3806
+ "createdAt": {
3807
+ "name": "createdAt",
3808
+ "type": "timestamp",
3809
+ "primaryKey": false,
3810
+ "notNull": true,
3811
+ "default": "now()"
3812
+ },
3813
+ "icon": {
3814
+ "name": "icon",
3815
+ "type": "varchar(64)",
3816
+ "primaryKey": false,
3817
+ "notNull": true,
3818
+ "default": "'folder'"
3819
+ },
3820
+ "iconColor": {
3821
+ "name": "iconColor",
3822
+ "type": "varchar(32)",
3823
+ "primaryKey": false,
3824
+ "notNull": true,
3825
+ "default": "'gray'"
3826
+ },
3827
+ "id": {
3828
+ "name": "id",
3829
+ "type": "uuid",
3830
+ "primaryKey": true,
3831
+ "notNull": true,
3832
+ "default": "gen_random_uuid()"
3833
+ },
3834
+ "instructions": {
3835
+ "name": "instructions",
3836
+ "type": "text",
3837
+ "primaryKey": false,
3838
+ "notNull": true,
3839
+ "default": "''"
3840
+ },
3841
+ "name": {
3842
+ "name": "name",
3843
+ "type": "text",
3844
+ "primaryKey": false,
3845
+ "notNull": true
3846
+ },
3847
+ "updatedAt": {
3848
+ "name": "updatedAt",
3849
+ "type": "timestamp",
3850
+ "primaryKey": false,
3851
+ "notNull": true,
3852
+ "default": "now()"
3853
+ },
3854
+ "userId": {
3855
+ "name": "userId",
3856
+ "type": "text",
3857
+ "primaryKey": false,
3858
+ "notNull": true
3859
+ }
3860
+ },
3861
+ "indexes": {
3862
+ "Project_user_id_idx": {
3863
+ "name": "Project_user_id_idx",
3864
+ "columns": [
3865
+ {
3866
+ "expression": "userId",
3867
+ "isExpression": false,
3868
+ "asc": true,
3869
+ "nulls": "last"
3870
+ }
3871
+ ],
3872
+ "isUnique": false,
3873
+ "concurrently": false,
3874
+ "method": "btree",
3875
+ "with": {}
3876
+ }
3877
+ },
3878
+ "foreignKeys": {
3879
+ "Project_userId_user_id_fk": {
3880
+ "name": "Project_userId_user_id_fk",
3881
+ "tableFrom": "Project",
3882
+ "tableTo": "user",
3883
+ "columnsFrom": [
3884
+ "userId"
3885
+ ],
3886
+ "columnsTo": [
3887
+ "id"
3888
+ ],
3889
+ "onDelete": "cascade",
3890
+ "onUpdate": "no action"
3891
+ }
3892
+ },
3893
+ "compositePrimaryKeys": {},
3894
+ "uniqueConstraints": {
3895
+ "Project_id_user": {
3896
+ "name": "Project_id_user",
3897
+ "nullsNotDistinct": false,
3898
+ "columns": [
3899
+ "id",
3900
+ "userId"
3901
+ ]
3902
+ }
3903
+ },
3904
+ "policies": {},
3905
+ "checkConstraints": {},
3906
+ "isRLSEnabled": false
3907
+ }
3908
+ },
3909
+ "enums": {},
3910
+ "schemas": {},
3911
+ "sequences": {},
3912
+ "roles": {},
3913
+ "policies": {},
3914
+ "views": {},
3915
+ "_meta": {
3916
+ "columns": {},
3917
+ "schemas": {},
3918
+ "tables": {}
3919
+ }
3920
+ }