From e36abbf19bcbd537aba64c1e5a24cc76aad957d2 Mon Sep 17 00:00:00 2001 From: Ben Senescu Date: Fri, 27 Feb 2026 14:09:33 -0500 Subject: [PATCH] Initial public release --- .env.example | 11 + .gitignore | 30 + .oxlintrc.json | 32 + .prettierignore | 9 + .vscode/settings.json | 11 + .worktreeinclude | 3 + EveryAppLearnings.md | 7 + README.md | 207 + drizzle-prod.config.ts | 13 + drizzle.config.ts | 13 + drizzle/0000_fantastic_vanisher.sql | 146 + drizzle/0001_round_unus.sql | 11 + drizzle/meta/0000_snapshot.json | 1047 ++ drizzle/meta/0001_snapshot.json | 1076 ++ drizzle/meta/_journal.json | 20 + every-app.jsonc | 5 + knip.jsonc | 46 + opencode.jsonc | 13 + package.json | 73 + pnpm-lock.yaml | 5581 ++++++++ public/android-chrome-192x192.png | Bin 0 -> 29964 bytes public/android-chrome-512x512.png | Bin 0 -> 109271 bytes public/apple-touch-icon.png | Bin 0 -> 27246 bytes public/favicon-16x16.png | Bin 0 -> 832 bytes public/favicon-32x32.png | Bin 0 -> 2115 bytes public/favicon.ico | Bin 0 -> 15406 bytes public/favicon.png | Bin 0 -> 1507 bytes public/site.webmanifest | 19 + .../components/DefaultCatchBoundary.tsx | 48 + src/client/components/NotFound.tsx | 10 + src/client/components/Sidebar.tsx | 112 + src/client/features/keywords/components.tsx | 666 + src/client/features/keywords/utils.ts | 62 + src/client/hooks/useDomainSearchHistory.ts | 121 + src/client/hooks/useSearchHistory.ts | 92 + src/client/lib/error-messages.ts | 21 + src/client/navigation/items.ts | 34 + src/client/styles/app.css | 256 + src/client/styles/view-transitions.css | 55 + src/client/tanstack-db/index.ts | 1 + src/client/tanstack-db/queryClient.ts | 10 + src/db/index.ts | 9 + src/db/schema.ts | 262 + src/env.d.ts | 20 + src/middleware/ensureUser.ts | 57 + src/routeTree.gen.ts | 300 + src/router.tsx | 16 + src/routes/__root.tsx | 223 + src/routes/index.tsx | 43 + src/routes/p/$projectId/ai.tsx | 128 + src/routes/p/$projectId/audit.tsx | 9 + src/routes/p/$projectId/audit/index.tsx | 1446 ++ .../p/$projectId/audit/issues/$resultId.tsx | 554 + src/routes/p/$projectId/domain.tsx | 1201 ++ src/routes/p/$projectId/index.tsx | 10 + src/routes/p/$projectId/keywords.tsx | 1559 +++ .../p/$projectId/psi/issues/$resultId.tsx | 554 + src/routes/p/$projectId/route.tsx | 44 + src/routes/p/$projectId/saved.tsx | 238 + src/server.ts | 8 + src/server/lib/audit/discovery.ts | 243 + src/server/lib/audit/page-analyzer.ts | 131 + src/server/lib/audit/progress-kv.ts | 81 + src/server/lib/audit/psi.ts | 176 + src/server/lib/audit/types.ts | 69 + src/server/lib/audit/url-policy.ts | 220 + src/server/lib/audit/url-utils.ts | 133 + src/server/lib/dataforseo.ts | 404 + src/server/lib/errors.ts | 27 + src/server/lib/kv-cache.ts | 64 + src/server/lib/logger.ts | 68 + src/server/lib/r2.ts | 43 + src/server/lib/serverFnErrorBoundary.ts | 51 + src/server/repositories/AuditRepository.ts | 308 + .../repositories/KeywordResearchRepository.ts | 192 + src/server/repositories/PsiAuditRepository.ts | 102 + src/server/services/AuditService.ts | 184 + src/server/services/DomainService.ts | 219 + src/server/services/KeywordResearchService.ts | 577 + src/server/services/PsiIssuesService.ts | 192 + src/server/services/PsiService.ts | 170 + .../services/keyword-research/helpers.ts | 25 + .../services/keyword-research/projects.ts | 65 + .../keyword-research/research-data.ts | 61 + .../keyword-research/saved-keywords.ts | 109 + src/server/services/keyword-research/serp.ts | 69 + src/server/workflows/SiteAuditWorkflow.ts | 540 + src/serverFunctions/audit.ts | 112 + src/serverFunctions/domain.ts | 22 + src/serverFunctions/keywords.ts | 168 + src/serverFunctions/psi.ts | 405 + src/shared/error-codes.ts | 16 + src/types/keywords.ts | 52 + src/types/schemas/audit.ts | 57 + src/types/schemas/domain.ts | 25 + src/types/schemas/keywords.ts | 115 + src/types/schemas/psi.ts | 81 + src/types/vite-env.d.ts | 16 + tsconfig.json | 22 + vite.config.ts | 32 + worker-configuration.d.ts | 10932 ++++++++++++++++ wrangler.jsonc | 43 + 102 files changed, 33163 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 .oxlintrc.json create mode 100644 .prettierignore create mode 100644 .vscode/settings.json create mode 100644 .worktreeinclude create mode 100644 EveryAppLearnings.md create mode 100644 README.md create mode 100644 drizzle-prod.config.ts create mode 100644 drizzle.config.ts create mode 100644 drizzle/0000_fantastic_vanisher.sql create mode 100644 drizzle/0001_round_unus.sql create mode 100644 drizzle/meta/0000_snapshot.json create mode 100644 drizzle/meta/0001_snapshot.json create mode 100644 drizzle/meta/_journal.json create mode 100644 every-app.jsonc create mode 100644 knip.jsonc create mode 100644 opencode.jsonc create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 public/android-chrome-192x192.png create mode 100644 public/android-chrome-512x512.png create mode 100644 public/apple-touch-icon.png create mode 100644 public/favicon-16x16.png create mode 100644 public/favicon-32x32.png create mode 100644 public/favicon.ico create mode 100644 public/favicon.png create mode 100644 public/site.webmanifest create mode 100644 src/client/components/DefaultCatchBoundary.tsx create mode 100644 src/client/components/NotFound.tsx create mode 100644 src/client/components/Sidebar.tsx create mode 100644 src/client/features/keywords/components.tsx create mode 100644 src/client/features/keywords/utils.ts create mode 100644 src/client/hooks/useDomainSearchHistory.ts create mode 100644 src/client/hooks/useSearchHistory.ts create mode 100644 src/client/lib/error-messages.ts create mode 100644 src/client/navigation/items.ts create mode 100644 src/client/styles/app.css create mode 100644 src/client/styles/view-transitions.css create mode 100644 src/client/tanstack-db/index.ts create mode 100644 src/client/tanstack-db/queryClient.ts create mode 100644 src/db/index.ts create mode 100644 src/db/schema.ts create mode 100644 src/env.d.ts create mode 100644 src/middleware/ensureUser.ts create mode 100644 src/routeTree.gen.ts create mode 100644 src/router.tsx create mode 100644 src/routes/__root.tsx create mode 100644 src/routes/index.tsx create mode 100644 src/routes/p/$projectId/ai.tsx create mode 100644 src/routes/p/$projectId/audit.tsx create mode 100644 src/routes/p/$projectId/audit/index.tsx create mode 100644 src/routes/p/$projectId/audit/issues/$resultId.tsx create mode 100644 src/routes/p/$projectId/domain.tsx create mode 100644 src/routes/p/$projectId/index.tsx create mode 100644 src/routes/p/$projectId/keywords.tsx create mode 100644 src/routes/p/$projectId/psi/issues/$resultId.tsx create mode 100644 src/routes/p/$projectId/route.tsx create mode 100644 src/routes/p/$projectId/saved.tsx create mode 100644 src/server.ts create mode 100644 src/server/lib/audit/discovery.ts create mode 100644 src/server/lib/audit/page-analyzer.ts create mode 100644 src/server/lib/audit/progress-kv.ts create mode 100644 src/server/lib/audit/psi.ts create mode 100644 src/server/lib/audit/types.ts create mode 100644 src/server/lib/audit/url-policy.ts create mode 100644 src/server/lib/audit/url-utils.ts create mode 100644 src/server/lib/dataforseo.ts create mode 100644 src/server/lib/errors.ts create mode 100644 src/server/lib/kv-cache.ts create mode 100644 src/server/lib/logger.ts create mode 100644 src/server/lib/r2.ts create mode 100644 src/server/lib/serverFnErrorBoundary.ts create mode 100644 src/server/repositories/AuditRepository.ts create mode 100644 src/server/repositories/KeywordResearchRepository.ts create mode 100644 src/server/repositories/PsiAuditRepository.ts create mode 100644 src/server/services/AuditService.ts create mode 100644 src/server/services/DomainService.ts create mode 100644 src/server/services/KeywordResearchService.ts create mode 100644 src/server/services/PsiIssuesService.ts create mode 100644 src/server/services/PsiService.ts create mode 100644 src/server/services/keyword-research/helpers.ts create mode 100644 src/server/services/keyword-research/projects.ts create mode 100644 src/server/services/keyword-research/research-data.ts create mode 100644 src/server/services/keyword-research/saved-keywords.ts create mode 100644 src/server/services/keyword-research/serp.ts create mode 100644 src/server/workflows/SiteAuditWorkflow.ts create mode 100644 src/serverFunctions/audit.ts create mode 100644 src/serverFunctions/domain.ts create mode 100644 src/serverFunctions/keywords.ts create mode 100644 src/serverFunctions/psi.ts create mode 100644 src/shared/error-codes.ts create mode 100644 src/types/keywords.ts create mode 100644 src/types/schemas/audit.ts create mode 100644 src/types/schemas/domain.ts create mode 100644 src/types/schemas/keywords.ts create mode 100644 src/types/schemas/psi.ts create mode 100644 src/types/vite-env.d.ts create mode 100644 tsconfig.json create mode 100644 vite.config.ts create mode 100644 worker-configuration.d.ts create mode 100644 wrangler.jsonc diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..f4b55f1 --- /dev/null +++ b/.env.example @@ -0,0 +1,11 @@ +# Local app port +PORT=3001 + +# Every App / Gateway settings +VITE_APP_ID=super-seo +VITE_GATEWAY_URL=https://your-gateway-domain.example.com +GATEWAY_URL=https://your-gateway-domain.example.com +GATEWAY_APP_API_TOKEN=your_gateway_app_api_token + +# DataForSEO Basic auth value: base64(login:password) +DATAFORSEO_API_KEY=base64_login_colon_password diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb8ba09 --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +.codex/ +node_modules +package-lock.json +yarn.lock +.dev.vars +dist/ +.wrangler +/tmp + +.output/ +.tanstack/ +.DS_Store +.cache +.env +.env.local +.env.production +.vercel +.output +.nitro +/build/ +/api/ +/server/build +/public/build# Sentry Config File +.env.sentry-build-plugin +/test-results/ +/playwright-report/ +/blob-report/ +/playwright/.cache/ +.tanstack +.logs/ diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 0000000..0225b30 --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,32 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "categories": { + "correctness": "error", + "suspicious": "error" + }, + "plugins": ["typescript", "import", "react", "unicorn", "oxc"], + "ignorePatterns": ["node_modules", "dist", ".output", "src/routeTree.gen.ts"], + "rules": { + "react/react-in-jsx-scope": "off", + "react/jsx-uses-react": "off", + "unicorn/no-array-sort": "error", + "typescript/no-explicit-any": "error", + "typescript/consistent-type-imports": "error", + "eslint/no-constant-binary-expression": "error", + "eslint/no-self-assign": "error", + "eslint/no-unreachable-loop": "error", + "eslint/no-unsafe-optional-chaining": "error", + "eslint/complexity": ["error", { "max": 40 }], + "eslint/max-lines": [ + "error", + { "max": 2000, "skipBlankLines": true, "skipComments": true } + ], + "eslint/max-lines-per-function": [ + "error", + { "max": 1000, "skipBlankLines": true, "skipComments": true } + ], + "eslint/max-depth": ["error", 4], + "eslint/max-params": ["error", 5], + "import/no-cycle": "error" + } +} diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..fe3a02c --- /dev/null +++ b/.prettierignore @@ -0,0 +1,9 @@ +**/build +**/public +pnpm-lock.yaml +routeTree.gen.ts + +dist/ +drizzle/ +planning/ +worker-configuration.d.ts diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..00b5278 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "files.watcherExclude": { + "**/routeTree.gen.ts": true + }, + "search.exclude": { + "**/routeTree.gen.ts": true + }, + "files.readonlyInclude": { + "**/routeTree.gen.ts": true + } +} diff --git a/.worktreeinclude b/.worktreeinclude new file mode 100644 index 0000000..bb876dc --- /dev/null +++ b/.worktreeinclude @@ -0,0 +1,3 @@ +.env.local +.wrangler +node_modules/ diff --git a/EveryAppLearnings.md b/EveryAppLearnings.md new file mode 100644 index 0000000..0253785 --- /dev/null +++ b/EveryAppLearnings.md @@ -0,0 +1,7 @@ +# EveryApp Learnings + +Things to add to EveryApp skill files later. + +## D1 + +- `db.batch()` is required for multi-row inserts — D1 has a 100 bind param limit per statement, so multi-row `INSERT VALUES (...), (...)` breaks. Use individual INSERT statements batched via `db.batch()` (up to 100 statements per call). diff --git a/README.md b/README.md new file mode 100644 index 0000000..919c693 --- /dev/null +++ b/README.md @@ -0,0 +1,207 @@ +# OpenSEO + +OpenSEO is an open source SEO tool for people getting started with SEO, or teams that want something simpler than SEMrush or Ahrefs without paying for another monthly SaaS subscription. + +![OpenSEO demo (placeholder)](https://placehold.co/1200x675?text=OpenSEO+Demo+GIF+Coming+Soon) + +## Why Use This + +- Open source and self-hostable. +- No OpenSEO subscription. +- You own your deployment and data. +- Focused workflows instead of a giant, complex SEO suite. + +## Main SEO Workflows + +- Keyword research + - Find topics worth targeting, estimate demand, and prioritize what to write next. +- Domain insights + - Understand where your domain is gaining or losing visibility so you can focus on the pages that move revenue. +- Audits + - Catch technical issues early so your site is easier for search engines to crawl and rank. + +## Pricing / Costs + +OpenSEO is totally free to use. It works by pulling SEO data from DataForSEO, which is a paid third-party service unaffiliated with OpenSEO. + +There are two separate things: + +1. OpenSEO app cost: **$0 subscription**. +2. DataForSEO API usage: pay-as-you-go based on requests. + +As of February 26, 2026, DataForSEO’s public docs/pricing pages say: + +- New accounts include **$1 free credit** to test the API. +- The minimum top-up/payment is **$50**. + +That means you can try OpenSEO for free with the starter credit, then decide if/when to top up. + +For OpenSEO-specific, per-workflow request estimates, see the internal [SEO API Cost Reference](#seo-api-cost-reference). + +For current endpoint pricing and cost calculators, check: + +- [DataForSEO Pricing](https://dataforseo.com/pricing) +- [DataForSEO API Documentation](https://docs.dataforseo.com/v3/) + +## DataForSEO API Key Setup + +OpenSEO expects `DATAFORSEO_API_KEY` as a Basic Auth value. + +1. Go to [DataForSEO API Access](https://app.dataforseo.com/api-access). +2. Request API credentials by email (`API key by email` or `API password by email`). +3. Use your DataForSEO login + API password, then base64 encode `login:password`: + +```sh +printf '%s' 'YOUR_LOGIN:YOUR_PASSWORD' | base64 +``` + +Set that output as `DATAFORSEO_API_KEY` in your environment/secrets. + +Note: even though the env var is named `DATAFORSEO_API_KEY`, this app sends it as HTTP Basic auth, so the value should be the base64 form of `login:password`. + +## Local Development + +### Prerequisites + +- Node.js 20+ +- [pnpm](https://pnpm.io/) +- A Cloudflare account +- Every App gateway set up (see [Every App](https://github.com/every-app/every-app)) +- A DataForSEO account/API credentials + +### Run Locally (Quick Test) + +1. Copy env template: + +```sh +cp .env.example .env.local +``` + +2. Install and run: + +```sh +pnpm install +pnpm dev +``` + +App runs on `http://localhost:3001` by default (or `PORT` from `.env.local`). + +Running locally is the fastest way to test core flows. In the future, local mode will not include some Cloudflare-backed capabilities (for example cron-based rank tracking and infrastructure-powered performance improvements for heavier audits). + +### Shared Dev Server Workflow (for coding agents) + +```sh +# terminal 1: start once and keep running +pnpm dev:agents +``` + +- `pnpm dev:agents` mirrors output to `.logs/dev-server.log` (gitignored). +- The log file is overwritten on each run. +- If you need a different port, set `PORT` in `.env.local` and restart. + +### Database Commands + +Generate migration: + +```sh +pnpm run db:generate +``` + +Migrate local DB: + +```sh +pnpm run db:migrate:local +``` + +## Self Hosting (Deploy on Cloudflare) + +OpenSEO is built on [Every App](https://github.com/every-app/every-app), a platform for easily self-hosting open source apps in your own Cloudflare account. + +### Prerequisites + +1. Install [Node.js](https://nodejs.org/) (includes `npx`). +2. Create a Cloudflare account: [dash.cloudflare.com/sign-up](https://dash.cloudflare.com/sign-up) +3. Authenticate Wrangler: + +```sh +npx wrangler login +``` + +4. Deploy the Every App Gateway (one-time per account): + +```sh +npx everyapp gateway deploy +``` + +Follow the link returned by that command to create your gateway account. + +### Deploy OpenSEO + +```sh +git clone https://github.com/bensenescu/super-seo.git +cd super-seo +npx everyapp app deploy +``` + +After deploy, set your DataForSEO secret: + +```sh +npx wrangler secret put DATAFORSEO_API_KEY +``` + +When prompted, paste the base64 value of `login:password` (using your DataForSEO login + API password). + +## Roadmap + +Top priorities right now: + +- Rank tracking +- AI content workflows + +If something important is missing, please join the Discord and request it. We prioritize community demand first. +Discord: [Join the OpenSEO community](https://discord.gg/c9uGs3cFXr) + +## Contributing + +Contributions are very welcome. + +- Open an issue for bugs, UX friction, or feature requests. +- Open a PR if you want to implement a feature directly. +- Community-driven improvements are prioritized, and high-quality PRs are encouraged. + +If you want to contribute but are unsure where to start, open an issue and describe what you want to build. + +## SEO API Cost Reference + +Use this section to estimate DataForSEO spend per request type. OpenSEO itself remains free; these are API usage costs only. + +### Pricing sources + +- DataForSEO Labs pricing: https://dataforseo.com/pricing/dataforseo-labs/dataforseo-google-api +- Google PageSpeed Insights API docs: https://developers.google.com/speed/docs/insights/v5/get-started + +### 1) Site audit + +- No paid API calls in the current implementation. + +### 2) Keyword research (`related` mode) + +- Current billed cost pattern (from account usage logs): + - `0.02 + (0.0001 x returned_keywords)` USD +- Default app setting: `150` results per search (`$0.035` each). +- Available result tiers: + - 150 results = `$0.035` + - 300 results = `$0.05` + - 500 results = `$0.07` + +### 3) Domain overview + +- Standard domain overview request (with top 200 ranked keywords): `$0.0401` per domain. +- General formula if needed: + - `0.0201 + (0.0001 x ranked_keywords_returned)` USD + +### Planning examples + +- 100 keyword research requests at the default 150 results: `$3.50` +- 100 keyword research requests at 500 results each: `$7.00` +- 100 domain overviews (200 ranked keywords each): `$4.01` diff --git a/drizzle-prod.config.ts b/drizzle-prod.config.ts new file mode 100644 index 0000000..ace7ec4 --- /dev/null +++ b/drizzle-prod.config.ts @@ -0,0 +1,13 @@ +import { defineConfig } from "drizzle-kit"; + +export default defineConfig({ + dialect: "sqlite", + schema: "./src/db/schema.ts", + out: "./drizzle", + driver: "d1-http", + dbCredentials: { + accountId: process.env.CLOUDFLARE_ACCOUNT_ID!, + databaseId: process.env.CLOUDFLARE_DATABASE_ID!, + token: process.env.CLOUDFLARE_API_TOKEN!, + }, +}); diff --git a/drizzle.config.ts b/drizzle.config.ts new file mode 100644 index 0000000..eaf38dc --- /dev/null +++ b/drizzle.config.ts @@ -0,0 +1,13 @@ +import { defineConfig } from "drizzle-kit"; +import { getLocalD1Url } from "@every-app/sdk/cloudflare/server"; + +const localUrl = getLocalD1Url(); + +export default defineConfig({ + dialect: "sqlite", + schema: "./src/db/schema.ts", + out: "./drizzle", + dbCredentials: { + url: localUrl || "", // Empty fallback for CI/non-dev environments + }, +}); diff --git a/drizzle/0000_fantastic_vanisher.sql b/drizzle/0000_fantastic_vanisher.sql new file mode 100644 index 0000000..1545a5c --- /dev/null +++ b/drizzle/0000_fantastic_vanisher.sql @@ -0,0 +1,146 @@ +CREATE TABLE `audit_pages` ( + `id` text PRIMARY KEY NOT NULL, + `audit_id` text NOT NULL, + `url` text NOT NULL, + `status_code` integer, + `redirect_url` text, + `title` text, + `meta_description` text, + `canonical_url` text, + `robots_meta` text, + `og_title` text, + `og_description` text, + `og_image` text, + `h1_count` integer DEFAULT 0 NOT NULL, + `h2_count` integer DEFAULT 0 NOT NULL, + `h3_count` integer DEFAULT 0 NOT NULL, + `h4_count` integer DEFAULT 0 NOT NULL, + `h5_count` integer DEFAULT 0 NOT NULL, + `h6_count` integer DEFAULT 0 NOT NULL, + `heading_order_json` text, + `word_count` integer DEFAULT 0 NOT NULL, + `images_total` integer DEFAULT 0 NOT NULL, + `images_missing_alt` integer DEFAULT 0 NOT NULL, + `images_json` text, + `internal_link_count` integer DEFAULT 0 NOT NULL, + `external_link_count` integer DEFAULT 0 NOT NULL, + `has_structured_data` integer DEFAULT false NOT NULL, + `hreflang_tags_json` text, + `is_indexable` integer DEFAULT true NOT NULL, + `response_time_ms` integer, + FOREIGN KEY (`audit_id`) REFERENCES `audits`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE INDEX `audit_pages_audit_id_idx` ON `audit_pages` (`audit_id`);--> statement-breakpoint +CREATE TABLE `audit_psi_results` ( + `id` text PRIMARY KEY NOT NULL, + `audit_id` text NOT NULL, + `page_id` text NOT NULL, + `strategy` text NOT NULL, + `performance_score` integer, + `accessibility_score` integer, + `best_practices_score` integer, + `seo_score` integer, + `lcp_ms` real, + `cls` real, + `inp_ms` real, + `ttfb_ms` real, + `error_message` text, + `r2_key` text, + `payload_size_bytes` integer, + FOREIGN KEY (`audit_id`) REFERENCES `audits`(`id`) ON UPDATE no action ON DELETE cascade, + FOREIGN KEY (`page_id`) REFERENCES `audit_pages`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE INDEX `audit_psi_results_audit_id_idx` ON `audit_psi_results` (`audit_id`);--> statement-breakpoint +CREATE TABLE `audits` ( + `id` text PRIMARY KEY NOT NULL, + `project_id` text NOT NULL, + `user_id` text NOT NULL, + `start_url` text NOT NULL, + `status` text DEFAULT 'running' NOT NULL, + `workflow_instance_id` text, + `config` text DEFAULT '{}' NOT NULL, + `pages_crawled` integer DEFAULT 0 NOT NULL, + `pages_total` integer DEFAULT 0 NOT NULL, + `psi_total` integer DEFAULT 0 NOT NULL, + `psi_completed` integer DEFAULT 0 NOT NULL, + `psi_failed` integer DEFAULT 0 NOT NULL, + `current_phase` text DEFAULT 'discovery', + `started_at` text DEFAULT (current_timestamp) NOT NULL, + `completed_at` text, + FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade, + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE INDEX `audits_project_id_idx` ON `audits` (`project_id`);--> statement-breakpoint +CREATE INDEX `audits_user_id_idx` ON `audits` (`user_id`);--> statement-breakpoint +CREATE TABLE `keyword_metrics` ( + `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, + `keyword` text NOT NULL, + `location_code` integer NOT NULL, + `language_code` text DEFAULT 'en' NOT NULL, + `search_volume` integer, + `cpc` real, + `competition` real, + `keyword_difficulty` integer, + `intent` text, + `monthly_searches` text, + `fetched_at` text DEFAULT (current_timestamp) NOT NULL +); +--> statement-breakpoint +CREATE TABLE `projects` ( + `id` text PRIMARY KEY NOT NULL, + `user_id` text NOT NULL, + `name` text NOT NULL, + `domain` text, + `pagespeed_api_key` text, + `created_at` text DEFAULT (current_timestamp) NOT NULL, + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE TABLE `psi_audit_results` ( + `id` text PRIMARY KEY NOT NULL, + `project_id` text NOT NULL, + `requested_url` text NOT NULL, + `final_url` text NOT NULL, + `strategy` text NOT NULL, + `status` text DEFAULT 'completed' NOT NULL, + `performance_score` integer, + `accessibility_score` integer, + `best_practices_score` integer, + `seo_score` integer, + `first_contentful_paint` text, + `largest_contentful_paint` text, + `total_blocking_time` text, + `cumulative_layout_shift` text, + `speed_index` text, + `time_to_interactive` text, + `lighthouse_version` text, + `error_message` text, + `r2_key` text, + `payload_size_bytes` integer, + `created_at` text DEFAULT (current_timestamp) NOT NULL, + FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE INDEX `psi_audit_results_project_created_idx` ON `psi_audit_results` (`project_id`,`created_at`);--> statement-breakpoint +CREATE INDEX `psi_audit_results_project_strategy_idx` ON `psi_audit_results` (`project_id`,`strategy`);--> statement-breakpoint +CREATE TABLE `saved_keywords` ( + `id` text PRIMARY KEY NOT NULL, + `project_id` text NOT NULL, + `keyword` text NOT NULL, + `location_code` integer DEFAULT 2840 NOT NULL, + `language_code` text DEFAULT 'en' NOT NULL, + `created_at` text DEFAULT (current_timestamp) NOT NULL, + FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade +); +--> statement-breakpoint +CREATE UNIQUE INDEX `saved_keywords_unique_project_keyword_location` ON `saved_keywords` (`project_id`,`keyword`,`location_code`);--> statement-breakpoint +CREATE TABLE `users` ( + `id` text PRIMARY KEY NOT NULL, + `email` text NOT NULL, + `created_at` text DEFAULT (current_timestamp) NOT NULL +); +--> statement-breakpoint +CREATE UNIQUE INDEX `users_email_unique` ON `users` (`email`); \ No newline at end of file diff --git a/drizzle/0001_round_unus.sql b/drizzle/0001_round_unus.sql new file mode 100644 index 0000000..f5e97e4 --- /dev/null +++ b/drizzle/0001_round_unus.sql @@ -0,0 +1,11 @@ +DROP INDEX `saved_keywords_unique_project_keyword_location`;--> statement-breakpoint +CREATE UNIQUE INDEX `saved_keywords_unique_project_keyword_location_language` ON `saved_keywords` (`project_id`,`keyword`,`location_code`,`language_code`);--> statement-breakpoint +CREATE INDEX `saved_keywords_project_created_idx` ON `saved_keywords` (`project_id`,`created_at`);--> statement-breakpoint +DELETE FROM `keyword_metrics` +WHERE `id` NOT IN ( + SELECT MAX(`id`) + FROM `keyword_metrics` + GROUP BY `keyword`, `location_code`, `language_code` +);--> statement-breakpoint +CREATE UNIQUE INDEX `keyword_metrics_unique_keyword_location_language` ON `keyword_metrics` (`keyword`,`location_code`,`language_code`);--> statement-breakpoint +CREATE INDEX `keyword_metrics_lookup_idx` ON `keyword_metrics` (`keyword`,`location_code`,`language_code`,`fetched_at`); diff --git a/drizzle/meta/0000_snapshot.json b/drizzle/meta/0000_snapshot.json new file mode 100644 index 0000000..df9608b --- /dev/null +++ b/drizzle/meta/0000_snapshot.json @@ -0,0 +1,1047 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "fa42435e-094b-4011-8542-b60cf4c6b770", + "prevId": "00000000-0000-0000-0000-000000000000", + "tables": { + "audit_pages": { + "name": "audit_pages", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "audit_id": { + "name": "audit_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status_code": { + "name": "status_code", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "redirect_url": { + "name": "redirect_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "meta_description": { + "name": "meta_description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "canonical_url": { + "name": "canonical_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "robots_meta": { + "name": "robots_meta", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "og_title": { + "name": "og_title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "og_description": { + "name": "og_description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "og_image": { + "name": "og_image", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "h1_count": { + "name": "h1_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h2_count": { + "name": "h2_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h3_count": { + "name": "h3_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h4_count": { + "name": "h4_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h5_count": { + "name": "h5_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h6_count": { + "name": "h6_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "heading_order_json": { + "name": "heading_order_json", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "word_count": { + "name": "word_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "images_total": { + "name": "images_total", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "images_missing_alt": { + "name": "images_missing_alt", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "images_json": { + "name": "images_json", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "internal_link_count": { + "name": "internal_link_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "external_link_count": { + "name": "external_link_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "has_structured_data": { + "name": "has_structured_data", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "hreflang_tags_json": { + "name": "hreflang_tags_json", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "is_indexable": { + "name": "is_indexable", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": true + }, + "response_time_ms": { + "name": "response_time_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "audit_pages_audit_id_idx": { + "name": "audit_pages_audit_id_idx", + "columns": [ + "audit_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "audit_pages_audit_id_audits_id_fk": { + "name": "audit_pages_audit_id_audits_id_fk", + "tableFrom": "audit_pages", + "tableTo": "audits", + "columnsFrom": [ + "audit_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "audit_psi_results": { + "name": "audit_psi_results", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "audit_id": { + "name": "audit_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "page_id": { + "name": "page_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "strategy": { + "name": "strategy", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "performance_score": { + "name": "performance_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "accessibility_score": { + "name": "accessibility_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "best_practices_score": { + "name": "best_practices_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "seo_score": { + "name": "seo_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "lcp_ms": { + "name": "lcp_ms", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cls": { + "name": "cls", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "inp_ms": { + "name": "inp_ms", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "ttfb_ms": { + "name": "ttfb_ms", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error_message": { + "name": "error_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "r2_key": { + "name": "r2_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "payload_size_bytes": { + "name": "payload_size_bytes", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "audit_psi_results_audit_id_idx": { + "name": "audit_psi_results_audit_id_idx", + "columns": [ + "audit_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "audit_psi_results_audit_id_audits_id_fk": { + "name": "audit_psi_results_audit_id_audits_id_fk", + "tableFrom": "audit_psi_results", + "tableTo": "audits", + "columnsFrom": [ + "audit_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "audit_psi_results_page_id_audit_pages_id_fk": { + "name": "audit_psi_results_page_id_audit_pages_id_fk", + "tableFrom": "audit_psi_results", + "tableTo": "audit_pages", + "columnsFrom": [ + "page_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "audits": { + "name": "audits", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "project_id": { + "name": "project_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "start_url": { + "name": "start_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'running'" + }, + "workflow_instance_id": { + "name": "workflow_instance_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "config": { + "name": "config", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'{}'" + }, + "pages_crawled": { + "name": "pages_crawled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "pages_total": { + "name": "pages_total", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "psi_total": { + "name": "psi_total", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "psi_completed": { + "name": "psi_completed", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "psi_failed": { + "name": "psi_failed", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "current_phase": { + "name": "current_phase", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'discovery'" + }, + "started_at": { + "name": "started_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + }, + "completed_at": { + "name": "completed_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "audits_project_id_idx": { + "name": "audits_project_id_idx", + "columns": [ + "project_id" + ], + "isUnique": false + }, + "audits_user_id_idx": { + "name": "audits_user_id_idx", + "columns": [ + "user_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "audits_project_id_projects_id_fk": { + "name": "audits_project_id_projects_id_fk", + "tableFrom": "audits", + "tableTo": "projects", + "columnsFrom": [ + "project_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "audits_user_id_users_id_fk": { + "name": "audits_user_id_users_id_fk", + "tableFrom": "audits", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "keyword_metrics": { + "name": "keyword_metrics", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "keyword": { + "name": "keyword", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "location_code": { + "name": "location_code", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "language_code": { + "name": "language_code", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'en'" + }, + "search_volume": { + "name": "search_volume", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cpc": { + "name": "cpc", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "competition": { + "name": "competition", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "keyword_difficulty": { + "name": "keyword_difficulty", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "intent": { + "name": "intent", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "monthly_searches": { + "name": "monthly_searches", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "fetched_at": { + "name": "fetched_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "projects": { + "name": "projects", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "domain": { + "name": "domain", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "pagespeed_api_key": { + "name": "pagespeed_api_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": {}, + "foreignKeys": { + "projects_user_id_users_id_fk": { + "name": "projects_user_id_users_id_fk", + "tableFrom": "projects", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "psi_audit_results": { + "name": "psi_audit_results", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "project_id": { + "name": "project_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "requested_url": { + "name": "requested_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "final_url": { + "name": "final_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "strategy": { + "name": "strategy", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'completed'" + }, + "performance_score": { + "name": "performance_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "accessibility_score": { + "name": "accessibility_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "best_practices_score": { + "name": "best_practices_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "seo_score": { + "name": "seo_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "first_contentful_paint": { + "name": "first_contentful_paint", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "largest_contentful_paint": { + "name": "largest_contentful_paint", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "total_blocking_time": { + "name": "total_blocking_time", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cumulative_layout_shift": { + "name": "cumulative_layout_shift", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "speed_index": { + "name": "speed_index", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "time_to_interactive": { + "name": "time_to_interactive", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "lighthouse_version": { + "name": "lighthouse_version", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error_message": { + "name": "error_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "r2_key": { + "name": "r2_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "payload_size_bytes": { + "name": "payload_size_bytes", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": { + "psi_audit_results_project_created_idx": { + "name": "psi_audit_results_project_created_idx", + "columns": [ + "project_id", + "created_at" + ], + "isUnique": false + }, + "psi_audit_results_project_strategy_idx": { + "name": "psi_audit_results_project_strategy_idx", + "columns": [ + "project_id", + "strategy" + ], + "isUnique": false + } + }, + "foreignKeys": { + "psi_audit_results_project_id_projects_id_fk": { + "name": "psi_audit_results_project_id_projects_id_fk", + "tableFrom": "psi_audit_results", + "tableTo": "projects", + "columnsFrom": [ + "project_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "saved_keywords": { + "name": "saved_keywords", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "project_id": { + "name": "project_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "keyword": { + "name": "keyword", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "location_code": { + "name": "location_code", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 2840 + }, + "language_code": { + "name": "language_code", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'en'" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": { + "saved_keywords_unique_project_keyword_location": { + "name": "saved_keywords_unique_project_keyword_location", + "columns": [ + "project_id", + "keyword", + "location_code" + ], + "isUnique": true + } + }, + "foreignKeys": { + "saved_keywords_project_id_projects_id_fk": { + "name": "saved_keywords_project_id_projects_id_fk", + "tableFrom": "saved_keywords", + "tableTo": "projects", + "columnsFrom": [ + "project_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "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": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": { + "users_email_unique": { + "name": "users_email_unique", + "columns": [ + "email" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/0001_snapshot.json b/drizzle/meta/0001_snapshot.json new file mode 100644 index 0000000..6bb1b85 --- /dev/null +++ b/drizzle/meta/0001_snapshot.json @@ -0,0 +1,1076 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "49763879-b240-4770-8bbd-27b6acfb18a2", + "prevId": "fa42435e-094b-4011-8542-b60cf4c6b770", + "tables": { + "audit_pages": { + "name": "audit_pages", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "audit_id": { + "name": "audit_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status_code": { + "name": "status_code", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "redirect_url": { + "name": "redirect_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "meta_description": { + "name": "meta_description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "canonical_url": { + "name": "canonical_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "robots_meta": { + "name": "robots_meta", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "og_title": { + "name": "og_title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "og_description": { + "name": "og_description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "og_image": { + "name": "og_image", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "h1_count": { + "name": "h1_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h2_count": { + "name": "h2_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h3_count": { + "name": "h3_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h4_count": { + "name": "h4_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h5_count": { + "name": "h5_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "h6_count": { + "name": "h6_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "heading_order_json": { + "name": "heading_order_json", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "word_count": { + "name": "word_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "images_total": { + "name": "images_total", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "images_missing_alt": { + "name": "images_missing_alt", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "images_json": { + "name": "images_json", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "internal_link_count": { + "name": "internal_link_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "external_link_count": { + "name": "external_link_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "has_structured_data": { + "name": "has_structured_data", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "hreflang_tags_json": { + "name": "hreflang_tags_json", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "is_indexable": { + "name": "is_indexable", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": true + }, + "response_time_ms": { + "name": "response_time_ms", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "audit_pages_audit_id_idx": { + "name": "audit_pages_audit_id_idx", + "columns": [ + "audit_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "audit_pages_audit_id_audits_id_fk": { + "name": "audit_pages_audit_id_audits_id_fk", + "tableFrom": "audit_pages", + "tableTo": "audits", + "columnsFrom": [ + "audit_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "audit_psi_results": { + "name": "audit_psi_results", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "audit_id": { + "name": "audit_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "page_id": { + "name": "page_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "strategy": { + "name": "strategy", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "performance_score": { + "name": "performance_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "accessibility_score": { + "name": "accessibility_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "best_practices_score": { + "name": "best_practices_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "seo_score": { + "name": "seo_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "lcp_ms": { + "name": "lcp_ms", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cls": { + "name": "cls", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "inp_ms": { + "name": "inp_ms", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "ttfb_ms": { + "name": "ttfb_ms", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error_message": { + "name": "error_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "r2_key": { + "name": "r2_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "payload_size_bytes": { + "name": "payload_size_bytes", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "audit_psi_results_audit_id_idx": { + "name": "audit_psi_results_audit_id_idx", + "columns": [ + "audit_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "audit_psi_results_audit_id_audits_id_fk": { + "name": "audit_psi_results_audit_id_audits_id_fk", + "tableFrom": "audit_psi_results", + "tableTo": "audits", + "columnsFrom": [ + "audit_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "audit_psi_results_page_id_audit_pages_id_fk": { + "name": "audit_psi_results_page_id_audit_pages_id_fk", + "tableFrom": "audit_psi_results", + "tableTo": "audit_pages", + "columnsFrom": [ + "page_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "audits": { + "name": "audits", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "project_id": { + "name": "project_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "start_url": { + "name": "start_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'running'" + }, + "workflow_instance_id": { + "name": "workflow_instance_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "config": { + "name": "config", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'{}'" + }, + "pages_crawled": { + "name": "pages_crawled", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "pages_total": { + "name": "pages_total", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "psi_total": { + "name": "psi_total", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "psi_completed": { + "name": "psi_completed", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "psi_failed": { + "name": "psi_failed", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 0 + }, + "current_phase": { + "name": "current_phase", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'discovery'" + }, + "started_at": { + "name": "started_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + }, + "completed_at": { + "name": "completed_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "audits_project_id_idx": { + "name": "audits_project_id_idx", + "columns": [ + "project_id" + ], + "isUnique": false + }, + "audits_user_id_idx": { + "name": "audits_user_id_idx", + "columns": [ + "user_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "audits_project_id_projects_id_fk": { + "name": "audits_project_id_projects_id_fk", + "tableFrom": "audits", + "tableTo": "projects", + "columnsFrom": [ + "project_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "audits_user_id_users_id_fk": { + "name": "audits_user_id_users_id_fk", + "tableFrom": "audits", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "keyword_metrics": { + "name": "keyword_metrics", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "keyword": { + "name": "keyword", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "location_code": { + "name": "location_code", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "language_code": { + "name": "language_code", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'en'" + }, + "search_volume": { + "name": "search_volume", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cpc": { + "name": "cpc", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "competition": { + "name": "competition", + "type": "real", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "keyword_difficulty": { + "name": "keyword_difficulty", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "intent": { + "name": "intent", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "monthly_searches": { + "name": "monthly_searches", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "fetched_at": { + "name": "fetched_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": { + "keyword_metrics_unique_keyword_location_language": { + "name": "keyword_metrics_unique_keyword_location_language", + "columns": [ + "keyword", + "location_code", + "language_code" + ], + "isUnique": true + }, + "keyword_metrics_lookup_idx": { + "name": "keyword_metrics_lookup_idx", + "columns": [ + "keyword", + "location_code", + "language_code", + "fetched_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "projects": { + "name": "projects", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "domain": { + "name": "domain", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "pagespeed_api_key": { + "name": "pagespeed_api_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": {}, + "foreignKeys": { + "projects_user_id_users_id_fk": { + "name": "projects_user_id_users_id_fk", + "tableFrom": "projects", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "psi_audit_results": { + "name": "psi_audit_results", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "project_id": { + "name": "project_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "requested_url": { + "name": "requested_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "final_url": { + "name": "final_url", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "strategy": { + "name": "strategy", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'completed'" + }, + "performance_score": { + "name": "performance_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "accessibility_score": { + "name": "accessibility_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "best_practices_score": { + "name": "best_practices_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "seo_score": { + "name": "seo_score", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "first_contentful_paint": { + "name": "first_contentful_paint", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "largest_contentful_paint": { + "name": "largest_contentful_paint", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "total_blocking_time": { + "name": "total_blocking_time", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cumulative_layout_shift": { + "name": "cumulative_layout_shift", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "speed_index": { + "name": "speed_index", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "time_to_interactive": { + "name": "time_to_interactive", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "lighthouse_version": { + "name": "lighthouse_version", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "error_message": { + "name": "error_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "r2_key": { + "name": "r2_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "payload_size_bytes": { + "name": "payload_size_bytes", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": { + "psi_audit_results_project_created_idx": { + "name": "psi_audit_results_project_created_idx", + "columns": [ + "project_id", + "created_at" + ], + "isUnique": false + }, + "psi_audit_results_project_strategy_idx": { + "name": "psi_audit_results_project_strategy_idx", + "columns": [ + "project_id", + "strategy" + ], + "isUnique": false + } + }, + "foreignKeys": { + "psi_audit_results_project_id_projects_id_fk": { + "name": "psi_audit_results_project_id_projects_id_fk", + "tableFrom": "psi_audit_results", + "tableTo": "projects", + "columnsFrom": [ + "project_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "saved_keywords": { + "name": "saved_keywords", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "project_id": { + "name": "project_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "keyword": { + "name": "keyword", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "location_code": { + "name": "location_code", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": 2840 + }, + "language_code": { + "name": "language_code", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'en'" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": { + "saved_keywords_unique_project_keyword_location_language": { + "name": "saved_keywords_unique_project_keyword_location_language", + "columns": [ + "project_id", + "keyword", + "location_code", + "language_code" + ], + "isUnique": true + }, + "saved_keywords_project_created_idx": { + "name": "saved_keywords_project_created_idx", + "columns": [ + "project_id", + "created_at" + ], + "isUnique": false + } + }, + "foreignKeys": { + "saved_keywords_project_id_projects_id_fk": { + "name": "saved_keywords_project_id_projects_id_fk", + "tableFrom": "saved_keywords", + "tableTo": "projects", + "columnsFrom": [ + "project_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "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": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(current_timestamp)" + } + }, + "indexes": { + "users_email_unique": { + "name": "users_email_unique", + "columns": [ + "email" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} \ No newline at end of file diff --git a/drizzle/meta/_journal.json b/drizzle/meta/_journal.json new file mode 100644 index 0000000..14d8080 --- /dev/null +++ b/drizzle/meta/_journal.json @@ -0,0 +1,20 @@ +{ + "version": "7", + "dialect": "sqlite", + "entries": [ + { + "idx": 0, + "version": "6", + "when": 1772065863070, + "tag": "0000_fantastic_vanisher", + "breakpoints": true + }, + { + "idx": 1, + "version": "6", + "when": 1772127913577, + "tag": "0001_round_unus", + "breakpoints": true + } + ] +} \ No newline at end of file diff --git a/every-app.jsonc b/every-app.jsonc new file mode 100644 index 0000000..af88c5b --- /dev/null +++ b/every-app.jsonc @@ -0,0 +1,5 @@ +{ + "appId": "super-seo", + "displayName": "Super Seo", + "description": "Own your SEO. Research keywords and competitors on your terms.", +} diff --git a/knip.jsonc b/knip.jsonc new file mode 100644 index 0000000..b1de158 --- /dev/null +++ b/knip.jsonc @@ -0,0 +1,46 @@ +{ + "ignoreBinaries": ["everyapp"], + "entry": [ + // Detect Tanstack Start Routes + "src/router.tsx", + "src/routes/**/*.tsx", + // Drizzle config (plugin disabled due to cloudflare:workers import issues) + "drizzle.config.ts", + // DB index re-exports schema for convenience + "src/db/index.ts", + ], + "project": ["**/*.{js,ts,tsx}", "!src/routeTree.gen.ts"], + "ignore": [ + "drizzle-prod.config.ts", + "src/client/features/keywords/utils.ts", + "src/client/hooks/useDomainSearchHistory.ts", + "src/client/hooks/useSearchHistory.ts", + "src/server.ts", + "src/server/lib/audit/progress-kv.ts", + "src/server/lib/audit/types.ts", + "src/server/lib/errors.ts", + "src/server/services/PsiIssuesService.ts", + "src/server/workflows/SiteAuditWorkflow.ts", + "src/serverFunctions/keywords.ts", + "src/serverFunctions/psi.ts", + "src/types/schemas/audit.ts", + "src/types/schemas/psi.ts", + ], + "ignoreFiles": [ + "src/server/lib/serverFnErrorBoundary.ts", + "src/server/services/keyword-research/helpers.ts", + "src/server/services/keyword-research/projects.ts", + "src/server/services/keyword-research/research-data.ts", + "src/server/services/keyword-research/saved-keywords.ts", + "src/server/services/keyword-research/serp.ts", + ], + // Disable Drizzle plugin - it tries to load drizzle.config.ts which imports cloudflare:workers + "drizzle": false, + "ignoreDependencies": [ + // Tailwindcss used via @tailwindcss/vite plugin + "tailwindcss", + "daisyui", + "@tanstack/query-sync-storage-persister", + "@tanstack/react-query-persist-client", + ], +} diff --git a/opencode.jsonc b/opencode.jsonc new file mode 100644 index 0000000..3f15cc0 --- /dev/null +++ b/opencode.jsonc @@ -0,0 +1,13 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "context7": { + "type": "local", + "command": ["npx", "-y", "@upstash/context7-mcp"], + }, + "every-app": { + "type": "local", + "command": ["npx", "-y", "@every-app/mcp"], + }, + }, +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..eacfea7 --- /dev/null +++ b/package.json @@ -0,0 +1,73 @@ +{ + "name": "super-seo", + "private": true, + "sideEffects": false, + "type": "module", + "scripts": { + "dev": "vite dev", + "dev:agents": "BYPASS_GATEWAY_LOCAL_ONLY=true vite dev 2>&1 | tee .logs/dev-server.log", + "build": "vite build && tsc --noEmit", + "lint": "oxlint .", + "lint:fix": "oxlint . --fix", + "preview": "npm run build && vite preview --port 3001", + "deploy": "npm run db:migrate:prod && npm run build && wrangler deploy", + "cf-typegen": "wrangler types", + "types:check": "tsc --noEmit", + "format:check": "prettier --check .", + "format:write": "prettier . --write", + "db:generate": "drizzle-kit generate", + "db:migrate:local": "drizzle-kit migrate", + "db:migrate:prod": "npx everyapp app remote-d1-shell -- drizzle-kit migrate --config=drizzle-prod.config.ts", + "db:studio:local": "drizzle-kit studio", + "db:studio:prod": "npx everyapp app remote-d1-shell -- drizzle-kit studio --config=drizzle-prod.config.ts", + "knip": "knip", + "ci": "prettier --check . && knip && tsc --noEmit && oxlint ." + }, + "dependencies": { + "@every-app/sdk": "^0.1.12", + "@tanstack/query-core": "^5.90.9", + "@tanstack/query-sync-storage-persister": "^5.90.14", + "@tanstack/react-form": "^1.25.0", + "@tanstack/react-query": "^5.90.9", + "@tanstack/react-query-persist-client": "^5.90.14", + "@tanstack/react-router": "^1.136.3", + "@tanstack/react-router-devtools": "^1.136.3", + "@tanstack/react-start": "^1.136.3", + "cheerio": "^1.2.0", + "cloudflare": "^5.2.0", + "daisyui": "^5.5.5", + "dataforseo-client": "^2.0.19", + "drizzle-orm": "^0.44.4", + "fast-xml-parser": "^5.4.1", + "jose": "^6.0.12", + "lucide-react": "^0.542.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", + "recharts": "^3.7.0", + "remeda": "^2.33.6", + "robots-parser": "^3.0.1", + "sonner": "^2.0.7", + "tailwindcss": "^4.1.16", + "zod": "^4.1.12" + }, + "devDependencies": { + "@cloudflare/vite-plugin": "^1.13.18", + "@cloudflare/workers-types": "^4.20251014.0", + "@libsql/client": "^0.15.15", + "@tailwindcss/vite": "^4.1.11", + "@tanstack/devtools-vite": "^0.5.1", + "@tanstack/react-devtools": "^0.9.6", + "@types/node": "^22.18.13", + "@types/react": "^19.0.8", + "@types/react-dom": "^19.0.3", + "@vitejs/plugin-react": "^4.6.0", + "drizzle-kit": "^0.31.4", + "knip": "^5.66.4", + "oxlint": "^1.50.0", + "prettier": "^3.6.2", + "typescript": "^5.9.3", + "vite": "^7.1.2", + "vite-tsconfig-paths": "^5.1.4", + "wrangler": "^4.45.3" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..3117a25 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,5581 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@every-app/sdk': + specifier: ^0.1.12 + version: 0.1.12(@tanstack/react-router@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(@tanstack/react-start@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)))(jose@6.1.3)(react@19.2.4) + '@tanstack/query-core': + specifier: ^5.90.9 + version: 5.90.20 + '@tanstack/query-sync-storage-persister': + specifier: ^5.90.14 + version: 5.90.22 + '@tanstack/react-form': + specifier: ^1.25.0 + version: 1.28.3(@tanstack/react-start@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)))(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/react-query': + specifier: ^5.90.9 + version: 5.90.21(react@19.2.4) + '@tanstack/react-query-persist-client': + specifier: ^5.90.14 + version: 5.90.22(@tanstack/react-query@5.90.21(react@19.2.4))(react@19.2.4) + '@tanstack/react-router': + specifier: ^1.136.3 + version: 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/react-router-devtools': + specifier: ^1.136.3 + version: 1.162.4(@tanstack/react-router@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(@tanstack/router-core@1.162.2)(csstype@3.2.3)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/react-start': + specifier: ^1.136.3 + version: 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + cheerio: + specifier: ^1.2.0 + version: 1.2.0 + cloudflare: + specifier: ^5.2.0 + version: 5.2.0 + daisyui: + specifier: ^5.5.5 + version: 5.5.19 + dataforseo-client: + specifier: ^2.0.19 + version: 2.0.19 + drizzle-orm: + specifier: ^0.44.4 + version: 0.44.7(@cloudflare/workers-types@4.20260302.0)(@libsql/client@0.15.15) + fast-xml-parser: + specifier: ^5.4.1 + version: 5.4.1 + jose: + specifier: ^6.0.12 + version: 6.1.3 + lucide-react: + specifier: ^0.542.0 + version: 0.542.0(react@19.2.4) + react: + specifier: ^19.0.0 + version: 19.2.4 + react-dom: + specifier: ^19.0.0 + version: 19.2.4(react@19.2.4) + recharts: + specifier: ^3.7.0 + version: 3.7.0(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react-is@19.2.4)(react@19.2.4)(redux@5.0.1) + remeda: + specifier: ^2.33.6 + version: 2.33.6 + robots-parser: + specifier: ^3.0.1 + version: 3.0.1 + sonner: + specifier: ^2.0.7 + version: 2.0.7(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + tailwindcss: + specifier: ^4.1.16 + version: 4.2.1 + zod: + specifier: ^4.1.12 + version: 4.3.6 + devDependencies: + '@cloudflare/vite-plugin': + specifier: ^1.13.18 + version: 1.25.2(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))(workerd@1.20260219.0)(wrangler@4.67.0(@cloudflare/workers-types@4.20260302.0)) + '@cloudflare/workers-types': + specifier: ^4.20251014.0 + version: 4.20260302.0 + '@libsql/client': + specifier: ^0.15.15 + version: 0.15.15 + '@tailwindcss/vite': + specifier: ^4.1.11 + version: 4.2.1(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + '@tanstack/devtools-vite': + specifier: ^0.5.1 + version: 0.5.1(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + '@tanstack/react-devtools': + specifier: ^0.9.6 + version: 0.9.6(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(csstype@3.2.3)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(solid-js@1.9.11) + '@types/node': + specifier: ^22.18.13 + version: 22.19.11 + '@types/react': + specifier: ^19.0.8 + version: 19.2.14 + '@types/react-dom': + specifier: ^19.0.3 + version: 19.2.3(@types/react@19.2.14) + '@vitejs/plugin-react': + specifier: ^4.6.0 + version: 4.7.0(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + drizzle-kit: + specifier: ^0.31.4 + version: 0.31.9 + knip: + specifier: ^5.66.4 + version: 5.85.0(@types/node@22.19.11)(typescript@5.9.3) + oxlint: + specifier: ^1.50.0 + version: 1.50.0 + prettier: + specifier: ^3.6.2 + version: 3.8.1 + typescript: + specifier: ^5.9.3 + version: 5.9.3 + vite: + specifier: ^7.1.2 + version: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + vite-tsconfig-paths: + specifier: ^5.1.4 + version: 5.1.4(typescript@5.9.3)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + wrangler: + specifier: ^4.45.3 + version: 4.67.0(@cloudflare/workers-types@4.20260302.0) + +packages: + + '@babel/code-frame@7.27.1': + resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} + engines: {node: '>=6.9.0'} + + '@babel/code-frame@7.29.0': + resolution: {integrity: sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.29.0': + resolution: {integrity: sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.29.0': + resolution: {integrity: sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.29.1': + resolution: {integrity: sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.28.6': + resolution: {integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-globals@7.28.0': + resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.28.6': + resolution: {integrity: sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.28.6': + resolution: {integrity: sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-plugin-utils@7.28.6': + resolution: {integrity: sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.27.1': + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.28.5': + resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.27.1': + resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.28.6': + resolution: {integrity: sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.0': + resolution: {integrity: sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/plugin-syntax-jsx@7.28.6': + resolution: {integrity: sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-typescript@7.28.6': + resolution: {integrity: sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-transform-react-jsx-self@7.27.1': + resolution: {integrity: sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-transform-react-jsx-source@7.27.1': + resolution: {integrity: sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/template@7.28.6': + resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.29.0': + resolution: {integrity: sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.29.0': + resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==} + engines: {node: '>=6.9.0'} + + '@cloudflare/kv-asset-handler@0.4.2': + resolution: {integrity: sha512-SIOD2DxrRRwQ+jgzlXCqoEFiKOFqaPjhnNTGKXSRLvp1HiOvapLaFG2kEr9dYQTYe8rKrd9uvDUzmAITeNyaHQ==} + engines: {node: '>=18.0.0'} + + '@cloudflare/unenv-preset@2.14.0': + resolution: {integrity: sha512-XKAkWhi1nBdNsSEoNG9nkcbyvfUrSjSf+VYVPfOto3gLTZVc3F4g6RASCMh6IixBKCG2yDgZKQIHGKtjcnLnKg==} + peerDependencies: + unenv: 2.0.0-rc.24 + workerd: ^1.20260218.0 + peerDependenciesMeta: + workerd: + optional: true + + '@cloudflare/vite-plugin@1.25.2': + resolution: {integrity: sha512-CU4eRPZRumFkcsfinmr8txVCvGVwYEpR5/ATk2p3/004EdFKV4rZ0XzXhLlWVD1XppQ4DAc9FLjFJK4na7QF1A==} + peerDependencies: + vite: ^6.1.0 || ^7.0.0 + wrangler: ^4.67.0 + + '@cloudflare/workerd-darwin-64@1.20260219.0': + resolution: {integrity: sha512-k+xM+swQBQnkrvwobjRPxyeYwjLSludJusR0PqeHe+h6X9QIRGgw3s1AO38lXQsqzMSgG5709oOXSF19NKVVaQ==} + engines: {node: '>=16'} + cpu: [x64] + os: [darwin] + + '@cloudflare/workerd-darwin-arm64@1.20260219.0': + resolution: {integrity: sha512-EyfQdsG1KcIVAf4qndT00LZly7sLFm1VxMWHBvOFB/EVYF2sE5HZ0dPbe+yrax5p3eS0oLZthR8ynhz4UulMUQ==} + engines: {node: '>=16'} + cpu: [arm64] + os: [darwin] + + '@cloudflare/workerd-linux-64@1.20260219.0': + resolution: {integrity: sha512-N0UHXILYYa6htFO/uC92uAqusvynbSbOcHcrVXMKqP9Jy7eqXGMovyKIrNgzYnKIszNB+0lfUYdGI3Wci07LuA==} + engines: {node: '>=16'} + cpu: [x64] + os: [linux] + + '@cloudflare/workerd-linux-arm64@1.20260219.0': + resolution: {integrity: sha512-835pjQ9uuAtwPBOAkPf+oxH3mNE5mqWuE3H7hJsul7WZsRD2FDcariyoT2AW6xyOePILrn4uMnmG1KGc9m/8Pg==} + engines: {node: '>=16'} + cpu: [arm64] + os: [linux] + + '@cloudflare/workerd-windows-64@1.20260219.0': + resolution: {integrity: sha512-i7qcuOsuAxqqn1n5Ar3Rh1dHUL9vNmpF9FcdMTT84jIrdm5UNrPZz5grJthPmpB9LTcreT9iiP6qKbzGjnCwPA==} + engines: {node: '>=16'} + cpu: [x64] + os: [win32] + + '@cloudflare/workers-types@4.20260302.0': + resolution: {integrity: sha512-mbFRnlu1lNCScMpXZk/X/uBPufYx5OSbq+euGonGRcY+DgOwm2kczGdK401rUh52NB0fFMEcOy/zqwxv7CdDNA==} + + '@cspotcode/source-map-support@0.8.1': + resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} + engines: {node: '>=12'} + + '@drizzle-team/brocli@0.10.2': + resolution: {integrity: sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==} + + '@emnapi/core@1.8.1': + resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==} + + '@emnapi/runtime@1.8.1': + resolution: {integrity: sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==} + + '@emnapi/wasi-threads@1.1.0': + resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==} + + '@esbuild-kit/core-utils@3.3.2': + resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==} + deprecated: 'Merged into tsx: https://tsx.is' + + '@esbuild-kit/esm-loader@2.6.5': + resolution: {integrity: sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==} + deprecated: 'Merged into tsx: https://tsx.is' + + '@esbuild/aix-ppc64@0.25.12': + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/aix-ppc64@0.27.3': + resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.18.20': + resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm64@0.25.12': + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm64@0.27.3': + resolution: {integrity: sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.18.20': + resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + + '@esbuild/android-arm@0.25.12': + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-arm@0.27.3': + resolution: {integrity: sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.18.20': + resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + + '@esbuild/android-x64@0.25.12': + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/android-x64@0.27.3': + resolution: {integrity: sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.18.20': + resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-arm64@0.25.12': + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-arm64@0.27.3': + resolution: {integrity: sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.18.20': + resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.12': + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/darwin-x64@0.27.3': + resolution: {integrity: sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.18.20': + resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-arm64@0.25.12': + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-arm64@0.27.3': + resolution: {integrity: sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.18.20': + resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.12': + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.27.3': + resolution: {integrity: sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.18.20': + resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm64@0.25.12': + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm64@0.27.3': + resolution: {integrity: sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.18.20': + resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-arm@0.25.12': + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-arm@0.27.3': + resolution: {integrity: sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.18.20': + resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-ia32@0.25.12': + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-ia32@0.27.3': + resolution: {integrity: sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.18.20': + resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-loong64@0.25.12': + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-loong64@0.27.3': + resolution: {integrity: sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.18.20': + resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-mips64el@0.25.12': + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-mips64el@0.27.3': + resolution: {integrity: sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.18.20': + resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-ppc64@0.25.12': + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-ppc64@0.27.3': + resolution: {integrity: sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.18.20': + resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.12': + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-riscv64@0.27.3': + resolution: {integrity: sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.18.20': + resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-s390x@0.25.12': + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-s390x@0.27.3': + resolution: {integrity: sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.18.20': + resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + + '@esbuild/linux-x64@0.25.12': + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/linux-x64@0.27.3': + resolution: {integrity: sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.12': + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-arm64@0.27.3': + resolution: {integrity: sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.18.20': + resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.12': + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.27.3': + resolution: {integrity: sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.12': + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-arm64@0.27.3': + resolution: {integrity: sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.18.20': + resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.12': + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.27.3': + resolution: {integrity: sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.25.12': + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/openharmony-arm64@0.27.3': + resolution: {integrity: sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.18.20': + resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + + '@esbuild/sunos-x64@0.25.12': + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/sunos-x64@0.27.3': + resolution: {integrity: sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.18.20': + resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-arm64@0.25.12': + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-arm64@0.27.3': + resolution: {integrity: sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.18.20': + resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-ia32@0.25.12': + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-ia32@0.27.3': + resolution: {integrity: sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.18.20': + resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + + '@esbuild/win32-x64@0.25.12': + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@esbuild/win32-x64@0.27.3': + resolution: {integrity: sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@every-app/sdk@0.1.12': + resolution: {integrity: sha512-SmNFEEAskoiPKnqCDZrUKW3XIvHHRDlswbaYCP/2ZVPrK++rJBjlb0erGRxpOBSx70avg9KTDOvGaptfIgZF2g==} + peerDependencies: + '@tanstack/react-router': ^1.0.0 + '@tanstack/react-start': ^1.0.0 + jose: ^6.0.0 + react: ^18.0.0 || ^19.0.0 + + '@img/colour@1.0.0': + resolution: {integrity: sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==} + engines: {node: '>=18'} + + '@img/sharp-darwin-arm64@0.34.5': + resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [darwin] + + '@img/sharp-darwin-x64@0.34.5': + resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-darwin-arm64@1.2.4': + resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} + cpu: [arm64] + os: [darwin] + + '@img/sharp-libvips-darwin-x64@1.2.4': + resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==} + cpu: [x64] + os: [darwin] + + '@img/sharp-libvips-linux-arm64@1.2.4': + resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-arm@1.2.4': + resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-ppc64@1.2.4': + resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-riscv64@1.2.4': + resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-s390x@1.2.4': + resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linux-x64@1.2.4': + resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': + resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@img/sharp-libvips-linuxmusl-x64@1.2.4': + resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@img/sharp-linux-arm64@0.34.5': + resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-arm@0.34.5': + resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-ppc64@0.34.5': + resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-riscv64@0.34.5': + resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-s390x@0.34.5': + resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@img/sharp-linux-x64@0.34.5': + resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@img/sharp-linuxmusl-arm64@0.34.5': + resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@img/sharp-linuxmusl-x64@0.34.5': + resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@img/sharp-wasm32@0.34.5': + resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [wasm32] + + '@img/sharp-win32-arm64@0.34.5': + resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [arm64] + os: [win32] + + '@img/sharp-win32-ia32@0.34.5': + resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ia32] + os: [win32] + + '@img/sharp-win32-x64@0.34.5': + resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [x64] + os: [win32] + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@jridgewell/trace-mapping@0.3.9': + resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} + + '@libsql/client@0.15.15': + resolution: {integrity: sha512-twC0hQxPNHPKfeOv3sNT6u2pturQjLcI+CnpTM0SjRpocEGgfiZ7DWKXLNnsothjyJmDqEsBQJ5ztq9Wlu470w==} + + '@libsql/core@0.15.15': + resolution: {integrity: sha512-C88Z6UKl+OyuKKPwz224riz02ih/zHYI3Ho/LAcVOgjsunIRZoBw7fjRfaH9oPMmSNeQfhGklSG2il1URoOIsA==} + + '@libsql/darwin-arm64@0.5.22': + resolution: {integrity: sha512-4B8ZlX3nIDPndfct7GNe0nI3Yw6ibocEicWdC4fvQbSs/jdq/RC2oCsoJxJ4NzXkvktX70C1J4FcmmoBy069UA==} + cpu: [arm64] + os: [darwin] + + '@libsql/darwin-x64@0.5.22': + resolution: {integrity: sha512-ny2HYWt6lFSIdNFzUFIJ04uiW6finXfMNJ7wypkAD8Pqdm6nAByO+Fdqu8t7sD0sqJGeUCiOg480icjyQ2/8VA==} + cpu: [x64] + os: [darwin] + + '@libsql/hrana-client@0.7.0': + resolution: {integrity: sha512-OF8fFQSkbL7vJY9rfuegK1R7sPgQ6kFMkDamiEccNUvieQ+3urzfDFI616oPl8V7T9zRmnTkSjMOImYCAVRVuw==} + + '@libsql/isomorphic-fetch@0.3.1': + resolution: {integrity: sha512-6kK3SUK5Uu56zPq/Las620n5aS9xJq+jMBcNSOmjhNf/MUvdyji4vrMTqD7ptY7/4/CAVEAYDeotUz60LNQHtw==} + engines: {node: '>=18.0.0'} + + '@libsql/isomorphic-ws@0.1.5': + resolution: {integrity: sha512-DtLWIH29onUYR00i0GlQ3UdcTRC6EP4u9w/h9LxpUZJWRMARk6dQwZ6Jkd+QdwVpuAOrdxt18v0K2uIYR3fwFg==} + + '@libsql/linux-arm-gnueabihf@0.5.22': + resolution: {integrity: sha512-3Uo3SoDPJe/zBnyZKosziRGtszXaEtv57raWrZIahtQDsjxBVjuzYQinCm9LRCJCUT5t2r5Z5nLDPJi2CwZVoA==} + cpu: [arm] + os: [linux] + + '@libsql/linux-arm-musleabihf@0.5.22': + resolution: {integrity: sha512-LCsXh07jvSojTNJptT9CowOzwITznD+YFGGW+1XxUr7fS+7/ydUrpDfsMX7UqTqjm7xG17eq86VkWJgHJfvpNg==} + cpu: [arm] + os: [linux] + + '@libsql/linux-arm64-gnu@0.5.22': + resolution: {integrity: sha512-KSdnOMy88c9mpOFKUEzPskSaF3VLflfSUCBwas/pn1/sV3pEhtMF6H8VUCd2rsedwoukeeCSEONqX7LLnQwRMA==} + cpu: [arm64] + os: [linux] + + '@libsql/linux-arm64-musl@0.5.22': + resolution: {integrity: sha512-mCHSMAsDTLK5YH//lcV3eFEgiR23Ym0U9oEvgZA0667gqRZg/2px+7LshDvErEKv2XZ8ixzw3p1IrBzLQHGSsw==} + cpu: [arm64] + os: [linux] + + '@libsql/linux-x64-gnu@0.5.22': + resolution: {integrity: sha512-kNBHaIkSg78Y4BqAdgjcR2mBilZXs4HYkAmi58J+4GRwDQZh5fIUWbnQvB9f95DkWUIGVeenqLRFY2pcTmlsew==} + cpu: [x64] + os: [linux] + + '@libsql/linux-x64-musl@0.5.22': + resolution: {integrity: sha512-UZ4Xdxm4pu3pQXjvfJiyCzZop/9j/eA2JjmhMaAhe3EVLH2g11Fy4fwyUp9sT1QJYR1kpc2JLuybPM0kuXv/Tg==} + cpu: [x64] + os: [linux] + + '@libsql/win32-x64-msvc@0.5.22': + resolution: {integrity: sha512-Fj0j8RnBpo43tVZUVoNK6BV/9AtDUM5S7DF3LB4qTYg1LMSZqi3yeCneUTLJD6XomQJlZzbI4mst89yspVSAnA==} + cpu: [x64] + os: [win32] + + '@napi-rs/wasm-runtime@1.1.1': + resolution: {integrity: sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==} + + '@neon-rs/load@0.0.4': + resolution: {integrity: sha512-kTPhdZyTQxB+2wpiRcFWrDcejc4JI6tkPuS7UZCG4l6Zvc5kU/gGQ/ozvHTh1XR5tS+UlfAfGuPajjzQjCiHCw==} + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@oozcitak/dom@2.0.2': + resolution: {integrity: sha512-GjpKhkSYC3Mj4+lfwEyI1dqnsKTgwGy48ytZEhm4A/xnH/8z9M3ZVXKr/YGQi3uCLs1AEBS+x5T2JPiueEDW8w==} + engines: {node: '>=20.0'} + + '@oozcitak/infra@2.0.2': + resolution: {integrity: sha512-2g+E7hoE2dgCz/APPOEK5s3rMhJvNxSMBrP+U+j1OWsIbtSpWxxlUjq1lU8RIsFJNYv7NMlnVsCuHcUzJW+8vA==} + engines: {node: '>=20.0'} + + '@oozcitak/url@3.0.0': + resolution: {integrity: sha512-ZKfET8Ak1wsLAiLWNfFkZc/BraDccuTJKR6svTYc7sVjbR+Iu0vtXdiDMY4o6jaFl5TW2TlS7jbLl4VovtAJWQ==} + engines: {node: '>=20.0'} + + '@oozcitak/util@10.0.0': + resolution: {integrity: sha512-hAX0pT/73190NLqBPPWSdBVGtbY6VOhWYK3qqHqtXQ1gK7kS2yz4+ivsN07hpJ6I3aeMtKP6J6npsEKOAzuTLA==} + engines: {node: '>=20.0'} + + '@oxc-resolver/binding-android-arm-eabi@11.18.0': + resolution: {integrity: sha512-EhwJNzbfLwQQIeyak3n08EB3UHknMnjy1dFyL98r3xlorje2uzHOT2vkB5nB1zqtTtzT31uSot3oGZFfODbGUg==} + cpu: [arm] + os: [android] + + '@oxc-resolver/binding-android-arm64@11.18.0': + resolution: {integrity: sha512-esOPsT9S9B6vEMMp1qR9Yz5UepQXljoWRJYoyp7GV/4SYQOSTpN0+V2fTruxbMmzqLK+fjCEU2x3SVhc96LQLQ==} + cpu: [arm64] + os: [android] + + '@oxc-resolver/binding-darwin-arm64@11.18.0': + resolution: {integrity: sha512-iJknScn8fRLRhGR6VHG31bzOoyLihSDmsJHRjHwRUL0yF1MkLlvzmZ+liKl9MGl+WZkZHaOFT5T1jNlLSWTowQ==} + cpu: [arm64] + os: [darwin] + + '@oxc-resolver/binding-darwin-x64@11.18.0': + resolution: {integrity: sha512-3rMweF2GQLzkaUoWgFKy1fRtk0dpj4JDqucoZLJN9IZG+TC+RZg7QMwG5WKMvmEjzdYmOTw1L1XqZDVXF2ksaQ==} + cpu: [x64] + os: [darwin] + + '@oxc-resolver/binding-freebsd-x64@11.18.0': + resolution: {integrity: sha512-TfXsFby4QvpGwmUP66+X+XXQsycddZe9ZUUu/vHhq2XGI1EkparCSzjpYW1Nz5fFncbI5oLymQLln/qR+qxyOw==} + cpu: [x64] + os: [freebsd] + + '@oxc-resolver/binding-linux-arm-gnueabihf@11.18.0': + resolution: {integrity: sha512-WolOILquy9DJsHcfFMHeA5EjTCI9A7JoERFJru4UI2zKZcnfNPo5GApzYwiloscEp/s+fALPmyRntswUns0qHg==} + cpu: [arm] + os: [linux] + + '@oxc-resolver/binding-linux-arm-musleabihf@11.18.0': + resolution: {integrity: sha512-r+5nHJyPdiBqOGTYAFyuq5RtuAQbm4y69GYWNG/uup9Cqr7RG9Ak0YZgGEbkQsc+XBs00ougu/D1+w3UAYIWHA==} + cpu: [arm] + os: [linux] + + '@oxc-resolver/binding-linux-arm64-gnu@11.18.0': + resolution: {integrity: sha512-bUzg6QxljqMLLwsxYajAQEHW1LYRLdKOg/aykt14PSqUUOmfnOJjPdSLTiHIZCluVzPCQxv1LjoyRcoTAXfQaQ==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxc-resolver/binding-linux-arm64-musl@11.18.0': + resolution: {integrity: sha512-l43GVwls5+YR8WXOIez5x7Pp/MfhdkMOZOOjFUSWC/9qMnSLX1kd95j9oxDrkWdD321JdHTyd4eau5KQPxZM9w==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxc-resolver/binding-linux-ppc64-gnu@11.18.0': + resolution: {integrity: sha512-ayj7TweYWi/azxWmRpUZGz41kKNvfkXam20UrFhaQDrSNGNqefQRODxhJn0iv6jt4qChh7TUxDIoavR6ftRsjw==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxc-resolver/binding-linux-riscv64-gnu@11.18.0': + resolution: {integrity: sha512-2Jz7jpq6BBNlBBup3usZB6sZWEZOBbjWn++/bKC2lpAT+sTEwdTonnf3rNcb+XY7+v53jYB9pM8LEKVXZfr8BA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxc-resolver/binding-linux-riscv64-musl@11.18.0': + resolution: {integrity: sha512-omw8/ISOc6ubR247iEMma4/JRfbY2I+nGJC59oKBhCIEZoyqEg/NmDSBc4ToMH+AsZDucqQUDOCku3k7pBiEag==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxc-resolver/binding-linux-s390x-gnu@11.18.0': + resolution: {integrity: sha512-uFipBXaS+honSL5r5G/rlvVrkffUjpKwD3S/aIiwp64bylK3+RztgV+mM1blk+OT5gBRG864auhH6jCfrOo3ZA==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxc-resolver/binding-linux-x64-gnu@11.18.0': + resolution: {integrity: sha512-bY4uMIoKRv8Ine3UiKLFPWRZ+fPCDamTHZFf5pNOjlfmTJIANtJo0mzWDUdFZLYhVgQdegrDL9etZbTMR8qieg==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxc-resolver/binding-linux-x64-musl@11.18.0': + resolution: {integrity: sha512-40IicL/aitfNOWur06x7Do41WcqFJ9VUNAciFjZCXzF6wR2i6uVsi6N19ecqgSRoLYFCAoRYi9F50QteIxCwKQ==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxc-resolver/binding-openharmony-arm64@11.18.0': + resolution: {integrity: sha512-DJIzYjUnSJtz4Trs/J9TnzivtPcUKn9AeL3YjHlM5+RvK27ZL9xISs3gg2VAo2nWU7ThuadC1jSYkWaZyONMwg==} + cpu: [arm64] + os: [openharmony] + + '@oxc-resolver/binding-wasm32-wasi@11.18.0': + resolution: {integrity: sha512-57+R8Ioqc8g9k80WovoupOoyIOfLEceHTizkUcwOXspXLhiZ67ScM7Q8OuvhDoRRSZzH6yI0qML3WZwMFR3s7g==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + + '@oxc-resolver/binding-win32-arm64-msvc@11.18.0': + resolution: {integrity: sha512-t9Oa4BPptJqVlHTT1cV1frs+LY/vjsKhHI6ltj2EwoGM1TykJ0WW43UlQaU4SC8N+oTY8JRbAywVMNkfqjSu9w==} + cpu: [arm64] + os: [win32] + + '@oxc-resolver/binding-win32-ia32-msvc@11.18.0': + resolution: {integrity: sha512-4maf/f6ea5IEtIXqGwSw38srRtVHTre9iKShG4gjzat7c3Iq6B1OppXMj8gNmTuM4n8Xh1hQM9z2hBELccJr1g==} + cpu: [ia32] + os: [win32] + + '@oxc-resolver/binding-win32-x64-msvc@11.18.0': + resolution: {integrity: sha512-EhW8Su3AEACSw5HfzKMmyCtV0oArNrVViPdeOfvVYL9TrkL+/4c8fWHFTBtxUMUyCjhSG5xYNdwty1D/TAgL0Q==} + cpu: [x64] + os: [win32] + + '@oxlint/binding-android-arm-eabi@1.50.0': + resolution: {integrity: sha512-G7MRGk/6NCe+L8ntonRdZP7IkBfEpiZ/he3buLK6JkLgMHgJShXZ+BeOwADmspXez7U7F7L1Anf4xLSkLHiGTg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxlint/binding-android-arm64@1.50.0': + resolution: {integrity: sha512-GeSuMoJWCVpovJi/e3xDSNgjeR8WEZ6MCXL6EtPiCIM2NTzv7LbflARINTXTJy2oFBYyvdf/l2PwHzYo6EdXvg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxlint/binding-darwin-arm64@1.50.0': + resolution: {integrity: sha512-w3SY5YtxGnxCHPJ8Twl3KmS9oja1gERYk3AMoZ7Hv8P43ZtB6HVfs02TxvarxfL214Tm3uzvc2vn+DhtUNeKnw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxlint/binding-darwin-x64@1.50.0': + resolution: {integrity: sha512-hNfogDqy7tvmllXKBSlHo6k5x7dhTUVOHbMSE15CCAcXzmqf5883aPvBYPOq9AE7DpDUQUZ1kVE22YbiGW+tuw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxlint/binding-freebsd-x64@1.50.0': + resolution: {integrity: sha512-ykZevOWEyu0nsxolA911ucxpEv0ahw8jfEeGWOwwb/VPoE4xoexuTOAiPNlWZNJqANlJl7yp8OyzCtXTUAxotw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxlint/binding-linux-arm-gnueabihf@1.50.0': + resolution: {integrity: sha512-hif3iDk7vo5GGJ4OLCCZAf2vjnU9FztGw4L0MbQL0M2iY9LKFtDMMiQAHmkF0PQGQMVbTYtPdXCLKVgdkiqWXQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm-musleabihf@1.50.0': + resolution: {integrity: sha512-dVp9iSssiGAnTNey2Ruf6xUaQhdnvcFOJyRWd/mu5o2jVbFK15E5fbWGeFRfmuobu5QXuROtFga44+7DOS3PLg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm64-gnu@1.50.0': + resolution: {integrity: sha512-1cT7yz2HA910CKA9NkH1ZJo50vTtmND2fkoW1oyiSb0j6WvNtJ0Wx2zoySfXWc/c+7HFoqRK5AbEoL41LOn9oA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-arm64-musl@1.50.0': + resolution: {integrity: sha512-++B3k/HEPFVlj89cOz8kWfQccMZB/aWL9AhsW7jPIkG++63Mpwb2cE9XOEsd0PATbIan78k2Gky+09uWM1d/gQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-ppc64-gnu@1.50.0': + resolution: {integrity: sha512-Z9b/KpFMkx66w3gVBqjIC1AJBTZAGoI9+U+K5L4QM0CB/G0JSNC1es9b3Y0Vcrlvtdn8A+IQTkYjd/Q0uCSaZw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-gnu@1.50.0': + resolution: {integrity: sha512-jvmuIw8wRSohsQlFNIST5uUwkEtEJmOQYr33bf/K2FrFPXHhM4KqGekI3ShYJemFS/gARVacQFgBzzJKCAyJjg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-musl@1.50.0': + resolution: {integrity: sha512-x+UrN47oYNh90nmAAyql8eQaaRpHbDPu5guasDg10+OpszUQ3/1+1J6zFMmV4xfIEgTcUXG/oI5fxJhF4eWCNA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-s390x-gnu@1.50.0': + resolution: {integrity: sha512-i/JLi2ljLUIVfekMj4ISmdt+Hn11wzYUdRRrkVUYsCWw7zAy5xV7X9iA+KMyM156LTFympa7s3oKBjuCLoTAUQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-gnu@1.50.0': + resolution: {integrity: sha512-/C7brhn6c6UUPccgSPCcpLQXcp+xKIW/3sji/5VZ8/OItL3tQ2U7KalHz887UxxSQeEOmd1kY6lrpuwFnmNqOA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-musl@1.50.0': + resolution: {integrity: sha512-oDR1f+bGOYU8LfgtEW8XtotWGB63ghtcxk5Jm6IDTCk++rTA/IRMsjOid2iMd+1bW+nP9Mdsmcdc7VbPD3+iyQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxlint/binding-openharmony-arm64@1.50.0': + resolution: {integrity: sha512-4CmRGPp5UpvXyu4jjP9Tey/SrXDQLRvZXm4pb4vdZBxAzbFZkCyh0KyRy4txld/kZKTJlW4TO8N1JKrNEk+mWw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxlint/binding-win32-arm64-msvc@1.50.0': + resolution: {integrity: sha512-Fq0M6vsGcFsSfeuWAACDhd5KJrO85ckbEfe1EGuBj+KPyJz7KeWte2fSFrFGmNKNXyhEMyx4tbgxiWRujBM2KQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxlint/binding-win32-ia32-msvc@1.50.0': + resolution: {integrity: sha512-qTdWR9KwY/vxJGhHVIZG2eBOhidOQvOwzDxnX+jhW/zIVacal1nAhR8GLkiywW8BIFDkQKXo/zOfT+/DY+ns/w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxlint/binding-win32-x64-msvc@1.50.0': + resolution: {integrity: sha512-682t7npLC4G2Ca+iNlI9fhAKTcFPYYXJjwoa88H4q+u5HHHlsnL/gHULapX3iqp+A8FIJbgdylL5KMYo2LaluQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@poppinss/colors@4.1.6': + resolution: {integrity: sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==} + + '@poppinss/dumper@0.6.5': + resolution: {integrity: sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==} + + '@poppinss/exception@1.2.3': + resolution: {integrity: sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==} + + '@reduxjs/toolkit@2.11.2': + resolution: {integrity: sha512-Kd6kAHTA6/nUpp8mySPqj3en3dm0tdMIgbttnQ1xFMVpufoj+ADi8pXLBsd4xzTRHQa7t/Jv8W5UnCuW4kuWMQ==} + peerDependencies: + react: ^16.9.0 || ^17.0.0 || ^18 || ^19 + react-redux: ^7.2.1 || ^8.1.3 || ^9.0.0 + peerDependenciesMeta: + react: + optional: true + react-redux: + optional: true + + '@rolldown/pluginutils@1.0.0-beta.27': + resolution: {integrity: sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==} + + '@rolldown/pluginutils@1.0.0-beta.40': + resolution: {integrity: sha512-s3GeJKSQOwBlzdUrj4ISjJj5SfSh+aqn0wjOar4Bx95iV1ETI7F6S/5hLcfAxZ9kXDcyrAkxPlqmd1ZITttf+w==} + + '@rollup/rollup-android-arm-eabi@4.59.0': + resolution: {integrity: sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.59.0': + resolution: {integrity: sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.59.0': + resolution: {integrity: sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.59.0': + resolution: {integrity: sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.59.0': + resolution: {integrity: sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.59.0': + resolution: {integrity: sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.59.0': + resolution: {integrity: sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm-musleabihf@4.59.0': + resolution: {integrity: sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-arm64-gnu@4.59.0': + resolution: {integrity: sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm64-musl@4.59.0': + resolution: {integrity: sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-loong64-gnu@4.59.0': + resolution: {integrity: sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-loong64-musl@4.59.0': + resolution: {integrity: sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==} + cpu: [loong64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-ppc64-gnu@4.59.0': + resolution: {integrity: sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-ppc64-musl@4.59.0': + resolution: {integrity: sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==} + cpu: [ppc64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-riscv64-gnu@4.59.0': + resolution: {integrity: sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-musl@4.59.0': + resolution: {integrity: sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-s390x-gnu@4.59.0': + resolution: {integrity: sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-gnu@4.59.0': + resolution: {integrity: sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-musl@4.59.0': + resolution: {integrity: sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rollup/rollup-openbsd-x64@4.59.0': + resolution: {integrity: sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==} + cpu: [x64] + os: [openbsd] + + '@rollup/rollup-openharmony-arm64@4.59.0': + resolution: {integrity: sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.59.0': + resolution: {integrity: sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.59.0': + resolution: {integrity: sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.59.0': + resolution: {integrity: sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.59.0': + resolution: {integrity: sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==} + cpu: [x64] + os: [win32] + + '@sindresorhus/is@7.2.0': + resolution: {integrity: sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==} + engines: {node: '>=18'} + + '@solid-primitives/event-listener@2.4.5': + resolution: {integrity: sha512-nwRV558mIabl4yVAhZKY8cb6G+O1F0M6Z75ttTu5hk+SxdOnKSGj+eetDIu7Oax1P138ZdUU01qnBPR8rnxaEA==} + peerDependencies: + solid-js: ^1.6.12 + + '@solid-primitives/keyboard@1.3.5': + resolution: {integrity: sha512-sav+l+PL+74z3yaftVs7qd8c2SXkqzuxPOVibUe5wYMt+U5Hxp3V3XCPgBPN2I6cANjvoFtz0NiU8uHVLdi9FQ==} + peerDependencies: + solid-js: ^1.6.12 + + '@solid-primitives/resize-observer@2.1.5': + resolution: {integrity: sha512-AiyTknKcNBaKHbcSMuxtSNM8FjIuiSuFyFghdD0TcCMU9hKi9EmsC5pjfjDwxE+5EueB1a+T/34PLRI5vbBbKw==} + peerDependencies: + solid-js: ^1.6.12 + + '@solid-primitives/rootless@1.5.3': + resolution: {integrity: sha512-N8cIDAHbWcLahNRLr0knAAQvXyEdEMoAZvIMZKmhNb1mlx9e2UOv9BRD5YNwQUJwbNoYVhhLwFOEOcVXFx0HqA==} + peerDependencies: + solid-js: ^1.6.12 + + '@solid-primitives/static-store@0.1.3': + resolution: {integrity: sha512-uxez7SXnr5GiRnzqO2IEDjOJRIXaG+0LZLBizmUA1FwSi+hrpuMzVBwyk70m4prcl8X6FDDXUl9O8hSq8wHbBQ==} + peerDependencies: + solid-js: ^1.6.12 + + '@solid-primitives/utils@6.4.0': + resolution: {integrity: sha512-AeGTBg8Wtkh/0s+evyLtP8piQoS4wyqqQaAFs2HJcFMMjYAtUgo+ZPduRXLjPlqKVc2ejeR544oeqpbn8Egn8A==} + peerDependencies: + solid-js: ^1.6.12 + + '@speed-highlight/core@1.2.14': + resolution: {integrity: sha512-G4ewlBNhUtlLvrJTb88d2mdy2KRijzs4UhnlrOSRT4bmjh/IqNElZa3zkrZ+TC47TwtlDWzVLFADljF1Ijp5hA==} + + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + + '@standard-schema/utils@0.3.0': + resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==} + + '@tailwindcss/node@4.2.1': + resolution: {integrity: sha512-jlx6sLk4EOwO6hHe1oCGm1Q4AN/s0rSrTTPBGPM0/RQ6Uylwq17FuU8IeJJKEjtc6K6O07zsvP+gDO6MMWo7pg==} + + '@tailwindcss/oxide-android-arm64@4.2.1': + resolution: {integrity: sha512-eZ7G1Zm5EC8OOKaesIKuw77jw++QJ2lL9N+dDpdQiAB/c/B2wDh0QPFHbkBVrXnwNugvrbJFk1gK2SsVjwWReg==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [android] + + '@tailwindcss/oxide-darwin-arm64@4.2.1': + resolution: {integrity: sha512-q/LHkOstoJ7pI1J0q6djesLzRvQSIfEto148ppAd+BVQK0JYjQIFSK3JgYZJa+Yzi0DDa52ZsQx2rqytBnf8Hw==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [darwin] + + '@tailwindcss/oxide-darwin-x64@4.2.1': + resolution: {integrity: sha512-/f/ozlaXGY6QLbpvd/kFTro2l18f7dHKpB+ieXz+Cijl4Mt9AI2rTrpq7V+t04nK+j9XBQHnSMdeQRhbGyt6fw==} + engines: {node: '>= 20'} + cpu: [x64] + os: [darwin] + + '@tailwindcss/oxide-freebsd-x64@4.2.1': + resolution: {integrity: sha512-5e/AkgYJT/cpbkys/OU2Ei2jdETCLlifwm7ogMC7/hksI2fC3iiq6OcXwjibcIjPung0kRtR3TxEITkqgn0TcA==} + engines: {node: '>= 20'} + cpu: [x64] + os: [freebsd] + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.2.1': + resolution: {integrity: sha512-Uny1EcVTTmerCKt/1ZuKTkb0x8ZaiuYucg2/kImO5A5Y/kBz41/+j0gxUZl+hTF3xkWpDmHX+TaWhOtba2Fyuw==} + engines: {node: '>= 20'} + cpu: [arm] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-gnu@4.2.1': + resolution: {integrity: sha512-CTrwomI+c7n6aSSQlsPL0roRiNMDQ/YzMD9EjcR+H4f0I1SQ8QqIuPnsVp7QgMkC1Qi8rtkekLkOFjo7OlEFRQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-arm64-musl@4.2.1': + resolution: {integrity: sha512-WZA0CHRL/SP1TRbA5mp9htsppSEkWuQ4KsSUumYQnyl8ZdT39ntwqmz4IUHGN6p4XdSlYfJwM4rRzZLShHsGAQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-linux-x64-gnu@4.2.1': + resolution: {integrity: sha512-qMFzxI2YlBOLW5PhblzuSWlWfwLHaneBE0xHzLrBgNtqN6mWfs+qYbhryGSXQjFYB1Dzf5w+LN5qbUTPhW7Y5g==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-x64-musl@4.2.1': + resolution: {integrity: sha512-5r1X2FKnCMUPlXTWRYpHdPYUY6a1Ar/t7P24OuiEdEOmms5lyqjDRvVY1yy9Rmioh+AunQ0rWiOTPE8F9A3v5g==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-wasm32-wasi@4.2.1': + resolution: {integrity: sha512-MGFB5cVPvshR85MTJkEvqDUnuNoysrsRxd6vnk1Lf2tbiqNlXpHYZqkqOQalydienEWOHHFyyuTSYRsLfxFJ2Q==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + bundledDependencies: + - '@napi-rs/wasm-runtime' + - '@emnapi/core' + - '@emnapi/runtime' + - '@tybys/wasm-util' + - '@emnapi/wasi-threads' + - tslib + + '@tailwindcss/oxide-win32-arm64-msvc@4.2.1': + resolution: {integrity: sha512-YlUEHRHBGnCMh4Nj4GnqQyBtsshUPdiNroZj8VPkvTZSoHsilRCwXcVKnG9kyi0ZFAS/3u+qKHBdDc81SADTRA==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [win32] + + '@tailwindcss/oxide-win32-x64-msvc@4.2.1': + resolution: {integrity: sha512-rbO34G5sMWWyrN/idLeVxAZgAKWrn5LiR3/I90Q9MkA67s6T1oB0xtTe+0heoBvHSpbU9Mk7i6uwJnpo4u21XQ==} + engines: {node: '>= 20'} + cpu: [x64] + os: [win32] + + '@tailwindcss/oxide@4.2.1': + resolution: {integrity: sha512-yv9jeEFWnjKCI6/T3Oq50yQEOqmpmpfzG1hcZsAOaXFQPfzWprWrlHSdGPEF3WQTi8zu8ohC9Mh9J470nT5pUw==} + engines: {node: '>= 20'} + + '@tailwindcss/vite@4.2.1': + resolution: {integrity: sha512-TBf2sJjYeb28jD2U/OhwdW0bbOsxkWPwQ7SrqGf9sVcoYwZj7rkXljroBO9wKBut9XnmQLXanuDUeqQK0lGg/w==} + peerDependencies: + vite: ^5.2.0 || ^6 || ^7 + + '@tanstack/devtools-client@0.0.5': + resolution: {integrity: sha512-hsNDE3iu4frt9cC2ppn1mNRnLKo2uc1/1hXAyY9z4UYb+o40M2clFAhiFoo4HngjfGJDV3x18KVVIq7W4Un+zA==} + engines: {node: '>=18'} + + '@tanstack/devtools-event-bus@0.4.1': + resolution: {integrity: sha512-cNnJ89Q021Zf883rlbBTfsaxTfi2r73/qejGtyTa7ksErF3hyDyAq1aTbo5crK9dAL7zSHh9viKY1BtMls1QOA==} + engines: {node: '>=18'} + + '@tanstack/devtools-event-client@0.4.0': + resolution: {integrity: sha512-RPfGuk2bDZgcu9bAJodvO2lnZeHuz4/71HjZ0bGb/SPg8+lyTA+RLSKQvo7fSmPSi8/vcH3aKQ8EM9ywf1olaw==} + engines: {node: '>=18'} + + '@tanstack/devtools-ui@0.4.4': + resolution: {integrity: sha512-5xHXFyX3nom0UaNfiOM92o6ziaHjGo3mcSGe2HD5Xs8dWRZNpdZ0Smd0B9ddEhy0oB+gXyMzZgUJb9DmrZV0Mg==} + engines: {node: '>=18'} + peerDependencies: + solid-js: '>=1.9.7' + + '@tanstack/devtools-vite@0.5.1': + resolution: {integrity: sha512-5dXxMznSxx8NNpO9IbDC011sIdvTVvsoLaLAxm69dgDAX0+2OB8gdXrQp8dnzeNMvszKCgRxI2cgr/pjPgmnNw==} + engines: {node: '>=18'} + peerDependencies: + vite: ^6.0.0 || ^7.0.0 + + '@tanstack/devtools@0.10.7': + resolution: {integrity: sha512-ScwnFjJTMRUd6miQax7sEhq9winalQIVhm0MTX3YfjoGjMzB/jzjzYlLOraen8hcxMHH9CifTjio8ZVdqSRBRg==} + engines: {node: '>=18'} + peerDependencies: + solid-js: '>=1.9.7' + + '@tanstack/form-core@1.28.3': + resolution: {integrity: sha512-DBhnu1d5VfACAYOAZJO8tsEUHjWczZMJY8v/YrtAJNWpwvL/3ogDuz8e6yUB2m/iVTNq6K8yrnVN2nrX0/BX/w==} + + '@tanstack/history@1.161.4': + resolution: {integrity: sha512-Kp/WSt411ZWYvgXy6uiv5RmhHrz9cAml05AQPrtdAp7eUqvIDbMGPnML25OKbzR3RJ1q4wgENxDTvlGPa9+Mww==} + engines: {node: '>=20.19'} + + '@tanstack/pacer-lite@0.1.1': + resolution: {integrity: sha512-y/xtNPNt/YeyoVxE/JCx+T7yjEzpezmbb+toK8DDD1P4m7Kzs5YR956+7OKexG3f8aXgC3rLZl7b1V+yNUSy5w==} + engines: {node: '>=18'} + + '@tanstack/query-core@5.90.20': + resolution: {integrity: sha512-OMD2HLpNouXEfZJWcKeVKUgQ5n+n3A2JFmBaScpNDUqSrQSjiveC7dKMe53uJUg1nDG16ttFPz2xfilz6i2uVg==} + + '@tanstack/query-persist-client-core@5.91.19': + resolution: {integrity: sha512-whrASqbVq8261Ue+/ZzpHsrLDYVfRaENs4HTdLuYKxawkGWzdMfV7BmOdWl8ZF0mEBEbrQR8V6oE3R635JF2Fw==} + + '@tanstack/query-sync-storage-persister@5.90.22': + resolution: {integrity: sha512-QoOHewbI9a/7hezbVXlZOOCkF4oTnOpAGNMYiObUZm+jpEoLF5YqGMg0iDv3laSEymz81Zw8HJ8UFxP7mwEmqw==} + + '@tanstack/react-devtools@0.9.6': + resolution: {integrity: sha512-4wnhqQ1o5PnmEDV8L3yLWaE2ZWD2xjdUw1X8Uv5NK9Ekrz/Qr6iuYl+X4Kq9+Ix2luVGMqd3toFvEwkr3uMFBw==} + engines: {node: '>=18'} + peerDependencies: + '@types/react': '>=16.8' + '@types/react-dom': '>=16.8' + react: '>=16.8' + react-dom: '>=16.8' + + '@tanstack/react-form@1.28.3': + resolution: {integrity: sha512-84yd0swZRcyC3Q46dYBH6bHf1tlIY1flchbdG3VwArg/wLVW5RdBenIrJhleHjk2OxXuF+9HoKQbHglJyWIXQA==} + peerDependencies: + '@tanstack/react-start': '*' + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + '@tanstack/react-start': + optional: true + + '@tanstack/react-query-persist-client@5.90.22': + resolution: {integrity: sha512-BrD3Y/SsrSIDl+t/gpYvjvGHXd7m7oF+GIqktKE8LmTgt7bS1lYHd/CLkVxMPixTU53gHHVFfPNGmY7Hv4L/7g==} + peerDependencies: + '@tanstack/react-query': ^5.90.20 + react: ^18 || ^19 + + '@tanstack/react-query@5.90.21': + resolution: {integrity: sha512-0Lu6y5t+tvlTJMTO7oh5NSpJfpg/5D41LlThfepTixPYkJ0sE2Jj0m0f6yYqujBwIXlId87e234+MxG3D3g7kg==} + peerDependencies: + react: ^18 || ^19 + + '@tanstack/react-router-devtools@1.162.4': + resolution: {integrity: sha512-clIlN0yDjuhHbMoVZC94EZHqoUnH9yx054nAAoCVHHN7gLD/29xHTIRgPuXWmGb0cpQanddkllBto5WefI1UMg==} + engines: {node: '>=20.19'} + peerDependencies: + '@tanstack/react-router': ^1.162.4 + '@tanstack/router-core': ^1.162.2 + react: '>=18.0.0 || >=19.0.0' + react-dom: '>=18.0.0 || >=19.0.0' + peerDependenciesMeta: + '@tanstack/router-core': + optional: true + + '@tanstack/react-router@1.162.4': + resolution: {integrity: sha512-FMUMoTVZk+gFn1upTSxr7LenD3LK5Gi+pjSLf5IB2aT1uutHiFYEYWV0JunPry4Ac4OPOxMf9G0YM3Yyd8iSFw==} + engines: {node: '>=20.19'} + peerDependencies: + react: '>=18.0.0 || >=19.0.0' + react-dom: '>=18.0.0 || >=19.0.0' + + '@tanstack/react-start-client@1.162.4': + resolution: {integrity: sha512-55LI6d3YiSPLRA3kKjEdQSajOKwr3zXUd990fWXDMgYBOMnkCqYlNVgRO/Fyy4IWz7JPer2T4n8PixcFO03eoQ==} + engines: {node: '>=22.12.0'} + peerDependencies: + react: '>=18.0.0 || >=19.0.0' + react-dom: '>=18.0.0 || >=19.0.0' + + '@tanstack/react-start-server@1.162.4': + resolution: {integrity: sha512-LxdkwZUiqqeHafl+zerCr3OappzgRl/73aYrUPGcW4eZvyUvH03pXyvg7aHkLq1KtGomXHyJU2zNZ8bnTS6stg==} + engines: {node: '>=22.12.0'} + peerDependencies: + react: '>=18.0.0 || >=19.0.0' + react-dom: '>=18.0.0 || >=19.0.0' + + '@tanstack/react-start@1.162.4': + resolution: {integrity: sha512-6MKomGKndIIchTqQYB7euTKv3UfNxp2L+FXrLREq2d8oK2EEQ/HeraFC5NqsrTHdf/PLxbWtpzoljLqD6a3BMA==} + engines: {node: '>=22.12.0'} + peerDependencies: + react: '>=18.0.0 || >=19.0.0' + react-dom: '>=18.0.0 || >=19.0.0' + vite: '>=7.0.0' + + '@tanstack/react-store@0.8.1': + resolution: {integrity: sha512-XItJt+rG8c5Wn/2L/bnxys85rBpm0BfMbhb4zmPVLXAKY9POrp1xd6IbU4PKoOI+jSEGc3vntPRfLGSgXfE2Ig==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + '@tanstack/react-store@0.9.1': + resolution: {integrity: sha512-YzJLnRvy5lIEFTLWBAZmcOjK3+2AepnBv/sr6NZmiqJvq7zTQggyK99Gw8fqYdMdHPQWXjz0epFKJXC+9V2xDA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + '@tanstack/router-core@1.162.2': + resolution: {integrity: sha512-su/X6YP7LIhiy3FWkvCb5JL2LVmfupMXavvfyuPQayWb+E1NJQhYU8dbEcSGB0sNIMZeAmz0iIBSV2MVvuzQ8g==} + engines: {node: '>=20.19'} + + '@tanstack/router-devtools-core@1.162.2': + resolution: {integrity: sha512-o8LvMZlMNj28D10m+Wm9NMxObZuelCT42HablUcAaNvk/4TD7kECq55ul5xxnBQnv65gBM4og+o+yfLyV/6GxA==} + engines: {node: '>=20.19'} + peerDependencies: + '@tanstack/router-core': ^1.162.2 + csstype: ^3.0.10 + peerDependenciesMeta: + csstype: + optional: true + + '@tanstack/router-generator@1.162.2': + resolution: {integrity: sha512-XjT7OYbQNR+lqbWYNVG/7NUAbOLHAYaaRZVJXo6P+gpTE+1oJXHCZEnFzCvNh3K2DTtfVU2V+ohYHP+Cq/quQQ==} + engines: {node: '>=20.19'} + + '@tanstack/router-plugin@1.162.4': + resolution: {integrity: sha512-ZidWQxiEGFmLMoOkxO8oEv0KG0y62RQ70Xp13WSswqYwrLRVTE6dByO7u6dFLrSzfo1q3VvpLxG6qdWzF3Gu6Q==} + engines: {node: '>=20.19'} + peerDependencies: + '@rsbuild/core': '>=1.0.2' + '@tanstack/react-router': ^1.162.4 + vite: '>=5.0.0 || >=6.0.0 || >=7.0.0' + vite-plugin-solid: ^2.11.10 + webpack: '>=5.92.0' + peerDependenciesMeta: + '@rsbuild/core': + optional: true + '@tanstack/react-router': + optional: true + vite: + optional: true + vite-plugin-solid: + optional: true + webpack: + optional: true + + '@tanstack/router-utils@1.161.4': + resolution: {integrity: sha512-r8TpjyIZoqrXXaf2DDyjd44gjGBoyE+/oEaaH68yLI9ySPO1gUWmQENZ1MZnmBnpUGN24NOZxdjDLc8npK0SAw==} + engines: {node: '>=20.19'} + + '@tanstack/start-client-core@1.162.2': + resolution: {integrity: sha512-GJazwoNe4X+HLTyoDzmO5Ogve2/SofkRsWOqXSEPG2BU+3eFVUKH/Nd52819Bm9OEgBGM/WRiDGX9RbzYq3LzQ==} + engines: {node: '>=22.12.0'} + + '@tanstack/start-fn-stubs@1.161.4': + resolution: {integrity: sha512-b8s6iSQ+ny0P4lGK0n3DKaL6EI7SECG0/89svDeYieVw2+MaFOJVcQo3rU3BUvmuOcIkgkE5IhdzkmzPXH6yfA==} + engines: {node: '>=22.12.0'} + + '@tanstack/start-plugin-core@1.162.4': + resolution: {integrity: sha512-NdBClBYOK2zpQdDiRUeKOtjqM9amwP++dI5WZAtXfugUJBxJQ4N4kXtA+KzFlwdgvT+yofz2bt/Um82xSFyCkA==} + engines: {node: '>=22.12.0'} + peerDependencies: + vite: '>=7.0.0' + + '@tanstack/start-server-core@1.162.2': + resolution: {integrity: sha512-ExcWU/SbzJ7QCmRAm9joWhyPWYcnszNaW7YwThWDailT4jfIUWcTeqzwX4QRITku/rLupZl1QODbtUuZoj7p+A==} + engines: {node: '>=22.12.0'} + + '@tanstack/start-storage-context@1.162.2': + resolution: {integrity: sha512-vheKx93lRkp/ywYVBvZzfgbqHmMys5CaiprnQDdCyKIJVarvxpRIgbqQ2bvMYiidzi4sUNSjIZOwHrizuMPFCg==} + engines: {node: '>=22.12.0'} + + '@tanstack/store@0.8.1': + resolution: {integrity: sha512-PtOisLjUZPz5VyPRSCGjNOlwTvabdTBQ2K80DpVL1chGVr35WRxfeavAPdNq6pm/t7F8GhoR2qtmkkqtCEtHYw==} + + '@tanstack/store@0.9.1': + resolution: {integrity: sha512-+qcNkOy0N1qSGsP7omVCW0SDrXtaDcycPqBDE726yryiA5eTDFpjBReaYjghVJwNf1pcPMyzIwTGlYjCSQR0Fg==} + + '@tanstack/virtual-file-routes@1.161.4': + resolution: {integrity: sha512-42WoRePf8v690qG8yGRe/YOh+oHni9vUaUUfoqlS91U2scd3a5rkLtVsc6b7z60w3RogH0I00vdrC5AaeiZ18w==} + engines: {node: '>=20.19'} + + '@tybys/wasm-util@0.10.1': + resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==} + + '@types/babel__core@7.20.5': + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} + + '@types/babel__generator@7.27.0': + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} + + '@types/babel__template@7.4.4': + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} + + '@types/babel__traverse@7.28.0': + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + + '@types/d3-array@3.2.2': + resolution: {integrity: sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==} + + '@types/d3-color@3.1.3': + resolution: {integrity: sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==} + + '@types/d3-ease@3.0.2': + resolution: {integrity: sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==} + + '@types/d3-interpolate@3.0.4': + resolution: {integrity: sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==} + + '@types/d3-path@3.1.1': + resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==} + + '@types/d3-scale@4.0.9': + resolution: {integrity: sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==} + + '@types/d3-shape@3.1.8': + resolution: {integrity: sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==} + + '@types/d3-time@3.0.4': + resolution: {integrity: sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==} + + '@types/d3-timer@3.0.2': + resolution: {integrity: sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==} + + '@types/estree@1.0.8': + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + + '@types/node-fetch@2.6.13': + resolution: {integrity: sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==} + + '@types/node@18.19.130': + resolution: {integrity: sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==} + + '@types/node@22.19.11': + resolution: {integrity: sha512-BH7YwL6rA93ReqeQS1c4bsPpcfOmJasG+Fkr6Y59q83f9M1WcBRHR2vM+P9eOisYRcN3ujQoiZY8uk5W+1WL8w==} + + '@types/react-dom@19.2.3': + resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} + peerDependencies: + '@types/react': ^19.2.0 + + '@types/react@19.2.14': + resolution: {integrity: sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==} + + '@types/use-sync-external-store@0.0.6': + resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==} + + '@types/ws@8.18.1': + resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==} + + '@vitejs/plugin-react@4.7.0': + resolution: {integrity: sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 + + abort-controller@3.0.0: + resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} + engines: {node: '>=6.5'} + + acorn@8.16.0: + resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==} + engines: {node: '>=0.4.0'} + hasBin: true + + agentkeepalive@4.6.0: + resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==} + engines: {node: '>= 8.0.0'} + + ansis@4.2.0: + resolution: {integrity: sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==} + engines: {node: '>=14'} + + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + ast-types@0.16.1: + resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==} + engines: {node: '>=4'} + + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + + babel-dead-code-elimination@1.0.12: + resolution: {integrity: sha512-GERT7L2TiYcYDtYk1IpD+ASAYXjKbLTDPhBtYj7X1NuRMDTMtAx9kyBenub1Ev41lo91OHCKdmP+egTDmfQ7Ig==} + + baseline-browser-mapping@2.10.0: + resolution: {integrity: sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==} + engines: {node: '>=6.0.0'} + hasBin: true + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + + blake3-wasm@2.1.5: + resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} + + boolbase@1.0.0: + resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + browserslist@4.28.1: + resolution: {integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + caniuse-lite@1.0.30001774: + resolution: {integrity: sha512-DDdwPGz99nmIEv216hKSgLD+D4ikHQHjBC/seF98N9CPqRX4M5mSxT9eTV6oyisnJcuzxtZy4n17yKKQYmYQOA==} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + cheerio-select@2.1.0: + resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==} + + cheerio@1.2.0: + resolution: {integrity: sha512-WDrybc/gKFpTYQutKIK6UvfcuxijIZfMfXaYm8NMsPQxSYvf+13fXUJ4rztGGbJcBQ/GF55gvrZ0Bc0bj/mqvg==} + engines: {node: '>=20.18.1'} + + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + + cloudflare@5.2.0: + resolution: {integrity: sha512-dVzqDpPFYR9ApEC9e+JJshFJZXcw4HzM8W+3DHzO5oy9+8rLC53G7x6fEf9A7/gSuSCxuvndzui5qJKftfIM9A==} + + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + cookie-es@2.0.0: + resolution: {integrity: sha512-RAj4E421UYRgqokKUmotqAwuplYw15qtdXfY+hGzgCJ/MBjCVZcSoHK/kH9kocfjRjcDME7IiDWR/1WX1TM2Pg==} + + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + + css-select@5.2.2: + resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==} + + css-what@6.2.2: + resolution: {integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==} + engines: {node: '>= 6'} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + d3-array@3.2.4: + resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==} + engines: {node: '>=12'} + + d3-color@3.1.0: + resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==} + engines: {node: '>=12'} + + d3-ease@3.0.1: + resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==} + engines: {node: '>=12'} + + d3-format@3.1.2: + resolution: {integrity: sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==} + engines: {node: '>=12'} + + d3-interpolate@3.0.1: + resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==} + engines: {node: '>=12'} + + d3-path@3.1.0: + resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==} + engines: {node: '>=12'} + + d3-scale@4.0.2: + resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==} + engines: {node: '>=12'} + + d3-shape@3.2.0: + resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==} + engines: {node: '>=12'} + + d3-time-format@4.1.0: + resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==} + engines: {node: '>=12'} + + d3-time@3.1.0: + resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==} + engines: {node: '>=12'} + + d3-timer@3.0.1: + resolution: {integrity: sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==} + engines: {node: '>=12'} + + daisyui@5.5.19: + resolution: {integrity: sha512-pbFAkl1VCEh/MPCeclKL61I/MqRIFFhNU7yiXoDDRapXN4/qNCoMxeCCswyxEEhqL5eiTTfwHvucFtOE71C9sA==} + + data-uri-to-buffer@4.0.1: + resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} + engines: {node: '>= 12'} + + dataforseo-client@2.0.19: + resolution: {integrity: sha512-G1E1xI/EUxHkq1wMIZZ1eiZb7WanG1I9JKSXbIcdg7xuD8lLT0mXABrqHH+yvnjL439+GnrquD+ealzxm6uezw==} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decimal.js-light@2.5.1: + resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==} + + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + + detect-libc@2.0.2: + resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==} + engines: {node: '>=8'} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + diff@8.0.3: + resolution: {integrity: sha512-qejHi7bcSD4hQAZE0tNAawRK1ZtafHDmMTMkrrIGgSLl7hTnQHmKCeB45xAcbfTqK2zowkM3j3bHt/4b/ARbYQ==} + engines: {node: '>=0.3.1'} + + dom-serializer@2.0.0: + resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} + + domelementtype@2.3.0: + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} + + domhandler@5.0.3: + resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} + engines: {node: '>= 4'} + + domutils@3.2.2: + resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} + + drizzle-kit@0.31.9: + resolution: {integrity: sha512-GViD3IgsXn7trFyBUUHyTFBpH/FsHTxYJ66qdbVggxef4UBPHRYxQaRzYLTuekYnk9i5FIEL9pbBIwMqX/Uwrg==} + hasBin: true + + drizzle-orm@0.44.7: + resolution: {integrity: sha512-quIpnYznjU9lHshEOAYLoZ9s3jweleHlZIAWR/jX9gAWNg/JhQ1wj0KGRf7/Zm+obRrYd9GjPVJg790QY9N5AQ==} + peerDependencies: + '@aws-sdk/client-rds-data': '>=3' + '@cloudflare/workers-types': '>=4' + '@electric-sql/pglite': '>=0.2.0' + '@libsql/client': '>=0.10.0' + '@libsql/client-wasm': '>=0.10.0' + '@neondatabase/serverless': '>=0.10.0' + '@op-engineering/op-sqlite': '>=2' + '@opentelemetry/api': ^1.4.1 + '@planetscale/database': '>=1.13' + '@prisma/client': '*' + '@tidbcloud/serverless': '*' + '@types/better-sqlite3': '*' + '@types/pg': '*' + '@types/sql.js': '*' + '@upstash/redis': '>=1.34.7' + '@vercel/postgres': '>=0.8.0' + '@xata.io/client': '*' + better-sqlite3: '>=7' + bun-types: '*' + expo-sqlite: '>=14.0.0' + gel: '>=2' + knex: '*' + kysely: '*' + mysql2: '>=2' + pg: '>=8' + postgres: '>=3' + prisma: '*' + sql.js: '>=1' + sqlite3: '>=5' + peerDependenciesMeta: + '@aws-sdk/client-rds-data': + optional: true + '@cloudflare/workers-types': + optional: true + '@electric-sql/pglite': + optional: true + '@libsql/client': + optional: true + '@libsql/client-wasm': + optional: true + '@neondatabase/serverless': + optional: true + '@op-engineering/op-sqlite': + optional: true + '@opentelemetry/api': + optional: true + '@planetscale/database': + optional: true + '@prisma/client': + optional: true + '@tidbcloud/serverless': + optional: true + '@types/better-sqlite3': + optional: true + '@types/pg': + optional: true + '@types/sql.js': + optional: true + '@upstash/redis': + optional: true + '@vercel/postgres': + optional: true + '@xata.io/client': + optional: true + better-sqlite3: + optional: true + bun-types: + optional: true + expo-sqlite: + optional: true + gel: + optional: true + knex: + optional: true + kysely: + optional: true + mysql2: + optional: true + pg: + optional: true + postgres: + optional: true + prisma: + optional: true + sql.js: + optional: true + sqlite3: + optional: true + + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + + electron-to-chromium@1.5.302: + resolution: {integrity: sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg==} + + encoding-sniffer@0.2.1: + resolution: {integrity: sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==} + + enhanced-resolve@5.19.0: + resolution: {integrity: sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==} + engines: {node: '>=10.13.0'} + + entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + + entities@6.0.1: + resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} + engines: {node: '>=0.12'} + + entities@7.0.1: + resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} + engines: {node: '>=0.12'} + + error-stack-parser-es@1.0.5: + resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==} + + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-object-atoms@1.1.1: + resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} + engines: {node: '>= 0.4'} + + es-set-tostringtag@2.1.0: + resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} + engines: {node: '>= 0.4'} + + es-toolkit@1.44.0: + resolution: {integrity: sha512-6penXeZalaV88MM3cGkFZZfOoLGWshWWfdy0tWw/RlVVyhvMaWSBTOvXNeiW3e5FwdS5ePW0LGEu17zT139ktg==} + + esbuild-register@3.6.0: + resolution: {integrity: sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==} + peerDependencies: + esbuild: '>=0.12 <1' + + esbuild@0.18.20: + resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} + engines: {node: '>=12'} + hasBin: true + + esbuild@0.25.12: + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} + engines: {node: '>=18'} + hasBin: true + + esbuild@0.27.3: + resolution: {integrity: sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==} + engines: {node: '>=18'} + hasBin: true + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + event-target-shim@5.0.1: + resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} + engines: {node: '>=6'} + + eventemitter3@5.0.4: + resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==} + + exsolve@1.0.8: + resolution: {integrity: sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==} + + fast-glob@3.3.3: + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} + engines: {node: '>=8.6.0'} + + fast-xml-builder@1.0.0: + resolution: {integrity: sha512-fpZuDogrAgnyt9oDDz+5DBz0zgPdPZz6D4IR7iESxRXElrlGTRkHJ9eEt+SACRJwT0FNFrt71DFQIUFBJfX/uQ==} + + fast-xml-parser@5.4.1: + resolution: {integrity: sha512-BQ30U1mKkvXQXXkAGcuyUA/GA26oEB7NzOtsxCDtyu62sjGw5QraKFhx2Em3WQNjPw9PG6MQ9yuIIgkSDfGu5A==} + hasBin: true + + fastq@1.20.1: + resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==} + + fd-package-json@2.0.0: + resolution: {integrity: sha512-jKmm9YtsNXN789RS/0mSzOC1NUq9mkVd65vbSSVsKdjGvYXBuE4oWe2QOEoFeRmJg+lPuZxpmrfFclNhoRMneQ==} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fetch-blob@3.2.0: + resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} + engines: {node: ^12.20 || >= 14.13} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + form-data-encoder@1.7.2: + resolution: {integrity: sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==} + + form-data@4.0.5: + resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==} + engines: {node: '>= 6'} + + formatly@0.3.0: + resolution: {integrity: sha512-9XNj/o4wrRFyhSMJOvsuyMwy8aUfBaZ1VrqHVfohyXf0Sw0e+yfKG+xZaY3arGCOMdwFsqObtzVOc1gU9KiT9w==} + engines: {node: '>=18.3.0'} + hasBin: true + + formdata-node@4.4.1: + resolution: {integrity: sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==} + engines: {node: '>= 12.20'} + + formdata-polyfill@4.0.10: + resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} + engines: {node: '>=12.20.0'} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + + get-tsconfig@4.13.6: + resolution: {integrity: sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw==} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + globrex@0.1.2: + resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} + + goober@2.1.18: + resolution: {integrity: sha512-2vFqsaDVIT9Gz7N6kAL++pLpp41l3PfDuusHcjnGLfR6+huZkl6ziX+zgVC3ZxpqWhzH6pyDdGrCeDhMIvwaxw==} + peerDependencies: + csstype: ^3.0.10 + + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + h3@2.0.1-rc.14: + resolution: {integrity: sha512-163qbGmTr/9rqQRNuqMqtgXnOUAkE4KTdauiC9y0E5iG1I65kte9NyfWvZw5RTDMt6eY+DtyoNzrQ9wA2BfvGQ==} + engines: {node: '>=20.11.1'} + hasBin: true + peerDependencies: + crossws: ^0.4.1 + peerDependenciesMeta: + crossws: + optional: true + + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + + hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + + htmlparser2@10.1.0: + resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==} + + humanize-ms@1.2.1: + resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==} + + iconv-lite@0.6.3: + resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} + engines: {node: '>=0.10.0'} + + immer@10.2.0: + resolution: {integrity: sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw==} + + immer@11.1.4: + resolution: {integrity: sha512-XREFCPo6ksxVzP4E0ekD5aMdf8WMwmdNaz6vuvxgI40UaEiu6q3p8X52aU6GdyvLY3XXX/8R7JOTXStz/nBbRw==} + + internmap@2.0.3: + resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==} + engines: {node: '>=12'} + + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + isbot@5.1.35: + resolution: {integrity: sha512-waFfC72ZNfwLLuJ2iLaoVaqcNo+CAaLR7xCpAn0Y5WfGzkNHv7ZN39Vbi1y+kb+Zs46XHOX3tZNExroFUPX+Kg==} + engines: {node: '>=18'} + + jiti@2.6.1: + resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==} + hasBin: true + + jose@6.1.3: + resolution: {integrity: sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==} + + js-base64@3.7.8: + resolution: {integrity: sha512-hNngCeKxIUQiEUN3GPJOkz4wF/YvdUdbNL9hsBcMQTkKzboD7T/q3OYOuuPZLUE6dBxSGpwhk5mwuDud7JVAow==} + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + js-yaml@4.1.1: + resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} + hasBin: true + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + + knip@5.85.0: + resolution: {integrity: sha512-V2kyON+DZiYdNNdY6GALseiNCwX7dYdpz9Pv85AUn69Gk0UKCts+glOKWfe5KmaMByRjM9q17Mzj/KinTVOyxg==} + engines: {node: '>=18.18.0'} + hasBin: true + peerDependencies: + '@types/node': '>=18' + typescript: '>=5.0.4 <7' + + launch-editor@2.13.1: + resolution: {integrity: sha512-lPSddlAAluRKJ7/cjRFoXUFzaX7q/YKI7yPHuEvSJVqoXvFnJov1/Ud87Aa4zULIbA9Nja4mSPK8l0z/7eV2wA==} + + libsql@0.5.22: + resolution: {integrity: sha512-NscWthMQt7fpU8lqd7LXMvT9pi+KhhmTHAJWUB/Lj6MWa0MKFv0F2V4C6WKKpjCVZl0VwcDz4nOI3CyaT1DDiA==} + cpu: [x64, arm64, wasm32, arm] + os: [darwin, linux, win32] + + lightningcss-android-arm64@1.31.1: + resolution: {integrity: sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.31.1: + resolution: {integrity: sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.31.1: + resolution: {integrity: sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.31.1: + resolution: {integrity: sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.31.1: + resolution: {integrity: sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.31.1: + resolution: {integrity: sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.31.1: + resolution: {integrity: sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.31.1: + resolution: {integrity: sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.31.1: + resolution: {integrity: sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.31.1: + resolution: {integrity: sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.31.1: + resolution: {integrity: sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.31.1: + resolution: {integrity: sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==} + engines: {node: '>= 12.0.0'} + + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + + lucide-react@0.542.0: + resolution: {integrity: sha512-w3hD8/SQB7+lzU2r4VdFyzzOzKnUjTZIF/MQJGSSvni7Llewni4vuViRppfRAa2guOsY5k4jZyxw/i9DQHv+dw==} + peerDependencies: + react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + miniflare@4.20260219.0: + resolution: {integrity: sha512-EIb5wXbWUnnC60XU2aiFOPNd4fgTXzECkwRSOXZ1vdcY9WZaEE9rVf+h+Apw+WkOHRkp3Dr9/ZhQ5y1R+9iZ4Q==} + engines: {node: '>=18.0.0'} + hasBin: true + + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + node-domexception@1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} + deprecated: Use your platform's native DOMException instead + + node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} + engines: {node: 4.x || >=6.0.0} + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + + node-fetch@3.3.2: + resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + node-releases@2.0.27: + resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==} + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + + nth-check@2.1.1: + resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} + + oxc-resolver@11.18.0: + resolution: {integrity: sha512-Fv/b05AfhpYoCDvsog6tgsDm2yIwIeJafpMFLncNwKHRYu+Y1xQu5Q/rgUn7xBfuhNgjtPO7C0jCf7p2fLDj1g==} + + oxlint@1.50.0: + resolution: {integrity: sha512-iSJ4IZEICBma8cZX7kxIIz9PzsYLF2FaLAYN6RKu7VwRVKdu7RIgpP99bTZaGl//Yao7fsaGZLSEo5xBrI5ReQ==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + oxlint-tsgolint: '>=0.14.1' + peerDependenciesMeta: + oxlint-tsgolint: + optional: true + + parse5-htmlparser2-tree-adapter@7.1.0: + resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==} + + parse5-parser-stream@7.1.2: + resolution: {integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==} + + parse5@7.3.0: + resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} + + path-to-regexp@6.3.0: + resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + picomatch@4.0.3: + resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} + engines: {node: '>=12'} + + postcss@8.5.6: + resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + engines: {node: ^10 || ^12 || >=14} + + prettier@3.8.1: + resolution: {integrity: sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==} + engines: {node: '>=14'} + hasBin: true + + promise-limit@2.7.0: + resolution: {integrity: sha512-7nJ6v5lnJsXwGprnGXga4wx6d1POjvi5Qmf1ivTRxTjH4Z/9Czja/UCMLVmB9N93GeWOU93XaFaEt6jbuoagNw==} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + react-dom@19.2.4: + resolution: {integrity: sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==} + peerDependencies: + react: ^19.2.4 + + react-is@19.2.4: + resolution: {integrity: sha512-W+EWGn2v0ApPKgKKCy/7s7WHXkboGcsrXE+2joLyVxkbyVQfO3MUEaUQDHoSmb8TFFrSKYa9mw64WZHNHSDzYA==} + + react-redux@9.2.0: + resolution: {integrity: sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g==} + peerDependencies: + '@types/react': ^18.2.25 || ^19 + react: ^18.0 || ^19 + redux: ^5.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + redux: + optional: true + + react-refresh@0.17.0: + resolution: {integrity: sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==} + engines: {node: '>=0.10.0'} + + react@19.2.4: + resolution: {integrity: sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==} + engines: {node: '>=0.10.0'} + + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + + recast@0.23.11: + resolution: {integrity: sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==} + engines: {node: '>= 4'} + + recharts@3.7.0: + resolution: {integrity: sha512-l2VCsy3XXeraxIID9fx23eCb6iCBsxUQDnE8tWm6DFdszVAO7WVY/ChAD9wVit01y6B2PMupYiMmQwhgPHc9Ew==} + engines: {node: '>=18'} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-is: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + redux-thunk@3.1.0: + resolution: {integrity: sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==} + peerDependencies: + redux: ^5.0.0 + + redux@5.0.1: + resolution: {integrity: sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==} + + remeda@2.33.6: + resolution: {integrity: sha512-tazDGH7s75kUPGBKLvhgBEHMgW+TdDFhjUAMdQj57IoWz6HsGa5D2RX5yDUz6IIqiRRvZiaEHzCzWdTeixc/Kg==} + + reselect@5.1.1: + resolution: {integrity: sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==} + + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + + reusify@1.1.0: + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + robots-parser@3.0.1: + resolution: {integrity: sha512-s+pyvQeIKIZ0dx5iJiQk1tPLJAWln39+MI5jtM8wnyws+G5azk+dMnMX0qfbqNetKKNgcWWOdi0sfm+FbQbgdQ==} + engines: {node: '>=10.0.0'} + + rollup@4.59.0: + resolution: {integrity: sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + rou3@0.7.12: + resolution: {integrity: sha512-iFE4hLDuloSWcD7mjdCDhx2bKcIsYbtOTpfH5MHHLSKMOUyjqQXTeZVa289uuwEGEKFoE/BAPbhaU4B774nceg==} + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + scheduler@0.27.0: + resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} + + semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + + semver@7.7.4: + resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==} + engines: {node: '>=10'} + hasBin: true + + seroval-plugins@1.5.0: + resolution: {integrity: sha512-EAHqADIQondwRZIdeW2I636zgsODzoBDwb3PT/+7TLDWyw1Dy/Xv7iGUIEXXav7usHDE9HVhOU61irI3EnyyHA==} + engines: {node: '>=10'} + peerDependencies: + seroval: ^1.0 + + seroval@1.5.0: + resolution: {integrity: sha512-OE4cvmJ1uSPrKorFIH9/w/Qwuvi/IMcGbv5RKgcJ/zjA/IohDLU6SVaxFN9FwajbP7nsX0dQqMDes1whk3y+yw==} + engines: {node: '>=10'} + + sharp@0.34.5: + resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + + shell-quote@1.8.3: + resolution: {integrity: sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==} + engines: {node: '>= 0.4'} + + smol-toml@1.6.0: + resolution: {integrity: sha512-4zemZi0HvTnYwLfrpk/CF9LOd9Lt87kAt50GnqhMpyF9U3poDAP2+iukq2bZsO/ufegbYehBkqINbsWxj4l4cw==} + engines: {node: '>= 18'} + + solid-js@1.9.11: + resolution: {integrity: sha512-WEJtcc5mkh/BnHA6Yrg4whlF8g6QwpmXXRg4P2ztPmcKeHHlH4+djYecBLhSpecZY2RRECXYUwIc/C2r3yzQ4Q==} + + sonner@2.0.7: + resolution: {integrity: sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==} + peerDependencies: + react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc + react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + source-map@0.7.6: + resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} + engines: {node: '>= 12'} + + srvx@0.11.7: + resolution: {integrity: sha512-p9qj9wkv/MqG1VoJpOsqXv1QcaVcYRk7ifsC6i3TEwDXFyugdhJN4J3KzQPZq2IJJ2ZCt7ASOB++85pEK38jRw==} + engines: {node: '>=20.16.0'} + hasBin: true + + srvx@0.11.8: + resolution: {integrity: sha512-2n9t0YnAXPJjinytvxccNgs7rOA5gmE7Wowt/8Dy2dx2fDC6sBhfBpbrCvjYKALlVukPS/Uq3QwkolKNa7P/2Q==} + engines: {node: '>=20.16.0'} + hasBin: true + + strip-json-comments@5.0.3: + resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==} + engines: {node: '>=14.16'} + + strnum@2.1.2: + resolution: {integrity: sha512-l63NF9y/cLROq/yqKXSLtcMeeyOfnSQlfMSlzFt/K73oIaD8DGaQWd7Z34X9GPiKqP5rbSh84Hl4bOlLcjiSrQ==} + + supports-color@10.2.2: + resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==} + engines: {node: '>=18'} + + tailwindcss@4.2.1: + resolution: {integrity: sha512-/tBrSQ36vCleJkAOsy9kbNTgaxvGbyOamC30PRePTQe/o1MFwEKHQk4Cn7BNGaPtjp+PuUrByJehM1hgxfq4sw==} + + tapable@2.3.0: + resolution: {integrity: sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==} + engines: {node: '>=6'} + + tiny-invariant@1.3.3: + resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} + + tiny-warning@1.0.3: + resolution: {integrity: sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==} + + tinyglobby@0.2.15: + resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} + engines: {node: '>=12.0.0'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tr46@0.0.3: + resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + + tsconfck@3.1.6: + resolution: {integrity: sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w==} + engines: {node: ^18 || >=20} + hasBin: true + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + tsx@4.21.0: + resolution: {integrity: sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==} + engines: {node: '>=18.0.0'} + hasBin: true + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + + ufo@1.6.3: + resolution: {integrity: sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==} + + undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + undici@7.18.2: + resolution: {integrity: sha512-y+8YjDFzWdQlSE9N5nzKMT3g4a5UBX1HKowfdXh0uvAnTaqqwqB92Jt4UXBAeKekDs5IaDKyJFR4X1gYVCgXcw==} + engines: {node: '>=20.18.1'} + + undici@7.22.0: + resolution: {integrity: sha512-RqslV2Us5BrllB+JeiZnK4peryVTndy9Dnqq62S3yYRRTj0tFQCwEniUy2167skdGOy3vqRzEvl1Dm4sV2ReDg==} + engines: {node: '>=20.18.1'} + + unenv@2.0.0-rc.24: + resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} + + unplugin@2.3.11: + resolution: {integrity: sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww==} + engines: {node: '>=18.12.0'} + + update-browserslist-db@1.2.3: + resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + + use-sync-external-store@1.6.0: + resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + victory-vendor@37.3.6: + resolution: {integrity: sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==} + + vite-tsconfig-paths@5.1.4: + resolution: {integrity: sha512-cYj0LRuLV2c2sMqhqhGpaO3LretdtMn/BVX4cPLanIZuwwrkVl+lK84E/miEXkCHWXuq65rhNN4rXsBcOB3S4w==} + peerDependencies: + vite: '*' + peerDependenciesMeta: + vite: + optional: true + + vite@7.3.1: + resolution: {integrity: sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + jiti: '>=1.21.0' + less: ^4.0.0 + lightningcss: ^1.21.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitefu@1.1.2: + resolution: {integrity: sha512-zpKATdUbzbsycPFBN71nS2uzBUQiVnFoOrr2rvqv34S1lcAgMKKkjWleLGeiJlZ8lwCXvtWaRn7R3ZC16SYRuw==} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-beta.0 + peerDependenciesMeta: + vite: + optional: true + + walk-up-path@4.0.0: + resolution: {integrity: sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==} + engines: {node: 20 || >=22} + + web-streams-polyfill@3.3.3: + resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} + engines: {node: '>= 8'} + + web-streams-polyfill@4.0.0-beta.3: + resolution: {integrity: sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==} + engines: {node: '>= 14'} + + webidl-conversions@3.0.1: + resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} + + webpack-virtual-modules@0.6.2: + resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==} + + whatwg-encoding@3.1.1: + resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==} + engines: {node: '>=18'} + deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation + + whatwg-mimetype@4.0.0: + resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==} + engines: {node: '>=18'} + + whatwg-url@5.0.0: + resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} + + workerd@1.20260219.0: + resolution: {integrity: sha512-l4U4iT5H8jNV6+EK23ExnUV2z6JvqQtQPrT8XCm4G8RpwC9EPpYTOO9s/ImMPJKe1WSbQUQoJ4k8Nd83fz8skQ==} + engines: {node: '>=16'} + hasBin: true + + wrangler@4.67.0: + resolution: {integrity: sha512-58OoVth7bqm0nqsRgcI67gHbpp0IfR1JIBqDY0XR1FzRu9Qkjn6v2iJAdFf82QcVBFhaMBYQi88WqYGswq5wlQ==} + engines: {node: '>=20.0.0'} + hasBin: true + peerDependencies: + '@cloudflare/workers-types': ^4.20260219.0 + peerDependenciesMeta: + '@cloudflare/workers-types': + optional: true + + ws@8.18.0: + resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + ws@8.19.0: + resolution: {integrity: sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + xmlbuilder2@4.0.3: + resolution: {integrity: sha512-bx8Q1STctnNaaDymWnkfQLKofs0mGNN7rLLapJlGuV3VlvegD7Ls4ggMjE3aUSWItCCzU0PEv45lI87iSigiCA==} + engines: {node: '>=20.0'} + + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + + youch-core@0.3.3: + resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==} + + youch@4.1.0-beta.10: + resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==} + + zod@3.25.76: + resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} + + zod@4.3.6: + resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==} + +snapshots: + + '@babel/code-frame@7.27.1': + dependencies: + '@babel/helper-validator-identifier': 7.28.5 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/code-frame@7.29.0': + dependencies: + '@babel/helper-validator-identifier': 7.28.5 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.29.0': {} + + '@babel/core@7.29.0': + dependencies: + '@babel/code-frame': 7.29.0 + '@babel/generator': 7.29.1 + '@babel/helper-compilation-targets': 7.28.6 + '@babel/helper-module-transforms': 7.28.6(@babel/core@7.29.0) + '@babel/helpers': 7.28.6 + '@babel/parser': 7.29.0 + '@babel/template': 7.28.6 + '@babel/traverse': 7.29.0 + '@babel/types': 7.29.0 + '@jridgewell/remapping': 2.3.5 + convert-source-map: 2.0.0 + debug: 4.4.3 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.29.1': + dependencies: + '@babel/parser': 7.29.0 + '@babel/types': 7.29.0 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + + '@babel/helper-compilation-targets@7.28.6': + dependencies: + '@babel/compat-data': 7.29.0 + '@babel/helper-validator-option': 7.27.1 + browserslist: 4.28.1 + lru-cache: 5.1.1 + semver: 6.3.1 + + '@babel/helper-globals@7.28.0': {} + + '@babel/helper-module-imports@7.28.6': + dependencies: + '@babel/traverse': 7.29.0 + '@babel/types': 7.29.0 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.28.6(@babel/core@7.29.0)': + dependencies: + '@babel/core': 7.29.0 + '@babel/helper-module-imports': 7.28.6 + '@babel/helper-validator-identifier': 7.28.5 + '@babel/traverse': 7.29.0 + transitivePeerDependencies: + - supports-color + + '@babel/helper-plugin-utils@7.28.6': {} + + '@babel/helper-string-parser@7.27.1': {} + + '@babel/helper-validator-identifier@7.28.5': {} + + '@babel/helper-validator-option@7.27.1': {} + + '@babel/helpers@7.28.6': + dependencies: + '@babel/template': 7.28.6 + '@babel/types': 7.29.0 + + '@babel/parser@7.29.0': + dependencies: + '@babel/types': 7.29.0 + + '@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0)': + dependencies: + '@babel/core': 7.29.0 + '@babel/helper-plugin-utils': 7.28.6 + + '@babel/plugin-syntax-typescript@7.28.6(@babel/core@7.29.0)': + dependencies: + '@babel/core': 7.29.0 + '@babel/helper-plugin-utils': 7.28.6 + + '@babel/plugin-transform-react-jsx-self@7.27.1(@babel/core@7.29.0)': + dependencies: + '@babel/core': 7.29.0 + '@babel/helper-plugin-utils': 7.28.6 + + '@babel/plugin-transform-react-jsx-source@7.27.1(@babel/core@7.29.0)': + dependencies: + '@babel/core': 7.29.0 + '@babel/helper-plugin-utils': 7.28.6 + + '@babel/template@7.28.6': + dependencies: + '@babel/code-frame': 7.29.0 + '@babel/parser': 7.29.0 + '@babel/types': 7.29.0 + + '@babel/traverse@7.29.0': + dependencies: + '@babel/code-frame': 7.29.0 + '@babel/generator': 7.29.1 + '@babel/helper-globals': 7.28.0 + '@babel/parser': 7.29.0 + '@babel/template': 7.28.6 + '@babel/types': 7.29.0 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.29.0': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.28.5 + + '@cloudflare/kv-asset-handler@0.4.2': {} + + '@cloudflare/unenv-preset@2.14.0(unenv@2.0.0-rc.24)(workerd@1.20260219.0)': + dependencies: + unenv: 2.0.0-rc.24 + optionalDependencies: + workerd: 1.20260219.0 + + '@cloudflare/vite-plugin@1.25.2(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))(workerd@1.20260219.0)(wrangler@4.67.0(@cloudflare/workers-types@4.20260302.0))': + dependencies: + '@cloudflare/unenv-preset': 2.14.0(unenv@2.0.0-rc.24)(workerd@1.20260219.0) + miniflare: 4.20260219.0 + unenv: 2.0.0-rc.24 + vite: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + wrangler: 4.67.0(@cloudflare/workers-types@4.20260302.0) + ws: 8.18.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + - workerd + + '@cloudflare/workerd-darwin-64@1.20260219.0': + optional: true + + '@cloudflare/workerd-darwin-arm64@1.20260219.0': + optional: true + + '@cloudflare/workerd-linux-64@1.20260219.0': + optional: true + + '@cloudflare/workerd-linux-arm64@1.20260219.0': + optional: true + + '@cloudflare/workerd-windows-64@1.20260219.0': + optional: true + + '@cloudflare/workers-types@4.20260302.0': {} + + '@cspotcode/source-map-support@0.8.1': + dependencies: + '@jridgewell/trace-mapping': 0.3.9 + + '@drizzle-team/brocli@0.10.2': {} + + '@emnapi/core@1.8.1': + dependencies: + '@emnapi/wasi-threads': 1.1.0 + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@1.8.1': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/wasi-threads@1.1.0': + dependencies: + tslib: 2.8.1 + optional: true + + '@esbuild-kit/core-utils@3.3.2': + dependencies: + esbuild: 0.18.20 + source-map-support: 0.5.21 + + '@esbuild-kit/esm-loader@2.6.5': + dependencies: + '@esbuild-kit/core-utils': 3.3.2 + get-tsconfig: 4.13.6 + + '@esbuild/aix-ppc64@0.25.12': + optional: true + + '@esbuild/aix-ppc64@0.27.3': + optional: true + + '@esbuild/android-arm64@0.18.20': + optional: true + + '@esbuild/android-arm64@0.25.12': + optional: true + + '@esbuild/android-arm64@0.27.3': + optional: true + + '@esbuild/android-arm@0.18.20': + optional: true + + '@esbuild/android-arm@0.25.12': + optional: true + + '@esbuild/android-arm@0.27.3': + optional: true + + '@esbuild/android-x64@0.18.20': + optional: true + + '@esbuild/android-x64@0.25.12': + optional: true + + '@esbuild/android-x64@0.27.3': + optional: true + + '@esbuild/darwin-arm64@0.18.20': + optional: true + + '@esbuild/darwin-arm64@0.25.12': + optional: true + + '@esbuild/darwin-arm64@0.27.3': + optional: true + + '@esbuild/darwin-x64@0.18.20': + optional: true + + '@esbuild/darwin-x64@0.25.12': + optional: true + + '@esbuild/darwin-x64@0.27.3': + optional: true + + '@esbuild/freebsd-arm64@0.18.20': + optional: true + + '@esbuild/freebsd-arm64@0.25.12': + optional: true + + '@esbuild/freebsd-arm64@0.27.3': + optional: true + + '@esbuild/freebsd-x64@0.18.20': + optional: true + + '@esbuild/freebsd-x64@0.25.12': + optional: true + + '@esbuild/freebsd-x64@0.27.3': + optional: true + + '@esbuild/linux-arm64@0.18.20': + optional: true + + '@esbuild/linux-arm64@0.25.12': + optional: true + + '@esbuild/linux-arm64@0.27.3': + optional: true + + '@esbuild/linux-arm@0.18.20': + optional: true + + '@esbuild/linux-arm@0.25.12': + optional: true + + '@esbuild/linux-arm@0.27.3': + optional: true + + '@esbuild/linux-ia32@0.18.20': + optional: true + + '@esbuild/linux-ia32@0.25.12': + optional: true + + '@esbuild/linux-ia32@0.27.3': + optional: true + + '@esbuild/linux-loong64@0.18.20': + optional: true + + '@esbuild/linux-loong64@0.25.12': + optional: true + + '@esbuild/linux-loong64@0.27.3': + optional: true + + '@esbuild/linux-mips64el@0.18.20': + optional: true + + '@esbuild/linux-mips64el@0.25.12': + optional: true + + '@esbuild/linux-mips64el@0.27.3': + optional: true + + '@esbuild/linux-ppc64@0.18.20': + optional: true + + '@esbuild/linux-ppc64@0.25.12': + optional: true + + '@esbuild/linux-ppc64@0.27.3': + optional: true + + '@esbuild/linux-riscv64@0.18.20': + optional: true + + '@esbuild/linux-riscv64@0.25.12': + optional: true + + '@esbuild/linux-riscv64@0.27.3': + optional: true + + '@esbuild/linux-s390x@0.18.20': + optional: true + + '@esbuild/linux-s390x@0.25.12': + optional: true + + '@esbuild/linux-s390x@0.27.3': + optional: true + + '@esbuild/linux-x64@0.18.20': + optional: true + + '@esbuild/linux-x64@0.25.12': + optional: true + + '@esbuild/linux-x64@0.27.3': + optional: true + + '@esbuild/netbsd-arm64@0.25.12': + optional: true + + '@esbuild/netbsd-arm64@0.27.3': + optional: true + + '@esbuild/netbsd-x64@0.18.20': + optional: true + + '@esbuild/netbsd-x64@0.25.12': + optional: true + + '@esbuild/netbsd-x64@0.27.3': + optional: true + + '@esbuild/openbsd-arm64@0.25.12': + optional: true + + '@esbuild/openbsd-arm64@0.27.3': + optional: true + + '@esbuild/openbsd-x64@0.18.20': + optional: true + + '@esbuild/openbsd-x64@0.25.12': + optional: true + + '@esbuild/openbsd-x64@0.27.3': + optional: true + + '@esbuild/openharmony-arm64@0.25.12': + optional: true + + '@esbuild/openharmony-arm64@0.27.3': + optional: true + + '@esbuild/sunos-x64@0.18.20': + optional: true + + '@esbuild/sunos-x64@0.25.12': + optional: true + + '@esbuild/sunos-x64@0.27.3': + optional: true + + '@esbuild/win32-arm64@0.18.20': + optional: true + + '@esbuild/win32-arm64@0.25.12': + optional: true + + '@esbuild/win32-arm64@0.27.3': + optional: true + + '@esbuild/win32-ia32@0.18.20': + optional: true + + '@esbuild/win32-ia32@0.25.12': + optional: true + + '@esbuild/win32-ia32@0.27.3': + optional: true + + '@esbuild/win32-x64@0.18.20': + optional: true + + '@esbuild/win32-x64@0.25.12': + optional: true + + '@esbuild/win32-x64@0.27.3': + optional: true + + '@every-app/sdk@0.1.12(@tanstack/react-router@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(@tanstack/react-start@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)))(jose@6.1.3)(react@19.2.4)': + dependencies: + '@tanstack/react-router': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/react-start': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + jose: 6.1.3 + jsonc-parser: 3.3.1 + react: 19.2.4 + + '@img/colour@1.0.0': {} + + '@img/sharp-darwin-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.2.4 + optional: true + + '@img/sharp-darwin-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-darwin-x64': 1.2.4 + optional: true + + '@img/sharp-libvips-darwin-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-darwin-x64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-arm@1.2.4': + optional: true + + '@img/sharp-libvips-linux-ppc64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-riscv64@1.2.4': + optional: true + + '@img/sharp-libvips-linux-s390x@1.2.4': + optional: true + + '@img/sharp-libvips-linux-x64@1.2.4': + optional: true + + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': + optional: true + + '@img/sharp-libvips-linuxmusl-x64@1.2.4': + optional: true + + '@img/sharp-linux-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.2.4 + optional: true + + '@img/sharp-linux-arm@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.2.4 + optional: true + + '@img/sharp-linux-ppc64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-ppc64': 1.2.4 + optional: true + + '@img/sharp-linux-riscv64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-riscv64': 1.2.4 + optional: true + + '@img/sharp-linux-s390x@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.2.4 + optional: true + + '@img/sharp-linux-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.2.4 + optional: true + + '@img/sharp-linuxmusl-arm64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 + optional: true + + '@img/sharp-linuxmusl-x64@0.34.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 + optional: true + + '@img/sharp-wasm32@0.34.5': + dependencies: + '@emnapi/runtime': 1.8.1 + optional: true + + '@img/sharp-win32-arm64@0.34.5': + optional: true + + '@img/sharp-win32-ia32@0.34.5': + optional: true + + '@img/sharp-win32-x64@0.34.5': + optional: true + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 + + '@jridgewell/trace-mapping@0.3.9': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 + + '@libsql/client@0.15.15': + dependencies: + '@libsql/core': 0.15.15 + '@libsql/hrana-client': 0.7.0 + js-base64: 3.7.8 + libsql: 0.5.22 + promise-limit: 2.7.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + '@libsql/core@0.15.15': + dependencies: + js-base64: 3.7.8 + + '@libsql/darwin-arm64@0.5.22': + optional: true + + '@libsql/darwin-x64@0.5.22': + optional: true + + '@libsql/hrana-client@0.7.0': + dependencies: + '@libsql/isomorphic-fetch': 0.3.1 + '@libsql/isomorphic-ws': 0.1.5 + js-base64: 3.7.8 + node-fetch: 3.3.2 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + '@libsql/isomorphic-fetch@0.3.1': {} + + '@libsql/isomorphic-ws@0.1.5': + dependencies: + '@types/ws': 8.18.1 + ws: 8.19.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + '@libsql/linux-arm-gnueabihf@0.5.22': + optional: true + + '@libsql/linux-arm-musleabihf@0.5.22': + optional: true + + '@libsql/linux-arm64-gnu@0.5.22': + optional: true + + '@libsql/linux-arm64-musl@0.5.22': + optional: true + + '@libsql/linux-x64-gnu@0.5.22': + optional: true + + '@libsql/linux-x64-musl@0.5.22': + optional: true + + '@libsql/win32-x64-msvc@0.5.22': + optional: true + + '@napi-rs/wasm-runtime@1.1.1': + dependencies: + '@emnapi/core': 1.8.1 + '@emnapi/runtime': 1.8.1 + '@tybys/wasm-util': 0.10.1 + optional: true + + '@neon-rs/load@0.0.4': {} + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.20.1 + + '@oozcitak/dom@2.0.2': + dependencies: + '@oozcitak/infra': 2.0.2 + '@oozcitak/url': 3.0.0 + '@oozcitak/util': 10.0.0 + + '@oozcitak/infra@2.0.2': + dependencies: + '@oozcitak/util': 10.0.0 + + '@oozcitak/url@3.0.0': + dependencies: + '@oozcitak/infra': 2.0.2 + '@oozcitak/util': 10.0.0 + + '@oozcitak/util@10.0.0': {} + + '@oxc-resolver/binding-android-arm-eabi@11.18.0': + optional: true + + '@oxc-resolver/binding-android-arm64@11.18.0': + optional: true + + '@oxc-resolver/binding-darwin-arm64@11.18.0': + optional: true + + '@oxc-resolver/binding-darwin-x64@11.18.0': + optional: true + + '@oxc-resolver/binding-freebsd-x64@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-arm-gnueabihf@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-arm-musleabihf@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-arm64-gnu@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-arm64-musl@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-ppc64-gnu@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-riscv64-gnu@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-riscv64-musl@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-s390x-gnu@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-x64-gnu@11.18.0': + optional: true + + '@oxc-resolver/binding-linux-x64-musl@11.18.0': + optional: true + + '@oxc-resolver/binding-openharmony-arm64@11.18.0': + optional: true + + '@oxc-resolver/binding-wasm32-wasi@11.18.0': + dependencies: + '@napi-rs/wasm-runtime': 1.1.1 + optional: true + + '@oxc-resolver/binding-win32-arm64-msvc@11.18.0': + optional: true + + '@oxc-resolver/binding-win32-ia32-msvc@11.18.0': + optional: true + + '@oxc-resolver/binding-win32-x64-msvc@11.18.0': + optional: true + + '@oxlint/binding-android-arm-eabi@1.50.0': + optional: true + + '@oxlint/binding-android-arm64@1.50.0': + optional: true + + '@oxlint/binding-darwin-arm64@1.50.0': + optional: true + + '@oxlint/binding-darwin-x64@1.50.0': + optional: true + + '@oxlint/binding-freebsd-x64@1.50.0': + optional: true + + '@oxlint/binding-linux-arm-gnueabihf@1.50.0': + optional: true + + '@oxlint/binding-linux-arm-musleabihf@1.50.0': + optional: true + + '@oxlint/binding-linux-arm64-gnu@1.50.0': + optional: true + + '@oxlint/binding-linux-arm64-musl@1.50.0': + optional: true + + '@oxlint/binding-linux-ppc64-gnu@1.50.0': + optional: true + + '@oxlint/binding-linux-riscv64-gnu@1.50.0': + optional: true + + '@oxlint/binding-linux-riscv64-musl@1.50.0': + optional: true + + '@oxlint/binding-linux-s390x-gnu@1.50.0': + optional: true + + '@oxlint/binding-linux-x64-gnu@1.50.0': + optional: true + + '@oxlint/binding-linux-x64-musl@1.50.0': + optional: true + + '@oxlint/binding-openharmony-arm64@1.50.0': + optional: true + + '@oxlint/binding-win32-arm64-msvc@1.50.0': + optional: true + + '@oxlint/binding-win32-ia32-msvc@1.50.0': + optional: true + + '@oxlint/binding-win32-x64-msvc@1.50.0': + optional: true + + '@poppinss/colors@4.1.6': + dependencies: + kleur: 4.1.5 + + '@poppinss/dumper@0.6.5': + dependencies: + '@poppinss/colors': 4.1.6 + '@sindresorhus/is': 7.2.0 + supports-color: 10.2.2 + + '@poppinss/exception@1.2.3': {} + + '@reduxjs/toolkit@2.11.2(react-redux@9.2.0(@types/react@19.2.14)(react@19.2.4)(redux@5.0.1))(react@19.2.4)': + dependencies: + '@standard-schema/spec': 1.1.0 + '@standard-schema/utils': 0.3.0 + immer: 11.1.4 + redux: 5.0.1 + redux-thunk: 3.1.0(redux@5.0.1) + reselect: 5.1.1 + optionalDependencies: + react: 19.2.4 + react-redux: 9.2.0(@types/react@19.2.14)(react@19.2.4)(redux@5.0.1) + + '@rolldown/pluginutils@1.0.0-beta.27': {} + + '@rolldown/pluginutils@1.0.0-beta.40': {} + + '@rollup/rollup-android-arm-eabi@4.59.0': + optional: true + + '@rollup/rollup-android-arm64@4.59.0': + optional: true + + '@rollup/rollup-darwin-arm64@4.59.0': + optional: true + + '@rollup/rollup-darwin-x64@4.59.0': + optional: true + + '@rollup/rollup-freebsd-arm64@4.59.0': + optional: true + + '@rollup/rollup-freebsd-x64@4.59.0': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.59.0': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.59.0': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.59.0': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.59.0': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.59.0': + optional: true + + '@rollup/rollup-linux-loong64-musl@4.59.0': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.59.0': + optional: true + + '@rollup/rollup-linux-ppc64-musl@4.59.0': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.59.0': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.59.0': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.59.0': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.59.0': + optional: true + + '@rollup/rollup-linux-x64-musl@4.59.0': + optional: true + + '@rollup/rollup-openbsd-x64@4.59.0': + optional: true + + '@rollup/rollup-openharmony-arm64@4.59.0': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.59.0': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.59.0': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.59.0': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.59.0': + optional: true + + '@sindresorhus/is@7.2.0': {} + + '@solid-primitives/event-listener@2.4.5(solid-js@1.9.11)': + dependencies: + '@solid-primitives/utils': 6.4.0(solid-js@1.9.11) + solid-js: 1.9.11 + + '@solid-primitives/keyboard@1.3.5(solid-js@1.9.11)': + dependencies: + '@solid-primitives/event-listener': 2.4.5(solid-js@1.9.11) + '@solid-primitives/rootless': 1.5.3(solid-js@1.9.11) + '@solid-primitives/utils': 6.4.0(solid-js@1.9.11) + solid-js: 1.9.11 + + '@solid-primitives/resize-observer@2.1.5(solid-js@1.9.11)': + dependencies: + '@solid-primitives/event-listener': 2.4.5(solid-js@1.9.11) + '@solid-primitives/rootless': 1.5.3(solid-js@1.9.11) + '@solid-primitives/static-store': 0.1.3(solid-js@1.9.11) + '@solid-primitives/utils': 6.4.0(solid-js@1.9.11) + solid-js: 1.9.11 + + '@solid-primitives/rootless@1.5.3(solid-js@1.9.11)': + dependencies: + '@solid-primitives/utils': 6.4.0(solid-js@1.9.11) + solid-js: 1.9.11 + + '@solid-primitives/static-store@0.1.3(solid-js@1.9.11)': + dependencies: + '@solid-primitives/utils': 6.4.0(solid-js@1.9.11) + solid-js: 1.9.11 + + '@solid-primitives/utils@6.4.0(solid-js@1.9.11)': + dependencies: + solid-js: 1.9.11 + + '@speed-highlight/core@1.2.14': {} + + '@standard-schema/spec@1.1.0': {} + + '@standard-schema/utils@0.3.0': {} + + '@tailwindcss/node@4.2.1': + dependencies: + '@jridgewell/remapping': 2.3.5 + enhanced-resolve: 5.19.0 + jiti: 2.6.1 + lightningcss: 1.31.1 + magic-string: 0.30.21 + source-map-js: 1.2.1 + tailwindcss: 4.2.1 + + '@tailwindcss/oxide-android-arm64@4.2.1': + optional: true + + '@tailwindcss/oxide-darwin-arm64@4.2.1': + optional: true + + '@tailwindcss/oxide-darwin-x64@4.2.1': + optional: true + + '@tailwindcss/oxide-freebsd-x64@4.2.1': + optional: true + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.2.1': + optional: true + + '@tailwindcss/oxide-linux-arm64-gnu@4.2.1': + optional: true + + '@tailwindcss/oxide-linux-arm64-musl@4.2.1': + optional: true + + '@tailwindcss/oxide-linux-x64-gnu@4.2.1': + optional: true + + '@tailwindcss/oxide-linux-x64-musl@4.2.1': + optional: true + + '@tailwindcss/oxide-wasm32-wasi@4.2.1': + optional: true + + '@tailwindcss/oxide-win32-arm64-msvc@4.2.1': + optional: true + + '@tailwindcss/oxide-win32-x64-msvc@4.2.1': + optional: true + + '@tailwindcss/oxide@4.2.1': + optionalDependencies: + '@tailwindcss/oxide-android-arm64': 4.2.1 + '@tailwindcss/oxide-darwin-arm64': 4.2.1 + '@tailwindcss/oxide-darwin-x64': 4.2.1 + '@tailwindcss/oxide-freebsd-x64': 4.2.1 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.2.1 + '@tailwindcss/oxide-linux-arm64-gnu': 4.2.1 + '@tailwindcss/oxide-linux-arm64-musl': 4.2.1 + '@tailwindcss/oxide-linux-x64-gnu': 4.2.1 + '@tailwindcss/oxide-linux-x64-musl': 4.2.1 + '@tailwindcss/oxide-wasm32-wasi': 4.2.1 + '@tailwindcss/oxide-win32-arm64-msvc': 4.2.1 + '@tailwindcss/oxide-win32-x64-msvc': 4.2.1 + + '@tailwindcss/vite@4.2.1(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + dependencies: + '@tailwindcss/node': 4.2.1 + '@tailwindcss/oxide': 4.2.1 + tailwindcss: 4.2.1 + vite: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + + '@tanstack/devtools-client@0.0.5': + dependencies: + '@tanstack/devtools-event-client': 0.4.0 + + '@tanstack/devtools-event-bus@0.4.1': + dependencies: + ws: 8.19.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + '@tanstack/devtools-event-client@0.4.0': {} + + '@tanstack/devtools-ui@0.4.4(csstype@3.2.3)(solid-js@1.9.11)': + dependencies: + clsx: 2.1.1 + goober: 2.1.18(csstype@3.2.3) + solid-js: 1.9.11 + transitivePeerDependencies: + - csstype + + '@tanstack/devtools-vite@0.5.1(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + dependencies: + '@babel/core': 7.29.0 + '@babel/generator': 7.29.1 + '@babel/parser': 7.29.0 + '@babel/traverse': 7.29.0 + '@babel/types': 7.29.0 + '@tanstack/devtools-client': 0.0.5 + '@tanstack/devtools-event-bus': 0.4.1 + chalk: 5.6.2 + launch-editor: 2.13.1 + picomatch: 4.0.3 + vite: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + + '@tanstack/devtools@0.10.7(csstype@3.2.3)(solid-js@1.9.11)': + dependencies: + '@solid-primitives/event-listener': 2.4.5(solid-js@1.9.11) + '@solid-primitives/keyboard': 1.3.5(solid-js@1.9.11) + '@solid-primitives/resize-observer': 2.1.5(solid-js@1.9.11) + '@tanstack/devtools-client': 0.0.5 + '@tanstack/devtools-event-bus': 0.4.1 + '@tanstack/devtools-ui': 0.4.4(csstype@3.2.3)(solid-js@1.9.11) + clsx: 2.1.1 + goober: 2.1.18(csstype@3.2.3) + solid-js: 1.9.11 + transitivePeerDependencies: + - bufferutil + - csstype + - utf-8-validate + + '@tanstack/form-core@1.28.3': + dependencies: + '@tanstack/devtools-event-client': 0.4.0 + '@tanstack/pacer-lite': 0.1.1 + '@tanstack/store': 0.8.1 + + '@tanstack/history@1.161.4': {} + + '@tanstack/pacer-lite@0.1.1': {} + + '@tanstack/query-core@5.90.20': {} + + '@tanstack/query-persist-client-core@5.91.19': + dependencies: + '@tanstack/query-core': 5.90.20 + + '@tanstack/query-sync-storage-persister@5.90.22': + dependencies: + '@tanstack/query-core': 5.90.20 + '@tanstack/query-persist-client-core': 5.91.19 + + '@tanstack/react-devtools@0.9.6(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(csstype@3.2.3)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(solid-js@1.9.11)': + dependencies: + '@tanstack/devtools': 0.10.7(csstype@3.2.3)(solid-js@1.9.11) + '@types/react': 19.2.14 + '@types/react-dom': 19.2.3(@types/react@19.2.14) + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + transitivePeerDependencies: + - bufferutil + - csstype + - solid-js + - utf-8-validate + + '@tanstack/react-form@1.28.3(@tanstack/react-start@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + dependencies: + '@tanstack/form-core': 1.28.3 + '@tanstack/react-store': 0.8.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + react: 19.2.4 + optionalDependencies: + '@tanstack/react-start': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + transitivePeerDependencies: + - react-dom + + '@tanstack/react-query-persist-client@5.90.22(@tanstack/react-query@5.90.21(react@19.2.4))(react@19.2.4)': + dependencies: + '@tanstack/query-persist-client-core': 5.91.19 + '@tanstack/react-query': 5.90.21(react@19.2.4) + react: 19.2.4 + + '@tanstack/react-query@5.90.21(react@19.2.4)': + dependencies: + '@tanstack/query-core': 5.90.20 + react: 19.2.4 + + '@tanstack/react-router-devtools@1.162.4(@tanstack/react-router@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(@tanstack/router-core@1.162.2)(csstype@3.2.3)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + dependencies: + '@tanstack/react-router': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/router-devtools-core': 1.162.2(@tanstack/router-core@1.162.2)(csstype@3.2.3) + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + optionalDependencies: + '@tanstack/router-core': 1.162.2 + transitivePeerDependencies: + - csstype + + '@tanstack/react-router@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + dependencies: + '@tanstack/history': 1.161.4 + '@tanstack/react-store': 0.9.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/router-core': 1.162.2 + isbot: 5.1.35 + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + tiny-invariant: 1.3.3 + tiny-warning: 1.0.3 + + '@tanstack/react-start-client@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + dependencies: + '@tanstack/react-router': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/router-core': 1.162.2 + '@tanstack/start-client-core': 1.162.2 + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + tiny-invariant: 1.3.3 + tiny-warning: 1.0.3 + + '@tanstack/react-start-server@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + dependencies: + '@tanstack/history': 1.161.4 + '@tanstack/react-router': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/router-core': 1.162.2 + '@tanstack/start-client-core': 1.162.2 + '@tanstack/start-server-core': 1.162.2 + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + transitivePeerDependencies: + - crossws + + '@tanstack/react-start@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + dependencies: + '@tanstack/react-router': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/react-start-client': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/react-start-server': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/router-utils': 1.161.4 + '@tanstack/start-client-core': 1.162.2 + '@tanstack/start-plugin-core': 1.162.4(@tanstack/react-router@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + '@tanstack/start-server-core': 1.162.2 + pathe: 2.0.3 + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + vite: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + transitivePeerDependencies: + - '@rsbuild/core' + - crossws + - supports-color + - vite-plugin-solid + - webpack + + '@tanstack/react-store@0.8.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + dependencies: + '@tanstack/store': 0.8.1 + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + use-sync-external-store: 1.6.0(react@19.2.4) + + '@tanstack/react-store@0.9.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + dependencies: + '@tanstack/store': 0.9.1 + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + use-sync-external-store: 1.6.0(react@19.2.4) + + '@tanstack/router-core@1.162.2': + dependencies: + '@tanstack/history': 1.161.4 + '@tanstack/store': 0.9.1 + cookie-es: 2.0.0 + seroval: 1.5.0 + seroval-plugins: 1.5.0(seroval@1.5.0) + tiny-invariant: 1.3.3 + tiny-warning: 1.0.3 + + '@tanstack/router-devtools-core@1.162.2(@tanstack/router-core@1.162.2)(csstype@3.2.3)': + dependencies: + '@tanstack/router-core': 1.162.2 + clsx: 2.1.1 + goober: 2.1.18(csstype@3.2.3) + tiny-invariant: 1.3.3 + optionalDependencies: + csstype: 3.2.3 + + '@tanstack/router-generator@1.162.2': + dependencies: + '@tanstack/router-core': 1.162.2 + '@tanstack/router-utils': 1.161.4 + '@tanstack/virtual-file-routes': 1.161.4 + prettier: 3.8.1 + recast: 0.23.11 + source-map: 0.7.6 + tsx: 4.21.0 + zod: 3.25.76 + transitivePeerDependencies: + - supports-color + + '@tanstack/router-plugin@1.162.4(@tanstack/react-router@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + dependencies: + '@babel/core': 7.29.0 + '@babel/plugin-syntax-jsx': 7.28.6(@babel/core@7.29.0) + '@babel/plugin-syntax-typescript': 7.28.6(@babel/core@7.29.0) + '@babel/template': 7.28.6 + '@babel/traverse': 7.29.0 + '@babel/types': 7.29.0 + '@tanstack/router-core': 1.162.2 + '@tanstack/router-generator': 1.162.2 + '@tanstack/router-utils': 1.161.4 + '@tanstack/virtual-file-routes': 1.161.4 + chokidar: 3.6.0 + unplugin: 2.3.11 + zod: 3.25.76 + optionalDependencies: + '@tanstack/react-router': 1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + vite: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + transitivePeerDependencies: + - supports-color + + '@tanstack/router-utils@1.161.4': + dependencies: + '@babel/core': 7.29.0 + '@babel/generator': 7.29.1 + '@babel/parser': 7.29.0 + '@babel/types': 7.29.0 + ansis: 4.2.0 + babel-dead-code-elimination: 1.0.12 + diff: 8.0.3 + pathe: 2.0.3 + tinyglobby: 0.2.15 + transitivePeerDependencies: + - supports-color + + '@tanstack/start-client-core@1.162.2': + dependencies: + '@tanstack/router-core': 1.162.2 + '@tanstack/start-fn-stubs': 1.161.4 + '@tanstack/start-storage-context': 1.162.2 + seroval: 1.5.0 + tiny-invariant: 1.3.3 + tiny-warning: 1.0.3 + + '@tanstack/start-fn-stubs@1.161.4': {} + + '@tanstack/start-plugin-core@1.162.4(@tanstack/react-router@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/core': 7.29.0 + '@babel/types': 7.29.0 + '@rolldown/pluginutils': 1.0.0-beta.40 + '@tanstack/router-core': 1.162.2 + '@tanstack/router-generator': 1.162.2 + '@tanstack/router-plugin': 1.162.4(@tanstack/react-router@1.162.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + '@tanstack/router-utils': 1.161.4 + '@tanstack/start-client-core': 1.162.2 + '@tanstack/start-server-core': 1.162.2 + cheerio: 1.2.0 + exsolve: 1.0.8 + pathe: 2.0.3 + picomatch: 4.0.3 + source-map: 0.7.6 + srvx: 0.11.7 + tinyglobby: 0.2.15 + ufo: 1.6.3 + vite: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + vitefu: 1.1.2(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)) + xmlbuilder2: 4.0.3 + zod: 3.25.76 + transitivePeerDependencies: + - '@rsbuild/core' + - '@tanstack/react-router' + - crossws + - supports-color + - vite-plugin-solid + - webpack + + '@tanstack/start-server-core@1.162.2': + dependencies: + '@tanstack/history': 1.161.4 + '@tanstack/router-core': 1.162.2 + '@tanstack/start-client-core': 1.162.2 + '@tanstack/start-storage-context': 1.162.2 + h3-v2: h3@2.0.1-rc.14 + seroval: 1.5.0 + tiny-invariant: 1.3.3 + transitivePeerDependencies: + - crossws + + '@tanstack/start-storage-context@1.162.2': + dependencies: + '@tanstack/router-core': 1.162.2 + + '@tanstack/store@0.8.1': {} + + '@tanstack/store@0.9.1': {} + + '@tanstack/virtual-file-routes@1.161.4': {} + + '@tybys/wasm-util@0.10.1': + dependencies: + tslib: 2.8.1 + optional: true + + '@types/babel__core@7.20.5': + dependencies: + '@babel/parser': 7.29.0 + '@babel/types': 7.29.0 + '@types/babel__generator': 7.27.0 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.28.0 + + '@types/babel__generator@7.27.0': + dependencies: + '@babel/types': 7.29.0 + + '@types/babel__template@7.4.4': + dependencies: + '@babel/parser': 7.29.0 + '@babel/types': 7.29.0 + + '@types/babel__traverse@7.28.0': + dependencies: + '@babel/types': 7.29.0 + + '@types/d3-array@3.2.2': {} + + '@types/d3-color@3.1.3': {} + + '@types/d3-ease@3.0.2': {} + + '@types/d3-interpolate@3.0.4': + dependencies: + '@types/d3-color': 3.1.3 + + '@types/d3-path@3.1.1': {} + + '@types/d3-scale@4.0.9': + dependencies: + '@types/d3-time': 3.0.4 + + '@types/d3-shape@3.1.8': + dependencies: + '@types/d3-path': 3.1.1 + + '@types/d3-time@3.0.4': {} + + '@types/d3-timer@3.0.2': {} + + '@types/estree@1.0.8': {} + + '@types/node-fetch@2.6.13': + dependencies: + '@types/node': 22.19.11 + form-data: 4.0.5 + + '@types/node@18.19.130': + dependencies: + undici-types: 5.26.5 + + '@types/node@22.19.11': + dependencies: + undici-types: 6.21.0 + + '@types/react-dom@19.2.3(@types/react@19.2.14)': + dependencies: + '@types/react': 19.2.14 + + '@types/react@19.2.14': + dependencies: + csstype: 3.2.3 + + '@types/use-sync-external-store@0.0.6': {} + + '@types/ws@8.18.1': + dependencies: + '@types/node': 22.19.11 + + '@vitejs/plugin-react@4.7.0(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0))': + dependencies: + '@babel/core': 7.29.0 + '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.29.0) + '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/core@7.29.0) + '@rolldown/pluginutils': 1.0.0-beta.27 + '@types/babel__core': 7.20.5 + react-refresh: 0.17.0 + vite: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + transitivePeerDependencies: + - supports-color + + abort-controller@3.0.0: + dependencies: + event-target-shim: 5.0.1 + + acorn@8.16.0: {} + + agentkeepalive@4.6.0: + dependencies: + humanize-ms: 1.2.1 + + ansis@4.2.0: {} + + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + + argparse@2.0.1: {} + + ast-types@0.16.1: + dependencies: + tslib: 2.8.1 + + asynckit@0.4.0: {} + + babel-dead-code-elimination@1.0.12: + dependencies: + '@babel/core': 7.29.0 + '@babel/parser': 7.29.0 + '@babel/traverse': 7.29.0 + '@babel/types': 7.29.0 + transitivePeerDependencies: + - supports-color + + baseline-browser-mapping@2.10.0: {} + + binary-extensions@2.3.0: {} + + blake3-wasm@2.1.5: {} + + boolbase@1.0.0: {} + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + browserslist@4.28.1: + dependencies: + baseline-browser-mapping: 2.10.0 + caniuse-lite: 1.0.30001774 + electron-to-chromium: 1.5.302 + node-releases: 2.0.27 + update-browserslist-db: 1.2.3(browserslist@4.28.1) + + buffer-from@1.1.2: {} + + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + + caniuse-lite@1.0.30001774: {} + + chalk@5.6.2: {} + + cheerio-select@2.1.0: + dependencies: + boolbase: 1.0.0 + css-select: 5.2.2 + css-what: 6.2.2 + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + + cheerio@1.2.0: + dependencies: + cheerio-select: 2.1.0 + dom-serializer: 2.0.0 + domhandler: 5.0.3 + domutils: 3.2.2 + encoding-sniffer: 0.2.1 + htmlparser2: 10.1.0 + parse5: 7.3.0 + parse5-htmlparser2-tree-adapter: 7.1.0 + parse5-parser-stream: 7.1.2 + undici: 7.22.0 + whatwg-mimetype: 4.0.0 + + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + cloudflare@5.2.0: + dependencies: + '@types/node': 18.19.130 + '@types/node-fetch': 2.6.13 + abort-controller: 3.0.0 + agentkeepalive: 4.6.0 + form-data-encoder: 1.7.2 + formdata-node: 4.4.1 + node-fetch: 2.7.0 + transitivePeerDependencies: + - encoding + + clsx@2.1.1: {} + + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + + convert-source-map@2.0.0: {} + + cookie-es@2.0.0: {} + + cookie@1.1.1: {} + + css-select@5.2.2: + dependencies: + boolbase: 1.0.0 + css-what: 6.2.2 + domhandler: 5.0.3 + domutils: 3.2.2 + nth-check: 2.1.1 + + css-what@6.2.2: {} + + csstype@3.2.3: {} + + d3-array@3.2.4: + dependencies: + internmap: 2.0.3 + + d3-color@3.1.0: {} + + d3-ease@3.0.1: {} + + d3-format@3.1.2: {} + + d3-interpolate@3.0.1: + dependencies: + d3-color: 3.1.0 + + d3-path@3.1.0: {} + + d3-scale@4.0.2: + dependencies: + d3-array: 3.2.4 + d3-format: 3.1.2 + d3-interpolate: 3.0.1 + d3-time: 3.1.0 + d3-time-format: 4.1.0 + + d3-shape@3.2.0: + dependencies: + d3-path: 3.1.0 + + d3-time-format@4.1.0: + dependencies: + d3-time: 3.1.0 + + d3-time@3.1.0: + dependencies: + d3-array: 3.2.4 + + d3-timer@3.0.1: {} + + daisyui@5.5.19: {} + + data-uri-to-buffer@4.0.1: {} + + dataforseo-client@2.0.19: {} + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + decimal.js-light@2.5.1: {} + + delayed-stream@1.0.0: {} + + detect-libc@2.0.2: {} + + detect-libc@2.1.2: {} + + diff@8.0.3: {} + + dom-serializer@2.0.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + entities: 4.5.0 + + domelementtype@2.3.0: {} + + domhandler@5.0.3: + dependencies: + domelementtype: 2.3.0 + + domutils@3.2.2: + dependencies: + dom-serializer: 2.0.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + + drizzle-kit@0.31.9: + dependencies: + '@drizzle-team/brocli': 0.10.2 + '@esbuild-kit/esm-loader': 2.6.5 + esbuild: 0.25.12 + esbuild-register: 3.6.0(esbuild@0.25.12) + transitivePeerDependencies: + - supports-color + + drizzle-orm@0.44.7(@cloudflare/workers-types@4.20260302.0)(@libsql/client@0.15.15): + optionalDependencies: + '@cloudflare/workers-types': 4.20260302.0 + '@libsql/client': 0.15.15 + + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + + electron-to-chromium@1.5.302: {} + + encoding-sniffer@0.2.1: + dependencies: + iconv-lite: 0.6.3 + whatwg-encoding: 3.1.1 + + enhanced-resolve@5.19.0: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.0 + + entities@4.5.0: {} + + entities@6.0.1: {} + + entities@7.0.1: {} + + error-stack-parser-es@1.0.5: {} + + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + + es-object-atoms@1.1.1: + dependencies: + es-errors: 1.3.0 + + es-set-tostringtag@2.1.0: + dependencies: + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + has-tostringtag: 1.0.2 + hasown: 2.0.2 + + es-toolkit@1.44.0: {} + + esbuild-register@3.6.0(esbuild@0.25.12): + dependencies: + debug: 4.4.3 + esbuild: 0.25.12 + transitivePeerDependencies: + - supports-color + + esbuild@0.18.20: + optionalDependencies: + '@esbuild/android-arm': 0.18.20 + '@esbuild/android-arm64': 0.18.20 + '@esbuild/android-x64': 0.18.20 + '@esbuild/darwin-arm64': 0.18.20 + '@esbuild/darwin-x64': 0.18.20 + '@esbuild/freebsd-arm64': 0.18.20 + '@esbuild/freebsd-x64': 0.18.20 + '@esbuild/linux-arm': 0.18.20 + '@esbuild/linux-arm64': 0.18.20 + '@esbuild/linux-ia32': 0.18.20 + '@esbuild/linux-loong64': 0.18.20 + '@esbuild/linux-mips64el': 0.18.20 + '@esbuild/linux-ppc64': 0.18.20 + '@esbuild/linux-riscv64': 0.18.20 + '@esbuild/linux-s390x': 0.18.20 + '@esbuild/linux-x64': 0.18.20 + '@esbuild/netbsd-x64': 0.18.20 + '@esbuild/openbsd-x64': 0.18.20 + '@esbuild/sunos-x64': 0.18.20 + '@esbuild/win32-arm64': 0.18.20 + '@esbuild/win32-ia32': 0.18.20 + '@esbuild/win32-x64': 0.18.20 + + esbuild@0.25.12: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.12 + '@esbuild/android-arm': 0.25.12 + '@esbuild/android-arm64': 0.25.12 + '@esbuild/android-x64': 0.25.12 + '@esbuild/darwin-arm64': 0.25.12 + '@esbuild/darwin-x64': 0.25.12 + '@esbuild/freebsd-arm64': 0.25.12 + '@esbuild/freebsd-x64': 0.25.12 + '@esbuild/linux-arm': 0.25.12 + '@esbuild/linux-arm64': 0.25.12 + '@esbuild/linux-ia32': 0.25.12 + '@esbuild/linux-loong64': 0.25.12 + '@esbuild/linux-mips64el': 0.25.12 + '@esbuild/linux-ppc64': 0.25.12 + '@esbuild/linux-riscv64': 0.25.12 + '@esbuild/linux-s390x': 0.25.12 + '@esbuild/linux-x64': 0.25.12 + '@esbuild/netbsd-arm64': 0.25.12 + '@esbuild/netbsd-x64': 0.25.12 + '@esbuild/openbsd-arm64': 0.25.12 + '@esbuild/openbsd-x64': 0.25.12 + '@esbuild/openharmony-arm64': 0.25.12 + '@esbuild/sunos-x64': 0.25.12 + '@esbuild/win32-arm64': 0.25.12 + '@esbuild/win32-ia32': 0.25.12 + '@esbuild/win32-x64': 0.25.12 + + esbuild@0.27.3: + optionalDependencies: + '@esbuild/aix-ppc64': 0.27.3 + '@esbuild/android-arm': 0.27.3 + '@esbuild/android-arm64': 0.27.3 + '@esbuild/android-x64': 0.27.3 + '@esbuild/darwin-arm64': 0.27.3 + '@esbuild/darwin-x64': 0.27.3 + '@esbuild/freebsd-arm64': 0.27.3 + '@esbuild/freebsd-x64': 0.27.3 + '@esbuild/linux-arm': 0.27.3 + '@esbuild/linux-arm64': 0.27.3 + '@esbuild/linux-ia32': 0.27.3 + '@esbuild/linux-loong64': 0.27.3 + '@esbuild/linux-mips64el': 0.27.3 + '@esbuild/linux-ppc64': 0.27.3 + '@esbuild/linux-riscv64': 0.27.3 + '@esbuild/linux-s390x': 0.27.3 + '@esbuild/linux-x64': 0.27.3 + '@esbuild/netbsd-arm64': 0.27.3 + '@esbuild/netbsd-x64': 0.27.3 + '@esbuild/openbsd-arm64': 0.27.3 + '@esbuild/openbsd-x64': 0.27.3 + '@esbuild/openharmony-arm64': 0.27.3 + '@esbuild/sunos-x64': 0.27.3 + '@esbuild/win32-arm64': 0.27.3 + '@esbuild/win32-ia32': 0.27.3 + '@esbuild/win32-x64': 0.27.3 + + escalade@3.2.0: {} + + esprima@4.0.1: {} + + event-target-shim@5.0.1: {} + + eventemitter3@5.0.4: {} + + exsolve@1.0.8: {} + + fast-glob@3.3.3: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.8 + + fast-xml-builder@1.0.0: {} + + fast-xml-parser@5.4.1: + dependencies: + fast-xml-builder: 1.0.0 + strnum: 2.1.2 + + fastq@1.20.1: + dependencies: + reusify: 1.1.0 + + fd-package-json@2.0.0: + dependencies: + walk-up-path: 4.0.0 + + fdir@6.5.0(picomatch@4.0.3): + optionalDependencies: + picomatch: 4.0.3 + + fetch-blob@3.2.0: + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 3.3.3 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + form-data-encoder@1.7.2: {} + + form-data@4.0.5: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + es-set-tostringtag: 2.1.0 + hasown: 2.0.2 + mime-types: 2.1.35 + + formatly@0.3.0: + dependencies: + fd-package-json: 2.0.0 + + formdata-node@4.4.1: + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 4.0.0-beta.3 + + formdata-polyfill@4.0.10: + dependencies: + fetch-blob: 3.2.0 + + fsevents@2.3.3: + optional: true + + function-bind@1.1.2: {} + + gensync@1.0.0-beta.2: {} + + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.2 + math-intrinsics: 1.1.0 + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.1 + + get-tsconfig@4.13.6: + dependencies: + resolve-pkg-maps: 1.0.0 + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + globrex@0.1.2: {} + + goober@2.1.18(csstype@3.2.3): + dependencies: + csstype: 3.2.3 + + gopd@1.2.0: {} + + graceful-fs@4.2.11: {} + + h3@2.0.1-rc.14: + dependencies: + rou3: 0.7.12 + srvx: 0.11.8 + + has-symbols@1.1.0: {} + + has-tostringtag@1.0.2: + dependencies: + has-symbols: 1.1.0 + + hasown@2.0.2: + dependencies: + function-bind: 1.1.2 + + htmlparser2@10.1.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + entities: 7.0.1 + + humanize-ms@1.2.1: + dependencies: + ms: 2.1.3 + + iconv-lite@0.6.3: + dependencies: + safer-buffer: 2.1.2 + + immer@10.2.0: {} + + immer@11.1.4: {} + + internmap@2.0.3: {} + + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-extglob@2.1.1: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-number@7.0.0: {} + + isbot@5.1.35: {} + + jiti@2.6.1: {} + + jose@6.1.3: {} + + js-base64@3.7.8: {} + + js-tokens@4.0.0: {} + + js-yaml@4.1.1: + dependencies: + argparse: 2.0.1 + + jsesc@3.1.0: {} + + json5@2.2.3: {} + + jsonc-parser@3.3.1: {} + + kleur@4.1.5: {} + + knip@5.85.0(@types/node@22.19.11)(typescript@5.9.3): + dependencies: + '@nodelib/fs.walk': 1.2.8 + '@types/node': 22.19.11 + fast-glob: 3.3.3 + formatly: 0.3.0 + jiti: 2.6.1 + js-yaml: 4.1.1 + minimist: 1.2.8 + oxc-resolver: 11.18.0 + picocolors: 1.1.1 + picomatch: 4.0.3 + smol-toml: 1.6.0 + strip-json-comments: 5.0.3 + typescript: 5.9.3 + zod: 4.3.6 + + launch-editor@2.13.1: + dependencies: + picocolors: 1.1.1 + shell-quote: 1.8.3 + + libsql@0.5.22: + dependencies: + '@neon-rs/load': 0.0.4 + detect-libc: 2.0.2 + optionalDependencies: + '@libsql/darwin-arm64': 0.5.22 + '@libsql/darwin-x64': 0.5.22 + '@libsql/linux-arm-gnueabihf': 0.5.22 + '@libsql/linux-arm-musleabihf': 0.5.22 + '@libsql/linux-arm64-gnu': 0.5.22 + '@libsql/linux-arm64-musl': 0.5.22 + '@libsql/linux-x64-gnu': 0.5.22 + '@libsql/linux-x64-musl': 0.5.22 + '@libsql/win32-x64-msvc': 0.5.22 + + lightningcss-android-arm64@1.31.1: + optional: true + + lightningcss-darwin-arm64@1.31.1: + optional: true + + lightningcss-darwin-x64@1.31.1: + optional: true + + lightningcss-freebsd-x64@1.31.1: + optional: true + + lightningcss-linux-arm-gnueabihf@1.31.1: + optional: true + + lightningcss-linux-arm64-gnu@1.31.1: + optional: true + + lightningcss-linux-arm64-musl@1.31.1: + optional: true + + lightningcss-linux-x64-gnu@1.31.1: + optional: true + + lightningcss-linux-x64-musl@1.31.1: + optional: true + + lightningcss-win32-arm64-msvc@1.31.1: + optional: true + + lightningcss-win32-x64-msvc@1.31.1: + optional: true + + lightningcss@1.31.1: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.31.1 + lightningcss-darwin-arm64: 1.31.1 + lightningcss-darwin-x64: 1.31.1 + lightningcss-freebsd-x64: 1.31.1 + lightningcss-linux-arm-gnueabihf: 1.31.1 + lightningcss-linux-arm64-gnu: 1.31.1 + lightningcss-linux-arm64-musl: 1.31.1 + lightningcss-linux-x64-gnu: 1.31.1 + lightningcss-linux-x64-musl: 1.31.1 + lightningcss-win32-arm64-msvc: 1.31.1 + lightningcss-win32-x64-msvc: 1.31.1 + + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + + lucide-react@0.542.0(react@19.2.4): + dependencies: + react: 19.2.4 + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + math-intrinsics@1.1.0: {} + + merge2@1.4.1: {} + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + mime-db@1.52.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + + miniflare@4.20260219.0: + dependencies: + '@cspotcode/source-map-support': 0.8.1 + sharp: 0.34.5 + undici: 7.18.2 + workerd: 1.20260219.0 + ws: 8.18.0 + youch: 4.1.0-beta.10 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + minimist@1.2.8: {} + + ms@2.1.3: {} + + nanoid@3.3.11: {} + + node-domexception@1.0.0: {} + + node-fetch@2.7.0: + dependencies: + whatwg-url: 5.0.0 + + node-fetch@3.3.2: + dependencies: + data-uri-to-buffer: 4.0.1 + fetch-blob: 3.2.0 + formdata-polyfill: 4.0.10 + + node-releases@2.0.27: {} + + normalize-path@3.0.0: {} + + nth-check@2.1.1: + dependencies: + boolbase: 1.0.0 + + oxc-resolver@11.18.0: + optionalDependencies: + '@oxc-resolver/binding-android-arm-eabi': 11.18.0 + '@oxc-resolver/binding-android-arm64': 11.18.0 + '@oxc-resolver/binding-darwin-arm64': 11.18.0 + '@oxc-resolver/binding-darwin-x64': 11.18.0 + '@oxc-resolver/binding-freebsd-x64': 11.18.0 + '@oxc-resolver/binding-linux-arm-gnueabihf': 11.18.0 + '@oxc-resolver/binding-linux-arm-musleabihf': 11.18.0 + '@oxc-resolver/binding-linux-arm64-gnu': 11.18.0 + '@oxc-resolver/binding-linux-arm64-musl': 11.18.0 + '@oxc-resolver/binding-linux-ppc64-gnu': 11.18.0 + '@oxc-resolver/binding-linux-riscv64-gnu': 11.18.0 + '@oxc-resolver/binding-linux-riscv64-musl': 11.18.0 + '@oxc-resolver/binding-linux-s390x-gnu': 11.18.0 + '@oxc-resolver/binding-linux-x64-gnu': 11.18.0 + '@oxc-resolver/binding-linux-x64-musl': 11.18.0 + '@oxc-resolver/binding-openharmony-arm64': 11.18.0 + '@oxc-resolver/binding-wasm32-wasi': 11.18.0 + '@oxc-resolver/binding-win32-arm64-msvc': 11.18.0 + '@oxc-resolver/binding-win32-ia32-msvc': 11.18.0 + '@oxc-resolver/binding-win32-x64-msvc': 11.18.0 + + oxlint@1.50.0: + optionalDependencies: + '@oxlint/binding-android-arm-eabi': 1.50.0 + '@oxlint/binding-android-arm64': 1.50.0 + '@oxlint/binding-darwin-arm64': 1.50.0 + '@oxlint/binding-darwin-x64': 1.50.0 + '@oxlint/binding-freebsd-x64': 1.50.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.50.0 + '@oxlint/binding-linux-arm-musleabihf': 1.50.0 + '@oxlint/binding-linux-arm64-gnu': 1.50.0 + '@oxlint/binding-linux-arm64-musl': 1.50.0 + '@oxlint/binding-linux-ppc64-gnu': 1.50.0 + '@oxlint/binding-linux-riscv64-gnu': 1.50.0 + '@oxlint/binding-linux-riscv64-musl': 1.50.0 + '@oxlint/binding-linux-s390x-gnu': 1.50.0 + '@oxlint/binding-linux-x64-gnu': 1.50.0 + '@oxlint/binding-linux-x64-musl': 1.50.0 + '@oxlint/binding-openharmony-arm64': 1.50.0 + '@oxlint/binding-win32-arm64-msvc': 1.50.0 + '@oxlint/binding-win32-ia32-msvc': 1.50.0 + '@oxlint/binding-win32-x64-msvc': 1.50.0 + + parse5-htmlparser2-tree-adapter@7.1.0: + dependencies: + domhandler: 5.0.3 + parse5: 7.3.0 + + parse5-parser-stream@7.1.2: + dependencies: + parse5: 7.3.0 + + parse5@7.3.0: + dependencies: + entities: 6.0.1 + + path-to-regexp@6.3.0: {} + + pathe@2.0.3: {} + + picocolors@1.1.1: {} + + picomatch@2.3.1: {} + + picomatch@4.0.3: {} + + postcss@8.5.6: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + prettier@3.8.1: {} + + promise-limit@2.7.0: {} + + queue-microtask@1.2.3: {} + + react-dom@19.2.4(react@19.2.4): + dependencies: + react: 19.2.4 + scheduler: 0.27.0 + + react-is@19.2.4: {} + + react-redux@9.2.0(@types/react@19.2.14)(react@19.2.4)(redux@5.0.1): + dependencies: + '@types/use-sync-external-store': 0.0.6 + react: 19.2.4 + use-sync-external-store: 1.6.0(react@19.2.4) + optionalDependencies: + '@types/react': 19.2.14 + redux: 5.0.1 + + react-refresh@0.17.0: {} + + react@19.2.4: {} + + readdirp@3.6.0: + dependencies: + picomatch: 2.3.1 + + recast@0.23.11: + dependencies: + ast-types: 0.16.1 + esprima: 4.0.1 + source-map: 0.6.1 + tiny-invariant: 1.3.3 + tslib: 2.8.1 + + recharts@3.7.0(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react-is@19.2.4)(react@19.2.4)(redux@5.0.1): + dependencies: + '@reduxjs/toolkit': 2.11.2(react-redux@9.2.0(@types/react@19.2.14)(react@19.2.4)(redux@5.0.1))(react@19.2.4) + clsx: 2.1.1 + decimal.js-light: 2.5.1 + es-toolkit: 1.44.0 + eventemitter3: 5.0.4 + immer: 10.2.0 + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + react-is: 19.2.4 + react-redux: 9.2.0(@types/react@19.2.14)(react@19.2.4)(redux@5.0.1) + reselect: 5.1.1 + tiny-invariant: 1.3.3 + use-sync-external-store: 1.6.0(react@19.2.4) + victory-vendor: 37.3.6 + transitivePeerDependencies: + - '@types/react' + - redux + + redux-thunk@3.1.0(redux@5.0.1): + dependencies: + redux: 5.0.1 + + redux@5.0.1: {} + + remeda@2.33.6: {} + + reselect@5.1.1: {} + + resolve-pkg-maps@1.0.0: {} + + reusify@1.1.0: {} + + robots-parser@3.0.1: {} + + rollup@4.59.0: + dependencies: + '@types/estree': 1.0.8 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.59.0 + '@rollup/rollup-android-arm64': 4.59.0 + '@rollup/rollup-darwin-arm64': 4.59.0 + '@rollup/rollup-darwin-x64': 4.59.0 + '@rollup/rollup-freebsd-arm64': 4.59.0 + '@rollup/rollup-freebsd-x64': 4.59.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.59.0 + '@rollup/rollup-linux-arm-musleabihf': 4.59.0 + '@rollup/rollup-linux-arm64-gnu': 4.59.0 + '@rollup/rollup-linux-arm64-musl': 4.59.0 + '@rollup/rollup-linux-loong64-gnu': 4.59.0 + '@rollup/rollup-linux-loong64-musl': 4.59.0 + '@rollup/rollup-linux-ppc64-gnu': 4.59.0 + '@rollup/rollup-linux-ppc64-musl': 4.59.0 + '@rollup/rollup-linux-riscv64-gnu': 4.59.0 + '@rollup/rollup-linux-riscv64-musl': 4.59.0 + '@rollup/rollup-linux-s390x-gnu': 4.59.0 + '@rollup/rollup-linux-x64-gnu': 4.59.0 + '@rollup/rollup-linux-x64-musl': 4.59.0 + '@rollup/rollup-openbsd-x64': 4.59.0 + '@rollup/rollup-openharmony-arm64': 4.59.0 + '@rollup/rollup-win32-arm64-msvc': 4.59.0 + '@rollup/rollup-win32-ia32-msvc': 4.59.0 + '@rollup/rollup-win32-x64-gnu': 4.59.0 + '@rollup/rollup-win32-x64-msvc': 4.59.0 + fsevents: 2.3.3 + + rou3@0.7.12: {} + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + safer-buffer@2.1.2: {} + + scheduler@0.27.0: {} + + semver@6.3.1: {} + + semver@7.7.4: {} + + seroval-plugins@1.5.0(seroval@1.5.0): + dependencies: + seroval: 1.5.0 + + seroval@1.5.0: {} + + sharp@0.34.5: + dependencies: + '@img/colour': 1.0.0 + detect-libc: 2.1.2 + semver: 7.7.4 + optionalDependencies: + '@img/sharp-darwin-arm64': 0.34.5 + '@img/sharp-darwin-x64': 0.34.5 + '@img/sharp-libvips-darwin-arm64': 1.2.4 + '@img/sharp-libvips-darwin-x64': 1.2.4 + '@img/sharp-libvips-linux-arm': 1.2.4 + '@img/sharp-libvips-linux-arm64': 1.2.4 + '@img/sharp-libvips-linux-ppc64': 1.2.4 + '@img/sharp-libvips-linux-riscv64': 1.2.4 + '@img/sharp-libvips-linux-s390x': 1.2.4 + '@img/sharp-libvips-linux-x64': 1.2.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 + '@img/sharp-libvips-linuxmusl-x64': 1.2.4 + '@img/sharp-linux-arm': 0.34.5 + '@img/sharp-linux-arm64': 0.34.5 + '@img/sharp-linux-ppc64': 0.34.5 + '@img/sharp-linux-riscv64': 0.34.5 + '@img/sharp-linux-s390x': 0.34.5 + '@img/sharp-linux-x64': 0.34.5 + '@img/sharp-linuxmusl-arm64': 0.34.5 + '@img/sharp-linuxmusl-x64': 0.34.5 + '@img/sharp-wasm32': 0.34.5 + '@img/sharp-win32-arm64': 0.34.5 + '@img/sharp-win32-ia32': 0.34.5 + '@img/sharp-win32-x64': 0.34.5 + + shell-quote@1.8.3: {} + + smol-toml@1.6.0: {} + + solid-js@1.9.11: + dependencies: + csstype: 3.2.3 + seroval: 1.5.0 + seroval-plugins: 1.5.0(seroval@1.5.0) + + sonner@2.0.7(react-dom@19.2.4(react@19.2.4))(react@19.2.4): + dependencies: + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + + source-map-js@1.2.1: {} + + source-map-support@0.5.21: + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + + source-map@0.6.1: {} + + source-map@0.7.6: {} + + srvx@0.11.7: {} + + srvx@0.11.8: {} + + strip-json-comments@5.0.3: {} + + strnum@2.1.2: {} + + supports-color@10.2.2: {} + + tailwindcss@4.2.1: {} + + tapable@2.3.0: {} + + tiny-invariant@1.3.3: {} + + tiny-warning@1.0.3: {} + + tinyglobby@0.2.15: + dependencies: + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tr46@0.0.3: {} + + tsconfck@3.1.6(typescript@5.9.3): + optionalDependencies: + typescript: 5.9.3 + + tslib@2.8.1: {} + + tsx@4.21.0: + dependencies: + esbuild: 0.27.3 + get-tsconfig: 4.13.6 + optionalDependencies: + fsevents: 2.3.3 + + typescript@5.9.3: {} + + ufo@1.6.3: {} + + undici-types@5.26.5: {} + + undici-types@6.21.0: {} + + undici@7.18.2: {} + + undici@7.22.0: {} + + unenv@2.0.0-rc.24: + dependencies: + pathe: 2.0.3 + + unplugin@2.3.11: + dependencies: + '@jridgewell/remapping': 2.3.5 + acorn: 8.16.0 + picomatch: 4.0.3 + webpack-virtual-modules: 0.6.2 + + update-browserslist-db@1.2.3(browserslist@4.28.1): + dependencies: + browserslist: 4.28.1 + escalade: 3.2.0 + picocolors: 1.1.1 + + use-sync-external-store@1.6.0(react@19.2.4): + dependencies: + react: 19.2.4 + + victory-vendor@37.3.6: + dependencies: + '@types/d3-array': 3.2.2 + '@types/d3-ease': 3.0.2 + '@types/d3-interpolate': 3.0.4 + '@types/d3-scale': 4.0.9 + '@types/d3-shape': 3.1.8 + '@types/d3-time': 3.0.4 + '@types/d3-timer': 3.0.2 + d3-array: 3.2.4 + d3-ease: 3.0.1 + d3-interpolate: 3.0.1 + d3-scale: 4.0.2 + d3-shape: 3.2.0 + d3-time: 3.1.0 + d3-timer: 3.0.1 + + vite-tsconfig-paths@5.1.4(typescript@5.9.3)(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)): + dependencies: + debug: 4.4.3 + globrex: 0.1.2 + tsconfck: 3.1.6(typescript@5.9.3) + optionalDependencies: + vite: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + transitivePeerDependencies: + - supports-color + - typescript + + vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0): + dependencies: + esbuild: 0.27.3 + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + postcss: 8.5.6 + rollup: 4.59.0 + tinyglobby: 0.2.15 + optionalDependencies: + '@types/node': 22.19.11 + fsevents: 2.3.3 + jiti: 2.6.1 + lightningcss: 1.31.1 + tsx: 4.21.0 + + vitefu@1.1.2(vite@7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0)): + optionalDependencies: + vite: 7.3.1(@types/node@22.19.11)(jiti@2.6.1)(lightningcss@1.31.1)(tsx@4.21.0) + + walk-up-path@4.0.0: {} + + web-streams-polyfill@3.3.3: {} + + web-streams-polyfill@4.0.0-beta.3: {} + + webidl-conversions@3.0.1: {} + + webpack-virtual-modules@0.6.2: {} + + whatwg-encoding@3.1.1: + dependencies: + iconv-lite: 0.6.3 + + whatwg-mimetype@4.0.0: {} + + whatwg-url@5.0.0: + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + + workerd@1.20260219.0: + optionalDependencies: + '@cloudflare/workerd-darwin-64': 1.20260219.0 + '@cloudflare/workerd-darwin-arm64': 1.20260219.0 + '@cloudflare/workerd-linux-64': 1.20260219.0 + '@cloudflare/workerd-linux-arm64': 1.20260219.0 + '@cloudflare/workerd-windows-64': 1.20260219.0 + + wrangler@4.67.0(@cloudflare/workers-types@4.20260302.0): + dependencies: + '@cloudflare/kv-asset-handler': 0.4.2 + '@cloudflare/unenv-preset': 2.14.0(unenv@2.0.0-rc.24)(workerd@1.20260219.0) + blake3-wasm: 2.1.5 + esbuild: 0.27.3 + miniflare: 4.20260219.0 + path-to-regexp: 6.3.0 + unenv: 2.0.0-rc.24 + workerd: 1.20260219.0 + optionalDependencies: + '@cloudflare/workers-types': 4.20260302.0 + fsevents: 2.3.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + + ws@8.18.0: {} + + ws@8.19.0: {} + + xmlbuilder2@4.0.3: + dependencies: + '@oozcitak/dom': 2.0.2 + '@oozcitak/infra': 2.0.2 + '@oozcitak/util': 10.0.0 + js-yaml: 4.1.1 + + yallist@3.1.1: {} + + youch-core@0.3.3: + dependencies: + '@poppinss/exception': 1.2.3 + error-stack-parser-es: 1.0.5 + + youch@4.1.0-beta.10: + dependencies: + '@poppinss/colors': 4.1.6 + '@poppinss/dumper': 0.6.5 + '@speed-highlight/core': 1.2.14 + cookie: 1.1.1 + youch-core: 0.3.3 + + zod@3.25.76: {} + + zod@4.3.6: {} diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..09c8324f8c6781bc90fcf5dd38e0702bd5f171f3 GIT binary patch literal 29964 zcmV(|K+(U6P)PyA07*naRCr$OT?d?1#nu1MePw&!Wnn2xuPUHa5fOWhim}9AqQ;m6yGg#7n3xz# z1e2(VEr~UX#u6J?uz-jP0@C{~yUX_8U%B&n=9V}2zI)$$yDXOI&Cl@mmYFkWPMs^5clrlPYm*cvVvo6&eHV`@U}e)m!o2H1BvNgM-Ltm3}(T#N?~ z<%27SG9X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O56mk@Z&5$L4uNr8eR@T*J;&%;3>okwp@pnnj^SN#rMZ`7JPBN)1a b=FG literal 0 HcmV?d00001 diff --git a/public/android-chrome-512x512.png b/public/android-chrome-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..11d626ea3d00fddd52861bf0af5554a92fc30d69 GIT binary patch literal 109271 zcmXt9Ra6{Jw;kLqxDzxG++BhN2@b&_xDF89U4sOd!GgO58Qk6785rDxyIsD2t@~8{ z)LnJz$lm*$j#N>S#Xu!N1pojTa$lv?007wcM_2$d;`?&#G57esz&NYPegRZXkR1X5 zQ~)_C2@Ma!lXfJqxpX}L#(p6RJNwvgXFLrR)jW7Q6ly9HTE@MIgQ}K;Bi5(cmsVTM z&s8`$DyldtE~@b#X~sTL$xm>hbB$q#4YRGkEf%-7l$VuH9y&wX@7C`&njwROZQf6F zhhAb`3Mt6O=L$imWgWgsDKSd?)C;&(jO_i4DtU}W{H`|Fwx}+@VJX4R z<8JM<#r_J6u5GooLn^(U7jHKJ`+{1$)%|*0V{})m6LNjnPI!X0Z~;tJ?fZ4ViB4jj zrhmcv|9G5#APwtwmKBMA3q(e+LCUp=$$%x#>q@`lYdlqrK}%Arw%eI*;Jq9W{4$sA zpEKMD5kPS3*hweD!?$zuhB- z-5&YeM+sc5b@WscW4`6aX0FlDk>f+XgXI>sPu;5=V=MOG!l#RKubQ3FH8I0-Vd<3> zf4P}x{qziUcYr52eu)NpBje$v^q>q46#=N3iT`OJ=QF$(|4ZFnCI{x38>v27Xi|0l ztS_diZfv8P>jo%V@LF7=SKG`vqkL=|nOlzR{fx2wPrNXEc~h&0WK?)_S!<%$yoThc zv!hM#jX^Ka2qV9!%PjA|%@xg8I9X@FQu-U8J75&vj^y8jmFF;==MGKaHz&7YQ2S?g z3@*c6F=e|Ki}Rop!7;j9+6_DS>D%cNH977Bwhe$@=4)f1E2eO#uF43dnxaP7?FqJj zg6DZf>4knZMP0Oi{`*WqXvK7iOrWwb_>~VMnLHIFXcpoeTrRPE&G||m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Z_k8^PLuIybGz!EkMhPAa4=cwrtN zKpE2uOjzu1M;wIbi~yPs^2siIxvRo?*ec=xV=F*EAQX;-KuV$}Ypy*=DShwVuTGDg zIi>x!E`g1fKqmkjJ^g*~=Ocl)o=QKzeKvhQrSxbCavb6&KxI$bTzu#G6IiQ=KyH@O z3>8i!E?_0ExWM28=V zoej0xhLJFk<(anreJ-VR?D*@_w=T~N^|y8jY?cH%0obhh?xWqu5_rq0^s`qi(%mWT zZb@UJkOKt4sek$G`zX&2Zg<{-CkO=A6{z&a*e_~pfq#RX;rUOcv+14hJ(9k;kEfw` ztxI5IB+v=K#!Ph|=sHQ@^&d+I9{t1gtBXZ?ZA$5h|DSSr0+I!DvLnJU{vOl}@Ne$x ze!CHfZ=^-~m+kHJ$!{D;_k8@ebatKO+sD!+un7|QKjQ7a{t~vDDgXcg07*qoM6N<$ Ef@mE(_W%F@ literal 0 HcmV?d00001 diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..5a9423cc02c40ea066d2a061cdcdf621c0718cb1 GIT binary patch literal 27246 zcmV)0K+eC3P)PyA07*naRCr$OeFvOfMfLx8?t5>0FWHvfdm})IKmh4Yf;2%;fge8wDFHVRn*nc_!V)g&V^58TUP{ybc zoX&t`mGN;5N`L`FIOn-w0Oy2bfa?XB1l1p!&yA0ypGID@4MrYDWwI6kRg9}4D6E{T z=u>=nlZVu8_l`?i_up}Ir@(&!4d8sveaCEve{T+w&=$UmgCE9$a{-oYK~-bH+TRA* z47fUp>x8%rcR7y}=-+rjKcRXwIVS}0f4Q?~SXfafsT@}_j$^=3Aa}@w3(3P0 zMTCs2{~ZNQ7mPUt3ny_sVJQ`E6KM4M#WP0(5`s8KBN#qX7#{Yk%BI^!rtbby4`c$3 z|4IY;&dQDn9Q+p?Y%(}Tf*~mZntb&>;Ru3ZrvknaU_bxa@XRe=y-sR9`pNtPEJa7 ziV~!6^m4U&v^PfGwt7T)Mw_XAy?CP@c?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&XWx%hKiE_J2If|1waZ6m0+i N002ovPDHLkV1k;v<;Va4 literal 0 HcmV?d00001 diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..e3389b00443d602a249b48ae0e21e333971c9c1e GIT binary patch literal 832 zcmV-G1Hb%Px%`bk7VR5(v%lW%BSRTRK~=OuZ4FYhI3vvy^4t8t~UDHGBS#44K%hSiDal!9Nj zeb^RZ;3&cb72F3w6s4;uUA7>Cf>1=Z56;a$8wZ=NKHtq z33GDV=_|V0E(QPTEB1=edhG{{=-+C??RQi7*e9J7YBnZR+PppIKjA8EV+}Yt`zH<7 zGR%O5D3|Ef)99hUXu19=Cxaki@6toZIe&u-X0(oDFRl|x6P7Bwc^mB(i9|gOY)Jh6DaPkmt z8Wr!@TP1|RPlYRlJe^eRB0K(gn91{(=zi{HrkpHIflw8&q%;+U!V&dFPYDQAWJh@< zwcklN9VEX?vG;}75GqCepKC25M^xV%BcR%A8c!)S5k4P0$g}HS#lA6zy`~K@9&EX4 zOrvr%_1U2dp~gg6G*;&`Jag*?jZTJv+$S`*#)zme_SFWOCm*F4U&hJihqxAu;8z}x zWv7!u>YKRa3PUJQs55wC)i4QvFOAV0jW$?1cnUJJ7Vl?z_ge{9q!zpfCJxd8vJ>-ql@0&`Bttn1~4;s>8tax%hr(^q#A_*wqAv( zh(T&>hJD?OhiP$sxAzkd1W1^EHV1WL3xM&6$*HhG@|8}OjPpG{+!;GC>w;ha0000< KMNUMnLSTZGXp5cz literal 0 HcmV?d00001 diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..900c77d444c9b31e6144b6ac0bb1ab7bb7ca767f GIT binary patch literal 2115 zcmV-J2)y@+P)Px+{YgYYR9Hu?mwRj!*A>QpcV>2XcJ0O3#$YVRaSSGa5y3nY2&Sn>jS48BR4oZ8 zDxi=C8bm>jXj)n-gy4^wM4(g!nTM3PD6Ik{5G77fQfQ&nJd9OC2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_8%`LYh*4j&tLj~0#LfK8RUqEt+ui2IKNN& z0dC>IFim!UycMxNT&8H{h~+35`q{w(0aR%J>_qc zY?l;G`U!dNG<@eOan78I;_4|Q(b6VK+*MI@y&I#)7OTUTgxs~U6v^tLhOqA+dq~y8 zj2!+n^Ty7mp}Ll|1`~aHKEkOYTvoyf^GFTs7jnm@ZUTc>8nVVT%1GiFo73Q@ar zXUfXyMNQT25qg_FMq^|^uFuQN_IoUBy2X;aH_) zV}cXu{L;aUoLK}_jbo$p_$2cQDpE&L=Nc9bF!H2@0!->`2^_p|Ix}`0A2@bE+^%1V zKLC~mb{h;&g`CHbd3j6--e6n923pgv;m{ypi?} zRa!pc=1sU=4;}3g3P(;faO%jM#}2Y;$*LHDl6~XI%({ZA#hTAZVet8(t&Le6XUW8J z+*%+?eYy+m8rapoUq}311y2BOcYxQ>DXl2xQ{Q4pOGCPxk=h@l-ZTuF8VlI8CUzW0 z)A8$)64~k97!5~NK-XC?`R~kjo*+es^dxX3IE{nob)En!!pa>F-0{MR)a*___eBd{&XI#(sc0bg# zz>#l?c<<``c&t}&S~JlJkHT;2gwhHIcifWh&qc?tw9{bpdw5FkvLCNxKe$W zrOStMF^Pj%vlo|7vP~7NcW7t>sgAtcdK^ZDn6MKPglXt@b~^)Xnf||A%@XV1EBhE{ zS!~u6Ub3s`iK-urjUF8YbQ_0V8ao%x;=5f=6G24&uh~mVP_W1*cuvzOw5#OURMMjk tHCpW&w;d{#x{a?ig%htm&ycR?{{iM;1e;Am{%-&P002ovPDHLkV1jPm0a*Y5 literal 0 HcmV?d00001 diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..1a1751676f7e22811b1070572093996c93c87617 GIT binary patch literal 15406 zcmeHOd0bW1+Fl2T)asg*b?Ynb=5X`&-CNczGfPshnW^PmhMJl=CJLyC8iErjB7!1= z%=0WD0t$kNf(oc84uDKf;D7_*z&VHWeDAyW*>FJYTG{>QyXW_NS$nU&*84nb?X}k4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w(ut18LxtE|kXlIyY$_C<58+51cj$Uo$i=lAW3WnCT=uk7)l#BxM^3GHGp sUYw*kZ&9czwx}V4-fB3n{`}%3F2iNH4%cNLe+aq%I{j}CJVp=vAC(LAUjP6A literal 0 HcmV?d00001 diff --git a/public/favicon.png b/public/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..1e77bc06091ade4496525a09d8900675afcf03f0 GIT binary patch literal 1507 zcmV<91swW`P)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91AfN*P1ONa40RR91AOHXW0IY^$^8f$^O-V#SR9Fd>S3Qp$MHK9ro!#4$ zEP@L_hX|b@f=!*_42h6mKu7{)4)_U*>1>0bCkUj;Z1X!7 zHe(Ew^Oi(|bW3J~xu+)XbtFF?4>!7TH$>(D_atUQVEj(8fGvYu2NF33#JZX>)(Vj8 zIi@z>Glt?6t~;Lf(|C8F>;WF^8F<^s7Scr!sZc01uB?HMHoL5+FZ>B(g+r-)?Sn)#3Zal#?G@GAwO5U27MpGOlC2+_saA)rl zP-<@-n~;PQOlm|Hi<+W;NdR;5+=zADzM&?!+CPD36=cGwHy6!D^vPEHG?rO`K>G|M z3FposX{yT132wuw1OR3Um_5JoKB#6?!QgBupIT;?YIr;WcpmuCE>S75mZid+ens#E zGPuYjiG0UNNVWu=f!Id^?9)34)eIpu-`j_~W0iAQzK(}XYc_!;87Tk~?4tq|h=2(! zuq0HCiNK)@+ocCKR3q1REdUju>HdYxd>JX@%oOibg+J~D+}rhz54D!NfC{h-OYk{M zkzmFtdrL@nL0bm8nF@pob1CeLC>12ef#in-Bzv2!wi)Iuwq24)`AH}|0QNQ^f$KHv z?5PBPo1*#GAuAk+Poe`?UJ>mP`@~d4a(103j0lwUx@_+$#B&VC%7r>#2$HIiD`KO8L|s3Yp%M}BT0;NJDzZtPnx=4%enhU zhW*pNN0t`^4%5MKAR+}=^Q?QeqQ`>bbK zf+-ji$Uz8V0?LpX@kh`k%DL)GCA2=@SJNKg56Wh>>pr=7{1PmHqG|~=AdLV3002ov JPDHLkV1ivgp)>#h literal 0 HcmV?d00001 diff --git a/public/site.webmanifest b/public/site.webmanifest new file mode 100644 index 0000000..fa99de7 --- /dev/null +++ b/public/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/src/client/components/DefaultCatchBoundary.tsx b/src/client/components/DefaultCatchBoundary.tsx new file mode 100644 index 0000000..5ac5514 --- /dev/null +++ b/src/client/components/DefaultCatchBoundary.tsx @@ -0,0 +1,48 @@ +import { Link, rootRouteId, useMatch, useRouter } from "@tanstack/react-router"; +import type { ErrorComponentProps } from "@tanstack/react-router"; +import { getStandardErrorMessage } from "@/client/lib/error-messages"; + +export function DefaultCatchBoundary({ error }: ErrorComponentProps) { + const router = useRouter(); + const isRoot = useMatch({ + strict: false, + select: (state) => state.id === rootRouteId, + }); + + const message = getStandardErrorMessage( + error, + "Something went wrong. Please try again.", + ); + + return ( +
+

{message}

+
+ + {isRoot ? ( + + Home + + ) : ( + { + e.preventDefault(); + window.history.back(); + }} + > + Go Back + + )} +
+
+ ); +} diff --git a/src/client/components/NotFound.tsx b/src/client/components/NotFound.tsx new file mode 100644 index 0000000..643b1aa --- /dev/null +++ b/src/client/components/NotFound.tsx @@ -0,0 +1,10 @@ +export function NotFound({ children }: { children?: React.ReactNode }) { + return ( +
+

404

+
+ {children ||

The page you are looking for does not exist.

} +
+
+ ); +} diff --git a/src/client/components/Sidebar.tsx b/src/client/components/Sidebar.tsx new file mode 100644 index 0000000..f93a1ec --- /dev/null +++ b/src/client/components/Sidebar.tsx @@ -0,0 +1,112 @@ +import { Link } from "@tanstack/react-router"; +import { ChevronsUpDown, X } from "lucide-react"; +import { projectNavItems } from "@/client/navigation/items"; + +interface SidebarProps { + currentPath: string; + projectId: string | null; + onNavigate?: () => void; + onClose?: () => void; +} + +export function Sidebar({ + currentPath, + projectId, + onNavigate, + onClose, +}: SidebarProps) { + // If we don't have a projectId yet (e.g., root redirect hasn't fired), + // don't render nav links since we can't build the URLs. + if (!projectId) { + return ( +
+
+ + Every App + + {onClose && ( + + )} +
+
+ +
+
+ ); + } + + return ( +
+ {/* Header */} +
+ + Every App + + {onClose && ( + + )} +
+ + {/* Project picker */} +
+
+ +
+
+ + {/* Navigation */} + +
+ ); +} diff --git a/src/client/features/keywords/components.tsx b/src/client/features/keywords/components.tsx new file mode 100644 index 0000000..fe82fe1 --- /dev/null +++ b/src/client/features/keywords/components.tsx @@ -0,0 +1,666 @@ +import { + ChevronDown, + ChevronLeft, + ChevronRight, + ChevronUp, + ExternalLink, + Minus, + TrendingDown, + TrendingUp, +} from "lucide-react"; +import { useEffect, useRef, useState } from "react"; +import { createPortal } from "react-dom"; +import { sortBy } from "remeda"; +import { + Area, + AreaChart, + CartesianGrid, + Tooltip, + XAxis, + YAxis, +} from "recharts"; +import type { + KeywordIntent, + KeywordResearchRow, + MonthlySearch, + SerpResultItem, +} from "@/types/keywords"; +import { formatNumber, scoreTierClass } from "./utils"; + +export type SortField = + | "keyword" + | "searchVolume" + | "cpc" + | "competition" + | "keywordDifficulty"; +export type SortDir = "asc" | "desc"; + +export function HeaderHelpLabel({ + label, + helpText, + delayMs = 150, +}: { + label: string; + helpText: string; + delayMs?: number; +}) { + const [isOpen, setIsOpen] = useState(false); + const [position, setPosition] = useState({ top: 0, left: 0 }); + const openTimeoutRef = useRef | null>(null); + const triggerRef = useRef(null); + + const updatePosition = () => { + const rect = triggerRef.current?.getBoundingClientRect(); + if (!rect) return; + setPosition({ + top: rect.top - 8, + left: rect.left + rect.width / 2, + }); + }; + + const clearOpenTimeout = () => { + if (openTimeoutRef.current) { + clearTimeout(openTimeoutRef.current); + openTimeoutRef.current = null; + } + }; + + const scheduleOpen = () => { + clearOpenTimeout(); + openTimeoutRef.current = setTimeout(() => { + updatePosition(); + setIsOpen(true); + openTimeoutRef.current = null; + }, delayMs); + }; + + const closeNow = () => { + clearOpenTimeout(); + setIsOpen(false); + }; + + useEffect(() => clearOpenTimeout, []); + + useEffect(() => { + if (!isOpen) return; + + updatePosition(); + + const handleReposition = () => updatePosition(); + window.addEventListener("resize", handleReposition); + window.addEventListener("scroll", handleReposition, true); + + return () => { + window.removeEventListener("resize", handleReposition); + window.removeEventListener("scroll", handleReposition, true); + }; + }, [isOpen]); + + return ( + { + if (e.key === "Escape") closeNow(); + }} + > + {label} + {isOpen && typeof document !== "undefined" + ? createPortal( + + {helpText} + , + document.body, + ) + : null} + + ); +} + +export function OverviewStats({ keyword }: { keyword: KeywordResearchRow }) { + return ( +
+
+ + {keyword.keyword} + + +
+ +
+ +
+
+ Vol + + {formatNumber(keyword.searchVolume)} + +
+
+ CPC + + {keyword.cpc == null ? "-" : `$${keyword.cpc.toFixed(2)}`} + +
+
+ Comp + + {keyword.competition == null ? "-" : keyword.competition.toFixed(2)} + +
+ +
+
+ ); +} + +export function KeywordRow({ + row, + isSelected, + isActive, + onToggle, + onClick, +}: { + row: KeywordResearchRow; + isSelected: boolean; + isActive: boolean; + onToggle: () => void; + onClick: () => void; +}) { + return ( +
+ { + e.stopPropagation(); + onToggle(); + }} + onClick={(e) => e.stopPropagation()} + /> + + + {row.keyword} + + + + {formatNumber(row.searchVolume)} + + + {row.cpc == null ? "-" : row.cpc.toFixed(2)} + + + {row.competition == null ? "-" : row.competition.toFixed(2)} + + +
+ +
+
+ ); +} + +export function KeywordCard({ + row, + isSelected, + isActive, + onToggle, + onClick, +}: { + row: KeywordResearchRow; + isSelected: boolean; + isActive: boolean; + onToggle: () => void; + onClick: () => void; +}) { + return ( +
+
+ { + e.stopPropagation(); + onToggle(); + }} + onClick={(e) => e.stopPropagation()} + /> + + {row.keyword} + + +
+ +
+
+

Volume

+

+ {formatNumber(row.searchVolume)} +

+
+
+

CPC

+

+ {row.cpc == null ? "-" : `$${row.cpc.toFixed(2)}`} +

+
+
+

Comp.

+

+ {row.competition == null ? "-" : row.competition.toFixed(2)} +

+
+
+ +
+ +
+
+ ); +} + +export function SerpAnalysisCard({ + items, + loading, + error, + onRetry, + page, + pageSize, + onPageChange, +}: { + items: SerpResultItem[]; + loading: boolean; + error?: string | null; + onRetry?: () => void; + page: number; + pageSize: number; + onPageChange: (p: number) => void; +}) { + const totalPages = Math.ceil(items.length / pageSize); + const pageItems = items.slice(page * pageSize, (page + 1) * pageSize); + + return ( +
+ {loading ? ( +
+
+
+ {Array.from({ length: 6 }).map((_, index) => ( +
+
+
+
+
+
+
+
+
+
+
+ ))} +
+
+ ) : error ? ( +
+

{error}

+ {onRetry ? ( + + ) : null} +
+ ) : items.length === 0 ? ( +
+ No SERP data available for this keyword +
+ ) : ( + <> +
+ {items.length} organic results +
+ +
+ + + + + + + + + + + + + {pageItems.map((item) => ( + + + + + + + + + ))} + +
#PageTrafficRef. DomainsBacklinksChange
+ {item.rank} + +
+ + {item.title || item.url} + + + + {item.domain} + +
+
+ {formatNumber(item.etv)} + + {formatNumber(item.referringDomains)} + + {formatNumber(item.backlinks)} + + +
+
+ + {totalPages > 1 && ( +
+ + Page {page + 1} of {totalPages} + +
+ + +
+
+ )} + + )} +
+ ); +} + +function RankChangeBadge({ + change, + isNew, +}: { + change: number | null; + isNew: boolean; +}) { + if (isNew) { + return NEW; + } + if (change == null || change === 0) { + return ; + } + if (change > 0) { + return ( + + +{change} + + ); + } + return ( + + + {change} + + ); +} + +function ScoreBadge({ + value, + size = "sm", +}: { + value: number | null; + size?: "sm" | "lg"; +}) { + if (value == null) return null; + + const tierClass = scoreTierClass(value); + const sizeClasses = + size === "lg" + ? "size-9 text-sm font-bold" + : "size-6 text-[10px] font-semibold"; + + return ( + + {value} + + ); +} + +export function AreaTrendChart({ trend }: { trend: MonthlySearch[] }) { + const sorted = sortBy(trend, (item) => item.year * 100 + item.month); + const last12 = sorted.slice(-12); + const containerRef = useRef(null); + const [chartWidth, setChartWidth] = useState(0); + + if (last12.length === 0) return null; + + useEffect(() => { + const container = containerRef.current; + if (!container) return; + + const update = () => { + setChartWidth(container.clientWidth); + }; + + update(); + + const observer = new ResizeObserver(update); + observer.observe(container); + + return () => { + observer.disconnect(); + }; + }, []); + + const monthLabels = [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec", + ]; + const data = last12.map((m) => ({ + month: monthLabels[m.month - 1], + year: m.year, + searchVolume: m.searchVolume, + label: `${monthLabels[m.month - 1]} ${m.year}`, + })); + + return ( +
+ {chartWidth > 0 ? ( + + + + + + + + + + + formatNumber(Number(value)) + } + tick={{ fill: "var(--trend-axis-color)", fontSize: 11 }} + width={56} + axisLine={false} + tickLine={false} + /> + + + + ) : null} +
+ ); +} + +export function SortHeader({ + label, + helpText, + field, + current, + dir, + onToggle, + className, +}: { + label: string; + helpText?: string; + field: SortField; + current: SortField; + dir: SortDir; + onToggle: (f: SortField) => void; + className?: string; +}) { + const isActive = field === current; + return ( + + ); +} + +function IntentBadge({ intent }: { intent: KeywordIntent }) { + const colors: Record = { + informational: "badge-info", + commercial: "badge-warning", + transactional: "badge-success", + navigational: "badge-primary", + unknown: "badge-ghost", + }; + const shortLabels: Record = { + informational: "Info", + commercial: "Comm", + transactional: "Trans", + navigational: "Nav", + unknown: "?", + }; + return ( + + {shortLabels[intent]} + + ); +} diff --git a/src/client/features/keywords/utils.ts b/src/client/features/keywords/utils.ts new file mode 100644 index 0000000..c183840 --- /dev/null +++ b/src/client/features/keywords/utils.ts @@ -0,0 +1,62 @@ +export const LOCATIONS: Record = { + 2840: "US", + 2826: "UK", + 2276: "DE", + 2250: "FR", + 2036: "AU", + 2124: "CA", + 2356: "IN", + 2076: "BR", +}; + +const LOCATION_LANGUAGE: Record = { + 2840: "en", + 2826: "en", + 2276: "de", + 2250: "fr", + 2036: "en", + 2124: "en", + 2356: "en", + 2076: "pt", +}; + +export function getLanguageCode(locationCode: number): string { + return LOCATION_LANGUAGE[locationCode] ?? "en"; +} + +export function competitionLabel(score: number | null): string { + if (score == null) return "N/A"; + const pct = Math.round(score * 100); + if (pct <= 33) return "low"; + if (pct <= 66) return "medium"; + return "high"; +} + +export function scoreTierClass(value: number | null): string { + if (value == null) return "score-tier-na"; + if (value <= 20) return "score-tier-1"; + if (value <= 35) return "score-tier-2"; + if (value <= 50) return "score-tier-3"; + if (value <= 65) return "score-tier-4"; + if (value <= 80) return "score-tier-5"; + return "score-tier-6"; +} + +export function parseTerms(value: string): string[] { + return value + .toLowerCase() + .split(/[,+]/) + .map((term) => term.trim()) + .filter(Boolean); +} + +export function formatNumber(value: number | null | undefined): string { + if (value == null) return "-"; + return new Intl.NumberFormat().format(value); +} + +export function csvEscape(value: string | number | null | undefined): string { + if (value == null) return ""; + const text = String(value).replace(/"/g, '""'); + return `"${text}"`; +} diff --git a/src/client/hooks/useDomainSearchHistory.ts b/src/client/hooks/useDomainSearchHistory.ts new file mode 100644 index 0000000..e449e5b --- /dev/null +++ b/src/client/hooks/useDomainSearchHistory.ts @@ -0,0 +1,121 @@ +import { useState, useEffect, useCallback } from "react"; + +type DomainSortMode = "rank" | "traffic" | "volume"; +type DomainTab = "keywords" | "pages"; + +export interface DomainSearchHistoryItem { + domain: string; + subdomains: boolean; + sort: DomainSortMode; + tab: DomainTab; + search?: string; + timestamp: number; +} + +type AddDomainSearchInput = Omit; + +const MAX_HISTORY = 20; + +function storageKey(projectId: string) { + return `domain-search-history:${projectId}`; +} + +function loadHistory(projectId: string): DomainSearchHistoryItem[] { + try { + const raw = localStorage.getItem(storageKey(projectId)); + if (!raw) return []; + const parsed = JSON.parse(raw); + if (!Array.isArray(parsed)) return []; + + return parsed + .filter( + (item): item is DomainSearchHistoryItem => + item && + typeof item.domain === "string" && + typeof item.subdomains === "boolean" && + (item.sort === "rank" || + item.sort === "traffic" || + item.sort === "volume") && + (item.tab === "keywords" || item.tab === "pages") && + (item.search === undefined || typeof item.search === "string") && + typeof item.timestamp === "number", + ) + .slice(0, MAX_HISTORY); + } catch { + return []; + } +} + +function saveHistory(projectId: string, items: DomainSearchHistoryItem[]) { + try { + localStorage.setItem(storageKey(projectId), JSON.stringify(items)); + } catch { + // storage full or unavailable - silently ignore + } +} + +function normalizeSearchText(value: string | undefined): string { + return value?.trim() ?? ""; +} + +function isSameSearch( + a: DomainSearchHistoryItem, + b: AddDomainSearchInput, +): boolean { + return ( + a.domain === b.domain && + a.subdomains === b.subdomains && + a.sort === b.sort && + a.tab === b.tab && + normalizeSearchText(a.search) === normalizeSearchText(b.search) + ); +} + +export function useDomainSearchHistory(projectId: string) { + const [history, setHistory] = useState([]); + const [isLoaded, setIsLoaded] = useState(false); + + useEffect(() => { + setHistory(loadHistory(projectId)); + setIsLoaded(true); + }, [projectId]); + + const addSearch = useCallback( + (item: AddDomainSearchInput) => { + setHistory((prev) => { + const filtered = prev.filter( + (existing) => !isSameSearch(existing, item), + ); + const next = [ + { + ...item, + search: normalizeSearchText(item.search) || undefined, + timestamp: Date.now(), + }, + ...filtered, + ].slice(0, MAX_HISTORY); + saveHistory(projectId, next); + return next; + }); + }, + [projectId], + ); + + const removeHistoryItem = useCallback( + (timestamp: number) => { + setHistory((prev) => { + const next = prev.filter((item) => item.timestamp !== timestamp); + saveHistory(projectId, next); + return next; + }); + }, + [projectId], + ); + + const clearHistory = useCallback(() => { + setHistory([]); + saveHistory(projectId, []); + }, [projectId]); + + return { history, isLoaded, addSearch, clearHistory, removeHistoryItem }; +} diff --git a/src/client/hooks/useSearchHistory.ts b/src/client/hooks/useSearchHistory.ts new file mode 100644 index 0000000..d29c93e --- /dev/null +++ b/src/client/hooks/useSearchHistory.ts @@ -0,0 +1,92 @@ +import { useState, useEffect, useCallback } from "react"; + +export interface SearchHistoryItem { + keyword: string; + locationCode: number; + locationName: string; + timestamp: number; +} + +const MAX_HISTORY = 20; + +function storageKey(projectId: string) { + return `search-history:${projectId}`; +} + +function loadHistory(projectId: string): SearchHistoryItem[] { + try { + const raw = localStorage.getItem(storageKey(projectId)); + if (!raw) return []; + const parsed = JSON.parse(raw); + if (!Array.isArray(parsed)) return []; + + return parsed + .filter( + (item): item is SearchHistoryItem => + item && + typeof item.keyword === "string" && + typeof item.locationCode === "number" && + typeof item.locationName === "string" && + typeof item.timestamp === "number", + ) + .slice(0, MAX_HISTORY); + } catch { + return []; + } +} + +function saveHistory(projectId: string, items: SearchHistoryItem[]) { + try { + localStorage.setItem(storageKey(projectId), JSON.stringify(items)); + } catch { + // storage full or unavailable — silently ignore + } +} + +export function useSearchHistory(projectId: string) { + const [history, setHistory] = useState([]); + const [isLoaded, setIsLoaded] = useState(false); + + // Load from localStorage on mount / when projectId changes + useEffect(() => { + setHistory(loadHistory(projectId)); + setIsLoaded(true); + }, [projectId]); + + const addSearch = useCallback( + (keyword: string, locationCode: number, locationName: string) => { + setHistory((prev) => { + // Remove any existing entry for the same keyword+location + const filtered = prev.filter( + (item) => + !(item.keyword === keyword && item.locationCode === locationCode), + ); + const next = [ + { keyword, locationCode, locationName, timestamp: Date.now() }, + ...filtered, + ].slice(0, MAX_HISTORY); + saveHistory(projectId, next); + return next; + }); + }, + [projectId], + ); + + const removeHistoryItem = useCallback( + (timestamp: number) => { + setHistory((prev) => { + const next = prev.filter((item) => item.timestamp !== timestamp); + saveHistory(projectId, next); + return next; + }); + }, + [projectId], + ); + + const clearHistory = useCallback(() => { + setHistory([]); + saveHistory(projectId, []); + }, [projectId]); + + return { history, isLoaded, addSearch, clearHistory, removeHistoryItem }; +} diff --git a/src/client/lib/error-messages.ts b/src/client/lib/error-messages.ts new file mode 100644 index 0000000..6f3389a --- /dev/null +++ b/src/client/lib/error-messages.ts @@ -0,0 +1,21 @@ +import { isErrorCode, type ErrorCode } from "@/shared/error-codes"; + +const STANDARD_MESSAGES: Record = { + UNAUTHENTICATED: "Please sign in and try again.", + FORBIDDEN: "You do not have access to this resource.", + NOT_FOUND: "The requested resource was not found.", + VALIDATION_ERROR: "Please check your input and try again.", + CRAWL_TARGET_BLOCKED: "This crawl target is blocked by security policy.", + RATE_LIMITED: "Too many requests. Please wait and try again.", + CONFLICT: "This request conflicts with existing data.", + INTERNAL_ERROR: "Something went wrong. Please try again.", +}; + +export function getStandardErrorMessage( + error: unknown, + fallback: string = STANDARD_MESSAGES.INTERNAL_ERROR, +): string { + if (!(error instanceof Error)) return fallback; + if (isErrorCode(error.message)) return STANDARD_MESSAGES[error.message]; + return fallback; +} diff --git a/src/client/navigation/items.ts b/src/client/navigation/items.ts new file mode 100644 index 0000000..4b77066 --- /dev/null +++ b/src/client/navigation/items.ts @@ -0,0 +1,34 @@ +import { Bookmark, Bot, ClipboardCheck, Globe, Search } from "lucide-react"; + +export const projectNavItems = [ + { + to: "/p/$projectId/keywords" as const, + label: "Keyword Research", + icon: Search, + matchSegment: "/keywords", + }, + { + to: "/p/$projectId/saved" as const, + label: "Saved Keywords", + icon: Bookmark, + matchSegment: "/saved", + }, + { + to: "/p/$projectId/domain" as const, + label: "Domain Overview", + icon: Globe, + matchSegment: "/domain", + }, + { + to: "/p/$projectId/audit" as const, + label: "Site Audit", + icon: ClipboardCheck, + matchSegment: "/audit", + }, + { + to: "/p/$projectId/ai" as const, + label: "AI", + icon: Bot, + matchSegment: "/ai", + }, +] as const; diff --git a/src/client/styles/app.css b/src/client/styles/app.css new file mode 100644 index 0000000..9412161 --- /dev/null +++ b/src/client/styles/app.css @@ -0,0 +1,256 @@ +@import "tailwindcss"; +@import "./view-transitions.css"; + +@theme { + --container-8xl: 88rem; +} + +:root { + --trend-grid-color: oklch(56% 0.01 255 / 0.28); + --trend-axis-color: oklch(42% 0.01 255 / 0.85); + --trend-fill-start-opacity: 0.32; + --trend-fill-end-opacity: 0.05; + --trend-tooltip-bg: oklch(99% 0.005 255 / 0.96); + --trend-tooltip-border: oklch(84% 0.01 255 / 0.7); + --trend-tooltip-shadow: oklch(0% 0 0 / 0.1); +} + +@plugin "daisyui" { + /* @property isn't supported by some browsers and gives a noisy warning https://github.com/saadeghi/daisyui/issues/3882 */ + exclude: properties; +} + +/* Light theme */ +@plugin "daisyui/theme" { + name: "todo"; + default: true; + prefersdark: false; + color-scheme: light; + --color-base-100: oklch(100% 0 0); + --color-base-200: oklch(97% 0 0); + --color-base-300: oklch(92% 0 0); + --color-base-content: oklch(20% 0 0); + --color-primary: oklch(55% 0.18 260); + --color-primary-content: oklch(100% 0 0); + --color-secondary: oklch(55% 0.15 145); + --color-secondary-content: oklch(100% 0 0); + --color-accent: oklch(55% 0.18 260); + --color-accent-content: oklch(100% 0 0); + --color-neutral: oklch(25% 0 0); + --color-neutral-content: oklch(100% 0 0); + --color-info: oklch(70% 0.15 230); + --color-info-content: oklch(100% 0 0); + --color-success: oklch(65% 0.18 145); + --color-success-content: oklch(100% 0 0); + --color-warning: oklch(80% 0.15 80); + --color-warning-content: oklch(100% 0 0); + --color-error: oklch(65% 0.2 25); + --color-error-content: oklch(100% 0 0); + --radius-selector: 0.5rem; + --radius-field: 0.5rem; + --radius-box: 0.75rem; + --size-selector: 0.25rem; + --size-field: 0.25rem; + --border: 1px; + --depth: 0; + --noise: 0; +} + +/* Dark theme - auto-activates via prefers-color-scheme */ +@plugin "daisyui/theme" { + name: "todo-dark"; + prefersdark: true; + color-scheme: dark; + --color-base-100: oklch(18% 0 0); + --color-base-200: oklch(14% 0 0); + --color-base-300: oklch(22% 0 0); + --color-base-content: oklch(92% 0 0); + --color-primary: oklch(60% 0.18 260); + --color-primary-content: oklch(100% 0 0); + --color-secondary: oklch(60% 0.15 145); + --color-secondary-content: oklch(100% 0 0); + --color-accent: oklch(60% 0.18 260); + --color-accent-content: oklch(100% 0 0); + --color-neutral: oklch(85% 0 0); + --color-neutral-content: oklch(20% 0 0); + --color-info: oklch(70% 0.15 230); + --color-info-content: oklch(100% 0 0); + --color-success: oklch(65% 0.18 145); + --color-success-content: oklch(100% 0 0); + --color-warning: oklch(80% 0.15 80); + --color-warning-content: oklch(100% 0 0); + --color-error: oklch(65% 0.2 25); + --color-error-content: oklch(100% 0 0); + --radius-selector: 0.5rem; + --radius-field: 0.5rem; + --radius-box: 0.75rem; + --size-selector: 0.25rem; + --size-field: 0.25rem; + --border: 1px; + --depth: 0; + --noise: 0; +} + +html, +body { + @apply m-0 bg-base-200; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + height: 100%; + overflow: hidden; +} + +/* Prevent Safari mobile from zooming on input focus (requires 16px minimum) */ +input, +textarea, +select { + @apply text-base; +} + +/* Global input focus styling - use primary color instead of default ring */ +.input:focus, +.input:focus-visible { + outline: none; + border-color: var(--color-primary); + background-color: color-mix(in oklab, var(--color-primary) 10%, transparent); +} + +/* Safe area utilities for mobile devices */ +@layer utilities { + .pb-safe { + padding-bottom: calc(env(safe-area-inset-bottom, 0.5rem) + 0.5rem); + } + .pt-safe { + padding-top: max(env(safe-area-inset-top, 0), 12px); + } +} + +/* Override DaisyUI dock's fixed positioning to use flex layout instead */ +/* This allows the TabBar to work correctly with Safari's browser toolbar */ +.dock { + position: relative; + bottom: auto; + left: auto; + right: auto; + border-top: none; + height: 4rem; + padding-bottom: 0; +} + +/* Touch device optimizations */ +@media (pointer: coarse) { + html { + touch-action: none; + } + body { + touch-action: pan-x pan-y; + } +} + +/* Custom alert styling with darker borders and transparent background */ +.alert { + @apply flex gap-3 rounded-lg border p-4 text-base-content/70; +} + +.alert-warning { + @apply border-warning/70 bg-warning/40 text-base-content/90; +} + +.alert-info { + @apply border-info/70 bg-info/40 text-base-content/90; +} + +.alert-success { + @apply border-success/70 bg-success/40 text-base-content/90; +} + +.alert-error { + @apply border-error/70 bg-error/40 text-base-content/90; +} + +/* Keyword difficulty score badges */ +.score-badge { + @apply border text-white; + border-color: color-mix(in oklab, currentColor 26%, transparent); +} + +.score-tier-1 { + background-color: #22c55e; +} + +.score-tier-2 { + background-color: #6bd84d; +} + +.score-tier-3 { + background-color: #eab308; +} + +.score-tier-4 { + background-color: #f97316; +} + +.score-tier-5 { + background-color: #ef4444; +} + +.score-tier-6 { + background-color: #dc2626; +} + +@media (prefers-color-scheme: dark) { + :root { + --trend-grid-color: oklch(78% 0.01 255 / 0.22); + --trend-axis-color: oklch(84% 0.01 255 / 0.62); + --trend-fill-start-opacity: 0.24; + --trend-fill-end-opacity: 0.03; + --trend-tooltip-bg: oklch(21% 0.01 255 / 0.95); + --trend-tooltip-border: oklch(40% 0.01 255 / 0.65); + --trend-tooltip-shadow: oklch(0% 0 0 / 0.35); + } + + .score-badge { + color: oklch(96% 0.01 95); + filter: saturate(1.26) brightness(1.14); + } + + .score-tier-1 { + background-color: oklch(58% 0.12 148); + } + + .score-tier-2 { + background-color: oklch(60% 0.115 132); + } + + .score-tier-3 { + background-color: oklch(66% 0.11 92); + } + + .score-tier-4 { + background-color: oklch(64% 0.12 56); + } + + .score-tier-5 { + background-color: oklch(62% 0.12 36); + } + + .score-tier-6 { + background-color: oklch(58% 0.11 30); + } + + .alert-warning { + @apply border-warning/60 bg-warning/20; + } + + .alert-info { + @apply border-info/60 bg-info/20; + } + + .alert-success { + @apply border-success/60 bg-success/20; + } + + .alert-error { + @apply border-error/60 bg-error/20; + } +} diff --git a/src/client/styles/view-transitions.css b/src/client/styles/view-transitions.css new file mode 100644 index 0000000..be08673 --- /dev/null +++ b/src/client/styles/view-transitions.css @@ -0,0 +1,55 @@ +/* ============================================ + View Transitions API - Route Animations + ============================================ */ + +/* Opt-in to view transitions */ +@view-transition { + navigation: auto; +} + +/* Named view transitions - only animate main content */ +.main-content { + view-transition-name: main-content; +} + +/* Exclude sidebar and tab bar from view transitions entirely */ +.sidebar, +.tab-bar { + view-transition-name: none; +} + +/* Fade transition for all navigation */ +::view-transition-old(main-content) { + animation: vt-fade-out 150ms ease-out forwards; +} + +::view-transition-new(main-content) { + animation: vt-fade-in 150ms ease-out forwards; +} + +/* Keyframes */ +@keyframes vt-fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} + +@keyframes vt-fade-out { + from { + opacity: 1; + } + to { + opacity: 0; + } +} + +/* Reduce motion for users who prefer it */ +@media (prefers-reduced-motion: reduce) { + ::view-transition-old(main-content), + ::view-transition-new(main-content) { + animation: none; + } +} diff --git a/src/client/tanstack-db/index.ts b/src/client/tanstack-db/index.ts new file mode 100644 index 0000000..3b77c8b --- /dev/null +++ b/src/client/tanstack-db/index.ts @@ -0,0 +1 @@ +export { queryClient } from "./queryClient"; diff --git a/src/client/tanstack-db/queryClient.ts b/src/client/tanstack-db/queryClient.ts new file mode 100644 index 0000000..4d89cd8 --- /dev/null +++ b/src/client/tanstack-db/queryClient.ts @@ -0,0 +1,10 @@ +import { QueryClient } from "@tanstack/query-core"; + +export const queryClient = new QueryClient({ + defaultOptions: { + queries: { + gcTime: 1000 * 60 * 60, + staleTime: 1000 * 60 * 5, // 5 minutes — show cached data instantly, refetch in background after + }, + }, +}); diff --git a/src/db/index.ts b/src/db/index.ts new file mode 100644 index 0000000..09be1d7 --- /dev/null +++ b/src/db/index.ts @@ -0,0 +1,9 @@ +import { drizzle } from "drizzle-orm/d1"; +import * as schema from "./schema"; +import { env } from "cloudflare:workers"; + +// Helper function to get the database instance from D1 binding +export const db = drizzle(env.DB, { schema }); + +// Export schema for use in other files +export { schema }; diff --git a/src/db/schema.ts b/src/db/schema.ts new file mode 100644 index 0000000..0aff4f6 --- /dev/null +++ b/src/db/schema.ts @@ -0,0 +1,262 @@ +import { + sqliteTable, + text, + integer, + real, + uniqueIndex, + index, +} from "drizzle-orm/sqlite-core"; +import { sql } from "drizzle-orm"; + +// Users table +export const users = sqliteTable("users", { + id: text("id").primaryKey(), + email: text("email").notNull().unique(), + createdAt: text("created_at") + .notNull() + .default(sql`(current_timestamp)`), +}); + +// Projects for keyword research +export const projects = sqliteTable("projects", { + id: text("id").primaryKey(), + userId: text("user_id") + .notNull() + .references(() => users.id, { onDelete: "cascade" }), + name: text("name").notNull(), + domain: text("domain"), + // PSI keys are used for Google API abuse-control, not direct billing. + // We still keep handling explicit to make the tradeoff obvious. + pagespeedApiKey: text("pagespeed_api_key"), + createdAt: text("created_at") + .notNull() + .default(sql`(current_timestamp)`), +}); + +// Saved keywords within projects +export const savedKeywords = sqliteTable( + "saved_keywords", + { + id: text("id").primaryKey(), + projectId: text("project_id") + .notNull() + .references(() => projects.id, { onDelete: "cascade" }), + keyword: text("keyword").notNull(), + locationCode: integer("location_code").notNull().default(2840), + languageCode: text("language_code").notNull().default("en"), + createdAt: text("created_at") + .notNull() + .default(sql`(current_timestamp)`), + }, + (table) => [ + uniqueIndex("saved_keywords_unique_project_keyword_location_language").on( + table.projectId, + table.keyword, + table.locationCode, + table.languageCode, + ), + index("saved_keywords_project_created_idx").on( + table.projectId, + table.createdAt, + ), + ], +); + +// Keyword metrics cache +export const keywordMetrics = sqliteTable( + "keyword_metrics", + { + id: integer("id").primaryKey({ autoIncrement: true }), + keyword: text("keyword").notNull(), + locationCode: integer("location_code").notNull(), + languageCode: text("language_code").notNull().default("en"), + searchVolume: integer("search_volume"), + cpc: real("cpc"), + competition: real("competition"), + keywordDifficulty: integer("keyword_difficulty"), + intent: text("intent"), + monthlySearches: text("monthly_searches"), + fetchedAt: text("fetched_at") + .notNull() + .default(sql`(current_timestamp)`), + }, + (table) => [ + uniqueIndex("keyword_metrics_unique_keyword_location_language").on( + table.keyword, + table.locationCode, + table.languageCode, + ), + index("keyword_metrics_lookup_idx").on( + table.keyword, + table.locationCode, + table.languageCode, + table.fetchedAt, + ), + ], +); + +// ============================================================================ +// Site Audit tables +// ============================================================================ + +// One row per audit run +export const audits = sqliteTable( + "audits", + { + id: text("id").primaryKey(), + projectId: text("project_id") + .notNull() + .references(() => projects.id, { onDelete: "cascade" }), + userId: text("user_id") + .notNull() + .references(() => users.id, { onDelete: "cascade" }), + startUrl: text("start_url").notNull(), + status: text("status", { + enum: ["running", "completed", "failed"], + }) + .notNull() + .default("running"), + workflowInstanceId: text("workflow_instance_id"), + // JSON config: { maxPages, psiStrategy, psiApiKey? } + config: text("config").notNull().default("{}"), + // Progress & summary + pagesCrawled: integer("pages_crawled").notNull().default(0), + pagesTotal: integer("pages_total").notNull().default(0), + psiTotal: integer("psi_total").notNull().default(0), + psiCompleted: integer("psi_completed").notNull().default(0), + psiFailed: integer("psi_failed").notNull().default(0), + currentPhase: text("current_phase").default("discovery"), + startedAt: text("started_at") + .notNull() + .default(sql`(current_timestamp)`), + completedAt: text("completed_at"), + }, + (table) => [ + index("audits_project_id_idx").on(table.projectId), + index("audits_user_id_idx").on(table.userId), + ], +); + +// One row per crawled page +export const auditPages = sqliteTable( + "audit_pages", + { + id: text("id").primaryKey(), + auditId: text("audit_id") + .notNull() + .references(() => audits.id, { onDelete: "cascade" }), + url: text("url").notNull(), + statusCode: integer("status_code"), + redirectUrl: text("redirect_url"), + // Metadata + title: text("title"), + metaDescription: text("meta_description"), + canonicalUrl: text("canonical_url"), + robotsMeta: text("robots_meta"), + // Open Graph + ogTitle: text("og_title"), + ogDescription: text("og_description"), + ogImage: text("og_image"), + // Headings + h1Count: integer("h1_count").notNull().default(0), + h2Count: integer("h2_count").notNull().default(0), + h3Count: integer("h3_count").notNull().default(0), + h4Count: integer("h4_count").notNull().default(0), + h5Count: integer("h5_count").notNull().default(0), + h6Count: integer("h6_count").notNull().default(0), + headingOrderJson: text("heading_order_json"), // JSON array of heading levels + // Content + wordCount: integer("word_count").notNull().default(0), + // Images + imagesTotal: integer("images_total").notNull().default(0), + imagesMissingAlt: integer("images_missing_alt").notNull().default(0), + imagesJson: text("images_json"), // JSON array of {src, alt} objects + // Links + internalLinkCount: integer("internal_link_count").notNull().default(0), + externalLinkCount: integer("external_link_count").notNull().default(0), + // Structured data + hasStructuredData: integer("has_structured_data", { mode: "boolean" }) + .notNull() + .default(false), + // Hreflang + hreflangTagsJson: text("hreflang_tags_json"), // JSON array of hreflang values + // Indexability + isIndexable: integer("is_indexable", { mode: "boolean" }) + .notNull() + .default(true), + // Performance + responseTimeMs: integer("response_time_ms"), + }, + (table) => [index("audit_pages_audit_id_idx").on(table.auditId)], +); + +// One row per PSI test (mobile + desktop per page) +export const auditPsiResults = sqliteTable( + "audit_psi_results", + { + id: text("id").primaryKey(), + auditId: text("audit_id") + .notNull() + .references(() => audits.id, { onDelete: "cascade" }), + pageId: text("page_id") + .notNull() + .references(() => auditPages.id, { onDelete: "cascade" }), + strategy: text("strategy", { enum: ["mobile", "desktop"] }).notNull(), + performanceScore: integer("performance_score"), + accessibilityScore: integer("accessibility_score"), + bestPracticesScore: integer("best_practices_score"), + seoScore: integer("seo_score"), + lcpMs: real("lcp_ms"), + cls: real("cls"), + inpMs: real("inp_ms"), + ttfbMs: real("ttfb_ms"), + errorMessage: text("error_message"), + r2Key: text("r2_key"), + payloadSizeBytes: integer("payload_size_bytes"), + }, + (table) => [index("audit_psi_results_audit_id_idx").on(table.auditId)], +); + +// One row per on-demand PSI check (full raw in R2) +export const psiAuditResults = sqliteTable( + "psi_audit_results", + { + id: text("id").primaryKey(), + projectId: text("project_id") + .notNull() + .references(() => projects.id, { onDelete: "cascade" }), + requestedUrl: text("requested_url").notNull(), + finalUrl: text("final_url").notNull(), + strategy: text("strategy", { enum: ["mobile", "desktop"] }).notNull(), + status: text("status", { enum: ["completed", "failed"] }) + .notNull() + .default("completed"), + performanceScore: integer("performance_score"), + accessibilityScore: integer("accessibility_score"), + bestPracticesScore: integer("best_practices_score"), + seoScore: integer("seo_score"), + firstContentfulPaint: text("first_contentful_paint"), + largestContentfulPaint: text("largest_contentful_paint"), + totalBlockingTime: text("total_blocking_time"), + cumulativeLayoutShift: text("cumulative_layout_shift"), + speedIndex: text("speed_index"), + timeToInteractive: text("time_to_interactive"), + lighthouseVersion: text("lighthouse_version"), + errorMessage: text("error_message"), + r2Key: text("r2_key"), + payloadSizeBytes: integer("payload_size_bytes"), + createdAt: text("created_at") + .notNull() + .default(sql`(current_timestamp)`), + }, + (table) => [ + index("psi_audit_results_project_created_idx").on( + table.projectId, + table.createdAt, + ), + index("psi_audit_results_project_strategy_idx").on( + table.projectId, + table.strategy, + ), + ], +); diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..1b9aa2a --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1,20 @@ +// Custom environment variable type definitions +// These extend the auto-generated Env interface from worker-configuration.d.ts + +declare namespace Cloudflare { + interface Env { + R2: R2Bucket; + + // Gateway URL + GATEWAY_URL: string; + + // Optional machine token used for app-to-gateway requests + GATEWAY_APP_API_TOKEN?: string; + + // Legacy alias retained for backwards compatibility + APP_TOKEN?: string; + + // DataForSEO API Basic auth value (base64 of login:password) + DATAFORSEO_API_KEY: string; + } +} diff --git a/src/middleware/ensureUser.ts b/src/middleware/ensureUser.ts new file mode 100644 index 0000000..8b96b2d --- /dev/null +++ b/src/middleware/ensureUser.ts @@ -0,0 +1,57 @@ +import { createMiddleware } from "@tanstack/react-start"; +import { db } from "@/db"; +import { users } from "@/db/schema"; +import { eq } from "drizzle-orm"; +import { + authenticateRequest, + getAuthConfig, +} from "@every-app/sdk/tanstack/server"; +import { AppError } from "@/server/lib/errors"; +import { logServerError } from "@/server/lib/logger"; + +export const ensureUserMiddleware = createMiddleware({ + type: "function", +}).server(async (c) => { + const { next } = c; + + const authConfig = getAuthConfig(); + + const session = await authenticateRequest(authConfig); + + if (!session) { + throw new AppError("UNAUTHENTICATED"); + } + + if (!session.email) { + throw new AppError("UNAUTHENTICATED"); + } + + const userId = session.sub; + + // Check if user exists + const user = await db.query.users.findFirst({ + where: eq(users.id, userId), + }); + + if (!user) { + try { + await db.insert(users).values({ + id: userId, + email: session.email, + }); + } catch (error) { + logServerError("auth.ensure-user.create", error, { userId }); + throw new AppError("INTERNAL_ERROR"); + } + } + + const userEmail = user?.email || session.email; + + return next({ + context: { + userId, + userEmail, + session, + }, + }); +}); diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts new file mode 100644 index 0000000..43fcae0 --- /dev/null +++ b/src/routeTree.gen.ts @@ -0,0 +1,300 @@ +/* eslint-disable */ + +// @ts-nocheck + +// noinspection JSUnusedGlobalSymbols + +// This file was automatically generated by TanStack Router. +// You should NOT make any changes in this file as it will be overwritten. +// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. + +import { Route as rootRouteImport } from './routes/__root' +import { Route as IndexRouteImport } from './routes/index' +import { Route as PProjectIdRouteRouteImport } from './routes/p/$projectId/route' +import { Route as PProjectIdIndexRouteImport } from './routes/p/$projectId/index' +import { Route as PProjectIdSavedRouteImport } from './routes/p/$projectId/saved' +import { Route as PProjectIdKeywordsRouteImport } from './routes/p/$projectId/keywords' +import { Route as PProjectIdDomainRouteImport } from './routes/p/$projectId/domain' +import { Route as PProjectIdAuditRouteImport } from './routes/p/$projectId/audit' +import { Route as PProjectIdAiRouteImport } from './routes/p/$projectId/ai' +import { Route as PProjectIdAuditIndexRouteImport } from './routes/p/$projectId/audit/index' +import { Route as PProjectIdPsiIssuesResultIdRouteImport } from './routes/p/$projectId/psi/issues/$resultId' +import { Route as PProjectIdAuditIssuesResultIdRouteImport } from './routes/p/$projectId/audit/issues/$resultId' + +const IndexRoute = IndexRouteImport.update({ + id: '/', + path: '/', + getParentRoute: () => rootRouteImport, +} as any) +const PProjectIdRouteRoute = PProjectIdRouteRouteImport.update({ + id: '/p/$projectId', + path: '/p/$projectId', + getParentRoute: () => rootRouteImport, +} as any) +const PProjectIdIndexRoute = PProjectIdIndexRouteImport.update({ + id: '/', + path: '/', + getParentRoute: () => PProjectIdRouteRoute, +} as any) +const PProjectIdSavedRoute = PProjectIdSavedRouteImport.update({ + id: '/saved', + path: '/saved', + getParentRoute: () => PProjectIdRouteRoute, +} as any) +const PProjectIdKeywordsRoute = PProjectIdKeywordsRouteImport.update({ + id: '/keywords', + path: '/keywords', + getParentRoute: () => PProjectIdRouteRoute, +} as any) +const PProjectIdDomainRoute = PProjectIdDomainRouteImport.update({ + id: '/domain', + path: '/domain', + getParentRoute: () => PProjectIdRouteRoute, +} as any) +const PProjectIdAuditRoute = PProjectIdAuditRouteImport.update({ + id: '/audit', + path: '/audit', + getParentRoute: () => PProjectIdRouteRoute, +} as any) +const PProjectIdAiRoute = PProjectIdAiRouteImport.update({ + id: '/ai', + path: '/ai', + getParentRoute: () => PProjectIdRouteRoute, +} as any) +const PProjectIdAuditIndexRoute = PProjectIdAuditIndexRouteImport.update({ + id: '/', + path: '/', + getParentRoute: () => PProjectIdAuditRoute, +} as any) +const PProjectIdPsiIssuesResultIdRoute = + PProjectIdPsiIssuesResultIdRouteImport.update({ + id: '/psi/issues/$resultId', + path: '/psi/issues/$resultId', + getParentRoute: () => PProjectIdRouteRoute, + } as any) +const PProjectIdAuditIssuesResultIdRoute = + PProjectIdAuditIssuesResultIdRouteImport.update({ + id: '/issues/$resultId', + path: '/issues/$resultId', + getParentRoute: () => PProjectIdAuditRoute, + } as any) + +export interface FileRoutesByFullPath { + '/': typeof IndexRoute + '/p/$projectId': typeof PProjectIdRouteRouteWithChildren + '/p/$projectId/ai': typeof PProjectIdAiRoute + '/p/$projectId/audit': typeof PProjectIdAuditRouteWithChildren + '/p/$projectId/domain': typeof PProjectIdDomainRoute + '/p/$projectId/keywords': typeof PProjectIdKeywordsRoute + '/p/$projectId/saved': typeof PProjectIdSavedRoute + '/p/$projectId/': typeof PProjectIdIndexRoute + '/p/$projectId/audit/': typeof PProjectIdAuditIndexRoute + '/p/$projectId/audit/issues/$resultId': typeof PProjectIdAuditIssuesResultIdRoute + '/p/$projectId/psi/issues/$resultId': typeof PProjectIdPsiIssuesResultIdRoute +} +export interface FileRoutesByTo { + '/': typeof IndexRoute + '/p/$projectId/ai': typeof PProjectIdAiRoute + '/p/$projectId/domain': typeof PProjectIdDomainRoute + '/p/$projectId/keywords': typeof PProjectIdKeywordsRoute + '/p/$projectId/saved': typeof PProjectIdSavedRoute + '/p/$projectId': typeof PProjectIdIndexRoute + '/p/$projectId/audit': typeof PProjectIdAuditIndexRoute + '/p/$projectId/audit/issues/$resultId': typeof PProjectIdAuditIssuesResultIdRoute + '/p/$projectId/psi/issues/$resultId': typeof PProjectIdPsiIssuesResultIdRoute +} +export interface FileRoutesById { + __root__: typeof rootRouteImport + '/': typeof IndexRoute + '/p/$projectId': typeof PProjectIdRouteRouteWithChildren + '/p/$projectId/ai': typeof PProjectIdAiRoute + '/p/$projectId/audit': typeof PProjectIdAuditRouteWithChildren + '/p/$projectId/domain': typeof PProjectIdDomainRoute + '/p/$projectId/keywords': typeof PProjectIdKeywordsRoute + '/p/$projectId/saved': typeof PProjectIdSavedRoute + '/p/$projectId/': typeof PProjectIdIndexRoute + '/p/$projectId/audit/': typeof PProjectIdAuditIndexRoute + '/p/$projectId/audit/issues/$resultId': typeof PProjectIdAuditIssuesResultIdRoute + '/p/$projectId/psi/issues/$resultId': typeof PProjectIdPsiIssuesResultIdRoute +} +export interface FileRouteTypes { + fileRoutesByFullPath: FileRoutesByFullPath + fullPaths: + | '/' + | '/p/$projectId' + | '/p/$projectId/ai' + | '/p/$projectId/audit' + | '/p/$projectId/domain' + | '/p/$projectId/keywords' + | '/p/$projectId/saved' + | '/p/$projectId/' + | '/p/$projectId/audit/' + | '/p/$projectId/audit/issues/$resultId' + | '/p/$projectId/psi/issues/$resultId' + fileRoutesByTo: FileRoutesByTo + to: + | '/' + | '/p/$projectId/ai' + | '/p/$projectId/domain' + | '/p/$projectId/keywords' + | '/p/$projectId/saved' + | '/p/$projectId' + | '/p/$projectId/audit' + | '/p/$projectId/audit/issues/$resultId' + | '/p/$projectId/psi/issues/$resultId' + id: + | '__root__' + | '/' + | '/p/$projectId' + | '/p/$projectId/ai' + | '/p/$projectId/audit' + | '/p/$projectId/domain' + | '/p/$projectId/keywords' + | '/p/$projectId/saved' + | '/p/$projectId/' + | '/p/$projectId/audit/' + | '/p/$projectId/audit/issues/$resultId' + | '/p/$projectId/psi/issues/$resultId' + fileRoutesById: FileRoutesById +} +export interface RootRouteChildren { + IndexRoute: typeof IndexRoute + PProjectIdRouteRoute: typeof PProjectIdRouteRouteWithChildren +} + +declare module '@tanstack/react-router' { + interface FileRoutesByPath { + '/': { + id: '/' + path: '/' + fullPath: '/' + preLoaderRoute: typeof IndexRouteImport + parentRoute: typeof rootRouteImport + } + '/p/$projectId': { + id: '/p/$projectId' + path: '/p/$projectId' + fullPath: '/p/$projectId' + preLoaderRoute: typeof PProjectIdRouteRouteImport + parentRoute: typeof rootRouteImport + } + '/p/$projectId/': { + id: '/p/$projectId/' + path: '/' + fullPath: '/p/$projectId/' + preLoaderRoute: typeof PProjectIdIndexRouteImport + parentRoute: typeof PProjectIdRouteRoute + } + '/p/$projectId/saved': { + id: '/p/$projectId/saved' + path: '/saved' + fullPath: '/p/$projectId/saved' + preLoaderRoute: typeof PProjectIdSavedRouteImport + parentRoute: typeof PProjectIdRouteRoute + } + '/p/$projectId/keywords': { + id: '/p/$projectId/keywords' + path: '/keywords' + fullPath: '/p/$projectId/keywords' + preLoaderRoute: typeof PProjectIdKeywordsRouteImport + parentRoute: typeof PProjectIdRouteRoute + } + '/p/$projectId/domain': { + id: '/p/$projectId/domain' + path: '/domain' + fullPath: '/p/$projectId/domain' + preLoaderRoute: typeof PProjectIdDomainRouteImport + parentRoute: typeof PProjectIdRouteRoute + } + '/p/$projectId/audit': { + id: '/p/$projectId/audit' + path: '/audit' + fullPath: '/p/$projectId/audit' + preLoaderRoute: typeof PProjectIdAuditRouteImport + parentRoute: typeof PProjectIdRouteRoute + } + '/p/$projectId/ai': { + id: '/p/$projectId/ai' + path: '/ai' + fullPath: '/p/$projectId/ai' + preLoaderRoute: typeof PProjectIdAiRouteImport + parentRoute: typeof PProjectIdRouteRoute + } + '/p/$projectId/audit/': { + id: '/p/$projectId/audit/' + path: '/' + fullPath: '/p/$projectId/audit/' + preLoaderRoute: typeof PProjectIdAuditIndexRouteImport + parentRoute: typeof PProjectIdAuditRoute + } + '/p/$projectId/psi/issues/$resultId': { + id: '/p/$projectId/psi/issues/$resultId' + path: '/psi/issues/$resultId' + fullPath: '/p/$projectId/psi/issues/$resultId' + preLoaderRoute: typeof PProjectIdPsiIssuesResultIdRouteImport + parentRoute: typeof PProjectIdRouteRoute + } + '/p/$projectId/audit/issues/$resultId': { + id: '/p/$projectId/audit/issues/$resultId' + path: '/issues/$resultId' + fullPath: '/p/$projectId/audit/issues/$resultId' + preLoaderRoute: typeof PProjectIdAuditIssuesResultIdRouteImport + parentRoute: typeof PProjectIdAuditRoute + } + } +} + +interface PProjectIdAuditRouteChildren { + PProjectIdAuditIndexRoute: typeof PProjectIdAuditIndexRoute + PProjectIdAuditIssuesResultIdRoute: typeof PProjectIdAuditIssuesResultIdRoute +} + +const PProjectIdAuditRouteChildren: PProjectIdAuditRouteChildren = { + PProjectIdAuditIndexRoute: PProjectIdAuditIndexRoute, + PProjectIdAuditIssuesResultIdRoute: PProjectIdAuditIssuesResultIdRoute, +} + +const PProjectIdAuditRouteWithChildren = PProjectIdAuditRoute._addFileChildren( + PProjectIdAuditRouteChildren, +) + +interface PProjectIdRouteRouteChildren { + PProjectIdAiRoute: typeof PProjectIdAiRoute + PProjectIdAuditRoute: typeof PProjectIdAuditRouteWithChildren + PProjectIdDomainRoute: typeof PProjectIdDomainRoute + PProjectIdKeywordsRoute: typeof PProjectIdKeywordsRoute + PProjectIdSavedRoute: typeof PProjectIdSavedRoute + PProjectIdIndexRoute: typeof PProjectIdIndexRoute + PProjectIdPsiIssuesResultIdRoute: typeof PProjectIdPsiIssuesResultIdRoute +} + +const PProjectIdRouteRouteChildren: PProjectIdRouteRouteChildren = { + PProjectIdAiRoute: PProjectIdAiRoute, + PProjectIdAuditRoute: PProjectIdAuditRouteWithChildren, + PProjectIdDomainRoute: PProjectIdDomainRoute, + PProjectIdKeywordsRoute: PProjectIdKeywordsRoute, + PProjectIdSavedRoute: PProjectIdSavedRoute, + PProjectIdIndexRoute: PProjectIdIndexRoute, + PProjectIdPsiIssuesResultIdRoute: PProjectIdPsiIssuesResultIdRoute, +} + +const PProjectIdRouteRouteWithChildren = PProjectIdRouteRoute._addFileChildren( + PProjectIdRouteRouteChildren, +) + +const rootRouteChildren: RootRouteChildren = { + IndexRoute: IndexRoute, + PProjectIdRouteRoute: PProjectIdRouteRouteWithChildren, +} +export const routeTree = rootRouteImport + ._addFileChildren(rootRouteChildren) + ._addFileTypes() + +import type { getRouter } from './router.tsx' +import type { createStart } from '@tanstack/react-start' +declare module '@tanstack/react-start' { + interface Register { + ssr: true + router: Awaited> + } +} diff --git a/src/router.tsx b/src/router.tsx new file mode 100644 index 0000000..60581ba --- /dev/null +++ b/src/router.tsx @@ -0,0 +1,16 @@ +import { createRouter as createTanStackRouter } from "@tanstack/react-router"; +import { routeTree } from "./routeTree.gen"; +import { DefaultCatchBoundary } from "./client/components/DefaultCatchBoundary"; +import { NotFound } from "./client/components/NotFound"; + +export function getRouter() { + const router = createTanStackRouter({ + routeTree, + defaultPreload: "intent", + defaultErrorComponent: DefaultCatchBoundary, + defaultNotFoundComponent: () => , + scrollRestoration: true, + }); + + return router; +} diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx new file mode 100644 index 0000000..c8da348 --- /dev/null +++ b/src/routes/__root.tsx @@ -0,0 +1,223 @@ +/// +import { + ClientOnly, + HeadContent, + Link, + Scripts, + createRootRoute, + Outlet, + useLocation, +} from "@tanstack/react-router"; +import { TanStackRouterDevtoolsPanel } from "@tanstack/react-router-devtools"; +import { TanStackDevtools } from "@tanstack/react-devtools"; +import { QueryClientProvider } from "@tanstack/react-query"; +import * as React from "react"; +import { useState } from "react"; +import { Menu, ChevronsUpDown } from "lucide-react"; +import { DefaultCatchBoundary } from "@/client/components/DefaultCatchBoundary"; +import { NotFound } from "@/client/components/NotFound"; +import appCss from "@/client/styles/app.css?url"; +import { Toaster } from "sonner"; +import { Sidebar } from "@/client/components/Sidebar"; +import { EmbeddedAppProvider } from "@every-app/sdk/tanstack"; +import { queryClient } from "@/client/tanstack-db"; +import { projectNavItems } from "@/client/navigation/items"; + +export const Route = createRootRoute({ + head: () => ({ + meta: [ + { + charSet: "utf-8", + }, + { + name: "viewport", + content: "width=device-width, initial-scale=1, viewport-fit=cover", + }, + { + name: "apple-mobile-web-app-capable", + content: "yes", + }, + { + name: "apple-mobile-web-app-status-bar-style", + content: "black-translucent", + }, + ], + links: [ + { rel: "stylesheet", href: appCss }, + { + rel: "apple-touch-icon", + sizes: "180x180", + href: "/apple-touch-icon.png", + }, + { + rel: "icon", + type: "image/png", + sizes: "32x32", + href: "/favicon-32x32.png", + }, + { + rel: "icon", + type: "image/png", + sizes: "16x16", + href: "/favicon-16x16.png", + }, + { rel: "manifest", href: "/site.webmanifest", color: "#fffff" }, + { rel: "icon", href: "/favicon.ico" }, + ], + scripts: [], + }), + component: AppLayout, + errorComponent: DefaultCatchBoundary, + notFoundComponent: () => , + shellComponent: RootDocument, +}); + +function AppLayout() { + const location = useLocation(); + const [drawerOpen, setDrawerOpen] = useState(false); + + // Extract projectId from the current path + const projectIdMatch = location.pathname.match(/^\/p\/([^/]+)/); + const projectId = projectIdMatch?.[1] ?? null; + + return ( +
+ {/* Top Navbar */} +
+ {/* Mobile: hamburger + title */} +
+ + + Every App + +
+ + {/* Desktop: EveryApp brand + nav links (left) */} +
+ + Every App + + {projectId && + projectNavItems.map((item) => { + const Icon = item.icon; + const isActive = location.pathname.includes(item.matchSegment); + + return ( + + + {item.label} + + ); + })} +
+ + {/* Spacer */} +
+ + {/* Desktop: project switcher (right-aligned) */} +
+
+ +
+
+
+ + {/* Mobile: drawer layout */} +
+
+ +
+ + {drawerOpen ? ( +
+
+ ) : null} +
+ + {/* Desktop: plain content area */} +
+ +
+
+ ); +} + +function RootDocument({ children }: { children: React.ReactNode }) { + return ( + + + + + + + + + <> + {children} + + {import.meta.env.DEV ? ( + , + defaultOpen: true, + }, + ]} + /> + ) : null} + + + + + + + + ); +} diff --git a/src/routes/index.tsx b/src/routes/index.tsx new file mode 100644 index 0000000..f124c66 --- /dev/null +++ b/src/routes/index.tsx @@ -0,0 +1,43 @@ +import { createFileRoute, useNavigate } from "@tanstack/react-router"; +import { useEffect } from "react"; +import { useMutation } from "@tanstack/react-query"; +import { getOrCreateDefaultProject } from "@/serverFunctions/keywords"; +import { getStandardErrorMessage } from "@/client/lib/error-messages"; + +export const Route = createFileRoute("/")({ + component: IndexRedirect, +}); + +function IndexRedirect() { + const navigate = useNavigate(); + + const { mutate, error, isError } = useMutation({ + mutationFn: () => getOrCreateDefaultProject(), + onSuccess: (project) => { + void navigate({ + to: "/p/$projectId/keywords", + params: { projectId: project.id }, + }); + }, + }); + + useEffect(() => { + mutate(); + }, [mutate]); + + if (isError) { + return ( +
+

+ {getStandardErrorMessage(error, "Failed to load. Please try again.")} +

+
+ ); + } + + return ( +
+ +
+ ); +} diff --git a/src/routes/p/$projectId/ai.tsx b/src/routes/p/$projectId/ai.tsx new file mode 100644 index 0000000..d86df06 --- /dev/null +++ b/src/routes/p/$projectId/ai.tsx @@ -0,0 +1,128 @@ +import { createFileRoute } from "@tanstack/react-router"; +import { ArrowUpRight, Bot, Compass, Lightbulb, Sparkles } from "lucide-react"; + +const DISCORD_URL = "https://discord.gg/c9uGs3cFXr"; +const SUPPORT_EMAIL = "ben@everyapp.com"; +const DATAFORSEO_MCP_DOCS_URL = + "https://dataforseo.com/help-center/setting-up-the-official-dataforseo-mcp-server-simple-guide"; + +export const Route = createFileRoute("/p/$projectId/ai")({ + component: AiPage, +}); + +function AiPage() { + return ( +
+
+
+
+
+ + + Coming Soon + +
+

+ AI-powered features are coming soon +

+

+ We want this to be community driven. If there's a workflow + you want solved first, let me know! +

+
+ Message us on{" "} + + Discord + {" "} + or email me at{" "} + + {SUPPORT_EMAIL} + + . +
+
+
+ +
+
+
+
+ +

+ Planned: Content Assistant +

+
+

+ Generate blog post drafts using your saved keywords, business + context, and general strategy. +

+
+
+ +
+
+
+ +

+ Planned: SEO Research Agent +

+
+

+ Ask SEO questions, run focused research, and get help using the + app without leaving your workflow. +

+
+
+ +
+
+
+ +

+ Content Assistant workflow today +

+
+

+ If you want content generation right now, make a local folder + and use Claude Code, Claude/Cowork, Cursor, Codex, or a similar + coding agent. Paste in your keywords, business plan, and + strategy, then iterate with the agent until the draft is right. +

+
+
+ +
+
+
+ +

+ DataForSEO MCP for agentic workflows +

+
+

+ If you want the best agentic path for DataForSEO API data, use + the official DataForSEO MCP server setup guide. +

+ +
+
+
+
+
+ ); +} diff --git a/src/routes/p/$projectId/audit.tsx b/src/routes/p/$projectId/audit.tsx new file mode 100644 index 0000000..363bee0 --- /dev/null +++ b/src/routes/p/$projectId/audit.tsx @@ -0,0 +1,9 @@ +import { createFileRoute, Outlet } from "@tanstack/react-router"; + +export const Route = createFileRoute("/p/$projectId/audit")({ + component: SiteAuditLayout, +}); + +function SiteAuditLayout() { + return ; +} diff --git a/src/routes/p/$projectId/audit/index.tsx b/src/routes/p/$projectId/audit/index.tsx new file mode 100644 index 0000000..43cd498 --- /dev/null +++ b/src/routes/p/$projectId/audit/index.tsx @@ -0,0 +1,1446 @@ +import { createFileRoute, useNavigate } from "@tanstack/react-router"; +import { + useCallback, + useEffect, + useMemo, + useState, + type FormEvent, +} from "react"; +import { toast } from "sonner"; +import { useMutation, useQuery } from "@tanstack/react-query"; +import { useForm } from "@tanstack/react-form"; +import { + startAudit, + getAuditStatus, + getAuditResults, + getAuditHistory, + getCrawlProgress, + deleteAudit, +} from "@/serverFunctions/audit"; +import { + clearProjectPsiApiKey, + getProjectPsiApiKey, + saveProjectPsiApiKey, +} from "@/serverFunctions/psi"; +import { auditSearchSchema } from "@/types/schemas/audit"; +import { + ScanSearch, + AlertCircle, + CheckCircle, + Trash2, + MoreHorizontal, + ExternalLink, + Loader2, + Download, + ChevronDown, + Settings, +} from "lucide-react"; + +const SUPPORT_URL = "https://everyapp.dev/support"; + +export const Route = createFileRoute<"/p/$projectId/audit/">( + "/p/$projectId/audit/", +)({ + validateSearch: auditSearchSchema, + component: SiteAuditPage, +}); + +function extractPathname(url: string): string { + try { + return new URL(url).pathname; + } catch { + return url; + } +} + +function extractHostname(url: string): string { + try { + return new URL(url).hostname; + } catch { + return url; + } +} + +function formatDate(dateStr: string): string { + return new Date(dateStr).toLocaleDateString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + }); +} + +function formatStartedAt(dateStr: string): string { + return new Date(dateStr).toLocaleString("en-US", { + month: "short", + day: "numeric", + hour: "numeric", + minute: "2-digit", + }); +} + +function SiteAuditPage() { + const { projectId } = Route.useParams(); + const { auditId, tab } = Route.useSearch(); + const navigate = useNavigate({ from: Route.fullPath }); + + const setSearchParams = useCallback( + (updates: Record) => { + void navigate({ + search: (prev) => ({ ...prev, ...updates }), + replace: true, + }); + }, + [navigate], + ); + + if (auditId) { + return ( + setSearchParams({ auditId: undefined })} + /> + ); + } + + return ( + setSearchParams({ auditId: id })} + /> + ); +} + +function LaunchView({ + projectId, + onAuditStarted, +}: { + projectId: string; + onAuditStarted: (auditId: string) => void; +}) { + const minPages = 10; + const maxPagesLimit = 10_000; + const launchForm = useForm({ + defaultValues: { + url: "", + maxPagesInput: "50", + runPsi: false, + psiMode: "auto" as "auto" | "all", + }, + }); + const settingsForm = useForm({ + defaultValues: { + psiApiKey: "", + }, + }); + const [isSettingsOpen, setIsSettingsOpen] = useState(false); + const [showPsiKey, setShowPsiKey] = useState(false); + const [urlError, setUrlError] = useState(null); + const [psiRequirementError, setPsiRequirementError] = useState( + null, + ); + const [startError, setStartError] = useState(null); + const [settingsError, setSettingsError] = useState(null); + + const startMutation = useMutation({ + mutationFn: (data: { + projectId: string; + startUrl: string; + maxPages: number; + psiStrategy: "auto" | "all" | "none"; + psiApiKey?: string; + }) => startAudit({ data }), + }); + + const historyQuery = useQuery({ + queryKey: ["audit-history", projectId], + queryFn: () => getAuditHistory({ data: { projectId } }), + }); + + const deleteMutation = useMutation({ + mutationFn: (auditId: string) => deleteAudit({ data: { auditId } }), + onSuccess: () => { + void historyQuery.refetch(); + toast.success("Audit deleted"); + }, + }); + + const keyQuery = useQuery({ + queryKey: ["projectPsiApiKey", projectId], + // PSI key is non-billing and used to prevent API abuse; this read-back is + // intentional to keep setup simple for self-host users. + queryFn: () => getProjectPsiApiKey({ data: { projectId } }), + }); + + useEffect(() => { + if (keyQuery.data?.apiKey) { + settingsForm.setFieldValue("psiApiKey", keyQuery.data.apiKey); + } + }, [keyQuery.data?.apiKey, settingsForm]); + + const saveKeyMutation = useMutation({ + mutationFn: (apiKey: string) => + saveProjectPsiApiKey({ data: { projectId, apiKey } }), + onSuccess: async () => { + toast.success("PSI API key saved for this project"); + await keyQuery.refetch(); + }, + }); + + const clearKeyMutation = useMutation({ + mutationFn: () => clearProjectPsiApiKey({ data: { projectId } }), + onSuccess: async () => { + settingsForm.setFieldValue("psiApiKey", ""); + toast.success("PSI API key cleared"); + await keyQuery.refetch(); + }, + }); + + const applyMaxPages = (value: number) => { + const safeValue = Number.isFinite(value) + ? Math.max(minPages, Math.min(maxPagesLimit, Math.round(value))) + : minPages; + launchForm.setFieldValue("maxPagesInput", String(safeValue)); + return safeValue; + }; + + const commitMaxPagesInput = () => { + const maxPagesInput = launchForm.state.values.maxPagesInput; + if (!maxPagesInput) { + return applyMaxPages(minPages); + } + + const parsed = Number.parseInt(maxPagesInput, 10); + return applyMaxPages(parsed); + }; + + const handleStart = () => { + const launchValues = launchForm.state.values; + const settingsValues = settingsForm.state.values; + const effectiveMaxPages = commitMaxPagesInput(); + setStartError(null); + + if (!launchValues.url.trim()) { + setUrlError("Please enter a URL."); + return; + } + setUrlError(null); + + if (launchValues.runPsi && !settingsValues.psiApiKey.trim()) { + setPsiRequirementError( + "Set a Google PageSpeed Insights API key before running PSI checks.", + ); + setIsSettingsOpen(true); + return; + } + setPsiRequirementError(null); + + if (effectiveMaxPages > 500) { + const confirmed = window.confirm( + `You are about to crawl ${effectiveMaxPages.toLocaleString()} pages. This is okay, but it may take a while. Continue?`, + ); + if (!confirmed) return; + } + + startMutation.mutate( + { + projectId, + startUrl: launchValues.url, + maxPages: effectiveMaxPages, + psiStrategy: launchValues.runPsi ? launchValues.psiMode : "none", + psiApiKey: launchValues.runPsi + ? settingsValues.psiApiKey || undefined + : undefined, + }, + { + onSuccess: (result) => { + setStartError(null); + toast.success("Audit started!"); + onAuditStarted(result.auditId); + }, + onError: (error) => { + setStartError( + error instanceof Error ? error.message : "Failed to start audit", + ); + }, + }, + ); + }; + + const handleStartSubmit = (event: FormEvent) => { + event.preventDefault(); + handleStart(); + }; + + const history = historyQuery.data ?? []; + + const handleRunPsiToggle = (checked: boolean) => { + const psiApiKey = settingsForm.state.values.psiApiKey; + if (!checked) { + setPsiRequirementError(null); + launchForm.setFieldValue("runPsi", false); + return; + } + + if (!psiApiKey.trim()) { + setIsSettingsOpen(true); + return; + } + + launchForm.setFieldValue("runPsi", true); + }; + + return ( +
+
+
+

Site Audit

+
+ +
+
+
+

Start New Audit

+ +
+ +
+ + + + +
+
+ +
+ + Max pages + + + {(field) => ( + { + const next = e.target.value; + if (!/^\d*$/.test(next)) return; + field.handleChange(next); + }} + onBlur={commitMaxPagesInput} + /> + )} + +
+

+ Enter any value from {minPages} to {maxPagesLimit}. +

+
+ +
+ + + state.values.runPsi} + > + {(runPsi) => + runPsi ? ( +
+
+ + PSI mode + + + {(field) => ( + + )} + + state.values.psiApiKey} + > + {(psiApiKey) => ( + + {psiApiKey.trim() + ? "PSI key saved" + : "PSI key required"} + + )} + +
+
+ ) : null + } +
+
+ +
+ {urlError ? ( +

{urlError}

+ ) : null} + {psiRequirementError ? ( +
+ {psiRequirementError} +
+ ) : null} + {startError ? ( +
+ {startError} +
+ ) : null} +
+
+
+
+
+ + {isSettingsOpen && ( +
+
+
+
+

Audit Settings

+ +
+ +
+ +
+ + {(field) => ( + { + field.handleChange(e.target.value); + if (settingsError) setSettingsError(null); + if (psiRequirementError) + setPsiRequirementError(null); + }} + /> + )} + + +
+

+ Stored on this project and reused by PSI and Site Audit. + Required to run PSI checks in audits. +

+
+

+ Need a PSI key? +

+
    +
  1. + Open{" "} + + PageSpeed Insights getting started + {" "} + and click "Get a key". +
  2. +
  3. + Create any Google Cloud project (for example: Open SEO). +
  4. +
  5. Paste the key here and save.
  6. +
+
+ {settingsError ? ( +

{settingsError}

+ ) : null} +
+ +
+ + +
+
+
+
+ )} + + {history.length > 0 && ( +
+
+

Previous Audits

+
+ + + + + + + + + + + + + {history.map((audit) => ( + + + + + + + + + ))} + +
DateURLStatusPagesPSI
+ {formatDate(audit.startedAt)} + + {audit.startUrl} + + + {audit.pagesTotal || audit.pagesCrawled} + {audit.ranPsi ? ( + + Yes + + ) : null} + +
+ +
+
+ +
+
    +
  • + +
  • +
+
+
+
+
+
+
+ )} + + {history.length === 0 && !historyQuery.isLoading && ( +
+
+ +

No audits yet

+
+
+ )} +
+
+ ); +} + +function AuditDetail({ + projectId, + auditId, + tab, + setSearchParams, + onBack, +}: { + projectId: string; + auditId: string; + tab: string; + setSearchParams: (updates: Record) => void; + onBack: () => void; +}) { + const statusQuery = useQuery({ + queryKey: ["audit-status", auditId], + queryFn: () => getAuditStatus({ data: { auditId } }), + refetchInterval: (query) => { + const data = query.state.data; + return data?.status === "running" ? 3000 : false; + }, + }); + + const isComplete = statusQuery.data?.status === "completed"; + const isFailed = statusQuery.data?.status === "failed"; + const isRunning = statusQuery.data?.status === "running"; + + const resultsQuery = useQuery({ + queryKey: ["audit-results", auditId], + queryFn: () => getAuditResults({ data: { auditId } }), + enabled: isComplete, + }); + + if (statusQuery.isLoading) { + return ( +
+ +
+ ); + } + + const status = statusQuery.data; + const showSupportCta = + isFailed || (isComplete && status && status.pagesCrawled <= 1); + + return ( +
+
+
+ +
+

Site Audit

+ {status?.status !== "running" && status && ( + + )} +
+ {status && ( +

+ {extractHostname(status.startUrl)} · Started{" "} + {formatStartedAt(status.startedAt)} +

+ )} +
+ + {isRunning && status && ( + + )} + + {showSupportCta && ( +
+ +
+

+ Site audit couldn't fully crawl this website. +

+

+ This is often caused by anti-bot or firewall settings. Reach out + at{" "} + + everyapp.dev/support + {" "} + and we'll help configure auditing for your site. +

+
+
+ )} + + {isComplete && resultsQuery.data && ( + + )} +
+
+ ); +} + +function ProgressCard({ + auditId, + status, +}: { + auditId: string; + status: { + pagesCrawled: number; + pagesTotal: number; + psiTotal: number; + psiCompleted: number; + psiFailed: number; + currentPhase: string | null; + }; +}) { + const crawlProgress = + status.pagesTotal > 0 + ? Math.round((status.pagesCrawled / status.pagesTotal) * 100) + : 0; + const psiDone = status.psiCompleted + status.psiFailed; + const psiProgress = + status.psiTotal > 0 ? Math.round((psiDone / status.psiTotal) * 100) : 0; + const isPsiPhase = status.currentPhase === "psi"; + const phaseLabel = + status.currentPhase === "discovery" + ? "Discovery" + : status.currentPhase === "crawling" + ? "Crawling" + : status.currentPhase === "psi" + ? "PSI" + : status.currentPhase === "finalizing" + ? "Finalizing" + : (status.currentPhase ?? "Running"); + const progress = isPsiPhase ? psiProgress : crawlProgress; + + const crawlProgressQuery = useQuery({ + queryKey: ["audit-crawl-progress", auditId], + queryFn: () => getCrawlProgress({ data: { auditId } }), + refetchInterval: 1500, + }); + + const crawledUrls = crawlProgressQuery.data ?? []; + + return ( +
+
+
+
+

+ + {isPsiPhase ? "Running PSI checks" : "Crawling pages"} +

+ {phaseLabel} +
+ + + +
+ {isPsiPhase ? ( + + {psiDone} / {status.psiTotal} checks + {status.psiFailed > 0 ? ` (${status.psiFailed} failed)` : ""} + + ) : ( + + {status.pagesCrawled} / {status.pagesTotal} pages + + )} + {progress}% +
+
+
+ + {crawledUrls.length > 0 && ( +
+
+

+ Crawled Pages ({crawledUrls.length}) +

+

+ Updated {new Date(crawledUrls[0].crawledAt).toLocaleTimeString()} +

+
+ {crawledUrls.map((entry, i) => { + const pathname = extractPathname(entry.url); + return ( +
+
+ + + {pathname} + +
+
+ {entry.title && ( + + {entry.title} + + )} +
+
+ ); + })} +
+
+
+ )} +
+ ); +} + +type AuditResultsData = Awaited>; + +function ResultsView({ + projectId, + data, + tab, + setSearchParams, +}: { + projectId: string; + data: AuditResultsData; + tab: string; + setSearchParams: (updates: Record) => void; +}) { + const { audit, pages, psi } = data; + const hasPerformanceTab = psi.length > 0; + const activeTab = hasPerformanceTab ? tab : "pages"; + + const averageResponseMs = useMemo(() => { + if (pages.length === 0) return 0; + const total = pages.reduce( + (sum, page) => sum + (page.responseTimeMs ?? 0), + 0, + ); + return Math.round(total / pages.length); + }, [pages]); + + const psiSummary = useMemo(() => { + const failed = psi.filter((row) => !!row.errorMessage).length; + const successful = psi.filter((row) => !row.errorMessage); + + const averageScore = ( + rows: typeof successful, + key: "performanceScore" | "seoScore" | "accessibilityScore", + ) => { + const values = rows + .map((row) => row[key]) + .filter((value): value is number => value != null); + if (values.length === 0) return null; + const total = values.reduce((sum, value) => sum + value, 0); + return Math.round(total / values.length); + }; + + return { + failed, + avgPerformance: averageScore(successful, "performanceScore"), + avgSeo: averageScore(successful, "seoScore"), + avgAccessibility: averageScore(successful, "accessibilityScore"), + }; + }, [psi]); + + return ( + <> +
+ + + + + {psi.length > 0 && ( + <> + = 90 + ? "text-success" + : psiSummary.avgPerformance >= 50 + ? "text-warning" + : "text-error" + } + /> + = 90 + ? "text-success" + : psiSummary.avgSeo >= 50 + ? "text-warning" + : "text-error" + } + /> + = 90 + ? "text-success" + : psiSummary.avgAccessibility >= 50 + ? "text-warning" + : "text-error" + } + /> + 0 ? "text-error" : "text-success"} + /> + + )} +
+ +
+
+
+ {hasPerformanceTab ? ( +
+ + +
+ ) : ( +

Pages ({pages.length})

+ )} + + { + if (activeTab === "performance") { + exportPerformance(psi, pages, format); + } else { + exportPages(pages, format); + } + }} + /> +
+ + {activeTab === "pages" && ( +
+ + + + + + + + + + + + + + {pages.map((page) => ( + + + + + + + + + + ))} + +
URLStatusTitleH1WordsImagesSpeed
+ + {extractPathname(page.url)} + + + + + + {page.title || ( + missing + )} + {page.h1Count}{page.wordCount} + {page.imagesMissingAlt > 0 ? ( + + {page.imagesMissingAlt}/{page.imagesTotal} + + ) : ( + page.imagesTotal + )} + + {page.responseTimeMs ? `${page.responseTimeMs}ms` : "-"} +
+
+ )} + + {activeTab === "performance" && psi.length > 0 && ( +
+ + + + + + + + + + + + + + + + + + {psi.map((result) => { + const page = pages.find((p) => p.id === result.pageId); + const isFailed = !!result.errorMessage; + return ( + + + + + + + + + + + + + + ); + })} + +
URLDeviceStatusPerfA11ySEOLCPCLSINPTTFBIssues
+ {page ? extractPathname(page.url) : "-"} + + {result.strategy} + + {isFailed ? ( + + failed + + ) : ( + + ok + + )} + + + + + + + + {result.lcpMs + ? `${(result.lcpMs / 1000).toFixed(1)}s` + : "-"} + + {result.cls != null ? result.cls.toFixed(3) : "-"} + + {result.inpMs ? `${Math.round(result.inpMs)}ms` : "-"} + + {result.ttfbMs + ? `${Math.round(result.ttfbMs)}ms` + : "-"} + + {result.r2Key ? ( + + View issues + + ) : ( + + - + + )} +
+
+ )} +
+
+ + ); +} + +function StatusBadge({ status }: { status: string }) { + if (status === "running") { + return ( + + Running + + ); + } + if (status === "completed") { + return ( + + Done + + ); + } + return ( + + Failed + + ); +} + +function HttpStatusBadge({ code }: { code: number | null }) { + if (!code) return -; + if (code >= 200 && code < 300) + return {code}; + if (code >= 300 && code < 400) + return {code}; + return {code}; +} + +function PsiScoreBadge({ score }: { score: number | null }) { + if (score == null) { + return -; + } + const color = + score >= 90 ? "text-success" : score >= 50 ? "text-warning" : "text-error"; + return {score}; +} + +function StatCard({ + label, + value, + className = "", +}: { + label: string; + value: string; + className?: string; +}) { + return ( +
+
+

+ {label} +

+

{value}

+
+
+ ); +} + +function csvEscape( + value: string | number | boolean | null | undefined, +): string { + if (value == null) return ""; + const text = String(value).replace(/"/g, '""'); + return `"${text}"`; +} + +function downloadFile(content: string, filename: string, mime: string) { + const blob = new Blob([content], { type: `${mime};charset=utf-8;` }); + const url = URL.createObjectURL(blob); + const link = document.createElement("a"); + link.href = url; + link.download = filename; + link.click(); + URL.revokeObjectURL(url); +} + +function exportPages(pages: AuditResultsData["pages"], format: "csv" | "json") { + const rows = pages.map((p) => ({ + url: p.url, + statusCode: p.statusCode, + title: p.title ?? "", + h1Count: p.h1Count, + wordCount: p.wordCount, + imagesTotal: p.imagesTotal, + imagesMissingAlt: p.imagesMissingAlt, + responseTimeMs: p.responseTimeMs, + })); + + if (format === "json") { + downloadFile( + JSON.stringify(rows, null, 2), + "audit-pages.json", + "application/json", + ); + return; + } + + const headers = [ + "URL", + "Status", + "Title", + "H1", + "Words", + "Images", + "Missing Alt", + "Response Time (ms)", + ]; + + const lines = rows.map((r) => + [ + r.url, + r.statusCode, + r.title, + r.h1Count, + r.wordCount, + r.imagesTotal, + r.imagesMissingAlt, + r.responseTimeMs, + ] + .map(csvEscape) + .join(","), + ); + + downloadFile( + [headers.map(csvEscape).join(","), ...lines].join("\n"), + "audit-pages.csv", + "text/csv", + ); +} + +function exportPerformance( + psi: AuditResultsData["psi"], + pages: AuditResultsData["pages"], + format: "csv" | "json", +) { + const rows = psi.map((r) => { + const page = pages.find((p) => p.id === r.pageId); + return { + url: page?.url ?? "", + strategy: r.strategy, + performance: r.performanceScore, + accessibility: r.accessibilityScore, + seo: r.seoScore, + lcpMs: r.lcpMs, + cls: r.cls, + inpMs: r.inpMs, + ttfbMs: r.ttfbMs, + }; + }); + + if (format === "json") { + downloadFile( + JSON.stringify(rows, null, 2), + "audit-performance.json", + "application/json", + ); + return; + } + + const headers = [ + "URL", + "Device", + "Performance", + "Accessibility", + "SEO", + "LCP (ms)", + "CLS", + "INP (ms)", + "TTFB (ms)", + ]; + const lines = rows.map((r) => + [ + r.url, + r.strategy, + r.performance, + r.accessibility, + r.seo, + r.lcpMs, + r.cls, + r.inpMs, + r.ttfbMs, + ] + .map(csvEscape) + .join(","), + ); + + downloadFile( + [headers.map(csvEscape).join(","), ...lines].join("\n"), + "audit-performance.csv", + "text/csv", + ); +} + +function ExportDropdown({ + onExport, +}: { + onExport: (format: "csv" | "json") => void; +}) { + return ( +
+
+ + Export + +
+
    +
  • + +
  • +
  • + +
  • +
+
+ ); +} diff --git a/src/routes/p/$projectId/audit/issues/$resultId.tsx b/src/routes/p/$projectId/audit/issues/$resultId.tsx new file mode 100644 index 0000000..1f96205 --- /dev/null +++ b/src/routes/p/$projectId/audit/issues/$resultId.tsx @@ -0,0 +1,554 @@ +import { createFileRoute, useNavigate } from "@tanstack/react-router"; +import { useMutation, useQuery } from "@tanstack/react-query"; +import type { ReactNode } from "react"; +import { + ChevronDown, + Copy, + Download, + ExternalLink, + FileWarning, + Info, + TriangleAlert, +} from "lucide-react"; +import { toast } from "sonner"; +import { exportPsiBySource, getPsiIssuesBySource } from "@/serverFunctions/psi"; +import { psiIssuesSearchSchema } from "@/types/schemas/psi"; + +const categoryTabs = [ + "all", + "performance", + "accessibility", + "best-practices", + "seo", +] as const; + +type CategoryTab = (typeof categoryTabs)[number]; +type IssueCategory = Exclude; + +type ExportPayload = { + mode: "full" | "issues" | "category"; + category?: IssueCategory; +}; + +type PsiIssue = { + auditKey: string; + category: IssueCategory; + severity: "critical" | "warning" | "info"; + score?: number | null; + title: string; + displayValue?: string | null; + description?: string | null; + impactMs?: number | null; + impactBytes?: number | null; + items: string[]; +}; + +export const Route = createFileRoute("/p/$projectId/audit/issues/$resultId")({ + validateSearch: psiIssuesSearchSchema, + component: PsiIssuesPage, +}); + +function PsiIssuesPage() { + const { projectId, resultId } = Route.useParams(); + const { source, category } = Route.useSearch(); + const navigate = useNavigate({ from: Route.fullPath }); + + const issuesQuery = useQuery({ + queryKey: ["psiIssuesBySource", projectId, source, resultId, category], + queryFn: () => + getPsiIssuesBySource({ + data: { + projectId, + source, + resultId, + category: category === "all" ? undefined : category, + }, + }), + }); + + const summaryQuery = useQuery({ + queryKey: ["psiIssuesSummary", projectId, source, resultId], + queryFn: () => + getPsiIssuesBySource({ + data: { + projectId, + source, + resultId, + }, + }), + }); + + const exportMutation = useMutation({ + mutationFn: (data: ExportPayload) => + exportPsiBySource({ + data: { + projectId, + source, + resultId, + ...data, + }, + }), + }); + + const visibleIssues = (issuesQuery.data?.issues ?? []) as PsiIssue[]; + const allIssues = (summaryQuery.data?.issues ?? visibleIssues) as PsiIssue[]; + + const categoryCounts = categoryTabs.reduce>( + (acc, tab) => { + if (tab === "all") { + acc[tab] = allIssues.length; + return acc; + } + + acc[tab] = allIssues.filter((issue) => issue.category === tab).length; + return acc; + }, + { + all: allIssues.length, + performance: 0, + accessibility: 0, + "best-practices": 0, + seo: 0, + }, + ); + + const severityCounts = { + critical: visibleIssues.filter((issue) => issue.severity === "critical") + .length, + warning: visibleIssues.filter((issue) => issue.severity === "warning") + .length, + info: visibleIssues.filter((issue) => issue.severity === "info").length, + }; + + const exportCurrentCategory: ExportPayload = + category === "all" + ? { mode: "issues" } + : { + mode: "category", + category, + }; + + const selectedCategoryLabel = categoryLabel(category); + + const runExport = async (data: ExportPayload) => { + try { + const exported = await exportMutation.mutateAsync(data); + downloadTextFile(exported.filename, exported.content, "application/json"); + toast.success("Download started"); + } catch (error) { + const message = + error instanceof Error ? error.message : "Failed to export payload"; + toast.error(message); + } + }; + + const runExportCsv = (issues: PsiIssue[], variant: "all" | "current") => { + const filename = `psi-${variant}-${categorySlug(category)}-issues.csv`; + downloadTextFile(filename, issuesToCsv(issues), "text/csv"); + toast.success("CSV download started"); + }; + + const runCopy = async (data: ExportPayload, toastMessage: string) => { + try { + const exported = await exportMutation.mutateAsync(data); + await navigator.clipboard.writeText(exported.content); + toast.success(toastMessage); + } catch (error) { + const message = + error instanceof Error ? error.message : "Failed to copy payload"; + toast.error(message); + } + }; + + const isBusy = exportMutation.isPending; + + return ( +
+
+
+ + + {issuesQuery.data?.createdAt + ? `Scanned ${new Date(issuesQuery.data.createdAt).toLocaleString()}` + : "Reading latest issues..."} + +
+ +
+
+
+

PSI Issues

+

+ {issuesQuery.data?.finalUrl ?? "Loading URL..."} +

+
+
+ + + Critical {severityCounts.critical} + + + + Warning {severityCounts.warning} + + + + Info {severityCounts.info} + +
+
+
+ +
+
+
+
+
+ {categoryTabs.map((tab) => ( + + ))} +
+ +
+
+
+ + Export + +
+
    +
  • + Copy +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + Download JSON +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + Download CSV +
  • +
  • + +
  • +
  • + +
  • +
+
+
+
+
+ + {issuesQuery.isLoading ? ( +

Loading issues...

+ ) : visibleIssues.length ? ( +
+ {visibleIssues.map((issue) => ( +
+
+
+
+ + {issue.category} + + + {severityIcon(issue.severity)} + {issue.severity} + + {issue.score != null && ( +
+ + Score {issue.score} + +
+ )} +
+ {(issue.impactMs != null || + issue.impactBytes != null) && ( + + Impact {issue.impactMs ?? 0}ms /{" "} + {issue.impactBytes ?? 0} bytes + + )} +
+ +

+ {issue.title} +

+ + {issue.displayValue && ( +

+ {issue.displayValue} +

+ )} + + {issue.description && ( +
+ {renderInlineMarkdown(issue.description)} +
+ )} + + {issue.items.length > 0 && ( +
+ + Affected items ({issue.items.length}) + +
+ {issue.items.map((item) => ( +
+                                {item}
+                              
+ ))} +
+
+ )} +
+
+ ))} +
+ ) : ( +

+ No unresolved issues for this category. +

+ )} +
+
+
+
+ ); +} + +function categoryLabel(category: CategoryTab) { + if (category === "best-practices") return "Best practices"; + if (category === "all") return "All"; + return `${category.charAt(0).toUpperCase()}${category.slice(1)}`; +} + +function categorySlug(category: CategoryTab) { + return category === "all" ? "all" : category; +} + +function issuesToCsv(issues: PsiIssue[]) { + const headers = [ + "Category", + "Severity", + "Score", + "Title", + "Display Value", + "Description", + "Impact (ms)", + "Impact (bytes)", + "Affected Items", + ]; + + const rows = issues.map((issue) => [ + issue.category, + issue.severity, + issue.score ?? "", + issue.title, + issue.displayValue ?? "", + issue.description ?? "", + issue.impactMs ?? "", + issue.impactBytes ?? "", + issue.items.length, + ]); + + return [ + headers.map(csvEscape).join(","), + ...rows.map((row) => row.map(csvEscape).join(",")), + ].join("\n"); +} + +function csvEscape(value: string | number) { + const text = String(value); + if (text.includes(",") || text.includes('"') || text.includes("\n")) { + return `"${text.replaceAll('"', '""')}"`; + } + return text; +} + +function renderInlineMarkdown(markdown: string): ReactNode { + const linkPattern = /\[([^\]]+)\]\((https?:\/\/[^)\s]+)\)/g; + const nodes: ReactNode[] = []; + let cursor = 0; + let match = linkPattern.exec(markdown); + + while (match) { + const [raw, label, href] = match; + const index = match.index; + + if (index > cursor) { + nodes.push(markdown.slice(cursor, index)); + } + + nodes.push( + + {label} + + , + ); + + cursor = index + raw.length; + match = linkPattern.exec(markdown); + } + + if (cursor < markdown.length) { + nodes.push(markdown.slice(cursor)); + } + + if (!nodes.length) { + return markdown; + } + + return nodes; +} + +function downloadTextFile(filename: string, content: string, mimeType: string) { + const blob = new Blob([content], { type: mimeType }); + const link = document.createElement("a"); + link.href = URL.createObjectURL(blob); + link.download = filename; + link.click(); + URL.revokeObjectURL(link.href); +} + +function severityBadgeClass(severity: "critical" | "warning" | "info") { + if (severity === "critical") + return "border-error/30 bg-error/10 text-error/80"; + if (severity === "warning") + return "border-warning/35 bg-warning/10 text-warning/80"; + return "border-info/30 bg-info/10 text-info/80"; +} + +function severityIcon(severity: "critical" | "warning" | "info") { + if (severity === "critical") return ; + if (severity === "warning") return ; + return ; +} diff --git a/src/routes/p/$projectId/domain.tsx b/src/routes/p/$projectId/domain.tsx new file mode 100644 index 0000000..ba495ea --- /dev/null +++ b/src/routes/p/$projectId/domain.tsx @@ -0,0 +1,1201 @@ +import { createFileRoute, useNavigate } from "@tanstack/react-router"; +import { + useCallback, + useMemo, + useState, + useEffect, + type FormEvent, +} from "react"; +import { toast } from "sonner"; +import { useMutation, useQueryClient } from "@tanstack/react-query"; +import { useForm } from "@tanstack/react-form"; +import { sortBy } from "remeda"; +import { getDomainOverview } from "@/serverFunctions/domain"; +import { saveKeywords } from "@/serverFunctions/keywords"; +import { domainSearchSchema } from "@/types/schemas/domain"; +import { + ChevronDown, + Download, + FileSpreadsheet, + Globe, + Save, + Search, + Copy, + AlertCircle, + History, + Clock, + X, + ArrowDown, + ArrowUp, +} from "lucide-react"; +import { getStandardErrorMessage } from "@/client/lib/error-messages"; +import { useDomainSearchHistory } from "@/client/hooks/useDomainSearchHistory"; +import { HeaderHelpLabel } from "@/client/features/keywords/components"; +import { scoreTierClass } from "@/client/features/keywords/utils"; + +export const Route = createFileRoute("/p/$projectId/domain")({ + validateSearch: domainSearchSchema, + component: DomainOverviewPage, +}); + +type KeywordRow = { + keyword: string; + position: number | null; + searchVolume: number | null; + traffic: number | null; + cpc: number | null; + url: string | null; + relativeUrl: string | null; + keywordDifficulty: number | null; +}; + +type PageRow = { + page: string; + relativePath: string | null; + organicTraffic: number | null; + keywords: number | null; +}; + +type DomainControlsValues = { + domain: string; + subdomains: boolean; + sort: "rank" | "traffic" | "volume"; +}; + +type DomainSortMode = DomainControlsValues["sort"]; +type SortOrder = "asc" | "desc"; + +function DomainOverviewPage() { + const { projectId } = Route.useParams(); + const queryClient = useQueryClient(); + + // --- URL search params (persisted in query string) --- + const { + domain: domainInput = "", + subdomains: includeSubdomains = true, + sort: sortMode = "rank", + order: sortOrder, + tab: activeTab = "keywords", + search: searchText = "", + } = Route.useSearch(); + const currentSortOrder = resolveSortOrder(sortMode, sortOrder); + const navigate = useNavigate({ from: Route.fullPath }); + + // --- Pending state (not in URL until Search clicked) --- + const [domainError, setDomainError] = useState(null); + const [overviewError, setOverviewError] = useState(null); + const [pendingSearch, setPendingSearch] = useState(searchText); + + const controlsForm = useForm({ + defaultValues: { + domain: domainInput, + subdomains: includeSubdomains, + sort: sortMode, + } as DomainControlsValues, + }); + + const { + history, + isLoaded: historyLoaded, + addSearch, + clearHistory, + removeHistoryItem, + } = useDomainSearchHistory(projectId); + + // Sync URL params to local pending state when they change + useEffect(() => { + controlsForm.setFieldValue("domain", domainInput); + controlsForm.setFieldValue("subdomains", includeSubdomains); + controlsForm.setFieldValue("sort", sortMode); + setPendingSearch(searchText); + }, [controlsForm, domainInput, includeSubdomains, searchText, sortMode]); + + // One-time URL normalization for old links with empty/default params. + useEffect(() => { + const raw = new URLSearchParams(window.location.search); + const rawSort = toSortMode(raw.get("sort")); + const rawOrder = toSortOrder(raw.get("order")); + const shouldNormalize = + raw.get("domain") === "" || + raw.get("search") === "" || + raw.get("subdomains") === "true" || + raw.get("sort") === "rank" || + (rawOrder != null && + rawOrder === getDefaultSortOrder(rawSort ?? "rank")) || + raw.get("tab") === "keywords"; + + if (!shouldNormalize) return; + + void navigate({ + search: (prev) => ({ + ...prev, + domain: prev.domain === "" ? undefined : prev.domain, + search: prev.search === "" ? undefined : prev.search, + subdomains: prev.subdomains === true ? undefined : prev.subdomains, + sort: prev.sort === "rank" ? undefined : prev.sort, + order: + prev.order != null && + prev.order === getDefaultSortOrder(prev.sort ?? "rank") + ? undefined + : prev.order, + tab: prev.tab === "keywords" ? undefined : prev.tab, + }), + replace: true, + }); + }, [navigate]); + + const setSearchParams = useCallback( + (updates: Record) => { + void navigate({ + search: (prev) => ({ ...prev, ...updates }), + replace: true, + }); + }, + [navigate], + ); + + // --- Local-only state (API response data) --- + const [overview, setOverview] = useState<{ + domain: string; + organicTraffic: number | null; + organicKeywords: number | null; + backlinks: number | null; + referringDomains: number | null; + hasData: boolean; + keywords: KeywordRow[]; + pages: PageRow[]; + } | null>(null); + const [selectedKeywords, setSelectedKeywords] = useState>( + new Set(), + ); + + const domainMutation = useMutation({ + mutationFn: (data: { + domain: string; + includeSubdomains: boolean; + locationCode: number; + languageCode: string; + }) => getDomainOverview({ data }), + }); + const isLoading = domainMutation.isPending; + + const saveMutation = useMutation({ + mutationFn: (data: { + projectId: string; + keywords: string[]; + locationCode: number; + languageCode: string; + metrics?: Array<{ + keyword: string; + searchVolume?: number | null; + cpc?: number | null; + keywordDifficulty?: number | null; + }>; + }) => saveKeywords({ data }), + onSuccess: () => { + void queryClient.invalidateQueries({ + queryKey: ["savedKeywords", projectId], + }); + }, + }); + + const filteredKeywords = useMemo(() => { + const source = overview?.keywords ?? []; + const filtered = !pendingSearch + ? source + : source.filter((row) => { + const haystack = + `${row.keyword} ${row.relativeUrl ?? ""}`.toLowerCase(); + return haystack.includes(pendingSearch.toLowerCase().trim()); + }); + + if (sortMode === "traffic") { + return sortBy(filtered, [ + (row) => sortableNullableNumber(row.traffic, currentSortOrder), + currentSortOrder, + ]); + } + + if (sortMode === "volume") { + return sortBy(filtered, [ + (row) => sortableNullableNumber(row.searchVolume, currentSortOrder), + currentSortOrder, + ]); + } + + return sortBy(filtered, [ + (row) => sortableNullableNumber(row.position, currentSortOrder), + currentSortOrder, + ]); + }, [currentSortOrder, overview?.keywords, pendingSearch, sortMode]); + + const filteredPages = useMemo(() => { + const source = overview?.pages ?? []; + const filtered = !pendingSearch + ? source + : source.filter((row) => { + const text = `${row.relativePath ?? ""} ${row.page}`.toLowerCase(); + return text.includes(pendingSearch.toLowerCase().trim()); + }); + + const pageSortMode = toPageSortMode(sortMode); + + if (pageSortMode === "volume") { + return sortBy(filtered, [ + (row) => sortableNullableNumber(row.keywords, currentSortOrder), + currentSortOrder, + ]); + } + + return sortBy(filtered, [ + (row) => sortableNullableNumber(row.organicTraffic, currentSortOrder), + currentSortOrder, + ]); + }, [currentSortOrder, overview?.pages, pendingSearch, sortMode]); + useEffect(() => { + setSearchParams({ + search: pendingSearch.trim() || undefined, + }); + }, [pendingSearch, setSearchParams]); + + const visibleKeywords = useMemo( + () => filteredKeywords.slice(0, 100).map((row) => row.keyword), + [filteredKeywords], + ); + + useEffect(() => { + const visibleSet = new Set(visibleKeywords); + setSelectedKeywords((prev) => { + const next = new Set( + [...prev].filter((keyword) => visibleSet.has(keyword)), + ); + if (next.size === prev.size) return prev; + return next; + }); + }, [visibleKeywords]); + + const toggleKeywordSelection = (keyword: string) => { + setSelectedKeywords((prev) => { + const next = new Set(prev); + if (next.has(keyword)) { + next.delete(keyword); + } else { + next.add(keyword); + } + return next; + }); + }; + + const toggleAllVisibleKeywords = () => { + setSelectedKeywords((prev) => { + if ( + visibleKeywords.length > 0 && + visibleKeywords.every((keyword) => prev.has(keyword)) + ) { + return new Set(); + } + return new Set(visibleKeywords); + }); + }; + + const applySort = useCallback( + (nextSort: DomainSortMode, nextOrder: SortOrder) => { + controlsForm.setFieldValue("sort", nextSort); + setSearchParams({ + sort: toSortSearchParam(nextSort), + order: toSortOrderSearchParam(nextSort, nextOrder), + }); + }, + [controlsForm, setSearchParams], + ); + + const handleSortColumnClick = useCallback( + (nextSort: DomainSortMode) => { + const nextOrder = + nextSort === sortMode + ? currentSortOrder === "asc" + ? "desc" + : "asc" + : getDefaultSortOrder(nextSort); + + applySort(nextSort, nextOrder); + }, + [applySort, currentSortOrder, sortMode], + ); + + const handleSaveKeywords = () => { + if (selectedKeywords.size === 0) { + toast.error("Select at least one keyword first"); + return; + } + + const selectedRows = filteredKeywords.filter((row) => + selectedKeywords.has(row.keyword), + ); + + saveMutation.mutate( + { + projectId, + keywords: [...selectedKeywords], + locationCode: 2840, + languageCode: "en", + metrics: selectedRows.map((row) => ({ + keyword: row.keyword, + searchVolume: row.searchVolume, + cpc: row.cpc, + keywordDifficulty: row.keywordDifficulty, + })), + }, + { + onSuccess: () => { + toast.success(`Saved ${selectedKeywords.size} keywords`); + }, + onError: (error) => { + toast.error(getStandardErrorMessage(error, "Save failed.")); + }, + }, + ); + }; + + const onSearch = ( + params?: Partial<{ + domain: string; + subdomains: boolean; + sort: DomainSortMode; + order: SortOrder; + tab: "keywords" | "pages"; + search: string; + }>, + ) => { + const values = controlsForm.state.values; + const rawTarget = params?.domain ?? values.domain; + const activeSubdomains = params?.subdomains ?? values.subdomains; + const activeSort = params?.sort ?? sortMode; + const activeOrder = params?.order ?? currentSortOrder; + const activeTabValue = params?.tab ?? activeTab; + const activeSearch = params?.search ?? pendingSearch; + if (!rawTarget.trim()) { + setDomainError("Please enter a domain"); + return; + } + + const target = normalizeDomainTarget(rawTarget); + if (!target) { + setDomainError( + "Please enter a valid URL or domain (e.g. browserbase.com)", + ); + return; + } + + setDomainError(null); + setOverviewError(null); + setPendingSearch(activeSearch); + controlsForm.setFieldValue("domain", target); + controlsForm.setFieldValue("subdomains", activeSubdomains); + controlsForm.setFieldValue("sort", activeSort); + + // Update URL with pending values before searching (filter out empty values) + const searchUpdates: Record = { + domain: target, + subdomains: activeSubdomains ? undefined : activeSubdomains, + sort: toSortSearchParam(activeSort), + order: toSortOrderSearchParam(activeSort, activeOrder), + tab: activeTabValue === "keywords" ? undefined : activeTabValue, + }; + searchUpdates.search = activeSearch.trim() || undefined; + + void navigate({ + search: (prev) => ({ ...prev, ...searchUpdates }), + replace: true, + }); + + domainMutation.mutate( + { + domain: target, + includeSubdomains: activeSubdomains, + locationCode: 2840, + languageCode: "en", + }, + { + onSuccess: (response) => { + setOverview(response); + setSelectedKeywords(new Set()); + + addSearch({ + domain: target, + subdomains: activeSubdomains, + sort: activeSort, + tab: activeTabValue, + search: activeSearch.trim() || undefined, + }); + + if (!response.hasData) { + toast.info("Not enough data for this domain"); + } + }, + onError: (error) => { + setOverviewError(getStandardErrorMessage(error, "Lookup failed.")); + }, + }, + ); + }; + + const handleSearchSubmit = (event: FormEvent) => { + event.preventDefault(); + onSearch(); + }; + + return ( +
+
+
+

Domain Overview

+

+ Analyze any domain's SEO profile: traffic, keywords, and + backlinks. +

+
+ +
+
+
+ + + + {(field) => ( + + )} + + + +
+ + {domainError ? ( +

+ {domainError} +

+ ) : null} + + {overviewError ? ( +
+ + {overviewError} +
+ ) : null} + +
+ +
+
+
+ + {isLoading ? ( + + ) : overview === null ? ( +
+ {historyLoaded && history.length > 0 ? ( +
+
+
+ + + {history.length} recent search + {history.length !== 1 ? "es" : ""} + +
+ +
+ +
+ {history.map((item) => ( +
{ + const updates = { + domain: item.domain, + subdomains: item.subdomains ? undefined : false, + sort: toSortSearchParam(item.sort), + order: undefined, + tab: item.tab === "keywords" ? undefined : item.tab, + search: item.search?.trim() ? item.search : undefined, + }; + + controlsForm.setFieldValue("domain", item.domain); + controlsForm.setFieldValue( + "subdomains", + item.subdomains, + ); + controlsForm.setFieldValue("sort", item.sort); + setPendingSearch(item.search ?? ""); + setSearchParams(updates); + + onSearch({ + domain: item.domain, + subdomains: item.subdomains, + sort: item.sort, + order: getDefaultSortOrder(item.sort), + tab: item.tab, + search: item.search ?? "", + }); + }} + > +
+ +
+

+ {item.domain} +

+

+ {item.subdomains + ? "Include subdomains" + : "Root domain only"} + {item.search?.trim() ? ` - ${item.search}` : ""} +

+
+
+
+ + {new Date(item.timestamp).toLocaleDateString( + undefined, + { month: "short", day: "numeric" }, + )} + + +
+
+ ))} +
+
+ ) : ( +
+ +

+ Enter a domain to get started +

+
+ )} +
+ ) : ( + <> +
+ + +
+ + {!overview.hasData && ( +
+ + Not enough data for this domain yet. Try another domain or + include subdomains. + +
+ )} + +
+
+
+
+ + +
+ +
+ {activeTab === "keywords" && ( + + )} +
+
+ + Export + +
+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+
+
+ +
+ +
+ + {activeTab === "keywords" ? ( +
+
+ {selectedKeywords.size > 0 + ? `${selectedKeywords.size} selected` + : "Select keywords to save"} +
+ + + + + + + + + + + + + + + {filteredKeywords.length === 0 ? ( + + + + ) : ( + filteredKeywords.slice(0, 100).map((row) => ( + + + + + + + + + + + )) + )} + +
+ 0 && + visibleKeywords.every((keyword) => + selectedKeywords.has(keyword), + ) + } + onChange={toggleAllVisibleKeywords} + /> + Keyword + handleSortColumnClick("rank")} + /> + + handleSortColumnClick("volume")} + /> + + handleSortColumnClick("traffic")} + /> + + + URL + +
+ No keywords match this search. +
+ + toggleKeywordSelection(row.keyword) + } + aria-label={`Select ${row.keyword}`} + /> + {row.keyword}{row.position ?? "-"}{formatNumber(row.searchVolume)}{formatFloat(row.traffic)} + {row.cpc == null + ? "-" + : `$${row.cpc.toFixed(2)}`} + + {row.relativeUrl ?? row.url ?? "-"} + + +
+
+ ) : ( +
+ + + + + + + + + + {filteredPages.length === 0 ? ( + + + + ) : ( + filteredPages.slice(0, 100).map((row) => ( + + + + + + )) + )} + +
Page + handleSortColumnClick("traffic")} + /> + + handleSortColumnClick("volume")} + /> +
+ No pages match this search. +
+ {row.relativePath ?? row.page} + {formatFloat(row.organicTraffic)}{formatNumber(row.keywords)}
+
+ )} +
+
+ + )} +
+
+ ); +} + +function DomainOverviewLoadingState() { + return ( +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ {Array.from({ length: 8 }).map((_, index) => ( +
+
+
+
+
+
+
+ ))} +
+
+
+
+ ); +} + +function toSortMode(value: string | null): DomainSortMode | undefined { + if (value === "rank" || value === "traffic" || value === "volume") { + return value; + } + return undefined; +} + +function toSortOrder(value: string | null): SortOrder | undefined { + if (value === "asc" || value === "desc") return value; + return undefined; +} + +function getDefaultSortOrder(sortMode: DomainSortMode): SortOrder { + return sortMode === "rank" ? "asc" : "desc"; +} + +function resolveSortOrder( + sortMode: DomainSortMode, + sortOrder: SortOrder | undefined, +): SortOrder { + return sortOrder ?? getDefaultSortOrder(sortMode); +} + +function toSortSearchParam( + sortMode: DomainSortMode, +): DomainSortMode | undefined { + return sortMode === "rank" ? undefined : sortMode; +} + +function toSortOrderSearchParam( + sortMode: DomainSortMode, + sortOrder: SortOrder, +): SortOrder | undefined { + return sortOrder === getDefaultSortOrder(sortMode) ? undefined : sortOrder; +} + +function sortableNullableNumber( + value: number | null | undefined, + order: SortOrder, +): number { + if (value != null) return value; + return order === "asc" ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; +} + +function toPageSortMode( + sortMode: DomainSortMode, +): Exclude { + if (sortMode === "rank") return "traffic"; + return sortMode; +} + +function SortableHeader({ + label, + isActive, + order, + onClick, +}: { + label: string; + isActive: boolean; + order: SortOrder; + onClick: () => void; +}) { + return ( + + ); +} + +function normalizeDomainTarget(input: string): string | null { + const value = input.trim(); + if (!value) return null; + + const withProtocol = /^[a-zA-Z][a-zA-Z\d+.-]*:\/\//.test(value) + ? value + : `https://${value}`; + + try { + const parsed = new URL(withProtocol); + const hostname = parsed.hostname.toLowerCase(); + if (!hostname || !hostname.includes(".")) return null; + + if (!/^[a-z\d.-]+$/.test(hostname)) return null; + + const path = parsed.pathname === "/" ? "" : parsed.pathname; + return `${hostname}${path}`; + } catch { + return null; + } +} + +function StatCard({ label, value }: { label: string; value: string }) { + return ( +
+
+

+ {label} +

+

{value}

+
+
+ ); +} + +function DifficultyBadge({ value }: { value: number | null }) { + if (value == null) { + return -; + } + + return ( + + {value} + + ); +} + +function formatNumber(value: number | null | undefined) { + if (value == null) return "-"; + return new Intl.NumberFormat().format(value); +} + +function formatFloat(value: number | null | undefined) { + if (value == null) return "-"; + if (value > 100) return new Intl.NumberFormat().format(Math.round(value)); + return value.toFixed(2); +} + +function formatMetric( + value: number | null | undefined, + hasData: boolean | undefined, +) { + if (!hasData) return "Not enough data"; + return formatNumber(value); +} + +function csvEscape(value: string | number | null | undefined): string { + if (value == null) return ""; + const text = String(value).replace(/"/g, '""'); + return `"${text}"`; +} + +function keywordsToCsv(rows: KeywordRow[]): string { + const headers = [ + "Keyword", + "Rank", + "Volume", + "Traffic", + "CPC", + "URL", + "Score", + ]; + const lines = rows.map((row) => + [ + row.keyword, + row.position, + row.searchVolume, + row.traffic, + row.cpc, + row.relativeUrl ?? row.url, + row.keywordDifficulty, + ] + .map(csvEscape) + .join(","), + ); + return [headers.map(csvEscape).join(","), ...lines].join("\n"); +} + +function pagesToCsv(rows: PageRow[]): string { + const headers = ["Page", "Organic Traffic", "Keywords"]; + const lines = rows.map((row) => + [row.relativePath ?? row.page, row.organicTraffic, row.keywords] + .map(csvEscape) + .join(","), + ); + return [headers.map(csvEscape).join(","), ...lines].join("\n"); +} + +function downloadCsv(content: string, filename: string) { + const blob = new Blob([content], { type: "text/csv;charset=utf-8;" }); + const url = URL.createObjectURL(blob); + const link = document.createElement("a"); + link.href = url; + link.download = filename; + link.click(); + URL.revokeObjectURL(url); +} diff --git a/src/routes/p/$projectId/index.tsx b/src/routes/p/$projectId/index.tsx new file mode 100644 index 0000000..88acf6d --- /dev/null +++ b/src/routes/p/$projectId/index.tsx @@ -0,0 +1,10 @@ +import { createFileRoute, redirect } from "@tanstack/react-router"; + +export const Route = createFileRoute("/p/$projectId/")({ + beforeLoad: ({ params }) => { + throw redirect({ + to: "/p/$projectId/keywords", + params: { projectId: params.projectId }, + }); + }, +}); diff --git a/src/routes/p/$projectId/keywords.tsx b/src/routes/p/$projectId/keywords.tsx new file mode 100644 index 0000000..c7f334b --- /dev/null +++ b/src/routes/p/$projectId/keywords.tsx @@ -0,0 +1,1559 @@ +import { createFileRoute, useNavigate } from "@tanstack/react-router"; +import { + useMemo, + useState, + useCallback, + useEffect, + type FormEvent, +} from "react"; +import { toast } from "sonner"; +import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; +import { useForm } from "@tanstack/react-form"; +import { reverse, sortBy } from "remeda"; +import { + researchKeywords, + saveKeywords, + getSerpAnalysis, +} from "@/serverFunctions/keywords"; +import { useSearchHistory } from "@/client/hooks/useSearchHistory"; +import { keywordsSearchSchema } from "@/types/schemas/keywords"; +import { + Search, + SlidersHorizontal, + Save, + FileDown, + Globe, + History, + X, + Clock, + RotateCcw, + AlertCircle, +} from "lucide-react"; +import type { KeywordResearchRow } from "@/types/keywords"; +import { getStandardErrorMessage } from "@/client/lib/error-messages"; +import { + LOCATIONS, + csvEscape, + getLanguageCode, + parseTerms, +} from "@/client/features/keywords/utils"; +import { + AreaTrendChart, + KeywordCard, + KeywordRow, + OverviewStats, + SerpAnalysisCard, + SortHeader, + type SortDir, + type SortField, +} from "@/client/features/keywords/components"; + +export const Route = createFileRoute("/p/$projectId/keywords")({ + validateSearch: keywordsSearchSchema, + component: KeywordResearchPage, +}); + +function shouldNormalizeLegacySearch(raw: URLSearchParams): boolean { + const defaultValues: Array<[string, string]> = [ + ["q", ""], + ["loc", "2840"], + ["kLimit", "150"], + ["sort", "searchVolume"], + ["order", "desc"], + ["minVol", ""], + ["maxVol", ""], + ["minCpc", ""], + ["maxCpc", ""], + ["minKd", ""], + ["maxKd", ""], + ["include", ""], + ["exclude", ""], + ]; + + return defaultValues.some(([key, value]) => raw.get(key) === value); +} + +const RESULT_LIMITS = [150, 300, 500] as const; +type ResultLimit = (typeof RESULT_LIMITS)[number]; +type KeywordSource = "related" | "suggestions" | "ideas"; + +type KeywordControlsValues = { + keyword: string; + locationCode: number; + resultLimit: ResultLimit; +}; + +function applyKeywordFiltersAndSort(params: { + rows: KeywordResearchRow[]; + include: string; + exclude: string; + minVol: string; + maxVol: string; + minCpc: string; + maxCpc: string; + minKd: string; + maxKd: string; + sortField: SortField; + sortDir: SortDir; +}): KeywordResearchRow[] { + const includeTerms = parseTerms(params.include); + const excludeTerms = parseTerms(params.exclude); + + const filtered = params.rows.filter((row) => { + const haystack = row.keyword.toLowerCase(); + if ( + includeTerms.length > 0 && + !includeTerms.every((term) => haystack.includes(term)) + ) { + return false; + } + if (excludeTerms.some((term) => haystack.includes(term))) { + return false; + } + + const vol = row.searchVolume ?? 0; + const cpc = row.cpc ?? 0; + const kd = row.keywordDifficulty ?? 0; + + if (params.minVol && vol < Number(params.minVol)) return false; + if (params.maxVol && vol > Number(params.maxVol)) return false; + if (params.minCpc && cpc < Number(params.minCpc)) return false; + if (params.maxCpc && cpc > Number(params.maxCpc)) return false; + if (params.minKd && kd < Number(params.minKd)) return false; + if (params.maxKd && kd > Number(params.maxKd)) return false; + return true; + }); + + if (params.sortField === "keyword") { + return sortBy(filtered, [(row) => row.keyword, params.sortDir]); + } + if (params.sortField === "searchVolume") { + return sortBy(filtered, [(row) => row.searchVolume ?? -1, params.sortDir]); + } + if (params.sortField === "cpc") { + return sortBy(filtered, [(row) => row.cpc ?? -1, params.sortDir]); + } + if (params.sortField === "competition") { + return sortBy(filtered, [(row) => row.competition ?? -1, params.sortDir]); + } + + return sortBy(filtered, [ + (row) => row.keywordDifficulty ?? -1, + params.sortDir, + ]); +} + +function getNextSortParams( + currentField: SortField, + currentDirection: SortDir, + targetField: SortField, +): { sort: SortField; order: SortDir } { + if (currentField !== targetField) { + return { sort: targetField, order: "desc" }; + } + + return { + sort: currentField, + order: currentDirection === "asc" ? "desc" : "asc", + }; +} + +function getNextSelectionSet( + current: Set, + allVisibleKeywords: string[], +): Set { + if (current.size === allVisibleKeywords.length) { + return new Set(); + } + + return new Set(allVisibleKeywords); +} + +/* ------------------------------------------------------------------ */ +/* Main page component */ +/* ------------------------------------------------------------------ */ +// eslint-disable-next-line complexity, max-lines-per-function +function KeywordResearchPage() { + const { projectId } = Route.useParams(); + const queryClient = useQueryClient(); + + // --- URL search params (persisted in query string) --- + const { + q: keywordInput = "", + loc: locationCode = 2840, + kLimit: resultLimit = 150, + sort: sortField = "searchVolume", + order: sortDir = "desc", + minVol: minVolume = "", + maxVol: maxVolume = "", + minCpc = "", + maxCpc = "", + minKd: minDifficulty = "", + maxKd: maxDifficulty = "", + include: includeText = "", + exclude: excludeText = "", + } = Route.useSearch(); + const navigate = useNavigate({ from: Route.fullPath }); + + // --- Local-only UI state --- + const [showFilters, setShowFilters] = useState(false); + const [selectedKeyword, setSelectedKeyword] = + useState(null); + + const controlsForm = useForm({ + defaultValues: { + keyword: keywordInput, + locationCode, + resultLimit, + } as KeywordControlsValues, + }); + const [pendingInclude, setPendingInclude] = useState(includeText); + const [pendingExclude, setPendingExclude] = useState(excludeText); + const [pendingMinVol, setPendingMinVol] = useState(minVolume); + const [pendingMaxVol, setPendingMaxVol] = useState(maxVolume); + const [pendingMinCpc, setPendingMinCpc] = useState(minCpc); + const [pendingMaxCpc, setPendingMaxCpc] = useState(maxCpc); + const [pendingMinKd, setPendingMinKd] = useState(minDifficulty); + const [pendingMaxKd, setPendingMaxKd] = useState(maxDifficulty); + + // Sync URL params to local pending state when they change (e.g., back/forward nav, history click) + useEffect(() => { + controlsForm.setFieldValue("keyword", keywordInput); + controlsForm.setFieldValue("locationCode", locationCode); + controlsForm.setFieldValue("resultLimit", resultLimit); + setPendingInclude(includeText); + setPendingExclude(excludeText); + setPendingMinVol(minVolume); + setPendingMaxVol(maxVolume); + setPendingMinCpc(minCpc); + setPendingMaxCpc(maxCpc); + setPendingMinKd(minDifficulty); + setPendingMaxKd(maxDifficulty); + }, [ + controlsForm, + keywordInput, + locationCode, + resultLimit, + includeText, + excludeText, + minVolume, + maxVolume, + minCpc, + maxCpc, + minDifficulty, + maxDifficulty, + ]); + + // One-time URL normalization for old links with empty/default params. + useEffect(() => { + const raw = new URLSearchParams(window.location.search); + const shouldNormalize = shouldNormalizeLegacySearch(raw); + + if (!shouldNormalize) return; + + void navigate({ + search: (prev) => ({ + ...prev, + q: prev.q === "" ? undefined : prev.q, + loc: prev.loc === 2840 ? undefined : prev.loc, + kLimit: prev.kLimit === 150 ? undefined : prev.kLimit, + sort: prev.sort === "searchVolume" ? undefined : prev.sort, + order: prev.order === "desc" ? undefined : prev.order, + minVol: prev.minVol === "" ? undefined : prev.minVol, + maxVol: prev.maxVol === "" ? undefined : prev.maxVol, + minCpc: prev.minCpc === "" ? undefined : prev.minCpc, + maxCpc: prev.maxCpc === "" ? undefined : prev.maxCpc, + minKd: prev.minKd === "" ? undefined : prev.minKd, + maxKd: prev.maxKd === "" ? undefined : prev.maxKd, + include: prev.include === "" ? undefined : prev.include, + exclude: prev.exclude === "" ? undefined : prev.exclude, + }), + replace: true, + }); + }, [navigate]); + + // Search history hook + const { + history, + isLoaded: historyLoaded, + addSearch, + clearHistory, + removeHistoryItem, + } = useSearchHistory(projectId); + + // Results + const [rows, setRows] = useState([]); + const [hasSearched, setHasSearched] = useState(false); + const [lastSearchError, setLastSearchError] = useState(false); + const [lastResultSource, setLastResultSource] = + useState("related"); + const [lastUsedFallback, setLastUsedFallback] = useState(false); + const [lastSearchKeyword, setLastSearchKeyword] = useState(""); + const [lastSearchLocationCode, setLastSearchLocationCode] = useState(2840); + const [searchInputError, setSearchInputError] = useState(null); + const [researchError, setResearchError] = useState(null); + + // The seed keyword shown in overview + const [searchedKeyword, setSearchedKeyword] = useState(""); + + // Selection + const [selectedRows, setSelectedRows] = useState>(new Set()); + + // SERP analysis — the keyword currently being viewed for SERP + const [serpKeyword, setSerpKeyword] = useState(null); + const [serpPage, setSerpPage] = useState(0); + const SERP_PAGE_SIZE = 10; + + // Save dialog + const [showSaveDialog, setShowSaveDialog] = useState(false); + + // Mobile tab state + const [mobileTab, setMobileTab] = useState<"keywords" | "serp">("keywords"); + + // --- React Query hooks --- + + // Keyword research (user-triggered) + const researchMutation = useMutation({ + mutationFn: (data: { + keywords: string[]; + locationCode: number; + languageCode: string; + resultLimit: ResultLimit; + }) => researchKeywords({ data }), + }); + const isLoading = researchMutation.isPending; + + // SERP analysis (reactive query keyed by selected keyword) + const serpQuery = useQuery({ + queryKey: ["serpAnalysis", serpKeyword, locationCode] as const, + queryFn: () => + getSerpAnalysis({ + data: { + keyword: serpKeyword!, + locationCode, + languageCode: getLanguageCode(locationCode), + }, + }), + enabled: !!serpKeyword, + }); + const serpResults = serpQuery.data?.items ?? []; + const serpLoading = serpQuery.isLoading; + const serpError = serpQuery.isError + ? getStandardErrorMessage(serpQuery.error, "Failed to load SERP data.") + : null; + + // Save keywords mutation + const saveMutation = useMutation({ + mutationFn: (data: { + projectId: string; + keywords: string[]; + locationCode: number; + languageCode: string; + }) => saveKeywords({ data }), + onSuccess: () => { + void queryClient.invalidateQueries({ + queryKey: ["savedKeywords", projectId], + }); + }, + }); + + /* ---- derived ---- */ + const filteredRows = useMemo(() => { + return applyKeywordFiltersAndSort({ + rows, + include: pendingInclude, + exclude: pendingExclude, + minVol: pendingMinVol, + maxVol: pendingMaxVol, + minCpc: pendingMinCpc, + maxCpc: pendingMaxCpc, + minKd: pendingMinKd, + maxKd: pendingMaxKd, + sortField, + sortDir, + }); + }, [ + pendingExclude, + pendingInclude, + pendingMaxCpc, + pendingMaxKd, + pendingMaxVol, + pendingMinCpc, + pendingMinKd, + pendingMinVol, + rows, + sortField, + sortDir, + ]); + + const activeFilterCount = useMemo( + () => + [ + pendingInclude, + pendingExclude, + pendingMinVol, + pendingMaxVol, + pendingMinCpc, + pendingMaxCpc, + pendingMinKd, + pendingMaxKd, + ].filter((value) => value.trim() !== "").length, + [ + pendingExclude, + pendingInclude, + pendingMaxCpc, + pendingMaxKd, + pendingMaxVol, + pendingMinCpc, + pendingMinKd, + pendingMinVol, + ], + ); + + const hasExactMatchInResults = useMemo(() => { + const normalizedSeed = searchedKeyword.trim().toLowerCase(); + if (!normalizedSeed || rows.length === 0) return false; + + return rows.some( + (row) => row.keyword.trim().toLowerCase() === normalizedSeed, + ); + }, [rows, searchedKeyword]); + + const showApproximateMatchNotice = + hasSearched && + !isLoading && + !lastSearchError && + rows.length > 0 && + searchedKeyword.trim() !== "" && + !hasExactMatchInResults; + + // The keyword to show in the overview strip (selected or first seed result) + const overviewKeyword: KeywordResearchRow | null = useMemo(() => { + if (selectedKeyword) return selectedKeyword; + // find the seed keyword in results + if (searchedKeyword && rows.length > 0) { + const seed = rows.find( + (r) => r.keyword.toLowerCase() === searchedKeyword.toLowerCase(), + ); + if (seed) return seed; + } + return rows.length > 0 ? rows[0] : null; + }, [selectedKeyword, searchedKeyword, rows]); + + // Helper to update search params + const setSearchParams = useCallback( + (updates: Record) => { + void navigate({ + search: (prev) => ({ ...prev, ...updates }), + replace: true, + }); + }, + [navigate], + ); + + /* ---- handlers ---- */ + const onSearch = ( + overrides?: Partial<{ + keyword: string; + locationCode: number; + }>, + ) => { + const values = controlsForm.state.values; + const input = overrides?.keyword ?? values.keyword; + const activeLocation = overrides?.locationCode ?? values.locationCode; + const activeResultLimit = values.resultLimit; + const languageCode = getLanguageCode(activeLocation); + const keywords = input + .split(/[\n,]/) + .map((k) => k.trim()) + .filter(Boolean); + + if (keywords.length === 0) { + setSearchInputError("Please enter at least one keyword."); + return; + } + + setSearchInputError(null); + setResearchError(null); + + // Update URL with all pending values before searching (filter out empty values) + const searchUpdates: Record = + { + q: input, + loc: activeLocation === 2840 ? undefined : activeLocation, + kLimit: activeResultLimit === 150 ? undefined : activeResultLimit, + }; + void navigate({ + search: (prev) => ({ ...prev, ...searchUpdates }), + replace: true, + }); + + setSelectedKeyword(null); + setSelectedRows(new Set()); + setSearchedKeyword(keywords[0]); + setSerpKeyword(null); + setHasSearched(true); + setLastSearchError(false); + setLastSearchKeyword(keywords[0]); + setLastSearchLocationCode(activeLocation); + + researchMutation.mutate( + { + keywords, + locationCode: activeLocation, + languageCode, + resultLimit: activeResultLimit, + }, + { + onSuccess: (result) => { + setResearchError(null); + setRows(result.rows); + setLastResultSource(result.source); + setLastUsedFallback(result.usedFallback); + + // Add to search history + if (keywords.length > 0) { + addSearch( + keywords[0], + activeLocation, + LOCATIONS[activeLocation] || "Unknown", + ); + } + + if (result.rows.length === 0) { + setSerpKeyword(null); + } else { + // Kick off SERP fetch for the seed keyword + setSerpKeyword(keywords[0]); + setSerpPage(0); + } + }, + onError: (error) => { + setLastSearchError(true); + setRows([]); + setResearchError(getStandardErrorMessage(error, "Research failed.")); + }, + }, + ); + }; + + const handleSearchSubmit = (event: FormEvent) => { + event.preventDefault(); + onSearch(); + }; + + const toggleSort = (field: SortField) => { + setSearchParams(getNextSortParams(sortField, sortDir, field)); + }; + + const toggleRowSelection = (keyword: string) => { + setSelectedRows((prev) => { + const next = new Set(prev); + if (next.has(keyword)) next.delete(keyword); + else next.add(keyword); + return next; + }); + }; + + const toggleAllRows = () => { + setSelectedRows( + getNextSelectionSet( + selectedRows, + filteredRows.map((row) => row.keyword), + ), + ); + }; + + const resetFilters = () => { + setPendingInclude(""); + setPendingExclude(""); + setPendingMinVol(""); + setPendingMaxVol(""); + setPendingMinCpc(""); + setPendingMaxCpc(""); + setPendingMinKd(""); + setPendingMaxKd(""); + // Clear URL params by setting to undefined (will be removed from URL) + setSearchParams({ + minVol: undefined, + maxVol: undefined, + minCpc: undefined, + maxCpc: undefined, + minKd: undefined, + maxKd: undefined, + include: undefined, + exclude: undefined, + }); + }; + + const handleSaveKeywords = () => { + if (selectedRows.size === 0) { + toast.error("Select at least one keyword first"); + return; + } + setShowSaveDialog(true); + }; + + const confirmSave = () => { + saveMutation.mutate( + { + projectId, + keywords: [...selectedRows], + locationCode, + languageCode: getLanguageCode(locationCode), + }, + { + onSuccess: () => { + toast.success(`Saved ${selectedRows.size} keywords`); + setShowSaveDialog(false); + }, + onError: (error) => { + toast.error(getStandardErrorMessage(error, "Save failed.")); + }, + }, + ); + }; + + const exportCsv = () => { + const source = + selectedRows.size > 0 + ? filteredRows.filter((r) => selectedRows.has(r.keyword)) + : filteredRows; + if (source.length === 0) { + toast.error("No data to export"); + return; + } + const headers = [ + "Keyword", + "Volume", + "CPC", + "Competition", + "Difficulty", + "Intent", + ]; + const csvRows = source.map((r) => + [ + csvEscape(r.keyword), + r.searchVolume ?? "", + r.cpc?.toFixed(2) ?? "", + r.competition?.toFixed(2) ?? "", + r.keywordDifficulty ?? "", + r.intent, + ].join(","), + ); + const csv = [headers.join(","), ...csvRows].join("\n"); + const blob = new Blob([csv], { type: "text/csv;charset=utf-8;" }); + const url = URL.createObjectURL(blob); + const link = document.createElement("a"); + link.href = url; + link.download = "keyword-research.csv"; + link.click(); + URL.revokeObjectURL(url); + }; + + const handleRowClick = (row: KeywordResearchRow) => { + setSelectedKeyword(row); + setSerpKeyword(row.keyword); + setSerpPage(0); + }; + + /* ================================================================ */ + /* RENDER */ + /* ================================================================ */ + return ( +
+ {/* 1. Search bar */} +
+
+ {/* Keyword input */} + + + {/* Location */} + + {(field) => ( + + )} + + + + {(field) => ( + + )} + + + {/* Search button */} + +
+ {searchInputError ? ( +

{searchInputError}

+ ) : null} +
+ + {/* 2. Content area */} + {isLoading ? ( + + ) : researchError ? ( +
+
+
+ +

{researchError}

+
+ +
+
+ ) : rows.length === 0 ? ( + /* Empty state: no results or history */ + hasSearched && !isLoading && !lastSearchError ? ( +
+
+ +
+

+ Not enough keyword data for this query yet +

+

+ We could not find keyword opportunities for + + {` "${lastSearchKeyword}" `} + + in + + {` ${LOCATIONS[lastSearchLocationCode] || "this location"}`} + + . +

+
+ +
+

+ Source checked:{" "} + {lastResultSource} + {lastUsedFallback ? ( + + {" "} + (with fallback chain: related → suggestions → ideas) + + ) : null} +

+

+ Try a broader phrase, swap word order, or change location. +

+
+ +
+ + +
+
+
+ ) : ( +
+
+ {historyLoaded && history.length > 0 ? ( +
+
+
+ + + {history.length} recent search + {history.length !== 1 ? "es" : ""} + +
+ +
+
+ {history.map((item) => ( +
{ + controlsForm.setFieldValue("keyword", item.keyword); + controlsForm.setFieldValue( + "locationCode", + item.locationCode, + ); + setSearchParams({ + q: item.keyword, + loc: item.locationCode, + }); + onSearch({ + keyword: item.keyword, + locationCode: item.locationCode, + }); + }} + > +
+ +
+

+ {item.keyword} +

+

+ {item.locationName} +

+
+
+
+ + {new Date(item.timestamp).toLocaleDateString( + undefined, + { month: "short", day: "numeric" }, + )} + + +
+
+ ))} +
+
+ ) : ( +
+ +

+ Enter a keyword to get started +

+

+ Search for any keyword to see volume, difficulty, CPC, and + related keyword ideas. +

+
+ )} +
+
+ ) + ) : ( +
+ {/* 4. Two-panel layout: table (left) + SERP (right) */} + {/* Desktop */} +
+ {/* Left column: overview stats + keyword table */} +
+ {showApproximateMatchNotice && ( +
+ No exact match for{" "} + "{searchedKeyword}". + Showing closest related keywords instead. + {lastUsedFallback ? ( + + {" "} + Source: {lastResultSource} fallback. + + ) : null} +
+ )} + + {/* Overview stats strip */} + {overviewKeyword && } + + {/* Keyword table card */} +
+ {/* Table toolbar */} +
+ + + {selectedRows.size > 0 + ? `${selectedRows.size} of ${filteredRows.length} selected` + : `${filteredRows.length} keywords`} + +
+ + +
+ + {showFilters && ( +
+
+
+

+ Refine table results +

+ {activeFilterCount > 0 && ( + + {activeFilterCount} active + + )} +
+ +
+ +
+ + +
+ +
+
+

+ Search Volume +

+
+ setPendingMinVol(e.target.value)} + /> + setPendingMaxVol(e.target.value)} + /> +
+
+
+

+ CPC (USD) +

+
+ setPendingMinCpc(e.target.value)} + /> + setPendingMaxCpc(e.target.value)} + /> +
+
+
+

+ Difficulty +

+
+ setPendingMinKd(e.target.value)} + /> + setPendingMaxKd(e.target.value)} + /> +
+
+
+
+ )} + + {/* Table header */} +
+ 0 && + selectedRows.size === filteredRows.length + } + onChange={toggleAllRows} + /> + + + + + +
+ + {/* Scrollable keyword rows */} +
+ {filteredRows.length === 0 ? ( +
+

+ No keywords match your current filters. +

+ {activeFilterCount > 0 ? ( + + ) : null} +
+ ) : ( + filteredRows.map((row) => ( + toggleRowSelection(row.keyword)} + onClick={() => handleRowClick(row)} + /> + )) + )} +
+
+
+ + {/* Right column: trend chart + SERP panel */} +
+ {/* Trend chart */} + {overviewKeyword && overviewKeyword.trend.length > 0 && ( +
+

+ Search Trends{" "} + + Past 12 months + +

+ +
+ )} + + {/* SERP panel */} +
+
+

+ + SERP Analysis + {serpKeyword && ( + + : {serpKeyword} + + )} +

+
+
+ { + void serpQuery.refetch(); + }} + page={serpPage} + pageSize={SERP_PAGE_SIZE} + onPageChange={setSerpPage} + /> +
+
+
+
+ + {/* Mobile: stacked layout with tabs */} +
+ {/* Tab bar */} +
+ + +
+ + {mobileTab === "keywords" ? ( +
+ {showApproximateMatchNotice && ( +
+ No exact match for{" "} + "{searchedKeyword}". + Showing closest related keywords. +
+ )} + + {/* Mobile table toolbar */} +
+ + + {selectedRows.size > 0 + ? `${selectedRows.size} selected` + : `${filteredRows.length} keywords`} + +
+ + +
+ + {showFilters && ( +
+
+
+

+ Refine table results +

+ {activeFilterCount > 0 && ( + + {activeFilterCount} + + )} +
+ +
+ +
+ setPendingInclude(e.target.value)} + /> + setPendingExclude(e.target.value)} + /> +
+ +
+ setPendingMinVol(e.target.value)} + /> + setPendingMaxVol(e.target.value)} + /> + setPendingMinCpc(e.target.value)} + /> + setPendingMaxCpc(e.target.value)} + /> + setPendingMinKd(e.target.value)} + /> + setPendingMaxKd(e.target.value)} + /> +
+
+ )} + + {/* Mobile keyword cards */} +
+ {filteredRows.length === 0 ? ( +
+

+ No keywords match your current filters. +

+ {activeFilterCount > 0 ? ( + + ) : null} +
+ ) : ( + filteredRows.map((row) => ( + toggleRowSelection(row.keyword)} + onClick={() => handleRowClick(row)} + /> + )) + )} +
+
+ ) : ( +
+ { + void serpQuery.refetch(); + }} + page={serpPage} + pageSize={SERP_PAGE_SIZE} + onPageChange={setSerpPage} + /> +
+ )} +
+
+ )} + + {/* Save dialog */} + {showSaveDialog && ( +
+
+

+ Save {selectedRows.size} Keywords +

+
+

+ These keywords will be saved to your current project. +

+
+
+ + +
+
+
setShowSaveDialog(false)} + /> +
+ )} +
+ ); +} + +function KeywordResearchLoadingState() { + return ( +
+
+
+
+
+
+
+
+
+
+
+
+ {Array.from({ length: 10 }).map((_, index) => ( +
+
+
+
+
+
+
+
+ ))} +
+
+
+
+
+
+
+
+
+
+ {Array.from({ length: 6 }).map((_, index) => ( +
+
+
+
+
+ ))} +
+
+
+ +
+
+
+
+
+
+ {Array.from({ length: 8 }).map((_, index) => ( +
+
+
+
+
+
+
+
+ ))} +
+
+
+ ); +} diff --git a/src/routes/p/$projectId/psi/issues/$resultId.tsx b/src/routes/p/$projectId/psi/issues/$resultId.tsx new file mode 100644 index 0000000..b53ec02 --- /dev/null +++ b/src/routes/p/$projectId/psi/issues/$resultId.tsx @@ -0,0 +1,554 @@ +import { createFileRoute, useNavigate } from "@tanstack/react-router"; +import { useMutation, useQuery } from "@tanstack/react-query"; +import type { ReactNode } from "react"; +import { + ChevronDown, + Copy, + Download, + ExternalLink, + FileWarning, + Info, + TriangleAlert, +} from "lucide-react"; +import { toast } from "sonner"; +import { exportPsiBySource, getPsiIssuesBySource } from "@/serverFunctions/psi"; +import { psiIssuesSearchSchema } from "@/types/schemas/psi"; + +const categoryTabs = [ + "all", + "performance", + "accessibility", + "best-practices", + "seo", +] as const; + +type CategoryTab = (typeof categoryTabs)[number]; +type IssueCategory = Exclude; + +type ExportPayload = { + mode: "full" | "issues" | "category"; + category?: IssueCategory; +}; + +type PsiIssue = { + auditKey: string; + category: IssueCategory; + severity: "critical" | "warning" | "info"; + score?: number | null; + title: string; + displayValue?: string | null; + description?: string | null; + impactMs?: number | null; + impactBytes?: number | null; + items: string[]; +}; + +export const Route = createFileRoute("/p/$projectId/psi/issues/$resultId")({ + validateSearch: psiIssuesSearchSchema, + component: PsiIssuesPage, +}); + +function PsiIssuesPage() { + const { projectId, resultId } = Route.useParams(); + const { source, category } = Route.useSearch(); + const navigate = useNavigate({ from: Route.fullPath }); + + const issuesQuery = useQuery({ + queryKey: ["psiIssuesBySource", projectId, source, resultId, category], + queryFn: () => + getPsiIssuesBySource({ + data: { + projectId, + source, + resultId, + category: category === "all" ? undefined : category, + }, + }), + }); + + const summaryQuery = useQuery({ + queryKey: ["psiIssuesSummary", projectId, source, resultId], + queryFn: () => + getPsiIssuesBySource({ + data: { + projectId, + source, + resultId, + }, + }), + }); + + const exportMutation = useMutation({ + mutationFn: (data: ExportPayload) => + exportPsiBySource({ + data: { + projectId, + source, + resultId, + ...data, + }, + }), + }); + + const visibleIssues = (issuesQuery.data?.issues ?? []) as PsiIssue[]; + const allIssues = (summaryQuery.data?.issues ?? visibleIssues) as PsiIssue[]; + + const categoryCounts = categoryTabs.reduce>( + (acc, tab) => { + if (tab === "all") { + acc[tab] = allIssues.length; + return acc; + } + + acc[tab] = allIssues.filter((issue) => issue.category === tab).length; + return acc; + }, + { + all: allIssues.length, + performance: 0, + accessibility: 0, + "best-practices": 0, + seo: 0, + }, + ); + + const severityCounts = { + critical: visibleIssues.filter((issue) => issue.severity === "critical") + .length, + warning: visibleIssues.filter((issue) => issue.severity === "warning") + .length, + info: visibleIssues.filter((issue) => issue.severity === "info").length, + }; + + const exportCurrentCategory: ExportPayload = + category === "all" + ? { mode: "issues" } + : { + mode: "category", + category, + }; + + const selectedCategoryLabel = categoryLabel(category); + + const runExport = async (data: ExportPayload) => { + try { + const exported = await exportMutation.mutateAsync(data); + downloadTextFile(exported.filename, exported.content, "application/json"); + toast.success("Download started"); + } catch (error) { + const message = + error instanceof Error ? error.message : "Failed to export payload"; + toast.error(message); + } + }; + + const runExportCsv = (issues: PsiIssue[], variant: "all" | "current") => { + const filename = `psi-${variant}-${categorySlug(category)}-issues.csv`; + downloadTextFile(filename, issuesToCsv(issues), "text/csv"); + toast.success("CSV download started"); + }; + + const runCopy = async (data: ExportPayload, toastMessage: string) => { + try { + const exported = await exportMutation.mutateAsync(data); + await navigator.clipboard.writeText(exported.content); + toast.success(toastMessage); + } catch (error) { + const message = + error instanceof Error ? error.message : "Failed to copy payload"; + toast.error(message); + } + }; + + const isBusy = exportMutation.isPending; + + return ( +
+
+
+ + + {issuesQuery.data?.createdAt + ? `Scanned ${new Date(issuesQuery.data.createdAt).toLocaleString()}` + : "Reading latest issues..."} + +
+ +
+
+
+

PSI Issues

+

+ {issuesQuery.data?.finalUrl ?? "Loading URL..."} +

+
+
+ + + Critical {severityCounts.critical} + + + + Warning {severityCounts.warning} + + + + Info {severityCounts.info} + +
+
+
+ +
+
+
+
+
+ {categoryTabs.map((tab) => ( + + ))} +
+ +
+
+
+ + Export + +
+
    +
  • + Copy +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + Download JSON +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + Download CSV +
  • +
  • + +
  • +
  • + +
  • +
+
+
+
+
+ + {issuesQuery.isLoading ? ( +

Loading issues...

+ ) : visibleIssues.length ? ( +
+ {visibleIssues.map((issue) => ( +
+
+
+
+ + {issue.category} + + + {severityIcon(issue.severity)} + {issue.severity} + + {issue.score != null && ( +
+ + Score {issue.score} + +
+ )} +
+ {(issue.impactMs != null || + issue.impactBytes != null) && ( + + Impact {issue.impactMs ?? 0}ms /{" "} + {issue.impactBytes ?? 0} bytes + + )} +
+ +

+ {issue.title} +

+ + {issue.displayValue && ( +

+ {issue.displayValue} +

+ )} + + {issue.description && ( +
+ {renderInlineMarkdown(issue.description)} +
+ )} + + {issue.items.length > 0 && ( +
+ + Affected items ({issue.items.length}) + +
+ {issue.items.map((item) => ( +
+                                {item}
+                              
+ ))} +
+
+ )} +
+
+ ))} +
+ ) : ( +

+ No unresolved issues for this category. +

+ )} +
+
+
+
+ ); +} + +function categoryLabel(category: CategoryTab) { + if (category === "best-practices") return "Best practices"; + if (category === "all") return "All"; + return `${category.charAt(0).toUpperCase()}${category.slice(1)}`; +} + +function categorySlug(category: CategoryTab) { + return category === "all" ? "all" : category; +} + +function issuesToCsv(issues: PsiIssue[]) { + const headers = [ + "Category", + "Severity", + "Score", + "Title", + "Display Value", + "Description", + "Impact (ms)", + "Impact (bytes)", + "Affected Items", + ]; + + const rows = issues.map((issue) => [ + issue.category, + issue.severity, + issue.score ?? "", + issue.title, + issue.displayValue ?? "", + issue.description ?? "", + issue.impactMs ?? "", + issue.impactBytes ?? "", + issue.items.length, + ]); + + return [ + headers.map(csvEscape).join(","), + ...rows.map((row) => row.map(csvEscape).join(",")), + ].join("\n"); +} + +function csvEscape(value: string | number) { + const text = String(value); + if (text.includes(",") || text.includes('"') || text.includes("\n")) { + return `"${text.replaceAll('"', '""')}"`; + } + return text; +} + +function renderInlineMarkdown(markdown: string): ReactNode { + const linkPattern = /\[([^\]]+)\]\((https?:\/\/[^)\s]+)\)/g; + const nodes: ReactNode[] = []; + let cursor = 0; + let match = linkPattern.exec(markdown); + + while (match) { + const [raw, label, href] = match; + const index = match.index; + + if (index > cursor) { + nodes.push(markdown.slice(cursor, index)); + } + + nodes.push( + + {label} + + , + ); + + cursor = index + raw.length; + match = linkPattern.exec(markdown); + } + + if (cursor < markdown.length) { + nodes.push(markdown.slice(cursor)); + } + + if (!nodes.length) { + return markdown; + } + + return nodes; +} + +function downloadTextFile(filename: string, content: string, mimeType: string) { + const blob = new Blob([content], { type: mimeType }); + const link = document.createElement("a"); + link.href = URL.createObjectURL(blob); + link.download = filename; + link.click(); + URL.revokeObjectURL(link.href); +} + +function severityBadgeClass(severity: "critical" | "warning" | "info") { + if (severity === "critical") + return "border-error/30 bg-error/10 text-error/80"; + if (severity === "warning") + return "border-warning/35 bg-warning/10 text-warning/80"; + return "border-info/30 bg-info/10 text-info/80"; +} + +function severityIcon(severity: "critical" | "warning" | "info") { + if (severity === "critical") return ; + if (severity === "warning") return ; + return ; +} diff --git a/src/routes/p/$projectId/route.tsx b/src/routes/p/$projectId/route.tsx new file mode 100644 index 0000000..1d6e71e --- /dev/null +++ b/src/routes/p/$projectId/route.tsx @@ -0,0 +1,44 @@ +import { createFileRoute, Outlet, useNavigate } from "@tanstack/react-router"; +import { useEffect } from "react"; +import { useQuery } from "@tanstack/react-query"; +import { useCurrentUser } from "@every-app/sdk/tanstack"; +import { getProject } from "@/serverFunctions/keywords"; + +export const Route = createFileRoute("/p/$projectId")({ + component: ProjectLayout, +}); + +function ProjectLayout() { + const params = Route.useParams(); + const { projectId } = params; + const navigate = useNavigate(); + const user = useCurrentUser(); + + const { + data: project, + isLoading, + isError, + } = useQuery({ + queryKey: ["project", projectId], + queryFn: () => getProject({ data: { projectId } }), + enabled: user !== null, + }); + + useEffect(() => { + if (user !== null && !isLoading && (isError || !project)) { + void navigate({ to: "/" }); + } + }, [isLoading, isError, project, navigate, user]); + + if (isLoading) { + return ( +
+ +
+ ); + } + + if (!project) return null; + + return ; +} diff --git a/src/routes/p/$projectId/saved.tsx b/src/routes/p/$projectId/saved.tsx new file mode 100644 index 0000000..b6b3e45 --- /dev/null +++ b/src/routes/p/$projectId/saved.tsx @@ -0,0 +1,238 @@ +import { createFileRoute } from "@tanstack/react-router"; +import { useState } from "react"; +import { toast } from "sonner"; +import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; +import { + getSavedKeywords, + removeSavedKeyword, +} from "@/serverFunctions/keywords"; +import { Trash2, Download, Search, Loader2, AlertCircle } from "lucide-react"; +import { getStandardErrorMessage } from "@/client/lib/error-messages"; + +export const Route = createFileRoute("/p/$projectId/saved")({ + component: SavedKeywordsPage, +}); + +function SavedKeywordsPage() { + const { projectId } = Route.useParams(); + const queryClient = useQueryClient(); + const [removeError, setRemoveError] = useState(null); + const [removingId, setRemovingId] = useState(null); + + const { data: savedKeywordsData, isLoading } = useQuery({ + queryKey: ["savedKeywords", projectId], + queryFn: () => getSavedKeywords({ data: { projectId } }), + }); + const savedKeywords = savedKeywordsData?.rows ?? []; + + const removeMutation = useMutation({ + mutationFn: (savedKeywordId: string) => + removeSavedKeyword({ data: { savedKeywordId } }), + onSuccess: () => { + void queryClient.invalidateQueries({ + queryKey: ["savedKeywords", projectId], + }); + toast.success("Keyword removed"); + }, + onError: (error) => { + setRemoveError(getStandardErrorMessage(error, "Remove failed.")); + }, + }); + + const handleRemoveKeyword = (savedKeywordId: string) => { + setRemoveError(null); + setRemovingId(savedKeywordId); + removeMutation.mutate(savedKeywordId, { + onSettled: () => { + setRemovingId((current) => + current === savedKeywordId ? null : current, + ); + }, + }); + }; + + const exportCsv = () => { + if (savedKeywords.length === 0) { + toast.error("No keywords to export"); + return; + } + + const headers = [ + "Keyword", + "Volume", + "CPC", + "Competition", + "Difficulty", + "Intent", + "Fetched At", + ]; + const csvRows = savedKeywords.map((kw) => + [ + csvEscape(kw.keyword), + kw.searchVolume ?? "", + kw.cpc?.toFixed(2) ?? "", + kw.competition?.toFixed(2) ?? "", + kw.keywordDifficulty ?? "", + kw.intent ?? "", + kw.fetchedAt ?? "", + ].join(","), + ); + const csv = [headers.join(","), ...csvRows].join("\n"); + const blob = new Blob([csv], { type: "text/csv;charset=utf-8;" }); + const url = URL.createObjectURL(blob); + const link = document.createElement("a"); + link.href = url; + link.download = "saved-keywords.csv"; + link.click(); + URL.revokeObjectURL(url); + }; + + return ( +
+
+ {/* Header */} +
+
+

Saved Keywords

+

+ Keywords you've saved from keyword research. +

+
+ {savedKeywords.length > 0 && ( + + )} +
+ + {/* Keyword list */} + {isLoading ? ( +
+
+
+ {Array.from({ length: 8 }).map((_, index) => ( +
+
+
+
+
+
+
+
+
+ ))} +
+
+ ) : savedKeywords.length === 0 ? ( +
+
+ +

+ No saved keywords yet. Use the Keyword Research page to find and + save keywords. +

+
+
+ ) : ( +
+
+ {removeError ? ( +
+ + {removeError} +
+ ) : null} +

+ {savedKeywords.length} saved keyword + {savedKeywords.length !== 1 ? "s" : ""} +

+
+ + + + + + + + + + + + + + + {savedKeywords.map((kw) => ( + + + + + + + + + + + ))} + +
KeywordVolumeCPCCompetitionDifficultyIntentLast Fetched
{kw.keyword}{formatNumber(kw.searchVolume)} + {kw.cpc == null ? "-" : `$${kw.cpc.toFixed(2)}`} + + {kw.competition == null + ? "-" + : kw.competition.toFixed(2)} + + + + + {kw.intent ?? "?"} + + + {kw.fetchedAt + ? new Date(kw.fetchedAt).toLocaleDateString() + : "-"} + + +
+
+
+
+ )} +
+
+ ); +} + +function DifficultyBadge({ value }: { value: number | null }) { + if (value == null) + return -; + if (value < 30) + return {value}; + if (value <= 60) + return {value}; + return {value}; +} + +function formatNumber(value: number | null | undefined) { + if (value == null) return "-"; + return new Intl.NumberFormat().format(value); +} + +function csvEscape(value: string | number | null | undefined): string { + if (value == null) return ""; + const text = String(value).replace(/"/g, '""'); + return `"${text}"`; +} diff --git a/src/server.ts b/src/server.ts new file mode 100644 index 0000000..df8c1c6 --- /dev/null +++ b/src/server.ts @@ -0,0 +1,8 @@ +import handler from "@tanstack/react-start/server-entry"; + +// Export Workflow classes as named exports +export { SiteAuditWorkflow } from "./server/workflows/SiteAuditWorkflow"; + +export default { + fetch: handler.fetch, +}; diff --git a/src/server/lib/audit/discovery.ts b/src/server/lib/audit/discovery.ts new file mode 100644 index 0000000..7a75ede --- /dev/null +++ b/src/server/lib/audit/discovery.ts @@ -0,0 +1,243 @@ +/** + * robots.txt and sitemap.xml discovery for the site audit crawler. + */ +import robotsParser from "robots-parser"; +import { XMLParser } from "fast-xml-parser"; +import { isSameOrigin, normalizeUrl } from "./url-utils"; + +const SITEMAP_FETCH_TIMEOUT_MS = 15_000; +const MAX_SITEMAP_DEPTH = 3; +const MAX_SITEMAP_DOCS = 300; +const SITEMAP_CONCURRENCY = 5; +const SITEMAP_RETRIES = 1; + +const xmlParser = new XMLParser({ + ignoreAttributes: false, + isArray: (name) => name === "sitemap" || name === "url", +}); + +export interface RobotsResult { + isAllowed: (url: string) => boolean; + sitemapUrls: string[]; +} + +/** + * Fetch and parse robots.txt for a given origin. + * Returns a helper to check if URLs are allowed + discovered sitemap URLs. + */ +export async function fetchRobotsTxt(origin: string): Promise { + const robotsUrl = `${origin}/robots.txt`; + try { + const response = await fetch(robotsUrl, { + headers: { "User-Agent": "SuperSEO-Audit/1.0" }, + signal: AbortSignal.timeout(10_000), + }); + + if (!response.ok) { + // No robots.txt = everything allowed + return { + isAllowed: () => true, + sitemapUrls: [], + }; + } + + const text = await response.text(); + const robots = robotsParser(robotsUrl, text); + + return { + isAllowed: (url: string) => robots.isAllowed(url) ?? true, + sitemapUrls: robots.getSitemaps(), + }; + } catch (error) { + console.warn("Failed to fetch robots.txt:", error); + return { + isAllowed: () => true, + sitemapUrls: [], + }; + } +} + +/** + * Fetch and parse a sitemap (supports sitemap index recursion). + * Returns a flat list of page URLs found. + */ +function isProbablySitemapXml( + contentType: string | null, + body: string, +): boolean { + if (contentType?.toLowerCase().includes("xml")) { + return true; + } + + const trimmed = body.trimStart().toLowerCase(); + return ( + trimmed.startsWith(" = Array.isArray(input) + ? (input as Array<{ loc?: string }>) + : ([input] as Array<{ loc?: string }>); + return entries + .map((entry) => entry.loc) + .filter((loc): loc is string => typeof loc === "string"); +} + +function isTimeoutError(error: unknown): boolean { + if (!error || typeof error !== "object") return false; + const maybe = error as { name?: string }; + return maybe.name === "TimeoutError"; +} + +async function fetchSitemapDocumentWithRetry(sitemapUrl: string): Promise<{ + nestedSitemaps: string[]; + pageUrls: string[]; + timedOut: boolean; +}> { + const normalizedSitemapUrl = normalizeUrl(sitemapUrl); + if (!normalizedSitemapUrl) { + return { nestedSitemaps: [], pageUrls: [], timedOut: false }; + } + + let lastError: unknown = null; + + for (let attempt = 0; attempt <= SITEMAP_RETRIES; attempt++) { + try { + const response = await fetch(normalizedSitemapUrl, { + headers: { "User-Agent": "SuperSEO-Audit/1.0" }, + signal: AbortSignal.timeout(SITEMAP_FETCH_TIMEOUT_MS), + }); + + const finalUrl = normalizeUrl(response.url, normalizedSitemapUrl); + if (!finalUrl || !isSameOrigin(finalUrl, normalizedSitemapUrl)) { + return { nestedSitemaps: [], pageUrls: [], timedOut: false }; + } + + if (!response.ok) { + return { nestedSitemaps: [], pageUrls: [], timedOut: false }; + } + + const body = await response.text(); + if (!isProbablySitemapXml(response.headers.get("content-type"), body)) { + return { nestedSitemaps: [], pageUrls: [], timedOut: false }; + } + + const parsed = xmlParser.parse(body); + const nestedSitemaps = getSitemapLocations(parsed.sitemapindex?.sitemap) + .map((loc) => normalizeUrl(loc, finalUrl)) + .filter((loc): loc is string => loc !== null); + const pageUrls = getSitemapLocations(parsed.urlset?.url) + .map((loc) => normalizeUrl(loc, finalUrl)) + .filter((loc): loc is string => loc !== null); + + return { nestedSitemaps, pageUrls, timedOut: false }; + } catch (error) { + lastError = error; + if (!isTimeoutError(error) || attempt === SITEMAP_RETRIES) { + break; + } + } + } + + return { + nestedSitemaps: [], + pageUrls: [], + timedOut: isTimeoutError(lastError), + }; +} + +/** + * Discover all page URLs from robots.txt + sitemaps for an origin. + * Also tries the default /sitemap.xml if not listed in robots.txt. + */ +export async function discoverUrls( + origin: string, + maxPages = 50, +): Promise<{ urls: string[]; robots: RobotsResult; sitemapUrls: Set }> { + const robots = await fetchRobotsTxt(origin); + + // Collect sitemap URLs: from robots.txt + default location + const sitemapSources = new Set(robots.sitemapUrls); + sitemapSources.add(`${origin}/sitemap.xml`); + + const maxDiscoveredUrls = Math.min(Math.max(maxPages * 20, 500), 50_000); + const allUrls = new Set(); + + const queue: Array<{ url: string; depth: number }> = Array.from( + sitemapSources, + ) + .map((url) => normalizeUrl(url, origin)) + .filter((url): url is string => url !== null) + .filter((url) => isSameOrigin(url, origin)) + .map((url) => ({ url, depth: MAX_SITEMAP_DEPTH })); + const seenSitemapDocs = new Set(); + let fetchedDocs = 0; + let failedDocs = 0; + let timedOutDocs = 0; + + while (queue.length > 0 && allUrls.size < maxDiscoveredUrls) { + if (fetchedDocs >= MAX_SITEMAP_DOCS) { + break; + } + const batch = queue.splice(0, SITEMAP_CONCURRENCY); + await Promise.all( + batch.map(async ({ url, depth }) => { + const normalizedUrl = normalizeUrl(url); + if ( + !normalizedUrl || + !isSameOrigin(normalizedUrl, origin) || + depth <= 0 || + seenSitemapDocs.has(normalizedUrl) + ) { + return; + } + + seenSitemapDocs.add(normalizedUrl); + fetchedDocs += 1; + + const result = await fetchSitemapDocumentWithRetry(normalizedUrl); + if ( + result.pageUrls.length === 0 && + result.nestedSitemaps.length === 0 + ) { + failedDocs += 1; + if (result.timedOut) { + timedOutDocs += 1; + } + return; + } + + for (const pageUrl of result.pageUrls) { + if (!isSameOrigin(pageUrl, origin)) continue; + if (allUrls.size >= maxDiscoveredUrls) break; + allUrls.add(pageUrl); + } + + if (depth <= 1) return; + + for (const nestedUrl of result.nestedSitemaps) { + if (!isSameOrigin(nestedUrl, origin)) continue; + if (!seenSitemapDocs.has(nestedUrl)) { + queue.push({ url: nestedUrl, depth: depth - 1 }); + } + } + }), + ); + } + + if (failedDocs > 0) { + console.warn( + `Sitemap discovery completed with partial failures for ${origin}: fetched=${fetchedDocs}, failed=${failedDocs}, timedOut=${timedOutDocs}, discoveredUrls=${allUrls.size}`, + ); + } + + return { + urls: Array.from(allUrls), + robots, + sitemapUrls: allUrls, + }; +} diff --git a/src/server/lib/audit/page-analyzer.ts b/src/server/lib/audit/page-analyzer.ts new file mode 100644 index 0000000..321b200 --- /dev/null +++ b/src/server/lib/audit/page-analyzer.ts @@ -0,0 +1,131 @@ +/** + * HTML page analyzer using cheerio. + * + * Extracts SEO-relevant data from a page's HTML: + * title, meta description, headings, images, links, canonical, OG tags, + * structured data, robots meta, word count, hreflang. + */ +import * as cheerio from "cheerio"; +import { normalizeUrl, isSameOrigin } from "./url-utils"; +import type { PageAnalysis } from "./types"; + +/** + * Analyze an HTML string and extract all SEO-relevant data. + */ +export function analyzeHtml( + html: string, + pageUrl: string, + statusCode: number, + responseTimeMs: number, + redirectUrl: string | null = null, +): PageAnalysis { + const $ = cheerio.load(html); + + // --- Title --- + const title = $("title").first().text().trim(); + + // --- Meta description --- + const metaDescription = + $('meta[name="description"]').first().attr("content")?.trim() ?? ""; + + // --- Canonical --- + const canonical = $('link[rel="canonical"]').first().attr("href") ?? null; + + // --- Robots meta --- + const robotsMeta = $('meta[name="robots"]').first().attr("content") ?? null; + + // --- Open Graph --- + const ogTitle = + $('meta[property="og:title"]').first().attr("content") ?? null; + const ogDescription = + $('meta[property="og:description"]').first().attr("content") ?? null; + const ogImage = + $('meta[property="og:image"]').first().attr("content") ?? null; + + // --- Headings --- + const h1s: string[] = []; + $("h1").each((_, el) => { + h1s.push($(el).text().trim()); + }); + + const headingOrder: number[] = []; + $("h1, h2, h3, h4, h5, h6").each((_, el) => { + const tag = (el as unknown as { tagName?: string }).tagName?.toLowerCase(); + if (tag) { + const level = parseInt(tag.charAt(1), 10); + if (!isNaN(level)) headingOrder.push(level); + } + }); + + // --- Word count (visible text in body) --- + // Remove script/style/noscript tags, then count words in remaining text + const bodyClone = $("body").clone(); + bodyClone.find("script, style, noscript, svg").remove(); + const bodyText = bodyClone.text().replace(/\s+/g, " ").trim(); + const wordCount = bodyText ? bodyText.split(/\s+/).length : 0; + + // --- Images --- + const images: Array<{ src: string | null; alt: string | null }> = []; + $("img").each((_, el) => { + images.push({ + src: $(el).attr("src") ?? null, + alt: $(el).attr("alt") ?? null, + }); + }); + + // --- Links --- + const internalLinks: string[] = []; + const externalLinks: string[] = []; + + $("a[href]").each((_, el) => { + const href = $(el).attr("href"); + if (!href) return; + + // Skip javascript:, mailto:, tel:, #anchors + if (/^(javascript:|mailto:|tel:|#)/.test(href)) return; + + const resolved = normalizeUrl(href, pageUrl); + if (!resolved) return; + + if (isSameOrigin(resolved, pageUrl)) { + internalLinks.push(resolved); + } else { + externalLinks.push(resolved); + } + }); + + // --- Structured data (JSON-LD) --- + let hasStructuredData = false; + $('script[type="application/ld+json"]').each(() => { + hasStructuredData = true; + }); + + // --- Hreflang --- + const hreflangTags: string[] = []; + $('link[rel="alternate"][hreflang]').each((_, el) => { + const hreflang = $(el).attr("hreflang"); + if (hreflang) hreflangTags.push(hreflang); + }); + + return { + url: pageUrl, + statusCode, + redirectUrl, + responseTimeMs, + title, + metaDescription, + canonical, + robotsMeta, + ogTitle, + ogDescription, + ogImage, + h1s, + headingOrder, + wordCount, + images, + internalLinks, + externalLinks, + hasStructuredData, + hreflangTags, + }; +} diff --git a/src/server/lib/audit/progress-kv.ts b/src/server/lib/audit/progress-kv.ts new file mode 100644 index 0000000..cd9a383 --- /dev/null +++ b/src/server/lib/audit/progress-kv.ts @@ -0,0 +1,81 @@ +/** + * KV-based live crawl progress. + * + * During a crawl, each crawled URL is appended to a KV key so the UI can + * poll for a live feed of crawled pages (most recent first). + * + * The KV entry auto-expires after 30 minutes — it's only needed while + * the audit is running. Once finalized, we explicitly delete it. + */ +import { env } from "cloudflare:workers"; + +const KV_PREFIX = "audit-progress:"; +const TTL_SECONDS = 30 * 60; // 30 minutes +const MAX_ENTRIES = 300; + +export interface CrawledUrlEntry { + url: string; + statusCode: number; + title: string; + /** Unix timestamp ms when this page was crawled */ + crawledAt: number; +} + +function key(auditId: string): string { + return `${KV_PREFIX}${auditId}`; +} + +/** + * Append a crawled URL entry to the progress list. + * Newest entries are prepended so the array is sorted newest-first. + */ +async function pushCrawledUrl( + auditId: string, + entry: CrawledUrlEntry, +): Promise { + await pushCrawledUrls(auditId, [entry]); +} + +/** + * Append multiple crawled URL entries in one KV write. + * New entries are prepended and the list is capped. + */ +async function pushCrawledUrls( + auditId: string, + nextEntries: CrawledUrlEntry[], +): Promise { + if (nextEntries.length === 0) return; + + const k = key(auditId); + const existing = await env.KV.get(k, "text"); + const entries: CrawledUrlEntry[] = existing ? JSON.parse(existing) : []; + const merged = [...nextEntries, ...entries].slice(0, MAX_ENTRIES); + + await env.KV.put(k, JSON.stringify(merged), { + expirationTtl: TTL_SECONDS, + }); +} + +/** + * Read all crawled URL entries for a running audit. + * Returns newest-first. + */ +async function getCrawledUrls(auditId: string): Promise { + const data = await env.KV.get(key(auditId), "text"); + if (!data) return []; + return JSON.parse(data); +} + +/** + * Delete the progress key (called after audit completes). + */ +async function clear(auditId: string): Promise { + await env.KV.delete(key(auditId)); +} + +export const AuditProgressKV = { + pushCrawledUrl, + pushCrawledUrls, + getCrawledUrls, + clear, +} as const; diff --git a/src/server/lib/audit/psi.ts b/src/server/lib/audit/psi.ts new file mode 100644 index 0000000..f0a646b --- /dev/null +++ b/src/server/lib/audit/psi.ts @@ -0,0 +1,176 @@ +/** + * Google PageSpeed Insights (PSI) API client and sampling logic. + */ +import { detectUrlTemplate } from "./url-utils"; +import type { PsiResult, PsiStrategy } from "./types"; + +interface PsiSamplePage { + url: string; + statusCode: number; +} + +const PSI_API_URL = + "https://www.googleapis.com/pagespeedonline/v5/runPagespeed"; + +/** + * Fetch PageSpeed Insights results for a single URL. + * Retries up to 3 times with exponential backoff. + */ +export async function fetchPsiResult( + url: string, + pageId: string, + strategy: "mobile" | "desktop", + apiKey: string, +): Promise { + // Build URL with multiple category params (PSI API allows repeated 'category') + const apiUrl = `${PSI_API_URL}?url=${encodeURIComponent(url)}&strategy=${strategy}&key=${encodeURIComponent(apiKey)}&category=performance&category=accessibility&category=best-practices&category=seo`; + + let lastError: Error | null = null; + + for (let attempt = 0; attempt < 3; attempt++) { + try { + if (attempt > 0) { + // Exponential backoff: 2s, 4s + await new Promise((resolve) => + setTimeout(resolve, 2000 * Math.pow(2, attempt - 1)), + ); + } + + const response = await fetch(apiUrl, { + signal: AbortSignal.timeout(60_000), // PSI can be slow + }); + + if (!response.ok) { + const text = await response.text(); + throw new Error(`PSI API ${response.status}: ${text.slice(0, 200)}`); + } + + const data = (await response.json()) as PsiApiResponse; + + return parsePsiResponse(data, url, pageId, strategy); + } catch (error) { + lastError = error instanceof Error ? error : new Error(String(error)); + console.warn( + `PSI attempt ${attempt + 1} failed for ${url}:`, + lastError.message, + ); + } + } + + // All retries exhausted — return null scores + console.error(`PSI failed after 3 attempts for ${url}:`, lastError?.message); + return { + url, + pageId, + strategy, + performanceScore: null, + accessibilityScore: null, + bestPracticesScore: null, + seoScore: null, + lcpMs: null, + cls: null, + inpMs: null, + ttfbMs: null, + errorMessage: lastError?.message ?? "PSI request failed", + }; +} + +/** + * Select which pages to run PSI on, based on the chosen strategy. + */ +export function selectPsiSample( + pages: PsiSamplePage[], + startUrl: string, + strategy: PsiStrategy, +): string[] { + if (strategy === "none") return []; + + // Only consider pages that loaded successfully + const validPages = pages.filter( + (p) => p.statusCode >= 200 && p.statusCode < 300, + ); + + if (strategy === "all") { + return validPages.map((p) => p.url); + } + + if (strategy === "manual") { + // manual = user picks after crawl; for now return empty + return []; + } + + // strategy === "auto": homepage + 1 per URL pattern, capped at 10 + const selected = new Set(); + + // Always include the start URL / homepage + const startPage = validPages.find((p) => p.url === startUrl); + if (startPage) selected.add(startPage.url); + + // Group by URL template pattern + const templateGroups = new Map(); + for (const page of validPages) { + if (selected.has(page.url)) continue; + const template = detectUrlTemplate(new URL(page.url).pathname); + if (!templateGroups.has(template)) { + templateGroups.set(template, page); + } + } + + // Add one page per template group + for (const [, page] of templateGroups) { + if (selected.size >= 10) break; + selected.add(page.url); + } + + return Array.from(selected); +} + +// ─── PSI API Response Types ────────────────────────────────────────────────── + +interface PsiApiResponse { + lighthouseResult?: { + categories?: { + performance?: { score?: number | null }; + accessibility?: { score?: number | null }; + "best-practices"?: { score?: number | null }; + seo?: { score?: number | null }; + }; + audits?: { + "largest-contentful-paint"?: { numericValue?: number }; + "cumulative-layout-shift"?: { numericValue?: number }; + "interaction-to-next-paint"?: { numericValue?: number }; + "server-response-time"?: { numericValue?: number }; + }; + }; +} + +function parsePsiResponse( + data: PsiApiResponse, + url: string, + pageId: string, + strategy: "mobile" | "desktop", +): PsiResult { + const categories = data.lighthouseResult?.categories; + const audits = data.lighthouseResult?.audits; + + return { + url, + pageId, + strategy, + performanceScore: scoreToPercent(categories?.performance?.score), + accessibilityScore: scoreToPercent(categories?.accessibility?.score), + bestPracticesScore: scoreToPercent(categories?.["best-practices"]?.score), + seoScore: scoreToPercent(categories?.seo?.score), + lcpMs: audits?.["largest-contentful-paint"]?.numericValue ?? null, + cls: audits?.["cumulative-layout-shift"]?.numericValue ?? null, + inpMs: audits?.["interaction-to-next-paint"]?.numericValue ?? null, + ttfbMs: audits?.["server-response-time"]?.numericValue ?? null, + rawPayloadJson: JSON.stringify(data), + }; +} + +/** PSI scores come as 0-1 floats; convert to 0-100 integers. */ +function scoreToPercent(score: number | null | undefined): number | null { + if (score == null) return null; + return Math.round(score * 100); +} diff --git a/src/server/lib/audit/types.ts b/src/server/lib/audit/types.ts new file mode 100644 index 0000000..239ed77 --- /dev/null +++ b/src/server/lib/audit/types.ts @@ -0,0 +1,69 @@ +/** + * Shared types for the site audit system. + */ + +export type PsiStrategy = "auto" | "all" | "manual" | "none"; + +export type AuditStatus = "running" | "completed" | "failed"; + +export interface AuditConfig { + maxPages: number; + psiStrategy: PsiStrategy; + psiApiKey?: string; +} + +/** Data extracted from a single page via cheerio. */ +export interface PageAnalysis { + url: string; + statusCode: number; + redirectUrl: string | null; + responseTimeMs: number; + + // Head metadata + title: string; + metaDescription: string; + canonical: string | null; + robotsMeta: string | null; + ogTitle: string | null; + ogDescription: string | null; + ogImage: string | null; + + // Headings + h1s: string[]; + headingOrder: number[]; + + // Content + wordCount: number; + + // Images + images: Array<{ src: string | null; alt: string | null }>; + + // Links (raw href values from the HTML) + internalLinks: string[]; + externalLinks: string[]; + + // Structured data + hasStructuredData: boolean; + + // Hreflang + hreflangTags: string[]; +} + +/** PSI result for a single URL+strategy. */ +export interface PsiResult { + url: string; + pageId: string; + strategy: "mobile" | "desktop"; + performanceScore: number | null; + accessibilityScore: number | null; + bestPracticesScore: number | null; + seoScore: number | null; + lcpMs: number | null; + cls: number | null; + inpMs: number | null; + ttfbMs: number | null; + errorMessage?: string | null; + r2Key?: string | null; + payloadSizeBytes?: number | null; + rawPayloadJson?: string | null; +} diff --git a/src/server/lib/audit/url-policy.ts b/src/server/lib/audit/url-policy.ts new file mode 100644 index 0000000..8f1ca31 --- /dev/null +++ b/src/server/lib/audit/url-policy.ts @@ -0,0 +1,220 @@ +import { AppError } from "@/server/lib/errors"; + +const BLOCKED_HOSTS = new Set([ + "localhost", + "metadata.google.internal", + "metadata", + "169.254.169.254", + "100.100.100.200", +]); + +const BLOCKED_HOST_SUFFIXES = [ + ".localhost", + ".local", + ".localdomain", + ".internal", + ".home.arpa", +]; + +const DOH_ENDPOINT = "https://cloudflare-dns.com/dns-query"; + +function normalizeHost(hostname: string): string { + let host = hostname.toLowerCase().trim(); + if (host.startsWith("[") && host.endsWith("]")) { + host = host.slice(1, -1); + } + if (host.includes("%")) { + host = host.split("%", 1)[0]; + } + if (host.endsWith(".")) { + host = host.slice(0, -1); + } + return host; +} + +function isPrivateIpv4(host: string): boolean { + const parts = normalizeHost(host) + .split(".") + .map((x) => Number(x)); + if ( + parts.length !== 4 || + parts.some((x) => !Number.isInteger(x) || x < 0 || x > 255) + ) { + return false; + } + + const [a, b] = parts; + if (a === 10) return true; + if (a === 127) return true; + if (a === 0) return true; + if (a === 169 && b === 254) return true; + if (a === 172 && b >= 16 && b <= 31) return true; + if (a === 192 && b === 168) return true; + if (a === 100 && b >= 64 && b <= 127) return true; + if (a === 198 && (b === 18 || b === 19)) return true; + if (a >= 224) return true; + return false; +} + +function parseMappedIpv4FromIpv6(host: string): string | null { + const normalized = normalizeHost(host); + if (!normalized.startsWith("::ffff:")) return null; + + const mapped = normalized.slice("::ffff:".length); + if (/^\d+\.\d+\.\d+\.\d+$/.test(mapped)) { + return mapped; + } + + const segments = mapped.split(":").filter(Boolean); + if (segments.length !== 2) return null; + + const high = Number.parseInt(segments[0], 16); + const low = Number.parseInt(segments[1], 16); + if ( + !Number.isFinite(high) || + !Number.isFinite(low) || + high < 0 || + high > 0xffff || + low < 0 || + low > 0xffff + ) { + return null; + } + + const a = (high >> 8) & 0xff; + const b = high & 0xff; + const c = (low >> 8) & 0xff; + const d = low & 0xff; + return `${a}.${b}.${c}.${d}`; +} + +function isPrivateIpv6(host: string): boolean { + const value = normalizeHost(host); + if (value === "::1" || value === "::") return true; + if (value.startsWith("fc") || value.startsWith("fd")) return true; + if ( + value.startsWith("fe8") || + value.startsWith("fe9") || + value.startsWith("fea") || + value.startsWith("feb") + ) { + return true; + } + + const mappedIpv4 = parseMappedIpv4FromIpv6(value); + if (mappedIpv4 && isPrivateIpv4(mappedIpv4)) { + return true; + } + + return false; +} + +function isIpLiteral(host: string): boolean { + const normalized = normalizeHost(host); + return /^\d+\.\d+\.\d+\.\d+$/.test(normalized) || normalized.includes(":"); +} + +function isBlockedHost(hostname: string): boolean { + const host = normalizeHost(hostname); + if (!host) return true; + if (BLOCKED_HOSTS.has(host)) return true; + if (BLOCKED_HOST_SUFFIXES.some((suffix) => host.endsWith(suffix))) { + return true; + } + + if (isIpLiteral(host)) { + return isPrivateIpv4(host) || isPrivateIpv6(host); + } + + return false; +} + +type DnsJsonAnswer = { + type?: number; + data?: string; +}; + +type DnsJsonResponse = { + Status?: number; + Answer?: DnsJsonAnswer[]; +}; + +async function resolveAddressRecords( + hostname: string, + type: "A" | "AAAA", +): Promise { + const response = await fetch( + `${DOH_ENDPOINT}?name=${encodeURIComponent(hostname)}&type=${type}`, + { + headers: { Accept: "application/dns-json" }, + signal: AbortSignal.timeout(2_500), + }, + ); + + if (!response.ok) return []; + + const body = (await response.json()) as DnsJsonResponse; + if (body.Status !== 0 || !Array.isArray(body.Answer)) return []; + + const expectedType = type === "A" ? 1 : 28; + return body.Answer.filter( + (answer): answer is Required> => + answer.type === expectedType && typeof answer.data === "string", + ).map((answer) => normalizeHost(answer.data)); +} + +async function hostnameResolvesToBlockedAddress( + hostname: string, +): Promise { + const host = normalizeHost(hostname); + if (!host || isIpLiteral(host)) return false; + + try { + const [v4, v6] = await Promise.all([ + resolveAddressRecords(host, "A"), + resolveAddressRecords(host, "AAAA"), + ]); + + const addresses = [...v4, ...v6]; + if (addresses.length === 0) return false; + + return addresses.some( + (address) => isPrivateIpv4(address) || isPrivateIpv6(address), + ); + } catch { + return false; + } +} + +export async function normalizeAndValidateStartUrl( + input: string, +): Promise { + let raw = input.trim(); + if (!raw) throw new AppError("VALIDATION_ERROR"); + + if (!raw.startsWith("http://") && !raw.startsWith("https://")) { + raw = `https://${raw}`; + } + + let parsed: URL; + try { + parsed = new URL(raw); + } catch { + throw new AppError("VALIDATION_ERROR"); + } + + if (parsed.protocol !== "http:" && parsed.protocol !== "https:") { + throw new AppError("VALIDATION_ERROR"); + } + + if (isBlockedHost(parsed.hostname)) { + throw new AppError("CRAWL_TARGET_BLOCKED"); + } + + if (await hostnameResolvesToBlockedAddress(parsed.hostname)) { + throw new AppError("CRAWL_TARGET_BLOCKED"); + } + + parsed.hash = ""; + return parsed.toString(); +} diff --git a/src/server/lib/audit/url-utils.ts b/src/server/lib/audit/url-utils.ts new file mode 100644 index 0000000..fda6add --- /dev/null +++ b/src/server/lib/audit/url-utils.ts @@ -0,0 +1,133 @@ +/** + * URL normalization and utility functions for the site audit crawler. + */ + +/** + * Normalize a URL for deduplication: + * - Resolve relative URLs against a base + * - Strip fragments (#...) + * - Sort query parameters + * - Lowercase the hostname + * - Remove trailing slash (except for root path "/") + */ +export function normalizeUrl(url: string, base?: string): string | null { + try { + const parsed = new URL(url, base); + + // Only crawl HTTP(S) + if (parsed.protocol !== "http:" && parsed.protocol !== "https:") { + return null; + } + + // Strip fragment + parsed.hash = ""; + + // Sort query params for consistent dedup + parsed.searchParams.sort(); + + // Lowercase hostname + parsed.hostname = parsed.hostname.toLowerCase(); + + // Remove trailing slash (but keep "/" for root) + let normalized = parsed.toString(); + if (normalized.endsWith("/") && parsed.pathname !== "/") { + normalized = normalized.slice(0, -1); + } + + return normalized; + } catch { + return null; + } +} + +function getEffectivePort(parsed: URL): string { + if (parsed.port) return parsed.port; + return parsed.protocol === "https:" ? "443" : "80"; +} + +function areEquivalentHostnames(a: string, b: string): boolean { + const hostA = a.toLowerCase(); + const hostB = b.toLowerCase(); + if (hostA === hostB) return true; + return hostA === `www.${hostB}` || hostB === `www.${hostA}`; +} + +/** + * Check if a URL belongs to the same crawl boundary as the crawl target. + * + * Rules: + * - Hostname must match exactly. + * - Same protocol/port is always allowed. + * - http -> https upgrade on default ports is allowed. + */ +export function isSameOrigin(url: string, origin: string): boolean { + try { + const parsedUrl = new URL(url); + const parsedOrigin = new URL(origin); + + if (!areEquivalentHostnames(parsedUrl.hostname, parsedOrigin.hostname)) { + return false; + } + + const originProtocol = parsedOrigin.protocol.toLowerCase(); + const urlProtocol = parsedUrl.protocol.toLowerCase(); + + const originPort = getEffectivePort(parsedOrigin); + const urlPort = getEffectivePort(parsedUrl); + + if (originProtocol === urlProtocol) { + return originPort === urlPort; + } + + const isHttpToHttpsUpgrade = + originProtocol === "http:" && + urlProtocol === "https:" && + originPort === "80" && + urlPort === "443"; + + return isHttpToHttpsUpgrade; + } catch { + return false; + } +} + +/** + * Detect a URL template pattern by replacing path segments that look like + * dynamic values (IDs, slugs, dates) with `:param`. + * + * Examples: + * /blog/my-great-post → /blog/:slug + * /products/12345 → /products/:id + * /users/john-doe/settings → /users/:slug/settings + */ +export function detectUrlTemplate(pathname: string): string { + const segments = pathname.split("/").filter(Boolean); + + const normalized = segments.map((segment) => { + // Pure numeric IDs + if (/^\d+$/.test(segment)) return ":id"; + // UUIDs + if ( + /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test( + segment, + ) + ) + return ":uuid"; + // Date-like segments (2024-01-15) + if (/^\d{4}-\d{2}-\d{2}$/.test(segment)) return ":date"; + // Slug-like: contains hyphens and is more than 2 segments (to avoid short + // path parts like "my-account" that are likely fixed routes) + if (segment.includes("-") && segment.split("-").length > 2) return ":slug"; + + return segment; + }); + + return "/" + normalized.join("/"); +} + +/** + * Extract the origin (protocol + hostname + port) from a URL string. + */ +export function getOrigin(url: string): string { + return new URL(url).origin; +} diff --git a/src/server/lib/dataforseo.ts b/src/server/lib/dataforseo.ts new file mode 100644 index 0000000..bc39fa9 --- /dev/null +++ b/src/server/lib/dataforseo.ts @@ -0,0 +1,404 @@ +import { + DataforseoLabsApi, + DataforseoLabsGoogleRelatedKeywordsLiveRequestInfo, + DataforseoLabsGoogleKeywordSuggestionsLiveRequestInfo, + DataforseoLabsGoogleKeywordIdeasLiveRequestInfo, + DataforseoLabsGoogleDomainRankOverviewLiveRequestInfo, + DataforseoLabsGoogleRankedKeywordsLiveRequestInfo, + DataforseoLabsGoogleHistoricalSerpsLiveRequestInfo, +} from "dataforseo-client"; +import { env } from "cloudflare:workers"; +import { AppError } from "@/server/lib/errors"; + +// --------------------------------------------------------------------------- +// SDK client factories (lazily created per-request using the env secret) +// --------------------------------------------------------------------------- + +function createAuthenticatedFetch() { + return (url: RequestInfo, init?: RequestInit): Promise => { + const newInit: RequestInit = { + ...init, + headers: { + ...init?.headers, + Authorization: `Basic ${env.DATAFORSEO_API_KEY}`, + }, + }; + return fetch(url, newInit); + }; +} + +const API_BASE = "https://api.dataforseo.com"; + +function getLabsApi() { + return new DataforseoLabsApi(API_BASE, { fetch: createAuthenticatedFetch() }); +} + +// --------------------------------------------------------------------------- +// Response helpers +// --------------------------------------------------------------------------- + +/** + * Validate that the top-level response and first task both succeeded. + * Throws a descriptive error on failure. Returns the first task. + */ +function assertOk( + response: { + status_code?: number; + status_message?: string; + tasks?: T[]; + } | null, +): T { + if (!response) { + throw new AppError( + "INTERNAL_ERROR", + "DataForSEO returned an empty response", + ); + } + if (response.status_code !== 20000) { + throw new AppError( + "INTERNAL_ERROR", + response.status_message || "DataForSEO request failed", + ); + } + const task = response.tasks?.[0]; + if (!task) { + throw new AppError("INTERNAL_ERROR", "DataForSEO response missing task"); + } + if (task.status_code !== 20000) { + throw new AppError( + "INTERNAL_ERROR", + task.status_message || "DataForSEO task failed", + ); + } + return task; +} + +// --------------------------------------------------------------------------- +// DataForSEO Labs API wrappers +// --------------------------------------------------------------------------- + +type RelatedKeywordItem = { + keyword_data?: { + keyword?: string; + keyword_info?: { + search_volume?: number | null; + cpc?: number | null; + competition?: number | null; + monthly_searches?: Array<{ + year: number; + month: number; + search_volume: number | null; + }> | null; + }; + keyword_info_normalized_with_clickstream?: { + search_volume?: number | null; + monthly_searches?: Array<{ + year: number; + month: number; + search_volume: number | null; + }> | null; + }; + search_intent_info?: { main_intent?: string | null } | null; + keyword_properties?: { keyword_difficulty?: number | null } | null; + }; +}; + +export async function fetchRelatedKeywordsRaw( + keyword: string, + locationCode: number, + languageCode: string, + limit: number, + depth: number = 3, +): Promise { + const api = getLabsApi(); + const req = new DataforseoLabsGoogleRelatedKeywordsLiveRequestInfo({ + keyword, + location_code: locationCode, + language_code: languageCode, + limit, + depth, + include_clickstream_data: true, + include_serp_info: false, + }); + + const response = await api.googleRelatedKeywordsLive([req]); + const task = assertOk(response); + + const result = (task as { result?: Array<{ items?: unknown[] }> }) + .result?.[0]; + return (result?.items ?? []) as RelatedKeywordItem[]; +} + +export type LabsKeywordDataItem = { + keyword?: string; + keyword_info?: { + search_volume?: number | null; + cpc?: number | null; + competition?: number | null; + monthly_searches?: Array<{ + year: number; + month: number; + search_volume: number | null; + }> | null; + }; + keyword_info_normalized_with_clickstream?: { + search_volume?: number | null; + monthly_searches?: Array<{ + year: number; + month: number; + search_volume: number | null; + }> | null; + }; + search_intent_info?: { main_intent?: string | null } | null; + keyword_properties?: { keyword_difficulty?: number | null } | null; +}; + +export async function fetchKeywordSuggestionsRaw( + keyword: string, + locationCode: number, + languageCode: string, + limit: number, +): Promise { + const api = getLabsApi(); + const req = new DataforseoLabsGoogleKeywordSuggestionsLiveRequestInfo({ + keyword, + location_code: locationCode, + language_code: languageCode, + limit, + include_clickstream_data: true, + include_serp_info: false, + include_seed_keyword: true, + ignore_synonyms: false, + exact_match: false, + }); + + const response = await api.googleKeywordSuggestionsLive([req]); + const task = assertOk(response); + + const result = (task as { result?: Array<{ items?: unknown[] }> }) + .result?.[0]; + return (result?.items ?? []) as LabsKeywordDataItem[]; +} + +export async function fetchKeywordIdeasRaw( + keyword: string, + locationCode: number, + languageCode: string, + limit: number, +): Promise { + const api = getLabsApi(); + const req = new DataforseoLabsGoogleKeywordIdeasLiveRequestInfo({ + keywords: [keyword], + location_code: locationCode, + language_code: languageCode, + limit, + include_clickstream_data: true, + include_serp_info: false, + ignore_synonyms: false, + closely_variants: false, + }); + + const response = await api.googleKeywordIdeasLive([req]); + const task = assertOk(response); + + const result = (task as { result?: Array<{ items?: unknown[] }> }) + .result?.[0]; + return (result?.items ?? []) as LabsKeywordDataItem[]; +} + +// --------------------------------------------------------------------------- +// Domain API wrappers +// --------------------------------------------------------------------------- + +type DomainMetricsItem = { + metrics?: Record< + string, + { etv?: number | null; count?: number | null } | undefined + >; +}; + +export async function fetchDomainRankOverviewRaw( + target: string, + locationCode: number, + languageCode: string, +): Promise { + const api = getLabsApi(); + const req = new DataforseoLabsGoogleDomainRankOverviewLiveRequestInfo({ + target, + location_code: locationCode, + language_code: languageCode, + limit: 1, + }); + + const response = await api.googleDomainRankOverviewLive([req]); + const task = assertOk(response); + + const result = (task as { result?: Array<{ items?: unknown[] }> }) + .result?.[0]; + return (result?.items ?? []) as DomainMetricsItem[]; +} + +export type DomainRankedKeywordItem = { + keyword_data?: { + keyword?: string | null; + keyword_info?: { + search_volume?: number | null; + cpc?: number | null; + keyword_difficulty?: number | null; + } | null; + keyword_properties?: { + keyword_difficulty?: number | null; + } | null; + } | null; + ranked_serp_element?: { + serp_item?: { + url?: string | null; + relative_url?: string | null; + rank_absolute?: number | null; + etv?: number | null; + } | null; + url?: string | null; + relative_url?: string | null; + rank_absolute?: number | null; + etv?: number | null; + } | null; + keyword?: string | null; + rank_absolute?: number | null; + etv?: number | null; + keyword_difficulty?: number | null; +}; + +export async function fetchRankedKeywordsRaw( + target: string, + locationCode: number, + languageCode: string, + limit: number, + orderBy?: string[], +): Promise { + const api = getLabsApi(); + const req = new DataforseoLabsGoogleRankedKeywordsLiveRequestInfo({ + target, + location_code: locationCode, + language_code: languageCode, + limit, + order_by: orderBy, + }); + + const response = await api.googleRankedKeywordsLive([req]); + const task = assertOk(response); + + const result = (task as { result?: Array<{ items?: unknown[] }> }) + .result?.[0]; + return (result?.items ?? []) as DomainRankedKeywordItem[]; +} + +// --------------------------------------------------------------------------- +// SERP Analysis API wrapper +// --------------------------------------------------------------------------- + +type SerpSnapshotItem = { + type?: string; + rank_group?: number | null; + rank_absolute?: number | null; + domain?: string | null; + title?: string | null; + url?: string | null; + description?: string | null; + breadcrumb?: string | null; + etv?: number | null; + estimated_paid_traffic_cost?: number | null; + backlinks_info?: { + referring_domains?: number | null; + backlinks?: number | null; + } | null; + rank_changes?: { + previous_rank_absolute?: number | null; + is_new?: boolean | null; + is_up?: boolean | null; + is_down?: boolean | null; + } | null; +}; + +type SerpSnapshot = { + se_results_count?: number | null; + items_count?: number | null; + items?: SerpSnapshotItem[]; +}; + +export async function fetchHistoricalSerpsRaw( + keyword: string, + locationCode: number, + languageCode: string, +): Promise { + const api = getLabsApi(); + const req = new DataforseoLabsGoogleHistoricalSerpsLiveRequestInfo({ + keyword, + location_code: locationCode, + language_code: languageCode, + }); + + const response = await api.googleHistoricalSerpsLive([req]); + const task = assertOk(response); + + const result = (task as { result?: Array<{ items?: unknown[] }> }) + .result?.[0]; + return (result?.items ?? []) as SerpSnapshot[]; +} + +// --------------------------------------------------------------------------- +// Domain utility functions (unchanged) +// --------------------------------------------------------------------------- + +export function toRelativePath(url: string | null | undefined): string | null { + if (!url) return null; + + try { + const parsed = new URL(url); + return `${parsed.pathname}${parsed.search}` || "/"; + } catch { + return null; + } +} + +export function normalizeDomainInput( + input: string, + includeSubdomains: boolean, +): string { + const trimmed = input.trim().toLowerCase(); + if (!trimmed) { + throw new AppError("VALIDATION_ERROR", "Domain is required"); + } + + const withProtocol = /^https?:\/\//.test(trimmed) + ? trimmed + : `https://${trimmed}`; + + const host = new URL(withProtocol).hostname.replace(/^www\./, ""); + + if (includeSubdomains) { + return host; + } + + return toRootDomain(host); +} + +function toRootDomain(host: string): string { + const parts = host.split(".").filter(Boolean); + if (parts.length <= 2) return host; + + const knownSecondLevel = new Set([ + "co.uk", + "org.uk", + "ac.uk", + "com.au", + "co.jp", + ]); + const lastTwo = `${parts[parts.length - 2]}.${parts[parts.length - 1]}`; + const lastThree = `${parts[parts.length - 3]}.${lastTwo}`; + + if (knownSecondLevel.has(lastTwo) && parts.length >= 3) { + return lastThree; + } + + return lastTwo; +} diff --git a/src/server/lib/errors.ts b/src/server/lib/errors.ts new file mode 100644 index 0000000..6bd6475 --- /dev/null +++ b/src/server/lib/errors.ts @@ -0,0 +1,27 @@ +import { isErrorCode, type ErrorCode } from "@/shared/error-codes"; + +export class AppError extends Error { + constructor( + public readonly code: ErrorCode, + message?: string, + ) { + super(message ?? code); + this.name = "AppError"; + } +} + +export function asAppError(error: unknown): AppError | null { + if (error instanceof AppError) return error; + if (error instanceof Error && isErrorCode(error.message)) { + return new AppError(error.message, error.message); + } + return null; +} + +export function toErrorCode(error: unknown): ErrorCode { + return asAppError(error)?.code ?? "INTERNAL_ERROR"; +} + +export function toClientError(error: unknown): Error { + return new Error(toErrorCode(error)); +} diff --git a/src/server/lib/kv-cache.ts b/src/server/lib/kv-cache.ts new file mode 100644 index 0000000..fe2371b --- /dev/null +++ b/src/server/lib/kv-cache.ts @@ -0,0 +1,64 @@ +import { env } from "cloudflare:workers"; +import { sortBy } from "remeda"; + +/** + * Cache TTL constants in seconds. + */ +export const CACHE_TTL = { + /** Related keyword research results */ + researchResult: 86400, +} as const; + +/** + * Build a deterministic cache key from an endpoint slug and input params. + * Uses FNV-1a hash for compactness. + */ +export function buildCacheKey( + prefix: string, + params: Record, +): string { + const raw = JSON.stringify( + params, + sortBy(Object.keys(params), (key) => key), + ); + return `${prefix}:${fnv1a(raw)}`; +} + +/** + * Get a cached JSON value from KV. Returns null on miss. + */ +export async function getCached(key: string): Promise { + const value = await env.KV.get(key, "text"); + if (value === null) return null; + + try { + return JSON.parse(value) as T; + } catch { + return null; + } +} + +/** + * Store a JSON value in KV with a TTL in seconds. + */ +export async function setCached( + key: string, + data: T, + ttlSeconds: number, +): Promise { + await env.KV.put(key, JSON.stringify(data), { + expirationTtl: ttlSeconds, + }); +} + +/** + * FNV-1a hash — fast, good distribution for cache keys. + */ +function fnv1a(input: string): string { + let hash = 2166136261; + for (let i = 0; i < input.length; i++) { + hash ^= input.charCodeAt(i); + hash = Math.imul(hash, 16777619); + } + return (hash >>> 0).toString(36); +} diff --git a/src/server/lib/logger.ts b/src/server/lib/logger.ts new file mode 100644 index 0000000..6381a03 --- /dev/null +++ b/src/server/lib/logger.ts @@ -0,0 +1,68 @@ +import { toErrorCode } from "@/server/lib/errors"; + +type LogContext = Record; + +const SENSITIVE_KEY_PATTERN = /token|secret|password|key|email|authorization/i; + +function sanitizeValue(key: string, value: unknown): unknown { + if (SENSITIVE_KEY_PATTERN.test(key)) return "[REDACTED]"; + + if (typeof value === "string") { + return value.length > 300 ? `${value.slice(0, 300)}...` : value; + } + + if (Array.isArray(value)) { + return value.slice(0, 10).map((item) => sanitizeValue(key, item)); + } + + if (value && typeof value === "object") { + const output: Record = {}; + for (const [k, v] of Object.entries(value)) { + output[k] = sanitizeValue(k, v); + } + return output; + } + + return value; +} + +function sanitizeContext(context: LogContext): LogContext { + const safe: LogContext = {}; + for (const [key, value] of Object.entries(context)) { + safe[key] = sanitizeValue(key, value); + } + return safe; +} + +export function logServerError( + operation: string, + error: unknown, + context: LogContext = {}, +): void { + const code = toErrorCode(error); + const safeErrorMessage = + error instanceof Error + ? sanitizeValue("message", error.message) + : "unknown"; + const safeStack = + error instanceof Error && typeof error.stack === "string" + ? sanitizeValue("stack", error.stack) + : undefined; + const safeCause = + error instanceof Error && "cause" in error + ? sanitizeValue("cause", (error as { cause?: unknown }).cause) + : undefined; + + console.error( + JSON.stringify({ + level: "error", + operation, + code, + errorName: error instanceof Error ? error.name : "UnknownError", + message: safeErrorMessage, + stack: safeStack, + cause: safeCause, + context: sanitizeContext(context), + }), + ); +} diff --git a/src/server/lib/r2.ts b/src/server/lib/r2.ts new file mode 100644 index 0000000..eb4c0a2 --- /dev/null +++ b/src/server/lib/r2.ts @@ -0,0 +1,43 @@ +import { env } from "cloudflare:workers"; + +export async function putJsonToR2( + key: string, + payload: Record, +): Promise<{ key: string; sizeBytes: number }> { + const body = JSON.stringify(payload); + await env.R2.put(key, body, { + httpMetadata: { + contentType: "application/json", + }, + }); + + return { + key, + sizeBytes: Buffer.byteLength(body), + }; +} + +export async function getJsonFromR2(key: string): Promise { + const object = await env.R2.get(key); + if (!object) { + throw new Error("Audit payload not found"); + } + + return object.text(); +} + +export async function putTextToR2( + key: string, + body: string, +): Promise<{ key: string; sizeBytes: number }> { + await env.R2.put(key, body, { + httpMetadata: { + contentType: "application/json", + }, + }); + + return { + key, + sizeBytes: Buffer.byteLength(body), + }; +} diff --git a/src/server/lib/serverFnErrorBoundary.ts b/src/server/lib/serverFnErrorBoundary.ts new file mode 100644 index 0000000..fa77755 --- /dev/null +++ b/src/server/lib/serverFnErrorBoundary.ts @@ -0,0 +1,51 @@ +export class PublicServerError extends Error { + constructor(message: string) { + super(message); + this.name = "PublicServerError"; + } +} + +interface ErrorBoundaryOptions { + fallbackMessage?: string; + passThroughMessages?: string[]; + getLogContext?: (args: TArgs) => Record; +} + +export function withServerFnErrorBoundary( + operation: string, + handler: (args: TArgs) => Promise, + options: ErrorBoundaryOptions = {}, +) { + const passThroughMessages = new Set(options.passThroughMessages ?? []); + + return async (args: TArgs): Promise => { + try { + return await handler(args); + } catch (error) { + if (error instanceof PublicServerError) { + throw error; + } + + if (error instanceof Error && passThroughMessages.has(error.message)) { + throw error; + } + + const message = error instanceof Error ? error.message : String(error); + const cause = + error instanceof Error && "cause" in error + ? (error as { cause?: unknown }).cause + : undefined; + const logContext = options.getLogContext?.(args); + console.error(`${operation} failed`, { + message, + cause, + stack: error instanceof Error ? error.stack : undefined, + ...logContext, + }); + + throw new PublicServerError( + options.fallbackMessage ?? "Something went wrong. Please try again.", + ); + } + }; +} diff --git a/src/server/repositories/AuditRepository.ts b/src/server/repositories/AuditRepository.ts new file mode 100644 index 0000000..602c161 --- /dev/null +++ b/src/server/repositories/AuditRepository.ts @@ -0,0 +1,308 @@ +/** + * Data access layer for site audit tables. + * All D1 interactions for audits, audit_pages, and audit_psi_results. + */ +import { db } from "@/db"; +import { audits, auditPages, auditPsiResults, projects } from "@/db/schema"; +import { and, eq, desc } from "drizzle-orm"; +import type { PsiResult, AuditConfig } from "@/server/lib/audit/types"; + +// ─── Create ────────────────────────────────────────────────────────────────── + +async function createAudit(data: { + id: string; + projectId: string; + userId: string; + startUrl: string; + workflowInstanceId: string; + config: AuditConfig; +}) { + await db.insert(audits).values({ + id: data.id, + projectId: data.projectId, + userId: data.userId, + startUrl: data.startUrl, + workflowInstanceId: data.workflowInstanceId, + config: JSON.stringify(data.config), + status: "running", + }); +} + +// ─── Update ────────────────────────────────────────────────────────────────── + +async function updateAuditProgress( + auditId: string, + data: { + pagesCrawled?: number; + pagesTotal?: number; + psiTotal?: number; + psiCompleted?: number; + psiFailed?: number; + currentPhase?: string; + }, +) { + await db.update(audits).set(data).where(eq(audits.id, auditId)); +} + +async function completeAudit( + auditId: string, + data: { + pagesCrawled: number; + pagesTotal: number; + }, +) { + await db + .update(audits) + .set({ + status: "completed", + completedAt: new Date().toISOString(), + currentPhase: "completed", + ...data, + }) + .where(eq(audits.id, auditId)); +} + +async function failAudit(auditId: string) { + await db + .update(audits) + .set({ + status: "failed", + completedAt: new Date().toISOString(), + currentPhase: "failed", + }) + .where(eq(audits.id, auditId)); +} + +// ─── Batch write results (finalize step) ───────────────────────────────────── + +/** + * Use db.batch() to send individual INSERT statements in a single round-trip. + * D1's batch API supports up to 100 *statements* per call — each statement + * has its own bind params, so there's no per-statement param limit issue. + */ +async function batchWriteResults( + auditId: string, + pages: Array<{ + id: string; + url: string; + statusCode: number; + redirectUrl: string | null; + title: string; + metaDescription: string; + canonicalUrl: string | null; + robotsMeta: string | null; + ogTitle: string | null; + ogDescription: string | null; + ogImage: string | null; + h1Count: number; + h2Count: number; + h3Count: number; + h4Count: number; + h5Count: number; + h6Count: number; + headingOrder: number[]; + wordCount: number; + imagesTotal: number; + imagesMissingAlt: number; + images: Array<{ src: string | null; alt: string | null }>; + internalLinks: string[]; + externalLinks: string[]; + hasStructuredData: boolean; + hreflangTags: string[]; + isIndexable: boolean; + responseTimeMs: number; + }>, + psiResults: PsiResult[], +) { + const BATCH_SIZE = 100; // D1 max statements per batch() call + + // ── Pages ────────────────────────────────────────────────────────── + const pageStatements = pages.map((p) => + db.insert(auditPages).values({ + id: p.id, + auditId, + url: p.url, + statusCode: p.statusCode, + redirectUrl: p.redirectUrl, + // Metadata + title: p.title, + metaDescription: p.metaDescription, + canonicalUrl: p.canonicalUrl, + robotsMeta: p.robotsMeta, + // Open Graph + ogTitle: p.ogTitle, + ogDescription: p.ogDescription, + ogImage: p.ogImage, + // Headings + h1Count: p.h1Count, + h2Count: p.h2Count, + h3Count: p.h3Count, + h4Count: p.h4Count, + h5Count: p.h5Count, + h6Count: p.h6Count, + headingOrderJson: JSON.stringify(p.headingOrder), + // Content + wordCount: p.wordCount, + // Images + imagesTotal: p.imagesTotal, + imagesMissingAlt: p.imagesMissingAlt, + imagesJson: JSON.stringify(p.images), + // Links + internalLinkCount: p.internalLinks.length, + externalLinkCount: p.externalLinks.length, + // Structured data + hasStructuredData: p.hasStructuredData, + // Hreflang + hreflangTagsJson: JSON.stringify(p.hreflangTags), + // Indexability + isIndexable: p.isIndexable, + // Performance + responseTimeMs: p.responseTimeMs, + }), + ); + + for (let i = 0; i < pageStatements.length; i += BATCH_SIZE) { + const chunk = pageStatements.slice(i, i + BATCH_SIZE); + const [first, ...rest] = chunk; + await db.batch([first, ...rest]); + } + + // ── PSI results ──────────────────────────────────────────────────── + if (psiResults.length > 0) { + const psiStatements = psiResults.map((r) => + db.insert(auditPsiResults).values({ + id: crypto.randomUUID(), + auditId, + pageId: r.pageId, + strategy: r.strategy, + performanceScore: r.performanceScore, + accessibilityScore: r.accessibilityScore, + bestPracticesScore: r.bestPracticesScore, + seoScore: r.seoScore, + lcpMs: r.lcpMs, + cls: r.cls, + inpMs: r.inpMs, + ttfbMs: r.ttfbMs, + errorMessage: r.errorMessage ?? null, + r2Key: r.r2Key ?? null, + payloadSizeBytes: r.payloadSizeBytes ?? null, + }), + ); + + for (let i = 0; i < psiStatements.length; i += BATCH_SIZE) { + const chunk = psiStatements.slice(i, i + BATCH_SIZE); + const [first, ...rest] = chunk; + await db.batch([first, ...rest]); + } + } +} + +// ─── Read ──────────────────────────────────────────────────────────────────── + +async function isProjectOwnedByUser(projectId: string, userId: string) { + const project = await db.query.projects.findFirst({ + where: and(eq(projects.id, projectId), eq(projects.userId, userId)), + }); + return Boolean(project); +} + +async function getAuditForUser(auditId: string, userId: string) { + return db.query.audits.findFirst({ + where: and(eq(audits.id, auditId), eq(audits.userId, userId)), + }); +} + +async function getAuditsByProjectForUser(projectId: string, userId: string) { + return db.query.audits.findMany({ + where: and(eq(audits.projectId, projectId), eq(audits.userId, userId)), + orderBy: [desc(audits.startedAt)], + }); +} + +async function getAuditResultsForUser(auditId: string, userId: string) { + const audit = await getAuditForUser(auditId, userId); + if (!audit) { + return { audit: null, pages: [], psi: [] }; + } + + const [pages, psi] = await Promise.all([ + db.query.auditPages.findMany({ + where: eq(auditPages.auditId, auditId), + }), + db.query.auditPsiResults.findMany({ + where: eq(auditPsiResults.auditId, auditId), + }), + ]); + + return { audit, pages, psi }; +} + +async function getPsiResultById(input: { + psiResultId: string; + projectId: string; + userId: string; +}) { + const project = await db.query.projects.findFirst({ + where: and( + eq(projects.id, input.projectId), + eq(projects.userId, input.userId), + ), + }); + + if (!project) { + throw new Error("Project not found"); + } + + const psi = await db.query.auditPsiResults.findFirst({ + where: eq(auditPsiResults.id, input.psiResultId), + }); + + if (!psi) return null; + + const parentAudit = await db.query.audits.findFirst({ + where: and( + eq(audits.id, psi.auditId), + eq(audits.projectId, input.projectId), + eq(audits.userId, input.userId), + ), + }); + + if (!parentAudit) { + throw new Error("Audit not found"); + } + + const page = await db.query.auditPages.findFirst({ + where: eq(auditPages.id, psi.pageId), + }); + + return { + psi, + page, + audit: parentAudit, + }; +} + +// ─── Delete ────────────────────────────────────────────────────────────────── + +async function deleteAuditForUser(auditId: string, userId: string) { + // Cascading deletes handle child tables + await db + .delete(audits) + .where(and(eq(audits.id, auditId), eq(audits.userId, userId))); +} + +// ─── Export ────────────────────────────────────────────────────────────────── + +export const AuditRepository = { + createAudit, + updateAuditProgress, + completeAudit, + failAudit, + batchWriteResults, + isProjectOwnedByUser, + getAuditForUser, + getAuditsByProjectForUser, + getAuditResultsForUser, + getPsiResultById, + deleteAuditForUser, +} as const; diff --git a/src/server/repositories/KeywordResearchRepository.ts b/src/server/repositories/KeywordResearchRepository.ts new file mode 100644 index 0000000..5a98ec0 --- /dev/null +++ b/src/server/repositories/KeywordResearchRepository.ts @@ -0,0 +1,192 @@ +import { and, count, desc, eq } from "drizzle-orm"; +import { db } from "@/db"; +import { keywordMetrics, projects, savedKeywords } from "@/db/schema"; +import { AppError } from "@/server/lib/errors"; + +async function upsertKeywordMetric(params: { + keyword: string; + locationCode: number; + languageCode: string; + searchVolume: number | null; + cpc: number | null; + competition: number | null; + keywordDifficulty: number | null; + intent: string | null; + monthlySearchesJson: string; +}) { + const fetchedAt = new Date().toISOString(); + + await db + .insert(keywordMetrics) + .values({ + keyword: params.keyword, + locationCode: params.locationCode, + languageCode: params.languageCode, + searchVolume: params.searchVolume, + cpc: params.cpc, + competition: params.competition, + keywordDifficulty: params.keywordDifficulty, + intent: params.intent, + monthlySearches: params.monthlySearchesJson, + fetchedAt, + }) + .onConflictDoUpdate({ + target: [ + keywordMetrics.keyword, + keywordMetrics.locationCode, + keywordMetrics.languageCode, + ], + set: { + searchVolume: params.searchVolume, + cpc: params.cpc, + competition: params.competition, + keywordDifficulty: params.keywordDifficulty, + intent: params.intent, + monthlySearches: params.monthlySearchesJson, + fetchedAt, + }, + }); +} + +async function listProjects(userId: string) { + return db.query.projects.findMany({ + where: eq(projects.userId, userId), + orderBy: desc(projects.createdAt), + }); +} + +async function getProject(projectId: string, userId: string) { + return db.query.projects.findFirst({ + where: and(eq(projects.id, projectId), eq(projects.userId, userId)), + }); +} + +async function getProjectPsiApiKey(projectId: string, userId: string) { + const project = await getProject(projectId, userId); + if (!project) { + throw new AppError("NOT_FOUND"); + } + return project.pagespeedApiKey ?? null; +} + +async function setProjectPsiApiKey( + projectId: string, + userId: string, + apiKey: string, +) { + const project = await getProject(projectId, userId); + if (!project) { + throw new AppError("NOT_FOUND"); + } + + await db + .update(projects) + .set({ pagespeedApiKey: apiKey }) + .where(and(eq(projects.id, projectId), eq(projects.userId, userId))); +} + +async function clearProjectPsiApiKey(projectId: string, userId: string) { + const project = await getProject(projectId, userId); + if (!project) { + throw new AppError("NOT_FOUND"); + } + + await db + .update(projects) + .set({ pagespeedApiKey: null }) + .where(and(eq(projects.id, projectId), eq(projects.userId, userId))); +} + +async function createProject(userId: string, name: string, domain?: string) { + const id = crypto.randomUUID(); + await db.insert(projects).values({ + id, + userId, + name, + domain, + }); + return id; +} + +async function deleteProject(projectId: string, userId: string) { + const project = await getProject(projectId, userId); + if (!project) { + throw new AppError("NOT_FOUND"); + } + // savedKeywords cascade-delete via FK + await db + .delete(projects) + .where(and(eq(projects.id, projectId), eq(projects.userId, userId))); +} + +async function countSavedKeywords(projectId: string) { + const [result] = await db + .select({ value: count() }) + .from(savedKeywords) + .where(eq(savedKeywords.projectId, projectId)); + return result?.value ?? 0; +} + +async function saveKeywordsToProject(params: { + projectId: string; + keywords: string[]; + locationCode: number; + languageCode: string; +}) { + if (params.keywords.length === 0) return; + + await db + .insert(savedKeywords) + .values( + params.keywords.map((keyword) => ({ + id: crypto.randomUUID(), + projectId: params.projectId, + keyword, + locationCode: params.locationCode, + languageCode: params.languageCode, + })), + ) + .onConflictDoNothing(); +} + +async function listSavedKeywordsByProject(projectId: string) { + return db + .select({ row: savedKeywords, metric: keywordMetrics }) + .from(savedKeywords) + .leftJoin( + keywordMetrics, + and( + eq(keywordMetrics.keyword, savedKeywords.keyword), + eq(keywordMetrics.locationCode, savedKeywords.locationCode), + eq(keywordMetrics.languageCode, savedKeywords.languageCode), + ), + ) + .where(eq(savedKeywords.projectId, projectId)) + .orderBy(desc(savedKeywords.createdAt)); +} + +async function removeSavedKeyword(savedKeywordId: string) { + await db.delete(savedKeywords).where(eq(savedKeywords.id, savedKeywordId)); +} + +async function getSavedKeywordById(savedKeywordId: string) { + return db.query.savedKeywords.findFirst({ + where: eq(savedKeywords.id, savedKeywordId), + }); +} + +export const KeywordResearchRepository = { + upsertKeywordMetric, + listProjects, + getProject, + getProjectPsiApiKey, + setProjectPsiApiKey, + clearProjectPsiApiKey, + createProject, + deleteProject, + countSavedKeywords, + saveKeywordsToProject, + listSavedKeywordsByProject, + removeSavedKeyword, + getSavedKeywordById, +} as const; diff --git a/src/server/repositories/PsiAuditRepository.ts b/src/server/repositories/PsiAuditRepository.ts new file mode 100644 index 0000000..63ef256 --- /dev/null +++ b/src/server/repositories/PsiAuditRepository.ts @@ -0,0 +1,102 @@ +import { and, desc, eq } from "drizzle-orm"; +import { db } from "@/db"; +import { projects, psiAuditResults } from "@/db/schema"; + +async function ensureProjectAccess(projectId: string, userId: string) { + const project = await db.query.projects.findFirst({ + where: and(eq(projects.id, projectId), eq(projects.userId, userId)), + }); + + if (!project) { + throw new Error("Project not found"); + } +} + +async function createAuditResult(data: { + id: string; + projectId: string; + requestedUrl: string; + finalUrl: string; + strategy: "mobile" | "desktop"; + status: "completed" | "failed"; + performanceScore?: number | null; + accessibilityScore?: number | null; + bestPracticesScore?: number | null; + seoScore?: number | null; + firstContentfulPaint?: string | null; + largestContentfulPaint?: string | null; + totalBlockingTime?: string | null; + cumulativeLayoutShift?: string | null; + speedIndex?: string | null; + timeToInteractive?: string | null; + lighthouseVersion?: string | null; + errorMessage?: string | null; + r2Key?: string | null; + payloadSizeBytes?: number | null; +}) { + await db.insert(psiAuditResults).values({ + id: data.id, + projectId: data.projectId, + requestedUrl: data.requestedUrl, + finalUrl: data.finalUrl, + strategy: data.strategy, + status: data.status, + performanceScore: data.performanceScore ?? null, + accessibilityScore: data.accessibilityScore ?? null, + bestPracticesScore: data.bestPracticesScore ?? null, + seoScore: data.seoScore ?? null, + firstContentfulPaint: data.firstContentfulPaint ?? null, + largestContentfulPaint: data.largestContentfulPaint ?? null, + totalBlockingTime: data.totalBlockingTime ?? null, + cumulativeLayoutShift: data.cumulativeLayoutShift ?? null, + speedIndex: data.speedIndex ?? null, + timeToInteractive: data.timeToInteractive ?? null, + lighthouseVersion: data.lighthouseVersion ?? null, + errorMessage: data.errorMessage ?? null, + r2Key: data.r2Key ?? null, + payloadSizeBytes: data.payloadSizeBytes ?? null, + createdAt: new Date().toISOString(), + }); +} + +async function listAuditResults(input: { + projectId: string; + userId: string; + strategy?: "mobile" | "desktop"; + limit: number; +}) { + await ensureProjectAccess(input.projectId, input.userId); + + return db.query.psiAuditResults.findMany({ + where: + input.strategy != null + ? and( + eq(psiAuditResults.projectId, input.projectId), + eq(psiAuditResults.strategy, input.strategy), + ) + : eq(psiAuditResults.projectId, input.projectId), + orderBy: desc(psiAuditResults.createdAt), + limit: input.limit, + }); +} + +async function getAuditResult(input: { + projectId: string; + userId: string; + auditId: string; +}) { + await ensureProjectAccess(input.projectId, input.userId); + + return db.query.psiAuditResults.findFirst({ + where: and( + eq(psiAuditResults.id, input.auditId), + eq(psiAuditResults.projectId, input.projectId), + ), + }); +} + +export const PsiAuditRepository = { + createAuditResult, + listAuditResults, + getAuditResult, +} as const; diff --git a/src/server/services/AuditService.ts b/src/server/services/AuditService.ts new file mode 100644 index 0000000..7d5aaf9 --- /dev/null +++ b/src/server/services/AuditService.ts @@ -0,0 +1,184 @@ +/** + * Business logic layer for site audits. + * Orchestrates between the workflow trigger, repository, and data formatting. + */ +import { env } from "cloudflare:workers"; +import { AuditRepository } from "@/server/repositories/AuditRepository"; +import { AuditProgressKV } from "@/server/lib/audit/progress-kv"; +import { normalizeAndValidateStartUrl } from "@/server/lib/audit/url-policy"; +import { AppError } from "@/server/lib/errors"; +import type { AuditConfig, PsiStrategy } from "@/server/lib/audit/types"; +import { KeywordResearchRepository } from "@/server/repositories/KeywordResearchRepository"; + +async function startAudit(input: { + userId: string; + projectId: string; + startUrl: string; + maxPages?: number; + psiStrategy?: PsiStrategy; + psiApiKey?: string; +}) { + const hasProjectAccess = await AuditRepository.isProjectOwnedByUser( + input.projectId, + input.userId, + ); + if (!hasProjectAccess) { + throw new AppError("FORBIDDEN"); + } + + const auditId = crypto.randomUUID(); + + const shouldRunPsi = (input.psiStrategy ?? "auto") !== "none"; + let resolvedPsiApiKey = input.psiApiKey?.trim(); + + if (shouldRunPsi && !resolvedPsiApiKey) { + resolvedPsiApiKey = + (await KeywordResearchRepository.getProjectPsiApiKey( + input.projectId, + input.userId, + )) ?? undefined; + } + + if (shouldRunPsi && !resolvedPsiApiKey) { + throw new Error("PSI API key is not set for this project."); + } + + const config: AuditConfig = { + maxPages: Math.min(Math.max(input.maxPages ?? 50, 10), 10_000), + psiStrategy: input.psiStrategy ?? "auto", + // PSI key is used for Google quota/abuse control (non-billing). + psiApiKey: resolvedPsiApiKey, + }; + + const startUrl = await normalizeAndValidateStartUrl(input.startUrl); + + // Trigger the Cloudflare Workflow + const instance = await env.SITE_AUDIT_WORKFLOW.create({ + id: auditId, + params: { + auditId, + projectId: input.projectId, + startUrl, + config, + }, + }); + + // Create the audit row in D1 + await AuditRepository.createAudit({ + id: auditId, + projectId: input.projectId, + userId: input.userId, + startUrl, + workflowInstanceId: instance.id, + config, + }); + + return { auditId }; +} + +async function getStatus(auditId: string, userId: string) { + const audit = await AuditRepository.getAuditForUser(auditId, userId); + if (!audit) throw new AppError("NOT_FOUND"); + + return { + id: audit.id, + startUrl: audit.startUrl, + status: audit.status, + pagesCrawled: audit.pagesCrawled, + pagesTotal: audit.pagesTotal, + psiTotal: audit.psiTotal, + psiCompleted: audit.psiCompleted, + psiFailed: audit.psiFailed, + currentPhase: audit.currentPhase, + startedAt: audit.startedAt, + completedAt: audit.completedAt, + }; +} + +async function getResults(auditId: string, userId: string) { + const { audit, pages, psi } = await AuditRepository.getAuditResultsForUser( + auditId, + userId, + ); + + if (!audit) throw new AppError("NOT_FOUND"); + + const parsedConfig = JSON.parse(audit.config) as AuditConfig; + const { psiApiKey: _psiApiKey, ...safeConfig } = parsedConfig; + + return { + audit: { + id: audit.id, + startUrl: audit.startUrl, + status: audit.status, + pagesCrawled: audit.pagesCrawled, + pagesTotal: audit.pagesTotal, + startedAt: audit.startedAt, + completedAt: audit.completedAt, + config: safeConfig, + }, + pages, + psi, + }; +} + +async function getHistory(projectId: string, userId: string) { + const hasProjectAccess = await AuditRepository.isProjectOwnedByUser( + projectId, + userId, + ); + if (!hasProjectAccess) { + throw new AppError("FORBIDDEN"); + } + + const auditList = await AuditRepository.getAuditsByProjectForUser( + projectId, + userId, + ); + + const didRunPsi = (configRaw: string | null) => { + if (!configRaw) return false; + try { + const parsed = JSON.parse(configRaw) as Partial; + return parsed.psiStrategy != null && parsed.psiStrategy !== "none"; + } catch { + return false; + } + }; + + return auditList.map((a) => ({ + id: a.id, + startUrl: a.startUrl, + status: a.status, + pagesCrawled: a.pagesCrawled, + pagesTotal: a.pagesTotal, + ranPsi: didRunPsi(a.config), + startedAt: a.startedAt, + completedAt: a.completedAt, + })); +} + +async function getCrawlProgress(auditId: string, userId: string) { + const audit = await AuditRepository.getAuditForUser(auditId, userId); + if (!audit) { + throw new AppError("NOT_FOUND"); + } + return AuditProgressKV.getCrawledUrls(auditId); +} + +async function remove(auditId: string, userId: string) { + const audit = await AuditRepository.getAuditForUser(auditId, userId); + if (!audit) { + throw new AppError("NOT_FOUND"); + } + await AuditRepository.deleteAuditForUser(auditId, userId); +} + +export const AuditService = { + startAudit, + getStatus, + getCrawlProgress, + getResults, + getHistory, + remove, +} as const; diff --git a/src/server/services/DomainService.ts b/src/server/services/DomainService.ts new file mode 100644 index 0000000..a19240e --- /dev/null +++ b/src/server/services/DomainService.ts @@ -0,0 +1,219 @@ +import { + normalizeDomainInput, + toRelativePath, + fetchDomainRankOverviewRaw, + fetchRankedKeywordsRaw, + type DomainRankedKeywordItem, +} from "@/server/lib/dataforseo"; +import { sortBy } from "remeda"; +import { buildCacheKey, getCached, setCached } from "@/server/lib/kv-cache"; +import { logServerError } from "@/server/lib/logger"; + +/** Domain overview data is refreshed every 12 hours. */ +const DOMAIN_OVERVIEW_TTL_SECONDS = 12 * 60 * 60; + +type DomainOverviewResult = { + domain: string; + organicTraffic: number | null; + organicKeywords: number | null; + backlinks: number | null; + referringDomains: number | null; + hasData: boolean; + keywords: Array<{ + keyword: string; + position: number | null; + searchVolume: number | null; + traffic: number | null; + cpc: number | null; + url: string | null; + relativeUrl: string | null; + keywordDifficulty: number | null; + }>; + pages: Array<{ + page: string; + relativePath: string | null; + organicTraffic: number | null; + keywords: number | null; + backlinks: number | null; + }>; + fetchedAt: string; +}; + +async function getOverview(input: { + domain: string; + includeSubdomains: boolean; + locationCode: number; + languageCode: string; +}): Promise { + const domain = normalizeDomainInput(input.domain, input.includeSubdomains); + + // --- KV cache check --- + const cacheKey = buildCacheKey("domain:overview", { + domain, + includeSubdomains: input.includeSubdomains, + locationCode: input.locationCode, + languageCode: input.languageCode, + }); + + const cached = await getCached(cacheKey); + if (cached && cached.hasData) { + return cached; + } + + // --- Fetch fresh from DataForSEO --- + const nowIso = new Date().toISOString(); + + const [metricsResponse, rankedKeywordsResponse] = await Promise.all([ + fetchDomainRankOverviewRaw(domain, input.locationCode, input.languageCode), + fetchRankedKeywordsRaw( + domain, + input.locationCode, + input.languageCode, + 200, + ["keyword_data.keyword_info.search_volume,desc"], + ), + ]); + + const metrics = metricsResponse[0]; + const rankedItems = rankedKeywordsResponse; + + const keywords = rankedItems + .map((item) => mapKeywordItem(item)) + .filter( + (item): item is NonNullable> => + item != null, + ); + + const pages = derivePages(keywords); + + const organicTraffic = + metrics?.metrics?.organic?.etv != null + ? Math.round(metrics.metrics.organic.etv) + : null; + const organicKeywords = + metrics?.metrics?.organic?.count != null + ? Math.round(metrics.metrics.organic.count) + : null; + + const result: DomainOverviewResult = { + domain, + organicTraffic, + organicKeywords, + backlinks: null, + referringDomains: null, + hasData: keywords.length > 0, + keywords, + pages, + fetchedAt: nowIso, + }; + + // Persist to KV (fire-and-forget; don't block response) + if (result.hasData) { + void setCached(cacheKey, result, DOMAIN_OVERVIEW_TTL_SECONDS).catch( + (error) => { + logServerError("domain.overview.cache-write", error, { + domain, + locationCode: input.locationCode, + languageCode: input.languageCode, + }); + }, + ); + } + + return result; +} + +// --------------------------------------------------------------------------- +// Helpers +// --------------------------------------------------------------------------- + +function mapKeywordItem(item: DomainRankedKeywordItem) { + const keywordData = item.keyword_data; + const keywordInfo = keywordData?.keyword_info; + const keywordProperties = keywordData?.keyword_properties; + const rankedSerpElement = item.ranked_serp_element; + const serpItem = rankedSerpElement?.serp_item; + + const keyword = keywordData?.keyword ?? item.keyword; + if (!keyword) return null; + + const url = serpItem?.url ?? rankedSerpElement?.url ?? null; + + const relativeUrl = + serpItem?.relative_url ?? + rankedSerpElement?.relative_url ?? + (url ? toRelativePath(url) : null); + + const position = + serpItem?.rank_absolute ?? rankedSerpElement?.rank_absolute ?? null; + + const traffic = serpItem?.etv ?? rankedSerpElement?.etv ?? null; + + const keywordDifficulty = + keywordProperties?.keyword_difficulty ?? + keywordInfo?.keyword_difficulty ?? + null; + + return { + keyword, + position: position != null ? Math.round(position) : null, + searchVolume: + keywordInfo?.search_volume != null + ? Math.round(keywordInfo.search_volume) + : null, + traffic: traffic ?? null, + cpc: keywordInfo?.cpc ?? null, + url: url ?? null, + relativeUrl, + keywordDifficulty: + keywordDifficulty != null ? Math.round(keywordDifficulty) : null, + }; +} + +function derivePages( + keywords: Array<{ + url: string | null; + relativeUrl: string | null; + traffic: number | null; + }>, +) { + const grouped = new Map< + string, + { + page: string; + relativePath: string | null; + traffic: number; + keywords: number; + } + >(); + + for (const keyword of keywords) { + if (!keyword.url) continue; + + const existing = grouped.get(keyword.url) ?? { + page: keyword.url, + relativePath: keyword.relativeUrl, + traffic: 0, + keywords: 0, + }; + + existing.traffic += keyword.traffic ?? 0; + existing.keywords += 1; + + grouped.set(keyword.url, existing); + } + + return sortBy(Array.from(grouped.values()), [(page) => page.traffic, "desc"]) + .slice(0, 100) + .map((page) => ({ + page: page.page, + relativePath: page.relativePath, + organicTraffic: page.traffic, + keywords: page.keywords, + backlinks: null as number | null, + })); +} + +export const DomainService = { + getOverview, +} as const; diff --git a/src/server/services/KeywordResearchService.ts b/src/server/services/KeywordResearchService.ts new file mode 100644 index 0000000..0a4f20b --- /dev/null +++ b/src/server/services/KeywordResearchService.ts @@ -0,0 +1,577 @@ +import type { + KeywordIntent, + KeywordResearchRow, + MonthlySearch, + SavedKeywordRow, + SerpResultItem, +} from "@/types/keywords"; +import type { + CreateProjectInput, + DeleteProjectInput, + GetSavedKeywordsInput, + RemoveSavedKeywordInput, + ResearchKeywordsInput, + SaveKeywordsInput, +} from "@/types/schemas/keywords"; +import { + fetchRelatedKeywordsRaw, + fetchKeywordSuggestionsRaw, + fetchKeywordIdeasRaw, + type LabsKeywordDataItem, + fetchHistoricalSerpsRaw, +} from "@/server/lib/dataforseo"; +import { + buildCacheKey, + getCached, + setCached, + CACHE_TTL, +} from "@/server/lib/kv-cache"; +import { KeywordResearchRepository } from "@/server/repositories/KeywordResearchRepository"; +import { AppError } from "@/server/lib/errors"; +import { logServerError } from "@/server/lib/logger"; + +// --------------------------------------------------------------------------- +// Helpers +// --------------------------------------------------------------------------- + +function normalizeKeyword(input: string): string { + return input.trim().toLowerCase(); +} + +function normalizeIntent(raw: unknown): KeywordIntent { + if (typeof raw !== "string") return "unknown"; + const value = raw.toLowerCase(); + if (value.includes("inform")) return "informational"; + if (value.includes("commerc")) return "commercial"; + if (value.includes("transact")) return "transactional"; + if (value.includes("navig")) return "navigational"; + return "unknown"; +} + +// --------------------------------------------------------------------------- +// DataForSEO fetch helpers +// --------------------------------------------------------------------------- + +type EnrichedKeyword = { + keyword: string; + searchVolume: number | null; + trend: MonthlySearch[]; + cpc: number | null; + competition: number | null; + keywordDifficulty: number | null; + intent: KeywordIntent; +}; + +type KeywordSource = "related" | "suggestions" | "ideas"; + +function parseMonthlySearches( + payload: string | null, + context: { keyword: string; projectId: string }, +): MonthlySearch[] { + if (!payload) return []; + try { + return JSON.parse(payload) as MonthlySearch[]; + } catch (error) { + logServerError("keywords.saved.parse-monthly-searches", error, context); + return []; + } +} + +async function fetchRelatedKeywordsWithData( + seedKeyword: string, + locationCode: number, + languageCode: string, + limit: number, +): Promise { + // Fetch from API - data is embedded in the response + const items = await fetchRelatedKeywordsRaw( + seedKeyword, + locationCode, + languageCode, + limit, + 3, // depth=3 for ~584 keywords + ); + + // Map embedded data directly from the response + const rows: EnrichedKeyword[] = []; + const seen = new Set(); + + for (const item of items) { + const kw = item.keyword_data?.keyword; + if (!kw) continue; + + const normalizedKw = normalizeKeyword(kw); + if (seen.has(normalizedKw)) continue; + seen.add(normalizedKw); + + // Use clickstream-normalized volume if available, otherwise fall back to regular + const keywordInfo = item.keyword_data + ?.keyword_info_normalized_with_clickstream?.search_volume + ? item.keyword_data?.keyword_info_normalized_with_clickstream + : item.keyword_data?.keyword_info; + + rows.push({ + keyword: normalizedKw, + searchVolume: keywordInfo?.search_volume ?? null, + trend: (keywordInfo?.monthly_searches ?? []).map((m) => ({ + year: m.year, + month: m.month, + searchVolume: m.search_volume ?? 0, + })), + cpc: item.keyword_data?.keyword_info?.cpc ?? null, + competition: item.keyword_data?.keyword_info?.competition ?? null, + keywordDifficulty: + item.keyword_data?.keyword_properties?.keyword_difficulty ?? null, + intent: normalizeIntent( + item.keyword_data?.search_intent_info?.main_intent, + ), + }); + } + + return rows; +} + +async function fetchKeywordDataRows( + items: LabsKeywordDataItem[], +): Promise { + const rows: EnrichedKeyword[] = []; + const seen = new Set(); + + for (const item of items) { + const kw = item.keyword; + if (!kw) continue; + + const normalizedKw = normalizeKeyword(kw); + if (seen.has(normalizedKw)) continue; + seen.add(normalizedKw); + + const keywordInfo = item.keyword_info_normalized_with_clickstream + ?.search_volume + ? item.keyword_info_normalized_with_clickstream + : item.keyword_info; + + rows.push({ + keyword: normalizedKw, + searchVolume: keywordInfo?.search_volume ?? null, + trend: (keywordInfo?.monthly_searches ?? []).map((m) => ({ + year: m.year, + month: m.month, + searchVolume: m.search_volume ?? 0, + })), + cpc: item.keyword_info?.cpc ?? null, + competition: item.keyword_info?.competition ?? null, + keywordDifficulty: item.keyword_properties?.keyword_difficulty ?? null, + intent: normalizeIntent(item.search_intent_info?.main_intent), + }); + } + + return rows; +} + +async function fetchKeywordRowsWithFallback( + seedKeyword: string, + locationCode: number, + languageCode: string, + limit: number, +): Promise<{ + rows: EnrichedKeyword[]; + source: KeywordSource; + usedFallback: boolean; +}> { + const relatedRows = await fetchRelatedKeywordsWithData( + seedKeyword, + locationCode, + languageCode, + limit, + ); + + if (relatedRows.length > 0) { + return { + rows: relatedRows, + source: "related", + usedFallback: false, + }; + } + + const suggestionRows = await fetchKeywordDataRows( + await fetchKeywordSuggestionsRaw( + seedKeyword, + locationCode, + languageCode, + limit, + ), + ); + + if (suggestionRows.length > 0) { + return { + rows: suggestionRows, + source: "suggestions", + usedFallback: true, + }; + } + + const ideaRows = await fetchKeywordDataRows( + await fetchKeywordIdeasRaw(seedKeyword, locationCode, languageCode, limit), + ); + + return { + rows: ideaRows, + source: "ideas", + usedFallback: true, + }; +} + +// --------------------------------------------------------------------------- +// Public API +// --------------------------------------------------------------------------- + +async function research( + _userId: string, + input: ResearchKeywordsInput, +): Promise<{ + rows: KeywordResearchRow[]; + source: KeywordSource; + usedFallback: boolean; +}> { + const uniqueKeywords = [ + ...new Set(input.keywords.map(normalizeKeyword)), + ].filter((kw) => kw.length > 0); + + if (uniqueKeywords.length === 0) { + throw new AppError("VALIDATION_ERROR"); + } + + // Check KV cache + const cacheKey = buildCacheKey("kw:related", { + keywords: uniqueKeywords, + locationCode: input.locationCode, + languageCode: input.languageCode, + resultLimit: input.resultLimit, + depth: 3, // bump when depth changes to bust stale cache + }); + + type CachedResult = { + rows: EnrichedKeyword[]; + source?: KeywordSource; + usedFallback?: boolean; + }; + const cached = await getCached(cacheKey); + + // Only serve cached results that actually have metric data. Previous + // failed fetches may have cached rows with all-zero volume/cpc/competition. + const cacheHasMetrics = cached?.rows?.some( + (r) => (r.searchVolume ?? 0) > 0 || (r.cpc ?? 0) > 0, + ); + + if (cached && cacheHasMetrics) { + return { + rows: cached.rows, + source: cached.source ?? "related", + usedFallback: cached.usedFallback ?? false, + }; + } + + // Fetch keyword data from primary endpoint with fallback chain + const { rows, source, usedFallback } = await fetchKeywordRowsWithFallback( + uniqueKeywords[0], + input.locationCode, + input.languageCode, + input.resultLimit, + ); + + // Cache the result + await setCached( + cacheKey, + { rows, source, usedFallback }, + CACHE_TTL.researchResult, + ); + + // Persist metrics to DB (fire-and-forget, don't block the response) + void Promise.all( + rows.map((row) => + KeywordResearchRepository.upsertKeywordMetric({ + keyword: row.keyword, + locationCode: input.locationCode, + languageCode: input.languageCode, + searchVolume: row.searchVolume, + cpc: row.cpc, + competition: row.competition, + keywordDifficulty: row.keywordDifficulty, + intent: row.intent, + monthlySearchesJson: JSON.stringify(row.trend), + }), + ), + ).catch((error) => { + logServerError("keywords.research.persist-metrics", error, { + locationCode: input.locationCode, + languageCode: input.languageCode, + rowCount: rows.length, + }); + }); + + return { rows, source, usedFallback }; +} + +async function listProjects(userId: string) { + const rows = await KeywordResearchRepository.listProjects(userId); + return rows.map((row) => ({ + id: row.id, + name: row.name, + domain: row.domain, + createdAt: row.createdAt, + })); +} + +async function createProject(userId: string, input: CreateProjectInput) { + const id = await KeywordResearchRepository.createProject( + userId, + input.name, + input.domain, + ); + return { id }; +} + +async function deleteProject(userId: string, input: DeleteProjectInput) { + await KeywordResearchRepository.deleteProject(input.projectId, userId); + return { success: true }; +} + +async function saveKeywords(userId: string, input: SaveKeywordsInput) { + const project = await KeywordResearchRepository.getProject( + input.projectId, + userId, + ); + if (!project) { + throw new AppError("NOT_FOUND"); + } + + const normalizedKeywords = [ + ...new Set( + input.keywords.map(normalizeKeyword).filter((kw) => kw.length > 0), + ), + ]; + + const metricByKeyword = new Map( + (input.metrics ?? []) + .map((metric) => { + const keyword = normalizeKeyword(metric.keyword); + if (!keyword || !normalizedKeywords.includes(keyword)) return null; + return [keyword, metric] as const; + }) + .filter( + ( + entry, + ): entry is readonly [ + string, + NonNullable[number], + ] => entry != null, + ), + ); + + if (metricByKeyword.size > 0) { + await Promise.all( + normalizedKeywords.map(async (keyword) => { + const metric = metricByKeyword.get(keyword); + if (!metric) return; + + await KeywordResearchRepository.upsertKeywordMetric({ + keyword, + locationCode: input.locationCode, + languageCode: input.languageCode, + searchVolume: metric.searchVolume ?? null, + cpc: metric.cpc ?? null, + competition: metric.competition ?? null, + keywordDifficulty: metric.keywordDifficulty ?? null, + intent: metric.intent ?? null, + monthlySearchesJson: JSON.stringify(metric.monthlySearches ?? []), + }); + }), + ); + } + + await KeywordResearchRepository.saveKeywordsToProject({ + projectId: input.projectId, + keywords: normalizedKeywords, + locationCode: input.locationCode, + languageCode: input.languageCode, + }); + + return { success: true }; +} + +async function getSavedKeywords( + userId: string, + input: GetSavedKeywordsInput, +): Promise<{ rows: SavedKeywordRow[] }> { + const project = await KeywordResearchRepository.getProject( + input.projectId, + userId, + ); + if (!project) { + throw new AppError("NOT_FOUND"); + } + + const rows = await KeywordResearchRepository.listSavedKeywordsByProject( + input.projectId, + ); + + return { + rows: rows.map(({ row, metric }) => ({ + id: row.id, + projectId: row.projectId, + keyword: row.keyword, + locationCode: row.locationCode, + languageCode: row.languageCode, + createdAt: row.createdAt, + searchVolume: metric?.searchVolume ?? null, + cpc: metric?.cpc ?? null, + competition: metric?.competition ?? null, + keywordDifficulty: metric?.keywordDifficulty ?? null, + intent: metric?.intent ?? null, + monthlySearches: parseMonthlySearches(metric?.monthlySearches ?? null, { + keyword: row.keyword, + projectId: row.projectId, + }), + fetchedAt: metric?.fetchedAt ?? null, + })), + }; +} + +async function removeSavedKeyword( + userId: string, + input: RemoveSavedKeywordInput, +) { + // Verify the keyword belongs to a project owned by this user + const savedKw = await KeywordResearchRepository.getSavedKeywordById( + input.savedKeywordId, + ); + if (!savedKw) { + throw new AppError("NOT_FOUND"); + } + + const project = await KeywordResearchRepository.getProject( + savedKw.projectId, + userId, + ); + if (!project) { + throw new AppError("FORBIDDEN"); + } + + await KeywordResearchRepository.removeSavedKeyword(input.savedKeywordId); + return { success: true }; +} + +async function getOrCreateDefaultProject(userId: string) { + const existing = await KeywordResearchRepository.listProjects(userId); + if (existing.length > 0) { + const first = existing[0]; + return { + id: first.id, + name: first.name, + domain: first.domain, + createdAt: first.createdAt, + }; + } + + const id = await KeywordResearchRepository.createProject( + userId, + "Default", + undefined, + ); + return { + id, + name: "Default", + domain: null, + createdAt: new Date().toISOString(), + }; +} + +async function getProject(userId: string, projectId: string) { + const project = await KeywordResearchRepository.getProject(projectId, userId); + if (!project) return null; + return { + id: project.id, + name: project.name, + domain: project.domain, + createdAt: project.createdAt, + }; +} + +// --------------------------------------------------------------------------- +// SERP Analysis +// --------------------------------------------------------------------------- + +const SERP_CACHE_TTL_SECONDS = 12 * 60 * 60; // 12 hours + +async function getSerpAnalysis(input: { + keyword: string; + locationCode: number; + languageCode: string; +}): Promise<{ items: SerpResultItem[] }> { + const keyword = normalizeKeyword(input.keyword); + + const cacheKey = buildCacheKey("serp:analysis", { + keyword, + locationCode: input.locationCode, + languageCode: input.languageCode, + }); + + const cached = await getCached<{ items: SerpResultItem[] }>(cacheKey); + if (cached && cached.items.length > 0) { + return cached; + } + + const snapshots = await fetchHistoricalSerpsRaw( + keyword, + input.locationCode, + input.languageCode, + ); + + // Take the most recent snapshot (first item) + const snapshot = snapshots[0]; + const rawItems = snapshot?.items ?? []; + + // Filter to organic results only and map to our shape + const items: SerpResultItem[] = rawItems + .filter((item) => item.type === "organic") + .map((item) => ({ + rank: item.rank_absolute ?? item.rank_group ?? 0, + title: item.title ?? "", + url: item.url ?? "", + domain: item.domain ?? "", + description: item.description ?? "", + etv: item.etv ?? null, + estimatedPaidTrafficCost: item.estimated_paid_traffic_cost ?? null, + referringDomains: item.backlinks_info?.referring_domains ?? null, + backlinks: item.backlinks_info?.backlinks ?? null, + isNew: item.rank_changes?.is_new ?? false, + rankChange: + item.rank_changes?.previous_rank_absolute != null && + item.rank_absolute != null + ? item.rank_changes.previous_rank_absolute - item.rank_absolute + : null, + })); + + const result = { items }; + + if (items.length > 0) { + void setCached(cacheKey, result, SERP_CACHE_TTL_SECONDS).catch((err) => { + console.error("Failed to cache SERP analysis in KV:", err); + }); + } + + return result; +} + +export const KeywordResearchService = { + research, + getSerpAnalysis, + listProjects, + createProject, + deleteProject, + saveKeywords, + getSavedKeywords, + removeSavedKeyword, + getOrCreateDefaultProject, + getProject, +} as const; diff --git a/src/server/services/PsiIssuesService.ts b/src/server/services/PsiIssuesService.ts new file mode 100644 index 0000000..3a065cc --- /dev/null +++ b/src/server/services/PsiIssuesService.ts @@ -0,0 +1,192 @@ +import { sortBy } from "remeda"; + +const PSI_CATEGORIES = [ + "performance", + "accessibility", + "best-practices", + "seo", +] as const; + +export type PsiIssueCategory = (typeof PSI_CATEGORIES)[number]; + +export type PsiIssue = { + category: PsiIssueCategory; + auditKey: string; + title: string; + description: string; + score: number | null; + scoreDisplayMode: string | null; + displayValue: string | null; + impactMs: number | null; + impactBytes: number | null; + severity: "critical" | "warning" | "info"; + items: string[]; +}; + +type LighthouseAudit = { + title?: string; + description?: string; + score?: number | null; + scoreDisplayMode?: string; + displayValue?: string; + details?: { + overallSavingsMs?: number; + overallSavingsBytes?: number; + items?: Array>; + }; +}; + +type LighthouseCategory = { + auditRefs?: Array<{ + id?: string; + }>; +}; + +function normalizeScore(score: number | null | undefined): number | null { + if (score == null || Number.isNaN(score)) return null; + return Math.round(score * 100); +} + +function compactItem(item: Record): string { + const preferredKeys = [ + "url", + "source", + "nodeLabel", + "snippet", + "totalBytes", + "wastedBytes", + "wastedMs", + "label", + "value", + ]; + + const output: Record = {}; + for (const key of preferredKeys) { + if (item[key] != null) { + output[key] = item[key]; + } + } + + if (Object.keys(output).length === 0) { + for (const [key, value] of Object.entries(item).slice(0, 6)) { + output[key] = value; + } + } + + return JSON.stringify(output); +} + +function getSeverity(input: { + score: number | null; + impactMs: number | null; + impactBytes: number | null; +}): "critical" | "warning" | "info" { + if ((input.impactMs ?? 0) >= 300 || (input.impactBytes ?? 0) >= 150_000) { + return "critical"; + } + + if (input.score != null && input.score < 50) { + return "critical"; + } + + if ((input.impactMs ?? 0) >= 100 || (input.impactBytes ?? 0) >= 50_000) { + return "warning"; + } + + if (input.score != null && input.score < 90) { + return "warning"; + } + + return "info"; +} + +function parseIssues( + payloadJson: string, + categoryFilter?: PsiIssueCategory, +): PsiIssue[] { + let payload: Record; + try { + payload = JSON.parse(payloadJson) as Record; + } catch { + throw new Error("Invalid Lighthouse payload JSON"); + } + + const lighthouseResult = (payload.lighthouseResult ?? {}) as Record< + string, + unknown + >; + const audits = (lighthouseResult.audits ?? {}) as Record< + string, + LighthouseAudit + >; + const categories = (lighthouseResult.categories ?? {}) as Record< + string, + LighthouseCategory + >; + + const issues: PsiIssue[] = []; + + for (const category of PSI_CATEGORIES) { + if (categoryFilter && category !== categoryFilter) continue; + + const refs = categories[category]?.auditRefs ?? []; + for (const ref of refs) { + const auditKey = ref.id; + if (!auditKey) continue; + + const audit = audits[auditKey]; + if (!audit) continue; + + const score = normalizeScore(audit.score); + const displayMode = audit.scoreDisplayMode ?? null; + + const isPass = + (score != null && score >= 90) || + displayMode === "notApplicable" || + displayMode === "informative" || + displayMode === "manual"; + + if (isPass) continue; + + const impactMs = + typeof audit.details?.overallSavingsMs === "number" + ? audit.details.overallSavingsMs + : null; + const impactBytes = + typeof audit.details?.overallSavingsBytes === "number" + ? audit.details.overallSavingsBytes + : null; + + const items = Array.isArray(audit.details?.items) + ? audit.details!.items!.slice(0, 10).map(compactItem) + : []; + + issues.push({ + category, + auditKey, + title: audit.title ?? auditKey, + description: audit.description ?? "", + score, + scoreDisplayMode: displayMode, + displayValue: audit.displayValue ?? null, + impactMs, + impactBytes, + severity: getSeverity({ score, impactMs, impactBytes }), + items, + }); + } + } + + return sortBy( + issues, + [ + (issue) => (issue.impactMs ?? 0) * 1000 + (issue.impactBytes ?? 0), + "desc", + ], + [(issue) => issue.score ?? 100, "asc"], + ); +} + +export const PsiIssuesService = { + parseIssues, +} as const; diff --git a/src/server/services/PsiService.ts b/src/server/services/PsiService.ts new file mode 100644 index 0000000..fc9ef65 --- /dev/null +++ b/src/server/services/PsiService.ts @@ -0,0 +1,170 @@ +const PSI_ENDPOINT = + "https://www.googleapis.com/pagespeedonline/v5/runPagespeed"; +const PSI_CATEGORIES = [ + "performance", + "accessibility", + "best-practices", + "seo", +] as const; + +type PsiCategory = (typeof PSI_CATEGORIES)[number]; +type PsiStrategy = "mobile" | "desktop"; + +type PsiAuditMetric = { + score: number | null; + displayValue: string | null; + numericValue: number | null; +}; + +type PsiAuditResult = { + requestedUrl: string; + finalUrl: string; + strategy: PsiStrategy; + fetchedAt: string; + lighthouseVersion: string | null; + scores: Record; + metrics: { + firstContentfulPaint: PsiAuditMetric; + largestContentfulPaint: PsiAuditMetric; + totalBlockingTime: PsiAuditMetric; + cumulativeLayoutShift: PsiAuditMetric; + speedIndex: PsiAuditMetric; + timeToInteractive: PsiAuditMetric; + }; + rawPayload: Record; +}; + +type LighthouseAudit = { + score?: number | null; + displayValue?: string; + numericValue?: number; +}; + +function normalizeInputUrl(input: string): string { + const trimmed = input.trim(); + if (!trimmed) { + throw new Error("URL is required"); + } + + const withProtocol = /^https?:\/\//i.test(trimmed) + ? trimmed + : `https://${trimmed}`; + + try { + const parsed = new URL(withProtocol); + if (!["http:", "https:"].includes(parsed.protocol)) { + throw new Error("Only http and https URLs are supported"); + } + return parsed.toString(); + } catch { + throw new Error("Please enter a valid URL"); + } +} + +function asScore(value: number | null | undefined): number | null { + if (value == null || Number.isNaN(value)) return null; + return Math.round(value * 100); +} + +function asMetric(audit: LighthouseAudit | undefined): PsiAuditMetric { + return { + score: asScore(audit?.score), + displayValue: audit?.displayValue ?? null, + numericValue: + typeof audit?.numericValue === "number" ? audit.numericValue : null, + }; +} + +function extractErrorMessage(payload: unknown): string | null { + if (!payload || typeof payload !== "object") return null; + + const asRecord = payload as Record; + const error = asRecord.error; + + if (!error || typeof error !== "object") return null; + + const message = (error as Record).message; + return typeof message === "string" ? message : null; +} + +async function runAudit(input: { + url: string; + strategy: PsiStrategy; + apiKey: string; +}): Promise { + const apiKey = input.apiKey.trim(); + if (!apiKey) { + throw new Error("PSI API key is required"); + } + + const normalizedUrl = normalizeInputUrl(input.url); + const params = new URLSearchParams({ + url: normalizedUrl, + strategy: input.strategy, + }); + + for (const category of PSI_CATEGORIES) { + params.append("category", category); + } + + params.append("key", apiKey); + + const response = await fetch(`${PSI_ENDPOINT}?${params.toString()}`); + const payload = (await response.json().catch(() => null)) as Record< + string, + unknown + > | null; + + if (!response.ok) { + const message = extractErrorMessage(payload); + throw new Error(message ?? `PSI request failed (${response.status})`); + } + + const lighthouseResult = (payload?.lighthouseResult ?? null) as Record< + string, + unknown + > | null; + + if (!lighthouseResult) { + throw new Error("PSI returned an invalid response"); + } + + const categories = (lighthouseResult.categories ?? {}) as Record< + string, + { score?: number | null } + >; + const audits = (lighthouseResult.audits ?? {}) as Record< + string, + LighthouseAudit + >; + + return { + requestedUrl: normalizedUrl, + finalUrl: + (lighthouseResult.finalDisplayedUrl as string | undefined) ?? + normalizedUrl, + strategy: input.strategy, + fetchedAt: new Date().toISOString(), + lighthouseVersion: + (lighthouseResult.lighthouseVersion as string | undefined) ?? null, + scores: { + performance: asScore(categories.performance?.score), + accessibility: asScore(categories.accessibility?.score), + "best-practices": asScore(categories["best-practices"]?.score), + seo: asScore(categories.seo?.score), + }, + metrics: { + firstContentfulPaint: asMetric(audits["first-contentful-paint"]), + largestContentfulPaint: asMetric(audits["largest-contentful-paint"]), + totalBlockingTime: asMetric(audits["total-blocking-time"]), + cumulativeLayoutShift: asMetric(audits["cumulative-layout-shift"]), + speedIndex: asMetric(audits["speed-index"]), + timeToInteractive: asMetric(audits.interactive), + }, + rawPayload: payload ?? {}, + }; +} + +export const PsiService = { + runAudit, +} as const; diff --git a/src/server/services/keyword-research/helpers.ts b/src/server/services/keyword-research/helpers.ts new file mode 100644 index 0000000..bfbb99c --- /dev/null +++ b/src/server/services/keyword-research/helpers.ts @@ -0,0 +1,25 @@ +import type { KeywordIntent, MonthlySearch } from "@/types/keywords"; + +export type EnrichedKeyword = { + keyword: string; + searchVolume: number | null; + trend: MonthlySearch[]; + cpc: number | null; + competition: number | null; + keywordDifficulty: number | null; + intent: KeywordIntent; +}; + +export function normalizeKeyword(input: string): string { + return input.trim().toLowerCase(); +} + +export function normalizeIntent(raw: unknown): KeywordIntent { + if (typeof raw !== "string") return "unknown"; + const value = raw.toLowerCase(); + if (value.includes("inform")) return "informational"; + if (value.includes("commerc")) return "commercial"; + if (value.includes("transact")) return "transactional"; + if (value.includes("navig")) return "navigational"; + return "unknown"; +} diff --git a/src/server/services/keyword-research/projects.ts b/src/server/services/keyword-research/projects.ts new file mode 100644 index 0000000..866ad51 --- /dev/null +++ b/src/server/services/keyword-research/projects.ts @@ -0,0 +1,65 @@ +import type { + CreateProjectInput, + DeleteProjectInput, +} from "@/types/schemas/keywords"; +import { KeywordResearchRepository } from "@/server/repositories/KeywordResearchRepository"; + +export async function listProjects(userId: string) { + const rows = await KeywordResearchRepository.listProjects(userId); + return rows.map((row) => ({ + id: row.id, + name: row.name, + domain: row.domain, + createdAt: row.createdAt, + })); +} + +export async function createProject(userId: string, input: CreateProjectInput) { + const id = await KeywordResearchRepository.createProject( + userId, + input.name, + input.domain, + ); + return { id }; +} + +export async function deleteProject(userId: string, input: DeleteProjectInput) { + await KeywordResearchRepository.deleteProject(input.projectId, userId); + return { success: true }; +} + +export async function getOrCreateDefaultProject(userId: string) { + const existing = await KeywordResearchRepository.listProjects(userId); + if (existing.length > 0) { + const first = existing[0]; + return { + id: first.id, + name: first.name, + domain: first.domain, + createdAt: first.createdAt, + }; + } + + const id = await KeywordResearchRepository.createProject( + userId, + "Default", + undefined, + ); + return { + id, + name: "Default", + domain: null, + createdAt: new Date().toISOString(), + }; +} + +export async function getProject(userId: string, projectId: string) { + const project = await KeywordResearchRepository.getProject(projectId, userId); + if (!project) return null; + return { + id: project.id, + name: project.name, + domain: project.domain, + createdAt: project.createdAt, + }; +} diff --git a/src/server/services/keyword-research/research-data.ts b/src/server/services/keyword-research/research-data.ts new file mode 100644 index 0000000..c363117 --- /dev/null +++ b/src/server/services/keyword-research/research-data.ts @@ -0,0 +1,61 @@ +import { fetchRelatedKeywordsRaw } from "@/server/lib/dataforseo"; +import type { ResearchKeywordsInput } from "@/types/schemas/keywords"; +import { + normalizeIntent, + normalizeKeyword, + type EnrichedKeyword, +} from "./helpers"; + +export async function fetchResearchRows( + input: ResearchKeywordsInput, + uniqueKeywords: string[], +): Promise { + const seedKeyword = uniqueKeywords[0]; + if (!seedKeyword) { + return []; + } + + const items = await fetchRelatedKeywordsRaw( + seedKeyword, + input.locationCode, + input.languageCode, + input.resultLimit, + 3, + ); + + const rows: EnrichedKeyword[] = []; + const seen = new Set(); + + for (const item of items) { + const keyword = item.keyword_data?.keyword; + if (!keyword) continue; + + const normalizedKeyword = normalizeKeyword(keyword); + if (seen.has(normalizedKeyword)) continue; + seen.add(normalizedKeyword); + + const keywordInfo = item.keyword_data + ?.keyword_info_normalized_with_clickstream?.search_volume + ? item.keyword_data.keyword_info_normalized_with_clickstream + : item.keyword_data?.keyword_info; + + rows.push({ + keyword: normalizedKeyword, + searchVolume: keywordInfo?.search_volume ?? null, + trend: (keywordInfo?.monthly_searches ?? []).map((entry) => ({ + year: entry.year, + month: entry.month, + searchVolume: entry.search_volume ?? 0, + })), + cpc: item.keyword_data?.keyword_info?.cpc ?? null, + competition: item.keyword_data?.keyword_info?.competition ?? null, + keywordDifficulty: + item.keyword_data?.keyword_properties?.keyword_difficulty ?? null, + intent: normalizeIntent( + item.keyword_data?.search_intent_info?.main_intent, + ), + }); + } + + return rows; +} diff --git a/src/server/services/keyword-research/saved-keywords.ts b/src/server/services/keyword-research/saved-keywords.ts new file mode 100644 index 0000000..afd004d --- /dev/null +++ b/src/server/services/keyword-research/saved-keywords.ts @@ -0,0 +1,109 @@ +import { AppError } from "@/server/lib/errors"; +import { KeywordResearchRepository } from "@/server/repositories/KeywordResearchRepository"; +import type { + GetSavedKeywordsInput, + RemoveSavedKeywordInput, + SaveKeywordsInput, +} from "@/types/schemas/keywords"; +import type { MonthlySearch, SavedKeywordRow } from "@/types/keywords"; +import { normalizeKeyword } from "./helpers"; +import { logServerError } from "@/server/lib/logger"; + +function parseMonthlySearches( + payload: string | null, + context: { keyword: string; projectId: string }, +): MonthlySearch[] { + if (!payload) return []; + try { + return JSON.parse(payload) as MonthlySearch[]; + } catch (error) { + logServerError("keywords.saved.parse-monthly-searches", error, context); + return []; + } +} + +export async function saveKeywords(userId: string, input: SaveKeywordsInput) { + const project = await KeywordResearchRepository.getProject( + input.projectId, + userId, + ); + if (!project) { + throw new AppError("NOT_FOUND"); + } + + const normalizedKeywords = [ + ...new Set( + input.keywords.map(normalizeKeyword).filter((kw) => kw.length > 0), + ), + ]; + + await KeywordResearchRepository.saveKeywordsToProject({ + projectId: input.projectId, + keywords: normalizedKeywords, + locationCode: input.locationCode, + languageCode: input.languageCode, + }); + + return { success: true }; +} + +export async function getSavedKeywords( + userId: string, + input: GetSavedKeywordsInput, +): Promise<{ rows: SavedKeywordRow[] }> { + const project = await KeywordResearchRepository.getProject( + input.projectId, + userId, + ); + if (!project) { + throw new AppError("NOT_FOUND"); + } + + const rows = await KeywordResearchRepository.listSavedKeywordsByProject( + input.projectId, + ); + + return { + rows: rows.map(({ row, metric }) => ({ + id: row.id, + projectId: row.projectId, + keyword: row.keyword, + locationCode: row.locationCode, + languageCode: row.languageCode, + createdAt: row.createdAt, + searchVolume: metric?.searchVolume ?? null, + cpc: metric?.cpc ?? null, + competition: metric?.competition ?? null, + keywordDifficulty: metric?.keywordDifficulty ?? null, + intent: metric?.intent ?? null, + monthlySearches: parseMonthlySearches(metric?.monthlySearches ?? null, { + keyword: row.keyword, + projectId: row.projectId, + }), + fetchedAt: metric?.fetchedAt ?? null, + })), + }; +} + +export async function removeSavedKeyword( + userId: string, + input: RemoveSavedKeywordInput, +) { + const savedKw = await KeywordResearchRepository.getSavedKeywordById( + input.savedKeywordId, + ); + if (!savedKw) { + throw new AppError("NOT_FOUND"); + } + + const project = await KeywordResearchRepository.getProject( + savedKw.projectId, + userId, + ); + if (!project) { + throw new AppError("FORBIDDEN"); + } + + await KeywordResearchRepository.removeSavedKeyword(input.savedKeywordId); + return { success: true }; +} diff --git a/src/server/services/keyword-research/serp.ts b/src/server/services/keyword-research/serp.ts new file mode 100644 index 0000000..392cabd --- /dev/null +++ b/src/server/services/keyword-research/serp.ts @@ -0,0 +1,69 @@ +import { fetchHistoricalSerpsRaw } from "@/server/lib/dataforseo"; +import { buildCacheKey, getCached, setCached } from "@/server/lib/kv-cache"; +import { logServerError } from "@/server/lib/logger"; +import type { SerpResultItem } from "@/types/keywords"; +import { normalizeKeyword } from "./helpers"; + +const SERP_CACHE_TTL_SECONDS = 12 * 60 * 60; + +export async function getSerpAnalysis(input: { + keyword: string; + locationCode: number; + languageCode: string; +}): Promise<{ items: SerpResultItem[] }> { + const keyword = normalizeKeyword(input.keyword); + + const cacheKey = buildCacheKey("serp:analysis", { + keyword, + locationCode: input.locationCode, + languageCode: input.languageCode, + }); + + const cached = await getCached<{ items: SerpResultItem[] }>(cacheKey); + if (cached && cached.items.length > 0) { + return cached; + } + + const snapshots = await fetchHistoricalSerpsRaw( + keyword, + input.locationCode, + input.languageCode, + ); + + const snapshot = snapshots[0]; + const rawItems = snapshot?.items ?? []; + + const items: SerpResultItem[] = rawItems + .filter((item) => item.type === "organic") + .map((item) => ({ + rank: item.rank_absolute ?? item.rank_group ?? 0, + title: item.title ?? "", + url: item.url ?? "", + domain: item.domain ?? "", + description: item.description ?? "", + etv: item.etv ?? null, + estimatedPaidTrafficCost: item.estimated_paid_traffic_cost ?? null, + referringDomains: item.backlinks_info?.referring_domains ?? null, + backlinks: item.backlinks_info?.backlinks ?? null, + isNew: item.rank_changes?.is_new ?? false, + rankChange: + item.rank_changes?.previous_rank_absolute != null && + item.rank_absolute != null + ? item.rank_changes.previous_rank_absolute - item.rank_absolute + : null, + })); + + const result = { items }; + + if (items.length > 0) { + void setCached(cacheKey, result, SERP_CACHE_TTL_SECONDS).catch((error) => { + logServerError("keywords.serp.cache-write", error, { + keyword, + locationCode: input.locationCode, + languageCode: input.languageCode, + }); + }); + } + + return result; +} diff --git a/src/server/workflows/SiteAuditWorkflow.ts b/src/server/workflows/SiteAuditWorkflow.ts new file mode 100644 index 0000000..07967c8 --- /dev/null +++ b/src/server/workflows/SiteAuditWorkflow.ts @@ -0,0 +1,540 @@ +/** + * Cloudflare Workflow for site audit crawling. + * + * Each step is durable — if a step fails, it retries without redoing + * completed steps. + * + * Flow: + * Step 1: Discovery (robots.txt + sitemaps) + * Step 2-N: Crawl page batches (parallel fetch+analyze per step) + * Step N+1: Select PSI sample + * Step N+2-M: PSI batches (parallel URLs, mobile+desktop per URL) + * Step M+1: Finalize (batch write to D1) + */ +import { + WorkflowEntrypoint, + type WorkflowEvent, + type WorkflowStep, +} from "cloudflare:workers"; +import { + discoverUrls, + fetchRobotsTxt, + type RobotsResult, +} from "@/server/lib/audit/discovery"; +import { analyzeHtml } from "@/server/lib/audit/page-analyzer"; +import { fetchPsiResult, selectPsiSample } from "@/server/lib/audit/psi"; +import { + normalizeUrl, + isSameOrigin, + getOrigin, +} from "@/server/lib/audit/url-utils"; +import { putTextToR2 } from "@/server/lib/r2"; +import { AuditRepository } from "@/server/repositories/AuditRepository"; +import { AuditProgressKV } from "@/server/lib/audit/progress-kv"; +import type { AuditConfig, PsiResult } from "@/server/lib/audit/types"; + +interface AuditParams { + auditId: string; + projectId: string; + startUrl: string; + config: AuditConfig; +} + +const CRAWL_CONCURRENCY = 25; +const PSI_URL_CONCURRENCY = 6; + +/** Serializable page data passed between workflow steps. */ +interface StepPageResult { + id: string; + url: string; + statusCode: number; + redirectUrl: string | null; + // Metadata + title: string; + metaDescription: string; + canonicalUrl: string | null; + robotsMeta: string | null; + // Open Graph + ogTitle: string | null; + ogDescription: string | null; + ogImage: string | null; + // Headings + h1Count: number; + h2Count: number; + h3Count: number; + h4Count: number; + h5Count: number; + h6Count: number; + headingOrder: number[]; + // Content + wordCount: number; + // Images + imagesTotal: number; + imagesMissingAlt: number; + images: Array<{ src: string | null; alt: string | null }>; + // Links + internalLinks: string[]; + externalLinks: string[]; + // Structured data + hasStructuredData: boolean; + // Hreflang + hreflangTags: string[]; + // Indexability + isIndexable: boolean; + // Performance + responseTimeMs: number; +} + +type PsiUploadContext = { + projectId: string; + auditId: string; +}; + +function shouldQueueCrawlLink( + link: string, + origin: string, + robots: RobotsResult, + visited: Set, + queued: Set, +): boolean { + return ( + isSameOrigin(link, origin) && + robots.isAllowed(link) && + !visited.has(link) && + !queued.has(link) + ); +} + +function countPsiBatchResults(results: PsiResult[]): { + completed: number; + failed: number; +} { + let completed = 0; + let failed = 0; + for (const result of results) { + if (result.errorMessage) { + failed += 1; + continue; + } + completed += 1; + } + return { completed, failed }; +} + +export class SiteAuditWorkflow extends WorkflowEntrypoint { + async run(event: WorkflowEvent, step: WorkflowStep) { + const { auditId, projectId, startUrl, config } = event.payload; + const origin = getOrigin(startUrl); + const maxPages = config.maxPages; + + try { + // ─── Step 1: Discovery ─────────────────────────────────────── + const discovery = await step.do("discover-urls", async () => { + const result = await discoverUrls(origin, maxPages); + // Update audit with discovery info + await AuditRepository.updateAuditProgress(auditId, { + pagesTotal: Math.min(result.urls.length + 1, maxPages), + currentPhase: "crawling", + }); + return { + sitemapUrls: result.urls, + // We can't serialize the robots function, so we store the raw result + // and re-fetch robots in crawl steps if needed + }; + }); + + const robots = await fetchRobotsTxt(origin); + // ─── Step 2-N: Crawl pages ────────────────────────────────── + const visited = new Set(); + const queue: string[] = []; + const queued = new Set(); + const allPages: StepPageResult[] = []; + + // Seed the queue + const normalizedStart = normalizeUrl(startUrl) ?? startUrl; + if ( + robots.isAllowed(normalizedStart) && + isSameOrigin(normalizedStart, origin) + ) { + queue.push(normalizedStart); + queued.add(normalizedStart); + } + + // Add sitemap URLs to queue + for (const sitemapUrl of discovery.sitemapUrls) { + const normalized = normalizeUrl(sitemapUrl); + if ( + normalized && + isSameOrigin(normalized, origin) && + robots.isAllowed(normalized) + ) { + if (!visited.has(normalized) && !queued.has(normalized)) { + queue.push(normalized); + queued.add(normalized); + } + } + } + + let crawlBatchIndex = 0; + + while (queue.length > 0 && allPages.length < maxPages) { + const remaining = maxPages - allPages.length; + const batchSize = Math.min(CRAWL_CONCURRENCY, remaining); + const urlsToCrawl: string[] = []; + + while (queue.length > 0 && urlsToCrawl.length < batchSize) { + const url = queue.shift()!; + queued.delete(url); + + if (visited.has(url)) continue; + if (!robots.isAllowed(url)) continue; + visited.add(url); + urlsToCrawl.push(url); + } + + if (urlsToCrawl.length === 0) continue; + + crawlBatchIndex++; + + const crawledBatch = await step.do( + `crawl-batch-${crawlBatchIndex}`, + async () => { + const settled = await Promise.allSettled( + urlsToCrawl.map((url) => crawlPage(url, origin)), + ); + + return settled.flatMap((result) => { + if (result.status === "fulfilled" && result.value) { + return [result.value]; + } + return []; + }); + }, + ); + + allPages.push(...crawledBatch); + + // Add discovered internal links to queue + for (const pageResult of crawledBatch) { + for (const link of pageResult.internalLinks.filter((candidate) => + shouldQueueCrawlLink(candidate, origin, robots, visited, queued), + )) { + queue.push(link); + queued.add(link); + } + } + + // Push crawled URLs to KV for live progress (batched) + await step.do(`kv-progress-batch-${crawlBatchIndex}`, async () => { + await AuditProgressKV.pushCrawledUrls( + auditId, + crawledBatch.map((pageResult) => ({ + url: pageResult.url, + statusCode: pageResult.statusCode, + title: pageResult.title, + crawledAt: Date.now(), + })), + ); + }); + + // Update D1 progress each batch + await step.do(`progress-batch-${crawlBatchIndex}`, async () => { + await AuditRepository.updateAuditProgress(auditId, { + pagesCrawled: allPages.length, + pagesTotal: Math.min(visited.size + queue.length, maxPages), + }); + }); + } + + // ─── PSI Phase ────────────────────────────────────────────── + const psiResults: PsiResult[] = []; + + if (config.psiStrategy !== "none" && config.psiApiKey) { + const psiSample = await step.do("select-psi-sample", async () => { + const pagesForSample = allPages.map((p) => ({ + id: p.id, + url: p.url, + statusCode: p.statusCode, + })); + const sample = selectPsiSample( + pagesForSample, + startUrl, + config.psiStrategy, + ); + + await AuditRepository.updateAuditProgress(auditId, { + currentPhase: "psi", + psiTotal: sample.length * 2, + psiCompleted: 0, + psiFailed: 0, + }); + + return sample; + }); + + let psiCompleted = 0; + let psiFailed = 0; + + const updatePsiProgress = async (stepName: string) => { + await step.do(stepName, async () => { + await AuditRepository.updateAuditProgress(auditId, { + psiCompleted, + psiFailed, + }); + }); + }; + + const psiWork = psiSample.flatMap((psiUrl) => { + const page = allPages.find((p) => p.url === psiUrl); + if (!page) return []; + return [{ url: psiUrl, pageId: page.id }]; + }); + + let psiBatchIndex = 0; + for (let i = 0; i < psiWork.length; i += PSI_URL_CONCURRENCY) { + const batch = psiWork.slice(i, i + PSI_URL_CONCURRENCY); + psiBatchIndex += 1; + + const psiBatchResults = await step.do( + `psi-batch-${psiBatchIndex}`, + async () => { + const perUrlResults = await Promise.all( + batch.map(async ({ url, pageId }) => { + const [mobileResult, desktopResult] = await Promise.all([ + fetchPsiAndUploadToR2( + url, + pageId, + "mobile", + config.psiApiKey!, + { projectId, auditId }, + ), + fetchPsiAndUploadToR2( + url, + pageId, + "desktop", + config.psiApiKey!, + { projectId, auditId }, + ), + ]); + + return [mobileResult, desktopResult]; + }), + ); + + return perUrlResults.flat(); + }, + ); + + psiResults.push(...psiBatchResults); + + const counts = countPsiBatchResults(psiBatchResults); + psiFailed += counts.failed; + psiCompleted += counts.completed; + + await updatePsiProgress(`psi-progress-batch-${psiBatchIndex}`); + } + } + + // ─── Finalize ──────────────────────────────────────────────── + await step.do("finalize", async () => { + await AuditRepository.updateAuditProgress(auditId, { + currentPhase: "finalizing", + }); + + // Batch write all results to D1 + await AuditRepository.batchWriteResults(auditId, allPages, psiResults); + + // Mark audit as completed + await AuditRepository.completeAudit(auditId, { + pagesCrawled: allPages.length, + pagesTotal: allPages.length, + }); + + // Clean up KV progress data (no longer needed once results are in D1) + await AuditProgressKV.clear(auditId); + }); + } catch (error) { + console.error(`Audit ${auditId} failed:`, error); + await step.do("mark-failed", async () => { + await AuditRepository.failAudit(auditId); + }); + throw error; + } + } +} + +async function fetchPsiAndUploadToR2( + url: string, + pageId: string, + strategy: "mobile" | "desktop", + apiKey: string, + context: PsiUploadContext, +): Promise { + const result = await fetchPsiResult(url, pageId, strategy, apiKey); + + if (result.rawPayloadJson) { + const key = `site-audit/${context.projectId}/${context.auditId}/${pageId}-${strategy}.json`; + const uploaded = await putTextToR2(key, result.rawPayloadJson); + result.r2Key = uploaded.key; + result.payloadSizeBytes = uploaded.sizeBytes; + result.rawPayloadJson = null; + } + + return result; +} + +/** + * Fetch and analyze a single page. Returns null if the page can't be fetched. + */ +async function crawlPage( + url: string, + crawlOrigin: string, +): Promise { + const startTime = Date.now(); + + try { + const response = await fetch(url, { + headers: { + "User-Agent": "SuperSEO-Audit/1.0", + Accept: "text/html,application/xhtml+xml", + }, + redirect: "follow", + signal: AbortSignal.timeout(15_000), + }); + + const responseTimeMs = Date.now() - startTime; + const statusCode = response.status; + const finalUrl = normalizeUrl(response.url) ?? response.url; + + if (!isSameOrigin(finalUrl, crawlOrigin)) { + return null; + } + + // Detect redirects + const redirectUrl = + response.redirected && response.url !== url ? response.url : null; + + // Only parse HTML responses + const contentType = response.headers.get("content-type") ?? ""; + if (!contentType.includes("text/html")) { + return { + id: crypto.randomUUID(), + url: finalUrl, + statusCode, + redirectUrl, + title: "", + metaDescription: "", + canonicalUrl: null, + robotsMeta: null, + ogTitle: null, + ogDescription: null, + ogImage: null, + h1Count: 0, + h2Count: 0, + h3Count: 0, + h4Count: 0, + h5Count: 0, + h6Count: 0, + headingOrder: [], + wordCount: 0, + imagesTotal: 0, + imagesMissingAlt: 0, + images: [], + internalLinks: [], + externalLinks: [], + hasStructuredData: false, + hreflangTags: [], + isIndexable: false, + responseTimeMs, + }; + } + + const html = await response.text(); + const analysis = analyzeHtml( + html, + finalUrl, + statusCode, + responseTimeMs, + redirectUrl, + ); + + // Determine indexability + const isIndexable = !( + analysis.robotsMeta?.toLowerCase().includes("noindex") ?? false + ); + + // Count headings by level + const h2Count = analysis.headingOrder.filter((h) => h === 2).length; + const h3Count = analysis.headingOrder.filter((h) => h === 3).length; + const h4Count = analysis.headingOrder.filter((h) => h === 4).length; + const h5Count = analysis.headingOrder.filter((h) => h === 5).length; + const h6Count = analysis.headingOrder.filter((h) => h === 6).length; + + return { + id: crypto.randomUUID(), + url: finalUrl, + statusCode, + redirectUrl, + title: analysis.title, + metaDescription: analysis.metaDescription, + canonicalUrl: analysis.canonical, + robotsMeta: analysis.robotsMeta, + ogTitle: analysis.ogTitle, + ogDescription: analysis.ogDescription, + ogImage: analysis.ogImage, + h1Count: analysis.h1s.length, + h2Count, + h3Count, + h4Count, + h5Count, + h6Count, + headingOrder: analysis.headingOrder, + wordCount: analysis.wordCount, + imagesTotal: analysis.images.length, + imagesMissingAlt: analysis.images.filter( + (img) => !img.alt || img.alt === "", + ).length, + images: analysis.images, + internalLinks: analysis.internalLinks, + externalLinks: analysis.externalLinks, + hasStructuredData: analysis.hasStructuredData, + hreflangTags: analysis.hreflangTags, + isIndexable, + responseTimeMs, + }; + } catch (error) { + const responseTimeMs = Date.now() - startTime; + console.warn(`Failed to crawl ${url}:`, error); + + return { + id: crypto.randomUUID(), + url, + statusCode: 0, + redirectUrl: null, + title: "", + metaDescription: "", + canonicalUrl: null, + robotsMeta: null, + ogTitle: null, + ogDescription: null, + ogImage: null, + h1Count: 0, + h2Count: 0, + h3Count: 0, + h4Count: 0, + h5Count: 0, + h6Count: 0, + headingOrder: [], + wordCount: 0, + imagesTotal: 0, + imagesMissingAlt: 0, + images: [], + internalLinks: [], + externalLinks: [], + hasStructuredData: false, + hreflangTags: [], + isIndexable: false, + responseTimeMs, + }; + } +} diff --git a/src/serverFunctions/audit.ts b/src/serverFunctions/audit.ts new file mode 100644 index 0000000..f5c523c --- /dev/null +++ b/src/serverFunctions/audit.ts @@ -0,0 +1,112 @@ +import { createServerFn } from "@tanstack/react-start"; +import { ensureUserMiddleware } from "@/middleware/ensureUser"; +import { useSessionTokenClientMiddleware } from "@every-app/sdk/tanstack"; +import { + startAuditSchema, + getAuditStatusSchema, + getAuditResultsSchema, + getAuditHistorySchema, + deleteAuditSchema, + getCrawlProgressSchema, +} from "@/types/schemas/audit"; +import { AuditService } from "@/server/services/AuditService"; +import { logServerError } from "@/server/lib/logger"; +import { toClientError } from "@/server/lib/errors"; + +export const startAudit = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => startAuditSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await AuditService.startAudit({ + userId: context.userId, + projectId: data.projectId, + startUrl: data.startUrl, + maxPages: data.maxPages, + psiStrategy: data.psiStrategy, + psiApiKey: data.psiApiKey, + }); + } catch (error) { + logServerError("audit.start", error, { + userId: context.userId, + projectId: data.projectId, + }); + throw toClientError(error); + } + }); + +export const getAuditStatus = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => getAuditStatusSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await AuditService.getStatus(data.auditId, context.userId); + } catch (error) { + logServerError("audit.status", error, { + userId: context.userId, + auditId: data.auditId, + }); + throw toClientError(error); + } + }); + +export const getAuditResults = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => getAuditResultsSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await AuditService.getResults(data.auditId, context.userId); + } catch (error) { + logServerError("audit.results", error, { + userId: context.userId, + auditId: data.auditId, + }); + throw toClientError(error); + } + }); + +export const getAuditHistory = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => getAuditHistorySchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await AuditService.getHistory(data.projectId, context.userId); + } catch (error) { + logServerError("audit.history", error, { + userId: context.userId, + projectId: data.projectId, + }); + throw toClientError(error); + } + }); + +export const getCrawlProgress = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => getCrawlProgressSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await AuditService.getCrawlProgress(data.auditId, context.userId); + } catch (error) { + logServerError("audit.crawl-progress", error, { + userId: context.userId, + auditId: data.auditId, + }); + throw toClientError(error); + } + }); + +export const deleteAudit = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => deleteAuditSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + await AuditService.remove(data.auditId, context.userId); + return { success: true }; + } catch (error) { + logServerError("audit.delete", error, { + userId: context.userId, + auditId: data.auditId, + }); + throw toClientError(error); + } + }); diff --git a/src/serverFunctions/domain.ts b/src/serverFunctions/domain.ts new file mode 100644 index 0000000..54486a8 --- /dev/null +++ b/src/serverFunctions/domain.ts @@ -0,0 +1,22 @@ +import { createServerFn } from "@tanstack/react-start"; +import { ensureUserMiddleware } from "@/middleware/ensureUser"; +import { useSessionTokenClientMiddleware } from "@every-app/sdk/tanstack"; +import { domainOverviewSchema } from "@/types/schemas/domain"; +import { DomainService } from "@/server/services/DomainService"; +import { logServerError } from "@/server/lib/logger"; +import { toClientError } from "@/server/lib/errors"; + +export const getDomainOverview = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => domainOverviewSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await DomainService.getOverview(data); + } catch (error) { + logServerError("domain.overview", error, { + userId: context.userId, + domain: data.domain, + }); + throw toClientError(error); + } + }); diff --git a/src/serverFunctions/keywords.ts b/src/serverFunctions/keywords.ts new file mode 100644 index 0000000..f9ea893 --- /dev/null +++ b/src/serverFunctions/keywords.ts @@ -0,0 +1,168 @@ +import { createServerFn } from "@tanstack/react-start"; +import { z } from "zod"; +import { ensureUserMiddleware } from "@/middleware/ensureUser"; +import { useSessionTokenClientMiddleware } from "@every-app/sdk/tanstack"; +import { + researchKeywordsSchema, + createProjectSchema, + deleteProjectSchema, + saveKeywordsSchema, + getSavedKeywordsSchema, + removeSavedKeywordSchema, + serpAnalysisSchema, +} from "@/types/schemas/keywords"; +import { KeywordResearchService } from "@/server/services/KeywordResearchService"; +import { logServerError } from "@/server/lib/logger"; +import { toClientError } from "@/server/lib/errors"; + +export const researchKeywords = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => researchKeywordsSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await KeywordResearchService.research(context.userId, data); + } catch (error) { + logServerError("keywords.research", error, { userId: context.userId }); + throw toClientError(error); + } + }); + +export const listProjects = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .handler(async ({ context }) => { + try { + return await KeywordResearchService.listProjects(context.userId); + } catch (error) { + logServerError("projects.list", error, { userId: context.userId }); + throw toClientError(error); + } + }); + +export const createProject = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => createProjectSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await KeywordResearchService.createProject(context.userId, data); + } catch (error) { + logServerError("projects.create", error, { userId: context.userId }); + throw toClientError(error); + } + }); + +export const deleteProject = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => deleteProjectSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await KeywordResearchService.deleteProject(context.userId, data); + } catch (error) { + logServerError("projects.delete", error, { + userId: context.userId, + projectId: data.projectId, + }); + throw toClientError(error); + } + }); +export const saveKeywords = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => saveKeywordsSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await KeywordResearchService.saveKeywords(context.userId, data); + } catch (error) { + logServerError("keywords.save", error, { + userId: context.userId, + projectId: data.projectId, + }); + throw toClientError(error); + } + }); + +export const getSavedKeywords = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => getSavedKeywordsSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await KeywordResearchService.getSavedKeywords( + context.userId, + data, + ); + } catch (error) { + logServerError("keywords.saved.list", error, { + userId: context.userId, + projectId: data.projectId, + }); + throw toClientError(error); + } + }); + +export const removeSavedKeyword = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => removeSavedKeywordSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await KeywordResearchService.removeSavedKeyword( + context.userId, + data, + ); + } catch (error) { + logServerError("keywords.saved.remove", error, { + userId: context.userId, + savedKeywordId: data.savedKeywordId, + }); + throw toClientError(error); + } + }); + +export const getOrCreateDefaultProject = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .handler(async ({ context }) => { + try { + return await KeywordResearchService.getOrCreateDefaultProject( + context.userId, + ); + } catch (error) { + logServerError("projects.get-or-create-default", error, { + userId: context.userId, + }); + throw toClientError(error); + } + }); + +export const getSerpAnalysis = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => serpAnalysisSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await KeywordResearchService.getSerpAnalysis(data); + } catch (error) { + logServerError("keywords.serp-analysis", error, { + userId: context.userId, + keyword: data.keyword, + }); + throw toClientError(error); + } + }); + +const getProjectSchema = z.object({ + projectId: z.string().min(1), +}); + +export const getProject = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => getProjectSchema.parse(data)) + .handler(async ({ data, context }) => { + try { + return await KeywordResearchService.getProject( + context.userId, + data.projectId, + ); + } catch (error) { + logServerError("projects.get", error, { + userId: context.userId, + projectId: data.projectId, + }); + throw toClientError(error); + } + }); diff --git a/src/serverFunctions/psi.ts b/src/serverFunctions/psi.ts new file mode 100644 index 0000000..9b79fe1 --- /dev/null +++ b/src/serverFunctions/psi.ts @@ -0,0 +1,405 @@ +import { createServerFn } from "@tanstack/react-start"; +import { ensureUserMiddleware } from "@/middleware/ensureUser"; +import { useSessionTokenClientMiddleware } from "@every-app/sdk/tanstack"; +import { + psiAuditSchema, + psiAuditListSchema, + psiAuditDetailsSchema, + psiIssueFilterSchema, + psiExportSchema, + psiUnifiedIssueSchema, + psiUnifiedExportSchema, + psiProjectKeySchema, + psiProjectSchema, +} from "@/types/schemas/psi"; +import { PsiService } from "@/server/services/PsiService"; +import { KeywordResearchRepository } from "@/server/repositories/KeywordResearchRepository"; +import { PsiAuditRepository } from "@/server/repositories/PsiAuditRepository"; +import { AuditRepository } from "@/server/repositories/AuditRepository"; +import { getJsonFromR2, putJsonToR2 } from "@/server/lib/r2"; +import { PsiIssuesService } from "@/server/services/PsiIssuesService"; + +async function resolvePsiSource(input: { + projectId: string; + userId: string; + source: "single" | "site"; + resultId: string; +}) { + if (input.source === "single") { + const row = await PsiAuditRepository.getAuditResult({ + auditId: input.resultId, + projectId: input.projectId, + userId: input.userId, + }); + + if (!row) { + throw new Error("Audit not found"); + } + + return { + id: row.id, + strategy: row.strategy, + finalUrl: row.finalUrl, + createdAt: row.createdAt, + r2Key: row.r2Key, + }; + } + + const site = await AuditRepository.getPsiResultById({ + psiResultId: input.resultId, + projectId: input.projectId, + userId: input.userId, + }); + + if (!site) { + throw new Error("Audit not found"); + } + + return { + id: site.psi.id, + strategy: site.psi.strategy, + finalUrl: site.page?.url ?? "", + createdAt: site.audit.startedAt, + r2Key: site.psi.r2Key, + }; +} + +export const runPsiAudit = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiAuditSchema.parse(data)) + .handler(async ({ data, context }) => { + const apiKey = await KeywordResearchRepository.getProjectPsiApiKey( + data.projectId, + context.userId, + ); + + if (!apiKey) { + throw new Error( + "PSI API key is not set for this project. Save a key first.", + ); + } + + const auditId = crypto.randomUUID(); + try { + const result = await PsiService.runAudit({ + url: data.url, + strategy: data.strategy, + apiKey, + }); + + const now = new Date(); + const datePrefix = now.toISOString().slice(0, 10); + const key = `psi/${data.projectId}/${datePrefix}/${auditId}.json`; + const uploaded = await putJsonToR2(key, result.rawPayload); + + await PsiAuditRepository.createAuditResult({ + id: auditId, + projectId: data.projectId, + requestedUrl: result.requestedUrl, + finalUrl: result.finalUrl, + strategy: result.strategy, + status: "completed", + performanceScore: result.scores.performance, + accessibilityScore: result.scores.accessibility, + bestPracticesScore: result.scores["best-practices"], + seoScore: result.scores.seo, + firstContentfulPaint: result.metrics.firstContentfulPaint.displayValue, + largestContentfulPaint: + result.metrics.largestContentfulPaint.displayValue, + totalBlockingTime: result.metrics.totalBlockingTime.displayValue, + cumulativeLayoutShift: + result.metrics.cumulativeLayoutShift.displayValue, + speedIndex: result.metrics.speedIndex.displayValue, + timeToInteractive: result.metrics.timeToInteractive.displayValue, + lighthouseVersion: result.lighthouseVersion, + r2Key: uploaded.key, + payloadSizeBytes: uploaded.sizeBytes, + }); + + return { + auditId, + requestedUrl: result.requestedUrl, + finalUrl: result.finalUrl, + strategy: result.strategy, + fetchedAt: result.fetchedAt, + lighthouseVersion: result.lighthouseVersion, + scores: result.scores, + metrics: result.metrics, + }; + } catch (error) { + const requestedUrl = data.url.trim(); + const message = + error instanceof Error ? error.message : "PSI request failed"; + + await PsiAuditRepository.createAuditResult({ + id: auditId, + projectId: data.projectId, + requestedUrl, + finalUrl: requestedUrl, + strategy: data.strategy, + status: "failed", + errorMessage: message, + }); + + throw error; + } + }); + +export const getProjectPsiApiKey = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiProjectSchema.parse(data)) + .handler(async ({ data, context }) => { + // This PSI key is intentionally treated as low-sensitivity operational config + // (Google abuse-control), not a direct billing secret. + const apiKey = await KeywordResearchRepository.getProjectPsiApiKey( + data.projectId, + context.userId, + ); + return { apiKey }; + }); + +export const saveProjectPsiApiKey = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiProjectKeySchema.parse(data)) + .handler(async ({ data, context }) => { + // Same tradeoff: persisted for convenience across PSI + Site Audit flows. + await KeywordResearchRepository.setProjectPsiApiKey( + data.projectId, + context.userId, + data.apiKey.trim(), + ); + return { success: true }; + }); + +export const clearProjectPsiApiKey = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiProjectSchema.parse(data)) + .handler(async ({ data, context }) => { + await KeywordResearchRepository.clearProjectPsiApiKey( + data.projectId, + context.userId, + ); + return { success: true }; + }); + +export const listProjectPsiAudits = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiAuditListSchema.parse(data)) + .handler(async ({ data, context }) => { + const rows = await PsiAuditRepository.listAuditResults({ + projectId: data.projectId, + userId: context.userId, + strategy: data.strategy, + limit: data.limit, + }); + + return { + rows: rows.map((row) => ({ + id: row.id, + requestedUrl: row.requestedUrl, + finalUrl: row.finalUrl, + strategy: row.strategy, + status: row.status, + performanceScore: row.performanceScore, + accessibilityScore: row.accessibilityScore, + bestPracticesScore: row.bestPracticesScore, + seoScore: row.seoScore, + firstContentfulPaint: row.firstContentfulPaint, + largestContentfulPaint: row.largestContentfulPaint, + totalBlockingTime: row.totalBlockingTime, + cumulativeLayoutShift: row.cumulativeLayoutShift, + speedIndex: row.speedIndex, + timeToInteractive: row.timeToInteractive, + lighthouseVersion: row.lighthouseVersion, + errorMessage: row.errorMessage, + payloadSizeBytes: row.payloadSizeBytes, + createdAt: row.createdAt, + })), + }; + }); + +export const getProjectPsiAuditRaw = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiAuditDetailsSchema.parse(data)) + .handler(async ({ data, context }) => { + const row = await PsiAuditRepository.getAuditResult({ + auditId: data.auditId, + projectId: data.projectId, + userId: context.userId, + }); + + if (!row) { + throw new Error("Audit not found"); + } + + if (!row.r2Key) { + throw new Error("Audit payload not available"); + } + + const payloadJson = await getJsonFromR2(row.r2Key); + return { + id: row.id, + strategy: row.strategy, + finalUrl: row.finalUrl, + createdAt: row.createdAt, + payloadJson, + }; + }); + +export const getProjectPsiAuditIssues = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiIssueFilterSchema.parse(data)) + .handler(async ({ data, context }) => { + const row = await PsiAuditRepository.getAuditResult({ + auditId: data.auditId, + projectId: data.projectId, + userId: context.userId, + }); + + if (!row) { + throw new Error("Audit not found"); + } + + if (!row.r2Key) { + throw new Error("Audit payload not available"); + } + + const payloadJson = await getJsonFromR2(row.r2Key); + const issues = PsiIssuesService.parseIssues(payloadJson, data.category); + + return { + id: row.id, + finalUrl: row.finalUrl, + strategy: row.strategy, + createdAt: row.createdAt, + issues, + }; + }); + +export const exportProjectPsiAudit = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiExportSchema.parse(data)) + .handler(async ({ data, context }) => { + const row = await PsiAuditRepository.getAuditResult({ + auditId: data.auditId, + projectId: data.projectId, + userId: context.userId, + }); + + if (!row) { + throw new Error("Audit not found"); + } + + if (!row.r2Key) { + throw new Error("Audit payload not available"); + } + + const payloadJson = await getJsonFromR2(row.r2Key); + const safeDate = row.createdAt.replace(/[:.]/g, "-"); + const baseName = `psi-${row.strategy}-${safeDate}`; + + if (data.mode === "full") { + return { + filename: `${baseName}-full.json`, + content: payloadJson, + }; + } + + const category = data.mode === "category" ? data.category : undefined; + const issues = PsiIssuesService.parseIssues(payloadJson, category); + + return { + filename: + data.mode === "category" && category + ? `${baseName}-${category}-issues.json` + : `${baseName}-issues.json`, + content: JSON.stringify( + { + auditId: row.id, + finalUrl: row.finalUrl, + strategy: row.strategy, + createdAt: row.createdAt, + category: category ?? "all", + issues, + }, + null, + 2, + ), + }; + }); + +export const getPsiIssuesBySource = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiUnifiedIssueSchema.parse(data)) + .handler(async ({ data, context }) => { + const target = await resolvePsiSource({ + projectId: data.projectId, + userId: context.userId, + source: data.source, + resultId: data.resultId, + }); + + if (!target.r2Key) { + throw new Error("Audit payload not available"); + } + + const payloadJson = await getJsonFromR2(target.r2Key); + const issues = PsiIssuesService.parseIssues(payloadJson, data.category); + + return { + id: target.id, + finalUrl: target.finalUrl, + strategy: target.strategy, + createdAt: target.createdAt, + issues, + }; + }); + +export const exportPsiBySource = createServerFn({ method: "POST" }) + .middleware([useSessionTokenClientMiddleware, ensureUserMiddleware]) + .inputValidator((data: unknown) => psiUnifiedExportSchema.parse(data)) + .handler(async ({ data, context }) => { + const target = await resolvePsiSource({ + projectId: data.projectId, + userId: context.userId, + source: data.source, + resultId: data.resultId, + }); + + if (!target.r2Key) { + throw new Error("Audit payload not available"); + } + + const payloadJson = await getJsonFromR2(target.r2Key); + const safeDate = target.createdAt.replace(/[:.]/g, "-"); + const baseName = `psi-${target.strategy}-${safeDate}`; + + if (data.mode === "full") { + return { + filename: `${baseName}-full.json`, + content: payloadJson, + }; + } + + const category = data.mode === "category" ? data.category : undefined; + const issues = PsiIssuesService.parseIssues(payloadJson, category); + + return { + filename: + data.mode === "category" && category + ? `${baseName}-${category}-issues.json` + : `${baseName}-issues.json`, + content: JSON.stringify( + { + resultId: target.id, + finalUrl: target.finalUrl, + strategy: target.strategy, + createdAt: target.createdAt, + category: category ?? "all", + issues, + }, + null, + 2, + ), + }; + }); diff --git a/src/shared/error-codes.ts b/src/shared/error-codes.ts new file mode 100644 index 0000000..fca310d --- /dev/null +++ b/src/shared/error-codes.ts @@ -0,0 +1,16 @@ +export const ERROR_CODES = [ + "UNAUTHENTICATED", + "FORBIDDEN", + "NOT_FOUND", + "VALIDATION_ERROR", + "CRAWL_TARGET_BLOCKED", + "RATE_LIMITED", + "CONFLICT", + "INTERNAL_ERROR", +] as const; + +export type ErrorCode = (typeof ERROR_CODES)[number]; + +export function isErrorCode(value: string): value is ErrorCode { + return (ERROR_CODES as readonly string[]).includes(value); +} diff --git a/src/types/keywords.ts b/src/types/keywords.ts new file mode 100644 index 0000000..b6b4fb7 --- /dev/null +++ b/src/types/keywords.ts @@ -0,0 +1,52 @@ +export type KeywordIntent = + | "informational" + | "commercial" + | "transactional" + | "navigational" + | "unknown"; + +export type MonthlySearch = { + year: number; + month: number; + searchVolume: number; +}; + +export type KeywordResearchRow = { + keyword: string; + searchVolume: number | null; + trend: MonthlySearch[]; + keywordDifficulty: number | null; + cpc: number | null; + competition: number | null; + intent: KeywordIntent; +}; + +export type SavedKeywordRow = { + id: string; + projectId: string; + keyword: string; + locationCode: number; + languageCode: string; + createdAt: string; + searchVolume: number | null; + cpc: number | null; + competition: number | null; + keywordDifficulty: number | null; + intent: string | null; + monthlySearches: MonthlySearch[]; + fetchedAt: string | null; +}; + +export type SerpResultItem = { + rank: number; + title: string; + url: string; + domain: string; + description: string; + etv: number | null; + estimatedPaidTrafficCost: number | null; + referringDomains: number | null; + backlinks: number | null; + isNew: boolean; + rankChange: number | null; +}; diff --git a/src/types/schemas/audit.ts b/src/types/schemas/audit.ts new file mode 100644 index 0000000..de76317 --- /dev/null +++ b/src/types/schemas/audit.ts @@ -0,0 +1,57 @@ +import { z } from "zod"; + +// ─── Server function input schemas ────────────────────────────────────────── + +export const startAuditSchema = z.object({ + projectId: z.string().min(1), + startUrl: z.string().min(1, "URL is required").max(2048), + maxPages: z.number().int().min(10).max(10_000).optional().default(50), + psiStrategy: z + .enum(["auto", "all", "manual", "none"]) + .optional() + .default("auto"), + psiApiKey: z.string().optional(), +}); + +export type StartAuditInput = z.infer; + +export const getAuditStatusSchema = z.object({ + auditId: z.string().min(1), +}); + +export type GetAuditStatusInput = z.infer; + +export const getAuditResultsSchema = z.object({ + auditId: z.string().min(1), +}); + +export type GetAuditResultsInput = z.infer; + +export const getAuditHistorySchema = z.object({ + projectId: z.string().min(1), +}); + +export type GetAuditHistoryInput = z.infer; + +export const deleteAuditSchema = z.object({ + auditId: z.string().min(1), +}); + +export type DeleteAuditInput = z.infer; + +export const getCrawlProgressSchema = z.object({ + auditId: z.string().min(1), +}); + +export type GetCrawlProgressInput = z.infer; + +// ─── URL search params schema for /p/$projectId/audit ──────────────────────── + +const auditTabs = ["pages", "performance"] as const; + +export const auditSearchSchema = z.object({ + auditId: z.string().optional().catch(undefined), + tab: z.enum(auditTabs).catch("pages").default("pages"), +}); + +export type AuditSearchParams = z.infer; diff --git a/src/types/schemas/domain.ts b/src/types/schemas/domain.ts new file mode 100644 index 0000000..dfa0021 --- /dev/null +++ b/src/types/schemas/domain.ts @@ -0,0 +1,25 @@ +import { z } from "zod"; + +export const domainOverviewSchema = z.object({ + domain: z.string().min(1, "Domain is required").max(255), + includeSubdomains: z.boolean().default(true), + locationCode: z.number().int().positive().default(2840), + languageCode: z.string().min(2).max(8).default("en"), +}); + +/* ------------------------------------------------------------------ */ +/* URL search params schema for /p/$projectId/domain */ +/* ------------------------------------------------------------------ */ + +const domainSortModes = ["rank", "traffic", "volume"] as const; +const domainSortOrders = ["asc", "desc"] as const; +const domainTabs = ["keywords", "pages"] as const; + +export const domainSearchSchema = z.object({ + domain: z.string().optional(), + subdomains: z.coerce.boolean().optional(), + sort: z.enum(domainSortModes).optional(), + order: z.enum(domainSortOrders).optional(), + tab: z.enum(domainTabs).optional(), + search: z.string().optional(), +}); diff --git a/src/types/schemas/keywords.ts b/src/types/schemas/keywords.ts new file mode 100644 index 0000000..c872467 --- /dev/null +++ b/src/types/schemas/keywords.ts @@ -0,0 +1,115 @@ +import { z } from "zod"; + +export const researchKeywordsSchema = z.object({ + keywords: z.array(z.string().min(1)).min(1).max(200), + locationCode: z.number().int().positive().default(2840), + languageCode: z.string().min(2).max(8).default("en"), + resultLimit: z + .union([z.literal(150), z.literal(300), z.literal(500)]) + .default(150), + mode: z.literal("related").optional().default("related"), +}); + +export const createProjectSchema = z.object({ + name: z.string().min(1, "Project name is required").max(120), + domain: z.string().max(255).optional(), +}); + +export const deleteProjectSchema = z.object({ + projectId: z.string().min(1), +}); + +export const saveKeywordsSchema = z.object({ + projectId: z.string().min(1), + keywords: z.array(z.string().min(1)).min(1).max(200), + locationCode: z.number().int().positive().default(2840), + languageCode: z.string().min(2).max(8).default("en"), + metrics: z + .array( + z.object({ + keyword: z.string().min(1), + searchVolume: z.number().int().nonnegative().nullable().optional(), + cpc: z.number().nonnegative().nullable().optional(), + competition: z.number().min(0).max(1).nullable().optional(), + keywordDifficulty: z + .number() + .int() + .min(0) + .max(100) + .nullable() + .optional(), + intent: z + .enum([ + "informational", + "commercial", + "transactional", + "navigational", + "unknown", + ]) + .nullable() + .optional(), + monthlySearches: z + .array( + z.object({ + year: z.number().int().positive(), + month: z.number().int().min(1).max(12), + searchVolume: z.number().int().nonnegative(), + }), + ) + .optional(), + }), + ) + .max(200) + .optional(), +}); + +export const removeSavedKeywordSchema = z.object({ + savedKeywordId: z.string().min(1), +}); + +export const getSavedKeywordsSchema = z.object({ + projectId: z.string().min(1), +}); + +export type ResearchKeywordsInput = z.infer; +export type CreateProjectInput = z.infer; +export type DeleteProjectInput = z.infer; +export type SaveKeywordsInput = z.infer; +export type RemoveSavedKeywordInput = z.infer; +export const serpAnalysisSchema = z.object({ + keyword: z.string().min(1), + locationCode: z.number().int().positive().default(2840), + languageCode: z.string().min(2).max(8).default("en"), +}); + +export type GetSavedKeywordsInput = z.infer; + +/* ------------------------------------------------------------------ */ +/* URL search params schema for /p/$projectId/keywords */ +/* ------------------------------------------------------------------ */ + +const keywordSortFields = [ + "keyword", + "searchVolume", + "cpc", + "competition", + "keywordDifficulty", +] as const; + +const sortDirs = ["asc", "desc"] as const; + +export const keywordsSearchSchema = z.object({ + q: z.string().optional(), + loc: z.coerce.number().int().positive().optional(), + kLimit: z.union([z.literal(150), z.literal(300), z.literal(500)]).optional(), + sort: z.enum(keywordSortFields).optional(), + order: z.enum(sortDirs).optional(), + minVol: z.string().optional(), + maxVol: z.string().optional(), + minCpc: z.string().optional(), + maxCpc: z.string().optional(), + minKd: z.string().optional(), + maxKd: z.string().optional(), + include: z.string().optional(), + exclude: z.string().optional(), +}); diff --git a/src/types/schemas/psi.ts b/src/types/schemas/psi.ts new file mode 100644 index 0000000..1e9d277 --- /dev/null +++ b/src/types/schemas/psi.ts @@ -0,0 +1,81 @@ +import { z } from "zod"; + +const psiStrategies = ["mobile", "desktop"] as const; +const psiCategories = [ + "performance", + "accessibility", + "best-practices", + "seo", +] as const; +const psiSources = ["single", "site"] as const; + +export const psiAuditSchema = z.object({ + projectId: z.string().min(1, "Project is required"), + url: z.string().min(1, "URL is required").max(2048), + strategy: z.enum(psiStrategies).default("mobile"), +}); + +export type PsiAuditInput = z.infer; + +export const psiSearchSchema = z.object({ + url: z.string().catch("").default(""), + strategy: z.enum(psiStrategies).catch("mobile").default("mobile"), +}); + +export type PsiSearchParams = z.infer; + +export const psiProjectKeySchema = z.object({ + projectId: z.string().min(1, "Project is required"), + apiKey: z.string().min(1, "API key is required").max(512), +}); + +export const psiProjectSchema = z.object({ + projectId: z.string().min(1, "Project is required"), +}); + +export const psiAuditListSchema = z.object({ + projectId: z.string().min(1, "Project is required"), + strategy: z.enum(psiStrategies).optional(), + limit: z.number().int().min(1).max(200).default(50), +}); + +export const psiAuditDetailsSchema = z.object({ + projectId: z.string().min(1, "Project is required"), + auditId: z.string().min(1, "Audit is required"), +}); + +export const psiIssueFilterSchema = z.object({ + projectId: z.string().min(1, "Project is required"), + auditId: z.string().min(1, "Audit is required"), + category: z.enum(psiCategories).optional(), +}); + +export const psiExportSchema = z.object({ + projectId: z.string().min(1, "Project is required"), + auditId: z.string().min(1, "Audit is required"), + mode: z.enum(["full", "issues", "category"]), + category: z.enum(psiCategories).optional(), +}); + +export const psiUnifiedIssueSchema = z.object({ + projectId: z.string().min(1, "Project is required"), + source: z.enum(psiSources), + resultId: z.string().min(1, "Result id is required"), + category: z.enum(psiCategories).optional(), +}); + +export const psiUnifiedExportSchema = z.object({ + projectId: z.string().min(1, "Project is required"), + source: z.enum(psiSources), + resultId: z.string().min(1, "Result id is required"), + mode: z.enum(["full", "issues", "category"]), + category: z.enum(psiCategories).optional(), +}); + +export const psiIssuesSearchSchema = z.object({ + source: z.enum(psiSources).catch("single").default("single"), + category: z + .enum(["all", ...psiCategories]) + .catch("all") + .default("all"), +}); diff --git a/src/types/vite-env.d.ts b/src/types/vite-env.d.ts new file mode 100644 index 0000000..195f596 --- /dev/null +++ b/src/types/vite-env.d.ts @@ -0,0 +1,16 @@ +/// +interface ViteTypeOptions { + // By adding this line, you can make the type of ImportMetaEnv strict + // to disallow unknown keys. + strictImportMetaEnv: unknown; +} + +interface ImportMetaEnv { + readonly VITE_GATEWAY_URL: string; + readonly VITE_APP_ID: string; + // more env variables... +} + +interface ImportMeta { + readonly env: ImportMetaEnv; +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..9c1e9f9 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,22 @@ +{ + "include": ["**/*.ts", "**/*.tsx"], + "compilerOptions": { + "strict": true, + "esModuleInterop": true, + "jsx": "react-jsx", + "module": "ESNext", + "moduleResolution": "Bundler", + "lib": ["DOM", "DOM.Iterable", "ES2023"], + "isolatedModules": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "target": "ES2022", + "allowJs": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + }, + "noEmit": true + } +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..0dde558 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,32 @@ +import { tanstackStart } from "@tanstack/react-start/plugin/vite"; +import { defineConfig, loadEnv } from "vite"; +import tsConfigPaths from "vite-tsconfig-paths"; +import viteReact from "@vitejs/plugin-react"; +import tailwindcss from "@tailwindcss/vite"; +import { cloudflare } from "@cloudflare/vite-plugin"; +import { devtools } from "@tanstack/devtools-vite"; + +export default defineConfig(({ mode }) => { + const env = loadEnv(mode, process.cwd(), ""); + const port = env.PORT ? Number(env.PORT) : 3001; + + return { + envPrefix: ["VITE_", "BYPASS_GATEWAY_LOCAL_ONLY"], + server: { + port, + }, + plugins: [ + devtools({ + consolePiping: { + enabled: true, + levels: ["log", "warn", "error", "info", "debug"], + }, + }), + cloudflare({ viteEnvironment: { name: "ssr" } }), + tsConfigPaths(), + tanstackStart(), + viteReact(), + tailwindcss(), + ], + }; +}); diff --git a/worker-configuration.d.ts b/worker-configuration.d.ts new file mode 100644 index 0000000..6064aa9 --- /dev/null +++ b/worker-configuration.d.ts @@ -0,0 +1,10932 @@ +/* eslint-disable */ +// Generated by Wrangler by running `wrangler types` (hash: aac0d6d9ff3ca42b08edafb09451cfdf) +// Runtime types generated with workerd@1.20260219.0 2025-09-02 nodejs_compat +declare namespace Cloudflare { + interface GlobalProps { + mainModule: typeof import("./src/server"); + } + interface Env { + KV: KVNamespace; + R2: R2Bucket; + DB: D1Database; + VITE_APP_ID: string; + VITE_GATEWAY_URL: string; + GATEWAY_URL: string; + GATEWAY_APP_API_TOKEN: string; + EVERY_APP_GATEWAY: Fetcher /* every-app-gateway */; + SITE_AUDIT_WORKFLOW: Workflow[0]['payload']>; + } +} +interface Env extends Cloudflare.Env {} +type StringifyValues> = { + [Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string; +}; +declare namespace NodeJS { + interface ProcessEnv extends StringifyValues> {} +} + +// Begin runtime types +/*! ***************************************************************************** +Copyright (c) Cloudflare. All rights reserved. +Copyright (c) Microsoft Corporation. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +/* eslint-disable */ +// noinspection JSUnusedGlobalSymbols +declare var onmessage: never; +/** + * The **`DOMException`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) + */ +declare class DOMException extends Error { + constructor(message?: string, name?: string); + /** + * The **`message`** read-only property of the a message or description associated with the given error name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) + */ + readonly message: string; + /** + * The **`name`** read-only property of the one of the strings associated with an error name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) + */ + readonly name: string; + /** + * The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or `0` if none match. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) + */ + readonly code: number; + static readonly INDEX_SIZE_ERR: number; + static readonly DOMSTRING_SIZE_ERR: number; + static readonly HIERARCHY_REQUEST_ERR: number; + static readonly WRONG_DOCUMENT_ERR: number; + static readonly INVALID_CHARACTER_ERR: number; + static readonly NO_DATA_ALLOWED_ERR: number; + static readonly NO_MODIFICATION_ALLOWED_ERR: number; + static readonly NOT_FOUND_ERR: number; + static readonly NOT_SUPPORTED_ERR: number; + static readonly INUSE_ATTRIBUTE_ERR: number; + static readonly INVALID_STATE_ERR: number; + static readonly SYNTAX_ERR: number; + static readonly INVALID_MODIFICATION_ERR: number; + static readonly NAMESPACE_ERR: number; + static readonly INVALID_ACCESS_ERR: number; + static readonly VALIDATION_ERR: number; + static readonly TYPE_MISMATCH_ERR: number; + static readonly SECURITY_ERR: number; + static readonly NETWORK_ERR: number; + static readonly ABORT_ERR: number; + static readonly URL_MISMATCH_ERR: number; + static readonly QUOTA_EXCEEDED_ERR: number; + static readonly TIMEOUT_ERR: number; + static readonly INVALID_NODE_TYPE_ERR: number; + static readonly DATA_CLONE_ERR: number; + get stack(): any; + set stack(value: any); +} +type WorkerGlobalScopeEventMap = { + fetch: FetchEvent; + scheduled: ScheduledEvent; + queue: QueueEvent; + unhandledrejection: PromiseRejectionEvent; + rejectionhandled: PromiseRejectionEvent; +}; +declare abstract class WorkerGlobalScope extends EventTarget { + EventTarget: typeof EventTarget; +} +/* The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). * + * The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) + */ +interface Console { + "assert"(condition?: boolean, ...data: any[]): void; + /** + * The **`console.clear()`** static method clears the console if possible. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) + */ + clear(): void; + /** + * The **`console.count()`** static method logs the number of times that this particular call to `count()` has been called. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) + */ + count(label?: string): void; + /** + * The **`console.countReset()`** static method resets counter used with console/count_static. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) + */ + countReset(label?: string): void; + /** + * The **`console.debug()`** static method outputs a message to the console at the 'debug' log level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) + */ + debug(...data: any[]): void; + /** + * The **`console.dir()`** static method displays a list of the properties of the specified JavaScript object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) + */ + dir(item?: any, options?: any): void; + /** + * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) + */ + dirxml(...data: any[]): void; + /** + * The **`console.error()`** static method outputs a message to the console at the 'error' log level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) + */ + error(...data: any[]): void; + /** + * The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) + */ + group(...data: any[]): void; + /** + * The **`console.groupCollapsed()`** static method creates a new inline group in the console. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) + */ + groupCollapsed(...data: any[]): void; + /** + * The **`console.groupEnd()`** static method exits the current inline group in the console. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) + */ + groupEnd(): void; + /** + * The **`console.info()`** static method outputs a message to the console at the 'info' log level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) + */ + info(...data: any[]): void; + /** + * The **`console.log()`** static method outputs a message to the console. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) + */ + log(...data: any[]): void; + /** + * The **`console.table()`** static method displays tabular data as a table. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) + */ + table(tabularData?: any, properties?: string[]): void; + /** + * The **`console.time()`** static method starts a timer you can use to track how long an operation takes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) + */ + time(label?: string): void; + /** + * The **`console.timeEnd()`** static method stops a timer that was previously started by calling console/time_static. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) + */ + timeEnd(label?: string): void; + /** + * The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console/time_static. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) + */ + timeLog(label?: string, ...data: any[]): void; + timeStamp(label?: string): void; + /** + * The **`console.trace()`** static method outputs a stack trace to the console. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) + */ + trace(...data: any[]): void; + /** + * The **`console.warn()`** static method outputs a warning message to the console at the 'warning' log level. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) + */ + warn(...data: any[]): void; +} +declare const console: Console; +type BufferSource = ArrayBufferView | ArrayBuffer; +type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array; +declare namespace WebAssembly { + class CompileError extends Error { + constructor(message?: string); + } + class RuntimeError extends Error { + constructor(message?: string); + } + type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128"; + interface GlobalDescriptor { + value: ValueType; + mutable?: boolean; + } + class Global { + constructor(descriptor: GlobalDescriptor, value?: any); + value: any; + valueOf(): any; + } + type ImportValue = ExportValue | number; + type ModuleImports = Record; + type Imports = Record; + type ExportValue = Function | Global | Memory | Table; + type Exports = Record; + class Instance { + constructor(module: Module, imports?: Imports); + readonly exports: Exports; + } + interface MemoryDescriptor { + initial: number; + maximum?: number; + shared?: boolean; + } + class Memory { + constructor(descriptor: MemoryDescriptor); + readonly buffer: ArrayBuffer; + grow(delta: number): number; + } + type ImportExportKind = "function" | "global" | "memory" | "table"; + interface ModuleExportDescriptor { + kind: ImportExportKind; + name: string; + } + interface ModuleImportDescriptor { + kind: ImportExportKind; + module: string; + name: string; + } + abstract class Module { + static customSections(module: Module, sectionName: string): ArrayBuffer[]; + static exports(module: Module): ModuleExportDescriptor[]; + static imports(module: Module): ModuleImportDescriptor[]; + } + type TableKind = "anyfunc" | "externref"; + interface TableDescriptor { + element: TableKind; + initial: number; + maximum?: number; + } + class Table { + constructor(descriptor: TableDescriptor, value?: any); + readonly length: number; + get(index: number): any; + grow(delta: number, value?: any): number; + set(index: number, value?: any): void; + } + function instantiate(module: Module, imports?: Imports): Promise; + function validate(bytes: BufferSource): boolean; +} +/** + * The **`ServiceWorkerGlobalScope`** interface of the Service Worker API represents the global execution context of a service worker. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope) + */ +interface ServiceWorkerGlobalScope extends WorkerGlobalScope { + DOMException: typeof DOMException; + WorkerGlobalScope: typeof WorkerGlobalScope; + btoa(data: string): string; + atob(data: string): string; + setTimeout(callback: (...args: any[]) => void, msDelay?: number): number; + setTimeout(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; + clearTimeout(timeoutId: number | null): void; + setInterval(callback: (...args: any[]) => void, msDelay?: number): number; + setInterval(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; + clearInterval(timeoutId: number | null): void; + queueMicrotask(task: Function): void; + structuredClone(value: T, options?: StructuredSerializeOptions): T; + reportError(error: any): void; + fetch(input: RequestInfo | URL, init?: RequestInit): Promise; + self: ServiceWorkerGlobalScope; + crypto: Crypto; + caches: CacheStorage; + scheduler: Scheduler; + performance: Performance; + Cloudflare: Cloudflare; + readonly origin: string; + Event: typeof Event; + ExtendableEvent: typeof ExtendableEvent; + CustomEvent: typeof CustomEvent; + PromiseRejectionEvent: typeof PromiseRejectionEvent; + FetchEvent: typeof FetchEvent; + TailEvent: typeof TailEvent; + TraceEvent: typeof TailEvent; + ScheduledEvent: typeof ScheduledEvent; + MessageEvent: typeof MessageEvent; + CloseEvent: typeof CloseEvent; + ReadableStreamDefaultReader: typeof ReadableStreamDefaultReader; + ReadableStreamBYOBReader: typeof ReadableStreamBYOBReader; + ReadableStream: typeof ReadableStream; + WritableStream: typeof WritableStream; + WritableStreamDefaultWriter: typeof WritableStreamDefaultWriter; + TransformStream: typeof TransformStream; + ByteLengthQueuingStrategy: typeof ByteLengthQueuingStrategy; + CountQueuingStrategy: typeof CountQueuingStrategy; + ErrorEvent: typeof ErrorEvent; + MessageChannel: typeof MessageChannel; + MessagePort: typeof MessagePort; + EventSource: typeof EventSource; + ReadableStreamBYOBRequest: typeof ReadableStreamBYOBRequest; + ReadableStreamDefaultController: typeof ReadableStreamDefaultController; + ReadableByteStreamController: typeof ReadableByteStreamController; + WritableStreamDefaultController: typeof WritableStreamDefaultController; + TransformStreamDefaultController: typeof TransformStreamDefaultController; + CompressionStream: typeof CompressionStream; + DecompressionStream: typeof DecompressionStream; + TextEncoderStream: typeof TextEncoderStream; + TextDecoderStream: typeof TextDecoderStream; + Headers: typeof Headers; + Body: typeof Body; + Request: typeof Request; + Response: typeof Response; + WebSocket: typeof WebSocket; + WebSocketPair: typeof WebSocketPair; + WebSocketRequestResponsePair: typeof WebSocketRequestResponsePair; + AbortController: typeof AbortController; + AbortSignal: typeof AbortSignal; + TextDecoder: typeof TextDecoder; + TextEncoder: typeof TextEncoder; + navigator: Navigator; + Navigator: typeof Navigator; + URL: typeof URL; + URLSearchParams: typeof URLSearchParams; + URLPattern: typeof URLPattern; + Blob: typeof Blob; + File: typeof File; + FormData: typeof FormData; + Crypto: typeof Crypto; + SubtleCrypto: typeof SubtleCrypto; + CryptoKey: typeof CryptoKey; + CacheStorage: typeof CacheStorage; + Cache: typeof Cache; + FixedLengthStream: typeof FixedLengthStream; + IdentityTransformStream: typeof IdentityTransformStream; + HTMLRewriter: typeof HTMLRewriter; +} +declare function addEventListener(type: Type, handler: EventListenerOrEventListenerObject, options?: EventTargetAddEventListenerOptions | boolean): void; +declare function removeEventListener(type: Type, handler: EventListenerOrEventListenerObject, options?: EventTargetEventListenerOptions | boolean): void; +/** + * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) + */ +declare function dispatchEvent(event: WorkerGlobalScopeEventMap[keyof WorkerGlobalScopeEventMap]): boolean; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ +declare function btoa(data: string): string; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */ +declare function atob(data: string): string; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ +declare function setTimeout(callback: (...args: any[]) => void, msDelay?: number): number; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ +declare function setTimeout(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ +declare function clearTimeout(timeoutId: number | null): void; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ +declare function setInterval(callback: (...args: any[]) => void, msDelay?: number): number; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ +declare function setInterval(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ +declare function clearInterval(timeoutId: number | null): void; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ +declare function queueMicrotask(task: Function): void; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ +declare function structuredClone(value: T, options?: StructuredSerializeOptions): T; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ +declare function reportError(error: any): void; +/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ +declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise; +declare const self: ServiceWorkerGlobalScope; +/** +* The Web Crypto API provides a set of low-level functions for common cryptographic tasks. +* The Workers runtime implements the full surface of this API, but with some differences in +* the [supported algorithms](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/#supported-algorithms) +* compared to those implemented in most browsers. +* +* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/) +*/ +declare const crypto: Crypto; +/** +* The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache. +* +* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/) +*/ +declare const caches: CacheStorage; +declare const scheduler: Scheduler; +/** +* The Workers runtime supports a subset of the Performance API, used to measure timing and performance, +* as well as timing of subrequests and other operations. +* +* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/) +*/ +declare const performance: Performance; +declare const Cloudflare: Cloudflare; +declare const origin: string; +declare const navigator: Navigator; +interface TestController { +} +interface ExecutionContext { + waitUntil(promise: Promise): void; + passThroughOnException(): void; + readonly props: Props; +} +type ExportedHandlerFetchHandler = (request: Request>, env: Env, ctx: ExecutionContext) => Response | Promise; +type ExportedHandlerTailHandler = (events: TraceItem[], env: Env, ctx: ExecutionContext) => void | Promise; +type ExportedHandlerTraceHandler = (traces: TraceItem[], env: Env, ctx: ExecutionContext) => void | Promise; +type ExportedHandlerTailStreamHandler = (event: TailStream.TailEvent, env: Env, ctx: ExecutionContext) => TailStream.TailEventHandlerType | Promise; +type ExportedHandlerScheduledHandler = (controller: ScheduledController, env: Env, ctx: ExecutionContext) => void | Promise; +type ExportedHandlerQueueHandler = (batch: MessageBatch, env: Env, ctx: ExecutionContext) => void | Promise; +type ExportedHandlerTestHandler = (controller: TestController, env: Env, ctx: ExecutionContext) => void | Promise; +interface ExportedHandler { + fetch?: ExportedHandlerFetchHandler; + tail?: ExportedHandlerTailHandler; + trace?: ExportedHandlerTraceHandler; + tailStream?: ExportedHandlerTailStreamHandler; + scheduled?: ExportedHandlerScheduledHandler; + test?: ExportedHandlerTestHandler; + email?: EmailExportedHandler; + queue?: ExportedHandlerQueueHandler; +} +interface StructuredSerializeOptions { + transfer?: any[]; +} +declare abstract class Navigator { + sendBeacon(url: string, body?: BodyInit): boolean; + readonly userAgent: string; + readonly hardwareConcurrency: number; + readonly language: string; + readonly languages: string[]; +} +interface AlarmInvocationInfo { + readonly isRetry: boolean; + readonly retryCount: number; +} +interface Cloudflare { + readonly compatibilityFlags: Record; +} +interface DurableObject { + fetch(request: Request): Response | Promise; + alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise; + webSocketMessage?(ws: WebSocket, message: string | ArrayBuffer): void | Promise; + webSocketClose?(ws: WebSocket, code: number, reason: string, wasClean: boolean): void | Promise; + webSocketError?(ws: WebSocket, error: unknown): void | Promise; +} +type DurableObjectStub = Fetcher & { + readonly id: DurableObjectId; + readonly name?: string; +}; +interface DurableObjectId { + toString(): string; + equals(other: DurableObjectId): boolean; + readonly name?: string; +} +declare abstract class DurableObjectNamespace { + newUniqueId(options?: DurableObjectNamespaceNewUniqueIdOptions): DurableObjectId; + idFromName(name: string): DurableObjectId; + idFromString(id: string): DurableObjectId; + get(id: DurableObjectId, options?: DurableObjectNamespaceGetDurableObjectOptions): DurableObjectStub; + getByName(name: string, options?: DurableObjectNamespaceGetDurableObjectOptions): DurableObjectStub; + jurisdiction(jurisdiction: DurableObjectJurisdiction): DurableObjectNamespace; +} +type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high"; +interface DurableObjectNamespaceNewUniqueIdOptions { + jurisdiction?: DurableObjectJurisdiction; +} +type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me"; +type DurableObjectRoutingMode = "primary-only"; +interface DurableObjectNamespaceGetDurableObjectOptions { + locationHint?: DurableObjectLocationHint; + routingMode?: DurableObjectRoutingMode; +} +interface DurableObjectClass<_T extends Rpc.DurableObjectBranded | undefined = undefined> { +} +interface DurableObjectState { + waitUntil(promise: Promise): void; + readonly props: Props; + readonly id: DurableObjectId; + readonly storage: DurableObjectStorage; + container?: Container; + blockConcurrencyWhile(callback: () => Promise): Promise; + acceptWebSocket(ws: WebSocket, tags?: string[]): void; + getWebSockets(tag?: string): WebSocket[]; + setWebSocketAutoResponse(maybeReqResp?: WebSocketRequestResponsePair): void; + getWebSocketAutoResponse(): WebSocketRequestResponsePair | null; + getWebSocketAutoResponseTimestamp(ws: WebSocket): Date | null; + setHibernatableWebSocketEventTimeout(timeoutMs?: number): void; + getHibernatableWebSocketEventTimeout(): number | null; + getTags(ws: WebSocket): string[]; + abort(reason?: string): void; +} +interface DurableObjectTransaction { + get(key: string, options?: DurableObjectGetOptions): Promise; + get(keys: string[], options?: DurableObjectGetOptions): Promise>; + list(options?: DurableObjectListOptions): Promise>; + put(key: string, value: T, options?: DurableObjectPutOptions): Promise; + put(entries: Record, options?: DurableObjectPutOptions): Promise; + delete(key: string, options?: DurableObjectPutOptions): Promise; + delete(keys: string[], options?: DurableObjectPutOptions): Promise; + rollback(): void; + getAlarm(options?: DurableObjectGetAlarmOptions): Promise; + setAlarm(scheduledTime: number | Date, options?: DurableObjectSetAlarmOptions): Promise; + deleteAlarm(options?: DurableObjectSetAlarmOptions): Promise; +} +interface DurableObjectStorage { + get(key: string, options?: DurableObjectGetOptions): Promise; + get(keys: string[], options?: DurableObjectGetOptions): Promise>; + list(options?: DurableObjectListOptions): Promise>; + put(key: string, value: T, options?: DurableObjectPutOptions): Promise; + put(entries: Record, options?: DurableObjectPutOptions): Promise; + delete(key: string, options?: DurableObjectPutOptions): Promise; + delete(keys: string[], options?: DurableObjectPutOptions): Promise; + deleteAll(options?: DurableObjectPutOptions): Promise; + transaction(closure: (txn: DurableObjectTransaction) => Promise): Promise; + getAlarm(options?: DurableObjectGetAlarmOptions): Promise; + setAlarm(scheduledTime: number | Date, options?: DurableObjectSetAlarmOptions): Promise; + deleteAlarm(options?: DurableObjectSetAlarmOptions): Promise; + sync(): Promise; + sql: SqlStorage; + kv: SyncKvStorage; + transactionSync(closure: () => T): T; + getCurrentBookmark(): Promise; + getBookmarkForTime(timestamp: number | Date): Promise; + onNextSessionRestoreBookmark(bookmark: string): Promise; +} +interface DurableObjectListOptions { + start?: string; + startAfter?: string; + end?: string; + prefix?: string; + reverse?: boolean; + limit?: number; + allowConcurrency?: boolean; + noCache?: boolean; +} +interface DurableObjectGetOptions { + allowConcurrency?: boolean; + noCache?: boolean; +} +interface DurableObjectGetAlarmOptions { + allowConcurrency?: boolean; +} +interface DurableObjectPutOptions { + allowConcurrency?: boolean; + allowUnconfirmed?: boolean; + noCache?: boolean; +} +interface DurableObjectSetAlarmOptions { + allowConcurrency?: boolean; + allowUnconfirmed?: boolean; +} +declare class WebSocketRequestResponsePair { + constructor(request: string, response: string); + get request(): string; + get response(): string; +} +interface AnalyticsEngineDataset { + writeDataPoint(event?: AnalyticsEngineDataPoint): void; +} +interface AnalyticsEngineDataPoint { + indexes?: ((ArrayBuffer | string) | null)[]; + doubles?: number[]; + blobs?: ((ArrayBuffer | string) | null)[]; +} +/** + * The **`Event`** interface represents an event which takes place on an `EventTarget`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) + */ +declare class Event { + constructor(type: string, init?: EventInit); + /** + * The **`type`** read-only property of the Event interface returns a string containing the event's type. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) + */ + get type(): string; + /** + * The **`eventPhase`** read-only property of the being evaluated. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) + */ + get eventPhase(): number; + /** + * The read-only **`composed`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) + */ + get composed(): boolean; + /** + * The **`bubbles`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) + */ + get bubbles(): boolean; + /** + * The **`cancelable`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) + */ + get cancelable(): boolean; + /** + * The **`defaultPrevented`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) + */ + get defaultPrevented(): boolean; + /** + * The Event property **`returnValue`** indicates whether the default action for this event has been prevented or not. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) + */ + get returnValue(): boolean; + /** + * The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) + */ + get currentTarget(): EventTarget | undefined; + /** + * The read-only **`target`** property of the dispatched. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) + */ + get target(): EventTarget | undefined; + /** + * The deprecated **`Event.srcElement`** is an alias for the Event.target property. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) + */ + get srcElement(): EventTarget | undefined; + /** + * The **`timeStamp`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) + */ + get timeStamp(): number; + /** + * The **`isTrusted`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via The only exception is the `click` event, which initializes the `isTrusted` property to `false` in user agents. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) + */ + get isTrusted(): boolean; + /** + * The **`cancelBubble`** property of the Event interface is deprecated. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) + */ + get cancelBubble(): boolean; + /** + * The **`cancelBubble`** property of the Event interface is deprecated. + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) + */ + set cancelBubble(value: boolean); + /** + * The **`stopImmediatePropagation()`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) + */ + stopImmediatePropagation(): void; + /** + * The **`preventDefault()`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) + */ + preventDefault(): void; + /** + * The **`stopPropagation()`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) + */ + stopPropagation(): void; + /** + * The **`composedPath()`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) + */ + composedPath(): EventTarget[]; + static readonly NONE: number; + static readonly CAPTURING_PHASE: number; + static readonly AT_TARGET: number; + static readonly BUBBLING_PHASE: number; +} +interface EventInit { + bubbles?: boolean; + cancelable?: boolean; + composed?: boolean; +} +type EventListener = (event: EventType) => void; +interface EventListenerObject { + handleEvent(event: EventType): void; +} +type EventListenerOrEventListenerObject = EventListener | EventListenerObject; +/** + * The **`EventTarget`** interface is implemented by objects that can receive events and may have listeners for them. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) + */ +declare class EventTarget = Record> { + constructor(); + /** + * The **`addEventListener()`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) + */ + addEventListener(type: Type, handler: EventListenerOrEventListenerObject, options?: EventTargetAddEventListenerOptions | boolean): void; + /** + * The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) + */ + removeEventListener(type: Type, handler: EventListenerOrEventListenerObject, options?: EventTargetEventListenerOptions | boolean): void; + /** + * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) + */ + dispatchEvent(event: EventMap[keyof EventMap]): boolean; +} +interface EventTargetEventListenerOptions { + capture?: boolean; +} +interface EventTargetAddEventListenerOptions { + capture?: boolean; + passive?: boolean; + once?: boolean; + signal?: AbortSignal; +} +interface EventTargetHandlerObject { + handleEvent: (event: Event) => any | undefined; +} +/** + * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) + */ +declare class AbortController { + constructor(); + /** + * The **`signal`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) + */ + get signal(): AbortSignal; + /** + * The **`abort()`** method of the AbortController interface aborts an asynchronous operation before it has completed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) + */ + abort(reason?: any): void; +} +/** + * The **`AbortSignal`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) + */ +declare abstract class AbortSignal extends EventTarget { + /** + * The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) + */ + static abort(reason?: any): AbortSignal; + /** + * The **`AbortSignal.timeout()`** static method returns an AbortSignal that will automatically abort after a specified time. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) + */ + static timeout(delay: number): AbortSignal; + /** + * The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) + */ + static any(signals: AbortSignal[]): AbortSignal; + /** + * The **`aborted`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (`true`) or not (`false`). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) + */ + get aborted(): boolean; + /** + * The **`reason`** read-only property returns a JavaScript value that indicates the abort reason. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) + */ + get reason(): any; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ + get onabort(): any | null; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ + set onabort(value: any | null); + /** + * The **`throwIfAborted()`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) + */ + throwIfAborted(): void; +} +interface Scheduler { + wait(delay: number, maybeOptions?: SchedulerWaitOptions): Promise; +} +interface SchedulerWaitOptions { + signal?: AbortSignal; +} +/** + * The **`ExtendableEvent`** interface extends the lifetime of the `install` and `activate` events dispatched on the global scope as part of the service worker lifecycle. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent) + */ +declare abstract class ExtendableEvent extends Event { + /** + * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) + */ + waitUntil(promise: Promise): void; +} +/** + * The **`CustomEvent`** interface represents events initialized by an application for any purpose. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) + */ +declare class CustomEvent extends Event { + constructor(type: string, init?: CustomEventCustomEventInit); + /** + * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) + */ + get detail(): T; +} +interface CustomEventCustomEventInit { + bubbles?: boolean; + cancelable?: boolean; + composed?: boolean; + detail?: any; +} +/** + * The **`Blob`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) + */ +declare class Blob { + constructor(type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[], options?: BlobOptions); + /** + * The **`size`** read-only property of the Blob interface returns the size of the Blob or File in bytes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) + */ + get size(): number; + /** + * The **`type`** read-only property of the Blob interface returns the MIME type of the file. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) + */ + get type(): string; + /** + * The **`slice()`** method of the Blob interface creates and returns a new `Blob` object which contains data from a subset of the blob on which it's called. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) + */ + slice(start?: number, end?: number, type?: string): Blob; + /** + * The **`arrayBuffer()`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) + */ + arrayBuffer(): Promise; + /** + * The **`bytes()`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) + */ + bytes(): Promise; + /** + * The **`text()`** method of the string containing the contents of the blob, interpreted as UTF-8. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) + */ + text(): Promise; + /** + * The **`stream()`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the `Blob`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) + */ + stream(): ReadableStream; +} +interface BlobOptions { + type?: string; +} +/** + * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) + */ +declare class File extends Blob { + constructor(bits: ((ArrayBuffer | ArrayBufferView) | string | Blob)[] | undefined, name: string, options?: FileOptions); + /** + * The **`name`** read-only property of the File interface returns the name of the file represented by a File object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) + */ + get name(): string; + /** + * The **`lastModified`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) + */ + get lastModified(): number; +} +interface FileOptions { + type?: string; + lastModified?: number; +} +/** +* The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache. +* +* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/) +*/ +declare abstract class CacheStorage { + /** + * The **`open()`** method of the the Cache object matching the `cacheName`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) + */ + open(cacheName: string): Promise; + readonly default: Cache; +} +/** +* The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache. +* +* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/) +*/ +declare abstract class Cache { + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/#delete) */ + delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/#match) */ + match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/#put) */ + put(request: RequestInfo | URL, response: Response): Promise; +} +interface CacheQueryOptions { + ignoreMethod?: boolean; +} +/** +* The Web Crypto API provides a set of low-level functions for common cryptographic tasks. +* The Workers runtime implements the full surface of this API, but with some differences in +* the [supported algorithms](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/#supported-algorithms) +* compared to those implemented in most browsers. +* +* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/) +*/ +declare abstract class Crypto { + /** + * The **`Crypto.subtle`** read-only property returns a cryptographic operations. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) + */ + get subtle(): SubtleCrypto; + /** + * The **`Crypto.getRandomValues()`** method lets you get cryptographically strong random values. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) + */ + getRandomValues(buffer: T): T; + /** + * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) + */ + randomUUID(): string; + DigestStream: typeof DigestStream; +} +/** + * The **`SubtleCrypto`** interface of the Web Crypto API provides a number of low-level cryptographic functions. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto) + */ +declare abstract class SubtleCrypto { + /** + * The **`encrypt()`** method of the SubtleCrypto interface encrypts data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) + */ + encrypt(algorithm: string | SubtleCryptoEncryptAlgorithm, key: CryptoKey, plainText: ArrayBuffer | ArrayBufferView): Promise; + /** + * The **`decrypt()`** method of the SubtleCrypto interface decrypts some encrypted data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) + */ + decrypt(algorithm: string | SubtleCryptoEncryptAlgorithm, key: CryptoKey, cipherText: ArrayBuffer | ArrayBufferView): Promise; + /** + * The **`sign()`** method of the SubtleCrypto interface generates a digital signature. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) + */ + sign(algorithm: string | SubtleCryptoSignAlgorithm, key: CryptoKey, data: ArrayBuffer | ArrayBufferView): Promise; + /** + * The **`verify()`** method of the SubtleCrypto interface verifies a digital signature. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) + */ + verify(algorithm: string | SubtleCryptoSignAlgorithm, key: CryptoKey, signature: ArrayBuffer | ArrayBufferView, data: ArrayBuffer | ArrayBufferView): Promise; + /** + * The **`digest()`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) + */ + digest(algorithm: string | SubtleCryptoHashAlgorithm, data: ArrayBuffer | ArrayBufferView): Promise; + /** + * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) + */ + generateKey(algorithm: string | SubtleCryptoGenerateKeyAlgorithm, extractable: boolean, keyUsages: string[]): Promise; + /** + * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) + */ + deriveKey(algorithm: string | SubtleCryptoDeriveKeyAlgorithm, baseKey: CryptoKey, derivedKeyAlgorithm: string | SubtleCryptoImportKeyAlgorithm, extractable: boolean, keyUsages: string[]): Promise; + /** + * The **`deriveBits()`** method of the key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) + */ + deriveBits(algorithm: string | SubtleCryptoDeriveKeyAlgorithm, baseKey: CryptoKey, length?: number | null): Promise; + /** + * The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) + */ + importKey(format: string, keyData: (ArrayBuffer | ArrayBufferView) | JsonWebKey, algorithm: string | SubtleCryptoImportKeyAlgorithm, extractable: boolean, keyUsages: string[]): Promise; + /** + * The **`exportKey()`** method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) + */ + exportKey(format: string, key: CryptoKey): Promise; + /** + * The **`wrapKey()`** method of the SubtleCrypto interface 'wraps' a key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) + */ + wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | SubtleCryptoEncryptAlgorithm): Promise; + /** + * The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) + */ + unwrapKey(format: string, wrappedKey: ArrayBuffer | ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: string | SubtleCryptoEncryptAlgorithm, unwrappedKeyAlgorithm: string | SubtleCryptoImportKeyAlgorithm, extractable: boolean, keyUsages: string[]): Promise; + timingSafeEqual(a: ArrayBuffer | ArrayBufferView, b: ArrayBuffer | ArrayBufferView): boolean; +} +/** + * The **`CryptoKey`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey. + * Available only in secure contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) + */ +declare abstract class CryptoKey { + /** + * The read-only **`type`** property of the CryptoKey interface indicates which kind of key is represented by the object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) + */ + readonly type: string; + /** + * The read-only **`extractable`** property of the CryptoKey interface indicates whether or not the key may be extracted using `SubtleCrypto.exportKey()` or `SubtleCrypto.wrapKey()`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) + */ + readonly extractable: boolean; + /** + * The read-only **`algorithm`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) + */ + readonly algorithm: CryptoKeyKeyAlgorithm | CryptoKeyAesKeyAlgorithm | CryptoKeyHmacKeyAlgorithm | CryptoKeyRsaKeyAlgorithm | CryptoKeyEllipticKeyAlgorithm | CryptoKeyArbitraryKeyAlgorithm; + /** + * The read-only **`usages`** property of the CryptoKey interface indicates what can be done with the key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) + */ + readonly usages: string[]; +} +interface CryptoKeyPair { + publicKey: CryptoKey; + privateKey: CryptoKey; +} +interface JsonWebKey { + kty: string; + use?: string; + key_ops?: string[]; + alg?: string; + ext?: boolean; + crv?: string; + x?: string; + y?: string; + d?: string; + n?: string; + e?: string; + p?: string; + q?: string; + dp?: string; + dq?: string; + qi?: string; + oth?: RsaOtherPrimesInfo[]; + k?: string; +} +interface RsaOtherPrimesInfo { + r?: string; + d?: string; + t?: string; +} +interface SubtleCryptoDeriveKeyAlgorithm { + name: string; + salt?: (ArrayBuffer | ArrayBufferView); + iterations?: number; + hash?: (string | SubtleCryptoHashAlgorithm); + $public?: CryptoKey; + info?: (ArrayBuffer | ArrayBufferView); +} +interface SubtleCryptoEncryptAlgorithm { + name: string; + iv?: (ArrayBuffer | ArrayBufferView); + additionalData?: (ArrayBuffer | ArrayBufferView); + tagLength?: number; + counter?: (ArrayBuffer | ArrayBufferView); + length?: number; + label?: (ArrayBuffer | ArrayBufferView); +} +interface SubtleCryptoGenerateKeyAlgorithm { + name: string; + hash?: (string | SubtleCryptoHashAlgorithm); + modulusLength?: number; + publicExponent?: (ArrayBuffer | ArrayBufferView); + length?: number; + namedCurve?: string; +} +interface SubtleCryptoHashAlgorithm { + name: string; +} +interface SubtleCryptoImportKeyAlgorithm { + name: string; + hash?: (string | SubtleCryptoHashAlgorithm); + length?: number; + namedCurve?: string; + compressed?: boolean; +} +interface SubtleCryptoSignAlgorithm { + name: string; + hash?: (string | SubtleCryptoHashAlgorithm); + dataLength?: number; + saltLength?: number; +} +interface CryptoKeyKeyAlgorithm { + name: string; +} +interface CryptoKeyAesKeyAlgorithm { + name: string; + length: number; +} +interface CryptoKeyHmacKeyAlgorithm { + name: string; + hash: CryptoKeyKeyAlgorithm; + length: number; +} +interface CryptoKeyRsaKeyAlgorithm { + name: string; + modulusLength: number; + publicExponent: ArrayBuffer | ArrayBufferView; + hash?: CryptoKeyKeyAlgorithm; +} +interface CryptoKeyEllipticKeyAlgorithm { + name: string; + namedCurve: string; +} +interface CryptoKeyArbitraryKeyAlgorithm { + name: string; + hash?: CryptoKeyKeyAlgorithm; + namedCurve?: string; + length?: number; +} +declare class DigestStream extends WritableStream { + constructor(algorithm: string | SubtleCryptoHashAlgorithm); + readonly digest: Promise; + get bytesWritten(): number | bigint; +} +/** + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) + */ +declare class TextDecoder { + constructor(label?: string, options?: TextDecoderConstructorOptions); + /** + * The **`TextDecoder.decode()`** method returns a string containing text decoded from the buffer passed as a parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode) + */ + decode(input?: (ArrayBuffer | ArrayBufferView), options?: TextDecoderDecodeOptions): string; + get encoding(): string; + get fatal(): boolean; + get ignoreBOM(): boolean; +} +/** + * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) + */ +declare class TextEncoder { + constructor(); + /** + * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) + */ + encode(input?: string): Uint8Array; + /** + * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) + */ + encodeInto(input: string, buffer: Uint8Array): TextEncoderEncodeIntoResult; + get encoding(): string; +} +interface TextDecoderConstructorOptions { + fatal: boolean; + ignoreBOM: boolean; +} +interface TextDecoderDecodeOptions { + stream: boolean; +} +interface TextEncoderEncodeIntoResult { + read: number; + written: number; +} +/** + * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) + */ +declare class ErrorEvent extends Event { + constructor(type: string, init?: ErrorEventErrorEventInit); + /** + * The **`filename`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) + */ + get filename(): string; + /** + * The **`message`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) + */ + get message(): string; + /** + * The **`lineno`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) + */ + get lineno(): number; + /** + * The **`colno`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) + */ + get colno(): number; + /** + * The **`error`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) + */ + get error(): any; +} +interface ErrorEventErrorEventInit { + message?: string; + filename?: string; + lineno?: number; + colno?: number; + error?: any; +} +/** + * The **`MessageEvent`** interface represents a message received by a target object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent) + */ +declare class MessageEvent extends Event { + constructor(type: string, initializer: MessageEventInit); + /** + * The **`data`** read-only property of the The data sent by the message emitter; this can be any data type, depending on what originated this event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data) + */ + readonly data: any; + /** + * The **`origin`** read-only property of the origin of the message emitter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin) + */ + readonly origin: string | null; + /** + * The **`lastEventId`** read-only property of the unique ID for the event. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId) + */ + readonly lastEventId: string; + /** + * The **`source`** read-only property of the a WindowProxy, MessagePort, or a `MessageEventSource` (which can be a WindowProxy, message emitter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source) + */ + readonly source: MessagePort | null; + /** + * The **`ports`** read-only property of the containing all MessagePort objects sent with the message, in order. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports) + */ + readonly ports: MessagePort[]; +} +interface MessageEventInit { + data: ArrayBuffer | string; +} +/** + * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) + */ +declare abstract class PromiseRejectionEvent extends Event { + /** + * The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript rejected. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) + */ + readonly promise: Promise; + /** + * The PromiseRejectionEvent **`reason`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject(). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) + */ + readonly reason: any; +} +/** + * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) + */ +declare class FormData { + constructor(); + /** + * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) + */ + append(name: string, value: string | Blob): void; + /** + * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) + */ + append(name: string, value: string): void; + /** + * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) + */ + append(name: string, value: Blob, filename?: string): void; + /** + * The **`delete()`** method of the FormData interface deletes a key and its value(s) from a `FormData` object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) + */ + delete(name: string): void; + /** + * The **`get()`** method of the FormData interface returns the first value associated with a given key from within a `FormData` object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) + */ + get(name: string): (File | string) | null; + /** + * The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a `FormData` object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) + */ + getAll(name: string): (File | string)[]; + /** + * The **`has()`** method of the FormData interface returns whether a `FormData` object contains a certain key. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) + */ + has(name: string): boolean; + /** + * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) + */ + set(name: string, value: string | Blob): void; + /** + * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) + */ + set(name: string, value: string): void; + /** + * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) + */ + set(name: string, value: Blob, filename?: string): void; + /* Returns an array of key, value pairs for every entry in the list. */ + entries(): IterableIterator<[ + key: string, + value: File | string + ]>; + /* Returns a list of keys in the list. */ + keys(): IterableIterator; + /* Returns a list of values in the list. */ + values(): IterableIterator<(File | string)>; + forEach(callback: (this: This, value: File | string, key: string, parent: FormData) => void, thisArg?: This): void; + [Symbol.iterator](): IterableIterator<[ + key: string, + value: File | string + ]>; +} +interface ContentOptions { + html?: boolean; +} +declare class HTMLRewriter { + constructor(); + on(selector: string, handlers: HTMLRewriterElementContentHandlers): HTMLRewriter; + onDocument(handlers: HTMLRewriterDocumentContentHandlers): HTMLRewriter; + transform(response: Response): Response; +} +interface HTMLRewriterElementContentHandlers { + element?(element: Element): void | Promise; + comments?(comment: Comment): void | Promise; + text?(element: Text): void | Promise; +} +interface HTMLRewriterDocumentContentHandlers { + doctype?(doctype: Doctype): void | Promise; + comments?(comment: Comment): void | Promise; + text?(text: Text): void | Promise; + end?(end: DocumentEnd): void | Promise; +} +interface Doctype { + readonly name: string | null; + readonly publicId: string | null; + readonly systemId: string | null; +} +interface Element { + tagName: string; + readonly attributes: IterableIterator; + readonly removed: boolean; + readonly namespaceURI: string; + getAttribute(name: string): string | null; + hasAttribute(name: string): boolean; + setAttribute(name: string, value: string): Element; + removeAttribute(name: string): Element; + before(content: string | ReadableStream | Response, options?: ContentOptions): Element; + after(content: string | ReadableStream | Response, options?: ContentOptions): Element; + prepend(content: string | ReadableStream | Response, options?: ContentOptions): Element; + append(content: string | ReadableStream | Response, options?: ContentOptions): Element; + replace(content: string | ReadableStream | Response, options?: ContentOptions): Element; + remove(): Element; + removeAndKeepContent(): Element; + setInnerContent(content: string | ReadableStream | Response, options?: ContentOptions): Element; + onEndTag(handler: (tag: EndTag) => void | Promise): void; +} +interface EndTag { + name: string; + before(content: string | ReadableStream | Response, options?: ContentOptions): EndTag; + after(content: string | ReadableStream | Response, options?: ContentOptions): EndTag; + remove(): EndTag; +} +interface Comment { + text: string; + readonly removed: boolean; + before(content: string, options?: ContentOptions): Comment; + after(content: string, options?: ContentOptions): Comment; + replace(content: string, options?: ContentOptions): Comment; + remove(): Comment; +} +interface Text { + readonly text: string; + readonly lastInTextNode: boolean; + readonly removed: boolean; + before(content: string | ReadableStream | Response, options?: ContentOptions): Text; + after(content: string | ReadableStream | Response, options?: ContentOptions): Text; + replace(content: string | ReadableStream | Response, options?: ContentOptions): Text; + remove(): Text; +} +interface DocumentEnd { + append(content: string, options?: ContentOptions): DocumentEnd; +} +/** + * This is the event type for `fetch` events dispatched on the ServiceWorkerGlobalScope. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent) + */ +declare abstract class FetchEvent extends ExtendableEvent { + /** + * The **`request`** read-only property of the the event handler. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) + */ + readonly request: Request; + /** + * The **`respondWith()`** method of allows you to provide a promise for a Response yourself. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) + */ + respondWith(promise: Response | Promise): void; + passThroughOnException(): void; +} +type HeadersInit = Headers | Iterable> | Record; +/** + * The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers) + */ +declare class Headers { + constructor(init?: HeadersInit); + /** + * The **`get()`** method of the Headers interface returns a byte string of all the values of a header within a `Headers` object with a given name. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) + */ + get(name: string): string | null; + getAll(name: string): string[]; + /** + * The **`getSetCookie()`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) + */ + getSetCookie(): string[]; + /** + * The **`has()`** method of the Headers interface returns a boolean stating whether a `Headers` object contains a certain header. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) + */ + has(name: string): boolean; + /** + * The **`set()`** method of the Headers interface sets a new value for an existing header inside a `Headers` object, or adds the header if it does not already exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) + */ + set(name: string, value: string): void; + /** + * The **`append()`** method of the Headers interface appends a new value onto an existing header inside a `Headers` object, or adds the header if it does not already exist. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) + */ + append(name: string, value: string): void; + /** + * The **`delete()`** method of the Headers interface deletes a header from the current `Headers` object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) + */ + delete(name: string): void; + forEach(callback: (this: This, value: string, key: string, parent: Headers) => void, thisArg?: This): void; + /* Returns an iterator allowing to go through all key/value pairs contained in this object. */ + entries(): IterableIterator<[ + key: string, + value: string + ]>; + /* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ + keys(): IterableIterator; + /* Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ + values(): IterableIterator; + [Symbol.iterator](): IterableIterator<[ + key: string, + value: string + ]>; +} +type BodyInit = ReadableStream | string | ArrayBuffer | ArrayBufferView | Blob | URLSearchParams | FormData; +declare abstract class Body { + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ + get body(): ReadableStream | null; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ + get bodyUsed(): boolean; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ + arrayBuffer(): Promise; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */ + bytes(): Promise; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ + text(): Promise; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ + json(): Promise; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ + formData(): Promise; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ + blob(): Promise; +} +/** + * The **`Response`** interface of the Fetch API represents the response to a request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response) + */ +declare var Response: { + prototype: Response; + new (body?: BodyInit | null, init?: ResponseInit): Response; + error(): Response; + redirect(url: string, status?: number): Response; + json(any: any, maybeInit?: (ResponseInit | Response)): Response; +}; +/** + * The **`Response`** interface of the Fetch API represents the response to a request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response) + */ +interface Response extends Body { + /** + * The **`clone()`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) + */ + clone(): Response; + /** + * The **`status`** read-only property of the Response interface contains the HTTP status codes of the response. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) + */ + status: number; + /** + * The **`statusText`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) + */ + statusText: string; + /** + * The **`headers`** read-only property of the with the response. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) + */ + headers: Headers; + /** + * The **`ok`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) + */ + ok: boolean; + /** + * The **`redirected`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) + */ + redirected: boolean; + /** + * The **`url`** read-only property of the Response interface contains the URL of the response. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) + */ + url: string; + webSocket: WebSocket | null; + cf: any | undefined; + /** + * The **`type`** read-only property of the Response interface contains the type of the response. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) + */ + type: "default" | "error"; +} +interface ResponseInit { + status?: number; + statusText?: string; + headers?: HeadersInit; + cf?: any; + webSocket?: (WebSocket | null); + encodeBody?: "automatic" | "manual"; +} +type RequestInfo> = Request | string; +/** + * The **`Request`** interface of the Fetch API represents a resource request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request) + */ +declare var Request: { + prototype: Request; + new >(input: RequestInfo | URL, init?: RequestInit): Request; +}; +/** + * The **`Request`** interface of the Fetch API represents a resource request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request) + */ +interface Request> extends Body { + /** + * The **`clone()`** method of the Request interface creates a copy of the current `Request` object. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) + */ + clone(): Request; + /** + * The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method) + */ + method: string; + /** + * The **`url`** read-only property of the Request interface contains the URL of the request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url) + */ + url: string; + /** + * The **`headers`** read-only property of the with the request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers) + */ + headers: Headers; + /** + * The **`redirect`** read-only property of the Request interface contains the mode for how redirects are handled. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect) + */ + redirect: string; + fetcher: Fetcher | null; + /** + * The read-only **`signal`** property of the Request interface returns the AbortSignal associated with the request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal) + */ + signal: AbortSignal; + cf?: Cf; + /** + * The **`integrity`** read-only property of the Request interface contains the subresource integrity value of the request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity) + */ + integrity: string; + /** + * The **`keepalive`** read-only property of the Request interface contains the request's `keepalive` setting (`true` or `false`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive) + */ + keepalive: boolean; + /** + * The **`cache`** read-only property of the Request interface contains the cache mode of the request. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache) + */ + cache?: "no-store" | "no-cache"; +} +interface RequestInit { + /* A string to set request's method. */ + method?: string; + /* A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ + headers?: HeadersInit; + /* A BodyInit object or null to set request's body. */ + body?: BodyInit | null; + /* A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ + redirect?: string; + fetcher?: (Fetcher | null); + cf?: Cf; + /* A string indicating how the request will interact with the browser's cache to set request's cache. */ + cache?: "no-store" | "no-cache"; + /* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ + integrity?: string; + /* An AbortSignal to set request's signal. */ + signal?: (AbortSignal | null); + encodeResponseBody?: "automatic" | "manual"; +} +type Service Rpc.WorkerEntrypointBranded) | Rpc.WorkerEntrypointBranded | ExportedHandler | undefined = undefined> = T extends new (...args: any[]) => Rpc.WorkerEntrypointBranded ? Fetcher> : T extends Rpc.WorkerEntrypointBranded ? Fetcher : T extends Exclude ? never : Fetcher; +type Fetcher = (T extends Rpc.EntrypointBranded ? Rpc.Provider : unknown) & { + fetch(input: RequestInfo | URL, init?: RequestInit): Promise; + connect(address: SocketAddress | string, options?: SocketOptions): Socket; +}; +interface KVNamespaceListKey { + name: Key; + expiration?: number; + metadata?: Metadata; +} +type KVNamespaceListResult = { + list_complete: false; + keys: KVNamespaceListKey[]; + cursor: string; + cacheStatus: string | null; +} | { + list_complete: true; + keys: KVNamespaceListKey[]; + cacheStatus: string | null; +}; +interface KVNamespace { + get(key: Key, options?: Partial>): Promise; + get(key: Key, type: "text"): Promise; + get(key: Key, type: "json"): Promise; + get(key: Key, type: "arrayBuffer"): Promise; + get(key: Key, type: "stream"): Promise; + get(key: Key, options?: KVNamespaceGetOptions<"text">): Promise; + get(key: Key, options?: KVNamespaceGetOptions<"json">): Promise; + get(key: Key, options?: KVNamespaceGetOptions<"arrayBuffer">): Promise; + get(key: Key, options?: KVNamespaceGetOptions<"stream">): Promise; + get(key: Array, type: "text"): Promise>; + get(key: Array, type: "json"): Promise>; + get(key: Array, options?: Partial>): Promise>; + get(key: Array, options?: KVNamespaceGetOptions<"text">): Promise>; + get(key: Array, options?: KVNamespaceGetOptions<"json">): Promise>; + list(options?: KVNamespaceListOptions): Promise>; + put(key: Key, value: string | ArrayBuffer | ArrayBufferView | ReadableStream, options?: KVNamespacePutOptions): Promise; + getWithMetadata(key: Key, options?: Partial>): Promise>; + getWithMetadata(key: Key, type: "text"): Promise>; + getWithMetadata(key: Key, type: "json"): Promise>; + getWithMetadata(key: Key, type: "arrayBuffer"): Promise>; + getWithMetadata(key: Key, type: "stream"): Promise>; + getWithMetadata(key: Key, options: KVNamespaceGetOptions<"text">): Promise>; + getWithMetadata(key: Key, options: KVNamespaceGetOptions<"json">): Promise>; + getWithMetadata(key: Key, options: KVNamespaceGetOptions<"arrayBuffer">): Promise>; + getWithMetadata(key: Key, options: KVNamespaceGetOptions<"stream">): Promise>; + getWithMetadata(key: Array, type: "text"): Promise>>; + getWithMetadata(key: Array, type: "json"): Promise>>; + getWithMetadata(key: Array, options?: Partial>): Promise>>; + getWithMetadata(key: Array, options?: KVNamespaceGetOptions<"text">): Promise>>; + getWithMetadata(key: Array, options?: KVNamespaceGetOptions<"json">): Promise>>; + delete(key: Key): Promise; +} +interface KVNamespaceListOptions { + limit?: number; + prefix?: (string | null); + cursor?: (string | null); +} +interface KVNamespaceGetOptions { + type: Type; + cacheTtl?: number; +} +interface KVNamespacePutOptions { + expiration?: number; + expirationTtl?: number; + metadata?: (any | null); +} +interface KVNamespaceGetWithMetadataResult { + value: Value | null; + metadata: Metadata | null; + cacheStatus: string | null; +} +type QueueContentType = "text" | "bytes" | "json" | "v8"; +interface Queue { + send(message: Body, options?: QueueSendOptions): Promise; + sendBatch(messages: Iterable>, options?: QueueSendBatchOptions): Promise; +} +interface QueueSendOptions { + contentType?: QueueContentType; + delaySeconds?: number; +} +interface QueueSendBatchOptions { + delaySeconds?: number; +} +interface MessageSendRequest { + body: Body; + contentType?: QueueContentType; + delaySeconds?: number; +} +interface QueueRetryOptions { + delaySeconds?: number; +} +interface Message { + readonly id: string; + readonly timestamp: Date; + readonly body: Body; + readonly attempts: number; + retry(options?: QueueRetryOptions): void; + ack(): void; +} +interface QueueEvent extends ExtendableEvent { + readonly messages: readonly Message[]; + readonly queue: string; + retryAll(options?: QueueRetryOptions): void; + ackAll(): void; +} +interface MessageBatch { + readonly messages: readonly Message[]; + readonly queue: string; + retryAll(options?: QueueRetryOptions): void; + ackAll(): void; +} +interface R2Error extends Error { + readonly name: string; + readonly code: number; + readonly message: string; + readonly action: string; + readonly stack: any; +} +interface R2ListOptions { + limit?: number; + prefix?: string; + cursor?: string; + delimiter?: string; + startAfter?: string; + include?: ("httpMetadata" | "customMetadata")[]; +} +declare abstract class R2Bucket { + head(key: string): Promise; + get(key: string, options: R2GetOptions & { + onlyIf: R2Conditional | Headers; + }): Promise; + get(key: string, options?: R2GetOptions): Promise; + put(key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOptions & { + onlyIf: R2Conditional | Headers; + }): Promise; + put(key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOptions): Promise; + createMultipartUpload(key: string, options?: R2MultipartOptions): Promise; + resumeMultipartUpload(key: string, uploadId: string): R2MultipartUpload; + delete(keys: string | string[]): Promise; + list(options?: R2ListOptions): Promise; +} +interface R2MultipartUpload { + readonly key: string; + readonly uploadId: string; + uploadPart(partNumber: number, value: ReadableStream | (ArrayBuffer | ArrayBufferView) | string | Blob, options?: R2UploadPartOptions): Promise; + abort(): Promise; + complete(uploadedParts: R2UploadedPart[]): Promise; +} +interface R2UploadedPart { + partNumber: number; + etag: string; +} +declare abstract class R2Object { + readonly key: string; + readonly version: string; + readonly size: number; + readonly etag: string; + readonly httpEtag: string; + readonly checksums: R2Checksums; + readonly uploaded: Date; + readonly httpMetadata?: R2HTTPMetadata; + readonly customMetadata?: Record; + readonly range?: R2Range; + readonly storageClass: string; + readonly ssecKeyMd5?: string; + writeHttpMetadata(headers: Headers): void; +} +interface R2ObjectBody extends R2Object { + get body(): ReadableStream; + get bodyUsed(): boolean; + arrayBuffer(): Promise; + bytes(): Promise; + text(): Promise; + json(): Promise; + blob(): Promise; +} +type R2Range = { + offset: number; + length?: number; +} | { + offset?: number; + length: number; +} | { + suffix: number; +}; +interface R2Conditional { + etagMatches?: string; + etagDoesNotMatch?: string; + uploadedBefore?: Date; + uploadedAfter?: Date; + secondsGranularity?: boolean; +} +interface R2GetOptions { + onlyIf?: (R2Conditional | Headers); + range?: (R2Range | Headers); + ssecKey?: (ArrayBuffer | string); +} +interface R2PutOptions { + onlyIf?: (R2Conditional | Headers); + httpMetadata?: (R2HTTPMetadata | Headers); + customMetadata?: Record; + md5?: ((ArrayBuffer | ArrayBufferView) | string); + sha1?: ((ArrayBuffer | ArrayBufferView) | string); + sha256?: ((ArrayBuffer | ArrayBufferView) | string); + sha384?: ((ArrayBuffer | ArrayBufferView) | string); + sha512?: ((ArrayBuffer | ArrayBufferView) | string); + storageClass?: string; + ssecKey?: (ArrayBuffer | string); +} +interface R2MultipartOptions { + httpMetadata?: (R2HTTPMetadata | Headers); + customMetadata?: Record; + storageClass?: string; + ssecKey?: (ArrayBuffer | string); +} +interface R2Checksums { + readonly md5?: ArrayBuffer; + readonly sha1?: ArrayBuffer; + readonly sha256?: ArrayBuffer; + readonly sha384?: ArrayBuffer; + readonly sha512?: ArrayBuffer; + toJSON(): R2StringChecksums; +} +interface R2StringChecksums { + md5?: string; + sha1?: string; + sha256?: string; + sha384?: string; + sha512?: string; +} +interface R2HTTPMetadata { + contentType?: string; + contentLanguage?: string; + contentDisposition?: string; + contentEncoding?: string; + cacheControl?: string; + cacheExpiry?: Date; +} +type R2Objects = { + objects: R2Object[]; + delimitedPrefixes: string[]; +} & ({ + truncated: true; + cursor: string; +} | { + truncated: false; +}); +interface R2UploadPartOptions { + ssecKey?: (ArrayBuffer | string); +} +declare abstract class ScheduledEvent extends ExtendableEvent { + readonly scheduledTime: number; + readonly cron: string; + noRetry(): void; +} +interface ScheduledController { + readonly scheduledTime: number; + readonly cron: string; + noRetry(): void; +} +interface QueuingStrategy { + highWaterMark?: (number | bigint); + size?: (chunk: T) => number | bigint; +} +interface UnderlyingSink { + type?: string; + start?: (controller: WritableStreamDefaultController) => void | Promise; + write?: (chunk: W, controller: WritableStreamDefaultController) => void | Promise; + abort?: (reason: any) => void | Promise; + close?: () => void | Promise; +} +interface UnderlyingByteSource { + type: "bytes"; + autoAllocateChunkSize?: number; + start?: (controller: ReadableByteStreamController) => void | Promise; + pull?: (controller: ReadableByteStreamController) => void | Promise; + cancel?: (reason: any) => void | Promise; +} +interface UnderlyingSource { + type?: "" | undefined; + start?: (controller: ReadableStreamDefaultController) => void | Promise; + pull?: (controller: ReadableStreamDefaultController) => void | Promise; + cancel?: (reason: any) => void | Promise; + expectedLength?: (number | bigint); +} +interface Transformer { + readableType?: string; + writableType?: string; + start?: (controller: TransformStreamDefaultController) => void | Promise; + transform?: (chunk: I, controller: TransformStreamDefaultController) => void | Promise; + flush?: (controller: TransformStreamDefaultController) => void | Promise; + cancel?: (reason: any) => void | Promise; + expectedLength?: number; +} +interface StreamPipeOptions { + preventAbort?: boolean; + preventCancel?: boolean; + /** + * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. + * + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. + * + * Errors and closures of the source and destination streams propagate as follows: + * + * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. + * + * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. + * + * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. + * + * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. + * + * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. + */ + preventClose?: boolean; + signal?: AbortSignal; +} +type ReadableStreamReadResult = { + done: false; + value: R; +} | { + done: true; + value?: undefined; +}; +/** + * The `ReadableStream` interface of the Streams API represents a readable stream of byte data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) + */ +interface ReadableStream { + /** + * The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) + */ + get locked(): boolean; + /** + * The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) + */ + cancel(reason?: any): Promise; + /** + * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) + */ + getReader(): ReadableStreamDefaultReader; + /** + * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) + */ + getReader(options: ReadableStreamGetReaderOptions): ReadableStreamBYOBReader; + /** + * The **`pipeThrough()`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) + */ + pipeThrough(transform: ReadableWritablePair, options?: StreamPipeOptions): ReadableStream; + /** + * The **`pipeTo()`** method of the ReadableStream interface pipes the current `ReadableStream` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) + */ + pipeTo(destination: WritableStream, options?: StreamPipeOptions): Promise; + /** + * The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) + */ + tee(): [ + ReadableStream, + ReadableStream + ]; + values(options?: ReadableStreamValuesOptions): AsyncIterableIterator; + [Symbol.asyncIterator](options?: ReadableStreamValuesOptions): AsyncIterableIterator; +} +/** + * The `ReadableStream` interface of the Streams API represents a readable stream of byte data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) + */ +declare const ReadableStream: { + prototype: ReadableStream; + new (underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy): ReadableStream; + new (underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; +}; +/** + * The **`ReadableStreamDefaultReader`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) + */ +declare class ReadableStreamDefaultReader { + constructor(stream: ReadableStream); + get closed(): Promise; + cancel(reason?: any): Promise; + /** + * The **`read()`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) + */ + read(): Promise>; + /** + * The **`releaseLock()`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) + */ + releaseLock(): void; +} +/** + * The `ReadableStreamBYOBReader` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) + */ +declare class ReadableStreamBYOBReader { + constructor(stream: ReadableStream); + get closed(): Promise; + cancel(reason?: any): Promise; + /** + * The **`read()`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) + */ + read(view: T): Promise>; + /** + * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) + */ + releaseLock(): void; + readAtLeast(minElements: number, view: T): Promise>; +} +interface ReadableStreamBYOBReaderReadableStreamBYOBReaderReadOptions { + min?: number; +} +interface ReadableStreamGetReaderOptions { + /** + * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. + * + * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. + */ + mode: "byob"; +} +/** + * The **`ReadableStreamBYOBRequest`** interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) + */ +declare abstract class ReadableStreamBYOBRequest { + /** + * The **`view`** getter property of the ReadableStreamBYOBRequest interface returns the current view. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) + */ + get view(): Uint8Array | null; + /** + * The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) + */ + respond(bytesWritten: number): void; + /** + * The **`respondWithNewView()`** method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) + */ + respondWithNewView(view: ArrayBuffer | ArrayBufferView): void; + get atLeast(): number | null; +} +/** + * The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) + */ +declare abstract class ReadableStreamDefaultController { + /** + * The **`desiredSize`** read-only property of the required to fill the stream's internal queue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) + */ + get desiredSize(): number | null; + /** + * The **`close()`** method of the ReadableStreamDefaultController interface closes the associated stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) + */ + close(): void; + /** + * The **`enqueue()`** method of the ```js-nolint enqueue(chunk) ``` - `chunk` - : The chunk to enqueue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) + */ + enqueue(chunk?: R): void; + /** + * The **`error()`** method of the with the associated stream to error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) + */ + error(reason: any): void; +} +/** + * The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) + */ +declare abstract class ReadableByteStreamController { + /** + * The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) + */ + get byobRequest(): ReadableStreamBYOBRequest | null; + /** + * The **`desiredSize`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its 'desired size'. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) + */ + get desiredSize(): number | null; + /** + * The **`close()`** method of the ReadableByteStreamController interface closes the associated stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) + */ + close(): void; + /** + * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues). + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) + */ + enqueue(chunk: ArrayBuffer | ArrayBufferView): void; + /** + * The **`error()`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) + */ + error(reason: any): void; +} +/** + * The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream's state. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController) + */ +declare abstract class WritableStreamDefaultController { + /** + * The read-only **`signal`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) + */ + get signal(): AbortSignal; + /** + * The **`error()`** method of the with the associated stream to error. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) + */ + error(reason?: any): void; +} +/** + * The **`TransformStreamDefaultController`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) + */ +declare abstract class TransformStreamDefaultController { + /** + * The **`desiredSize`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) + */ + get desiredSize(): number | null; + /** + * The **`enqueue()`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) + */ + enqueue(chunk?: O): void; + /** + * The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) + */ + error(reason: any): void; + /** + * The **`terminate()`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) + */ + terminate(): void; +} +interface ReadableWritablePair { + readable: ReadableStream; + /** + * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. + * + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. + */ + writable: WritableStream; +} +/** + * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream) + */ +declare class WritableStream { + constructor(underlyingSink?: UnderlyingSink, queuingStrategy?: QueuingStrategy); + /** + * The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the `WritableStream` is locked to a writer. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) + */ + get locked(): boolean; + /** + * The **`abort()`** method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) + */ + abort(reason?: any): Promise; + /** + * The **`close()`** method of the WritableStream interface closes the associated stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) + */ + close(): Promise; + /** + * The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) + */ + getWriter(): WritableStreamDefaultWriter; +} +/** + * The **`WritableStreamDefaultWriter`** interface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to the `WritableStream` ensuring that no other streams can write to the underlying sink. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter) + */ +declare class WritableStreamDefaultWriter { + constructor(stream: WritableStream); + /** + * The **`closed`** read-only property of the the stream errors or the writer's lock is released. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) + */ + get closed(): Promise; + /** + * The **`ready`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) + */ + get ready(): Promise; + /** + * The **`desiredSize`** read-only property of the to fill the stream's internal queue. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) + */ + get desiredSize(): number | null; + /** + * The **`abort()`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) + */ + abort(reason?: any): Promise; + /** + * The **`close()`** method of the stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) + */ + close(): Promise; + /** + * The **`write()`** method of the operation. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) + */ + write(chunk?: W): Promise; + /** + * The **`releaseLock()`** method of the corresponding stream. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) + */ + releaseLock(): void; +} +/** + * The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) + */ +declare class TransformStream { + constructor(transformer?: Transformer, writableStrategy?: QueuingStrategy, readableStrategy?: QueuingStrategy); + /** + * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this `TransformStream`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) + */ + get readable(): ReadableStream; + /** + * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this `TransformStream`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) + */ + get writable(): WritableStream; +} +declare class FixedLengthStream extends IdentityTransformStream { + constructor(expectedLength: number | bigint, queuingStrategy?: IdentityTransformStreamQueuingStrategy); +} +declare class IdentityTransformStream extends TransformStream { + constructor(queuingStrategy?: IdentityTransformStreamQueuingStrategy); +} +interface IdentityTransformStreamQueuingStrategy { + highWaterMark?: (number | bigint); +} +interface ReadableStreamValuesOptions { + preventCancel?: boolean; +} +/** + * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) + */ +declare class CompressionStream extends TransformStream { + constructor(format: "gzip" | "deflate" | "deflate-raw"); +} +/** + * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) + */ +declare class DecompressionStream extends TransformStream { + constructor(format: "gzip" | "deflate" | "deflate-raw"); +} +/** + * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) + */ +declare class TextEncoderStream extends TransformStream { + constructor(); + get encoding(): string; +} +/** + * The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) + */ +declare class TextDecoderStream extends TransformStream { + constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit); + get encoding(): string; + get fatal(): boolean; + get ignoreBOM(): boolean; +} +interface TextDecoderStreamTextDecoderStreamInit { + fatal?: boolean; + ignoreBOM?: boolean; +} +/** + * The **`ByteLengthQueuingStrategy`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) + */ +declare class ByteLengthQueuingStrategy implements QueuingStrategy { + constructor(init: QueuingStrategyInit); + /** + * The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) + */ + get highWaterMark(): number; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ + get size(): (chunk?: any) => number; +} +/** + * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) + */ +declare class CountQueuingStrategy implements QueuingStrategy { + constructor(init: QueuingStrategyInit); + /** + * The read-only **`CountQueuingStrategy.highWaterMark`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) + */ + get highWaterMark(): number; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ + get size(): (chunk?: any) => number; +} +interface QueuingStrategyInit { + /** + * Creates a new ByteLengthQueuingStrategy with the provided high water mark. + * + * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. + */ + highWaterMark: number; +} +interface ScriptVersion { + id?: string; + tag?: string; + message?: string; +} +declare abstract class TailEvent extends ExtendableEvent { + readonly events: TraceItem[]; + readonly traces: TraceItem[]; +} +interface TraceItem { + readonly event: (TraceItemFetchEventInfo | TraceItemJsRpcEventInfo | TraceItemScheduledEventInfo | TraceItemAlarmEventInfo | TraceItemQueueEventInfo | TraceItemEmailEventInfo | TraceItemTailEventInfo | TraceItemCustomEventInfo | TraceItemHibernatableWebSocketEventInfo) | null; + readonly eventTimestamp: number | null; + readonly logs: TraceLog[]; + readonly exceptions: TraceException[]; + readonly diagnosticsChannelEvents: TraceDiagnosticChannelEvent[]; + readonly scriptName: string | null; + readonly entrypoint?: string; + readonly scriptVersion?: ScriptVersion; + readonly dispatchNamespace?: string; + readonly scriptTags?: string[]; + readonly durableObjectId?: string; + readonly outcome: string; + readonly executionModel: string; + readonly truncated: boolean; + readonly cpuTime: number; + readonly wallTime: number; +} +interface TraceItemAlarmEventInfo { + readonly scheduledTime: Date; +} +interface TraceItemCustomEventInfo { +} +interface TraceItemScheduledEventInfo { + readonly scheduledTime: number; + readonly cron: string; +} +interface TraceItemQueueEventInfo { + readonly queue: string; + readonly batchSize: number; +} +interface TraceItemEmailEventInfo { + readonly mailFrom: string; + readonly rcptTo: string; + readonly rawSize: number; +} +interface TraceItemTailEventInfo { + readonly consumedEvents: TraceItemTailEventInfoTailItem[]; +} +interface TraceItemTailEventInfoTailItem { + readonly scriptName: string | null; +} +interface TraceItemFetchEventInfo { + readonly response?: TraceItemFetchEventInfoResponse; + readonly request: TraceItemFetchEventInfoRequest; +} +interface TraceItemFetchEventInfoRequest { + readonly cf?: any; + readonly headers: Record; + readonly method: string; + readonly url: string; + getUnredacted(): TraceItemFetchEventInfoRequest; +} +interface TraceItemFetchEventInfoResponse { + readonly status: number; +} +interface TraceItemJsRpcEventInfo { + readonly rpcMethod: string; +} +interface TraceItemHibernatableWebSocketEventInfo { + readonly getWebSocketEvent: TraceItemHibernatableWebSocketEventInfoMessage | TraceItemHibernatableWebSocketEventInfoClose | TraceItemHibernatableWebSocketEventInfoError; +} +interface TraceItemHibernatableWebSocketEventInfoMessage { + readonly webSocketEventType: string; +} +interface TraceItemHibernatableWebSocketEventInfoClose { + readonly webSocketEventType: string; + readonly code: number; + readonly wasClean: boolean; +} +interface TraceItemHibernatableWebSocketEventInfoError { + readonly webSocketEventType: string; +} +interface TraceLog { + readonly timestamp: number; + readonly level: string; + readonly message: any; +} +interface TraceException { + readonly timestamp: number; + readonly message: string; + readonly name: string; + readonly stack?: string; +} +interface TraceDiagnosticChannelEvent { + readonly timestamp: number; + readonly channel: string; + readonly message: any; +} +interface TraceMetrics { + readonly cpuTime: number; + readonly wallTime: number; +} +interface UnsafeTraceMetrics { + fromTrace(item: TraceItem): TraceMetrics; +} +/** + * The **`URL`** interface is used to parse, construct, normalize, and encode URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL) + */ +declare class URL { + constructor(url: string | URL, base?: string | URL); + /** + * The **`origin`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) + */ + get origin(): string; + /** + * The **`href`** property of the URL interface is a string containing the whole URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) + */ + get href(): string; + /** + * The **`href`** property of the URL interface is a string containing the whole URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) + */ + set href(value: string); + /** + * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) + */ + get protocol(): string; + /** + * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) + */ + set protocol(value: string); + /** + * The **`username`** property of the URL interface is a string containing the username component of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) + */ + get username(): string; + /** + * The **`username`** property of the URL interface is a string containing the username component of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) + */ + set username(value: string); + /** + * The **`password`** property of the URL interface is a string containing the password component of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) + */ + get password(): string; + /** + * The **`password`** property of the URL interface is a string containing the password component of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) + */ + set password(value: string); + /** + * The **`host`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a `':'`, followed by the URL.port of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) + */ + get host(): string; + /** + * The **`host`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a `':'`, followed by the URL.port of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) + */ + set host(value: string); + /** + * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) + */ + get hostname(): string; + /** + * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) + */ + set hostname(value: string); + /** + * The **`port`** property of the URL interface is a string containing the port number of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) + */ + get port(): string; + /** + * The **`port`** property of the URL interface is a string containing the port number of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) + */ + set port(value: string); + /** + * The **`pathname`** property of the URL interface represents a location in a hierarchical structure. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) + */ + get pathname(): string; + /** + * The **`pathname`** property of the URL interface represents a location in a hierarchical structure. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) + */ + set pathname(value: string); + /** + * The **`search`** property of the URL interface is a search string, also called a _query string_, that is a string containing a `'?'` followed by the parameters of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) + */ + get search(): string; + /** + * The **`search`** property of the URL interface is a search string, also called a _query string_, that is a string containing a `'?'` followed by the parameters of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) + */ + set search(value: string); + /** + * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) + */ + get hash(): string; + /** + * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) + */ + set hash(value: string); + /** + * The **`searchParams`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) + */ + get searchParams(): URLSearchParams; + /** + * The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as ```js-nolint toJSON() ``` None. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) + */ + toJSON(): string; + /*function toString() { [native code] }*/ + toString(): string; + /** + * The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) + */ + static canParse(url: string, base?: string): boolean; + /** + * The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) + */ + static parse(url: string, base?: string): URL | null; + /** + * The **`createObjectURL()`** static method of the URL interface creates a string containing a URL representing the object given in the parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) + */ + static createObjectURL(object: File | Blob): string; + /** + * The **`revokeObjectURL()`** static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) + */ + static revokeObjectURL(object_url: string): void; +} +/** + * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) + */ +declare class URLSearchParams { + constructor(init?: (Iterable> | Record | string)); + /** + * The **`size`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) + */ + get size(): number; + /** + * The **`append()`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append) + */ + append(name: string, value: string): void; + /** + * The **`delete()`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete) + */ + delete(name: string, value?: string): void; + /** + * The **`get()`** method of the URLSearchParams interface returns the first value associated to the given search parameter. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get) + */ + get(name: string): string | null; + /** + * The **`getAll()`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll) + */ + getAll(name: string): string[]; + /** + * The **`has()`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has) + */ + has(name: string, value?: string): boolean; + /** + * The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set) + */ + set(name: string, value: string): void; + /** + * The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns `undefined`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) + */ + sort(): void; + /* Returns an array of key, value pairs for every entry in the search params. */ + entries(): IterableIterator<[ + key: string, + value: string + ]>; + /* Returns a list of keys in the search params. */ + keys(): IterableIterator; + /* Returns a list of values in the search params. */ + values(): IterableIterator; + forEach(callback: (this: This, value: string, key: string, parent: URLSearchParams) => void, thisArg?: This): void; + /*function toString() { [native code] }*/ + toString(): string; + [Symbol.iterator](): IterableIterator<[ + key: string, + value: string + ]>; +} +declare class URLPattern { + constructor(input?: (string | URLPatternInit), baseURL?: (string | URLPatternOptions), patternOptions?: URLPatternOptions); + get protocol(): string; + get username(): string; + get password(): string; + get hostname(): string; + get port(): string; + get pathname(): string; + get search(): string; + get hash(): string; + get hasRegExpGroups(): boolean; + test(input?: (string | URLPatternInit), baseURL?: string): boolean; + exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null; +} +interface URLPatternInit { + protocol?: string; + username?: string; + password?: string; + hostname?: string; + port?: string; + pathname?: string; + search?: string; + hash?: string; + baseURL?: string; +} +interface URLPatternComponentResult { + input: string; + groups: Record; +} +interface URLPatternResult { + inputs: (string | URLPatternInit)[]; + protocol: URLPatternComponentResult; + username: URLPatternComponentResult; + password: URLPatternComponentResult; + hostname: URLPatternComponentResult; + port: URLPatternComponentResult; + pathname: URLPatternComponentResult; + search: URLPatternComponentResult; + hash: URLPatternComponentResult; +} +interface URLPatternOptions { + ignoreCase?: boolean; +} +/** + * A `CloseEvent` is sent to clients using WebSockets when the connection is closed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) + */ +declare class CloseEvent extends Event { + constructor(type: string, initializer?: CloseEventInit); + /** + * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) + */ + readonly code: number; + /** + * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) + */ + readonly reason: string; + /** + * The **`wasClean`** read-only property of the CloseEvent interface returns `true` if the connection closed cleanly. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) + */ + readonly wasClean: boolean; +} +interface CloseEventInit { + code?: number; + reason?: string; + wasClean?: boolean; +} +type WebSocketEventMap = { + close: CloseEvent; + message: MessageEvent; + open: Event; + error: ErrorEvent; +}; +/** + * The `WebSocket` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket) + */ +declare var WebSocket: { + prototype: WebSocket; + new (url: string, protocols?: (string[] | string)): WebSocket; + readonly READY_STATE_CONNECTING: number; + readonly CONNECTING: number; + readonly READY_STATE_OPEN: number; + readonly OPEN: number; + readonly READY_STATE_CLOSING: number; + readonly CLOSING: number; + readonly READY_STATE_CLOSED: number; + readonly CLOSED: number; +}; +/** + * The `WebSocket` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket) + */ +interface WebSocket extends EventTarget { + accept(): void; + /** + * The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send) + */ + send(message: (ArrayBuffer | ArrayBufferView) | string): void; + /** + * The **`WebSocket.close()`** method closes the already `CLOSED`, this method does nothing. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) + */ + close(code?: number, reason?: string): void; + serializeAttachment(attachment: any): void; + deserializeAttachment(): any | null; + /** + * The **`WebSocket.readyState`** read-only property returns the current state of the WebSocket connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState) + */ + readyState: number; + /** + * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url) + */ + url: string | null; + /** + * The **`WebSocket.protocol`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the `protocols` parameter when creating the WebSocket object, or the empty string if no connection is established. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol) + */ + protocol: string | null; + /** + * The **`WebSocket.extensions`** read-only property returns the extensions selected by the server. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions) + */ + extensions: string | null; +} +declare const WebSocketPair: { + new (): { + 0: WebSocket; + 1: WebSocket; + }; +}; +interface SqlStorage { + exec>(query: string, ...bindings: any[]): SqlStorageCursor; + get databaseSize(): number; + Cursor: typeof SqlStorageCursor; + Statement: typeof SqlStorageStatement; +} +declare abstract class SqlStorageStatement { +} +type SqlStorageValue = ArrayBuffer | string | number | null; +declare abstract class SqlStorageCursor> { + next(): { + done?: false; + value: T; + } | { + done: true; + value?: never; + }; + toArray(): T[]; + one(): T; + raw(): IterableIterator; + columnNames: string[]; + get rowsRead(): number; + get rowsWritten(): number; + [Symbol.iterator](): IterableIterator; +} +interface Socket { + get readable(): ReadableStream; + get writable(): WritableStream; + get closed(): Promise; + get opened(): Promise; + get upgraded(): boolean; + get secureTransport(): "on" | "off" | "starttls"; + close(): Promise; + startTls(options?: TlsOptions): Socket; +} +interface SocketOptions { + secureTransport?: string; + allowHalfOpen: boolean; + highWaterMark?: (number | bigint); +} +interface SocketAddress { + hostname: string; + port: number; +} +interface TlsOptions { + expectedServerHostname?: string; +} +interface SocketInfo { + remoteAddress?: string; + localAddress?: string; +} +/** + * The **`EventSource`** interface is web content's interface to server-sent events. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) + */ +declare class EventSource extends EventTarget { + constructor(url: string, init?: EventSourceEventSourceInit); + /** + * The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the ```js-nolint close() ``` None. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) + */ + close(): void; + /** + * The **`url`** read-only property of the URL of the source. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) + */ + get url(): string; + /** + * The **`withCredentials`** read-only property of the the `EventSource` object was instantiated with CORS credentials set. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) + */ + get withCredentials(): boolean; + /** + * The **`readyState`** read-only property of the connection. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) + */ + get readyState(): number; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ + get onopen(): any | null; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ + set onopen(value: any | null); + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ + get onmessage(): any | null; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ + set onmessage(value: any | null); + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ + get onerror(): any | null; + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ + set onerror(value: any | null); + static readonly CONNECTING: number; + static readonly OPEN: number; + static readonly CLOSED: number; + static from(stream: ReadableStream): EventSource; +} +interface EventSourceEventSourceInit { + withCredentials?: boolean; + fetcher?: Fetcher; +} +interface Container { + get running(): boolean; + start(options?: ContainerStartupOptions): void; + monitor(): Promise; + destroy(error?: any): Promise; + signal(signo: number): void; + getTcpPort(port: number): Fetcher; + setInactivityTimeout(durationMs: number | bigint): Promise; +} +interface ContainerStartupOptions { + entrypoint?: string[]; + enableInternet: boolean; + env?: Record; + hardTimeout?: (number | bigint); +} +/** + * The **`MessagePort`** interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) + */ +declare abstract class MessagePort extends EventTarget { + /** + * The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage) + */ + postMessage(data?: any, options?: (any[] | MessagePortPostMessageOptions)): void; + /** + * The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close) + */ + close(): void; + /** + * The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start) + */ + start(): void; + get onmessage(): any | null; + set onmessage(value: any | null); +} +/** + * The **`MessageChannel`** interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel) + */ +declare class MessageChannel { + constructor(); + /** + * The **`port1`** read-only property of the the port attached to the context that originated the channel. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1) + */ + readonly port1: MessagePort; + /** + * The **`port2`** read-only property of the the port attached to the context at the other end of the channel, which the message is initially sent to. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2) + */ + readonly port2: MessagePort; +} +interface MessagePortPostMessageOptions { + transfer?: any[]; +} +type LoopbackForExport Rpc.EntrypointBranded) | ExportedHandler | undefined = undefined> = T extends new (...args: any[]) => Rpc.WorkerEntrypointBranded ? LoopbackServiceStub> : T extends new (...args: any[]) => Rpc.DurableObjectBranded ? LoopbackDurableObjectClass> : T extends ExportedHandler ? LoopbackServiceStub : undefined; +type LoopbackServiceStub = Fetcher & (T extends CloudflareWorkersModule.WorkerEntrypoint ? (opts: { + props?: Props; +}) => Fetcher : (opts: { + props?: any; +}) => Fetcher); +type LoopbackDurableObjectClass = DurableObjectClass & (T extends CloudflareWorkersModule.DurableObject ? (opts: { + props?: Props; +}) => DurableObjectClass : (opts: { + props?: any; +}) => DurableObjectClass); +interface SyncKvStorage { + get(key: string): T | undefined; + list(options?: SyncKvListOptions): Iterable<[ + string, + T + ]>; + put(key: string, value: T): void; + delete(key: string): boolean; +} +interface SyncKvListOptions { + start?: string; + startAfter?: string; + end?: string; + prefix?: string; + reverse?: boolean; + limit?: number; +} +interface WorkerStub { + getEntrypoint(name?: string, options?: WorkerStubEntrypointOptions): Fetcher; +} +interface WorkerStubEntrypointOptions { + props?: any; +} +interface WorkerLoader { + get(name: string | null, getCode: () => WorkerLoaderWorkerCode | Promise): WorkerStub; +} +interface WorkerLoaderModule { + js?: string; + cjs?: string; + text?: string; + data?: ArrayBuffer; + json?: any; + py?: string; + wasm?: ArrayBuffer; +} +interface WorkerLoaderWorkerCode { + compatibilityDate: string; + compatibilityFlags?: string[]; + allowExperimental?: boolean; + mainModule: string; + modules: Record; + env?: any; + globalOutbound?: (Fetcher | null); + tails?: Fetcher[]; + streamingTails?: Fetcher[]; +} +/** +* The Workers runtime supports a subset of the Performance API, used to measure timing and performance, +* as well as timing of subrequests and other operations. +* +* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/) +*/ +declare abstract class Performance { + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */ + get timeOrigin(): number; + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */ + now(): number; +} +type AiImageClassificationInput = { + image: number[]; +}; +type AiImageClassificationOutput = { + score?: number; + label?: string; +}[]; +declare abstract class BaseAiImageClassification { + inputs: AiImageClassificationInput; + postProcessedOutputs: AiImageClassificationOutput; +} +type AiImageToTextInput = { + image: number[]; + prompt?: string; + max_tokens?: number; + temperature?: number; + top_p?: number; + top_k?: number; + seed?: number; + repetition_penalty?: number; + frequency_penalty?: number; + presence_penalty?: number; + raw?: boolean; + messages?: RoleScopedChatInput[]; +}; +type AiImageToTextOutput = { + description: string; +}; +declare abstract class BaseAiImageToText { + inputs: AiImageToTextInput; + postProcessedOutputs: AiImageToTextOutput; +} +type AiImageTextToTextInput = { + image: string; + prompt?: string; + max_tokens?: number; + temperature?: number; + ignore_eos?: boolean; + top_p?: number; + top_k?: number; + seed?: number; + repetition_penalty?: number; + frequency_penalty?: number; + presence_penalty?: number; + raw?: boolean; + messages?: RoleScopedChatInput[]; +}; +type AiImageTextToTextOutput = { + description: string; +}; +declare abstract class BaseAiImageTextToText { + inputs: AiImageTextToTextInput; + postProcessedOutputs: AiImageTextToTextOutput; +} +type AiMultimodalEmbeddingsInput = { + image: string; + text: string[]; +}; +type AiIMultimodalEmbeddingsOutput = { + data: number[][]; + shape: number[]; +}; +declare abstract class BaseAiMultimodalEmbeddings { + inputs: AiImageTextToTextInput; + postProcessedOutputs: AiImageTextToTextOutput; +} +type AiObjectDetectionInput = { + image: number[]; +}; +type AiObjectDetectionOutput = { + score?: number; + label?: string; +}[]; +declare abstract class BaseAiObjectDetection { + inputs: AiObjectDetectionInput; + postProcessedOutputs: AiObjectDetectionOutput; +} +type AiSentenceSimilarityInput = { + source: string; + sentences: string[]; +}; +type AiSentenceSimilarityOutput = number[]; +declare abstract class BaseAiSentenceSimilarity { + inputs: AiSentenceSimilarityInput; + postProcessedOutputs: AiSentenceSimilarityOutput; +} +type AiAutomaticSpeechRecognitionInput = { + audio: number[]; +}; +type AiAutomaticSpeechRecognitionOutput = { + text?: string; + words?: { + word: string; + start: number; + end: number; + }[]; + vtt?: string; +}; +declare abstract class BaseAiAutomaticSpeechRecognition { + inputs: AiAutomaticSpeechRecognitionInput; + postProcessedOutputs: AiAutomaticSpeechRecognitionOutput; +} +type AiSummarizationInput = { + input_text: string; + max_length?: number; +}; +type AiSummarizationOutput = { + summary: string; +}; +declare abstract class BaseAiSummarization { + inputs: AiSummarizationInput; + postProcessedOutputs: AiSummarizationOutput; +} +type AiTextClassificationInput = { + text: string; +}; +type AiTextClassificationOutput = { + score?: number; + label?: string; +}[]; +declare abstract class BaseAiTextClassification { + inputs: AiTextClassificationInput; + postProcessedOutputs: AiTextClassificationOutput; +} +type AiTextEmbeddingsInput = { + text: string | string[]; +}; +type AiTextEmbeddingsOutput = { + shape: number[]; + data: number[][]; +}; +declare abstract class BaseAiTextEmbeddings { + inputs: AiTextEmbeddingsInput; + postProcessedOutputs: AiTextEmbeddingsOutput; +} +type RoleScopedChatInput = { + role: "user" | "assistant" | "system" | "tool" | (string & NonNullable); + content: string; + name?: string; +}; +type AiTextGenerationToolLegacyInput = { + name: string; + description: string; + parameters?: { + type: "object" | (string & NonNullable); + properties: { + [key: string]: { + type: string; + description?: string; + }; + }; + required: string[]; + }; +}; +type AiTextGenerationToolInput = { + type: "function" | (string & NonNullable); + function: { + name: string; + description: string; + parameters?: { + type: "object" | (string & NonNullable); + properties: { + [key: string]: { + type: string; + description?: string; + }; + }; + required: string[]; + }; + }; +}; +type AiTextGenerationFunctionsInput = { + name: string; + code: string; +}; +type AiTextGenerationResponseFormat = { + type: string; + json_schema?: any; +}; +type AiTextGenerationInput = { + prompt?: string; + raw?: boolean; + stream?: boolean; + max_tokens?: number; + temperature?: number; + top_p?: number; + top_k?: number; + seed?: number; + repetition_penalty?: number; + frequency_penalty?: number; + presence_penalty?: number; + messages?: RoleScopedChatInput[]; + response_format?: AiTextGenerationResponseFormat; + tools?: AiTextGenerationToolInput[] | AiTextGenerationToolLegacyInput[] | (object & NonNullable); + functions?: AiTextGenerationFunctionsInput[]; +}; +type AiTextGenerationToolLegacyOutput = { + name: string; + arguments: unknown; +}; +type AiTextGenerationToolOutput = { + id: string; + type: "function"; + function: { + name: string; + arguments: string; + }; +}; +type UsageTags = { + prompt_tokens: number; + completion_tokens: number; + total_tokens: number; +}; +type AiTextGenerationOutput = { + response?: string; + tool_calls?: AiTextGenerationToolLegacyOutput[] & AiTextGenerationToolOutput[]; + usage?: UsageTags; +}; +declare abstract class BaseAiTextGeneration { + inputs: AiTextGenerationInput; + postProcessedOutputs: AiTextGenerationOutput; +} +type AiTextToSpeechInput = { + prompt: string; + lang?: string; +}; +type AiTextToSpeechOutput = Uint8Array | { + audio: string; +}; +declare abstract class BaseAiTextToSpeech { + inputs: AiTextToSpeechInput; + postProcessedOutputs: AiTextToSpeechOutput; +} +type AiTextToImageInput = { + prompt: string; + negative_prompt?: string; + height?: number; + width?: number; + image?: number[]; + image_b64?: string; + mask?: number[]; + num_steps?: number; + strength?: number; + guidance?: number; + seed?: number; +}; +type AiTextToImageOutput = ReadableStream; +declare abstract class BaseAiTextToImage { + inputs: AiTextToImageInput; + postProcessedOutputs: AiTextToImageOutput; +} +type AiTranslationInput = { + text: string; + target_lang: string; + source_lang?: string; +}; +type AiTranslationOutput = { + translated_text?: string; +}; +declare abstract class BaseAiTranslation { + inputs: AiTranslationInput; + postProcessedOutputs: AiTranslationOutput; +} +/** + * Workers AI support for OpenAI's Responses API + * Reference: https://github.com/openai/openai-node/blob/master/src/resources/responses/responses.ts + * + * It's a stripped down version from its source. + * It currently supports basic function calling, json mode and accepts images as input. + * + * It does not include types for WebSearch, CodeInterpreter, FileInputs, MCP, CustomTools. + * We plan to add those incrementally as model + platform capabilities evolve. + */ +type ResponsesInput = { + background?: boolean | null; + conversation?: string | ResponseConversationParam | null; + include?: Array | null; + input?: string | ResponseInput; + instructions?: string | null; + max_output_tokens?: number | null; + parallel_tool_calls?: boolean | null; + previous_response_id?: string | null; + prompt_cache_key?: string; + reasoning?: Reasoning | null; + safety_identifier?: string; + service_tier?: "auto" | "default" | "flex" | "scale" | "priority" | null; + stream?: boolean | null; + stream_options?: StreamOptions | null; + temperature?: number | null; + text?: ResponseTextConfig; + tool_choice?: ToolChoiceOptions | ToolChoiceFunction; + tools?: Array; + top_p?: number | null; + truncation?: "auto" | "disabled" | null; +}; +type ResponsesOutput = { + id?: string; + created_at?: number; + output_text?: string; + error?: ResponseError | null; + incomplete_details?: ResponseIncompleteDetails | null; + instructions?: string | Array | null; + object?: "response"; + output?: Array; + parallel_tool_calls?: boolean; + temperature?: number | null; + tool_choice?: ToolChoiceOptions | ToolChoiceFunction; + tools?: Array; + top_p?: number | null; + max_output_tokens?: number | null; + previous_response_id?: string | null; + prompt?: ResponsePrompt | null; + reasoning?: Reasoning | null; + safety_identifier?: string; + service_tier?: "auto" | "default" | "flex" | "scale" | "priority" | null; + status?: ResponseStatus; + text?: ResponseTextConfig; + truncation?: "auto" | "disabled" | null; + usage?: ResponseUsage; +}; +type EasyInputMessage = { + content: string | ResponseInputMessageContentList; + role: "user" | "assistant" | "system" | "developer"; + type?: "message"; +}; +type ResponsesFunctionTool = { + name: string; + parameters: { + [key: string]: unknown; + } | null; + strict: boolean | null; + type: "function"; + description?: string | null; +}; +type ResponseIncompleteDetails = { + reason?: "max_output_tokens" | "content_filter"; +}; +type ResponsePrompt = { + id: string; + variables?: { + [key: string]: string | ResponseInputText | ResponseInputImage; + } | null; + version?: string | null; +}; +type Reasoning = { + effort?: ReasoningEffort | null; + generate_summary?: "auto" | "concise" | "detailed" | null; + summary?: "auto" | "concise" | "detailed" | null; +}; +type ResponseContent = ResponseInputText | ResponseInputImage | ResponseOutputText | ResponseOutputRefusal | ResponseContentReasoningText; +type ResponseContentReasoningText = { + text: string; + type: "reasoning_text"; +}; +type ResponseConversationParam = { + id: string; +}; +type ResponseCreatedEvent = { + response: Response; + sequence_number: number; + type: "response.created"; +}; +type ResponseCustomToolCallOutput = { + call_id: string; + output: string | Array; + type: "custom_tool_call_output"; + id?: string; +}; +type ResponseError = { + code: "server_error" | "rate_limit_exceeded" | "invalid_prompt" | "vector_store_timeout" | "invalid_image" | "invalid_image_format" | "invalid_base64_image" | "invalid_image_url" | "image_too_large" | "image_too_small" | "image_parse_error" | "image_content_policy_violation" | "invalid_image_mode" | "image_file_too_large" | "unsupported_image_media_type" | "empty_image_file" | "failed_to_download_image" | "image_file_not_found"; + message: string; +}; +type ResponseErrorEvent = { + code: string | null; + message: string; + param: string | null; + sequence_number: number; + type: "error"; +}; +type ResponseFailedEvent = { + response: Response; + sequence_number: number; + type: "response.failed"; +}; +type ResponseFormatText = { + type: "text"; +}; +type ResponseFormatJSONObject = { + type: "json_object"; +}; +type ResponseFormatTextConfig = ResponseFormatText | ResponseFormatTextJSONSchemaConfig | ResponseFormatJSONObject; +type ResponseFormatTextJSONSchemaConfig = { + name: string; + schema: { + [key: string]: unknown; + }; + type: "json_schema"; + description?: string; + strict?: boolean | null; +}; +type ResponseFunctionCallArgumentsDeltaEvent = { + delta: string; + item_id: string; + output_index: number; + sequence_number: number; + type: "response.function_call_arguments.delta"; +}; +type ResponseFunctionCallArgumentsDoneEvent = { + arguments: string; + item_id: string; + name: string; + output_index: number; + sequence_number: number; + type: "response.function_call_arguments.done"; +}; +type ResponseFunctionCallOutputItem = ResponseInputTextContent | ResponseInputImageContent; +type ResponseFunctionCallOutputItemList = Array; +type ResponseFunctionToolCall = { + arguments: string; + call_id: string; + name: string; + type: "function_call"; + id?: string; + status?: "in_progress" | "completed" | "incomplete"; +}; +interface ResponseFunctionToolCallItem extends ResponseFunctionToolCall { + id: string; +} +type ResponseFunctionToolCallOutputItem = { + id: string; + call_id: string; + output: string | Array; + type: "function_call_output"; + status?: "in_progress" | "completed" | "incomplete"; +}; +type ResponseIncludable = "message.input_image.image_url" | "message.output_text.logprobs"; +type ResponseIncompleteEvent = { + response: Response; + sequence_number: number; + type: "response.incomplete"; +}; +type ResponseInput = Array; +type ResponseInputContent = ResponseInputText | ResponseInputImage; +type ResponseInputImage = { + detail: "low" | "high" | "auto"; + type: "input_image"; + /** + * Base64 encoded image + */ + image_url?: string | null; +}; +type ResponseInputImageContent = { + type: "input_image"; + detail?: "low" | "high" | "auto" | null; + /** + * Base64 encoded image + */ + image_url?: string | null; +}; +type ResponseInputItem = EasyInputMessage | ResponseInputItemMessage | ResponseOutputMessage | ResponseFunctionToolCall | ResponseInputItemFunctionCallOutput | ResponseReasoningItem; +type ResponseInputItemFunctionCallOutput = { + call_id: string; + output: string | ResponseFunctionCallOutputItemList; + type: "function_call_output"; + id?: string | null; + status?: "in_progress" | "completed" | "incomplete" | null; +}; +type ResponseInputItemMessage = { + content: ResponseInputMessageContentList; + role: "user" | "system" | "developer"; + status?: "in_progress" | "completed" | "incomplete"; + type?: "message"; +}; +type ResponseInputMessageContentList = Array; +type ResponseInputMessageItem = { + id: string; + content: ResponseInputMessageContentList; + role: "user" | "system" | "developer"; + status?: "in_progress" | "completed" | "incomplete"; + type?: "message"; +}; +type ResponseInputText = { + text: string; + type: "input_text"; +}; +type ResponseInputTextContent = { + text: string; + type: "input_text"; +}; +type ResponseItem = ResponseInputMessageItem | ResponseOutputMessage | ResponseFunctionToolCallItem | ResponseFunctionToolCallOutputItem; +type ResponseOutputItem = ResponseOutputMessage | ResponseFunctionToolCall | ResponseReasoningItem; +type ResponseOutputItemAddedEvent = { + item: ResponseOutputItem; + output_index: number; + sequence_number: number; + type: "response.output_item.added"; +}; +type ResponseOutputItemDoneEvent = { + item: ResponseOutputItem; + output_index: number; + sequence_number: number; + type: "response.output_item.done"; +}; +type ResponseOutputMessage = { + id: string; + content: Array; + role: "assistant"; + status: "in_progress" | "completed" | "incomplete"; + type: "message"; +}; +type ResponseOutputRefusal = { + refusal: string; + type: "refusal"; +}; +type ResponseOutputText = { + text: string; + type: "output_text"; + logprobs?: Array; +}; +type ResponseReasoningItem = { + id: string; + summary: Array; + type: "reasoning"; + content?: Array; + encrypted_content?: string | null; + status?: "in_progress" | "completed" | "incomplete"; +}; +type ResponseReasoningSummaryItem = { + text: string; + type: "summary_text"; +}; +type ResponseReasoningContentItem = { + text: string; + type: "reasoning_text"; +}; +type ResponseReasoningTextDeltaEvent = { + content_index: number; + delta: string; + item_id: string; + output_index: number; + sequence_number: number; + type: "response.reasoning_text.delta"; +}; +type ResponseReasoningTextDoneEvent = { + content_index: number; + item_id: string; + output_index: number; + sequence_number: number; + text: string; + type: "response.reasoning_text.done"; +}; +type ResponseRefusalDeltaEvent = { + content_index: number; + delta: string; + item_id: string; + output_index: number; + sequence_number: number; + type: "response.refusal.delta"; +}; +type ResponseRefusalDoneEvent = { + content_index: number; + item_id: string; + output_index: number; + refusal: string; + sequence_number: number; + type: "response.refusal.done"; +}; +type ResponseStatus = "completed" | "failed" | "in_progress" | "cancelled" | "queued" | "incomplete"; +type ResponseStreamEvent = ResponseCompletedEvent | ResponseCreatedEvent | ResponseErrorEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseFailedEvent | ResponseIncompleteEvent | ResponseOutputItemAddedEvent | ResponseOutputItemDoneEvent | ResponseReasoningTextDeltaEvent | ResponseReasoningTextDoneEvent | ResponseRefusalDeltaEvent | ResponseRefusalDoneEvent | ResponseTextDeltaEvent | ResponseTextDoneEvent; +type ResponseCompletedEvent = { + response: Response; + sequence_number: number; + type: "response.completed"; +}; +type ResponseTextConfig = { + format?: ResponseFormatTextConfig; + verbosity?: "low" | "medium" | "high" | null; +}; +type ResponseTextDeltaEvent = { + content_index: number; + delta: string; + item_id: string; + logprobs: Array; + output_index: number; + sequence_number: number; + type: "response.output_text.delta"; +}; +type ResponseTextDoneEvent = { + content_index: number; + item_id: string; + logprobs: Array; + output_index: number; + sequence_number: number; + text: string; + type: "response.output_text.done"; +}; +type Logprob = { + token: string; + logprob: number; + top_logprobs?: Array; +}; +type TopLogprob = { + token?: string; + logprob?: number; +}; +type ResponseUsage = { + input_tokens: number; + output_tokens: number; + total_tokens: number; +}; +type Tool = ResponsesFunctionTool; +type ToolChoiceFunction = { + name: string; + type: "function"; +}; +type ToolChoiceOptions = "none"; +type ReasoningEffort = "minimal" | "low" | "medium" | "high" | null; +type StreamOptions = { + include_obfuscation?: boolean; +}; +type Ai_Cf_Baai_Bge_Base_En_V1_5_Input = { + text: string | string[]; + /** + * The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. + */ + pooling?: "mean" | "cls"; +} | { + /** + * Batch of the embeddings requests to run using async-queue + */ + requests: { + text: string | string[]; + /** + * The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. + */ + pooling?: "mean" | "cls"; + }[]; +}; +type Ai_Cf_Baai_Bge_Base_En_V1_5_Output = { + shape?: number[]; + /** + * Embeddings of the requested text values + */ + data?: number[][]; + /** + * The pooling method used in the embedding process. + */ + pooling?: "mean" | "cls"; +} | Ai_Cf_Baai_Bge_Base_En_V1_5_AsyncResponse; +interface Ai_Cf_Baai_Bge_Base_En_V1_5_AsyncResponse { + /** + * The async request id that can be used to obtain the results. + */ + request_id?: string; +} +declare abstract class Base_Ai_Cf_Baai_Bge_Base_En_V1_5 { + inputs: Ai_Cf_Baai_Bge_Base_En_V1_5_Input; + postProcessedOutputs: Ai_Cf_Baai_Bge_Base_En_V1_5_Output; +} +type Ai_Cf_Openai_Whisper_Input = string | { + /** + * An array of integers that represent the audio data constrained to 8-bit unsigned integer values + */ + audio: number[]; +}; +interface Ai_Cf_Openai_Whisper_Output { + /** + * The transcription + */ + text: string; + word_count?: number; + words?: { + word?: string; + /** + * The second this word begins in the recording + */ + start?: number; + /** + * The ending second when the word completes + */ + end?: number; + }[]; + vtt?: string; +} +declare abstract class Base_Ai_Cf_Openai_Whisper { + inputs: Ai_Cf_Openai_Whisper_Input; + postProcessedOutputs: Ai_Cf_Openai_Whisper_Output; +} +type Ai_Cf_Meta_M2M100_1_2B_Input = { + /** + * The text to be translated + */ + text: string; + /** + * The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified + */ + source_lang?: string; + /** + * The language code to translate the text into (e.g., 'es' for Spanish) + */ + target_lang: string; +} | { + /** + * Batch of the embeddings requests to run using async-queue + */ + requests: { + /** + * The text to be translated + */ + text: string; + /** + * The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified + */ + source_lang?: string; + /** + * The language code to translate the text into (e.g., 'es' for Spanish) + */ + target_lang: string; + }[]; +}; +type Ai_Cf_Meta_M2M100_1_2B_Output = { + /** + * The translated text in the target language + */ + translated_text?: string; +} | Ai_Cf_Meta_M2M100_1_2B_AsyncResponse; +interface Ai_Cf_Meta_M2M100_1_2B_AsyncResponse { + /** + * The async request id that can be used to obtain the results. + */ + request_id?: string; +} +declare abstract class Base_Ai_Cf_Meta_M2M100_1_2B { + inputs: Ai_Cf_Meta_M2M100_1_2B_Input; + postProcessedOutputs: Ai_Cf_Meta_M2M100_1_2B_Output; +} +type Ai_Cf_Baai_Bge_Small_En_V1_5_Input = { + text: string | string[]; + /** + * The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. + */ + pooling?: "mean" | "cls"; +} | { + /** + * Batch of the embeddings requests to run using async-queue + */ + requests: { + text: string | string[]; + /** + * The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. + */ + pooling?: "mean" | "cls"; + }[]; +}; +type Ai_Cf_Baai_Bge_Small_En_V1_5_Output = { + shape?: number[]; + /** + * Embeddings of the requested text values + */ + data?: number[][]; + /** + * The pooling method used in the embedding process. + */ + pooling?: "mean" | "cls"; +} | Ai_Cf_Baai_Bge_Small_En_V1_5_AsyncResponse; +interface Ai_Cf_Baai_Bge_Small_En_V1_5_AsyncResponse { + /** + * The async request id that can be used to obtain the results. + */ + request_id?: string; +} +declare abstract class Base_Ai_Cf_Baai_Bge_Small_En_V1_5 { + inputs: Ai_Cf_Baai_Bge_Small_En_V1_5_Input; + postProcessedOutputs: Ai_Cf_Baai_Bge_Small_En_V1_5_Output; +} +type Ai_Cf_Baai_Bge_Large_En_V1_5_Input = { + text: string | string[]; + /** + * The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. + */ + pooling?: "mean" | "cls"; +} | { + /** + * Batch of the embeddings requests to run using async-queue + */ + requests: { + text: string | string[]; + /** + * The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. + */ + pooling?: "mean" | "cls"; + }[]; +}; +type Ai_Cf_Baai_Bge_Large_En_V1_5_Output = { + shape?: number[]; + /** + * Embeddings of the requested text values + */ + data?: number[][]; + /** + * The pooling method used in the embedding process. + */ + pooling?: "mean" | "cls"; +} | Ai_Cf_Baai_Bge_Large_En_V1_5_AsyncResponse; +interface Ai_Cf_Baai_Bge_Large_En_V1_5_AsyncResponse { + /** + * The async request id that can be used to obtain the results. + */ + request_id?: string; +} +declare abstract class Base_Ai_Cf_Baai_Bge_Large_En_V1_5 { + inputs: Ai_Cf_Baai_Bge_Large_En_V1_5_Input; + postProcessedOutputs: Ai_Cf_Baai_Bge_Large_En_V1_5_Output; +} +type Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input = string | { + /** + * The input text prompt for the model to generate a response. + */ + prompt?: string; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * Controls the creativity of the AI's responses by adjusting how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; + image: number[] | (string & NonNullable); + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; +}; +interface Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output { + description?: string; +} +declare abstract class Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M { + inputs: Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input; + postProcessedOutputs: Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output; +} +type Ai_Cf_Openai_Whisper_Tiny_En_Input = string | { + /** + * An array of integers that represent the audio data constrained to 8-bit unsigned integer values + */ + audio: number[]; +}; +interface Ai_Cf_Openai_Whisper_Tiny_En_Output { + /** + * The transcription + */ + text: string; + word_count?: number; + words?: { + word?: string; + /** + * The second this word begins in the recording + */ + start?: number; + /** + * The ending second when the word completes + */ + end?: number; + }[]; + vtt?: string; +} +declare abstract class Base_Ai_Cf_Openai_Whisper_Tiny_En { + inputs: Ai_Cf_Openai_Whisper_Tiny_En_Input; + postProcessedOutputs: Ai_Cf_Openai_Whisper_Tiny_En_Output; +} +interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input { + /** + * Base64 encoded value of the audio data. + */ + audio: string; + /** + * Supported tasks are 'translate' or 'transcribe'. + */ + task?: string; + /** + * The language of the audio being transcribed or translated. + */ + language?: string; + /** + * Preprocess the audio with a voice activity detection model. + */ + vad_filter?: boolean; + /** + * A text prompt to help provide context to the model on the contents of the audio. + */ + initial_prompt?: string; + /** + * The prefix it appended the the beginning of the output of the transcription and can guide the transcription result. + */ + prefix?: string; +} +interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output { + transcription_info?: { + /** + * The language of the audio being transcribed or translated. + */ + language?: string; + /** + * The confidence level or probability of the detected language being accurate, represented as a decimal between 0 and 1. + */ + language_probability?: number; + /** + * The total duration of the original audio file, in seconds. + */ + duration?: number; + /** + * The duration of the audio after applying Voice Activity Detection (VAD) to remove silent or irrelevant sections, in seconds. + */ + duration_after_vad?: number; + }; + /** + * The complete transcription of the audio. + */ + text: string; + /** + * The total number of words in the transcription. + */ + word_count?: number; + segments?: { + /** + * The starting time of the segment within the audio, in seconds. + */ + start?: number; + /** + * The ending time of the segment within the audio, in seconds. + */ + end?: number; + /** + * The transcription of the segment. + */ + text?: string; + /** + * The temperature used in the decoding process, controlling randomness in predictions. Lower values result in more deterministic outputs. + */ + temperature?: number; + /** + * The average log probability of the predictions for the words in this segment, indicating overall confidence. + */ + avg_logprob?: number; + /** + * The compression ratio of the input to the output, measuring how much the text was compressed during the transcription process. + */ + compression_ratio?: number; + /** + * The probability that the segment contains no speech, represented as a decimal between 0 and 1. + */ + no_speech_prob?: number; + words?: { + /** + * The individual word transcribed from the audio. + */ + word?: string; + /** + * The starting time of the word within the audio, in seconds. + */ + start?: number; + /** + * The ending time of the word within the audio, in seconds. + */ + end?: number; + }[]; + }[]; + /** + * The transcription in WebVTT format, which includes timing and text information for use in subtitles. + */ + vtt?: string; +} +declare abstract class Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo { + inputs: Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input; + postProcessedOutputs: Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output; +} +type Ai_Cf_Baai_Bge_M3_Input = Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts | Ai_Cf_Baai_Bge_M3_Input_Embedding | { + /** + * Batch of the embeddings requests to run using async-queue + */ + requests: (Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts_1 | Ai_Cf_Baai_Bge_M3_Input_Embedding_1)[]; +}; +interface Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts { + /** + * A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts + */ + query?: string; + /** + * List of provided contexts. Note that the index in this array is important, as the response will refer to it. + */ + contexts: { + /** + * One of the provided context content + */ + text?: string; + }[]; + /** + * When provided with too long context should the model error out or truncate the context to fit? + */ + truncate_inputs?: boolean; +} +interface Ai_Cf_Baai_Bge_M3_Input_Embedding { + text: string | string[]; + /** + * When provided with too long context should the model error out or truncate the context to fit? + */ + truncate_inputs?: boolean; +} +interface Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts_1 { + /** + * A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts + */ + query?: string; + /** + * List of provided contexts. Note that the index in this array is important, as the response will refer to it. + */ + contexts: { + /** + * One of the provided context content + */ + text?: string; + }[]; + /** + * When provided with too long context should the model error out or truncate the context to fit? + */ + truncate_inputs?: boolean; +} +interface Ai_Cf_Baai_Bge_M3_Input_Embedding_1 { + text: string | string[]; + /** + * When provided with too long context should the model error out or truncate the context to fit? + */ + truncate_inputs?: boolean; +} +type Ai_Cf_Baai_Bge_M3_Output = Ai_Cf_Baai_Bge_M3_Ouput_Query | Ai_Cf_Baai_Bge_M3_Output_EmbeddingFor_Contexts | Ai_Cf_Baai_Bge_M3_Ouput_Embedding | Ai_Cf_Baai_Bge_M3_AsyncResponse; +interface Ai_Cf_Baai_Bge_M3_Ouput_Query { + response?: { + /** + * Index of the context in the request + */ + id?: number; + /** + * Score of the context under the index. + */ + score?: number; + }[]; +} +interface Ai_Cf_Baai_Bge_M3_Output_EmbeddingFor_Contexts { + response?: number[][]; + shape?: number[]; + /** + * The pooling method used in the embedding process. + */ + pooling?: "mean" | "cls"; +} +interface Ai_Cf_Baai_Bge_M3_Ouput_Embedding { + shape?: number[]; + /** + * Embeddings of the requested text values + */ + data?: number[][]; + /** + * The pooling method used in the embedding process. + */ + pooling?: "mean" | "cls"; +} +interface Ai_Cf_Baai_Bge_M3_AsyncResponse { + /** + * The async request id that can be used to obtain the results. + */ + request_id?: string; +} +declare abstract class Base_Ai_Cf_Baai_Bge_M3 { + inputs: Ai_Cf_Baai_Bge_M3_Input; + postProcessedOutputs: Ai_Cf_Baai_Bge_M3_Output; +} +interface Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input { + /** + * A text description of the image you want to generate. + */ + prompt: string; + /** + * The number of diffusion steps; higher values can improve quality but take longer. + */ + steps?: number; +} +interface Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output { + /** + * The generated image in Base64 format. + */ + image?: string; +} +declare abstract class Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell { + inputs: Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input; + postProcessedOutputs: Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output; +} +type Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input = Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Prompt | Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Messages; +interface Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Prompt { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + image?: number[] | (string & NonNullable); + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; + /** + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + */ + lora?: string; +} +interface Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Messages { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role?: string; + /** + * The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001 + */ + tool_call_id?: string; + content?: string | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }[] | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }; + }[]; + image?: number[] | (string & NonNullable); + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + /** + * If true, the response will be streamed back incrementally. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Controls the creativity of the AI's responses by adjusting how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +type Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output = { + /** + * The generated text response from the model + */ + response?: string; + /** + * An array of tool calls requests made during the response generation + */ + tool_calls?: { + /** + * The arguments passed to be passed to the tool call request + */ + arguments?: object; + /** + * The name of the tool to be called + */ + name?: string; + }[]; +}; +declare abstract class Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct { + inputs: Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input; + postProcessedOutputs: Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output; +} +type Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input = Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt | Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages | Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Async_Batch; +interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + */ + lora?: string; + response_format?: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role: string; + /** + * The content of the message as a string. + */ + content: string; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + response_format?: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_1; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_1 { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Async_Batch { + requests?: { + /** + * User-supplied reference. This field will be present in the response as well it can be used to reference the request and response. It's NOT validated to be unique. + */ + external_reference?: string; + /** + * Prompt for the text generation model + */ + prompt?: string; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; + response_format?: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_2; + }[]; +} +interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_2 { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +type Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output = { + /** + * The generated text response from the model + */ + response: string; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; + /** + * An array of tool calls requests made during the response generation + */ + tool_calls?: { + /** + * The arguments passed to be passed to the tool call request + */ + arguments?: object; + /** + * The name of the tool to be called + */ + name?: string; + }[]; +} | string | Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_AsyncResponse; +interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_AsyncResponse { + /** + * The async request id that can be used to obtain the results. + */ + request_id?: string; +} +declare abstract class Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast { + inputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input; + postProcessedOutputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output; +} +interface Ai_Cf_Meta_Llama_Guard_3_8B_Input { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender must alternate between 'user' and 'assistant'. + */ + role: "user" | "assistant"; + /** + * The content of the message as a string. + */ + content: string; + }[]; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Dictate the output format of the generated response. + */ + response_format?: { + /** + * Set to json_object to process and output generated text as JSON. + */ + type?: string; + }; +} +interface Ai_Cf_Meta_Llama_Guard_3_8B_Output { + response?: string | { + /** + * Whether the conversation is safe or not. + */ + safe?: boolean; + /** + * A list of what hazard categories predicted for the conversation, if the conversation is deemed unsafe. + */ + categories?: string[]; + }; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; +} +declare abstract class Base_Ai_Cf_Meta_Llama_Guard_3_8B { + inputs: Ai_Cf_Meta_Llama_Guard_3_8B_Input; + postProcessedOutputs: Ai_Cf_Meta_Llama_Guard_3_8B_Output; +} +interface Ai_Cf_Baai_Bge_Reranker_Base_Input { + /** + * A query you wish to perform against the provided contexts. + */ + /** + * Number of returned results starting with the best score. + */ + top_k?: number; + /** + * List of provided contexts. Note that the index in this array is important, as the response will refer to it. + */ + contexts: { + /** + * One of the provided context content + */ + text?: string; + }[]; +} +interface Ai_Cf_Baai_Bge_Reranker_Base_Output { + response?: { + /** + * Index of the context in the request + */ + id?: number; + /** + * Score of the context under the index. + */ + score?: number; + }[]; +} +declare abstract class Base_Ai_Cf_Baai_Bge_Reranker_Base { + inputs: Ai_Cf_Baai_Bge_Reranker_Base_Input; + postProcessedOutputs: Ai_Cf_Baai_Bge_Reranker_Base_Output; +} +type Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input = Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Prompt | Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Messages; +interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Prompt { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + */ + lora?: string; + response_format?: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Messages { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role: string; + /** + * The content of the message as a string. + */ + content: string; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + response_format?: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode_1; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode_1 { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +type Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output = { + /** + * The generated text response from the model + */ + response: string; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; + /** + * An array of tool calls requests made during the response generation + */ + tool_calls?: { + /** + * The arguments passed to be passed to the tool call request + */ + arguments?: object; + /** + * The name of the tool to be called + */ + name?: string; + }[]; +}; +declare abstract class Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct { + inputs: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input; + postProcessedOutputs: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output; +} +type Ai_Cf_Qwen_Qwq_32B_Input = Ai_Cf_Qwen_Qwq_32B_Prompt | Ai_Cf_Qwen_Qwq_32B_Messages; +interface Ai_Cf_Qwen_Qwq_32B_Prompt { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Qwen_Qwq_32B_Messages { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role?: string; + /** + * The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001 + */ + tool_call_id?: string; + content?: string | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }[] | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +type Ai_Cf_Qwen_Qwq_32B_Output = { + /** + * The generated text response from the model + */ + response: string; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; + /** + * An array of tool calls requests made during the response generation + */ + tool_calls?: { + /** + * The arguments passed to be passed to the tool call request + */ + arguments?: object; + /** + * The name of the tool to be called + */ + name?: string; + }[]; +}; +declare abstract class Base_Ai_Cf_Qwen_Qwq_32B { + inputs: Ai_Cf_Qwen_Qwq_32B_Input; + postProcessedOutputs: Ai_Cf_Qwen_Qwq_32B_Output; +} +type Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input = Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Prompt | Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Messages; +interface Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Prompt { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Messages { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role?: string; + /** + * The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001 + */ + tool_call_id?: string; + content?: string | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }[] | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +type Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output = { + /** + * The generated text response from the model + */ + response: string; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; + /** + * An array of tool calls requests made during the response generation + */ + tool_calls?: { + /** + * The arguments passed to be passed to the tool call request + */ + arguments?: object; + /** + * The name of the tool to be called + */ + name?: string; + }[]; +}; +declare abstract class Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct { + inputs: Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input; + postProcessedOutputs: Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output; +} +type Ai_Cf_Google_Gemma_3_12B_It_Input = Ai_Cf_Google_Gemma_3_12B_It_Prompt | Ai_Cf_Google_Gemma_3_12B_It_Messages; +interface Ai_Cf_Google_Gemma_3_12B_It_Prompt { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Google_Gemma_3_12B_It_Messages { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role?: string; + content?: string | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }[]; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +type Ai_Cf_Google_Gemma_3_12B_It_Output = { + /** + * The generated text response from the model + */ + response: string; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; + /** + * An array of tool calls requests made during the response generation + */ + tool_calls?: { + /** + * The arguments passed to be passed to the tool call request + */ + arguments?: object; + /** + * The name of the tool to be called + */ + name?: string; + }[]; +}; +declare abstract class Base_Ai_Cf_Google_Gemma_3_12B_It { + inputs: Ai_Cf_Google_Gemma_3_12B_It_Input; + postProcessedOutputs: Ai_Cf_Google_Gemma_3_12B_It_Output; +} +type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input = Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt | Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages | Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Async_Batch; +interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role?: string; + /** + * The tool call id. If you don't know what to put here you can fall back to 000000001 + */ + tool_call_id?: string; + content?: string | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }[] | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Async_Batch { + requests: (Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt_Inner | Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages_Inner)[]; +} +interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt_Inner { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages_Inner { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role?: string; + /** + * The tool call id. If you don't know what to put here you can fall back to 000000001 + */ + tool_call_id?: string; + content?: string | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }[] | { + /** + * Type of the content provided + */ + type?: string; + text?: string; + image_url?: { + /** + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted + */ + url?: string; + }; + }; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode; + /** + * JSON schema that should be fulfilled for the response. + */ + guided_json?: object; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output = { + /** + * The generated text response from the model + */ + response: string; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; + /** + * An array of tool calls requests made during the response generation + */ + tool_calls?: { + /** + * The tool call id. + */ + id?: string; + /** + * Specifies the type of tool (e.g., 'function'). + */ + type?: string; + /** + * Details of the function tool. + */ + function?: { + /** + * The name of the tool to be called + */ + name?: string; + /** + * The arguments passed to be passed to the tool call request + */ + arguments?: object; + }; + }[]; +}; +declare abstract class Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct { + inputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input; + postProcessedOutputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output; +} +type Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Input = Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt | Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages | Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Async_Batch; +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + */ + lora?: string; + response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role: string; + /** + * The content of the message as a string. + */ + content: string; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_1; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_1 { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Async_Batch { + requests: (Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt_1 | Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages_1)[]; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt_1 { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + */ + lora?: string; + response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_2; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_2 { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages_1 { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role: string; + /** + * The content of the message as a string. + */ + content: string; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_3; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_3 { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +type Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Output = Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Chat_Completion_Response | Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Text_Completion_Response | string | Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_AsyncResponse; +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Chat_Completion_Response { + /** + * Unique identifier for the completion + */ + id?: string; + /** + * Object type identifier + */ + object?: "chat.completion"; + /** + * Unix timestamp of when the completion was created + */ + created?: number; + /** + * Model used for the completion + */ + model?: string; + /** + * List of completion choices + */ + choices?: { + /** + * Index of the choice in the list + */ + index?: number; + /** + * The message generated by the model + */ + message?: { + /** + * Role of the message author + */ + role: string; + /** + * The content of the message + */ + content: string; + /** + * Internal reasoning content (if available) + */ + reasoning_content?: string; + /** + * Tool calls made by the assistant + */ + tool_calls?: { + /** + * Unique identifier for the tool call + */ + id: string; + /** + * Type of tool call + */ + type: "function"; + function: { + /** + * Name of the function to call + */ + name: string; + /** + * JSON string of arguments for the function + */ + arguments: string; + }; + }[]; + }; + /** + * Reason why the model stopped generating + */ + finish_reason?: string; + /** + * Stop reason (may be null) + */ + stop_reason?: string | null; + /** + * Log probabilities (if requested) + */ + logprobs?: {} | null; + }[]; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; + /** + * Log probabilities for the prompt (if requested) + */ + prompt_logprobs?: {} | null; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Text_Completion_Response { + /** + * Unique identifier for the completion + */ + id?: string; + /** + * Object type identifier + */ + object?: "text_completion"; + /** + * Unix timestamp of when the completion was created + */ + created?: number; + /** + * Model used for the completion + */ + model?: string; + /** + * List of completion choices + */ + choices?: { + /** + * Index of the choice in the list + */ + index: number; + /** + * The generated text completion + */ + text: string; + /** + * Reason why the model stopped generating + */ + finish_reason: string; + /** + * Stop reason (may be null) + */ + stop_reason?: string | null; + /** + * Log probabilities (if requested) + */ + logprobs?: {} | null; + /** + * Log probabilities for the prompt (if requested) + */ + prompt_logprobs?: {} | null; + }[]; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; +} +interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_AsyncResponse { + /** + * The async request id that can be used to obtain the results. + */ + request_id?: string; +} +declare abstract class Base_Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8 { + inputs: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Input; + postProcessedOutputs: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Output; +} +interface Ai_Cf_Deepgram_Nova_3_Input { + audio: { + body: object; + contentType: string; + }; + /** + * Sets how the model will interpret strings submitted to the custom_topic param. When strict, the model will only return topics submitted using the custom_topic param. When extended, the model will return its own detected topics in addition to those submitted using the custom_topic param. + */ + custom_topic_mode?: "extended" | "strict"; + /** + * Custom topics you want the model to detect within your input audio or text if present Submit up to 100 + */ + custom_topic?: string; + /** + * Sets how the model will interpret intents submitted to the custom_intent param. When strict, the model will only return intents submitted using the custom_intent param. When extended, the model will return its own detected intents in addition those submitted using the custom_intents param + */ + custom_intent_mode?: "extended" | "strict"; + /** + * Custom intents you want the model to detect within your input audio if present + */ + custom_intent?: string; + /** + * Identifies and extracts key entities from content in submitted audio + */ + detect_entities?: boolean; + /** + * Identifies the dominant language spoken in submitted audio + */ + detect_language?: boolean; + /** + * Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 + */ + diarize?: boolean; + /** + * Identify and extract key entities from content in submitted audio + */ + dictation?: boolean; + /** + * Specify the expected encoding of your submitted audio + */ + encoding?: "linear16" | "flac" | "mulaw" | "amr-nb" | "amr-wb" | "opus" | "speex" | "g729"; + /** + * Arbitrary key-value pairs that are attached to the API response for usage in downstream processing + */ + extra?: string; + /** + * Filler Words can help transcribe interruptions in your audio, like 'uh' and 'um' + */ + filler_words?: boolean; + /** + * Key term prompting can boost or suppress specialized terminology and brands. + */ + keyterm?: string; + /** + * Keywords can boost or suppress specialized terminology and brands. + */ + keywords?: string; + /** + * The BCP-47 language tag that hints at the primary spoken language. Depending on the Model and API endpoint you choose only certain languages are available. + */ + language?: string; + /** + * Spoken measurements will be converted to their corresponding abbreviations. + */ + measurements?: boolean; + /** + * Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip. + */ + mip_opt_out?: boolean; + /** + * Mode of operation for the model representing broad area of topic that will be talked about in the supplied audio + */ + mode?: "general" | "medical" | "finance"; + /** + * Transcribe each audio channel independently. + */ + multichannel?: boolean; + /** + * Numerals converts numbers from written format to numerical format. + */ + numerals?: boolean; + /** + * Splits audio into paragraphs to improve transcript readability. + */ + paragraphs?: boolean; + /** + * Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely. + */ + profanity_filter?: boolean; + /** + * Add punctuation and capitalization to the transcript. + */ + punctuate?: boolean; + /** + * Redaction removes sensitive information from your transcripts. + */ + redact?: string; + /** + * Search for terms or phrases in submitted audio and replaces them. + */ + replace?: string; + /** + * Search for terms or phrases in submitted audio. + */ + search?: string; + /** + * Recognizes the sentiment throughout a transcript or text. + */ + sentiment?: boolean; + /** + * Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability. + */ + smart_format?: boolean; + /** + * Detect topics throughout a transcript or text. + */ + topics?: boolean; + /** + * Segments speech into meaningful semantic units. + */ + utterances?: boolean; + /** + * Seconds to wait before detecting a pause between words in submitted audio. + */ + utt_split?: number; + /** + * The number of channels in the submitted audio + */ + channels?: number; + /** + * Specifies whether the streaming endpoint should provide ongoing transcription updates as more audio is received. When set to true, the endpoint sends continuous updates, meaning transcription results may evolve over time. Note: Supported only for webosockets. + */ + interim_results?: boolean; + /** + * Indicates how long model will wait to detect whether a speaker has finished speaking or pauses for a significant period of time. When set to a value, the streaming endpoint immediately finalizes the transcription for the processed time range and returns the transcript with a speech_final parameter set to true. Can also be set to false to disable endpointing + */ + endpointing?: string; + /** + * Indicates that speech has started. You'll begin receiving Speech Started messages upon speech starting. Note: Supported only for webosockets. + */ + vad_events?: boolean; + /** + * Indicates how long model will wait to send an UtteranceEnd message after a word has been transcribed. Use with interim_results. Note: Supported only for webosockets. + */ + utterance_end_ms?: boolean; +} +interface Ai_Cf_Deepgram_Nova_3_Output { + results?: { + channels?: { + alternatives?: { + confidence?: number; + transcript?: string; + words?: { + confidence?: number; + end?: number; + start?: number; + word?: string; + }[]; + }[]; + }[]; + summary?: { + result?: string; + short?: string; + }; + sentiments?: { + segments?: { + text?: string; + start_word?: number; + end_word?: number; + sentiment?: string; + sentiment_score?: number; + }[]; + average?: { + sentiment?: string; + sentiment_score?: number; + }; + }; + }; +} +declare abstract class Base_Ai_Cf_Deepgram_Nova_3 { + inputs: Ai_Cf_Deepgram_Nova_3_Input; + postProcessedOutputs: Ai_Cf_Deepgram_Nova_3_Output; +} +interface Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Input { + queries?: string | string[]; + /** + * Optional instruction for the task + */ + instruction?: string; + documents?: string | string[]; + text?: string | string[]; +} +interface Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Output { + data?: number[][]; + shape?: number[]; +} +declare abstract class Base_Ai_Cf_Qwen_Qwen3_Embedding_0_6B { + inputs: Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Input; + postProcessedOutputs: Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Output; +} +type Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input = { + /** + * readable stream with audio data and content-type specified for that data + */ + audio: { + body: object; + contentType: string; + }; + /** + * type of data PCM data that's sent to the inference server as raw array + */ + dtype?: "uint8" | "float32" | "float64"; +} | { + /** + * base64 encoded audio data + */ + audio: string; + /** + * type of data PCM data that's sent to the inference server as raw array + */ + dtype?: "uint8" | "float32" | "float64"; +}; +interface Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output { + /** + * if true, end-of-turn was detected + */ + is_complete?: boolean; + /** + * probability of the end-of-turn detection + */ + probability?: number; +} +declare abstract class Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2 { + inputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input; + postProcessedOutputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output; +} +declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_120B { + inputs: ResponsesInput; + postProcessedOutputs: ResponsesOutput; +} +declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_20B { + inputs: ResponsesInput; + postProcessedOutputs: ResponsesOutput; +} +interface Ai_Cf_Leonardo_Phoenix_1_0_Input { + /** + * A text description of the image you want to generate. + */ + prompt: string; + /** + * Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt + */ + guidance?: number; + /** + * Random seed for reproducibility of the image generation + */ + seed?: number; + /** + * The height of the generated image in pixels + */ + height?: number; + /** + * The width of the generated image in pixels + */ + width?: number; + /** + * The number of diffusion steps; higher values can improve quality but take longer + */ + num_steps?: number; + /** + * Specify what to exclude from the generated images + */ + negative_prompt?: string; +} +/** + * The generated image in JPEG format + */ +type Ai_Cf_Leonardo_Phoenix_1_0_Output = string; +declare abstract class Base_Ai_Cf_Leonardo_Phoenix_1_0 { + inputs: Ai_Cf_Leonardo_Phoenix_1_0_Input; + postProcessedOutputs: Ai_Cf_Leonardo_Phoenix_1_0_Output; +} +interface Ai_Cf_Leonardo_Lucid_Origin_Input { + /** + * A text description of the image you want to generate. + */ + prompt: string; + /** + * Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt + */ + guidance?: number; + /** + * Random seed for reproducibility of the image generation + */ + seed?: number; + /** + * The height of the generated image in pixels + */ + height?: number; + /** + * The width of the generated image in pixels + */ + width?: number; + /** + * The number of diffusion steps; higher values can improve quality but take longer + */ + num_steps?: number; + /** + * The number of diffusion steps; higher values can improve quality but take longer + */ + steps?: number; +} +interface Ai_Cf_Leonardo_Lucid_Origin_Output { + /** + * The generated image in Base64 format. + */ + image?: string; +} +declare abstract class Base_Ai_Cf_Leonardo_Lucid_Origin { + inputs: Ai_Cf_Leonardo_Lucid_Origin_Input; + postProcessedOutputs: Ai_Cf_Leonardo_Lucid_Origin_Output; +} +interface Ai_Cf_Deepgram_Aura_1_Input { + /** + * Speaker used to produce the audio. + */ + speaker?: "angus" | "asteria" | "arcas" | "orion" | "orpheus" | "athena" | "luna" | "zeus" | "perseus" | "helios" | "hera" | "stella"; + /** + * Encoding of the output audio. + */ + encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac"; + /** + * Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. + */ + container?: "none" | "wav" | "ogg"; + /** + * The text content to be converted to speech + */ + text: string; + /** + * Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable + */ + sample_rate?: number; + /** + * The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. + */ + bit_rate?: number; +} +/** + * The generated audio in MP3 format + */ +type Ai_Cf_Deepgram_Aura_1_Output = string; +declare abstract class Base_Ai_Cf_Deepgram_Aura_1 { + inputs: Ai_Cf_Deepgram_Aura_1_Input; + postProcessedOutputs: Ai_Cf_Deepgram_Aura_1_Output; +} +interface Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Input { + /** + * Input text to translate. Can be a single string or a list of strings. + */ + text: string | string[]; + /** + * Target language to translate to + */ + target_language: "asm_Beng" | "awa_Deva" | "ben_Beng" | "bho_Deva" | "brx_Deva" | "doi_Deva" | "eng_Latn" | "gom_Deva" | "gon_Deva" | "guj_Gujr" | "hin_Deva" | "hne_Deva" | "kan_Knda" | "kas_Arab" | "kas_Deva" | "kha_Latn" | "lus_Latn" | "mag_Deva" | "mai_Deva" | "mal_Mlym" | "mar_Deva" | "mni_Beng" | "mni_Mtei" | "npi_Deva" | "ory_Orya" | "pan_Guru" | "san_Deva" | "sat_Olck" | "snd_Arab" | "snd_Deva" | "tam_Taml" | "tel_Telu" | "urd_Arab" | "unr_Deva"; +} +interface Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Output { + /** + * Translated texts + */ + translations: string[]; +} +declare abstract class Base_Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B { + inputs: Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Input; + postProcessedOutputs: Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Output; +} +type Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Input = Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt | Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages | Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Async_Batch; +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + */ + lora?: string; + response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role: string; + /** + * The content of the message as a string. + */ + content: string; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_1; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_1 { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Async_Batch { + requests: (Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt_1 | Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages_1)[]; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt_1 { + /** + * The input text prompt for the model to generate a response. + */ + prompt: string; + /** + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + */ + lora?: string; + response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_2; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_2 { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages_1 { + /** + * An array of message objects representing the conversation history. + */ + messages: { + /** + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + */ + role: string; + /** + * The content of the message as a string. + */ + content: string; + }[]; + functions?: { + name: string; + code: string; + }[]; + /** + * A list of tools available for the assistant to use. + */ + tools?: ({ + /** + * The name of the tool. More descriptive the better. + */ + name: string; + /** + * A brief description of what the tool does. + */ + description: string; + /** + * Schema defining the parameters accepted by the tool. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + } | { + /** + * Specifies the type of tool (e.g., 'function'). + */ + type: string; + /** + * Details of the function tool. + */ + function: { + /** + * The name of the function. + */ + name: string; + /** + * A brief description of what the function does. + */ + description: string; + /** + * Schema defining the parameters accepted by the function. + */ + parameters: { + /** + * The type of the parameters object (usually 'object'). + */ + type: string; + /** + * List of required parameter names. + */ + required?: string[]; + /** + * Definitions of each parameter. + */ + properties: { + [k: string]: { + /** + * The data type of the parameter. + */ + type: string; + /** + * A description of the expected parameter. + */ + description: string; + }; + }; + }; + }; + })[]; + response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_3; + /** + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + */ + raw?: boolean; + /** + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. + */ + stream?: boolean; + /** + * The maximum number of tokens to generate in the response. + */ + max_tokens?: number; + /** + * Controls the randomness of the output; higher values produce more random results. + */ + temperature?: number; + /** + * Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses. + */ + top_p?: number; + /** + * Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises. + */ + top_k?: number; + /** + * Random seed for reproducibility of the generation. + */ + seed?: number; + /** + * Penalty for repeated tokens; higher values discourage repetition. + */ + repetition_penalty?: number; + /** + * Decreases the likelihood of the model repeating the same lines verbatim. + */ + frequency_penalty?: number; + /** + * Increases the likelihood of the model introducing new topics. + */ + presence_penalty?: number; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_3 { + type?: "json_object" | "json_schema"; + json_schema?: unknown; +} +type Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Output = Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Chat_Completion_Response | Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Text_Completion_Response | string | Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_AsyncResponse; +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Chat_Completion_Response { + /** + * Unique identifier for the completion + */ + id?: string; + /** + * Object type identifier + */ + object?: "chat.completion"; + /** + * Unix timestamp of when the completion was created + */ + created?: number; + /** + * Model used for the completion + */ + model?: string; + /** + * List of completion choices + */ + choices?: { + /** + * Index of the choice in the list + */ + index?: number; + /** + * The message generated by the model + */ + message?: { + /** + * Role of the message author + */ + role: string; + /** + * The content of the message + */ + content: string; + /** + * Internal reasoning content (if available) + */ + reasoning_content?: string; + /** + * Tool calls made by the assistant + */ + tool_calls?: { + /** + * Unique identifier for the tool call + */ + id: string; + /** + * Type of tool call + */ + type: "function"; + function: { + /** + * Name of the function to call + */ + name: string; + /** + * JSON string of arguments for the function + */ + arguments: string; + }; + }[]; + }; + /** + * Reason why the model stopped generating + */ + finish_reason?: string; + /** + * Stop reason (may be null) + */ + stop_reason?: string | null; + /** + * Log probabilities (if requested) + */ + logprobs?: {} | null; + }[]; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; + /** + * Log probabilities for the prompt (if requested) + */ + prompt_logprobs?: {} | null; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Text_Completion_Response { + /** + * Unique identifier for the completion + */ + id?: string; + /** + * Object type identifier + */ + object?: "text_completion"; + /** + * Unix timestamp of when the completion was created + */ + created?: number; + /** + * Model used for the completion + */ + model?: string; + /** + * List of completion choices + */ + choices?: { + /** + * Index of the choice in the list + */ + index: number; + /** + * The generated text completion + */ + text: string; + /** + * Reason why the model stopped generating + */ + finish_reason: string; + /** + * Stop reason (may be null) + */ + stop_reason?: string | null; + /** + * Log probabilities (if requested) + */ + logprobs?: {} | null; + /** + * Log probabilities for the prompt (if requested) + */ + prompt_logprobs?: {} | null; + }[]; + /** + * Usage statistics for the inference request + */ + usage?: { + /** + * Total number of tokens in input + */ + prompt_tokens?: number; + /** + * Total number of tokens in output + */ + completion_tokens?: number; + /** + * Total number of input and output tokens + */ + total_tokens?: number; + }; +} +interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_AsyncResponse { + /** + * The async request id that can be used to obtain the results. + */ + request_id?: string; +} +declare abstract class Base_Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It { + inputs: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Input; + postProcessedOutputs: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Output; +} +interface Ai_Cf_Pfnet_Plamo_Embedding_1B_Input { + /** + * Input text to embed. Can be a single string or a list of strings. + */ + text: string | string[]; +} +interface Ai_Cf_Pfnet_Plamo_Embedding_1B_Output { + /** + * Embedding vectors, where each vector is a list of floats. + */ + data: number[][]; + /** + * Shape of the embedding data as [number_of_embeddings, embedding_dimension]. + * + * @minItems 2 + * @maxItems 2 + */ + shape: [ + number, + number + ]; +} +declare abstract class Base_Ai_Cf_Pfnet_Plamo_Embedding_1B { + inputs: Ai_Cf_Pfnet_Plamo_Embedding_1B_Input; + postProcessedOutputs: Ai_Cf_Pfnet_Plamo_Embedding_1B_Output; +} +interface Ai_Cf_Deepgram_Flux_Input { + /** + * Encoding of the audio stream. Currently only supports raw signed little-endian 16-bit PCM. + */ + encoding: "linear16"; + /** + * Sample rate of the audio stream in Hz. + */ + sample_rate: string; + /** + * End-of-turn confidence required to fire an eager end-of-turn event. When set, enables EagerEndOfTurn and TurnResumed events. Valid Values 0.3 - 0.9. + */ + eager_eot_threshold?: string; + /** + * End-of-turn confidence required to finish a turn. Valid Values 0.5 - 0.9. + */ + eot_threshold?: string; + /** + * A turn will be finished when this much time has passed after speech, regardless of EOT confidence. + */ + eot_timeout_ms?: string; + /** + * Keyterm prompting can improve recognition of specialized terminology. Pass multiple keyterm query parameters to boost multiple keyterms. + */ + keyterm?: string; + /** + * Opts out requests from the Deepgram Model Improvement Program. Refer to Deepgram Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip + */ + mip_opt_out?: "true" | "false"; + /** + * Label your requests for the purpose of identification during usage reporting + */ + tag?: string; +} +/** + * Output will be returned as websocket messages. + */ +interface Ai_Cf_Deepgram_Flux_Output { + /** + * The unique identifier of the request (uuid) + */ + request_id?: string; + /** + * Starts at 0 and increments for each message the server sends to the client. + */ + sequence_id?: number; + /** + * The type of event being reported. + */ + event?: "Update" | "StartOfTurn" | "EagerEndOfTurn" | "TurnResumed" | "EndOfTurn"; + /** + * The index of the current turn + */ + turn_index?: number; + /** + * Start time in seconds of the audio range that was transcribed + */ + audio_window_start?: number; + /** + * End time in seconds of the audio range that was transcribed + */ + audio_window_end?: number; + /** + * Text that was said over the course of the current turn + */ + transcript?: string; + /** + * The words in the transcript + */ + words?: { + /** + * The individual punctuated, properly-cased word from the transcript + */ + word: string; + /** + * Confidence that this word was transcribed correctly + */ + confidence: number; + }[]; + /** + * Confidence that no more speech is coming in this turn + */ + end_of_turn_confidence?: number; +} +declare abstract class Base_Ai_Cf_Deepgram_Flux { + inputs: Ai_Cf_Deepgram_Flux_Input; + postProcessedOutputs: Ai_Cf_Deepgram_Flux_Output; +} +interface Ai_Cf_Deepgram_Aura_2_En_Input { + /** + * Speaker used to produce the audio. + */ + speaker?: "amalthea" | "andromeda" | "apollo" | "arcas" | "aries" | "asteria" | "athena" | "atlas" | "aurora" | "callista" | "cora" | "cordelia" | "delia" | "draco" | "electra" | "harmonia" | "helena" | "hera" | "hermes" | "hyperion" | "iris" | "janus" | "juno" | "jupiter" | "luna" | "mars" | "minerva" | "neptune" | "odysseus" | "ophelia" | "orion" | "orpheus" | "pandora" | "phoebe" | "pluto" | "saturn" | "thalia" | "theia" | "vesta" | "zeus"; + /** + * Encoding of the output audio. + */ + encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac"; + /** + * Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. + */ + container?: "none" | "wav" | "ogg"; + /** + * The text content to be converted to speech + */ + text: string; + /** + * Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable + */ + sample_rate?: number; + /** + * The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. + */ + bit_rate?: number; +} +/** + * The generated audio in MP3 format + */ +type Ai_Cf_Deepgram_Aura_2_En_Output = string; +declare abstract class Base_Ai_Cf_Deepgram_Aura_2_En { + inputs: Ai_Cf_Deepgram_Aura_2_En_Input; + postProcessedOutputs: Ai_Cf_Deepgram_Aura_2_En_Output; +} +interface Ai_Cf_Deepgram_Aura_2_Es_Input { + /** + * Speaker used to produce the audio. + */ + speaker?: "sirio" | "nestor" | "carina" | "celeste" | "alvaro" | "diana" | "aquila" | "selena" | "estrella" | "javier"; + /** + * Encoding of the output audio. + */ + encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac"; + /** + * Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. + */ + container?: "none" | "wav" | "ogg"; + /** + * The text content to be converted to speech + */ + text: string; + /** + * Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable + */ + sample_rate?: number; + /** + * The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. + */ + bit_rate?: number; +} +/** + * The generated audio in MP3 format + */ +type Ai_Cf_Deepgram_Aura_2_Es_Output = string; +declare abstract class Base_Ai_Cf_Deepgram_Aura_2_Es { + inputs: Ai_Cf_Deepgram_Aura_2_Es_Input; + postProcessedOutputs: Ai_Cf_Deepgram_Aura_2_Es_Output; +} +interface AiModels { + "@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification; + "@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage; + "@cf/runwayml/stable-diffusion-v1-5-inpainting": BaseAiTextToImage; + "@cf/runwayml/stable-diffusion-v1-5-img2img": BaseAiTextToImage; + "@cf/lykon/dreamshaper-8-lcm": BaseAiTextToImage; + "@cf/bytedance/stable-diffusion-xl-lightning": BaseAiTextToImage; + "@cf/myshell-ai/melotts": BaseAiTextToSpeech; + "@cf/google/embeddinggemma-300m": BaseAiTextEmbeddings; + "@cf/microsoft/resnet-50": BaseAiImageClassification; + "@cf/meta/llama-2-7b-chat-int8": BaseAiTextGeneration; + "@cf/mistral/mistral-7b-instruct-v0.1": BaseAiTextGeneration; + "@cf/meta/llama-2-7b-chat-fp16": BaseAiTextGeneration; + "@hf/thebloke/llama-2-13b-chat-awq": BaseAiTextGeneration; + "@hf/thebloke/mistral-7b-instruct-v0.1-awq": BaseAiTextGeneration; + "@hf/thebloke/zephyr-7b-beta-awq": BaseAiTextGeneration; + "@hf/thebloke/openhermes-2.5-mistral-7b-awq": BaseAiTextGeneration; + "@hf/thebloke/neural-chat-7b-v3-1-awq": BaseAiTextGeneration; + "@hf/thebloke/llamaguard-7b-awq": BaseAiTextGeneration; + "@hf/thebloke/deepseek-coder-6.7b-base-awq": BaseAiTextGeneration; + "@hf/thebloke/deepseek-coder-6.7b-instruct-awq": BaseAiTextGeneration; + "@cf/deepseek-ai/deepseek-math-7b-instruct": BaseAiTextGeneration; + "@cf/defog/sqlcoder-7b-2": BaseAiTextGeneration; + "@cf/openchat/openchat-3.5-0106": BaseAiTextGeneration; + "@cf/tiiuae/falcon-7b-instruct": BaseAiTextGeneration; + "@cf/thebloke/discolm-german-7b-v1-awq": BaseAiTextGeneration; + "@cf/qwen/qwen1.5-0.5b-chat": BaseAiTextGeneration; + "@cf/qwen/qwen1.5-7b-chat-awq": BaseAiTextGeneration; + "@cf/qwen/qwen1.5-14b-chat-awq": BaseAiTextGeneration; + "@cf/tinyllama/tinyllama-1.1b-chat-v1.0": BaseAiTextGeneration; + "@cf/microsoft/phi-2": BaseAiTextGeneration; + "@cf/qwen/qwen1.5-1.8b-chat": BaseAiTextGeneration; + "@cf/mistral/mistral-7b-instruct-v0.2-lora": BaseAiTextGeneration; + "@hf/nousresearch/hermes-2-pro-mistral-7b": BaseAiTextGeneration; + "@hf/nexusflow/starling-lm-7b-beta": BaseAiTextGeneration; + "@hf/google/gemma-7b-it": BaseAiTextGeneration; + "@cf/meta-llama/llama-2-7b-chat-hf-lora": BaseAiTextGeneration; + "@cf/google/gemma-2b-it-lora": BaseAiTextGeneration; + "@cf/google/gemma-7b-it-lora": BaseAiTextGeneration; + "@hf/mistral/mistral-7b-instruct-v0.2": BaseAiTextGeneration; + "@cf/meta/llama-3-8b-instruct": BaseAiTextGeneration; + "@cf/fblgit/una-cybertron-7b-v2-bf16": BaseAiTextGeneration; + "@cf/meta/llama-3-8b-instruct-awq": BaseAiTextGeneration; + "@cf/meta/llama-3.1-8b-instruct-fp8": BaseAiTextGeneration; + "@cf/meta/llama-3.1-8b-instruct-awq": BaseAiTextGeneration; + "@cf/meta/llama-3.2-3b-instruct": BaseAiTextGeneration; + "@cf/meta/llama-3.2-1b-instruct": BaseAiTextGeneration; + "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b": BaseAiTextGeneration; + "@cf/ibm-granite/granite-4.0-h-micro": BaseAiTextGeneration; + "@cf/facebook/bart-large-cnn": BaseAiSummarization; + "@cf/llava-hf/llava-1.5-7b-hf": BaseAiImageToText; + "@cf/baai/bge-base-en-v1.5": Base_Ai_Cf_Baai_Bge_Base_En_V1_5; + "@cf/openai/whisper": Base_Ai_Cf_Openai_Whisper; + "@cf/meta/m2m100-1.2b": Base_Ai_Cf_Meta_M2M100_1_2B; + "@cf/baai/bge-small-en-v1.5": Base_Ai_Cf_Baai_Bge_Small_En_V1_5; + "@cf/baai/bge-large-en-v1.5": Base_Ai_Cf_Baai_Bge_Large_En_V1_5; + "@cf/unum/uform-gen2-qwen-500m": Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M; + "@cf/openai/whisper-tiny-en": Base_Ai_Cf_Openai_Whisper_Tiny_En; + "@cf/openai/whisper-large-v3-turbo": Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo; + "@cf/baai/bge-m3": Base_Ai_Cf_Baai_Bge_M3; + "@cf/black-forest-labs/flux-1-schnell": Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell; + "@cf/meta/llama-3.2-11b-vision-instruct": Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct; + "@cf/meta/llama-3.3-70b-instruct-fp8-fast": Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast; + "@cf/meta/llama-guard-3-8b": Base_Ai_Cf_Meta_Llama_Guard_3_8B; + "@cf/baai/bge-reranker-base": Base_Ai_Cf_Baai_Bge_Reranker_Base; + "@cf/qwen/qwen2.5-coder-32b-instruct": Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct; + "@cf/qwen/qwq-32b": Base_Ai_Cf_Qwen_Qwq_32B; + "@cf/mistralai/mistral-small-3.1-24b-instruct": Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct; + "@cf/google/gemma-3-12b-it": Base_Ai_Cf_Google_Gemma_3_12B_It; + "@cf/meta/llama-4-scout-17b-16e-instruct": Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct; + "@cf/qwen/qwen3-30b-a3b-fp8": Base_Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8; + "@cf/deepgram/nova-3": Base_Ai_Cf_Deepgram_Nova_3; + "@cf/qwen/qwen3-embedding-0.6b": Base_Ai_Cf_Qwen_Qwen3_Embedding_0_6B; + "@cf/pipecat-ai/smart-turn-v2": Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2; + "@cf/openai/gpt-oss-120b": Base_Ai_Cf_Openai_Gpt_Oss_120B; + "@cf/openai/gpt-oss-20b": Base_Ai_Cf_Openai_Gpt_Oss_20B; + "@cf/leonardo/phoenix-1.0": Base_Ai_Cf_Leonardo_Phoenix_1_0; + "@cf/leonardo/lucid-origin": Base_Ai_Cf_Leonardo_Lucid_Origin; + "@cf/deepgram/aura-1": Base_Ai_Cf_Deepgram_Aura_1; + "@cf/ai4bharat/indictrans2-en-indic-1B": Base_Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B; + "@cf/aisingapore/gemma-sea-lion-v4-27b-it": Base_Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It; + "@cf/pfnet/plamo-embedding-1b": Base_Ai_Cf_Pfnet_Plamo_Embedding_1B; + "@cf/deepgram/flux": Base_Ai_Cf_Deepgram_Flux; + "@cf/deepgram/aura-2-en": Base_Ai_Cf_Deepgram_Aura_2_En; + "@cf/deepgram/aura-2-es": Base_Ai_Cf_Deepgram_Aura_2_Es; +} +type AiOptions = { + /** + * Send requests as an asynchronous batch job, only works for supported models + * https://developers.cloudflare.com/workers-ai/features/batch-api + */ + queueRequest?: boolean; + /** + * Establish websocket connections, only works for supported models + */ + websocket?: boolean; + /** + * Tag your requests to group and view them in Cloudflare dashboard. + * + * Rules: + * Tags must only contain letters, numbers, and the symbols: : - . / @ + * Each tag can have maximum 50 characters. + * Maximum 5 tags are allowed each request. + * Duplicate tags will removed. + */ + tags?: string[]; + gateway?: GatewayOptions; + returnRawResponse?: boolean; + prefix?: string; + extraHeaders?: object; +}; +type AiModelsSearchParams = { + author?: string; + hide_experimental?: boolean; + page?: number; + per_page?: number; + search?: string; + source?: number; + task?: string; +}; +type AiModelsSearchObject = { + id: string; + source: number; + name: string; + description: string; + task: { + id: string; + name: string; + description: string; + }; + tags: string[]; + properties: { + property_id: string; + value: string; + }[]; +}; +interface InferenceUpstreamError extends Error { +} +interface AiInternalError extends Error { +} +type AiModelListType = Record; +declare abstract class Ai { + aiGatewayLogId: string | null; + gateway(gatewayId: string): AiGateway; + autorag(autoragId: string): AutoRAG; + run(model: Name, inputs: InputOptions, options?: Options): Promise; + models(params?: AiModelsSearchParams): Promise; + toMarkdown(): ToMarkdownService; + toMarkdown(files: MarkdownDocument[], options?: ConversionRequestOptions): Promise; + toMarkdown(files: MarkdownDocument, options?: ConversionRequestOptions): Promise; +} +type GatewayRetries = { + maxAttempts?: 1 | 2 | 3 | 4 | 5; + retryDelayMs?: number; + backoff?: 'constant' | 'linear' | 'exponential'; +}; +type GatewayOptions = { + id: string; + cacheKey?: string; + cacheTtl?: number; + skipCache?: boolean; + metadata?: Record; + collectLog?: boolean; + eventId?: string; + requestTimeoutMs?: number; + retries?: GatewayRetries; +}; +type UniversalGatewayOptions = Exclude & { + /** + ** @deprecated + */ + id?: string; +}; +type AiGatewayPatchLog = { + score?: number | null; + feedback?: -1 | 1 | null; + metadata?: Record | null; +}; +type AiGatewayLog = { + id: string; + provider: string; + model: string; + model_type?: string; + path: string; + duration: number; + request_type?: string; + request_content_type?: string; + status_code: number; + response_content_type?: string; + success: boolean; + cached: boolean; + tokens_in?: number; + tokens_out?: number; + metadata?: Record; + step?: number; + cost?: number; + custom_cost?: boolean; + request_size: number; + request_head?: string; + request_head_complete: boolean; + response_size: number; + response_head?: string; + response_head_complete: boolean; + created_at: Date; +}; +type AIGatewayProviders = 'workers-ai' | 'anthropic' | 'aws-bedrock' | 'azure-openai' | 'google-vertex-ai' | 'huggingface' | 'openai' | 'perplexity-ai' | 'replicate' | 'groq' | 'cohere' | 'google-ai-studio' | 'mistral' | 'grok' | 'openrouter' | 'deepseek' | 'cerebras' | 'cartesia' | 'elevenlabs' | 'adobe-firefly'; +type AIGatewayHeaders = { + 'cf-aig-metadata': Record | string; + 'cf-aig-custom-cost': { + per_token_in?: number; + per_token_out?: number; + } | { + total_cost?: number; + } | string; + 'cf-aig-cache-ttl': number | string; + 'cf-aig-skip-cache': boolean | string; + 'cf-aig-cache-key': string; + 'cf-aig-event-id': string; + 'cf-aig-request-timeout': number | string; + 'cf-aig-max-attempts': number | string; + 'cf-aig-retry-delay': number | string; + 'cf-aig-backoff': string; + 'cf-aig-collect-log': boolean | string; + Authorization: string; + 'Content-Type': string; + [key: string]: string | number | boolean | object; +}; +type AIGatewayUniversalRequest = { + provider: AIGatewayProviders | string; // eslint-disable-line + endpoint: string; + headers: Partial; + query: unknown; +}; +interface AiGatewayInternalError extends Error { +} +interface AiGatewayLogNotFound extends Error { +} +declare abstract class AiGateway { + patchLog(logId: string, data: AiGatewayPatchLog): Promise; + getLog(logId: string): Promise; + run(data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[], options?: { + gateway?: UniversalGatewayOptions; + extraHeaders?: object; + }): Promise; + getUrl(provider?: AIGatewayProviders | string): Promise; // eslint-disable-line +} +interface AutoRAGInternalError extends Error { +} +interface AutoRAGNotFoundError extends Error { +} +interface AutoRAGUnauthorizedError extends Error { +} +interface AutoRAGNameNotSetError extends Error { +} +type ComparisonFilter = { + key: string; + type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; + value: string | number | boolean; +}; +type CompoundFilter = { + type: 'and' | 'or'; + filters: ComparisonFilter[]; +}; +type AutoRagSearchRequest = { + query: string; + filters?: CompoundFilter | ComparisonFilter; + max_num_results?: number; + ranking_options?: { + ranker?: string; + score_threshold?: number; + }; + reranking?: { + enabled?: boolean; + model?: string; + }; + rewrite_query?: boolean; +}; +type AutoRagAiSearchRequest = AutoRagSearchRequest & { + stream?: boolean; + system_prompt?: string; +}; +type AutoRagAiSearchRequestStreaming = Omit & { + stream: true; +}; +type AutoRagSearchResponse = { + object: 'vector_store.search_results.page'; + search_query: string; + data: { + file_id: string; + filename: string; + score: number; + attributes: Record; + content: { + type: 'text'; + text: string; + }[]; + }[]; + has_more: boolean; + next_page: string | null; +}; +type AutoRagListResponse = { + id: string; + enable: boolean; + type: string; + source: string; + vectorize_name: string; + paused: boolean; + status: string; +}[]; +type AutoRagAiSearchResponse = AutoRagSearchResponse & { + response: string; +}; +declare abstract class AutoRAG { + list(): Promise; + search(params: AutoRagSearchRequest): Promise; + aiSearch(params: AutoRagAiSearchRequestStreaming): Promise; + aiSearch(params: AutoRagAiSearchRequest): Promise; + aiSearch(params: AutoRagAiSearchRequest): Promise; +} +interface BasicImageTransformations { + /** + * Maximum width in image pixels. The value must be an integer. + */ + width?: number; + /** + * Maximum height in image pixels. The value must be an integer. + */ + height?: number; + /** + * Resizing mode as a string. It affects interpretation of width and height + * options: + * - scale-down: Similar to contain, but the image is never enlarged. If + * the image is larger than given width or height, it will be resized. + * Otherwise its original size will be kept. + * - contain: Resizes to maximum size that fits within the given width and + * height. If only a single dimension is given (e.g. only width), the + * image will be shrunk or enlarged to exactly match that dimension. + * Aspect ratio is always preserved. + * - cover: Resizes (shrinks or enlarges) to fill the entire area of width + * and height. If the image has an aspect ratio different from the ratio + * of width and height, it will be cropped to fit. + * - crop: The image will be shrunk and cropped to fit within the area + * specified by width and height. The image will not be enlarged. For images + * smaller than the given dimensions it's the same as scale-down. For + * images larger than the given dimensions, it's the same as cover. + * See also trim. + * - pad: Resizes to the maximum size that fits within the given width and + * height, and then fills the remaining area with a background color + * (white by default). Use of this mode is not recommended, as the same + * effect can be more efficiently achieved with the contain mode and the + * CSS object-fit: contain property. + * - squeeze: Stretches and deforms to the width and height given, even if it + * breaks aspect ratio + */ + fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze"; + /** + * Image segmentation using artificial intelligence models. Sets pixels not + * within selected segment area to transparent e.g "foreground" sets every + * background pixel as transparent. + */ + segment?: "foreground"; + /** + * When cropping with fit: "cover", this defines the side or point that should + * be left uncropped. The value is either a string + * "left", "right", "top", "bottom", "auto", or "center" (the default), + * or an object {x, y} containing focal point coordinates in the original + * image expressed as fractions ranging from 0.0 (top or left) to 1.0 + * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will + * crop bottom or left and right sides as necessary, but won’t crop anything + * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to + * preserve as much as possible around a point at 20% of the height of the + * source image. + */ + gravity?: 'face' | 'left' | 'right' | 'top' | 'bottom' | 'center' | 'auto' | 'entropy' | BasicImageTransformationsGravityCoordinates; + /** + * Background color to add underneath the image. Applies only to images with + * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…), + * hsl(…), etc.) + */ + background?: string; + /** + * Number of degrees (90, 180, 270) to rotate the image by. width and height + * options refer to axes after rotation. + */ + rotate?: 0 | 90 | 180 | 270 | 360; +} +interface BasicImageTransformationsGravityCoordinates { + x?: number; + y?: number; + mode?: 'remainder' | 'box-center'; +} +/** + * In addition to the properties you can set in the RequestInit dict + * that you pass as an argument to the Request constructor, you can + * set certain properties of a `cf` object to control how Cloudflare + * features are applied to that new Request. + * + * Note: Currently, these properties cannot be tested in the + * playground. + */ +interface RequestInitCfProperties extends Record { + cacheEverything?: boolean; + /** + * A request's cache key is what determines if two requests are + * "the same" for caching purposes. If a request has the same cache key + * as some previous request, then we can serve the same cached response for + * both. (e.g. 'some-key') + * + * Only available for Enterprise customers. + */ + cacheKey?: string; + /** + * This allows you to append additional Cache-Tag response headers + * to the origin response without modifications to the origin server. + * This will allow for greater control over the Purge by Cache Tag feature + * utilizing changes only in the Workers process. + * + * Only available for Enterprise customers. + */ + cacheTags?: string[]; + /** + * Force response to be cached for a given number of seconds. (e.g. 300) + */ + cacheTtl?: number; + /** + * Force response to be cached for a given number of seconds based on the Origin status code. + * (e.g. { '200-299': 86400, '404': 1, '500-599': 0 }) + */ + cacheTtlByStatus?: Record; + scrapeShield?: boolean; + apps?: boolean; + image?: RequestInitCfPropertiesImage; + minify?: RequestInitCfPropertiesImageMinify; + mirage?: boolean; + polish?: "lossy" | "lossless" | "off"; + r2?: RequestInitCfPropertiesR2; + /** + * Redirects the request to an alternate origin server. You can use this, + * for example, to implement load balancing across several origins. + * (e.g.us-east.example.com) + * + * Note - For security reasons, the hostname set in resolveOverride must + * be proxied on the same Cloudflare zone of the incoming request. + * Otherwise, the setting is ignored. CNAME hosts are allowed, so to + * resolve to a host under a different domain or a DNS only domain first + * declare a CNAME record within your own zone’s DNS mapping to the + * external hostname, set proxy on Cloudflare, then set resolveOverride + * to point to that CNAME record. + */ + resolveOverride?: string; +} +interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations { + /** + * Absolute URL of the image file to use for the drawing. It can be any of + * the supported file formats. For drawing of watermarks or non-rectangular + * overlays we recommend using PNG or WebP images. + */ + url: string; + /** + * Floating-point number between 0 (transparent) and 1 (opaque). + * For example, opacity: 0.5 makes overlay semitransparent. + */ + opacity?: number; + /** + * - If set to true, the overlay image will be tiled to cover the entire + * area. This is useful for stock-photo-like watermarks. + * - If set to "x", the overlay image will be tiled horizontally only + * (form a line). + * - If set to "y", the overlay image will be tiled vertically only + * (form a line). + */ + repeat?: true | "x" | "y"; + /** + * Position of the overlay image relative to a given edge. Each property is + * an offset in pixels. 0 aligns exactly to the edge. For example, left: 10 + * positions left side of the overlay 10 pixels from the left edge of the + * image it's drawn over. bottom: 0 aligns bottom of the overlay with bottom + * of the background image. + * + * Setting both left & right, or both top & bottom is an error. + * + * If no position is specified, the image will be centered. + */ + top?: number; + left?: number; + bottom?: number; + right?: number; +} +interface RequestInitCfPropertiesImage extends BasicImageTransformations { + /** + * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it + * easier to specify higher-DPI sizes in . + */ + dpr?: number; + /** + * Allows you to trim your image. Takes dpr into account and is performed before + * resizing or rotation. + * + * It can be used as: + * - left, top, right, bottom - it will specify the number of pixels to cut + * off each side + * - width, height - the width/height you'd like to end up with - can be used + * in combination with the properties above + * - border - this will automatically trim the surroundings of an image based on + * it's color. It consists of three properties: + * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit) + * - tolerance: difference from color to treat as color + * - keep: the number of pixels of border to keep + */ + trim?: "border" | { + top?: number; + bottom?: number; + left?: number; + right?: number; + width?: number; + height?: number; + border?: boolean | { + color?: string; + tolerance?: number; + keep?: number; + }; + }; + /** + * Quality setting from 1-100 (useful values are in 60-90 range). Lower values + * make images look worse, but load faster. The default is 85. It applies only + * to JPEG and WebP images. It doesn’t have any effect on PNG. + */ + quality?: number | "low" | "medium-low" | "medium-high" | "high"; + /** + * Output format to generate. It can be: + * - avif: generate images in AVIF format. + * - webp: generate images in Google WebP format. Set quality to 100 to get + * the WebP-lossless format. + * - json: instead of generating an image, outputs information about the + * image, in JSON format. The JSON object will contain image size + * (before and after resizing), source image’s MIME type, file size, etc. + * - jpeg: generate images in JPEG format. + * - png: generate images in PNG format. + */ + format?: "avif" | "webp" | "json" | "jpeg" | "png" | "baseline-jpeg" | "png-force" | "svg"; + /** + * Whether to preserve animation frames from input files. Default is true. + * Setting it to false reduces animations to still images. This setting is + * recommended when enlarging images or processing arbitrary user content, + * because large GIF animations can weigh tens or even hundreds of megabytes. + * It is also useful to set anim:false when using format:"json" to get the + * response quicker without the number of frames. + */ + anim?: boolean; + /** + * What EXIF data should be preserved in the output image. Note that EXIF + * rotation and embedded color profiles are always applied ("baked in" into + * the image), and aren't affected by this option. Note that if the Polish + * feature is enabled, all metadata may have been removed already and this + * option may have no effect. + * - keep: Preserve most of EXIF metadata, including GPS location if there's + * any. + * - copyright: Only keep the copyright tag, and discard everything else. + * This is the default behavior for JPEG files. + * - none: Discard all invisible EXIF metadata. Currently WebP and PNG + * output formats always discard metadata. + */ + metadata?: "keep" | "copyright" | "none"; + /** + * Strength of sharpening filter to apply to the image. Floating-point + * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a + * recommended value for downscaled images. + */ + sharpen?: number; + /** + * Radius of a blur filter (approximate gaussian). Maximum supported radius + * is 250. + */ + blur?: number; + /** + * Overlays are drawn in the order they appear in the array (last array + * entry is the topmost layer). + */ + draw?: RequestInitCfPropertiesImageDraw[]; + /** + * Fetching image from authenticated origin. Setting this property will + * pass authentication headers (Authorization, Cookie, etc.) through to + * the origin. + */ + "origin-auth"?: "share-publicly"; + /** + * Adds a border around the image. The border is added after resizing. Border + * width takes dpr into account, and can be specified either using a single + * width property, or individually for each side. + */ + border?: { + color: string; + width: number; + } | { + color: string; + top: number; + right: number; + bottom: number; + left: number; + }; + /** + * Increase brightness by a factor. A value of 1.0 equals no change, a value + * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright. + * 0 is ignored. + */ + brightness?: number; + /** + * Increase contrast by a factor. A value of 1.0 equals no change, a value of + * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is + * ignored. + */ + contrast?: number; + /** + * Increase exposure by a factor. A value of 1.0 equals no change, a value of + * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored. + */ + gamma?: number; + /** + * Increase contrast by a factor. A value of 1.0 equals no change, a value of + * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is + * ignored. + */ + saturation?: number; + /** + * Flips the images horizontally, vertically, or both. Flipping is applied before + * rotation, so if you apply flip=h,rotate=90 then the image will be flipped + * horizontally, then rotated by 90 degrees. + */ + flip?: 'h' | 'v' | 'hv'; + /** + * Slightly reduces latency on a cache miss by selecting a + * quickest-to-compress file format, at a cost of increased file size and + * lower image quality. It will usually override the format option and choose + * JPEG over WebP or AVIF. We do not recommend using this option, except in + * unusual circumstances like resizing uncacheable dynamically-generated + * images. + */ + compression?: "fast"; +} +interface RequestInitCfPropertiesImageMinify { + javascript?: boolean; + css?: boolean; + html?: boolean; +} +interface RequestInitCfPropertiesR2 { + /** + * Colo id of bucket that an object is stored in + */ + bucketColoId?: number; +} +/** + * Request metadata provided by Cloudflare's edge. + */ +type IncomingRequestCfProperties = IncomingRequestCfPropertiesBase & IncomingRequestCfPropertiesBotManagementEnterprise & IncomingRequestCfPropertiesCloudflareForSaaSEnterprise & IncomingRequestCfPropertiesGeographicInformation & IncomingRequestCfPropertiesCloudflareAccessOrApiShield; +interface IncomingRequestCfPropertiesBase extends Record { + /** + * [ASN](https://www.iana.org/assignments/as-numbers/as-numbers.xhtml) of the incoming request. + * + * @example 395747 + */ + asn?: number; + /** + * The organization which owns the ASN of the incoming request. + * + * @example "Google Cloud" + */ + asOrganization?: string; + /** + * The original value of the `Accept-Encoding` header if Cloudflare modified it. + * + * @example "gzip, deflate, br" + */ + clientAcceptEncoding?: string; + /** + * The number of milliseconds it took for the request to reach your worker. + * + * @example 22 + */ + clientTcpRtt?: number; + /** + * The three-letter [IATA](https://en.wikipedia.org/wiki/IATA_airport_code) + * airport code of the data center that the request hit. + * + * @example "DFW" + */ + colo: string; + /** + * Represents the upstream's response to a + * [TCP `keepalive` message](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html) + * from cloudflare. + * + * For workers with no upstream, this will always be `1`. + * + * @example 3 + */ + edgeRequestKeepAliveStatus: IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus; + /** + * The HTTP Protocol the request used. + * + * @example "HTTP/2" + */ + httpProtocol: string; + /** + * The browser-requested prioritization information in the request object. + * + * If no information was set, defaults to the empty string `""` + * + * @example "weight=192;exclusive=0;group=3;group-weight=127" + * @default "" + */ + requestPriority: string; + /** + * The TLS version of the connection to Cloudflare. + * In requests served over plaintext (without TLS), this property is the empty string `""`. + * + * @example "TLSv1.3" + */ + tlsVersion: string; + /** + * The cipher for the connection to Cloudflare. + * In requests served over plaintext (without TLS), this property is the empty string `""`. + * + * @example "AEAD-AES128-GCM-SHA256" + */ + tlsCipher: string; + /** + * Metadata containing the [`HELLO`](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2) and [`FINISHED`](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9) messages from this request's TLS handshake. + * + * If the incoming request was served over plaintext (without TLS) this field is undefined. + */ + tlsExportedAuthenticator?: IncomingRequestCfPropertiesExportedAuthenticatorMetadata; +} +interface IncomingRequestCfPropertiesBotManagementBase { + /** + * Cloudflare’s [level of certainty](https://developers.cloudflare.com/bots/concepts/bot-score/) that a request comes from a bot, + * represented as an integer percentage between `1` (almost certainly a bot) and `99` (almost certainly human). + * + * @example 54 + */ + score: number; + /** + * A boolean value that is true if the request comes from a good bot, like Google or Bing. + * Most customers choose to allow this traffic. For more details, see [Traffic from known bots](https://developers.cloudflare.com/firewall/known-issues-and-faq/#how-does-firewall-rules-handle-traffic-from-known-bots). + */ + verifiedBot: boolean; + /** + * A boolean value that is true if the request originates from a + * Cloudflare-verified proxy service. + */ + corporateProxy: boolean; + /** + * A boolean value that's true if the request matches [file extensions](https://developers.cloudflare.com/bots/reference/static-resources/) for many types of static resources. + */ + staticResource: boolean; + /** + * List of IDs that correlate to the Bot Management heuristic detections made on a request (you can have multiple heuristic detections on the same request). + */ + detectionIds: number[]; +} +interface IncomingRequestCfPropertiesBotManagement { + /** + * Results of Cloudflare's Bot Management analysis + */ + botManagement: IncomingRequestCfPropertiesBotManagementBase; + /** + * Duplicate of `botManagement.score`. + * + * @deprecated + */ + clientTrustScore: number; +} +interface IncomingRequestCfPropertiesBotManagementEnterprise extends IncomingRequestCfPropertiesBotManagement { + /** + * Results of Cloudflare's Bot Management analysis + */ + botManagement: IncomingRequestCfPropertiesBotManagementBase & { + /** + * A [JA3 Fingerprint](https://developers.cloudflare.com/bots/concepts/ja3-fingerprint/) to help profile specific SSL/TLS clients + * across different destination IPs, Ports, and X509 certificates. + */ + ja3Hash: string; + }; +} +interface IncomingRequestCfPropertiesCloudflareForSaaSEnterprise { + /** + * Custom metadata set per-host in [Cloudflare for SaaS](https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/). + * + * This field is only present if you have Cloudflare for SaaS enabled on your account + * and you have followed the [required steps to enable it]((https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/custom-metadata/)). + */ + hostMetadata?: HostMetadata; +} +interface IncomingRequestCfPropertiesCloudflareAccessOrApiShield { + /** + * Information about the client certificate presented to Cloudflare. + * + * This is populated when the incoming request is served over TLS using + * either Cloudflare Access or API Shield (mTLS) + * and the presented SSL certificate has a valid + * [Certificate Serial Number](https://ldapwiki.com/wiki/Certificate%20Serial%20Number) + * (i.e., not `null` or `""`). + * + * Otherwise, a set of placeholder values are used. + * + * The property `certPresented` will be set to `"1"` when + * the object is populated (i.e. the above conditions were met). + */ + tlsClientAuth: IncomingRequestCfPropertiesTLSClientAuth | IncomingRequestCfPropertiesTLSClientAuthPlaceholder; +} +/** + * Metadata about the request's TLS handshake + */ +interface IncomingRequestCfPropertiesExportedAuthenticatorMetadata { + /** + * The client's [`HELLO` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2), encoded in hexadecimal + * + * @example "44372ba35fa1270921d318f34c12f155dc87b682cf36a790cfaa3ba8737a1b5d" + */ + clientHandshake: string; + /** + * The server's [`HELLO` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2), encoded in hexadecimal + * + * @example "44372ba35fa1270921d318f34c12f155dc87b682cf36a790cfaa3ba8737a1b5d" + */ + serverHandshake: string; + /** + * The client's [`FINISHED` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9), encoded in hexadecimal + * + * @example "084ee802fe1348f688220e2a6040a05b2199a761f33cf753abb1b006792d3f8b" + */ + clientFinished: string; + /** + * The server's [`FINISHED` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9), encoded in hexadecimal + * + * @example "084ee802fe1348f688220e2a6040a05b2199a761f33cf753abb1b006792d3f8b" + */ + serverFinished: string; +} +/** + * Geographic data about the request's origin. + */ +interface IncomingRequestCfPropertiesGeographicInformation { + /** + * The [ISO 3166-1 Alpha 2](https://www.iso.org/iso-3166-country-codes.html) country code the request originated from. + * + * If your worker is [configured to accept TOR connections](https://support.cloudflare.com/hc/en-us/articles/203306930-Understanding-Cloudflare-Tor-support-and-Onion-Routing), this may also be `"T1"`, indicating a request that originated over TOR. + * + * If Cloudflare is unable to determine where the request originated this property is omitted. + * + * The country code `"T1"` is used for requests originating on TOR. + * + * @example "GB" + */ + country?: Iso3166Alpha2Code | "T1"; + /** + * If present, this property indicates that the request originated in the EU + * + * @example "1" + */ + isEUCountry?: "1"; + /** + * A two-letter code indicating the continent the request originated from. + * + * @example "AN" + */ + continent?: ContinentCode; + /** + * The city the request originated from + * + * @example "Austin" + */ + city?: string; + /** + * Postal code of the incoming request + * + * @example "78701" + */ + postalCode?: string; + /** + * Latitude of the incoming request + * + * @example "30.27130" + */ + latitude?: string; + /** + * Longitude of the incoming request + * + * @example "-97.74260" + */ + longitude?: string; + /** + * Timezone of the incoming request + * + * @example "America/Chicago" + */ + timezone?: string; + /** + * If known, the ISO 3166-2 name for the first level region associated with + * the IP address of the incoming request + * + * @example "Texas" + */ + region?: string; + /** + * If known, the ISO 3166-2 code for the first-level region associated with + * the IP address of the incoming request + * + * @example "TX" + */ + regionCode?: string; + /** + * Metro code (DMA) of the incoming request + * + * @example "635" + */ + metroCode?: string; +} +/** Data about the incoming request's TLS certificate */ +interface IncomingRequestCfPropertiesTLSClientAuth { + /** Always `"1"`, indicating that the certificate was presented */ + certPresented: "1"; + /** + * Result of certificate verification. + * + * @example "FAILED:self signed certificate" + */ + certVerified: Exclude; + /** The presented certificate's revokation status. + * + * - A value of `"1"` indicates the certificate has been revoked + * - A value of `"0"` indicates the certificate has not been revoked + */ + certRevoked: "1" | "0"; + /** + * The certificate issuer's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) + * + * @example "CN=cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" + */ + certIssuerDN: string; + /** + * The certificate subject's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) + * + * @example "CN=*.cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" + */ + certSubjectDN: string; + /** + * The certificate issuer's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) ([RFC 2253](https://www.rfc-editor.org/rfc/rfc2253.html) formatted) + * + * @example "CN=cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" + */ + certIssuerDNRFC2253: string; + /** + * The certificate subject's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) ([RFC 2253](https://www.rfc-editor.org/rfc/rfc2253.html) formatted) + * + * @example "CN=*.cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" + */ + certSubjectDNRFC2253: string; + /** The certificate issuer's distinguished name (legacy policies) */ + certIssuerDNLegacy: string; + /** The certificate subject's distinguished name (legacy policies) */ + certSubjectDNLegacy: string; + /** + * The certificate's serial number + * + * @example "00936EACBE07F201DF" + */ + certSerial: string; + /** + * The certificate issuer's serial number + * + * @example "2489002934BDFEA34" + */ + certIssuerSerial: string; + /** + * The certificate's Subject Key Identifier + * + * @example "BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4" + */ + certSKI: string; + /** + * The certificate issuer's Subject Key Identifier + * + * @example "BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4" + */ + certIssuerSKI: string; + /** + * The certificate's SHA-1 fingerprint + * + * @example "6b9109f323999e52259cda7373ff0b4d26bd232e" + */ + certFingerprintSHA1: string; + /** + * The certificate's SHA-256 fingerprint + * + * @example "acf77cf37b4156a2708e34c4eb755f9b5dbbe5ebb55adfec8f11493438d19e6ad3f157f81fa3b98278453d5652b0c1fd1d71e5695ae4d709803a4d3f39de9dea" + */ + certFingerprintSHA256: string; + /** + * The effective starting date of the certificate + * + * @example "Dec 22 19:39:00 2018 GMT" + */ + certNotBefore: string; + /** + * The effective expiration date of the certificate + * + * @example "Dec 22 19:39:00 2018 GMT" + */ + certNotAfter: string; +} +/** Placeholder values for TLS Client Authorization */ +interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder { + certPresented: "0"; + certVerified: "NONE"; + certRevoked: "0"; + certIssuerDN: ""; + certSubjectDN: ""; + certIssuerDNRFC2253: ""; + certSubjectDNRFC2253: ""; + certIssuerDNLegacy: ""; + certSubjectDNLegacy: ""; + certSerial: ""; + certIssuerSerial: ""; + certSKI: ""; + certIssuerSKI: ""; + certFingerprintSHA1: ""; + certFingerprintSHA256: ""; + certNotBefore: ""; + certNotAfter: ""; +} +/** Possible outcomes of TLS verification */ +declare type CertVerificationStatus = +/** Authentication succeeded */ +"SUCCESS" +/** No certificate was presented */ + | "NONE" +/** Failed because the certificate was self-signed */ + | "FAILED:self signed certificate" +/** Failed because the certificate failed a trust chain check */ + | "FAILED:unable to verify the first certificate" +/** Failed because the certificate not yet valid */ + | "FAILED:certificate is not yet valid" +/** Failed because the certificate is expired */ + | "FAILED:certificate has expired" +/** Failed for another unspecified reason */ + | "FAILED"; +/** + * An upstream endpoint's response to a TCP `keepalive` message from Cloudflare. + */ +declare type IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus = 0 /** Unknown */ | 1 /** no keepalives (not found) */ | 2 /** no connection re-use, opening keepalive connection failed */ | 3 /** no connection re-use, keepalive accepted and saved */ | 4 /** connection re-use, refused by the origin server (`TCP FIN`) */ | 5; /** connection re-use, accepted by the origin server */ +/** ISO 3166-1 Alpha-2 codes */ +declare type Iso3166Alpha2Code = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW"; +/** The 2-letter continent codes Cloudflare uses */ +declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA"; +type CfProperties = IncomingRequestCfProperties | RequestInitCfProperties; +interface D1Meta { + duration: number; + size_after: number; + rows_read: number; + rows_written: number; + last_row_id: number; + changed_db: boolean; + changes: number; + /** + * The region of the database instance that executed the query. + */ + served_by_region?: string; + /** + * The three letters airport code of the colo that executed the query. + */ + served_by_colo?: string; + /** + * True if-and-only-if the database instance that executed the query was the primary. + */ + served_by_primary?: boolean; + timings?: { + /** + * The duration of the SQL query execution by the database instance. It doesn't include any network time. + */ + sql_duration_ms: number; + }; + /** + * Number of total attempts to execute the query, due to automatic retries. + * Note: All other fields in the response like `timings` only apply to the last attempt. + */ + total_attempts?: number; +} +interface D1Response { + success: true; + meta: D1Meta & Record; + error?: never; +} +type D1Result = D1Response & { + results: T[]; +}; +interface D1ExecResult { + count: number; + duration: number; +} +type D1SessionConstraint = +// Indicates that the first query should go to the primary, and the rest queries +// using the same D1DatabaseSession will go to any replica that is consistent with +// the bookmark maintained by the session (returned by the first query). +'first-primary' +// Indicates that the first query can go anywhere (primary or replica), and the rest queries +// using the same D1DatabaseSession will go to any replica that is consistent with +// the bookmark maintained by the session (returned by the first query). + | 'first-unconstrained'; +type D1SessionBookmark = string; +declare abstract class D1Database { + prepare(query: string): D1PreparedStatement; + batch(statements: D1PreparedStatement[]): Promise[]>; + exec(query: string): Promise; + /** + * Creates a new D1 Session anchored at the given constraint or the bookmark. + * All queries executed using the created session will have sequential consistency, + * meaning that all writes done through the session will be visible in subsequent reads. + * + * @param constraintOrBookmark Either the session constraint or the explicit bookmark to anchor the created session. + */ + withSession(constraintOrBookmark?: D1SessionBookmark | D1SessionConstraint): D1DatabaseSession; + /** + * @deprecated dump() will be removed soon, only applies to deprecated alpha v1 databases. + */ + dump(): Promise; +} +declare abstract class D1DatabaseSession { + prepare(query: string): D1PreparedStatement; + batch(statements: D1PreparedStatement[]): Promise[]>; + /** + * @returns The latest session bookmark across all executed queries on the session. + * If no query has been executed yet, `null` is returned. + */ + getBookmark(): D1SessionBookmark | null; +} +declare abstract class D1PreparedStatement { + bind(...values: unknown[]): D1PreparedStatement; + first(colName: string): Promise; + first>(): Promise; + run>(): Promise>; + all>(): Promise>; + raw(options: { + columnNames: true; + }): Promise<[ + string[], + ...T[] + ]>; + raw(options?: { + columnNames?: false; + }): Promise; +} +// `Disposable` was added to TypeScript's standard lib types in version 5.2. +// To support older TypeScript versions, define an empty `Disposable` interface. +// Users won't be able to use `using`/`Symbol.dispose` without upgrading to 5.2, +// but this will ensure type checking on older versions still passes. +// TypeScript's interface merging will ensure our empty interface is effectively +// ignored when `Disposable` is included in the standard lib. +interface Disposable { +} +/** + * The returned data after sending an email + */ +interface EmailSendResult { + /** + * The Email Message ID + */ + messageId: string; +} +/** + * An email message that can be sent from a Worker. + */ +interface EmailMessage { + /** + * Envelope From attribute of the email message. + */ + readonly from: string; + /** + * Envelope To attribute of the email message. + */ + readonly to: string; +} +/** + * An email message that is sent to a consumer Worker and can be rejected/forwarded. + */ +interface ForwardableEmailMessage extends EmailMessage { + /** + * Stream of the email message content. + */ + readonly raw: ReadableStream; + /** + * An [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers). + */ + readonly headers: Headers; + /** + * Size of the email message content. + */ + readonly rawSize: number; + /** + * Reject this email message by returning a permanent SMTP error back to the connecting client including the given reason. + * @param reason The reject reason. + * @returns void + */ + setReject(reason: string): void; + /** + * Forward this email message to a verified destination address of the account. + * @param rcptTo Verified destination address. + * @param headers A [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers). + * @returns A promise that resolves when the email message is forwarded. + */ + forward(rcptTo: string, headers?: Headers): Promise; + /** + * Reply to the sender of this email message with a new EmailMessage object. + * @param message The reply message. + * @returns A promise that resolves when the email message is replied. + */ + reply(message: EmailMessage): Promise; +} +/** A file attachment for an email message */ +type EmailAttachment = { + disposition: 'inline'; + contentId: string; + filename: string; + type: string; + content: string | ArrayBuffer | ArrayBufferView; +} | { + disposition: 'attachment'; + contentId?: undefined; + filename: string; + type: string; + content: string | ArrayBuffer | ArrayBufferView; +}; +/** An Email Address */ +interface EmailAddress { + name: string; + email: string; +} +/** + * A binding that allows a Worker to send email messages. + */ +interface SendEmail { + send(message: EmailMessage): Promise; + send(builder: { + from: string | EmailAddress; + to: string | string[]; + subject: string; + replyTo?: string | EmailAddress; + cc?: string | string[]; + bcc?: string | string[]; + headers?: Record; + text?: string; + html?: string; + attachments?: EmailAttachment[]; + }): Promise; +} +declare abstract class EmailEvent extends ExtendableEvent { + readonly message: ForwardableEmailMessage; +} +declare type EmailExportedHandler = (message: ForwardableEmailMessage, env: Env, ctx: ExecutionContext) => void | Promise; +declare module "cloudflare:email" { + let _EmailMessage: { + prototype: EmailMessage; + new (from: string, to: string, raw: ReadableStream | string): EmailMessage; + }; + export { _EmailMessage as EmailMessage }; +} +/** + * Hello World binding to serve as an explanatory example. DO NOT USE + */ +interface HelloWorldBinding { + /** + * Retrieve the current stored value + */ + get(): Promise<{ + value: string; + ms?: number; + }>; + /** + * Set a new stored value + */ + set(value: string): Promise; +} +interface Hyperdrive { + /** + * Connect directly to Hyperdrive as if it's your database, returning a TCP socket. + * + * Calling this method returns an identical socket to if you call + * `connect("host:port")` using the `host` and `port` fields from this object. + * Pick whichever approach works better with your preferred DB client library. + * + * Note that this socket is not yet authenticated -- it's expected that your + * code (or preferably, the client library of your choice) will authenticate + * using the information in this class's readonly fields. + */ + connect(): Socket; + /** + * A valid DB connection string that can be passed straight into the typical + * client library/driver/ORM. This will typically be the easiest way to use + * Hyperdrive. + */ + readonly connectionString: string; + /* + * A randomly generated hostname that is only valid within the context of the + * currently running Worker which, when passed into `connect()` function from + * the "cloudflare:sockets" module, will connect to the Hyperdrive instance + * for your database. + */ + readonly host: string; + /* + * The port that must be paired the the host field when connecting. + */ + readonly port: number; + /* + * The username to use when authenticating to your database via Hyperdrive. + * Unlike the host and password, this will be the same every time + */ + readonly user: string; + /* + * The randomly generated password to use when authenticating to your + * database via Hyperdrive. Like the host field, this password is only valid + * within the context of the currently running Worker instance from which + * it's read. + */ + readonly password: string; + /* + * The name of the database to connect to. + */ + readonly database: string; +} +// Copyright (c) 2024 Cloudflare, Inc. +// Licensed under the Apache 2.0 license found in the LICENSE file or at: +// https://opensource.org/licenses/Apache-2.0 +type ImageInfoResponse = { + format: 'image/svg+xml'; +} | { + format: string; + fileSize: number; + width: number; + height: number; +}; +type ImageTransform = { + width?: number; + height?: number; + background?: string; + blur?: number; + border?: { + color?: string; + width?: number; + } | { + top?: number; + bottom?: number; + left?: number; + right?: number; + }; + brightness?: number; + contrast?: number; + fit?: 'scale-down' | 'contain' | 'pad' | 'squeeze' | 'cover' | 'crop'; + flip?: 'h' | 'v' | 'hv'; + gamma?: number; + segment?: 'foreground'; + gravity?: 'face' | 'left' | 'right' | 'top' | 'bottom' | 'center' | 'auto' | 'entropy' | { + x?: number; + y?: number; + mode: 'remainder' | 'box-center'; + }; + rotate?: 0 | 90 | 180 | 270; + saturation?: number; + sharpen?: number; + trim?: 'border' | { + top?: number; + bottom?: number; + left?: number; + right?: number; + width?: number; + height?: number; + border?: boolean | { + color?: string; + tolerance?: number; + keep?: number; + }; + }; +}; +type ImageDrawOptions = { + opacity?: number; + repeat?: boolean | string; + top?: number; + left?: number; + bottom?: number; + right?: number; +}; +type ImageInputOptions = { + encoding?: 'base64'; +}; +type ImageOutputOptions = { + format: 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp' | 'image/avif' | 'rgb' | 'rgba'; + quality?: number; + background?: string; + anim?: boolean; +}; +interface ImagesBinding { + /** + * Get image metadata (type, width and height) + * @throws {@link ImagesError} with code 9412 if input is not an image + * @param stream The image bytes + */ + info(stream: ReadableStream, options?: ImageInputOptions): Promise; + /** + * Begin applying a series of transformations to an image + * @param stream The image bytes + * @returns A transform handle + */ + input(stream: ReadableStream, options?: ImageInputOptions): ImageTransformer; +} +interface ImageTransformer { + /** + * Apply transform next, returning a transform handle. + * You can then apply more transformations, draw, or retrieve the output. + * @param transform + */ + transform(transform: ImageTransform): ImageTransformer; + /** + * Draw an image on this transformer, returning a transform handle. + * You can then apply more transformations, draw, or retrieve the output. + * @param image The image (or transformer that will give the image) to draw + * @param options The options configuring how to draw the image + */ + draw(image: ReadableStream | ImageTransformer, options?: ImageDrawOptions): ImageTransformer; + /** + * Retrieve the image that results from applying the transforms to the + * provided input + * @param options Options that apply to the output e.g. output format + */ + output(options: ImageOutputOptions): Promise; +} +type ImageTransformationOutputOptions = { + encoding?: 'base64'; +}; +interface ImageTransformationResult { + /** + * The image as a response, ready to store in cache or return to users + */ + response(): Response; + /** + * The content type of the returned image + */ + contentType(): string; + /** + * The bytes of the response + */ + image(options?: ImageTransformationOutputOptions): ReadableStream; +} +interface ImagesError extends Error { + readonly code: number; + readonly message: string; + readonly stack?: string; +} +/** + * Media binding for transforming media streams. + * Provides the entry point for media transformation operations. + */ +interface MediaBinding { + /** + * Creates a media transformer from an input stream. + * @param media - The input media bytes + * @returns A MediaTransformer instance for applying transformations + */ + input(media: ReadableStream): MediaTransformer; +} +/** + * Media transformer for applying transformation operations to media content. + * Handles sizing, fitting, and other input transformation parameters. + */ +interface MediaTransformer { + /** + * Applies transformation options to the media content. + * @param transform - Configuration for how the media should be transformed + * @returns A generator for producing the transformed media output + */ + transform(transform: MediaTransformationInputOptions): MediaTransformationGenerator; +} +/** + * Generator for producing media transformation results. + * Configures the output format and parameters for the transformed media. + */ +interface MediaTransformationGenerator { + /** + * Generates the final media output with specified options. + * @param output - Configuration for the output format and parameters + * @returns The final transformation result containing the transformed media + */ + output(output: MediaTransformationOutputOptions): MediaTransformationResult; +} +/** + * Result of a media transformation operation. + * Provides multiple ways to access the transformed media content. + */ +interface MediaTransformationResult { + /** + * Returns the transformed media as a readable stream of bytes. + * @returns A stream containing the transformed media data + */ + media(): ReadableStream; + /** + * Returns the transformed media as an HTTP response object. + * @returns The transformed media as a Response, ready to store in cache or return to users + */ + response(): Response; + /** + * Returns the MIME type of the transformed media. + * @returns The content type string (e.g., 'image/jpeg', 'video/mp4') + */ + contentType(): string; +} +/** + * Configuration options for transforming media input. + * Controls how the media should be resized and fitted. + */ +type MediaTransformationInputOptions = { + /** How the media should be resized to fit the specified dimensions */ + fit?: 'contain' | 'cover' | 'scale-down'; + /** Target width in pixels */ + width?: number; + /** Target height in pixels */ + height?: number; +}; +/** + * Configuration options for Media Transformations output. + * Controls the format, timing, and type of the generated output. + */ +type MediaTransformationOutputOptions = { + /** + * Output mode determining the type of media to generate + */ + mode?: 'video' | 'spritesheet' | 'frame' | 'audio'; + /** Whether to include audio in the output */ + audio?: boolean; + /** + * Starting timestamp for frame extraction or start time for clips. (e.g. '2s'). + */ + time?: string; + /** + * Duration for video clips, audio extraction, and spritesheet generation (e.g. '5s'). + */ + duration?: string; + /** + * Number of frames in the spritesheet. + */ + imageCount?: number; + /** + * Output format for the generated media. + */ + format?: 'jpg' | 'png' | 'm4a'; +}; +/** + * Error object for media transformation operations. + * Extends the standard Error interface with additional media-specific information. + */ +interface MediaError extends Error { + readonly code: number; + readonly message: string; + readonly stack?: string; +} +declare module 'cloudflare:node' { + interface NodeStyleServer { + listen(...args: unknown[]): this; + address(): { + port?: number | null | undefined; + }; + } + export function httpServerHandler(port: number): ExportedHandler; + export function httpServerHandler(options: { + port: number; + }): ExportedHandler; + export function httpServerHandler(server: NodeStyleServer): ExportedHandler; +} +type Params

= Record; +type EventContext = { + request: Request>; + functionPath: string; + waitUntil: (promise: Promise) => void; + passThroughOnException: () => void; + next: (input?: Request | string, init?: RequestInit) => Promise; + env: Env & { + ASSETS: { + fetch: typeof fetch; + }; + }; + params: Params

; + data: Data; +}; +type PagesFunction = Record> = (context: EventContext) => Response | Promise; +type EventPluginContext = { + request: Request>; + functionPath: string; + waitUntil: (promise: Promise) => void; + passThroughOnException: () => void; + next: (input?: Request | string, init?: RequestInit) => Promise; + env: Env & { + ASSETS: { + fetch: typeof fetch; + }; + }; + params: Params

; + data: Data; + pluginArgs: PluginArgs; +}; +type PagesPluginFunction = Record, PluginArgs = unknown> = (context: EventPluginContext) => Response | Promise; +declare module "assets:*" { + export const onRequest: PagesFunction; +} +// Copyright (c) 2022-2023 Cloudflare, Inc. +// Licensed under the Apache 2.0 license found in the LICENSE file or at: +// https://opensource.org/licenses/Apache-2.0 +declare module "cloudflare:pipelines" { + export abstract class PipelineTransformationEntrypoint { + protected env: Env; + protected ctx: ExecutionContext; + constructor(ctx: ExecutionContext, env: Env); + /** + * run receives an array of PipelineRecord which can be + * transformed and returned to the pipeline + * @param records Incoming records from the pipeline to be transformed + * @param metadata Information about the specific pipeline calling the transformation entrypoint + * @returns A promise containing the transformed PipelineRecord array + */ + public run(records: I[], metadata: PipelineBatchMetadata): Promise; + } + export type PipelineRecord = Record; + export type PipelineBatchMetadata = { + pipelineId: string; + pipelineName: string; + }; + export interface Pipeline { + /** + * The Pipeline interface represents the type of a binding to a Pipeline + * + * @param records The records to send to the pipeline + */ + send(records: T[]): Promise; + } +} +// PubSubMessage represents an incoming PubSub message. +// The message includes metadata about the broker, the client, and the payload +// itself. +// https://developers.cloudflare.com/pub-sub/ +interface PubSubMessage { + // Message ID + readonly mid: number; + // MQTT broker FQDN in the form mqtts://BROKER.NAMESPACE.cloudflarepubsub.com:PORT + readonly broker: string; + // The MQTT topic the message was sent on. + readonly topic: string; + // The client ID of the client that published this message. + readonly clientId: string; + // The unique identifier (JWT ID) used by the client to authenticate, if token + // auth was used. + readonly jti?: string; + // A Unix timestamp (seconds from Jan 1, 1970), set when the Pub/Sub Broker + // received the message from the client. + readonly receivedAt: number; + // An (optional) string with the MIME type of the payload, if set by the + // client. + readonly contentType: string; + // Set to 1 when the payload is a UTF-8 string + // https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901063 + readonly payloadFormatIndicator: number; + // Pub/Sub (MQTT) payloads can be UTF-8 strings, or byte arrays. + // You can use payloadFormatIndicator to inspect this before decoding. + payload: string | Uint8Array; +} +// JsonWebKey extended by kid parameter +interface JsonWebKeyWithKid extends JsonWebKey { + // Key Identifier of the JWK + readonly kid: string; +} +interface RateLimitOptions { + key: string; +} +interface RateLimitOutcome { + success: boolean; +} +interface RateLimit { + /** + * Rate limit a request based on the provided options. + * @see https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/ + * @returns A promise that resolves with the outcome of the rate limit. + */ + limit(options: RateLimitOptions): Promise; +} +// Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need +// to referenced by `Fetcher`. This is included in the "importable" version of the types which +// strips all `module` blocks. +declare namespace Rpc { + // Branded types for identifying `WorkerEntrypoint`/`DurableObject`/`Target`s. + // TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`. + // For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to + // accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape) + export const __RPC_STUB_BRAND: '__RPC_STUB_BRAND'; + export const __RPC_TARGET_BRAND: '__RPC_TARGET_BRAND'; + export const __WORKER_ENTRYPOINT_BRAND: '__WORKER_ENTRYPOINT_BRAND'; + export const __DURABLE_OBJECT_BRAND: '__DURABLE_OBJECT_BRAND'; + export const __WORKFLOW_ENTRYPOINT_BRAND: '__WORKFLOW_ENTRYPOINT_BRAND'; + export interface RpcTargetBranded { + [__RPC_TARGET_BRAND]: never; + } + export interface WorkerEntrypointBranded { + [__WORKER_ENTRYPOINT_BRAND]: never; + } + export interface DurableObjectBranded { + [__DURABLE_OBJECT_BRAND]: never; + } + export interface WorkflowEntrypointBranded { + [__WORKFLOW_ENTRYPOINT_BRAND]: never; + } + export type EntrypointBranded = WorkerEntrypointBranded | DurableObjectBranded | WorkflowEntrypointBranded; + // Types that can be used through `Stub`s + export type Stubable = RpcTargetBranded | ((...args: any[]) => any); + // Types that can be passed over RPC + // The reason for using a generic type here is to build a serializable subset of structured + // cloneable composite types. This allows types defined with the "interface" keyword to pass the + // serializable check as well. Otherwise, only types defined with the "type" keyword would pass. + type Serializable = + // Structured cloneables + BaseType + // Structured cloneable composites + | Map ? Serializable : never, T extends Map ? Serializable : never> | Set ? Serializable : never> | ReadonlyArray ? Serializable : never> | { + [K in keyof T]: K extends number | string ? Serializable : never; + } + // Special types + | Stub + // Serialized as stubs, see `Stubify` + | Stubable; + // Base type for all RPC stubs, including common memory management methods. + // `T` is used as a marker type for unwrapping `Stub`s later. + interface StubBase extends Disposable { + [__RPC_STUB_BRAND]: T; + dup(): this; + } + export type Stub = Provider & StubBase; + // This represents all the types that can be sent as-is over an RPC boundary + type BaseType = void | undefined | null | boolean | number | bigint | string | TypedArray | ArrayBuffer | DataView | Date | Error | RegExp | ReadableStream | WritableStream | Request | Response | Headers; + // Recursively rewrite all `Stubable` types with `Stub`s + // prettier-ignore + type Stubify = T extends Stubable ? Stub : T extends Map ? Map, Stubify> : T extends Set ? Set> : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends BaseType ? T : T extends { + [key: string | number]: any; + } ? { + [K in keyof T]: Stubify; + } : T; + // Recursively rewrite all `Stub`s with the corresponding `T`s. + // Note we use `StubBase` instead of `Stub` here to avoid circular dependencies: + // `Stub` depends on `Provider`, which depends on `Unstubify`, which would depend on `Stub`. + // prettier-ignore + type Unstubify = T extends StubBase ? V : T extends Map ? Map, Unstubify> : T extends Set ? Set> : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends BaseType ? T : T extends { + [key: string | number]: unknown; + } ? { + [K in keyof T]: Unstubify; + } : T; + type UnstubifyAll = { + [I in keyof A]: Unstubify; + }; + // Utility type for adding `Provider`/`Disposable`s to `object` types only. + // Note `unknown & T` is equivalent to `T`. + type MaybeProvider = T extends object ? Provider : unknown; + type MaybeDisposable = T extends object ? Disposable : unknown; + // Type for method return or property on an RPC interface. + // - Stubable types are replaced by stubs. + // - Serializable types are passed by value, with stubable types replaced by stubs + // and a top-level `Disposer`. + // Everything else can't be passed over PRC. + // Technically, we use custom thenables here, but they quack like `Promise`s. + // Intersecting with `(Maybe)Provider` allows pipelining. + // prettier-ignore + type Result = R extends Stubable ? Promise> & Provider : R extends Serializable ? Promise & MaybeDisposable> & MaybeProvider : never; + // Type for method or property on an RPC interface. + // For methods, unwrap `Stub`s in parameters, and rewrite returns to be `Result`s. + // Unwrapping `Stub`s allows calling with `Stubable` arguments. + // For properties, rewrite types to be `Result`s. + // In each case, unwrap `Promise`s. + type MethodOrProperty = V extends (...args: infer P) => infer R ? (...args: UnstubifyAll

) => Result> : Result>; + // Type for the callable part of an `Provider` if `T` is callable. + // This is intersected with methods/properties. + type MaybeCallableProvider = T extends (...args: any[]) => any ? MethodOrProperty : unknown; + // Base type for all other types providing RPC-like interfaces. + // Rewrites all methods/properties to be `MethodOrProperty`s, while preserving callable types. + // `Reserved` names (e.g. stub method names like `dup()`) and symbols can't be accessed over RPC. + export type Provider = MaybeCallableProvider & Pick<{ + [K in keyof T]: MethodOrProperty; + }, Exclude>>; +} +declare namespace Cloudflare { + // Type of `env`. + // + // The specific project can extend `Env` by redeclaring it in project-specific files. Typescript + // will merge all declarations. + // + // You can use `wrangler types` to generate the `Env` type automatically. + interface Env { + } + // Project-specific parameters used to inform types. + // + // This interface is, again, intended to be declared in project-specific files, and then that + // declaration will be merged with this one. + // + // A project should have a declaration like this: + // + // interface GlobalProps { + // // Declares the main module's exports. Used to populate Cloudflare.Exports aka the type + // // of `ctx.exports`. + // mainModule: typeof import("my-main-module"); + // + // // Declares which of the main module's exports are configured with durable storage, and + // // thus should behave as Durable Object namsepace bindings. + // durableNamespaces: "MyDurableObject" | "AnotherDurableObject"; + // } + // + // You can use `wrangler types` to generate `GlobalProps` automatically. + interface GlobalProps { + } + // Evaluates to the type of a property in GlobalProps, defaulting to `Default` if it is not + // present. + type GlobalProp = K extends keyof GlobalProps ? GlobalProps[K] : Default; + // The type of the program's main module exports, if known. Requires `GlobalProps` to declare the + // `mainModule` property. + type MainModule = GlobalProp<"mainModule", {}>; + // The type of ctx.exports, which contains loopback bindings for all top-level exports. + type Exports = { + [K in keyof MainModule]: LoopbackForExport + // If the export is listed in `durableNamespaces`, then it is also a + // DurableObjectNamespace. + & (K extends GlobalProp<"durableNamespaces", never> ? MainModule[K] extends new (...args: any[]) => infer DoInstance ? DoInstance extends Rpc.DurableObjectBranded ? DurableObjectNamespace : DurableObjectNamespace : DurableObjectNamespace : {}); + }; +} +declare namespace CloudflareWorkersModule { + export type RpcStub = Rpc.Stub; + export const RpcStub: { + new (value: T): Rpc.Stub; + }; + export abstract class RpcTarget implements Rpc.RpcTargetBranded { + [Rpc.__RPC_TARGET_BRAND]: never; + } + // `protected` fields don't appear in `keyof`s, so can't be accessed over RPC + export abstract class WorkerEntrypoint implements Rpc.WorkerEntrypointBranded { + [Rpc.__WORKER_ENTRYPOINT_BRAND]: never; + protected ctx: ExecutionContext; + protected env: Env; + constructor(ctx: ExecutionContext, env: Env); + email?(message: ForwardableEmailMessage): void | Promise; + fetch?(request: Request): Response | Promise; + queue?(batch: MessageBatch): void | Promise; + scheduled?(controller: ScheduledController): void | Promise; + tail?(events: TraceItem[]): void | Promise; + tailStream?(event: TailStream.TailEvent): TailStream.TailEventHandlerType | Promise; + test?(controller: TestController): void | Promise; + trace?(traces: TraceItem[]): void | Promise; + } + export abstract class DurableObject implements Rpc.DurableObjectBranded { + [Rpc.__DURABLE_OBJECT_BRAND]: never; + protected ctx: DurableObjectState; + protected env: Env; + constructor(ctx: DurableObjectState, env: Env); + alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise; + fetch?(request: Request): Response | Promise; + webSocketMessage?(ws: WebSocket, message: string | ArrayBuffer): void | Promise; + webSocketClose?(ws: WebSocket, code: number, reason: string, wasClean: boolean): void | Promise; + webSocketError?(ws: WebSocket, error: unknown): void | Promise; + } + export type WorkflowDurationLabel = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year'; + export type WorkflowSleepDuration = `${number} ${WorkflowDurationLabel}${'s' | ''}` | number; + export type WorkflowDelayDuration = WorkflowSleepDuration; + export type WorkflowTimeoutDuration = WorkflowSleepDuration; + export type WorkflowRetentionDuration = WorkflowSleepDuration; + export type WorkflowBackoff = 'constant' | 'linear' | 'exponential'; + export type WorkflowStepConfig = { + retries?: { + limit: number; + delay: WorkflowDelayDuration | number; + backoff?: WorkflowBackoff; + }; + timeout?: WorkflowTimeoutDuration | number; + }; + export type WorkflowEvent = { + payload: Readonly; + timestamp: Date; + instanceId: string; + }; + export type WorkflowStepEvent = { + payload: Readonly; + timestamp: Date; + type: string; + }; + export abstract class WorkflowStep { + do>(name: string, callback: () => Promise): Promise; + do>(name: string, config: WorkflowStepConfig, callback: () => Promise): Promise; + sleep: (name: string, duration: WorkflowSleepDuration) => Promise; + sleepUntil: (name: string, timestamp: Date | number) => Promise; + waitForEvent>(name: string, options: { + type: string; + timeout?: WorkflowTimeoutDuration | number; + }): Promise>; + } + export type WorkflowInstanceStatus = 'queued' | 'running' | 'paused' | 'errored' | 'terminated' | 'complete' | 'waiting' | 'waitingForPause' | 'unknown'; + export abstract class WorkflowEntrypoint | unknown = unknown> implements Rpc.WorkflowEntrypointBranded { + [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never; + protected ctx: ExecutionContext; + protected env: Env; + constructor(ctx: ExecutionContext, env: Env); + run(event: Readonly>, step: WorkflowStep): Promise; + } + export function waitUntil(promise: Promise): void; + export function withEnv(newEnv: unknown, fn: () => unknown): unknown; + export function withExports(newExports: unknown, fn: () => unknown): unknown; + export function withEnvAndExports(newEnv: unknown, newExports: unknown, fn: () => unknown): unknown; + export const env: Cloudflare.Env; + export const exports: Cloudflare.Exports; +} +declare module 'cloudflare:workers' { + export = CloudflareWorkersModule; +} +interface SecretsStoreSecret { + /** + * Get a secret from the Secrets Store, returning a string of the secret value + * if it exists, or throws an error if it does not exist + */ + get(): Promise; +} +declare module "cloudflare:sockets" { + function _connect(address: string | SocketAddress, options?: SocketOptions): Socket; + export { _connect as connect }; +} +type MarkdownDocument = { + name: string; + blob: Blob; +}; +type ConversionResponse = { + id: string; + name: string; + mimeType: string; + format: 'markdown'; + tokens: number; + data: string; +} | { + id: string; + name: string; + mimeType: string; + format: 'error'; + error: string; +}; +type ImageConversionOptions = { + descriptionLanguage?: 'en' | 'es' | 'fr' | 'it' | 'pt' | 'de'; +}; +type EmbeddedImageConversionOptions = ImageConversionOptions & { + convert?: boolean; + maxConvertedImages?: number; +}; +type ConversionOptions = { + html?: { + images?: EmbeddedImageConversionOptions & { + convertOGImage?: boolean; + }; + hostname?: string; + }; + docx?: { + images?: EmbeddedImageConversionOptions; + }; + image?: ImageConversionOptions; + pdf?: { + images?: EmbeddedImageConversionOptions; + metadata?: boolean; + }; +}; +type ConversionRequestOptions = { + gateway?: GatewayOptions; + extraHeaders?: object; + conversionOptions?: ConversionOptions; +}; +type SupportedFileFormat = { + mimeType: string; + extension: string; +}; +declare abstract class ToMarkdownService { + transform(files: MarkdownDocument[], options?: ConversionRequestOptions): Promise; + transform(files: MarkdownDocument, options?: ConversionRequestOptions): Promise; + supported(): Promise; +} +declare namespace TailStream { + interface Header { + readonly name: string; + readonly value: string; + } + interface FetchEventInfo { + readonly type: "fetch"; + readonly method: string; + readonly url: string; + readonly cfJson?: object; + readonly headers: Header[]; + } + interface JsRpcEventInfo { + readonly type: "jsrpc"; + } + interface ScheduledEventInfo { + readonly type: "scheduled"; + readonly scheduledTime: Date; + readonly cron: string; + } + interface AlarmEventInfo { + readonly type: "alarm"; + readonly scheduledTime: Date; + } + interface QueueEventInfo { + readonly type: "queue"; + readonly queueName: string; + readonly batchSize: number; + } + interface EmailEventInfo { + readonly type: "email"; + readonly mailFrom: string; + readonly rcptTo: string; + readonly rawSize: number; + } + interface TraceEventInfo { + readonly type: "trace"; + readonly traces: (string | null)[]; + } + interface HibernatableWebSocketEventInfoMessage { + readonly type: "message"; + } + interface HibernatableWebSocketEventInfoError { + readonly type: "error"; + } + interface HibernatableWebSocketEventInfoClose { + readonly type: "close"; + readonly code: number; + readonly wasClean: boolean; + } + interface HibernatableWebSocketEventInfo { + readonly type: "hibernatableWebSocket"; + readonly info: HibernatableWebSocketEventInfoClose | HibernatableWebSocketEventInfoError | HibernatableWebSocketEventInfoMessage; + } + interface CustomEventInfo { + readonly type: "custom"; + } + interface FetchResponseInfo { + readonly type: "fetch"; + readonly statusCode: number; + } + type EventOutcome = "ok" | "canceled" | "exception" | "unknown" | "killSwitch" | "daemonDown" | "exceededCpu" | "exceededMemory" | "loadShed" | "responseStreamDisconnected" | "scriptNotFound"; + interface ScriptVersion { + readonly id: string; + readonly tag?: string; + readonly message?: string; + } + interface Onset { + readonly type: "onset"; + readonly attributes: Attribute[]; + // id for the span being opened by this Onset event. + readonly spanId: string; + readonly dispatchNamespace?: string; + readonly entrypoint?: string; + readonly executionModel: string; + readonly scriptName?: string; + readonly scriptTags?: string[]; + readonly scriptVersion?: ScriptVersion; + readonly info: FetchEventInfo | JsRpcEventInfo | ScheduledEventInfo | AlarmEventInfo | QueueEventInfo | EmailEventInfo | TraceEventInfo | HibernatableWebSocketEventInfo | CustomEventInfo; + } + interface Outcome { + readonly type: "outcome"; + readonly outcome: EventOutcome; + readonly cpuTime: number; + readonly wallTime: number; + } + interface SpanOpen { + readonly type: "spanOpen"; + readonly name: string; + // id for the span being opened by this SpanOpen event. + readonly spanId: string; + readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes; + } + interface SpanClose { + readonly type: "spanClose"; + readonly outcome: EventOutcome; + } + interface DiagnosticChannelEvent { + readonly type: "diagnosticChannel"; + readonly channel: string; + readonly message: any; + } + interface Exception { + readonly type: "exception"; + readonly name: string; + readonly message: string; + readonly stack?: string; + } + interface Log { + readonly type: "log"; + readonly level: "debug" | "error" | "info" | "log" | "warn"; + readonly message: object; + } + interface DroppedEventsDiagnostic { + readonly diagnosticsType: "droppedEvents"; + readonly count: number; + } + interface StreamDiagnostic { + readonly type: 'streamDiagnostic'; + // To add new diagnostic types, define a new interface and add it to this union type. + readonly diagnostic: DroppedEventsDiagnostic; + } + // This marks the worker handler return information. + // This is separate from Outcome because the worker invocation can live for a long time after + // returning. For example - Websockets that return an http upgrade response but then continue + // streaming information or SSE http connections. + interface Return { + readonly type: "return"; + readonly info?: FetchResponseInfo; + } + interface Attribute { + readonly name: string; + readonly value: string | string[] | boolean | boolean[] | number | number[] | bigint | bigint[]; + } + interface Attributes { + readonly type: "attributes"; + readonly info: Attribute[]; + } + type EventType = Onset | Outcome | SpanOpen | SpanClose | DiagnosticChannelEvent | Exception | Log | StreamDiagnostic | Return | Attributes; + // Context in which this trace event lives. + interface SpanContext { + // Single id for the entire top-level invocation + // This should be a new traceId for the first worker stage invoked in the eyeball request and then + // same-account service-bindings should reuse the same traceId but cross-account service-bindings + // should use a new traceId. + readonly traceId: string; + // spanId in which this event is handled + // for Onset and SpanOpen events this would be the parent span id + // for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events + // For Hibernate and Mark this would be the span under which they were emitted. + // spanId is not set ONLY if: + // 1. This is an Onset event + // 2. We are not inheriting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation) + readonly spanId?: string; + } + interface TailEvent { + // invocation id of the currently invoked worker stage. + // invocation id will always be unique to every Onset event and will be the same until the Outcome event. + readonly invocationId: string; + // Inherited spanContext for this event. + readonly spanContext: SpanContext; + readonly timestamp: Date; + readonly sequence: number; + readonly event: Event; + } + type TailEventHandler = (event: TailEvent) => void | Promise; + type TailEventHandlerObject = { + outcome?: TailEventHandler; + spanOpen?: TailEventHandler; + spanClose?: TailEventHandler; + diagnosticChannel?: TailEventHandler; + exception?: TailEventHandler; + log?: TailEventHandler; + return?: TailEventHandler; + attributes?: TailEventHandler; + }; + type TailEventHandlerType = TailEventHandler | TailEventHandlerObject; +} +// Copyright (c) 2022-2023 Cloudflare, Inc. +// Licensed under the Apache 2.0 license found in the LICENSE file or at: +// https://opensource.org/licenses/Apache-2.0 +/** + * Data types supported for holding vector metadata. + */ +type VectorizeVectorMetadataValue = string | number | boolean | string[]; +/** + * Additional information to associate with a vector. + */ +type VectorizeVectorMetadata = VectorizeVectorMetadataValue | Record; +type VectorFloatArray = Float32Array | Float64Array; +interface VectorizeError { + code?: number; + error: string; +} +/** + * Comparison logic/operation to use for metadata filtering. + * + * This list is expected to grow as support for more operations are released. + */ +type VectorizeVectorMetadataFilterOp = '$eq' | '$ne' | '$lt' | '$lte' | '$gt' | '$gte'; +type VectorizeVectorMetadataFilterCollectionOp = '$in' | '$nin'; +/** + * Filter criteria for vector metadata used to limit the retrieved query result set. + */ +type VectorizeVectorMetadataFilter = { + [field: string]: Exclude | null | { + [Op in VectorizeVectorMetadataFilterOp]?: Exclude | null; + } | { + [Op in VectorizeVectorMetadataFilterCollectionOp]?: Exclude[]; + }; +}; +/** + * Supported distance metrics for an index. + * Distance metrics determine how other "similar" vectors are determined. + */ +type VectorizeDistanceMetric = "euclidean" | "cosine" | "dot-product"; +/** + * Metadata return levels for a Vectorize query. + * + * Default to "none". + * + * @property all Full metadata for the vector return set, including all fields (including those un-indexed) without truncation. This is a more expensive retrieval, as it requires additional fetching & reading of un-indexed data. + * @property indexed Return all metadata fields configured for indexing in the vector return set. This level of retrieval is "free" in that no additional overhead is incurred returning this data. However, note that indexed metadata is subject to truncation (especially for larger strings). + * @property none No indexed metadata will be returned. + */ +type VectorizeMetadataRetrievalLevel = "all" | "indexed" | "none"; +interface VectorizeQueryOptions { + topK?: number; + namespace?: string; + returnValues?: boolean; + returnMetadata?: boolean | VectorizeMetadataRetrievalLevel; + filter?: VectorizeVectorMetadataFilter; +} +/** + * Information about the configuration of an index. + */ +type VectorizeIndexConfig = { + dimensions: number; + metric: VectorizeDistanceMetric; +} | { + preset: string; // keep this generic, as we'll be adding more presets in the future and this is only in a read capacity +}; +/** + * Metadata about an existing index. + * + * This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released. + * See {@link VectorizeIndexInfo} for its post-beta equivalent. + */ +interface VectorizeIndexDetails { + /** The unique ID of the index */ + readonly id: string; + /** The name of the index. */ + name: string; + /** (optional) A human readable description for the index. */ + description?: string; + /** The index configuration, including the dimension size and distance metric. */ + config: VectorizeIndexConfig; + /** The number of records containing vectors within the index. */ + vectorsCount: number; +} +/** + * Metadata about an existing index. + */ +interface VectorizeIndexInfo { + /** The number of records containing vectors within the index. */ + vectorCount: number; + /** Number of dimensions the index has been configured for. */ + dimensions: number; + /** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */ + processedUpToDatetime: number; + /** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */ + processedUpToMutation: number; +} +/** + * Represents a single vector value set along with its associated metadata. + */ +interface VectorizeVector { + /** The ID for the vector. This can be user-defined, and must be unique. It should uniquely identify the object, and is best set based on the ID of what the vector represents. */ + id: string; + /** The vector values */ + values: VectorFloatArray | number[]; + /** The namespace this vector belongs to. */ + namespace?: string; + /** Metadata associated with the vector. Includes the values of other fields and potentially additional details. */ + metadata?: Record; +} +/** + * Represents a matched vector for a query along with its score and (if specified) the matching vector information. + */ +type VectorizeMatch = Pick, "values"> & Omit & { + /** The score or rank for similarity, when returned as a result */ + score: number; +}; +/** + * A set of matching {@link VectorizeMatch} for a particular query. + */ +interface VectorizeMatches { + matches: VectorizeMatch[]; + count: number; +} +/** + * Results of an operation that performed a mutation on a set of vectors. + * Here, `ids` is a list of vectors that were successfully processed. + * + * This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released. + * See {@link VectorizeAsyncMutation} for its post-beta equivalent. + */ +interface VectorizeVectorMutation { + /* List of ids of vectors that were successfully processed. */ + ids: string[]; + /* Total count of the number of processed vectors. */ + count: number; +} +/** + * Result type indicating a mutation on the Vectorize Index. + * Actual mutations are processed async where the `mutationId` is the unique identifier for the operation. + */ +interface VectorizeAsyncMutation { + /** The unique identifier for the async mutation operation containing the changeset. */ + mutationId: string; +} +/** + * A Vectorize Vector Search Index for querying vectors/embeddings. + * + * This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released. + * See {@link Vectorize} for its new implementation. + */ +declare abstract class VectorizeIndex { + /** + * Get information about the currently bound index. + * @returns A promise that resolves with information about the current index. + */ + public describe(): Promise; + /** + * Use the provided vector to perform a similarity search across the index. + * @param vector Input vector that will be used to drive the similarity search. + * @param options Configuration options to massage the returned data. + * @returns A promise that resolves with matched and scored vectors. + */ + public query(vector: VectorFloatArray | number[], options?: VectorizeQueryOptions): Promise; + /** + * Insert a list of vectors into the index dataset. If a provided id exists, an error will be thrown. + * @param vectors List of vectors that will be inserted. + * @returns A promise that resolves with the ids & count of records that were successfully processed. + */ + public insert(vectors: VectorizeVector[]): Promise; + /** + * Upsert a list of vectors into the index dataset. If a provided id exists, it will be replaced with the new values. + * @param vectors List of vectors that will be upserted. + * @returns A promise that resolves with the ids & count of records that were successfully processed. + */ + public upsert(vectors: VectorizeVector[]): Promise; + /** + * Delete a list of vectors with a matching id. + * @param ids List of vector ids that should be deleted. + * @returns A promise that resolves with the ids & count of records that were successfully processed (and thus deleted). + */ + public deleteByIds(ids: string[]): Promise; + /** + * Get a list of vectors with a matching id. + * @param ids List of vector ids that should be returned. + * @returns A promise that resolves with the raw unscored vectors matching the id set. + */ + public getByIds(ids: string[]): Promise; +} +/** + * A Vectorize Vector Search Index for querying vectors/embeddings. + * + * Mutations in this version are async, returning a mutation id. + */ +declare abstract class Vectorize { + /** + * Get information about the currently bound index. + * @returns A promise that resolves with information about the current index. + */ + public describe(): Promise; + /** + * Use the provided vector to perform a similarity search across the index. + * @param vector Input vector that will be used to drive the similarity search. + * @param options Configuration options to massage the returned data. + * @returns A promise that resolves with matched and scored vectors. + */ + public query(vector: VectorFloatArray | number[], options?: VectorizeQueryOptions): Promise; + /** + * Use the provided vector-id to perform a similarity search across the index. + * @param vectorId Id for a vector in the index against which the index should be queried. + * @param options Configuration options to massage the returned data. + * @returns A promise that resolves with matched and scored vectors. + */ + public queryById(vectorId: string, options?: VectorizeQueryOptions): Promise; + /** + * Insert a list of vectors into the index dataset. If a provided id exists, an error will be thrown. + * @param vectors List of vectors that will be inserted. + * @returns A promise that resolves with a unique identifier of a mutation containing the insert changeset. + */ + public insert(vectors: VectorizeVector[]): Promise; + /** + * Upsert a list of vectors into the index dataset. If a provided id exists, it will be replaced with the new values. + * @param vectors List of vectors that will be upserted. + * @returns A promise that resolves with a unique identifier of a mutation containing the upsert changeset. + */ + public upsert(vectors: VectorizeVector[]): Promise; + /** + * Delete a list of vectors with a matching id. + * @param ids List of vector ids that should be deleted. + * @returns A promise that resolves with a unique identifier of a mutation containing the delete changeset. + */ + public deleteByIds(ids: string[]): Promise; + /** + * Get a list of vectors with a matching id. + * @param ids List of vector ids that should be returned. + * @returns A promise that resolves with the raw unscored vectors matching the id set. + */ + public getByIds(ids: string[]): Promise; +} +/** + * The interface for "version_metadata" binding + * providing metadata about the Worker Version using this binding. + */ +type WorkerVersionMetadata = { + /** The ID of the Worker Version using this binding */ + id: string; + /** The tag of the Worker Version using this binding */ + tag: string; + /** The timestamp of when the Worker Version was uploaded */ + timestamp: string; +}; +interface DynamicDispatchLimits { + /** + * Limit CPU time in milliseconds. + */ + cpuMs?: number; + /** + * Limit number of subrequests. + */ + subRequests?: number; +} +interface DynamicDispatchOptions { + /** + * Limit resources of invoked Worker script. + */ + limits?: DynamicDispatchLimits; + /** + * Arguments for outbound Worker script, if configured. + */ + outbound?: { + [key: string]: any; + }; +} +interface DispatchNamespace { + /** + * @param name Name of the Worker script. + * @param args Arguments to Worker script. + * @param options Options for Dynamic Dispatch invocation. + * @returns A Fetcher object that allows you to send requests to the Worker script. + * @throws If the Worker script does not exist in this dispatch namespace, an error will be thrown. + */ + get(name: string, args?: { + [key: string]: any; + }, options?: DynamicDispatchOptions): Fetcher; +} +declare module 'cloudflare:workflows' { + /** + * NonRetryableError allows for a user to throw a fatal error + * that makes a Workflow instance fail immediately without triggering a retry + */ + export class NonRetryableError extends Error { + public constructor(message: string, name?: string); + } +} +declare abstract class Workflow { + /** + * Get a handle to an existing instance of the Workflow. + * @param id Id for the instance of this Workflow + * @returns A promise that resolves with a handle for the Instance + */ + public get(id: string): Promise; + /** + * Create a new instance and return a handle to it. If a provided id exists, an error will be thrown. + * @param options Options when creating an instance including id and params + * @returns A promise that resolves with a handle for the Instance + */ + public create(options?: WorkflowInstanceCreateOptions): Promise; + /** + * Create a batch of instances and return handle for all of them. If a provided id exists, an error will be thrown. + * `createBatch` is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached. + * @param batch List of Options when creating an instance including name and params + * @returns A promise that resolves with a list of handles for the created instances. + */ + public createBatch(batch: WorkflowInstanceCreateOptions[]): Promise; +} +type WorkflowDurationLabel = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year'; +type WorkflowSleepDuration = `${number} ${WorkflowDurationLabel}${'s' | ''}` | number; +type WorkflowRetentionDuration = WorkflowSleepDuration; +interface WorkflowInstanceCreateOptions { + /** + * An id for your Workflow instance. Must be unique within the Workflow. + */ + id?: string; + /** + * The event payload the Workflow instance is triggered with + */ + params?: PARAMS; + /** + * The retention policy for Workflow instance. + * Defaults to the maximum retention period available for the owner's account. + */ + retention?: { + successRetention?: WorkflowRetentionDuration; + errorRetention?: WorkflowRetentionDuration; + }; +} +type InstanceStatus = { + status: 'queued' // means that instance is waiting to be started (see concurrency limits) + | 'running' | 'paused' | 'errored' | 'terminated' // user terminated the instance while it was running + | 'complete' | 'waiting' // instance is hibernating and waiting for sleep or event to finish + | 'waitingForPause' // instance is finishing the current work to pause + | 'unknown'; + error?: { + name: string; + message: string; + }; + output?: unknown; +}; +interface WorkflowError { + code?: number; + message: string; +} +declare abstract class WorkflowInstance { + public id: string; + /** + * Pause the instance. + */ + public pause(): Promise; + /** + * Resume the instance. If it is already running, an error will be thrown. + */ + public resume(): Promise; + /** + * Terminate the instance. If it is errored, terminated or complete, an error will be thrown. + */ + public terminate(): Promise; + /** + * Restart the instance. + */ + public restart(): Promise; + /** + * Returns the current status of the instance. + */ + public status(): Promise; + /** + * Send an event to this instance. + */ + public sendEvent({ type, payload, }: { + type: string; + payload: unknown; + }): Promise; +} diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..2116645 --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,43 @@ +{ + "$schema": "node_modules/wrangler/config-schema.json", + "name": "every-super-seo", + "main": "src/server.ts", + "compatibility_date": "2025-09-02", + "compatibility_flags": ["nodejs_compat"], + "observability": { + "enabled": true, + }, + "workflows": [ + { + "name": "site-audit-workflow", + "binding": "SITE_AUDIT_WORKFLOW", + "class_name": "SiteAuditWorkflow", + }, + ], + "services": [ + { + "binding": "EVERY_APP_GATEWAY", + "service": "every-app-gateway", + }, + ], + "kv_namespaces": [ + { + "binding": "KV", + "id": "4abd52f3f2c549ac83cc2cb4ceec8620", + }, + ], + "d1_databases": [ + { + "binding": "DB", + "database_name": "every-super-seo", + "database_id": "dc7eb9f1-9a43-4d37-9bc9-1293a9200f13", + "migrations_dir": "drizzle", + }, + ], + "r2_buckets": [ + { + "bucket_name": "super-ceo", + "binding": "R2", + }, + ], +}