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.
- package/README.md +141 -0
- package/dist/index.js +74613 -0
- package/package.json +71 -0
- package/templates/chat-app/.env.example +92 -0
- package/templates/chat-app/AGENTS.md +66 -0
- package/templates/chat-app/CHANGELOG.md +25 -0
- package/templates/chat-app/agent/agent.ts +54 -0
- package/templates/chat-app/agent/channels/eve.ts +27 -0
- package/templates/chat-app/agent/hooks/activity.ts +37 -0
- package/templates/chat-app/agent/hooks/billing.ts +60 -0
- package/templates/chat-app/agent/hooks/conversation.ts +34 -0
- package/templates/chat-app/agent/hooks/followup-suggestions.ts +2 -0
- package/templates/chat-app/agent/hooks/persistent-sandbox.ts +14 -0
- package/templates/chat-app/agent/hooks/projects.ts +2 -0
- package/templates/chat-app/agent/hooks/search.ts +2 -0
- package/templates/chat-app/agent/hooks/tool-selection.ts +23 -0
- package/templates/chat-app/agent/instructions/chat.ts +14 -0
- package/templates/chat-app/agent/instructions/projects.ts +2 -0
- package/templates/chat-app/agent/instructions/tool-selection.ts +23 -0
- package/templates/chat-app/agent/sandbox.ts +6 -0
- package/templates/chat-app/agent/tools/installed.ts +17 -0
- package/templates/chat-app/agent/tools/mcp.ts +2 -0
- package/templates/chat-app/app/(auth)/device-login/page.tsx +2 -0
- package/templates/chat-app/app/(auth)/login/page.tsx +46 -0
- package/templates/chat-app/app/(auth)/register/page.tsx +30 -0
- package/templates/chat-app/app/(chat)/api/files/[key]/route.test.ts +78 -0
- package/templates/chat-app/app/(chat)/api/files/[key]/route.ts +27 -0
- package/templates/chat-app/app/(chat)/api/files/upload/route.ts +2 -0
- package/templates/chat-app/app/(chat)/chat/[id]/page.tsx +32 -0
- package/templates/chat-app/app/(chat)/layout.tsx +113 -0
- package/templates/chat-app/app/(chat)/loading.tsx +11 -0
- package/templates/chat-app/app/(chat)/page.tsx +11 -0
- package/templates/chat-app/app/(chat)/project/[projectId]/chat/[chatId]/page.tsx +2 -0
- package/templates/chat-app/app/(chat)/project/[projectId]/page.tsx +2 -0
- package/templates/chat-app/app/(chat)/settings/connectors/[connectorId]/page.tsx +8 -0
- package/templates/chat-app/app/(chat)/settings/connectors/page.tsx +6 -0
- package/templates/chat-app/app/(chat)/settings/layout.tsx +53 -0
- package/templates/chat-app/app/(chat)/settings/loading.tsx +11 -0
- package/templates/chat-app/app/(chat)/settings/models/page.tsx +2 -0
- package/templates/chat-app/app/(chat)/settings/page.tsx +14 -0
- package/templates/chat-app/app/(chat)/share/[id]/page.tsx +25 -0
- package/templates/chat-app/app/actions/get-chat-models.ts +6 -0
- package/templates/chat-app/app/api/agent-conversation-copies/route.test.ts +190 -0
- package/templates/chat-app/app/api/agent-conversation-copies/route.ts +105 -0
- package/templates/chat-app/app/api/agent-conversations/[id]/route.test.ts +139 -0
- package/templates/chat-app/app/api/agent-conversations/[id]/route.ts +155 -0
- package/templates/chat-app/app/api/agent-conversations/route.test.ts +103 -0
- package/templates/chat-app/app/api/agent-conversations/route.ts +54 -0
- package/templates/chat-app/app/api/agent-response-groups/[id]/route.ts +34 -0
- package/templates/chat-app/app/api/agent-response-groups/route.test.ts +147 -0
- package/templates/chat-app/app/api/agent-response-groups/route.ts +77 -0
- package/templates/chat-app/app/api/agent-workspaces/[id]/route.test.ts +92 -0
- package/templates/chat-app/app/api/agent-workspaces/[id]/route.ts +52 -0
- package/templates/chat-app/app/api/auth/[...all]/route.ts +4 -0
- package/templates/chat-app/app/api/chat-model/route.ts +43 -0
- package/templates/chat-app/app/api/cron/cleanup/route.ts +26 -0
- package/templates/chat-app/app/api/dev-login/route.test.ts +159 -0
- package/templates/chat-app/app/api/dev-login/route.ts +142 -0
- package/templates/chat-app/app/api/eve/[...path]/relay-response.ts +20 -0
- package/templates/chat-app/app/api/eve/[...path]/route.test.ts +230 -0
- package/templates/chat-app/app/api/eve/[...path]/route.ts +327 -0
- package/templates/chat-app/app/api/eve-guest/route.ts +2 -0
- package/templates/chat-app/app/api/health/route.test.ts +91 -0
- package/templates/chat-app/app/api/health/route.ts +58 -0
- package/templates/chat-app/app/api/mcp/oauth/callback/route.ts +2 -0
- package/templates/chat-app/app/api/trpc/[trpc]/route.ts +17 -0
- package/templates/chat-app/app/apple-icon.png +0 -0
- package/templates/chat-app/app/chatjs.css +178 -0
- package/templates/chat-app/app/editor.css +53 -0
- package/templates/chat-app/app/favicon.ico +0 -0
- package/templates/chat-app/app/globals.css +141 -0
- package/templates/chat-app/app/icon.svg +3 -0
- package/templates/chat-app/app/layout.tsx +121 -0
- package/templates/chat-app/app/loading.tsx +11 -0
- package/templates/chat-app/app/manifest.ts +22 -0
- package/templates/chat-app/app/not-found.tsx +25 -0
- package/templates/chat-app/app/opengraph-image.png +0 -0
- package/templates/chat-app/app/privacy/page.tsx +153 -0
- package/templates/chat-app/app/sitemap.ts +19 -0
- package/templates/chat-app/app/terms/page.tsx +270 -0
- package/templates/chat-app/chat.config.ts +134 -0
- package/templates/chat-app/chatjs/core/authentication/contracts.ts +19 -0
- package/templates/chat-app/chatjs/core/billing/compose.test.ts +25 -0
- package/templates/chat-app/chatjs/core/billing/compose.ts +24 -0
- package/templates/chat-app/chatjs/core/billing/contracts.ts +11 -0
- package/templates/chat-app/chatjs/core/chat/compose.test.ts +61 -0
- package/templates/chat-app/chatjs/core/chat/compose.ts +67 -0
- package/templates/chat-app/chatjs/core/chat/contracts.ts +83 -0
- package/templates/chat-app/chatjs/core/documents/compose-views.ts +12 -0
- package/templates/chat-app/chatjs/core/documents/contracts.ts +91 -0
- package/templates/chat-app/chatjs/core/documents/document-definition.test.ts +60 -0
- package/templates/chat-app/chatjs/core/documents/document-definition.ts +55 -0
- package/templates/chat-app/chatjs/core/documents/ui.ts +67 -0
- package/templates/chat-app/chatjs/core/installation/contracts.ts +45 -0
- package/templates/chat-app/chatjs/core/installation/plugin.ts +13 -0
- package/templates/chat-app/chatjs/core/installation/select.ts +10 -0
- package/templates/chat-app/chatjs/core/session/contracts.ts +32 -0
- package/templates/chat-app/chatjs/core/tools/define-renderer.tsx +191 -0
- package/templates/chat-app/chatjs/core/tools/tool-contract.test.tsx +97 -0
- package/templates/chat-app/chatjs/core/tools/tool-definition.test.ts +29 -0
- package/templates/chat-app/chatjs/core/tools/tool-definition.ts +30 -0
- package/templates/chat-app/chatjs/core/tools/validate-output.ts +10 -0
- package/templates/chat-app/chatjs/core/ui/slots.tsx +91 -0
- package/templates/chat-app/chatjs/core/uploads/use-attachment-picker.ts +83 -0
- package/templates/chat-app/chatjs/generated/code-executor.ts +6 -0
- package/templates/chat-app/chatjs/generated/composer-tools.ts +17 -0
- package/templates/chat-app/chatjs/generated/document-run.ts +12 -0
- package/templates/chat-app/chatjs/generated/document-ui.ts +7 -0
- package/templates/chat-app/chatjs/generated/documents.ts +6 -0
- package/templates/chat-app/chatjs/generated/installed-auth-ui.ts +5 -0
- package/templates/chat-app/chatjs/generated/installed-auth.ts +4 -0
- package/templates/chat-app/chatjs/generated/installed-billing.ts +4 -0
- package/templates/chat-app/chatjs/generated/installed-chat-ui.ts +23 -0
- package/templates/chat-app/chatjs/generated/installed-chat.ts +16 -0
- package/templates/chat-app/chatjs/generated/installed-cleanup.ts +6 -0
- package/templates/chat-app/chatjs/generated/installed-config.ts +17 -0
- package/templates/chat-app/chatjs/generated/installed-database.ts +11 -0
- package/templates/chat-app/chatjs/generated/installed-instrumentation.ts +6 -0
- package/templates/chat-app/chatjs/generated/installed-layout.ts +11 -0
- package/templates/chat-app/chatjs/generated/installed-model-visibility.ts +6 -0
- package/templates/chat-app/chatjs/generated/installed-navigation.ts +5 -0
- package/templates/chat-app/chatjs/generated/installed-routers.ts +20 -0
- package/templates/chat-app/chatjs/generated/installed-session-profiles.ts +6 -0
- package/templates/chat-app/chatjs/generated/installed-sign-out.ts +5 -0
- package/templates/chat-app/chatjs/generated/installed-signed-out.ts +6 -0
- package/templates/chat-app/chatjs/generated/installed-tools.ts +6 -0
- package/templates/chat-app/chatjs/generated/installed-uploads.ts +6 -0
- package/templates/chat-app/chatjs/generated/installed.ts +18 -0
- package/templates/chat-app/chatjs/generated/providers.ts +16 -0
- package/templates/chat-app/chatjs/generated/tool-availability.ts +10 -0
- package/templates/chat-app/chatjs/generated/tool-definitions.ts +5 -0
- package/templates/chat-app/chatjs/generated/tools.ts +34 -0
- package/templates/chat-app/chatjs/generated/ui.ts +24 -0
- package/templates/chat-app/chatjs/generated/workflow-types.ts +7 -0
- package/templates/chat-app/chatjs/plugins/ai-titles/chat.ts +9 -0
- package/templates/chat-app/chatjs/plugins/ai-titles/chatjs.json +11 -0
- package/templates/chat-app/chatjs/plugins/ai-titles/generate-title.ts +115 -0
- package/templates/chat-app/chatjs/plugins/ai-titles/title-queries.ts +59 -0
- package/templates/chat-app/chatjs/plugins/attachment-uploads/chatjs.json +23 -0
- package/templates/chat-app/chatjs/plugins/attachment-uploads/client-plugin.ts +14 -0
- package/templates/chat-app/chatjs/plugins/attachment-uploads/controls.tsx +80 -0
- package/templates/chat-app/chatjs/plugins/attachment-uploads/integration.tsx +104 -0
- package/templates/chat-app/chatjs/plugins/attachment-uploads/routes/upload.ts +170 -0
- package/templates/chat-app/chatjs/plugins/attachment-uploads/upload-prep.ts +115 -0
- package/templates/chat-app/chatjs/plugins/attachment-uploads/upload.ts +34 -0
- package/templates/chat-app/chatjs/plugins/credits/balance.tsx +23 -0
- package/templates/chat-app/chatjs/plugins/credits/billing.ts +19 -0
- package/templates/chat-app/chatjs/plugins/credits/chatjs.json +25 -0
- package/templates/chat-app/chatjs/plugins/credits/client-plugin.ts +9 -0
- package/templates/chat-app/chatjs/plugins/credits/credits-queries.ts +37 -0
- package/templates/chat-app/chatjs/plugins/credits/credits-schema.ts +17 -0
- package/templates/chat-app/chatjs/plugins/credits/router.ts +15 -0
- package/templates/chat-app/chatjs/plugins/credits/server-plugin.ts +5 -0
- package/templates/chat-app/chatjs/plugins/credits/use-credits.ts +26 -0
- package/templates/chat-app/chatjs/plugins/desktop/auth-form.tsx +81 -0
- package/templates/chat-app/chatjs/plugins/desktop/auth-handler.tsx +214 -0
- package/templates/chat-app/chatjs/plugins/desktop/auth-server.ts +50 -0
- package/templates/chat-app/chatjs/plugins/desktop/auth-ui.tsx +151 -0
- package/templates/chat-app/chatjs/plugins/desktop/bridge.ts +45 -0
- package/templates/chat-app/chatjs/plugins/desktop/chatjs.json +34 -0
- package/templates/chat-app/chatjs/plugins/desktop/client-plugin.ts +9 -0
- package/templates/chat-app/chatjs/plugins/desktop/desktop-auth-client.ts +26 -0
- package/templates/chat-app/chatjs/plugins/desktop/device-login-page.tsx +211 -0
- package/templates/chat-app/chatjs/plugins/desktop/device-login-route.tsx +67 -0
- package/templates/chat-app/chatjs/plugins/desktop/electron-auth.ts +78 -0
- package/templates/chat-app/chatjs/plugins/desktop/navigation.ts +3 -0
- package/templates/chat-app/chatjs/plugins/desktop/protocol.ts +5 -0
- package/templates/chat-app/chatjs/plugins/desktop/sign-out.ts +18 -0
- package/templates/chat-app/chatjs/plugins/feedback/chat.ts +13 -0
- package/templates/chat-app/chatjs/plugins/feedback/chatjs.json +26 -0
- package/templates/chat-app/chatjs/plugins/feedback/client-plugin.ts +9 -0
- package/templates/chat-app/chatjs/plugins/feedback/feedback-actions.tsx +68 -0
- package/templates/chat-app/chatjs/plugins/feedback/feedback-queries.ts +116 -0
- package/templates/chat-app/chatjs/plugins/feedback/feedback-schema.ts +15 -0
- package/templates/chat-app/chatjs/plugins/feedback/message-vote-actions.tsx +50 -0
- package/templates/chat-app/chatjs/plugins/feedback/router.ts +52 -0
- package/templates/chat-app/chatjs/plugins/feedback/server-plugin.ts +8 -0
- package/templates/chat-app/chatjs/plugins/feedback/vote-message.ts +52 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/chat.ts +13 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/chatjs.json +35 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/client-plugin.ts +9 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-completion.ts +19 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-context.ts +36 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-hook.ts +59 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-queries.ts +79 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-schema.ts +31 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-suggestions-view.tsx +61 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/generate-suggestions.ts +69 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/router.ts +31 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/server-plugin.ts +8 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/suggestion-output.ts +5 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/suggestions.tsx +29 -0
- package/templates/chat-app/chatjs/plugins/followup-suggestions/use-followups.ts +42 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/chatjs.json +33 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/cleanup.ts +7 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-auth.ts +157 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-body.ts +34 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-cleanup-auth.ts +19 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-cleanup.ts +139 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-credential.ts +89 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-ip.ts +79 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-model.ts +106 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-policy.ts +20 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-queries.ts +303 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-scheduler.ts +114 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-schema.ts +74 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/routes/create-session.ts +141 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/server-plugin.ts +12 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/session-profile.ts +11 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/signed-out.tsx +363 -0
- package/templates/chat-app/chatjs/plugins/langfuse/chatjs.json +14 -0
- package/templates/chat-app/chatjs/plugins/langfuse/credentials.ts +22 -0
- package/templates/chat-app/chatjs/plugins/langfuse/instrumentation.ts +22 -0
- package/templates/chat-app/chatjs/plugins/langfuse/server-plugin.ts +5 -0
- package/templates/chat-app/chatjs/plugins/mcp/chatjs.json +55 -0
- package/templates/chat-app/chatjs/plugins/mcp/client-plugin.ts +13 -0
- package/templates/chat-app/chatjs/plugins/mcp/composer.tsx +143 -0
- package/templates/chat-app/chatjs/plugins/mcp/connector-menu-item.tsx +25 -0
- package/templates/chat-app/chatjs/plugins/mcp/db/encrypted-text.ts +78 -0
- package/templates/chat-app/chatjs/plugins/mcp/db/mcp-connector-queries.ts +161 -0
- package/templates/chat-app/chatjs/plugins/mcp/db/mcp-oauth-lock.ts +118 -0
- package/templates/chat-app/chatjs/plugins/mcp/db/mcp-oauth-queries.ts +282 -0
- package/templates/chat-app/chatjs/plugins/mcp/db/mcp-queries.ts +21 -0
- package/templates/chat-app/chatjs/plugins/mcp/db/mcp-schema.ts +81 -0
- package/templates/chat-app/chatjs/plugins/mcp/mcp-env.ts +26 -0
- package/templates/chat-app/chatjs/plugins/mcp/oauth/cache.ts +147 -0
- package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-client-manager.ts +95 -0
- package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-client.ts +477 -0
- package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-fetch.ts +43 -0
- package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-oauth-provider.ts +565 -0
- package/templates/chat-app/chatjs/plugins/mcp/oauth/oauth-authorization-required-error.ts +33 -0
- package/templates/chat-app/chatjs/plugins/mcp/router.ts +852 -0
- package/templates/chat-app/chatjs/plugins/mcp/routes/connector-page.tsx +72 -0
- package/templates/chat-app/chatjs/plugins/mcp/routes/connectors-page.tsx +58 -0
- package/templates/chat-app/chatjs/plugins/mcp/routes/oauth-callback.ts +180 -0
- package/templates/chat-app/chatjs/plugins/mcp/runtime/agent-tools.ts +113 -0
- package/templates/chat-app/chatjs/plugins/mcp/runtime/mcp-adapter.ts +94 -0
- package/templates/chat-app/chatjs/plugins/mcp/runtime/mcp-tools.ts +459 -0
- package/templates/chat-app/chatjs/plugins/mcp/search/mcp-search-params.server.ts +19 -0
- package/templates/chat-app/chatjs/plugins/mcp/search/mcp-search-params.ts +16 -0
- package/templates/chat-app/chatjs/plugins/mcp/server-plugin.ts +5 -0
- package/templates/chat-app/chatjs/plugins/mcp/settings.tsx +10 -0
- package/templates/chat-app/chatjs/plugins/mcp/setup.ts +18 -0
- package/templates/chat-app/chatjs/plugins/mcp/ui/connector-header.tsx +65 -0
- package/templates/chat-app/chatjs/plugins/mcp/ui/connectors-settings.tsx +533 -0
- package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-connect-dialog.tsx +220 -0
- package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-create-dialog.tsx +355 -0
- package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-details-page.tsx +575 -0
- package/templates/chat-app/chatjs/plugins/mcp/ui/transport-select.tsx +46 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/apply-model-preferences.ts +18 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/chatjs.json +31 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/client-plugin.ts +11 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/model-preferences-queries.ts +40 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/model-preferences-schema.ts +36 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/model-row.tsx +60 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/models-page.tsx +55 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/models-settings.tsx +60 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/models-table.tsx +198 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/router.ts +46 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/server-plugin.ts +8 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/settings-link.tsx +52 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/use-model-preferences.ts +26 -0
- package/templates/chat-app/chatjs/plugins/projects/chat.ts +55 -0
- package/templates/chat-app/chatjs/plugins/projects/chatjs.json +50 -0
- package/templates/chat-app/chatjs/plugins/projects/client-plugin.ts +21 -0
- package/templates/chat-app/chatjs/plugins/projects/conversation-hook.ts +44 -0
- package/templates/chat-app/chatjs/plugins/projects/creation.ts +28 -0
- package/templates/chat-app/chatjs/plugins/projects/db/project-queries.ts +180 -0
- package/templates/chat-app/chatjs/plugins/projects/db/project-schema.ts +61 -0
- package/templates/chat-app/chatjs/plugins/projects/instructions-state.ts +8 -0
- package/templates/chat-app/chatjs/plugins/projects/instructions.ts +19 -0
- package/templates/chat-app/chatjs/plugins/projects/project-icons.ts +75 -0
- package/templates/chat-app/chatjs/plugins/projects/router.ts +316 -0
- package/templates/chat-app/chatjs/plugins/projects/routes/project-chat-page.tsx +37 -0
- package/templates/chat-app/chatjs/plugins/projects/routes/project-page.tsx +71 -0
- package/templates/chat-app/chatjs/plugins/projects/server-plugin.ts +8 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/chat-contributions.tsx +102 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/delete-project-dialog.tsx +118 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/eve-move-project-dialog.tsx +152 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/eve-project-home.tsx +202 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/move-menu-item.tsx +22 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/project-chat-item.tsx +165 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/project-config.tsx +75 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/project-details-dialog.tsx +200 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/project-history.tsx +57 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/project-icon-picker.tsx +101 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/project-icon.tsx +92 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/project-instructions-dialog.tsx +86 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/project-menu-items.tsx +27 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-project-item.tsx +111 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-projects.tsx +110 -0
- package/templates/chat-app/chatjs/plugins/projects/use-projects.ts +87 -0
- package/templates/chat-app/chatjs/plugins/search/backfill.ts +187 -0
- package/templates/chat-app/chatjs/plugins/search/chat.ts +14 -0
- package/templates/chat-app/chatjs/plugins/search/chatjs.json +34 -0
- package/templates/chat-app/chatjs/plugins/search/client-plugin.ts +9 -0
- package/templates/chat-app/chatjs/plugins/search/router.ts +46 -0
- package/templates/chat-app/chatjs/plugins/search/search-backfill.ts +40 -0
- package/templates/chat-app/chatjs/plugins/search/search-chats.tsx +250 -0
- package/templates/chat-app/chatjs/plugins/search/search-hook.ts +121 -0
- package/templates/chat-app/chatjs/plugins/search/search-queries.ts +298 -0
- package/templates/chat-app/chatjs/plugins/search/search-results-view.tsx +215 -0
- package/templates/chat-app/chatjs/plugins/search/search-schema.ts +33 -0
- package/templates/chat-app/chatjs/plugins/search/search-surface-props.ts +8 -0
- package/templates/chat-app/chatjs/plugins/search/search-surface.tsx +28 -0
- package/templates/chat-app/chatjs/plugins/search/search-text.ts +60 -0
- package/templates/chat-app/chatjs/plugins/search/server-plugin.ts +5 -0
- package/templates/chat-app/chatjs/plugins/search/sidebar-item.tsx +13 -0
- package/templates/chat-app/chatjs/plugins/search/use-debounced-search.ts +23 -0
- package/templates/chat-app/chatjs/plugins/sharing/chat.ts +7 -0
- package/templates/chat-app/chatjs/plugins/sharing/chatjs.json +31 -0
- package/templates/chat-app/chatjs/plugins/sharing/client-plugin.ts +12 -0
- package/templates/chat-app/chatjs/plugins/sharing/public-conversation.ts +48 -0
- package/templates/chat-app/chatjs/plugins/sharing/queries.ts +72 -0
- package/templates/chat-app/chatjs/plugins/sharing/router.ts +27 -0
- package/templates/chat-app/chatjs/plugins/sharing/server-plugin.ts +5 -0
- package/templates/chat-app/chatjs/plugins/sharing/ui/chat-contributions.tsx +54 -0
- package/templates/chat-app/chatjs/plugins/sharing/ui/share-button.tsx +319 -0
- package/templates/chat-app/chatjs/plugins/sharing/ui/share-dialog.tsx +57 -0
- package/templates/chat-app/chatjs/plugins/sharing/ui/share-menu-item.tsx +20 -0
- package/templates/chat-app/chatjs/plugins/sharing/ui/share-menu-surface.tsx +63 -0
- package/templates/chat-app/chatjs/plugins/sharing/ui/shared-badge.tsx +21 -0
- package/templates/chat-app/chatjs/plugins/sharing/ui/shared-page.tsx +69 -0
- package/templates/chat-app/chatjs/plugins/sharing/ui/transcript-messages.tsx +42 -0
- package/templates/chat-app/chatjs/plugins/vercel-analytics/chatjs.json +15 -0
- package/templates/chat-app/chatjs/plugins/vercel-analytics/client-plugin.ts +9 -0
- package/templates/chat-app/chatjs/plugins/vercel-analytics/component.tsx +5 -0
- package/templates/chat-app/chatjs/plugins/vercel-speed-insights/chatjs.json +15 -0
- package/templates/chat-app/chatjs/plugins/vercel-speed-insights/client-plugin.ts +9 -0
- package/templates/chat-app/chatjs/plugins/vercel-speed-insights/component.tsx +4 -0
- package/templates/chat-app/chatjs/providers/gateway-defaults.ts +43 -0
- package/templates/chat-app/chatjs/providers/gateway.ts +136 -0
- package/templates/chat-app/chatjs/providers/sandbox/adapter.ts +232 -0
- package/templates/chat-app/chatjs/providers/sandbox/options.ts +13 -0
- package/templates/chat-app/chatjs/providers/sandbox/persistent.ts +258 -0
- package/templates/chat-app/chatjs/providers/sandbox/provider.ts +27 -0
- package/templates/chat-app/chatjs/providers/sandbox/vercel-sandbox-env.ts +22 -0
- package/templates/chat-app/chatjs/providers/storage-options.ts +15 -0
- package/templates/chat-app/chatjs/providers/storage.ts +13 -0
- package/templates/chat-app/chatjs/tools/_shared/code-execution/code-execution-chart.tsx +83 -0
- package/templates/chat-app/chatjs/tools/_shared/code-execution/interactive-chart-impl.tsx +290 -0
- package/templates/chat-app/chatjs/tools/_shared/code-execution/interactive-charts.tsx +24 -0
- package/templates/chat-app/chatjs/tools/_shared/code-execution/javascript.ts +222 -0
- package/templates/chat-app/chatjs/tools/_shared/code-execution/python.ts +381 -0
- package/templates/chat-app/chatjs/tools/_shared/code-execution/types.ts +27 -0
- package/templates/chat-app/chatjs/tools/_shared/lib/define-tool-renderer.test.ts +194 -0
- package/templates/chat-app/chatjs/tools/code-documents/assistant-actions.ts +16 -0
- package/templates/chat-app/chatjs/tools/code-documents/chatjs.json +20 -0
- package/templates/chat-app/chatjs/tools/code-documents/configuration-schema.ts +7 -0
- package/templates/chat-app/chatjs/tools/code-documents/definition.ts +9 -0
- package/templates/chat-app/chatjs/tools/code-documents/document.tsx +33 -0
- package/templates/chat-app/chatjs/tools/code-documents/editor.tsx +144 -0
- package/templates/chat-app/chatjs/tools/code-documents/guidelines.ts +15 -0
- package/templates/chat-app/chatjs/tools/code-documents/tool.ts +54 -0
- package/templates/chat-app/chatjs/tools/code-execution/chatjs.json +21 -0
- package/templates/chat-app/chatjs/tools/code-execution/python.test.ts +207 -0
- package/templates/chat-app/chatjs/tools/code-execution/renderer.test.tsx +142 -0
- package/templates/chat-app/chatjs/tools/code-execution/renderer.tsx +68 -0
- package/templates/chat-app/chatjs/tools/code-execution/schemas.ts +23 -0
- package/templates/chat-app/chatjs/tools/code-execution/tool.ts +93 -0
- package/templates/chat-app/chatjs/tools/deep-research/agent.ts +18 -0
- package/templates/chat-app/chatjs/tools/deep-research/availability.ts +23 -0
- package/templates/chat-app/chatjs/tools/deep-research/chatjs.json +21 -0
- package/templates/chat-app/chatjs/tools/deep-research/configuration-schema.ts +36 -0
- package/templates/chat-app/chatjs/tools/deep-research/configuration.ts +22 -0
- package/templates/chat-app/chatjs/tools/deep-research/progress-panel.tsx +121 -0
- package/templates/chat-app/chatjs/tools/deep-research/progress.tsx +23 -0
- package/templates/chat-app/chatjs/tools/deep-research/prompts.ts +280 -0
- package/templates/chat-app/chatjs/tools/deep-research/renderer.tsx +49 -0
- package/templates/chat-app/chatjs/tools/deep-research/schemas.ts +46 -0
- package/templates/chat-app/chatjs/tools/deep-research/search-updates.ts +76 -0
- package/templates/chat-app/chatjs/tools/deep-research/steps.ts +92 -0
- package/templates/chat-app/chatjs/tools/deep-research/task.tsx +69 -0
- package/templates/chat-app/chatjs/tools/deep-research/tasks.tsx +53 -0
- package/templates/chat-app/chatjs/tools/deep-research/tool.ts +1 -0
- package/templates/chat-app/chatjs/tools/delete-document/availability.ts +13 -0
- package/templates/chat-app/chatjs/tools/delete-document/chatjs.json +9 -0
- package/templates/chat-app/chatjs/tools/delete-document/execute.ts +78 -0
- package/templates/chat-app/chatjs/tools/delete-document/schemas.ts +18 -0
- package/templates/chat-app/chatjs/tools/delete-document/tool.ts +49 -0
- package/templates/chat-app/chatjs/tools/generate-image/chatjs.json +22 -0
- package/templates/chat-app/chatjs/tools/generate-image/configuration-schema.ts +9 -0
- package/templates/chat-app/chatjs/tools/generate-image/image-errors.ts +59 -0
- package/templates/chat-app/chatjs/tools/generate-image/image-generation.ts +257 -0
- package/templates/chat-app/chatjs/tools/generate-image/image-input.ts +47 -0
- package/templates/chat-app/chatjs/tools/generate-image/image-model.ts +58 -0
- package/templates/chat-app/chatjs/tools/generate-image/image-request.ts +140 -0
- package/templates/chat-app/chatjs/tools/generate-image/renderer.tsx +102 -0
- package/templates/chat-app/chatjs/tools/generate-image/schemas.ts +16 -0
- package/templates/chat-app/chatjs/tools/generate-image/tool.test.ts +229 -0
- package/templates/chat-app/chatjs/tools/generate-image/tool.ts +21 -0
- package/templates/chat-app/chatjs/tools/generate-video/chatjs.json +22 -0
- package/templates/chat-app/chatjs/tools/generate-video/configuration-schema.ts +9 -0
- package/templates/chat-app/chatjs/tools/generate-video/renderer.tsx +55 -0
- package/templates/chat-app/chatjs/tools/generate-video/schemas.ts +28 -0
- package/templates/chat-app/chatjs/tools/generate-video/tool.test.ts +123 -0
- package/templates/chat-app/chatjs/tools/generate-video/tool.ts +288 -0
- package/templates/chat-app/chatjs/tools/get-weather/chatjs.json +14 -0
- package/templates/chat-app/chatjs/tools/get-weather/definition.ts +10 -0
- package/templates/chat-app/chatjs/tools/get-weather/renderer.test.tsx +57 -0
- package/templates/chat-app/chatjs/tools/get-weather/renderer.tsx +290 -0
- package/templates/chat-app/chatjs/tools/get-weather/schemas.ts +51 -0
- package/templates/chat-app/chatjs/tools/get-weather/tool.ts +34 -0
- package/templates/chat-app/chatjs/tools/read-document/chatjs.json +8 -0
- package/templates/chat-app/chatjs/tools/read-document/tool.ts +27 -0
- package/templates/chat-app/chatjs/tools/retrieve-url/chatjs.json +11 -0
- package/templates/chat-app/chatjs/tools/retrieve-url/renderer.tsx +200 -0
- package/templates/chat-app/chatjs/tools/retrieve-url/retrieve-url-env.ts +11 -0
- package/templates/chat-app/chatjs/tools/retrieve-url/schemas.ts +24 -0
- package/templates/chat-app/chatjs/tools/retrieve-url/tool.test.ts +144 -0
- package/templates/chat-app/chatjs/tools/retrieve-url/tool.ts +169 -0
- package/templates/chat-app/chatjs/tools/saved-code-execution/chatjs.json +12 -0
- package/templates/chat-app/chatjs/tools/saved-code-execution/document-runs.ts +31 -0
- package/templates/chat-app/chatjs/tools/saved-code-execution/document.tsx +84 -0
- package/templates/chat-app/chatjs/tools/saved-code-execution/execute.ts +126 -0
- package/templates/chat-app/chatjs/tools/saved-code-execution/renderer.tsx +30 -0
- package/templates/chat-app/chatjs/tools/saved-code-execution/result.tsx +42 -0
- package/templates/chat-app/chatjs/tools/saved-code-execution/schemas.ts +82 -0
- package/templates/chat-app/chatjs/tools/saved-code-execution/tool.ts +12 -0
- package/templates/chat-app/chatjs/tools/sheet-documents/assistant-actions.ts +22 -0
- package/templates/chat-app/chatjs/tools/sheet-documents/chatjs.json +20 -0
- package/templates/chat-app/chatjs/tools/sheet-documents/configuration-schema.ts +10 -0
- package/templates/chat-app/chatjs/tools/sheet-documents/definition.ts +9 -0
- package/templates/chat-app/chatjs/tools/sheet-documents/document.tsx +41 -0
- package/templates/chat-app/chatjs/tools/sheet-documents/editor.tsx +180 -0
- package/templates/chat-app/chatjs/tools/sheet-documents/guidelines.ts +5 -0
- package/templates/chat-app/chatjs/tools/sheet-documents/tool.ts +54 -0
- package/templates/chat-app/chatjs/tools/tavily-search/chatjs.json +19 -0
- package/templates/chat-app/chatjs/tools/tavily-search/renderer.tsx +25 -0
- package/templates/chat-app/chatjs/tools/tavily-search/schemas.ts +39 -0
- package/templates/chat-app/chatjs/tools/tavily-search/tavily-search-env.ts +11 -0
- package/templates/chat-app/chatjs/tools/tavily-search/tool.test.ts +114 -0
- package/templates/chat-app/chatjs/tools/tavily-search/tool.ts +143 -0
- package/templates/chat-app/chatjs/tools/text-documents/assistant-actions.ts +12 -0
- package/templates/chat-app/chatjs/tools/text-documents/chatjs.json +20 -0
- package/templates/chat-app/chatjs/tools/text-documents/comparison.tsx +72 -0
- package/templates/chat-app/chatjs/tools/text-documents/configuration-schema.ts +7 -0
- package/templates/chat-app/chatjs/tools/text-documents/definition.ts +9 -0
- package/templates/chat-app/chatjs/tools/text-documents/diffview.tsx +214 -0
- package/templates/chat-app/chatjs/tools/text-documents/document.tsx +46 -0
- package/templates/chat-app/chatjs/tools/text-documents/editor-config.ts +53 -0
- package/templates/chat-app/chatjs/tools/text-documents/editor.tsx +139 -0
- package/templates/chat-app/chatjs/tools/text-documents/guidelines.ts +7 -0
- package/templates/chat-app/chatjs/tools/text-documents/tool.ts +54 -0
- package/templates/chat-app/chatjs/tools/word-count/chatjs.json +14 -0
- package/templates/chat-app/chatjs/tools/word-count/definition.ts +10 -0
- package/templates/chat-app/chatjs/tools/word-count/renderer.tsx +64 -0
- package/templates/chat-app/chatjs/tools/word-count/schemas.ts +13 -0
- package/templates/chat-app/chatjs/tools/word-count/tool.ts +45 -0
- package/templates/chat-app/components/account-form.tsx +22 -0
- package/templates/chat-app/components/ai-elements/context-hover.radix.tsx +15 -0
- package/templates/chat-app/components/ai-elements/context-hover.tsx +17 -0
- package/templates/chat-app/components/ai-elements/context.tsx +405 -0
- package/templates/chat-app/components/ai-elements/parse-incomplete-markdown.test.ts +34 -0
- package/templates/chat-app/components/ai-elements/parse-incomplete-markdown.tsx +138 -0
- package/templates/chat-app/components/ai-elements/response.tsx +51 -0
- package/templates/chat-app/components/ai-elements/suggestion.tsx +59 -0
- package/templates/chat-app/components/app-sidebar.tsx +94 -0
- package/templates/chat-app/components/attachment-card-view.tsx +53 -0
- package/templates/chat-app/components/attachment-card.tsx +92 -0
- package/templates/chat-app/components/attachment-list.tsx +188 -0
- package/templates/chat-app/components/attachment-preview-trigger.radix.tsx +12 -0
- package/templates/chat-app/components/attachment-preview-trigger.tsx +8 -0
- package/templates/chat-app/components/auth-card-skeleton.tsx +52 -0
- package/templates/chat-app/components/auth-form-view.tsx +72 -0
- package/templates/chat-app/components/auth-providers.tsx +201 -0
- package/templates/chat-app/components/chat/chat-layout.tsx +129 -0
- package/templates/chat-app/components/chat/chat-welcome-view.tsx +34 -0
- package/templates/chat-app/components/chat-header-view.tsx +36 -0
- package/templates/chat-app/components/chat-loading-shell.tsx +24 -0
- package/templates/chat-app/components/chat-menu-items.tsx +43 -0
- package/templates/chat-app/components/chat-message-view.tsx +39 -0
- package/templates/chat-app/components/chat-rename-dialog.tsx +156 -0
- package/templates/chat-app/components/chat-sidebar-view.tsx +53 -0
- package/templates/chat-app/components/chat-slots.tsx +24 -0
- package/templates/chat-app/components/client-snapshot.ts +32 -0
- package/templates/chat-app/components/clone-chat-button-view.tsx +43 -0
- package/templates/chat-app/components/code-snippet.tsx +35 -0
- package/templates/chat-app/components/composer/active-tool.tsx +48 -0
- package/templates/chat-app/components/composer/composer-attachments.tsx +26 -0
- package/templates/chat-app/components/composer/composer-menu.tsx +92 -0
- package/templates/chat-app/components/composer/control.ts +20 -0
- package/templates/chat-app/components/composer/editor.css +96 -0
- package/templates/chat-app/components/composer/prompt-form.tsx +49 -0
- package/templates/chat-app/components/composer/submission.ts +10 -0
- package/templates/chat-app/components/composer/tool-controls.tsx +139 -0
- package/templates/chat-app/components/composer/tool-display.ts +19 -0
- package/templates/chat-app/components/composer/tool-menu-item.radix.tsx +24 -0
- package/templates/chat-app/components/composer/tool-menu-item.tsx +25 -0
- package/templates/chat-app/components/context-bar.tsx +39 -0
- package/templates/chat-app/components/controlled-chat-composer.tsx +197 -0
- package/templates/chat-app/components/custom-content.ts +17 -0
- package/templates/chat-app/components/dev-login-tool.tsx +29 -0
- package/templates/chat-app/components/dialog-button.radix.tsx +13 -0
- package/templates/chat-app/components/dialog-button.tsx +11 -0
- package/templates/chat-app/components/disclosure-button.radix.tsx +13 -0
- package/templates/chat-app/components/disclosure-button.tsx +13 -0
- package/templates/chat-app/components/document-skeleton.tsx +33 -0
- package/templates/chat-app/components/drawer-close-button.radix.tsx +13 -0
- package/templates/chat-app/components/drawer-close-button.tsx +11 -0
- package/templates/chat-app/components/editable-bubble-props.ts +6 -0
- package/templates/chat-app/components/editable-bubble.radix.tsx +18 -0
- package/templates/chat-app/components/editable-bubble.tsx +16 -0
- package/templates/chat-app/components/eve/eve-artifact-layout.tsx +722 -0
- package/templates/chat-app/components/eve/eve-attachment.tsx +62 -0
- package/templates/chat-app/components/eve/eve-chat-error.tsx +16 -0
- package/templates/chat-app/components/eve/eve-chat-header.tsx +169 -0
- package/templates/chat-app/components/eve/eve-chat-page.tsx +120 -0
- package/templates/chat-app/components/eve/eve-composer.tsx +184 -0
- package/templates/chat-app/components/eve/eve-conversation.tsx +995 -0
- package/templates/chat-app/components/eve/eve-copy-button.tsx +165 -0
- package/templates/chat-app/components/eve/eve-creation-recovery.tsx +247 -0
- package/templates/chat-app/components/eve/eve-delete-dialog.tsx +195 -0
- package/templates/chat-app/components/eve/eve-deletion-provider.tsx +108 -0
- package/templates/chat-app/components/eve/eve-document-actions.tsx +124 -0
- package/templates/chat-app/components/eve/eve-document-assistant-actions.tsx +157 -0
- package/templates/chat-app/components/eve/eve-document-body.tsx +29 -0
- package/templates/chat-app/components/eve/eve-document-context.tsx +12 -0
- package/templates/chat-app/components/eve/eve-document-preview.tsx +128 -0
- package/templates/chat-app/components/eve/eve-document-tool.tsx +190 -0
- package/templates/chat-app/components/eve/eve-fork-recovery.tsx +79 -0
- package/templates/chat-app/components/eve/eve-history-list.tsx +303 -0
- package/templates/chat-app/components/eve/eve-history.tsx +25 -0
- package/templates/chat-app/components/eve/eve-initial-message.tsx +24 -0
- package/templates/chat-app/components/eve/eve-logical-context.tsx +46 -0
- package/templates/chat-app/components/eve/eve-logical-group-recovery.tsx +191 -0
- package/templates/chat-app/components/eve/eve-logical-navigation.tsx +38 -0
- package/templates/chat-app/components/eve/eve-mcp-result.tsx +41 -0
- package/templates/chat-app/components/eve/eve-message-part.tsx +176 -0
- package/templates/chat-app/components/eve/eve-messages.tsx +389 -0
- package/templates/chat-app/components/eve/eve-model-picker.tsx +35 -0
- package/templates/chat-app/components/eve/eve-optimistic-response-group.tsx +70 -0
- package/templates/chat-app/components/eve/eve-pending-input.tsx +156 -0
- package/templates/chat-app/components/eve/eve-response-group-cards.tsx +83 -0
- package/templates/chat-app/components/eve/eve-runtime-provider.tsx +372 -0
- package/templates/chat-app/components/eve/eve-thinking-message.tsx +42 -0
- package/templates/chat-app/components/eve/eve-tool-result.tsx +63 -0
- package/templates/chat-app/components/eve/new-conversation-view.tsx +55 -0
- package/templates/chat-app/components/eve/new-eve-conversation.tsx +31 -0
- package/templates/chat-app/components/eve/use-document-draft.ts +281 -0
- package/templates/chat-app/components/eve/use-eve-attachments.ts +34 -0
- package/templates/chat-app/components/eve/use-eve-composer-draft.ts +149 -0
- package/templates/chat-app/components/eve/use-eve-delivery-receipt.ts +58 -0
- package/templates/chat-app/components/eve/use-eve-fork.ts +537 -0
- package/templates/chat-app/components/eve/use-eve-message-delivery.ts +171 -0
- package/templates/chat-app/components/eve/use-eve-metadata-mutations.ts +61 -0
- package/templates/chat-app/components/eve/use-logical-commands.ts +16 -0
- package/templates/chat-app/components/eve/use-new-eve-conversation.tsx +342 -0
- package/templates/chat-app/components/favicon-group.tsx +50 -0
- package/templates/chat-app/components/favicon.tsx +54 -0
- package/templates/chat-app/components/get-google-favicon-url.tsx +21 -0
- package/templates/chat-app/components/get-url-without-params.ts +9 -0
- package/templates/chat-app/components/header-actions.tsx +48 -0
- package/templates/chat-app/components/hint.radix.tsx +26 -0
- package/templates/chat-app/components/hint.tsx +26 -0
- package/templates/chat-app/components/icons.tsx +53 -0
- package/templates/chat-app/components/image-modal.tsx +180 -0
- package/templates/chat-app/components/internal-link.tsx +89 -0
- package/templates/chat-app/components/keyboard-shortcuts.tsx +58 -0
- package/templates/chat-app/components/layout-plugins.tsx +10 -0
- package/templates/chat-app/components/layout-slots.tsx +4 -0
- package/templates/chat-app/components/lexical-chat-input.tsx +276 -0
- package/templates/chat-app/components/login-form.tsx +5 -0
- package/templates/chat-app/components/menu-button.radix.tsx +13 -0
- package/templates/chat-app/components/menu-button.tsx +13 -0
- package/templates/chat-app/components/message-action.tsx +28 -0
- package/templates/chat-app/components/message-actions-view.tsx +74 -0
- package/templates/chat-app/components/message-siblings-view.tsx +48 -0
- package/templates/chat-app/components/model-selection-indicator.radix.tsx +17 -0
- package/templates/chat-app/components/model-selection-indicator.tsx +17 -0
- package/templates/chat-app/components/model-selector-logo.tsx +37 -0
- package/templates/chat-app/components/model-selector-view.tsx +772 -0
- package/templates/chat-app/components/model-selector.tsx +46 -0
- package/templates/chat-app/components/navigation-links.radix.tsx +50 -0
- package/templates/chat-app/components/navigation-links.tsx +48 -0
- package/templates/chat-app/components/new-chat-button.tsx +41 -0
- package/templates/chat-app/components/optional-content.test.ts +28 -0
- package/templates/chat-app/components/parallel-responses/client-plugin.ts +11 -0
- package/templates/chat-app/components/parallel-responses/model-picker.tsx +75 -0
- package/templates/chat-app/components/parallel-responses/responses.tsx +148 -0
- package/templates/chat-app/components/part/document-common.tsx +152 -0
- package/templates/chat-app/components/part/mcp-tool-result.tsx +43 -0
- package/templates/chat-app/components/part/message-reasoning.tsx +71 -0
- package/templates/chat-app/components/part/tool-activity.tsx +93 -0
- package/templates/chat-app/components/part/tool-data.tsx +77 -0
- package/templates/chat-app/components/part/web-search.tsx +75 -0
- package/templates/chat-app/components/popover-button.radix.tsx +13 -0
- package/templates/chat-app/components/popover-button.tsx +11 -0
- package/templates/chat-app/components/response-choice-cards.tsx +60 -0
- package/templates/chat-app/components/retry-button-view.tsx +32 -0
- package/templates/chat-app/components/sandbox.tsx +43 -0
- package/templates/chat-app/components/settings/settings-header.tsx +21 -0
- package/templates/chat-app/components/settings/settings-nav.tsx +25 -0
- package/templates/chat-app/components/settings/settings-navigation-link.tsx +29 -0
- package/templates/chat-app/components/settings/settings-page.tsx +63 -0
- package/templates/chat-app/components/sidebar-chat-item.tsx +176 -0
- package/templates/chat-app/components/sidebar-menus.radix.tsx +62 -0
- package/templates/chat-app/components/sidebar-menus.tsx +66 -0
- package/templates/chat-app/components/sidebar-toggle.tsx +42 -0
- package/templates/chat-app/components/sidebar-top-row.tsx +64 -0
- package/templates/chat-app/components/sidebar-user-nav.tsx +208 -0
- package/templates/chat-app/components/signup-form.tsx +5 -0
- package/templates/chat-app/components/source-badge.tsx +50 -0
- package/templates/chat-app/components/sources.tsx +140 -0
- package/templates/chat-app/components/tag.tsx +23 -0
- package/templates/chat-app/components/task-cleanup.test.ts +39 -0
- package/templates/chat-app/components/task-cleanup.ts +15 -0
- package/templates/chat-app/components/test-dom-harness.ts +22 -0
- package/templates/chat-app/components/text-value.ts +7 -0
- package/templates/chat-app/components/theme-provider.tsx +14 -0
- package/templates/chat-app/components/thinking-message.tsx +17 -0
- package/templates/chat-app/components/ui/alert-dialog.tsx +187 -0
- package/templates/chat-app/components/ui/alert.tsx +75 -0
- package/templates/chat-app/components/ui/attachment.tsx +207 -0
- package/templates/chat-app/components/ui/avatar.tsx +108 -0
- package/templates/chat-app/components/ui/badge.tsx +51 -0
- package/templates/chat-app/components/ui/breadcrumb.tsx +124 -0
- package/templates/chat-app/components/ui/bubble.tsx +127 -0
- package/templates/chat-app/components/ui/button-group.tsx +87 -0
- package/templates/chat-app/components/ui/button.tsx +55 -0
- package/templates/chat-app/components/ui/card.tsx +99 -0
- package/templates/chat-app/components/ui/checkbox.tsx +28 -0
- package/templates/chat-app/components/ui/code-block.tsx +252 -0
- package/templates/chat-app/components/ui/collapsible.tsx +21 -0
- package/templates/chat-app/components/ui/command.tsx +196 -0
- package/templates/chat-app/components/ui/dialog.tsx +160 -0
- package/templates/chat-app/components/ui/direction.tsx +6 -0
- package/templates/chat-app/components/ui/drawer.tsx +227 -0
- package/templates/chat-app/components/ui/dropdown-menu.tsx +267 -0
- package/templates/chat-app/components/ui/empty.tsx +103 -0
- package/templates/chat-app/components/ui/extra/action-container.tsx +50 -0
- package/templates/chat-app/components/ui/field.tsx +238 -0
- package/templates/chat-app/components/ui/hover-card.tsx +50 -0
- package/templates/chat-app/components/ui/input-group.tsx +157 -0
- package/templates/chat-app/components/ui/input.tsx +19 -0
- package/templates/chat-app/components/ui/item.tsx +201 -0
- package/templates/chat-app/components/ui/label.tsx +19 -0
- package/templates/chat-app/components/ui/message-scroller.tsx +130 -0
- package/templates/chat-app/components/ui/message.tsx +91 -0
- package/templates/chat-app/components/ui/popover.tsx +89 -0
- package/templates/chat-app/components/ui/progress.tsx +82 -0
- package/templates/chat-app/components/ui/questionnaire.tsx +324 -0
- package/templates/chat-app/components/ui/resizable.tsx +49 -0
- package/templates/chat-app/components/ui/scroll-area.tsx +54 -0
- package/templates/chat-app/components/ui/select.tsx +200 -0
- package/templates/chat-app/components/ui/separator.tsx +24 -0
- package/templates/chat-app/components/ui/sheet.tsx +138 -0
- package/templates/chat-app/components/ui/sidebar.tsx +726 -0
- package/templates/chat-app/components/ui/skeleton.tsx +13 -0
- package/templates/chat-app/components/ui/slider.tsx +51 -0
- package/templates/chat-app/components/ui/spinner.tsx +10 -0
- package/templates/chat-app/components/ui/switch.tsx +31 -0
- package/templates/chat-app/components/ui/table.tsx +115 -0
- package/templates/chat-app/components/ui/tabs.tsx +81 -0
- package/templates/chat-app/components/ui/textarea.tsx +17 -0
- package/templates/chat-app/components/ui/toggle.tsx +44 -0
- package/templates/chat-app/components/ui/tooltip.tsx +65 -0
- package/templates/chat-app/components/ui/trace.tsx +162 -0
- package/templates/chat-app/components/upgrade-cta/login-cta-banner.tsx +112 -0
- package/templates/chat-app/components/upgrade-cta/login-prompt.tsx +34 -0
- package/templates/chat-app/components/user-message-view.tsx +92 -0
- package/templates/chat-app/components/with-skeleton.tsx +35 -0
- package/templates/chat-app/components.json +27 -0
- package/templates/chat-app/composer-controls.ts +16 -0
- package/templates/chat-app/docs/cleanup.md +21 -0
- package/templates/chat-app/docs/guest-sessions.md +29 -0
- package/templates/chat-app/docs/single-agent-verification.md +35 -0
- package/templates/chat-app/drizzle.config.ts +23 -0
- package/templates/chat-app/drizzle.generate.config.ts +9 -0
- package/templates/chat-app/hooks/responsive-hooks.test.tsx +20 -0
- package/templates/chat-app/hooks/use-artifact.tsx +180 -0
- package/templates/chat-app/hooks/use-auto-focus.ts +57 -0
- package/templates/chat-app/hooks/use-highlighted-code.ts +75 -0
- package/templates/chat-app/hooks/use-image-load-error.ts +20 -0
- package/templates/chat-app/hooks/use-media-query.tsx +24 -0
- package/templates/chat-app/hooks/use-mobile.ts +19 -0
- package/templates/chat-app/hooks/use-mounted.ts +11 -0
- package/templates/chat-app/instrumentation.ts +14 -0
- package/templates/chat-app/integrations/auth/form.ts +8 -0
- package/templates/chat-app/integrations/auth/server.ts +12 -0
- package/templates/chat-app/integrations/auth/sign-out.ts +6 -0
- package/templates/chat-app/integrations/auth/signed-out.ts +7 -0
- package/templates/chat-app/integrations/billing.ts +5 -0
- package/templates/chat-app/integrations/chat/model-visibility.ts +8 -0
- package/templates/chat-app/integrations/chat/server.ts +5 -0
- package/templates/chat-app/integrations/chat/session-profiles.ts +3 -0
- package/templates/chat-app/integrations/chat/ui.ts +4 -0
- package/templates/chat-app/integrations/chat/uploads.ts +18 -0
- package/templates/chat-app/integrations/cleanup.ts +3 -0
- package/templates/chat-app/integrations/database.ts +3 -0
- package/templates/chat-app/integrations/documents/definitions.ts +4 -0
- package/templates/chat-app/integrations/documents/run.ts +1 -0
- package/templates/chat-app/integrations/documents/ui.ts +4 -0
- package/templates/chat-app/integrations/instrumentation.ts +3 -0
- package/templates/chat-app/integrations/layout.ts +3 -0
- package/templates/chat-app/integrations/navigation.ts +8 -0
- package/templates/chat-app/integrations/plugin-catalog.ts +5 -0
- package/templates/chat-app/integrations/providers/gateway.ts +5 -0
- package/templates/chat-app/integrations/providers/sandbox.ts +10 -0
- package/templates/chat-app/integrations/providers/storage.ts +5 -0
- package/templates/chat-app/integrations/routers.ts +3 -0
- package/templates/chat-app/integrations/tools/availability.ts +3 -0
- package/templates/chat-app/integrations/tools/catalog.ts +10 -0
- package/templates/chat-app/integrations/tools/code-executor.ts +1 -0
- package/templates/chat-app/integrations/tools/composer.ts +20 -0
- package/templates/chat-app/integrations/tools/configuration.ts +3 -0
- package/templates/chat-app/integrations/tools/definitions.ts +6 -0
- package/templates/chat-app/integrations/tools/execution.ts +15 -0
- package/templates/chat-app/integrations/tools/providers.ts +3 -0
- package/templates/chat-app/integrations/tools/selection.ts +10 -0
- package/templates/chat-app/integrations/tools/ui.ts +4 -0
- package/templates/chat-app/lib/ai/active-gateway.ts +24 -0
- package/templates/chat-app/lib/ai/app-model-id.ts +23 -0
- package/templates/chat-app/lib/ai/app-models.test.ts +92 -0
- package/templates/chat-app/lib/ai/app-models.ts +153 -0
- package/templates/chat-app/lib/ai/gateways/fallback-models.ts +29 -0
- package/templates/chat-app/lib/ai/gateways/registry.ts +71 -0
- package/templates/chat-app/lib/ai/mcp-name-id.ts +112 -0
- package/templates/chat-app/lib/ai/model-data.ts +35 -0
- package/templates/chat-app/lib/ai/models.generated.ts +4242 -0
- package/templates/chat-app/lib/ai/models.ts +44 -0
- package/templates/chat-app/lib/ai/prompts.ts +25 -0
- package/templates/chat-app/lib/ai/providers.ts +41 -0
- package/templates/chat-app/lib/ai/telemetry.ts +4 -0
- package/templates/chat-app/lib/ai/to-model-data.test.ts +24 -0
- package/templates/chat-app/lib/ai/to-model-data.ts +63 -0
- package/templates/chat-app/lib/ai/tool-context.ts +28 -0
- package/templates/chat-app/lib/ai/tool-renderer-registry.ts +30 -0
- package/templates/chat-app/lib/ai/types.ts +85 -0
- package/templates/chat-app/lib/ai/usage-token-details.test.ts +76 -0
- package/templates/chat-app/lib/ai/usage-token-details.ts +33 -0
- package/templates/chat-app/lib/artifacts/artifact-kind.ts +8 -0
- package/templates/chat-app/lib/artifacts/types.ts +19 -0
- package/templates/chat-app/lib/auth-client.ts +5 -0
- package/templates/chat-app/lib/auth-session-options.test.ts +106 -0
- package/templates/chat-app/lib/auth-session-options.ts +47 -0
- package/templates/chat-app/lib/auth.ts +90 -0
- package/templates/chat-app/lib/chat-after-create.test.ts +74 -0
- package/templates/chat-app/lib/chat-after-create.ts +32 -0
- package/templates/chat-app/lib/chat-route.ts +18 -0
- package/templates/chat-app/lib/cleanup/contracts.ts +10 -0
- package/templates/chat-app/lib/cleanup/job.ts +53 -0
- package/templates/chat-app/lib/cleanup/route.test.ts +47 -0
- package/templates/chat-app/lib/config-models.ts +30 -0
- package/templates/chat-app/lib/config-requirements.test.ts +162 -0
- package/templates/chat-app/lib/config-requirements.ts +110 -0
- package/templates/chat-app/lib/config-schema.test.ts +71 -0
- package/templates/chat-app/lib/config-schema.ts +411 -0
- package/templates/chat-app/lib/config.ts +21 -0
- package/templates/chat-app/lib/constants.ts +7 -0
- package/templates/chat-app/lib/creation-rejected-error.ts +11 -0
- package/templates/chat-app/lib/db/client.ts +13 -0
- package/templates/chat-app/lib/db/connection.test.ts +56 -0
- package/templates/chat-app/lib/db/connection.ts +75 -0
- package/templates/chat-app/lib/db/creation-conflict-error.ts +15 -0
- package/templates/chat-app/lib/db/eve-billing.ts +398 -0
- package/templates/chat-app/lib/db/eve-code-sandboxes.ts +197 -0
- package/templates/chat-app/lib/db/eve-creation-failure.ts +37 -0
- package/templates/chat-app/lib/db/eve-current-copy.ts +230 -0
- package/templates/chat-app/lib/db/eve-deletion-scope.ts +9 -0
- package/templates/chat-app/lib/db/eve-deletion.ts +367 -0
- package/templates/chat-app/lib/db/eve-dispatch.ts +283 -0
- package/templates/chat-app/lib/db/eve-document-retention.ts +36 -0
- package/templates/chat-app/lib/db/eve-documents.ts +700 -0
- package/templates/chat-app/lib/db/eve-family-lock.ts +15 -0
- package/templates/chat-app/lib/db/eve-file-purge.ts +311 -0
- package/templates/chat-app/lib/db/eve-files.ts +335 -0
- package/templates/chat-app/lib/db/eve-model-ledger.ts +135 -0
- package/templates/chat-app/lib/db/eve-orphaned-files.ts +84 -0
- package/templates/chat-app/lib/db/eve-queries.ts +1191 -0
- package/templates/chat-app/lib/db/eve-response-groups.ts +603 -0
- package/templates/chat-app/lib/db/eve-sandbox-run-coverage.ts +97 -0
- package/templates/chat-app/lib/db/eve-subagents.ts +170 -0
- package/templates/chat-app/lib/db/eve-title.ts +27 -0
- package/templates/chat-app/lib/db/eve-workspace-turns.ts +123 -0
- package/templates/chat-app/lib/db/eve-workspaces.ts +64 -0
- package/templates/chat-app/lib/db/file-storage-keys.ts +38 -0
- package/templates/chat-app/lib/db/health.test.ts +36 -0
- package/templates/chat-app/lib/db/health.ts +16 -0
- package/templates/chat-app/lib/db/migrate.ts +171 -0
- package/templates/chat-app/lib/db/migration-history.test.ts +162 -0
- package/templates/chat-app/lib/db/migration-history.ts +109 -0
- package/templates/chat-app/lib/db/migrations/0000_eve_baseline.sql +433 -0
- package/templates/chat-app/lib/db/migrations/0001_brainy_the_stranger.sql +1 -0
- package/templates/chat-app/lib/db/migrations/0002_nappy_caretaker.sql +5 -0
- package/templates/chat-app/lib/db/migrations/0003_ambitious_oracle.sql +24 -0
- package/templates/chat-app/lib/db/migrations/0004_misty_next_avengers.sql +11 -0
- package/templates/chat-app/lib/db/migrations/0005_managed_workflow_safeguards.sql +12 -0
- package/templates/chat-app/lib/db/migrations/0006_unpriced_usage_index.sql +2 -0
- package/templates/chat-app/lib/db/migrations/0007_kind_charles_xavier.sql +13 -0
- package/templates/chat-app/lib/db/migrations/0008_mysterious_excalibur.sql +1 -0
- package/templates/chat-app/lib/db/migrations/0009_absent_the_hunter.sql +1 -0
- package/templates/chat-app/lib/db/migrations/0010_omniscient_junta.sql +11 -0
- package/templates/chat-app/lib/db/migrations/0011_followup_chat_index.sql +1 -0
- package/templates/chat-app/lib/db/migrations/0012_aberrant_joseph.sql +16 -0
- package/templates/chat-app/lib/db/migrations/0013_current_copy_seed.sql +1 -0
- package/templates/chat-app/lib/db/migrations/0014_current_copy_ancestry.sql +13 -0
- package/templates/chat-app/lib/db/migrations/0015_conscious_gorilla_man.sql +13 -0
- package/templates/chat-app/lib/db/migrations/0016_large_zeigeist.sql +21 -0
- package/templates/chat-app/lib/db/migrations/0017_flimsy_whiplash.sql +34 -0
- package/templates/chat-app/lib/db/migrations/0018_shallow_tyrannus.sql +1 -0
- package/templates/chat-app/lib/db/migrations/0019_woozy_wither.sql +50 -0
- package/templates/chat-app/lib/db/migrations/0020_organic_black_panther.sql +12 -0
- package/templates/chat-app/lib/db/migrations/0021_glorious_chameleon.sql +6 -0
- package/templates/chat-app/lib/db/migrations/0022_hard_photon.sql +16 -0
- package/templates/chat-app/lib/db/migrations/meta/0000_snapshot.json +2714 -0
- package/templates/chat-app/lib/db/migrations/meta/0001_snapshot.json +2720 -0
- package/templates/chat-app/lib/db/migrations/meta/0002_snapshot.json +2732 -0
- package/templates/chat-app/lib/db/migrations/meta/0003_snapshot.json +2739 -0
- package/templates/chat-app/lib/db/migrations/meta/0004_snapshot.json +2837 -0
- package/templates/chat-app/lib/db/migrations/meta/0005_snapshot.json +2874 -0
- package/templates/chat-app/lib/db/migrations/meta/0006_snapshot.json +2890 -0
- package/templates/chat-app/lib/db/migrations/meta/0007_snapshot.json +2975 -0
- package/templates/chat-app/lib/db/migrations/meta/0008_snapshot.json +2982 -0
- package/templates/chat-app/lib/db/migrations/meta/0009_snapshot.json +3311 -0
- package/templates/chat-app/lib/db/migrations/meta/0010_snapshot.json +3385 -0
- package/templates/chat-app/lib/db/migrations/meta/0011_snapshot.json +3401 -0
- package/templates/chat-app/lib/db/migrations/meta/0012_snapshot.json +3509 -0
- package/templates/chat-app/lib/db/migrations/meta/0013_snapshot.json +3515 -0
- package/templates/chat-app/lib/db/migrations/meta/0014_snapshot.json +3515 -0
- package/templates/chat-app/lib/db/migrations/meta/0015_snapshot.json +3515 -0
- package/templates/chat-app/lib/db/migrations/meta/0016_snapshot.json +3668 -0
- package/templates/chat-app/lib/db/migrations/meta/0017_snapshot.json +3881 -0
- package/templates/chat-app/lib/db/migrations/meta/0018_snapshot.json +3888 -0
- package/templates/chat-app/lib/db/migrations/meta/0019_snapshot.json +3926 -0
- package/templates/chat-app/lib/db/migrations/meta/0020_snapshot.json +3920 -0
- package/templates/chat-app/lib/db/migrations/meta/0021_snapshot.json +3887 -0
- package/templates/chat-app/lib/db/migrations/meta/0022_snapshot.json +3659 -0
- package/templates/chat-app/lib/db/migrations/meta/_journal.json +167 -0
- package/templates/chat-app/lib/db/queries.ts +23 -0
- package/templates/chat-app/lib/db/schema.ts +822 -0
- package/templates/chat-app/lib/db/update-owned-chat.ts +58 -0
- package/templates/chat-app/lib/db/workflow-backend.ts +28 -0
- package/templates/chat-app/lib/env-runtime-options.ts +121 -0
- package/templates/chat-app/lib/env-schema.test.ts +107 -0
- package/templates/chat-app/lib/env-schema.ts +136 -0
- package/templates/chat-app/lib/env.ts +24 -0
- package/templates/chat-app/lib/eve/accounting-log.ts +49 -0
- package/templates/chat-app/lib/eve/activity.ts +14 -0
- package/templates/chat-app/lib/eve/admission-retry.ts +41 -0
- package/templates/chat-app/lib/eve/channel-files.test.ts +85 -0
- package/templates/chat-app/lib/eve/channel-files.ts +57 -0
- package/templates/chat-app/lib/eve/cleanup-orphaned-files.test.ts +88 -0
- package/templates/chat-app/lib/eve/cleanup-orphaned-files.ts +68 -0
- package/templates/chat-app/lib/eve/code-executor.ts +32 -0
- package/templates/chat-app/lib/eve/code-sandbox-name.test.ts +60 -0
- package/templates/chat-app/lib/eve/code-sandbox-name.ts +56 -0
- package/templates/chat-app/lib/eve/code-sandbox-ownership.ts +88 -0
- package/templates/chat-app/lib/eve/command-rejection.test.ts +28 -0
- package/templates/chat-app/lib/eve/command-rejection.ts +17 -0
- package/templates/chat-app/lib/eve/completed-copy-source.test.ts +114 -0
- package/templates/chat-app/lib/eve/completed-copy-source.ts +48 -0
- package/templates/chat-app/lib/eve/connection-options.ts +40 -0
- package/templates/chat-app/lib/eve/contracts.test.ts +246 -0
- package/templates/chat-app/lib/eve/contracts.ts +70 -0
- package/templates/chat-app/lib/eve/conversation-scope.test.ts +147 -0
- package/templates/chat-app/lib/eve/conversation-scope.ts +102 -0
- package/templates/chat-app/lib/eve/conversation-title.ts +40 -0
- package/templates/chat-app/lib/eve/copy-input.ts +11 -0
- package/templates/chat-app/lib/eve/copy-seed.test.ts +101 -0
- package/templates/chat-app/lib/eve/copy-seed.ts +143 -0
- package/templates/chat-app/lib/eve/copy-transcript.test.ts +372 -0
- package/templates/chat-app/lib/eve/copy-transcript.ts +389 -0
- package/templates/chat-app/lib/eve/create-conversation-operation.test.ts +223 -0
- package/templates/chat-app/lib/eve/create-conversation-operation.ts +107 -0
- package/templates/chat-app/lib/eve/create-conversation.test.ts +143 -0
- package/templates/chat-app/lib/eve/create-conversation.ts +75 -0
- package/templates/chat-app/lib/eve/create-native-copy.ts +38 -0
- package/templates/chat-app/lib/eve/create-response-group.test.ts +268 -0
- package/templates/chat-app/lib/eve/create-response-group.ts +158 -0
- package/templates/chat-app/lib/eve/creation-content-hash.ts +20 -0
- package/templates/chat-app/lib/eve/creation-recovery-error.ts +8 -0
- package/templates/chat-app/lib/eve/creation-transport.ts +36 -0
- package/templates/chat-app/lib/eve/delete-local-conversation.test.ts +145 -0
- package/templates/chat-app/lib/eve/delete-local-conversation.ts +54 -0
- package/templates/chat-app/lib/eve/deletion-lifecycle.ts +18 -0
- package/templates/chat-app/lib/eve/deletion-policy.ts +27 -0
- package/templates/chat-app/lib/eve/document-assistant-actions.test.ts +48 -0
- package/templates/chat-app/lib/eve/document-assistant-actions.ts +22 -0
- package/templates/chat-app/lib/eve/document-kind-lifecycle.test.ts +148 -0
- package/templates/chat-app/lib/eve/document-tools.ts +164 -0
- package/templates/chat-app/lib/eve/draft.test.ts +32 -0
- package/templates/chat-app/lib/eve/draft.ts +70 -0
- package/templates/chat-app/lib/eve/environment.test.ts +257 -0
- package/templates/chat-app/lib/eve/environment.ts +126 -0
- package/templates/chat-app/lib/eve/execute-conversation-creation.ts +198 -0
- package/templates/chat-app/lib/eve/file-references.ts +22 -0
- package/templates/chat-app/lib/eve/fork-boundary-error.ts +8 -0
- package/templates/chat-app/lib/eve/gateway-auth.test.ts +229 -0
- package/templates/chat-app/lib/eve/gateway-auth.ts +182 -0
- package/templates/chat-app/lib/eve/generated-files.test.ts +75 -0
- package/templates/chat-app/lib/eve/generated-files.ts +46 -0
- package/templates/chat-app/lib/eve/history-input.ts +31 -0
- package/templates/chat-app/lib/eve/image-context.test.ts +66 -0
- package/templates/chat-app/lib/eve/image-context.ts +143 -0
- package/templates/chat-app/lib/eve/installed-tools.test.ts +162 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/compatibility.ts +84 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-native-purge.ts +205 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-payload-purge.ts +147 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-fence.ts +82 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-inventory.ts +89 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-purge.ts +250 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-resource-fence.ts +213 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-run-inventory.ts +165 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-sandbox-coverage-proof.ts +140 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-session-fence.ts +108 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/eve-stream-positions.ts +81 -0
- package/templates/chat-app/lib/eve/lifecycle/postgres/provider.ts +91 -0
- package/templates/chat-app/lib/eve/lifecycle/provider.test.ts +57 -0
- package/templates/chat-app/lib/eve/lifecycle/provider.ts +102 -0
- package/templates/chat-app/lib/eve/local-deletion-available.test.ts +19 -0
- package/templates/chat-app/lib/eve/local-deletion-available.ts +22 -0
- package/templates/chat-app/lib/eve/logical-chat.test.ts +400 -0
- package/templates/chat-app/lib/eve/logical-chat.ts +477 -0
- package/templates/chat-app/lib/eve/logical-commands.ts +42 -0
- package/templates/chat-app/lib/eve/logical-response-slots.ts +180 -0
- package/templates/chat-app/lib/eve/mcp-result.ts +25 -0
- package/templates/chat-app/lib/eve/message-delivery.test.ts +165 -0
- package/templates/chat-app/lib/eve/message-delivery.ts +145 -0
- package/templates/chat-app/lib/eve/message-display.test.ts +105 -0
- package/templates/chat-app/lib/eve/message-display.ts +65 -0
- package/templates/chat-app/lib/eve/message-input.ts +69 -0
- package/templates/chat-app/lib/eve/message-tool-selection.test.ts +23 -0
- package/templates/chat-app/lib/eve/message-tool-selection.ts +31 -0
- package/templates/chat-app/lib/eve/model-accounting.test.ts +194 -0
- package/templates/chat-app/lib/eve/model-accounting.ts +101 -0
- package/templates/chat-app/lib/eve/model-ledger.test.ts +485 -0
- package/templates/chat-app/lib/eve/model-ledger.ts +239 -0
- package/templates/chat-app/lib/eve/model-selection.test.ts +139 -0
- package/templates/chat-app/lib/eve/model-selection.ts +99 -0
- package/templates/chat-app/lib/eve/optimistic-metadata.test.ts +85 -0
- package/templates/chat-app/lib/eve/optimistic-metadata.ts +139 -0
- package/templates/chat-app/lib/eve/pending-create.test.ts +112 -0
- package/templates/chat-app/lib/eve/pending-create.ts +246 -0
- package/templates/chat-app/lib/eve/persisted-wire-order.test.ts +33 -0
- package/templates/chat-app/lib/eve/persistent-sandbox-store.ts +621 -0
- package/templates/chat-app/lib/eve/persistent-sandbox.test.ts +209 -0
- package/templates/chat-app/lib/eve/persistent-sandbox.ts +328 -0
- package/templates/chat-app/lib/eve/prepare-deletion.test.ts +118 -0
- package/templates/chat-app/lib/eve/prepare-deletion.ts +62 -0
- package/templates/chat-app/lib/eve/prepare-message.test.ts +67 -0
- package/templates/chat-app/lib/eve/prepare-message.ts +60 -0
- package/templates/chat-app/lib/eve/principal.test.ts +25 -0
- package/templates/chat-app/lib/eve/principal.ts +23 -0
- package/templates/chat-app/lib/eve/project-creation.ts +22 -0
- package/templates/chat-app/lib/eve/projects-absent.test.ts +27 -0
- package/templates/chat-app/lib/eve/purge-code-sandboxes.test.ts +125 -0
- package/templates/chat-app/lib/eve/purge-code-sandboxes.ts +83 -0
- package/templates/chat-app/lib/eve/purge-files.test.ts +41 -0
- package/templates/chat-app/lib/eve/purge-files.ts +38 -0
- package/templates/chat-app/lib/eve/purge-local-resources.ts +73 -0
- package/templates/chat-app/lib/eve/readonly-message-types.ts +19 -0
- package/templates/chat-app/lib/eve/reconcile-subagent-usage.ts +99 -0
- package/templates/chat-app/lib/eve/reconcile-usage.test.ts +488 -0
- package/templates/chat-app/lib/eve/reconcile-usage.ts +238 -0
- package/templates/chat-app/lib/eve/reconcile-workspace-turn.ts +137 -0
- package/templates/chat-app/lib/eve/recover-creations.test.ts +63 -0
- package/templates/chat-app/lib/eve/recover-creations.ts +83 -0
- package/templates/chat-app/lib/eve/request-copy.test.ts +95 -0
- package/templates/chat-app/lib/eve/request-copy.ts +129 -0
- package/templates/chat-app/lib/eve/request-policy.test.ts +54 -0
- package/templates/chat-app/lib/eve/request-policy.ts +120 -0
- package/templates/chat-app/lib/eve/research-progress.test.ts +95 -0
- package/templates/chat-app/lib/eve/research-progress.ts +42 -0
- package/templates/chat-app/lib/eve/resolve-creation-request.ts +59 -0
- package/templates/chat-app/lib/eve/response-group-candidates.ts +16 -0
- package/templates/chat-app/lib/eve/response-group-contracts.ts +23 -0
- package/templates/chat-app/lib/eve/response-group-input.ts +39 -0
- package/templates/chat-app/lib/eve/response-group-lineage.test.ts +133 -0
- package/templates/chat-app/lib/eve/response-group-lineage.ts +201 -0
- package/templates/chat-app/lib/eve/response-group.test.ts +101 -0
- package/templates/chat-app/lib/eve/response-group.ts +139 -0
- package/templates/chat-app/lib/eve/response-model.test.ts +52 -0
- package/templates/chat-app/lib/eve/response-model.ts +46 -0
- package/templates/chat-app/lib/eve/restore-message-attachments.test.ts +421 -0
- package/templates/chat-app/lib/eve/restore-message-attachments.ts +241 -0
- package/templates/chat-app/lib/eve/retire-session.test.ts +158 -0
- package/templates/chat-app/lib/eve/retire-session.ts +140 -0
- package/templates/chat-app/lib/eve/sandbox-environment.test.ts +49 -0
- package/templates/chat-app/lib/eve/sandbox-environment.ts +29 -0
- package/templates/chat-app/lib/eve/save-copy-operation.ts +33 -0
- package/templates/chat-app/lib/eve/save-document.ts +87 -0
- package/templates/chat-app/lib/eve/selected-tools.ts +22 -0
- package/templates/chat-app/lib/eve/send-command.test.ts +36 -0
- package/templates/chat-app/lib/eve/send-command.ts +54 -0
- package/templates/chat-app/lib/eve/server.test.ts +90 -0
- package/templates/chat-app/lib/eve/server.ts +60 -0
- package/templates/chat-app/lib/eve/session-identity.ts +21 -0
- package/templates/chat-app/lib/eve/session-mapping-error.ts +19 -0
- package/templates/chat-app/lib/eve/session-profile.test.ts +49 -0
- package/templates/chat-app/lib/eve/session-profile.ts +22 -0
- package/templates/chat-app/lib/eve/shared-messages.test.ts +270 -0
- package/templates/chat-app/lib/eve/shared-messages.ts +158 -0
- package/templates/chat-app/lib/eve/spending-admission.ts +11 -0
- package/templates/chat-app/lib/eve/stream-positions.test.ts +51 -0
- package/templates/chat-app/lib/eve/stream-positions.ts +27 -0
- package/templates/chat-app/lib/eve/tool-availability.ts +34 -0
- package/templates/chat-app/lib/eve/tool-cost.test.ts +46 -0
- package/templates/chat-app/lib/eve/tool-cost.ts +111 -0
- package/templates/chat-app/lib/eve/tool-image-context.ts +11 -0
- package/templates/chat-app/lib/eve/tool-model-output.ts +15 -0
- package/templates/chat-app/lib/eve/tool-models.ts +36 -0
- package/templates/chat-app/lib/eve/tool-result.test.ts +20 -0
- package/templates/chat-app/lib/eve/tool-result.ts +97 -0
- package/templates/chat-app/lib/eve/tool-types.test.ts +60 -0
- package/templates/chat-app/lib/eve/tool-types.ts +35 -0
- package/templates/chat-app/lib/eve/tool-ui-state.ts +19 -0
- package/templates/chat-app/lib/eve/tool-usage.ts +152 -0
- package/templates/chat-app/lib/eve/turn-tools.ts +52 -0
- package/templates/chat-app/lib/eve/usage-reconciliation-busy.ts +20 -0
- package/templates/chat-app/lib/eve/usage.test.ts +230 -0
- package/templates/chat-app/lib/eve/usage.ts +82 -0
- package/templates/chat-app/lib/eve/verify-local-coverage.ts +84 -0
- package/templates/chat-app/lib/eve/workspace-attachments.ts +173 -0
- package/templates/chat-app/lib/eve/workspace-turn-evidence.test.ts +131 -0
- package/templates/chat-app/lib/eve/workspace-turn-evidence.ts +51 -0
- package/templates/chat-app/lib/eve/world-config.test.ts +43 -0
- package/templates/chat-app/lib/eve/world-config.ts +24 -0
- package/templates/chat-app/lib/features-config.test.ts +17 -0
- package/templates/chat-app/lib/features-config.ts +88 -0
- package/templates/chat-app/lib/file-content-response.test.ts +116 -0
- package/templates/chat-app/lib/file-content-response.ts +151 -0
- package/templates/chat-app/lib/file-language.test.ts +12 -0
- package/templates/chat-app/lib/file-language.ts +51 -0
- package/templates/chat-app/lib/file-storage.test.ts +123 -0
- package/templates/chat-app/lib/file-storage.ts +184 -0
- package/templates/chat-app/lib/file-url.test.ts +60 -0
- package/templates/chat-app/lib/file-url.ts +49 -0
- package/templates/chat-app/lib/highlighter.tsx +124 -0
- package/templates/chat-app/lib/id.ts +5 -0
- package/templates/chat-app/lib/is-non-empty-string.test.ts +21 -0
- package/templates/chat-app/lib/is-non-empty-string.ts +2 -0
- package/templates/chat-app/lib/limits/tokens.ts +9 -0
- package/templates/chat-app/lib/logger.ts +28 -0
- package/templates/chat-app/lib/playwright-test-environment.ts +17 -0
- package/templates/chat-app/lib/plugin-route.ts +16 -0
- package/templates/chat-app/lib/readonly-native-surface.ts +23 -0
- package/templates/chat-app/lib/readonly-react-node.ts +8 -0
- package/templates/chat-app/lib/required-credentials.test.ts +141 -0
- package/templates/chat-app/lib/required-credentials.ts +66 -0
- package/templates/chat-app/lib/sandbox/runtime.ts +12 -0
- package/templates/chat-app/lib/sign-out.test.ts +19 -0
- package/templates/chat-app/lib/sign-out.ts +17 -0
- package/templates/chat-app/lib/social-auth.test.ts +79 -0
- package/templates/chat-app/lib/social-auth.ts +57 -0
- package/templates/chat-app/lib/url-utils.tsx +13 -0
- package/templates/chat-app/lib/url.test.ts +54 -0
- package/templates/chat-app/lib/url.ts +25 -0
- package/templates/chat-app/lib/utils.ts +1 -0
- package/templates/chat-app/logo.svg +1 -0
- package/templates/chat-app/next-env.d.ts +7 -0
- package/templates/chat-app/next.config.test.ts +45 -0
- package/templates/chat-app/next.config.ts +48 -0
- package/templates/chat-app/oxfmt.config.ts +29 -0
- package/templates/chat-app/oxlint.config.ts +38 -0
- package/templates/chat-app/package.json +165 -0
- package/templates/chat-app/playwright.config.ts +106 -0
- package/templates/chat-app/postcss.config.mjs +8 -0
- package/templates/chat-app/providers/chat-models-provider.tsx +74 -0
- package/templates/chat-app/providers/chat-plugins.tsx +8 -0
- package/templates/chat-app/providers/default-model-provider.tsx +91 -0
- package/templates/chat-app/providers/parse-chat-id-from-pathname.test.ts +126 -0
- package/templates/chat-app/providers/parse-chat-id-from-pathname.ts +51 -0
- package/templates/chat-app/providers/session-provider.tsx +107 -0
- package/templates/chat-app/providers/ui-direction.radix.tsx +11 -0
- package/templates/chat-app/providers/ui-direction.tsx +11 -0
- package/templates/chat-app/proxy.test.ts +104 -0
- package/templates/chat-app/proxy.ts +128 -0
- package/templates/chat-app/scripts/build-eve.ts +28 -0
- package/templates/chat-app/scripts/check-db.test.ts +49 -0
- package/templates/chat-app/scripts/check-db.ts +99 -0
- package/templates/chat-app/scripts/check-env.ts +337 -0
- package/templates/chat-app/scripts/check-worker-typescript.ts +88 -0
- package/templates/chat-app/scripts/check-workflow-backend.ts +29 -0
- package/templates/chat-app/scripts/cleanup.ts +112 -0
- package/templates/chat-app/scripts/dev-health.ts +64 -0
- package/templates/chat-app/scripts/dev-process-tree.ts +41 -0
- package/templates/chat-app/scripts/dev-recovery.ts +38 -0
- package/templates/chat-app/scripts/dev-supervisor.mts +297 -0
- package/templates/chat-app/scripts/environment-validation-report.ts +46 -0
- package/templates/chat-app/scripts/eve-setup-config.test.ts +73 -0
- package/templates/chat-app/scripts/eve-setup-config.ts +51 -0
- package/templates/chat-app/scripts/eve-setup.ts +179 -0
- package/templates/chat-app/scripts/fetch-models.ts +30 -0
- package/templates/chat-app/scripts/gateway-snapshot-warning.test.ts +9 -0
- package/templates/chat-app/scripts/installed-environment-validation.ts +39 -0
- package/templates/chat-app/scripts/persistent-sandbox-cleanup.ts +128 -0
- package/templates/chat-app/scripts/stop-persistent-sandboxes.ts +24 -0
- package/templates/chat-app/scripts/worker-bundle-source.test.ts +37 -0
- package/templates/chat-app/scripts/worker-bundle-source.ts +14 -0
- package/templates/chat-app/scripts/worktree-setup.sh +27 -0
- package/templates/chat-app/tests/artifacts.e2e.ts +7 -0
- package/templates/chat-app/tests/auth.setup.e2e.ts +11 -0
- package/templates/chat-app/tests/chat.e2e.ts +20 -0
- package/templates/chat-app/tests/fixtures/eve-subagent-tool.ts +1 -0
- package/templates/chat-app/tests/fixtures/models/openai.svg +3 -0
- package/templates/chat-app/tests/helpers/eve-dynamic-context.ts +20 -0
- package/templates/chat-app/tests/helpers/eve-hook-context.ts +26 -0
- package/templates/chat-app/tests/helpers/eve-tool-context.ts +24 -0
- package/templates/chat-app/tests/helpers/eve-tool-events.ts +24 -0
- package/templates/chat-app/tests/presentation-fonts.ts +20 -0
- package/templates/chat-app/tests/reasoning.e2e.ts +7 -0
- package/templates/chat-app/tests/reasoning.setup.e2e.ts +11 -0
- package/templates/chat-app/tests/visual-capture.css +4 -0
- package/templates/chat-app/tools/platform/documents/types.ts +11 -0
- package/templates/chat-app/tools/platform/research-updates-schema.ts +60 -0
- package/templates/chat-app/tools/platform/search-presentation.ts +138 -0
- package/templates/chat-app/tools/platform/steps/multi-query-web-search.test.ts +45 -0
- package/templates/chat-app/tools/platform/steps/multi-query-web-search.ts +142 -0
- package/templates/chat-app/tools/platform/steps/search-utils.ts +26 -0
- package/templates/chat-app/trpc/eve-owned-procedure.ts +26 -0
- package/templates/chat-app/trpc/init.ts +173 -0
- package/templates/chat-app/trpc/is-aborted-request.test.ts +26 -0
- package/templates/chat-app/trpc/is-aborted-request.ts +9 -0
- package/templates/chat-app/trpc/preload-query.test.ts +29 -0
- package/templates/chat-app/trpc/preload-query.ts +11 -0
- package/templates/chat-app/trpc/query-client.ts +32 -0
- package/templates/chat-app/trpc/react.tsx +99 -0
- package/templates/chat-app/trpc/routers/_app.ts +29 -0
- package/templates/chat-app/trpc/routers/eve.router.ts +247 -0
- package/templates/chat-app/trpc/server.tsx +33 -0
- package/templates/chat-app/tsconfig.json +50 -0
- package/templates/chat-app/vendor/workflow-world-postgres-5.0.0-beta.40.tgz +0 -0
- package/templates/chat-app/vercel.json +10 -0
- package/templates/chat-app/vitest.config.ts +11 -0
- package/templates/chat-app/vitest.eve-runtime.config.ts +10 -0
- package/templates/electron/CHANGELOG.md +19 -0
- package/templates/electron/entitlements.mac.plist +10 -0
- package/templates/electron/forge.config.ts +207 -0
- package/templates/electron/icon.png +0 -0
- package/templates/electron/package.json +56 -0
- package/templates/electron/scripts/generate-icons.test.js +39 -0
- package/templates/electron/scripts/generate-icons.ts +47 -0
- package/templates/electron/scripts/run-forge.cjs +56 -0
- package/templates/electron/scripts/write-branding.ts +44 -0
- package/templates/electron/src/auth-request-options.test.ts +46 -0
- package/templates/electron/src/auth-request-options.ts +42 -0
- package/templates/electron/src/config.ts +50 -0
- package/templates/electron/src/lib/auth-client.ts +53 -0
- package/templates/electron/src/lib/auth-cookies.test.ts +34 -0
- package/templates/electron/src/lib/auth-cookies.ts +28 -0
- package/templates/electron/src/main.ts +747 -0
- package/templates/electron/src/preload.d.ts +31 -0
- package/templates/electron/src/preload.ts +28 -0
- package/templates/electron/tsconfig.json +24 -0
|
@@ -0,0 +1,2739 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "8132824e-366d-470e-bc5c-1b3a2892d0a0",
|
|
3
|
+
"prevId": "e356d1b4-1edb-4224-886f-dcd87769c07e",
|
|
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": ["user_id"],
|
|
98
|
+
"columnsTo": ["id"],
|
|
99
|
+
"onDelete": "cascade",
|
|
100
|
+
"onUpdate": "no action"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"compositePrimaryKeys": {},
|
|
104
|
+
"uniqueConstraints": {},
|
|
105
|
+
"policies": {},
|
|
106
|
+
"checkConstraints": {},
|
|
107
|
+
"isRLSEnabled": false
|
|
108
|
+
},
|
|
109
|
+
"public.EveChat": {
|
|
110
|
+
"name": "EveChat",
|
|
111
|
+
"schema": "",
|
|
112
|
+
"columns": {
|
|
113
|
+
"activeConversationId": {
|
|
114
|
+
"name": "activeConversationId",
|
|
115
|
+
"type": "uuid",
|
|
116
|
+
"primaryKey": false,
|
|
117
|
+
"notNull": false
|
|
118
|
+
},
|
|
119
|
+
"createdAt": {
|
|
120
|
+
"name": "createdAt",
|
|
121
|
+
"type": "timestamp",
|
|
122
|
+
"primaryKey": false,
|
|
123
|
+
"notNull": true,
|
|
124
|
+
"default": "now()"
|
|
125
|
+
},
|
|
126
|
+
"id": {
|
|
127
|
+
"name": "id",
|
|
128
|
+
"type": "uuid",
|
|
129
|
+
"primaryKey": true,
|
|
130
|
+
"notNull": true,
|
|
131
|
+
"default": "gen_random_uuid()"
|
|
132
|
+
},
|
|
133
|
+
"isPinned": {
|
|
134
|
+
"name": "isPinned",
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"primaryKey": false,
|
|
137
|
+
"notNull": true,
|
|
138
|
+
"default": false
|
|
139
|
+
},
|
|
140
|
+
"ownerId": {
|
|
141
|
+
"name": "ownerId",
|
|
142
|
+
"type": "text",
|
|
143
|
+
"primaryKey": false,
|
|
144
|
+
"notNull": true
|
|
145
|
+
},
|
|
146
|
+
"title": {
|
|
147
|
+
"name": "title",
|
|
148
|
+
"type": "text",
|
|
149
|
+
"primaryKey": false,
|
|
150
|
+
"notNull": true
|
|
151
|
+
},
|
|
152
|
+
"titleStatus": {
|
|
153
|
+
"name": "titleStatus",
|
|
154
|
+
"type": "text",
|
|
155
|
+
"primaryKey": false,
|
|
156
|
+
"notNull": true,
|
|
157
|
+
"default": "'pending'"
|
|
158
|
+
},
|
|
159
|
+
"updatedAt": {
|
|
160
|
+
"name": "updatedAt",
|
|
161
|
+
"type": "timestamp",
|
|
162
|
+
"primaryKey": false,
|
|
163
|
+
"notNull": true,
|
|
164
|
+
"default": "now()"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"indexes": {
|
|
168
|
+
"EveChat_owner_activity": {
|
|
169
|
+
"name": "EveChat_owner_activity",
|
|
170
|
+
"columns": [
|
|
171
|
+
{
|
|
172
|
+
"expression": "ownerId",
|
|
173
|
+
"isExpression": false,
|
|
174
|
+
"asc": true,
|
|
175
|
+
"nulls": "last"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"expression": "isPinned",
|
|
179
|
+
"isExpression": false,
|
|
180
|
+
"asc": true,
|
|
181
|
+
"nulls": "last"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"expression": "updatedAt",
|
|
185
|
+
"isExpression": false,
|
|
186
|
+
"asc": true,
|
|
187
|
+
"nulls": "last"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"isUnique": false,
|
|
191
|
+
"concurrently": false,
|
|
192
|
+
"method": "btree",
|
|
193
|
+
"with": {}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"foreignKeys": {
|
|
197
|
+
"EveChat_ownerId_user_id_fk": {
|
|
198
|
+
"name": "EveChat_ownerId_user_id_fk",
|
|
199
|
+
"tableFrom": "EveChat",
|
|
200
|
+
"tableTo": "user",
|
|
201
|
+
"columnsFrom": ["ownerId"],
|
|
202
|
+
"columnsTo": ["id"],
|
|
203
|
+
"onDelete": "cascade",
|
|
204
|
+
"onUpdate": "no action"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"compositePrimaryKeys": {},
|
|
208
|
+
"uniqueConstraints": {
|
|
209
|
+
"EveChat_id_owner": {
|
|
210
|
+
"name": "EveChat_id_owner",
|
|
211
|
+
"nullsNotDistinct": false,
|
|
212
|
+
"columns": ["id", "ownerId"]
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"policies": {},
|
|
216
|
+
"checkConstraints": {
|
|
217
|
+
"EveChat_title_status": {
|
|
218
|
+
"name": "EveChat_title_status",
|
|
219
|
+
"value": "\"EveChat\".\"titleStatus\" in ('pending', 'fallback', 'generated', 'manual')"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"isRLSEnabled": false
|
|
223
|
+
},
|
|
224
|
+
"public.EveChatProject": {
|
|
225
|
+
"name": "EveChatProject",
|
|
226
|
+
"schema": "",
|
|
227
|
+
"columns": {
|
|
228
|
+
"chatId": {
|
|
229
|
+
"name": "chatId",
|
|
230
|
+
"type": "uuid",
|
|
231
|
+
"primaryKey": true,
|
|
232
|
+
"notNull": true
|
|
233
|
+
},
|
|
234
|
+
"ownerId": {
|
|
235
|
+
"name": "ownerId",
|
|
236
|
+
"type": "text",
|
|
237
|
+
"primaryKey": false,
|
|
238
|
+
"notNull": true
|
|
239
|
+
},
|
|
240
|
+
"projectId": {
|
|
241
|
+
"name": "projectId",
|
|
242
|
+
"type": "uuid",
|
|
243
|
+
"primaryKey": false,
|
|
244
|
+
"notNull": true
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"indexes": {
|
|
248
|
+
"EveChatProject_project": {
|
|
249
|
+
"name": "EveChatProject_project",
|
|
250
|
+
"columns": [
|
|
251
|
+
{
|
|
252
|
+
"expression": "projectId",
|
|
253
|
+
"isExpression": false,
|
|
254
|
+
"asc": true,
|
|
255
|
+
"nulls": "last"
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"isUnique": false,
|
|
259
|
+
"concurrently": false,
|
|
260
|
+
"method": "btree",
|
|
261
|
+
"with": {}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"foreignKeys": {
|
|
265
|
+
"EveChatProject_chatId_ownerId_EveChat_id_ownerId_fk": {
|
|
266
|
+
"name": "EveChatProject_chatId_ownerId_EveChat_id_ownerId_fk",
|
|
267
|
+
"tableFrom": "EveChatProject",
|
|
268
|
+
"tableTo": "EveChat",
|
|
269
|
+
"columnsFrom": ["chatId", "ownerId"],
|
|
270
|
+
"columnsTo": ["id", "ownerId"],
|
|
271
|
+
"onDelete": "cascade",
|
|
272
|
+
"onUpdate": "no action"
|
|
273
|
+
},
|
|
274
|
+
"EveChatProject_projectId_ownerId_Project_id_userId_fk": {
|
|
275
|
+
"name": "EveChatProject_projectId_ownerId_Project_id_userId_fk",
|
|
276
|
+
"tableFrom": "EveChatProject",
|
|
277
|
+
"tableTo": "Project",
|
|
278
|
+
"columnsFrom": ["projectId", "ownerId"],
|
|
279
|
+
"columnsTo": ["id", "userId"],
|
|
280
|
+
"onDelete": "cascade",
|
|
281
|
+
"onUpdate": "no action"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"compositePrimaryKeys": {},
|
|
285
|
+
"uniqueConstraints": {},
|
|
286
|
+
"policies": {},
|
|
287
|
+
"checkConstraints": {},
|
|
288
|
+
"isRLSEnabled": false
|
|
289
|
+
},
|
|
290
|
+
"public.EveCodeSandbox": {
|
|
291
|
+
"name": "EveCodeSandbox",
|
|
292
|
+
"schema": "",
|
|
293
|
+
"columns": {
|
|
294
|
+
"callId": {
|
|
295
|
+
"name": "callId",
|
|
296
|
+
"type": "text",
|
|
297
|
+
"primaryKey": false,
|
|
298
|
+
"notNull": true
|
|
299
|
+
},
|
|
300
|
+
"conversationId": {
|
|
301
|
+
"name": "conversationId",
|
|
302
|
+
"type": "uuid",
|
|
303
|
+
"primaryKey": false,
|
|
304
|
+
"notNull": true
|
|
305
|
+
},
|
|
306
|
+
"createdAt": {
|
|
307
|
+
"name": "createdAt",
|
|
308
|
+
"type": "timestamp",
|
|
309
|
+
"primaryKey": false,
|
|
310
|
+
"notNull": true,
|
|
311
|
+
"default": "now()"
|
|
312
|
+
},
|
|
313
|
+
"creationConfirmed": {
|
|
314
|
+
"name": "creationConfirmed",
|
|
315
|
+
"type": "boolean",
|
|
316
|
+
"primaryKey": false,
|
|
317
|
+
"notNull": true,
|
|
318
|
+
"default": false
|
|
319
|
+
},
|
|
320
|
+
"name": {
|
|
321
|
+
"name": "name",
|
|
322
|
+
"type": "text",
|
|
323
|
+
"primaryKey": true,
|
|
324
|
+
"notNull": true
|
|
325
|
+
},
|
|
326
|
+
"ownerId": {
|
|
327
|
+
"name": "ownerId",
|
|
328
|
+
"type": "text",
|
|
329
|
+
"primaryKey": false,
|
|
330
|
+
"notNull": true
|
|
331
|
+
},
|
|
332
|
+
"state": {
|
|
333
|
+
"name": "state",
|
|
334
|
+
"type": "text",
|
|
335
|
+
"primaryKey": false,
|
|
336
|
+
"notNull": true,
|
|
337
|
+
"default": "'unresolved'"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"indexes": {
|
|
341
|
+
"EveCodeSandbox_conversation": {
|
|
342
|
+
"name": "EveCodeSandbox_conversation",
|
|
343
|
+
"columns": [
|
|
344
|
+
{
|
|
345
|
+
"expression": "conversationId",
|
|
346
|
+
"isExpression": false,
|
|
347
|
+
"asc": true,
|
|
348
|
+
"nulls": "last"
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"isUnique": false,
|
|
352
|
+
"concurrently": false,
|
|
353
|
+
"method": "btree",
|
|
354
|
+
"with": {}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"foreignKeys": {
|
|
358
|
+
"EveCodeSandbox_conversationId_ownerId_EveConversation_id_ownerId_fk": {
|
|
359
|
+
"name": "EveCodeSandbox_conversationId_ownerId_EveConversation_id_ownerId_fk",
|
|
360
|
+
"tableFrom": "EveCodeSandbox",
|
|
361
|
+
"tableTo": "EveConversation",
|
|
362
|
+
"columnsFrom": ["conversationId", "ownerId"],
|
|
363
|
+
"columnsTo": ["id", "ownerId"],
|
|
364
|
+
"onDelete": "no action",
|
|
365
|
+
"onUpdate": "no action"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"compositePrimaryKeys": {},
|
|
369
|
+
"uniqueConstraints": {},
|
|
370
|
+
"policies": {},
|
|
371
|
+
"checkConstraints": {},
|
|
372
|
+
"isRLSEnabled": false
|
|
373
|
+
},
|
|
374
|
+
"public.EveConversation": {
|
|
375
|
+
"name": "EveConversation",
|
|
376
|
+
"schema": "",
|
|
377
|
+
"columns": {
|
|
378
|
+
"chatId": {
|
|
379
|
+
"name": "chatId",
|
|
380
|
+
"type": "uuid",
|
|
381
|
+
"primaryKey": false,
|
|
382
|
+
"notNull": true
|
|
383
|
+
},
|
|
384
|
+
"createdAt": {
|
|
385
|
+
"name": "createdAt",
|
|
386
|
+
"type": "timestamp",
|
|
387
|
+
"primaryKey": false,
|
|
388
|
+
"notNull": true,
|
|
389
|
+
"default": "now()"
|
|
390
|
+
},
|
|
391
|
+
"creationKind": {
|
|
392
|
+
"name": "creationKind",
|
|
393
|
+
"type": "text",
|
|
394
|
+
"primaryKey": false,
|
|
395
|
+
"notNull": true,
|
|
396
|
+
"default": "'message'"
|
|
397
|
+
},
|
|
398
|
+
"firstMessage": {
|
|
399
|
+
"name": "firstMessage",
|
|
400
|
+
"type": "text",
|
|
401
|
+
"primaryKey": false,
|
|
402
|
+
"notNull": true
|
|
403
|
+
},
|
|
404
|
+
"forkCheckpointId": {
|
|
405
|
+
"name": "forkCheckpointId",
|
|
406
|
+
"type": "uuid",
|
|
407
|
+
"primaryKey": false,
|
|
408
|
+
"notNull": false
|
|
409
|
+
},
|
|
410
|
+
"forkKind": {
|
|
411
|
+
"name": "forkKind",
|
|
412
|
+
"type": "text",
|
|
413
|
+
"primaryKey": false,
|
|
414
|
+
"notNull": false
|
|
415
|
+
},
|
|
416
|
+
"forkMessageId": {
|
|
417
|
+
"name": "forkMessageId",
|
|
418
|
+
"type": "text",
|
|
419
|
+
"primaryKey": false,
|
|
420
|
+
"notNull": false
|
|
421
|
+
},
|
|
422
|
+
"forkTurnId": {
|
|
423
|
+
"name": "forkTurnId",
|
|
424
|
+
"type": "text",
|
|
425
|
+
"primaryKey": false,
|
|
426
|
+
"notNull": false
|
|
427
|
+
},
|
|
428
|
+
"guestCleanupAttemptedAt": {
|
|
429
|
+
"name": "guestCleanupAttemptedAt",
|
|
430
|
+
"type": "timestamp with time zone",
|
|
431
|
+
"primaryKey": false,
|
|
432
|
+
"notNull": false
|
|
433
|
+
},
|
|
434
|
+
"id": {
|
|
435
|
+
"name": "id",
|
|
436
|
+
"type": "uuid",
|
|
437
|
+
"primaryKey": true,
|
|
438
|
+
"notNull": true,
|
|
439
|
+
"default": "gen_random_uuid()"
|
|
440
|
+
},
|
|
441
|
+
"initialContentHash": {
|
|
442
|
+
"name": "initialContentHash",
|
|
443
|
+
"type": "text",
|
|
444
|
+
"primaryKey": false,
|
|
445
|
+
"notNull": false
|
|
446
|
+
},
|
|
447
|
+
"initialModelId": {
|
|
448
|
+
"name": "initialModelId",
|
|
449
|
+
"type": "text",
|
|
450
|
+
"primaryKey": false,
|
|
451
|
+
"notNull": false
|
|
452
|
+
},
|
|
453
|
+
"initialProjectId": {
|
|
454
|
+
"name": "initialProjectId",
|
|
455
|
+
"type": "uuid",
|
|
456
|
+
"primaryKey": false,
|
|
457
|
+
"notNull": false
|
|
458
|
+
},
|
|
459
|
+
"initialRequest": {
|
|
460
|
+
"name": "initialRequest",
|
|
461
|
+
"type": "jsonb",
|
|
462
|
+
"primaryKey": false,
|
|
463
|
+
"notNull": false
|
|
464
|
+
},
|
|
465
|
+
"operationId": {
|
|
466
|
+
"name": "operationId",
|
|
467
|
+
"type": "uuid",
|
|
468
|
+
"primaryKey": false,
|
|
469
|
+
"notNull": true
|
|
470
|
+
},
|
|
471
|
+
"ownerId": {
|
|
472
|
+
"name": "ownerId",
|
|
473
|
+
"type": "text",
|
|
474
|
+
"primaryKey": false,
|
|
475
|
+
"notNull": true
|
|
476
|
+
},
|
|
477
|
+
"parentConversationId": {
|
|
478
|
+
"name": "parentConversationId",
|
|
479
|
+
"type": "uuid",
|
|
480
|
+
"primaryKey": false,
|
|
481
|
+
"notNull": false
|
|
482
|
+
},
|
|
483
|
+
"rootConversationId": {
|
|
484
|
+
"name": "rootConversationId",
|
|
485
|
+
"type": "uuid",
|
|
486
|
+
"primaryKey": false,
|
|
487
|
+
"notNull": false
|
|
488
|
+
},
|
|
489
|
+
"sessionId": {
|
|
490
|
+
"name": "sessionId",
|
|
491
|
+
"type": "text",
|
|
492
|
+
"primaryKey": false,
|
|
493
|
+
"notNull": false
|
|
494
|
+
},
|
|
495
|
+
"state": {
|
|
496
|
+
"name": "state",
|
|
497
|
+
"type": "text",
|
|
498
|
+
"primaryKey": false,
|
|
499
|
+
"notNull": true,
|
|
500
|
+
"default": "'creating'"
|
|
501
|
+
},
|
|
502
|
+
"usageStreamIndex": {
|
|
503
|
+
"name": "usageStreamIndex",
|
|
504
|
+
"type": "integer",
|
|
505
|
+
"primaryKey": false,
|
|
506
|
+
"notNull": true,
|
|
507
|
+
"default": 0
|
|
508
|
+
},
|
|
509
|
+
"visibility": {
|
|
510
|
+
"name": "visibility",
|
|
511
|
+
"type": "varchar",
|
|
512
|
+
"primaryKey": false,
|
|
513
|
+
"notNull": true,
|
|
514
|
+
"default": "'private'"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"indexes": {
|
|
518
|
+
"EveConversation_owner_chat": {
|
|
519
|
+
"name": "EveConversation_owner_chat",
|
|
520
|
+
"columns": [
|
|
521
|
+
{
|
|
522
|
+
"expression": "ownerId",
|
|
523
|
+
"isExpression": false,
|
|
524
|
+
"asc": true,
|
|
525
|
+
"nulls": "last"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"expression": "chatId",
|
|
529
|
+
"isExpression": false,
|
|
530
|
+
"asc": true,
|
|
531
|
+
"nulls": "last"
|
|
532
|
+
}
|
|
533
|
+
],
|
|
534
|
+
"isUnique": false,
|
|
535
|
+
"concurrently": false,
|
|
536
|
+
"method": "btree",
|
|
537
|
+
"with": {}
|
|
538
|
+
},
|
|
539
|
+
"EveConversation_owner_root": {
|
|
540
|
+
"name": "EveConversation_owner_root",
|
|
541
|
+
"columns": [
|
|
542
|
+
{
|
|
543
|
+
"expression": "ownerId",
|
|
544
|
+
"isExpression": false,
|
|
545
|
+
"asc": true,
|
|
546
|
+
"nulls": "last"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"expression": "rootConversationId",
|
|
550
|
+
"isExpression": false,
|
|
551
|
+
"asc": true,
|
|
552
|
+
"nulls": "last"
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
"isUnique": false,
|
|
556
|
+
"concurrently": false,
|
|
557
|
+
"method": "btree",
|
|
558
|
+
"with": {}
|
|
559
|
+
},
|
|
560
|
+
"EveConversation_owner_operation": {
|
|
561
|
+
"name": "EveConversation_owner_operation",
|
|
562
|
+
"columns": [
|
|
563
|
+
{
|
|
564
|
+
"expression": "ownerId",
|
|
565
|
+
"isExpression": false,
|
|
566
|
+
"asc": true,
|
|
567
|
+
"nulls": "last"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"expression": "operationId",
|
|
571
|
+
"isExpression": false,
|
|
572
|
+
"asc": true,
|
|
573
|
+
"nulls": "last"
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"isUnique": true,
|
|
577
|
+
"concurrently": false,
|
|
578
|
+
"method": "btree",
|
|
579
|
+
"with": {}
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
"foreignKeys": {
|
|
583
|
+
"EveConversation_ownerId_user_id_fk": {
|
|
584
|
+
"name": "EveConversation_ownerId_user_id_fk",
|
|
585
|
+
"tableFrom": "EveConversation",
|
|
586
|
+
"tableTo": "user",
|
|
587
|
+
"columnsFrom": ["ownerId"],
|
|
588
|
+
"columnsTo": ["id"],
|
|
589
|
+
"onDelete": "no action",
|
|
590
|
+
"onUpdate": "no action"
|
|
591
|
+
},
|
|
592
|
+
"EveConversation_chat_owner_fk": {
|
|
593
|
+
"name": "EveConversation_chat_owner_fk",
|
|
594
|
+
"tableFrom": "EveConversation",
|
|
595
|
+
"tableTo": "EveChat",
|
|
596
|
+
"columnsFrom": ["chatId", "ownerId"],
|
|
597
|
+
"columnsTo": ["id", "ownerId"],
|
|
598
|
+
"onDelete": "no action",
|
|
599
|
+
"onUpdate": "no action"
|
|
600
|
+
},
|
|
601
|
+
"EveConversation_parent_owner_fk": {
|
|
602
|
+
"name": "EveConversation_parent_owner_fk",
|
|
603
|
+
"tableFrom": "EveConversation",
|
|
604
|
+
"tableTo": "EveConversation",
|
|
605
|
+
"columnsFrom": ["parentConversationId", "ownerId", "chatId"],
|
|
606
|
+
"columnsTo": ["id", "ownerId", "chatId"],
|
|
607
|
+
"onDelete": "no action",
|
|
608
|
+
"onUpdate": "no action"
|
|
609
|
+
},
|
|
610
|
+
"EveConversation_root_owner_fk": {
|
|
611
|
+
"name": "EveConversation_root_owner_fk",
|
|
612
|
+
"tableFrom": "EveConversation",
|
|
613
|
+
"tableTo": "EveConversation",
|
|
614
|
+
"columnsFrom": ["rootConversationId", "ownerId", "chatId"],
|
|
615
|
+
"columnsTo": ["id", "ownerId", "chatId"],
|
|
616
|
+
"onDelete": "no action",
|
|
617
|
+
"onUpdate": "no action"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"compositePrimaryKeys": {},
|
|
621
|
+
"uniqueConstraints": {
|
|
622
|
+
"EveConversation_sessionId_unique": {
|
|
623
|
+
"name": "EveConversation_sessionId_unique",
|
|
624
|
+
"nullsNotDistinct": false,
|
|
625
|
+
"columns": ["sessionId"]
|
|
626
|
+
},
|
|
627
|
+
"EveConversation_id_owner": {
|
|
628
|
+
"name": "EveConversation_id_owner",
|
|
629
|
+
"nullsNotDistinct": false,
|
|
630
|
+
"columns": ["id", "ownerId"]
|
|
631
|
+
},
|
|
632
|
+
"EveConversation_id_owner_chat": {
|
|
633
|
+
"name": "EveConversation_id_owner_chat",
|
|
634
|
+
"nullsNotDistinct": false,
|
|
635
|
+
"columns": ["id", "ownerId", "chatId"]
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"policies": {},
|
|
639
|
+
"checkConstraints": {
|
|
640
|
+
"EveConversation_creation_kind": {
|
|
641
|
+
"name": "EveConversation_creation_kind",
|
|
642
|
+
"value": "\"EveConversation\".\"creationKind\" in ('message', 'copy')"
|
|
643
|
+
},
|
|
644
|
+
"EveConversation_copy_root": {
|
|
645
|
+
"name": "EveConversation_copy_root",
|
|
646
|
+
"value": "\"EveConversation\".\"creationKind\" <> 'copy' or (\n \"EveConversation\".\"parentConversationId\" is null and \"EveConversation\".\"rootConversationId\" is null and\n \"EveConversation\".\"forkTurnId\" is null and \"EveConversation\".\"forkMessageId\" is null and \"EveConversation\".\"forkCheckpointId\" is null and\n \"EveConversation\".\"forkKind\" is null\n )"
|
|
647
|
+
},
|
|
648
|
+
"EveConversation_named_fork_shape": {
|
|
649
|
+
"name": "EveConversation_named_fork_shape",
|
|
650
|
+
"value": "\"EveConversation\".\"forkCheckpointId\" is null or (\n \"EveConversation\".\"parentConversationId\" is not null and \"EveConversation\".\"forkMessageId\" is null\n )"
|
|
651
|
+
},
|
|
652
|
+
"EveConversation_fork_shape": {
|
|
653
|
+
"name": "EveConversation_fork_shape",
|
|
654
|
+
"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 not null and \"EveConversation\".\"forkTurnId\" ~ '^turn_(0|[1-9][0-9]*)$' and \"EveConversation\".\"forkMessageId\" is null) or\n (\"EveConversation\".\"forkMessageId\" is not null and \"EveConversation\".\"forkMessageId\" ~ '^seed_message_(0|[1-9][0-9]{0,3})$' and \"EveConversation\".\"forkTurnId\" is null)\n ) and\n \"EveConversation\".\"parentConversationId\" <> \"EveConversation\".\"id\" and \"EveConversation\".\"rootConversationId\" <> \"EveConversation\".\"id\"\n )"
|
|
655
|
+
},
|
|
656
|
+
"EveConversation_fork_kind": {
|
|
657
|
+
"name": "EveConversation_fork_kind",
|
|
658
|
+
"value": "\"EveConversation\".\"forkKind\" is null or \"EveConversation\".\"forkKind\" in ('edit', 'regenerate', 'comparison')"
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"isRLSEnabled": false
|
|
662
|
+
},
|
|
663
|
+
"public.EveConversationCopy": {
|
|
664
|
+
"name": "EveConversationCopy",
|
|
665
|
+
"schema": "",
|
|
666
|
+
"columns": {
|
|
667
|
+
"acceptedAt": {
|
|
668
|
+
"name": "acceptedAt",
|
|
669
|
+
"type": "timestamp",
|
|
670
|
+
"primaryKey": false,
|
|
671
|
+
"notNull": false
|
|
672
|
+
},
|
|
673
|
+
"conversationId": {
|
|
674
|
+
"name": "conversationId",
|
|
675
|
+
"type": "uuid",
|
|
676
|
+
"primaryKey": true,
|
|
677
|
+
"notNull": true
|
|
678
|
+
},
|
|
679
|
+
"documentsReady": {
|
|
680
|
+
"name": "documentsReady",
|
|
681
|
+
"type": "boolean",
|
|
682
|
+
"primaryKey": false,
|
|
683
|
+
"notNull": true,
|
|
684
|
+
"default": false
|
|
685
|
+
},
|
|
686
|
+
"ownerId": {
|
|
687
|
+
"name": "ownerId",
|
|
688
|
+
"type": "text",
|
|
689
|
+
"primaryKey": false,
|
|
690
|
+
"notNull": true
|
|
691
|
+
},
|
|
692
|
+
"phase": {
|
|
693
|
+
"name": "phase",
|
|
694
|
+
"type": "text",
|
|
695
|
+
"primaryKey": false,
|
|
696
|
+
"notNull": true,
|
|
697
|
+
"default": "'preparing'"
|
|
698
|
+
},
|
|
699
|
+
"plan": {
|
|
700
|
+
"name": "plan",
|
|
701
|
+
"type": "jsonb",
|
|
702
|
+
"primaryKey": false,
|
|
703
|
+
"notNull": false
|
|
704
|
+
},
|
|
705
|
+
"planHash": {
|
|
706
|
+
"name": "planHash",
|
|
707
|
+
"type": "text",
|
|
708
|
+
"primaryKey": false,
|
|
709
|
+
"notNull": true
|
|
710
|
+
},
|
|
711
|
+
"projectionHash": {
|
|
712
|
+
"name": "projectionHash",
|
|
713
|
+
"type": "text",
|
|
714
|
+
"primaryKey": false,
|
|
715
|
+
"notNull": true
|
|
716
|
+
},
|
|
717
|
+
"seed": {
|
|
718
|
+
"name": "seed",
|
|
719
|
+
"type": "jsonb",
|
|
720
|
+
"primaryKey": false,
|
|
721
|
+
"notNull": false
|
|
722
|
+
},
|
|
723
|
+
"sourceConversationId": {
|
|
724
|
+
"name": "sourceConversationId",
|
|
725
|
+
"type": "uuid",
|
|
726
|
+
"primaryKey": false,
|
|
727
|
+
"notNull": true
|
|
728
|
+
},
|
|
729
|
+
"sourceOwnerId": {
|
|
730
|
+
"name": "sourceOwnerId",
|
|
731
|
+
"type": "text",
|
|
732
|
+
"primaryKey": false,
|
|
733
|
+
"notNull": true
|
|
734
|
+
},
|
|
735
|
+
"sourceSessionId": {
|
|
736
|
+
"name": "sourceSessionId",
|
|
737
|
+
"type": "text",
|
|
738
|
+
"primaryKey": false,
|
|
739
|
+
"notNull": true
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"indexes": {},
|
|
743
|
+
"foreignKeys": {
|
|
744
|
+
"EveConversationCopy_owner_fk": {
|
|
745
|
+
"name": "EveConversationCopy_owner_fk",
|
|
746
|
+
"tableFrom": "EveConversationCopy",
|
|
747
|
+
"tableTo": "EveConversation",
|
|
748
|
+
"columnsFrom": ["conversationId", "ownerId"],
|
|
749
|
+
"columnsTo": ["id", "ownerId"],
|
|
750
|
+
"onDelete": "no action",
|
|
751
|
+
"onUpdate": "no action"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"compositePrimaryKeys": {},
|
|
755
|
+
"uniqueConstraints": {
|
|
756
|
+
"EveConversationCopy_owner_identity": {
|
|
757
|
+
"name": "EveConversationCopy_owner_identity",
|
|
758
|
+
"nullsNotDistinct": false,
|
|
759
|
+
"columns": ["conversationId", "ownerId"]
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"policies": {},
|
|
763
|
+
"checkConstraints": {
|
|
764
|
+
"EveConversationCopy_phase_payload": {
|
|
765
|
+
"name": "EveConversationCopy_phase_payload",
|
|
766
|
+
"value": "(\n \"EveConversationCopy\".\"phase\" = 'preparing' and \"EveConversationCopy\".\"plan\" is not null and \"EveConversationCopy\".\"seed\" is null and \"EveConversationCopy\".\"acceptedAt\" is null\n ) or (\n \"EveConversationCopy\".\"phase\" = 'accepted' and \"EveConversationCopy\".\"plan\" is null and \"EveConversationCopy\".\"seed\" is not null and \"EveConversationCopy\".\"acceptedAt\" is not null and \"EveConversationCopy\".\"documentsReady\"\n ) or (\n \"EveConversationCopy\".\"phase\" = 'bound' and \"EveConversationCopy\".\"plan\" is null and \"EveConversationCopy\".\"seed\" is null and \"EveConversationCopy\".\"acceptedAt\" is not null and \"EveConversationCopy\".\"documentsReady\"\n ) or (\n \"EveConversationCopy\".\"phase\" = 'rejected' and \"EveConversationCopy\".\"plan\" is null and \"EveConversationCopy\".\"seed\" is null and \"EveConversationCopy\".\"acceptedAt\" is null\n )"
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"isRLSEnabled": false
|
|
770
|
+
},
|
|
771
|
+
"public.EveConversationCopyFile": {
|
|
772
|
+
"name": "EveConversationCopyFile",
|
|
773
|
+
"schema": "",
|
|
774
|
+
"columns": {
|
|
775
|
+
"conversationId": {
|
|
776
|
+
"name": "conversationId",
|
|
777
|
+
"type": "uuid",
|
|
778
|
+
"primaryKey": false,
|
|
779
|
+
"notNull": true
|
|
780
|
+
},
|
|
781
|
+
"key": {
|
|
782
|
+
"name": "key",
|
|
783
|
+
"type": "text",
|
|
784
|
+
"primaryKey": false,
|
|
785
|
+
"notNull": true
|
|
786
|
+
},
|
|
787
|
+
"mediaType": {
|
|
788
|
+
"name": "mediaType",
|
|
789
|
+
"type": "text",
|
|
790
|
+
"primaryKey": false,
|
|
791
|
+
"notNull": true
|
|
792
|
+
},
|
|
793
|
+
"ownerId": {
|
|
794
|
+
"name": "ownerId",
|
|
795
|
+
"type": "text",
|
|
796
|
+
"primaryKey": false,
|
|
797
|
+
"notNull": true
|
|
798
|
+
},
|
|
799
|
+
"sha256": {
|
|
800
|
+
"name": "sha256",
|
|
801
|
+
"type": "text",
|
|
802
|
+
"primaryKey": false,
|
|
803
|
+
"notNull": true
|
|
804
|
+
},
|
|
805
|
+
"size": {
|
|
806
|
+
"name": "size",
|
|
807
|
+
"type": "integer",
|
|
808
|
+
"primaryKey": false,
|
|
809
|
+
"notNull": true
|
|
810
|
+
},
|
|
811
|
+
"writtenAt": {
|
|
812
|
+
"name": "writtenAt",
|
|
813
|
+
"type": "timestamp",
|
|
814
|
+
"primaryKey": false,
|
|
815
|
+
"notNull": false
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"indexes": {},
|
|
819
|
+
"foreignKeys": {
|
|
820
|
+
"EveConversationCopyFile_copy_owner_fk": {
|
|
821
|
+
"name": "EveConversationCopyFile_copy_owner_fk",
|
|
822
|
+
"tableFrom": "EveConversationCopyFile",
|
|
823
|
+
"tableTo": "EveConversationCopy",
|
|
824
|
+
"columnsFrom": ["conversationId", "ownerId"],
|
|
825
|
+
"columnsTo": ["conversationId", "ownerId"],
|
|
826
|
+
"onDelete": "no action",
|
|
827
|
+
"onUpdate": "no action"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
"compositePrimaryKeys": {
|
|
831
|
+
"EveConversationCopyFile_conversationId_key_pk": {
|
|
832
|
+
"name": "EveConversationCopyFile_conversationId_key_pk",
|
|
833
|
+
"columns": ["conversationId", "key"]
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"uniqueConstraints": {},
|
|
837
|
+
"policies": {},
|
|
838
|
+
"checkConstraints": {
|
|
839
|
+
"EveConversationCopyFile_size": {
|
|
840
|
+
"name": "EveConversationCopyFile_size",
|
|
841
|
+
"value": "\"EveConversationCopyFile\".\"size\" > 0"
|
|
842
|
+
},
|
|
843
|
+
"EveConversationCopyFile_hash": {
|
|
844
|
+
"name": "EveConversationCopyFile_hash",
|
|
845
|
+
"value": "\"EveConversationCopyFile\".\"sha256\" ~ '^[a-f0-9]{64}$'"
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
"isRLSEnabled": false
|
|
849
|
+
},
|
|
850
|
+
"public.EveDocumentCheckpoint": {
|
|
851
|
+
"name": "EveDocumentCheckpoint",
|
|
852
|
+
"schema": "",
|
|
853
|
+
"columns": {
|
|
854
|
+
"conversationId": {
|
|
855
|
+
"name": "conversationId",
|
|
856
|
+
"type": "uuid",
|
|
857
|
+
"primaryKey": false,
|
|
858
|
+
"notNull": true
|
|
859
|
+
},
|
|
860
|
+
"ownerId": {
|
|
861
|
+
"name": "ownerId",
|
|
862
|
+
"type": "text",
|
|
863
|
+
"primaryKey": false,
|
|
864
|
+
"notNull": true
|
|
865
|
+
},
|
|
866
|
+
"turnIndex": {
|
|
867
|
+
"name": "turnIndex",
|
|
868
|
+
"type": "integer",
|
|
869
|
+
"primaryKey": false,
|
|
870
|
+
"notNull": true
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"indexes": {},
|
|
874
|
+
"foreignKeys": {
|
|
875
|
+
"EveDocumentCheckpoint_conversation_owner_fk": {
|
|
876
|
+
"name": "EveDocumentCheckpoint_conversation_owner_fk",
|
|
877
|
+
"tableFrom": "EveDocumentCheckpoint",
|
|
878
|
+
"tableTo": "EveConversation",
|
|
879
|
+
"columnsFrom": ["conversationId", "ownerId"],
|
|
880
|
+
"columnsTo": ["id", "ownerId"],
|
|
881
|
+
"onDelete": "no action",
|
|
882
|
+
"onUpdate": "no action"
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
"compositePrimaryKeys": {
|
|
886
|
+
"EveDocumentCheckpoint_conversationId_turnIndex_pk": {
|
|
887
|
+
"name": "EveDocumentCheckpoint_conversationId_turnIndex_pk",
|
|
888
|
+
"columns": ["conversationId", "turnIndex"]
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"uniqueConstraints": {
|
|
892
|
+
"EveDocumentCheckpoint_owner_identity": {
|
|
893
|
+
"name": "EveDocumentCheckpoint_owner_identity",
|
|
894
|
+
"nullsNotDistinct": false,
|
|
895
|
+
"columns": ["conversationId", "turnIndex", "ownerId"]
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
"policies": {},
|
|
899
|
+
"checkConstraints": {
|
|
900
|
+
"EveDocumentCheckpoint_turn_nonnegative": {
|
|
901
|
+
"name": "EveDocumentCheckpoint_turn_nonnegative",
|
|
902
|
+
"value": "\"EveDocumentCheckpoint\".\"turnIndex\" >= 0"
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
"isRLSEnabled": false
|
|
906
|
+
},
|
|
907
|
+
"public.EveDocumentCheckpointEntry": {
|
|
908
|
+
"name": "EveDocumentCheckpointEntry",
|
|
909
|
+
"schema": "",
|
|
910
|
+
"columns": {
|
|
911
|
+
"conversationId": {
|
|
912
|
+
"name": "conversationId",
|
|
913
|
+
"type": "uuid",
|
|
914
|
+
"primaryKey": false,
|
|
915
|
+
"notNull": true
|
|
916
|
+
},
|
|
917
|
+
"documentId": {
|
|
918
|
+
"name": "documentId",
|
|
919
|
+
"type": "uuid",
|
|
920
|
+
"primaryKey": false,
|
|
921
|
+
"notNull": true
|
|
922
|
+
},
|
|
923
|
+
"ownerId": {
|
|
924
|
+
"name": "ownerId",
|
|
925
|
+
"type": "text",
|
|
926
|
+
"primaryKey": false,
|
|
927
|
+
"notNull": true
|
|
928
|
+
},
|
|
929
|
+
"revisionId": {
|
|
930
|
+
"name": "revisionId",
|
|
931
|
+
"type": "uuid",
|
|
932
|
+
"primaryKey": false,
|
|
933
|
+
"notNull": true
|
|
934
|
+
},
|
|
935
|
+
"turnIndex": {
|
|
936
|
+
"name": "turnIndex",
|
|
937
|
+
"type": "integer",
|
|
938
|
+
"primaryKey": false,
|
|
939
|
+
"notNull": true
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
"indexes": {},
|
|
943
|
+
"foreignKeys": {
|
|
944
|
+
"EveDocumentCheckpointEntry_checkpoint_owner_fk": {
|
|
945
|
+
"name": "EveDocumentCheckpointEntry_checkpoint_owner_fk",
|
|
946
|
+
"tableFrom": "EveDocumentCheckpointEntry",
|
|
947
|
+
"tableTo": "EveDocumentCheckpoint",
|
|
948
|
+
"columnsFrom": ["conversationId", "turnIndex", "ownerId"],
|
|
949
|
+
"columnsTo": ["conversationId", "turnIndex", "ownerId"],
|
|
950
|
+
"onDelete": "no action",
|
|
951
|
+
"onUpdate": "no action"
|
|
952
|
+
},
|
|
953
|
+
"EveDocumentCheckpointEntry_revision_owner_fk": {
|
|
954
|
+
"name": "EveDocumentCheckpointEntry_revision_owner_fk",
|
|
955
|
+
"tableFrom": "EveDocumentCheckpointEntry",
|
|
956
|
+
"tableTo": "EveDocumentRevision",
|
|
957
|
+
"columnsFrom": ["revisionId", "documentId", "ownerId"],
|
|
958
|
+
"columnsTo": ["id", "documentId", "ownerId"],
|
|
959
|
+
"onDelete": "no action",
|
|
960
|
+
"onUpdate": "no action"
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"compositePrimaryKeys": {
|
|
964
|
+
"EveDocumentCheckpointEntry_conversationId_turnIndex_documentId_pk": {
|
|
965
|
+
"name": "EveDocumentCheckpointEntry_conversationId_turnIndex_documentId_pk",
|
|
966
|
+
"columns": ["conversationId", "turnIndex", "documentId"]
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
"uniqueConstraints": {},
|
|
970
|
+
"policies": {},
|
|
971
|
+
"checkConstraints": {},
|
|
972
|
+
"isRLSEnabled": false
|
|
973
|
+
},
|
|
974
|
+
"public.EveDocumentHead": {
|
|
975
|
+
"name": "EveDocumentHead",
|
|
976
|
+
"schema": "",
|
|
977
|
+
"columns": {
|
|
978
|
+
"conversationId": {
|
|
979
|
+
"name": "conversationId",
|
|
980
|
+
"type": "uuid",
|
|
981
|
+
"primaryKey": false,
|
|
982
|
+
"notNull": true
|
|
983
|
+
},
|
|
984
|
+
"documentId": {
|
|
985
|
+
"name": "documentId",
|
|
986
|
+
"type": "uuid",
|
|
987
|
+
"primaryKey": false,
|
|
988
|
+
"notNull": true
|
|
989
|
+
},
|
|
990
|
+
"ownerId": {
|
|
991
|
+
"name": "ownerId",
|
|
992
|
+
"type": "text",
|
|
993
|
+
"primaryKey": false,
|
|
994
|
+
"notNull": true
|
|
995
|
+
},
|
|
996
|
+
"revisionId": {
|
|
997
|
+
"name": "revisionId",
|
|
998
|
+
"type": "uuid",
|
|
999
|
+
"primaryKey": false,
|
|
1000
|
+
"notNull": true
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
"indexes": {},
|
|
1004
|
+
"foreignKeys": {
|
|
1005
|
+
"EveDocumentHead_conversation_owner_fk": {
|
|
1006
|
+
"name": "EveDocumentHead_conversation_owner_fk",
|
|
1007
|
+
"tableFrom": "EveDocumentHead",
|
|
1008
|
+
"tableTo": "EveConversation",
|
|
1009
|
+
"columnsFrom": ["conversationId", "ownerId"],
|
|
1010
|
+
"columnsTo": ["id", "ownerId"],
|
|
1011
|
+
"onDelete": "no action",
|
|
1012
|
+
"onUpdate": "no action"
|
|
1013
|
+
},
|
|
1014
|
+
"EveDocumentHead_revision_document_owner_fk": {
|
|
1015
|
+
"name": "EveDocumentHead_revision_document_owner_fk",
|
|
1016
|
+
"tableFrom": "EveDocumentHead",
|
|
1017
|
+
"tableTo": "EveDocumentRevision",
|
|
1018
|
+
"columnsFrom": ["revisionId", "documentId", "ownerId"],
|
|
1019
|
+
"columnsTo": ["id", "documentId", "ownerId"],
|
|
1020
|
+
"onDelete": "no action",
|
|
1021
|
+
"onUpdate": "no action"
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
"compositePrimaryKeys": {
|
|
1025
|
+
"EveDocumentHead_conversationId_documentId_pk": {
|
|
1026
|
+
"name": "EveDocumentHead_conversationId_documentId_pk",
|
|
1027
|
+
"columns": ["conversationId", "documentId"]
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"uniqueConstraints": {},
|
|
1031
|
+
"policies": {},
|
|
1032
|
+
"checkConstraints": {},
|
|
1033
|
+
"isRLSEnabled": false
|
|
1034
|
+
},
|
|
1035
|
+
"public.EveDocumentRevision": {
|
|
1036
|
+
"name": "EveDocumentRevision",
|
|
1037
|
+
"schema": "",
|
|
1038
|
+
"columns": {
|
|
1039
|
+
"content": {
|
|
1040
|
+
"name": "content",
|
|
1041
|
+
"type": "text",
|
|
1042
|
+
"primaryKey": false,
|
|
1043
|
+
"notNull": true
|
|
1044
|
+
},
|
|
1045
|
+
"fileIds": {
|
|
1046
|
+
"name": "fileIds",
|
|
1047
|
+
"type": "jsonb",
|
|
1048
|
+
"primaryKey": false,
|
|
1049
|
+
"notNull": true,
|
|
1050
|
+
"default": "'[]'::jsonb"
|
|
1051
|
+
},
|
|
1052
|
+
"conversationId": {
|
|
1053
|
+
"name": "conversationId",
|
|
1054
|
+
"type": "uuid",
|
|
1055
|
+
"primaryKey": false,
|
|
1056
|
+
"notNull": true
|
|
1057
|
+
},
|
|
1058
|
+
"createdAt": {
|
|
1059
|
+
"name": "createdAt",
|
|
1060
|
+
"type": "timestamp",
|
|
1061
|
+
"primaryKey": false,
|
|
1062
|
+
"notNull": true,
|
|
1063
|
+
"default": "now()"
|
|
1064
|
+
},
|
|
1065
|
+
"documentId": {
|
|
1066
|
+
"name": "documentId",
|
|
1067
|
+
"type": "uuid",
|
|
1068
|
+
"primaryKey": false,
|
|
1069
|
+
"notNull": true
|
|
1070
|
+
},
|
|
1071
|
+
"id": {
|
|
1072
|
+
"name": "id",
|
|
1073
|
+
"type": "uuid",
|
|
1074
|
+
"primaryKey": true,
|
|
1075
|
+
"notNull": true,
|
|
1076
|
+
"default": "gen_random_uuid()"
|
|
1077
|
+
},
|
|
1078
|
+
"kind": {
|
|
1079
|
+
"name": "kind",
|
|
1080
|
+
"type": "varchar",
|
|
1081
|
+
"primaryKey": false,
|
|
1082
|
+
"notNull": true
|
|
1083
|
+
},
|
|
1084
|
+
"operationId": {
|
|
1085
|
+
"name": "operationId",
|
|
1086
|
+
"type": "text",
|
|
1087
|
+
"primaryKey": false,
|
|
1088
|
+
"notNull": true
|
|
1089
|
+
},
|
|
1090
|
+
"ownerId": {
|
|
1091
|
+
"name": "ownerId",
|
|
1092
|
+
"type": "text",
|
|
1093
|
+
"primaryKey": false,
|
|
1094
|
+
"notNull": true
|
|
1095
|
+
},
|
|
1096
|
+
"parentRevisionId": {
|
|
1097
|
+
"name": "parentRevisionId",
|
|
1098
|
+
"type": "uuid",
|
|
1099
|
+
"primaryKey": false,
|
|
1100
|
+
"notNull": false
|
|
1101
|
+
},
|
|
1102
|
+
"title": {
|
|
1103
|
+
"name": "title",
|
|
1104
|
+
"type": "text",
|
|
1105
|
+
"primaryKey": false,
|
|
1106
|
+
"notNull": true
|
|
1107
|
+
},
|
|
1108
|
+
"turnIndex": {
|
|
1109
|
+
"name": "turnIndex",
|
|
1110
|
+
"type": "integer",
|
|
1111
|
+
"primaryKey": false,
|
|
1112
|
+
"notNull": false
|
|
1113
|
+
}
|
|
1114
|
+
},
|
|
1115
|
+
"indexes": {
|
|
1116
|
+
"EveDocumentRevision_operation": {
|
|
1117
|
+
"name": "EveDocumentRevision_operation",
|
|
1118
|
+
"columns": [
|
|
1119
|
+
{
|
|
1120
|
+
"expression": "conversationId",
|
|
1121
|
+
"isExpression": false,
|
|
1122
|
+
"asc": true,
|
|
1123
|
+
"nulls": "last"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"expression": "operationId",
|
|
1127
|
+
"isExpression": false,
|
|
1128
|
+
"asc": true,
|
|
1129
|
+
"nulls": "last"
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"isUnique": true,
|
|
1133
|
+
"concurrently": false,
|
|
1134
|
+
"method": "btree",
|
|
1135
|
+
"with": {}
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
"foreignKeys": {
|
|
1139
|
+
"EveDocumentRevision_conversation_owner_fk": {
|
|
1140
|
+
"name": "EveDocumentRevision_conversation_owner_fk",
|
|
1141
|
+
"tableFrom": "EveDocumentRevision",
|
|
1142
|
+
"tableTo": "EveConversation",
|
|
1143
|
+
"columnsFrom": ["conversationId", "ownerId"],
|
|
1144
|
+
"columnsTo": ["id", "ownerId"],
|
|
1145
|
+
"onDelete": "no action",
|
|
1146
|
+
"onUpdate": "no action"
|
|
1147
|
+
},
|
|
1148
|
+
"EveDocumentRevision_parent_document_owner_fk": {
|
|
1149
|
+
"name": "EveDocumentRevision_parent_document_owner_fk",
|
|
1150
|
+
"tableFrom": "EveDocumentRevision",
|
|
1151
|
+
"tableTo": "EveDocumentRevision",
|
|
1152
|
+
"columnsFrom": ["parentRevisionId", "documentId", "ownerId"],
|
|
1153
|
+
"columnsTo": ["id", "documentId", "ownerId"],
|
|
1154
|
+
"onDelete": "no action",
|
|
1155
|
+
"onUpdate": "no action"
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
"compositePrimaryKeys": {},
|
|
1159
|
+
"uniqueConstraints": {
|
|
1160
|
+
"EveDocumentRevision_identity": {
|
|
1161
|
+
"name": "EveDocumentRevision_identity",
|
|
1162
|
+
"nullsNotDistinct": false,
|
|
1163
|
+
"columns": ["id", "documentId", "ownerId"]
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
"policies": {},
|
|
1167
|
+
"checkConstraints": {
|
|
1168
|
+
"EveDocumentRevision_turn_nonnegative": {
|
|
1169
|
+
"name": "EveDocumentRevision_turn_nonnegative",
|
|
1170
|
+
"value": "\"EveDocumentRevision\".\"turnIndex\" >= 0"
|
|
1171
|
+
}
|
|
1172
|
+
},
|
|
1173
|
+
"isRLSEnabled": false
|
|
1174
|
+
},
|
|
1175
|
+
"public.EveFileReference": {
|
|
1176
|
+
"name": "EveFileReference",
|
|
1177
|
+
"schema": "",
|
|
1178
|
+
"columns": {
|
|
1179
|
+
"conversationId": {
|
|
1180
|
+
"name": "conversationId",
|
|
1181
|
+
"type": "uuid",
|
|
1182
|
+
"primaryKey": false,
|
|
1183
|
+
"notNull": true
|
|
1184
|
+
},
|
|
1185
|
+
"key": {
|
|
1186
|
+
"name": "key",
|
|
1187
|
+
"type": "text",
|
|
1188
|
+
"primaryKey": false,
|
|
1189
|
+
"notNull": true
|
|
1190
|
+
},
|
|
1191
|
+
"ownerId": {
|
|
1192
|
+
"name": "ownerId",
|
|
1193
|
+
"type": "text",
|
|
1194
|
+
"primaryKey": false,
|
|
1195
|
+
"notNull": true
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
"indexes": {
|
|
1199
|
+
"EveFileReference_key": {
|
|
1200
|
+
"name": "EveFileReference_key",
|
|
1201
|
+
"columns": [
|
|
1202
|
+
{
|
|
1203
|
+
"expression": "key",
|
|
1204
|
+
"isExpression": false,
|
|
1205
|
+
"asc": true,
|
|
1206
|
+
"nulls": "last"
|
|
1207
|
+
}
|
|
1208
|
+
],
|
|
1209
|
+
"isUnique": false,
|
|
1210
|
+
"concurrently": false,
|
|
1211
|
+
"method": "btree",
|
|
1212
|
+
"with": {}
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
"foreignKeys": {
|
|
1216
|
+
"EveFileReference_conversationId_ownerId_EveConversation_id_ownerId_fk": {
|
|
1217
|
+
"name": "EveFileReference_conversationId_ownerId_EveConversation_id_ownerId_fk",
|
|
1218
|
+
"tableFrom": "EveFileReference",
|
|
1219
|
+
"tableTo": "EveConversation",
|
|
1220
|
+
"columnsFrom": ["conversationId", "ownerId"],
|
|
1221
|
+
"columnsTo": ["id", "ownerId"],
|
|
1222
|
+
"onDelete": "no action",
|
|
1223
|
+
"onUpdate": "no action"
|
|
1224
|
+
},
|
|
1225
|
+
"EveFileReference_key_ownerId_EveStoredFile_key_ownerId_fk": {
|
|
1226
|
+
"name": "EveFileReference_key_ownerId_EveStoredFile_key_ownerId_fk",
|
|
1227
|
+
"tableFrom": "EveFileReference",
|
|
1228
|
+
"tableTo": "EveStoredFile",
|
|
1229
|
+
"columnsFrom": ["key", "ownerId"],
|
|
1230
|
+
"columnsTo": ["key", "ownerId"],
|
|
1231
|
+
"onDelete": "no action",
|
|
1232
|
+
"onUpdate": "no action"
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
"compositePrimaryKeys": {
|
|
1236
|
+
"EveFileReference_conversationId_key_pk": {
|
|
1237
|
+
"name": "EveFileReference_conversationId_key_pk",
|
|
1238
|
+
"columns": ["conversationId", "key"]
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
"uniqueConstraints": {},
|
|
1242
|
+
"policies": {},
|
|
1243
|
+
"checkConstraints": {},
|
|
1244
|
+
"isRLSEnabled": false
|
|
1245
|
+
},
|
|
1246
|
+
"public.EveGuest": {
|
|
1247
|
+
"name": "EveGuest",
|
|
1248
|
+
"schema": "",
|
|
1249
|
+
"columns": {
|
|
1250
|
+
"createdAt": {
|
|
1251
|
+
"name": "createdAt",
|
|
1252
|
+
"type": "timestamp with time zone",
|
|
1253
|
+
"primaryKey": false,
|
|
1254
|
+
"notNull": true,
|
|
1255
|
+
"default": "now()"
|
|
1256
|
+
},
|
|
1257
|
+
"expiresAt": {
|
|
1258
|
+
"name": "expiresAt",
|
|
1259
|
+
"type": "timestamp with time zone",
|
|
1260
|
+
"primaryKey": false,
|
|
1261
|
+
"notNull": true
|
|
1262
|
+
},
|
|
1263
|
+
"messageLimit": {
|
|
1264
|
+
"name": "messageLimit",
|
|
1265
|
+
"type": "integer",
|
|
1266
|
+
"primaryKey": false,
|
|
1267
|
+
"notNull": true
|
|
1268
|
+
},
|
|
1269
|
+
"ownerId": {
|
|
1270
|
+
"name": "ownerId",
|
|
1271
|
+
"type": "text",
|
|
1272
|
+
"primaryKey": true,
|
|
1273
|
+
"notNull": true
|
|
1274
|
+
},
|
|
1275
|
+
"remainingMessages": {
|
|
1276
|
+
"name": "remainingMessages",
|
|
1277
|
+
"type": "integer",
|
|
1278
|
+
"primaryKey": false,
|
|
1279
|
+
"notNull": true
|
|
1280
|
+
},
|
|
1281
|
+
"tokenHash": {
|
|
1282
|
+
"name": "tokenHash",
|
|
1283
|
+
"type": "varchar(64)",
|
|
1284
|
+
"primaryKey": false,
|
|
1285
|
+
"notNull": true
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
"indexes": {
|
|
1289
|
+
"EveGuest_expiry_idx": {
|
|
1290
|
+
"name": "EveGuest_expiry_idx",
|
|
1291
|
+
"columns": [
|
|
1292
|
+
{
|
|
1293
|
+
"expression": "expiresAt",
|
|
1294
|
+
"isExpression": false,
|
|
1295
|
+
"asc": true,
|
|
1296
|
+
"nulls": "last"
|
|
1297
|
+
}
|
|
1298
|
+
],
|
|
1299
|
+
"isUnique": false,
|
|
1300
|
+
"concurrently": false,
|
|
1301
|
+
"method": "btree",
|
|
1302
|
+
"with": {}
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
"foreignKeys": {
|
|
1306
|
+
"EveGuest_ownerId_user_id_fk": {
|
|
1307
|
+
"name": "EveGuest_ownerId_user_id_fk",
|
|
1308
|
+
"tableFrom": "EveGuest",
|
|
1309
|
+
"tableTo": "user",
|
|
1310
|
+
"columnsFrom": ["ownerId"],
|
|
1311
|
+
"columnsTo": ["id"],
|
|
1312
|
+
"onDelete": "cascade",
|
|
1313
|
+
"onUpdate": "no action"
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
"compositePrimaryKeys": {},
|
|
1317
|
+
"uniqueConstraints": {
|
|
1318
|
+
"EveGuest_tokenHash_unique": {
|
|
1319
|
+
"name": "EveGuest_tokenHash_unique",
|
|
1320
|
+
"nullsNotDistinct": false,
|
|
1321
|
+
"columns": ["tokenHash"]
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
"policies": {},
|
|
1325
|
+
"checkConstraints": {
|
|
1326
|
+
"EveGuest_message_balance": {
|
|
1327
|
+
"name": "EveGuest_message_balance",
|
|
1328
|
+
"value": "\"EveGuest\".\"remainingMessages\" >= 0 and \"EveGuest\".\"remainingMessages\" <= \"EveGuest\".\"messageLimit\""
|
|
1329
|
+
},
|
|
1330
|
+
"EveGuest_token_hash": {
|
|
1331
|
+
"name": "EveGuest_token_hash",
|
|
1332
|
+
"value": "\"EveGuest\".\"tokenHash\" ~ '^[0-9a-f]{64}$'"
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
"isRLSEnabled": false
|
|
1336
|
+
},
|
|
1337
|
+
"public.EveGuestMessage": {
|
|
1338
|
+
"name": "EveGuestMessage",
|
|
1339
|
+
"schema": "",
|
|
1340
|
+
"columns": {
|
|
1341
|
+
"ipHash": {
|
|
1342
|
+
"name": "ipHash",
|
|
1343
|
+
"type": "varchar(64)",
|
|
1344
|
+
"primaryKey": false,
|
|
1345
|
+
"notNull": true
|
|
1346
|
+
},
|
|
1347
|
+
"operationId": {
|
|
1348
|
+
"name": "operationId",
|
|
1349
|
+
"type": "uuid",
|
|
1350
|
+
"primaryKey": false,
|
|
1351
|
+
"notNull": true
|
|
1352
|
+
},
|
|
1353
|
+
"ownerId": {
|
|
1354
|
+
"name": "ownerId",
|
|
1355
|
+
"type": "text",
|
|
1356
|
+
"primaryKey": false,
|
|
1357
|
+
"notNull": true
|
|
1358
|
+
},
|
|
1359
|
+
"requestHash": {
|
|
1360
|
+
"name": "requestHash",
|
|
1361
|
+
"type": "varchar(64)",
|
|
1362
|
+
"primaryKey": false,
|
|
1363
|
+
"notNull": true
|
|
1364
|
+
},
|
|
1365
|
+
"reservationId": {
|
|
1366
|
+
"name": "reservationId",
|
|
1367
|
+
"type": "uuid",
|
|
1368
|
+
"primaryKey": false,
|
|
1369
|
+
"notNull": true
|
|
1370
|
+
},
|
|
1371
|
+
"reservedAt": {
|
|
1372
|
+
"name": "reservedAt",
|
|
1373
|
+
"type": "timestamp with time zone",
|
|
1374
|
+
"primaryKey": false,
|
|
1375
|
+
"notNull": true
|
|
1376
|
+
},
|
|
1377
|
+
"state": {
|
|
1378
|
+
"name": "state",
|
|
1379
|
+
"type": "text",
|
|
1380
|
+
"primaryKey": false,
|
|
1381
|
+
"notNull": true
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
"indexes": {},
|
|
1385
|
+
"foreignKeys": {
|
|
1386
|
+
"EveGuestMessage_ownerId_EveGuest_ownerId_fk": {
|
|
1387
|
+
"name": "EveGuestMessage_ownerId_EveGuest_ownerId_fk",
|
|
1388
|
+
"tableFrom": "EveGuestMessage",
|
|
1389
|
+
"tableTo": "EveGuest",
|
|
1390
|
+
"columnsFrom": ["ownerId"],
|
|
1391
|
+
"columnsTo": ["ownerId"],
|
|
1392
|
+
"onDelete": "cascade",
|
|
1393
|
+
"onUpdate": "no action"
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
"compositePrimaryKeys": {
|
|
1397
|
+
"EveGuestMessage_ownerId_operationId_pk": {
|
|
1398
|
+
"name": "EveGuestMessage_ownerId_operationId_pk",
|
|
1399
|
+
"columns": ["ownerId", "operationId"]
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
"uniqueConstraints": {},
|
|
1403
|
+
"policies": {},
|
|
1404
|
+
"checkConstraints": {
|
|
1405
|
+
"EveGuestMessage_state": {
|
|
1406
|
+
"name": "EveGuestMessage_state",
|
|
1407
|
+
"value": "\"EveGuestMessage\".\"state\" in ('reserved', 'committed', 'released')"
|
|
1408
|
+
},
|
|
1409
|
+
"EveGuestMessage_request_hash": {
|
|
1410
|
+
"name": "EveGuestMessage_request_hash",
|
|
1411
|
+
"value": "\"EveGuestMessage\".\"requestHash\" ~ '^[0-9a-f]{64}$'"
|
|
1412
|
+
}
|
|
1413
|
+
},
|
|
1414
|
+
"isRLSEnabled": false
|
|
1415
|
+
},
|
|
1416
|
+
"public.EveGuestRate": {
|
|
1417
|
+
"name": "EveGuestRate",
|
|
1418
|
+
"schema": "",
|
|
1419
|
+
"columns": {
|
|
1420
|
+
"ipHash": {
|
|
1421
|
+
"name": "ipHash",
|
|
1422
|
+
"type": "varchar(64)",
|
|
1423
|
+
"primaryKey": false,
|
|
1424
|
+
"notNull": true
|
|
1425
|
+
},
|
|
1426
|
+
"requests": {
|
|
1427
|
+
"name": "requests",
|
|
1428
|
+
"type": "integer",
|
|
1429
|
+
"primaryKey": false,
|
|
1430
|
+
"notNull": true
|
|
1431
|
+
},
|
|
1432
|
+
"startsAt": {
|
|
1433
|
+
"name": "startsAt",
|
|
1434
|
+
"type": "timestamp with time zone",
|
|
1435
|
+
"primaryKey": false,
|
|
1436
|
+
"notNull": true
|
|
1437
|
+
},
|
|
1438
|
+
"windowSeconds": {
|
|
1439
|
+
"name": "windowSeconds",
|
|
1440
|
+
"type": "integer",
|
|
1441
|
+
"primaryKey": false,
|
|
1442
|
+
"notNull": true
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
"indexes": {},
|
|
1446
|
+
"foreignKeys": {},
|
|
1447
|
+
"compositePrimaryKeys": {
|
|
1448
|
+
"EveGuestRate_ipHash_windowSeconds_startsAt_pk": {
|
|
1449
|
+
"name": "EveGuestRate_ipHash_windowSeconds_startsAt_pk",
|
|
1450
|
+
"columns": ["ipHash", "windowSeconds", "startsAt"]
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
"uniqueConstraints": {},
|
|
1454
|
+
"policies": {},
|
|
1455
|
+
"checkConstraints": {
|
|
1456
|
+
"EveGuestRate_requests": {
|
|
1457
|
+
"name": "EveGuestRate_requests",
|
|
1458
|
+
"value": "\"EveGuestRate\".\"requests\" >= 0"
|
|
1459
|
+
},
|
|
1460
|
+
"EveGuestRate_window": {
|
|
1461
|
+
"name": "EveGuestRate_window",
|
|
1462
|
+
"value": "\"EveGuestRate\".\"windowSeconds\" in (60, 2592000)"
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
"isRLSEnabled": false
|
|
1466
|
+
},
|
|
1467
|
+
"public.EveImportedDocumentCheckpoint": {
|
|
1468
|
+
"name": "EveImportedDocumentCheckpoint",
|
|
1469
|
+
"schema": "",
|
|
1470
|
+
"columns": {
|
|
1471
|
+
"conversationId": {
|
|
1472
|
+
"name": "conversationId",
|
|
1473
|
+
"type": "uuid",
|
|
1474
|
+
"primaryKey": false,
|
|
1475
|
+
"notNull": true
|
|
1476
|
+
},
|
|
1477
|
+
"messageIndex": {
|
|
1478
|
+
"name": "messageIndex",
|
|
1479
|
+
"type": "integer",
|
|
1480
|
+
"primaryKey": false,
|
|
1481
|
+
"notNull": true
|
|
1482
|
+
},
|
|
1483
|
+
"ownerId": {
|
|
1484
|
+
"name": "ownerId",
|
|
1485
|
+
"type": "text",
|
|
1486
|
+
"primaryKey": false,
|
|
1487
|
+
"notNull": true
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
"indexes": {},
|
|
1491
|
+
"foreignKeys": {
|
|
1492
|
+
"EveImportedDocumentCheckpoint_conversation_owner_fk": {
|
|
1493
|
+
"name": "EveImportedDocumentCheckpoint_conversation_owner_fk",
|
|
1494
|
+
"tableFrom": "EveImportedDocumentCheckpoint",
|
|
1495
|
+
"tableTo": "EveConversation",
|
|
1496
|
+
"columnsFrom": ["conversationId", "ownerId"],
|
|
1497
|
+
"columnsTo": ["id", "ownerId"],
|
|
1498
|
+
"onDelete": "no action",
|
|
1499
|
+
"onUpdate": "no action"
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
"compositePrimaryKeys": {
|
|
1503
|
+
"EveImportedDocumentCheckpoint_conversationId_messageIndex_pk": {
|
|
1504
|
+
"name": "EveImportedDocumentCheckpoint_conversationId_messageIndex_pk",
|
|
1505
|
+
"columns": ["conversationId", "messageIndex"]
|
|
1506
|
+
}
|
|
1507
|
+
},
|
|
1508
|
+
"uniqueConstraints": {
|
|
1509
|
+
"EveImportedDocumentCheckpoint_owner_identity": {
|
|
1510
|
+
"name": "EveImportedDocumentCheckpoint_owner_identity",
|
|
1511
|
+
"nullsNotDistinct": false,
|
|
1512
|
+
"columns": ["conversationId", "messageIndex", "ownerId"]
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1515
|
+
"policies": {},
|
|
1516
|
+
"checkConstraints": {
|
|
1517
|
+
"EveImportedDocumentCheckpoint_message_range": {
|
|
1518
|
+
"name": "EveImportedDocumentCheckpoint_message_range",
|
|
1519
|
+
"value": "\"EveImportedDocumentCheckpoint\".\"messageIndex\" between 0 and 9999"
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
"isRLSEnabled": false
|
|
1523
|
+
},
|
|
1524
|
+
"public.EveImportedDocumentCheckpointEntry": {
|
|
1525
|
+
"name": "EveImportedDocumentCheckpointEntry",
|
|
1526
|
+
"schema": "",
|
|
1527
|
+
"columns": {
|
|
1528
|
+
"conversationId": {
|
|
1529
|
+
"name": "conversationId",
|
|
1530
|
+
"type": "uuid",
|
|
1531
|
+
"primaryKey": false,
|
|
1532
|
+
"notNull": true
|
|
1533
|
+
},
|
|
1534
|
+
"documentId": {
|
|
1535
|
+
"name": "documentId",
|
|
1536
|
+
"type": "uuid",
|
|
1537
|
+
"primaryKey": false,
|
|
1538
|
+
"notNull": true
|
|
1539
|
+
},
|
|
1540
|
+
"messageIndex": {
|
|
1541
|
+
"name": "messageIndex",
|
|
1542
|
+
"type": "integer",
|
|
1543
|
+
"primaryKey": false,
|
|
1544
|
+
"notNull": true
|
|
1545
|
+
},
|
|
1546
|
+
"ownerId": {
|
|
1547
|
+
"name": "ownerId",
|
|
1548
|
+
"type": "text",
|
|
1549
|
+
"primaryKey": false,
|
|
1550
|
+
"notNull": true
|
|
1551
|
+
},
|
|
1552
|
+
"revisionId": {
|
|
1553
|
+
"name": "revisionId",
|
|
1554
|
+
"type": "uuid",
|
|
1555
|
+
"primaryKey": false,
|
|
1556
|
+
"notNull": true
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1559
|
+
"indexes": {},
|
|
1560
|
+
"foreignKeys": {
|
|
1561
|
+
"EveImportedDocumentCheckpointEntry_checkpoint_owner_fk": {
|
|
1562
|
+
"name": "EveImportedDocumentCheckpointEntry_checkpoint_owner_fk",
|
|
1563
|
+
"tableFrom": "EveImportedDocumentCheckpointEntry",
|
|
1564
|
+
"tableTo": "EveImportedDocumentCheckpoint",
|
|
1565
|
+
"columnsFrom": ["conversationId", "messageIndex", "ownerId"],
|
|
1566
|
+
"columnsTo": ["conversationId", "messageIndex", "ownerId"],
|
|
1567
|
+
"onDelete": "no action",
|
|
1568
|
+
"onUpdate": "no action"
|
|
1569
|
+
},
|
|
1570
|
+
"EveImportedDocumentCheckpointEntry_revision_owner_fk": {
|
|
1571
|
+
"name": "EveImportedDocumentCheckpointEntry_revision_owner_fk",
|
|
1572
|
+
"tableFrom": "EveImportedDocumentCheckpointEntry",
|
|
1573
|
+
"tableTo": "EveDocumentRevision",
|
|
1574
|
+
"columnsFrom": ["revisionId", "documentId", "ownerId"],
|
|
1575
|
+
"columnsTo": ["id", "documentId", "ownerId"],
|
|
1576
|
+
"onDelete": "no action",
|
|
1577
|
+
"onUpdate": "no action"
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1580
|
+
"compositePrimaryKeys": {
|
|
1581
|
+
"EveImportedDocumentCheckpointEntry_conversationId_messageIndex_documentId_pk": {
|
|
1582
|
+
"name": "EveImportedDocumentCheckpointEntry_conversationId_messageIndex_documentId_pk",
|
|
1583
|
+
"columns": ["conversationId", "messageIndex", "documentId"]
|
|
1584
|
+
}
|
|
1585
|
+
},
|
|
1586
|
+
"uniqueConstraints": {},
|
|
1587
|
+
"policies": {},
|
|
1588
|
+
"checkConstraints": {},
|
|
1589
|
+
"isRLSEnabled": false
|
|
1590
|
+
},
|
|
1591
|
+
"public.EveNamedDocumentCheckpoint": {
|
|
1592
|
+
"name": "EveNamedDocumentCheckpoint",
|
|
1593
|
+
"schema": "",
|
|
1594
|
+
"columns": {
|
|
1595
|
+
"checkpointId": {
|
|
1596
|
+
"name": "checkpointId",
|
|
1597
|
+
"type": "uuid",
|
|
1598
|
+
"primaryKey": false,
|
|
1599
|
+
"notNull": true
|
|
1600
|
+
},
|
|
1601
|
+
"conversationId": {
|
|
1602
|
+
"name": "conversationId",
|
|
1603
|
+
"type": "uuid",
|
|
1604
|
+
"primaryKey": false,
|
|
1605
|
+
"notNull": true
|
|
1606
|
+
},
|
|
1607
|
+
"ownerId": {
|
|
1608
|
+
"name": "ownerId",
|
|
1609
|
+
"type": "text",
|
|
1610
|
+
"primaryKey": false,
|
|
1611
|
+
"notNull": true
|
|
1612
|
+
},
|
|
1613
|
+
"turnIndex": {
|
|
1614
|
+
"name": "turnIndex",
|
|
1615
|
+
"type": "integer",
|
|
1616
|
+
"primaryKey": false,
|
|
1617
|
+
"notNull": true
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
"indexes": {},
|
|
1621
|
+
"foreignKeys": {
|
|
1622
|
+
"EveNamedDocumentCheckpoint_conversation_owner_fk": {
|
|
1623
|
+
"name": "EveNamedDocumentCheckpoint_conversation_owner_fk",
|
|
1624
|
+
"tableFrom": "EveNamedDocumentCheckpoint",
|
|
1625
|
+
"tableTo": "EveConversation",
|
|
1626
|
+
"columnsFrom": ["conversationId", "ownerId"],
|
|
1627
|
+
"columnsTo": ["id", "ownerId"],
|
|
1628
|
+
"onDelete": "no action",
|
|
1629
|
+
"onUpdate": "no action"
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
"compositePrimaryKeys": {
|
|
1633
|
+
"EveNamedDocumentCheckpoint_conversationId_checkpointId_pk": {
|
|
1634
|
+
"name": "EveNamedDocumentCheckpoint_conversationId_checkpointId_pk",
|
|
1635
|
+
"columns": ["conversationId", "checkpointId"]
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
"uniqueConstraints": {
|
|
1639
|
+
"EveNamedDocumentCheckpoint_owner_identity": {
|
|
1640
|
+
"name": "EveNamedDocumentCheckpoint_owner_identity",
|
|
1641
|
+
"nullsNotDistinct": false,
|
|
1642
|
+
"columns": ["conversationId", "checkpointId", "ownerId"]
|
|
1643
|
+
}
|
|
1644
|
+
},
|
|
1645
|
+
"policies": {},
|
|
1646
|
+
"checkConstraints": {
|
|
1647
|
+
"EveNamedDocumentCheckpoint_turn_nonnegative": {
|
|
1648
|
+
"name": "EveNamedDocumentCheckpoint_turn_nonnegative",
|
|
1649
|
+
"value": "\"EveNamedDocumentCheckpoint\".\"turnIndex\" >= 0"
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
"isRLSEnabled": false
|
|
1653
|
+
},
|
|
1654
|
+
"public.EveNamedDocumentCheckpointEntry": {
|
|
1655
|
+
"name": "EveNamedDocumentCheckpointEntry",
|
|
1656
|
+
"schema": "",
|
|
1657
|
+
"columns": {
|
|
1658
|
+
"checkpointId": {
|
|
1659
|
+
"name": "checkpointId",
|
|
1660
|
+
"type": "uuid",
|
|
1661
|
+
"primaryKey": false,
|
|
1662
|
+
"notNull": true
|
|
1663
|
+
},
|
|
1664
|
+
"conversationId": {
|
|
1665
|
+
"name": "conversationId",
|
|
1666
|
+
"type": "uuid",
|
|
1667
|
+
"primaryKey": false,
|
|
1668
|
+
"notNull": true
|
|
1669
|
+
},
|
|
1670
|
+
"documentId": {
|
|
1671
|
+
"name": "documentId",
|
|
1672
|
+
"type": "uuid",
|
|
1673
|
+
"primaryKey": false,
|
|
1674
|
+
"notNull": true
|
|
1675
|
+
},
|
|
1676
|
+
"ownerId": {
|
|
1677
|
+
"name": "ownerId",
|
|
1678
|
+
"type": "text",
|
|
1679
|
+
"primaryKey": false,
|
|
1680
|
+
"notNull": true
|
|
1681
|
+
},
|
|
1682
|
+
"revisionId": {
|
|
1683
|
+
"name": "revisionId",
|
|
1684
|
+
"type": "uuid",
|
|
1685
|
+
"primaryKey": false,
|
|
1686
|
+
"notNull": true
|
|
1687
|
+
}
|
|
1688
|
+
},
|
|
1689
|
+
"indexes": {},
|
|
1690
|
+
"foreignKeys": {
|
|
1691
|
+
"EveNamedDocumentCheckpointEntry_checkpoint_owner_fk": {
|
|
1692
|
+
"name": "EveNamedDocumentCheckpointEntry_checkpoint_owner_fk",
|
|
1693
|
+
"tableFrom": "EveNamedDocumentCheckpointEntry",
|
|
1694
|
+
"tableTo": "EveNamedDocumentCheckpoint",
|
|
1695
|
+
"columnsFrom": ["conversationId", "checkpointId", "ownerId"],
|
|
1696
|
+
"columnsTo": ["conversationId", "checkpointId", "ownerId"],
|
|
1697
|
+
"onDelete": "no action",
|
|
1698
|
+
"onUpdate": "no action"
|
|
1699
|
+
},
|
|
1700
|
+
"EveNamedDocumentCheckpointEntry_revision_owner_fk": {
|
|
1701
|
+
"name": "EveNamedDocumentCheckpointEntry_revision_owner_fk",
|
|
1702
|
+
"tableFrom": "EveNamedDocumentCheckpointEntry",
|
|
1703
|
+
"tableTo": "EveDocumentRevision",
|
|
1704
|
+
"columnsFrom": ["revisionId", "documentId", "ownerId"],
|
|
1705
|
+
"columnsTo": ["id", "documentId", "ownerId"],
|
|
1706
|
+
"onDelete": "no action",
|
|
1707
|
+
"onUpdate": "no action"
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
"compositePrimaryKeys": {
|
|
1711
|
+
"EveNamedDocumentCheckpointEntry_conversationId_checkpointId_documentId_pk": {
|
|
1712
|
+
"name": "EveNamedDocumentCheckpointEntry_conversationId_checkpointId_documentId_pk",
|
|
1713
|
+
"columns": ["conversationId", "checkpointId", "documentId"]
|
|
1714
|
+
}
|
|
1715
|
+
},
|
|
1716
|
+
"uniqueConstraints": {},
|
|
1717
|
+
"policies": {},
|
|
1718
|
+
"checkConstraints": {},
|
|
1719
|
+
"isRLSEnabled": false
|
|
1720
|
+
},
|
|
1721
|
+
"public.EveResponseGroup": {
|
|
1722
|
+
"name": "EveResponseGroup",
|
|
1723
|
+
"schema": "",
|
|
1724
|
+
"columns": {
|
|
1725
|
+
"candidateOperationIds": {
|
|
1726
|
+
"name": "candidateOperationIds",
|
|
1727
|
+
"type": "uuid[]",
|
|
1728
|
+
"primaryKey": false,
|
|
1729
|
+
"notNull": true
|
|
1730
|
+
},
|
|
1731
|
+
"candidates": {
|
|
1732
|
+
"name": "candidates",
|
|
1733
|
+
"type": "jsonb",
|
|
1734
|
+
"primaryKey": false,
|
|
1735
|
+
"notNull": false
|
|
1736
|
+
},
|
|
1737
|
+
"createdAt": {
|
|
1738
|
+
"name": "createdAt",
|
|
1739
|
+
"type": "timestamp",
|
|
1740
|
+
"primaryKey": false,
|
|
1741
|
+
"notNull": true,
|
|
1742
|
+
"default": "now()"
|
|
1743
|
+
},
|
|
1744
|
+
"deleted": {
|
|
1745
|
+
"name": "deleted",
|
|
1746
|
+
"type": "boolean",
|
|
1747
|
+
"primaryKey": false,
|
|
1748
|
+
"notNull": true,
|
|
1749
|
+
"default": false
|
|
1750
|
+
},
|
|
1751
|
+
"id": {
|
|
1752
|
+
"name": "id",
|
|
1753
|
+
"type": "uuid",
|
|
1754
|
+
"primaryKey": true,
|
|
1755
|
+
"notNull": true,
|
|
1756
|
+
"default": "gen_random_uuid()"
|
|
1757
|
+
},
|
|
1758
|
+
"inputHash": {
|
|
1759
|
+
"name": "inputHash",
|
|
1760
|
+
"type": "text",
|
|
1761
|
+
"primaryKey": false,
|
|
1762
|
+
"notNull": false
|
|
1763
|
+
},
|
|
1764
|
+
"operationId": {
|
|
1765
|
+
"name": "operationId",
|
|
1766
|
+
"type": "uuid",
|
|
1767
|
+
"primaryKey": false,
|
|
1768
|
+
"notNull": true
|
|
1769
|
+
},
|
|
1770
|
+
"ownerId": {
|
|
1771
|
+
"name": "ownerId",
|
|
1772
|
+
"type": "text",
|
|
1773
|
+
"primaryKey": false,
|
|
1774
|
+
"notNull": true
|
|
1775
|
+
},
|
|
1776
|
+
"sourceConversationId": {
|
|
1777
|
+
"name": "sourceConversationId",
|
|
1778
|
+
"type": "uuid",
|
|
1779
|
+
"primaryKey": false,
|
|
1780
|
+
"notNull": false
|
|
1781
|
+
},
|
|
1782
|
+
"sourceIdentityKnown": {
|
|
1783
|
+
"name": "sourceIdentityKnown",
|
|
1784
|
+
"type": "boolean",
|
|
1785
|
+
"primaryKey": false,
|
|
1786
|
+
"notNull": true,
|
|
1787
|
+
"default": false
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
"indexes": {
|
|
1791
|
+
"EveResponseGroup_owner_operation": {
|
|
1792
|
+
"name": "EveResponseGroup_owner_operation",
|
|
1793
|
+
"columns": [
|
|
1794
|
+
{
|
|
1795
|
+
"expression": "ownerId",
|
|
1796
|
+
"isExpression": false,
|
|
1797
|
+
"asc": true,
|
|
1798
|
+
"nulls": "last"
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
"expression": "operationId",
|
|
1802
|
+
"isExpression": false,
|
|
1803
|
+
"asc": true,
|
|
1804
|
+
"nulls": "last"
|
|
1805
|
+
}
|
|
1806
|
+
],
|
|
1807
|
+
"isUnique": true,
|
|
1808
|
+
"concurrently": false,
|
|
1809
|
+
"method": "btree",
|
|
1810
|
+
"with": {}
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
"foreignKeys": {
|
|
1814
|
+
"EveResponseGroup_ownerId_user_id_fk": {
|
|
1815
|
+
"name": "EveResponseGroup_ownerId_user_id_fk",
|
|
1816
|
+
"tableFrom": "EveResponseGroup",
|
|
1817
|
+
"tableTo": "user",
|
|
1818
|
+
"columnsFrom": ["ownerId"],
|
|
1819
|
+
"columnsTo": ["id"],
|
|
1820
|
+
"onDelete": "no action",
|
|
1821
|
+
"onUpdate": "no action"
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1824
|
+
"compositePrimaryKeys": {},
|
|
1825
|
+
"uniqueConstraints": {},
|
|
1826
|
+
"policies": {},
|
|
1827
|
+
"checkConstraints": {},
|
|
1828
|
+
"isRLSEnabled": false
|
|
1829
|
+
},
|
|
1830
|
+
"public.EveStoredFile": {
|
|
1831
|
+
"name": "EveStoredFile",
|
|
1832
|
+
"schema": "",
|
|
1833
|
+
"columns": {
|
|
1834
|
+
"createdAt": {
|
|
1835
|
+
"name": "createdAt",
|
|
1836
|
+
"type": "timestamp",
|
|
1837
|
+
"primaryKey": false,
|
|
1838
|
+
"notNull": true,
|
|
1839
|
+
"default": "now()"
|
|
1840
|
+
},
|
|
1841
|
+
"key": {
|
|
1842
|
+
"name": "key",
|
|
1843
|
+
"type": "text",
|
|
1844
|
+
"primaryKey": true,
|
|
1845
|
+
"notNull": true
|
|
1846
|
+
},
|
|
1847
|
+
"storageKey": {
|
|
1848
|
+
"name": "storageKey",
|
|
1849
|
+
"type": "text",
|
|
1850
|
+
"primaryKey": false,
|
|
1851
|
+
"notNull": true,
|
|
1852
|
+
"default": "gen_random_uuid()::text"
|
|
1853
|
+
},
|
|
1854
|
+
"ownerId": {
|
|
1855
|
+
"name": "ownerId",
|
|
1856
|
+
"type": "text",
|
|
1857
|
+
"primaryKey": false,
|
|
1858
|
+
"notNull": true
|
|
1859
|
+
},
|
|
1860
|
+
"state": {
|
|
1861
|
+
"name": "state",
|
|
1862
|
+
"type": "text",
|
|
1863
|
+
"primaryKey": false,
|
|
1864
|
+
"notNull": true,
|
|
1865
|
+
"default": "'active'"
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"indexes": {
|
|
1869
|
+
"EveStoredFile_owner": {
|
|
1870
|
+
"name": "EveStoredFile_owner",
|
|
1871
|
+
"columns": [
|
|
1872
|
+
{
|
|
1873
|
+
"expression": "ownerId",
|
|
1874
|
+
"isExpression": false,
|
|
1875
|
+
"asc": true,
|
|
1876
|
+
"nulls": "last"
|
|
1877
|
+
}
|
|
1878
|
+
],
|
|
1879
|
+
"isUnique": false,
|
|
1880
|
+
"concurrently": false,
|
|
1881
|
+
"method": "btree",
|
|
1882
|
+
"with": {}
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
"foreignKeys": {
|
|
1886
|
+
"EveStoredFile_ownerId_user_id_fk": {
|
|
1887
|
+
"name": "EveStoredFile_ownerId_user_id_fk",
|
|
1888
|
+
"tableFrom": "EveStoredFile",
|
|
1889
|
+
"tableTo": "user",
|
|
1890
|
+
"columnsFrom": ["ownerId"],
|
|
1891
|
+
"columnsTo": ["id"],
|
|
1892
|
+
"onDelete": "no action",
|
|
1893
|
+
"onUpdate": "no action"
|
|
1894
|
+
}
|
|
1895
|
+
},
|
|
1896
|
+
"compositePrimaryKeys": {},
|
|
1897
|
+
"uniqueConstraints": {
|
|
1898
|
+
"EveStoredFile_storageKey_unique": {
|
|
1899
|
+
"name": "EveStoredFile_storageKey_unique",
|
|
1900
|
+
"nullsNotDistinct": false,
|
|
1901
|
+
"columns": ["storageKey"]
|
|
1902
|
+
},
|
|
1903
|
+
"EveStoredFile_key_owner": {
|
|
1904
|
+
"name": "EveStoredFile_key_owner",
|
|
1905
|
+
"nullsNotDistinct": false,
|
|
1906
|
+
"columns": ["key", "ownerId"]
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
1909
|
+
"policies": {},
|
|
1910
|
+
"checkConstraints": {},
|
|
1911
|
+
"isRLSEnabled": false
|
|
1912
|
+
},
|
|
1913
|
+
"public.EveUsage": {
|
|
1914
|
+
"name": "EveUsage",
|
|
1915
|
+
"schema": "",
|
|
1916
|
+
"columns": {
|
|
1917
|
+
"chargedCents": {
|
|
1918
|
+
"name": "chargedCents",
|
|
1919
|
+
"type": "integer",
|
|
1920
|
+
"primaryKey": false,
|
|
1921
|
+
"notNull": true,
|
|
1922
|
+
"default": 0
|
|
1923
|
+
},
|
|
1924
|
+
"costUsd": {
|
|
1925
|
+
"name": "costUsd",
|
|
1926
|
+
"type": "numeric(24, 12)",
|
|
1927
|
+
"primaryKey": false,
|
|
1928
|
+
"notNull": false
|
|
1929
|
+
},
|
|
1930
|
+
"createdAt": {
|
|
1931
|
+
"name": "createdAt",
|
|
1932
|
+
"type": "timestamp",
|
|
1933
|
+
"primaryKey": false,
|
|
1934
|
+
"notNull": true,
|
|
1935
|
+
"default": "now()"
|
|
1936
|
+
},
|
|
1937
|
+
"eventId": {
|
|
1938
|
+
"name": "eventId",
|
|
1939
|
+
"type": "text",
|
|
1940
|
+
"primaryKey": true,
|
|
1941
|
+
"notNull": true
|
|
1942
|
+
},
|
|
1943
|
+
"generationId": {
|
|
1944
|
+
"name": "generationId",
|
|
1945
|
+
"type": "text",
|
|
1946
|
+
"primaryKey": false,
|
|
1947
|
+
"notNull": false
|
|
1948
|
+
},
|
|
1949
|
+
"ownerId": {
|
|
1950
|
+
"name": "ownerId",
|
|
1951
|
+
"type": "text",
|
|
1952
|
+
"primaryKey": false,
|
|
1953
|
+
"notNull": true
|
|
1954
|
+
},
|
|
1955
|
+
"sessionId": {
|
|
1956
|
+
"name": "sessionId",
|
|
1957
|
+
"type": "text",
|
|
1958
|
+
"primaryKey": false,
|
|
1959
|
+
"notNull": true
|
|
1960
|
+
},
|
|
1961
|
+
"turnId": {
|
|
1962
|
+
"name": "turnId",
|
|
1963
|
+
"type": "text",
|
|
1964
|
+
"primaryKey": false,
|
|
1965
|
+
"notNull": true
|
|
1966
|
+
}
|
|
1967
|
+
},
|
|
1968
|
+
"indexes": {
|
|
1969
|
+
"EveUsage_session_turn": {
|
|
1970
|
+
"name": "EveUsage_session_turn",
|
|
1971
|
+
"columns": [
|
|
1972
|
+
{
|
|
1973
|
+
"expression": "sessionId",
|
|
1974
|
+
"isExpression": false,
|
|
1975
|
+
"asc": true,
|
|
1976
|
+
"nulls": "last"
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
"expression": "turnId",
|
|
1980
|
+
"isExpression": false,
|
|
1981
|
+
"asc": true,
|
|
1982
|
+
"nulls": "last"
|
|
1983
|
+
}
|
|
1984
|
+
],
|
|
1985
|
+
"isUnique": false,
|
|
1986
|
+
"concurrently": false,
|
|
1987
|
+
"method": "btree",
|
|
1988
|
+
"with": {}
|
|
1989
|
+
}
|
|
1990
|
+
},
|
|
1991
|
+
"foreignKeys": {
|
|
1992
|
+
"EveUsage_ownerId_user_id_fk": {
|
|
1993
|
+
"name": "EveUsage_ownerId_user_id_fk",
|
|
1994
|
+
"tableFrom": "EveUsage",
|
|
1995
|
+
"tableTo": "user",
|
|
1996
|
+
"columnsFrom": ["ownerId"],
|
|
1997
|
+
"columnsTo": ["id"],
|
|
1998
|
+
"onDelete": "no action",
|
|
1999
|
+
"onUpdate": "no action"
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
|
+
"compositePrimaryKeys": {},
|
|
2003
|
+
"uniqueConstraints": {},
|
|
2004
|
+
"policies": {},
|
|
2005
|
+
"checkConstraints": {},
|
|
2006
|
+
"isRLSEnabled": false
|
|
2007
|
+
},
|
|
2008
|
+
"public.EveVote": {
|
|
2009
|
+
"name": "EveVote",
|
|
2010
|
+
"schema": "",
|
|
2011
|
+
"columns": {
|
|
2012
|
+
"conversationId": {
|
|
2013
|
+
"name": "conversationId",
|
|
2014
|
+
"type": "uuid",
|
|
2015
|
+
"primaryKey": false,
|
|
2016
|
+
"notNull": true
|
|
2017
|
+
},
|
|
2018
|
+
"isUpvoted": {
|
|
2019
|
+
"name": "isUpvoted",
|
|
2020
|
+
"type": "boolean",
|
|
2021
|
+
"primaryKey": false,
|
|
2022
|
+
"notNull": true
|
|
2023
|
+
},
|
|
2024
|
+
"messageId": {
|
|
2025
|
+
"name": "messageId",
|
|
2026
|
+
"type": "text",
|
|
2027
|
+
"primaryKey": false,
|
|
2028
|
+
"notNull": true
|
|
2029
|
+
}
|
|
2030
|
+
},
|
|
2031
|
+
"indexes": {},
|
|
2032
|
+
"foreignKeys": {
|
|
2033
|
+
"EveVote_conversationId_EveConversation_id_fk": {
|
|
2034
|
+
"name": "EveVote_conversationId_EveConversation_id_fk",
|
|
2035
|
+
"tableFrom": "EveVote",
|
|
2036
|
+
"tableTo": "EveConversation",
|
|
2037
|
+
"columnsFrom": ["conversationId"],
|
|
2038
|
+
"columnsTo": ["id"],
|
|
2039
|
+
"onDelete": "cascade",
|
|
2040
|
+
"onUpdate": "no action"
|
|
2041
|
+
}
|
|
2042
|
+
},
|
|
2043
|
+
"compositePrimaryKeys": {
|
|
2044
|
+
"EveVote_conversationId_messageId_pk": {
|
|
2045
|
+
"name": "EveVote_conversationId_messageId_pk",
|
|
2046
|
+
"columns": ["conversationId", "messageId"]
|
|
2047
|
+
}
|
|
2048
|
+
},
|
|
2049
|
+
"uniqueConstraints": {},
|
|
2050
|
+
"policies": {},
|
|
2051
|
+
"checkConstraints": {},
|
|
2052
|
+
"isRLSEnabled": false
|
|
2053
|
+
},
|
|
2054
|
+
"public.McpConnector": {
|
|
2055
|
+
"name": "McpConnector",
|
|
2056
|
+
"schema": "",
|
|
2057
|
+
"columns": {
|
|
2058
|
+
"createdAt": {
|
|
2059
|
+
"name": "createdAt",
|
|
2060
|
+
"type": "timestamp",
|
|
2061
|
+
"primaryKey": false,
|
|
2062
|
+
"notNull": true,
|
|
2063
|
+
"default": "now()"
|
|
2064
|
+
},
|
|
2065
|
+
"enabled": {
|
|
2066
|
+
"name": "enabled",
|
|
2067
|
+
"type": "boolean",
|
|
2068
|
+
"primaryKey": false,
|
|
2069
|
+
"notNull": true,
|
|
2070
|
+
"default": true
|
|
2071
|
+
},
|
|
2072
|
+
"id": {
|
|
2073
|
+
"name": "id",
|
|
2074
|
+
"type": "uuid",
|
|
2075
|
+
"primaryKey": true,
|
|
2076
|
+
"notNull": true,
|
|
2077
|
+
"default": "gen_random_uuid()"
|
|
2078
|
+
},
|
|
2079
|
+
"name": {
|
|
2080
|
+
"name": "name",
|
|
2081
|
+
"type": "varchar(256)",
|
|
2082
|
+
"primaryKey": false,
|
|
2083
|
+
"notNull": true
|
|
2084
|
+
},
|
|
2085
|
+
"nameId": {
|
|
2086
|
+
"name": "nameId",
|
|
2087
|
+
"type": "varchar(256)",
|
|
2088
|
+
"primaryKey": false,
|
|
2089
|
+
"notNull": true
|
|
2090
|
+
},
|
|
2091
|
+
"oauthClientId": {
|
|
2092
|
+
"name": "oauthClientId",
|
|
2093
|
+
"type": "text",
|
|
2094
|
+
"primaryKey": false,
|
|
2095
|
+
"notNull": false
|
|
2096
|
+
},
|
|
2097
|
+
"oauthClientSecret": {
|
|
2098
|
+
"name": "oauthClientSecret",
|
|
2099
|
+
"type": "text",
|
|
2100
|
+
"primaryKey": false,
|
|
2101
|
+
"notNull": false
|
|
2102
|
+
},
|
|
2103
|
+
"type": {
|
|
2104
|
+
"name": "type",
|
|
2105
|
+
"type": "varchar",
|
|
2106
|
+
"primaryKey": false,
|
|
2107
|
+
"notNull": true,
|
|
2108
|
+
"default": "'http'"
|
|
2109
|
+
},
|
|
2110
|
+
"updatedAt": {
|
|
2111
|
+
"name": "updatedAt",
|
|
2112
|
+
"type": "timestamp",
|
|
2113
|
+
"primaryKey": false,
|
|
2114
|
+
"notNull": true,
|
|
2115
|
+
"default": "now()"
|
|
2116
|
+
},
|
|
2117
|
+
"url": {
|
|
2118
|
+
"name": "url",
|
|
2119
|
+
"type": "text",
|
|
2120
|
+
"primaryKey": false,
|
|
2121
|
+
"notNull": true
|
|
2122
|
+
},
|
|
2123
|
+
"userId": {
|
|
2124
|
+
"name": "userId",
|
|
2125
|
+
"type": "text",
|
|
2126
|
+
"primaryKey": false,
|
|
2127
|
+
"notNull": false
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
"indexes": {
|
|
2131
|
+
"McpConnector_user_id_idx": {
|
|
2132
|
+
"name": "McpConnector_user_id_idx",
|
|
2133
|
+
"columns": [
|
|
2134
|
+
{
|
|
2135
|
+
"expression": "userId",
|
|
2136
|
+
"isExpression": false,
|
|
2137
|
+
"asc": true,
|
|
2138
|
+
"nulls": "last"
|
|
2139
|
+
}
|
|
2140
|
+
],
|
|
2141
|
+
"isUnique": false,
|
|
2142
|
+
"concurrently": false,
|
|
2143
|
+
"method": "btree",
|
|
2144
|
+
"with": {}
|
|
2145
|
+
},
|
|
2146
|
+
"McpConnector_user_name_id_idx": {
|
|
2147
|
+
"name": "McpConnector_user_name_id_idx",
|
|
2148
|
+
"columns": [
|
|
2149
|
+
{
|
|
2150
|
+
"expression": "userId",
|
|
2151
|
+
"isExpression": false,
|
|
2152
|
+
"asc": true,
|
|
2153
|
+
"nulls": "last"
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
"expression": "nameId",
|
|
2157
|
+
"isExpression": false,
|
|
2158
|
+
"asc": true,
|
|
2159
|
+
"nulls": "last"
|
|
2160
|
+
}
|
|
2161
|
+
],
|
|
2162
|
+
"isUnique": false,
|
|
2163
|
+
"concurrently": false,
|
|
2164
|
+
"method": "btree",
|
|
2165
|
+
"with": {}
|
|
2166
|
+
},
|
|
2167
|
+
"McpConnector_user_name_id_unique": {
|
|
2168
|
+
"name": "McpConnector_user_name_id_unique",
|
|
2169
|
+
"columns": [
|
|
2170
|
+
{
|
|
2171
|
+
"expression": "userId",
|
|
2172
|
+
"isExpression": false,
|
|
2173
|
+
"asc": true,
|
|
2174
|
+
"nulls": "last"
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
"expression": "nameId",
|
|
2178
|
+
"isExpression": false,
|
|
2179
|
+
"asc": true,
|
|
2180
|
+
"nulls": "last"
|
|
2181
|
+
}
|
|
2182
|
+
],
|
|
2183
|
+
"isUnique": true,
|
|
2184
|
+
"concurrently": false,
|
|
2185
|
+
"method": "btree",
|
|
2186
|
+
"with": {}
|
|
2187
|
+
}
|
|
2188
|
+
},
|
|
2189
|
+
"foreignKeys": {
|
|
2190
|
+
"McpConnector_userId_user_id_fk": {
|
|
2191
|
+
"name": "McpConnector_userId_user_id_fk",
|
|
2192
|
+
"tableFrom": "McpConnector",
|
|
2193
|
+
"tableTo": "user",
|
|
2194
|
+
"columnsFrom": ["userId"],
|
|
2195
|
+
"columnsTo": ["id"],
|
|
2196
|
+
"onDelete": "cascade",
|
|
2197
|
+
"onUpdate": "no action"
|
|
2198
|
+
}
|
|
2199
|
+
},
|
|
2200
|
+
"compositePrimaryKeys": {},
|
|
2201
|
+
"uniqueConstraints": {},
|
|
2202
|
+
"policies": {},
|
|
2203
|
+
"checkConstraints": {},
|
|
2204
|
+
"isRLSEnabled": false
|
|
2205
|
+
},
|
|
2206
|
+
"public.McpOAuthSession": {
|
|
2207
|
+
"name": "McpOAuthSession",
|
|
2208
|
+
"schema": "",
|
|
2209
|
+
"columns": {
|
|
2210
|
+
"clientInfo": {
|
|
2211
|
+
"name": "clientInfo",
|
|
2212
|
+
"type": "text",
|
|
2213
|
+
"primaryKey": false,
|
|
2214
|
+
"notNull": false
|
|
2215
|
+
},
|
|
2216
|
+
"codeVerifier": {
|
|
2217
|
+
"name": "codeVerifier",
|
|
2218
|
+
"type": "text",
|
|
2219
|
+
"primaryKey": false,
|
|
2220
|
+
"notNull": false
|
|
2221
|
+
},
|
|
2222
|
+
"createdAt": {
|
|
2223
|
+
"name": "createdAt",
|
|
2224
|
+
"type": "timestamp",
|
|
2225
|
+
"primaryKey": false,
|
|
2226
|
+
"notNull": true,
|
|
2227
|
+
"default": "now()"
|
|
2228
|
+
},
|
|
2229
|
+
"id": {
|
|
2230
|
+
"name": "id",
|
|
2231
|
+
"type": "uuid",
|
|
2232
|
+
"primaryKey": true,
|
|
2233
|
+
"notNull": true,
|
|
2234
|
+
"default": "gen_random_uuid()"
|
|
2235
|
+
},
|
|
2236
|
+
"mcpConnectorId": {
|
|
2237
|
+
"name": "mcpConnectorId",
|
|
2238
|
+
"type": "uuid",
|
|
2239
|
+
"primaryKey": false,
|
|
2240
|
+
"notNull": true
|
|
2241
|
+
},
|
|
2242
|
+
"serverUrl": {
|
|
2243
|
+
"name": "serverUrl",
|
|
2244
|
+
"type": "text",
|
|
2245
|
+
"primaryKey": false,
|
|
2246
|
+
"notNull": true
|
|
2247
|
+
},
|
|
2248
|
+
"state": {
|
|
2249
|
+
"name": "state",
|
|
2250
|
+
"type": "text",
|
|
2251
|
+
"primaryKey": false,
|
|
2252
|
+
"notNull": false
|
|
2253
|
+
},
|
|
2254
|
+
"tokens": {
|
|
2255
|
+
"name": "tokens",
|
|
2256
|
+
"type": "text",
|
|
2257
|
+
"primaryKey": false,
|
|
2258
|
+
"notNull": false
|
|
2259
|
+
},
|
|
2260
|
+
"updatedAt": {
|
|
2261
|
+
"name": "updatedAt",
|
|
2262
|
+
"type": "timestamp",
|
|
2263
|
+
"primaryKey": false,
|
|
2264
|
+
"notNull": true,
|
|
2265
|
+
"default": "now()"
|
|
2266
|
+
}
|
|
2267
|
+
},
|
|
2268
|
+
"indexes": {
|
|
2269
|
+
"McpOAuthSession_connector_idx": {
|
|
2270
|
+
"name": "McpOAuthSession_connector_idx",
|
|
2271
|
+
"columns": [
|
|
2272
|
+
{
|
|
2273
|
+
"expression": "mcpConnectorId",
|
|
2274
|
+
"isExpression": false,
|
|
2275
|
+
"asc": true,
|
|
2276
|
+
"nulls": "last"
|
|
2277
|
+
}
|
|
2278
|
+
],
|
|
2279
|
+
"isUnique": false,
|
|
2280
|
+
"concurrently": false,
|
|
2281
|
+
"method": "btree",
|
|
2282
|
+
"with": {}
|
|
2283
|
+
},
|
|
2284
|
+
"McpOAuthSession_state_idx": {
|
|
2285
|
+
"name": "McpOAuthSession_state_idx",
|
|
2286
|
+
"columns": [
|
|
2287
|
+
{
|
|
2288
|
+
"expression": "state",
|
|
2289
|
+
"isExpression": false,
|
|
2290
|
+
"asc": true,
|
|
2291
|
+
"nulls": "last"
|
|
2292
|
+
}
|
|
2293
|
+
],
|
|
2294
|
+
"isUnique": false,
|
|
2295
|
+
"concurrently": false,
|
|
2296
|
+
"method": "btree",
|
|
2297
|
+
"with": {}
|
|
2298
|
+
}
|
|
2299
|
+
},
|
|
2300
|
+
"foreignKeys": {
|
|
2301
|
+
"McpOAuthSession_mcpConnectorId_McpConnector_id_fk": {
|
|
2302
|
+
"name": "McpOAuthSession_mcpConnectorId_McpConnector_id_fk",
|
|
2303
|
+
"tableFrom": "McpOAuthSession",
|
|
2304
|
+
"tableTo": "McpConnector",
|
|
2305
|
+
"columnsFrom": ["mcpConnectorId"],
|
|
2306
|
+
"columnsTo": ["id"],
|
|
2307
|
+
"onDelete": "cascade",
|
|
2308
|
+
"onUpdate": "no action"
|
|
2309
|
+
}
|
|
2310
|
+
},
|
|
2311
|
+
"compositePrimaryKeys": {},
|
|
2312
|
+
"uniqueConstraints": {
|
|
2313
|
+
"McpOAuthSession_state_unique": {
|
|
2314
|
+
"name": "McpOAuthSession_state_unique",
|
|
2315
|
+
"nullsNotDistinct": false,
|
|
2316
|
+
"columns": ["state"]
|
|
2317
|
+
}
|
|
2318
|
+
},
|
|
2319
|
+
"policies": {},
|
|
2320
|
+
"checkConstraints": {},
|
|
2321
|
+
"isRLSEnabled": false
|
|
2322
|
+
},
|
|
2323
|
+
"public.Project": {
|
|
2324
|
+
"name": "Project",
|
|
2325
|
+
"schema": "",
|
|
2326
|
+
"columns": {
|
|
2327
|
+
"createdAt": {
|
|
2328
|
+
"name": "createdAt",
|
|
2329
|
+
"type": "timestamp",
|
|
2330
|
+
"primaryKey": false,
|
|
2331
|
+
"notNull": true,
|
|
2332
|
+
"default": "now()"
|
|
2333
|
+
},
|
|
2334
|
+
"icon": {
|
|
2335
|
+
"name": "icon",
|
|
2336
|
+
"type": "varchar(64)",
|
|
2337
|
+
"primaryKey": false,
|
|
2338
|
+
"notNull": true,
|
|
2339
|
+
"default": "'folder'"
|
|
2340
|
+
},
|
|
2341
|
+
"iconColor": {
|
|
2342
|
+
"name": "iconColor",
|
|
2343
|
+
"type": "varchar(32)",
|
|
2344
|
+
"primaryKey": false,
|
|
2345
|
+
"notNull": true,
|
|
2346
|
+
"default": "'gray'"
|
|
2347
|
+
},
|
|
2348
|
+
"id": {
|
|
2349
|
+
"name": "id",
|
|
2350
|
+
"type": "uuid",
|
|
2351
|
+
"primaryKey": true,
|
|
2352
|
+
"notNull": true,
|
|
2353
|
+
"default": "gen_random_uuid()"
|
|
2354
|
+
},
|
|
2355
|
+
"instructions": {
|
|
2356
|
+
"name": "instructions",
|
|
2357
|
+
"type": "text",
|
|
2358
|
+
"primaryKey": false,
|
|
2359
|
+
"notNull": true,
|
|
2360
|
+
"default": "''"
|
|
2361
|
+
},
|
|
2362
|
+
"name": {
|
|
2363
|
+
"name": "name",
|
|
2364
|
+
"type": "text",
|
|
2365
|
+
"primaryKey": false,
|
|
2366
|
+
"notNull": true
|
|
2367
|
+
},
|
|
2368
|
+
"updatedAt": {
|
|
2369
|
+
"name": "updatedAt",
|
|
2370
|
+
"type": "timestamp",
|
|
2371
|
+
"primaryKey": false,
|
|
2372
|
+
"notNull": true,
|
|
2373
|
+
"default": "now()"
|
|
2374
|
+
},
|
|
2375
|
+
"userId": {
|
|
2376
|
+
"name": "userId",
|
|
2377
|
+
"type": "text",
|
|
2378
|
+
"primaryKey": false,
|
|
2379
|
+
"notNull": true
|
|
2380
|
+
}
|
|
2381
|
+
},
|
|
2382
|
+
"indexes": {
|
|
2383
|
+
"Project_user_id_idx": {
|
|
2384
|
+
"name": "Project_user_id_idx",
|
|
2385
|
+
"columns": [
|
|
2386
|
+
{
|
|
2387
|
+
"expression": "userId",
|
|
2388
|
+
"isExpression": false,
|
|
2389
|
+
"asc": true,
|
|
2390
|
+
"nulls": "last"
|
|
2391
|
+
}
|
|
2392
|
+
],
|
|
2393
|
+
"isUnique": false,
|
|
2394
|
+
"concurrently": false,
|
|
2395
|
+
"method": "btree",
|
|
2396
|
+
"with": {}
|
|
2397
|
+
}
|
|
2398
|
+
},
|
|
2399
|
+
"foreignKeys": {
|
|
2400
|
+
"Project_userId_user_id_fk": {
|
|
2401
|
+
"name": "Project_userId_user_id_fk",
|
|
2402
|
+
"tableFrom": "Project",
|
|
2403
|
+
"tableTo": "user",
|
|
2404
|
+
"columnsFrom": ["userId"],
|
|
2405
|
+
"columnsTo": ["id"],
|
|
2406
|
+
"onDelete": "cascade",
|
|
2407
|
+
"onUpdate": "no action"
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
"compositePrimaryKeys": {},
|
|
2411
|
+
"uniqueConstraints": {
|
|
2412
|
+
"Project_id_user": {
|
|
2413
|
+
"name": "Project_id_user",
|
|
2414
|
+
"nullsNotDistinct": false,
|
|
2415
|
+
"columns": ["id", "userId"]
|
|
2416
|
+
}
|
|
2417
|
+
},
|
|
2418
|
+
"policies": {},
|
|
2419
|
+
"checkConstraints": {},
|
|
2420
|
+
"isRLSEnabled": false
|
|
2421
|
+
},
|
|
2422
|
+
"public.session": {
|
|
2423
|
+
"name": "session",
|
|
2424
|
+
"schema": "",
|
|
2425
|
+
"columns": {
|
|
2426
|
+
"created_at": {
|
|
2427
|
+
"name": "created_at",
|
|
2428
|
+
"type": "timestamp",
|
|
2429
|
+
"primaryKey": false,
|
|
2430
|
+
"notNull": true,
|
|
2431
|
+
"default": "now()"
|
|
2432
|
+
},
|
|
2433
|
+
"expires_at": {
|
|
2434
|
+
"name": "expires_at",
|
|
2435
|
+
"type": "timestamp",
|
|
2436
|
+
"primaryKey": false,
|
|
2437
|
+
"notNull": true
|
|
2438
|
+
},
|
|
2439
|
+
"id": {
|
|
2440
|
+
"name": "id",
|
|
2441
|
+
"type": "text",
|
|
2442
|
+
"primaryKey": true,
|
|
2443
|
+
"notNull": true
|
|
2444
|
+
},
|
|
2445
|
+
"ip_address": {
|
|
2446
|
+
"name": "ip_address",
|
|
2447
|
+
"type": "text",
|
|
2448
|
+
"primaryKey": false,
|
|
2449
|
+
"notNull": false
|
|
2450
|
+
},
|
|
2451
|
+
"token": {
|
|
2452
|
+
"name": "token",
|
|
2453
|
+
"type": "text",
|
|
2454
|
+
"primaryKey": false,
|
|
2455
|
+
"notNull": true
|
|
2456
|
+
},
|
|
2457
|
+
"updated_at": {
|
|
2458
|
+
"name": "updated_at",
|
|
2459
|
+
"type": "timestamp",
|
|
2460
|
+
"primaryKey": false,
|
|
2461
|
+
"notNull": true
|
|
2462
|
+
},
|
|
2463
|
+
"user_agent": {
|
|
2464
|
+
"name": "user_agent",
|
|
2465
|
+
"type": "text",
|
|
2466
|
+
"primaryKey": false,
|
|
2467
|
+
"notNull": false
|
|
2468
|
+
},
|
|
2469
|
+
"user_id": {
|
|
2470
|
+
"name": "user_id",
|
|
2471
|
+
"type": "text",
|
|
2472
|
+
"primaryKey": false,
|
|
2473
|
+
"notNull": true
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2476
|
+
"indexes": {},
|
|
2477
|
+
"foreignKeys": {
|
|
2478
|
+
"session_user_id_user_id_fk": {
|
|
2479
|
+
"name": "session_user_id_user_id_fk",
|
|
2480
|
+
"tableFrom": "session",
|
|
2481
|
+
"tableTo": "user",
|
|
2482
|
+
"columnsFrom": ["user_id"],
|
|
2483
|
+
"columnsTo": ["id"],
|
|
2484
|
+
"onDelete": "cascade",
|
|
2485
|
+
"onUpdate": "no action"
|
|
2486
|
+
}
|
|
2487
|
+
},
|
|
2488
|
+
"compositePrimaryKeys": {},
|
|
2489
|
+
"uniqueConstraints": {
|
|
2490
|
+
"session_token_unique": {
|
|
2491
|
+
"name": "session_token_unique",
|
|
2492
|
+
"nullsNotDistinct": false,
|
|
2493
|
+
"columns": ["token"]
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
"policies": {},
|
|
2497
|
+
"checkConstraints": {},
|
|
2498
|
+
"isRLSEnabled": false
|
|
2499
|
+
},
|
|
2500
|
+
"public.user": {
|
|
2501
|
+
"name": "user",
|
|
2502
|
+
"schema": "",
|
|
2503
|
+
"columns": {
|
|
2504
|
+
"created_at": {
|
|
2505
|
+
"name": "created_at",
|
|
2506
|
+
"type": "timestamp",
|
|
2507
|
+
"primaryKey": false,
|
|
2508
|
+
"notNull": true,
|
|
2509
|
+
"default": "now()"
|
|
2510
|
+
},
|
|
2511
|
+
"email": {
|
|
2512
|
+
"name": "email",
|
|
2513
|
+
"type": "text",
|
|
2514
|
+
"primaryKey": false,
|
|
2515
|
+
"notNull": true
|
|
2516
|
+
},
|
|
2517
|
+
"email_verified": {
|
|
2518
|
+
"name": "email_verified",
|
|
2519
|
+
"type": "boolean",
|
|
2520
|
+
"primaryKey": false,
|
|
2521
|
+
"notNull": true,
|
|
2522
|
+
"default": false
|
|
2523
|
+
},
|
|
2524
|
+
"id": {
|
|
2525
|
+
"name": "id",
|
|
2526
|
+
"type": "text",
|
|
2527
|
+
"primaryKey": true,
|
|
2528
|
+
"notNull": true
|
|
2529
|
+
},
|
|
2530
|
+
"image": {
|
|
2531
|
+
"name": "image",
|
|
2532
|
+
"type": "text",
|
|
2533
|
+
"primaryKey": false,
|
|
2534
|
+
"notNull": false
|
|
2535
|
+
},
|
|
2536
|
+
"name": {
|
|
2537
|
+
"name": "name",
|
|
2538
|
+
"type": "text",
|
|
2539
|
+
"primaryKey": false,
|
|
2540
|
+
"notNull": true
|
|
2541
|
+
},
|
|
2542
|
+
"updated_at": {
|
|
2543
|
+
"name": "updated_at",
|
|
2544
|
+
"type": "timestamp",
|
|
2545
|
+
"primaryKey": false,
|
|
2546
|
+
"notNull": true,
|
|
2547
|
+
"default": "now()"
|
|
2548
|
+
}
|
|
2549
|
+
},
|
|
2550
|
+
"indexes": {},
|
|
2551
|
+
"foreignKeys": {},
|
|
2552
|
+
"compositePrimaryKeys": {},
|
|
2553
|
+
"uniqueConstraints": {
|
|
2554
|
+
"user_email_unique": {
|
|
2555
|
+
"name": "user_email_unique",
|
|
2556
|
+
"nullsNotDistinct": false,
|
|
2557
|
+
"columns": ["email"]
|
|
2558
|
+
}
|
|
2559
|
+
},
|
|
2560
|
+
"policies": {},
|
|
2561
|
+
"checkConstraints": {},
|
|
2562
|
+
"isRLSEnabled": false
|
|
2563
|
+
},
|
|
2564
|
+
"public.UserCredit": {
|
|
2565
|
+
"name": "UserCredit",
|
|
2566
|
+
"schema": "",
|
|
2567
|
+
"columns": {
|
|
2568
|
+
"credits": {
|
|
2569
|
+
"name": "credits",
|
|
2570
|
+
"type": "integer",
|
|
2571
|
+
"primaryKey": false,
|
|
2572
|
+
"notNull": true,
|
|
2573
|
+
"default": 50
|
|
2574
|
+
},
|
|
2575
|
+
"userId": {
|
|
2576
|
+
"name": "userId",
|
|
2577
|
+
"type": "text",
|
|
2578
|
+
"primaryKey": true,
|
|
2579
|
+
"notNull": true
|
|
2580
|
+
}
|
|
2581
|
+
},
|
|
2582
|
+
"indexes": {},
|
|
2583
|
+
"foreignKeys": {
|
|
2584
|
+
"UserCredit_userId_user_id_fk": {
|
|
2585
|
+
"name": "UserCredit_userId_user_id_fk",
|
|
2586
|
+
"tableFrom": "UserCredit",
|
|
2587
|
+
"tableTo": "user",
|
|
2588
|
+
"columnsFrom": ["userId"],
|
|
2589
|
+
"columnsTo": ["id"],
|
|
2590
|
+
"onDelete": "cascade",
|
|
2591
|
+
"onUpdate": "no action"
|
|
2592
|
+
}
|
|
2593
|
+
},
|
|
2594
|
+
"compositePrimaryKeys": {},
|
|
2595
|
+
"uniqueConstraints": {},
|
|
2596
|
+
"policies": {},
|
|
2597
|
+
"checkConstraints": {},
|
|
2598
|
+
"isRLSEnabled": false
|
|
2599
|
+
},
|
|
2600
|
+
"public.UserModelPreference": {
|
|
2601
|
+
"name": "UserModelPreference",
|
|
2602
|
+
"schema": "",
|
|
2603
|
+
"columns": {
|
|
2604
|
+
"createdAt": {
|
|
2605
|
+
"name": "createdAt",
|
|
2606
|
+
"type": "timestamp",
|
|
2607
|
+
"primaryKey": false,
|
|
2608
|
+
"notNull": true,
|
|
2609
|
+
"default": "now()"
|
|
2610
|
+
},
|
|
2611
|
+
"enabled": {
|
|
2612
|
+
"name": "enabled",
|
|
2613
|
+
"type": "boolean",
|
|
2614
|
+
"primaryKey": false,
|
|
2615
|
+
"notNull": true
|
|
2616
|
+
},
|
|
2617
|
+
"modelId": {
|
|
2618
|
+
"name": "modelId",
|
|
2619
|
+
"type": "varchar(256)",
|
|
2620
|
+
"primaryKey": false,
|
|
2621
|
+
"notNull": true
|
|
2622
|
+
},
|
|
2623
|
+
"updatedAt": {
|
|
2624
|
+
"name": "updatedAt",
|
|
2625
|
+
"type": "timestamp",
|
|
2626
|
+
"primaryKey": false,
|
|
2627
|
+
"notNull": true,
|
|
2628
|
+
"default": "now()"
|
|
2629
|
+
},
|
|
2630
|
+
"userId": {
|
|
2631
|
+
"name": "userId",
|
|
2632
|
+
"type": "text",
|
|
2633
|
+
"primaryKey": false,
|
|
2634
|
+
"notNull": true
|
|
2635
|
+
}
|
|
2636
|
+
},
|
|
2637
|
+
"indexes": {
|
|
2638
|
+
"UserModelPreference_user_id_idx": {
|
|
2639
|
+
"name": "UserModelPreference_user_id_idx",
|
|
2640
|
+
"columns": [
|
|
2641
|
+
{
|
|
2642
|
+
"expression": "userId",
|
|
2643
|
+
"isExpression": false,
|
|
2644
|
+
"asc": true,
|
|
2645
|
+
"nulls": "last"
|
|
2646
|
+
}
|
|
2647
|
+
],
|
|
2648
|
+
"isUnique": false,
|
|
2649
|
+
"concurrently": false,
|
|
2650
|
+
"method": "btree",
|
|
2651
|
+
"with": {}
|
|
2652
|
+
}
|
|
2653
|
+
},
|
|
2654
|
+
"foreignKeys": {
|
|
2655
|
+
"UserModelPreference_userId_user_id_fk": {
|
|
2656
|
+
"name": "UserModelPreference_userId_user_id_fk",
|
|
2657
|
+
"tableFrom": "UserModelPreference",
|
|
2658
|
+
"tableTo": "user",
|
|
2659
|
+
"columnsFrom": ["userId"],
|
|
2660
|
+
"columnsTo": ["id"],
|
|
2661
|
+
"onDelete": "cascade",
|
|
2662
|
+
"onUpdate": "no action"
|
|
2663
|
+
}
|
|
2664
|
+
},
|
|
2665
|
+
"compositePrimaryKeys": {
|
|
2666
|
+
"UserModelPreference_userId_modelId_pk": {
|
|
2667
|
+
"name": "UserModelPreference_userId_modelId_pk",
|
|
2668
|
+
"columns": ["userId", "modelId"]
|
|
2669
|
+
}
|
|
2670
|
+
},
|
|
2671
|
+
"uniqueConstraints": {},
|
|
2672
|
+
"policies": {},
|
|
2673
|
+
"checkConstraints": {},
|
|
2674
|
+
"isRLSEnabled": false
|
|
2675
|
+
},
|
|
2676
|
+
"public.verification": {
|
|
2677
|
+
"name": "verification",
|
|
2678
|
+
"schema": "",
|
|
2679
|
+
"columns": {
|
|
2680
|
+
"created_at": {
|
|
2681
|
+
"name": "created_at",
|
|
2682
|
+
"type": "timestamp",
|
|
2683
|
+
"primaryKey": false,
|
|
2684
|
+
"notNull": true,
|
|
2685
|
+
"default": "now()"
|
|
2686
|
+
},
|
|
2687
|
+
"expires_at": {
|
|
2688
|
+
"name": "expires_at",
|
|
2689
|
+
"type": "timestamp",
|
|
2690
|
+
"primaryKey": false,
|
|
2691
|
+
"notNull": true
|
|
2692
|
+
},
|
|
2693
|
+
"id": {
|
|
2694
|
+
"name": "id",
|
|
2695
|
+
"type": "text",
|
|
2696
|
+
"primaryKey": true,
|
|
2697
|
+
"notNull": true
|
|
2698
|
+
},
|
|
2699
|
+
"identifier": {
|
|
2700
|
+
"name": "identifier",
|
|
2701
|
+
"type": "text",
|
|
2702
|
+
"primaryKey": false,
|
|
2703
|
+
"notNull": true
|
|
2704
|
+
},
|
|
2705
|
+
"updated_at": {
|
|
2706
|
+
"name": "updated_at",
|
|
2707
|
+
"type": "timestamp",
|
|
2708
|
+
"primaryKey": false,
|
|
2709
|
+
"notNull": true,
|
|
2710
|
+
"default": "now()"
|
|
2711
|
+
},
|
|
2712
|
+
"value": {
|
|
2713
|
+
"name": "value",
|
|
2714
|
+
"type": "text",
|
|
2715
|
+
"primaryKey": false,
|
|
2716
|
+
"notNull": true
|
|
2717
|
+
}
|
|
2718
|
+
},
|
|
2719
|
+
"indexes": {},
|
|
2720
|
+
"foreignKeys": {},
|
|
2721
|
+
"compositePrimaryKeys": {},
|
|
2722
|
+
"uniqueConstraints": {},
|
|
2723
|
+
"policies": {},
|
|
2724
|
+
"checkConstraints": {},
|
|
2725
|
+
"isRLSEnabled": false
|
|
2726
|
+
}
|
|
2727
|
+
},
|
|
2728
|
+
"enums": {},
|
|
2729
|
+
"schemas": {},
|
|
2730
|
+
"sequences": {},
|
|
2731
|
+
"roles": {},
|
|
2732
|
+
"policies": {},
|
|
2733
|
+
"views": {},
|
|
2734
|
+
"_meta": {
|
|
2735
|
+
"columns": {},
|
|
2736
|
+
"schemas": {},
|
|
2737
|
+
"tables": {}
|
|
2738
|
+
}
|
|
2739
|
+
}
|