diff --git a/.cursor/rules/i18n.mdc b/.cursor/rules/i18n.mdc
new file mode 100644
index 000000000..74fec07a1
--- /dev/null
+++ b/.cursor/rules/i18n.mdc
@@ -0,0 +1,17 @@
+---
+description:
+globs: locales/**/*.json
+alwaysApply: false
+---
+
+i18n Coding Standards.
+
+1. Read and follow https://www.i18next.com/translation-function/formatting
+
+2. Use flat keys. Use `.` to separate. Do not use object form nesting.
+
+3. For languages sensitive to singular and plural, distinguish between them using the `_one` and `_other` forms.
+
+4. In the build stage, flattened dot-separated keys (such as 'exif.custom.rendered.custom') will be automatically converted to nested object objects, which may cause conflicts. For example, 'exif.custom.rendered.custom' may conflict with 'exif.custom.rendered'. Please avoid using such dot-separated flat keys.
+
+5. @locales is located at the root directory and needs to handle all existing languages at the same time.
diff --git a/.cursorignore b/.cursorignore
new file mode 100644
index 000000000..6f9f00ff4
--- /dev/null
+++ b/.cursorignore
@@ -0,0 +1 @@
+# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv)
diff --git a/.gitattributes b/.gitattributes
index 6313b56c5..e8c09c27f 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,2 @@
* text=auto eol=lf
+*.splinecode filter=lfs diff=lfs merge=lfs -text
diff --git a/.github/actions/setup-xcode/action.yml b/.github/actions/setup-xcode/action.yml
new file mode 100644
index 000000000..c534d5202
--- /dev/null
+++ b/.github/actions/setup-xcode/action.yml
@@ -0,0 +1,14 @@
+name: "Setup Xcode"
+description: "Setup specific Xcode version for iOS builds"
+inputs:
+ xcode-version:
+ description: "Xcode version to use"
+ required: false
+ default: "16.4"
+
+runs:
+ using: "composite"
+ steps:
+ - uses: maxim-lobanov/setup-xcode@v1
+ with:
+ xcode-version: ${{ inputs.xcode-version }}
diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml
index 2232dffd4..c102ba4a7 100644
--- a/.github/workflows/build-android.yml
+++ b/.github/workflows/build-android.yml
@@ -1,4 +1,4 @@
-name: Build Android
+name: 🤖 Build Android
on:
push:
diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.yml
index 0607e0910..c4c1412af 100644
--- a/.github/workflows/build-desktop.yml
+++ b/.github/workflows/build-desktop.yml
@@ -1,4 +1,4 @@
-name: Build Desktop
+name: 🖥️ Build Desktop
on:
push:
@@ -32,6 +32,7 @@ env:
VITE_OPENPANEL_CLIENT_ID: ${{ vars.VITE_OPENPANEL_CLIENT_ID }}
VITE_OPENPANEL_API_URL: ${{ vars.VITE_OPENPANEL_API_URL }}
VITE_FIREBASE_CONFIG: ${{ vars.VITE_FIREBASE_CONFIG }}
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
NODE_OPTIONS: --max-old-space-size=8192
jobs:
@@ -44,7 +45,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [macos-latest, ubuntu-latest, windows-latest]
+ os: [macos-16, ubuntu-latest, windows-latest]
exclude:
- os: ${{ github.event.inputs.store == 'true' && 'ubuntu-latest' }}
@@ -137,14 +138,11 @@ jobs:
- name: Build - Vite
working-directory: apps/desktop
run: pnpm build:electron-vite ${{ env.PROD == 'false' && '--mode staging' || '' }}
- env:
- SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
+
- name: Build - Windows and Linux
- if: runner.os != 'macOS'
+ if: runner.os == 'Linux' || (runner.os == 'Windows' && github.event.inputs.store != 'true')
working-directory: apps/desktop
run: pnpm build:electron-forge ${{ env.PROD == 'false' && '--mode=staging' || '' }}
- env:
- SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Build - macOS
if: runner.os == 'macOS' && github.event.inputs.store != 'true'
@@ -174,12 +172,15 @@ jobs:
working-directory: apps/desktop
run: pnpm build:electron-forge:mas
+ - name: Build - Microsoft Store
+ if: runner.os == 'Windows' && github.event.inputs.store == 'true'
+ working-directory: apps/desktop
+ run: pnpm build:electron-forge:ms
+
- name: Build - Renderer
if: runner.os == 'Linux'
working-directory: apps/desktop
run: pnpm build:render
- env:
- SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Upload file (macos-arm64-dmg)
uses: actions/upload-artifact@v4
diff --git a/.github/workflows/build-ios-development.yml b/.github/workflows/build-ios-development.yml
index 5bfeda90e..8f2e595f4 100644
--- a/.github/workflows/build-ios-development.yml
+++ b/.github/workflows/build-ios-development.yml
@@ -1,4 +1,4 @@
-name: Build iOS for development
+name: 📱 Build iOS for development
on:
push:
@@ -29,7 +29,7 @@ jobs:
if [ -n "$available" ]; then
echo "runner-label=self-hosted" >> $GITHUB_OUTPUT
else
- echo "runner-label=macos-15" >> $GITHUB_OUTPUT
+ echo "runner-label=macos-16" >> $GITHUB_OUTPUT
fi
build-ipa-device-self-hosted:
@@ -71,17 +71,17 @@ jobs:
build-ipa-device-github:
name: Build iOS IPA for device (GitHub-hosted)
- if: github.secret_source != 'None' && needs.check-runner.outputs.runner-label == 'macos-15'
+ if: github.secret_source != 'None' && needs.check-runner.outputs.runner-label == 'macos-16'
needs: check-runner
- runs-on: macos-15
+ runs-on: macos-16
steps:
- - name: Use Xcode 16.3
- run: sudo xcode-select -s /Applications/Xcode_16.3.app
-
- name: 📦 Checkout code
uses: actions/checkout@v4
+ - name: 🔧 Setup Xcode
+ uses: ./.github/actions/setup-xcode
+
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v4
@@ -117,15 +117,15 @@ jobs:
build-simulator:
name: Build iOS IPA for simulator
if: github.secret_source != 'None'
- runs-on: macos-15
+ runs-on: macos-16
steps:
- - name: Use Xcode 16.3
- run: sudo xcode-select -s /Applications/Xcode_16.3.app
-
- name: 📦 Checkout code
uses: actions/checkout@v4
+ - name: 🔧 Setup Xcode
+ uses: ./.github/actions/setup-xcode
+
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v4
diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml
index 24334ea0b..c810f7737 100644
--- a/.github/workflows/build-ios.yml
+++ b/.github/workflows/build-ios.yml
@@ -36,7 +36,7 @@ jobs:
if [ -n "$available" ]; then
echo "runner-label=self-hosted" >> $GITHUB_OUTPUT
else
- echo "runner-label=macos-latest" >> $GITHUB_OUTPUT
+ echo "runner-label=macos-16" >> $GITHUB_OUTPUT
fi
build-ipa-self-hosted:
@@ -83,9 +83,9 @@ jobs:
build-ipa-github:
name: Build iOS IPA (GitHub)
- if: github.secret_source != 'None' && needs.check-runner.outputs.runner-label == 'macos-latest'
+ if: github.secret_source != 'None' && needs.check-runner.outputs.runner-label == 'macos-16'
needs: check-runner
- runs-on: macos-latest
+ runs-on: macos-16
steps:
- name: 📦 Checkout code
diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml
index 8c94e92f5..772efb3c8 100644
--- a/.github/workflows/build-web.yml
+++ b/.github/workflows/build-web.yml
@@ -3,7 +3,7 @@ on:
push:
branches: [main, dev]
-name: CI Build web and SSR server
+name: 🌐 CI Build web and SSR server
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ssr
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml
new file mode 100644
index 000000000..8a2910f51
--- /dev/null
+++ b/.github/workflows/claude-code-review.yml
@@ -0,0 +1,38 @@
+name: 🤖 Claude PR Assistant
+
+on:
+ issue_comment:
+ types: [created]
+ pull_request_review_comment:
+ types: [created]
+ issues:
+ types: [opened, assigned]
+ pull_request_review:
+ types: [submitted]
+
+jobs:
+ claude-code-action:
+ if: |
+ (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
+ (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
+ (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
+ (github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: read
+ issues: read
+ id-token: write
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - name: Run Claude PR Action
+ uses: anthropics/claude-code-action@beta
+ with:
+ # anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
+ # Or use OAuth token instead:
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ timeout_minutes: "60"
diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml
new file mode 100644
index 000000000..9a8b4fd08
--- /dev/null
+++ b/.github/workflows/claude.yml
@@ -0,0 +1,63 @@
+name: 🧠 Claude Code
+
+on:
+ issue_comment:
+ types: [created]
+ pull_request_review_comment:
+ types: [created]
+ issues:
+ types: [opened, assigned]
+ pull_request_review:
+ types: [submitted]
+
+jobs:
+ claude:
+ if: |
+ (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
+ (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
+ (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
+ (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: read
+ issues: read
+ id-token: write
+ actions: read # Required for Claude to read CI results on PRs
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - name: Run Claude Code
+ id: claude
+ uses: anthropics/claude-code-action@beta
+ with:
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+
+ # This is an optional setting that allows Claude to read CI results on PRs
+ additional_permissions: |
+ actions: read
+
+ # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
+ # model: "claude-opus-4-20250514"
+
+ # Optional: Customize the trigger phrase (default: @claude)
+ # trigger_phrase: "/claude"
+
+ # Optional: Trigger when specific user is assigned to an issue
+ # assignee_trigger: "claude-bot"
+
+ # Optional: Allow Claude to run specific commands
+ # allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
+
+ # Optional: Add custom instructions for Claude to customize its behavior for your project
+ # custom_instructions: |
+ # Follow our coding standards
+ # Ensure all new code has tests
+ # Use TypeScript for new files
+
+ # Optional: Custom environment variables for Claude
+ # claude_env: |
+ # NODE_ENV: test
diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml
index a4f430f5a..5f12f111c 100644
--- a/.github/workflows/issue-labeler.yml
+++ b/.github/workflows/issue-labeler.yml
@@ -1,4 +1,4 @@
-name: Issue labeler
+name: 🏷️ Issue labeler
on:
issues:
types: [opened]
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index eedb9be7d..a04e98366 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -8,7 +8,7 @@ env:
VITE_WEB_URL: https://app.folo.is
VITE_API_URL: https://api.follow.is
-name: CI Format, Typecheck and Lint
+name: ✨ CI Format, Typecheck and Lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-lint
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml
index 5b0b2700d..a78e3e41c 100644
--- a/.github/workflows/pr-title-check.yml
+++ b/.github/workflows/pr-title-check.yml
@@ -1,4 +1,4 @@
-name: PR Conventional Commit Validation
+name: ✅ PR Conventional Commit Validation
on:
pull_request:
diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml
index 9c459a192..50a715a59 100644
--- a/.github/workflows/sync.yaml
+++ b/.github/workflows/sync.yaml
@@ -1,4 +1,4 @@
-name: Branch Synchronization
+name: 🔄 Branch Synchronization
on:
push:
diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml
index d5acd719d..b2df7f891 100644
--- a/.github/workflows/tag.yml
+++ b/.github/workflows/tag.yml
@@ -1,4 +1,4 @@
-name: Tag on SemVer Commit
+name: 🏷️ Tag on SemVer Commit
on:
push:
diff --git a/.github/workflows/translator.yml b/.github/workflows/translator.yml
index 378ef1a9d..929f9d098 100644
--- a/.github/workflows/translator.yml
+++ b/.github/workflows/translator.yml
@@ -1,4 +1,4 @@
-name: "translator"
+name: "🌍 translator"
on:
issues:
types: [opened, edited]
diff --git a/.gitignore b/.gitignore
index e6b9088ef..639b493d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,4 +23,9 @@ apps/desktop/src/renderer/dev-dist
tsconfig.tsbuildinfo
buildServer.json
-**/**/generated-routes.ts
\ No newline at end of file
+**/**/generated-routes.ts
+
+apps/desktop/build/appxmanifest.xml
+
+.claude/settings.local.json
+PRPS/*
diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 100644
index 000000000..6e91955f0
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1,234 @@
+# CLAUDE.md
+
+This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
+
+## Project Overview
+
+Follow (Folo) is a modern RSS aggregator and content management platform with multiple applications across different platforms. It's built as a monorepo using pnpm workspaces with Turbo for build orchestration.
+
+## Repository Structure
+
+### Applications (`apps/`)
+
+- **`apps/desktop/`** - Electron desktop application with main and renderer processes
+- **`apps/mobile/`** - React Native mobile app for iOS and Android
+- **`apps/ssr/`** - Server-side rendered web application
+- **`apps/mobile/web-app/`** - HTML renderer for mobile web views
+
+### Packages (`packages/`)
+
+- **`packages/internal/`** - Internal shared packages (components, database, hooks, store, etc.)
+- **`packages/configs/`** - Shared configuration files (Tailwind, TypeScript)
+- **`packages/utils/`** - Utility functions and helpers
+- **`packages/readability/`** - Content readability parsing
+- **`packages/vite-plugin-route-builder/`** - Custom Vite plugin for route generation
+
+## Essential Commands
+
+### Development
+
+```bash
+# Install dependencies (from root)
+pnpm install
+
+# Desktop app development (browser - recommended)
+cd apps/desktop && pnpm run dev:web
+
+# Desktop app development (Electron)
+cd apps/desktop && pnpm run dev:electron
+
+# Mobile app development
+cd apps/mobile && pnpm run dev
+
+# SSR development
+cd apps/ssr && pnpm run dev
+
+# Build web version
+pnpm run build:web
+```
+
+### Code Quality
+
+```bash
+# Lint all code
+pnpm run lint
+
+# Fix linting issues
+pnpm run lint:fix
+
+# TypeScript linting
+pnpm run lint:tsl
+
+# Format code
+pnpm run format
+
+# Type checking
+pnpm run typecheck
+
+# Run tests
+pnpm run test
+```
+
+### Package Management
+
+```bash
+# Build shared packages
+pnpm run build:packages
+
+# Generate i18n templates
+pnpm run generator:i18n-template
+
+# Sync icons from SVG to React Native
+pnpm run icons:sync
+```
+
+## Architecture Guidelines
+
+### Multi-Platform Architecture
+
+- **Desktop**: Electron app with main/renderer processes, using Vite for both
+- **Mobile**: React Native with Expo, shared UI components with web
+- **Web/SSR**: Next.js-style SSR application for server-side rendering
+- **Shared Logic**: Common business logic in `packages/internal/`
+
+### State Management
+
+- **Jotai** for atomic state management across all platforms
+- **Zustand** for complex state stores (in `packages/internal/store/`)
+- **React Query** for server state management
+
+### Styling
+
+- **Tailwind CSS** for styling across all platforms
+- Platform-specific Tailwind configs in each app
+- Shared Tailwind utilities in `packages/configs/tailwindcss/`
+- **UI Design Style**: Follow Vercel and Linear SaaS UI aesthetics - clean, modern, minimal design with subtle shadows, rounded corners, and excellent typography
+
+#### UIKit Colors for Desktop Components
+
+For desktop components (`apps/desktop/**/*`) and shared UI components (`packages/internal/components/**/*`), use Apple UIKit color system with Tailwind classes. **Important**: Always use the correct Tailwind prefix for each color category:
+
+**System Colors**: `text-red`, `bg-red`, `border-red` (same for `orange`, `yellow`, `green`, `mint`, `teal`, `cyan`, `blue`, `indigo`, `purple`, `pink`, `brown`, `gray`)
+
+**Fill Colors**:
+
+- Background: `bg-fill`, `bg-fill-secondary`, `bg-fill-tertiary`, `bg-fill-quaternary`, `bg-fill-quinary`, `bg-fill-vibrant`, `bg-fill-vibrant-secondary`, `bg-fill-vibrant-tertiary`, `bg-fill-vibrant-quaternary`, `bg-fill-vibrant-quinary`
+- Border: `border-fill`, `border-fill-secondary`, etc.
+
+**Text Colors**: `text-text`, `text-text-secondary`, `text-text-tertiary`, `text-text-quaternary`, `text-text-quinary`, `text-text-vibrant`, `text-text-vibrant-secondary`, `text-text-vibrant-tertiary`, `text-text-vibrant-quaternary`, `text-text-vibrant-quinary`
+
+**Material Colors**: `bg-material-ultra-thick`, `bg-material-thick`, `bg-material-medium`, `bg-material-thin`, `bg-material-ultra-thin`, `bg-material-opaque`
+
+**Control Colors**: `bg-control-enabled`, `bg-control-disabled`
+
+**Interface Colors**: `bg-menu`, `bg-popover`, `bg-titlebar`, `bg-sidebar`, `bg-selection-focused`, `bg-selection-focused-fill`, `bg-selection-unfocused`, `bg-selection-unfocused-fill`, `bg-header-view`, `bg-tooltip`, `bg-under-window-background`
+
+These colors automatically adapt to light/dark mode following Apple's design system. Remember to use the appropriate prefix (`text-`, `bg-`, `border-`) based on the CSS property you're styling.
+
+#### Icons
+
+For icon usage, prioritize the MingCute icon library with the `i-mgc-` prefix. Icons are available in the format `i-mgc-[icon-name]-[style]` where style can be `re` (regular), `fi` (filled), etc.
+
+**Important**: Always try to find an appropriate icon with the `i-mgc-` prefix first. Only use the `i-mingcute-` prefix as a fallback when no suitable `i-mgc-` icon exists.
+
+Examples:
+
+- Preferred: `i-mgc-copy-cute-re`, `i-mgc-external-link-cute-re`
+- Fallback only: `i-mingcute-copy-line` (only if no mgc equivalent exists)
+
+### Database
+
+- **Drizzle ORM** with SQLite for local data storage
+- Platform-specific database implementations in `packages/internal/database/`
+- Migration system with versioned SQL files
+
+### Internationalization
+
+- **i18next** for internationalization
+- Locale files in `locales/` directory organized by feature
+- Custom ESLint rules for i18n validation
+
+#### i18n Writing Guidelines
+
+1. Follow [i18next formatting guidelines](https://www.i18next.com/translation-function/formatting)
+2. **Use flat keys only** - Use `.` notation for separation, no nested objects
+3. For plural-sensitive languages, use `_one` and `_other` suffixes
+4. **Avoid conflicting flat keys** - During build, flat dot-separated keys (e.g., 'exif.custom.rendered.custom') are automatically converted to nested objects, which can cause conflicts. For example, 'exif.custom.rendered.custom' conflicts with 'exif.custom.rendered'. Avoid such patterns.
+
+Example:
+
+```json
+{
+ "personalize.title": "Personalization",
+ "personalize.prompt.label": "Personal Prompt",
+ "shortcuts.add": "Add Shortcut",
+ "shortcuts.validation.required": "Name and prompt are required"
+}
+```
+
+## Development Setup Notes
+
+### Prerequisites
+
+- Enable Corepack: `corepack enable && corepack prepare`
+- For mobile development: macOS with Xcode required
+
+### Environment Setup
+
+- Copy `.env.example` to `.env` in relevant app directories
+- For development, use `VITE_API_URL=https://api.follow.is`
+- Browser development uses `https://app.folo.is/__debug_proxy` for API access
+
+### Mobile Development
+
+- iOS development requires Xcode and iOS simulator
+- Native module development in `apps/mobile/native/`
+- Use `pnpm expo prebuild --clean` for clean builds
+
+## Code Organization Patterns
+
+### Import Conventions
+
+- Use `pathe` instead of `node:path` for cross-platform compatibility
+- Shared utilities should be imported from `packages/internal/`
+- Platform-specific code should be clearly separated
+
+### Component Structure
+
+- Shared UI components in `packages/internal/components/`
+- Platform-specific components in respective app directories
+- Use TypeScript interfaces for component props
+
+### Error Handling
+
+- Custom error parsing utilities in `packages/internal/utils/`
+- Sentry integration for error reporting across platforms
+
+## Build and Deployment
+
+### Build Outputs
+
+- Desktop: `apps/desktop/out/` for packaged applications
+- Web: `apps/desktop/out/web/` for static web assets
+- Mobile: Platform-specific build directories
+
+### Turbo Configuration
+
+- Build orchestration via `turbo.json`
+- Dependency-aware builds with output caching
+- Parallel execution for independent packages
+
+## Testing Strategy
+
+- Vitest for unit testing across packages
+- Platform-specific test configurations
+- Test files co-located with source code
+
+## Key Dependencies
+
+- **Build**: Vite, Turbo, pnpm workspaces
+- **Frontend**: React 19, Electron, React Native, Expo
+- **State**: Jotai, Zustand, TanStack Query
+- **Styling**: Tailwind CSS, Framer Motion
+- **Database**: Drizzle ORM, SQLite
+- **Utils**: Day.js, Zod, i18next
diff --git a/README.md b/README.md
index 6fef28ff3..90d5539ce 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-
+
Folo
@@ -17,12 +17,12 @@
-

+

-

-

-

-

+

+

+

+
statement-breakpoint
+CREATE UNIQUE INDEX `ai_chat_messages_unq` ON `ai_chat_messages` (`room_id`,`id`);--> statement-breakpoint
+CREATE TABLE `ai_chat` (
+ `room_id` text PRIMARY KEY NOT NULL,
+ `title` text,
+ `created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL
+);
diff --git a/packages/internal/database/src/drizzle/0030_common_gabe_jones.sql b/packages/internal/database/src/drizzle/0030_common_gabe_jones.sql
new file mode 100644
index 000000000..9472f9f45
--- /dev/null
+++ b/packages/internal/database/src/drizzle/0030_common_gabe_jones.sql
@@ -0,0 +1,14 @@
+PRAGMA foreign_keys=OFF;--> statement-breakpoint
+CREATE TABLE `__new_ai_chat_messages` (
+ `room_id` text NOT NULL,
+ `id` text PRIMARY KEY NOT NULL,
+ `created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
+ `message` text NOT NULL,
+ FOREIGN KEY (`room_id`) REFERENCES `ai_chat`(`room_id`) ON UPDATE no action ON DELETE no action
+);
+--> statement-breakpoint
+INSERT INTO `__new_ai_chat_messages`("room_id", "id", "created_at", "message") SELECT "room_id", "id", "created_at", "message" FROM `ai_chat_messages`;--> statement-breakpoint
+DROP TABLE `ai_chat_messages`;--> statement-breakpoint
+ALTER TABLE `__new_ai_chat_messages` RENAME TO `ai_chat_messages`;--> statement-breakpoint
+PRAGMA foreign_keys=ON;--> statement-breakpoint
+CREATE UNIQUE INDEX `ai_chat_messages_unq` ON `ai_chat_messages` (`room_id`,`id`);
\ No newline at end of file
diff --git a/packages/internal/database/src/drizzle/0029_outstanding_captain_universe.sql b/packages/internal/database/src/drizzle/0031_kind_ikaris.sql
similarity index 100%
rename from packages/internal/database/src/drizzle/0029_outstanding_captain_universe.sql
rename to packages/internal/database/src/drizzle/0031_kind_ikaris.sql
diff --git a/packages/internal/database/src/drizzle/0032_orange_prima.sql b/packages/internal/database/src/drizzle/0032_orange_prima.sql
new file mode 100644
index 000000000..21decb1b7
--- /dev/null
+++ b/packages/internal/database/src/drizzle/0032_orange_prima.sql
@@ -0,0 +1 @@
+ALTER TABLE `subscriptions` ADD `hide_from_timeline` integer;
\ No newline at end of file
diff --git a/packages/internal/database/src/drizzle/meta/0029_snapshot.json b/packages/internal/database/src/drizzle/meta/0029_snapshot.json
index df146a7f6..a2cbfa51f 100644
--- a/packages/internal/database/src/drizzle/meta/0029_snapshot.json
+++ b/packages/internal/database/src/drizzle/meta/0029_snapshot.json
@@ -1,9 +1,96 @@
{
"version": "6",
"dialect": "sqlite",
- "id": "f4b38bd8-188d-4b33-8092-c2a67dbf88f2",
+ "id": "11dab821-4739-44db-818a-ef81702fd2b5",
"prevId": "0b3abda0-88d8-44a7-ac77-0e16056b5845",
"tables": {
+ "ai_chat_messages": {
+ "name": "ai_chat_messages",
+ "columns": {
+ "room_id": {
+ "name": "room_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ },
+ "message": {
+ "name": "message",
+ "type": "blob",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "ai_chat_messages_unq": {
+ "name": "ai_chat_messages_unq",
+ "columns": ["room_id", "id"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "ai_chat_messages_room_id_ai_chat_room_id_fk": {
+ "name": "ai_chat_messages_room_id_ai_chat_room_id_fk",
+ "tableFrom": "ai_chat_messages",
+ "tableTo": "ai_chat",
+ "columnsFrom": ["room_id"],
+ "columnsTo": ["room_id"],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "ai_chat": {
+ "name": "ai_chat",
+ "columns": {
+ "room_id": {
+ "name": "room_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
"collections": {
"name": "collections",
"columns": {
@@ -80,13 +167,6 @@
"notNull": false,
"autoincrement": false
},
- "readability_updated_at": {
- "name": "readability_updated_at",
- "type": "integer",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
"description": {
"name": "description",
"type": "text",
diff --git a/packages/internal/database/src/drizzle/meta/0030_snapshot.json b/packages/internal/database/src/drizzle/meta/0030_snapshot.json
new file mode 100644
index 000000000..86d81db33
--- /dev/null
+++ b/packages/internal/database/src/drizzle/meta/0030_snapshot.json
@@ -0,0 +1,872 @@
+{
+ "version": "6",
+ "dialect": "sqlite",
+ "id": "31cec72c-8c06-40ab-8e7f-c2e1be252870",
+ "prevId": "11dab821-4739-44db-818a-ef81702fd2b5",
+ "tables": {
+ "ai_chat_messages": {
+ "name": "ai_chat_messages",
+ "columns": {
+ "room_id": {
+ "name": "room_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ },
+ "message": {
+ "name": "message",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "ai_chat_messages_unq": {
+ "name": "ai_chat_messages_unq",
+ "columns": ["room_id", "id"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "ai_chat_messages_room_id_ai_chat_room_id_fk": {
+ "name": "ai_chat_messages_room_id_ai_chat_room_id_fk",
+ "tableFrom": "ai_chat_messages",
+ "tableTo": "ai_chat",
+ "columnsFrom": ["room_id"],
+ "columnsTo": ["room_id"],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "ai_chat": {
+ "name": "ai_chat",
+ "columns": {
+ "room_id": {
+ "name": "room_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "collections": {
+ "name": "collections",
+ "columns": {
+ "feed_id": {
+ "name": "feed_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "entry_id": {
+ "name": "entry_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "view": {
+ "name": "view",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "entries": {
+ "name": "entries",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "url": {
+ "name": "url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "source_content": {
+ "name": "source_content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "guid": {
+ "name": "guid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "author": {
+ "name": "author",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "author_url": {
+ "name": "author_url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "author_avatar": {
+ "name": "author_avatar",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "inserted_at": {
+ "name": "inserted_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "published_at": {
+ "name": "published_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "media": {
+ "name": "media",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "categories": {
+ "name": "categories",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attachments": {
+ "name": "attachments",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "extra": {
+ "name": "extra",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feed_id": {
+ "name": "feed_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "inbox_handle": {
+ "name": "inbox_handle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "read": {
+ "name": "read",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "sources": {
+ "name": "sources",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "settings": {
+ "name": "settings",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "feeds": {
+ "name": "feeds",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "url": {
+ "name": "url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "error_at": {
+ "name": "error_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "site_url": {
+ "name": "site_url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "owner_user_id": {
+ "name": "owner_user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "error_message": {
+ "name": "error_message",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "subscription_count": {
+ "name": "subscription_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updates_per_week": {
+ "name": "updates_per_week",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "latest_entry_published_at": {
+ "name": "latest_entry_published_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "tip_users": {
+ "name": "tip_users",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "published_at": {
+ "name": "published_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "images": {
+ "name": "images",
+ "columns": {
+ "url": {
+ "name": "url",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "colors": {
+ "name": "colors",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "inboxes": {
+ "name": "inboxes",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "lists": {
+ "name": "lists",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "feed_ids": {
+ "name": "feed_ids",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "view": {
+ "name": "view",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "fee": {
+ "name": "fee",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "owner_user_id": {
+ "name": "owner_user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "subscription_count": {
+ "name": "subscription_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "purchase_amount": {
+ "name": "purchase_amount",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "subscriptions": {
+ "name": "subscriptions",
+ "columns": {
+ "feed_id": {
+ "name": "feed_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "list_id": {
+ "name": "list_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "inbox_id": {
+ "name": "inbox_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "view": {
+ "name": "view",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "is_private": {
+ "name": "is_private",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "category": {
+ "name": "category",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "type": {
+ "name": "type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "summaries": {
+ "name": "summaries",
+ "columns": {
+ "entry_id": {
+ "name": "entry_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "summary": {
+ "name": "summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "readability_summary": {
+ "name": "readability_summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "unq": {
+ "name": "unq",
+ "columns": ["entry_id", "language"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "translations": {
+ "name": "translations",
+ "columns": {
+ "entry_id": {
+ "name": "entry_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "readability_content": {
+ "name": "readability_content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "translation-unique-index": {
+ "name": "translation-unique-index",
+ "columns": ["entry_id", "language"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "unread": {
+ "name": "unread",
+ "columns": {
+ "subscription_id": {
+ "name": "subscription_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "count": {
+ "name": "count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "users": {
+ "name": "users",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "handle": {
+ "name": "handle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "is_me": {
+ "name": "is_me",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "email_verified": {
+ "name": "email_verified",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "bio": {
+ "name": "bio",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "website": {
+ "name": "website",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "social_links": {
+ "name": "social_links",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ }
+ },
+ "views": {},
+ "enums": {},
+ "_meta": {
+ "schemas": {},
+ "tables": {},
+ "columns": {}
+ },
+ "internal": {
+ "indexes": {}
+ }
+}
diff --git a/packages/internal/database/src/drizzle/meta/0031_snapshot.json b/packages/internal/database/src/drizzle/meta/0031_snapshot.json
new file mode 100644
index 000000000..5b48425ab
--- /dev/null
+++ b/packages/internal/database/src/drizzle/meta/0031_snapshot.json
@@ -0,0 +1,879 @@
+{
+ "version": "6",
+ "dialect": "sqlite",
+ "id": "022f2968-0d86-43b1-a257-1c81d8fd42d4",
+ "prevId": "31cec72c-8c06-40ab-8e7f-c2e1be252870",
+ "tables": {
+ "ai_chat_messages": {
+ "name": "ai_chat_messages",
+ "columns": {
+ "room_id": {
+ "name": "room_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ },
+ "message": {
+ "name": "message",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "ai_chat_messages_unq": {
+ "name": "ai_chat_messages_unq",
+ "columns": ["room_id", "id"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "ai_chat_messages_room_id_ai_chat_room_id_fk": {
+ "name": "ai_chat_messages_room_id_ai_chat_room_id_fk",
+ "tableFrom": "ai_chat_messages",
+ "tableTo": "ai_chat",
+ "columnsFrom": ["room_id"],
+ "columnsTo": ["room_id"],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "ai_chat": {
+ "name": "ai_chat",
+ "columns": {
+ "room_id": {
+ "name": "room_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "collections": {
+ "name": "collections",
+ "columns": {
+ "feed_id": {
+ "name": "feed_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "entry_id": {
+ "name": "entry_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "view": {
+ "name": "view",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "entries": {
+ "name": "entries",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "url": {
+ "name": "url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "source_content": {
+ "name": "source_content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "readability_updated_at": {
+ "name": "readability_updated_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "guid": {
+ "name": "guid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "author": {
+ "name": "author",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "author_url": {
+ "name": "author_url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "author_avatar": {
+ "name": "author_avatar",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "inserted_at": {
+ "name": "inserted_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "published_at": {
+ "name": "published_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "media": {
+ "name": "media",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "categories": {
+ "name": "categories",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attachments": {
+ "name": "attachments",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "extra": {
+ "name": "extra",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feed_id": {
+ "name": "feed_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "inbox_handle": {
+ "name": "inbox_handle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "read": {
+ "name": "read",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "sources": {
+ "name": "sources",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "settings": {
+ "name": "settings",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "feeds": {
+ "name": "feeds",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "url": {
+ "name": "url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "error_at": {
+ "name": "error_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "site_url": {
+ "name": "site_url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "owner_user_id": {
+ "name": "owner_user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "error_message": {
+ "name": "error_message",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "subscription_count": {
+ "name": "subscription_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updates_per_week": {
+ "name": "updates_per_week",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "latest_entry_published_at": {
+ "name": "latest_entry_published_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "tip_users": {
+ "name": "tip_users",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "published_at": {
+ "name": "published_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "images": {
+ "name": "images",
+ "columns": {
+ "url": {
+ "name": "url",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "colors": {
+ "name": "colors",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "inboxes": {
+ "name": "inboxes",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "lists": {
+ "name": "lists",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "feed_ids": {
+ "name": "feed_ids",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "view": {
+ "name": "view",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "fee": {
+ "name": "fee",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "owner_user_id": {
+ "name": "owner_user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "subscription_count": {
+ "name": "subscription_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "purchase_amount": {
+ "name": "purchase_amount",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "subscriptions": {
+ "name": "subscriptions",
+ "columns": {
+ "feed_id": {
+ "name": "feed_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "list_id": {
+ "name": "list_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "inbox_id": {
+ "name": "inbox_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "view": {
+ "name": "view",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "is_private": {
+ "name": "is_private",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "category": {
+ "name": "category",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "type": {
+ "name": "type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "summaries": {
+ "name": "summaries",
+ "columns": {
+ "entry_id": {
+ "name": "entry_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "summary": {
+ "name": "summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "readability_summary": {
+ "name": "readability_summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "unq": {
+ "name": "unq",
+ "columns": ["entry_id", "language"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "translations": {
+ "name": "translations",
+ "columns": {
+ "entry_id": {
+ "name": "entry_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "readability_content": {
+ "name": "readability_content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "translation-unique-index": {
+ "name": "translation-unique-index",
+ "columns": ["entry_id", "language"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "unread": {
+ "name": "unread",
+ "columns": {
+ "subscription_id": {
+ "name": "subscription_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "count": {
+ "name": "count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "users": {
+ "name": "users",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "handle": {
+ "name": "handle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "is_me": {
+ "name": "is_me",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "email_verified": {
+ "name": "email_verified",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "bio": {
+ "name": "bio",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "website": {
+ "name": "website",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "social_links": {
+ "name": "social_links",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ }
+ },
+ "views": {},
+ "enums": {},
+ "_meta": {
+ "schemas": {},
+ "tables": {},
+ "columns": {}
+ },
+ "internal": {
+ "indexes": {}
+ }
+}
diff --git a/packages/internal/database/src/drizzle/meta/0032_snapshot.json b/packages/internal/database/src/drizzle/meta/0032_snapshot.json
new file mode 100644
index 000000000..825563f69
--- /dev/null
+++ b/packages/internal/database/src/drizzle/meta/0032_snapshot.json
@@ -0,0 +1,886 @@
+{
+ "version": "6",
+ "dialect": "sqlite",
+ "id": "611bbe39-b8f0-4c81-a067-315ac9b0f8a3",
+ "prevId": "022f2968-0d86-43b1-a257-1c81d8fd42d4",
+ "tables": {
+ "ai_chat_messages": {
+ "name": "ai_chat_messages",
+ "columns": {
+ "room_id": {
+ "name": "room_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ },
+ "message": {
+ "name": "message",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "ai_chat_messages_unq": {
+ "name": "ai_chat_messages_unq",
+ "columns": ["room_id", "id"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "ai_chat_messages_room_id_ai_chat_room_id_fk": {
+ "name": "ai_chat_messages_room_id_ai_chat_room_id_fk",
+ "tableFrom": "ai_chat_messages",
+ "tableTo": "ai_chat",
+ "columnsFrom": ["room_id"],
+ "columnsTo": ["room_id"],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "ai_chat": {
+ "name": "ai_chat",
+ "columns": {
+ "room_id": {
+ "name": "room_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "collections": {
+ "name": "collections",
+ "columns": {
+ "feed_id": {
+ "name": "feed_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "entry_id": {
+ "name": "entry_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "view": {
+ "name": "view",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "entries": {
+ "name": "entries",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "url": {
+ "name": "url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "source_content": {
+ "name": "source_content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "readability_updated_at": {
+ "name": "readability_updated_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "guid": {
+ "name": "guid",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "author": {
+ "name": "author",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "author_url": {
+ "name": "author_url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "author_avatar": {
+ "name": "author_avatar",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "inserted_at": {
+ "name": "inserted_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "published_at": {
+ "name": "published_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "media": {
+ "name": "media",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "categories": {
+ "name": "categories",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "attachments": {
+ "name": "attachments",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "extra": {
+ "name": "extra",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "feed_id": {
+ "name": "feed_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "inbox_handle": {
+ "name": "inbox_handle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "read": {
+ "name": "read",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "sources": {
+ "name": "sources",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "settings": {
+ "name": "settings",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "feeds": {
+ "name": "feeds",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "url": {
+ "name": "url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "error_at": {
+ "name": "error_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "site_url": {
+ "name": "site_url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "owner_user_id": {
+ "name": "owner_user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "error_message": {
+ "name": "error_message",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "subscription_count": {
+ "name": "subscription_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "updates_per_week": {
+ "name": "updates_per_week",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "latest_entry_published_at": {
+ "name": "latest_entry_published_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "tip_users": {
+ "name": "tip_users",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "published_at": {
+ "name": "published_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "images": {
+ "name": "images",
+ "columns": {
+ "url": {
+ "name": "url",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "colors": {
+ "name": "colors",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(unixepoch() * 1000)"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "inboxes": {
+ "name": "inboxes",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "secret": {
+ "name": "secret",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "lists": {
+ "name": "lists",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "feed_ids": {
+ "name": "feed_ids",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "view": {
+ "name": "view",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "fee": {
+ "name": "fee",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "owner_user_id": {
+ "name": "owner_user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "subscription_count": {
+ "name": "subscription_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "purchase_amount": {
+ "name": "purchase_amount",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "subscriptions": {
+ "name": "subscriptions",
+ "columns": {
+ "feed_id": {
+ "name": "feed_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "list_id": {
+ "name": "list_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "inbox_id": {
+ "name": "inbox_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "view": {
+ "name": "view",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "is_private": {
+ "name": "is_private",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "hide_from_timeline": {
+ "name": "hide_from_timeline",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "category": {
+ "name": "category",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "type": {
+ "name": "type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "summaries": {
+ "name": "summaries",
+ "columns": {
+ "entry_id": {
+ "name": "entry_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "summary": {
+ "name": "summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "readability_summary": {
+ "name": "readability_summary",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "unq": {
+ "name": "unq",
+ "columns": ["entry_id", "language"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "translations": {
+ "name": "translations",
+ "columns": {
+ "entry_id": {
+ "name": "entry_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "readability_content": {
+ "name": "readability_content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "translation-unique-index": {
+ "name": "translation-unique-index",
+ "columns": ["entry_id", "language"],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "unread": {
+ "name": "unread",
+ "columns": {
+ "subscription_id": {
+ "name": "subscription_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "count": {
+ "name": "count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "users": {
+ "name": "users",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "handle": {
+ "name": "handle",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "is_me": {
+ "name": "is_me",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "email_verified": {
+ "name": "email_verified",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "bio": {
+ "name": "bio",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "website": {
+ "name": "website",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "social_links": {
+ "name": "social_links",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ }
+ },
+ "views": {},
+ "enums": {},
+ "_meta": {
+ "schemas": {},
+ "tables": {},
+ "columns": {}
+ },
+ "internal": {
+ "indexes": {}
+ }
+}
diff --git a/packages/internal/database/src/drizzle/meta/_journal.json b/packages/internal/database/src/drizzle/meta/_journal.json
index 305672e52..ff7902552 100644
--- a/packages/internal/database/src/drizzle/meta/_journal.json
+++ b/packages/internal/database/src/drizzle/meta/_journal.json
@@ -208,8 +208,29 @@
{
"idx": 29,
"version": "6",
- "when": 1751514918051,
- "tag": "0029_outstanding_captain_universe",
+ "when": 1751637550260,
+ "tag": "0029_flaky_gorgon",
+ "breakpoints": true
+ },
+ {
+ "idx": 30,
+ "version": "6",
+ "when": 1751639397791,
+ "tag": "0030_common_gabe_jones",
+ "breakpoints": true
+ },
+ {
+ "idx": 31,
+ "version": "6",
+ "when": 1751640829832,
+ "tag": "0031_kind_ikaris",
+ "breakpoints": true
+ },
+ {
+ "idx": 32,
+ "version": "6",
+ "when": 1753240775348,
+ "tag": "0032_orange_prima",
"breakpoints": true
}
]
diff --git a/packages/internal/database/src/drizzle/migrations.js b/packages/internal/database/src/drizzle/migrations.js
index 0223fdf2e..110dc1b24 100644
--- a/packages/internal/database/src/drizzle/migrations.js
+++ b/packages/internal/database/src/drizzle/migrations.js
@@ -29,7 +29,10 @@ import m0025 from "./0025_colorful_valkyrie.sql"
import m0026 from "./0026_numerous_slyde.sql"
import m0027 from "./0027_nostalgic_human_torch.sql"
import m0028 from "./0028_chief_cyclops.sql"
-import m0029 from "./0029_outstanding_captain_universe.sql"
+import m0029 from "./0029_flaky_gorgon.sql"
+import m0030 from "./0030_common_gabe_jones.sql"
+import m0031 from "./0031_kind_ikaris.sql"
+import m0032 from "./0032_orange_prima.sql"
import journal from "./meta/_journal.json"
export default {
@@ -65,5 +68,8 @@ export default {
m0027,
m0028,
m0029,
+ m0030,
+ m0031,
+ m0032,
},
}
diff --git a/packages/internal/database/src/schemas/index.ts b/packages/internal/database/src/schemas/index.ts
index 517abcd9a..c3b431bc4 100644
--- a/packages/internal/database/src/schemas/index.ts
+++ b/packages/internal/database/src/schemas/index.ts
@@ -1,6 +1,7 @@
import type { FeedViewType } from "@follow/constants"
-import type { ActionSettings } from "@follow/models/types"
import type { SupportedActionLanguage } from "@follow/shared/language"
+import type { EntrySettings } from "@follow-app/client-sdk"
+import type { UIMessage } from "ai"
import { sql } from "drizzle-orm"
import { integer, sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core"
@@ -30,6 +31,7 @@ export const subscriptionsTable = sqliteTable("subscriptions", {
userId: text("user_id").notNull(),
view: integer("view").notNull().$type
(),
isPrivate: integer("is_private", { mode: "boolean" }).notNull(),
+ hideFromTimeline: integer("hide_from_timeline", { mode: "boolean" }),
title: text("title"),
category: text("category"),
createdAt: text("created_at"),
@@ -81,7 +83,6 @@ export const usersTable = sqliteTable("users", {
discord?: string
}>(),
})
-
export const entriesTable = sqliteTable("entries", {
id: text("id").primaryKey(),
title: text("title"),
@@ -107,7 +108,7 @@ export const entriesTable = sqliteTable("entries", {
inboxHandle: text("inbox_handle"),
read: integer("read", { mode: "boolean" }),
sources: text("sources", { mode: "json" }).$type(),
- settings: text("settings", { mode: "json" }).$type(),
+ settings: text("settings", { mode: "json" }).$type(),
})
export const collectionsTable = sqliteTable("collections", {
@@ -154,3 +155,29 @@ export const imagesTable = sqliteTable("images", (t) => ({
.notNull()
.default(sql`(unixepoch() * 1000)`),
}))
+
+export const aiChatTable = sqliteTable("ai_chat", (t) => ({
+ roomId: t.text("room_id").notNull().primaryKey(),
+ title: t.text("title"),
+ createdAt: t
+ .integer("created_at", { mode: "timestamp_ms" })
+ .notNull()
+ .default(sql`(unixepoch() * 1000)`),
+}))
+
+export const aiChatMessagesTable = sqliteTable(
+ "ai_chat_messages",
+ (t) => ({
+ roomId: t
+ .text("room_id")
+ .notNull()
+ .references(() => aiChatTable.roomId),
+ id: t.text("id").notNull().primaryKey(),
+ createdAt: t
+ .integer("created_at", { mode: "timestamp_ms" })
+ .notNull()
+ .default(sql`(unixepoch() * 1000)`),
+ message: t.text("message", { mode: "json" }).$type>().notNull(),
+ }),
+ (t) => [uniqueIndex("ai_chat_messages_unq").on(t.roomId, t.id)],
+)
diff --git a/packages/internal/database/src/services/feed.ts b/packages/internal/database/src/services/feed.ts
index 8498163a5..93d7447f1 100644
--- a/packages/internal/database/src/services/feed.ts
+++ b/packages/internal/database/src/services/feed.ts
@@ -1,9 +1,17 @@
+import { eq } from "drizzle-orm"
+
import { db } from "../db"
import { feedsTable } from "../schemas"
import type { FeedSchema } from "../schemas/types"
import type { Resetable } from "./internal/base"
import { conflictUpdateAllExcept } from "./internal/utils"
+export const FEED_EXTRA_DATA_KEYS = [
+ "subscriptionCount",
+ "updatesPerWeek",
+ "latestEntryPublishedAt",
+] as const
+
class FeedServiceStatic implements Resetable {
async reset() {
await db.delete(feedsTable).execute()
@@ -15,13 +23,17 @@ class FeedServiceStatic implements Resetable {
.values(feed)
.onConflictDoUpdate({
target: [feedsTable.id],
- set: conflictUpdateAllExcept(feedsTable, ["id"]),
+ set: conflictUpdateAllExcept(feedsTable, ["id", ...FEED_EXTRA_DATA_KEYS]),
})
}
getFeedAll() {
return db.query.feedsTable.findMany()
}
+
+ async patch(feedId: string, patch: Partial) {
+ await db.update(feedsTable).set(patch).where(eq(feedsTable.id, feedId)).execute()
+ }
}
export const FeedService = new FeedServiceStatic()
diff --git a/packages/internal/models/package.json b/packages/internal/models/package.json
index 7517b3cd6..04e170cb8 100644
--- a/packages/internal/models/package.json
+++ b/packages/internal/models/package.json
@@ -20,6 +20,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
+ "@follow-app/client-sdk": "catalog:",
"@follow/constants": "workspace:*",
"@follow/shared": "workspace:*",
"@follow/types": "workspace:*",
diff --git a/packages/internal/models/src/types.ts b/packages/internal/models/src/types.ts
index 75ed8b217..e1aee62d8 100644
--- a/packages/internal/models/src/types.ts
+++ b/packages/internal/models/src/types.ts
@@ -65,8 +65,6 @@ export type EntriesResponse = Array<
| Exclude>["data"], undefined>
>[number]
-export type ActionSettings = Exclude
-
export type CombinedEntryModel = Omit & {
entries: {
content?: string | null
diff --git a/packages/internal/shared/package.json b/packages/internal/shared/package.json
index 58befecbc..d97ca7267 100644
--- a/packages/internal/shared/package.json
+++ b/packages/internal/shared/package.json
@@ -38,7 +38,7 @@
"@t3-oss/env-core": "0.13.8",
"ai": "5.0.0-beta.6",
"better-auth": "1.2.9",
- "drizzle-orm": "0.44.2",
+ "drizzle-orm": "0.44.3",
"hono": "4.8.1",
"sonner": "2.0.6",
"stripe": "18.2.1",
diff --git a/packages/internal/shared/src/constants.ts b/packages/internal/shared/src/constants.ts
index b2c0768df..2a9325916 100644
--- a/packages/internal/shared/src/constants.ts
+++ b/packages/internal/shared/src/constants.ts
@@ -37,3 +37,9 @@ declare const ELECTRON: boolean
*/
export const ELECTRON_BUILD = !!ELECTRON
export const WEB_BUILD = !ELECTRON
+
+export const MICROSOFT_STORE_BUILD =
+ typeof process !== "undefined"
+ ? process.platform === "win32" &&
+ (process.windowsStore || process.execPath.startsWith("C:\\Program Files\\WindowsApps"))
+ : false
diff --git a/packages/internal/shared/src/hono.ts b/packages/internal/shared/src/hono.ts
index 4b8b31c20..7296b13de 100644
--- a/packages/internal/shared/src/hono.ts
+++ b/packages/internal/shared/src/hono.ts
@@ -1,55 +1,35 @@
// @ts-nocheck
import { HttpBindings } from "@hono/node-server";
-import * as zod1169 from "zod";
-import { z } from "zod";
-import * as better_auth246 from "better-auth";
+import "@hono/zod-openapi";
+import * as zod110 from "zod";
+import { z as z$1 } from "zod";
+import * as better_auth771 from "better-auth";
import { BetterAuthOptions } from "better-auth";
-import * as better_auth_plugins332 from "better-auth/plugins";
-import * as better_call38 from "better-call";
+import * as better_auth_plugins857 from "better-auth/plugins";
+import * as better_call87 from "better-call";
import Stripe from "stripe";
-import * as drizzle_orm_pg_core1159 from "drizzle-orm/pg-core";
+import * as drizzle_orm_pg_core100 from "drizzle-orm/pg-core";
import { AnyPgColumn } from "drizzle-orm/pg-core";
-import * as drizzle_orm1055 from "drizzle-orm";
+import * as drizzle_orm142 from "drizzle-orm";
import { InferInsertModel, InferSelectModel, SQL } from "drizzle-orm";
-import * as zod_v441 from "zod/v4";
-import * as ai56 from "ai";
+import * as zod_v490 from "zod/v4";
+import * as ai43 from "ai";
import * as hono_utils_http_status0 from "hono/utils/http-status";
import * as hono_types2 from "hono/types";
-import * as hono_hono_base37 from "hono/hono-base";
-import * as zod_v4_core42 from "zod/v4/core";
+import * as hono_hono_base42 from "hono/hono-base";
+import * as zod_v4_core91 from "zod/v4/core";
//#region src/types/env.d.ts
type Env = {
Bindings: HttpBindings;
};
//#endregion
-//#region src/lib/ai/tools/utilities/types.d.ts
-interface ConversationContext {
- currentFeedId?: string;
- currentEntryId?: string;
- selectedText?: string;
- sessionTopic?: string;
- userIntent?: string;
-}
-interface UserPreferences {
- contentTypes: string[];
- languages: string[];
- categories: string[];
- readingPatterns: {
- timeOfDay: string[];
- frequency: string;
- velocity: number;
- };
- aiInteractionStyle: string;
- helpTopics: string[];
-}
-//#endregion
//#region src/schema/achievements.d.ts
-declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const achievements: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "achievements";
schema: undefined;
columns: {
- id: drizzle_orm_pg_core1159.PgColumn<{
+ id: drizzle_orm_pg_core100.PgColumn<{
name: "id";
tableName: "achievements";
dataType: "string";
@@ -66,7 +46,7 @@ declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- userId: drizzle_orm_pg_core1159.PgColumn<{
+ userId: drizzle_orm_pg_core100.PgColumn<{
name: "user_id";
tableName: "achievements";
dataType: "string";
@@ -83,7 +63,7 @@ declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- type: drizzle_orm_pg_core1159.PgColumn<{
+ type: drizzle_orm_pg_core100.PgColumn<{
name: "type";
tableName: "achievements";
dataType: "string";
@@ -100,7 +80,7 @@ declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- actionId: drizzle_orm_pg_core1159.PgColumn<{
+ actionId: drizzle_orm_pg_core100.PgColumn<{
name: "action_id";
tableName: "achievements";
dataType: "number";
@@ -117,7 +97,7 @@ declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- progress: drizzle_orm_pg_core1159.PgColumn<{
+ progress: drizzle_orm_pg_core100.PgColumn<{
name: "progress";
tableName: "achievements";
dataType: "number";
@@ -134,7 +114,7 @@ declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- progressMax: drizzle_orm_pg_core1159.PgColumn<{
+ progressMax: drizzle_orm_pg_core100.PgColumn<{
name: "progress_max";
tableName: "achievements";
dataType: "number";
@@ -151,7 +131,7 @@ declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- done: drizzle_orm_pg_core1159.PgColumn<{
+ done: drizzle_orm_pg_core100.PgColumn<{
name: "done";
tableName: "achievements";
dataType: "boolean";
@@ -168,7 +148,7 @@ declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- doneAt: drizzle_orm_pg_core1159.PgColumn<{
+ doneAt: drizzle_orm_pg_core100.PgColumn<{
name: "done_at";
tableName: "achievements";
dataType: "date";
@@ -185,7 +165,7 @@ declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- tx: drizzle_orm_pg_core1159.PgColumn<{
+ tx: drizzle_orm_pg_core100.PgColumn<{
name: "tx";
tableName: "achievements";
dataType: "string";
@@ -205,17 +185,17 @@ declare const achievements: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const achievementsOpenAPISchema: zod1169.ZodObject<{
- id: zod1169.ZodString;
- userId: zod1169.ZodString;
- type: zod1169.ZodEnum<["checking", "completed", "incomplete", "audit", "received"]>;
- actionId: zod1169.ZodNumber;
- progress: zod1169.ZodNumber;
- progressMax: zod1169.ZodNumber;
- done: zod1169.ZodBoolean;
- doneAt: zod1169.ZodNullable;
- tx: zod1169.ZodNullable;
-}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+declare const achievementsOpenAPISchema: zod110.ZodObject<{
+ id: zod110.ZodString;
+ userId: zod110.ZodString;
+ type: zod110.ZodEnum<["checking", "completed", "incomplete", "audit", "received"]>;
+ actionId: zod110.ZodNumber;
+ progress: zod110.ZodNumber;
+ progressMax: zod110.ZodNumber;
+ done: zod110.ZodBoolean;
+ doneAt: zod110.ZodNullable;
+ tx: zod110.ZodNullable;
+}, zod110.UnknownKeysParam, zod110.ZodTypeAny, {
id: string;
userId: string;
type: "checking" | "completed" | "incomplete" | "audit" | "received";
@@ -238,12 +218,12 @@ declare const achievementsOpenAPISchema: zod1169.ZodObject<{
}>;
//#endregion
//#region src/schema/actions.d.ts
-declare const languageSchema: z.ZodEnum<["en", "ja", "zh-CN", "zh-TW"]>;
-declare const conditionItemSchema: z.ZodObject<{
- field: z.ZodEnum<["view", "title", "site_url", "feed_url", "category", "entry_title", "entry_content", "entry_url", "entry_author", "entry_media_length", "entry_attachments_duration", "status"]>;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodString;
-}, "strip", z.ZodTypeAny, {
+declare const languageSchema: z$1.ZodEnum<["en", "ja", "zh-CN", "zh-TW"]>;
+declare const conditionItemSchema: z$1.ZodObject<{
+ field: z$1.ZodEnum<["view", "title", "site_url", "feed_url", "category", "entry_title", "entry_content", "entry_url", "entry_author", "entry_media_length", "entry_attachments_duration", "status"]>;
+ operator: z$1.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z$1.ZodString;
+}, "strip", z$1.ZodTypeAny, {
value: string;
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
@@ -252,12 +232,12 @@ declare const conditionItemSchema: z.ZodObject<{
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
}>;
-type ConditionItem = z.infer;
-declare const actions: drizzle_orm_pg_core1159.PgTableWithColumns<{
+type ConditionItem = z$1.infer;
+declare const actions: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "actions";
schema: undefined;
columns: {
- userId: drizzle_orm_pg_core1159.PgColumn<{
+ userId: drizzle_orm_pg_core100.PgColumn<{
name: "user_id";
tableName: "actions";
dataType: "string";
@@ -274,7 +254,7 @@ declare const actions: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- createdAt: drizzle_orm_pg_core1159.PgColumn<{
+ createdAt: drizzle_orm_pg_core100.PgColumn<{
name: "created_at";
tableName: "actions";
dataType: "date";
@@ -291,7 +271,7 @@ declare const actions: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- updatedAt: drizzle_orm_pg_core1159.PgColumn<{
+ updatedAt: drizzle_orm_pg_core100.PgColumn<{
name: "updated_at";
tableName: "actions";
dataType: "date";
@@ -308,7 +288,7 @@ declare const actions: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- rules: drizzle_orm_pg_core1159.PgColumn<{
+ rules: drizzle_orm_pg_core100.PgColumn<{
name: "rules";
tableName: "actions";
dataType: "json";
@@ -394,13 +374,13 @@ declare const actions: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const actionsItemOpenAPISchema: z.ZodObject<{
- name: z.ZodString;
- condition: z.ZodUnion<[z.ZodArray;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodString;
- }, "strip", z.ZodTypeAny, {
+declare const actionsItemOpenAPISchema: z$1.ZodObject<{
+ name: z$1.ZodString;
+ condition: z$1.ZodUnion<[z$1.ZodArray;
+ operator: z$1.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z$1.ZodString;
+ }, "strip", z$1.ZodTypeAny, {
value: string;
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
@@ -408,11 +388,11 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
value: string;
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
- }>, "many">, z.ZodArray;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodString;
- }, "strip", z.ZodTypeAny, {
+ }>, "many">, z$1.ZodArray;
+ operator: z$1.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z$1.ZodString;
+ }, "strip", z$1.ZodTypeAny, {
value: string;
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
@@ -421,31 +401,31 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
}>, "many">, "many">]>;
- result: z.ZodObject<{
- disabled: z.ZodOptional;
- translation: z.ZodOptional, z.ZodBoolean]>>;
- summary: z.ZodOptional;
- readability: z.ZodOptional;
- sourceContent: z.ZodOptional;
- silence: z.ZodOptional;
- block: z.ZodOptional;
- star: z.ZodOptional;
- newEntryNotification: z.ZodOptional;
- rewriteRules: z.ZodOptional;
+ translation: z$1.ZodOptional, z$1.ZodBoolean]>>;
+ summary: z$1.ZodOptional;
+ readability: z$1.ZodOptional;
+ sourceContent: z$1.ZodOptional;
+ silence: z$1.ZodOptional;
+ block: z$1.ZodOptional;
+ star: z$1.ZodOptional;
+ newEntryNotification: z$1.ZodOptional;
+ rewriteRules: z$1.ZodOptional, "many">>;
- blockRules: z.ZodOptional;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
- }, "strip", z.ZodTypeAny, {
+ blockRules: z$1.ZodOptional;
+ operator: z$1.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>;
+ }, "strip", z$1.ZodTypeAny, {
value: string | number;
field: "title" | "content" | "all" | "author" | "url" | "order";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
@@ -454,8 +434,8 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
field: "title" | "content" | "all" | "author" | "url" | "order";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
}>, "many">>;
- webhooks: z.ZodOptional>;
- }, "strip", z.ZodTypeAny, {
+ webhooks: z$1.ZodOptional>;
+ }, "strip", z$1.ZodTypeAny, {
disabled?: boolean | undefined;
translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
summary?: boolean | undefined;
@@ -496,7 +476,7 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
}[] | undefined;
webhooks?: string[] | undefined;
}>;
-}, "strip", z.ZodTypeAny, {
+}, "strip", z$1.ZodTypeAny, {
name: string;
condition: {
value: string;
@@ -561,12 +541,12 @@ declare const actionsItemOpenAPISchema: z.ZodObject<{
webhooks?: string[] | undefined;
};
}>;
-type ActionItem = z.infer;
-declare const actionsOpenAPISchema: z.ZodObject;
- updatedAt: z.ZodNullable;
- rules: z.ZodNullable;
+declare const actionsOpenAPISchema: z$1.ZodObject;
+ updatedAt: z$1.ZodNullable;
+ rules: z$1.ZodNullable>;
}, "rules"> & {
- rules: z.ZodNullable;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodString;
- }, "strip", z.ZodTypeAny, {
+ rules: z$1.ZodNullable;
+ operator: z$1.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z$1.ZodString;
+ }, "strip", z$1.ZodTypeAny, {
value: string;
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
@@ -630,11 +610,11 @@ declare const actionsOpenAPISchema: z.ZodObject, "many">, z.ZodArray;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodString;
- }, "strip", z.ZodTypeAny, {
+ }>, "many">, z$1.ZodArray;
+ operator: z$1.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z$1.ZodString;
+ }, "strip", z$1.ZodTypeAny, {
value: string;
field: "title" | "status" | "view" | "site_url" | "feed_url" | "category" | "entry_title" | "entry_content" | "entry_url" | "entry_author" | "entry_media_length" | "entry_attachments_duration";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
@@ -643,31 +623,31 @@ declare const actionsOpenAPISchema: z.ZodObject, "many">, "many">]>;
- result: z.ZodObject<{
- disabled: z.ZodOptional;
- translation: z.ZodOptional, z.ZodBoolean]>>;
- summary: z.ZodOptional;
- readability: z.ZodOptional;
- sourceContent: z.ZodOptional;
- silence: z.ZodOptional;
- block: z.ZodOptional;
- star: z.ZodOptional;
- newEntryNotification: z.ZodOptional;
- rewriteRules: z.ZodOptional;
+ translation: z$1.ZodOptional, z$1.ZodBoolean]>>;
+ summary: z$1.ZodOptional;
+ readability: z$1.ZodOptional;
+ sourceContent: z$1.ZodOptional;
+ silence: z$1.ZodOptional;
+ block: z$1.ZodOptional;
+ star: z$1.ZodOptional;
+ newEntryNotification: z$1.ZodOptional;
+ rewriteRules: z$1.ZodOptional, "many">>;
- blockRules: z.ZodOptional;
- operator: z.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
- value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
- }, "strip", z.ZodTypeAny, {
+ blockRules: z$1.ZodOptional;
+ operator: z$1.ZodEnum<["contains", "not_contains", "eq", "not_eq", "gt", "lt", "regex"]>;
+ value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>;
+ }, "strip", z$1.ZodTypeAny, {
value: string | number;
field: "title" | "content" | "all" | "author" | "url" | "order";
operator: "contains" | "not_contains" | "eq" | "not_eq" | "gt" | "lt" | "regex";
@@ -676,8 +656,8 @@ declare const actionsOpenAPISchema: z.ZodObject, "many">>;
- webhooks: z.ZodOptional>;
- }, "strip", z.ZodTypeAny, {
+ webhooks: z$1.ZodOptional>;
+ }, "strip", z$1.ZodTypeAny, {
disabled?: boolean | undefined;
translation?: boolean | "en" | "ja" | "zh-CN" | "zh-TW" | undefined;
summary?: boolean | undefined;
@@ -718,7 +698,7 @@ declare const actionsOpenAPISchema: z.ZodObject;
- }, "strip", z.ZodTypeAny, {
+ }, "strip", z$1.ZodTypeAny, {
name: string;
condition: {
value: string;
@@ -783,7 +763,7 @@ declare const actionsOpenAPISchema: z.ZodObject, "many">>>;
-}, "strip", z.ZodTypeAny, {
+}, "strip", z$1.ZodTypeAny, {
createdAt: string | null;
updatedAt: string | null;
userId: string;
@@ -858,18 +838,18 @@ declare const actionsOpenAPISchema: z.ZodObject;
-declare const actionsRelations: drizzle_orm1055.Relations<"actions", {
- users: drizzle_orm1055.One<"user", true>;
+declare const actionsRelations: drizzle_orm142.Relations<"actions", {
+ users: drizzle_orm142.One<"user", true>;
}>;
-type ActionsModel = z.infer;
-type SettingsModel = Exclude["result"], undefined>;
+type ActionsModel = z$1.infer;
+type SettingsModel = Exclude["result"], undefined>;
//#endregion
//#region src/schema/activities.d.ts
-declare const activities: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const activities: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "activities";
schema: undefined;
columns: {
- userId: drizzle_orm_pg_core1159.PgColumn<{
+ userId: drizzle_orm_pg_core100.PgColumn<{
name: "user_id";
tableName: "activities";
dataType: "string";
@@ -886,7 +866,7 @@ declare const activities: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- activeAt: drizzle_orm_pg_core1159.PgColumn<{
+ activeAt: drizzle_orm_pg_core100.PgColumn<{
name: "active_at";
tableName: "activities";
dataType: "date";
@@ -903,7 +883,7 @@ declare const activities: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- platform: drizzle_orm_pg_core1159.PgColumn<{
+ platform: drizzle_orm_pg_core100.PgColumn<{
name: "platform";
tableName: "activities";
dataType: "string";
@@ -920,7 +900,7 @@ declare const activities: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- version: drizzle_orm_pg_core1159.PgColumn<{
+ version: drizzle_orm_pg_core100.PgColumn<{
name: "version";
tableName: "activities";
dataType: "string";
@@ -940,12 +920,12 @@ declare const activities: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const activitiesOpenAPISchema: zod1169.ZodObject<{
- userId: zod1169.ZodString;
- activeAt: zod1169.ZodString;
- platform: zod1169.ZodString;
- version: zod1169.ZodNullable;
-}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+declare const activitiesOpenAPISchema: zod110.ZodObject<{
+ userId: zod110.ZodString;
+ activeAt: zod110.ZodString;
+ platform: zod110.ZodString;
+ version: zod110.ZodNullable;
+}, zod110.UnknownKeysParam, zod110.ZodTypeAny, {
userId: string;
activeAt: string;
platform: string;
@@ -958,36 +938,36 @@ declare const activitiesOpenAPISchema: zod1169.ZodObject<{
}>;
//#endregion
//#region src/schema/airdrops.d.ts
-declare const detailModelSchema: z.ZodNullable>;
-type DetailModel = z.infer;
+type DetailModel = z$1.infer;
declare const activityEnum: readonly ["public_beta"];
type AirdropActivity = typeof activityEnum[number];
-declare const airdrops: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const airdrops: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "airdrops";
schema: undefined;
columns: {
- activity: drizzle_orm_pg_core1159.PgColumn<{
+ activity: drizzle_orm_pg_core100.PgColumn<{
name: "activity";
tableName: "airdrops";
dataType: "string";
@@ -1070,7 +1050,7 @@ declare const airdrops: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- userId: drizzle_orm_pg_core1159.PgColumn<{
+ userId: drizzle_orm_pg_core100.PgColumn<{
name: "user_id";
tableName: "airdrops";
dataType: "string";
@@ -1087,7 +1067,7 @@ declare const airdrops: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- amount: drizzle_orm_pg_core1159.PgColumn<{
+ amount: drizzle_orm_pg_core100.PgColumn<{
name: "amount";
tableName: "airdrops";
dataType: "string";
@@ -1104,7 +1084,7 @@ declare const airdrops: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- rank: drizzle_orm_pg_core1159.PgColumn<{
+ rank: drizzle_orm_pg_core100.PgColumn<{
name: "rank";
tableName: "airdrops";
dataType: "string";
@@ -1121,7 +1101,7 @@ declare const airdrops: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- detail: drizzle_orm_pg_core1159.PgColumn<{
+ detail: drizzle_orm_pg_core100.PgColumn<{
name: "detail";
tableName: "airdrops";
dataType: "json";
@@ -1198,7 +1178,7 @@ declare const airdrops: drizzle_orm_pg_core1159.PgTableWithColumns<{
"GitHub Community Contributions Rank": number;
} | null;
}>;
- verify: drizzle_orm_pg_core1159.PgColumn<{
+ verify: drizzle_orm_pg_core100.PgColumn<{
name: "verify";
tableName: "airdrops";
dataType: "string";
@@ -1215,7 +1195,7 @@ declare const airdrops: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- tx: drizzle_orm_pg_core1159.PgColumn<{
+ tx: drizzle_orm_pg_core100.PgColumn<{
name: "tx";
tableName: "airdrops";
dataType: "string";
@@ -1235,12 +1215,12 @@ declare const airdrops: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const airdropsOpenAPISchema: z.ZodObject;
- userId: z.ZodString;
- amount: z.ZodString;
- rank: z.ZodNullable;
- detail: z.ZodNullable;
+ userId: z$1.ZodString;
+ amount: z$1.ZodString;
+ rank: z$1.ZodNullable;
+ detail: z$1.ZodNullable>;
- verify: z.ZodNullable;
- tx: z.ZodNullable;
+ verify: z$1.ZodNullable;
+ tx: z$1.ZodNullable;
}, "detail"> & {
- detail: z.ZodNullable>;
-}, "strip", z.ZodTypeAny, {
+}, "strip", z$1.ZodTypeAny, {
userId: string;
tx: string | null;
activity: "public_beta";
@@ -1457,11 +1437,11 @@ declare const airdropsOpenAPISchema: z.ZodObject;
//#endregion
//#region src/schema/captcha.d.ts
-declare const captcha: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const captcha: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "captcha";
schema: undefined;
columns: {
- userId: drizzle_orm_pg_core1159.PgColumn<{
+ userId: drizzle_orm_pg_core100.PgColumn<{
name: "user_id";
tableName: "captcha";
dataType: "string";
@@ -1478,7 +1458,7 @@ declare const captcha: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- failedCount: drizzle_orm_pg_core1159.PgColumn<{
+ failedCount: drizzle_orm_pg_core100.PgColumn<{
name: "failed_count";
tableName: "captcha";
dataType: "number";
@@ -1495,7 +1475,7 @@ declare const captcha: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- passedCount: drizzle_orm_pg_core1159.PgColumn<{
+ passedCount: drizzle_orm_pg_core100.PgColumn<{
name: "passed_count";
tableName: "captcha";
dataType: "number";
@@ -1517,11 +1497,11 @@ declare const captcha: drizzle_orm_pg_core1159.PgTableWithColumns<{
}>;
//#endregion
//#region src/schema/collections.d.ts
-declare const collections: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const collections: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "collections";
schema: undefined;
columns: {
- userId: drizzle_orm_pg_core1159.PgColumn<{
+ userId: drizzle_orm_pg_core100.PgColumn<{
name: "user_id";
tableName: "collections";
dataType: "string";
@@ -1538,7 +1518,7 @@ declare const collections: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- feedId: drizzle_orm_pg_core1159.PgColumn<{
+ feedId: drizzle_orm_pg_core100.PgColumn<{
name: "feed_id";
tableName: "collections";
dataType: "string";
@@ -1555,7 +1535,7 @@ declare const collections: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- entryId: drizzle_orm_pg_core1159.PgColumn<{
+ entryId: drizzle_orm_pg_core100.PgColumn<{
name: "entry_id";
tableName: "collections";
dataType: "string";
@@ -1572,7 +1552,7 @@ declare const collections: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- createdAt: drizzle_orm_pg_core1159.PgColumn<{
+ createdAt: drizzle_orm_pg_core100.PgColumn<{
name: "created_at";
tableName: "collections";
dataType: "date";
@@ -1589,7 +1569,7 @@ declare const collections: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- view: drizzle_orm_pg_core1159.PgColumn<{
+ view: drizzle_orm_pg_core100.PgColumn<{
name: "view";
tableName: "collections";
dataType: "number";
@@ -1609,13 +1589,13 @@ declare const collections: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const collectionsOpenAPISchema: zod1169.ZodObject<{
- userId: zod1169.ZodString;
- feedId: zod1169.ZodString;
- entryId: zod1169.ZodString;
- createdAt: zod1169.ZodString;
- view: zod1169.ZodNumber;
-}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+declare const collectionsOpenAPISchema: zod110.ZodObject<{
+ userId: zod110.ZodString;
+ feedId: zod110.ZodString;
+ entryId: zod110.ZodString;
+ createdAt: zod110.ZodString;
+ view: zod110.ZodNumber;
+}, zod110.UnknownKeysParam, zod110.ZodTypeAny, {
createdAt: string;
userId: string;
view: number;
@@ -1628,10 +1608,10 @@ declare const collectionsOpenAPISchema: zod1169.ZodObject<{
feedId: string;
entryId: string;
}>;
-declare const collectionsRelations: drizzle_orm1055.Relations<"collections", {
- users: drizzle_orm1055.One<"user", true>;
- entries: drizzle_orm1055.One<"entries", true>;
- feeds: drizzle_orm1055.One<"feeds", true>;
+declare const collectionsRelations: drizzle_orm142.Relations<"collections", {
+ users: drizzle_orm142.One<"user", true>;
+ entries: drizzle_orm142.One<"entries", true>;
+ feeds: drizzle_orm142.One<"feeds", true>;
}>;
//#endregion
//#region src/schema/entries.d.ts
@@ -1658,19 +1638,19 @@ type ExtraModel = {
}[];
};
declare const CommonEntryFields: {
- id: drizzle_orm1055.HasRuntimeDefault>>>>;
- title: drizzle_orm_pg_core1159.PgTextBuilderInitial<"title", [string, ...string[]]>;
- url: drizzle_orm_pg_core1159.PgTextBuilderInitial<"url", [string, ...string[]]>;
- content: drizzle_orm_pg_core1159.PgTextBuilderInitial<"content", [string, ...string[]]>;
- description: drizzle_orm_pg_core1159.PgTextBuilderInitial<"description", [string, ...string[]]>;
- guid: drizzle_orm1055.NotNull>;
- author: drizzle_orm_pg_core1159.PgTextBuilderInitial<"author", [string, ...string[]]>;
- authorUrl: drizzle_orm_pg_core1159.PgTextBuilderInitial<"author_url", [string, ...string[]]>;
- authorAvatar: drizzle_orm_pg_core1159.PgTextBuilderInitial<"author_avatar", [string, ...string[]]>;
- insertedAt: drizzle_orm1055.NotNull>;
- publishedAt: drizzle_orm1055.NotNull>;
- media: drizzle_orm1055.$Type, MediaModel[]>;
- categories: drizzle_orm_pg_core1159.PgArrayBuilder<{
+ id: drizzle_orm142.HasRuntimeDefault>>>>;
+ title: drizzle_orm_pg_core100.PgTextBuilderInitial<"title", [string, ...string[]]>;
+ url: drizzle_orm_pg_core100.PgTextBuilderInitial<"url", [string, ...string[]]>;
+ content: drizzle_orm_pg_core100.PgTextBuilderInitial<"content", [string, ...string[]]>;
+ description: drizzle_orm_pg_core100.PgTextBuilderInitial<"description", [string, ...string[]]>;
+ guid: drizzle_orm142.NotNull>;
+ author: drizzle_orm_pg_core100.PgTextBuilderInitial<"author", [string, ...string[]]>;
+ authorUrl: drizzle_orm_pg_core100.PgTextBuilderInitial<"author_url", [string, ...string[]]>;
+ authorAvatar: drizzle_orm_pg_core100.PgTextBuilderInitial<"author_avatar", [string, ...string[]]>;
+ insertedAt: drizzle_orm142.NotNull>;
+ publishedAt: drizzle_orm142.NotNull>;
+ media: drizzle_orm142.$Type, MediaModel[]>;
+ categories: drizzle_orm_pg_core100.PgArrayBuilder<{
name: "categories";
dataType: "array";
columnType: "PgArray";
@@ -1694,15 +1674,15 @@ declare const CommonEntryFields: {
enumValues: [string, ...string[]];
driverParam: string;
}>;
- attachments: drizzle_orm1055.$Type, AttachmentsModel[]>;
- extra: drizzle_orm1055.$Type, ExtraModel>;
- language: drizzle_orm_pg_core1159.PgTextBuilderInitial<"language", [string, ...string[]]>;
+ attachments: drizzle_orm142.$Type, AttachmentsModel[]>;
+ extra: drizzle_orm142.$Type, ExtraModel>;
+ language: drizzle_orm_pg_core100.PgTextBuilderInitial<"language", [string, ...string[]]>;
};
-declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const entries: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "entries";
schema: undefined;
columns: {
- id: drizzle_orm_pg_core1159.PgColumn<{
+ id: drizzle_orm_pg_core100.PgColumn<{
name: "id";
tableName: "entries";
dataType: "string";
@@ -1719,7 +1699,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- title: drizzle_orm_pg_core1159.PgColumn<{
+ title: drizzle_orm_pg_core100.PgColumn<{
name: "title";
tableName: "entries";
dataType: "string";
@@ -1736,7 +1716,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- url: drizzle_orm_pg_core1159.PgColumn<{
+ url: drizzle_orm_pg_core100.PgColumn<{
name: "url";
tableName: "entries";
dataType: "string";
@@ -1753,7 +1733,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- content: drizzle_orm_pg_core1159.PgColumn<{
+ content: drizzle_orm_pg_core100.PgColumn<{
name: "content";
tableName: "entries";
dataType: "string";
@@ -1770,7 +1750,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- description: drizzle_orm_pg_core1159.PgColumn<{
+ description: drizzle_orm_pg_core100.PgColumn<{
name: "description";
tableName: "entries";
dataType: "string";
@@ -1787,7 +1767,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- guid: drizzle_orm_pg_core1159.PgColumn<{
+ guid: drizzle_orm_pg_core100.PgColumn<{
name: "guid";
tableName: "entries";
dataType: "string";
@@ -1804,7 +1784,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- author: drizzle_orm_pg_core1159.PgColumn<{
+ author: drizzle_orm_pg_core100.PgColumn<{
name: "author";
tableName: "entries";
dataType: "string";
@@ -1821,7 +1801,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- authorUrl: drizzle_orm_pg_core1159.PgColumn<{
+ authorUrl: drizzle_orm_pg_core100.PgColumn<{
name: "author_url";
tableName: "entries";
dataType: "string";
@@ -1838,7 +1818,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- authorAvatar: drizzle_orm_pg_core1159.PgColumn<{
+ authorAvatar: drizzle_orm_pg_core100.PgColumn<{
name: "author_avatar";
tableName: "entries";
dataType: "string";
@@ -1855,7 +1835,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- insertedAt: drizzle_orm_pg_core1159.PgColumn<{
+ insertedAt: drizzle_orm_pg_core100.PgColumn<{
name: "inserted_at";
tableName: "entries";
dataType: "date";
@@ -1872,7 +1852,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- publishedAt: drizzle_orm_pg_core1159.PgColumn<{
+ publishedAt: drizzle_orm_pg_core100.PgColumn<{
name: "published_at";
tableName: "entries";
dataType: "date";
@@ -1889,7 +1869,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- media: drizzle_orm_pg_core1159.PgColumn<{
+ media: drizzle_orm_pg_core100.PgColumn<{
name: "media";
tableName: "entries";
dataType: "json";
@@ -1908,7 +1888,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
}, {}, {
$type: MediaModel[];
}>;
- categories: drizzle_orm_pg_core1159.PgColumn<{
+ categories: drizzle_orm_pg_core100.PgColumn<{
name: "categories";
tableName: "entries";
dataType: "array";
@@ -1921,7 +1901,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
- baseColumn: drizzle_orm1055.Column<{
+ baseColumn: drizzle_orm142.Column<{
name: "categories";
tableName: "entries";
dataType: "string";
@@ -1941,17 +1921,17 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {
- baseBuilder: drizzle_orm_pg_core1159.PgColumnBuilder<{
+ baseBuilder: drizzle_orm_pg_core100.PgColumnBuilder<{
name: "categories";
dataType: "string";
columnType: "PgText";
data: string;
enumValues: [string, ...string[]];
driverParam: string;
- }, {}, {}, drizzle_orm1055.ColumnBuilderExtraConfig>;
+ }, {}, {}, drizzle_orm142.ColumnBuilderExtraConfig>;
size: undefined;
}>;
- attachments: drizzle_orm_pg_core1159.PgColumn<{
+ attachments: drizzle_orm_pg_core100.PgColumn<{
name: "attachments";
tableName: "entries";
dataType: "json";
@@ -1970,7 +1950,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
}, {}, {
$type: AttachmentsModel[];
}>;
- extra: drizzle_orm_pg_core1159.PgColumn<{
+ extra: drizzle_orm_pg_core100.PgColumn<{
name: "extra";
tableName: "entries";
dataType: "json";
@@ -1989,7 +1969,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
}, {}, {
$type: ExtraModel;
}>;
- language: drizzle_orm_pg_core1159.PgColumn<{
+ language: drizzle_orm_pg_core100.PgColumn<{
name: "language";
tableName: "entries";
dataType: "string";
@@ -2006,7 +1986,7 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- feedId: drizzle_orm_pg_core1159.PgColumn<{
+ feedId: drizzle_orm_pg_core100.PgColumn<{
name: "feed_id";
tableName: "entries";
dataType: "string";
@@ -2026,13 +2006,13 @@ declare const entries: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const attachmentsZodSchema: z.ZodNullable>;
- mime_type: z.ZodOptional;
- size_in_bytes: z.ZodOptional;
- title: z.ZodOptional;
-}, "strip", z.ZodTypeAny, {
+declare const attachmentsZodSchema: z$1.ZodNullable>;
+ mime_type: z$1.ZodOptional;
+ size_in_bytes: z$1.ZodOptional;
+ title: z$1.ZodOptional;
+}, "strip", z$1.ZodTypeAny, {
url: string;
title?: string | undefined;
duration_in_seconds?: string | number | undefined;
@@ -2045,14 +2025,14 @@ declare const attachmentsZodSchema: z.ZodNullable, "many">>>;
-declare const mediaZodSchema: z.ZodNullable;
- width: z.ZodOptional;
- height: z.ZodOptional;
- preview_image_url: z.ZodOptional;
- blurhash: z.ZodOptional;
-}, "strip", z.ZodTypeAny, {
+declare const mediaZodSchema: z$1.ZodNullable;
+ width: z$1.ZodOptional;
+ height: z$1.ZodOptional;
+ preview_image_url: z$1.ZodOptional;
+ blurhash: z$1.ZodOptional;
+}, "strip", z$1.ZodTypeAny, {
type: "photo" | "video";
url: string;
width?: number | undefined;
@@ -2067,12 +2047,12 @@ declare const mediaZodSchema: z.ZodNullable, "many">>>;
-declare const extraZodSchema: z.ZodNullable;
- }, "strip", z.ZodTypeAny, {
+declare const extraZodSchema: z$1.ZodNullable;
+ }, "strip", z$1.ZodTypeAny, {
type: string;
url: string;
content_html?: string | undefined;
@@ -2081,7 +2061,7 @@ declare const extraZodSchema: z.ZodNullable, "many">>>;
-}, "strip", z.ZodTypeAny, {
+}, "strip", z$1.ZodTypeAny, {
links?: {
type: string;
url: string;
@@ -2094,19 +2074,19 @@ declare const extraZodSchema: z.ZodNullable>>;
-declare const entriesOpenAPISchema: z.ZodObject;
- url: z.ZodNullable;
- content: z.ZodNullable;
- description: z.ZodNullable;
- guid: z.ZodString;
- author: z.ZodNullable;
- authorUrl: z.ZodNullable;
- authorAvatar: z.ZodNullable;
- insertedAt: z.ZodString;
- publishedAt: z.ZodString;
- media: z.ZodNullable;
+ url: z$1.ZodNullable;
+ content: z$1.ZodNullable;
+ description: z$1.ZodNullable;
+ guid: z$1.ZodString;
+ author: z$1.ZodNullable;
+ authorUrl: z$1.ZodNullable;
+ authorAvatar: z$1.ZodNullable;
+ insertedAt: z$1.ZodString;
+ publishedAt: z$1.ZodString;
+ media: z$1.ZodNullable>;
- categories: z.ZodNullable>;
- attachments: z.ZodNullable>;
+ attachments: z$1.ZodNullable>;
- extra: z.ZodNullable>;
- language: z.ZodNullable;
- feedId: z.ZodString;
+ language: z$1.ZodNullable;
+ feedId: z$1.ZodString;
}, "media" | "attachments" | "extra"> & {
- attachments: z.ZodNullable>;
- mime_type: z.ZodOptional;
- size_in_bytes: z.ZodOptional;
- title: z.ZodOptional;
- }, "strip", z.ZodTypeAny, {
+ attachments: z$1.ZodNullable>;
+ mime_type: z$1.ZodOptional;
+ size_in_bytes: z$1.ZodOptional;
+ title: z$1.ZodOptional;
+ }, "strip", z$1.ZodTypeAny, {
url: string;
title?: string | undefined;
duration_in_seconds?: string | number | undefined;
@@ -2276,14 +2256,14 @@ declare const entriesOpenAPISchema: z.ZodObject, "many">>>;
- media: z.ZodNullable;
- width: z.ZodOptional;
- height: z.ZodOptional;
- preview_image_url: z.ZodOptional;
- blurhash: z.ZodOptional;
- }, "strip", z.ZodTypeAny, {
+ media: z$1.ZodNullable;
+ width: z$1.ZodOptional;
+ height: z$1.ZodOptional;
+ preview_image_url: z$1.ZodOptional;
+ blurhash: z$1.ZodOptional;
+ }, "strip", z$1.ZodTypeAny, {
type: "photo" | "video";
url: string;
width?: number | undefined;
@@ -2298,12 +2278,12 @@ declare const entriesOpenAPISchema: z.ZodObject, "many">>>;
- extra: z.ZodNullable;
- }, "strip", z.ZodTypeAny, {
+ extra: z$1.ZodNullable;
+ }, "strip", z$1.ZodTypeAny, {
type: string;
url: string;
content_html?: string | undefined;
@@ -2312,7 +2292,7 @@ declare const entriesOpenAPISchema: z.ZodObject, "many">>>;
- }, "strip", z.ZodTypeAny, {
+ }, "strip", z$1.ZodTypeAny, {
links?: {
type: string;
url: string;
@@ -2325,7 +2305,7 @@ declare const entriesOpenAPISchema: z.ZodObject>>;
-}, "strip", z.ZodTypeAny, {
+}, "strip", z$1.ZodTypeAny, {
id: string;
description: string | null;
title: string | null;
@@ -2400,20 +2380,20 @@ declare const entriesOpenAPISchema: z.ZodObject;
-declare const entriesRelations: drizzle_orm1055.Relations<"entries", {
- feeds: drizzle_orm1055.One<"feeds", true>;
- collections: drizzle_orm1055.Many<"collections">;
- feedPowerTokens: drizzle_orm1055.One<"feedPowerTokens", true>;
+declare const entriesRelations: drizzle_orm142.Relations<"entries", {
+ feeds: drizzle_orm142.One<"feeds", true>;
+ collections: drizzle_orm142.Many<"collections">;
+ feedPowerTokens: drizzle_orm142.One<"feedPowerTokens", true>;
}>;
type EntriesModel = InferInsertModel & {
attachments?: AttachmentsModel[] | null;
media?: MediaModel[] | null;
};
-declare const urlReads: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const urlReads: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "urlReads";
schema: undefined;
columns: {
- url: drizzle_orm_pg_core1159.PgColumn<{
+ url: drizzle_orm_pg_core100.PgColumn<{
name: "url";
tableName: "urlReads";
dataType: "string";
@@ -2430,7 +2410,7 @@ declare const urlReads: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- userIds: drizzle_orm_pg_core1159.PgColumn<{
+ userIds: drizzle_orm_pg_core100.PgColumn<{
name: "user_ids";
tableName: "urlReads";
dataType: "array";
@@ -2443,7 +2423,7 @@ declare const urlReads: drizzle_orm_pg_core1159.PgTableWithColumns<{
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
- baseColumn: drizzle_orm1055.Column<{
+ baseColumn: drizzle_orm142.Column<{
name: "user_ids";
tableName: "urlReads";
dataType: "string";
@@ -2463,17 +2443,17 @@ declare const urlReads: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {
- baseBuilder: drizzle_orm_pg_core1159.PgColumnBuilder<{
+ baseBuilder: drizzle_orm_pg_core100.PgColumnBuilder<{
name: "user_ids";
dataType: "string";
columnType: "PgText";
data: string;
enumValues: [string, ...string[]];
driverParam: string;
- }, {}, {}, drizzle_orm1055.ColumnBuilderExtraConfig>;
+ }, {}, {}, drizzle_orm142.ColumnBuilderExtraConfig>;
size: undefined;
}>;
- count: drizzle_orm_pg_core1159.PgColumn<{
+ count: drizzle_orm_pg_core100.PgColumn<{
name: "count";
tableName: "urlReads";
dataType: "number";
@@ -2494,11 +2474,11 @@ declare const urlReads: drizzle_orm_pg_core1159.PgTableWithColumns<{
dialect: "pg";
}>;
type UrlReadsModel = InferInsertModel;
-declare const urlReadsOpenAPISchema: z.ZodObject<{
- url: z.ZodString;
- userIds: z.ZodArray;
- count: z.ZodNumber;
-}, z.UnknownKeysParam, z.ZodTypeAny, {
+declare const urlReadsOpenAPISchema: z$1.ZodObject<{
+ url: z$1.ZodString;
+ userIds: z$1.ZodArray;
+ count: z$1.ZodNumber;
+}, z$1.UnknownKeysParam, z$1.ZodTypeAny, {
url: string;
userIds: string[];
count: number;
@@ -2508,12 +2488,357 @@ declare const urlReadsOpenAPISchema: z.ZodObject<{
count: number;
}>;
//#endregion
+//#region src/schema/feature-flags.d.ts
+declare const FEATURE_NAMES: readonly ["ai_chat"];
+type FeatureName = typeof FEATURE_NAMES[number];
+declare const featureFlags: drizzle_orm_pg_core100.PgTableWithColumns<{
+ name: "feature_flags";
+ schema: undefined;
+ columns: {
+ id: drizzle_orm_pg_core100.PgColumn<{
+ name: "id";
+ tableName: "feature_flags";
+ dataType: "number";
+ columnType: "PgSerial";
+ data: number;
+ driverParam: number;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: true;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ name: drizzle_orm_pg_core100.PgColumn<{
+ name: "name";
+ tableName: "feature_flags";
+ dataType: "string";
+ columnType: "PgVarchar";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ length: 100;
+ }>;
+ description: drizzle_orm_pg_core100.PgColumn<{
+ name: "description";
+ tableName: "feature_flags";
+ dataType: "string";
+ columnType: "PgText";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ enabled: drizzle_orm_pg_core100.PgColumn<{
+ name: "enabled";
+ tableName: "feature_flags";
+ dataType: "boolean";
+ columnType: "PgBoolean";
+ data: boolean;
+ driverParam: boolean;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ rolloutType: drizzle_orm_pg_core100.PgColumn<{
+ name: "rollout_type";
+ tableName: "feature_flags";
+ dataType: "string";
+ columnType: "PgVarchar";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ length: 20;
+ }>;
+ rolloutValue: drizzle_orm_pg_core100.PgColumn<{
+ name: "rollout_value";
+ tableName: "feature_flags";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ rolloutPercentage: drizzle_orm_pg_core100.PgColumn<{
+ name: "rollout_percentage";
+ tableName: "feature_flags";
+ dataType: "number";
+ columnType: "PgInteger";
+ data: number;
+ driverParam: string | number;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ rolloutSeed: drizzle_orm_pg_core100.PgColumn<{
+ name: "rollout_seed";
+ tableName: "feature_flags";
+ dataType: "string";
+ columnType: "PgVarchar";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ length: 50;
+ }>;
+ createdAt: drizzle_orm_pg_core100.PgColumn<{
+ name: "created_at";
+ tableName: "feature_flags";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ updatedAt: drizzle_orm_pg_core100.PgColumn<{
+ name: "updated_at";
+ tableName: "feature_flags";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ };
+ dialect: "pg";
+}>;
+declare const userFeatureOverrides: drizzle_orm_pg_core100.PgTableWithColumns<{
+ name: "user_feature_overrides";
+ schema: undefined;
+ columns: {
+ id: drizzle_orm_pg_core100.PgColumn<{
+ name: "id";
+ tableName: "user_feature_overrides";
+ dataType: "number";
+ columnType: "PgSerial";
+ data: number;
+ driverParam: number;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: true;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ userId: drizzle_orm_pg_core100.PgColumn<{
+ name: "user_id";
+ tableName: "user_feature_overrides";
+ dataType: "string";
+ columnType: "PgVarchar";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ length: 50;
+ }>;
+ featureName: drizzle_orm_pg_core100.PgColumn<{
+ name: "feature_name";
+ tableName: "user_feature_overrides";
+ dataType: "string";
+ columnType: "PgVarchar";
+ data: string;
+ driverParam: string;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ length: 100;
+ }>;
+ forceEnabled: drizzle_orm_pg_core100.PgColumn<{
+ name: "force_enabled";
+ tableName: "user_feature_overrides";
+ dataType: "boolean";
+ columnType: "PgBoolean";
+ data: boolean;
+ driverParam: boolean;
+ notNull: true;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ reason: drizzle_orm_pg_core100.PgColumn<{
+ name: "reason";
+ tableName: "user_feature_overrides";
+ dataType: "string";
+ columnType: "PgVarchar";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ length: 50;
+ }>;
+ expiresAt: drizzle_orm_pg_core100.PgColumn<{
+ name: "expires_at";
+ tableName: "user_feature_overrides";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ createdAt: drizzle_orm_pg_core100.PgColumn<{
+ name: "created_at";
+ tableName: "user_feature_overrides";
+ dataType: "date";
+ columnType: "PgTimestamp";
+ data: Date;
+ driverParam: string;
+ notNull: true;
+ hasDefault: true;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: undefined;
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {}>;
+ createdBy: drizzle_orm_pg_core100.PgColumn<{
+ name: "created_by";
+ tableName: "user_feature_overrides";
+ dataType: "string";
+ columnType: "PgVarchar";
+ data: string;
+ driverParam: string;
+ notNull: false;
+ hasDefault: false;
+ isPrimaryKey: false;
+ isAutoincrement: false;
+ hasRuntimeDefault: false;
+ enumValues: [string, ...string[]];
+ baseColumn: never;
+ identity: undefined;
+ generated: undefined;
+ }, {}, {
+ length: 50;
+ }>;
+ };
+ dialect: "pg";
+}>;
+type FeatureFlagModel = typeof featureFlags.$inferSelect;
+type FeatureFlagInsertModel = typeof featureFlags.$inferInsert;
+type UserFeatureOverrideModel = typeof userFeatureOverrides.$inferSelect;
+type UserFeatureOverrideInsertModel = typeof userFeatureOverrides.$inferInsert;
+declare const ROLLOUT_TYPES: readonly ["whitelist", "percentage"];
+type RolloutType = typeof ROLLOUT_TYPES[number];
+type RolloutValue = 0 | 1;
+//#endregion
//#region src/schema/feeds/analytics.d.ts
-declare const feedAnalytics: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const feedAnalytics: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "feed_analytics";
schema: undefined;
columns: {
- feedId: drizzle_orm_pg_core1159.PgColumn<{
+ feedId: drizzle_orm_pg_core100.PgColumn<{
name: "feed_id";
tableName: "feed_analytics";
dataType: "string";
@@ -2530,7 +2855,7 @@ declare const feedAnalytics: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- updatesPerWeek: drizzle_orm_pg_core1159.PgColumn<{
+ updatesPerWeek: drizzle_orm_pg_core100.PgColumn<{
name: "updates_per_week";
tableName: "feed_analytics";
dataType: "number";
@@ -2547,7 +2872,7 @@ declare const feedAnalytics: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- subscriptionCount: drizzle_orm_pg_core1159.PgColumn<{
+ subscriptionCount: drizzle_orm_pg_core100.PgColumn<{
name: "subscription_count";
tableName: "feed_analytics";
dataType: "number";
@@ -2564,7 +2889,7 @@ declare const feedAnalytics: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- latestEntryPublishedAt: drizzle_orm_pg_core1159.PgColumn<{
+ latestEntryPublishedAt: drizzle_orm_pg_core100.PgColumn<{
name: "latest_entry_published_at";
tableName: "feed_analytics";
dataType: "date";
@@ -2581,7 +2906,7 @@ declare const feedAnalytics: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- view: drizzle_orm_pg_core1159.PgColumn<{
+ view: drizzle_orm_pg_core100.PgColumn<{
name: "view";
tableName: "feed_analytics";
dataType: "number";
@@ -2601,13 +2926,13 @@ declare const feedAnalytics: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const feedAnalyticsOpenAPISchema: zod1169.ZodObject<{
- feedId: zod1169.ZodString;
- updatesPerWeek: zod1169.ZodNullable;
- subscriptionCount: zod1169.ZodNullable;
- latestEntryPublishedAt: zod1169.ZodNullable;
- view: zod1169.ZodNullable;
-}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+declare const feedAnalyticsOpenAPISchema: zod110.ZodObject<{
+ feedId: zod110.ZodString;
+ updatesPerWeek: zod110.ZodNullable;
+ subscriptionCount: zod110.ZodNullable;
+ latestEntryPublishedAt: zod110.ZodNullable;
+ view: zod110.ZodNullable;
+}, zod110.UnknownKeysParam, zod110.ZodTypeAny, {
view: number | null;
feedId: string;
updatesPerWeek: number | null;
@@ -2620,16 +2945,16 @@ declare const feedAnalyticsOpenAPISchema: zod1169.ZodObject<{
subscriptionCount: number | null;
latestEntryPublishedAt: string | null;
}>;
-declare const feedAnalyticsRelations: drizzle_orm1055.Relations<"feed_analytics", {
- feed: drizzle_orm1055.One<"feeds", true>;
+declare const feedAnalyticsRelations: drizzle_orm142.Relations<"feed_analytics", {
+ feed: drizzle_orm142.One<"feeds", true>;
}>;
//#endregion
//#region src/schema/feeds/feeds.d.ts
-declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const feeds: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "feeds";
schema: undefined;
columns: {
- id: drizzle_orm_pg_core1159.PgColumn<{
+ id: drizzle_orm_pg_core100.PgColumn<{
name: "id";
tableName: "feeds";
dataType: "string";
@@ -2646,7 +2971,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- url: drizzle_orm_pg_core1159.PgColumn<{
+ url: drizzle_orm_pg_core100.PgColumn<{
name: "url";
tableName: "feeds";
dataType: "string";
@@ -2663,7 +2988,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- title: drizzle_orm_pg_core1159.PgColumn<{
+ title: drizzle_orm_pg_core100.PgColumn<{
name: "title";
tableName: "feeds";
dataType: "string";
@@ -2680,7 +3005,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- description: drizzle_orm_pg_core1159.PgColumn<{
+ description: drizzle_orm_pg_core100.PgColumn<{
name: "description";
tableName: "feeds";
dataType: "string";
@@ -2697,7 +3022,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- siteUrl: drizzle_orm_pg_core1159.PgColumn<{
+ siteUrl: drizzle_orm_pg_core100.PgColumn<{
name: "site_url";
tableName: "feeds";
dataType: "string";
@@ -2714,7 +3039,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- image: drizzle_orm_pg_core1159.PgColumn<{
+ image: drizzle_orm_pg_core100.PgColumn<{
name: "image";
tableName: "feeds";
dataType: "string";
@@ -2731,7 +3056,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- checkedAt: drizzle_orm_pg_core1159.PgColumn<{
+ checkedAt: drizzle_orm_pg_core100.PgColumn<{
name: "checked_at";
tableName: "feeds";
dataType: "date";
@@ -2748,7 +3073,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- lastModifiedHeader: drizzle_orm_pg_core1159.PgColumn<{
+ lastModifiedHeader: drizzle_orm_pg_core100.PgColumn<{
name: "last_modified_header";
tableName: "feeds";
dataType: "string";
@@ -2765,7 +3090,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- etagHeader: drizzle_orm_pg_core1159.PgColumn<{
+ etagHeader: drizzle_orm_pg_core100.PgColumn<{
name: "etag_header";
tableName: "feeds";
dataType: "string";
@@ -2782,7 +3107,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- ttl: drizzle_orm_pg_core1159.PgColumn<{
+ ttl: drizzle_orm_pg_core100.PgColumn<{
name: "ttl";
tableName: "feeds";
dataType: "number";
@@ -2799,7 +3124,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- errorMessage: drizzle_orm_pg_core1159.PgColumn<{
+ errorMessage: drizzle_orm_pg_core100.PgColumn<{
name: "error_message";
tableName: "feeds";
dataType: "string";
@@ -2816,7 +3141,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- errorAt: drizzle_orm_pg_core1159.PgColumn<{
+ errorAt: drizzle_orm_pg_core100.PgColumn<{
name: "error_at";
tableName: "feeds";
dataType: "date";
@@ -2833,7 +3158,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- ownerUserId: drizzle_orm_pg_core1159.PgColumn<{
+ ownerUserId: drizzle_orm_pg_core100.PgColumn<{
name: "owner_user_id";
tableName: "feeds";
dataType: "string";
@@ -2850,7 +3175,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- language: drizzle_orm_pg_core1159.PgColumn<{
+ language: drizzle_orm_pg_core100.PgColumn<{
name: "language";
tableName: "feeds";
dataType: "string";
@@ -2867,7 +3192,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- migrateTo: drizzle_orm_pg_core1159.PgColumn<{
+ migrateTo: drizzle_orm_pg_core100.PgColumn<{
name: "migrate_to";
tableName: "feeds";
dataType: "string";
@@ -2884,7 +3209,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- rsshubRoute: drizzle_orm_pg_core1159.PgColumn<{
+ rsshubRoute: drizzle_orm_pg_core100.PgColumn<{
name: "rsshub_route";
tableName: "feeds";
dataType: "string";
@@ -2901,7 +3226,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- rsshubNamespace: drizzle_orm_pg_core1159.PgColumn<{
+ rsshubNamespace: drizzle_orm_pg_core100.PgColumn<{
name: "rsshub_namespace";
tableName: "feeds";
dataType: "string";
@@ -2918,7 +3243,7 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- nsfw: drizzle_orm_pg_core1159.PgColumn<{
+ nsfw: drizzle_orm_pg_core100.PgColumn<{
name: "nsfw";
tableName: "feeds";
dataType: "boolean";
@@ -2938,26 +3263,26 @@ declare const feeds: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const feedsOpenAPISchema: zod1169.ZodObject<{
- id: zod1169.ZodString;
- url: zod1169.ZodString;
- title: zod1169.ZodNullable;
- description: zod1169.ZodNullable;
- siteUrl: zod1169.ZodNullable;
- image: zod1169.ZodNullable;
- checkedAt: zod1169.ZodString;
- lastModifiedHeader: zod1169.ZodNullable;
- etagHeader: zod1169.ZodNullable;
- ttl: zod1169.ZodNullable;
- errorMessage: zod1169.ZodNullable;
- errorAt: zod1169.ZodNullable;
- ownerUserId: zod1169.ZodNullable;
- language: zod1169.ZodNullable;
- migrateTo: zod1169.ZodNullable;
- rsshubRoute: zod1169.ZodNullable;
- rsshubNamespace: zod1169.ZodNullable;
- nsfw: zod1169.ZodNullable;
-}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+declare const feedsOpenAPISchema: zod110.ZodObject<{
+ id: zod110.ZodString;
+ url: zod110.ZodString;
+ title: zod110.ZodNullable;
+ description: zod110.ZodNullable;
+ siteUrl: zod110.ZodNullable;
+ image: zod110.ZodNullable;
+ checkedAt: zod110.ZodString;
+ lastModifiedHeader: zod110.ZodNullable;
+ etagHeader: zod110.ZodNullable;
+ ttl: zod110.ZodNullable;
+ errorMessage: zod110.ZodNullable;
+ errorAt: zod110.ZodNullable;
+ ownerUserId: zod110.ZodNullable;
+ language: zod110.ZodNullable;
+ migrateTo: zod110.ZodNullable;
+ rsshubRoute: zod110.ZodNullable;
+ rsshubNamespace: zod110.ZodNullable;
+ nsfw: zod110.ZodNullable;
+}, zod110.UnknownKeysParam, zod110.ZodTypeAny, {
id: string;
image: string | null;
description: string | null;
@@ -2996,21 +3321,21 @@ declare const feedsOpenAPISchema: zod1169.ZodObject<{
rsshubNamespace: string | null;
nsfw: boolean | null;
}>;
-declare const feedsRelations: drizzle_orm1055.Relations<"feeds", {
- subscriptions: drizzle_orm1055.Many<"subscriptions">;
- entries: drizzle_orm1055.Many<"entries">;
- owner: drizzle_orm1055.One<"user", false>;
- migrateTo: drizzle_orm1055.One<"feeds", false>;
- trendingFeeds: drizzle_orm1055.Many<"trendings_feeds">;
+declare const feedsRelations: drizzle_orm142.Relations<"feeds", {
+ subscriptions: drizzle_orm142.Many<"subscriptions">;
+ entries: drizzle_orm142.Many<"entries">;
+ owner: drizzle_orm142.One<"user", false>;
+ migrateTo: drizzle_orm142.One<"feeds", false>;
+ trendingFeeds: drizzle_orm142.Many<"trendings_feeds">;
}>;
type FeedModel = InferInsertModel;
//#endregion
//#region src/schema/feeds/subscriptions.d.ts
-declare const subscriptions: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const subscriptions: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "subscriptions";
schema: undefined;
columns: {
- userId: drizzle_orm_pg_core1159.PgColumn<{
+ userId: drizzle_orm_pg_core100.PgColumn<{
name: "user_id";
tableName: "subscriptions";
dataType: "string";
@@ -3027,7 +3352,7 @@ declare const subscriptions: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- feedId: drizzle_orm_pg_core1159.PgColumn<{
+ feedId: drizzle_orm_pg_core100.PgColumn<{
name: "feed_id";
tableName: "subscriptions";
dataType: "string";
@@ -3044,7 +3369,7 @@ declare const subscriptions: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- view: drizzle_orm_pg_core1159.PgColumn<{
+ view: drizzle_orm_pg_core100.PgColumn<{
name: "view";
tableName: "subscriptions";
dataType: "number";
@@ -3061,7 +3386,7 @@ declare const subscriptions: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- category: drizzle_orm_pg_core1159.PgColumn<{
+ category: drizzle_orm_pg_core100.PgColumn<{
name: "category";
tableName: "subscriptions";
dataType: "string";
@@ -3078,7 +3403,7 @@ declare const subscriptions: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- title: drizzle_orm_pg_core1159.PgColumn<{
+ title: drizzle_orm_pg_core100.PgColumn<{
name: "title";
tableName: "subscriptions";
dataType: "string";
@@ -3095,7 +3420,7 @@ declare const subscriptions: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- createdAt: drizzle_orm_pg_core1159.PgColumn<{
+ createdAt: drizzle_orm_pg_core100.PgColumn<{
name: "created_at";
tableName: "subscriptions";
dataType: "date";
@@ -3112,7 +3437,7 @@ declare const subscriptions: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- isPrivate: drizzle_orm_pg_core1159.PgColumn<{
+ isPrivate: drizzle_orm_pg_core100.PgColumn<{
name: "is_private";
tableName: "subscriptions";
dataType: "boolean";
@@ -3132,15 +3457,15 @@ declare const subscriptions: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const subscriptionsOpenAPISchema: zod1169.ZodObject<{
- userId: zod1169.ZodString;
- feedId: zod1169.ZodString;
- view: zod1169.ZodNumber;
- category: zod1169.ZodNullable;
- title: zod1169.ZodNullable;
- createdAt: zod1169.ZodString;
- isPrivate: zod1169.ZodBoolean;
-}, zod1169.UnknownKeysParam, zod1169.ZodTypeAny, {
+declare const subscriptionsOpenAPISchema: zod110.ZodObject<{
+ userId: zod110.ZodString;
+ feedId: zod110.ZodString;
+ view: zod110.ZodNumber;
+ category: zod110.ZodNullable;
+ title: zod110.ZodNullable;
+ createdAt: zod110.ZodString;
+ isPrivate: zod110.ZodBoolean;
+}, zod110.UnknownKeysParam, zod110.ZodTypeAny, {
createdAt: string;
userId: string;
title: string | null;
@@ -3157,19 +3482,19 @@ declare const subscriptionsOpenAPISchema: zod1169.ZodObject<{
feedId: string;
isPrivate: boolean;
}>;
-declare const subscriptionsRelations: drizzle_orm1055.Relations<"subscriptions", {
- users: drizzle_orm1055.One<"user", true>;
- feeds: drizzle_orm1055.One<"feeds", true>;
- timeline: drizzle_orm1055.Many<"timeline">;
- rsshubUsage: drizzle_orm1055.One<"rsshub_usage", true>;
+declare const subscriptionsRelations: drizzle_orm142.Relations<"subscriptions", {
+ users: drizzle_orm142.One<"user", true>;
+ feeds: drizzle_orm142.One<"feeds", true>;
+ timeline: drizzle_orm142.Many<"timeline">;
+ rsshubUsage: drizzle_orm142.One<"rsshub_usage", true>;
}>;
//#endregion
//#region src/schema/inboxes/entries.d.ts
-declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
+declare const inboxesEntries: drizzle_orm_pg_core100.PgTableWithColumns<{
name: "inboxes_entries";
schema: undefined;
columns: {
- id: drizzle_orm_pg_core1159.PgColumn<{
+ id: drizzle_orm_pg_core100.PgColumn<{
name: "id";
tableName: "inboxes_entries";
dataType: "string";
@@ -3186,7 +3511,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- title: drizzle_orm_pg_core1159.PgColumn<{
+ title: drizzle_orm_pg_core100.PgColumn<{
name: "title";
tableName: "inboxes_entries";
dataType: "string";
@@ -3203,7 +3528,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- url: drizzle_orm_pg_core1159.PgColumn<{
+ url: drizzle_orm_pg_core100.PgColumn<{
name: "url";
tableName: "inboxes_entries";
dataType: "string";
@@ -3220,7 +3545,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- content: drizzle_orm_pg_core1159.PgColumn<{
+ content: drizzle_orm_pg_core100.PgColumn<{
name: "content";
tableName: "inboxes_entries";
dataType: "string";
@@ -3237,7 +3562,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- description: drizzle_orm_pg_core1159.PgColumn<{
+ description: drizzle_orm_pg_core100.PgColumn<{
name: "description";
tableName: "inboxes_entries";
dataType: "string";
@@ -3254,7 +3579,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- guid: drizzle_orm_pg_core1159.PgColumn<{
+ guid: drizzle_orm_pg_core100.PgColumn<{
name: "guid";
tableName: "inboxes_entries";
dataType: "string";
@@ -3271,7 +3596,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- author: drizzle_orm_pg_core1159.PgColumn<{
+ author: drizzle_orm_pg_core100.PgColumn<{
name: "author";
tableName: "inboxes_entries";
dataType: "string";
@@ -3288,7 +3613,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- authorUrl: drizzle_orm_pg_core1159.PgColumn<{
+ authorUrl: drizzle_orm_pg_core100.PgColumn<{
name: "author_url";
tableName: "inboxes_entries";
dataType: "string";
@@ -3305,7 +3630,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- authorAvatar: drizzle_orm_pg_core1159.PgColumn<{
+ authorAvatar: drizzle_orm_pg_core100.PgColumn<{
name: "author_avatar";
tableName: "inboxes_entries";
dataType: "string";
@@ -3322,7 +3647,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- insertedAt: drizzle_orm_pg_core1159.PgColumn<{
+ insertedAt: drizzle_orm_pg_core100.PgColumn<{
name: "inserted_at";
tableName: "inboxes_entries";
dataType: "date";
@@ -3339,7 +3664,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- publishedAt: drizzle_orm_pg_core1159.PgColumn<{
+ publishedAt: drizzle_orm_pg_core100.PgColumn<{
name: "published_at";
tableName: "inboxes_entries";
dataType: "date";
@@ -3356,7 +3681,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- media: drizzle_orm_pg_core1159.PgColumn<{
+ media: drizzle_orm_pg_core100.PgColumn<{
name: "media";
tableName: "inboxes_entries";
dataType: "json";
@@ -3375,7 +3700,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
}, {}, {
$type: MediaModel[];
}>;
- categories: drizzle_orm_pg_core1159.PgColumn<{
+ categories: drizzle_orm_pg_core100.PgColumn<{
name: "categories";
tableName: "inboxes_entries";
dataType: "array";
@@ -3388,7 +3713,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
- baseColumn: drizzle_orm1055.Column<{
+ baseColumn: drizzle_orm142.Column<{
name: "categories";
tableName: "inboxes_entries";
dataType: "string";
@@ -3408,17 +3733,17 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {
- baseBuilder: drizzle_orm_pg_core1159.PgColumnBuilder<{
+ baseBuilder: drizzle_orm_pg_core100.PgColumnBuilder<{
name: "categories";
dataType: "string";
columnType: "PgText";
data: string;
enumValues: [string, ...string[]];
driverParam: string;
- }, {}, {}, drizzle_orm1055.ColumnBuilderExtraConfig>;
+ }, {}, {}, drizzle_orm142.ColumnBuilderExtraConfig>;
size: undefined;
}>;
- attachments: drizzle_orm_pg_core1159.PgColumn<{
+ attachments: drizzle_orm_pg_core100.PgColumn<{
name: "attachments";
tableName: "inboxes_entries";
dataType: "json";
@@ -3437,7 +3762,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
}, {}, {
$type: AttachmentsModel[];
}>;
- extra: drizzle_orm_pg_core1159.PgColumn<{
+ extra: drizzle_orm_pg_core100.PgColumn<{
name: "extra";
tableName: "inboxes_entries";
dataType: "json";
@@ -3456,7 +3781,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
}, {}, {
$type: ExtraModel;
}>;
- language: drizzle_orm_pg_core1159.PgColumn<{
+ language: drizzle_orm_pg_core100.PgColumn<{
name: "language";
tableName: "inboxes_entries";
dataType: "string";
@@ -3473,7 +3798,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- inboxHandle: drizzle_orm_pg_core1159.PgColumn<{
+ inboxHandle: drizzle_orm_pg_core100.PgColumn<{
name: "inbox_handle";
tableName: "inboxes_entries";
dataType: "string";
@@ -3490,7 +3815,7 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
identity: undefined;
generated: undefined;
}, {}, {}>;
- read: drizzle_orm_pg_core1159.PgColumn<{
+ read: drizzle_orm_pg_core100.PgColumn<{
name: "read";
tableName: "inboxes_entries";
dataType: "boolean";
@@ -3510,19 +3835,19 @@ declare const inboxesEntries: drizzle_orm_pg_core1159.PgTableWithColumns<{
};
dialect: "pg";
}>;
-declare const inboxesEntriesOpenAPISchema: z.ZodObject;
- url: z.ZodNullable;
- content: z.ZodNullable;
- description: z.ZodNullable;
- guid: z.ZodString;
- author: z.ZodNullable;
- authorUrl: z.ZodNullable;
- authorAvatar: z.ZodNullable;
- insertedAt: z.ZodString;
- publishedAt: z.ZodString;
- media: z.ZodNullable;
+ url: z$1.ZodNullable;
+ content: z$1.ZodNullable;
+ description: z$1.ZodNullable;
+ guid: z$1.ZodString;
+ author: z$1.ZodNullable;
+ authorUrl: z$1.ZodNullable;
+ authorAvatar: z$1.ZodNullable;
+ insertedAt: z$1.ZodString;
+ publishedAt: z$1.ZodString;
+ media: z$1.ZodNullable>;
- categories: z.ZodNullable>;
- attachments: z.ZodNullable>;
+ attachments: z$1.ZodNullable>;
- extra: z.ZodNullable>;
- language: z.ZodNullable;
- inboxHandle: z.ZodString;
- read: z.ZodNullable