source for getorbyt.com getorbyt.com/
client bsky orbytapp app orbyt bluesky getorbyt orbytvideo atproto video

Update project configuration and dependencies for improved compatibility and performance.

- Added .wrangler/ to .gitignore to exclude Wrangler configuration files.
- Updated astro.config.mjs to resolve the wrangler.jsonc path dynamically.
- Upgraded dependencies in package.json and package-lock.json, including @astrojs/cloudflare to version 13.0.2 and astro to version 6.0.2.
- Changed project type to module and specified Node.js engine version in package.json.
- Updated wrangler.jsonc main entry point to use @astrojs/cloudflare/entrypoints/server.
- Refactored imports in src/actions/index.ts and src/pages/@[handle].astro for better compatibility with Astro's latest API.
- Enhanced metadata handling in various .astro files for improved SEO and performance.

+12856 -2219
+1
.gitignore
··· 2 2 /TANGLED-REPO-SETUP-GUIDE.md 3 3 /test-server.py 4 4 node_modules 5 + .wrangler/ 5 6 .env 6 7 .env.* 7 8 !.env.example
+1
.nvmrc
··· 1 + 22.12.0
+2 -9
astro.config.mjs
··· 1 1 import { defineConfig } from 'astro/config'; 2 + import { resolve } from 'path'; 2 3 import cloudflare from '@astrojs/cloudflare'; 3 4 4 5 export default defineConfig({ ··· 6 7 adapter: cloudflare({ 7 8 imageService: 'cloudflare', 8 9 platformProxy: { 9 - enabled: true, 10 - configPath: 'wrangler.jsonc', 11 - }, 12 - routes: { 13 - extend: { 14 - include: [ 15 - { pattern: '/@*' }, // Explicitly include routes starting with @ 16 - ], 17 - }, 10 + configPath: resolve(process.cwd(), 'wrangler.jsonc'), 18 11 }, 19 12 }), 20 13 });
+1412 -2164
package-lock.json
··· 7 7 "": { 8 8 "name": "orbyt-site", 9 9 "version": "1.0.0", 10 - "license": "ISC", 10 + "license": "MIT", 11 11 "dependencies": { 12 - "@astrojs/cloudflare": "^12.6.12", 13 - "astro": "^5.17.3" 12 + "@astrojs/cloudflare": "^13.0.2", 13 + "astro": "^6.0.2" 14 + }, 15 + "devDependencies": { 16 + "@astrojs/check": "^0.9.7", 17 + "@types/node": "^22.15.29", 18 + "typescript": "^5.9.3" 19 + } 20 + }, 21 + "node_modules/@astrojs/check": { 22 + "version": "0.9.7", 23 + "resolved": "https://registry.npmjs.org/@astrojs/check/-/check-0.9.7.tgz", 24 + "integrity": "sha512-dA7U5/OFg8/xaMUb2vUOOJuuJXnMpHy6F0BM8ZhL7WT5OkTBwJ0GoW38n4fC4CXt+lT9mLWL0y8Pa74tFByBpQ==", 25 + "dev": true, 26 + "license": "MIT", 27 + "dependencies": { 28 + "@astrojs/language-server": "^2.16.1", 29 + "chokidar": "^4.0.3", 30 + "kleur": "^4.1.5", 31 + "yargs": "^17.7.2" 32 + }, 33 + "bin": { 34 + "astro-check": "bin/astro-check.js" 35 + }, 36 + "peerDependencies": { 37 + "typescript": "^5.0.0" 38 + } 39 + }, 40 + "node_modules/@astrojs/check/node_modules/chokidar": { 41 + "version": "4.0.3", 42 + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", 43 + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", 44 + "dev": true, 45 + "license": "MIT", 46 + "dependencies": { 47 + "readdirp": "^4.0.1" 48 + }, 49 + "engines": { 50 + "node": ">= 14.16.0" 51 + }, 52 + "funding": { 53 + "url": "https://paulmillr.com/funding/" 54 + } 55 + }, 56 + "node_modules/@astrojs/check/node_modules/readdirp": { 57 + "version": "4.1.2", 58 + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", 59 + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", 60 + "dev": true, 61 + "license": "MIT", 62 + "engines": { 63 + "node": ">= 14.18.0" 64 + }, 65 + "funding": { 66 + "type": "individual", 67 + "url": "https://paulmillr.com/funding/" 14 68 } 15 69 }, 16 70 "node_modules/@astrojs/cloudflare": { 17 - "version": "12.6.12", 18 - "resolved": "https://registry.npmjs.org/@astrojs/cloudflare/-/cloudflare-12.6.12.tgz", 19 - "integrity": "sha512-f6iXreyJc02EhokqsoPf7D/s3tebyZ8dBNVOyY2JDY87ujft4RokVS1f+zNwNFyu0wkehC4ALUboU5z590DE4w==", 71 + "version": "13.0.2", 72 + "resolved": "https://registry.npmjs.org/@astrojs/cloudflare/-/cloudflare-13.0.2.tgz", 73 + "integrity": "sha512-QXt3NefKuLCRPHW+/9TSUufv4trAehxJCCpRsUPNSsDPFHQQrlL6zNPTG6nqEeuFKB5fAegraC1i2xjZ4atoXw==", 20 74 "license": "MIT", 21 75 "dependencies": { 22 - "@astrojs/internal-helpers": "0.7.5", 23 - "@astrojs/underscore-redirects": "1.0.0", 24 - "@cloudflare/workers-types": "^4.20251121.0", 76 + "@astrojs/internal-helpers": "0.8.0", 77 + "@astrojs/underscore-redirects": "1.0.1", 78 + "@cloudflare/vite-plugin": "^1.25.6", 79 + "piccolore": "^0.1.3", 25 80 "tinyglobby": "^0.2.15", 26 - "vite": "^6.4.1", 27 - "wrangler": "4.50.0" 81 + "vite": "^7.3.1" 28 82 }, 29 83 "peerDependencies": { 30 - "astro": "^5.7.0" 84 + "astro": "^6.0.0-alpha.0", 85 + "wrangler": "^4.61.1" 31 86 } 32 87 }, 33 88 "node_modules/@astrojs/compiler": { 34 - "version": "2.13.0", 35 - "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.13.0.tgz", 36 - "integrity": "sha512-mqVORhUJViA28fwHYaWmsXSzLO9osbdZ5ImUfxBarqsYdMlPbqAqGJCxsNzvppp1BEzc1mJNjOVvQqeDN8Vspw==", 89 + "version": "3.0.0", 90 + "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-3.0.0.tgz", 91 + "integrity": "sha512-MwAbDE5mawZ1SS+D8qWiHdprdME5Tlj2e0YjxnEICvcOpbSukNS7Sa7hA5PK+6RrmUr/t6Gi5YgrdZKjbO/WPQ==", 37 92 "license": "MIT" 38 93 }, 39 94 "node_modules/@astrojs/internal-helpers": { 40 - "version": "0.7.5", 41 - "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.7.5.tgz", 42 - "integrity": "sha512-vreGnYSSKhAjFJCWAwe/CNhONvoc5lokxtRoZims+0wa3KbHBdPHSSthJsKxPd8d/aic6lWKpRTYGY/hsgK6EA==", 95 + "version": "0.8.0", 96 + "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.8.0.tgz", 97 + "integrity": "sha512-J56GrhEiV+4dmrGLPNOl2pZjpHXAndWVyiVDYGDuw6MWKpBSEMLdFxHzeM/6sqaknw9M+HFfHZAcvi3OfT3D/w==", 98 + "license": "MIT", 99 + "dependencies": { 100 + "picomatch": "^4.0.3" 101 + } 102 + }, 103 + "node_modules/@astrojs/language-server": { 104 + "version": "2.16.4", 105 + "resolved": "https://registry.npmjs.org/@astrojs/language-server/-/language-server-2.16.4.tgz", 106 + "integrity": "sha512-42oqz9uX+hU1/rFniJvtYW9FbfZJ6syM2fYZFi7Ub71/kOvF1GSeMS8sA3Ogs3iOeNUWefk/ImwBiiHeNmJfSA==", 107 + "dev": true, 108 + "license": "MIT", 109 + "dependencies": { 110 + "@astrojs/compiler": "^2.13.1", 111 + "@astrojs/yaml2ts": "^0.2.3", 112 + "@jridgewell/sourcemap-codec": "^1.5.5", 113 + "@volar/kit": "~2.4.28", 114 + "@volar/language-core": "~2.4.28", 115 + "@volar/language-server": "~2.4.28", 116 + "@volar/language-service": "~2.4.28", 117 + "muggle-string": "^0.4.1", 118 + "tinyglobby": "^0.2.15", 119 + "volar-service-css": "0.0.68", 120 + "volar-service-emmet": "0.0.68", 121 + "volar-service-html": "0.0.68", 122 + "volar-service-prettier": "0.0.68", 123 + "volar-service-typescript": "0.0.68", 124 + "volar-service-typescript-twoslash-queries": "0.0.68", 125 + "volar-service-yaml": "0.0.68", 126 + "vscode-html-languageservice": "^5.6.1", 127 + "vscode-uri": "^3.1.0" 128 + }, 129 + "bin": { 130 + "astro-ls": "bin/nodeServer.js" 131 + }, 132 + "peerDependencies": { 133 + "prettier": "^3.0.0", 134 + "prettier-plugin-astro": ">=0.11.0" 135 + }, 136 + "peerDependenciesMeta": { 137 + "prettier": { 138 + "optional": true 139 + }, 140 + "prettier-plugin-astro": { 141 + "optional": true 142 + } 143 + } 144 + }, 145 + "node_modules/@astrojs/language-server/node_modules/@astrojs/compiler": { 146 + "version": "2.13.1", 147 + "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.13.1.tgz", 148 + "integrity": "sha512-f3FN83d2G/v32ipNClRKgYv30onQlMZX1vCeZMjPsMMPl1mDpmbl0+N5BYo4S/ofzqJyS5hvwacEo0CCVDn/Qg==", 149 + "dev": true, 43 150 "license": "MIT" 44 151 }, 45 152 "node_modules/@astrojs/markdown-remark": { 46 - "version": "6.3.10", 47 - "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-6.3.10.tgz", 48 - "integrity": "sha512-kk4HeYR6AcnzC4QV8iSlOfh+N8TZ3MEStxPyenyCtemqn8IpEATBFMTJcfrNW32dgpt6MY3oCkMM/Tv3/I4G3A==", 153 + "version": "7.0.0", 154 + "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-7.0.0.tgz", 155 + "integrity": "sha512-jTAXHPy45L7o1ljH4jYV+ShtOHtyQUa1mGp3a5fJp1soX8lInuTJQ6ihmldHzVM4Q7QptU4SzIDIcKbBJO7sXQ==", 49 156 "license": "MIT", 50 157 "dependencies": { 51 - "@astrojs/internal-helpers": "0.7.5", 52 - "@astrojs/prism": "3.3.0", 158 + "@astrojs/internal-helpers": "0.8.0", 159 + "@astrojs/prism": "4.0.0", 53 160 "github-slugger": "^2.0.0", 54 161 "hast-util-from-html": "^2.0.3", 55 162 "hast-util-to-text": "^4.0.2", 56 - "import-meta-resolve": "^4.2.0", 57 163 "js-yaml": "^4.1.1", 58 164 "mdast-util-definitions": "^6.0.0", 59 165 "rehype-raw": "^7.0.0", ··· 62 168 "remark-parse": "^11.0.0", 63 169 "remark-rehype": "^11.1.2", 64 170 "remark-smartypants": "^3.0.2", 65 - "shiki": "^3.19.0", 66 - "smol-toml": "^1.5.2", 171 + "shiki": "^4.0.0", 172 + "smol-toml": "^1.6.0", 67 173 "unified": "^11.0.5", 68 174 "unist-util-remove-position": "^5.0.0", 69 - "unist-util-visit": "^5.0.0", 175 + "unist-util-visit": "^5.1.0", 70 176 "unist-util-visit-parents": "^6.0.2", 71 177 "vfile": "^6.0.3" 72 178 } 73 179 }, 74 180 "node_modules/@astrojs/prism": { 75 - "version": "3.3.0", 76 - "resolved": "https://registry.npmjs.org/@astrojs/prism/-/prism-3.3.0.tgz", 77 - "integrity": "sha512-q8VwfU/fDZNoDOf+r7jUnMC2//H2l0TuQ6FkGJL8vD8nw/q5KiL3DS1KKBI3QhI9UQhpJ5dc7AtqfbXWuOgLCQ==", 181 + "version": "4.0.0", 182 + "resolved": "https://registry.npmjs.org/@astrojs/prism/-/prism-4.0.0.tgz", 183 + "integrity": "sha512-NndtNPpxaGinRpRytljGBvYHpTOwHycSZ/c+lQi5cHvkqqrHKWdkPEhImlODBNmbuB+vyQUNUDXyjzt66CihJg==", 78 184 "license": "MIT", 79 185 "dependencies": { 80 186 "prismjs": "^1.30.0" 81 187 }, 82 188 "engines": { 83 - "node": "18.20.8 || ^20.3.0 || >=22.0.0" 189 + "node": "^20.19.1 || >=22.12.0" 84 190 } 85 191 }, 86 192 "node_modules/@astrojs/telemetry": { ··· 102 208 } 103 209 }, 104 210 "node_modules/@astrojs/underscore-redirects": { 105 - "version": "1.0.0", 106 - "resolved": "https://registry.npmjs.org/@astrojs/underscore-redirects/-/underscore-redirects-1.0.0.tgz", 107 - "integrity": "sha512-qZxHwVnmb5FXuvRsaIGaqWgnftjCuMY+GSbaVZdBmE4j8AfgPqKPxYp8SUERyJcjpKCEmO4wD6ybuGH8A2kVRQ==", 211 + "version": "1.0.1", 212 + "resolved": "https://registry.npmjs.org/@astrojs/underscore-redirects/-/underscore-redirects-1.0.1.tgz", 213 + "integrity": "sha512-iSImJzW8m7MjA+15oJZAbSqSWu6ApQ0N8A0SaWV9yLzKYjzxWm/tZKbRSLRv94OE/rXuM25ZG7R8TepkhH7ahA==", 108 214 "license": "MIT" 109 215 }, 216 + "node_modules/@astrojs/yaml2ts": { 217 + "version": "0.2.3", 218 + "resolved": "https://registry.npmjs.org/@astrojs/yaml2ts/-/yaml2ts-0.2.3.tgz", 219 + "integrity": "sha512-PJzRmgQzUxI2uwpdX2lXSHtP4G8ocp24/t+bZyf5Fy0SZLSF9f9KXZoMlFM/XCGue+B0nH/2IZ7FpBYQATBsCg==", 220 + "dev": true, 221 + "license": "MIT", 222 + "dependencies": { 223 + "yaml": "^2.8.2" 224 + } 225 + }, 110 226 "node_modules/@babel/helper-string-parser": { 111 227 "version": "7.27.1", 112 228 "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", ··· 126 242 } 127 243 }, 128 244 "node_modules/@babel/parser": { 129 - "version": "7.28.5", 130 - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", 131 - "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", 245 + "version": "7.29.0", 246 + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", 247 + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", 132 248 "license": "MIT", 133 249 "dependencies": { 134 - "@babel/types": "^7.28.5" 250 + "@babel/types": "^7.29.0" 135 251 }, 136 252 "bin": { 137 253 "parser": "bin/babel-parser.js" ··· 141 257 } 142 258 }, 143 259 "node_modules/@babel/types": { 144 - "version": "7.28.5", 145 - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", 146 - "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", 260 + "version": "7.29.0", 261 + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", 262 + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", 147 263 "license": "MIT", 148 264 "dependencies": { 149 265 "@babel/helper-string-parser": "^7.27.1", ··· 165 281 "node": ">=18" 166 282 } 167 283 }, 284 + "node_modules/@clack/core": { 285 + "version": "1.1.0", 286 + "resolved": "https://registry.npmjs.org/@clack/core/-/core-1.1.0.tgz", 287 + "integrity": "sha512-SVcm4Dqm2ukn64/8Gub2wnlA5nS2iWJyCkdNHcvNHPIeBTGojpdJ+9cZKwLfmqy7irD4N5qLteSilJlE0WLAtA==", 288 + "license": "MIT", 289 + "dependencies": { 290 + "sisteransi": "^1.0.5" 291 + } 292 + }, 293 + "node_modules/@clack/prompts": { 294 + "version": "1.1.0", 295 + "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-1.1.0.tgz", 296 + "integrity": "sha512-pkqbPGtohJAvm4Dphs2M8xE29ggupihHdy1x84HNojZuMtFsHiUlRvqD24tM2+XmI+61LlfNceM3Wr7U5QES5g==", 297 + "license": "MIT", 298 + "dependencies": { 299 + "@clack/core": "1.1.0", 300 + "sisteransi": "^1.0.5" 301 + } 302 + }, 168 303 "node_modules/@cloudflare/kv-asset-handler": { 169 - "version": "0.4.0", 170 - "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.4.0.tgz", 171 - "integrity": "sha512-+tv3z+SPp+gqTIcImN9o0hqE9xyfQjI1XD9pL6NuKjua9B1y7mNYv0S9cP+QEbA4ppVgGZEmKOvHX5G5Ei1CVA==", 304 + "version": "0.4.2", 305 + "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.4.2.tgz", 306 + "integrity": "sha512-SIOD2DxrRRwQ+jgzlXCqoEFiKOFqaPjhnNTGKXSRLvp1HiOvapLaFG2kEr9dYQTYe8rKrd9uvDUzmAITeNyaHQ==", 172 307 "license": "MIT OR Apache-2.0", 173 - "dependencies": { 174 - "mime": "^3.0.0" 175 - }, 176 308 "engines": { 177 309 "node": ">=18.0.0" 178 310 } 179 311 }, 180 312 "node_modules/@cloudflare/unenv-preset": { 181 - "version": "2.7.11", 182 - "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.7.11.tgz", 183 - "integrity": "sha512-se23f1D4PxKrMKOq+Stz+Yn7AJ9ITHcEecXo2Yjb+UgbUDCEBch1FXQC6hx6uT5fNA3kmX3mfzeZiUmpK1W9IQ==", 313 + "version": "2.15.0", 314 + "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.15.0.tgz", 315 + "integrity": "sha512-EGYmJaGZKWl+X8tXxcnx4v2bOZSjQeNI5dWFeXivgX9+YCT69AkzHHwlNbVpqtEUTbew8eQurpyOpeN8fg00nw==", 184 316 "license": "MIT OR Apache-2.0", 185 317 "peerDependencies": { 186 318 "unenv": "2.0.0-rc.24", 187 - "workerd": "^1.20251106.1" 319 + "workerd": "1.20260301.1 || ~1.20260302.1 || ~1.20260303.1 || ~1.20260304.1 || >1.20260305.0 <2.0.0-0" 188 320 }, 189 321 "peerDependenciesMeta": { 190 322 "workerd": { ··· 192 324 } 193 325 } 194 326 }, 327 + "node_modules/@cloudflare/vite-plugin": { 328 + "version": "1.27.0", 329 + "resolved": "https://registry.npmjs.org/@cloudflare/vite-plugin/-/vite-plugin-1.27.0.tgz", 330 + "integrity": "sha512-+s8APrIadCf2h0zYZ3WIPVeQ2CYgbXgFiR3BIrKvbpoo5klLgTeYpTq8ggxBmtjwt88PNruI4eCGZ6XNaDHMaA==", 331 + "license": "MIT", 332 + "dependencies": { 333 + "@cloudflare/unenv-preset": "2.15.0", 334 + "miniflare": "4.20260310.0", 335 + "unenv": "2.0.0-rc.24", 336 + "wrangler": "4.72.0", 337 + "ws": "8.18.0" 338 + }, 339 + "peerDependencies": { 340 + "vite": "^6.1.0 || ^7.0.0", 341 + "wrangler": "^4.72.0" 342 + } 343 + }, 195 344 "node_modules/@cloudflare/workerd-darwin-64": { 196 - "version": "1.20251118.0", 197 - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20251118.0.tgz", 198 - "integrity": "sha512-UmWmYEYS/LkK/4HFKN6xf3Hk8cw70PviR+ftr3hUvs9HYZS92IseZEp16pkL6ZBETrPRpZC7OrzoYF7ky6kHsg==", 345 + "version": "1.20260310.1", 346 + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20260310.1.tgz", 347 + "integrity": "sha512-hF2VpoWaMb1fiGCQJqCY6M8I+2QQqjkyY4LiDYdTL5D/w6C1l5v1zhc0/jrjdD1DXfpJtpcSMSmEPjHse4p9Ig==", 199 348 "cpu": [ 200 349 "x64" 201 350 ], ··· 209 358 } 210 359 }, 211 360 "node_modules/@cloudflare/workerd-darwin-arm64": { 212 - "version": "1.20251118.0", 213 - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20251118.0.tgz", 214 - "integrity": "sha512-RockU7Qzf4rxNfY1lx3j4rvwutNLjTIX7rr2hogbQ4mzLo8Ea40/oZTzXVxl+on75joLBrt0YpenGW8o/r44QA==", 361 + "version": "1.20260310.1", 362 + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20260310.1.tgz", 363 + "integrity": "sha512-h/Vl3XrYYPI6yFDE27XO1QPq/1G1lKIM8tzZGIWYpntK3IN5XtH3Ee/sLaegpJ49aIJoqhF2mVAZ6Yw+Vk2gJw==", 215 364 "cpu": [ 216 365 "arm64" 217 366 ], ··· 225 374 } 226 375 }, 227 376 "node_modules/@cloudflare/workerd-linux-64": { 228 - "version": "1.20251118.0", 229 - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20251118.0.tgz", 230 - "integrity": "sha512-aT97GnOAbJDuuOG0zPVhgRk0xFtB1dzBMrxMZ09eubDLoU4djH4BuORaqvxNRMmHgKfa4T6drthckT0NjUvBdw==", 377 + "version": "1.20260310.1", 378 + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20260310.1.tgz", 379 + "integrity": "sha512-XzQ0GZ8G5P4d74bQYOIP2Su4CLdNPpYidrInaSOuSxMw+HamsHaFrjVsrV2mPy/yk2hi6SY2yMbgKFK9YjA7vw==", 231 380 "cpu": [ 232 381 "x64" 233 382 ], ··· 241 390 } 242 391 }, 243 392 "node_modules/@cloudflare/workerd-linux-arm64": { 244 - "version": "1.20251118.0", 245 - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20251118.0.tgz", 246 - "integrity": "sha512-bXZPJcwlq00MPOXqP7DMWjr+goYj0+Fqyw6zgEC2M3FR1+SWla4yjghnZ4IdpN+H1t7VbUrsi5np2LzMUFs0NA==", 393 + "version": "1.20260310.1", 394 + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20260310.1.tgz", 395 + "integrity": "sha512-sxv4CxnN4ZR0uQGTFVGa0V4KTqwdej/czpIc5tYS86G8FQQoGIBiAIs2VvU7b8EROPcandxYHDBPTb+D9HIMPw==", 247 396 "cpu": [ 248 397 "arm64" 249 398 ], ··· 257 406 } 258 407 }, 259 408 "node_modules/@cloudflare/workerd-windows-64": { 260 - "version": "1.20251118.0", 261 - "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20251118.0.tgz", 262 - "integrity": "sha512-2LV99AHSlpr8WcCb/BYbU2QsYkXLUL1izN6YKWkN9Eibv80JKX0RtgmD3dfmajE5sNvClavxZejgzVvHD9N9Ag==", 409 + "version": "1.20260310.1", 410 + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20260310.1.tgz", 411 + "integrity": "sha512-+1ZTViWKJypLfgH/luAHCqkent0DEBjAjvO40iAhOMHRLYP/SPphLvr4Jpi6lb+sIocS8Q1QZL4uM5Etg1Wskg==", 263 412 "cpu": [ 264 413 "x64" 265 414 ], ··· 272 421 "node": ">=16" 273 422 } 274 423 }, 275 - "node_modules/@cloudflare/workers-types": { 276 - "version": "4.20260111.0", 277 - "resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20260111.0.tgz", 278 - "integrity": "sha512-NFA2U+AqEWHkAmw6oRzNWJyc14rIvBlF/OlK3lixokunRKwyziuON07nWUZ0w0kKWlW4fJ/muA09tEUaQY07tA==", 279 - "license": "MIT OR Apache-2.0", 280 - "peer": true 281 - }, 282 424 "node_modules/@cspotcode/source-map-support": { 283 425 "version": "0.8.1", 284 426 "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", ··· 291 433 "node": ">=12" 292 434 } 293 435 }, 436 + "node_modules/@emmetio/abbreviation": { 437 + "version": "2.3.3", 438 + "resolved": "https://registry.npmjs.org/@emmetio/abbreviation/-/abbreviation-2.3.3.tgz", 439 + "integrity": "sha512-mgv58UrU3rh4YgbE/TzgLQwJ3pFsHHhCLqY20aJq+9comytTXUDNGG/SMtSeMJdkpxgXSXunBGLD8Boka3JyVA==", 440 + "dev": true, 441 + "license": "MIT", 442 + "dependencies": { 443 + "@emmetio/scanner": "^1.0.4" 444 + } 445 + }, 446 + "node_modules/@emmetio/css-abbreviation": { 447 + "version": "2.1.8", 448 + "resolved": "https://registry.npmjs.org/@emmetio/css-abbreviation/-/css-abbreviation-2.1.8.tgz", 449 + "integrity": "sha512-s9yjhJ6saOO/uk1V74eifykk2CBYi01STTK3WlXWGOepyKa23ymJ053+DNQjpFcy1ingpaO7AxCcwLvHFY9tuw==", 450 + "dev": true, 451 + "license": "MIT", 452 + "dependencies": { 453 + "@emmetio/scanner": "^1.0.4" 454 + } 455 + }, 456 + "node_modules/@emmetio/css-parser": { 457 + "version": "0.4.1", 458 + "resolved": "https://registry.npmjs.org/@emmetio/css-parser/-/css-parser-0.4.1.tgz", 459 + "integrity": "sha512-2bC6m0MV/voF4CTZiAbG5MWKbq5EBmDPKu9Sb7s7nVcEzNQlrZP6mFFFlIaISM8X6514H9shWMme1fCm8cWAfQ==", 460 + "dev": true, 461 + "license": "MIT", 462 + "dependencies": { 463 + "@emmetio/stream-reader": "^2.2.0", 464 + "@emmetio/stream-reader-utils": "^0.1.0" 465 + } 466 + }, 467 + "node_modules/@emmetio/html-matcher": { 468 + "version": "1.3.0", 469 + "resolved": "https://registry.npmjs.org/@emmetio/html-matcher/-/html-matcher-1.3.0.tgz", 470 + "integrity": "sha512-NTbsvppE5eVyBMuyGfVu2CRrLvo7J4YHb6t9sBFLyY03WYhXET37qA4zOYUjBWFCRHO7pS1B9khERtY0f5JXPQ==", 471 + "dev": true, 472 + "license": "ISC", 473 + "dependencies": { 474 + "@emmetio/scanner": "^1.0.0" 475 + } 476 + }, 477 + "node_modules/@emmetio/scanner": { 478 + "version": "1.0.4", 479 + "resolved": "https://registry.npmjs.org/@emmetio/scanner/-/scanner-1.0.4.tgz", 480 + "integrity": "sha512-IqRuJtQff7YHHBk4G8YZ45uB9BaAGcwQeVzgj/zj8/UdOhtQpEIupUhSk8dys6spFIWVZVeK20CzGEnqR5SbqA==", 481 + "dev": true, 482 + "license": "MIT" 483 + }, 484 + "node_modules/@emmetio/stream-reader": { 485 + "version": "2.2.0", 486 + "resolved": "https://registry.npmjs.org/@emmetio/stream-reader/-/stream-reader-2.2.0.tgz", 487 + "integrity": "sha512-fXVXEyFA5Yv3M3n8sUGT7+fvecGrZP4k6FnWWMSZVQf69kAq0LLpaBQLGcPR30m3zMmKYhECP4k/ZkzvhEW5kw==", 488 + "dev": true, 489 + "license": "MIT" 490 + }, 491 + "node_modules/@emmetio/stream-reader-utils": { 492 + "version": "0.1.0", 493 + "resolved": "https://registry.npmjs.org/@emmetio/stream-reader-utils/-/stream-reader-utils-0.1.0.tgz", 494 + "integrity": "sha512-ZsZ2I9Vzso3Ho/pjZFsmmZ++FWeEd/txqybHTm4OgaZzdS8V9V/YYWQwg5TC38Z7uLWUV1vavpLLbjJtKubR1A==", 495 + "dev": true, 496 + "license": "MIT" 497 + }, 294 498 "node_modules/@emnapi/runtime": { 295 499 "version": "1.8.1", 296 500 "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.8.1.tgz", ··· 302 506 } 303 507 }, 304 508 "node_modules/@esbuild/aix-ppc64": { 305 - "version": "0.25.12", 306 - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", 307 - "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", 509 + "version": "0.27.3", 510 + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", 511 + "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", 308 512 "cpu": [ 309 513 "ppc64" 310 514 ], ··· 318 522 } 319 523 }, 320 524 "node_modules/@esbuild/android-arm": { 321 - "version": "0.25.12", 322 - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", 323 - "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", 525 + "version": "0.27.3", 526 + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", 527 + "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", 324 528 "cpu": [ 325 529 "arm" 326 530 ], ··· 334 538 } 335 539 }, 336 540 "node_modules/@esbuild/android-arm64": { 337 - "version": "0.25.12", 338 - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", 339 - "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", 541 + "version": "0.27.3", 542 + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", 543 + "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", 340 544 "cpu": [ 341 545 "arm64" 342 546 ], ··· 350 554 } 351 555 }, 352 556 "node_modules/@esbuild/android-x64": { 353 - "version": "0.25.12", 354 - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", 355 - "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", 557 + "version": "0.27.3", 558 + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", 559 + "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", 356 560 "cpu": [ 357 561 "x64" 358 562 ], ··· 366 570 } 367 571 }, 368 572 "node_modules/@esbuild/darwin-arm64": { 369 - "version": "0.25.12", 370 - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", 371 - "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", 573 + "version": "0.27.3", 574 + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", 575 + "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", 372 576 "cpu": [ 373 577 "arm64" 374 578 ], ··· 382 586 } 383 587 }, 384 588 "node_modules/@esbuild/darwin-x64": { 385 - "version": "0.25.12", 386 - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", 387 - "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", 589 + "version": "0.27.3", 590 + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", 591 + "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", 388 592 "cpu": [ 389 593 "x64" 390 594 ], ··· 398 602 } 399 603 }, 400 604 "node_modules/@esbuild/freebsd-arm64": { 401 - "version": "0.25.12", 402 - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", 403 - "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", 605 + "version": "0.27.3", 606 + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", 607 + "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", 404 608 "cpu": [ 405 609 "arm64" 406 610 ], ··· 414 618 } 415 619 }, 416 620 "node_modules/@esbuild/freebsd-x64": { 417 - "version": "0.25.12", 418 - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", 419 - "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", 621 + "version": "0.27.3", 622 + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", 623 + "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", 420 624 "cpu": [ 421 625 "x64" 422 626 ], ··· 430 634 } 431 635 }, 432 636 "node_modules/@esbuild/linux-arm": { 433 - "version": "0.25.12", 434 - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", 435 - "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", 637 + "version": "0.27.3", 638 + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", 639 + "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", 436 640 "cpu": [ 437 641 "arm" 438 642 ], ··· 446 650 } 447 651 }, 448 652 "node_modules/@esbuild/linux-arm64": { 449 - "version": "0.25.12", 450 - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", 451 - "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", 653 + "version": "0.27.3", 654 + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", 655 + "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", 452 656 "cpu": [ 453 657 "arm64" 454 658 ], ··· 462 666 } 463 667 }, 464 668 "node_modules/@esbuild/linux-ia32": { 465 - "version": "0.25.12", 466 - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", 467 - "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", 669 + "version": "0.27.3", 670 + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", 671 + "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", 468 672 "cpu": [ 469 673 "ia32" 470 674 ], ··· 478 682 } 479 683 }, 480 684 "node_modules/@esbuild/linux-loong64": { 481 - "version": "0.25.12", 482 - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", 483 - "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", 685 + "version": "0.27.3", 686 + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", 687 + "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", 484 688 "cpu": [ 485 689 "loong64" 486 690 ], ··· 494 698 } 495 699 }, 496 700 "node_modules/@esbuild/linux-mips64el": { 497 - "version": "0.25.12", 498 - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", 499 - "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", 701 + "version": "0.27.3", 702 + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", 703 + "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", 500 704 "cpu": [ 501 705 "mips64el" 502 706 ], ··· 510 714 } 511 715 }, 512 716 "node_modules/@esbuild/linux-ppc64": { 513 - "version": "0.25.12", 514 - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", 515 - "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", 717 + "version": "0.27.3", 718 + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", 719 + "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", 516 720 "cpu": [ 517 721 "ppc64" 518 722 ], ··· 526 730 } 527 731 }, 528 732 "node_modules/@esbuild/linux-riscv64": { 529 - "version": "0.25.12", 530 - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", 531 - "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", 733 + "version": "0.27.3", 734 + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", 735 + "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", 532 736 "cpu": [ 533 737 "riscv64" 534 738 ], ··· 542 746 } 543 747 }, 544 748 "node_modules/@esbuild/linux-s390x": { 545 - "version": "0.25.12", 546 - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", 547 - "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", 749 + "version": "0.27.3", 750 + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", 751 + "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", 548 752 "cpu": [ 549 753 "s390x" 550 754 ], ··· 558 762 } 559 763 }, 560 764 "node_modules/@esbuild/linux-x64": { 561 - "version": "0.25.12", 562 - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", 563 - "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", 765 + "version": "0.27.3", 766 + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", 767 + "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", 564 768 "cpu": [ 565 769 "x64" 566 770 ], ··· 574 778 } 575 779 }, 576 780 "node_modules/@esbuild/netbsd-arm64": { 577 - "version": "0.25.12", 578 - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", 579 - "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", 781 + "version": "0.27.3", 782 + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", 783 + "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", 580 784 "cpu": [ 581 785 "arm64" 582 786 ], ··· 590 794 } 591 795 }, 592 796 "node_modules/@esbuild/netbsd-x64": { 593 - "version": "0.25.12", 594 - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", 595 - "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", 797 + "version": "0.27.3", 798 + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", 799 + "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", 596 800 "cpu": [ 597 801 "x64" 598 802 ], ··· 606 810 } 607 811 }, 608 812 "node_modules/@esbuild/openbsd-arm64": { 609 - "version": "0.25.12", 610 - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", 611 - "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", 813 + "version": "0.27.3", 814 + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", 815 + "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", 612 816 "cpu": [ 613 817 "arm64" 614 818 ], ··· 622 826 } 623 827 }, 624 828 "node_modules/@esbuild/openbsd-x64": { 625 - "version": "0.25.12", 626 - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", 627 - "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", 829 + "version": "0.27.3", 830 + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", 831 + "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", 628 832 "cpu": [ 629 833 "x64" 630 834 ], ··· 638 842 } 639 843 }, 640 844 "node_modules/@esbuild/openharmony-arm64": { 641 - "version": "0.25.12", 642 - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", 643 - "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", 845 + "version": "0.27.3", 846 + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", 847 + "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", 644 848 "cpu": [ 645 849 "arm64" 646 850 ], ··· 654 858 } 655 859 }, 656 860 "node_modules/@esbuild/sunos-x64": { 657 - "version": "0.25.12", 658 - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", 659 - "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", 861 + "version": "0.27.3", 862 + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", 863 + "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", 660 864 "cpu": [ 661 865 "x64" 662 866 ], ··· 670 874 } 671 875 }, 672 876 "node_modules/@esbuild/win32-arm64": { 673 - "version": "0.25.12", 674 - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", 675 - "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", 877 + "version": "0.27.3", 878 + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", 879 + "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", 676 880 "cpu": [ 677 881 "arm64" 678 882 ], ··· 686 890 } 687 891 }, 688 892 "node_modules/@esbuild/win32-ia32": { 689 - "version": "0.25.12", 690 - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", 691 - "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", 893 + "version": "0.27.3", 894 + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", 895 + "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", 692 896 "cpu": [ 693 897 "ia32" 694 898 ], ··· 702 906 } 703 907 }, 704 908 "node_modules/@esbuild/win32-x64": { 705 - "version": "0.25.12", 706 - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", 707 - "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", 909 + "version": "0.27.3", 910 + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", 911 + "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", 708 912 "cpu": [ 709 913 "x64" 710 914 ], ··· 718 922 } 719 923 }, 720 924 "node_modules/@img/colour": { 721 - "version": "1.0.0", 722 - "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.0.0.tgz", 723 - "integrity": "sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==", 925 + "version": "1.1.0", 926 + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", 927 + "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", 724 928 "license": "MIT", 725 - "optional": true, 726 929 "engines": { 727 930 "node": ">=18" 728 931 } ··· 1223 1426 "kleur": "^4.1.5" 1224 1427 } 1225 1428 }, 1226 - "node_modules/@poppinss/colors/node_modules/kleur": { 1227 - "version": "4.1.5", 1228 - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", 1229 - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", 1230 - "license": "MIT", 1231 - "engines": { 1232 - "node": ">=6" 1233 - } 1234 - }, 1235 1429 "node_modules/@poppinss/dumper": { 1236 1430 "version": "0.6.5", 1237 1431 "resolved": "https://registry.npmjs.org/@poppinss/dumper/-/dumper-0.6.5.tgz", ··· 1271 1465 } 1272 1466 } 1273 1467 }, 1274 - "node_modules/@rollup/pluginutils/node_modules/estree-walker": { 1275 - "version": "2.0.2", 1276 - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 1277 - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", 1278 - "license": "MIT" 1279 - }, 1280 1468 "node_modules/@rollup/rollup-android-arm-eabi": { 1281 - "version": "4.55.1", 1282 - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.55.1.tgz", 1283 - "integrity": "sha512-9R0DM/ykwfGIlNu6+2U09ga0WXeZ9MRC2Ter8jnz8415VbuIykVuc6bhdrbORFZANDmTDvq26mJrEVTl8TdnDg==", 1469 + "version": "4.59.0", 1470 + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", 1471 + "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==", 1284 1472 "cpu": [ 1285 1473 "arm" 1286 1474 ], ··· 1291 1479 ] 1292 1480 }, 1293 1481 "node_modules/@rollup/rollup-android-arm64": { 1294 - "version": "4.55.1", 1295 - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.55.1.tgz", 1296 - "integrity": "sha512-eFZCb1YUqhTysgW3sj/55du5cG57S7UTNtdMjCW7LwVcj3dTTcowCsC8p7uBdzKsZYa8J7IDE8lhMI+HX1vQvg==", 1482 + "version": "4.59.0", 1483 + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz", 1484 + "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==", 1297 1485 "cpu": [ 1298 1486 "arm64" 1299 1487 ], ··· 1304 1492 ] 1305 1493 }, 1306 1494 "node_modules/@rollup/rollup-darwin-arm64": { 1307 - "version": "4.55.1", 1308 - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.55.1.tgz", 1309 - "integrity": "sha512-p3grE2PHcQm2e8PSGZdzIhCKbMCw/xi9XvMPErPhwO17vxtvCN5FEA2mSLgmKlCjHGMQTP6phuQTYWUnKewwGg==", 1495 + "version": "4.59.0", 1496 + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz", 1497 + "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==", 1310 1498 "cpu": [ 1311 1499 "arm64" 1312 1500 ], ··· 1317 1505 ] 1318 1506 }, 1319 1507 "node_modules/@rollup/rollup-darwin-x64": { 1320 - "version": "4.55.1", 1321 - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.55.1.tgz", 1322 - "integrity": "sha512-rDUjG25C9qoTm+e02Esi+aqTKSBYwVTaoS1wxcN47/Luqef57Vgp96xNANwt5npq9GDxsH7kXxNkJVEsWEOEaQ==", 1508 + "version": "4.59.0", 1509 + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz", 1510 + "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==", 1323 1511 "cpu": [ 1324 1512 "x64" 1325 1513 ], ··· 1330 1518 ] 1331 1519 }, 1332 1520 "node_modules/@rollup/rollup-freebsd-arm64": { 1333 - "version": "4.55.1", 1334 - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.55.1.tgz", 1335 - "integrity": "sha512-+JiU7Jbp5cdxekIgdte0jfcu5oqw4GCKr6i3PJTlXTCU5H5Fvtkpbs4XJHRmWNXF+hKmn4v7ogI5OQPaupJgOg==", 1521 + "version": "4.59.0", 1522 + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz", 1523 + "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==", 1336 1524 "cpu": [ 1337 1525 "arm64" 1338 1526 ], ··· 1343 1531 ] 1344 1532 }, 1345 1533 "node_modules/@rollup/rollup-freebsd-x64": { 1346 - "version": "4.55.1", 1347 - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.55.1.tgz", 1348 - "integrity": "sha512-V5xC1tOVWtLLmr3YUk2f6EJK4qksksOYiz/TCsFHu/R+woubcLWdC9nZQmwjOAbmExBIVKsm1/wKmEy4z4u4Bw==", 1534 + "version": "4.59.0", 1535 + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz", 1536 + "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==", 1349 1537 "cpu": [ 1350 1538 "x64" 1351 1539 ], ··· 1356 1544 ] 1357 1545 }, 1358 1546 "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 1359 - "version": "4.55.1", 1360 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.55.1.tgz", 1361 - "integrity": "sha512-Rn3n+FUk2J5VWx+ywrG/HGPTD9jXNbicRtTM11e/uorplArnXZYsVifnPPqNNP5BsO3roI4n8332ukpY/zN7rQ==", 1547 + "version": "4.59.0", 1548 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz", 1549 + "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==", 1362 1550 "cpu": [ 1363 1551 "arm" 1364 1552 ], ··· 1369 1557 ] 1370 1558 }, 1371 1559 "node_modules/@rollup/rollup-linux-arm-musleabihf": { 1372 - "version": "4.55.1", 1373 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.55.1.tgz", 1374 - "integrity": "sha512-grPNWydeKtc1aEdrJDWk4opD7nFtQbMmV7769hiAaYyUKCT1faPRm2av8CX1YJsZ4TLAZcg9gTR1KvEzoLjXkg==", 1560 + "version": "4.59.0", 1561 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz", 1562 + "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==", 1375 1563 "cpu": [ 1376 1564 "arm" 1377 1565 ], ··· 1382 1570 ] 1383 1571 }, 1384 1572 "node_modules/@rollup/rollup-linux-arm64-gnu": { 1385 - "version": "4.55.1", 1386 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.55.1.tgz", 1387 - "integrity": "sha512-a59mwd1k6x8tXKcUxSyISiquLwB5pX+fJW9TkWU46lCqD/GRDe9uDN31jrMmVP3feI3mhAdvcCClhV8V5MhJFQ==", 1573 + "version": "4.59.0", 1574 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz", 1575 + "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==", 1388 1576 "cpu": [ 1389 1577 "arm64" 1390 1578 ], ··· 1395 1583 ] 1396 1584 }, 1397 1585 "node_modules/@rollup/rollup-linux-arm64-musl": { 1398 - "version": "4.55.1", 1399 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.55.1.tgz", 1400 - "integrity": "sha512-puS1MEgWX5GsHSoiAsF0TYrpomdvkaXm0CofIMG5uVkP6IBV+ZO9xhC5YEN49nsgYo1DuuMquF9+7EDBVYu4uA==", 1586 + "version": "4.59.0", 1587 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz", 1588 + "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==", 1401 1589 "cpu": [ 1402 1590 "arm64" 1403 1591 ], ··· 1408 1596 ] 1409 1597 }, 1410 1598 "node_modules/@rollup/rollup-linux-loong64-gnu": { 1411 - "version": "4.55.1", 1412 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.55.1.tgz", 1413 - "integrity": "sha512-r3Wv40in+lTsULSb6nnoudVbARdOwb2u5fpeoOAZjFLznp6tDU8kd+GTHmJoqZ9lt6/Sys33KdIHUaQihFcu7g==", 1599 + "version": "4.59.0", 1600 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz", 1601 + "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==", 1414 1602 "cpu": [ 1415 1603 "loong64" 1416 1604 ], ··· 1421 1609 ] 1422 1610 }, 1423 1611 "node_modules/@rollup/rollup-linux-loong64-musl": { 1424 - "version": "4.55.1", 1425 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.55.1.tgz", 1426 - "integrity": "sha512-MR8c0+UxAlB22Fq4R+aQSPBayvYa3+9DrwG/i1TKQXFYEaoW3B5b/rkSRIypcZDdWjWnpcvxbNaAJDcSbJU3Lw==", 1612 + "version": "4.59.0", 1613 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz", 1614 + "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==", 1427 1615 "cpu": [ 1428 1616 "loong64" 1429 1617 ], ··· 1434 1622 ] 1435 1623 }, 1436 1624 "node_modules/@rollup/rollup-linux-ppc64-gnu": { 1437 - "version": "4.55.1", 1438 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.55.1.tgz", 1439 - "integrity": "sha512-3KhoECe1BRlSYpMTeVrD4sh2Pw2xgt4jzNSZIIPLFEsnQn9gAnZagW9+VqDqAHgm1Xc77LzJOo2LdigS5qZ+gw==", 1625 + "version": "4.59.0", 1626 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz", 1627 + "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==", 1440 1628 "cpu": [ 1441 1629 "ppc64" 1442 1630 ], ··· 1447 1635 ] 1448 1636 }, 1449 1637 "node_modules/@rollup/rollup-linux-ppc64-musl": { 1450 - "version": "4.55.1", 1451 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.55.1.tgz", 1452 - "integrity": "sha512-ziR1OuZx0vdYZZ30vueNZTg73alF59DicYrPViG0NEgDVN8/Jl87zkAPu4u6VjZST2llgEUjaiNl9JM6HH1Vdw==", 1638 + "version": "4.59.0", 1639 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz", 1640 + "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==", 1453 1641 "cpu": [ 1454 1642 "ppc64" 1455 1643 ], ··· 1460 1648 ] 1461 1649 }, 1462 1650 "node_modules/@rollup/rollup-linux-riscv64-gnu": { 1463 - "version": "4.55.1", 1464 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.55.1.tgz", 1465 - "integrity": "sha512-uW0Y12ih2XJRERZ4jAfKamTyIHVMPQnTZcQjme2HMVDAHY4amf5u414OqNYC+x+LzRdRcnIG1YodLrrtA8xsxw==", 1651 + "version": "4.59.0", 1652 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz", 1653 + "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==", 1466 1654 "cpu": [ 1467 1655 "riscv64" 1468 1656 ], ··· 1473 1661 ] 1474 1662 }, 1475 1663 "node_modules/@rollup/rollup-linux-riscv64-musl": { 1476 - "version": "4.55.1", 1477 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.55.1.tgz", 1478 - "integrity": "sha512-u9yZ0jUkOED1BFrqu3BwMQoixvGHGZ+JhJNkNKY/hyoEgOwlqKb62qu+7UjbPSHYjiVy8kKJHvXKv5coH4wDeg==", 1664 + "version": "4.59.0", 1665 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz", 1666 + "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==", 1479 1667 "cpu": [ 1480 1668 "riscv64" 1481 1669 ], ··· 1486 1674 ] 1487 1675 }, 1488 1676 "node_modules/@rollup/rollup-linux-s390x-gnu": { 1489 - "version": "4.55.1", 1490 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.55.1.tgz", 1491 - "integrity": "sha512-/0PenBCmqM4ZUd0190j7J0UsQ/1nsi735iPRakO8iPciE7BQ495Y6msPzaOmvx0/pn+eJVVlZrNrSh4WSYLxNg==", 1677 + "version": "4.59.0", 1678 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz", 1679 + "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==", 1492 1680 "cpu": [ 1493 1681 "s390x" 1494 1682 ], ··· 1499 1687 ] 1500 1688 }, 1501 1689 "node_modules/@rollup/rollup-linux-x64-gnu": { 1502 - "version": "4.55.1", 1503 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.55.1.tgz", 1504 - "integrity": "sha512-a8G4wiQxQG2BAvo+gU6XrReRRqj+pLS2NGXKm8io19goR+K8lw269eTrPkSdDTALwMmJp4th2Uh0D8J9bEV1vg==", 1690 + "version": "4.59.0", 1691 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz", 1692 + "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==", 1505 1693 "cpu": [ 1506 1694 "x64" 1507 1695 ], ··· 1512 1700 ] 1513 1701 }, 1514 1702 "node_modules/@rollup/rollup-linux-x64-musl": { 1515 - "version": "4.55.1", 1516 - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.55.1.tgz", 1517 - "integrity": "sha512-bD+zjpFrMpP/hqkfEcnjXWHMw5BIghGisOKPj+2NaNDuVT+8Ds4mPf3XcPHuat1tz89WRL+1wbcxKY3WSbiT7w==", 1703 + "version": "4.59.0", 1704 + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz", 1705 + "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==", 1518 1706 "cpu": [ 1519 1707 "x64" 1520 1708 ], ··· 1525 1713 ] 1526 1714 }, 1527 1715 "node_modules/@rollup/rollup-openbsd-x64": { 1528 - "version": "4.55.1", 1529 - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.55.1.tgz", 1530 - "integrity": "sha512-eLXw0dOiqE4QmvikfQ6yjgkg/xDM+MdU9YJuP4ySTibXU0oAvnEWXt7UDJmD4UkYialMfOGFPJnIHSe/kdzPxg==", 1716 + "version": "4.59.0", 1717 + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz", 1718 + "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==", 1531 1719 "cpu": [ 1532 1720 "x64" 1533 1721 ], ··· 1538 1726 ] 1539 1727 }, 1540 1728 "node_modules/@rollup/rollup-openharmony-arm64": { 1541 - "version": "4.55.1", 1542 - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.55.1.tgz", 1543 - "integrity": "sha512-xzm44KgEP11te3S2HCSyYf5zIzWmx3n8HDCc7EE59+lTcswEWNpvMLfd9uJvVX8LCg9QWG67Xt75AuHn4vgsXw==", 1729 + "version": "4.59.0", 1730 + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz", 1731 + "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==", 1544 1732 "cpu": [ 1545 1733 "arm64" 1546 1734 ], ··· 1551 1739 ] 1552 1740 }, 1553 1741 "node_modules/@rollup/rollup-win32-arm64-msvc": { 1554 - "version": "4.55.1", 1555 - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.55.1.tgz", 1556 - "integrity": "sha512-yR6Bl3tMC/gBok5cz/Qi0xYnVbIxGx5Fcf/ca0eB6/6JwOY+SRUcJfI0OpeTpPls7f194as62thCt/2BjxYN8g==", 1742 + "version": "4.59.0", 1743 + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz", 1744 + "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==", 1557 1745 "cpu": [ 1558 1746 "arm64" 1559 1747 ], ··· 1564 1752 ] 1565 1753 }, 1566 1754 "node_modules/@rollup/rollup-win32-ia32-msvc": { 1567 - "version": "4.55.1", 1568 - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.55.1.tgz", 1569 - "integrity": "sha512-3fZBidchE0eY0oFZBnekYCfg+5wAB0mbpCBuofh5mZuzIU/4jIVkbESmd2dOsFNS78b53CYv3OAtwqkZZmU5nA==", 1755 + "version": "4.59.0", 1756 + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz", 1757 + "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==", 1570 1758 "cpu": [ 1571 1759 "ia32" 1572 1760 ], ··· 1577 1765 ] 1578 1766 }, 1579 1767 "node_modules/@rollup/rollup-win32-x64-gnu": { 1580 - "version": "4.55.1", 1581 - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.55.1.tgz", 1582 - "integrity": "sha512-xGGY5pXj69IxKb4yv/POoocPy/qmEGhimy/FoTpTSVju3FYXUQQMFCaZZXJVidsmGxRioZAwpThl/4zX41gRKg==", 1768 + "version": "4.59.0", 1769 + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz", 1770 + "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==", 1583 1771 "cpu": [ 1584 1772 "x64" 1585 1773 ], ··· 1590 1778 ] 1591 1779 }, 1592 1780 "node_modules/@rollup/rollup-win32-x64-msvc": { 1593 - "version": "4.55.1", 1594 - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.55.1.tgz", 1595 - "integrity": "sha512-SPEpaL6DX4rmcXtnhdrQYgzQ5W2uW3SCJch88lB2zImhJRhIIK44fkUrgIV/Q8yUNfw5oyZ5vkeQsZLhCb06lw==", 1781 + "version": "4.59.0", 1782 + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz", 1783 + "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==", 1596 1784 "cpu": [ 1597 1785 "x64" 1598 1786 ], ··· 1603 1791 ] 1604 1792 }, 1605 1793 "node_modules/@shikijs/core": { 1606 - "version": "3.21.0", 1607 - "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-3.21.0.tgz", 1608 - "integrity": "sha512-AXSQu/2n1UIQekY8euBJlvFYZIw0PHY63jUzGbrOma4wPxzznJXTXkri+QcHeBNaFxiiOljKxxJkVSoB3PjbyA==", 1794 + "version": "4.0.2", 1795 + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.0.2.tgz", 1796 + "integrity": "sha512-hxT0YF4ExEqB8G/qFdtJvpmHXBYJ2lWW7qTHDarVkIudPFE6iCIrqdgWxGn5s+ppkGXI0aEGlibI0PAyzP3zlw==", 1609 1797 "license": "MIT", 1610 1798 "dependencies": { 1611 - "@shikijs/types": "3.21.0", 1799 + "@shikijs/primitive": "4.0.2", 1800 + "@shikijs/types": "4.0.2", 1612 1801 "@shikijs/vscode-textmate": "^10.0.2", 1613 1802 "@types/hast": "^3.0.4", 1614 1803 "hast-util-to-html": "^9.0.5" 1804 + }, 1805 + "engines": { 1806 + "node": ">=20" 1615 1807 } 1616 1808 }, 1617 1809 "node_modules/@shikijs/engine-javascript": { 1618 - "version": "3.21.0", 1619 - "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-3.21.0.tgz", 1620 - "integrity": "sha512-ATwv86xlbmfD9n9gKRiwuPpWgPENAWCLwYCGz9ugTJlsO2kOzhOkvoyV/UD+tJ0uT7YRyD530x6ugNSffmvIiQ==", 1810 + "version": "4.0.2", 1811 + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.0.2.tgz", 1812 + "integrity": "sha512-7PW0Nm49DcoUIQEXlJhNNBHyoGMjalRETTCcjMqEaMoJRLljy1Bi/EGV3/qLBgLKQejdspiiYuHGQW6dX94Nag==", 1621 1813 "license": "MIT", 1622 1814 "dependencies": { 1623 - "@shikijs/types": "3.21.0", 1815 + "@shikijs/types": "4.0.2", 1624 1816 "@shikijs/vscode-textmate": "^10.0.2", 1625 1817 "oniguruma-to-es": "^4.3.4" 1818 + }, 1819 + "engines": { 1820 + "node": ">=20" 1626 1821 } 1627 1822 }, 1628 1823 "node_modules/@shikijs/engine-oniguruma": { 1629 - "version": "3.21.0", 1630 - "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.21.0.tgz", 1631 - "integrity": "sha512-OYknTCct6qiwpQDqDdf3iedRdzj6hFlOPv5hMvI+hkWfCKs5mlJ4TXziBG9nyabLwGulrUjHiCq3xCspSzErYQ==", 1824 + "version": "4.0.2", 1825 + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.0.2.tgz", 1826 + "integrity": "sha512-UpCB9Y2sUKlS9z8juFSKz7ZtysmeXCgnRF0dlhXBkmQnek7lAToPte8DkxmEYGNTMii72zU/lyXiCB6StuZeJg==", 1632 1827 "license": "MIT", 1633 1828 "dependencies": { 1634 - "@shikijs/types": "3.21.0", 1829 + "@shikijs/types": "4.0.2", 1635 1830 "@shikijs/vscode-textmate": "^10.0.2" 1831 + }, 1832 + "engines": { 1833 + "node": ">=20" 1636 1834 } 1637 1835 }, 1638 1836 "node_modules/@shikijs/langs": { 1639 - "version": "3.21.0", 1640 - "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.21.0.tgz", 1641 - "integrity": "sha512-g6mn5m+Y6GBJ4wxmBYqalK9Sp0CFkUqfNzUy2pJglUginz6ZpWbaWjDB4fbQ/8SHzFjYbtU6Ddlp1pc+PPNDVA==", 1837 + "version": "4.0.2", 1838 + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.0.2.tgz", 1839 + "integrity": "sha512-KaXby5dvoeuZzN0rYQiPMjFoUrz4hgwIE+D6Du9owcHcl6/g16/yT5BQxSW5cGt2MZBz6Hl0YuRqf12omRfUUg==", 1642 1840 "license": "MIT", 1643 1841 "dependencies": { 1644 - "@shikijs/types": "3.21.0" 1842 + "@shikijs/types": "4.0.2" 1843 + }, 1844 + "engines": { 1845 + "node": ">=20" 1846 + } 1847 + }, 1848 + "node_modules/@shikijs/primitive": { 1849 + "version": "4.0.2", 1850 + "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.0.2.tgz", 1851 + "integrity": "sha512-M6UMPrSa3fN5ayeJwFVl9qWofl273wtK1VG8ySDZ1mQBfhCpdd8nEx7nPZ/tk7k+TYcpqBZzj/AnwxT9lO+HJw==", 1852 + "license": "MIT", 1853 + "dependencies": { 1854 + "@shikijs/types": "4.0.2", 1855 + "@shikijs/vscode-textmate": "^10.0.2", 1856 + "@types/hast": "^3.0.4" 1857 + }, 1858 + "engines": { 1859 + "node": ">=20" 1645 1860 } 1646 1861 }, 1647 1862 "node_modules/@shikijs/themes": { 1648 - "version": "3.21.0", 1649 - "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.21.0.tgz", 1650 - "integrity": "sha512-BAE4cr9EDiZyYzwIHEk7JTBJ9CzlPuM4PchfcA5ao1dWXb25nv6hYsoDiBq2aZK9E3dlt3WB78uI96UESD+8Mw==", 1863 + "version": "4.0.2", 1864 + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.0.2.tgz", 1865 + "integrity": "sha512-mjCafwt8lJJaVSsQvNVrJumbnnj1RI8jbUKrPKgE6E3OvQKxnuRoBaYC51H4IGHePsGN/QtALglWBU7DoKDFnA==", 1651 1866 "license": "MIT", 1652 1867 "dependencies": { 1653 - "@shikijs/types": "3.21.0" 1868 + "@shikijs/types": "4.0.2" 1869 + }, 1870 + "engines": { 1871 + "node": ">=20" 1654 1872 } 1655 1873 }, 1656 1874 "node_modules/@shikijs/types": { 1657 - "version": "3.21.0", 1658 - "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.21.0.tgz", 1659 - "integrity": "sha512-zGrWOxZ0/+0ovPY7PvBU2gIS9tmhSUUt30jAcNV0Bq0gb2S98gwfjIs1vxlmH5zM7/4YxLamT6ChlqqAJmPPjA==", 1875 + "version": "4.0.2", 1876 + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.0.2.tgz", 1877 + "integrity": "sha512-qzbeRooUTPnLE+sHD/Z8DStmaDgnbbc/pMrU203950aRqjX/6AFHeDYT+j00y2lPdz0ywJKx7o/7qnqTivtlXg==", 1660 1878 "license": "MIT", 1661 1879 "dependencies": { 1662 1880 "@shikijs/vscode-textmate": "^10.0.2", 1663 1881 "@types/hast": "^3.0.4" 1882 + }, 1883 + "engines": { 1884 + "node": ">=20" 1664 1885 } 1665 1886 }, 1666 1887 "node_modules/@shikijs/vscode-textmate": { ··· 1735 1956 "@types/unist": "*" 1736 1957 } 1737 1958 }, 1959 + "node_modules/@types/node": { 1960 + "version": "22.19.15", 1961 + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.15.tgz", 1962 + "integrity": "sha512-F0R/h2+dsy5wJAUe3tAU6oqa2qbWY5TpNfL/RGmo1y38hiyO1w3x2jPtt76wmuaJI4DQnOBu21cNXQ2STIUUWg==", 1963 + "devOptional": true, 1964 + "license": "MIT", 1965 + "peer": true, 1966 + "dependencies": { 1967 + "undici-types": "~6.21.0" 1968 + } 1969 + }, 1738 1970 "node_modules/@types/unist": { 1739 1971 "version": "3.0.3", 1740 1972 "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", ··· 1747 1979 "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", 1748 1980 "license": "ISC" 1749 1981 }, 1750 - "node_modules/acorn": { 1751 - "version": "8.15.0", 1752 - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", 1753 - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", 1982 + "node_modules/@volar/kit": { 1983 + "version": "2.4.28", 1984 + "resolved": "https://registry.npmjs.org/@volar/kit/-/kit-2.4.28.tgz", 1985 + "integrity": "sha512-cKX4vK9dtZvDRaAzeoUdaAJEew6IdxHNCRrdp5Kvcl6zZOqb6jTOfk3kXkIkG3T7oTFXguEMt5+9ptyqYR84Pg==", 1986 + "dev": true, 1754 1987 "license": "MIT", 1755 - "bin": { 1756 - "acorn": "bin/acorn" 1988 + "dependencies": { 1989 + "@volar/language-service": "2.4.28", 1990 + "@volar/typescript": "2.4.28", 1991 + "typesafe-path": "^0.2.2", 1992 + "vscode-languageserver-textdocument": "^1.0.11", 1993 + "vscode-uri": "^3.0.8" 1757 1994 }, 1758 - "engines": { 1759 - "node": ">=0.4.0" 1995 + "peerDependencies": { 1996 + "typescript": "*" 1760 1997 } 1761 1998 }, 1762 - "node_modules/acorn-walk": { 1763 - "version": "8.3.2", 1764 - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", 1765 - "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", 1999 + "node_modules/@volar/language-core": { 2000 + "version": "2.4.28", 2001 + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.28.tgz", 2002 + "integrity": "sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==", 2003 + "dev": true, 1766 2004 "license": "MIT", 1767 - "engines": { 1768 - "node": ">=0.4.0" 2005 + "dependencies": { 2006 + "@volar/source-map": "2.4.28" 1769 2007 } 1770 2008 }, 1771 - "node_modules/ansi-align": { 1772 - "version": "3.0.1", 1773 - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", 1774 - "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", 1775 - "license": "ISC", 2009 + "node_modules/@volar/language-server": { 2010 + "version": "2.4.28", 2011 + "resolved": "https://registry.npmjs.org/@volar/language-server/-/language-server-2.4.28.tgz", 2012 + "integrity": "sha512-NqcLnE5gERKuS4PUFwlhMxf6vqYo7hXtbMFbViXcbVkbZ905AIVWhnSo0ZNBC2V127H1/2zP7RvVOVnyITFfBw==", 2013 + "dev": true, 2014 + "license": "MIT", 1776 2015 "dependencies": { 1777 - "string-width": "^4.1.0" 2016 + "@volar/language-core": "2.4.28", 2017 + "@volar/language-service": "2.4.28", 2018 + "@volar/typescript": "2.4.28", 2019 + "path-browserify": "^1.0.1", 2020 + "request-light": "^0.7.0", 2021 + "vscode-languageserver": "^9.0.1", 2022 + "vscode-languageserver-protocol": "^3.17.5", 2023 + "vscode-languageserver-textdocument": "^1.0.11", 2024 + "vscode-uri": "^3.0.8" 1778 2025 } 1779 2026 }, 1780 - "node_modules/ansi-align/node_modules/ansi-regex": { 1781 - "version": "5.0.1", 1782 - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1783 - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2027 + "node_modules/@volar/language-service": { 2028 + "version": "2.4.28", 2029 + "resolved": "https://registry.npmjs.org/@volar/language-service/-/language-service-2.4.28.tgz", 2030 + "integrity": "sha512-Rh/wYCZJrI5vCwMk9xyw/Z+MsWxlJY1rmMZPsxUoJKfzIRjS/NF1NmnuEcrMbEVGja00aVpCsInJfixQTMdvLw==", 2031 + "dev": true, 1784 2032 "license": "MIT", 1785 - "engines": { 1786 - "node": ">=8" 2033 + "dependencies": { 2034 + "@volar/language-core": "2.4.28", 2035 + "vscode-languageserver-protocol": "^3.17.5", 2036 + "vscode-languageserver-textdocument": "^1.0.11", 2037 + "vscode-uri": "^3.0.8" 1787 2038 } 1788 2039 }, 1789 - "node_modules/ansi-align/node_modules/emoji-regex": { 1790 - "version": "8.0.0", 1791 - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1792 - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2040 + "node_modules/@volar/source-map": { 2041 + "version": "2.4.28", 2042 + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.28.tgz", 2043 + "integrity": "sha512-yX2BDBqJkRXfKw8my8VarTyjv48QwxdJtvRgUpNE5erCsgEUdI2DsLbpa+rOQVAJYshY99szEcRDmyHbF10ggQ==", 2044 + "dev": true, 1793 2045 "license": "MIT" 1794 2046 }, 1795 - "node_modules/ansi-align/node_modules/string-width": { 1796 - "version": "4.2.3", 1797 - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1798 - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2047 + "node_modules/@volar/typescript": { 2048 + "version": "2.4.28", 2049 + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.28.tgz", 2050 + "integrity": "sha512-Ja6yvWrbis2QtN4ClAKreeUZPVYMARDYZl9LMEv1iQ1QdepB6wn0jTRxA9MftYmYa4DQ4k/DaSZpFPUfxl8giw==", 2051 + "dev": true, 1799 2052 "license": "MIT", 1800 2053 "dependencies": { 1801 - "emoji-regex": "^8.0.0", 1802 - "is-fullwidth-code-point": "^3.0.0", 1803 - "strip-ansi": "^6.0.1" 1804 - }, 1805 - "engines": { 1806 - "node": ">=8" 2054 + "@volar/language-core": "2.4.28", 2055 + "path-browserify": "^1.0.1", 2056 + "vscode-uri": "^3.0.8" 1807 2057 } 1808 2058 }, 1809 - "node_modules/ansi-align/node_modules/strip-ansi": { 1810 - "version": "6.0.1", 1811 - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1812 - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2059 + "node_modules/@vscode/emmet-helper": { 2060 + "version": "2.11.0", 2061 + "resolved": "https://registry.npmjs.org/@vscode/emmet-helper/-/emmet-helper-2.11.0.tgz", 2062 + "integrity": "sha512-QLxjQR3imPZPQltfbWRnHU6JecWTF1QSWhx3GAKQpslx7y3Dp6sIIXhKjiUJ/BR9FX8PVthjr9PD6pNwOJfAzw==", 2063 + "dev": true, 1813 2064 "license": "MIT", 1814 2065 "dependencies": { 1815 - "ansi-regex": "^5.0.1" 2066 + "emmet": "^2.4.3", 2067 + "jsonc-parser": "^2.3.0", 2068 + "vscode-languageserver-textdocument": "^1.0.1", 2069 + "vscode-languageserver-types": "^3.15.1", 2070 + "vscode-uri": "^3.0.8" 2071 + } 2072 + }, 2073 + "node_modules/@vscode/l10n": { 2074 + "version": "0.0.18", 2075 + "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz", 2076 + "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==", 2077 + "dev": true, 2078 + "license": "MIT" 2079 + }, 2080 + "node_modules/ajv": { 2081 + "version": "8.18.0", 2082 + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", 2083 + "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", 2084 + "dev": true, 2085 + "license": "MIT", 2086 + "peer": true, 2087 + "dependencies": { 2088 + "fast-deep-equal": "^3.1.3", 2089 + "fast-uri": "^3.0.1", 2090 + "json-schema-traverse": "^1.0.0", 2091 + "require-from-string": "^2.0.2" 1816 2092 }, 1817 - "engines": { 1818 - "node": ">=8" 2093 + "funding": { 2094 + "type": "github", 2095 + "url": "https://github.com/sponsors/epoberezkin" 2096 + } 2097 + }, 2098 + "node_modules/ajv-draft-04": { 2099 + "version": "1.0.0", 2100 + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", 2101 + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", 2102 + "dev": true, 2103 + "license": "MIT", 2104 + "peerDependencies": { 2105 + "ajv": "^8.5.0" 2106 + }, 2107 + "peerDependenciesMeta": { 2108 + "ajv": { 2109 + "optional": true 2110 + } 1819 2111 } 1820 2112 }, 1821 2113 "node_modules/ansi-regex": { 1822 - "version": "6.2.2", 1823 - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", 1824 - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", 2114 + "version": "5.0.1", 2115 + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 2116 + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2117 + "dev": true, 1825 2118 "license": "MIT", 1826 2119 "engines": { 1827 - "node": ">=12" 1828 - }, 1829 - "funding": { 1830 - "url": "https://github.com/chalk/ansi-regex?sponsor=1" 2120 + "node": ">=8" 1831 2121 } 1832 2122 }, 1833 2123 "node_modules/ansi-styles": { 1834 - "version": "6.2.3", 1835 - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", 1836 - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", 2124 + "version": "4.3.0", 2125 + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 2126 + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 2127 + "dev": true, 1837 2128 "license": "MIT", 2129 + "dependencies": { 2130 + "color-convert": "^2.0.1" 2131 + }, 1838 2132 "engines": { 1839 - "node": ">=12" 2133 + "node": ">=8" 1840 2134 }, 1841 2135 "funding": { 1842 2136 "url": "https://github.com/chalk/ansi-styles?sponsor=1" ··· 1893 2187 } 1894 2188 }, 1895 2189 "node_modules/astro": { 1896 - "version": "5.17.3", 1897 - "resolved": "https://registry.npmjs.org/astro/-/astro-5.17.3.tgz", 1898 - "integrity": "sha512-69dcfPe8LsHzklwj+hl+vunWUbpMB6pmg35mACjetxbJeUNNys90JaBM8ZiwsPK689SAj/4Zqb1ayaANls9/MA==", 2190 + "version": "6.0.2", 2191 + "resolved": "https://registry.npmjs.org/astro/-/astro-6.0.2.tgz", 2192 + "integrity": "sha512-aYCU9QcaV3QlOxO+JU2lR4xazVuPaH7oFhc990H/fhbWLMm1MWlRnjfnti1gYMm9N9l7gqPb3t7JsQBlUEQXIg==", 1899 2193 "license": "MIT", 1900 2194 "peer": true, 1901 2195 "dependencies": { 1902 - "@astrojs/compiler": "^2.13.0", 1903 - "@astrojs/internal-helpers": "0.7.5", 1904 - "@astrojs/markdown-remark": "6.3.10", 2196 + "@astrojs/compiler": "^3.0.0", 2197 + "@astrojs/internal-helpers": "0.8.0", 2198 + "@astrojs/markdown-remark": "7.0.0", 1905 2199 "@astrojs/telemetry": "3.3.0", 1906 2200 "@capsizecss/unpack": "^4.0.0", 2201 + "@clack/prompts": "^1.0.1", 1907 2202 "@oslojs/encoding": "^1.1.0", 1908 2203 "@rollup/pluginutils": "^5.3.0", 1909 - "acorn": "^8.15.0", 1910 2204 "aria-query": "^5.3.2", 1911 2205 "axobject-query": "^4.1.0", 1912 - "boxen": "8.0.1", 1913 - "ci-info": "^4.3.1", 2206 + "ci-info": "^4.4.0", 1914 2207 "clsx": "^2.1.1", 1915 - "common-ancestor-path": "^1.0.1", 2208 + "common-ancestor-path": "^2.0.0", 1916 2209 "cookie": "^1.1.1", 1917 - "cssesc": "^3.0.0", 1918 - "debug": "^4.4.3", 1919 - "deterministic-object-hash": "^2.0.2", 1920 - "devalue": "^5.6.2", 2210 + "devalue": "^5.6.3", 1921 2211 "diff": "^8.0.3", 1922 2212 "dlv": "^1.1.3", 1923 2213 "dset": "^3.1.4", 1924 - "es-module-lexer": "^1.7.0", 2214 + "es-module-lexer": "^2.0.0", 1925 2215 "esbuild": "^0.27.3", 1926 - "estree-walker": "^3.0.3", 1927 2216 "flattie": "^1.1.1", 1928 - "fontace": "~0.4.0", 2217 + "fontace": "~0.4.1", 1929 2218 "github-slugger": "^2.0.0", 1930 2219 "html-escaper": "3.0.3", 1931 2220 "http-cache-semantics": "^4.2.0", 1932 - "import-meta-resolve": "^4.2.0", 1933 2221 "js-yaml": "^4.1.1", 1934 2222 "magic-string": "^0.30.21", 1935 - "magicast": "^0.5.1", 2223 + "magicast": "^0.5.2", 1936 2224 "mrmime": "^2.0.1", 1937 2225 "neotraverse": "^0.6.18", 1938 - "p-limit": "^6.2.0", 1939 - "p-queue": "^8.1.1", 2226 + "obug": "^2.1.1", 2227 + "p-limit": "^7.3.0", 2228 + "p-queue": "^9.1.0", 1940 2229 "package-manager-detector": "^1.6.0", 1941 2230 "piccolore": "^0.1.3", 1942 2231 "picomatch": "^4.0.3", 1943 - "prompts": "^2.4.2", 1944 2232 "rehype": "^13.0.2", 1945 - "semver": "^7.7.3", 1946 - "shiki": "^3.21.0", 2233 + "semver": "^7.7.4", 2234 + "shiki": "^4.0.0", 1947 2235 "smol-toml": "^1.6.0", 1948 2236 "svgo": "^4.0.0", 2237 + "tinyclip": "^0.1.6", 1949 2238 "tinyexec": "^1.0.2", 1950 2239 "tinyglobby": "^0.2.15", 1951 2240 "tsconfck": "^3.1.6", 1952 2241 "ultrahtml": "^1.6.0", 1953 - "unifont": "~0.7.3", 1954 - "unist-util-visit": "^5.0.0", 2242 + "unifont": "~0.7.4", 2243 + "unist-util-visit": "^5.1.0", 1955 2244 "unstorage": "^1.17.4", 1956 2245 "vfile": "^6.0.3", 1957 - "vite": "^6.4.1", 1958 - "vitefu": "^1.1.1", 2246 + "vite": "^7.3.1", 2247 + "vitefu": "^1.1.2", 1959 2248 "xxhash-wasm": "^1.1.0", 1960 - "yargs-parser": "^21.1.1", 1961 - "yocto-spinner": "^0.2.3", 1962 - "zod": "^3.25.76", 1963 - "zod-to-json-schema": "^3.25.1", 1964 - "zod-to-ts": "^1.2.0" 2249 + "yargs-parser": "^22.0.0", 2250 + "zod": "^4.3.6" 1965 2251 }, 1966 2252 "bin": { 1967 - "astro": "astro.js" 2253 + "astro": "bin/astro.mjs" 1968 2254 }, 1969 2255 "engines": { 1970 - "node": "18.20.8 || ^20.3.0 || >=22.0.0", 2256 + "node": "^20.19.1 || >=22.12.0", 1971 2257 "npm": ">=9.6.5", 1972 2258 "pnpm": ">=7.1.0" 1973 2259 }, ··· 1979 2265 "sharp": "^0.34.0" 1980 2266 } 1981 2267 }, 1982 - "node_modules/astro/node_modules/@esbuild/aix-ppc64": { 1983 - "version": "0.27.3", 1984 - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", 1985 - "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", 1986 - "cpu": [ 1987 - "ppc64" 1988 - ], 1989 - "license": "MIT", 1990 - "optional": true, 1991 - "os": [ 1992 - "aix" 1993 - ], 1994 - "engines": { 1995 - "node": ">=18" 1996 - } 1997 - }, 1998 - "node_modules/astro/node_modules/@esbuild/android-arm": { 1999 - "version": "0.27.3", 2000 - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", 2001 - "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", 2002 - "cpu": [ 2003 - "arm" 2004 - ], 2005 - "license": "MIT", 2006 - "optional": true, 2007 - "os": [ 2008 - "android" 2009 - ], 2010 - "engines": { 2011 - "node": ">=18" 2012 - } 2013 - }, 2014 - "node_modules/astro/node_modules/@esbuild/android-arm64": { 2015 - "version": "0.27.3", 2016 - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", 2017 - "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", 2018 - "cpu": [ 2019 - "arm64" 2020 - ], 2021 - "license": "MIT", 2022 - "optional": true, 2023 - "os": [ 2024 - "android" 2025 - ], 2026 - "engines": { 2027 - "node": ">=18" 2028 - } 2029 - }, 2030 - "node_modules/astro/node_modules/@esbuild/android-x64": { 2031 - "version": "0.27.3", 2032 - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", 2033 - "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", 2034 - "cpu": [ 2035 - "x64" 2036 - ], 2037 - "license": "MIT", 2038 - "optional": true, 2039 - "os": [ 2040 - "android" 2041 - ], 2042 - "engines": { 2043 - "node": ">=18" 2044 - } 2045 - }, 2046 - "node_modules/astro/node_modules/@esbuild/darwin-arm64": { 2047 - "version": "0.27.3", 2048 - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", 2049 - "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", 2050 - "cpu": [ 2051 - "arm64" 2052 - ], 2053 - "license": "MIT", 2054 - "optional": true, 2055 - "os": [ 2056 - "darwin" 2057 - ], 2058 - "engines": { 2059 - "node": ">=18" 2060 - } 2061 - }, 2062 - "node_modules/astro/node_modules/@esbuild/darwin-x64": { 2063 - "version": "0.27.3", 2064 - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", 2065 - "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", 2066 - "cpu": [ 2067 - "x64" 2068 - ], 2069 - "license": "MIT", 2070 - "optional": true, 2071 - "os": [ 2072 - "darwin" 2073 - ], 2074 - "engines": { 2075 - "node": ">=18" 2076 - } 2077 - }, 2078 - "node_modules/astro/node_modules/@esbuild/freebsd-arm64": { 2079 - "version": "0.27.3", 2080 - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", 2081 - "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", 2082 - "cpu": [ 2083 - "arm64" 2084 - ], 2085 - "license": "MIT", 2086 - "optional": true, 2087 - "os": [ 2088 - "freebsd" 2089 - ], 2090 - "engines": { 2091 - "node": ">=18" 2092 - } 2093 - }, 2094 - "node_modules/astro/node_modules/@esbuild/freebsd-x64": { 2095 - "version": "0.27.3", 2096 - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", 2097 - "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", 2098 - "cpu": [ 2099 - "x64" 2100 - ], 2101 - "license": "MIT", 2102 - "optional": true, 2103 - "os": [ 2104 - "freebsd" 2105 - ], 2106 - "engines": { 2107 - "node": ">=18" 2108 - } 2109 - }, 2110 - "node_modules/astro/node_modules/@esbuild/linux-arm": { 2111 - "version": "0.27.3", 2112 - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", 2113 - "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", 2114 - "cpu": [ 2115 - "arm" 2116 - ], 2117 - "license": "MIT", 2118 - "optional": true, 2119 - "os": [ 2120 - "linux" 2121 - ], 2122 - "engines": { 2123 - "node": ">=18" 2124 - } 2125 - }, 2126 - "node_modules/astro/node_modules/@esbuild/linux-arm64": { 2127 - "version": "0.27.3", 2128 - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", 2129 - "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", 2130 - "cpu": [ 2131 - "arm64" 2132 - ], 2133 - "license": "MIT", 2134 - "optional": true, 2135 - "os": [ 2136 - "linux" 2137 - ], 2138 - "engines": { 2139 - "node": ">=18" 2140 - } 2141 - }, 2142 - "node_modules/astro/node_modules/@esbuild/linux-ia32": { 2143 - "version": "0.27.3", 2144 - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", 2145 - "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", 2146 - "cpu": [ 2147 - "ia32" 2148 - ], 2149 - "license": "MIT", 2150 - "optional": true, 2151 - "os": [ 2152 - "linux" 2153 - ], 2154 - "engines": { 2155 - "node": ">=18" 2156 - } 2157 - }, 2158 - "node_modules/astro/node_modules/@esbuild/linux-loong64": { 2159 - "version": "0.27.3", 2160 - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", 2161 - "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", 2162 - "cpu": [ 2163 - "loong64" 2164 - ], 2165 - "license": "MIT", 2166 - "optional": true, 2167 - "os": [ 2168 - "linux" 2169 - ], 2170 - "engines": { 2171 - "node": ">=18" 2172 - } 2173 - }, 2174 - "node_modules/astro/node_modules/@esbuild/linux-mips64el": { 2175 - "version": "0.27.3", 2176 - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", 2177 - "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", 2178 - "cpu": [ 2179 - "mips64el" 2180 - ], 2181 - "license": "MIT", 2182 - "optional": true, 2183 - "os": [ 2184 - "linux" 2185 - ], 2186 - "engines": { 2187 - "node": ">=18" 2188 - } 2189 - }, 2190 - "node_modules/astro/node_modules/@esbuild/linux-ppc64": { 2191 - "version": "0.27.3", 2192 - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", 2193 - "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", 2194 - "cpu": [ 2195 - "ppc64" 2196 - ], 2197 - "license": "MIT", 2198 - "optional": true, 2199 - "os": [ 2200 - "linux" 2201 - ], 2202 - "engines": { 2203 - "node": ">=18" 2204 - } 2205 - }, 2206 - "node_modules/astro/node_modules/@esbuild/linux-riscv64": { 2207 - "version": "0.27.3", 2208 - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", 2209 - "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", 2210 - "cpu": [ 2211 - "riscv64" 2212 - ], 2213 - "license": "MIT", 2214 - "optional": true, 2215 - "os": [ 2216 - "linux" 2217 - ], 2218 - "engines": { 2219 - "node": ">=18" 2220 - } 2221 - }, 2222 - "node_modules/astro/node_modules/@esbuild/linux-s390x": { 2223 - "version": "0.27.3", 2224 - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", 2225 - "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", 2226 - "cpu": [ 2227 - "s390x" 2228 - ], 2229 - "license": "MIT", 2230 - "optional": true, 2231 - "os": [ 2232 - "linux" 2233 - ], 2234 - "engines": { 2235 - "node": ">=18" 2236 - } 2237 - }, 2238 - "node_modules/astro/node_modules/@esbuild/linux-x64": { 2239 - "version": "0.27.3", 2240 - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", 2241 - "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", 2242 - "cpu": [ 2243 - "x64" 2244 - ], 2245 - "license": "MIT", 2246 - "optional": true, 2247 - "os": [ 2248 - "linux" 2249 - ], 2250 - "engines": { 2251 - "node": ">=18" 2252 - } 2253 - }, 2254 - "node_modules/astro/node_modules/@esbuild/netbsd-arm64": { 2255 - "version": "0.27.3", 2256 - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", 2257 - "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", 2258 - "cpu": [ 2259 - "arm64" 2260 - ], 2261 - "license": "MIT", 2262 - "optional": true, 2263 - "os": [ 2264 - "netbsd" 2265 - ], 2266 - "engines": { 2267 - "node": ">=18" 2268 - } 2269 - }, 2270 - "node_modules/astro/node_modules/@esbuild/netbsd-x64": { 2271 - "version": "0.27.3", 2272 - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", 2273 - "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", 2274 - "cpu": [ 2275 - "x64" 2276 - ], 2277 - "license": "MIT", 2278 - "optional": true, 2279 - "os": [ 2280 - "netbsd" 2281 - ], 2282 - "engines": { 2283 - "node": ">=18" 2284 - } 2285 - }, 2286 - "node_modules/astro/node_modules/@esbuild/openbsd-arm64": { 2287 - "version": "0.27.3", 2288 - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", 2289 - "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", 2290 - "cpu": [ 2291 - "arm64" 2292 - ], 2293 - "license": "MIT", 2294 - "optional": true, 2295 - "os": [ 2296 - "openbsd" 2297 - ], 2298 - "engines": { 2299 - "node": ">=18" 2300 - } 2301 - }, 2302 - "node_modules/astro/node_modules/@esbuild/openbsd-x64": { 2303 - "version": "0.27.3", 2304 - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", 2305 - "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", 2306 - "cpu": [ 2307 - "x64" 2308 - ], 2309 - "license": "MIT", 2310 - "optional": true, 2311 - "os": [ 2312 - "openbsd" 2313 - ], 2314 - "engines": { 2315 - "node": ">=18" 2316 - } 2317 - }, 2318 - "node_modules/astro/node_modules/@esbuild/openharmony-arm64": { 2319 - "version": "0.27.3", 2320 - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", 2321 - "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", 2322 - "cpu": [ 2323 - "arm64" 2324 - ], 2325 - "license": "MIT", 2326 - "optional": true, 2327 - "os": [ 2328 - "openharmony" 2329 - ], 2330 - "engines": { 2331 - "node": ">=18" 2332 - } 2333 - }, 2334 - "node_modules/astro/node_modules/@esbuild/sunos-x64": { 2335 - "version": "0.27.3", 2336 - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", 2337 - "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", 2338 - "cpu": [ 2339 - "x64" 2340 - ], 2341 - "license": "MIT", 2342 - "optional": true, 2343 - "os": [ 2344 - "sunos" 2345 - ], 2346 - "engines": { 2347 - "node": ">=18" 2348 - } 2349 - }, 2350 - "node_modules/astro/node_modules/@esbuild/win32-arm64": { 2351 - "version": "0.27.3", 2352 - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", 2353 - "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", 2354 - "cpu": [ 2355 - "arm64" 2356 - ], 2357 - "license": "MIT", 2358 - "optional": true, 2359 - "os": [ 2360 - "win32" 2361 - ], 2362 - "engines": { 2363 - "node": ">=18" 2364 - } 2365 - }, 2366 - "node_modules/astro/node_modules/@esbuild/win32-ia32": { 2367 - "version": "0.27.3", 2368 - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", 2369 - "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", 2370 - "cpu": [ 2371 - "ia32" 2372 - ], 2373 - "license": "MIT", 2374 - "optional": true, 2375 - "os": [ 2376 - "win32" 2377 - ], 2378 - "engines": { 2379 - "node": ">=18" 2380 - } 2381 - }, 2382 - "node_modules/astro/node_modules/@esbuild/win32-x64": { 2383 - "version": "0.27.3", 2384 - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", 2385 - "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", 2386 - "cpu": [ 2387 - "x64" 2388 - ], 2389 - "license": "MIT", 2390 - "optional": true, 2391 - "os": [ 2392 - "win32" 2393 - ], 2394 - "engines": { 2395 - "node": ">=18" 2396 - } 2397 - }, 2398 - "node_modules/astro/node_modules/esbuild": { 2399 - "version": "0.27.3", 2400 - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", 2401 - "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", 2402 - "hasInstallScript": true, 2403 - "license": "MIT", 2404 - "bin": { 2405 - "esbuild": "bin/esbuild" 2406 - }, 2407 - "engines": { 2408 - "node": ">=18" 2409 - }, 2410 - "optionalDependencies": { 2411 - "@esbuild/aix-ppc64": "0.27.3", 2412 - "@esbuild/android-arm": "0.27.3", 2413 - "@esbuild/android-arm64": "0.27.3", 2414 - "@esbuild/android-x64": "0.27.3", 2415 - "@esbuild/darwin-arm64": "0.27.3", 2416 - "@esbuild/darwin-x64": "0.27.3", 2417 - "@esbuild/freebsd-arm64": "0.27.3", 2418 - "@esbuild/freebsd-x64": "0.27.3", 2419 - "@esbuild/linux-arm": "0.27.3", 2420 - "@esbuild/linux-arm64": "0.27.3", 2421 - "@esbuild/linux-ia32": "0.27.3", 2422 - "@esbuild/linux-loong64": "0.27.3", 2423 - "@esbuild/linux-mips64el": "0.27.3", 2424 - "@esbuild/linux-ppc64": "0.27.3", 2425 - "@esbuild/linux-riscv64": "0.27.3", 2426 - "@esbuild/linux-s390x": "0.27.3", 2427 - "@esbuild/linux-x64": "0.27.3", 2428 - "@esbuild/netbsd-arm64": "0.27.3", 2429 - "@esbuild/netbsd-x64": "0.27.3", 2430 - "@esbuild/openbsd-arm64": "0.27.3", 2431 - "@esbuild/openbsd-x64": "0.27.3", 2432 - "@esbuild/openharmony-arm64": "0.27.3", 2433 - "@esbuild/sunos-x64": "0.27.3", 2434 - "@esbuild/win32-arm64": "0.27.3", 2435 - "@esbuild/win32-ia32": "0.27.3", 2436 - "@esbuild/win32-x64": "0.27.3" 2437 - } 2438 - }, 2439 2268 "node_modules/axobject-query": { 2440 2269 "version": "4.1.0", 2441 2270 "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", ··· 2455 2284 "url": "https://github.com/sponsors/wooorm" 2456 2285 } 2457 2286 }, 2458 - "node_modules/base-64": { 2459 - "version": "1.0.0", 2460 - "resolved": "https://registry.npmjs.org/base-64/-/base-64-1.0.0.tgz", 2461 - "integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==", 2462 - "license": "MIT" 2463 - }, 2464 2287 "node_modules/blake3-wasm": { 2465 2288 "version": "2.1.5", 2466 2289 "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz", ··· 2473 2296 "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", 2474 2297 "license": "ISC" 2475 2298 }, 2476 - "node_modules/boxen": { 2477 - "version": "8.0.1", 2478 - "resolved": "https://registry.npmjs.org/boxen/-/boxen-8.0.1.tgz", 2479 - "integrity": "sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw==", 2480 - "license": "MIT", 2481 - "dependencies": { 2482 - "ansi-align": "^3.0.1", 2483 - "camelcase": "^8.0.0", 2484 - "chalk": "^5.3.0", 2485 - "cli-boxes": "^3.0.0", 2486 - "string-width": "^7.2.0", 2487 - "type-fest": "^4.21.0", 2488 - "widest-line": "^5.0.0", 2489 - "wrap-ansi": "^9.0.0" 2490 - }, 2491 - "engines": { 2492 - "node": ">=18" 2493 - }, 2494 - "funding": { 2495 - "url": "https://github.com/sponsors/sindresorhus" 2496 - } 2497 - }, 2498 - "node_modules/camelcase": { 2499 - "version": "8.0.0", 2500 - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz", 2501 - "integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==", 2502 - "license": "MIT", 2503 - "engines": { 2504 - "node": ">=16" 2505 - }, 2506 - "funding": { 2507 - "url": "https://github.com/sponsors/sindresorhus" 2508 - } 2509 - }, 2510 2299 "node_modules/ccount": { 2511 2300 "version": "2.0.1", 2512 2301 "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", ··· 2517 2306 "url": "https://github.com/sponsors/wooorm" 2518 2307 } 2519 2308 }, 2520 - "node_modules/chalk": { 2521 - "version": "5.6.2", 2522 - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", 2523 - "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==", 2524 - "license": "MIT", 2525 - "engines": { 2526 - "node": "^12.17.0 || ^14.13 || >=16.0.0" 2527 - }, 2528 - "funding": { 2529 - "url": "https://github.com/chalk/chalk?sponsor=1" 2530 - } 2531 - }, 2532 2309 "node_modules/character-entities": { 2533 2310 "version": "2.0.2", 2534 2311 "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", ··· 2575 2352 } 2576 2353 }, 2577 2354 "node_modules/ci-info": { 2578 - "version": "4.3.1", 2579 - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", 2580 - "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", 2355 + "version": "4.4.0", 2356 + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", 2357 + "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", 2581 2358 "funding": [ 2582 2359 { 2583 2360 "type": "github", ··· 2589 2366 "node": ">=8" 2590 2367 } 2591 2368 }, 2592 - "node_modules/cli-boxes": { 2593 - "version": "3.0.0", 2594 - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", 2595 - "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==", 2596 - "license": "MIT", 2597 - "engines": { 2598 - "node": ">=10" 2369 + "node_modules/cliui": { 2370 + "version": "8.0.1", 2371 + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", 2372 + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", 2373 + "dev": true, 2374 + "license": "ISC", 2375 + "dependencies": { 2376 + "string-width": "^4.2.0", 2377 + "strip-ansi": "^6.0.1", 2378 + "wrap-ansi": "^7.0.0" 2599 2379 }, 2600 - "funding": { 2601 - "url": "https://github.com/sponsors/sindresorhus" 2380 + "engines": { 2381 + "node": ">=12" 2602 2382 } 2603 2383 }, 2604 2384 "node_modules/clsx": { ··· 2610 2390 "node": ">=6" 2611 2391 } 2612 2392 }, 2613 - "node_modules/color": { 2614 - "version": "4.2.3", 2615 - "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", 2616 - "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", 2617 - "license": "MIT", 2618 - "dependencies": { 2619 - "color-convert": "^2.0.1", 2620 - "color-string": "^1.9.0" 2621 - }, 2622 - "engines": { 2623 - "node": ">=12.5.0" 2624 - } 2625 - }, 2626 2393 "node_modules/color-convert": { 2627 2394 "version": "2.0.1", 2628 2395 "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 2629 2396 "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 2397 + "dev": true, 2630 2398 "license": "MIT", 2631 2399 "dependencies": { 2632 2400 "color-name": "~1.1.4" ··· 2639 2407 "version": "1.1.4", 2640 2408 "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 2641 2409 "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 2410 + "dev": true, 2642 2411 "license": "MIT" 2643 2412 }, 2644 - "node_modules/color-string": { 2645 - "version": "1.9.1", 2646 - "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", 2647 - "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", 2648 - "license": "MIT", 2649 - "dependencies": { 2650 - "color-name": "^1.0.0", 2651 - "simple-swizzle": "^0.2.2" 2652 - } 2653 - }, 2654 2413 "node_modules/comma-separated-tokens": { 2655 2414 "version": "2.0.3", 2656 2415 "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", ··· 2671 2430 } 2672 2431 }, 2673 2432 "node_modules/common-ancestor-path": { 2674 - "version": "1.0.1", 2675 - "resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-1.0.1.tgz", 2676 - "integrity": "sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w==", 2677 - "license": "ISC" 2433 + "version": "2.0.0", 2434 + "resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-2.0.0.tgz", 2435 + "integrity": "sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng==", 2436 + "license": "BlueOak-1.0.0", 2437 + "engines": { 2438 + "node": ">= 18" 2439 + } 2678 2440 }, 2679 2441 "node_modules/cookie": { 2680 2442 "version": "1.1.1", ··· 2721 2483 } 2722 2484 }, 2723 2485 "node_modules/css-tree": { 2724 - "version": "3.1.0", 2725 - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.1.0.tgz", 2726 - "integrity": "sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==", 2486 + "version": "3.2.1", 2487 + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", 2488 + "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", 2727 2489 "license": "MIT", 2728 2490 "dependencies": { 2729 - "mdn-data": "2.12.2", 2730 - "source-map-js": "^1.0.1" 2491 + "mdn-data": "2.27.1", 2492 + "source-map-js": "^1.2.1" 2731 2493 }, 2732 2494 "engines": { 2733 2495 "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" ··· 2745 2507 "url": "https://github.com/sponsors/fb55" 2746 2508 } 2747 2509 }, 2748 - "node_modules/cssesc": { 2749 - "version": "3.0.0", 2750 - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", 2751 - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", 2752 - "license": "MIT", 2753 - "bin": { 2754 - "cssesc": "bin/cssesc" 2755 - }, 2756 - "engines": { 2757 - "node": ">=4" 2758 - } 2759 - }, 2760 2510 "node_modules/csso": { 2761 2511 "version": "5.0.5", 2762 2512 "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz", ··· 2808 2558 } 2809 2559 }, 2810 2560 "node_modules/decode-named-character-reference": { 2811 - "version": "1.2.0", 2812 - "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.2.0.tgz", 2813 - "integrity": "sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q==", 2561 + "version": "1.3.0", 2562 + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz", 2563 + "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==", 2814 2564 "license": "MIT", 2815 2565 "dependencies": { 2816 2566 "character-entities": "^2.0.0" ··· 2848 2598 "license": "Apache-2.0", 2849 2599 "engines": { 2850 2600 "node": ">=8" 2851 - } 2852 - }, 2853 - "node_modules/deterministic-object-hash": { 2854 - "version": "2.0.2", 2855 - "resolved": "https://registry.npmjs.org/deterministic-object-hash/-/deterministic-object-hash-2.0.2.tgz", 2856 - "integrity": "sha512-KxektNH63SrbfUyDiwXqRb1rLwKt33AmMv+5Nhsw1kqZ13SJBRTgZHtGbE+hH3a1mVW1cz+4pqSWVPAtLVXTzQ==", 2857 - "license": "MIT", 2858 - "dependencies": { 2859 - "base-64": "^1.0.0" 2860 - }, 2861 - "engines": { 2862 - "node": ">=18" 2863 2601 } 2864 2602 }, 2865 2603 "node_modules/devalue": { ··· 2972 2710 "node": ">=4" 2973 2711 } 2974 2712 }, 2713 + "node_modules/emmet": { 2714 + "version": "2.4.11", 2715 + "resolved": "https://registry.npmjs.org/emmet/-/emmet-2.4.11.tgz", 2716 + "integrity": "sha512-23QPJB3moh/U9sT4rQzGgeyyGIrcM+GH5uVYg2C6wZIxAIJq7Ng3QLT79tl8FUwDXhyq9SusfknOrofAKqvgyQ==", 2717 + "dev": true, 2718 + "license": "MIT", 2719 + "workspaces": [ 2720 + "./packages/scanner", 2721 + "./packages/abbreviation", 2722 + "./packages/css-abbreviation", 2723 + "./" 2724 + ], 2725 + "dependencies": { 2726 + "@emmetio/abbreviation": "^2.3.3", 2727 + "@emmetio/css-abbreviation": "^2.1.8" 2728 + } 2729 + }, 2975 2730 "node_modules/emoji-regex": { 2976 - "version": "10.6.0", 2977 - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", 2978 - "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", 2731 + "version": "8.0.0", 2732 + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2733 + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2734 + "dev": true, 2979 2735 "license": "MIT" 2980 2736 }, 2981 2737 "node_modules/entities": { ··· 3000 2756 } 3001 2757 }, 3002 2758 "node_modules/es-module-lexer": { 3003 - "version": "1.7.0", 3004 - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", 3005 - "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", 2759 + "version": "2.0.0", 2760 + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz", 2761 + "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==", 3006 2762 "license": "MIT" 3007 2763 }, 3008 2764 "node_modules/esbuild": { 3009 - "version": "0.25.12", 3010 - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", 3011 - "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", 2765 + "version": "0.27.3", 2766 + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", 2767 + "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", 3012 2768 "hasInstallScript": true, 3013 2769 "license": "MIT", 3014 2770 "bin": { ··· 3018 2774 "node": ">=18" 3019 2775 }, 3020 2776 "optionalDependencies": { 3021 - "@esbuild/aix-ppc64": "0.25.12", 3022 - "@esbuild/android-arm": "0.25.12", 3023 - "@esbuild/android-arm64": "0.25.12", 3024 - "@esbuild/android-x64": "0.25.12", 3025 - "@esbuild/darwin-arm64": "0.25.12", 3026 - "@esbuild/darwin-x64": "0.25.12", 3027 - "@esbuild/freebsd-arm64": "0.25.12", 3028 - "@esbuild/freebsd-x64": "0.25.12", 3029 - "@esbuild/linux-arm": "0.25.12", 3030 - "@esbuild/linux-arm64": "0.25.12", 3031 - "@esbuild/linux-ia32": "0.25.12", 3032 - "@esbuild/linux-loong64": "0.25.12", 3033 - "@esbuild/linux-mips64el": "0.25.12", 3034 - "@esbuild/linux-ppc64": "0.25.12", 3035 - "@esbuild/linux-riscv64": "0.25.12", 3036 - "@esbuild/linux-s390x": "0.25.12", 3037 - "@esbuild/linux-x64": "0.25.12", 3038 - "@esbuild/netbsd-arm64": "0.25.12", 3039 - "@esbuild/netbsd-x64": "0.25.12", 3040 - "@esbuild/openbsd-arm64": "0.25.12", 3041 - "@esbuild/openbsd-x64": "0.25.12", 3042 - "@esbuild/openharmony-arm64": "0.25.12", 3043 - "@esbuild/sunos-x64": "0.25.12", 3044 - "@esbuild/win32-arm64": "0.25.12", 3045 - "@esbuild/win32-ia32": "0.25.12", 3046 - "@esbuild/win32-x64": "0.25.12" 2777 + "@esbuild/aix-ppc64": "0.27.3", 2778 + "@esbuild/android-arm": "0.27.3", 2779 + "@esbuild/android-arm64": "0.27.3", 2780 + "@esbuild/android-x64": "0.27.3", 2781 + "@esbuild/darwin-arm64": "0.27.3", 2782 + "@esbuild/darwin-x64": "0.27.3", 2783 + "@esbuild/freebsd-arm64": "0.27.3", 2784 + "@esbuild/freebsd-x64": "0.27.3", 2785 + "@esbuild/linux-arm": "0.27.3", 2786 + "@esbuild/linux-arm64": "0.27.3", 2787 + "@esbuild/linux-ia32": "0.27.3", 2788 + "@esbuild/linux-loong64": "0.27.3", 2789 + "@esbuild/linux-mips64el": "0.27.3", 2790 + "@esbuild/linux-ppc64": "0.27.3", 2791 + "@esbuild/linux-riscv64": "0.27.3", 2792 + "@esbuild/linux-s390x": "0.27.3", 2793 + "@esbuild/linux-x64": "0.27.3", 2794 + "@esbuild/netbsd-arm64": "0.27.3", 2795 + "@esbuild/netbsd-x64": "0.27.3", 2796 + "@esbuild/openbsd-arm64": "0.27.3", 2797 + "@esbuild/openbsd-x64": "0.27.3", 2798 + "@esbuild/openharmony-arm64": "0.27.3", 2799 + "@esbuild/sunos-x64": "0.27.3", 2800 + "@esbuild/win32-arm64": "0.27.3", 2801 + "@esbuild/win32-ia32": "0.27.3", 2802 + "@esbuild/win32-x64": "0.27.3" 2803 + } 2804 + }, 2805 + "node_modules/escalade": { 2806 + "version": "3.2.0", 2807 + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", 2808 + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", 2809 + "dev": true, 2810 + "license": "MIT", 2811 + "engines": { 2812 + "node": ">=6" 3047 2813 } 3048 2814 }, 3049 2815 "node_modules/escape-string-regexp": { ··· 3059 2825 } 3060 2826 }, 3061 2827 "node_modules/estree-walker": { 3062 - "version": "3.0.3", 3063 - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", 3064 - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", 3065 - "license": "MIT", 3066 - "dependencies": { 3067 - "@types/estree": "^1.0.0" 3068 - } 2828 + "version": "2.0.2", 2829 + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", 2830 + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", 2831 + "license": "MIT" 3069 2832 }, 3070 2833 "node_modules/eventemitter3": { 3071 - "version": "5.0.1", 3072 - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", 3073 - "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", 2834 + "version": "5.0.4", 2835 + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", 2836 + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", 3074 2837 "license": "MIT" 3075 - }, 3076 - "node_modules/exit-hook": { 3077 - "version": "2.2.1", 3078 - "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-2.2.1.tgz", 3079 - "integrity": "sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw==", 3080 - "license": "MIT", 3081 - "engines": { 3082 - "node": ">=6" 3083 - }, 3084 - "funding": { 3085 - "url": "https://github.com/sponsors/sindresorhus" 3086 - } 3087 2838 }, 3088 2839 "node_modules/extend": { 3089 2840 "version": "3.0.2", ··· 3091 2842 "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", 3092 2843 "license": "MIT" 3093 2844 }, 2845 + "node_modules/fast-deep-equal": { 2846 + "version": "3.1.3", 2847 + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 2848 + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 2849 + "dev": true, 2850 + "license": "MIT" 2851 + }, 2852 + "node_modules/fast-uri": { 2853 + "version": "3.1.0", 2854 + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", 2855 + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", 2856 + "dev": true, 2857 + "funding": [ 2858 + { 2859 + "type": "github", 2860 + "url": "https://github.com/sponsors/fastify" 2861 + }, 2862 + { 2863 + "type": "opencollective", 2864 + "url": "https://opencollective.com/fastify" 2865 + } 2866 + ], 2867 + "license": "BSD-3-Clause" 2868 + }, 3094 2869 "node_modules/fdir": { 3095 2870 "version": "6.5.0", 3096 2871 "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", ··· 3118 2893 } 3119 2894 }, 3120 2895 "node_modules/fontace": { 3121 - "version": "0.4.0", 3122 - "resolved": "https://registry.npmjs.org/fontace/-/fontace-0.4.0.tgz", 3123 - "integrity": "sha512-moThBCItUe2bjZip5PF/iZClpKHGLwMvR79Kp8XpGRBrvoRSnySN4VcILdv3/MJzbhvUA5WeiUXF5o538m5fvg==", 2896 + "version": "0.4.1", 2897 + "resolved": "https://registry.npmjs.org/fontace/-/fontace-0.4.1.tgz", 2898 + "integrity": "sha512-lDMvbAzSnHmbYMTEld5qdtvNH2/pWpICOqpean9IgC7vUbUJc3k+k5Dokp85CegamqQpFbXf0rAVkbzpyTA8aw==", 3124 2899 "license": "MIT", 3125 2900 "dependencies": { 3126 - "fontkitten": "^1.0.0" 2901 + "fontkitten": "^1.0.2" 3127 2902 } 3128 2903 }, 3129 2904 "node_modules/fontkitten": { 3130 - "version": "1.0.0", 3131 - "resolved": "https://registry.npmjs.org/fontkitten/-/fontkitten-1.0.0.tgz", 3132 - "integrity": "sha512-b0RdzQeztiiUFWEDzq6Ka26qkNVNLCehoRtifOIGNbQ4CfxyYRh73fyWaQX/JshPVcueITOEeoSWPy5XQv8FUg==", 2905 + "version": "1.0.3", 2906 + "resolved": "https://registry.npmjs.org/fontkitten/-/fontkitten-1.0.3.tgz", 2907 + "integrity": "sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw==", 3133 2908 "license": "MIT", 3134 2909 "dependencies": { 3135 2910 "tiny-inflate": "^1.0.3" ··· 3152 2927 "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 3153 2928 } 3154 2929 }, 3155 - "node_modules/get-east-asian-width": { 3156 - "version": "1.4.0", 3157 - "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.4.0.tgz", 3158 - "integrity": "sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==", 3159 - "license": "MIT", 2930 + "node_modules/get-caller-file": { 2931 + "version": "2.0.5", 2932 + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 2933 + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 2934 + "dev": true, 2935 + "license": "ISC", 3160 2936 "engines": { 3161 - "node": ">=18" 3162 - }, 3163 - "funding": { 3164 - "url": "https://github.com/sponsors/sindresorhus" 2937 + "node": "6.* || 8.* || >= 10.*" 3165 2938 } 3166 2939 }, 3167 2940 "node_modules/github-slugger": { ··· 3170 2943 "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", 3171 2944 "license": "ISC" 3172 2945 }, 3173 - "node_modules/glob-to-regexp": { 3174 - "version": "0.4.1", 3175 - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", 3176 - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", 3177 - "license": "BSD-2-Clause" 3178 - }, 3179 2946 "node_modules/h3": { 3180 - "version": "1.15.5", 3181 - "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.5.tgz", 3182 - "integrity": "sha512-xEyq3rSl+dhGX2Lm0+eFQIAzlDN6Fs0EcC4f7BNUmzaRX/PTzeuM+Tr2lHB8FoXggsQIeXLj8EDVgs5ywxyxmg==", 2947 + "version": "1.15.6", 2948 + "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.6.tgz", 2949 + "integrity": "sha512-oi15ESLW5LRthZ+qPCi5GNasY/gvynSKUQxgiovrY63bPAtG59wtM+LSrlcwvOHAXzGrXVLnI97brbkdPF9WoQ==", 3183 2950 "license": "MIT", 3184 2951 "dependencies": { 3185 2952 "cookie-es": "^1.2.2", ··· 3392 3159 "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", 3393 3160 "license": "BSD-2-Clause" 3394 3161 }, 3395 - "node_modules/import-meta-resolve": { 3396 - "version": "4.2.0", 3397 - "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", 3398 - "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", 3399 - "license": "MIT", 3400 - "funding": { 3401 - "type": "github", 3402 - "url": "https://github.com/sponsors/wooorm" 3403 - } 3404 - }, 3405 3162 "node_modules/iron-webcrypto": { 3406 3163 "version": "1.2.1", 3407 3164 "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz", ··· 3410 3167 "funding": { 3411 3168 "url": "https://github.com/sponsors/brc-dd" 3412 3169 } 3413 - }, 3414 - "node_modules/is-arrayish": { 3415 - "version": "0.3.4", 3416 - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.4.tgz", 3417 - "integrity": "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA==", 3418 - "license": "MIT" 3419 3170 }, 3420 3171 "node_modules/is-docker": { 3421 3172 "version": "3.0.0", ··· 3436 3187 "version": "3.0.0", 3437 3188 "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 3438 3189 "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 3190 + "dev": true, 3439 3191 "license": "MIT", 3440 3192 "engines": { 3441 3193 "node": ">=8" ··· 3472 3224 } 3473 3225 }, 3474 3226 "node_modules/is-wsl": { 3475 - "version": "3.1.0", 3476 - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", 3477 - "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==", 3227 + "version": "3.1.1", 3228 + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", 3229 + "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", 3478 3230 "license": "MIT", 3479 3231 "dependencies": { 3480 3232 "is-inside-container": "^1.0.0" ··· 3498 3250 "js-yaml": "bin/js-yaml.js" 3499 3251 } 3500 3252 }, 3253 + "node_modules/json-schema-traverse": { 3254 + "version": "1.0.0", 3255 + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", 3256 + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", 3257 + "dev": true, 3258 + "license": "MIT" 3259 + }, 3260 + "node_modules/jsonc-parser": { 3261 + "version": "2.3.1", 3262 + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.3.1.tgz", 3263 + "integrity": "sha512-H8jvkz1O50L3dMZCsLqiuB2tA7muqbSg1AtGEkN0leAqGjsUzDJir3Zwr02BhqdcITPg3ei3mZ+HjMocAknhhg==", 3264 + "dev": true, 3265 + "license": "MIT" 3266 + }, 3501 3267 "node_modules/kleur": { 3502 - "version": "3.0.3", 3503 - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", 3504 - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", 3268 + "version": "4.1.5", 3269 + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", 3270 + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", 3505 3271 "license": "MIT", 3506 3272 "engines": { 3507 3273 "node": ">=6" 3508 3274 } 3509 3275 }, 3276 + "node_modules/lodash": { 3277 + "version": "4.17.21", 3278 + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 3279 + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 3280 + "dev": true, 3281 + "license": "MIT" 3282 + }, 3510 3283 "node_modules/longest-streak": { 3511 3284 "version": "3.1.0", 3512 3285 "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", ··· 3536 3309 } 3537 3310 }, 3538 3311 "node_modules/magicast": { 3539 - "version": "0.5.1", 3540 - "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.5.1.tgz", 3541 - "integrity": "sha512-xrHS24IxaLrvuo613F719wvOIv9xPHFWQHuvGUBmPnCA/3MQxKI3b+r7n1jAoDHmsbC5bRhTZYR77invLAxVnw==", 3312 + "version": "0.5.2", 3313 + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.5.2.tgz", 3314 + "integrity": "sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ==", 3542 3315 "license": "MIT", 3543 3316 "dependencies": { 3544 - "@babel/parser": "^7.28.5", 3545 - "@babel/types": "^7.28.5", 3317 + "@babel/parser": "^7.29.0", 3318 + "@babel/types": "^7.29.0", 3546 3319 "source-map-js": "^1.2.1" 3547 3320 } 3548 3321 }, ··· 3588 3361 } 3589 3362 }, 3590 3363 "node_modules/mdast-util-from-markdown": { 3591 - "version": "2.0.2", 3592 - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz", 3593 - "integrity": "sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==", 3364 + "version": "2.0.3", 3365 + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz", 3366 + "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==", 3594 3367 "license": "MIT", 3595 3368 "dependencies": { 3596 3369 "@types/mdast": "^4.0.0", ··· 3782 3555 } 3783 3556 }, 3784 3557 "node_modules/mdn-data": { 3785 - "version": "2.12.2", 3786 - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz", 3787 - "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==", 3558 + "version": "2.27.1", 3559 + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", 3560 + "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", 3788 3561 "license": "CC0-1.0" 3789 3562 }, 3790 3563 "node_modules/micromark": { ··· 4350 4123 ], 4351 4124 "license": "MIT" 4352 4125 }, 4353 - "node_modules/mime": { 4354 - "version": "3.0.0", 4355 - "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", 4356 - "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", 4357 - "license": "MIT", 4358 - "bin": { 4359 - "mime": "cli.js" 4360 - }, 4361 - "engines": { 4362 - "node": ">=10.0.0" 4363 - } 4364 - }, 4365 4126 "node_modules/miniflare": { 4366 - "version": "4.20251118.1", 4367 - "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-4.20251118.1.tgz", 4368 - "integrity": "sha512-uLSAE/DvOm392fiaig4LOaatxLjM7xzIniFRG5Y3yF9IduOYLLK/pkCPQNCgKQH3ou0YJRHnTN+09LPfqYNTQQ==", 4127 + "version": "4.20260310.0", 4128 + "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-4.20260310.0.tgz", 4129 + "integrity": "sha512-uC5vNPenFpDSj5aUU3wGSABG6UUqMr+Xs1m4AkCrTHo37F4Z6xcQw5BXqViTfPDVT/zcYH1UgTVoXhr1l6ZMXw==", 4369 4130 "license": "MIT", 4370 4131 "dependencies": { 4371 4132 "@cspotcode/source-map-support": "0.8.1", 4372 - "acorn": "8.14.0", 4373 - "acorn-walk": "8.3.2", 4374 - "exit-hook": "2.2.1", 4375 - "glob-to-regexp": "0.4.1", 4376 - "sharp": "^0.33.5", 4377 - "stoppable": "1.1.0", 4378 - "undici": "7.14.0", 4379 - "workerd": "1.20251118.0", 4133 + "sharp": "^0.34.5", 4134 + "undici": "7.18.2", 4135 + "workerd": "1.20260310.1", 4380 4136 "ws": "8.18.0", 4381 - "youch": "4.1.0-beta.10", 4382 - "zod": "3.22.3" 4137 + "youch": "4.1.0-beta.10" 4383 4138 }, 4384 4139 "bin": { 4385 4140 "miniflare": "bootstrap.js" ··· 4388 4143 "node": ">=18.0.0" 4389 4144 } 4390 4145 }, 4391 - "node_modules/miniflare/node_modules/@img/sharp-darwin-arm64": { 4392 - "version": "0.33.5", 4393 - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz", 4394 - "integrity": "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==", 4395 - "cpu": [ 4396 - "arm64" 4397 - ], 4398 - "license": "Apache-2.0", 4399 - "optional": true, 4400 - "os": [ 4401 - "darwin" 4402 - ], 4403 - "engines": { 4404 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4405 - }, 4406 - "funding": { 4407 - "url": "https://opencollective.com/libvips" 4408 - }, 4409 - "optionalDependencies": { 4410 - "@img/sharp-libvips-darwin-arm64": "1.0.4" 4411 - } 4412 - }, 4413 - "node_modules/miniflare/node_modules/@img/sharp-darwin-x64": { 4414 - "version": "0.33.5", 4415 - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.33.5.tgz", 4416 - "integrity": "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q==", 4417 - "cpu": [ 4418 - "x64" 4419 - ], 4420 - "license": "Apache-2.0", 4421 - "optional": true, 4422 - "os": [ 4423 - "darwin" 4424 - ], 4425 - "engines": { 4426 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4427 - }, 4428 - "funding": { 4429 - "url": "https://opencollective.com/libvips" 4430 - }, 4431 - "optionalDependencies": { 4432 - "@img/sharp-libvips-darwin-x64": "1.0.4" 4433 - } 4434 - }, 4435 - "node_modules/miniflare/node_modules/@img/sharp-libvips-darwin-arm64": { 4436 - "version": "1.0.4", 4437 - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.0.4.tgz", 4438 - "integrity": "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==", 4439 - "cpu": [ 4440 - "arm64" 4441 - ], 4442 - "license": "LGPL-3.0-or-later", 4443 - "optional": true, 4444 - "os": [ 4445 - "darwin" 4446 - ], 4447 - "funding": { 4448 - "url": "https://opencollective.com/libvips" 4449 - } 4450 - }, 4451 - "node_modules/miniflare/node_modules/@img/sharp-libvips-darwin-x64": { 4452 - "version": "1.0.4", 4453 - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.0.4.tgz", 4454 - "integrity": "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ==", 4455 - "cpu": [ 4456 - "x64" 4457 - ], 4458 - "license": "LGPL-3.0-or-later", 4459 - "optional": true, 4460 - "os": [ 4461 - "darwin" 4462 - ], 4463 - "funding": { 4464 - "url": "https://opencollective.com/libvips" 4465 - } 4466 - }, 4467 - "node_modules/miniflare/node_modules/@img/sharp-libvips-linux-arm": { 4468 - "version": "1.0.5", 4469 - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.0.5.tgz", 4470 - "integrity": "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==", 4471 - "cpu": [ 4472 - "arm" 4473 - ], 4474 - "license": "LGPL-3.0-or-later", 4475 - "optional": true, 4476 - "os": [ 4477 - "linux" 4478 - ], 4479 - "funding": { 4480 - "url": "https://opencollective.com/libvips" 4481 - } 4482 - }, 4483 - "node_modules/miniflare/node_modules/@img/sharp-libvips-linux-arm64": { 4484 - "version": "1.0.4", 4485 - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.0.4.tgz", 4486 - "integrity": "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==", 4487 - "cpu": [ 4488 - "arm64" 4489 - ], 4490 - "license": "LGPL-3.0-or-later", 4491 - "optional": true, 4492 - "os": [ 4493 - "linux" 4494 - ], 4495 - "funding": { 4496 - "url": "https://opencollective.com/libvips" 4497 - } 4498 - }, 4499 - "node_modules/miniflare/node_modules/@img/sharp-libvips-linux-s390x": { 4500 - "version": "1.0.4", 4501 - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.0.4.tgz", 4502 - "integrity": "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==", 4503 - "cpu": [ 4504 - "s390x" 4505 - ], 4506 - "license": "LGPL-3.0-or-later", 4507 - "optional": true, 4508 - "os": [ 4509 - "linux" 4510 - ], 4511 - "funding": { 4512 - "url": "https://opencollective.com/libvips" 4513 - } 4514 - }, 4515 - "node_modules/miniflare/node_modules/@img/sharp-libvips-linux-x64": { 4516 - "version": "1.0.4", 4517 - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.4.tgz", 4518 - "integrity": "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==", 4519 - "cpu": [ 4520 - "x64" 4521 - ], 4522 - "license": "LGPL-3.0-or-later", 4523 - "optional": true, 4524 - "os": [ 4525 - "linux" 4526 - ], 4527 - "funding": { 4528 - "url": "https://opencollective.com/libvips" 4529 - } 4530 - }, 4531 - "node_modules/miniflare/node_modules/@img/sharp-libvips-linuxmusl-arm64": { 4532 - "version": "1.0.4", 4533 - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.0.4.tgz", 4534 - "integrity": "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==", 4535 - "cpu": [ 4536 - "arm64" 4537 - ], 4538 - "license": "LGPL-3.0-or-later", 4539 - "optional": true, 4540 - "os": [ 4541 - "linux" 4542 - ], 4543 - "funding": { 4544 - "url": "https://opencollective.com/libvips" 4545 - } 4546 - }, 4547 - "node_modules/miniflare/node_modules/@img/sharp-libvips-linuxmusl-x64": { 4548 - "version": "1.0.4", 4549 - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.0.4.tgz", 4550 - "integrity": "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==", 4551 - "cpu": [ 4552 - "x64" 4553 - ], 4554 - "license": "LGPL-3.0-or-later", 4555 - "optional": true, 4556 - "os": [ 4557 - "linux" 4558 - ], 4559 - "funding": { 4560 - "url": "https://opencollective.com/libvips" 4561 - } 4562 - }, 4563 - "node_modules/miniflare/node_modules/@img/sharp-linux-arm": { 4564 - "version": "0.33.5", 4565 - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.33.5.tgz", 4566 - "integrity": "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==", 4567 - "cpu": [ 4568 - "arm" 4569 - ], 4570 - "license": "Apache-2.0", 4571 - "optional": true, 4572 - "os": [ 4573 - "linux" 4574 - ], 4575 - "engines": { 4576 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4577 - }, 4578 - "funding": { 4579 - "url": "https://opencollective.com/libvips" 4580 - }, 4581 - "optionalDependencies": { 4582 - "@img/sharp-libvips-linux-arm": "1.0.5" 4583 - } 4584 - }, 4585 - "node_modules/miniflare/node_modules/@img/sharp-linux-arm64": { 4586 - "version": "0.33.5", 4587 - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.33.5.tgz", 4588 - "integrity": "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==", 4589 - "cpu": [ 4590 - "arm64" 4591 - ], 4592 - "license": "Apache-2.0", 4593 - "optional": true, 4594 - "os": [ 4595 - "linux" 4596 - ], 4597 - "engines": { 4598 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4599 - }, 4600 - "funding": { 4601 - "url": "https://opencollective.com/libvips" 4602 - }, 4603 - "optionalDependencies": { 4604 - "@img/sharp-libvips-linux-arm64": "1.0.4" 4605 - } 4606 - }, 4607 - "node_modules/miniflare/node_modules/@img/sharp-linux-s390x": { 4608 - "version": "0.33.5", 4609 - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.33.5.tgz", 4610 - "integrity": "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==", 4611 - "cpu": [ 4612 - "s390x" 4613 - ], 4614 - "license": "Apache-2.0", 4615 - "optional": true, 4616 - "os": [ 4617 - "linux" 4618 - ], 4619 - "engines": { 4620 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4621 - }, 4622 - "funding": { 4623 - "url": "https://opencollective.com/libvips" 4624 - }, 4625 - "optionalDependencies": { 4626 - "@img/sharp-libvips-linux-s390x": "1.0.4" 4627 - } 4628 - }, 4629 - "node_modules/miniflare/node_modules/@img/sharp-linux-x64": { 4630 - "version": "0.33.5", 4631 - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.5.tgz", 4632 - "integrity": "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==", 4633 - "cpu": [ 4634 - "x64" 4635 - ], 4636 - "license": "Apache-2.0", 4637 - "optional": true, 4638 - "os": [ 4639 - "linux" 4640 - ], 4641 - "engines": { 4642 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4643 - }, 4644 - "funding": { 4645 - "url": "https://opencollective.com/libvips" 4646 - }, 4647 - "optionalDependencies": { 4648 - "@img/sharp-libvips-linux-x64": "1.0.4" 4649 - } 4650 - }, 4651 - "node_modules/miniflare/node_modules/@img/sharp-linuxmusl-arm64": { 4652 - "version": "0.33.5", 4653 - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.33.5.tgz", 4654 - "integrity": "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==", 4655 - "cpu": [ 4656 - "arm64" 4657 - ], 4658 - "license": "Apache-2.0", 4659 - "optional": true, 4660 - "os": [ 4661 - "linux" 4662 - ], 4663 - "engines": { 4664 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4665 - }, 4666 - "funding": { 4667 - "url": "https://opencollective.com/libvips" 4668 - }, 4669 - "optionalDependencies": { 4670 - "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" 4671 - } 4672 - }, 4673 - "node_modules/miniflare/node_modules/@img/sharp-linuxmusl-x64": { 4674 - "version": "0.33.5", 4675 - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.5.tgz", 4676 - "integrity": "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==", 4677 - "cpu": [ 4678 - "x64" 4679 - ], 4680 - "license": "Apache-2.0", 4681 - "optional": true, 4682 - "os": [ 4683 - "linux" 4684 - ], 4685 - "engines": { 4686 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4687 - }, 4688 - "funding": { 4689 - "url": "https://opencollective.com/libvips" 4690 - }, 4691 - "optionalDependencies": { 4692 - "@img/sharp-libvips-linuxmusl-x64": "1.0.4" 4693 - } 4694 - }, 4695 - "node_modules/miniflare/node_modules/@img/sharp-wasm32": { 4696 - "version": "0.33.5", 4697 - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.33.5.tgz", 4698 - "integrity": "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==", 4699 - "cpu": [ 4700 - "wasm32" 4701 - ], 4702 - "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", 4703 - "optional": true, 4704 - "dependencies": { 4705 - "@emnapi/runtime": "^1.2.0" 4706 - }, 4707 - "engines": { 4708 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4709 - }, 4710 - "funding": { 4711 - "url": "https://opencollective.com/libvips" 4712 - } 4713 - }, 4714 - "node_modules/miniflare/node_modules/@img/sharp-win32-ia32": { 4715 - "version": "0.33.5", 4716 - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.33.5.tgz", 4717 - "integrity": "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ==", 4718 - "cpu": [ 4719 - "ia32" 4720 - ], 4721 - "license": "Apache-2.0 AND LGPL-3.0-or-later", 4722 - "optional": true, 4723 - "os": [ 4724 - "win32" 4725 - ], 4726 - "engines": { 4727 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4728 - }, 4729 - "funding": { 4730 - "url": "https://opencollective.com/libvips" 4731 - } 4732 - }, 4733 - "node_modules/miniflare/node_modules/@img/sharp-win32-x64": { 4734 - "version": "0.33.5", 4735 - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.5.tgz", 4736 - "integrity": "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==", 4737 - "cpu": [ 4738 - "x64" 4739 - ], 4740 - "license": "Apache-2.0 AND LGPL-3.0-or-later", 4741 - "optional": true, 4742 - "os": [ 4743 - "win32" 4744 - ], 4745 - "engines": { 4746 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4747 - }, 4748 - "funding": { 4749 - "url": "https://opencollective.com/libvips" 4750 - } 4751 - }, 4752 - "node_modules/miniflare/node_modules/acorn": { 4753 - "version": "8.14.0", 4754 - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", 4755 - "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", 4756 - "license": "MIT", 4757 - "bin": { 4758 - "acorn": "bin/acorn" 4759 - }, 4760 - "engines": { 4761 - "node": ">=0.4.0" 4762 - } 4763 - }, 4764 - "node_modules/miniflare/node_modules/sharp": { 4765 - "version": "0.33.5", 4766 - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.5.tgz", 4767 - "integrity": "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==", 4768 - "hasInstallScript": true, 4769 - "license": "Apache-2.0", 4770 - "dependencies": { 4771 - "color": "^4.2.3", 4772 - "detect-libc": "^2.0.3", 4773 - "semver": "^7.6.3" 4774 - }, 4775 - "engines": { 4776 - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" 4777 - }, 4778 - "funding": { 4779 - "url": "https://opencollective.com/libvips" 4780 - }, 4781 - "optionalDependencies": { 4782 - "@img/sharp-darwin-arm64": "0.33.5", 4783 - "@img/sharp-darwin-x64": "0.33.5", 4784 - "@img/sharp-libvips-darwin-arm64": "1.0.4", 4785 - "@img/sharp-libvips-darwin-x64": "1.0.4", 4786 - "@img/sharp-libvips-linux-arm": "1.0.5", 4787 - "@img/sharp-libvips-linux-arm64": "1.0.4", 4788 - "@img/sharp-libvips-linux-s390x": "1.0.4", 4789 - "@img/sharp-libvips-linux-x64": "1.0.4", 4790 - "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", 4791 - "@img/sharp-libvips-linuxmusl-x64": "1.0.4", 4792 - "@img/sharp-linux-arm": "0.33.5", 4793 - "@img/sharp-linux-arm64": "0.33.5", 4794 - "@img/sharp-linux-s390x": "0.33.5", 4795 - "@img/sharp-linux-x64": "0.33.5", 4796 - "@img/sharp-linuxmusl-arm64": "0.33.5", 4797 - "@img/sharp-linuxmusl-x64": "0.33.5", 4798 - "@img/sharp-wasm32": "0.33.5", 4799 - "@img/sharp-win32-ia32": "0.33.5", 4800 - "@img/sharp-win32-x64": "0.33.5" 4801 - } 4802 - }, 4803 - "node_modules/miniflare/node_modules/zod": { 4804 - "version": "3.22.3", 4805 - "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.3.tgz", 4806 - "integrity": "sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==", 4807 - "license": "MIT", 4808 - "funding": { 4809 - "url": "https://github.com/sponsors/colinhacks" 4810 - } 4811 - }, 4812 4146 "node_modules/mrmime": { 4813 4147 "version": "2.0.1", 4814 4148 "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", ··· 4822 4156 "version": "2.1.3", 4823 4157 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 4824 4158 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 4159 + "license": "MIT" 4160 + }, 4161 + "node_modules/muggle-string": { 4162 + "version": "0.4.1", 4163 + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", 4164 + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", 4165 + "dev": true, 4825 4166 "license": "MIT" 4826 4167 }, 4827 4168 "node_modules/nanoid": { ··· 4897 4238 "url": "https://github.com/fb55/nth-check?sponsor=1" 4898 4239 } 4899 4240 }, 4241 + "node_modules/obug": { 4242 + "version": "2.1.1", 4243 + "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz", 4244 + "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==", 4245 + "funding": [ 4246 + "https://github.com/sponsors/sxzz", 4247 + "https://opencollective.com/debug" 4248 + ], 4249 + "license": "MIT" 4250 + }, 4900 4251 "node_modules/ofetch": { 4901 4252 "version": "1.5.1", 4902 4253 "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.5.1.tgz", ··· 4932 4283 } 4933 4284 }, 4934 4285 "node_modules/p-limit": { 4935 - "version": "6.2.0", 4936 - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-6.2.0.tgz", 4937 - "integrity": "sha512-kuUqqHNUqoIWp/c467RI4X6mmyuojY5jGutNU0wVTmEOOfcuwLqyMVoAi9MKi2Ak+5i9+nhmrK4ufZE8069kHA==", 4286 + "version": "7.3.0", 4287 + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-7.3.0.tgz", 4288 + "integrity": "sha512-7cIXg/Z0M5WZRblrsOla88S4wAK+zOQQWeBYfV3qJuJXMr+LnbYjaadrFaS0JILfEDPVqHyKnZ1Z/1d6J9VVUw==", 4938 4289 "license": "MIT", 4939 4290 "dependencies": { 4940 - "yocto-queue": "^1.1.1" 4291 + "yocto-queue": "^1.2.1" 4941 4292 }, 4942 4293 "engines": { 4943 - "node": ">=18" 4294 + "node": ">=20" 4944 4295 }, 4945 4296 "funding": { 4946 4297 "url": "https://github.com/sponsors/sindresorhus" 4947 4298 } 4948 4299 }, 4949 4300 "node_modules/p-queue": { 4950 - "version": "8.1.1", 4951 - "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-8.1.1.tgz", 4952 - "integrity": "sha512-aNZ+VfjobsWryoiPnEApGGmf5WmNsCo9xu8dfaYamG5qaLP7ClhLN6NgsFe6SwJ2UbLEBK5dv9x8Mn5+RVhMWQ==", 4301 + "version": "9.1.0", 4302 + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-9.1.0.tgz", 4303 + "integrity": "sha512-O/ZPaXuQV29uSLbxWBGGZO1mCQXV2BLIwUr59JUU9SoH76mnYvtms7aafH/isNSNGwuEfP6W/4xD0/TJXxrizw==", 4953 4304 "license": "MIT", 4954 4305 "dependencies": { 4955 4306 "eventemitter3": "^5.0.1", 4956 - "p-timeout": "^6.1.2" 4307 + "p-timeout": "^7.0.0" 4957 4308 }, 4958 4309 "engines": { 4959 - "node": ">=18" 4310 + "node": ">=20" 4960 4311 }, 4961 4312 "funding": { 4962 4313 "url": "https://github.com/sponsors/sindresorhus" 4963 4314 } 4964 4315 }, 4965 4316 "node_modules/p-timeout": { 4966 - "version": "6.1.4", 4967 - "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.4.tgz", 4968 - "integrity": "sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==", 4317 + "version": "7.0.1", 4318 + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-7.0.1.tgz", 4319 + "integrity": "sha512-AxTM2wDGORHGEkPCt8yqxOTMgpfbEHqF51f/5fJCmwFC3C/zNcGT63SymH2ttOAaiIws2zVg4+izQCjrakcwHg==", 4969 4320 "license": "MIT", 4970 4321 "engines": { 4971 - "node": ">=14.16" 4322 + "node": ">=20" 4972 4323 }, 4973 4324 "funding": { 4974 4325 "url": "https://github.com/sponsors/sindresorhus" ··· 5010 4361 "url": "https://github.com/inikulin/parse5?sponsor=1" 5011 4362 } 5012 4363 }, 4364 + "node_modules/path-browserify": { 4365 + "version": "1.0.1", 4366 + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", 4367 + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", 4368 + "dev": true, 4369 + "license": "MIT" 4370 + }, 5013 4371 "node_modules/path-to-regexp": { 5014 4372 "version": "6.3.0", 5015 4373 "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz", ··· 5047 4405 } 5048 4406 }, 5049 4407 "node_modules/postcss": { 5050 - "version": "8.5.6", 5051 - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", 5052 - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", 4408 + "version": "8.5.8", 4409 + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz", 4410 + "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==", 5053 4411 "funding": [ 5054 4412 { 5055 4413 "type": "opencollective", ··· 5074 4432 "node": "^10 || ^12 || >=14" 5075 4433 } 5076 4434 }, 4435 + "node_modules/prettier": { 4436 + "version": "3.8.1", 4437 + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz", 4438 + "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", 4439 + "dev": true, 4440 + "license": "MIT", 4441 + "peer": true, 4442 + "bin": { 4443 + "prettier": "bin/prettier.cjs" 4444 + }, 4445 + "engines": { 4446 + "node": ">=14" 4447 + }, 4448 + "funding": { 4449 + "url": "https://github.com/prettier/prettier?sponsor=1" 4450 + } 4451 + }, 5077 4452 "node_modules/prismjs": { 5078 4453 "version": "1.30.0", 5079 4454 "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.30.0.tgz", ··· 5081 4456 "license": "MIT", 5082 4457 "engines": { 5083 4458 "node": ">=6" 5084 - } 5085 - }, 5086 - "node_modules/prompts": { 5087 - "version": "2.4.2", 5088 - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", 5089 - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", 5090 - "license": "MIT", 5091 - "dependencies": { 5092 - "kleur": "^3.0.3", 5093 - "sisteransi": "^1.0.5" 5094 - }, 5095 - "engines": { 5096 - "node": ">= 6" 5097 4459 } 5098 4460 }, 5099 4461 "node_modules/property-information": { ··· 5291 4653 "url": "https://opencollective.com/unified" 5292 4654 } 5293 4655 }, 4656 + "node_modules/request-light": { 4657 + "version": "0.7.0", 4658 + "resolved": "https://registry.npmjs.org/request-light/-/request-light-0.7.0.tgz", 4659 + "integrity": "sha512-lMbBMrDoxgsyO+yB3sDcrDuX85yYt7sS8BfQd11jtbW/z5ZWgLZRcEGLsLoYw7I0WSUGQBs8CC8ScIxkTX1+6Q==", 4660 + "dev": true, 4661 + "license": "MIT" 4662 + }, 4663 + "node_modules/require-directory": { 4664 + "version": "2.1.1", 4665 + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 4666 + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 4667 + "dev": true, 4668 + "license": "MIT", 4669 + "engines": { 4670 + "node": ">=0.10.0" 4671 + } 4672 + }, 4673 + "node_modules/require-from-string": { 4674 + "version": "2.0.2", 4675 + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", 4676 + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", 4677 + "dev": true, 4678 + "license": "MIT", 4679 + "engines": { 4680 + "node": ">=0.10.0" 4681 + } 4682 + }, 5294 4683 "node_modules/retext": { 5295 4684 "version": "9.0.0", 5296 4685 "resolved": "https://registry.npmjs.org/retext/-/retext-9.0.0.tgz", ··· 5353 4742 } 5354 4743 }, 5355 4744 "node_modules/rollup": { 5356 - "version": "4.55.1", 5357 - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.55.1.tgz", 5358 - "integrity": "sha512-wDv/Ht1BNHB4upNbK74s9usvl7hObDnvVzknxqY/E/O3X6rW1U1rV1aENEfJ54eFZDTNo7zv1f5N4edCluH7+A==", 4745 + "version": "4.59.0", 4746 + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz", 4747 + "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==", 5359 4748 "license": "MIT", 4749 + "peer": true, 5360 4750 "dependencies": { 5361 4751 "@types/estree": "1.0.8" 5362 4752 }, ··· 5368 4758 "npm": ">=8.0.0" 5369 4759 }, 5370 4760 "optionalDependencies": { 5371 - "@rollup/rollup-android-arm-eabi": "4.55.1", 5372 - "@rollup/rollup-android-arm64": "4.55.1", 5373 - "@rollup/rollup-darwin-arm64": "4.55.1", 5374 - "@rollup/rollup-darwin-x64": "4.55.1", 5375 - "@rollup/rollup-freebsd-arm64": "4.55.1", 5376 - "@rollup/rollup-freebsd-x64": "4.55.1", 5377 - "@rollup/rollup-linux-arm-gnueabihf": "4.55.1", 5378 - "@rollup/rollup-linux-arm-musleabihf": "4.55.1", 5379 - "@rollup/rollup-linux-arm64-gnu": "4.55.1", 5380 - "@rollup/rollup-linux-arm64-musl": "4.55.1", 5381 - "@rollup/rollup-linux-loong64-gnu": "4.55.1", 5382 - "@rollup/rollup-linux-loong64-musl": "4.55.1", 5383 - "@rollup/rollup-linux-ppc64-gnu": "4.55.1", 5384 - "@rollup/rollup-linux-ppc64-musl": "4.55.1", 5385 - "@rollup/rollup-linux-riscv64-gnu": "4.55.1", 5386 - "@rollup/rollup-linux-riscv64-musl": "4.55.1", 5387 - "@rollup/rollup-linux-s390x-gnu": "4.55.1", 5388 - "@rollup/rollup-linux-x64-gnu": "4.55.1", 5389 - "@rollup/rollup-linux-x64-musl": "4.55.1", 5390 - "@rollup/rollup-openbsd-x64": "4.55.1", 5391 - "@rollup/rollup-openharmony-arm64": "4.55.1", 5392 - "@rollup/rollup-win32-arm64-msvc": "4.55.1", 5393 - "@rollup/rollup-win32-ia32-msvc": "4.55.1", 5394 - "@rollup/rollup-win32-x64-gnu": "4.55.1", 5395 - "@rollup/rollup-win32-x64-msvc": "4.55.1", 4761 + "@rollup/rollup-android-arm-eabi": "4.59.0", 4762 + "@rollup/rollup-android-arm64": "4.59.0", 4763 + "@rollup/rollup-darwin-arm64": "4.59.0", 4764 + "@rollup/rollup-darwin-x64": "4.59.0", 4765 + "@rollup/rollup-freebsd-arm64": "4.59.0", 4766 + "@rollup/rollup-freebsd-x64": "4.59.0", 4767 + "@rollup/rollup-linux-arm-gnueabihf": "4.59.0", 4768 + "@rollup/rollup-linux-arm-musleabihf": "4.59.0", 4769 + "@rollup/rollup-linux-arm64-gnu": "4.59.0", 4770 + "@rollup/rollup-linux-arm64-musl": "4.59.0", 4771 + "@rollup/rollup-linux-loong64-gnu": "4.59.0", 4772 + "@rollup/rollup-linux-loong64-musl": "4.59.0", 4773 + "@rollup/rollup-linux-ppc64-gnu": "4.59.0", 4774 + "@rollup/rollup-linux-ppc64-musl": "4.59.0", 4775 + "@rollup/rollup-linux-riscv64-gnu": "4.59.0", 4776 + "@rollup/rollup-linux-riscv64-musl": "4.59.0", 4777 + "@rollup/rollup-linux-s390x-gnu": "4.59.0", 4778 + "@rollup/rollup-linux-x64-gnu": "4.59.0", 4779 + "@rollup/rollup-linux-x64-musl": "4.59.0", 4780 + "@rollup/rollup-openbsd-x64": "4.59.0", 4781 + "@rollup/rollup-openharmony-arm64": "4.59.0", 4782 + "@rollup/rollup-win32-arm64-msvc": "4.59.0", 4783 + "@rollup/rollup-win32-ia32-msvc": "4.59.0", 4784 + "@rollup/rollup-win32-x64-gnu": "4.59.0", 4785 + "@rollup/rollup-win32-x64-msvc": "4.59.0", 5396 4786 "fsevents": "~2.3.2" 5397 4787 } 5398 4788 }, 5399 4789 "node_modules/sax": { 5400 - "version": "1.4.4", 5401 - "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.4.tgz", 5402 - "integrity": "sha512-1n3r/tGXO6b6VXMdFT54SHzT9ytu9yr7TaELowdYpMqY/Ao7EnlQGmAQ1+RatX7Tkkdm6hONI2owqNx2aZj5Sw==", 4790 + "version": "1.5.0", 4791 + "resolved": "https://registry.npmjs.org/sax/-/sax-1.5.0.tgz", 4792 + "integrity": "sha512-21IYA3Q5cQf089Z6tgaUTr7lDAyzoTPx5HRtbhsME8Udispad8dC/+sziTNugOEx54ilvatQ9YCzl4KQLPcRHA==", 5403 4793 "license": "BlueOak-1.0.0", 5404 4794 "engines": { 5405 4795 "node": ">=11.0.0" 5406 4796 } 5407 4797 }, 5408 4798 "node_modules/semver": { 5409 - "version": "7.7.3", 5410 - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", 5411 - "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", 4799 + "version": "7.7.4", 4800 + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", 4801 + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", 5412 4802 "license": "ISC", 5413 4803 "bin": { 5414 4804 "semver": "bin/semver.js" ··· 5423 4813 "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==", 5424 4814 "hasInstallScript": true, 5425 4815 "license": "Apache-2.0", 5426 - "optional": true, 5427 4816 "dependencies": { 5428 4817 "@img/colour": "^1.0.0", 5429 4818 "detect-libc": "^2.1.2", ··· 5463 4852 } 5464 4853 }, 5465 4854 "node_modules/shiki": { 5466 - "version": "3.21.0", 5467 - "resolved": "https://registry.npmjs.org/shiki/-/shiki-3.21.0.tgz", 5468 - "integrity": "sha512-N65B/3bqL/TI2crrXr+4UivctrAGEjmsib5rPMMPpFp1xAx/w03v8WZ9RDDFYteXoEgY7qZ4HGgl5KBIu1153w==", 4855 + "version": "4.0.2", 4856 + "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.0.2.tgz", 4857 + "integrity": "sha512-eAVKTMedR5ckPo4xne/PjYQYrU3qx78gtJZ+sHlXEg5IHhhoQhMfZVzetTYuaJS0L2Ef3AcCRzCHV8T0WI6nIQ==", 5469 4858 "license": "MIT", 5470 4859 "dependencies": { 5471 - "@shikijs/core": "3.21.0", 5472 - "@shikijs/engine-javascript": "3.21.0", 5473 - "@shikijs/engine-oniguruma": "3.21.0", 5474 - "@shikijs/langs": "3.21.0", 5475 - "@shikijs/themes": "3.21.0", 5476 - "@shikijs/types": "3.21.0", 4860 + "@shikijs/core": "4.0.2", 4861 + "@shikijs/engine-javascript": "4.0.2", 4862 + "@shikijs/engine-oniguruma": "4.0.2", 4863 + "@shikijs/langs": "4.0.2", 4864 + "@shikijs/themes": "4.0.2", 4865 + "@shikijs/types": "4.0.2", 5477 4866 "@shikijs/vscode-textmate": "^10.0.2", 5478 4867 "@types/hast": "^3.0.4" 5479 - } 5480 - }, 5481 - "node_modules/simple-swizzle": { 5482 - "version": "0.2.4", 5483 - "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.4.tgz", 5484 - "integrity": "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw==", 5485 - "license": "MIT", 5486 - "dependencies": { 5487 - "is-arrayish": "^0.3.1" 4868 + }, 4869 + "engines": { 4870 + "node": ">=20" 5488 4871 } 5489 4872 }, 5490 4873 "node_modules/sisteransi": { ··· 5524 4907 "url": "https://github.com/sponsors/wooorm" 5525 4908 } 5526 4909 }, 5527 - "node_modules/stoppable": { 5528 - "version": "1.1.0", 5529 - "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz", 5530 - "integrity": "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==", 5531 - "license": "MIT", 5532 - "engines": { 5533 - "node": ">=4", 5534 - "npm": ">=6" 5535 - } 5536 - }, 5537 4910 "node_modules/string-width": { 5538 - "version": "7.2.0", 5539 - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", 5540 - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", 4911 + "version": "4.2.3", 4912 + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 4913 + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 4914 + "dev": true, 5541 4915 "license": "MIT", 5542 4916 "dependencies": { 5543 - "emoji-regex": "^10.3.0", 5544 - "get-east-asian-width": "^1.0.0", 5545 - "strip-ansi": "^7.1.0" 4917 + "emoji-regex": "^8.0.0", 4918 + "is-fullwidth-code-point": "^3.0.0", 4919 + "strip-ansi": "^6.0.1" 5546 4920 }, 5547 4921 "engines": { 5548 - "node": ">=18" 5549 - }, 5550 - "funding": { 5551 - "url": "https://github.com/sponsors/sindresorhus" 4922 + "node": ">=8" 5552 4923 } 5553 4924 }, 5554 4925 "node_modules/stringify-entities": { ··· 5566 4937 } 5567 4938 }, 5568 4939 "node_modules/strip-ansi": { 5569 - "version": "7.1.2", 5570 - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", 5571 - "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", 4940 + "version": "6.0.1", 4941 + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 4942 + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 4943 + "dev": true, 5572 4944 "license": "MIT", 5573 4945 "dependencies": { 5574 - "ansi-regex": "^6.0.1" 4946 + "ansi-regex": "^5.0.1" 5575 4947 }, 5576 4948 "engines": { 5577 - "node": ">=12" 5578 - }, 5579 - "funding": { 5580 - "url": "https://github.com/chalk/strip-ansi?sponsor=1" 4949 + "node": ">=8" 5581 4950 } 5582 4951 }, 5583 4952 "node_modules/supports-color": { ··· 5593 4962 } 5594 4963 }, 5595 4964 "node_modules/svgo": { 5596 - "version": "4.0.0", 5597 - "resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.0.tgz", 5598 - "integrity": "sha512-VvrHQ+9uniE+Mvx3+C9IEe/lWasXCU0nXMY2kZeLrHNICuRiC8uMPyM14UEaMOFA5mhyQqEkB02VoQ16n3DLaw==", 4965 + "version": "4.0.1", 4966 + "resolved": "https://registry.npmjs.org/svgo/-/svgo-4.0.1.tgz", 4967 + "integrity": "sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w==", 5599 4968 "license": "MIT", 5600 4969 "dependencies": { 5601 4970 "commander": "^11.1.0", ··· 5604 4973 "css-what": "^6.1.0", 5605 4974 "csso": "^5.0.5", 5606 4975 "picocolors": "^1.1.1", 5607 - "sax": "^1.4.1" 4976 + "sax": "^1.5.0" 5608 4977 }, 5609 4978 "bin": { 5610 4979 "svgo": "bin/svgo.js" ··· 5622 4991 "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", 5623 4992 "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==", 5624 4993 "license": "MIT" 4994 + }, 4995 + "node_modules/tinyclip": { 4996 + "version": "0.1.12", 4997 + "resolved": "https://registry.npmjs.org/tinyclip/-/tinyclip-0.1.12.tgz", 4998 + "integrity": "sha512-Ae3OVUqifDw0wBriIBS7yVaW44Dp6eSHQcyq4Igc7eN2TJH/2YsicswaW+J/OuMvhpDPOKEgpAZCjkb4hpoyeA==", 4999 + "license": "MIT", 5000 + "engines": { 5001 + "node": "^16.14.0 || >= 17.3.0" 5002 + } 5625 5003 }, 5626 5004 "node_modules/tinyexec": { 5627 5005 "version": "1.0.2", ··· 5695 5073 "license": "0BSD", 5696 5074 "optional": true 5697 5075 }, 5698 - "node_modules/type-fest": { 5699 - "version": "4.41.0", 5700 - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", 5701 - "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", 5702 - "license": "(MIT OR CC0-1.0)", 5703 - "engines": { 5704 - "node": ">=16" 5705 - }, 5706 - "funding": { 5707 - "url": "https://github.com/sponsors/sindresorhus" 5708 - } 5076 + "node_modules/typesafe-path": { 5077 + "version": "0.2.2", 5078 + "resolved": "https://registry.npmjs.org/typesafe-path/-/typesafe-path-0.2.2.tgz", 5079 + "integrity": "sha512-OJabfkAg1WLZSqJAJ0Z6Sdt3utnbzr/jh+NAHoyWHJe8CMSy79Gm085094M9nvTPy22KzTVn5Zq5mbapCI/hPA==", 5080 + "dev": true, 5081 + "license": "MIT" 5709 5082 }, 5710 5083 "node_modules/typescript": { 5711 5084 "version": "5.9.3", 5712 5085 "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", 5713 5086 "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", 5087 + "devOptional": true, 5714 5088 "license": "Apache-2.0", 5715 5089 "peer": true, 5716 5090 "bin": { ··· 5719 5093 }, 5720 5094 "engines": { 5721 5095 "node": ">=14.17" 5096 + } 5097 + }, 5098 + "node_modules/typescript-auto-import-cache": { 5099 + "version": "0.3.6", 5100 + "resolved": "https://registry.npmjs.org/typescript-auto-import-cache/-/typescript-auto-import-cache-0.3.6.tgz", 5101 + "integrity": "sha512-RpuHXrknHdVdK7wv/8ug3Fr0WNsNi5l5aB8MYYuXhq2UH5lnEB1htJ1smhtD5VeCsGr2p8mUDtd83LCQDFVgjQ==", 5102 + "dev": true, 5103 + "license": "MIT", 5104 + "dependencies": { 5105 + "semver": "^7.3.8" 5722 5106 } 5723 5107 }, 5724 5108 "node_modules/ufo": { ··· 5740 5124 "license": "MIT" 5741 5125 }, 5742 5126 "node_modules/undici": { 5743 - "version": "7.14.0", 5744 - "resolved": "https://registry.npmjs.org/undici/-/undici-7.14.0.tgz", 5745 - "integrity": "sha512-Vqs8HTzjpQXZeXdpsfChQTlafcMQaaIwnGwLam1wudSSjlJeQ3bw1j+TLPePgrCnCpUXx7Ba5Pdpf5OBih62NQ==", 5127 + "version": "7.18.2", 5128 + "resolved": "https://registry.npmjs.org/undici/-/undici-7.18.2.tgz", 5129 + "integrity": "sha512-y+8YjDFzWdQlSE9N5nzKMT3g4a5UBX1HKowfdXh0uvAnTaqqwqB92Jt4UXBAeKekDs5IaDKyJFR4X1gYVCgXcw==", 5746 5130 "license": "MIT", 5747 5131 "engines": { 5748 5132 "node": ">=20.18.1" 5749 5133 } 5134 + }, 5135 + "node_modules/undici-types": { 5136 + "version": "6.21.0", 5137 + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", 5138 + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", 5139 + "devOptional": true, 5140 + "license": "MIT" 5750 5141 }, 5751 5142 "node_modules/unenv": { 5752 5143 "version": "2.0.0-rc.24", ··· 5870 5261 } 5871 5262 }, 5872 5263 "node_modules/unist-util-visit": { 5873 - "version": "5.0.0", 5874 - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", 5875 - "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", 5264 + "version": "5.1.0", 5265 + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz", 5266 + "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==", 5876 5267 "license": "MIT", 5877 5268 "dependencies": { 5878 5269 "@types/unist": "^3.0.0", ··· 6050 5441 } 6051 5442 }, 6052 5443 "node_modules/vite": { 6053 - "version": "6.4.1", 6054 - "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.1.tgz", 6055 - "integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==", 5444 + "version": "7.3.1", 5445 + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz", 5446 + "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", 6056 5447 "license": "MIT", 5448 + "peer": true, 6057 5449 "dependencies": { 6058 - "esbuild": "^0.25.0", 6059 - "fdir": "^6.4.4", 6060 - "picomatch": "^4.0.2", 6061 - "postcss": "^8.5.3", 6062 - "rollup": "^4.34.9", 6063 - "tinyglobby": "^0.2.13" 5450 + "esbuild": "^0.27.0", 5451 + "fdir": "^6.5.0", 5452 + "picomatch": "^4.0.3", 5453 + "postcss": "^8.5.6", 5454 + "rollup": "^4.43.0", 5455 + "tinyglobby": "^0.2.15" 6064 5456 }, 6065 5457 "bin": { 6066 5458 "vite": "bin/vite.js" 6067 5459 }, 6068 5460 "engines": { 6069 - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" 5461 + "node": "^20.19.0 || >=22.12.0" 6070 5462 }, 6071 5463 "funding": { 6072 5464 "url": "https://github.com/vitejs/vite?sponsor=1" ··· 6075 5467 "fsevents": "~2.3.3" 6076 5468 }, 6077 5469 "peerDependencies": { 6078 - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", 5470 + "@types/node": "^20.19.0 || >=22.12.0", 6079 5471 "jiti": ">=1.21.0", 6080 - "less": "*", 5472 + "less": "^4.0.0", 6081 5473 "lightningcss": "^1.21.0", 6082 - "sass": "*", 6083 - "sass-embedded": "*", 6084 - "stylus": "*", 6085 - "sugarss": "*", 5474 + "sass": "^1.70.0", 5475 + "sass-embedded": "^1.70.0", 5476 + "stylus": ">=0.54.8", 5477 + "sugarss": "^5.0.0", 6086 5478 "terser": "^5.16.0", 6087 5479 "tsx": "^4.8.1", 6088 5480 "yaml": "^2.4.2" ··· 6124 5516 } 6125 5517 }, 6126 5518 "node_modules/vitefu": { 6127 - "version": "1.1.1", 6128 - "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.1.tgz", 6129 - "integrity": "sha512-B/Fegf3i8zh0yFbpzZ21amWzHmuNlLlmJT6n7bu5e+pCHUKQIfXSYokrqOBGEMMe9UG2sostKQF9mml/vYaWJQ==", 5519 + "version": "1.1.2", 5520 + "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.2.tgz", 5521 + "integrity": "sha512-zpKATdUbzbsycPFBN71nS2uzBUQiVnFoOrr2rvqv34S1lcAgMKKkjWleLGeiJlZ8lwCXvtWaRn7R3ZC16SYRuw==", 6130 5522 "license": "MIT", 6131 5523 "workspaces": [ 6132 5524 "tests/deps/*", ··· 6134 5526 "tests/projects/workspace/packages/*" 6135 5527 ], 6136 5528 "peerDependencies": { 6137 - "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0" 5529 + "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-beta.0" 6138 5530 }, 6139 5531 "peerDependenciesMeta": { 6140 5532 "vite": { ··· 6142 5534 } 6143 5535 } 6144 5536 }, 6145 - "node_modules/web-namespaces": { 6146 - "version": "2.0.1", 6147 - "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", 6148 - "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==", 5537 + "node_modules/volar-service-css": { 5538 + "version": "0.0.68", 5539 + "resolved": "https://registry.npmjs.org/volar-service-css/-/volar-service-css-0.0.68.tgz", 5540 + "integrity": "sha512-lJSMh6f3QzZ1tdLOZOzovLX0xzAadPhx8EKwraDLPxBndLCYfoTvnNuiFFV8FARrpAlW5C0WkH+TstPaCxr00Q==", 5541 + "dev": true, 6149 5542 "license": "MIT", 6150 - "funding": { 6151 - "type": "github", 6152 - "url": "https://github.com/sponsors/wooorm" 5543 + "dependencies": { 5544 + "vscode-css-languageservice": "^6.3.0", 5545 + "vscode-languageserver-textdocument": "^1.0.11", 5546 + "vscode-uri": "^3.0.8" 5547 + }, 5548 + "peerDependencies": { 5549 + "@volar/language-service": "~2.4.0" 5550 + }, 5551 + "peerDependenciesMeta": { 5552 + "@volar/language-service": { 5553 + "optional": true 5554 + } 6153 5555 } 6154 5556 }, 6155 - "node_modules/which-pm-runs": { 6156 - "version": "1.1.0", 6157 - "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.1.0.tgz", 6158 - "integrity": "sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==", 5557 + "node_modules/volar-service-emmet": { 5558 + "version": "0.0.68", 5559 + "resolved": "https://registry.npmjs.org/volar-service-emmet/-/volar-service-emmet-0.0.68.tgz", 5560 + "integrity": "sha512-nHvixrRQ83EzkQ4G/jFxu9Y4eSsXS/X2cltEPDM+K9qZmIv+Ey1w0tg1+6caSe8TU5Hgw4oSTwNMf/6cQb3LzQ==", 5561 + "dev": true, 6159 5562 "license": "MIT", 6160 - "engines": { 6161 - "node": ">=4" 5563 + "dependencies": { 5564 + "@emmetio/css-parser": "^0.4.1", 5565 + "@emmetio/html-matcher": "^1.3.0", 5566 + "@vscode/emmet-helper": "^2.9.3", 5567 + "vscode-uri": "^3.0.8" 5568 + }, 5569 + "peerDependencies": { 5570 + "@volar/language-service": "~2.4.0" 5571 + }, 5572 + "peerDependenciesMeta": { 5573 + "@volar/language-service": { 5574 + "optional": true 5575 + } 6162 5576 } 6163 5577 }, 6164 - "node_modules/widest-line": { 6165 - "version": "5.0.0", 6166 - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-5.0.0.tgz", 6167 - "integrity": "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==", 5578 + "node_modules/volar-service-html": { 5579 + "version": "0.0.68", 5580 + "resolved": "https://registry.npmjs.org/volar-service-html/-/volar-service-html-0.0.68.tgz", 5581 + "integrity": "sha512-fru9gsLJxy33xAltXOh4TEdi312HP80hpuKhpYQD4O5hDnkNPEBdcQkpB+gcX0oK0VxRv1UOzcGQEUzWCVHLfA==", 5582 + "dev": true, 6168 5583 "license": "MIT", 6169 5584 "dependencies": { 6170 - "string-width": "^7.0.0" 5585 + "vscode-html-languageservice": "^5.3.0", 5586 + "vscode-languageserver-textdocument": "^1.0.11", 5587 + "vscode-uri": "^3.0.8" 6171 5588 }, 6172 - "engines": { 6173 - "node": ">=18" 5589 + "peerDependencies": { 5590 + "@volar/language-service": "~2.4.0" 6174 5591 }, 6175 - "funding": { 6176 - "url": "https://github.com/sponsors/sindresorhus" 5592 + "peerDependenciesMeta": { 5593 + "@volar/language-service": { 5594 + "optional": true 5595 + } 6177 5596 } 6178 5597 }, 6179 - "node_modules/workerd": { 6180 - "version": "1.20251118.0", 6181 - "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20251118.0.tgz", 6182 - "integrity": "sha512-Om5ns0Lyx/LKtYI04IV0bjIrkBgoFNg0p6urzr2asekJlfP18RqFzyqMFZKf0i9Gnjtz/JfAS/Ol6tjCe5JJsQ==", 6183 - "hasInstallScript": true, 6184 - "license": "Apache-2.0", 6185 - "peer": true, 6186 - "bin": { 6187 - "workerd": "bin/workerd" 5598 + "node_modules/volar-service-prettier": { 5599 + "version": "0.0.68", 5600 + "resolved": "https://registry.npmjs.org/volar-service-prettier/-/volar-service-prettier-0.0.68.tgz", 5601 + "integrity": "sha512-grUmWHkHlebMOd6V8vXs2eNQUw/bJGJMjekh/EPf/p2ZNTK0Uyz7hoBRngcvGfJHMsSXZH8w/dZTForIW/4ihw==", 5602 + "dev": true, 5603 + "license": "MIT", 5604 + "dependencies": { 5605 + "vscode-uri": "^3.0.8" 6188 5606 }, 6189 - "engines": { 6190 - "node": ">=16" 5607 + "peerDependencies": { 5608 + "@volar/language-service": "~2.4.0", 5609 + "prettier": "^2.2 || ^3.0" 6191 5610 }, 6192 - "optionalDependencies": { 6193 - "@cloudflare/workerd-darwin-64": "1.20251118.0", 6194 - "@cloudflare/workerd-darwin-arm64": "1.20251118.0", 6195 - "@cloudflare/workerd-linux-64": "1.20251118.0", 6196 - "@cloudflare/workerd-linux-arm64": "1.20251118.0", 6197 - "@cloudflare/workerd-windows-64": "1.20251118.0" 5611 + "peerDependenciesMeta": { 5612 + "@volar/language-service": { 5613 + "optional": true 5614 + }, 5615 + "prettier": { 5616 + "optional": true 5617 + } 6198 5618 } 6199 5619 }, 6200 - "node_modules/wrangler": { 6201 - "version": "4.50.0", 6202 - "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.50.0.tgz", 6203 - "integrity": "sha512-+nuZuHZxDdKmAyXOSrHlciGshCoAPiy5dM+t6mEohWm7HpXvTHmWQGUf/na9jjWlWJHCJYOWzkA1P5HBJqrIEA==", 6204 - "license": "MIT OR Apache-2.0", 5620 + "node_modules/volar-service-typescript": { 5621 + "version": "0.0.68", 5622 + "resolved": "https://registry.npmjs.org/volar-service-typescript/-/volar-service-typescript-0.0.68.tgz", 5623 + "integrity": "sha512-z7B/7CnJ0+TWWFp/gh2r5/QwMObHNDiQiv4C9pTBNI2Wxuwymd4bjEORzrJ/hJ5Yd5+OzeYK+nFCKevoGEEeKw==", 5624 + "dev": true, 5625 + "license": "MIT", 6205 5626 "dependencies": { 6206 - "@cloudflare/kv-asset-handler": "0.4.0", 6207 - "@cloudflare/unenv-preset": "2.7.11", 6208 - "blake3-wasm": "2.1.5", 6209 - "esbuild": "0.25.4", 6210 - "miniflare": "4.20251118.1", 6211 - "path-to-regexp": "6.3.0", 6212 - "unenv": "2.0.0-rc.24", 6213 - "workerd": "1.20251118.0" 6214 - }, 6215 - "bin": { 6216 - "wrangler": "bin/wrangler.js", 6217 - "wrangler2": "bin/wrangler.js" 6218 - }, 6219 - "engines": { 6220 - "node": ">=20.0.0" 6221 - }, 6222 - "optionalDependencies": { 6223 - "fsevents": "~2.3.2" 5627 + "path-browserify": "^1.0.1", 5628 + "semver": "^7.6.2", 5629 + "typescript-auto-import-cache": "^0.3.5", 5630 + "vscode-languageserver-textdocument": "^1.0.11", 5631 + "vscode-nls": "^5.2.0", 5632 + "vscode-uri": "^3.0.8" 6224 5633 }, 6225 5634 "peerDependencies": { 6226 - "@cloudflare/workers-types": "^4.20251118.0" 5635 + "@volar/language-service": "~2.4.0" 6227 5636 }, 6228 5637 "peerDependenciesMeta": { 6229 - "@cloudflare/workers-types": { 5638 + "@volar/language-service": { 6230 5639 "optional": true 6231 5640 } 6232 5641 } 6233 5642 }, 6234 - "node_modules/wrangler/node_modules/@esbuild/aix-ppc64": { 6235 - "version": "0.25.4", 6236 - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.4.tgz", 6237 - "integrity": "sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==", 6238 - "cpu": [ 6239 - "ppc64" 6240 - ], 5643 + "node_modules/volar-service-typescript-twoslash-queries": { 5644 + "version": "0.0.68", 5645 + "resolved": "https://registry.npmjs.org/volar-service-typescript-twoslash-queries/-/volar-service-typescript-twoslash-queries-0.0.68.tgz", 5646 + "integrity": "sha512-NugzXcM0iwuZFLCJg47vI93su5YhTIweQuLmZxvz5ZPTaman16JCvmDZexx2rd5T/75SNuvvZmrTOTNYUsfe5w==", 5647 + "dev": true, 6241 5648 "license": "MIT", 6242 - "optional": true, 6243 - "os": [ 6244 - "aix" 6245 - ], 6246 - "engines": { 6247 - "node": ">=18" 5649 + "dependencies": { 5650 + "vscode-uri": "^3.0.8" 5651 + }, 5652 + "peerDependencies": { 5653 + "@volar/language-service": "~2.4.0" 5654 + }, 5655 + "peerDependenciesMeta": { 5656 + "@volar/language-service": { 5657 + "optional": true 5658 + } 6248 5659 } 6249 5660 }, 6250 - "node_modules/wrangler/node_modules/@esbuild/android-arm": { 6251 - "version": "0.25.4", 6252 - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.4.tgz", 6253 - "integrity": "sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==", 6254 - "cpu": [ 6255 - "arm" 6256 - ], 5661 + "node_modules/volar-service-yaml": { 5662 + "version": "0.0.68", 5663 + "resolved": "https://registry.npmjs.org/volar-service-yaml/-/volar-service-yaml-0.0.68.tgz", 5664 + "integrity": "sha512-84XgE02LV0OvTcwfqhcSwVg4of3MLNUWPMArO6Aj8YXqyEVnPu8xTEMY2btKSq37mVAPuaEVASI4e3ptObmqcA==", 5665 + "dev": true, 6257 5666 "license": "MIT", 6258 - "optional": true, 6259 - "os": [ 6260 - "android" 6261 - ], 6262 - "engines": { 6263 - "node": ">=18" 5667 + "dependencies": { 5668 + "vscode-uri": "^3.0.8", 5669 + "yaml-language-server": "~1.19.2" 5670 + }, 5671 + "peerDependencies": { 5672 + "@volar/language-service": "~2.4.0" 5673 + }, 5674 + "peerDependenciesMeta": { 5675 + "@volar/language-service": { 5676 + "optional": true 5677 + } 6264 5678 } 6265 5679 }, 6266 - "node_modules/wrangler/node_modules/@esbuild/android-arm64": { 6267 - "version": "0.25.4", 6268 - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.4.tgz", 6269 - "integrity": "sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==", 6270 - "cpu": [ 6271 - "arm64" 6272 - ], 6273 - "license": "MIT", 6274 - "optional": true, 6275 - "os": [ 6276 - "android" 6277 - ], 6278 - "engines": { 6279 - "node": ">=18" 6280 - } 6281 - }, 6282 - "node_modules/wrangler/node_modules/@esbuild/android-x64": { 6283 - "version": "0.25.4", 6284 - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.4.tgz", 6285 - "integrity": "sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==", 6286 - "cpu": [ 6287 - "x64" 6288 - ], 6289 - "license": "MIT", 6290 - "optional": true, 6291 - "os": [ 6292 - "android" 6293 - ], 6294 - "engines": { 6295 - "node": ">=18" 6296 - } 6297 - }, 6298 - "node_modules/wrangler/node_modules/@esbuild/darwin-arm64": { 6299 - "version": "0.25.4", 6300 - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.4.tgz", 6301 - "integrity": "sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==", 6302 - "cpu": [ 6303 - "arm64" 6304 - ], 5680 + "node_modules/vscode-css-languageservice": { 5681 + "version": "6.3.10", 5682 + "resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-6.3.10.tgz", 5683 + "integrity": "sha512-eq5N9Er3fC4vA9zd9EFhyBG90wtCCuXgRSpAndaOgXMh1Wgep5lBgRIeDgjZBW9pa+332yC9+49cZMW8jcL3MA==", 5684 + "dev": true, 6305 5685 "license": "MIT", 6306 - "optional": true, 6307 - "os": [ 6308 - "darwin" 6309 - ], 6310 - "engines": { 6311 - "node": ">=18" 5686 + "dependencies": { 5687 + "@vscode/l10n": "^0.0.18", 5688 + "vscode-languageserver-textdocument": "^1.0.12", 5689 + "vscode-languageserver-types": "3.17.5", 5690 + "vscode-uri": "^3.1.0" 6312 5691 } 6313 5692 }, 6314 - "node_modules/wrangler/node_modules/@esbuild/darwin-x64": { 6315 - "version": "0.25.4", 6316 - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.4.tgz", 6317 - "integrity": "sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==", 6318 - "cpu": [ 6319 - "x64" 6320 - ], 5693 + "node_modules/vscode-html-languageservice": { 5694 + "version": "5.6.2", 5695 + "resolved": "https://registry.npmjs.org/vscode-html-languageservice/-/vscode-html-languageservice-5.6.2.tgz", 5696 + "integrity": "sha512-ulCrSnFnfQ16YzvwnYUgEbUEl/ZG7u2eV27YhvLObSHKkb8fw1Z9cgsnUwjTEeDIdJDoTDTDpxuhQwoenoLNMg==", 5697 + "dev": true, 6321 5698 "license": "MIT", 6322 - "optional": true, 6323 - "os": [ 6324 - "darwin" 6325 - ], 6326 - "engines": { 6327 - "node": ">=18" 5699 + "dependencies": { 5700 + "@vscode/l10n": "^0.0.18", 5701 + "vscode-languageserver-textdocument": "^1.0.12", 5702 + "vscode-languageserver-types": "^3.17.5", 5703 + "vscode-uri": "^3.1.0" 6328 5704 } 6329 5705 }, 6330 - "node_modules/wrangler/node_modules/@esbuild/freebsd-arm64": { 6331 - "version": "0.25.4", 6332 - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.4.tgz", 6333 - "integrity": "sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==", 6334 - "cpu": [ 6335 - "arm64" 6336 - ], 5706 + "node_modules/vscode-json-languageservice": { 5707 + "version": "4.1.8", 5708 + "resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-4.1.8.tgz", 5709 + "integrity": "sha512-0vSpg6Xd9hfV+eZAaYN63xVVMOTmJ4GgHxXnkLCh+9RsQBkWKIghzLhW2B9ebfG+LQQg8uLtsQ2aUKjTgE+QOg==", 5710 + "dev": true, 6337 5711 "license": "MIT", 6338 - "optional": true, 6339 - "os": [ 6340 - "freebsd" 6341 - ], 5712 + "dependencies": { 5713 + "jsonc-parser": "^3.0.0", 5714 + "vscode-languageserver-textdocument": "^1.0.1", 5715 + "vscode-languageserver-types": "^3.16.0", 5716 + "vscode-nls": "^5.0.0", 5717 + "vscode-uri": "^3.0.2" 5718 + }, 6342 5719 "engines": { 6343 - "node": ">=18" 5720 + "npm": ">=7.0.0" 6344 5721 } 6345 5722 }, 6346 - "node_modules/wrangler/node_modules/@esbuild/freebsd-x64": { 6347 - "version": "0.25.4", 6348 - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.4.tgz", 6349 - "integrity": "sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==", 6350 - "cpu": [ 6351 - "x64" 6352 - ], 6353 - "license": "MIT", 6354 - "optional": true, 6355 - "os": [ 6356 - "freebsd" 6357 - ], 6358 - "engines": { 6359 - "node": ">=18" 6360 - } 6361 - }, 6362 - "node_modules/wrangler/node_modules/@esbuild/linux-arm": { 6363 - "version": "0.25.4", 6364 - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.4.tgz", 6365 - "integrity": "sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==", 6366 - "cpu": [ 6367 - "arm" 6368 - ], 6369 - "license": "MIT", 6370 - "optional": true, 6371 - "os": [ 6372 - "linux" 6373 - ], 6374 - "engines": { 6375 - "node": ">=18" 6376 - } 6377 - }, 6378 - "node_modules/wrangler/node_modules/@esbuild/linux-arm64": { 6379 - "version": "0.25.4", 6380 - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.4.tgz", 6381 - "integrity": "sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==", 6382 - "cpu": [ 6383 - "arm64" 6384 - ], 6385 - "license": "MIT", 6386 - "optional": true, 6387 - "os": [ 6388 - "linux" 6389 - ], 6390 - "engines": { 6391 - "node": ">=18" 6392 - } 6393 - }, 6394 - "node_modules/wrangler/node_modules/@esbuild/linux-ia32": { 6395 - "version": "0.25.4", 6396 - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.4.tgz", 6397 - "integrity": "sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==", 6398 - "cpu": [ 6399 - "ia32" 6400 - ], 6401 - "license": "MIT", 6402 - "optional": true, 6403 - "os": [ 6404 - "linux" 6405 - ], 6406 - "engines": { 6407 - "node": ">=18" 6408 - } 6409 - }, 6410 - "node_modules/wrangler/node_modules/@esbuild/linux-loong64": { 6411 - "version": "0.25.4", 6412 - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.4.tgz", 6413 - "integrity": "sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==", 6414 - "cpu": [ 6415 - "loong64" 6416 - ], 6417 - "license": "MIT", 6418 - "optional": true, 6419 - "os": [ 6420 - "linux" 6421 - ], 6422 - "engines": { 6423 - "node": ">=18" 6424 - } 6425 - }, 6426 - "node_modules/wrangler/node_modules/@esbuild/linux-mips64el": { 6427 - "version": "0.25.4", 6428 - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.4.tgz", 6429 - "integrity": "sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==", 6430 - "cpu": [ 6431 - "mips64el" 6432 - ], 6433 - "license": "MIT", 6434 - "optional": true, 6435 - "os": [ 6436 - "linux" 6437 - ], 6438 - "engines": { 6439 - "node": ">=18" 6440 - } 6441 - }, 6442 - "node_modules/wrangler/node_modules/@esbuild/linux-ppc64": { 6443 - "version": "0.25.4", 6444 - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.4.tgz", 6445 - "integrity": "sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==", 6446 - "cpu": [ 6447 - "ppc64" 6448 - ], 6449 - "license": "MIT", 6450 - "optional": true, 6451 - "os": [ 6452 - "linux" 6453 - ], 6454 - "engines": { 6455 - "node": ">=18" 6456 - } 6457 - }, 6458 - "node_modules/wrangler/node_modules/@esbuild/linux-riscv64": { 6459 - "version": "0.25.4", 6460 - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.4.tgz", 6461 - "integrity": "sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==", 6462 - "cpu": [ 6463 - "riscv64" 6464 - ], 6465 - "license": "MIT", 6466 - "optional": true, 6467 - "os": [ 6468 - "linux" 6469 - ], 6470 - "engines": { 6471 - "node": ">=18" 6472 - } 5723 + "node_modules/vscode-json-languageservice/node_modules/jsonc-parser": { 5724 + "version": "3.3.1", 5725 + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", 5726 + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", 5727 + "dev": true, 5728 + "license": "MIT" 6473 5729 }, 6474 - "node_modules/wrangler/node_modules/@esbuild/linux-s390x": { 6475 - "version": "0.25.4", 6476 - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.4.tgz", 6477 - "integrity": "sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==", 6478 - "cpu": [ 6479 - "s390x" 6480 - ], 5730 + "node_modules/vscode-jsonrpc": { 5731 + "version": "8.2.0", 5732 + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", 5733 + "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==", 5734 + "dev": true, 6481 5735 "license": "MIT", 6482 - "optional": true, 6483 - "os": [ 6484 - "linux" 6485 - ], 6486 5736 "engines": { 6487 - "node": ">=18" 5737 + "node": ">=14.0.0" 6488 5738 } 6489 5739 }, 6490 - "node_modules/wrangler/node_modules/@esbuild/linux-x64": { 6491 - "version": "0.25.4", 6492 - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.4.tgz", 6493 - "integrity": "sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==", 6494 - "cpu": [ 6495 - "x64" 6496 - ], 5740 + "node_modules/vscode-languageserver": { 5741 + "version": "9.0.1", 5742 + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", 5743 + "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", 5744 + "dev": true, 6497 5745 "license": "MIT", 6498 - "optional": true, 6499 - "os": [ 6500 - "linux" 6501 - ], 6502 - "engines": { 6503 - "node": ">=18" 5746 + "dependencies": { 5747 + "vscode-languageserver-protocol": "3.17.5" 5748 + }, 5749 + "bin": { 5750 + "installServerIntoExtension": "bin/installServerIntoExtension" 6504 5751 } 6505 5752 }, 6506 - "node_modules/wrangler/node_modules/@esbuild/netbsd-arm64": { 6507 - "version": "0.25.4", 6508 - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.4.tgz", 6509 - "integrity": "sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==", 6510 - "cpu": [ 6511 - "arm64" 6512 - ], 5753 + "node_modules/vscode-languageserver-protocol": { 5754 + "version": "3.17.5", 5755 + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", 5756 + "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", 5757 + "dev": true, 6513 5758 "license": "MIT", 6514 - "optional": true, 6515 - "os": [ 6516 - "netbsd" 6517 - ], 6518 - "engines": { 6519 - "node": ">=18" 5759 + "dependencies": { 5760 + "vscode-jsonrpc": "8.2.0", 5761 + "vscode-languageserver-types": "3.17.5" 6520 5762 } 6521 5763 }, 6522 - "node_modules/wrangler/node_modules/@esbuild/netbsd-x64": { 6523 - "version": "0.25.4", 6524 - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.4.tgz", 6525 - "integrity": "sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==", 6526 - "cpu": [ 6527 - "x64" 6528 - ], 6529 - "license": "MIT", 6530 - "optional": true, 6531 - "os": [ 6532 - "netbsd" 6533 - ], 6534 - "engines": { 6535 - "node": ">=18" 6536 - } 5764 + "node_modules/vscode-languageserver-textdocument": { 5765 + "version": "1.0.12", 5766 + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz", 5767 + "integrity": "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==", 5768 + "dev": true, 5769 + "license": "MIT" 6537 5770 }, 6538 - "node_modules/wrangler/node_modules/@esbuild/openbsd-arm64": { 6539 - "version": "0.25.4", 6540 - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.4.tgz", 6541 - "integrity": "sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==", 6542 - "cpu": [ 6543 - "arm64" 6544 - ], 6545 - "license": "MIT", 6546 - "optional": true, 6547 - "os": [ 6548 - "openbsd" 6549 - ], 6550 - "engines": { 6551 - "node": ">=18" 6552 - } 5771 + "node_modules/vscode-languageserver-types": { 5772 + "version": "3.17.5", 5773 + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", 5774 + "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", 5775 + "dev": true, 5776 + "license": "MIT" 6553 5777 }, 6554 - "node_modules/wrangler/node_modules/@esbuild/openbsd-x64": { 6555 - "version": "0.25.4", 6556 - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.4.tgz", 6557 - "integrity": "sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==", 6558 - "cpu": [ 6559 - "x64" 6560 - ], 6561 - "license": "MIT", 6562 - "optional": true, 6563 - "os": [ 6564 - "openbsd" 6565 - ], 6566 - "engines": { 6567 - "node": ">=18" 6568 - } 5778 + "node_modules/vscode-nls": { 5779 + "version": "5.2.0", 5780 + "resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-5.2.0.tgz", 5781 + "integrity": "sha512-RAaHx7B14ZU04EU31pT+rKz2/zSl7xMsfIZuo8pd+KZO6PXtQmpevpq3vxvWNcrGbdmhM/rr5Uw5Mz+NBfhVng==", 5782 + "dev": true, 5783 + "license": "MIT" 6569 5784 }, 6570 - "node_modules/wrangler/node_modules/@esbuild/sunos-x64": { 6571 - "version": "0.25.4", 6572 - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.4.tgz", 6573 - "integrity": "sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==", 6574 - "cpu": [ 6575 - "x64" 6576 - ], 6577 - "license": "MIT", 6578 - "optional": true, 6579 - "os": [ 6580 - "sunos" 6581 - ], 6582 - "engines": { 6583 - "node": ">=18" 6584 - } 5785 + "node_modules/vscode-uri": { 5786 + "version": "3.1.0", 5787 + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz", 5788 + "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==", 5789 + "dev": true, 5790 + "license": "MIT" 6585 5791 }, 6586 - "node_modules/wrangler/node_modules/@esbuild/win32-arm64": { 6587 - "version": "0.25.4", 6588 - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.4.tgz", 6589 - "integrity": "sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==", 6590 - "cpu": [ 6591 - "arm64" 6592 - ], 5792 + "node_modules/web-namespaces": { 5793 + "version": "2.0.1", 5794 + "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", 5795 + "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==", 6593 5796 "license": "MIT", 6594 - "optional": true, 6595 - "os": [ 6596 - "win32" 6597 - ], 6598 - "engines": { 6599 - "node": ">=18" 5797 + "funding": { 5798 + "type": "github", 5799 + "url": "https://github.com/sponsors/wooorm" 6600 5800 } 6601 5801 }, 6602 - "node_modules/wrangler/node_modules/@esbuild/win32-ia32": { 6603 - "version": "0.25.4", 6604 - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.4.tgz", 6605 - "integrity": "sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==", 6606 - "cpu": [ 6607 - "ia32" 6608 - ], 5802 + "node_modules/which-pm-runs": { 5803 + "version": "1.1.0", 5804 + "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.1.0.tgz", 5805 + "integrity": "sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==", 6609 5806 "license": "MIT", 6610 - "optional": true, 6611 - "os": [ 6612 - "win32" 6613 - ], 6614 5807 "engines": { 6615 - "node": ">=18" 5808 + "node": ">=4" 6616 5809 } 6617 5810 }, 6618 - "node_modules/wrangler/node_modules/@esbuild/win32-x64": { 6619 - "version": "0.25.4", 6620 - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.4.tgz", 6621 - "integrity": "sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==", 6622 - "cpu": [ 6623 - "x64" 6624 - ], 6625 - "license": "MIT", 6626 - "optional": true, 6627 - "os": [ 6628 - "win32" 6629 - ], 5811 + "node_modules/workerd": { 5812 + "version": "1.20260310.1", 5813 + "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20260310.1.tgz", 5814 + "integrity": "sha512-yawXhypXXHtArikJj15HOMknNGikpBbSg2ZDe6lddUbqZnJXuCVSkgc/0ArUeVMG1jbbGvpst+REFtKwILvRTQ==", 5815 + "hasInstallScript": true, 5816 + "license": "Apache-2.0", 5817 + "peer": true, 5818 + "bin": { 5819 + "workerd": "bin/workerd" 5820 + }, 6630 5821 "engines": { 6631 - "node": ">=18" 5822 + "node": ">=16" 5823 + }, 5824 + "optionalDependencies": { 5825 + "@cloudflare/workerd-darwin-64": "1.20260310.1", 5826 + "@cloudflare/workerd-darwin-arm64": "1.20260310.1", 5827 + "@cloudflare/workerd-linux-64": "1.20260310.1", 5828 + "@cloudflare/workerd-linux-arm64": "1.20260310.1", 5829 + "@cloudflare/workerd-windows-64": "1.20260310.1" 6632 5830 } 6633 5831 }, 6634 - "node_modules/wrangler/node_modules/esbuild": { 6635 - "version": "0.25.4", 6636 - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.4.tgz", 6637 - "integrity": "sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==", 6638 - "hasInstallScript": true, 6639 - "license": "MIT", 5832 + "node_modules/wrangler": { 5833 + "version": "4.72.0", 5834 + "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.72.0.tgz", 5835 + "integrity": "sha512-bKkb8150JGzJZJWiNB2nu/33smVfawmfYiecA6rW4XH7xS23/jqMbgpdelM34W/7a1IhR66qeQGVqTRXROtAZg==", 5836 + "license": "MIT OR Apache-2.0", 5837 + "peer": true, 5838 + "dependencies": { 5839 + "@cloudflare/kv-asset-handler": "0.4.2", 5840 + "@cloudflare/unenv-preset": "2.15.0", 5841 + "blake3-wasm": "2.1.5", 5842 + "esbuild": "0.27.3", 5843 + "miniflare": "4.20260310.0", 5844 + "path-to-regexp": "6.3.0", 5845 + "unenv": "2.0.0-rc.24", 5846 + "workerd": "1.20260310.1" 5847 + }, 6640 5848 "bin": { 6641 - "esbuild": "bin/esbuild" 5849 + "wrangler": "bin/wrangler.js", 5850 + "wrangler2": "bin/wrangler.js" 6642 5851 }, 6643 5852 "engines": { 6644 - "node": ">=18" 5853 + "node": ">=20.0.0" 6645 5854 }, 6646 5855 "optionalDependencies": { 6647 - "@esbuild/aix-ppc64": "0.25.4", 6648 - "@esbuild/android-arm": "0.25.4", 6649 - "@esbuild/android-arm64": "0.25.4", 6650 - "@esbuild/android-x64": "0.25.4", 6651 - "@esbuild/darwin-arm64": "0.25.4", 6652 - "@esbuild/darwin-x64": "0.25.4", 6653 - "@esbuild/freebsd-arm64": "0.25.4", 6654 - "@esbuild/freebsd-x64": "0.25.4", 6655 - "@esbuild/linux-arm": "0.25.4", 6656 - "@esbuild/linux-arm64": "0.25.4", 6657 - "@esbuild/linux-ia32": "0.25.4", 6658 - "@esbuild/linux-loong64": "0.25.4", 6659 - "@esbuild/linux-mips64el": "0.25.4", 6660 - "@esbuild/linux-ppc64": "0.25.4", 6661 - "@esbuild/linux-riscv64": "0.25.4", 6662 - "@esbuild/linux-s390x": "0.25.4", 6663 - "@esbuild/linux-x64": "0.25.4", 6664 - "@esbuild/netbsd-arm64": "0.25.4", 6665 - "@esbuild/netbsd-x64": "0.25.4", 6666 - "@esbuild/openbsd-arm64": "0.25.4", 6667 - "@esbuild/openbsd-x64": "0.25.4", 6668 - "@esbuild/sunos-x64": "0.25.4", 6669 - "@esbuild/win32-arm64": "0.25.4", 6670 - "@esbuild/win32-ia32": "0.25.4", 6671 - "@esbuild/win32-x64": "0.25.4" 5856 + "fsevents": "~2.3.2" 5857 + }, 5858 + "peerDependencies": { 5859 + "@cloudflare/workers-types": "^4.20260310.1" 5860 + }, 5861 + "peerDependenciesMeta": { 5862 + "@cloudflare/workers-types": { 5863 + "optional": true 5864 + } 6672 5865 } 6673 5866 }, 6674 5867 "node_modules/wrap-ansi": { 6675 - "version": "9.0.2", 6676 - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", 6677 - "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", 5868 + "version": "7.0.0", 5869 + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 5870 + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 5871 + "dev": true, 6678 5872 "license": "MIT", 6679 5873 "dependencies": { 6680 - "ansi-styles": "^6.2.1", 6681 - "string-width": "^7.0.0", 6682 - "strip-ansi": "^7.1.0" 5874 + "ansi-styles": "^4.0.0", 5875 + "string-width": "^4.1.0", 5876 + "strip-ansi": "^6.0.0" 6683 5877 }, 6684 5878 "engines": { 6685 - "node": ">=18" 5879 + "node": ">=10" 6686 5880 }, 6687 5881 "funding": { 6688 5882 "url": "https://github.com/chalk/wrap-ansi?sponsor=1" ··· 6715 5909 "integrity": "sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==", 6716 5910 "license": "MIT" 6717 5911 }, 6718 - "node_modules/yargs-parser": { 6719 - "version": "21.1.1", 6720 - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", 6721 - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", 5912 + "node_modules/y18n": { 5913 + "version": "5.0.8", 5914 + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 5915 + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 5916 + "dev": true, 6722 5917 "license": "ISC", 6723 5918 "engines": { 6724 - "node": ">=12" 5919 + "node": ">=10" 6725 5920 } 6726 5921 }, 6727 - "node_modules/yocto-queue": { 6728 - "version": "1.2.2", 6729 - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz", 6730 - "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==", 6731 - "license": "MIT", 5922 + "node_modules/yaml": { 5923 + "version": "2.8.2", 5924 + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", 5925 + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", 5926 + "devOptional": true, 5927 + "license": "ISC", 5928 + "peer": true, 5929 + "bin": { 5930 + "yaml": "bin.mjs" 5931 + }, 6732 5932 "engines": { 6733 - "node": ">=12.20" 5933 + "node": ">= 14.6" 6734 5934 }, 6735 5935 "funding": { 6736 - "url": "https://github.com/sponsors/sindresorhus" 5936 + "url": "https://github.com/sponsors/eemeli" 6737 5937 } 6738 5938 }, 6739 - "node_modules/yocto-spinner": { 6740 - "version": "0.2.3", 6741 - "resolved": "https://registry.npmjs.org/yocto-spinner/-/yocto-spinner-0.2.3.tgz", 6742 - "integrity": "sha512-sqBChb33loEnkoXte1bLg45bEBsOP9N1kzQh5JZNKj/0rik4zAPTNSAVPj3uQAdc6slYJ0Ksc403G2XgxsJQFQ==", 5939 + "node_modules/yaml-language-server": { 5940 + "version": "1.19.2", 5941 + "resolved": "https://registry.npmjs.org/yaml-language-server/-/yaml-language-server-1.19.2.tgz", 5942 + "integrity": "sha512-9F3myNmJzUN/679jycdMxqtydPSDRAarSj3wPiF7pchEPnO9Dg07Oc+gIYLqXR4L+g+FSEVXXv2+mr54StLFOg==", 5943 + "dev": true, 6743 5944 "license": "MIT", 6744 5945 "dependencies": { 6745 - "yoctocolors": "^2.1.1" 5946 + "@vscode/l10n": "^0.0.18", 5947 + "ajv": "^8.17.1", 5948 + "ajv-draft-04": "^1.0.0", 5949 + "lodash": "4.17.21", 5950 + "prettier": "^3.5.0", 5951 + "request-light": "^0.5.7", 5952 + "vscode-json-languageservice": "4.1.8", 5953 + "vscode-languageserver": "^9.0.0", 5954 + "vscode-languageserver-textdocument": "^1.0.1", 5955 + "vscode-languageserver-types": "^3.16.0", 5956 + "vscode-uri": "^3.0.2", 5957 + "yaml": "2.7.1" 5958 + }, 5959 + "bin": { 5960 + "yaml-language-server": "bin/yaml-language-server" 5961 + } 5962 + }, 5963 + "node_modules/yaml-language-server/node_modules/request-light": { 5964 + "version": "0.5.8", 5965 + "resolved": "https://registry.npmjs.org/request-light/-/request-light-0.5.8.tgz", 5966 + "integrity": "sha512-3Zjgh+8b5fhRJBQZoy+zbVKpAQGLyka0MPgW3zruTF4dFFJ8Fqcfu9YsAvi/rvdcaTeWG3MkbZv4WKxAn/84Lg==", 5967 + "dev": true, 5968 + "license": "MIT" 5969 + }, 5970 + "node_modules/yaml-language-server/node_modules/yaml": { 5971 + "version": "2.7.1", 5972 + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", 5973 + "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", 5974 + "dev": true, 5975 + "license": "ISC", 5976 + "bin": { 5977 + "yaml": "bin.mjs" 6746 5978 }, 6747 5979 "engines": { 6748 - "node": ">=18.19" 5980 + "node": ">= 14" 5981 + } 5982 + }, 5983 + "node_modules/yargs": { 5984 + "version": "17.7.2", 5985 + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", 5986 + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", 5987 + "dev": true, 5988 + "license": "MIT", 5989 + "dependencies": { 5990 + "cliui": "^8.0.1", 5991 + "escalade": "^3.1.1", 5992 + "get-caller-file": "^2.0.5", 5993 + "require-directory": "^2.1.1", 5994 + "string-width": "^4.2.3", 5995 + "y18n": "^5.0.5", 5996 + "yargs-parser": "^21.1.1" 6749 5997 }, 6750 - "funding": { 6751 - "url": "https://github.com/sponsors/sindresorhus" 5998 + "engines": { 5999 + "node": ">=12" 6000 + } 6001 + }, 6002 + "node_modules/yargs-parser": { 6003 + "version": "22.0.0", 6004 + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", 6005 + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", 6006 + "license": "ISC", 6007 + "engines": { 6008 + "node": "^20.19.0 || ^22.12.0 || >=23" 6752 6009 } 6753 6010 }, 6754 - "node_modules/yoctocolors": { 6755 - "version": "2.1.2", 6756 - "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.1.2.tgz", 6757 - "integrity": "sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==", 6011 + "node_modules/yargs/node_modules/yargs-parser": { 6012 + "version": "21.1.1", 6013 + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", 6014 + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", 6015 + "dev": true, 6016 + "license": "ISC", 6017 + "engines": { 6018 + "node": ">=12" 6019 + } 6020 + }, 6021 + "node_modules/yocto-queue": { 6022 + "version": "1.2.2", 6023 + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz", 6024 + "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==", 6758 6025 "license": "MIT", 6759 6026 "engines": { 6760 - "node": ">=18" 6027 + "node": ">=12.20" 6761 6028 }, 6762 6029 "funding": { 6763 6030 "url": "https://github.com/sponsors/sindresorhus" ··· 6787 6054 } 6788 6055 }, 6789 6056 "node_modules/zod": { 6790 - "version": "3.25.76", 6791 - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", 6792 - "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", 6057 + "version": "4.3.6", 6058 + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", 6059 + "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", 6793 6060 "license": "MIT", 6794 - "peer": true, 6795 6061 "funding": { 6796 6062 "url": "https://github.com/sponsors/colinhacks" 6797 - } 6798 - }, 6799 - "node_modules/zod-to-json-schema": { 6800 - "version": "3.25.1", 6801 - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.1.tgz", 6802 - "integrity": "sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==", 6803 - "license": "ISC", 6804 - "peerDependencies": { 6805 - "zod": "^3.25 || ^4" 6806 - } 6807 - }, 6808 - "node_modules/zod-to-ts": { 6809 - "version": "1.2.0", 6810 - "resolved": "https://registry.npmjs.org/zod-to-ts/-/zod-to-ts-1.2.0.tgz", 6811 - "integrity": "sha512-x30XE43V+InwGpvTySRNz9kB7qFU8DlyEy7BsSTCHPH1R0QasMmHWZDCzYm6bVXtj/9NNJAZF3jW8rzFvH5OFA==", 6812 - "peerDependencies": { 6813 - "typescript": "^4.9.4 || ^5.0.2", 6814 - "zod": "^3" 6815 6063 } 6816 6064 }, 6817 6065 "node_modules/zwitch": {
+11 -3
package.json
··· 18 18 "keywords": [], 19 19 "author": "", 20 20 "license": "MIT", 21 - "type": "commonjs", 21 + "type": "module", 22 + "engines": { 23 + "node": ">=22.12.0" 24 + }, 22 25 "bugs": { 23 26 "url": "https://github.com/Hann8n/orbyt-site/issues" 24 27 }, 25 28 "homepage": "https://github.com/Hann8n/orbyt-site#readme", 26 29 "dependencies": { 27 - "@astrojs/cloudflare": "^12.6.12", 28 - "astro": "^5.17.3" 30 + "@astrojs/cloudflare": "^13.0.2", 31 + "astro": "^6.0.2" 32 + }, 33 + "devDependencies": { 34 + "@astrojs/check": "^0.9.7", 35 + "@types/node": "^22.15.29", 36 + "typescript": "^5.9.3" 29 37 } 30 38 }
+1 -1
src/actions/index.ts
··· 1 1 import { defineAction } from "astro:actions"; 2 - import { z } from "astro:schema"; 2 + import { z } from "astro/zod"; 3 3 import { fetchVideoPosts } from "../utils/bluesky-api"; 4 4 import { parseRichText } from "../utils/richtext"; 5 5
+5
src/env.d.ts
··· 1 + /// <reference path="../worker-configuration.d.ts" /> 2 + 3 + declare module 'cloudflare:workers' { 4 + export const env: Env; 5 + }
+10 -4
src/pages/@[handle].astro
··· 1 1 --- 2 2 export const prerender = false; // SSR route 3 3 4 + import { env } from 'cloudflare:workers'; 4 5 import { fetchProfile, fetchVideoPosts, toAbsoluteUrl, getImageMimeType } from '../utils/bluesky-api'; 5 6 import { getColor } from '../utils/orbyt-api'; 6 7 import { parseRichText } from '../utils/richtext'; ··· 27 28 const nextCursor = videoFeed.cursor; 28 29 29 30 // Fetch profile colors via Service Binding 30 - const { env } = Astro.locals.runtime; 31 31 const colorData = profileData.did && env.ORBYT_API 32 32 ? await getColor(profileData.did, env.ORBYT_API) 33 33 : null; ··· 106 106 <meta name="twitter:image" content={ogImage} /> 107 107 108 108 <!-- Structured Data for SEO - Breadcrumbs --> 109 - <script type="application/ld+json" set:html={JSON.stringify({ 109 + <script type="application/ld+json" is:inline set:html={JSON.stringify({ 110 110 "@context": "https://schema.org", 111 111 "@type": "BreadcrumbList", 112 112 "itemListElement": [ ··· 125 125 ] 126 126 })}></script> 127 127 <!-- Profile Structured Data --> 128 - <script type="application/ld+json" set:html={JSON.stringify({ 128 + <script type="application/ld+json" is:inline set:html={JSON.stringify({ 129 129 "@context": "https://schema.org", 130 130 "@type": "ProfilePage", 131 131 "mainEntity": { ··· 296 296 // Captions are pre-rendered server-side, no client-side parsing needed 297 297 import { actions } from "astro:actions"; 298 298 299 + // Wrapper to work around Astro actions client typing (expects FormData, accepts object) 300 + async function loadMorePosts(handle: string, cursor: string) { 301 + return (actions as unknown as { loadMorePosts: (input: { handle: string; cursor: string }) => Promise<{ data?: { posts?: { postId: string; thumbnail: string; captionHtml: string }[]; nextCursor?: string | null }; error?: unknown }> }) 302 + .loadMorePosts({ handle, cursor }); 303 + } 304 + 299 305 function setupLoadMore() { 300 306 const profileEl = document.getElementById('profile'); 301 307 const loadMoreBtn = document.getElementById('load-more'); ··· 311 317 loadMoreBtn.textContent = 'Loading...'; 312 318 313 319 try { 314 - const { data, error } = await actions.loadMorePosts({ handle: handle || '', cursor }); 320 + const { data, error } = await loadMorePosts(handle ?? '', cursor); 315 321 316 322 if (error || !data?.posts?.length) { 317 323 loadMoreBtn.parentElement?.remove();
+5 -5
src/pages/@[handle]/[postId].astro
··· 23 23 Astro.response.headers.set('Cache-Control', 'public, s-maxage=60, stale-while-revalidate=300'); 24 24 25 25 // Extract metadata with fallbacks - all from postData 26 - const caption = postData?.text || 'Loading post...'; 26 + const caption = postData?.text ?? ''; 27 27 const authorHandle = postData?.author?.handle || handle; 28 28 const authorDisplayName = postData?.author?.displayName || authorHandle; 29 29 const authorAvatar = postData?.author?.avatar || '/images/Default-avatar.png'; ··· 52 52 53 53 // Enhanced description: like count first (if > 0), then caption snippet separated by | 54 54 let ogDescription: string; 55 - if (caption && caption !== 'Loading post...') { 55 + if (caption) { 56 56 if (likeCount > 0) { 57 57 // Reserve space for "❤️ {likeCount} | " (approx 12-18 chars depending on like count) 58 58 const likeCountPrefix = `❤️ ${likeCount} | `; ··· 79 79 80 80 // Image metadata 81 81 const ogImageType = getImageMimeType(thumbnail); 82 - const ogImageAlt = caption && caption !== 'Loading post...' 82 + const ogImageAlt = caption 83 83 ? (caption.length > 200 ? caption.substring(0, 200) + '...' : caption) 84 84 : `Post by @${authorHandle}`; 85 85 ··· 300 300 <meta name="twitter:image" content={ogImage} /> 301 301 302 302 <!-- Structured Data for SEO - Breadcrumbs --> 303 - <script type="application/ld+json" set:html={JSON.stringify({ 303 + <script type="application/ld+json" is:inline set:html={JSON.stringify({ 304 304 "@context": "https://schema.org", 305 305 "@type": "BreadcrumbList", 306 306 "itemListElement": [ ··· 326 326 })}></script> 327 327 <!-- Video Structured Data --> 328 328 {videoUrl && ( 329 - <script type="application/ld+json" set:html={JSON.stringify({ 329 + <script type="application/ld+json" is:inline set:html={JSON.stringify({ 330 330 "@context": "https://schema.org", 331 331 "@type": "VideoObject", 332 332 "name": finalOgTitle,
+2 -2
src/pages/about.astro
··· 48 48 <meta name="twitter:description" content="Learn about Orbyt, a video social networking application for Bluesky"/> 49 49 <meta name="twitter:image" content="https://getorbyt.com/images/orbyt-logotype.png"/> 50 50 51 - <style> 51 + <style define:vars={{ avatarBorderColor }}> 52 52 * { 53 53 margin: 0; 54 54 padding: 0; ··· 122 122 height: 150px; 123 123 border-radius: 50%; 124 124 object-fit: cover; 125 - border: 2px solid; 125 + border: 2px solid var(--avatarBorderColor); 126 126 display: block; 127 127 } 128 128
+2 -2
src/pages/beta.astro
··· 7 7 <head> 8 8 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> 9 9 <title>Join the waitlist</title> 10 - <script async src="https://tally.so/widgets/embed.js"></script> 10 + <script is:inline async src="https://tally.so/widgets/embed.js"></script> 11 11 <style type="text/css"> 12 12 html { margin: 0; height: 100%; overflow: hidden; background: #000000; } 13 13 body { margin: 0; background: #000000; } ··· 15 15 </style> 16 16 </head> 17 17 <body> 18 - <iframe data-tally-src="https://tally.so/r/nWx7zQ?transparentBackground=1&formEventsForwarding=1" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" title="Join the waitlist"></iframe> 18 + <iframe data-tally-src="https://tally.so/r/nWx7zQ?transparentBackground=1&formEventsForwarding=1" width="100%" height="100%" style="border: 0; margin: 0;" title="Join the waitlist"></iframe> 19 19 </body> 20 20 </html>
+2 -2
src/pages/index.astro
··· 38 38 <meta name="twitter:image" content="https://getorbyt.com/images/orbyt-logotype.png"/> 39 39 40 40 <!-- Structured Data for SEO --> 41 - <script type="application/ld+json"> 41 + <script type="application/ld+json" is:inline> 42 42 { 43 43 "@context": "https://schema.org", 44 44 "@type": "Organization", ··· 52 52 ] 53 53 } 54 54 </script> 55 - <script type="application/ld+json"> 55 + <script type="application/ld+json" is:inline> 56 56 { 57 57 "@context": "https://schema.org", 58 58 "@type": "WebSite",
+75 -23
src/utils/bluesky-api.ts
··· 30 30 }; 31 31 } 32 32 33 + // Raw API response shapes (AT Protocol / app.bsky.*) 34 + interface BskyProfileResponse { 35 + handle?: string; 36 + displayName?: string; 37 + description?: string; 38 + avatar?: string; 39 + did?: string; 40 + error?: string; 41 + } 42 + 43 + interface BskyVideoEmbed { 44 + $type?: string; 45 + thumbnail?: string; 46 + playlist?: string; 47 + cid?: string; 48 + aspectRatio?: { width: number; height: number }; 49 + media?: BskyVideoEmbed; 50 + images?: { thumb?: string; fullsize?: string }[]; 51 + } 52 + 53 + interface BskyPostRecord { 54 + text?: string; 55 + createdAt?: string; 56 + } 57 + 58 + interface BskyPostAuthor { 59 + handle?: string; 60 + displayName?: string; 61 + avatar?: string; 62 + } 63 + 64 + interface BskyApiPost { 65 + uri?: string; 66 + record?: BskyPostRecord; 67 + author?: BskyPostAuthor; 68 + embed?: BskyVideoEmbed; 69 + indexedAt?: string; 70 + likeCount?: number; 71 + } 72 + 73 + interface BskyGetPostsResponse { 74 + posts?: BskyApiPost[]; 75 + } 76 + 77 + interface BskyFeedResponse { 78 + error?: string; 79 + feed?: { post: BskyApiPost }[]; 80 + cursor?: string; 81 + } 82 + 33 83 async function fetchWithTimeout(url: string, timeout: number = API_TIMEOUT): Promise<Response> { 34 84 const controller = new AbortController(); 35 85 const timeoutId = setTimeout(() => controller.abort(), timeout); ··· 50 100 51 101 if (!response.ok) return null; 52 102 53 - const data = await response.json(); 54 - if (data.error || !data.handle) return null; 55 - 103 + const data = (await response.json()) as BskyProfileResponse; 104 + if (data.error || !data.handle || !data.did) return null; 105 + 56 106 return { 57 107 handle: data.handle, 58 108 displayName: data.displayName, ··· 72 122 73 123 if (!response.ok) return null; 74 124 75 - const data = await response.json(); 125 + const data = (await response.json()) as { did?: string }; 76 126 return data.did || null; 77 127 } catch { 78 128 return null; ··· 92 142 93 143 if (!response.ok) return null; 94 144 95 - const data = await response.json(); 96 - if (!data.posts || data.posts.length === 0) return null; 97 - 98 - const post = data.posts[0]; 145 + const data = (await response.json()) as BskyGetPostsResponse; 146 + const posts = data.posts; 147 + if (!posts || posts.length === 0) return null; 148 + 149 + const post = posts[0]!; 99 150 100 151 // Extract video data from embed - handle video embed structure 101 152 let thumbnail: string | undefined; ··· 113 164 videoUrl = post.embed.playlist; 114 165 } else if (post.embed.cid && post.uri) { 115 166 const didMatch = post.uri.match(/did:plc:[^/]+/); 116 - const did = didMatch ? didMatch[0] : null; 117 - if (did) { 118 - videoUrl = `https://video.bsky.app/watch/${encodeURIComponent(did)}/${encodeURIComponent(post.embed.cid)}/playlist.m3u8`; 167 + const videoDid = didMatch ? didMatch[0] : null; 168 + if (videoDid) { 169 + videoUrl = `https://video.bsky.app/watch/${encodeURIComponent(videoDid)}/${encodeURIComponent(post.embed.cid)}/playlist.m3u8`; 119 170 } 120 171 } 121 172 } ··· 130 181 videoUrl = post.embed.media.playlist; 131 182 } else if (post.embed.media.cid && post.uri) { 132 183 const didMatch = post.uri.match(/did:plc:[^/]+/); 133 - const did = didMatch ? didMatch[0] : null; 134 - if (did) { 135 - videoUrl = `https://video.bsky.app/watch/${encodeURIComponent(did)}/${encodeURIComponent(post.embed.media.cid)}/playlist.m3u8`; 184 + const videoDid = didMatch ? didMatch[0] : null; 185 + if (videoDid) { 186 + videoUrl = `https://video.bsky.app/watch/${encodeURIComponent(videoDid)}/${encodeURIComponent(post.embed.media.cid)}/playlist.m3u8`; 136 187 } 137 188 } 138 189 } ··· 210 261 return { posts: [], cursor: null }; 211 262 } 212 263 213 - const data = await response.json(); 214 - 264 + const data = (await response.json()) as BskyFeedResponse; 265 + 215 266 if (data.error || !data.feed) { 216 267 return { posts: [], cursor: null }; 217 268 } 218 269 219 270 // Filter and map video posts 220 271 const posts: VideoPost[] = []; 221 - 272 + 222 273 for (const item of data.feed) { 223 274 const post = item.post; 224 275 if (!post) continue; 225 - 276 + 226 277 const embed = post.embed; 227 278 if (!embed) continue; 228 - 279 + 229 280 // Only include video posts 230 281 if (embed.$type !== 'app.bsky.embed.video#view') continue; 231 - 232 - const postId = extractPostId(post.uri); 282 + 283 + const postUri = post.uri; 284 + const postId = postUri ? extractPostId(postUri) : null; 233 285 if (!postId) continue; 234 - 286 + 235 287 posts.push({ 236 - uri: post.uri, 288 + uri: postUri || '', 237 289 postId, 238 290 thumbnail: embed.thumbnail || '', 239 291 caption: truncateText(post.record?.text || ''),
+3 -3
src/utils/richtext.ts
··· 58 58 const matches: Match[] = []; 59 59 60 60 // Find all URLs 61 - let urlMatch; 61 + let urlMatch: RegExpExecArray | null; 62 62 while ((urlMatch = urlPattern.exec(text)) !== null) { 63 63 matches.push({ 64 64 type: 'url', ··· 69 69 } 70 70 71 71 // Find all mentions 72 - let mentionMatch; 72 + let mentionMatch: RegExpExecArray | null; 73 73 while ((mentionMatch = mentionPattern.exec(text)) !== null) { 74 74 const handle = mentionMatch[1]; 75 75 // Skip if this mention overlaps with a URL (e.g., @example.com in https://example.com/@user) ··· 96 96 matches.sort((a, b) => a.start - b.start); 97 97 98 98 // Filter out URLs that are part of mentions (e.g., user.bsky.social in @user.bsky.social) 99 - const filteredMatches = matches.filter((match, index) => { 99 + const filteredMatches = matches.filter((match, _index) => { 100 100 if (match.type === 'url') { 101 101 // Check if this URL is contained within a mention 102 102 return !matches.some(m =>
+12
tsconfig.json
··· 1 + { 2 + "extends": "astro/tsconfigs/base", 3 + "compilerOptions": { 4 + "baseUrl": ".", 5 + "paths": { 6 + "@/*": ["src/*"], 7 + "stores/*": ["src/stores/*"] 8 + } 9 + }, 10 + "include": [".astro/types.d.ts", "worker-configuration.d.ts", "**/*"], 11 + "exclude": ["dist", "public"] 12 + }
+11311
worker-configuration.d.ts
··· 1 + /* eslint-disable */ 2 + // Generated by Wrangler by running `wrangler types` (hash: b59ea23886c3fbf0163ae340c4dcdf6a) 3 + // Runtime types generated with workerd@1.20260310.1 2026-01-29 global_fetch_strictly_public,nodejs_compat 4 + declare namespace Cloudflare { 5 + interface Env { 6 + ASSETS: Fetcher; 7 + ORBYT_API: Fetcher /* orbyt-api */; 8 + } 9 + } 10 + interface Env extends Cloudflare.Env {} 11 + 12 + // Begin runtime types 13 + /*! ***************************************************************************** 14 + Copyright (c) Cloudflare. All rights reserved. 15 + Copyright (c) Microsoft Corporation. All rights reserved. 16 + 17 + Licensed under the Apache License, Version 2.0 (the "License"); you may not use 18 + this file except in compliance with the License. You may obtain a copy of the 19 + License at http://www.apache.org/licenses/LICENSE-2.0 20 + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 21 + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 22 + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 23 + MERCHANTABLITY OR NON-INFRINGEMENT. 24 + See the Apache Version 2.0 License for specific language governing permissions 25 + and limitations under the License. 26 + ***************************************************************************** */ 27 + /* eslint-disable */ 28 + // noinspection JSUnusedGlobalSymbols 29 + declare var onmessage: never; 30 + /** 31 + * 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. 32 + * 33 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) 34 + */ 35 + declare class DOMException extends Error { 36 + constructor(message?: string, name?: string); 37 + /** 38 + * The **`message`** read-only property of the a message or description associated with the given error name. 39 + * 40 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) 41 + */ 42 + readonly message: string; 43 + /** 44 + * The **`name`** read-only property of the one of the strings associated with an error name. 45 + * 46 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) 47 + */ 48 + readonly name: string; 49 + /** 50 + * The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or `0` if none match. 51 + * @deprecated 52 + * 53 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) 54 + */ 55 + readonly code: number; 56 + static readonly INDEX_SIZE_ERR: number; 57 + static readonly DOMSTRING_SIZE_ERR: number; 58 + static readonly HIERARCHY_REQUEST_ERR: number; 59 + static readonly WRONG_DOCUMENT_ERR: number; 60 + static readonly INVALID_CHARACTER_ERR: number; 61 + static readonly NO_DATA_ALLOWED_ERR: number; 62 + static readonly NO_MODIFICATION_ALLOWED_ERR: number; 63 + static readonly NOT_FOUND_ERR: number; 64 + static readonly NOT_SUPPORTED_ERR: number; 65 + static readonly INUSE_ATTRIBUTE_ERR: number; 66 + static readonly INVALID_STATE_ERR: number; 67 + static readonly SYNTAX_ERR: number; 68 + static readonly INVALID_MODIFICATION_ERR: number; 69 + static readonly NAMESPACE_ERR: number; 70 + static readonly INVALID_ACCESS_ERR: number; 71 + static readonly VALIDATION_ERR: number; 72 + static readonly TYPE_MISMATCH_ERR: number; 73 + static readonly SECURITY_ERR: number; 74 + static readonly NETWORK_ERR: number; 75 + static readonly ABORT_ERR: number; 76 + static readonly URL_MISMATCH_ERR: number; 77 + static readonly QUOTA_EXCEEDED_ERR: number; 78 + static readonly TIMEOUT_ERR: number; 79 + static readonly INVALID_NODE_TYPE_ERR: number; 80 + static readonly DATA_CLONE_ERR: number; 81 + get stack(): any; 82 + set stack(value: any); 83 + } 84 + type WorkerGlobalScopeEventMap = { 85 + fetch: FetchEvent; 86 + scheduled: ScheduledEvent; 87 + queue: QueueEvent; 88 + unhandledrejection: PromiseRejectionEvent; 89 + rejectionhandled: PromiseRejectionEvent; 90 + }; 91 + declare abstract class WorkerGlobalScope extends EventTarget<WorkerGlobalScopeEventMap> { 92 + EventTarget: typeof EventTarget; 93 + } 94 + /* The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). * 95 + * The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). 96 + * 97 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) 98 + */ 99 + interface Console { 100 + "assert"(condition?: boolean, ...data: any[]): void; 101 + /** 102 + * The **`console.clear()`** static method clears the console if possible. 103 + * 104 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) 105 + */ 106 + clear(): void; 107 + /** 108 + * The **`console.count()`** static method logs the number of times that this particular call to `count()` has been called. 109 + * 110 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) 111 + */ 112 + count(label?: string): void; 113 + /** 114 + * The **`console.countReset()`** static method resets counter used with console/count_static. 115 + * 116 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) 117 + */ 118 + countReset(label?: string): void; 119 + /** 120 + * The **`console.debug()`** static method outputs a message to the console at the 'debug' log level. 121 + * 122 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) 123 + */ 124 + debug(...data: any[]): void; 125 + /** 126 + * The **`console.dir()`** static method displays a list of the properties of the specified JavaScript object. 127 + * 128 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) 129 + */ 130 + dir(item?: any, options?: any): void; 131 + /** 132 + * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. 133 + * 134 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) 135 + */ 136 + dirxml(...data: any[]): void; 137 + /** 138 + * The **`console.error()`** static method outputs a message to the console at the 'error' log level. 139 + * 140 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) 141 + */ 142 + error(...data: any[]): void; 143 + /** 144 + * 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. 145 + * 146 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) 147 + */ 148 + group(...data: any[]): void; 149 + /** 150 + * The **`console.groupCollapsed()`** static method creates a new inline group in the console. 151 + * 152 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) 153 + */ 154 + groupCollapsed(...data: any[]): void; 155 + /** 156 + * The **`console.groupEnd()`** static method exits the current inline group in the console. 157 + * 158 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) 159 + */ 160 + groupEnd(): void; 161 + /** 162 + * The **`console.info()`** static method outputs a message to the console at the 'info' log level. 163 + * 164 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) 165 + */ 166 + info(...data: any[]): void; 167 + /** 168 + * The **`console.log()`** static method outputs a message to the console. 169 + * 170 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) 171 + */ 172 + log(...data: any[]): void; 173 + /** 174 + * The **`console.table()`** static method displays tabular data as a table. 175 + * 176 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) 177 + */ 178 + table(tabularData?: any, properties?: string[]): void; 179 + /** 180 + * The **`console.time()`** static method starts a timer you can use to track how long an operation takes. 181 + * 182 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) 183 + */ 184 + time(label?: string): void; 185 + /** 186 + * The **`console.timeEnd()`** static method stops a timer that was previously started by calling console/time_static. 187 + * 188 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) 189 + */ 190 + timeEnd(label?: string): void; 191 + /** 192 + * The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console/time_static. 193 + * 194 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) 195 + */ 196 + timeLog(label?: string, ...data: any[]): void; 197 + timeStamp(label?: string): void; 198 + /** 199 + * The **`console.trace()`** static method outputs a stack trace to the console. 200 + * 201 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) 202 + */ 203 + trace(...data: any[]): void; 204 + /** 205 + * The **`console.warn()`** static method outputs a warning message to the console at the 'warning' log level. 206 + * 207 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) 208 + */ 209 + warn(...data: any[]): void; 210 + } 211 + declare const console: Console; 212 + type BufferSource = ArrayBufferView | ArrayBuffer; 213 + type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array; 214 + declare namespace WebAssembly { 215 + class CompileError extends Error { 216 + constructor(message?: string); 217 + } 218 + class RuntimeError extends Error { 219 + constructor(message?: string); 220 + } 221 + type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128"; 222 + interface GlobalDescriptor { 223 + value: ValueType; 224 + mutable?: boolean; 225 + } 226 + class Global { 227 + constructor(descriptor: GlobalDescriptor, value?: any); 228 + value: any; 229 + valueOf(): any; 230 + } 231 + type ImportValue = ExportValue | number; 232 + type ModuleImports = Record<string, ImportValue>; 233 + type Imports = Record<string, ModuleImports>; 234 + type ExportValue = Function | Global | Memory | Table; 235 + type Exports = Record<string, ExportValue>; 236 + class Instance { 237 + constructor(module: Module, imports?: Imports); 238 + readonly exports: Exports; 239 + } 240 + interface MemoryDescriptor { 241 + initial: number; 242 + maximum?: number; 243 + shared?: boolean; 244 + } 245 + class Memory { 246 + constructor(descriptor: MemoryDescriptor); 247 + readonly buffer: ArrayBuffer; 248 + grow(delta: number): number; 249 + } 250 + type ImportExportKind = "function" | "global" | "memory" | "table"; 251 + interface ModuleExportDescriptor { 252 + kind: ImportExportKind; 253 + name: string; 254 + } 255 + interface ModuleImportDescriptor { 256 + kind: ImportExportKind; 257 + module: string; 258 + name: string; 259 + } 260 + abstract class Module { 261 + static customSections(module: Module, sectionName: string): ArrayBuffer[]; 262 + static exports(module: Module): ModuleExportDescriptor[]; 263 + static imports(module: Module): ModuleImportDescriptor[]; 264 + } 265 + type TableKind = "anyfunc" | "externref"; 266 + interface TableDescriptor { 267 + element: TableKind; 268 + initial: number; 269 + maximum?: number; 270 + } 271 + class Table { 272 + constructor(descriptor: TableDescriptor, value?: any); 273 + readonly length: number; 274 + get(index: number): any; 275 + grow(delta: number, value?: any): number; 276 + set(index: number, value?: any): void; 277 + } 278 + function instantiate(module: Module, imports?: Imports): Promise<Instance>; 279 + function validate(bytes: BufferSource): boolean; 280 + } 281 + /** 282 + * The **`ServiceWorkerGlobalScope`** interface of the Service Worker API represents the global execution context of a service worker. 283 + * Available only in secure contexts. 284 + * 285 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope) 286 + */ 287 + interface ServiceWorkerGlobalScope extends WorkerGlobalScope { 288 + DOMException: typeof DOMException; 289 + WorkerGlobalScope: typeof WorkerGlobalScope; 290 + btoa(data: string): string; 291 + atob(data: string): string; 292 + setTimeout(callback: (...args: any[]) => void, msDelay?: number): number; 293 + setTimeout<Args extends any[]>(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; 294 + clearTimeout(timeoutId: number | null): void; 295 + setInterval(callback: (...args: any[]) => void, msDelay?: number): number; 296 + setInterval<Args extends any[]>(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; 297 + clearInterval(timeoutId: number | null): void; 298 + queueMicrotask(task: Function): void; 299 + structuredClone<T>(value: T, options?: StructuredSerializeOptions): T; 300 + reportError(error: any): void; 301 + fetch(input: RequestInfo | URL, init?: RequestInit<RequestInitCfProperties>): Promise<Response>; 302 + self: ServiceWorkerGlobalScope; 303 + crypto: Crypto; 304 + caches: CacheStorage; 305 + scheduler: Scheduler; 306 + performance: Performance; 307 + Cloudflare: Cloudflare; 308 + readonly origin: string; 309 + Event: typeof Event; 310 + ExtendableEvent: typeof ExtendableEvent; 311 + CustomEvent: typeof CustomEvent; 312 + PromiseRejectionEvent: typeof PromiseRejectionEvent; 313 + FetchEvent: typeof FetchEvent; 314 + TailEvent: typeof TailEvent; 315 + TraceEvent: typeof TailEvent; 316 + ScheduledEvent: typeof ScheduledEvent; 317 + MessageEvent: typeof MessageEvent; 318 + CloseEvent: typeof CloseEvent; 319 + ReadableStreamDefaultReader: typeof ReadableStreamDefaultReader; 320 + ReadableStreamBYOBReader: typeof ReadableStreamBYOBReader; 321 + ReadableStream: typeof ReadableStream; 322 + WritableStream: typeof WritableStream; 323 + WritableStreamDefaultWriter: typeof WritableStreamDefaultWriter; 324 + TransformStream: typeof TransformStream; 325 + ByteLengthQueuingStrategy: typeof ByteLengthQueuingStrategy; 326 + CountQueuingStrategy: typeof CountQueuingStrategy; 327 + ErrorEvent: typeof ErrorEvent; 328 + MessageChannel: typeof MessageChannel; 329 + MessagePort: typeof MessagePort; 330 + EventSource: typeof EventSource; 331 + ReadableStreamBYOBRequest: typeof ReadableStreamBYOBRequest; 332 + ReadableStreamDefaultController: typeof ReadableStreamDefaultController; 333 + ReadableByteStreamController: typeof ReadableByteStreamController; 334 + WritableStreamDefaultController: typeof WritableStreamDefaultController; 335 + TransformStreamDefaultController: typeof TransformStreamDefaultController; 336 + CompressionStream: typeof CompressionStream; 337 + DecompressionStream: typeof DecompressionStream; 338 + TextEncoderStream: typeof TextEncoderStream; 339 + TextDecoderStream: typeof TextDecoderStream; 340 + Headers: typeof Headers; 341 + Body: typeof Body; 342 + Request: typeof Request; 343 + Response: typeof Response; 344 + WebSocket: typeof WebSocket; 345 + WebSocketPair: typeof WebSocketPair; 346 + WebSocketRequestResponsePair: typeof WebSocketRequestResponsePair; 347 + AbortController: typeof AbortController; 348 + AbortSignal: typeof AbortSignal; 349 + TextDecoder: typeof TextDecoder; 350 + TextEncoder: typeof TextEncoder; 351 + navigator: Navigator; 352 + Navigator: typeof Navigator; 353 + URL: typeof URL; 354 + URLSearchParams: typeof URLSearchParams; 355 + URLPattern: typeof URLPattern; 356 + Blob: typeof Blob; 357 + File: typeof File; 358 + FormData: typeof FormData; 359 + Crypto: typeof Crypto; 360 + SubtleCrypto: typeof SubtleCrypto; 361 + CryptoKey: typeof CryptoKey; 362 + CacheStorage: typeof CacheStorage; 363 + Cache: typeof Cache; 364 + FixedLengthStream: typeof FixedLengthStream; 365 + IdentityTransformStream: typeof IdentityTransformStream; 366 + HTMLRewriter: typeof HTMLRewriter; 367 + } 368 + declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(type: Type, handler: EventListenerOrEventListenerObject<WorkerGlobalScopeEventMap[Type]>, options?: EventTargetAddEventListenerOptions | boolean): void; 369 + declare function removeEventListener<Type extends keyof WorkerGlobalScopeEventMap>(type: Type, handler: EventListenerOrEventListenerObject<WorkerGlobalScopeEventMap[Type]>, options?: EventTargetEventListenerOptions | boolean): void; 370 + /** 371 + * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. 372 + * 373 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) 374 + */ 375 + declare function dispatchEvent(event: WorkerGlobalScopeEventMap[keyof WorkerGlobalScopeEventMap]): boolean; 376 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ 377 + declare function btoa(data: string): string; 378 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */ 379 + declare function atob(data: string): string; 380 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ 381 + declare function setTimeout(callback: (...args: any[]) => void, msDelay?: number): number; 382 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ 383 + declare function setTimeout<Args extends any[]>(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; 384 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ 385 + declare function clearTimeout(timeoutId: number | null): void; 386 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ 387 + declare function setInterval(callback: (...args: any[]) => void, msDelay?: number): number; 388 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ 389 + declare function setInterval<Args extends any[]>(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; 390 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ 391 + declare function clearInterval(timeoutId: number | null): void; 392 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ 393 + declare function queueMicrotask(task: Function): void; 394 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ 395 + declare function structuredClone<T>(value: T, options?: StructuredSerializeOptions): T; 396 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ 397 + declare function reportError(error: any): void; 398 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ 399 + declare function fetch(input: RequestInfo | URL, init?: RequestInit<RequestInitCfProperties>): Promise<Response>; 400 + declare const self: ServiceWorkerGlobalScope; 401 + /** 402 + * The Web Crypto API provides a set of low-level functions for common cryptographic tasks. 403 + * The Workers runtime implements the full surface of this API, but with some differences in 404 + * the [supported algorithms](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/#supported-algorithms) 405 + * compared to those implemented in most browsers. 406 + * 407 + * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/) 408 + */ 409 + declare const crypto: Crypto; 410 + /** 411 + * The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache. 412 + * 413 + * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/) 414 + */ 415 + declare const caches: CacheStorage; 416 + declare const scheduler: Scheduler; 417 + /** 418 + * The Workers runtime supports a subset of the Performance API, used to measure timing and performance, 419 + * as well as timing of subrequests and other operations. 420 + * 421 + * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/) 422 + */ 423 + declare const performance: Performance; 424 + declare const Cloudflare: Cloudflare; 425 + declare const origin: string; 426 + declare const navigator: Navigator; 427 + interface TestController { 428 + } 429 + interface ExecutionContext<Props = unknown> { 430 + waitUntil(promise: Promise<any>): void; 431 + passThroughOnException(): void; 432 + readonly exports: Cloudflare.Exports; 433 + readonly props: Props; 434 + } 435 + type ExportedHandlerFetchHandler<Env = unknown, CfHostMetadata = unknown, Props = unknown> = (request: Request<CfHostMetadata, IncomingRequestCfProperties<CfHostMetadata>>, env: Env, ctx: ExecutionContext<Props>) => Response | Promise<Response>; 436 + type ExportedHandlerTailHandler<Env = unknown, Props = unknown> = (events: TraceItem[], env: Env, ctx: ExecutionContext<Props>) => void | Promise<void>; 437 + type ExportedHandlerTraceHandler<Env = unknown, Props = unknown> = (traces: TraceItem[], env: Env, ctx: ExecutionContext<Props>) => void | Promise<void>; 438 + type ExportedHandlerTailStreamHandler<Env = unknown, Props = unknown> = (event: TailStream.TailEvent<TailStream.Onset>, env: Env, ctx: ExecutionContext<Props>) => TailStream.TailEventHandlerType | Promise<TailStream.TailEventHandlerType>; 439 + type ExportedHandlerScheduledHandler<Env = unknown, Props = unknown> = (controller: ScheduledController, env: Env, ctx: ExecutionContext<Props>) => void | Promise<void>; 440 + type ExportedHandlerQueueHandler<Env = unknown, Message = unknown, Props = unknown> = (batch: MessageBatch<Message>, env: Env, ctx: ExecutionContext<Props>) => void | Promise<void>; 441 + type ExportedHandlerTestHandler<Env = unknown, Props = unknown> = (controller: TestController, env: Env, ctx: ExecutionContext<Props>) => void | Promise<void>; 442 + interface ExportedHandler<Env = unknown, QueueHandlerMessage = unknown, CfHostMetadata = unknown, Props = unknown> { 443 + fetch?: ExportedHandlerFetchHandler<Env, CfHostMetadata, Props>; 444 + tail?: ExportedHandlerTailHandler<Env, Props>; 445 + trace?: ExportedHandlerTraceHandler<Env, Props>; 446 + tailStream?: ExportedHandlerTailStreamHandler<Env, Props>; 447 + scheduled?: ExportedHandlerScheduledHandler<Env, Props>; 448 + test?: ExportedHandlerTestHandler<Env, Props>; 449 + email?: EmailExportedHandler<Env, Props>; 450 + queue?: ExportedHandlerQueueHandler<Env, QueueHandlerMessage, Props>; 451 + } 452 + interface StructuredSerializeOptions { 453 + transfer?: any[]; 454 + } 455 + declare abstract class Navigator { 456 + sendBeacon(url: string, body?: BodyInit): boolean; 457 + readonly userAgent: string; 458 + readonly hardwareConcurrency: number; 459 + readonly language: string; 460 + readonly languages: string[]; 461 + } 462 + interface AlarmInvocationInfo { 463 + readonly isRetry: boolean; 464 + readonly retryCount: number; 465 + } 466 + interface Cloudflare { 467 + readonly compatibilityFlags: Record<string, boolean>; 468 + } 469 + interface DurableObject { 470 + fetch(request: Request): Response | Promise<Response>; 471 + alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>; 472 + webSocketMessage?(ws: WebSocket, message: string | ArrayBuffer): void | Promise<void>; 473 + webSocketClose?(ws: WebSocket, code: number, reason: string, wasClean: boolean): void | Promise<void>; 474 + webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>; 475 + } 476 + type DurableObjectStub<T extends Rpc.DurableObjectBranded | undefined = undefined> = Fetcher<T, "alarm" | "webSocketMessage" | "webSocketClose" | "webSocketError"> & { 477 + readonly id: DurableObjectId; 478 + readonly name?: string; 479 + }; 480 + interface DurableObjectId { 481 + toString(): string; 482 + equals(other: DurableObjectId): boolean; 483 + readonly name?: string; 484 + } 485 + declare abstract class DurableObjectNamespace<T extends Rpc.DurableObjectBranded | undefined = undefined> { 486 + newUniqueId(options?: DurableObjectNamespaceNewUniqueIdOptions): DurableObjectId; 487 + idFromName(name: string): DurableObjectId; 488 + idFromString(id: string): DurableObjectId; 489 + get(id: DurableObjectId, options?: DurableObjectNamespaceGetDurableObjectOptions): DurableObjectStub<T>; 490 + getByName(name: string, options?: DurableObjectNamespaceGetDurableObjectOptions): DurableObjectStub<T>; 491 + jurisdiction(jurisdiction: DurableObjectJurisdiction): DurableObjectNamespace<T>; 492 + } 493 + type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high"; 494 + interface DurableObjectNamespaceNewUniqueIdOptions { 495 + jurisdiction?: DurableObjectJurisdiction; 496 + } 497 + type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me"; 498 + type DurableObjectRoutingMode = "primary-only"; 499 + interface DurableObjectNamespaceGetDurableObjectOptions { 500 + locationHint?: DurableObjectLocationHint; 501 + routingMode?: DurableObjectRoutingMode; 502 + } 503 + interface DurableObjectClass<_T extends Rpc.DurableObjectBranded | undefined = undefined> { 504 + } 505 + interface DurableObjectState<Props = unknown> { 506 + waitUntil(promise: Promise<any>): void; 507 + readonly exports: Cloudflare.Exports; 508 + readonly props: Props; 509 + readonly id: DurableObjectId; 510 + readonly storage: DurableObjectStorage; 511 + container?: Container; 512 + blockConcurrencyWhile<T>(callback: () => Promise<T>): Promise<T>; 513 + acceptWebSocket(ws: WebSocket, tags?: string[]): void; 514 + getWebSockets(tag?: string): WebSocket[]; 515 + setWebSocketAutoResponse(maybeReqResp?: WebSocketRequestResponsePair): void; 516 + getWebSocketAutoResponse(): WebSocketRequestResponsePair | null; 517 + getWebSocketAutoResponseTimestamp(ws: WebSocket): Date | null; 518 + setHibernatableWebSocketEventTimeout(timeoutMs?: number): void; 519 + getHibernatableWebSocketEventTimeout(): number | null; 520 + getTags(ws: WebSocket): string[]; 521 + abort(reason?: string): void; 522 + } 523 + interface DurableObjectTransaction { 524 + get<T = unknown>(key: string, options?: DurableObjectGetOptions): Promise<T | undefined>; 525 + get<T = unknown>(keys: string[], options?: DurableObjectGetOptions): Promise<Map<string, T>>; 526 + list<T = unknown>(options?: DurableObjectListOptions): Promise<Map<string, T>>; 527 + put<T>(key: string, value: T, options?: DurableObjectPutOptions): Promise<void>; 528 + put<T>(entries: Record<string, T>, options?: DurableObjectPutOptions): Promise<void>; 529 + delete(key: string, options?: DurableObjectPutOptions): Promise<boolean>; 530 + delete(keys: string[], options?: DurableObjectPutOptions): Promise<number>; 531 + rollback(): void; 532 + getAlarm(options?: DurableObjectGetAlarmOptions): Promise<number | null>; 533 + setAlarm(scheduledTime: number | Date, options?: DurableObjectSetAlarmOptions): Promise<void>; 534 + deleteAlarm(options?: DurableObjectSetAlarmOptions): Promise<void>; 535 + } 536 + interface DurableObjectStorage { 537 + get<T = unknown>(key: string, options?: DurableObjectGetOptions): Promise<T | undefined>; 538 + get<T = unknown>(keys: string[], options?: DurableObjectGetOptions): Promise<Map<string, T>>; 539 + list<T = unknown>(options?: DurableObjectListOptions): Promise<Map<string, T>>; 540 + put<T>(key: string, value: T, options?: DurableObjectPutOptions): Promise<void>; 541 + put<T>(entries: Record<string, T>, options?: DurableObjectPutOptions): Promise<void>; 542 + delete(key: string, options?: DurableObjectPutOptions): Promise<boolean>; 543 + delete(keys: string[], options?: DurableObjectPutOptions): Promise<number>; 544 + deleteAll(options?: DurableObjectPutOptions): Promise<void>; 545 + transaction<T>(closure: (txn: DurableObjectTransaction) => Promise<T>): Promise<T>; 546 + getAlarm(options?: DurableObjectGetAlarmOptions): Promise<number | null>; 547 + setAlarm(scheduledTime: number | Date, options?: DurableObjectSetAlarmOptions): Promise<void>; 548 + deleteAlarm(options?: DurableObjectSetAlarmOptions): Promise<void>; 549 + sync(): Promise<void>; 550 + sql: SqlStorage; 551 + kv: SyncKvStorage; 552 + transactionSync<T>(closure: () => T): T; 553 + getCurrentBookmark(): Promise<string>; 554 + getBookmarkForTime(timestamp: number | Date): Promise<string>; 555 + onNextSessionRestoreBookmark(bookmark: string): Promise<string>; 556 + } 557 + interface DurableObjectListOptions { 558 + start?: string; 559 + startAfter?: string; 560 + end?: string; 561 + prefix?: string; 562 + reverse?: boolean; 563 + limit?: number; 564 + allowConcurrency?: boolean; 565 + noCache?: boolean; 566 + } 567 + interface DurableObjectGetOptions { 568 + allowConcurrency?: boolean; 569 + noCache?: boolean; 570 + } 571 + interface DurableObjectGetAlarmOptions { 572 + allowConcurrency?: boolean; 573 + } 574 + interface DurableObjectPutOptions { 575 + allowConcurrency?: boolean; 576 + allowUnconfirmed?: boolean; 577 + noCache?: boolean; 578 + } 579 + interface DurableObjectSetAlarmOptions { 580 + allowConcurrency?: boolean; 581 + allowUnconfirmed?: boolean; 582 + } 583 + declare class WebSocketRequestResponsePair { 584 + constructor(request: string, response: string); 585 + get request(): string; 586 + get response(): string; 587 + } 588 + interface AnalyticsEngineDataset { 589 + writeDataPoint(event?: AnalyticsEngineDataPoint): void; 590 + } 591 + interface AnalyticsEngineDataPoint { 592 + indexes?: ((ArrayBuffer | string) | null)[]; 593 + doubles?: number[]; 594 + blobs?: ((ArrayBuffer | string) | null)[]; 595 + } 596 + /** 597 + * The **`Event`** interface represents an event which takes place on an `EventTarget`. 598 + * 599 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) 600 + */ 601 + declare class Event { 602 + constructor(type: string, init?: EventInit); 603 + /** 604 + * The **`type`** read-only property of the Event interface returns a string containing the event's type. 605 + * 606 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) 607 + */ 608 + get type(): string; 609 + /** 610 + * The **`eventPhase`** read-only property of the being evaluated. 611 + * 612 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) 613 + */ 614 + get eventPhase(): number; 615 + /** 616 + * The read-only **`composed`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM. 617 + * 618 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) 619 + */ 620 + get composed(): boolean; 621 + /** 622 + * The **`bubbles`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not. 623 + * 624 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) 625 + */ 626 + get bubbles(): boolean; 627 + /** 628 + * 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. 629 + * 630 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) 631 + */ 632 + get cancelable(): boolean; 633 + /** 634 + * 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. 635 + * 636 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) 637 + */ 638 + get defaultPrevented(): boolean; 639 + /** 640 + * The Event property **`returnValue`** indicates whether the default action for this event has been prevented or not. 641 + * @deprecated 642 + * 643 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) 644 + */ 645 + get returnValue(): boolean; 646 + /** 647 + * The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached. 648 + * 649 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) 650 + */ 651 + get currentTarget(): EventTarget | undefined; 652 + /** 653 + * The read-only **`target`** property of the dispatched. 654 + * 655 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) 656 + */ 657 + get target(): EventTarget | undefined; 658 + /** 659 + * The deprecated **`Event.srcElement`** is an alias for the Event.target property. 660 + * @deprecated 661 + * 662 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) 663 + */ 664 + get srcElement(): EventTarget | undefined; 665 + /** 666 + * The **`timeStamp`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created. 667 + * 668 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) 669 + */ 670 + get timeStamp(): number; 671 + /** 672 + * 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. 673 + * 674 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) 675 + */ 676 + get isTrusted(): boolean; 677 + /** 678 + * The **`cancelBubble`** property of the Event interface is deprecated. 679 + * @deprecated 680 + * 681 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) 682 + */ 683 + get cancelBubble(): boolean; 684 + /** 685 + * The **`cancelBubble`** property of the Event interface is deprecated. 686 + * @deprecated 687 + * 688 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) 689 + */ 690 + set cancelBubble(value: boolean); 691 + /** 692 + * 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. 693 + * 694 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) 695 + */ 696 + stopImmediatePropagation(): void; 697 + /** 698 + * 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. 699 + * 700 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) 701 + */ 702 + preventDefault(): void; 703 + /** 704 + * The **`stopPropagation()`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases. 705 + * 706 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) 707 + */ 708 + stopPropagation(): void; 709 + /** 710 + * 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. 711 + * 712 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) 713 + */ 714 + composedPath(): EventTarget[]; 715 + static readonly NONE: number; 716 + static readonly CAPTURING_PHASE: number; 717 + static readonly AT_TARGET: number; 718 + static readonly BUBBLING_PHASE: number; 719 + } 720 + interface EventInit { 721 + bubbles?: boolean; 722 + cancelable?: boolean; 723 + composed?: boolean; 724 + } 725 + type EventListener<EventType extends Event = Event> = (event: EventType) => void; 726 + interface EventListenerObject<EventType extends Event = Event> { 727 + handleEvent(event: EventType): void; 728 + } 729 + type EventListenerOrEventListenerObject<EventType extends Event = Event> = EventListener<EventType> | EventListenerObject<EventType>; 730 + /** 731 + * The **`EventTarget`** interface is implemented by objects that can receive events and may have listeners for them. 732 + * 733 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) 734 + */ 735 + declare class EventTarget<EventMap extends Record<string, Event> = Record<string, Event>> { 736 + constructor(); 737 + /** 738 + * The **`addEventListener()`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target. 739 + * 740 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) 741 + */ 742 + addEventListener<Type extends keyof EventMap>(type: Type, handler: EventListenerOrEventListenerObject<EventMap[Type]>, options?: EventTargetAddEventListenerOptions | boolean): void; 743 + /** 744 + * The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. 745 + * 746 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) 747 + */ 748 + removeEventListener<Type extends keyof EventMap>(type: Type, handler: EventListenerOrEventListenerObject<EventMap[Type]>, options?: EventTargetEventListenerOptions | boolean): void; 749 + /** 750 + * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. 751 + * 752 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) 753 + */ 754 + dispatchEvent(event: EventMap[keyof EventMap]): boolean; 755 + } 756 + interface EventTargetEventListenerOptions { 757 + capture?: boolean; 758 + } 759 + interface EventTargetAddEventListenerOptions { 760 + capture?: boolean; 761 + passive?: boolean; 762 + once?: boolean; 763 + signal?: AbortSignal; 764 + } 765 + interface EventTargetHandlerObject { 766 + handleEvent: (event: Event) => any | undefined; 767 + } 768 + /** 769 + * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. 770 + * 771 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) 772 + */ 773 + declare class AbortController { 774 + constructor(); 775 + /** 776 + * 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. 777 + * 778 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) 779 + */ 780 + get signal(): AbortSignal; 781 + /** 782 + * The **`abort()`** method of the AbortController interface aborts an asynchronous operation before it has completed. 783 + * 784 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) 785 + */ 786 + abort(reason?: any): void; 787 + } 788 + /** 789 + * 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. 790 + * 791 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) 792 + */ 793 + declare abstract class AbortSignal extends EventTarget { 794 + /** 795 + * The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event). 796 + * 797 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) 798 + */ 799 + static abort(reason?: any): AbortSignal; 800 + /** 801 + * The **`AbortSignal.timeout()`** static method returns an AbortSignal that will automatically abort after a specified time. 802 + * 803 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) 804 + */ 805 + static timeout(delay: number): AbortSignal; 806 + /** 807 + * The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal. 808 + * 809 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) 810 + */ 811 + static any(signals: AbortSignal[]): AbortSignal; 812 + /** 813 + * 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`). 814 + * 815 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) 816 + */ 817 + get aborted(): boolean; 818 + /** 819 + * The **`reason`** read-only property returns a JavaScript value that indicates the abort reason. 820 + * 821 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) 822 + */ 823 + get reason(): any; 824 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ 825 + get onabort(): any | null; 826 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ 827 + set onabort(value: any | null); 828 + /** 829 + * The **`throwIfAborted()`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing. 830 + * 831 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) 832 + */ 833 + throwIfAborted(): void; 834 + } 835 + interface Scheduler { 836 + wait(delay: number, maybeOptions?: SchedulerWaitOptions): Promise<void>; 837 + } 838 + interface SchedulerWaitOptions { 839 + signal?: AbortSignal; 840 + } 841 + /** 842 + * The **`ExtendableEvent`** interface extends the lifetime of the `install` and `activate` events dispatched on the global scope as part of the service worker lifecycle. 843 + * 844 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent) 845 + */ 846 + declare abstract class ExtendableEvent extends Event { 847 + /** 848 + * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. 849 + * 850 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) 851 + */ 852 + waitUntil(promise: Promise<any>): void; 853 + } 854 + /** 855 + * The **`CustomEvent`** interface represents events initialized by an application for any purpose. 856 + * 857 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) 858 + */ 859 + declare class CustomEvent<T = any> extends Event { 860 + constructor(type: string, init?: CustomEventCustomEventInit); 861 + /** 862 + * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event. 863 + * 864 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) 865 + */ 866 + get detail(): T; 867 + } 868 + interface CustomEventCustomEventInit { 869 + bubbles?: boolean; 870 + cancelable?: boolean; 871 + composed?: boolean; 872 + detail?: any; 873 + } 874 + /** 875 + * 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. 876 + * 877 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) 878 + */ 879 + declare class Blob { 880 + constructor(type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[], options?: BlobOptions); 881 + /** 882 + * The **`size`** read-only property of the Blob interface returns the size of the Blob or File in bytes. 883 + * 884 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) 885 + */ 886 + get size(): number; 887 + /** 888 + * The **`type`** read-only property of the Blob interface returns the MIME type of the file. 889 + * 890 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) 891 + */ 892 + get type(): string; 893 + /** 894 + * 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. 895 + * 896 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) 897 + */ 898 + slice(start?: number, end?: number, type?: string): Blob; 899 + /** 900 + * 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. 901 + * 902 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) 903 + */ 904 + arrayBuffer(): Promise<ArrayBuffer>; 905 + /** 906 + * 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. 907 + * 908 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) 909 + */ 910 + bytes(): Promise<Uint8Array>; 911 + /** 912 + * The **`text()`** method of the string containing the contents of the blob, interpreted as UTF-8. 913 + * 914 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) 915 + */ 916 + text(): Promise<string>; 917 + /** 918 + * The **`stream()`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the `Blob`. 919 + * 920 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) 921 + */ 922 + stream(): ReadableStream; 923 + } 924 + interface BlobOptions { 925 + type?: string; 926 + } 927 + /** 928 + * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content. 929 + * 930 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) 931 + */ 932 + declare class File extends Blob { 933 + constructor(bits: ((ArrayBuffer | ArrayBufferView) | string | Blob)[] | undefined, name: string, options?: FileOptions); 934 + /** 935 + * The **`name`** read-only property of the File interface returns the name of the file represented by a File object. 936 + * 937 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) 938 + */ 939 + get name(): string; 940 + /** 941 + * 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). 942 + * 943 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) 944 + */ 945 + get lastModified(): number; 946 + } 947 + interface FileOptions { 948 + type?: string; 949 + lastModified?: number; 950 + } 951 + /** 952 + * The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache. 953 + * 954 + * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/) 955 + */ 956 + declare abstract class CacheStorage { 957 + /** 958 + * The **`open()`** method of the the Cache object matching the `cacheName`. 959 + * 960 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) 961 + */ 962 + open(cacheName: string): Promise<Cache>; 963 + readonly default: Cache; 964 + } 965 + /** 966 + * The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache. 967 + * 968 + * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/) 969 + */ 970 + declare abstract class Cache { 971 + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/#delete) */ 972 + delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>; 973 + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/#match) */ 974 + match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>; 975 + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/#put) */ 976 + put(request: RequestInfo | URL, response: Response): Promise<void>; 977 + } 978 + interface CacheQueryOptions { 979 + ignoreMethod?: boolean; 980 + } 981 + /** 982 + * The Web Crypto API provides a set of low-level functions for common cryptographic tasks. 983 + * The Workers runtime implements the full surface of this API, but with some differences in 984 + * the [supported algorithms](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/#supported-algorithms) 985 + * compared to those implemented in most browsers. 986 + * 987 + * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/) 988 + */ 989 + declare abstract class Crypto { 990 + /** 991 + * The **`Crypto.subtle`** read-only property returns a cryptographic operations. 992 + * Available only in secure contexts. 993 + * 994 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) 995 + */ 996 + get subtle(): SubtleCrypto; 997 + /** 998 + * The **`Crypto.getRandomValues()`** method lets you get cryptographically strong random values. 999 + * 1000 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) 1001 + */ 1002 + getRandomValues<T extends Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | BigInt64Array | BigUint64Array>(buffer: T): T; 1003 + /** 1004 + * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator. 1005 + * Available only in secure contexts. 1006 + * 1007 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) 1008 + */ 1009 + randomUUID(): string; 1010 + DigestStream: typeof DigestStream; 1011 + } 1012 + /** 1013 + * The **`SubtleCrypto`** interface of the Web Crypto API provides a number of low-level cryptographic functions. 1014 + * Available only in secure contexts. 1015 + * 1016 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto) 1017 + */ 1018 + declare abstract class SubtleCrypto { 1019 + /** 1020 + * The **`encrypt()`** method of the SubtleCrypto interface encrypts data. 1021 + * 1022 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) 1023 + */ 1024 + encrypt(algorithm: string | SubtleCryptoEncryptAlgorithm, key: CryptoKey, plainText: ArrayBuffer | ArrayBufferView): Promise<ArrayBuffer>; 1025 + /** 1026 + * The **`decrypt()`** method of the SubtleCrypto interface decrypts some encrypted data. 1027 + * 1028 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) 1029 + */ 1030 + decrypt(algorithm: string | SubtleCryptoEncryptAlgorithm, key: CryptoKey, cipherText: ArrayBuffer | ArrayBufferView): Promise<ArrayBuffer>; 1031 + /** 1032 + * The **`sign()`** method of the SubtleCrypto interface generates a digital signature. 1033 + * 1034 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) 1035 + */ 1036 + sign(algorithm: string | SubtleCryptoSignAlgorithm, key: CryptoKey, data: ArrayBuffer | ArrayBufferView): Promise<ArrayBuffer>; 1037 + /** 1038 + * The **`verify()`** method of the SubtleCrypto interface verifies a digital signature. 1039 + * 1040 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) 1041 + */ 1042 + verify(algorithm: string | SubtleCryptoSignAlgorithm, key: CryptoKey, signature: ArrayBuffer | ArrayBufferView, data: ArrayBuffer | ArrayBufferView): Promise<boolean>; 1043 + /** 1044 + * The **`digest()`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function. 1045 + * 1046 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) 1047 + */ 1048 + digest(algorithm: string | SubtleCryptoHashAlgorithm, data: ArrayBuffer | ArrayBufferView): Promise<ArrayBuffer>; 1049 + /** 1050 + * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms). 1051 + * 1052 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) 1053 + */ 1054 + generateKey(algorithm: string | SubtleCryptoGenerateKeyAlgorithm, extractable: boolean, keyUsages: string[]): Promise<CryptoKey | CryptoKeyPair>; 1055 + /** 1056 + * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key. 1057 + * 1058 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) 1059 + */ 1060 + deriveKey(algorithm: string | SubtleCryptoDeriveKeyAlgorithm, baseKey: CryptoKey, derivedKeyAlgorithm: string | SubtleCryptoImportKeyAlgorithm, extractable: boolean, keyUsages: string[]): Promise<CryptoKey>; 1061 + /** 1062 + * The **`deriveBits()`** method of the key. 1063 + * 1064 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) 1065 + */ 1066 + deriveBits(algorithm: string | SubtleCryptoDeriveKeyAlgorithm, baseKey: CryptoKey, length?: number | null): Promise<ArrayBuffer>; 1067 + /** 1068 + * 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. 1069 + * 1070 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) 1071 + */ 1072 + importKey(format: string, keyData: (ArrayBuffer | ArrayBufferView) | JsonWebKey, algorithm: string | SubtleCryptoImportKeyAlgorithm, extractable: boolean, keyUsages: string[]): Promise<CryptoKey>; 1073 + /** 1074 + * 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. 1075 + * 1076 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) 1077 + */ 1078 + exportKey(format: string, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>; 1079 + /** 1080 + * The **`wrapKey()`** method of the SubtleCrypto interface 'wraps' a key. 1081 + * 1082 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) 1083 + */ 1084 + wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | SubtleCryptoEncryptAlgorithm): Promise<ArrayBuffer>; 1085 + /** 1086 + * The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key. 1087 + * 1088 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) 1089 + */ 1090 + unwrapKey(format: string, wrappedKey: ArrayBuffer | ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: string | SubtleCryptoEncryptAlgorithm, unwrappedKeyAlgorithm: string | SubtleCryptoImportKeyAlgorithm, extractable: boolean, keyUsages: string[]): Promise<CryptoKey>; 1091 + timingSafeEqual(a: ArrayBuffer | ArrayBufferView, b: ArrayBuffer | ArrayBufferView): boolean; 1092 + } 1093 + /** 1094 + * 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. 1095 + * Available only in secure contexts. 1096 + * 1097 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) 1098 + */ 1099 + declare abstract class CryptoKey { 1100 + /** 1101 + * The read-only **`type`** property of the CryptoKey interface indicates which kind of key is represented by the object. 1102 + * 1103 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) 1104 + */ 1105 + readonly type: string; 1106 + /** 1107 + * The read-only **`extractable`** property of the CryptoKey interface indicates whether or not the key may be extracted using `SubtleCrypto.exportKey()` or `SubtleCrypto.wrapKey()`. 1108 + * 1109 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) 1110 + */ 1111 + readonly extractable: boolean; 1112 + /** 1113 + * 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. 1114 + * 1115 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) 1116 + */ 1117 + readonly algorithm: CryptoKeyKeyAlgorithm | CryptoKeyAesKeyAlgorithm | CryptoKeyHmacKeyAlgorithm | CryptoKeyRsaKeyAlgorithm | CryptoKeyEllipticKeyAlgorithm | CryptoKeyArbitraryKeyAlgorithm; 1118 + /** 1119 + * The read-only **`usages`** property of the CryptoKey interface indicates what can be done with the key. 1120 + * 1121 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) 1122 + */ 1123 + readonly usages: string[]; 1124 + } 1125 + interface CryptoKeyPair { 1126 + publicKey: CryptoKey; 1127 + privateKey: CryptoKey; 1128 + } 1129 + interface JsonWebKey { 1130 + kty: string; 1131 + use?: string; 1132 + key_ops?: string[]; 1133 + alg?: string; 1134 + ext?: boolean; 1135 + crv?: string; 1136 + x?: string; 1137 + y?: string; 1138 + d?: string; 1139 + n?: string; 1140 + e?: string; 1141 + p?: string; 1142 + q?: string; 1143 + dp?: string; 1144 + dq?: string; 1145 + qi?: string; 1146 + oth?: RsaOtherPrimesInfo[]; 1147 + k?: string; 1148 + } 1149 + interface RsaOtherPrimesInfo { 1150 + r?: string; 1151 + d?: string; 1152 + t?: string; 1153 + } 1154 + interface SubtleCryptoDeriveKeyAlgorithm { 1155 + name: string; 1156 + salt?: (ArrayBuffer | ArrayBufferView); 1157 + iterations?: number; 1158 + hash?: (string | SubtleCryptoHashAlgorithm); 1159 + $public?: CryptoKey; 1160 + info?: (ArrayBuffer | ArrayBufferView); 1161 + } 1162 + interface SubtleCryptoEncryptAlgorithm { 1163 + name: string; 1164 + iv?: (ArrayBuffer | ArrayBufferView); 1165 + additionalData?: (ArrayBuffer | ArrayBufferView); 1166 + tagLength?: number; 1167 + counter?: (ArrayBuffer | ArrayBufferView); 1168 + length?: number; 1169 + label?: (ArrayBuffer | ArrayBufferView); 1170 + } 1171 + interface SubtleCryptoGenerateKeyAlgorithm { 1172 + name: string; 1173 + hash?: (string | SubtleCryptoHashAlgorithm); 1174 + modulusLength?: number; 1175 + publicExponent?: (ArrayBuffer | ArrayBufferView); 1176 + length?: number; 1177 + namedCurve?: string; 1178 + } 1179 + interface SubtleCryptoHashAlgorithm { 1180 + name: string; 1181 + } 1182 + interface SubtleCryptoImportKeyAlgorithm { 1183 + name: string; 1184 + hash?: (string | SubtleCryptoHashAlgorithm); 1185 + length?: number; 1186 + namedCurve?: string; 1187 + compressed?: boolean; 1188 + } 1189 + interface SubtleCryptoSignAlgorithm { 1190 + name: string; 1191 + hash?: (string | SubtleCryptoHashAlgorithm); 1192 + dataLength?: number; 1193 + saltLength?: number; 1194 + } 1195 + interface CryptoKeyKeyAlgorithm { 1196 + name: string; 1197 + } 1198 + interface CryptoKeyAesKeyAlgorithm { 1199 + name: string; 1200 + length: number; 1201 + } 1202 + interface CryptoKeyHmacKeyAlgorithm { 1203 + name: string; 1204 + hash: CryptoKeyKeyAlgorithm; 1205 + length: number; 1206 + } 1207 + interface CryptoKeyRsaKeyAlgorithm { 1208 + name: string; 1209 + modulusLength: number; 1210 + publicExponent: ArrayBuffer | ArrayBufferView; 1211 + hash?: CryptoKeyKeyAlgorithm; 1212 + } 1213 + interface CryptoKeyEllipticKeyAlgorithm { 1214 + name: string; 1215 + namedCurve: string; 1216 + } 1217 + interface CryptoKeyArbitraryKeyAlgorithm { 1218 + name: string; 1219 + hash?: CryptoKeyKeyAlgorithm; 1220 + namedCurve?: string; 1221 + length?: number; 1222 + } 1223 + declare class DigestStream extends WritableStream<ArrayBuffer | ArrayBufferView> { 1224 + constructor(algorithm: string | SubtleCryptoHashAlgorithm); 1225 + readonly digest: Promise<ArrayBuffer>; 1226 + get bytesWritten(): number | bigint; 1227 + } 1228 + /** 1229 + * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc. 1230 + * 1231 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder) 1232 + */ 1233 + declare class TextDecoder { 1234 + constructor(label?: string, options?: TextDecoderConstructorOptions); 1235 + /** 1236 + * The **`TextDecoder.decode()`** method returns a string containing text decoded from the buffer passed as a parameter. 1237 + * 1238 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode) 1239 + */ 1240 + decode(input?: (ArrayBuffer | ArrayBufferView), options?: TextDecoderDecodeOptions): string; 1241 + get encoding(): string; 1242 + get fatal(): boolean; 1243 + get ignoreBOM(): boolean; 1244 + } 1245 + /** 1246 + * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes. 1247 + * 1248 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder) 1249 + */ 1250 + declare class TextEncoder { 1251 + constructor(); 1252 + /** 1253 + * 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. 1254 + * 1255 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode) 1256 + */ 1257 + encode(input?: string): Uint8Array; 1258 + /** 1259 + * 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. 1260 + * 1261 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto) 1262 + */ 1263 + encodeInto(input: string, buffer: Uint8Array): TextEncoderEncodeIntoResult; 1264 + get encoding(): string; 1265 + } 1266 + interface TextDecoderConstructorOptions { 1267 + fatal: boolean; 1268 + ignoreBOM: boolean; 1269 + } 1270 + interface TextDecoderDecodeOptions { 1271 + stream: boolean; 1272 + } 1273 + interface TextEncoderEncodeIntoResult { 1274 + read: number; 1275 + written: number; 1276 + } 1277 + /** 1278 + * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files. 1279 + * 1280 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) 1281 + */ 1282 + declare class ErrorEvent extends Event { 1283 + constructor(type: string, init?: ErrorEventErrorEventInit); 1284 + /** 1285 + * The **`filename`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred. 1286 + * 1287 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) 1288 + */ 1289 + get filename(): string; 1290 + /** 1291 + * The **`message`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem. 1292 + * 1293 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) 1294 + */ 1295 + get message(): string; 1296 + /** 1297 + * 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. 1298 + * 1299 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) 1300 + */ 1301 + get lineno(): number; 1302 + /** 1303 + * 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. 1304 + * 1305 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) 1306 + */ 1307 + get colno(): number; 1308 + /** 1309 + * 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. 1310 + * 1311 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) 1312 + */ 1313 + get error(): any; 1314 + } 1315 + interface ErrorEventErrorEventInit { 1316 + message?: string; 1317 + filename?: string; 1318 + lineno?: number; 1319 + colno?: number; 1320 + error?: any; 1321 + } 1322 + /** 1323 + * The **`MessageEvent`** interface represents a message received by a target object. 1324 + * 1325 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent) 1326 + */ 1327 + declare class MessageEvent extends Event { 1328 + constructor(type: string, initializer: MessageEventInit); 1329 + /** 1330 + * 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. 1331 + * 1332 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data) 1333 + */ 1334 + readonly data: any; 1335 + /** 1336 + * The **`origin`** read-only property of the origin of the message emitter. 1337 + * 1338 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin) 1339 + */ 1340 + readonly origin: string | null; 1341 + /** 1342 + * The **`lastEventId`** read-only property of the unique ID for the event. 1343 + * 1344 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId) 1345 + */ 1346 + readonly lastEventId: string; 1347 + /** 1348 + * The **`source`** read-only property of the a WindowProxy, MessagePort, or a `MessageEventSource` (which can be a WindowProxy, message emitter. 1349 + * 1350 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source) 1351 + */ 1352 + readonly source: MessagePort | null; 1353 + /** 1354 + * The **`ports`** read-only property of the containing all MessagePort objects sent with the message, in order. 1355 + * 1356 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports) 1357 + */ 1358 + readonly ports: MessagePort[]; 1359 + } 1360 + interface MessageEventInit { 1361 + data: ArrayBuffer | string; 1362 + } 1363 + /** 1364 + * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. 1365 + * 1366 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) 1367 + */ 1368 + declare abstract class PromiseRejectionEvent extends Event { 1369 + /** 1370 + * The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript rejected. 1371 + * 1372 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) 1373 + */ 1374 + readonly promise: Promise<any>; 1375 + /** 1376 + * The PromiseRejectionEvent **`reason`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject(). 1377 + * 1378 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) 1379 + */ 1380 + readonly reason: any; 1381 + } 1382 + /** 1383 + * 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. 1384 + * 1385 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) 1386 + */ 1387 + declare class FormData { 1388 + constructor(); 1389 + /** 1390 + * 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. 1391 + * 1392 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) 1393 + */ 1394 + append(name: string, value: string | Blob): void; 1395 + /** 1396 + * 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. 1397 + * 1398 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) 1399 + */ 1400 + append(name: string, value: string): void; 1401 + /** 1402 + * 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. 1403 + * 1404 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) 1405 + */ 1406 + append(name: string, value: Blob, filename?: string): void; 1407 + /** 1408 + * The **`delete()`** method of the FormData interface deletes a key and its value(s) from a `FormData` object. 1409 + * 1410 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) 1411 + */ 1412 + delete(name: string): void; 1413 + /** 1414 + * The **`get()`** method of the FormData interface returns the first value associated with a given key from within a `FormData` object. 1415 + * 1416 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) 1417 + */ 1418 + get(name: string): (File | string) | null; 1419 + /** 1420 + * The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a `FormData` object. 1421 + * 1422 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) 1423 + */ 1424 + getAll(name: string): (File | string)[]; 1425 + /** 1426 + * The **`has()`** method of the FormData interface returns whether a `FormData` object contains a certain key. 1427 + * 1428 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) 1429 + */ 1430 + has(name: string): boolean; 1431 + /** 1432 + * 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. 1433 + * 1434 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) 1435 + */ 1436 + set(name: string, value: string | Blob): void; 1437 + /** 1438 + * 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. 1439 + * 1440 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) 1441 + */ 1442 + set(name: string, value: string): void; 1443 + /** 1444 + * 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. 1445 + * 1446 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) 1447 + */ 1448 + set(name: string, value: Blob, filename?: string): void; 1449 + /* Returns an array of key, value pairs for every entry in the list. */ 1450 + entries(): IterableIterator<[ 1451 + key: string, 1452 + value: File | string 1453 + ]>; 1454 + /* Returns a list of keys in the list. */ 1455 + keys(): IterableIterator<string>; 1456 + /* Returns a list of values in the list. */ 1457 + values(): IterableIterator<(File | string)>; 1458 + forEach<This = unknown>(callback: (this: This, value: File | string, key: string, parent: FormData) => void, thisArg?: This): void; 1459 + [Symbol.iterator](): IterableIterator<[ 1460 + key: string, 1461 + value: File | string 1462 + ]>; 1463 + } 1464 + interface ContentOptions { 1465 + html?: boolean; 1466 + } 1467 + declare class HTMLRewriter { 1468 + constructor(); 1469 + on(selector: string, handlers: HTMLRewriterElementContentHandlers): HTMLRewriter; 1470 + onDocument(handlers: HTMLRewriterDocumentContentHandlers): HTMLRewriter; 1471 + transform(response: Response): Response; 1472 + } 1473 + interface HTMLRewriterElementContentHandlers { 1474 + element?(element: Element): void | Promise<void>; 1475 + comments?(comment: Comment): void | Promise<void>; 1476 + text?(element: Text): void | Promise<void>; 1477 + } 1478 + interface HTMLRewriterDocumentContentHandlers { 1479 + doctype?(doctype: Doctype): void | Promise<void>; 1480 + comments?(comment: Comment): void | Promise<void>; 1481 + text?(text: Text): void | Promise<void>; 1482 + end?(end: DocumentEnd): void | Promise<void>; 1483 + } 1484 + interface Doctype { 1485 + readonly name: string | null; 1486 + readonly publicId: string | null; 1487 + readonly systemId: string | null; 1488 + } 1489 + interface Element { 1490 + tagName: string; 1491 + readonly attributes: IterableIterator<string[]>; 1492 + readonly removed: boolean; 1493 + readonly namespaceURI: string; 1494 + getAttribute(name: string): string | null; 1495 + hasAttribute(name: string): boolean; 1496 + setAttribute(name: string, value: string): Element; 1497 + removeAttribute(name: string): Element; 1498 + before(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1499 + after(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1500 + prepend(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1501 + append(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1502 + replace(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1503 + remove(): Element; 1504 + removeAndKeepContent(): Element; 1505 + setInnerContent(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1506 + onEndTag(handler: (tag: EndTag) => void | Promise<void>): void; 1507 + } 1508 + interface EndTag { 1509 + name: string; 1510 + before(content: string | ReadableStream | Response, options?: ContentOptions): EndTag; 1511 + after(content: string | ReadableStream | Response, options?: ContentOptions): EndTag; 1512 + remove(): EndTag; 1513 + } 1514 + interface Comment { 1515 + text: string; 1516 + readonly removed: boolean; 1517 + before(content: string, options?: ContentOptions): Comment; 1518 + after(content: string, options?: ContentOptions): Comment; 1519 + replace(content: string, options?: ContentOptions): Comment; 1520 + remove(): Comment; 1521 + } 1522 + interface Text { 1523 + readonly text: string; 1524 + readonly lastInTextNode: boolean; 1525 + readonly removed: boolean; 1526 + before(content: string | ReadableStream | Response, options?: ContentOptions): Text; 1527 + after(content: string | ReadableStream | Response, options?: ContentOptions): Text; 1528 + replace(content: string | ReadableStream | Response, options?: ContentOptions): Text; 1529 + remove(): Text; 1530 + } 1531 + interface DocumentEnd { 1532 + append(content: string, options?: ContentOptions): DocumentEnd; 1533 + } 1534 + /** 1535 + * This is the event type for `fetch` events dispatched on the ServiceWorkerGlobalScope. 1536 + * 1537 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent) 1538 + */ 1539 + declare abstract class FetchEvent extends ExtendableEvent { 1540 + /** 1541 + * The **`request`** read-only property of the the event handler. 1542 + * 1543 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) 1544 + */ 1545 + readonly request: Request; 1546 + /** 1547 + * The **`respondWith()`** method of allows you to provide a promise for a Response yourself. 1548 + * 1549 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) 1550 + */ 1551 + respondWith(promise: Response | Promise<Response>): void; 1552 + passThroughOnException(): void; 1553 + } 1554 + type HeadersInit = Headers | Iterable<Iterable<string>> | Record<string, string>; 1555 + /** 1556 + * The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers. 1557 + * 1558 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers) 1559 + */ 1560 + declare class Headers { 1561 + constructor(init?: HeadersInit); 1562 + /** 1563 + * 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. 1564 + * 1565 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) 1566 + */ 1567 + get(name: string): string | null; 1568 + getAll(name: string): string[]; 1569 + /** 1570 + * The **`getSetCookie()`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response. 1571 + * 1572 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) 1573 + */ 1574 + getSetCookie(): string[]; 1575 + /** 1576 + * The **`has()`** method of the Headers interface returns a boolean stating whether a `Headers` object contains a certain header. 1577 + * 1578 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) 1579 + */ 1580 + has(name: string): boolean; 1581 + /** 1582 + * 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. 1583 + * 1584 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) 1585 + */ 1586 + set(name: string, value: string): void; 1587 + /** 1588 + * 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. 1589 + * 1590 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) 1591 + */ 1592 + append(name: string, value: string): void; 1593 + /** 1594 + * The **`delete()`** method of the Headers interface deletes a header from the current `Headers` object. 1595 + * 1596 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) 1597 + */ 1598 + delete(name: string): void; 1599 + forEach<This = unknown>(callback: (this: This, value: string, key: string, parent: Headers) => void, thisArg?: This): void; 1600 + /* Returns an iterator allowing to go through all key/value pairs contained in this object. */ 1601 + entries(): IterableIterator<[ 1602 + key: string, 1603 + value: string 1604 + ]>; 1605 + /* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ 1606 + keys(): IterableIterator<string>; 1607 + /* Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ 1608 + values(): IterableIterator<string>; 1609 + [Symbol.iterator](): IterableIterator<[ 1610 + key: string, 1611 + value: string 1612 + ]>; 1613 + } 1614 + type BodyInit = ReadableStream<Uint8Array> | string | ArrayBuffer | ArrayBufferView | Blob | URLSearchParams | FormData; 1615 + declare abstract class Body { 1616 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ 1617 + get body(): ReadableStream | null; 1618 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ 1619 + get bodyUsed(): boolean; 1620 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ 1621 + arrayBuffer(): Promise<ArrayBuffer>; 1622 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */ 1623 + bytes(): Promise<Uint8Array>; 1624 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ 1625 + text(): Promise<string>; 1626 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ 1627 + json<T>(): Promise<T>; 1628 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ 1629 + formData(): Promise<FormData>; 1630 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ 1631 + blob(): Promise<Blob>; 1632 + } 1633 + /** 1634 + * The **`Response`** interface of the Fetch API represents the response to a request. 1635 + * 1636 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response) 1637 + */ 1638 + declare var Response: { 1639 + prototype: Response; 1640 + new (body?: BodyInit | null, init?: ResponseInit): Response; 1641 + error(): Response; 1642 + redirect(url: string, status?: number): Response; 1643 + json(any: any, maybeInit?: (ResponseInit | Response)): Response; 1644 + }; 1645 + /** 1646 + * The **`Response`** interface of the Fetch API represents the response to a request. 1647 + * 1648 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response) 1649 + */ 1650 + interface Response extends Body { 1651 + /** 1652 + * The **`clone()`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable. 1653 + * 1654 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) 1655 + */ 1656 + clone(): Response; 1657 + /** 1658 + * The **`status`** read-only property of the Response interface contains the HTTP status codes of the response. 1659 + * 1660 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) 1661 + */ 1662 + status: number; 1663 + /** 1664 + * The **`statusText`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status. 1665 + * 1666 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) 1667 + */ 1668 + statusText: string; 1669 + /** 1670 + * The **`headers`** read-only property of the with the response. 1671 + * 1672 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) 1673 + */ 1674 + headers: Headers; 1675 + /** 1676 + * 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. 1677 + * 1678 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) 1679 + */ 1680 + ok: boolean; 1681 + /** 1682 + * 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. 1683 + * 1684 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) 1685 + */ 1686 + redirected: boolean; 1687 + /** 1688 + * The **`url`** read-only property of the Response interface contains the URL of the response. 1689 + * 1690 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) 1691 + */ 1692 + url: string; 1693 + webSocket: WebSocket | null; 1694 + cf: any | undefined; 1695 + /** 1696 + * The **`type`** read-only property of the Response interface contains the type of the response. 1697 + * 1698 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) 1699 + */ 1700 + type: "default" | "error"; 1701 + } 1702 + interface ResponseInit { 1703 + status?: number; 1704 + statusText?: string; 1705 + headers?: HeadersInit; 1706 + cf?: any; 1707 + webSocket?: (WebSocket | null); 1708 + encodeBody?: "automatic" | "manual"; 1709 + } 1710 + type RequestInfo<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> = Request<CfHostMetadata, Cf> | string; 1711 + /** 1712 + * The **`Request`** interface of the Fetch API represents a resource request. 1713 + * 1714 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request) 1715 + */ 1716 + declare var Request: { 1717 + prototype: Request; 1718 + new <CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>(input: RequestInfo<CfProperties> | URL, init?: RequestInit<Cf>): Request<CfHostMetadata, Cf>; 1719 + }; 1720 + /** 1721 + * The **`Request`** interface of the Fetch API represents a resource request. 1722 + * 1723 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request) 1724 + */ 1725 + interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> extends Body { 1726 + /** 1727 + * The **`clone()`** method of the Request interface creates a copy of the current `Request` object. 1728 + * 1729 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) 1730 + */ 1731 + clone(): Request<CfHostMetadata, Cf>; 1732 + /** 1733 + * The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request. 1734 + * 1735 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method) 1736 + */ 1737 + method: string; 1738 + /** 1739 + * The **`url`** read-only property of the Request interface contains the URL of the request. 1740 + * 1741 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url) 1742 + */ 1743 + url: string; 1744 + /** 1745 + * The **`headers`** read-only property of the with the request. 1746 + * 1747 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers) 1748 + */ 1749 + headers: Headers; 1750 + /** 1751 + * The **`redirect`** read-only property of the Request interface contains the mode for how redirects are handled. 1752 + * 1753 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect) 1754 + */ 1755 + redirect: string; 1756 + fetcher: Fetcher | null; 1757 + /** 1758 + * The read-only **`signal`** property of the Request interface returns the AbortSignal associated with the request. 1759 + * 1760 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal) 1761 + */ 1762 + signal: AbortSignal; 1763 + cf?: Cf; 1764 + /** 1765 + * The **`integrity`** read-only property of the Request interface contains the subresource integrity value of the request. 1766 + * 1767 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity) 1768 + */ 1769 + integrity: string; 1770 + /** 1771 + * 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. 1772 + * 1773 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive) 1774 + */ 1775 + keepalive: boolean; 1776 + /** 1777 + * The **`cache`** read-only property of the Request interface contains the cache mode of the request. 1778 + * 1779 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache) 1780 + */ 1781 + cache?: "no-store" | "no-cache"; 1782 + } 1783 + interface RequestInit<Cf = CfProperties> { 1784 + /* A string to set request's method. */ 1785 + method?: string; 1786 + /* A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ 1787 + headers?: HeadersInit; 1788 + /* A BodyInit object or null to set request's body. */ 1789 + body?: BodyInit | null; 1790 + /* 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. */ 1791 + redirect?: string; 1792 + fetcher?: (Fetcher | null); 1793 + cf?: Cf; 1794 + /* A string indicating how the request will interact with the browser's cache to set request's cache. */ 1795 + cache?: "no-store" | "no-cache"; 1796 + /* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ 1797 + integrity?: string; 1798 + /* An AbortSignal to set request's signal. */ 1799 + signal?: (AbortSignal | null); 1800 + encodeResponseBody?: "automatic" | "manual"; 1801 + } 1802 + type Service<T extends (new (...args: any[]) => Rpc.WorkerEntrypointBranded) | Rpc.WorkerEntrypointBranded | ExportedHandler<any, any, any> | undefined = undefined> = T extends new (...args: any[]) => Rpc.WorkerEntrypointBranded ? Fetcher<InstanceType<T>> : T extends Rpc.WorkerEntrypointBranded ? Fetcher<T> : T extends Exclude<Rpc.EntrypointBranded, Rpc.WorkerEntrypointBranded> ? never : Fetcher<undefined>; 1803 + type Fetcher<T extends Rpc.EntrypointBranded | undefined = undefined, Reserved extends string = never> = (T extends Rpc.EntrypointBranded ? Rpc.Provider<T, Reserved | "fetch" | "connect"> : unknown) & { 1804 + fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; 1805 + connect(address: SocketAddress | string, options?: SocketOptions): Socket; 1806 + }; 1807 + interface KVNamespaceListKey<Metadata, Key extends string = string> { 1808 + name: Key; 1809 + expiration?: number; 1810 + metadata?: Metadata; 1811 + } 1812 + type KVNamespaceListResult<Metadata, Key extends string = string> = { 1813 + list_complete: false; 1814 + keys: KVNamespaceListKey<Metadata, Key>[]; 1815 + cursor: string; 1816 + cacheStatus: string | null; 1817 + } | { 1818 + list_complete: true; 1819 + keys: KVNamespaceListKey<Metadata, Key>[]; 1820 + cacheStatus: string | null; 1821 + }; 1822 + interface KVNamespace<Key extends string = string> { 1823 + get(key: Key, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<string | null>; 1824 + get(key: Key, type: "text"): Promise<string | null>; 1825 + get<ExpectedValue = unknown>(key: Key, type: "json"): Promise<ExpectedValue | null>; 1826 + get(key: Key, type: "arrayBuffer"): Promise<ArrayBuffer | null>; 1827 + get(key: Key, type: "stream"): Promise<ReadableStream | null>; 1828 + get(key: Key, options?: KVNamespaceGetOptions<"text">): Promise<string | null>; 1829 + get<ExpectedValue = unknown>(key: Key, options?: KVNamespaceGetOptions<"json">): Promise<ExpectedValue | null>; 1830 + get(key: Key, options?: KVNamespaceGetOptions<"arrayBuffer">): Promise<ArrayBuffer | null>; 1831 + get(key: Key, options?: KVNamespaceGetOptions<"stream">): Promise<ReadableStream | null>; 1832 + get(key: Array<Key>, type: "text"): Promise<Map<string, string | null>>; 1833 + get<ExpectedValue = unknown>(key: Array<Key>, type: "json"): Promise<Map<string, ExpectedValue | null>>; 1834 + get(key: Array<Key>, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<Map<string, string | null>>; 1835 + get(key: Array<Key>, options?: KVNamespaceGetOptions<"text">): Promise<Map<string, string | null>>; 1836 + get<ExpectedValue = unknown>(key: Array<Key>, options?: KVNamespaceGetOptions<"json">): Promise<Map<string, ExpectedValue | null>>; 1837 + list<Metadata = unknown>(options?: KVNamespaceListOptions): Promise<KVNamespaceListResult<Metadata, Key>>; 1838 + put(key: Key, value: string | ArrayBuffer | ArrayBufferView | ReadableStream, options?: KVNamespacePutOptions): Promise<void>; 1839 + getWithMetadata<Metadata = unknown>(key: Key, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>; 1840 + getWithMetadata<Metadata = unknown>(key: Key, type: "text"): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>; 1841 + getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Key, type: "json"): Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>; 1842 + getWithMetadata<Metadata = unknown>(key: Key, type: "arrayBuffer"): Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer, Metadata>>; 1843 + getWithMetadata<Metadata = unknown>(key: Key, type: "stream"): Promise<KVNamespaceGetWithMetadataResult<ReadableStream, Metadata>>; 1844 + getWithMetadata<Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"text">): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>; 1845 + getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"json">): Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>; 1846 + getWithMetadata<Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"arrayBuffer">): Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer, Metadata>>; 1847 + getWithMetadata<Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"stream">): Promise<KVNamespaceGetWithMetadataResult<ReadableStream, Metadata>>; 1848 + getWithMetadata<Metadata = unknown>(key: Array<Key>, type: "text"): Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>; 1849 + getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Array<Key>, type: "json"): Promise<Map<string, KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>>; 1850 + getWithMetadata<Metadata = unknown>(key: Array<Key>, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>; 1851 + getWithMetadata<Metadata = unknown>(key: Array<Key>, options?: KVNamespaceGetOptions<"text">): Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>; 1852 + getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Array<Key>, options?: KVNamespaceGetOptions<"json">): Promise<Map<string, KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>>; 1853 + delete(key: Key): Promise<void>; 1854 + } 1855 + interface KVNamespaceListOptions { 1856 + limit?: number; 1857 + prefix?: (string | null); 1858 + cursor?: (string | null); 1859 + } 1860 + interface KVNamespaceGetOptions<Type> { 1861 + type: Type; 1862 + cacheTtl?: number; 1863 + } 1864 + interface KVNamespacePutOptions { 1865 + expiration?: number; 1866 + expirationTtl?: number; 1867 + metadata?: (any | null); 1868 + } 1869 + interface KVNamespaceGetWithMetadataResult<Value, Metadata> { 1870 + value: Value | null; 1871 + metadata: Metadata | null; 1872 + cacheStatus: string | null; 1873 + } 1874 + type QueueContentType = "text" | "bytes" | "json" | "v8"; 1875 + interface Queue<Body = unknown> { 1876 + send(message: Body, options?: QueueSendOptions): Promise<void>; 1877 + sendBatch(messages: Iterable<MessageSendRequest<Body>>, options?: QueueSendBatchOptions): Promise<void>; 1878 + } 1879 + interface QueueSendOptions { 1880 + contentType?: QueueContentType; 1881 + delaySeconds?: number; 1882 + } 1883 + interface QueueSendBatchOptions { 1884 + delaySeconds?: number; 1885 + } 1886 + interface MessageSendRequest<Body = unknown> { 1887 + body: Body; 1888 + contentType?: QueueContentType; 1889 + delaySeconds?: number; 1890 + } 1891 + interface QueueRetryOptions { 1892 + delaySeconds?: number; 1893 + } 1894 + interface Message<Body = unknown> { 1895 + readonly id: string; 1896 + readonly timestamp: Date; 1897 + readonly body: Body; 1898 + readonly attempts: number; 1899 + retry(options?: QueueRetryOptions): void; 1900 + ack(): void; 1901 + } 1902 + interface QueueEvent<Body = unknown> extends ExtendableEvent { 1903 + readonly messages: readonly Message<Body>[]; 1904 + readonly queue: string; 1905 + retryAll(options?: QueueRetryOptions): void; 1906 + ackAll(): void; 1907 + } 1908 + interface MessageBatch<Body = unknown> { 1909 + readonly messages: readonly Message<Body>[]; 1910 + readonly queue: string; 1911 + retryAll(options?: QueueRetryOptions): void; 1912 + ackAll(): void; 1913 + } 1914 + interface R2Error extends Error { 1915 + readonly name: string; 1916 + readonly code: number; 1917 + readonly message: string; 1918 + readonly action: string; 1919 + readonly stack: any; 1920 + } 1921 + interface R2ListOptions { 1922 + limit?: number; 1923 + prefix?: string; 1924 + cursor?: string; 1925 + delimiter?: string; 1926 + startAfter?: string; 1927 + include?: ("httpMetadata" | "customMetadata")[]; 1928 + } 1929 + declare abstract class R2Bucket { 1930 + head(key: string): Promise<R2Object | null>; 1931 + get(key: string, options: R2GetOptions & { 1932 + onlyIf: R2Conditional | Headers; 1933 + }): Promise<R2ObjectBody | R2Object | null>; 1934 + get(key: string, options?: R2GetOptions): Promise<R2ObjectBody | null>; 1935 + put(key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOptions & { 1936 + onlyIf: R2Conditional | Headers; 1937 + }): Promise<R2Object | null>; 1938 + put(key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOptions): Promise<R2Object>; 1939 + createMultipartUpload(key: string, options?: R2MultipartOptions): Promise<R2MultipartUpload>; 1940 + resumeMultipartUpload(key: string, uploadId: string): R2MultipartUpload; 1941 + delete(keys: string | string[]): Promise<void>; 1942 + list(options?: R2ListOptions): Promise<R2Objects>; 1943 + } 1944 + interface R2MultipartUpload { 1945 + readonly key: string; 1946 + readonly uploadId: string; 1947 + uploadPart(partNumber: number, value: ReadableStream | (ArrayBuffer | ArrayBufferView) | string | Blob, options?: R2UploadPartOptions): Promise<R2UploadedPart>; 1948 + abort(): Promise<void>; 1949 + complete(uploadedParts: R2UploadedPart[]): Promise<R2Object>; 1950 + } 1951 + interface R2UploadedPart { 1952 + partNumber: number; 1953 + etag: string; 1954 + } 1955 + declare abstract class R2Object { 1956 + readonly key: string; 1957 + readonly version: string; 1958 + readonly size: number; 1959 + readonly etag: string; 1960 + readonly httpEtag: string; 1961 + readonly checksums: R2Checksums; 1962 + readonly uploaded: Date; 1963 + readonly httpMetadata?: R2HTTPMetadata; 1964 + readonly customMetadata?: Record<string, string>; 1965 + readonly range?: R2Range; 1966 + readonly storageClass: string; 1967 + readonly ssecKeyMd5?: string; 1968 + writeHttpMetadata(headers: Headers): void; 1969 + } 1970 + interface R2ObjectBody extends R2Object { 1971 + get body(): ReadableStream; 1972 + get bodyUsed(): boolean; 1973 + arrayBuffer(): Promise<ArrayBuffer>; 1974 + bytes(): Promise<Uint8Array>; 1975 + text(): Promise<string>; 1976 + json<T>(): Promise<T>; 1977 + blob(): Promise<Blob>; 1978 + } 1979 + type R2Range = { 1980 + offset: number; 1981 + length?: number; 1982 + } | { 1983 + offset?: number; 1984 + length: number; 1985 + } | { 1986 + suffix: number; 1987 + }; 1988 + interface R2Conditional { 1989 + etagMatches?: string; 1990 + etagDoesNotMatch?: string; 1991 + uploadedBefore?: Date; 1992 + uploadedAfter?: Date; 1993 + secondsGranularity?: boolean; 1994 + } 1995 + interface R2GetOptions { 1996 + onlyIf?: (R2Conditional | Headers); 1997 + range?: (R2Range | Headers); 1998 + ssecKey?: (ArrayBuffer | string); 1999 + } 2000 + interface R2PutOptions { 2001 + onlyIf?: (R2Conditional | Headers); 2002 + httpMetadata?: (R2HTTPMetadata | Headers); 2003 + customMetadata?: Record<string, string>; 2004 + md5?: ((ArrayBuffer | ArrayBufferView) | string); 2005 + sha1?: ((ArrayBuffer | ArrayBufferView) | string); 2006 + sha256?: ((ArrayBuffer | ArrayBufferView) | string); 2007 + sha384?: ((ArrayBuffer | ArrayBufferView) | string); 2008 + sha512?: ((ArrayBuffer | ArrayBufferView) | string); 2009 + storageClass?: string; 2010 + ssecKey?: (ArrayBuffer | string); 2011 + } 2012 + interface R2MultipartOptions { 2013 + httpMetadata?: (R2HTTPMetadata | Headers); 2014 + customMetadata?: Record<string, string>; 2015 + storageClass?: string; 2016 + ssecKey?: (ArrayBuffer | string); 2017 + } 2018 + interface R2Checksums { 2019 + readonly md5?: ArrayBuffer; 2020 + readonly sha1?: ArrayBuffer; 2021 + readonly sha256?: ArrayBuffer; 2022 + readonly sha384?: ArrayBuffer; 2023 + readonly sha512?: ArrayBuffer; 2024 + toJSON(): R2StringChecksums; 2025 + } 2026 + interface R2StringChecksums { 2027 + md5?: string; 2028 + sha1?: string; 2029 + sha256?: string; 2030 + sha384?: string; 2031 + sha512?: string; 2032 + } 2033 + interface R2HTTPMetadata { 2034 + contentType?: string; 2035 + contentLanguage?: string; 2036 + contentDisposition?: string; 2037 + contentEncoding?: string; 2038 + cacheControl?: string; 2039 + cacheExpiry?: Date; 2040 + } 2041 + type R2Objects = { 2042 + objects: R2Object[]; 2043 + delimitedPrefixes: string[]; 2044 + } & ({ 2045 + truncated: true; 2046 + cursor: string; 2047 + } | { 2048 + truncated: false; 2049 + }); 2050 + interface R2UploadPartOptions { 2051 + ssecKey?: (ArrayBuffer | string); 2052 + } 2053 + declare abstract class ScheduledEvent extends ExtendableEvent { 2054 + readonly scheduledTime: number; 2055 + readonly cron: string; 2056 + noRetry(): void; 2057 + } 2058 + interface ScheduledController { 2059 + readonly scheduledTime: number; 2060 + readonly cron: string; 2061 + noRetry(): void; 2062 + } 2063 + interface QueuingStrategy<T = any> { 2064 + highWaterMark?: (number | bigint); 2065 + size?: (chunk: T) => number | bigint; 2066 + } 2067 + interface UnderlyingSink<W = any> { 2068 + type?: string; 2069 + start?: (controller: WritableStreamDefaultController) => void | Promise<void>; 2070 + write?: (chunk: W, controller: WritableStreamDefaultController) => void | Promise<void>; 2071 + abort?: (reason: any) => void | Promise<void>; 2072 + close?: () => void | Promise<void>; 2073 + } 2074 + interface UnderlyingByteSource { 2075 + type: "bytes"; 2076 + autoAllocateChunkSize?: number; 2077 + start?: (controller: ReadableByteStreamController) => void | Promise<void>; 2078 + pull?: (controller: ReadableByteStreamController) => void | Promise<void>; 2079 + cancel?: (reason: any) => void | Promise<void>; 2080 + } 2081 + interface UnderlyingSource<R = any> { 2082 + type?: "" | undefined; 2083 + start?: (controller: ReadableStreamDefaultController<R>) => void | Promise<void>; 2084 + pull?: (controller: ReadableStreamDefaultController<R>) => void | Promise<void>; 2085 + cancel?: (reason: any) => void | Promise<void>; 2086 + expectedLength?: (number | bigint); 2087 + } 2088 + interface Transformer<I = any, O = any> { 2089 + readableType?: string; 2090 + writableType?: string; 2091 + start?: (controller: TransformStreamDefaultController<O>) => void | Promise<void>; 2092 + transform?: (chunk: I, controller: TransformStreamDefaultController<O>) => void | Promise<void>; 2093 + flush?: (controller: TransformStreamDefaultController<O>) => void | Promise<void>; 2094 + cancel?: (reason: any) => void | Promise<void>; 2095 + expectedLength?: number; 2096 + } 2097 + interface StreamPipeOptions { 2098 + preventAbort?: boolean; 2099 + preventCancel?: boolean; 2100 + /** 2101 + * 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. 2102 + * 2103 + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. 2104 + * 2105 + * Errors and closures of the source and destination streams propagate as follows: 2106 + * 2107 + * 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. 2108 + * 2109 + * 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. 2110 + * 2111 + * 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. 2112 + * 2113 + * 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. 2114 + * 2115 + * 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. 2116 + */ 2117 + preventClose?: boolean; 2118 + signal?: AbortSignal; 2119 + } 2120 + type ReadableStreamReadResult<R = any> = { 2121 + done: false; 2122 + value: R; 2123 + } | { 2124 + done: true; 2125 + value?: undefined; 2126 + }; 2127 + /** 2128 + * The `ReadableStream` interface of the Streams API represents a readable stream of byte data. 2129 + * 2130 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) 2131 + */ 2132 + interface ReadableStream<R = any> { 2133 + /** 2134 + * The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader. 2135 + * 2136 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) 2137 + */ 2138 + get locked(): boolean; 2139 + /** 2140 + * The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled. 2141 + * 2142 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) 2143 + */ 2144 + cancel(reason?: any): Promise<void>; 2145 + /** 2146 + * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. 2147 + * 2148 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) 2149 + */ 2150 + getReader(): ReadableStreamDefaultReader<R>; 2151 + /** 2152 + * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. 2153 + * 2154 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) 2155 + */ 2156 + getReader(options: ReadableStreamGetReaderOptions): ReadableStreamBYOBReader; 2157 + /** 2158 + * 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. 2159 + * 2160 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) 2161 + */ 2162 + pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>; 2163 + /** 2164 + * 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. 2165 + * 2166 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) 2167 + */ 2168 + pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>; 2169 + /** 2170 + * The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances. 2171 + * 2172 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) 2173 + */ 2174 + tee(): [ 2175 + ReadableStream<R>, 2176 + ReadableStream<R> 2177 + ]; 2178 + values(options?: ReadableStreamValuesOptions): AsyncIterableIterator<R>; 2179 + [Symbol.asyncIterator](options?: ReadableStreamValuesOptions): AsyncIterableIterator<R>; 2180 + } 2181 + /** 2182 + * The `ReadableStream` interface of the Streams API represents a readable stream of byte data. 2183 + * 2184 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) 2185 + */ 2186 + declare const ReadableStream: { 2187 + prototype: ReadableStream; 2188 + new (underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy<Uint8Array>): ReadableStream<Uint8Array>; 2189 + new <R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; 2190 + }; 2191 + /** 2192 + * 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). 2193 + * 2194 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) 2195 + */ 2196 + declare class ReadableStreamDefaultReader<R = any> { 2197 + constructor(stream: ReadableStream); 2198 + get closed(): Promise<void>; 2199 + cancel(reason?: any): Promise<void>; 2200 + /** 2201 + * The **`read()`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue. 2202 + * 2203 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) 2204 + */ 2205 + read(): Promise<ReadableStreamReadResult<R>>; 2206 + /** 2207 + * The **`releaseLock()`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream. 2208 + * 2209 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) 2210 + */ 2211 + releaseLock(): void; 2212 + } 2213 + /** 2214 + * The `ReadableStreamBYOBReader` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source. 2215 + * 2216 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) 2217 + */ 2218 + declare class ReadableStreamBYOBReader { 2219 + constructor(stream: ReadableStream); 2220 + get closed(): Promise<void>; 2221 + cancel(reason?: any): Promise<void>; 2222 + /** 2223 + * 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. 2224 + * 2225 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) 2226 + */ 2227 + read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>; 2228 + /** 2229 + * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream. 2230 + * 2231 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) 2232 + */ 2233 + releaseLock(): void; 2234 + readAtLeast<T extends ArrayBufferView>(minElements: number, view: T): Promise<ReadableStreamReadResult<T>>; 2235 + } 2236 + interface ReadableStreamBYOBReaderReadableStreamBYOBReaderReadOptions { 2237 + min?: number; 2238 + } 2239 + interface ReadableStreamGetReaderOptions { 2240 + /** 2241 + * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. 2242 + * 2243 + * 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. 2244 + */ 2245 + mode: "byob"; 2246 + } 2247 + /** 2248 + * 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). 2249 + * 2250 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) 2251 + */ 2252 + declare abstract class ReadableStreamBYOBRequest { 2253 + /** 2254 + * The **`view`** getter property of the ReadableStreamBYOBRequest interface returns the current view. 2255 + * 2256 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) 2257 + */ 2258 + get view(): Uint8Array | null; 2259 + /** 2260 + * 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. 2261 + * 2262 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) 2263 + */ 2264 + respond(bytesWritten: number): void; 2265 + /** 2266 + * 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. 2267 + * 2268 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) 2269 + */ 2270 + respondWithNewView(view: ArrayBuffer | ArrayBufferView): void; 2271 + get atLeast(): number | null; 2272 + } 2273 + /** 2274 + * The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue. 2275 + * 2276 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) 2277 + */ 2278 + declare abstract class ReadableStreamDefaultController<R = any> { 2279 + /** 2280 + * The **`desiredSize`** read-only property of the required to fill the stream's internal queue. 2281 + * 2282 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) 2283 + */ 2284 + get desiredSize(): number | null; 2285 + /** 2286 + * The **`close()`** method of the ReadableStreamDefaultController interface closes the associated stream. 2287 + * 2288 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) 2289 + */ 2290 + close(): void; 2291 + /** 2292 + * The **`enqueue()`** method of the ```js-nolint enqueue(chunk) ``` - `chunk` - : The chunk to enqueue. 2293 + * 2294 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) 2295 + */ 2296 + enqueue(chunk?: R): void; 2297 + /** 2298 + * The **`error()`** method of the with the associated stream to error. 2299 + * 2300 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) 2301 + */ 2302 + error(reason: any): void; 2303 + } 2304 + /** 2305 + * The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream. 2306 + * 2307 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) 2308 + */ 2309 + declare abstract class ReadableByteStreamController { 2310 + /** 2311 + * The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests. 2312 + * 2313 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) 2314 + */ 2315 + get byobRequest(): ReadableStreamBYOBRequest | null; 2316 + /** 2317 + * 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'. 2318 + * 2319 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) 2320 + */ 2321 + get desiredSize(): number | null; 2322 + /** 2323 + * The **`close()`** method of the ReadableByteStreamController interface closes the associated stream. 2324 + * 2325 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) 2326 + */ 2327 + close(): void; 2328 + /** 2329 + * 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). 2330 + * 2331 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) 2332 + */ 2333 + enqueue(chunk: ArrayBuffer | ArrayBufferView): void; 2334 + /** 2335 + * The **`error()`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason. 2336 + * 2337 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) 2338 + */ 2339 + error(reason: any): void; 2340 + } 2341 + /** 2342 + * The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream's state. 2343 + * 2344 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController) 2345 + */ 2346 + declare abstract class WritableStreamDefaultController { 2347 + /** 2348 + * The read-only **`signal`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller. 2349 + * 2350 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) 2351 + */ 2352 + get signal(): AbortSignal; 2353 + /** 2354 + * The **`error()`** method of the with the associated stream to error. 2355 + * 2356 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) 2357 + */ 2358 + error(reason?: any): void; 2359 + } 2360 + /** 2361 + * The **`TransformStreamDefaultController`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream. 2362 + * 2363 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) 2364 + */ 2365 + declare abstract class TransformStreamDefaultController<O = any> { 2366 + /** 2367 + * The **`desiredSize`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream. 2368 + * 2369 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) 2370 + */ 2371 + get desiredSize(): number | null; 2372 + /** 2373 + * The **`enqueue()`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream. 2374 + * 2375 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) 2376 + */ 2377 + enqueue(chunk?: O): void; 2378 + /** 2379 + * The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream. 2380 + * 2381 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) 2382 + */ 2383 + error(reason: any): void; 2384 + /** 2385 + * The **`terminate()`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream. 2386 + * 2387 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) 2388 + */ 2389 + terminate(): void; 2390 + } 2391 + interface ReadableWritablePair<R = any, W = any> { 2392 + readable: ReadableStream<R>; 2393 + /** 2394 + * 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. 2395 + * 2396 + * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. 2397 + */ 2398 + writable: WritableStream<W>; 2399 + } 2400 + /** 2401 + * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink. 2402 + * 2403 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream) 2404 + */ 2405 + declare class WritableStream<W = any> { 2406 + constructor(underlyingSink?: UnderlyingSink, queuingStrategy?: QueuingStrategy); 2407 + /** 2408 + * The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the `WritableStream` is locked to a writer. 2409 + * 2410 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) 2411 + */ 2412 + get locked(): boolean; 2413 + /** 2414 + * 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. 2415 + * 2416 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) 2417 + */ 2418 + abort(reason?: any): Promise<void>; 2419 + /** 2420 + * The **`close()`** method of the WritableStream interface closes the associated stream. 2421 + * 2422 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) 2423 + */ 2424 + close(): Promise<void>; 2425 + /** 2426 + * The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance. 2427 + * 2428 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) 2429 + */ 2430 + getWriter(): WritableStreamDefaultWriter<W>; 2431 + } 2432 + /** 2433 + * 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. 2434 + * 2435 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter) 2436 + */ 2437 + declare class WritableStreamDefaultWriter<W = any> { 2438 + constructor(stream: WritableStream); 2439 + /** 2440 + * The **`closed`** read-only property of the the stream errors or the writer's lock is released. 2441 + * 2442 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) 2443 + */ 2444 + get closed(): Promise<void>; 2445 + /** 2446 + * 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. 2447 + * 2448 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) 2449 + */ 2450 + get ready(): Promise<void>; 2451 + /** 2452 + * The **`desiredSize`** read-only property of the to fill the stream's internal queue. 2453 + * 2454 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) 2455 + */ 2456 + get desiredSize(): number | null; 2457 + /** 2458 + * 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. 2459 + * 2460 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) 2461 + */ 2462 + abort(reason?: any): Promise<void>; 2463 + /** 2464 + * The **`close()`** method of the stream. 2465 + * 2466 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) 2467 + */ 2468 + close(): Promise<void>; 2469 + /** 2470 + * The **`write()`** method of the operation. 2471 + * 2472 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) 2473 + */ 2474 + write(chunk?: W): Promise<void>; 2475 + /** 2476 + * The **`releaseLock()`** method of the corresponding stream. 2477 + * 2478 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) 2479 + */ 2480 + releaseLock(): void; 2481 + } 2482 + /** 2483 + * The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept. 2484 + * 2485 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) 2486 + */ 2487 + declare class TransformStream<I = any, O = any> { 2488 + constructor(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>); 2489 + /** 2490 + * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this `TransformStream`. 2491 + * 2492 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) 2493 + */ 2494 + get readable(): ReadableStream<O>; 2495 + /** 2496 + * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this `TransformStream`. 2497 + * 2498 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) 2499 + */ 2500 + get writable(): WritableStream<I>; 2501 + } 2502 + declare class FixedLengthStream extends IdentityTransformStream { 2503 + constructor(expectedLength: number | bigint, queuingStrategy?: IdentityTransformStreamQueuingStrategy); 2504 + } 2505 + declare class IdentityTransformStream extends TransformStream<ArrayBuffer | ArrayBufferView, Uint8Array> { 2506 + constructor(queuingStrategy?: IdentityTransformStreamQueuingStrategy); 2507 + } 2508 + interface IdentityTransformStreamQueuingStrategy { 2509 + highWaterMark?: (number | bigint); 2510 + } 2511 + interface ReadableStreamValuesOptions { 2512 + preventCancel?: boolean; 2513 + } 2514 + /** 2515 + * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data. 2516 + * 2517 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) 2518 + */ 2519 + declare class CompressionStream extends TransformStream<ArrayBuffer | ArrayBufferView, Uint8Array> { 2520 + constructor(format: "gzip" | "deflate" | "deflate-raw"); 2521 + } 2522 + /** 2523 + * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data. 2524 + * 2525 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) 2526 + */ 2527 + declare class DecompressionStream extends TransformStream<ArrayBuffer | ArrayBufferView, Uint8Array> { 2528 + constructor(format: "gzip" | "deflate" | "deflate-raw"); 2529 + } 2530 + /** 2531 + * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. 2532 + * 2533 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) 2534 + */ 2535 + declare class TextEncoderStream extends TransformStream<string, Uint8Array> { 2536 + constructor(); 2537 + get encoding(): string; 2538 + } 2539 + /** 2540 + * 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. 2541 + * 2542 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) 2543 + */ 2544 + declare class TextDecoderStream extends TransformStream<ArrayBuffer | ArrayBufferView, string> { 2545 + constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit); 2546 + get encoding(): string; 2547 + get fatal(): boolean; 2548 + get ignoreBOM(): boolean; 2549 + } 2550 + interface TextDecoderStreamTextDecoderStreamInit { 2551 + fatal?: boolean; 2552 + ignoreBOM?: boolean; 2553 + } 2554 + /** 2555 + * The **`ByteLengthQueuingStrategy`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams. 2556 + * 2557 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) 2558 + */ 2559 + declare class ByteLengthQueuingStrategy implements QueuingStrategy<ArrayBufferView> { 2560 + constructor(init: QueuingStrategyInit); 2561 + /** 2562 + * The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied. 2563 + * 2564 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) 2565 + */ 2566 + get highWaterMark(): number; 2567 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ 2568 + get size(): (chunk?: any) => number; 2569 + } 2570 + /** 2571 + * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. 2572 + * 2573 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) 2574 + */ 2575 + declare class CountQueuingStrategy implements QueuingStrategy { 2576 + constructor(init: QueuingStrategyInit); 2577 + /** 2578 + * The read-only **`CountQueuingStrategy.highWaterMark`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied. 2579 + * 2580 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) 2581 + */ 2582 + get highWaterMark(): number; 2583 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ 2584 + get size(): (chunk?: any) => number; 2585 + } 2586 + interface QueuingStrategyInit { 2587 + /** 2588 + * Creates a new ByteLengthQueuingStrategy with the provided high water mark. 2589 + * 2590 + * 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. 2591 + */ 2592 + highWaterMark: number; 2593 + } 2594 + interface ScriptVersion { 2595 + id?: string; 2596 + tag?: string; 2597 + message?: string; 2598 + } 2599 + declare abstract class TailEvent extends ExtendableEvent { 2600 + readonly events: TraceItem[]; 2601 + readonly traces: TraceItem[]; 2602 + } 2603 + interface TraceItem { 2604 + readonly event: (TraceItemFetchEventInfo | TraceItemJsRpcEventInfo | TraceItemScheduledEventInfo | TraceItemAlarmEventInfo | TraceItemQueueEventInfo | TraceItemEmailEventInfo | TraceItemTailEventInfo | TraceItemCustomEventInfo | TraceItemHibernatableWebSocketEventInfo) | null; 2605 + readonly eventTimestamp: number | null; 2606 + readonly logs: TraceLog[]; 2607 + readonly exceptions: TraceException[]; 2608 + readonly diagnosticsChannelEvents: TraceDiagnosticChannelEvent[]; 2609 + readonly scriptName: string | null; 2610 + readonly entrypoint?: string; 2611 + readonly scriptVersion?: ScriptVersion; 2612 + readonly dispatchNamespace?: string; 2613 + readonly scriptTags?: string[]; 2614 + readonly durableObjectId?: string; 2615 + readonly outcome: string; 2616 + readonly executionModel: string; 2617 + readonly truncated: boolean; 2618 + readonly cpuTime: number; 2619 + readonly wallTime: number; 2620 + } 2621 + interface TraceItemAlarmEventInfo { 2622 + readonly scheduledTime: Date; 2623 + } 2624 + interface TraceItemCustomEventInfo { 2625 + } 2626 + interface TraceItemScheduledEventInfo { 2627 + readonly scheduledTime: number; 2628 + readonly cron: string; 2629 + } 2630 + interface TraceItemQueueEventInfo { 2631 + readonly queue: string; 2632 + readonly batchSize: number; 2633 + } 2634 + interface TraceItemEmailEventInfo { 2635 + readonly mailFrom: string; 2636 + readonly rcptTo: string; 2637 + readonly rawSize: number; 2638 + } 2639 + interface TraceItemTailEventInfo { 2640 + readonly consumedEvents: TraceItemTailEventInfoTailItem[]; 2641 + } 2642 + interface TraceItemTailEventInfoTailItem { 2643 + readonly scriptName: string | null; 2644 + } 2645 + interface TraceItemFetchEventInfo { 2646 + readonly response?: TraceItemFetchEventInfoResponse; 2647 + readonly request: TraceItemFetchEventInfoRequest; 2648 + } 2649 + interface TraceItemFetchEventInfoRequest { 2650 + readonly cf?: any; 2651 + readonly headers: Record<string, string>; 2652 + readonly method: string; 2653 + readonly url: string; 2654 + getUnredacted(): TraceItemFetchEventInfoRequest; 2655 + } 2656 + interface TraceItemFetchEventInfoResponse { 2657 + readonly status: number; 2658 + } 2659 + interface TraceItemJsRpcEventInfo { 2660 + readonly rpcMethod: string; 2661 + } 2662 + interface TraceItemHibernatableWebSocketEventInfo { 2663 + readonly getWebSocketEvent: TraceItemHibernatableWebSocketEventInfoMessage | TraceItemHibernatableWebSocketEventInfoClose | TraceItemHibernatableWebSocketEventInfoError; 2664 + } 2665 + interface TraceItemHibernatableWebSocketEventInfoMessage { 2666 + readonly webSocketEventType: string; 2667 + } 2668 + interface TraceItemHibernatableWebSocketEventInfoClose { 2669 + readonly webSocketEventType: string; 2670 + readonly code: number; 2671 + readonly wasClean: boolean; 2672 + } 2673 + interface TraceItemHibernatableWebSocketEventInfoError { 2674 + readonly webSocketEventType: string; 2675 + } 2676 + interface TraceLog { 2677 + readonly timestamp: number; 2678 + readonly level: string; 2679 + readonly message: any; 2680 + } 2681 + interface TraceException { 2682 + readonly timestamp: number; 2683 + readonly message: string; 2684 + readonly name: string; 2685 + readonly stack?: string; 2686 + } 2687 + interface TraceDiagnosticChannelEvent { 2688 + readonly timestamp: number; 2689 + readonly channel: string; 2690 + readonly message: any; 2691 + } 2692 + interface TraceMetrics { 2693 + readonly cpuTime: number; 2694 + readonly wallTime: number; 2695 + } 2696 + interface UnsafeTraceMetrics { 2697 + fromTrace(item: TraceItem): TraceMetrics; 2698 + } 2699 + /** 2700 + * The **`URL`** interface is used to parse, construct, normalize, and encode URL. 2701 + * 2702 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL) 2703 + */ 2704 + declare class URL { 2705 + constructor(url: string | URL, base?: string | URL); 2706 + /** 2707 + * The **`origin`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL. 2708 + * 2709 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) 2710 + */ 2711 + get origin(): string; 2712 + /** 2713 + * The **`href`** property of the URL interface is a string containing the whole URL. 2714 + * 2715 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) 2716 + */ 2717 + get href(): string; 2718 + /** 2719 + * The **`href`** property of the URL interface is a string containing the whole URL. 2720 + * 2721 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) 2722 + */ 2723 + set href(value: string); 2724 + /** 2725 + * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`. 2726 + * 2727 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) 2728 + */ 2729 + get protocol(): string; 2730 + /** 2731 + * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`. 2732 + * 2733 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) 2734 + */ 2735 + set protocol(value: string); 2736 + /** 2737 + * The **`username`** property of the URL interface is a string containing the username component of the URL. 2738 + * 2739 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) 2740 + */ 2741 + get username(): string; 2742 + /** 2743 + * The **`username`** property of the URL interface is a string containing the username component of the URL. 2744 + * 2745 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) 2746 + */ 2747 + set username(value: string); 2748 + /** 2749 + * The **`password`** property of the URL interface is a string containing the password component of the URL. 2750 + * 2751 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) 2752 + */ 2753 + get password(): string; 2754 + /** 2755 + * The **`password`** property of the URL interface is a string containing the password component of the URL. 2756 + * 2757 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) 2758 + */ 2759 + set password(value: string); 2760 + /** 2761 + * 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. 2762 + * 2763 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) 2764 + */ 2765 + get host(): string; 2766 + /** 2767 + * 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. 2768 + * 2769 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) 2770 + */ 2771 + set host(value: string); 2772 + /** 2773 + * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL. 2774 + * 2775 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) 2776 + */ 2777 + get hostname(): string; 2778 + /** 2779 + * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL. 2780 + * 2781 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) 2782 + */ 2783 + set hostname(value: string); 2784 + /** 2785 + * The **`port`** property of the URL interface is a string containing the port number of the URL. 2786 + * 2787 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) 2788 + */ 2789 + get port(): string; 2790 + /** 2791 + * The **`port`** property of the URL interface is a string containing the port number of the URL. 2792 + * 2793 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) 2794 + */ 2795 + set port(value: string); 2796 + /** 2797 + * The **`pathname`** property of the URL interface represents a location in a hierarchical structure. 2798 + * 2799 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) 2800 + */ 2801 + get pathname(): string; 2802 + /** 2803 + * The **`pathname`** property of the URL interface represents a location in a hierarchical structure. 2804 + * 2805 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) 2806 + */ 2807 + set pathname(value: string); 2808 + /** 2809 + * 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. 2810 + * 2811 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) 2812 + */ 2813 + get search(): string; 2814 + /** 2815 + * 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. 2816 + * 2817 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) 2818 + */ 2819 + set search(value: string); 2820 + /** 2821 + * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL. 2822 + * 2823 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) 2824 + */ 2825 + get hash(): string; 2826 + /** 2827 + * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL. 2828 + * 2829 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) 2830 + */ 2831 + set hash(value: string); 2832 + /** 2833 + * The **`searchParams`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL. 2834 + * 2835 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) 2836 + */ 2837 + get searchParams(): URLSearchParams; 2838 + /** 2839 + * 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. 2840 + * 2841 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) 2842 + */ 2843 + toJSON(): string; 2844 + /*function toString() { [native code] }*/ 2845 + toString(): string; 2846 + /** 2847 + * 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. 2848 + * 2849 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) 2850 + */ 2851 + static canParse(url: string, base?: string): boolean; 2852 + /** 2853 + * The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters. 2854 + * 2855 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) 2856 + */ 2857 + static parse(url: string, base?: string): URL | null; 2858 + /** 2859 + * The **`createObjectURL()`** static method of the URL interface creates a string containing a URL representing the object given in the parameter. 2860 + * 2861 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) 2862 + */ 2863 + static createObjectURL(object: File | Blob): string; 2864 + /** 2865 + * 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. 2866 + * 2867 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) 2868 + */ 2869 + static revokeObjectURL(object_url: string): void; 2870 + } 2871 + /** 2872 + * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL. 2873 + * 2874 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) 2875 + */ 2876 + declare class URLSearchParams { 2877 + constructor(init?: (Iterable<Iterable<string>> | Record<string, string> | string)); 2878 + /** 2879 + * The **`size`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries. 2880 + * 2881 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) 2882 + */ 2883 + get size(): number; 2884 + /** 2885 + * The **`append()`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter. 2886 + * 2887 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append) 2888 + */ 2889 + append(name: string, value: string): void; 2890 + /** 2891 + * The **`delete()`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters. 2892 + * 2893 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete) 2894 + */ 2895 + delete(name: string, value?: string): void; 2896 + /** 2897 + * The **`get()`** method of the URLSearchParams interface returns the first value associated to the given search parameter. 2898 + * 2899 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get) 2900 + */ 2901 + get(name: string): string | null; 2902 + /** 2903 + * The **`getAll()`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array. 2904 + * 2905 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll) 2906 + */ 2907 + getAll(name: string): string[]; 2908 + /** 2909 + * The **`has()`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters. 2910 + * 2911 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has) 2912 + */ 2913 + has(name: string, value?: string): boolean; 2914 + /** 2915 + * The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value. 2916 + * 2917 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set) 2918 + */ 2919 + set(name: string, value: string): void; 2920 + /** 2921 + * The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns `undefined`. 2922 + * 2923 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) 2924 + */ 2925 + sort(): void; 2926 + /* Returns an array of key, value pairs for every entry in the search params. */ 2927 + entries(): IterableIterator<[ 2928 + key: string, 2929 + value: string 2930 + ]>; 2931 + /* Returns a list of keys in the search params. */ 2932 + keys(): IterableIterator<string>; 2933 + /* Returns a list of values in the search params. */ 2934 + values(): IterableIterator<string>; 2935 + forEach<This = unknown>(callback: (this: This, value: string, key: string, parent: URLSearchParams) => void, thisArg?: This): void; 2936 + /*function toString() { [native code] }*/ 2937 + toString(): string; 2938 + [Symbol.iterator](): IterableIterator<[ 2939 + key: string, 2940 + value: string 2941 + ]>; 2942 + } 2943 + declare class URLPattern { 2944 + constructor(input?: (string | URLPatternInit), baseURL?: (string | URLPatternOptions), patternOptions?: URLPatternOptions); 2945 + get protocol(): string; 2946 + get username(): string; 2947 + get password(): string; 2948 + get hostname(): string; 2949 + get port(): string; 2950 + get pathname(): string; 2951 + get search(): string; 2952 + get hash(): string; 2953 + get hasRegExpGroups(): boolean; 2954 + test(input?: (string | URLPatternInit), baseURL?: string): boolean; 2955 + exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null; 2956 + } 2957 + interface URLPatternInit { 2958 + protocol?: string; 2959 + username?: string; 2960 + password?: string; 2961 + hostname?: string; 2962 + port?: string; 2963 + pathname?: string; 2964 + search?: string; 2965 + hash?: string; 2966 + baseURL?: string; 2967 + } 2968 + interface URLPatternComponentResult { 2969 + input: string; 2970 + groups: Record<string, string>; 2971 + } 2972 + interface URLPatternResult { 2973 + inputs: (string | URLPatternInit)[]; 2974 + protocol: URLPatternComponentResult; 2975 + username: URLPatternComponentResult; 2976 + password: URLPatternComponentResult; 2977 + hostname: URLPatternComponentResult; 2978 + port: URLPatternComponentResult; 2979 + pathname: URLPatternComponentResult; 2980 + search: URLPatternComponentResult; 2981 + hash: URLPatternComponentResult; 2982 + } 2983 + interface URLPatternOptions { 2984 + ignoreCase?: boolean; 2985 + } 2986 + /** 2987 + * A `CloseEvent` is sent to clients using WebSockets when the connection is closed. 2988 + * 2989 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) 2990 + */ 2991 + declare class CloseEvent extends Event { 2992 + constructor(type: string, initializer?: CloseEventInit); 2993 + /** 2994 + * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed. 2995 + * 2996 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) 2997 + */ 2998 + readonly code: number; 2999 + /** 3000 + * 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. 3001 + * 3002 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) 3003 + */ 3004 + readonly reason: string; 3005 + /** 3006 + * The **`wasClean`** read-only property of the CloseEvent interface returns `true` if the connection closed cleanly. 3007 + * 3008 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) 3009 + */ 3010 + readonly wasClean: boolean; 3011 + } 3012 + interface CloseEventInit { 3013 + code?: number; 3014 + reason?: string; 3015 + wasClean?: boolean; 3016 + } 3017 + type WebSocketEventMap = { 3018 + close: CloseEvent; 3019 + message: MessageEvent; 3020 + open: Event; 3021 + error: ErrorEvent; 3022 + }; 3023 + /** 3024 + * 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. 3025 + * 3026 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket) 3027 + */ 3028 + declare var WebSocket: { 3029 + prototype: WebSocket; 3030 + new (url: string, protocols?: (string[] | string)): WebSocket; 3031 + readonly READY_STATE_CONNECTING: number; 3032 + readonly CONNECTING: number; 3033 + readonly READY_STATE_OPEN: number; 3034 + readonly OPEN: number; 3035 + readonly READY_STATE_CLOSING: number; 3036 + readonly CLOSING: number; 3037 + readonly READY_STATE_CLOSED: number; 3038 + readonly CLOSED: number; 3039 + }; 3040 + /** 3041 + * 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. 3042 + * 3043 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket) 3044 + */ 3045 + interface WebSocket extends EventTarget<WebSocketEventMap> { 3046 + accept(): void; 3047 + /** 3048 + * 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. 3049 + * 3050 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send) 3051 + */ 3052 + send(message: (ArrayBuffer | ArrayBufferView) | string): void; 3053 + /** 3054 + * The **`WebSocket.close()`** method closes the already `CLOSED`, this method does nothing. 3055 + * 3056 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) 3057 + */ 3058 + close(code?: number, reason?: string): void; 3059 + serializeAttachment(attachment: any): void; 3060 + deserializeAttachment(): any | null; 3061 + /** 3062 + * The **`WebSocket.readyState`** read-only property returns the current state of the WebSocket connection. 3063 + * 3064 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState) 3065 + */ 3066 + readyState: number; 3067 + /** 3068 + * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor. 3069 + * 3070 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url) 3071 + */ 3072 + url: string | null; 3073 + /** 3074 + * 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. 3075 + * 3076 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol) 3077 + */ 3078 + protocol: string | null; 3079 + /** 3080 + * The **`WebSocket.extensions`** read-only property returns the extensions selected by the server. 3081 + * 3082 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions) 3083 + */ 3084 + extensions: string | null; 3085 + /** 3086 + * The **`WebSocket.binaryType`** property controls the type of binary data being received over the WebSocket connection. 3087 + * 3088 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType) 3089 + */ 3090 + binaryType: "blob" | "arraybuffer"; 3091 + } 3092 + declare const WebSocketPair: { 3093 + new (): { 3094 + 0: WebSocket; 3095 + 1: WebSocket; 3096 + }; 3097 + }; 3098 + interface SqlStorage { 3099 + exec<T extends Record<string, SqlStorageValue>>(query: string, ...bindings: any[]): SqlStorageCursor<T>; 3100 + get databaseSize(): number; 3101 + Cursor: typeof SqlStorageCursor; 3102 + Statement: typeof SqlStorageStatement; 3103 + } 3104 + declare abstract class SqlStorageStatement { 3105 + } 3106 + type SqlStorageValue = ArrayBuffer | string | number | null; 3107 + declare abstract class SqlStorageCursor<T extends Record<string, SqlStorageValue>> { 3108 + next(): { 3109 + done?: false; 3110 + value: T; 3111 + } | { 3112 + done: true; 3113 + value?: never; 3114 + }; 3115 + toArray(): T[]; 3116 + one(): T; 3117 + raw<U extends SqlStorageValue[]>(): IterableIterator<U>; 3118 + columnNames: string[]; 3119 + get rowsRead(): number; 3120 + get rowsWritten(): number; 3121 + [Symbol.iterator](): IterableIterator<T>; 3122 + } 3123 + interface Socket { 3124 + get readable(): ReadableStream; 3125 + get writable(): WritableStream; 3126 + get closed(): Promise<void>; 3127 + get opened(): Promise<SocketInfo>; 3128 + get upgraded(): boolean; 3129 + get secureTransport(): "on" | "off" | "starttls"; 3130 + close(): Promise<void>; 3131 + startTls(options?: TlsOptions): Socket; 3132 + } 3133 + interface SocketOptions { 3134 + secureTransport?: string; 3135 + allowHalfOpen: boolean; 3136 + highWaterMark?: (number | bigint); 3137 + } 3138 + interface SocketAddress { 3139 + hostname: string; 3140 + port: number; 3141 + } 3142 + interface TlsOptions { 3143 + expectedServerHostname?: string; 3144 + } 3145 + interface SocketInfo { 3146 + remoteAddress?: string; 3147 + localAddress?: string; 3148 + } 3149 + /** 3150 + * The **`EventSource`** interface is web content's interface to server-sent events. 3151 + * 3152 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) 3153 + */ 3154 + declare class EventSource extends EventTarget { 3155 + constructor(url: string, init?: EventSourceEventSourceInit); 3156 + /** 3157 + * The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the ```js-nolint close() ``` None. 3158 + * 3159 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) 3160 + */ 3161 + close(): void; 3162 + /** 3163 + * The **`url`** read-only property of the URL of the source. 3164 + * 3165 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) 3166 + */ 3167 + get url(): string; 3168 + /** 3169 + * The **`withCredentials`** read-only property of the the `EventSource` object was instantiated with CORS credentials set. 3170 + * 3171 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) 3172 + */ 3173 + get withCredentials(): boolean; 3174 + /** 3175 + * The **`readyState`** read-only property of the connection. 3176 + * 3177 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) 3178 + */ 3179 + get readyState(): number; 3180 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ 3181 + get onopen(): any | null; 3182 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ 3183 + set onopen(value: any | null); 3184 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ 3185 + get onmessage(): any | null; 3186 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ 3187 + set onmessage(value: any | null); 3188 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ 3189 + get onerror(): any | null; 3190 + /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ 3191 + set onerror(value: any | null); 3192 + static readonly CONNECTING: number; 3193 + static readonly OPEN: number; 3194 + static readonly CLOSED: number; 3195 + static from(stream: ReadableStream): EventSource; 3196 + } 3197 + interface EventSourceEventSourceInit { 3198 + withCredentials?: boolean; 3199 + fetcher?: Fetcher; 3200 + } 3201 + interface Container { 3202 + get running(): boolean; 3203 + start(options?: ContainerStartupOptions): void; 3204 + monitor(): Promise<void>; 3205 + destroy(error?: any): Promise<void>; 3206 + signal(signo: number): void; 3207 + getTcpPort(port: number): Fetcher; 3208 + setInactivityTimeout(durationMs: number | bigint): Promise<void>; 3209 + interceptOutboundHttp(addr: string, binding: Fetcher): Promise<void>; 3210 + interceptAllOutboundHttp(binding: Fetcher): Promise<void>; 3211 + } 3212 + interface ContainerStartupOptions { 3213 + entrypoint?: string[]; 3214 + enableInternet: boolean; 3215 + env?: Record<string, string>; 3216 + hardTimeout?: (number | bigint); 3217 + } 3218 + /** 3219 + * 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. 3220 + * 3221 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) 3222 + */ 3223 + declare abstract class MessagePort extends EventTarget { 3224 + /** 3225 + * The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts. 3226 + * 3227 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage) 3228 + */ 3229 + postMessage(data?: any, options?: (any[] | MessagePortPostMessageOptions)): void; 3230 + /** 3231 + * The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active. 3232 + * 3233 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close) 3234 + */ 3235 + close(): void; 3236 + /** 3237 + * The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port. 3238 + * 3239 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start) 3240 + */ 3241 + start(): void; 3242 + get onmessage(): any | null; 3243 + set onmessage(value: any | null); 3244 + } 3245 + /** 3246 + * 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. 3247 + * 3248 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel) 3249 + */ 3250 + declare class MessageChannel { 3251 + constructor(); 3252 + /** 3253 + * The **`port1`** read-only property of the the port attached to the context that originated the channel. 3254 + * 3255 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1) 3256 + */ 3257 + readonly port1: MessagePort; 3258 + /** 3259 + * 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. 3260 + * 3261 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2) 3262 + */ 3263 + readonly port2: MessagePort; 3264 + } 3265 + interface MessagePortPostMessageOptions { 3266 + transfer?: any[]; 3267 + } 3268 + type LoopbackForExport<T extends (new (...args: any[]) => Rpc.EntrypointBranded) | ExportedHandler<any, any, any> | undefined = undefined> = T extends new (...args: any[]) => Rpc.WorkerEntrypointBranded ? LoopbackServiceStub<InstanceType<T>> : T extends new (...args: any[]) => Rpc.DurableObjectBranded ? LoopbackDurableObjectClass<InstanceType<T>> : T extends ExportedHandler<any, any, any> ? LoopbackServiceStub<undefined> : undefined; 3269 + type LoopbackServiceStub<T extends Rpc.WorkerEntrypointBranded | undefined = undefined> = Fetcher<T> & (T extends CloudflareWorkersModule.WorkerEntrypoint<any, infer Props> ? (opts: { 3270 + props?: Props; 3271 + }) => Fetcher<T> : (opts: { 3272 + props?: any; 3273 + }) => Fetcher<T>); 3274 + type LoopbackDurableObjectClass<T extends Rpc.DurableObjectBranded | undefined = undefined> = DurableObjectClass<T> & (T extends CloudflareWorkersModule.DurableObject<any, infer Props> ? (opts: { 3275 + props?: Props; 3276 + }) => DurableObjectClass<T> : (opts: { 3277 + props?: any; 3278 + }) => DurableObjectClass<T>); 3279 + interface SyncKvStorage { 3280 + get<T = unknown>(key: string): T | undefined; 3281 + list<T = unknown>(options?: SyncKvListOptions): Iterable<[ 3282 + string, 3283 + T 3284 + ]>; 3285 + put<T>(key: string, value: T): void; 3286 + delete(key: string): boolean; 3287 + } 3288 + interface SyncKvListOptions { 3289 + start?: string; 3290 + startAfter?: string; 3291 + end?: string; 3292 + prefix?: string; 3293 + reverse?: boolean; 3294 + limit?: number; 3295 + } 3296 + interface WorkerStub { 3297 + getEntrypoint<T extends Rpc.WorkerEntrypointBranded | undefined>(name?: string, options?: WorkerStubEntrypointOptions): Fetcher<T>; 3298 + } 3299 + interface WorkerStubEntrypointOptions { 3300 + props?: any; 3301 + } 3302 + interface WorkerLoader { 3303 + get(name: string | null, getCode: () => WorkerLoaderWorkerCode | Promise<WorkerLoaderWorkerCode>): WorkerStub; 3304 + } 3305 + interface WorkerLoaderModule { 3306 + js?: string; 3307 + cjs?: string; 3308 + text?: string; 3309 + data?: ArrayBuffer; 3310 + json?: any; 3311 + py?: string; 3312 + wasm?: ArrayBuffer; 3313 + } 3314 + interface WorkerLoaderWorkerCode { 3315 + compatibilityDate: string; 3316 + compatibilityFlags?: string[]; 3317 + allowExperimental?: boolean; 3318 + mainModule: string; 3319 + modules: Record<string, WorkerLoaderModule | string>; 3320 + env?: any; 3321 + globalOutbound?: (Fetcher | null); 3322 + tails?: Fetcher[]; 3323 + streamingTails?: Fetcher[]; 3324 + } 3325 + /** 3326 + * The Workers runtime supports a subset of the Performance API, used to measure timing and performance, 3327 + * as well as timing of subrequests and other operations. 3328 + * 3329 + * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/) 3330 + */ 3331 + declare abstract class Performance { 3332 + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */ 3333 + get timeOrigin(): number; 3334 + /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */ 3335 + now(): number; 3336 + /** 3337 + * The **`toJSON()`** method of the Performance interface is a Serialization; it returns a JSON representation of the Performance object. 3338 + * 3339 + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) 3340 + */ 3341 + toJSON(): object; 3342 + } 3343 + // AI Search V2 API Error Interfaces 3344 + interface AiSearchInternalError extends Error { 3345 + } 3346 + interface AiSearchNotFoundError extends Error { 3347 + } 3348 + interface AiSearchNameNotSetError extends Error { 3349 + } 3350 + // AI Search V2 Request Types 3351 + type AiSearchSearchRequest = { 3352 + messages: Array<{ 3353 + role: 'system' | 'developer' | 'user' | 'assistant' | 'tool'; 3354 + content: string | null; 3355 + }>; 3356 + ai_search_options?: { 3357 + retrieval?: { 3358 + retrieval_type?: 'vector' | 'keyword' | 'hybrid'; 3359 + /** Match threshold (0-1, default 0.4) */ 3360 + match_threshold?: number; 3361 + /** Maximum number of results (1-50, default 10) */ 3362 + max_num_results?: number; 3363 + filters?: VectorizeVectorMetadataFilter; 3364 + /** Context expansion (0-3, default 0) */ 3365 + context_expansion?: number; 3366 + [key: string]: unknown; 3367 + }; 3368 + query_rewrite?: { 3369 + enabled?: boolean; 3370 + model?: string; 3371 + rewrite_prompt?: string; 3372 + [key: string]: unknown; 3373 + }; 3374 + reranking?: { 3375 + /** Enable reranking (default false) */ 3376 + enabled?: boolean; 3377 + model?: '@cf/baai/bge-reranker-base' | ''; 3378 + /** Match threshold (0-1, default 0.4) */ 3379 + match_threshold?: number; 3380 + [key: string]: unknown; 3381 + }; 3382 + [key: string]: unknown; 3383 + }; 3384 + }; 3385 + type AiSearchChatCompletionsRequest = { 3386 + messages: Array<{ 3387 + role: 'system' | 'developer' | 'user' | 'assistant' | 'tool'; 3388 + content: string | null; 3389 + }>; 3390 + model?: string; 3391 + stream?: boolean; 3392 + ai_search_options?: { 3393 + retrieval?: { 3394 + retrieval_type?: 'vector' | 'keyword' | 'hybrid'; 3395 + match_threshold?: number; 3396 + max_num_results?: number; 3397 + filters?: VectorizeVectorMetadataFilter; 3398 + context_expansion?: number; 3399 + [key: string]: unknown; 3400 + }; 3401 + query_rewrite?: { 3402 + enabled?: boolean; 3403 + model?: string; 3404 + rewrite_prompt?: string; 3405 + [key: string]: unknown; 3406 + }; 3407 + reranking?: { 3408 + enabled?: boolean; 3409 + model?: '@cf/baai/bge-reranker-base' | ''; 3410 + match_threshold?: number; 3411 + [key: string]: unknown; 3412 + }; 3413 + [key: string]: unknown; 3414 + }; 3415 + [key: string]: unknown; 3416 + }; 3417 + // AI Search V2 Response Types 3418 + type AiSearchSearchResponse = { 3419 + search_query: string; 3420 + chunks: Array<{ 3421 + id: string; 3422 + type: string; 3423 + /** Match score (0-1) */ 3424 + score: number; 3425 + text: string; 3426 + item: { 3427 + timestamp?: number; 3428 + key: string; 3429 + metadata?: Record<string, unknown>; 3430 + }; 3431 + scoring_details?: { 3432 + /** Keyword match score (0-1) */ 3433 + keyword_score?: number; 3434 + /** Vector similarity score (0-1) */ 3435 + vector_score?: number; 3436 + }; 3437 + }>; 3438 + }; 3439 + type AiSearchListResponse = Array<{ 3440 + id: string; 3441 + internal_id?: string; 3442 + account_id?: string; 3443 + account_tag?: string; 3444 + /** Whether the instance is enabled (default true) */ 3445 + enable?: boolean; 3446 + type?: 'r2' | 'web-crawler'; 3447 + source?: string; 3448 + [key: string]: unknown; 3449 + }>; 3450 + type AiSearchConfig = { 3451 + /** Instance ID (1-32 chars, pattern: ^[a-z0-9_]+(?:-[a-z0-9_]+)*$) */ 3452 + id: string; 3453 + type: 'r2' | 'web-crawler'; 3454 + source: string; 3455 + source_params?: object; 3456 + /** Token ID (UUID format) */ 3457 + token_id?: string; 3458 + ai_gateway_id?: string; 3459 + /** Enable query rewriting (default false) */ 3460 + rewrite_query?: boolean; 3461 + /** Enable reranking (default false) */ 3462 + reranking?: boolean; 3463 + embedding_model?: string; 3464 + ai_search_model?: string; 3465 + }; 3466 + type AiSearchInstance = { 3467 + id: string; 3468 + enable?: boolean; 3469 + type?: 'r2' | 'web-crawler'; 3470 + source?: string; 3471 + [key: string]: unknown; 3472 + }; 3473 + // AI Search Instance Service - Instance-level operations 3474 + declare abstract class AiSearchInstanceService { 3475 + /** 3476 + * Search the AI Search instance for relevant chunks. 3477 + * @param params Search request with messages and AI search options 3478 + * @returns Search response with matching chunks 3479 + */ 3480 + search(params: AiSearchSearchRequest): Promise<AiSearchSearchResponse>; 3481 + /** 3482 + * Generate chat completions with AI Search context. 3483 + * @param params Chat completions request with optional streaming 3484 + * @returns Response object (if streaming) or chat completion result 3485 + */ 3486 + chatCompletions(params: AiSearchChatCompletionsRequest): Promise<Response | object>; 3487 + /** 3488 + * Delete this AI Search instance. 3489 + */ 3490 + delete(): Promise<void>; 3491 + } 3492 + // AI Search Account Service - Account-level operations 3493 + declare abstract class AiSearchAccountService { 3494 + /** 3495 + * List all AI Search instances in the account. 3496 + * @returns Array of AI Search instances 3497 + */ 3498 + list(): Promise<AiSearchListResponse>; 3499 + /** 3500 + * Get an AI Search instance by ID. 3501 + * @param name Instance ID 3502 + * @returns Instance service for performing operations 3503 + */ 3504 + get(name: string): AiSearchInstanceService; 3505 + /** 3506 + * Create a new AI Search instance. 3507 + * @param config Instance configuration 3508 + * @returns Instance service for performing operations 3509 + */ 3510 + create(config: AiSearchConfig): Promise<AiSearchInstanceService>; 3511 + } 3512 + type AiImageClassificationInput = { 3513 + image: number[]; 3514 + }; 3515 + type AiImageClassificationOutput = { 3516 + score?: number; 3517 + label?: string; 3518 + }[]; 3519 + declare abstract class BaseAiImageClassification { 3520 + inputs: AiImageClassificationInput; 3521 + postProcessedOutputs: AiImageClassificationOutput; 3522 + } 3523 + type AiImageToTextInput = { 3524 + image: number[]; 3525 + prompt?: string; 3526 + max_tokens?: number; 3527 + temperature?: number; 3528 + top_p?: number; 3529 + top_k?: number; 3530 + seed?: number; 3531 + repetition_penalty?: number; 3532 + frequency_penalty?: number; 3533 + presence_penalty?: number; 3534 + raw?: boolean; 3535 + messages?: RoleScopedChatInput[]; 3536 + }; 3537 + type AiImageToTextOutput = { 3538 + description: string; 3539 + }; 3540 + declare abstract class BaseAiImageToText { 3541 + inputs: AiImageToTextInput; 3542 + postProcessedOutputs: AiImageToTextOutput; 3543 + } 3544 + type AiImageTextToTextInput = { 3545 + image: string; 3546 + prompt?: string; 3547 + max_tokens?: number; 3548 + temperature?: number; 3549 + ignore_eos?: boolean; 3550 + top_p?: number; 3551 + top_k?: number; 3552 + seed?: number; 3553 + repetition_penalty?: number; 3554 + frequency_penalty?: number; 3555 + presence_penalty?: number; 3556 + raw?: boolean; 3557 + messages?: RoleScopedChatInput[]; 3558 + }; 3559 + type AiImageTextToTextOutput = { 3560 + description: string; 3561 + }; 3562 + declare abstract class BaseAiImageTextToText { 3563 + inputs: AiImageTextToTextInput; 3564 + postProcessedOutputs: AiImageTextToTextOutput; 3565 + } 3566 + type AiMultimodalEmbeddingsInput = { 3567 + image: string; 3568 + text: string[]; 3569 + }; 3570 + type AiIMultimodalEmbeddingsOutput = { 3571 + data: number[][]; 3572 + shape: number[]; 3573 + }; 3574 + declare abstract class BaseAiMultimodalEmbeddings { 3575 + inputs: AiImageTextToTextInput; 3576 + postProcessedOutputs: AiImageTextToTextOutput; 3577 + } 3578 + type AiObjectDetectionInput = { 3579 + image: number[]; 3580 + }; 3581 + type AiObjectDetectionOutput = { 3582 + score?: number; 3583 + label?: string; 3584 + }[]; 3585 + declare abstract class BaseAiObjectDetection { 3586 + inputs: AiObjectDetectionInput; 3587 + postProcessedOutputs: AiObjectDetectionOutput; 3588 + } 3589 + type AiSentenceSimilarityInput = { 3590 + source: string; 3591 + sentences: string[]; 3592 + }; 3593 + type AiSentenceSimilarityOutput = number[]; 3594 + declare abstract class BaseAiSentenceSimilarity { 3595 + inputs: AiSentenceSimilarityInput; 3596 + postProcessedOutputs: AiSentenceSimilarityOutput; 3597 + } 3598 + type AiAutomaticSpeechRecognitionInput = { 3599 + audio: number[]; 3600 + }; 3601 + type AiAutomaticSpeechRecognitionOutput = { 3602 + text?: string; 3603 + words?: { 3604 + word: string; 3605 + start: number; 3606 + end: number; 3607 + }[]; 3608 + vtt?: string; 3609 + }; 3610 + declare abstract class BaseAiAutomaticSpeechRecognition { 3611 + inputs: AiAutomaticSpeechRecognitionInput; 3612 + postProcessedOutputs: AiAutomaticSpeechRecognitionOutput; 3613 + } 3614 + type AiSummarizationInput = { 3615 + input_text: string; 3616 + max_length?: number; 3617 + }; 3618 + type AiSummarizationOutput = { 3619 + summary: string; 3620 + }; 3621 + declare abstract class BaseAiSummarization { 3622 + inputs: AiSummarizationInput; 3623 + postProcessedOutputs: AiSummarizationOutput; 3624 + } 3625 + type AiTextClassificationInput = { 3626 + text: string; 3627 + }; 3628 + type AiTextClassificationOutput = { 3629 + score?: number; 3630 + label?: string; 3631 + }[]; 3632 + declare abstract class BaseAiTextClassification { 3633 + inputs: AiTextClassificationInput; 3634 + postProcessedOutputs: AiTextClassificationOutput; 3635 + } 3636 + type AiTextEmbeddingsInput = { 3637 + text: string | string[]; 3638 + }; 3639 + type AiTextEmbeddingsOutput = { 3640 + shape: number[]; 3641 + data: number[][]; 3642 + }; 3643 + declare abstract class BaseAiTextEmbeddings { 3644 + inputs: AiTextEmbeddingsInput; 3645 + postProcessedOutputs: AiTextEmbeddingsOutput; 3646 + } 3647 + type RoleScopedChatInput = { 3648 + role: "user" | "assistant" | "system" | "tool" | (string & NonNullable<unknown>); 3649 + content: string; 3650 + name?: string; 3651 + }; 3652 + type AiTextGenerationToolLegacyInput = { 3653 + name: string; 3654 + description: string; 3655 + parameters?: { 3656 + type: "object" | (string & NonNullable<unknown>); 3657 + properties: { 3658 + [key: string]: { 3659 + type: string; 3660 + description?: string; 3661 + }; 3662 + }; 3663 + required: string[]; 3664 + }; 3665 + }; 3666 + type AiTextGenerationToolInput = { 3667 + type: "function" | (string & NonNullable<unknown>); 3668 + function: { 3669 + name: string; 3670 + description: string; 3671 + parameters?: { 3672 + type: "object" | (string & NonNullable<unknown>); 3673 + properties: { 3674 + [key: string]: { 3675 + type: string; 3676 + description?: string; 3677 + }; 3678 + }; 3679 + required: string[]; 3680 + }; 3681 + }; 3682 + }; 3683 + type AiTextGenerationFunctionsInput = { 3684 + name: string; 3685 + code: string; 3686 + }; 3687 + type AiTextGenerationResponseFormat = { 3688 + type: string; 3689 + json_schema?: any; 3690 + }; 3691 + type AiTextGenerationInput = { 3692 + prompt?: string; 3693 + raw?: boolean; 3694 + stream?: boolean; 3695 + max_tokens?: number; 3696 + temperature?: number; 3697 + top_p?: number; 3698 + top_k?: number; 3699 + seed?: number; 3700 + repetition_penalty?: number; 3701 + frequency_penalty?: number; 3702 + presence_penalty?: number; 3703 + messages?: RoleScopedChatInput[]; 3704 + response_format?: AiTextGenerationResponseFormat; 3705 + tools?: AiTextGenerationToolInput[] | AiTextGenerationToolLegacyInput[] | (object & NonNullable<unknown>); 3706 + functions?: AiTextGenerationFunctionsInput[]; 3707 + }; 3708 + type AiTextGenerationToolLegacyOutput = { 3709 + name: string; 3710 + arguments: unknown; 3711 + }; 3712 + type AiTextGenerationToolOutput = { 3713 + id: string; 3714 + type: "function"; 3715 + function: { 3716 + name: string; 3717 + arguments: string; 3718 + }; 3719 + }; 3720 + type UsageTags = { 3721 + prompt_tokens: number; 3722 + completion_tokens: number; 3723 + total_tokens: number; 3724 + }; 3725 + type AiTextGenerationOutput = { 3726 + response?: string; 3727 + tool_calls?: AiTextGenerationToolLegacyOutput[] & AiTextGenerationToolOutput[]; 3728 + usage?: UsageTags; 3729 + }; 3730 + declare abstract class BaseAiTextGeneration { 3731 + inputs: AiTextGenerationInput; 3732 + postProcessedOutputs: AiTextGenerationOutput; 3733 + } 3734 + type AiTextToSpeechInput = { 3735 + prompt: string; 3736 + lang?: string; 3737 + }; 3738 + type AiTextToSpeechOutput = Uint8Array | { 3739 + audio: string; 3740 + }; 3741 + declare abstract class BaseAiTextToSpeech { 3742 + inputs: AiTextToSpeechInput; 3743 + postProcessedOutputs: AiTextToSpeechOutput; 3744 + } 3745 + type AiTextToImageInput = { 3746 + prompt: string; 3747 + negative_prompt?: string; 3748 + height?: number; 3749 + width?: number; 3750 + image?: number[]; 3751 + image_b64?: string; 3752 + mask?: number[]; 3753 + num_steps?: number; 3754 + strength?: number; 3755 + guidance?: number; 3756 + seed?: number; 3757 + }; 3758 + type AiTextToImageOutput = ReadableStream<Uint8Array>; 3759 + declare abstract class BaseAiTextToImage { 3760 + inputs: AiTextToImageInput; 3761 + postProcessedOutputs: AiTextToImageOutput; 3762 + } 3763 + type AiTranslationInput = { 3764 + text: string; 3765 + target_lang: string; 3766 + source_lang?: string; 3767 + }; 3768 + type AiTranslationOutput = { 3769 + translated_text?: string; 3770 + }; 3771 + declare abstract class BaseAiTranslation { 3772 + inputs: AiTranslationInput; 3773 + postProcessedOutputs: AiTranslationOutput; 3774 + } 3775 + /** 3776 + * Workers AI support for OpenAI's Responses API 3777 + * Reference: https://github.com/openai/openai-node/blob/master/src/resources/responses/responses.ts 3778 + * 3779 + * It's a stripped down version from its source. 3780 + * It currently supports basic function calling, json mode and accepts images as input. 3781 + * 3782 + * It does not include types for WebSearch, CodeInterpreter, FileInputs, MCP, CustomTools. 3783 + * We plan to add those incrementally as model + platform capabilities evolve. 3784 + */ 3785 + type ResponsesInput = { 3786 + background?: boolean | null; 3787 + conversation?: string | ResponseConversationParam | null; 3788 + include?: Array<ResponseIncludable> | null; 3789 + input?: string | ResponseInput; 3790 + instructions?: string | null; 3791 + max_output_tokens?: number | null; 3792 + parallel_tool_calls?: boolean | null; 3793 + previous_response_id?: string | null; 3794 + prompt_cache_key?: string; 3795 + reasoning?: Reasoning | null; 3796 + safety_identifier?: string; 3797 + service_tier?: "auto" | "default" | "flex" | "scale" | "priority" | null; 3798 + stream?: boolean | null; 3799 + stream_options?: StreamOptions | null; 3800 + temperature?: number | null; 3801 + text?: ResponseTextConfig; 3802 + tool_choice?: ToolChoiceOptions | ToolChoiceFunction; 3803 + tools?: Array<Tool>; 3804 + top_p?: number | null; 3805 + truncation?: "auto" | "disabled" | null; 3806 + }; 3807 + type ResponsesOutput = { 3808 + id?: string; 3809 + created_at?: number; 3810 + output_text?: string; 3811 + error?: ResponseError | null; 3812 + incomplete_details?: ResponseIncompleteDetails | null; 3813 + instructions?: string | Array<ResponseInputItem> | null; 3814 + object?: "response"; 3815 + output?: Array<ResponseOutputItem>; 3816 + parallel_tool_calls?: boolean; 3817 + temperature?: number | null; 3818 + tool_choice?: ToolChoiceOptions | ToolChoiceFunction; 3819 + tools?: Array<Tool>; 3820 + top_p?: number | null; 3821 + max_output_tokens?: number | null; 3822 + previous_response_id?: string | null; 3823 + prompt?: ResponsePrompt | null; 3824 + reasoning?: Reasoning | null; 3825 + safety_identifier?: string; 3826 + service_tier?: "auto" | "default" | "flex" | "scale" | "priority" | null; 3827 + status?: ResponseStatus; 3828 + text?: ResponseTextConfig; 3829 + truncation?: "auto" | "disabled" | null; 3830 + usage?: ResponseUsage; 3831 + }; 3832 + type EasyInputMessage = { 3833 + content: string | ResponseInputMessageContentList; 3834 + role: "user" | "assistant" | "system" | "developer"; 3835 + type?: "message"; 3836 + }; 3837 + type ResponsesFunctionTool = { 3838 + name: string; 3839 + parameters: { 3840 + [key: string]: unknown; 3841 + } | null; 3842 + strict: boolean | null; 3843 + type: "function"; 3844 + description?: string | null; 3845 + }; 3846 + type ResponseIncompleteDetails = { 3847 + reason?: "max_output_tokens" | "content_filter"; 3848 + }; 3849 + type ResponsePrompt = { 3850 + id: string; 3851 + variables?: { 3852 + [key: string]: string | ResponseInputText | ResponseInputImage; 3853 + } | null; 3854 + version?: string | null; 3855 + }; 3856 + type Reasoning = { 3857 + effort?: ReasoningEffort | null; 3858 + generate_summary?: "auto" | "concise" | "detailed" | null; 3859 + summary?: "auto" | "concise" | "detailed" | null; 3860 + }; 3861 + type ResponseContent = ResponseInputText | ResponseInputImage | ResponseOutputText | ResponseOutputRefusal | ResponseContentReasoningText; 3862 + type ResponseContentReasoningText = { 3863 + text: string; 3864 + type: "reasoning_text"; 3865 + }; 3866 + type ResponseConversationParam = { 3867 + id: string; 3868 + }; 3869 + type ResponseCreatedEvent = { 3870 + response: Response; 3871 + sequence_number: number; 3872 + type: "response.created"; 3873 + }; 3874 + type ResponseCustomToolCallOutput = { 3875 + call_id: string; 3876 + output: string | Array<ResponseInputText | ResponseInputImage>; 3877 + type: "custom_tool_call_output"; 3878 + id?: string; 3879 + }; 3880 + type ResponseError = { 3881 + 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"; 3882 + message: string; 3883 + }; 3884 + type ResponseErrorEvent = { 3885 + code: string | null; 3886 + message: string; 3887 + param: string | null; 3888 + sequence_number: number; 3889 + type: "error"; 3890 + }; 3891 + type ResponseFailedEvent = { 3892 + response: Response; 3893 + sequence_number: number; 3894 + type: "response.failed"; 3895 + }; 3896 + type ResponseFormatText = { 3897 + type: "text"; 3898 + }; 3899 + type ResponseFormatJSONObject = { 3900 + type: "json_object"; 3901 + }; 3902 + type ResponseFormatTextConfig = ResponseFormatText | ResponseFormatTextJSONSchemaConfig | ResponseFormatJSONObject; 3903 + type ResponseFormatTextJSONSchemaConfig = { 3904 + name: string; 3905 + schema: { 3906 + [key: string]: unknown; 3907 + }; 3908 + type: "json_schema"; 3909 + description?: string; 3910 + strict?: boolean | null; 3911 + }; 3912 + type ResponseFunctionCallArgumentsDeltaEvent = { 3913 + delta: string; 3914 + item_id: string; 3915 + output_index: number; 3916 + sequence_number: number; 3917 + type: "response.function_call_arguments.delta"; 3918 + }; 3919 + type ResponseFunctionCallArgumentsDoneEvent = { 3920 + arguments: string; 3921 + item_id: string; 3922 + name: string; 3923 + output_index: number; 3924 + sequence_number: number; 3925 + type: "response.function_call_arguments.done"; 3926 + }; 3927 + type ResponseFunctionCallOutputItem = ResponseInputTextContent | ResponseInputImageContent; 3928 + type ResponseFunctionCallOutputItemList = Array<ResponseFunctionCallOutputItem>; 3929 + type ResponseFunctionToolCall = { 3930 + arguments: string; 3931 + call_id: string; 3932 + name: string; 3933 + type: "function_call"; 3934 + id?: string; 3935 + status?: "in_progress" | "completed" | "incomplete"; 3936 + }; 3937 + interface ResponseFunctionToolCallItem extends ResponseFunctionToolCall { 3938 + id: string; 3939 + } 3940 + type ResponseFunctionToolCallOutputItem = { 3941 + id: string; 3942 + call_id: string; 3943 + output: string | Array<ResponseInputText | ResponseInputImage>; 3944 + type: "function_call_output"; 3945 + status?: "in_progress" | "completed" | "incomplete"; 3946 + }; 3947 + type ResponseIncludable = "message.input_image.image_url" | "message.output_text.logprobs"; 3948 + type ResponseIncompleteEvent = { 3949 + response: Response; 3950 + sequence_number: number; 3951 + type: "response.incomplete"; 3952 + }; 3953 + type ResponseInput = Array<ResponseInputItem>; 3954 + type ResponseInputContent = ResponseInputText | ResponseInputImage; 3955 + type ResponseInputImage = { 3956 + detail: "low" | "high" | "auto"; 3957 + type: "input_image"; 3958 + /** 3959 + * Base64 encoded image 3960 + */ 3961 + image_url?: string | null; 3962 + }; 3963 + type ResponseInputImageContent = { 3964 + type: "input_image"; 3965 + detail?: "low" | "high" | "auto" | null; 3966 + /** 3967 + * Base64 encoded image 3968 + */ 3969 + image_url?: string | null; 3970 + }; 3971 + type ResponseInputItem = EasyInputMessage | ResponseInputItemMessage | ResponseOutputMessage | ResponseFunctionToolCall | ResponseInputItemFunctionCallOutput | ResponseReasoningItem; 3972 + type ResponseInputItemFunctionCallOutput = { 3973 + call_id: string; 3974 + output: string | ResponseFunctionCallOutputItemList; 3975 + type: "function_call_output"; 3976 + id?: string | null; 3977 + status?: "in_progress" | "completed" | "incomplete" | null; 3978 + }; 3979 + type ResponseInputItemMessage = { 3980 + content: ResponseInputMessageContentList; 3981 + role: "user" | "system" | "developer"; 3982 + status?: "in_progress" | "completed" | "incomplete"; 3983 + type?: "message"; 3984 + }; 3985 + type ResponseInputMessageContentList = Array<ResponseInputContent>; 3986 + type ResponseInputMessageItem = { 3987 + id: string; 3988 + content: ResponseInputMessageContentList; 3989 + role: "user" | "system" | "developer"; 3990 + status?: "in_progress" | "completed" | "incomplete"; 3991 + type?: "message"; 3992 + }; 3993 + type ResponseInputText = { 3994 + text: string; 3995 + type: "input_text"; 3996 + }; 3997 + type ResponseInputTextContent = { 3998 + text: string; 3999 + type: "input_text"; 4000 + }; 4001 + type ResponseItem = ResponseInputMessageItem | ResponseOutputMessage | ResponseFunctionToolCallItem | ResponseFunctionToolCallOutputItem; 4002 + type ResponseOutputItem = ResponseOutputMessage | ResponseFunctionToolCall | ResponseReasoningItem; 4003 + type ResponseOutputItemAddedEvent = { 4004 + item: ResponseOutputItem; 4005 + output_index: number; 4006 + sequence_number: number; 4007 + type: "response.output_item.added"; 4008 + }; 4009 + type ResponseOutputItemDoneEvent = { 4010 + item: ResponseOutputItem; 4011 + output_index: number; 4012 + sequence_number: number; 4013 + type: "response.output_item.done"; 4014 + }; 4015 + type ResponseOutputMessage = { 4016 + id: string; 4017 + content: Array<ResponseOutputText | ResponseOutputRefusal>; 4018 + role: "assistant"; 4019 + status: "in_progress" | "completed" | "incomplete"; 4020 + type: "message"; 4021 + }; 4022 + type ResponseOutputRefusal = { 4023 + refusal: string; 4024 + type: "refusal"; 4025 + }; 4026 + type ResponseOutputText = { 4027 + text: string; 4028 + type: "output_text"; 4029 + logprobs?: Array<Logprob>; 4030 + }; 4031 + type ResponseReasoningItem = { 4032 + id: string; 4033 + summary: Array<ResponseReasoningSummaryItem>; 4034 + type: "reasoning"; 4035 + content?: Array<ResponseReasoningContentItem>; 4036 + encrypted_content?: string | null; 4037 + status?: "in_progress" | "completed" | "incomplete"; 4038 + }; 4039 + type ResponseReasoningSummaryItem = { 4040 + text: string; 4041 + type: "summary_text"; 4042 + }; 4043 + type ResponseReasoningContentItem = { 4044 + text: string; 4045 + type: "reasoning_text"; 4046 + }; 4047 + type ResponseReasoningTextDeltaEvent = { 4048 + content_index: number; 4049 + delta: string; 4050 + item_id: string; 4051 + output_index: number; 4052 + sequence_number: number; 4053 + type: "response.reasoning_text.delta"; 4054 + }; 4055 + type ResponseReasoningTextDoneEvent = { 4056 + content_index: number; 4057 + item_id: string; 4058 + output_index: number; 4059 + sequence_number: number; 4060 + text: string; 4061 + type: "response.reasoning_text.done"; 4062 + }; 4063 + type ResponseRefusalDeltaEvent = { 4064 + content_index: number; 4065 + delta: string; 4066 + item_id: string; 4067 + output_index: number; 4068 + sequence_number: number; 4069 + type: "response.refusal.delta"; 4070 + }; 4071 + type ResponseRefusalDoneEvent = { 4072 + content_index: number; 4073 + item_id: string; 4074 + output_index: number; 4075 + refusal: string; 4076 + sequence_number: number; 4077 + type: "response.refusal.done"; 4078 + }; 4079 + type ResponseStatus = "completed" | "failed" | "in_progress" | "cancelled" | "queued" | "incomplete"; 4080 + type ResponseStreamEvent = ResponseCompletedEvent | ResponseCreatedEvent | ResponseErrorEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseFailedEvent | ResponseIncompleteEvent | ResponseOutputItemAddedEvent | ResponseOutputItemDoneEvent | ResponseReasoningTextDeltaEvent | ResponseReasoningTextDoneEvent | ResponseRefusalDeltaEvent | ResponseRefusalDoneEvent | ResponseTextDeltaEvent | ResponseTextDoneEvent; 4081 + type ResponseCompletedEvent = { 4082 + response: Response; 4083 + sequence_number: number; 4084 + type: "response.completed"; 4085 + }; 4086 + type ResponseTextConfig = { 4087 + format?: ResponseFormatTextConfig; 4088 + verbosity?: "low" | "medium" | "high" | null; 4089 + }; 4090 + type ResponseTextDeltaEvent = { 4091 + content_index: number; 4092 + delta: string; 4093 + item_id: string; 4094 + logprobs: Array<Logprob>; 4095 + output_index: number; 4096 + sequence_number: number; 4097 + type: "response.output_text.delta"; 4098 + }; 4099 + type ResponseTextDoneEvent = { 4100 + content_index: number; 4101 + item_id: string; 4102 + logprobs: Array<Logprob>; 4103 + output_index: number; 4104 + sequence_number: number; 4105 + text: string; 4106 + type: "response.output_text.done"; 4107 + }; 4108 + type Logprob = { 4109 + token: string; 4110 + logprob: number; 4111 + top_logprobs?: Array<TopLogprob>; 4112 + }; 4113 + type TopLogprob = { 4114 + token?: string; 4115 + logprob?: number; 4116 + }; 4117 + type ResponseUsage = { 4118 + input_tokens: number; 4119 + output_tokens: number; 4120 + total_tokens: number; 4121 + }; 4122 + type Tool = ResponsesFunctionTool; 4123 + type ToolChoiceFunction = { 4124 + name: string; 4125 + type: "function"; 4126 + }; 4127 + type ToolChoiceOptions = "none"; 4128 + type ReasoningEffort = "minimal" | "low" | "medium" | "high" | null; 4129 + type StreamOptions = { 4130 + include_obfuscation?: boolean; 4131 + }; 4132 + type Ai_Cf_Baai_Bge_Base_En_V1_5_Input = { 4133 + text: string | string[]; 4134 + /** 4135 + * 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. 4136 + */ 4137 + pooling?: "mean" | "cls"; 4138 + } | { 4139 + /** 4140 + * Batch of the embeddings requests to run using async-queue 4141 + */ 4142 + requests: { 4143 + text: string | string[]; 4144 + /** 4145 + * 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. 4146 + */ 4147 + pooling?: "mean" | "cls"; 4148 + }[]; 4149 + }; 4150 + type Ai_Cf_Baai_Bge_Base_En_V1_5_Output = { 4151 + shape?: number[]; 4152 + /** 4153 + * Embeddings of the requested text values 4154 + */ 4155 + data?: number[][]; 4156 + /** 4157 + * The pooling method used in the embedding process. 4158 + */ 4159 + pooling?: "mean" | "cls"; 4160 + } | Ai_Cf_Baai_Bge_Base_En_V1_5_AsyncResponse; 4161 + interface Ai_Cf_Baai_Bge_Base_En_V1_5_AsyncResponse { 4162 + /** 4163 + * The async request id that can be used to obtain the results. 4164 + */ 4165 + request_id?: string; 4166 + } 4167 + declare abstract class Base_Ai_Cf_Baai_Bge_Base_En_V1_5 { 4168 + inputs: Ai_Cf_Baai_Bge_Base_En_V1_5_Input; 4169 + postProcessedOutputs: Ai_Cf_Baai_Bge_Base_En_V1_5_Output; 4170 + } 4171 + type Ai_Cf_Openai_Whisper_Input = string | { 4172 + /** 4173 + * An array of integers that represent the audio data constrained to 8-bit unsigned integer values 4174 + */ 4175 + audio: number[]; 4176 + }; 4177 + interface Ai_Cf_Openai_Whisper_Output { 4178 + /** 4179 + * The transcription 4180 + */ 4181 + text: string; 4182 + word_count?: number; 4183 + words?: { 4184 + word?: string; 4185 + /** 4186 + * The second this word begins in the recording 4187 + */ 4188 + start?: number; 4189 + /** 4190 + * The ending second when the word completes 4191 + */ 4192 + end?: number; 4193 + }[]; 4194 + vtt?: string; 4195 + } 4196 + declare abstract class Base_Ai_Cf_Openai_Whisper { 4197 + inputs: Ai_Cf_Openai_Whisper_Input; 4198 + postProcessedOutputs: Ai_Cf_Openai_Whisper_Output; 4199 + } 4200 + type Ai_Cf_Meta_M2M100_1_2B_Input = { 4201 + /** 4202 + * The text to be translated 4203 + */ 4204 + text: string; 4205 + /** 4206 + * The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified 4207 + */ 4208 + source_lang?: string; 4209 + /** 4210 + * The language code to translate the text into (e.g., 'es' for Spanish) 4211 + */ 4212 + target_lang: string; 4213 + } | { 4214 + /** 4215 + * Batch of the embeddings requests to run using async-queue 4216 + */ 4217 + requests: { 4218 + /** 4219 + * The text to be translated 4220 + */ 4221 + text: string; 4222 + /** 4223 + * The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified 4224 + */ 4225 + source_lang?: string; 4226 + /** 4227 + * The language code to translate the text into (e.g., 'es' for Spanish) 4228 + */ 4229 + target_lang: string; 4230 + }[]; 4231 + }; 4232 + type Ai_Cf_Meta_M2M100_1_2B_Output = { 4233 + /** 4234 + * The translated text in the target language 4235 + */ 4236 + translated_text?: string; 4237 + } | Ai_Cf_Meta_M2M100_1_2B_AsyncResponse; 4238 + interface Ai_Cf_Meta_M2M100_1_2B_AsyncResponse { 4239 + /** 4240 + * The async request id that can be used to obtain the results. 4241 + */ 4242 + request_id?: string; 4243 + } 4244 + declare abstract class Base_Ai_Cf_Meta_M2M100_1_2B { 4245 + inputs: Ai_Cf_Meta_M2M100_1_2B_Input; 4246 + postProcessedOutputs: Ai_Cf_Meta_M2M100_1_2B_Output; 4247 + } 4248 + type Ai_Cf_Baai_Bge_Small_En_V1_5_Input = { 4249 + text: string | string[]; 4250 + /** 4251 + * 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. 4252 + */ 4253 + pooling?: "mean" | "cls"; 4254 + } | { 4255 + /** 4256 + * Batch of the embeddings requests to run using async-queue 4257 + */ 4258 + requests: { 4259 + text: string | string[]; 4260 + /** 4261 + * 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. 4262 + */ 4263 + pooling?: "mean" | "cls"; 4264 + }[]; 4265 + }; 4266 + type Ai_Cf_Baai_Bge_Small_En_V1_5_Output = { 4267 + shape?: number[]; 4268 + /** 4269 + * Embeddings of the requested text values 4270 + */ 4271 + data?: number[][]; 4272 + /** 4273 + * The pooling method used in the embedding process. 4274 + */ 4275 + pooling?: "mean" | "cls"; 4276 + } | Ai_Cf_Baai_Bge_Small_En_V1_5_AsyncResponse; 4277 + interface Ai_Cf_Baai_Bge_Small_En_V1_5_AsyncResponse { 4278 + /** 4279 + * The async request id that can be used to obtain the results. 4280 + */ 4281 + request_id?: string; 4282 + } 4283 + declare abstract class Base_Ai_Cf_Baai_Bge_Small_En_V1_5 { 4284 + inputs: Ai_Cf_Baai_Bge_Small_En_V1_5_Input; 4285 + postProcessedOutputs: Ai_Cf_Baai_Bge_Small_En_V1_5_Output; 4286 + } 4287 + type Ai_Cf_Baai_Bge_Large_En_V1_5_Input = { 4288 + text: string | string[]; 4289 + /** 4290 + * 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. 4291 + */ 4292 + pooling?: "mean" | "cls"; 4293 + } | { 4294 + /** 4295 + * Batch of the embeddings requests to run using async-queue 4296 + */ 4297 + requests: { 4298 + text: string | string[]; 4299 + /** 4300 + * 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. 4301 + */ 4302 + pooling?: "mean" | "cls"; 4303 + }[]; 4304 + }; 4305 + type Ai_Cf_Baai_Bge_Large_En_V1_5_Output = { 4306 + shape?: number[]; 4307 + /** 4308 + * Embeddings of the requested text values 4309 + */ 4310 + data?: number[][]; 4311 + /** 4312 + * The pooling method used in the embedding process. 4313 + */ 4314 + pooling?: "mean" | "cls"; 4315 + } | Ai_Cf_Baai_Bge_Large_En_V1_5_AsyncResponse; 4316 + interface Ai_Cf_Baai_Bge_Large_En_V1_5_AsyncResponse { 4317 + /** 4318 + * The async request id that can be used to obtain the results. 4319 + */ 4320 + request_id?: string; 4321 + } 4322 + declare abstract class Base_Ai_Cf_Baai_Bge_Large_En_V1_5 { 4323 + inputs: Ai_Cf_Baai_Bge_Large_En_V1_5_Input; 4324 + postProcessedOutputs: Ai_Cf_Baai_Bge_Large_En_V1_5_Output; 4325 + } 4326 + type Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input = string | { 4327 + /** 4328 + * The input text prompt for the model to generate a response. 4329 + */ 4330 + prompt?: string; 4331 + /** 4332 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 4333 + */ 4334 + raw?: boolean; 4335 + /** 4336 + * 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. 4337 + */ 4338 + top_p?: number; 4339 + /** 4340 + * 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. 4341 + */ 4342 + top_k?: number; 4343 + /** 4344 + * Random seed for reproducibility of the generation. 4345 + */ 4346 + seed?: number; 4347 + /** 4348 + * Penalty for repeated tokens; higher values discourage repetition. 4349 + */ 4350 + repetition_penalty?: number; 4351 + /** 4352 + * Decreases the likelihood of the model repeating the same lines verbatim. 4353 + */ 4354 + frequency_penalty?: number; 4355 + /** 4356 + * Increases the likelihood of the model introducing new topics. 4357 + */ 4358 + presence_penalty?: number; 4359 + image: number[] | (string & NonNullable<unknown>); 4360 + /** 4361 + * The maximum number of tokens to generate in the response. 4362 + */ 4363 + max_tokens?: number; 4364 + }; 4365 + interface Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output { 4366 + description?: string; 4367 + } 4368 + declare abstract class Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M { 4369 + inputs: Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input; 4370 + postProcessedOutputs: Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output; 4371 + } 4372 + type Ai_Cf_Openai_Whisper_Tiny_En_Input = string | { 4373 + /** 4374 + * An array of integers that represent the audio data constrained to 8-bit unsigned integer values 4375 + */ 4376 + audio: number[]; 4377 + }; 4378 + interface Ai_Cf_Openai_Whisper_Tiny_En_Output { 4379 + /** 4380 + * The transcription 4381 + */ 4382 + text: string; 4383 + word_count?: number; 4384 + words?: { 4385 + word?: string; 4386 + /** 4387 + * The second this word begins in the recording 4388 + */ 4389 + start?: number; 4390 + /** 4391 + * The ending second when the word completes 4392 + */ 4393 + end?: number; 4394 + }[]; 4395 + vtt?: string; 4396 + } 4397 + declare abstract class Base_Ai_Cf_Openai_Whisper_Tiny_En { 4398 + inputs: Ai_Cf_Openai_Whisper_Tiny_En_Input; 4399 + postProcessedOutputs: Ai_Cf_Openai_Whisper_Tiny_En_Output; 4400 + } 4401 + interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input { 4402 + /** 4403 + * Base64 encoded value of the audio data. 4404 + */ 4405 + audio: string; 4406 + /** 4407 + * Supported tasks are 'translate' or 'transcribe'. 4408 + */ 4409 + task?: string; 4410 + /** 4411 + * The language of the audio being transcribed or translated. 4412 + */ 4413 + language?: string; 4414 + /** 4415 + * Preprocess the audio with a voice activity detection model. 4416 + */ 4417 + vad_filter?: boolean; 4418 + /** 4419 + * A text prompt to help provide context to the model on the contents of the audio. 4420 + */ 4421 + initial_prompt?: string; 4422 + /** 4423 + * The prefix it appended the the beginning of the output of the transcription and can guide the transcription result. 4424 + */ 4425 + prefix?: string; 4426 + } 4427 + interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output { 4428 + transcription_info?: { 4429 + /** 4430 + * The language of the audio being transcribed or translated. 4431 + */ 4432 + language?: string; 4433 + /** 4434 + * The confidence level or probability of the detected language being accurate, represented as a decimal between 0 and 1. 4435 + */ 4436 + language_probability?: number; 4437 + /** 4438 + * The total duration of the original audio file, in seconds. 4439 + */ 4440 + duration?: number; 4441 + /** 4442 + * The duration of the audio after applying Voice Activity Detection (VAD) to remove silent or irrelevant sections, in seconds. 4443 + */ 4444 + duration_after_vad?: number; 4445 + }; 4446 + /** 4447 + * The complete transcription of the audio. 4448 + */ 4449 + text: string; 4450 + /** 4451 + * The total number of words in the transcription. 4452 + */ 4453 + word_count?: number; 4454 + segments?: { 4455 + /** 4456 + * The starting time of the segment within the audio, in seconds. 4457 + */ 4458 + start?: number; 4459 + /** 4460 + * The ending time of the segment within the audio, in seconds. 4461 + */ 4462 + end?: number; 4463 + /** 4464 + * The transcription of the segment. 4465 + */ 4466 + text?: string; 4467 + /** 4468 + * The temperature used in the decoding process, controlling randomness in predictions. Lower values result in more deterministic outputs. 4469 + */ 4470 + temperature?: number; 4471 + /** 4472 + * The average log probability of the predictions for the words in this segment, indicating overall confidence. 4473 + */ 4474 + avg_logprob?: number; 4475 + /** 4476 + * The compression ratio of the input to the output, measuring how much the text was compressed during the transcription process. 4477 + */ 4478 + compression_ratio?: number; 4479 + /** 4480 + * The probability that the segment contains no speech, represented as a decimal between 0 and 1. 4481 + */ 4482 + no_speech_prob?: number; 4483 + words?: { 4484 + /** 4485 + * The individual word transcribed from the audio. 4486 + */ 4487 + word?: string; 4488 + /** 4489 + * The starting time of the word within the audio, in seconds. 4490 + */ 4491 + start?: number; 4492 + /** 4493 + * The ending time of the word within the audio, in seconds. 4494 + */ 4495 + end?: number; 4496 + }[]; 4497 + }[]; 4498 + /** 4499 + * The transcription in WebVTT format, which includes timing and text information for use in subtitles. 4500 + */ 4501 + vtt?: string; 4502 + } 4503 + declare abstract class Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo { 4504 + inputs: Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input; 4505 + postProcessedOutputs: Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output; 4506 + } 4507 + type Ai_Cf_Baai_Bge_M3_Input = Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts | Ai_Cf_Baai_Bge_M3_Input_Embedding | { 4508 + /** 4509 + * Batch of the embeddings requests to run using async-queue 4510 + */ 4511 + requests: (Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts_1 | Ai_Cf_Baai_Bge_M3_Input_Embedding_1)[]; 4512 + }; 4513 + interface Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts { 4514 + /** 4515 + * A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts 4516 + */ 4517 + query?: string; 4518 + /** 4519 + * List of provided contexts. Note that the index in this array is important, as the response will refer to it. 4520 + */ 4521 + contexts: { 4522 + /** 4523 + * One of the provided context content 4524 + */ 4525 + text?: string; 4526 + }[]; 4527 + /** 4528 + * When provided with too long context should the model error out or truncate the context to fit? 4529 + */ 4530 + truncate_inputs?: boolean; 4531 + } 4532 + interface Ai_Cf_Baai_Bge_M3_Input_Embedding { 4533 + text: string | string[]; 4534 + /** 4535 + * When provided with too long context should the model error out or truncate the context to fit? 4536 + */ 4537 + truncate_inputs?: boolean; 4538 + } 4539 + interface Ai_Cf_Baai_Bge_M3_Input_QueryAnd_Contexts_1 { 4540 + /** 4541 + * A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts 4542 + */ 4543 + query?: string; 4544 + /** 4545 + * List of provided contexts. Note that the index in this array is important, as the response will refer to it. 4546 + */ 4547 + contexts: { 4548 + /** 4549 + * One of the provided context content 4550 + */ 4551 + text?: string; 4552 + }[]; 4553 + /** 4554 + * When provided with too long context should the model error out or truncate the context to fit? 4555 + */ 4556 + truncate_inputs?: boolean; 4557 + } 4558 + interface Ai_Cf_Baai_Bge_M3_Input_Embedding_1 { 4559 + text: string | string[]; 4560 + /** 4561 + * When provided with too long context should the model error out or truncate the context to fit? 4562 + */ 4563 + truncate_inputs?: boolean; 4564 + } 4565 + 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; 4566 + interface Ai_Cf_Baai_Bge_M3_Ouput_Query { 4567 + response?: { 4568 + /** 4569 + * Index of the context in the request 4570 + */ 4571 + id?: number; 4572 + /** 4573 + * Score of the context under the index. 4574 + */ 4575 + score?: number; 4576 + }[]; 4577 + } 4578 + interface Ai_Cf_Baai_Bge_M3_Output_EmbeddingFor_Contexts { 4579 + response?: number[][]; 4580 + shape?: number[]; 4581 + /** 4582 + * The pooling method used in the embedding process. 4583 + */ 4584 + pooling?: "mean" | "cls"; 4585 + } 4586 + interface Ai_Cf_Baai_Bge_M3_Ouput_Embedding { 4587 + shape?: number[]; 4588 + /** 4589 + * Embeddings of the requested text values 4590 + */ 4591 + data?: number[][]; 4592 + /** 4593 + * The pooling method used in the embedding process. 4594 + */ 4595 + pooling?: "mean" | "cls"; 4596 + } 4597 + interface Ai_Cf_Baai_Bge_M3_AsyncResponse { 4598 + /** 4599 + * The async request id that can be used to obtain the results. 4600 + */ 4601 + request_id?: string; 4602 + } 4603 + declare abstract class Base_Ai_Cf_Baai_Bge_M3 { 4604 + inputs: Ai_Cf_Baai_Bge_M3_Input; 4605 + postProcessedOutputs: Ai_Cf_Baai_Bge_M3_Output; 4606 + } 4607 + interface Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input { 4608 + /** 4609 + * A text description of the image you want to generate. 4610 + */ 4611 + prompt: string; 4612 + /** 4613 + * The number of diffusion steps; higher values can improve quality but take longer. 4614 + */ 4615 + steps?: number; 4616 + } 4617 + interface Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output { 4618 + /** 4619 + * The generated image in Base64 format. 4620 + */ 4621 + image?: string; 4622 + } 4623 + declare abstract class Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell { 4624 + inputs: Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input; 4625 + postProcessedOutputs: Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output; 4626 + } 4627 + 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; 4628 + interface Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Prompt { 4629 + /** 4630 + * The input text prompt for the model to generate a response. 4631 + */ 4632 + prompt: string; 4633 + image?: number[] | (string & NonNullable<unknown>); 4634 + /** 4635 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 4636 + */ 4637 + raw?: boolean; 4638 + /** 4639 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 4640 + */ 4641 + stream?: boolean; 4642 + /** 4643 + * The maximum number of tokens to generate in the response. 4644 + */ 4645 + max_tokens?: number; 4646 + /** 4647 + * Controls the randomness of the output; higher values produce more random results. 4648 + */ 4649 + temperature?: number; 4650 + /** 4651 + * 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. 4652 + */ 4653 + top_p?: number; 4654 + /** 4655 + * 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. 4656 + */ 4657 + top_k?: number; 4658 + /** 4659 + * Random seed for reproducibility of the generation. 4660 + */ 4661 + seed?: number; 4662 + /** 4663 + * Penalty for repeated tokens; higher values discourage repetition. 4664 + */ 4665 + repetition_penalty?: number; 4666 + /** 4667 + * Decreases the likelihood of the model repeating the same lines verbatim. 4668 + */ 4669 + frequency_penalty?: number; 4670 + /** 4671 + * Increases the likelihood of the model introducing new topics. 4672 + */ 4673 + presence_penalty?: number; 4674 + /** 4675 + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 4676 + */ 4677 + lora?: string; 4678 + } 4679 + interface Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Messages { 4680 + /** 4681 + * An array of message objects representing the conversation history. 4682 + */ 4683 + messages: { 4684 + /** 4685 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 4686 + */ 4687 + role?: string; 4688 + /** 4689 + * 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 4690 + */ 4691 + tool_call_id?: string; 4692 + content?: string | { 4693 + /** 4694 + * Type of the content provided 4695 + */ 4696 + type?: string; 4697 + text?: string; 4698 + image_url?: { 4699 + /** 4700 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 4701 + */ 4702 + url?: string; 4703 + }; 4704 + }[] | { 4705 + /** 4706 + * Type of the content provided 4707 + */ 4708 + type?: string; 4709 + text?: string; 4710 + image_url?: { 4711 + /** 4712 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 4713 + */ 4714 + url?: string; 4715 + }; 4716 + }; 4717 + }[]; 4718 + image?: number[] | (string & NonNullable<unknown>); 4719 + functions?: { 4720 + name: string; 4721 + code: string; 4722 + }[]; 4723 + /** 4724 + * A list of tools available for the assistant to use. 4725 + */ 4726 + tools?: ({ 4727 + /** 4728 + * The name of the tool. More descriptive the better. 4729 + */ 4730 + name: string; 4731 + /** 4732 + * A brief description of what the tool does. 4733 + */ 4734 + description: string; 4735 + /** 4736 + * Schema defining the parameters accepted by the tool. 4737 + */ 4738 + parameters: { 4739 + /** 4740 + * The type of the parameters object (usually 'object'). 4741 + */ 4742 + type: string; 4743 + /** 4744 + * List of required parameter names. 4745 + */ 4746 + required?: string[]; 4747 + /** 4748 + * Definitions of each parameter. 4749 + */ 4750 + properties: { 4751 + [k: string]: { 4752 + /** 4753 + * The data type of the parameter. 4754 + */ 4755 + type: string; 4756 + /** 4757 + * A description of the expected parameter. 4758 + */ 4759 + description: string; 4760 + }; 4761 + }; 4762 + }; 4763 + } | { 4764 + /** 4765 + * Specifies the type of tool (e.g., 'function'). 4766 + */ 4767 + type: string; 4768 + /** 4769 + * Details of the function tool. 4770 + */ 4771 + function: { 4772 + /** 4773 + * The name of the function. 4774 + */ 4775 + name: string; 4776 + /** 4777 + * A brief description of what the function does. 4778 + */ 4779 + description: string; 4780 + /** 4781 + * Schema defining the parameters accepted by the function. 4782 + */ 4783 + parameters: { 4784 + /** 4785 + * The type of the parameters object (usually 'object'). 4786 + */ 4787 + type: string; 4788 + /** 4789 + * List of required parameter names. 4790 + */ 4791 + required?: string[]; 4792 + /** 4793 + * Definitions of each parameter. 4794 + */ 4795 + properties: { 4796 + [k: string]: { 4797 + /** 4798 + * The data type of the parameter. 4799 + */ 4800 + type: string; 4801 + /** 4802 + * A description of the expected parameter. 4803 + */ 4804 + description: string; 4805 + }; 4806 + }; 4807 + }; 4808 + }; 4809 + })[]; 4810 + /** 4811 + * If true, the response will be streamed back incrementally. 4812 + */ 4813 + stream?: boolean; 4814 + /** 4815 + * The maximum number of tokens to generate in the response. 4816 + */ 4817 + max_tokens?: number; 4818 + /** 4819 + * Controls the randomness of the output; higher values produce more random results. 4820 + */ 4821 + temperature?: number; 4822 + /** 4823 + * 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. 4824 + */ 4825 + top_p?: number; 4826 + /** 4827 + * 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. 4828 + */ 4829 + top_k?: number; 4830 + /** 4831 + * Random seed for reproducibility of the generation. 4832 + */ 4833 + seed?: number; 4834 + /** 4835 + * Penalty for repeated tokens; higher values discourage repetition. 4836 + */ 4837 + repetition_penalty?: number; 4838 + /** 4839 + * Decreases the likelihood of the model repeating the same lines verbatim. 4840 + */ 4841 + frequency_penalty?: number; 4842 + /** 4843 + * Increases the likelihood of the model introducing new topics. 4844 + */ 4845 + presence_penalty?: number; 4846 + } 4847 + type Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output = { 4848 + /** 4849 + * The generated text response from the model 4850 + */ 4851 + response?: string; 4852 + /** 4853 + * An array of tool calls requests made during the response generation 4854 + */ 4855 + tool_calls?: { 4856 + /** 4857 + * The arguments passed to be passed to the tool call request 4858 + */ 4859 + arguments?: object; 4860 + /** 4861 + * The name of the tool to be called 4862 + */ 4863 + name?: string; 4864 + }[]; 4865 + }; 4866 + declare abstract class Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct { 4867 + inputs: Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input; 4868 + postProcessedOutputs: Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output; 4869 + } 4870 + 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; 4871 + interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt { 4872 + /** 4873 + * The input text prompt for the model to generate a response. 4874 + */ 4875 + prompt: string; 4876 + /** 4877 + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 4878 + */ 4879 + lora?: string; 4880 + response_format?: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode; 4881 + /** 4882 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 4883 + */ 4884 + raw?: boolean; 4885 + /** 4886 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 4887 + */ 4888 + stream?: boolean; 4889 + /** 4890 + * The maximum number of tokens to generate in the response. 4891 + */ 4892 + max_tokens?: number; 4893 + /** 4894 + * Controls the randomness of the output; higher values produce more random results. 4895 + */ 4896 + temperature?: number; 4897 + /** 4898 + * 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. 4899 + */ 4900 + top_p?: number; 4901 + /** 4902 + * 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. 4903 + */ 4904 + top_k?: number; 4905 + /** 4906 + * Random seed for reproducibility of the generation. 4907 + */ 4908 + seed?: number; 4909 + /** 4910 + * Penalty for repeated tokens; higher values discourage repetition. 4911 + */ 4912 + repetition_penalty?: number; 4913 + /** 4914 + * Decreases the likelihood of the model repeating the same lines verbatim. 4915 + */ 4916 + frequency_penalty?: number; 4917 + /** 4918 + * Increases the likelihood of the model introducing new topics. 4919 + */ 4920 + presence_penalty?: number; 4921 + } 4922 + interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode { 4923 + type?: "json_object" | "json_schema"; 4924 + json_schema?: unknown; 4925 + } 4926 + interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages { 4927 + /** 4928 + * An array of message objects representing the conversation history. 4929 + */ 4930 + messages: { 4931 + /** 4932 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 4933 + */ 4934 + role: string; 4935 + /** 4936 + * The content of the message as a string. 4937 + */ 4938 + content: string; 4939 + }[]; 4940 + functions?: { 4941 + name: string; 4942 + code: string; 4943 + }[]; 4944 + /** 4945 + * A list of tools available for the assistant to use. 4946 + */ 4947 + tools?: ({ 4948 + /** 4949 + * The name of the tool. More descriptive the better. 4950 + */ 4951 + name: string; 4952 + /** 4953 + * A brief description of what the tool does. 4954 + */ 4955 + description: string; 4956 + /** 4957 + * Schema defining the parameters accepted by the tool. 4958 + */ 4959 + parameters: { 4960 + /** 4961 + * The type of the parameters object (usually 'object'). 4962 + */ 4963 + type: string; 4964 + /** 4965 + * List of required parameter names. 4966 + */ 4967 + required?: string[]; 4968 + /** 4969 + * Definitions of each parameter. 4970 + */ 4971 + properties: { 4972 + [k: string]: { 4973 + /** 4974 + * The data type of the parameter. 4975 + */ 4976 + type: string; 4977 + /** 4978 + * A description of the expected parameter. 4979 + */ 4980 + description: string; 4981 + }; 4982 + }; 4983 + }; 4984 + } | { 4985 + /** 4986 + * Specifies the type of tool (e.g., 'function'). 4987 + */ 4988 + type: string; 4989 + /** 4990 + * Details of the function tool. 4991 + */ 4992 + function: { 4993 + /** 4994 + * The name of the function. 4995 + */ 4996 + name: string; 4997 + /** 4998 + * A brief description of what the function does. 4999 + */ 5000 + description: string; 5001 + /** 5002 + * Schema defining the parameters accepted by the function. 5003 + */ 5004 + parameters: { 5005 + /** 5006 + * The type of the parameters object (usually 'object'). 5007 + */ 5008 + type: string; 5009 + /** 5010 + * List of required parameter names. 5011 + */ 5012 + required?: string[]; 5013 + /** 5014 + * Definitions of each parameter. 5015 + */ 5016 + properties: { 5017 + [k: string]: { 5018 + /** 5019 + * The data type of the parameter. 5020 + */ 5021 + type: string; 5022 + /** 5023 + * A description of the expected parameter. 5024 + */ 5025 + description: string; 5026 + }; 5027 + }; 5028 + }; 5029 + }; 5030 + })[]; 5031 + response_format?: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_1; 5032 + /** 5033 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5034 + */ 5035 + raw?: boolean; 5036 + /** 5037 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5038 + */ 5039 + stream?: boolean; 5040 + /** 5041 + * The maximum number of tokens to generate in the response. 5042 + */ 5043 + max_tokens?: number; 5044 + /** 5045 + * Controls the randomness of the output; higher values produce more random results. 5046 + */ 5047 + temperature?: number; 5048 + /** 5049 + * 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. 5050 + */ 5051 + top_p?: number; 5052 + /** 5053 + * 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. 5054 + */ 5055 + top_k?: number; 5056 + /** 5057 + * Random seed for reproducibility of the generation. 5058 + */ 5059 + seed?: number; 5060 + /** 5061 + * Penalty for repeated tokens; higher values discourage repetition. 5062 + */ 5063 + repetition_penalty?: number; 5064 + /** 5065 + * Decreases the likelihood of the model repeating the same lines verbatim. 5066 + */ 5067 + frequency_penalty?: number; 5068 + /** 5069 + * Increases the likelihood of the model introducing new topics. 5070 + */ 5071 + presence_penalty?: number; 5072 + } 5073 + interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_1 { 5074 + type?: "json_object" | "json_schema"; 5075 + json_schema?: unknown; 5076 + } 5077 + interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Async_Batch { 5078 + requests?: { 5079 + /** 5080 + * 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. 5081 + */ 5082 + external_reference?: string; 5083 + /** 5084 + * Prompt for the text generation model 5085 + */ 5086 + prompt?: string; 5087 + /** 5088 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5089 + */ 5090 + stream?: boolean; 5091 + /** 5092 + * The maximum number of tokens to generate in the response. 5093 + */ 5094 + max_tokens?: number; 5095 + /** 5096 + * Controls the randomness of the output; higher values produce more random results. 5097 + */ 5098 + temperature?: number; 5099 + /** 5100 + * 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. 5101 + */ 5102 + top_p?: number; 5103 + /** 5104 + * Random seed for reproducibility of the generation. 5105 + */ 5106 + seed?: number; 5107 + /** 5108 + * Penalty for repeated tokens; higher values discourage repetition. 5109 + */ 5110 + repetition_penalty?: number; 5111 + /** 5112 + * Decreases the likelihood of the model repeating the same lines verbatim. 5113 + */ 5114 + frequency_penalty?: number; 5115 + /** 5116 + * Increases the likelihood of the model introducing new topics. 5117 + */ 5118 + presence_penalty?: number; 5119 + response_format?: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_2; 5120 + }[]; 5121 + } 5122 + interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_JSON_Mode_2 { 5123 + type?: "json_object" | "json_schema"; 5124 + json_schema?: unknown; 5125 + } 5126 + type Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output = { 5127 + /** 5128 + * The generated text response from the model 5129 + */ 5130 + response: string; 5131 + /** 5132 + * Usage statistics for the inference request 5133 + */ 5134 + usage?: { 5135 + /** 5136 + * Total number of tokens in input 5137 + */ 5138 + prompt_tokens?: number; 5139 + /** 5140 + * Total number of tokens in output 5141 + */ 5142 + completion_tokens?: number; 5143 + /** 5144 + * Total number of input and output tokens 5145 + */ 5146 + total_tokens?: number; 5147 + }; 5148 + /** 5149 + * An array of tool calls requests made during the response generation 5150 + */ 5151 + tool_calls?: { 5152 + /** 5153 + * The arguments passed to be passed to the tool call request 5154 + */ 5155 + arguments?: object; 5156 + /** 5157 + * The name of the tool to be called 5158 + */ 5159 + name?: string; 5160 + }[]; 5161 + } | string | Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_AsyncResponse; 5162 + interface Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_AsyncResponse { 5163 + /** 5164 + * The async request id that can be used to obtain the results. 5165 + */ 5166 + request_id?: string; 5167 + } 5168 + declare abstract class Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast { 5169 + inputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input; 5170 + postProcessedOutputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output; 5171 + } 5172 + interface Ai_Cf_Meta_Llama_Guard_3_8B_Input { 5173 + /** 5174 + * An array of message objects representing the conversation history. 5175 + */ 5176 + messages: { 5177 + /** 5178 + * The role of the message sender must alternate between 'user' and 'assistant'. 5179 + */ 5180 + role: "user" | "assistant"; 5181 + /** 5182 + * The content of the message as a string. 5183 + */ 5184 + content: string; 5185 + }[]; 5186 + /** 5187 + * The maximum number of tokens to generate in the response. 5188 + */ 5189 + max_tokens?: number; 5190 + /** 5191 + * Controls the randomness of the output; higher values produce more random results. 5192 + */ 5193 + temperature?: number; 5194 + /** 5195 + * Dictate the output format of the generated response. 5196 + */ 5197 + response_format?: { 5198 + /** 5199 + * Set to json_object to process and output generated text as JSON. 5200 + */ 5201 + type?: string; 5202 + }; 5203 + } 5204 + interface Ai_Cf_Meta_Llama_Guard_3_8B_Output { 5205 + response?: string | { 5206 + /** 5207 + * Whether the conversation is safe or not. 5208 + */ 5209 + safe?: boolean; 5210 + /** 5211 + * A list of what hazard categories predicted for the conversation, if the conversation is deemed unsafe. 5212 + */ 5213 + categories?: string[]; 5214 + }; 5215 + /** 5216 + * Usage statistics for the inference request 5217 + */ 5218 + usage?: { 5219 + /** 5220 + * Total number of tokens in input 5221 + */ 5222 + prompt_tokens?: number; 5223 + /** 5224 + * Total number of tokens in output 5225 + */ 5226 + completion_tokens?: number; 5227 + /** 5228 + * Total number of input and output tokens 5229 + */ 5230 + total_tokens?: number; 5231 + }; 5232 + } 5233 + declare abstract class Base_Ai_Cf_Meta_Llama_Guard_3_8B { 5234 + inputs: Ai_Cf_Meta_Llama_Guard_3_8B_Input; 5235 + postProcessedOutputs: Ai_Cf_Meta_Llama_Guard_3_8B_Output; 5236 + } 5237 + interface Ai_Cf_Baai_Bge_Reranker_Base_Input { 5238 + /** 5239 + * A query you wish to perform against the provided contexts. 5240 + */ 5241 + /** 5242 + * Number of returned results starting with the best score. 5243 + */ 5244 + top_k?: number; 5245 + /** 5246 + * List of provided contexts. Note that the index in this array is important, as the response will refer to it. 5247 + */ 5248 + contexts: { 5249 + /** 5250 + * One of the provided context content 5251 + */ 5252 + text?: string; 5253 + }[]; 5254 + } 5255 + interface Ai_Cf_Baai_Bge_Reranker_Base_Output { 5256 + response?: { 5257 + /** 5258 + * Index of the context in the request 5259 + */ 5260 + id?: number; 5261 + /** 5262 + * Score of the context under the index. 5263 + */ 5264 + score?: number; 5265 + }[]; 5266 + } 5267 + declare abstract class Base_Ai_Cf_Baai_Bge_Reranker_Base { 5268 + inputs: Ai_Cf_Baai_Bge_Reranker_Base_Input; 5269 + postProcessedOutputs: Ai_Cf_Baai_Bge_Reranker_Base_Output; 5270 + } 5271 + 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; 5272 + interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Prompt { 5273 + /** 5274 + * The input text prompt for the model to generate a response. 5275 + */ 5276 + prompt: string; 5277 + /** 5278 + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 5279 + */ 5280 + lora?: string; 5281 + response_format?: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode; 5282 + /** 5283 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5284 + */ 5285 + raw?: boolean; 5286 + /** 5287 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5288 + */ 5289 + stream?: boolean; 5290 + /** 5291 + * The maximum number of tokens to generate in the response. 5292 + */ 5293 + max_tokens?: number; 5294 + /** 5295 + * Controls the randomness of the output; higher values produce more random results. 5296 + */ 5297 + temperature?: number; 5298 + /** 5299 + * 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. 5300 + */ 5301 + top_p?: number; 5302 + /** 5303 + * 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. 5304 + */ 5305 + top_k?: number; 5306 + /** 5307 + * Random seed for reproducibility of the generation. 5308 + */ 5309 + seed?: number; 5310 + /** 5311 + * Penalty for repeated tokens; higher values discourage repetition. 5312 + */ 5313 + repetition_penalty?: number; 5314 + /** 5315 + * Decreases the likelihood of the model repeating the same lines verbatim. 5316 + */ 5317 + frequency_penalty?: number; 5318 + /** 5319 + * Increases the likelihood of the model introducing new topics. 5320 + */ 5321 + presence_penalty?: number; 5322 + } 5323 + interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode { 5324 + type?: "json_object" | "json_schema"; 5325 + json_schema?: unknown; 5326 + } 5327 + interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Messages { 5328 + /** 5329 + * An array of message objects representing the conversation history. 5330 + */ 5331 + messages: { 5332 + /** 5333 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 5334 + */ 5335 + role: string; 5336 + /** 5337 + * The content of the message as a string. 5338 + */ 5339 + content: string; 5340 + }[]; 5341 + functions?: { 5342 + name: string; 5343 + code: string; 5344 + }[]; 5345 + /** 5346 + * A list of tools available for the assistant to use. 5347 + */ 5348 + tools?: ({ 5349 + /** 5350 + * The name of the tool. More descriptive the better. 5351 + */ 5352 + name: string; 5353 + /** 5354 + * A brief description of what the tool does. 5355 + */ 5356 + description: string; 5357 + /** 5358 + * Schema defining the parameters accepted by the tool. 5359 + */ 5360 + parameters: { 5361 + /** 5362 + * The type of the parameters object (usually 'object'). 5363 + */ 5364 + type: string; 5365 + /** 5366 + * List of required parameter names. 5367 + */ 5368 + required?: string[]; 5369 + /** 5370 + * Definitions of each parameter. 5371 + */ 5372 + properties: { 5373 + [k: string]: { 5374 + /** 5375 + * The data type of the parameter. 5376 + */ 5377 + type: string; 5378 + /** 5379 + * A description of the expected parameter. 5380 + */ 5381 + description: string; 5382 + }; 5383 + }; 5384 + }; 5385 + } | { 5386 + /** 5387 + * Specifies the type of tool (e.g., 'function'). 5388 + */ 5389 + type: string; 5390 + /** 5391 + * Details of the function tool. 5392 + */ 5393 + function: { 5394 + /** 5395 + * The name of the function. 5396 + */ 5397 + name: string; 5398 + /** 5399 + * A brief description of what the function does. 5400 + */ 5401 + description: string; 5402 + /** 5403 + * Schema defining the parameters accepted by the function. 5404 + */ 5405 + parameters: { 5406 + /** 5407 + * The type of the parameters object (usually 'object'). 5408 + */ 5409 + type: string; 5410 + /** 5411 + * List of required parameter names. 5412 + */ 5413 + required?: string[]; 5414 + /** 5415 + * Definitions of each parameter. 5416 + */ 5417 + properties: { 5418 + [k: string]: { 5419 + /** 5420 + * The data type of the parameter. 5421 + */ 5422 + type: string; 5423 + /** 5424 + * A description of the expected parameter. 5425 + */ 5426 + description: string; 5427 + }; 5428 + }; 5429 + }; 5430 + }; 5431 + })[]; 5432 + response_format?: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode_1; 5433 + /** 5434 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5435 + */ 5436 + raw?: boolean; 5437 + /** 5438 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5439 + */ 5440 + stream?: boolean; 5441 + /** 5442 + * The maximum number of tokens to generate in the response. 5443 + */ 5444 + max_tokens?: number; 5445 + /** 5446 + * Controls the randomness of the output; higher values produce more random results. 5447 + */ 5448 + temperature?: number; 5449 + /** 5450 + * 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. 5451 + */ 5452 + top_p?: number; 5453 + /** 5454 + * 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. 5455 + */ 5456 + top_k?: number; 5457 + /** 5458 + * Random seed for reproducibility of the generation. 5459 + */ 5460 + seed?: number; 5461 + /** 5462 + * Penalty for repeated tokens; higher values discourage repetition. 5463 + */ 5464 + repetition_penalty?: number; 5465 + /** 5466 + * Decreases the likelihood of the model repeating the same lines verbatim. 5467 + */ 5468 + frequency_penalty?: number; 5469 + /** 5470 + * Increases the likelihood of the model introducing new topics. 5471 + */ 5472 + presence_penalty?: number; 5473 + } 5474 + interface Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_JSON_Mode_1 { 5475 + type?: "json_object" | "json_schema"; 5476 + json_schema?: unknown; 5477 + } 5478 + type Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output = { 5479 + /** 5480 + * The generated text response from the model 5481 + */ 5482 + response: string; 5483 + /** 5484 + * Usage statistics for the inference request 5485 + */ 5486 + usage?: { 5487 + /** 5488 + * Total number of tokens in input 5489 + */ 5490 + prompt_tokens?: number; 5491 + /** 5492 + * Total number of tokens in output 5493 + */ 5494 + completion_tokens?: number; 5495 + /** 5496 + * Total number of input and output tokens 5497 + */ 5498 + total_tokens?: number; 5499 + }; 5500 + /** 5501 + * An array of tool calls requests made during the response generation 5502 + */ 5503 + tool_calls?: { 5504 + /** 5505 + * The arguments passed to be passed to the tool call request 5506 + */ 5507 + arguments?: object; 5508 + /** 5509 + * The name of the tool to be called 5510 + */ 5511 + name?: string; 5512 + }[]; 5513 + }; 5514 + declare abstract class Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct { 5515 + inputs: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input; 5516 + postProcessedOutputs: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output; 5517 + } 5518 + type Ai_Cf_Qwen_Qwq_32B_Input = Ai_Cf_Qwen_Qwq_32B_Prompt | Ai_Cf_Qwen_Qwq_32B_Messages; 5519 + interface Ai_Cf_Qwen_Qwq_32B_Prompt { 5520 + /** 5521 + * The input text prompt for the model to generate a response. 5522 + */ 5523 + prompt: string; 5524 + /** 5525 + * JSON schema that should be fulfilled for the response. 5526 + */ 5527 + guided_json?: object; 5528 + /** 5529 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5530 + */ 5531 + raw?: boolean; 5532 + /** 5533 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5534 + */ 5535 + stream?: boolean; 5536 + /** 5537 + * The maximum number of tokens to generate in the response. 5538 + */ 5539 + max_tokens?: number; 5540 + /** 5541 + * Controls the randomness of the output; higher values produce more random results. 5542 + */ 5543 + temperature?: number; 5544 + /** 5545 + * 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. 5546 + */ 5547 + top_p?: number; 5548 + /** 5549 + * 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. 5550 + */ 5551 + top_k?: number; 5552 + /** 5553 + * Random seed for reproducibility of the generation. 5554 + */ 5555 + seed?: number; 5556 + /** 5557 + * Penalty for repeated tokens; higher values discourage repetition. 5558 + */ 5559 + repetition_penalty?: number; 5560 + /** 5561 + * Decreases the likelihood of the model repeating the same lines verbatim. 5562 + */ 5563 + frequency_penalty?: number; 5564 + /** 5565 + * Increases the likelihood of the model introducing new topics. 5566 + */ 5567 + presence_penalty?: number; 5568 + } 5569 + interface Ai_Cf_Qwen_Qwq_32B_Messages { 5570 + /** 5571 + * An array of message objects representing the conversation history. 5572 + */ 5573 + messages: { 5574 + /** 5575 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 5576 + */ 5577 + role?: string; 5578 + /** 5579 + * 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 5580 + */ 5581 + tool_call_id?: string; 5582 + content?: string | { 5583 + /** 5584 + * Type of the content provided 5585 + */ 5586 + type?: string; 5587 + text?: string; 5588 + image_url?: { 5589 + /** 5590 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5591 + */ 5592 + url?: string; 5593 + }; 5594 + }[] | { 5595 + /** 5596 + * Type of the content provided 5597 + */ 5598 + type?: string; 5599 + text?: string; 5600 + image_url?: { 5601 + /** 5602 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5603 + */ 5604 + url?: string; 5605 + }; 5606 + }; 5607 + }[]; 5608 + functions?: { 5609 + name: string; 5610 + code: string; 5611 + }[]; 5612 + /** 5613 + * A list of tools available for the assistant to use. 5614 + */ 5615 + tools?: ({ 5616 + /** 5617 + * The name of the tool. More descriptive the better. 5618 + */ 5619 + name: string; 5620 + /** 5621 + * A brief description of what the tool does. 5622 + */ 5623 + description: string; 5624 + /** 5625 + * Schema defining the parameters accepted by the tool. 5626 + */ 5627 + parameters: { 5628 + /** 5629 + * The type of the parameters object (usually 'object'). 5630 + */ 5631 + type: string; 5632 + /** 5633 + * List of required parameter names. 5634 + */ 5635 + required?: string[]; 5636 + /** 5637 + * Definitions of each parameter. 5638 + */ 5639 + properties: { 5640 + [k: string]: { 5641 + /** 5642 + * The data type of the parameter. 5643 + */ 5644 + type: string; 5645 + /** 5646 + * A description of the expected parameter. 5647 + */ 5648 + description: string; 5649 + }; 5650 + }; 5651 + }; 5652 + } | { 5653 + /** 5654 + * Specifies the type of tool (e.g., 'function'). 5655 + */ 5656 + type: string; 5657 + /** 5658 + * Details of the function tool. 5659 + */ 5660 + function: { 5661 + /** 5662 + * The name of the function. 5663 + */ 5664 + name: string; 5665 + /** 5666 + * A brief description of what the function does. 5667 + */ 5668 + description: string; 5669 + /** 5670 + * Schema defining the parameters accepted by the function. 5671 + */ 5672 + parameters: { 5673 + /** 5674 + * The type of the parameters object (usually 'object'). 5675 + */ 5676 + type: string; 5677 + /** 5678 + * List of required parameter names. 5679 + */ 5680 + required?: string[]; 5681 + /** 5682 + * Definitions of each parameter. 5683 + */ 5684 + properties: { 5685 + [k: string]: { 5686 + /** 5687 + * The data type of the parameter. 5688 + */ 5689 + type: string; 5690 + /** 5691 + * A description of the expected parameter. 5692 + */ 5693 + description: string; 5694 + }; 5695 + }; 5696 + }; 5697 + }; 5698 + })[]; 5699 + /** 5700 + * JSON schema that should be fulfilled for the response. 5701 + */ 5702 + guided_json?: object; 5703 + /** 5704 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5705 + */ 5706 + raw?: boolean; 5707 + /** 5708 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5709 + */ 5710 + stream?: boolean; 5711 + /** 5712 + * The maximum number of tokens to generate in the response. 5713 + */ 5714 + max_tokens?: number; 5715 + /** 5716 + * Controls the randomness of the output; higher values produce more random results. 5717 + */ 5718 + temperature?: number; 5719 + /** 5720 + * 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. 5721 + */ 5722 + top_p?: number; 5723 + /** 5724 + * 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. 5725 + */ 5726 + top_k?: number; 5727 + /** 5728 + * Random seed for reproducibility of the generation. 5729 + */ 5730 + seed?: number; 5731 + /** 5732 + * Penalty for repeated tokens; higher values discourage repetition. 5733 + */ 5734 + repetition_penalty?: number; 5735 + /** 5736 + * Decreases the likelihood of the model repeating the same lines verbatim. 5737 + */ 5738 + frequency_penalty?: number; 5739 + /** 5740 + * Increases the likelihood of the model introducing new topics. 5741 + */ 5742 + presence_penalty?: number; 5743 + } 5744 + type Ai_Cf_Qwen_Qwq_32B_Output = { 5745 + /** 5746 + * The generated text response from the model 5747 + */ 5748 + response: string; 5749 + /** 5750 + * Usage statistics for the inference request 5751 + */ 5752 + usage?: { 5753 + /** 5754 + * Total number of tokens in input 5755 + */ 5756 + prompt_tokens?: number; 5757 + /** 5758 + * Total number of tokens in output 5759 + */ 5760 + completion_tokens?: number; 5761 + /** 5762 + * Total number of input and output tokens 5763 + */ 5764 + total_tokens?: number; 5765 + }; 5766 + /** 5767 + * An array of tool calls requests made during the response generation 5768 + */ 5769 + tool_calls?: { 5770 + /** 5771 + * The arguments passed to be passed to the tool call request 5772 + */ 5773 + arguments?: object; 5774 + /** 5775 + * The name of the tool to be called 5776 + */ 5777 + name?: string; 5778 + }[]; 5779 + }; 5780 + declare abstract class Base_Ai_Cf_Qwen_Qwq_32B { 5781 + inputs: Ai_Cf_Qwen_Qwq_32B_Input; 5782 + postProcessedOutputs: Ai_Cf_Qwen_Qwq_32B_Output; 5783 + } 5784 + 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; 5785 + interface Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Prompt { 5786 + /** 5787 + * The input text prompt for the model to generate a response. 5788 + */ 5789 + prompt: string; 5790 + /** 5791 + * JSON schema that should be fulfilled for the response. 5792 + */ 5793 + guided_json?: object; 5794 + /** 5795 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5796 + */ 5797 + raw?: boolean; 5798 + /** 5799 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5800 + */ 5801 + stream?: boolean; 5802 + /** 5803 + * The maximum number of tokens to generate in the response. 5804 + */ 5805 + max_tokens?: number; 5806 + /** 5807 + * Controls the randomness of the output; higher values produce more random results. 5808 + */ 5809 + temperature?: number; 5810 + /** 5811 + * 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. 5812 + */ 5813 + top_p?: number; 5814 + /** 5815 + * 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. 5816 + */ 5817 + top_k?: number; 5818 + /** 5819 + * Random seed for reproducibility of the generation. 5820 + */ 5821 + seed?: number; 5822 + /** 5823 + * Penalty for repeated tokens; higher values discourage repetition. 5824 + */ 5825 + repetition_penalty?: number; 5826 + /** 5827 + * Decreases the likelihood of the model repeating the same lines verbatim. 5828 + */ 5829 + frequency_penalty?: number; 5830 + /** 5831 + * Increases the likelihood of the model introducing new topics. 5832 + */ 5833 + presence_penalty?: number; 5834 + } 5835 + interface Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Messages { 5836 + /** 5837 + * An array of message objects representing the conversation history. 5838 + */ 5839 + messages: { 5840 + /** 5841 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 5842 + */ 5843 + role?: string; 5844 + /** 5845 + * 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 5846 + */ 5847 + tool_call_id?: string; 5848 + content?: string | { 5849 + /** 5850 + * Type of the content provided 5851 + */ 5852 + type?: string; 5853 + text?: string; 5854 + image_url?: { 5855 + /** 5856 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5857 + */ 5858 + url?: string; 5859 + }; 5860 + }[] | { 5861 + /** 5862 + * Type of the content provided 5863 + */ 5864 + type?: string; 5865 + text?: string; 5866 + image_url?: { 5867 + /** 5868 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5869 + */ 5870 + url?: string; 5871 + }; 5872 + }; 5873 + }[]; 5874 + functions?: { 5875 + name: string; 5876 + code: string; 5877 + }[]; 5878 + /** 5879 + * A list of tools available for the assistant to use. 5880 + */ 5881 + tools?: ({ 5882 + /** 5883 + * The name of the tool. More descriptive the better. 5884 + */ 5885 + name: string; 5886 + /** 5887 + * A brief description of what the tool does. 5888 + */ 5889 + description: string; 5890 + /** 5891 + * Schema defining the parameters accepted by the tool. 5892 + */ 5893 + parameters: { 5894 + /** 5895 + * The type of the parameters object (usually 'object'). 5896 + */ 5897 + type: string; 5898 + /** 5899 + * List of required parameter names. 5900 + */ 5901 + required?: string[]; 5902 + /** 5903 + * Definitions of each parameter. 5904 + */ 5905 + properties: { 5906 + [k: string]: { 5907 + /** 5908 + * The data type of the parameter. 5909 + */ 5910 + type: string; 5911 + /** 5912 + * A description of the expected parameter. 5913 + */ 5914 + description: string; 5915 + }; 5916 + }; 5917 + }; 5918 + } | { 5919 + /** 5920 + * Specifies the type of tool (e.g., 'function'). 5921 + */ 5922 + type: string; 5923 + /** 5924 + * Details of the function tool. 5925 + */ 5926 + function: { 5927 + /** 5928 + * The name of the function. 5929 + */ 5930 + name: string; 5931 + /** 5932 + * A brief description of what the function does. 5933 + */ 5934 + description: string; 5935 + /** 5936 + * Schema defining the parameters accepted by the function. 5937 + */ 5938 + parameters: { 5939 + /** 5940 + * The type of the parameters object (usually 'object'). 5941 + */ 5942 + type: string; 5943 + /** 5944 + * List of required parameter names. 5945 + */ 5946 + required?: string[]; 5947 + /** 5948 + * Definitions of each parameter. 5949 + */ 5950 + properties: { 5951 + [k: string]: { 5952 + /** 5953 + * The data type of the parameter. 5954 + */ 5955 + type: string; 5956 + /** 5957 + * A description of the expected parameter. 5958 + */ 5959 + description: string; 5960 + }; 5961 + }; 5962 + }; 5963 + }; 5964 + })[]; 5965 + /** 5966 + * JSON schema that should be fulfilled for the response. 5967 + */ 5968 + guided_json?: object; 5969 + /** 5970 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5971 + */ 5972 + raw?: boolean; 5973 + /** 5974 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5975 + */ 5976 + stream?: boolean; 5977 + /** 5978 + * The maximum number of tokens to generate in the response. 5979 + */ 5980 + max_tokens?: number; 5981 + /** 5982 + * Controls the randomness of the output; higher values produce more random results. 5983 + */ 5984 + temperature?: number; 5985 + /** 5986 + * 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. 5987 + */ 5988 + top_p?: number; 5989 + /** 5990 + * 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. 5991 + */ 5992 + top_k?: number; 5993 + /** 5994 + * Random seed for reproducibility of the generation. 5995 + */ 5996 + seed?: number; 5997 + /** 5998 + * Penalty for repeated tokens; higher values discourage repetition. 5999 + */ 6000 + repetition_penalty?: number; 6001 + /** 6002 + * Decreases the likelihood of the model repeating the same lines verbatim. 6003 + */ 6004 + frequency_penalty?: number; 6005 + /** 6006 + * Increases the likelihood of the model introducing new topics. 6007 + */ 6008 + presence_penalty?: number; 6009 + } 6010 + type Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output = { 6011 + /** 6012 + * The generated text response from the model 6013 + */ 6014 + response: string; 6015 + /** 6016 + * Usage statistics for the inference request 6017 + */ 6018 + usage?: { 6019 + /** 6020 + * Total number of tokens in input 6021 + */ 6022 + prompt_tokens?: number; 6023 + /** 6024 + * Total number of tokens in output 6025 + */ 6026 + completion_tokens?: number; 6027 + /** 6028 + * Total number of input and output tokens 6029 + */ 6030 + total_tokens?: number; 6031 + }; 6032 + /** 6033 + * An array of tool calls requests made during the response generation 6034 + */ 6035 + tool_calls?: { 6036 + /** 6037 + * The arguments passed to be passed to the tool call request 6038 + */ 6039 + arguments?: object; 6040 + /** 6041 + * The name of the tool to be called 6042 + */ 6043 + name?: string; 6044 + }[]; 6045 + }; 6046 + declare abstract class Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct { 6047 + inputs: Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input; 6048 + postProcessedOutputs: Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output; 6049 + } 6050 + 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; 6051 + interface Ai_Cf_Google_Gemma_3_12B_It_Prompt { 6052 + /** 6053 + * The input text prompt for the model to generate a response. 6054 + */ 6055 + prompt: string; 6056 + /** 6057 + * JSON schema that should be fulfilled for the response. 6058 + */ 6059 + guided_json?: object; 6060 + /** 6061 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 6062 + */ 6063 + raw?: boolean; 6064 + /** 6065 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 6066 + */ 6067 + stream?: boolean; 6068 + /** 6069 + * The maximum number of tokens to generate in the response. 6070 + */ 6071 + max_tokens?: number; 6072 + /** 6073 + * Controls the randomness of the output; higher values produce more random results. 6074 + */ 6075 + temperature?: number; 6076 + /** 6077 + * 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. 6078 + */ 6079 + top_p?: number; 6080 + /** 6081 + * 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. 6082 + */ 6083 + top_k?: number; 6084 + /** 6085 + * Random seed for reproducibility of the generation. 6086 + */ 6087 + seed?: number; 6088 + /** 6089 + * Penalty for repeated tokens; higher values discourage repetition. 6090 + */ 6091 + repetition_penalty?: number; 6092 + /** 6093 + * Decreases the likelihood of the model repeating the same lines verbatim. 6094 + */ 6095 + frequency_penalty?: number; 6096 + /** 6097 + * Increases the likelihood of the model introducing new topics. 6098 + */ 6099 + presence_penalty?: number; 6100 + } 6101 + interface Ai_Cf_Google_Gemma_3_12B_It_Messages { 6102 + /** 6103 + * An array of message objects representing the conversation history. 6104 + */ 6105 + messages: { 6106 + /** 6107 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 6108 + */ 6109 + role?: string; 6110 + content?: string | { 6111 + /** 6112 + * Type of the content provided 6113 + */ 6114 + type?: string; 6115 + text?: string; 6116 + image_url?: { 6117 + /** 6118 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 6119 + */ 6120 + url?: string; 6121 + }; 6122 + }[]; 6123 + }[]; 6124 + functions?: { 6125 + name: string; 6126 + code: string; 6127 + }[]; 6128 + /** 6129 + * A list of tools available for the assistant to use. 6130 + */ 6131 + tools?: ({ 6132 + /** 6133 + * The name of the tool. More descriptive the better. 6134 + */ 6135 + name: string; 6136 + /** 6137 + * A brief description of what the tool does. 6138 + */ 6139 + description: string; 6140 + /** 6141 + * Schema defining the parameters accepted by the tool. 6142 + */ 6143 + parameters: { 6144 + /** 6145 + * The type of the parameters object (usually 'object'). 6146 + */ 6147 + type: string; 6148 + /** 6149 + * List of required parameter names. 6150 + */ 6151 + required?: string[]; 6152 + /** 6153 + * Definitions of each parameter. 6154 + */ 6155 + properties: { 6156 + [k: string]: { 6157 + /** 6158 + * The data type of the parameter. 6159 + */ 6160 + type: string; 6161 + /** 6162 + * A description of the expected parameter. 6163 + */ 6164 + description: string; 6165 + }; 6166 + }; 6167 + }; 6168 + } | { 6169 + /** 6170 + * Specifies the type of tool (e.g., 'function'). 6171 + */ 6172 + type: string; 6173 + /** 6174 + * Details of the function tool. 6175 + */ 6176 + function: { 6177 + /** 6178 + * The name of the function. 6179 + */ 6180 + name: string; 6181 + /** 6182 + * A brief description of what the function does. 6183 + */ 6184 + description: string; 6185 + /** 6186 + * Schema defining the parameters accepted by the function. 6187 + */ 6188 + parameters: { 6189 + /** 6190 + * The type of the parameters object (usually 'object'). 6191 + */ 6192 + type: string; 6193 + /** 6194 + * List of required parameter names. 6195 + */ 6196 + required?: string[]; 6197 + /** 6198 + * Definitions of each parameter. 6199 + */ 6200 + properties: { 6201 + [k: string]: { 6202 + /** 6203 + * The data type of the parameter. 6204 + */ 6205 + type: string; 6206 + /** 6207 + * A description of the expected parameter. 6208 + */ 6209 + description: string; 6210 + }; 6211 + }; 6212 + }; 6213 + }; 6214 + })[]; 6215 + /** 6216 + * JSON schema that should be fulfilled for the response. 6217 + */ 6218 + guided_json?: object; 6219 + /** 6220 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 6221 + */ 6222 + raw?: boolean; 6223 + /** 6224 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 6225 + */ 6226 + stream?: boolean; 6227 + /** 6228 + * The maximum number of tokens to generate in the response. 6229 + */ 6230 + max_tokens?: number; 6231 + /** 6232 + * Controls the randomness of the output; higher values produce more random results. 6233 + */ 6234 + temperature?: number; 6235 + /** 6236 + * 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. 6237 + */ 6238 + top_p?: number; 6239 + /** 6240 + * 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. 6241 + */ 6242 + top_k?: number; 6243 + /** 6244 + * Random seed for reproducibility of the generation. 6245 + */ 6246 + seed?: number; 6247 + /** 6248 + * Penalty for repeated tokens; higher values discourage repetition. 6249 + */ 6250 + repetition_penalty?: number; 6251 + /** 6252 + * Decreases the likelihood of the model repeating the same lines verbatim. 6253 + */ 6254 + frequency_penalty?: number; 6255 + /** 6256 + * Increases the likelihood of the model introducing new topics. 6257 + */ 6258 + presence_penalty?: number; 6259 + } 6260 + type Ai_Cf_Google_Gemma_3_12B_It_Output = { 6261 + /** 6262 + * The generated text response from the model 6263 + */ 6264 + response: string; 6265 + /** 6266 + * Usage statistics for the inference request 6267 + */ 6268 + usage?: { 6269 + /** 6270 + * Total number of tokens in input 6271 + */ 6272 + prompt_tokens?: number; 6273 + /** 6274 + * Total number of tokens in output 6275 + */ 6276 + completion_tokens?: number; 6277 + /** 6278 + * Total number of input and output tokens 6279 + */ 6280 + total_tokens?: number; 6281 + }; 6282 + /** 6283 + * An array of tool calls requests made during the response generation 6284 + */ 6285 + tool_calls?: { 6286 + /** 6287 + * The arguments passed to be passed to the tool call request 6288 + */ 6289 + arguments?: object; 6290 + /** 6291 + * The name of the tool to be called 6292 + */ 6293 + name?: string; 6294 + }[]; 6295 + }; 6296 + declare abstract class Base_Ai_Cf_Google_Gemma_3_12B_It { 6297 + inputs: Ai_Cf_Google_Gemma_3_12B_It_Input; 6298 + postProcessedOutputs: Ai_Cf_Google_Gemma_3_12B_It_Output; 6299 + } 6300 + 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; 6301 + interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt { 6302 + /** 6303 + * The input text prompt for the model to generate a response. 6304 + */ 6305 + prompt: string; 6306 + /** 6307 + * JSON schema that should be fulfilled for the response. 6308 + */ 6309 + guided_json?: object; 6310 + response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode; 6311 + /** 6312 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 6313 + */ 6314 + raw?: boolean; 6315 + /** 6316 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 6317 + */ 6318 + stream?: boolean; 6319 + /** 6320 + * The maximum number of tokens to generate in the response. 6321 + */ 6322 + max_tokens?: number; 6323 + /** 6324 + * Controls the randomness of the output; higher values produce more random results. 6325 + */ 6326 + temperature?: number; 6327 + /** 6328 + * 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. 6329 + */ 6330 + top_p?: number; 6331 + /** 6332 + * 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. 6333 + */ 6334 + top_k?: number; 6335 + /** 6336 + * Random seed for reproducibility of the generation. 6337 + */ 6338 + seed?: number; 6339 + /** 6340 + * Penalty for repeated tokens; higher values discourage repetition. 6341 + */ 6342 + repetition_penalty?: number; 6343 + /** 6344 + * Decreases the likelihood of the model repeating the same lines verbatim. 6345 + */ 6346 + frequency_penalty?: number; 6347 + /** 6348 + * Increases the likelihood of the model introducing new topics. 6349 + */ 6350 + presence_penalty?: number; 6351 + } 6352 + interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode { 6353 + type?: "json_object" | "json_schema"; 6354 + json_schema?: unknown; 6355 + } 6356 + interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages { 6357 + /** 6358 + * An array of message objects representing the conversation history. 6359 + */ 6360 + messages: { 6361 + /** 6362 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 6363 + */ 6364 + role?: string; 6365 + /** 6366 + * The tool call id. If you don't know what to put here you can fall back to 000000001 6367 + */ 6368 + tool_call_id?: string; 6369 + content?: string | { 6370 + /** 6371 + * Type of the content provided 6372 + */ 6373 + type?: string; 6374 + text?: string; 6375 + image_url?: { 6376 + /** 6377 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 6378 + */ 6379 + url?: string; 6380 + }; 6381 + }[] | { 6382 + /** 6383 + * Type of the content provided 6384 + */ 6385 + type?: string; 6386 + text?: string; 6387 + image_url?: { 6388 + /** 6389 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 6390 + */ 6391 + url?: string; 6392 + }; 6393 + }; 6394 + }[]; 6395 + functions?: { 6396 + name: string; 6397 + code: string; 6398 + }[]; 6399 + /** 6400 + * A list of tools available for the assistant to use. 6401 + */ 6402 + tools?: ({ 6403 + /** 6404 + * The name of the tool. More descriptive the better. 6405 + */ 6406 + name: string; 6407 + /** 6408 + * A brief description of what the tool does. 6409 + */ 6410 + description: string; 6411 + /** 6412 + * Schema defining the parameters accepted by the tool. 6413 + */ 6414 + parameters: { 6415 + /** 6416 + * The type of the parameters object (usually 'object'). 6417 + */ 6418 + type: string; 6419 + /** 6420 + * List of required parameter names. 6421 + */ 6422 + required?: string[]; 6423 + /** 6424 + * Definitions of each parameter. 6425 + */ 6426 + properties: { 6427 + [k: string]: { 6428 + /** 6429 + * The data type of the parameter. 6430 + */ 6431 + type: string; 6432 + /** 6433 + * A description of the expected parameter. 6434 + */ 6435 + description: string; 6436 + }; 6437 + }; 6438 + }; 6439 + } | { 6440 + /** 6441 + * Specifies the type of tool (e.g., 'function'). 6442 + */ 6443 + type: string; 6444 + /** 6445 + * Details of the function tool. 6446 + */ 6447 + function: { 6448 + /** 6449 + * The name of the function. 6450 + */ 6451 + name: string; 6452 + /** 6453 + * A brief description of what the function does. 6454 + */ 6455 + description: string; 6456 + /** 6457 + * Schema defining the parameters accepted by the function. 6458 + */ 6459 + parameters: { 6460 + /** 6461 + * The type of the parameters object (usually 'object'). 6462 + */ 6463 + type: string; 6464 + /** 6465 + * List of required parameter names. 6466 + */ 6467 + required?: string[]; 6468 + /** 6469 + * Definitions of each parameter. 6470 + */ 6471 + properties: { 6472 + [k: string]: { 6473 + /** 6474 + * The data type of the parameter. 6475 + */ 6476 + type: string; 6477 + /** 6478 + * A description of the expected parameter. 6479 + */ 6480 + description: string; 6481 + }; 6482 + }; 6483 + }; 6484 + }; 6485 + })[]; 6486 + response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode; 6487 + /** 6488 + * JSON schema that should be fulfilled for the response. 6489 + */ 6490 + guided_json?: object; 6491 + /** 6492 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 6493 + */ 6494 + raw?: boolean; 6495 + /** 6496 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 6497 + */ 6498 + stream?: boolean; 6499 + /** 6500 + * The maximum number of tokens to generate in the response. 6501 + */ 6502 + max_tokens?: number; 6503 + /** 6504 + * Controls the randomness of the output; higher values produce more random results. 6505 + */ 6506 + temperature?: number; 6507 + /** 6508 + * 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. 6509 + */ 6510 + top_p?: number; 6511 + /** 6512 + * 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. 6513 + */ 6514 + top_k?: number; 6515 + /** 6516 + * Random seed for reproducibility of the generation. 6517 + */ 6518 + seed?: number; 6519 + /** 6520 + * Penalty for repeated tokens; higher values discourage repetition. 6521 + */ 6522 + repetition_penalty?: number; 6523 + /** 6524 + * Decreases the likelihood of the model repeating the same lines verbatim. 6525 + */ 6526 + frequency_penalty?: number; 6527 + /** 6528 + * Increases the likelihood of the model introducing new topics. 6529 + */ 6530 + presence_penalty?: number; 6531 + } 6532 + interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Async_Batch { 6533 + requests: (Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt_Inner | Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages_Inner)[]; 6534 + } 6535 + interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Prompt_Inner { 6536 + /** 6537 + * The input text prompt for the model to generate a response. 6538 + */ 6539 + prompt: string; 6540 + /** 6541 + * JSON schema that should be fulfilled for the response. 6542 + */ 6543 + guided_json?: object; 6544 + response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode; 6545 + /** 6546 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 6547 + */ 6548 + raw?: boolean; 6549 + /** 6550 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 6551 + */ 6552 + stream?: boolean; 6553 + /** 6554 + * The maximum number of tokens to generate in the response. 6555 + */ 6556 + max_tokens?: number; 6557 + /** 6558 + * Controls the randomness of the output; higher values produce more random results. 6559 + */ 6560 + temperature?: number; 6561 + /** 6562 + * 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. 6563 + */ 6564 + top_p?: number; 6565 + /** 6566 + * 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. 6567 + */ 6568 + top_k?: number; 6569 + /** 6570 + * Random seed for reproducibility of the generation. 6571 + */ 6572 + seed?: number; 6573 + /** 6574 + * Penalty for repeated tokens; higher values discourage repetition. 6575 + */ 6576 + repetition_penalty?: number; 6577 + /** 6578 + * Decreases the likelihood of the model repeating the same lines verbatim. 6579 + */ 6580 + frequency_penalty?: number; 6581 + /** 6582 + * Increases the likelihood of the model introducing new topics. 6583 + */ 6584 + presence_penalty?: number; 6585 + } 6586 + interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages_Inner { 6587 + /** 6588 + * An array of message objects representing the conversation history. 6589 + */ 6590 + messages: { 6591 + /** 6592 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 6593 + */ 6594 + role?: string; 6595 + /** 6596 + * The tool call id. If you don't know what to put here you can fall back to 000000001 6597 + */ 6598 + tool_call_id?: string; 6599 + content?: string | { 6600 + /** 6601 + * Type of the content provided 6602 + */ 6603 + type?: string; 6604 + text?: string; 6605 + image_url?: { 6606 + /** 6607 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 6608 + */ 6609 + url?: string; 6610 + }; 6611 + }[] | { 6612 + /** 6613 + * Type of the content provided 6614 + */ 6615 + type?: string; 6616 + text?: string; 6617 + image_url?: { 6618 + /** 6619 + * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 6620 + */ 6621 + url?: string; 6622 + }; 6623 + }; 6624 + }[]; 6625 + functions?: { 6626 + name: string; 6627 + code: string; 6628 + }[]; 6629 + /** 6630 + * A list of tools available for the assistant to use. 6631 + */ 6632 + tools?: ({ 6633 + /** 6634 + * The name of the tool. More descriptive the better. 6635 + */ 6636 + name: string; 6637 + /** 6638 + * A brief description of what the tool does. 6639 + */ 6640 + description: string; 6641 + /** 6642 + * Schema defining the parameters accepted by the tool. 6643 + */ 6644 + parameters: { 6645 + /** 6646 + * The type of the parameters object (usually 'object'). 6647 + */ 6648 + type: string; 6649 + /** 6650 + * List of required parameter names. 6651 + */ 6652 + required?: string[]; 6653 + /** 6654 + * Definitions of each parameter. 6655 + */ 6656 + properties: { 6657 + [k: string]: { 6658 + /** 6659 + * The data type of the parameter. 6660 + */ 6661 + type: string; 6662 + /** 6663 + * A description of the expected parameter. 6664 + */ 6665 + description: string; 6666 + }; 6667 + }; 6668 + }; 6669 + } | { 6670 + /** 6671 + * Specifies the type of tool (e.g., 'function'). 6672 + */ 6673 + type: string; 6674 + /** 6675 + * Details of the function tool. 6676 + */ 6677 + function: { 6678 + /** 6679 + * The name of the function. 6680 + */ 6681 + name: string; 6682 + /** 6683 + * A brief description of what the function does. 6684 + */ 6685 + description: string; 6686 + /** 6687 + * Schema defining the parameters accepted by the function. 6688 + */ 6689 + parameters: { 6690 + /** 6691 + * The type of the parameters object (usually 'object'). 6692 + */ 6693 + type: string; 6694 + /** 6695 + * List of required parameter names. 6696 + */ 6697 + required?: string[]; 6698 + /** 6699 + * Definitions of each parameter. 6700 + */ 6701 + properties: { 6702 + [k: string]: { 6703 + /** 6704 + * The data type of the parameter. 6705 + */ 6706 + type: string; 6707 + /** 6708 + * A description of the expected parameter. 6709 + */ 6710 + description: string; 6711 + }; 6712 + }; 6713 + }; 6714 + }; 6715 + })[]; 6716 + response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode; 6717 + /** 6718 + * JSON schema that should be fulfilled for the response. 6719 + */ 6720 + guided_json?: object; 6721 + /** 6722 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 6723 + */ 6724 + raw?: boolean; 6725 + /** 6726 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 6727 + */ 6728 + stream?: boolean; 6729 + /** 6730 + * The maximum number of tokens to generate in the response. 6731 + */ 6732 + max_tokens?: number; 6733 + /** 6734 + * Controls the randomness of the output; higher values produce more random results. 6735 + */ 6736 + temperature?: number; 6737 + /** 6738 + * 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. 6739 + */ 6740 + top_p?: number; 6741 + /** 6742 + * 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. 6743 + */ 6744 + top_k?: number; 6745 + /** 6746 + * Random seed for reproducibility of the generation. 6747 + */ 6748 + seed?: number; 6749 + /** 6750 + * Penalty for repeated tokens; higher values discourage repetition. 6751 + */ 6752 + repetition_penalty?: number; 6753 + /** 6754 + * Decreases the likelihood of the model repeating the same lines verbatim. 6755 + */ 6756 + frequency_penalty?: number; 6757 + /** 6758 + * Increases the likelihood of the model introducing new topics. 6759 + */ 6760 + presence_penalty?: number; 6761 + } 6762 + type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output = { 6763 + /** 6764 + * The generated text response from the model 6765 + */ 6766 + response: string; 6767 + /** 6768 + * Usage statistics for the inference request 6769 + */ 6770 + usage?: { 6771 + /** 6772 + * Total number of tokens in input 6773 + */ 6774 + prompt_tokens?: number; 6775 + /** 6776 + * Total number of tokens in output 6777 + */ 6778 + completion_tokens?: number; 6779 + /** 6780 + * Total number of input and output tokens 6781 + */ 6782 + total_tokens?: number; 6783 + }; 6784 + /** 6785 + * An array of tool calls requests made during the response generation 6786 + */ 6787 + tool_calls?: { 6788 + /** 6789 + * The tool call id. 6790 + */ 6791 + id?: string; 6792 + /** 6793 + * Specifies the type of tool (e.g., 'function'). 6794 + */ 6795 + type?: string; 6796 + /** 6797 + * Details of the function tool. 6798 + */ 6799 + function?: { 6800 + /** 6801 + * The name of the tool to be called 6802 + */ 6803 + name?: string; 6804 + /** 6805 + * The arguments passed to be passed to the tool call request 6806 + */ 6807 + arguments?: object; 6808 + }; 6809 + }[]; 6810 + }; 6811 + declare abstract class Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct { 6812 + inputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input; 6813 + postProcessedOutputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output; 6814 + } 6815 + 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; 6816 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt { 6817 + /** 6818 + * The input text prompt for the model to generate a response. 6819 + */ 6820 + prompt: string; 6821 + /** 6822 + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 6823 + */ 6824 + lora?: string; 6825 + response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode; 6826 + /** 6827 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 6828 + */ 6829 + raw?: boolean; 6830 + /** 6831 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 6832 + */ 6833 + stream?: boolean; 6834 + /** 6835 + * The maximum number of tokens to generate in the response. 6836 + */ 6837 + max_tokens?: number; 6838 + /** 6839 + * Controls the randomness of the output; higher values produce more random results. 6840 + */ 6841 + temperature?: number; 6842 + /** 6843 + * 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. 6844 + */ 6845 + top_p?: number; 6846 + /** 6847 + * 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. 6848 + */ 6849 + top_k?: number; 6850 + /** 6851 + * Random seed for reproducibility of the generation. 6852 + */ 6853 + seed?: number; 6854 + /** 6855 + * Penalty for repeated tokens; higher values discourage repetition. 6856 + */ 6857 + repetition_penalty?: number; 6858 + /** 6859 + * Decreases the likelihood of the model repeating the same lines verbatim. 6860 + */ 6861 + frequency_penalty?: number; 6862 + /** 6863 + * Increases the likelihood of the model introducing new topics. 6864 + */ 6865 + presence_penalty?: number; 6866 + } 6867 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode { 6868 + type?: "json_object" | "json_schema"; 6869 + json_schema?: unknown; 6870 + } 6871 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages { 6872 + /** 6873 + * An array of message objects representing the conversation history. 6874 + */ 6875 + messages: { 6876 + /** 6877 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 6878 + */ 6879 + role: string; 6880 + /** 6881 + * The content of the message as a string. 6882 + */ 6883 + content: string; 6884 + }[]; 6885 + functions?: { 6886 + name: string; 6887 + code: string; 6888 + }[]; 6889 + /** 6890 + * A list of tools available for the assistant to use. 6891 + */ 6892 + tools?: ({ 6893 + /** 6894 + * The name of the tool. More descriptive the better. 6895 + */ 6896 + name: string; 6897 + /** 6898 + * A brief description of what the tool does. 6899 + */ 6900 + description: string; 6901 + /** 6902 + * Schema defining the parameters accepted by the tool. 6903 + */ 6904 + parameters: { 6905 + /** 6906 + * The type of the parameters object (usually 'object'). 6907 + */ 6908 + type: string; 6909 + /** 6910 + * List of required parameter names. 6911 + */ 6912 + required?: string[]; 6913 + /** 6914 + * Definitions of each parameter. 6915 + */ 6916 + properties: { 6917 + [k: string]: { 6918 + /** 6919 + * The data type of the parameter. 6920 + */ 6921 + type: string; 6922 + /** 6923 + * A description of the expected parameter. 6924 + */ 6925 + description: string; 6926 + }; 6927 + }; 6928 + }; 6929 + } | { 6930 + /** 6931 + * Specifies the type of tool (e.g., 'function'). 6932 + */ 6933 + type: string; 6934 + /** 6935 + * Details of the function tool. 6936 + */ 6937 + function: { 6938 + /** 6939 + * The name of the function. 6940 + */ 6941 + name: string; 6942 + /** 6943 + * A brief description of what the function does. 6944 + */ 6945 + description: string; 6946 + /** 6947 + * Schema defining the parameters accepted by the function. 6948 + */ 6949 + parameters: { 6950 + /** 6951 + * The type of the parameters object (usually 'object'). 6952 + */ 6953 + type: string; 6954 + /** 6955 + * List of required parameter names. 6956 + */ 6957 + required?: string[]; 6958 + /** 6959 + * Definitions of each parameter. 6960 + */ 6961 + properties: { 6962 + [k: string]: { 6963 + /** 6964 + * The data type of the parameter. 6965 + */ 6966 + type: string; 6967 + /** 6968 + * A description of the expected parameter. 6969 + */ 6970 + description: string; 6971 + }; 6972 + }; 6973 + }; 6974 + }; 6975 + })[]; 6976 + response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_1; 6977 + /** 6978 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 6979 + */ 6980 + raw?: boolean; 6981 + /** 6982 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 6983 + */ 6984 + stream?: boolean; 6985 + /** 6986 + * The maximum number of tokens to generate in the response. 6987 + */ 6988 + max_tokens?: number; 6989 + /** 6990 + * Controls the randomness of the output; higher values produce more random results. 6991 + */ 6992 + temperature?: number; 6993 + /** 6994 + * 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. 6995 + */ 6996 + top_p?: number; 6997 + /** 6998 + * 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. 6999 + */ 7000 + top_k?: number; 7001 + /** 7002 + * Random seed for reproducibility of the generation. 7003 + */ 7004 + seed?: number; 7005 + /** 7006 + * Penalty for repeated tokens; higher values discourage repetition. 7007 + */ 7008 + repetition_penalty?: number; 7009 + /** 7010 + * Decreases the likelihood of the model repeating the same lines verbatim. 7011 + */ 7012 + frequency_penalty?: number; 7013 + /** 7014 + * Increases the likelihood of the model introducing new topics. 7015 + */ 7016 + presence_penalty?: number; 7017 + } 7018 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_1 { 7019 + type?: "json_object" | "json_schema"; 7020 + json_schema?: unknown; 7021 + } 7022 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Async_Batch { 7023 + requests: (Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt_1 | Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages_1)[]; 7024 + } 7025 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Prompt_1 { 7026 + /** 7027 + * The input text prompt for the model to generate a response. 7028 + */ 7029 + prompt: string; 7030 + /** 7031 + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 7032 + */ 7033 + lora?: string; 7034 + response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_2; 7035 + /** 7036 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 7037 + */ 7038 + raw?: boolean; 7039 + /** 7040 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 7041 + */ 7042 + stream?: boolean; 7043 + /** 7044 + * The maximum number of tokens to generate in the response. 7045 + */ 7046 + max_tokens?: number; 7047 + /** 7048 + * Controls the randomness of the output; higher values produce more random results. 7049 + */ 7050 + temperature?: number; 7051 + /** 7052 + * 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. 7053 + */ 7054 + top_p?: number; 7055 + /** 7056 + * 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. 7057 + */ 7058 + top_k?: number; 7059 + /** 7060 + * Random seed for reproducibility of the generation. 7061 + */ 7062 + seed?: number; 7063 + /** 7064 + * Penalty for repeated tokens; higher values discourage repetition. 7065 + */ 7066 + repetition_penalty?: number; 7067 + /** 7068 + * Decreases the likelihood of the model repeating the same lines verbatim. 7069 + */ 7070 + frequency_penalty?: number; 7071 + /** 7072 + * Increases the likelihood of the model introducing new topics. 7073 + */ 7074 + presence_penalty?: number; 7075 + } 7076 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_2 { 7077 + type?: "json_object" | "json_schema"; 7078 + json_schema?: unknown; 7079 + } 7080 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Messages_1 { 7081 + /** 7082 + * An array of message objects representing the conversation history. 7083 + */ 7084 + messages: { 7085 + /** 7086 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 7087 + */ 7088 + role: string; 7089 + /** 7090 + * The content of the message as a string. 7091 + */ 7092 + content: string; 7093 + }[]; 7094 + functions?: { 7095 + name: string; 7096 + code: string; 7097 + }[]; 7098 + /** 7099 + * A list of tools available for the assistant to use. 7100 + */ 7101 + tools?: ({ 7102 + /** 7103 + * The name of the tool. More descriptive the better. 7104 + */ 7105 + name: string; 7106 + /** 7107 + * A brief description of what the tool does. 7108 + */ 7109 + description: string; 7110 + /** 7111 + * Schema defining the parameters accepted by the tool. 7112 + */ 7113 + parameters: { 7114 + /** 7115 + * The type of the parameters object (usually 'object'). 7116 + */ 7117 + type: string; 7118 + /** 7119 + * List of required parameter names. 7120 + */ 7121 + required?: string[]; 7122 + /** 7123 + * Definitions of each parameter. 7124 + */ 7125 + properties: { 7126 + [k: string]: { 7127 + /** 7128 + * The data type of the parameter. 7129 + */ 7130 + type: string; 7131 + /** 7132 + * A description of the expected parameter. 7133 + */ 7134 + description: string; 7135 + }; 7136 + }; 7137 + }; 7138 + } | { 7139 + /** 7140 + * Specifies the type of tool (e.g., 'function'). 7141 + */ 7142 + type: string; 7143 + /** 7144 + * Details of the function tool. 7145 + */ 7146 + function: { 7147 + /** 7148 + * The name of the function. 7149 + */ 7150 + name: string; 7151 + /** 7152 + * A brief description of what the function does. 7153 + */ 7154 + description: string; 7155 + /** 7156 + * Schema defining the parameters accepted by the function. 7157 + */ 7158 + parameters: { 7159 + /** 7160 + * The type of the parameters object (usually 'object'). 7161 + */ 7162 + type: string; 7163 + /** 7164 + * List of required parameter names. 7165 + */ 7166 + required?: string[]; 7167 + /** 7168 + * Definitions of each parameter. 7169 + */ 7170 + properties: { 7171 + [k: string]: { 7172 + /** 7173 + * The data type of the parameter. 7174 + */ 7175 + type: string; 7176 + /** 7177 + * A description of the expected parameter. 7178 + */ 7179 + description: string; 7180 + }; 7181 + }; 7182 + }; 7183 + }; 7184 + })[]; 7185 + response_format?: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_3; 7186 + /** 7187 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 7188 + */ 7189 + raw?: boolean; 7190 + /** 7191 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 7192 + */ 7193 + stream?: boolean; 7194 + /** 7195 + * The maximum number of tokens to generate in the response. 7196 + */ 7197 + max_tokens?: number; 7198 + /** 7199 + * Controls the randomness of the output; higher values produce more random results. 7200 + */ 7201 + temperature?: number; 7202 + /** 7203 + * 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. 7204 + */ 7205 + top_p?: number; 7206 + /** 7207 + * 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. 7208 + */ 7209 + top_k?: number; 7210 + /** 7211 + * Random seed for reproducibility of the generation. 7212 + */ 7213 + seed?: number; 7214 + /** 7215 + * Penalty for repeated tokens; higher values discourage repetition. 7216 + */ 7217 + repetition_penalty?: number; 7218 + /** 7219 + * Decreases the likelihood of the model repeating the same lines verbatim. 7220 + */ 7221 + frequency_penalty?: number; 7222 + /** 7223 + * Increases the likelihood of the model introducing new topics. 7224 + */ 7225 + presence_penalty?: number; 7226 + } 7227 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_JSON_Mode_3 { 7228 + type?: "json_object" | "json_schema"; 7229 + json_schema?: unknown; 7230 + } 7231 + 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; 7232 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Chat_Completion_Response { 7233 + /** 7234 + * Unique identifier for the completion 7235 + */ 7236 + id?: string; 7237 + /** 7238 + * Object type identifier 7239 + */ 7240 + object?: "chat.completion"; 7241 + /** 7242 + * Unix timestamp of when the completion was created 7243 + */ 7244 + created?: number; 7245 + /** 7246 + * Model used for the completion 7247 + */ 7248 + model?: string; 7249 + /** 7250 + * List of completion choices 7251 + */ 7252 + choices?: { 7253 + /** 7254 + * Index of the choice in the list 7255 + */ 7256 + index?: number; 7257 + /** 7258 + * The message generated by the model 7259 + */ 7260 + message?: { 7261 + /** 7262 + * Role of the message author 7263 + */ 7264 + role: string; 7265 + /** 7266 + * The content of the message 7267 + */ 7268 + content: string; 7269 + /** 7270 + * Internal reasoning content (if available) 7271 + */ 7272 + reasoning_content?: string; 7273 + /** 7274 + * Tool calls made by the assistant 7275 + */ 7276 + tool_calls?: { 7277 + /** 7278 + * Unique identifier for the tool call 7279 + */ 7280 + id: string; 7281 + /** 7282 + * Type of tool call 7283 + */ 7284 + type: "function"; 7285 + function: { 7286 + /** 7287 + * Name of the function to call 7288 + */ 7289 + name: string; 7290 + /** 7291 + * JSON string of arguments for the function 7292 + */ 7293 + arguments: string; 7294 + }; 7295 + }[]; 7296 + }; 7297 + /** 7298 + * Reason why the model stopped generating 7299 + */ 7300 + finish_reason?: string; 7301 + /** 7302 + * Stop reason (may be null) 7303 + */ 7304 + stop_reason?: string | null; 7305 + /** 7306 + * Log probabilities (if requested) 7307 + */ 7308 + logprobs?: {} | null; 7309 + }[]; 7310 + /** 7311 + * Usage statistics for the inference request 7312 + */ 7313 + usage?: { 7314 + /** 7315 + * Total number of tokens in input 7316 + */ 7317 + prompt_tokens?: number; 7318 + /** 7319 + * Total number of tokens in output 7320 + */ 7321 + completion_tokens?: number; 7322 + /** 7323 + * Total number of input and output tokens 7324 + */ 7325 + total_tokens?: number; 7326 + }; 7327 + /** 7328 + * Log probabilities for the prompt (if requested) 7329 + */ 7330 + prompt_logprobs?: {} | null; 7331 + } 7332 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Text_Completion_Response { 7333 + /** 7334 + * Unique identifier for the completion 7335 + */ 7336 + id?: string; 7337 + /** 7338 + * Object type identifier 7339 + */ 7340 + object?: "text_completion"; 7341 + /** 7342 + * Unix timestamp of when the completion was created 7343 + */ 7344 + created?: number; 7345 + /** 7346 + * Model used for the completion 7347 + */ 7348 + model?: string; 7349 + /** 7350 + * List of completion choices 7351 + */ 7352 + choices?: { 7353 + /** 7354 + * Index of the choice in the list 7355 + */ 7356 + index: number; 7357 + /** 7358 + * The generated text completion 7359 + */ 7360 + text: string; 7361 + /** 7362 + * Reason why the model stopped generating 7363 + */ 7364 + finish_reason: string; 7365 + /** 7366 + * Stop reason (may be null) 7367 + */ 7368 + stop_reason?: string | null; 7369 + /** 7370 + * Log probabilities (if requested) 7371 + */ 7372 + logprobs?: {} | null; 7373 + /** 7374 + * Log probabilities for the prompt (if requested) 7375 + */ 7376 + prompt_logprobs?: {} | null; 7377 + }[]; 7378 + /** 7379 + * Usage statistics for the inference request 7380 + */ 7381 + usage?: { 7382 + /** 7383 + * Total number of tokens in input 7384 + */ 7385 + prompt_tokens?: number; 7386 + /** 7387 + * Total number of tokens in output 7388 + */ 7389 + completion_tokens?: number; 7390 + /** 7391 + * Total number of input and output tokens 7392 + */ 7393 + total_tokens?: number; 7394 + }; 7395 + } 7396 + interface Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_AsyncResponse { 7397 + /** 7398 + * The async request id that can be used to obtain the results. 7399 + */ 7400 + request_id?: string; 7401 + } 7402 + declare abstract class Base_Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8 { 7403 + inputs: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Input; 7404 + postProcessedOutputs: Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8_Output; 7405 + } 7406 + interface Ai_Cf_Deepgram_Nova_3_Input { 7407 + audio: { 7408 + body: object; 7409 + contentType: string; 7410 + }; 7411 + /** 7412 + * 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. 7413 + */ 7414 + custom_topic_mode?: "extended" | "strict"; 7415 + /** 7416 + * Custom topics you want the model to detect within your input audio or text if present Submit up to 100 7417 + */ 7418 + custom_topic?: string; 7419 + /** 7420 + * 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 7421 + */ 7422 + custom_intent_mode?: "extended" | "strict"; 7423 + /** 7424 + * Custom intents you want the model to detect within your input audio if present 7425 + */ 7426 + custom_intent?: string; 7427 + /** 7428 + * Identifies and extracts key entities from content in submitted audio 7429 + */ 7430 + detect_entities?: boolean; 7431 + /** 7432 + * Identifies the dominant language spoken in submitted audio 7433 + */ 7434 + detect_language?: boolean; 7435 + /** 7436 + * Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 7437 + */ 7438 + diarize?: boolean; 7439 + /** 7440 + * Identify and extract key entities from content in submitted audio 7441 + */ 7442 + dictation?: boolean; 7443 + /** 7444 + * Specify the expected encoding of your submitted audio 7445 + */ 7446 + encoding?: "linear16" | "flac" | "mulaw" | "amr-nb" | "amr-wb" | "opus" | "speex" | "g729"; 7447 + /** 7448 + * Arbitrary key-value pairs that are attached to the API response for usage in downstream processing 7449 + */ 7450 + extra?: string; 7451 + /** 7452 + * Filler Words can help transcribe interruptions in your audio, like 'uh' and 'um' 7453 + */ 7454 + filler_words?: boolean; 7455 + /** 7456 + * Key term prompting can boost or suppress specialized terminology and brands. 7457 + */ 7458 + keyterm?: string; 7459 + /** 7460 + * Keywords can boost or suppress specialized terminology and brands. 7461 + */ 7462 + keywords?: string; 7463 + /** 7464 + * 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. 7465 + */ 7466 + language?: string; 7467 + /** 7468 + * Spoken measurements will be converted to their corresponding abbreviations. 7469 + */ 7470 + measurements?: boolean; 7471 + /** 7472 + * 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. 7473 + */ 7474 + mip_opt_out?: boolean; 7475 + /** 7476 + * Mode of operation for the model representing broad area of topic that will be talked about in the supplied audio 7477 + */ 7478 + mode?: "general" | "medical" | "finance"; 7479 + /** 7480 + * Transcribe each audio channel independently. 7481 + */ 7482 + multichannel?: boolean; 7483 + /** 7484 + * Numerals converts numbers from written format to numerical format. 7485 + */ 7486 + numerals?: boolean; 7487 + /** 7488 + * Splits audio into paragraphs to improve transcript readability. 7489 + */ 7490 + paragraphs?: boolean; 7491 + /** 7492 + * Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely. 7493 + */ 7494 + profanity_filter?: boolean; 7495 + /** 7496 + * Add punctuation and capitalization to the transcript. 7497 + */ 7498 + punctuate?: boolean; 7499 + /** 7500 + * Redaction removes sensitive information from your transcripts. 7501 + */ 7502 + redact?: string; 7503 + /** 7504 + * Search for terms or phrases in submitted audio and replaces them. 7505 + */ 7506 + replace?: string; 7507 + /** 7508 + * Search for terms or phrases in submitted audio. 7509 + */ 7510 + search?: string; 7511 + /** 7512 + * Recognizes the sentiment throughout a transcript or text. 7513 + */ 7514 + sentiment?: boolean; 7515 + /** 7516 + * Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability. 7517 + */ 7518 + smart_format?: boolean; 7519 + /** 7520 + * Detect topics throughout a transcript or text. 7521 + */ 7522 + topics?: boolean; 7523 + /** 7524 + * Segments speech into meaningful semantic units. 7525 + */ 7526 + utterances?: boolean; 7527 + /** 7528 + * Seconds to wait before detecting a pause between words in submitted audio. 7529 + */ 7530 + utt_split?: number; 7531 + /** 7532 + * The number of channels in the submitted audio 7533 + */ 7534 + channels?: number; 7535 + /** 7536 + * 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. 7537 + */ 7538 + interim_results?: boolean; 7539 + /** 7540 + * 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 7541 + */ 7542 + endpointing?: string; 7543 + /** 7544 + * Indicates that speech has started. You'll begin receiving Speech Started messages upon speech starting. Note: Supported only for webosockets. 7545 + */ 7546 + vad_events?: boolean; 7547 + /** 7548 + * 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. 7549 + */ 7550 + utterance_end_ms?: boolean; 7551 + } 7552 + interface Ai_Cf_Deepgram_Nova_3_Output { 7553 + results?: { 7554 + channels?: { 7555 + alternatives?: { 7556 + confidence?: number; 7557 + transcript?: string; 7558 + words?: { 7559 + confidence?: number; 7560 + end?: number; 7561 + start?: number; 7562 + word?: string; 7563 + }[]; 7564 + }[]; 7565 + }[]; 7566 + summary?: { 7567 + result?: string; 7568 + short?: string; 7569 + }; 7570 + sentiments?: { 7571 + segments?: { 7572 + text?: string; 7573 + start_word?: number; 7574 + end_word?: number; 7575 + sentiment?: string; 7576 + sentiment_score?: number; 7577 + }[]; 7578 + average?: { 7579 + sentiment?: string; 7580 + sentiment_score?: number; 7581 + }; 7582 + }; 7583 + }; 7584 + } 7585 + declare abstract class Base_Ai_Cf_Deepgram_Nova_3 { 7586 + inputs: Ai_Cf_Deepgram_Nova_3_Input; 7587 + postProcessedOutputs: Ai_Cf_Deepgram_Nova_3_Output; 7588 + } 7589 + interface Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Input { 7590 + queries?: string | string[]; 7591 + /** 7592 + * Optional instruction for the task 7593 + */ 7594 + instruction?: string; 7595 + documents?: string | string[]; 7596 + text?: string | string[]; 7597 + } 7598 + interface Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Output { 7599 + data?: number[][]; 7600 + shape?: number[]; 7601 + } 7602 + declare abstract class Base_Ai_Cf_Qwen_Qwen3_Embedding_0_6B { 7603 + inputs: Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Input; 7604 + postProcessedOutputs: Ai_Cf_Qwen_Qwen3_Embedding_0_6B_Output; 7605 + } 7606 + type Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input = { 7607 + /** 7608 + * readable stream with audio data and content-type specified for that data 7609 + */ 7610 + audio: { 7611 + body: object; 7612 + contentType: string; 7613 + }; 7614 + /** 7615 + * type of data PCM data that's sent to the inference server as raw array 7616 + */ 7617 + dtype?: "uint8" | "float32" | "float64"; 7618 + } | { 7619 + /** 7620 + * base64 encoded audio data 7621 + */ 7622 + audio: string; 7623 + /** 7624 + * type of data PCM data that's sent to the inference server as raw array 7625 + */ 7626 + dtype?: "uint8" | "float32" | "float64"; 7627 + }; 7628 + interface Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output { 7629 + /** 7630 + * if true, end-of-turn was detected 7631 + */ 7632 + is_complete?: boolean; 7633 + /** 7634 + * probability of the end-of-turn detection 7635 + */ 7636 + probability?: number; 7637 + } 7638 + declare abstract class Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2 { 7639 + inputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input; 7640 + postProcessedOutputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output; 7641 + } 7642 + declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_120B { 7643 + inputs: ResponsesInput; 7644 + postProcessedOutputs: ResponsesOutput; 7645 + } 7646 + declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_20B { 7647 + inputs: ResponsesInput; 7648 + postProcessedOutputs: ResponsesOutput; 7649 + } 7650 + interface Ai_Cf_Leonardo_Phoenix_1_0_Input { 7651 + /** 7652 + * A text description of the image you want to generate. 7653 + */ 7654 + prompt: string; 7655 + /** 7656 + * Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt 7657 + */ 7658 + guidance?: number; 7659 + /** 7660 + * Random seed for reproducibility of the image generation 7661 + */ 7662 + seed?: number; 7663 + /** 7664 + * The height of the generated image in pixels 7665 + */ 7666 + height?: number; 7667 + /** 7668 + * The width of the generated image in pixels 7669 + */ 7670 + width?: number; 7671 + /** 7672 + * The number of diffusion steps; higher values can improve quality but take longer 7673 + */ 7674 + num_steps?: number; 7675 + /** 7676 + * Specify what to exclude from the generated images 7677 + */ 7678 + negative_prompt?: string; 7679 + } 7680 + /** 7681 + * The generated image in JPEG format 7682 + */ 7683 + type Ai_Cf_Leonardo_Phoenix_1_0_Output = string; 7684 + declare abstract class Base_Ai_Cf_Leonardo_Phoenix_1_0 { 7685 + inputs: Ai_Cf_Leonardo_Phoenix_1_0_Input; 7686 + postProcessedOutputs: Ai_Cf_Leonardo_Phoenix_1_0_Output; 7687 + } 7688 + interface Ai_Cf_Leonardo_Lucid_Origin_Input { 7689 + /** 7690 + * A text description of the image you want to generate. 7691 + */ 7692 + prompt: string; 7693 + /** 7694 + * Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt 7695 + */ 7696 + guidance?: number; 7697 + /** 7698 + * Random seed for reproducibility of the image generation 7699 + */ 7700 + seed?: number; 7701 + /** 7702 + * The height of the generated image in pixels 7703 + */ 7704 + height?: number; 7705 + /** 7706 + * The width of the generated image in pixels 7707 + */ 7708 + width?: number; 7709 + /** 7710 + * The number of diffusion steps; higher values can improve quality but take longer 7711 + */ 7712 + num_steps?: number; 7713 + /** 7714 + * The number of diffusion steps; higher values can improve quality but take longer 7715 + */ 7716 + steps?: number; 7717 + } 7718 + interface Ai_Cf_Leonardo_Lucid_Origin_Output { 7719 + /** 7720 + * The generated image in Base64 format. 7721 + */ 7722 + image?: string; 7723 + } 7724 + declare abstract class Base_Ai_Cf_Leonardo_Lucid_Origin { 7725 + inputs: Ai_Cf_Leonardo_Lucid_Origin_Input; 7726 + postProcessedOutputs: Ai_Cf_Leonardo_Lucid_Origin_Output; 7727 + } 7728 + interface Ai_Cf_Deepgram_Aura_1_Input { 7729 + /** 7730 + * Speaker used to produce the audio. 7731 + */ 7732 + speaker?: "angus" | "asteria" | "arcas" | "orion" | "orpheus" | "athena" | "luna" | "zeus" | "perseus" | "helios" | "hera" | "stella"; 7733 + /** 7734 + * Encoding of the output audio. 7735 + */ 7736 + encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac"; 7737 + /** 7738 + * Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. 7739 + */ 7740 + container?: "none" | "wav" | "ogg"; 7741 + /** 7742 + * The text content to be converted to speech 7743 + */ 7744 + text: string; 7745 + /** 7746 + * 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 7747 + */ 7748 + sample_rate?: number; 7749 + /** 7750 + * The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. 7751 + */ 7752 + bit_rate?: number; 7753 + } 7754 + /** 7755 + * The generated audio in MP3 format 7756 + */ 7757 + type Ai_Cf_Deepgram_Aura_1_Output = string; 7758 + declare abstract class Base_Ai_Cf_Deepgram_Aura_1 { 7759 + inputs: Ai_Cf_Deepgram_Aura_1_Input; 7760 + postProcessedOutputs: Ai_Cf_Deepgram_Aura_1_Output; 7761 + } 7762 + interface Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Input { 7763 + /** 7764 + * Input text to translate. Can be a single string or a list of strings. 7765 + */ 7766 + text: string | string[]; 7767 + /** 7768 + * Target language to translate to 7769 + */ 7770 + 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"; 7771 + } 7772 + interface Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Output { 7773 + /** 7774 + * Translated texts 7775 + */ 7776 + translations: string[]; 7777 + } 7778 + declare abstract class Base_Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B { 7779 + inputs: Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Input; 7780 + postProcessedOutputs: Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Output; 7781 + } 7782 + 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; 7783 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt { 7784 + /** 7785 + * The input text prompt for the model to generate a response. 7786 + */ 7787 + prompt: string; 7788 + /** 7789 + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 7790 + */ 7791 + lora?: string; 7792 + response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode; 7793 + /** 7794 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 7795 + */ 7796 + raw?: boolean; 7797 + /** 7798 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 7799 + */ 7800 + stream?: boolean; 7801 + /** 7802 + * The maximum number of tokens to generate in the response. 7803 + */ 7804 + max_tokens?: number; 7805 + /** 7806 + * Controls the randomness of the output; higher values produce more random results. 7807 + */ 7808 + temperature?: number; 7809 + /** 7810 + * 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. 7811 + */ 7812 + top_p?: number; 7813 + /** 7814 + * 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. 7815 + */ 7816 + top_k?: number; 7817 + /** 7818 + * Random seed for reproducibility of the generation. 7819 + */ 7820 + seed?: number; 7821 + /** 7822 + * Penalty for repeated tokens; higher values discourage repetition. 7823 + */ 7824 + repetition_penalty?: number; 7825 + /** 7826 + * Decreases the likelihood of the model repeating the same lines verbatim. 7827 + */ 7828 + frequency_penalty?: number; 7829 + /** 7830 + * Increases the likelihood of the model introducing new topics. 7831 + */ 7832 + presence_penalty?: number; 7833 + } 7834 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode { 7835 + type?: "json_object" | "json_schema"; 7836 + json_schema?: unknown; 7837 + } 7838 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages { 7839 + /** 7840 + * An array of message objects representing the conversation history. 7841 + */ 7842 + messages: { 7843 + /** 7844 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 7845 + */ 7846 + role: string; 7847 + /** 7848 + * The content of the message as a string. 7849 + */ 7850 + content: string; 7851 + }[]; 7852 + functions?: { 7853 + name: string; 7854 + code: string; 7855 + }[]; 7856 + /** 7857 + * A list of tools available for the assistant to use. 7858 + */ 7859 + tools?: ({ 7860 + /** 7861 + * The name of the tool. More descriptive the better. 7862 + */ 7863 + name: string; 7864 + /** 7865 + * A brief description of what the tool does. 7866 + */ 7867 + description: string; 7868 + /** 7869 + * Schema defining the parameters accepted by the tool. 7870 + */ 7871 + parameters: { 7872 + /** 7873 + * The type of the parameters object (usually 'object'). 7874 + */ 7875 + type: string; 7876 + /** 7877 + * List of required parameter names. 7878 + */ 7879 + required?: string[]; 7880 + /** 7881 + * Definitions of each parameter. 7882 + */ 7883 + properties: { 7884 + [k: string]: { 7885 + /** 7886 + * The data type of the parameter. 7887 + */ 7888 + type: string; 7889 + /** 7890 + * A description of the expected parameter. 7891 + */ 7892 + description: string; 7893 + }; 7894 + }; 7895 + }; 7896 + } | { 7897 + /** 7898 + * Specifies the type of tool (e.g., 'function'). 7899 + */ 7900 + type: string; 7901 + /** 7902 + * Details of the function tool. 7903 + */ 7904 + function: { 7905 + /** 7906 + * The name of the function. 7907 + */ 7908 + name: string; 7909 + /** 7910 + * A brief description of what the function does. 7911 + */ 7912 + description: string; 7913 + /** 7914 + * Schema defining the parameters accepted by the function. 7915 + */ 7916 + parameters: { 7917 + /** 7918 + * The type of the parameters object (usually 'object'). 7919 + */ 7920 + type: string; 7921 + /** 7922 + * List of required parameter names. 7923 + */ 7924 + required?: string[]; 7925 + /** 7926 + * Definitions of each parameter. 7927 + */ 7928 + properties: { 7929 + [k: string]: { 7930 + /** 7931 + * The data type of the parameter. 7932 + */ 7933 + type: string; 7934 + /** 7935 + * A description of the expected parameter. 7936 + */ 7937 + description: string; 7938 + }; 7939 + }; 7940 + }; 7941 + }; 7942 + })[]; 7943 + response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_1; 7944 + /** 7945 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 7946 + */ 7947 + raw?: boolean; 7948 + /** 7949 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 7950 + */ 7951 + stream?: boolean; 7952 + /** 7953 + * The maximum number of tokens to generate in the response. 7954 + */ 7955 + max_tokens?: number; 7956 + /** 7957 + * Controls the randomness of the output; higher values produce more random results. 7958 + */ 7959 + temperature?: number; 7960 + /** 7961 + * 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. 7962 + */ 7963 + top_p?: number; 7964 + /** 7965 + * 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. 7966 + */ 7967 + top_k?: number; 7968 + /** 7969 + * Random seed for reproducibility of the generation. 7970 + */ 7971 + seed?: number; 7972 + /** 7973 + * Penalty for repeated tokens; higher values discourage repetition. 7974 + */ 7975 + repetition_penalty?: number; 7976 + /** 7977 + * Decreases the likelihood of the model repeating the same lines verbatim. 7978 + */ 7979 + frequency_penalty?: number; 7980 + /** 7981 + * Increases the likelihood of the model introducing new topics. 7982 + */ 7983 + presence_penalty?: number; 7984 + } 7985 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_1 { 7986 + type?: "json_object" | "json_schema"; 7987 + json_schema?: unknown; 7988 + } 7989 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Async_Batch { 7990 + requests: (Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt_1 | Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages_1)[]; 7991 + } 7992 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Prompt_1 { 7993 + /** 7994 + * The input text prompt for the model to generate a response. 7995 + */ 7996 + prompt: string; 7997 + /** 7998 + * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 7999 + */ 8000 + lora?: string; 8001 + response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_2; 8002 + /** 8003 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 8004 + */ 8005 + raw?: boolean; 8006 + /** 8007 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 8008 + */ 8009 + stream?: boolean; 8010 + /** 8011 + * The maximum number of tokens to generate in the response. 8012 + */ 8013 + max_tokens?: number; 8014 + /** 8015 + * Controls the randomness of the output; higher values produce more random results. 8016 + */ 8017 + temperature?: number; 8018 + /** 8019 + * 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. 8020 + */ 8021 + top_p?: number; 8022 + /** 8023 + * 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. 8024 + */ 8025 + top_k?: number; 8026 + /** 8027 + * Random seed for reproducibility of the generation. 8028 + */ 8029 + seed?: number; 8030 + /** 8031 + * Penalty for repeated tokens; higher values discourage repetition. 8032 + */ 8033 + repetition_penalty?: number; 8034 + /** 8035 + * Decreases the likelihood of the model repeating the same lines verbatim. 8036 + */ 8037 + frequency_penalty?: number; 8038 + /** 8039 + * Increases the likelihood of the model introducing new topics. 8040 + */ 8041 + presence_penalty?: number; 8042 + } 8043 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_2 { 8044 + type?: "json_object" | "json_schema"; 8045 + json_schema?: unknown; 8046 + } 8047 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Messages_1 { 8048 + /** 8049 + * An array of message objects representing the conversation history. 8050 + */ 8051 + messages: { 8052 + /** 8053 + * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 8054 + */ 8055 + role: string; 8056 + /** 8057 + * The content of the message as a string. 8058 + */ 8059 + content: string; 8060 + }[]; 8061 + functions?: { 8062 + name: string; 8063 + code: string; 8064 + }[]; 8065 + /** 8066 + * A list of tools available for the assistant to use. 8067 + */ 8068 + tools?: ({ 8069 + /** 8070 + * The name of the tool. More descriptive the better. 8071 + */ 8072 + name: string; 8073 + /** 8074 + * A brief description of what the tool does. 8075 + */ 8076 + description: string; 8077 + /** 8078 + * Schema defining the parameters accepted by the tool. 8079 + */ 8080 + parameters: { 8081 + /** 8082 + * The type of the parameters object (usually 'object'). 8083 + */ 8084 + type: string; 8085 + /** 8086 + * List of required parameter names. 8087 + */ 8088 + required?: string[]; 8089 + /** 8090 + * Definitions of each parameter. 8091 + */ 8092 + properties: { 8093 + [k: string]: { 8094 + /** 8095 + * The data type of the parameter. 8096 + */ 8097 + type: string; 8098 + /** 8099 + * A description of the expected parameter. 8100 + */ 8101 + description: string; 8102 + }; 8103 + }; 8104 + }; 8105 + } | { 8106 + /** 8107 + * Specifies the type of tool (e.g., 'function'). 8108 + */ 8109 + type: string; 8110 + /** 8111 + * Details of the function tool. 8112 + */ 8113 + function: { 8114 + /** 8115 + * The name of the function. 8116 + */ 8117 + name: string; 8118 + /** 8119 + * A brief description of what the function does. 8120 + */ 8121 + description: string; 8122 + /** 8123 + * Schema defining the parameters accepted by the function. 8124 + */ 8125 + parameters: { 8126 + /** 8127 + * The type of the parameters object (usually 'object'). 8128 + */ 8129 + type: string; 8130 + /** 8131 + * List of required parameter names. 8132 + */ 8133 + required?: string[]; 8134 + /** 8135 + * Definitions of each parameter. 8136 + */ 8137 + properties: { 8138 + [k: string]: { 8139 + /** 8140 + * The data type of the parameter. 8141 + */ 8142 + type: string; 8143 + /** 8144 + * A description of the expected parameter. 8145 + */ 8146 + description: string; 8147 + }; 8148 + }; 8149 + }; 8150 + }; 8151 + })[]; 8152 + response_format?: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_3; 8153 + /** 8154 + * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 8155 + */ 8156 + raw?: boolean; 8157 + /** 8158 + * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 8159 + */ 8160 + stream?: boolean; 8161 + /** 8162 + * The maximum number of tokens to generate in the response. 8163 + */ 8164 + max_tokens?: number; 8165 + /** 8166 + * Controls the randomness of the output; higher values produce more random results. 8167 + */ 8168 + temperature?: number; 8169 + /** 8170 + * 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. 8171 + */ 8172 + top_p?: number; 8173 + /** 8174 + * 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. 8175 + */ 8176 + top_k?: number; 8177 + /** 8178 + * Random seed for reproducibility of the generation. 8179 + */ 8180 + seed?: number; 8181 + /** 8182 + * Penalty for repeated tokens; higher values discourage repetition. 8183 + */ 8184 + repetition_penalty?: number; 8185 + /** 8186 + * Decreases the likelihood of the model repeating the same lines verbatim. 8187 + */ 8188 + frequency_penalty?: number; 8189 + /** 8190 + * Increases the likelihood of the model introducing new topics. 8191 + */ 8192 + presence_penalty?: number; 8193 + } 8194 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_JSON_Mode_3 { 8195 + type?: "json_object" | "json_schema"; 8196 + json_schema?: unknown; 8197 + } 8198 + 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; 8199 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Chat_Completion_Response { 8200 + /** 8201 + * Unique identifier for the completion 8202 + */ 8203 + id?: string; 8204 + /** 8205 + * Object type identifier 8206 + */ 8207 + object?: "chat.completion"; 8208 + /** 8209 + * Unix timestamp of when the completion was created 8210 + */ 8211 + created?: number; 8212 + /** 8213 + * Model used for the completion 8214 + */ 8215 + model?: string; 8216 + /** 8217 + * List of completion choices 8218 + */ 8219 + choices?: { 8220 + /** 8221 + * Index of the choice in the list 8222 + */ 8223 + index?: number; 8224 + /** 8225 + * The message generated by the model 8226 + */ 8227 + message?: { 8228 + /** 8229 + * Role of the message author 8230 + */ 8231 + role: string; 8232 + /** 8233 + * The content of the message 8234 + */ 8235 + content: string; 8236 + /** 8237 + * Internal reasoning content (if available) 8238 + */ 8239 + reasoning_content?: string; 8240 + /** 8241 + * Tool calls made by the assistant 8242 + */ 8243 + tool_calls?: { 8244 + /** 8245 + * Unique identifier for the tool call 8246 + */ 8247 + id: string; 8248 + /** 8249 + * Type of tool call 8250 + */ 8251 + type: "function"; 8252 + function: { 8253 + /** 8254 + * Name of the function to call 8255 + */ 8256 + name: string; 8257 + /** 8258 + * JSON string of arguments for the function 8259 + */ 8260 + arguments: string; 8261 + }; 8262 + }[]; 8263 + }; 8264 + /** 8265 + * Reason why the model stopped generating 8266 + */ 8267 + finish_reason?: string; 8268 + /** 8269 + * Stop reason (may be null) 8270 + */ 8271 + stop_reason?: string | null; 8272 + /** 8273 + * Log probabilities (if requested) 8274 + */ 8275 + logprobs?: {} | null; 8276 + }[]; 8277 + /** 8278 + * Usage statistics for the inference request 8279 + */ 8280 + usage?: { 8281 + /** 8282 + * Total number of tokens in input 8283 + */ 8284 + prompt_tokens?: number; 8285 + /** 8286 + * Total number of tokens in output 8287 + */ 8288 + completion_tokens?: number; 8289 + /** 8290 + * Total number of input and output tokens 8291 + */ 8292 + total_tokens?: number; 8293 + }; 8294 + /** 8295 + * Log probabilities for the prompt (if requested) 8296 + */ 8297 + prompt_logprobs?: {} | null; 8298 + } 8299 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Text_Completion_Response { 8300 + /** 8301 + * Unique identifier for the completion 8302 + */ 8303 + id?: string; 8304 + /** 8305 + * Object type identifier 8306 + */ 8307 + object?: "text_completion"; 8308 + /** 8309 + * Unix timestamp of when the completion was created 8310 + */ 8311 + created?: number; 8312 + /** 8313 + * Model used for the completion 8314 + */ 8315 + model?: string; 8316 + /** 8317 + * List of completion choices 8318 + */ 8319 + choices?: { 8320 + /** 8321 + * Index of the choice in the list 8322 + */ 8323 + index: number; 8324 + /** 8325 + * The generated text completion 8326 + */ 8327 + text: string; 8328 + /** 8329 + * Reason why the model stopped generating 8330 + */ 8331 + finish_reason: string; 8332 + /** 8333 + * Stop reason (may be null) 8334 + */ 8335 + stop_reason?: string | null; 8336 + /** 8337 + * Log probabilities (if requested) 8338 + */ 8339 + logprobs?: {} | null; 8340 + /** 8341 + * Log probabilities for the prompt (if requested) 8342 + */ 8343 + prompt_logprobs?: {} | null; 8344 + }[]; 8345 + /** 8346 + * Usage statistics for the inference request 8347 + */ 8348 + usage?: { 8349 + /** 8350 + * Total number of tokens in input 8351 + */ 8352 + prompt_tokens?: number; 8353 + /** 8354 + * Total number of tokens in output 8355 + */ 8356 + completion_tokens?: number; 8357 + /** 8358 + * Total number of input and output tokens 8359 + */ 8360 + total_tokens?: number; 8361 + }; 8362 + } 8363 + interface Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_AsyncResponse { 8364 + /** 8365 + * The async request id that can be used to obtain the results. 8366 + */ 8367 + request_id?: string; 8368 + } 8369 + declare abstract class Base_Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It { 8370 + inputs: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Input; 8371 + postProcessedOutputs: Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It_Output; 8372 + } 8373 + interface Ai_Cf_Pfnet_Plamo_Embedding_1B_Input { 8374 + /** 8375 + * Input text to embed. Can be a single string or a list of strings. 8376 + */ 8377 + text: string | string[]; 8378 + } 8379 + interface Ai_Cf_Pfnet_Plamo_Embedding_1B_Output { 8380 + /** 8381 + * Embedding vectors, where each vector is a list of floats. 8382 + */ 8383 + data: number[][]; 8384 + /** 8385 + * Shape of the embedding data as [number_of_embeddings, embedding_dimension]. 8386 + * 8387 + * @minItems 2 8388 + * @maxItems 2 8389 + */ 8390 + shape: [ 8391 + number, 8392 + number 8393 + ]; 8394 + } 8395 + declare abstract class Base_Ai_Cf_Pfnet_Plamo_Embedding_1B { 8396 + inputs: Ai_Cf_Pfnet_Plamo_Embedding_1B_Input; 8397 + postProcessedOutputs: Ai_Cf_Pfnet_Plamo_Embedding_1B_Output; 8398 + } 8399 + interface Ai_Cf_Deepgram_Flux_Input { 8400 + /** 8401 + * Encoding of the audio stream. Currently only supports raw signed little-endian 16-bit PCM. 8402 + */ 8403 + encoding: "linear16"; 8404 + /** 8405 + * Sample rate of the audio stream in Hz. 8406 + */ 8407 + sample_rate: string; 8408 + /** 8409 + * 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. 8410 + */ 8411 + eager_eot_threshold?: string; 8412 + /** 8413 + * End-of-turn confidence required to finish a turn. Valid Values 0.5 - 0.9. 8414 + */ 8415 + eot_threshold?: string; 8416 + /** 8417 + * A turn will be finished when this much time has passed after speech, regardless of EOT confidence. 8418 + */ 8419 + eot_timeout_ms?: string; 8420 + /** 8421 + * Keyterm prompting can improve recognition of specialized terminology. Pass multiple keyterm query parameters to boost multiple keyterms. 8422 + */ 8423 + keyterm?: string; 8424 + /** 8425 + * 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 8426 + */ 8427 + mip_opt_out?: "true" | "false"; 8428 + /** 8429 + * Label your requests for the purpose of identification during usage reporting 8430 + */ 8431 + tag?: string; 8432 + } 8433 + /** 8434 + * Output will be returned as websocket messages. 8435 + */ 8436 + interface Ai_Cf_Deepgram_Flux_Output { 8437 + /** 8438 + * The unique identifier of the request (uuid) 8439 + */ 8440 + request_id?: string; 8441 + /** 8442 + * Starts at 0 and increments for each message the server sends to the client. 8443 + */ 8444 + sequence_id?: number; 8445 + /** 8446 + * The type of event being reported. 8447 + */ 8448 + event?: "Update" | "StartOfTurn" | "EagerEndOfTurn" | "TurnResumed" | "EndOfTurn"; 8449 + /** 8450 + * The index of the current turn 8451 + */ 8452 + turn_index?: number; 8453 + /** 8454 + * Start time in seconds of the audio range that was transcribed 8455 + */ 8456 + audio_window_start?: number; 8457 + /** 8458 + * End time in seconds of the audio range that was transcribed 8459 + */ 8460 + audio_window_end?: number; 8461 + /** 8462 + * Text that was said over the course of the current turn 8463 + */ 8464 + transcript?: string; 8465 + /** 8466 + * The words in the transcript 8467 + */ 8468 + words?: { 8469 + /** 8470 + * The individual punctuated, properly-cased word from the transcript 8471 + */ 8472 + word: string; 8473 + /** 8474 + * Confidence that this word was transcribed correctly 8475 + */ 8476 + confidence: number; 8477 + }[]; 8478 + /** 8479 + * Confidence that no more speech is coming in this turn 8480 + */ 8481 + end_of_turn_confidence?: number; 8482 + } 8483 + declare abstract class Base_Ai_Cf_Deepgram_Flux { 8484 + inputs: Ai_Cf_Deepgram_Flux_Input; 8485 + postProcessedOutputs: Ai_Cf_Deepgram_Flux_Output; 8486 + } 8487 + interface Ai_Cf_Deepgram_Aura_2_En_Input { 8488 + /** 8489 + * Speaker used to produce the audio. 8490 + */ 8491 + 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"; 8492 + /** 8493 + * Encoding of the output audio. 8494 + */ 8495 + encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac"; 8496 + /** 8497 + * Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. 8498 + */ 8499 + container?: "none" | "wav" | "ogg"; 8500 + /** 8501 + * The text content to be converted to speech 8502 + */ 8503 + text: string; 8504 + /** 8505 + * 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 8506 + */ 8507 + sample_rate?: number; 8508 + /** 8509 + * The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. 8510 + */ 8511 + bit_rate?: number; 8512 + } 8513 + /** 8514 + * The generated audio in MP3 format 8515 + */ 8516 + type Ai_Cf_Deepgram_Aura_2_En_Output = string; 8517 + declare abstract class Base_Ai_Cf_Deepgram_Aura_2_En { 8518 + inputs: Ai_Cf_Deepgram_Aura_2_En_Input; 8519 + postProcessedOutputs: Ai_Cf_Deepgram_Aura_2_En_Output; 8520 + } 8521 + interface Ai_Cf_Deepgram_Aura_2_Es_Input { 8522 + /** 8523 + * Speaker used to produce the audio. 8524 + */ 8525 + speaker?: "sirio" | "nestor" | "carina" | "celeste" | "alvaro" | "diana" | "aquila" | "selena" | "estrella" | "javier"; 8526 + /** 8527 + * Encoding of the output audio. 8528 + */ 8529 + encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac"; 8530 + /** 8531 + * Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. 8532 + */ 8533 + container?: "none" | "wav" | "ogg"; 8534 + /** 8535 + * The text content to be converted to speech 8536 + */ 8537 + text: string; 8538 + /** 8539 + * 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 8540 + */ 8541 + sample_rate?: number; 8542 + /** 8543 + * The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. 8544 + */ 8545 + bit_rate?: number; 8546 + } 8547 + /** 8548 + * The generated audio in MP3 format 8549 + */ 8550 + type Ai_Cf_Deepgram_Aura_2_Es_Output = string; 8551 + declare abstract class Base_Ai_Cf_Deepgram_Aura_2_Es { 8552 + inputs: Ai_Cf_Deepgram_Aura_2_Es_Input; 8553 + postProcessedOutputs: Ai_Cf_Deepgram_Aura_2_Es_Output; 8554 + } 8555 + interface AiModels { 8556 + "@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification; 8557 + "@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage; 8558 + "@cf/runwayml/stable-diffusion-v1-5-inpainting": BaseAiTextToImage; 8559 + "@cf/runwayml/stable-diffusion-v1-5-img2img": BaseAiTextToImage; 8560 + "@cf/lykon/dreamshaper-8-lcm": BaseAiTextToImage; 8561 + "@cf/bytedance/stable-diffusion-xl-lightning": BaseAiTextToImage; 8562 + "@cf/myshell-ai/melotts": BaseAiTextToSpeech; 8563 + "@cf/google/embeddinggemma-300m": BaseAiTextEmbeddings; 8564 + "@cf/microsoft/resnet-50": BaseAiImageClassification; 8565 + "@cf/meta/llama-2-7b-chat-int8": BaseAiTextGeneration; 8566 + "@cf/mistral/mistral-7b-instruct-v0.1": BaseAiTextGeneration; 8567 + "@cf/meta/llama-2-7b-chat-fp16": BaseAiTextGeneration; 8568 + "@hf/thebloke/llama-2-13b-chat-awq": BaseAiTextGeneration; 8569 + "@hf/thebloke/mistral-7b-instruct-v0.1-awq": BaseAiTextGeneration; 8570 + "@hf/thebloke/zephyr-7b-beta-awq": BaseAiTextGeneration; 8571 + "@hf/thebloke/openhermes-2.5-mistral-7b-awq": BaseAiTextGeneration; 8572 + "@hf/thebloke/neural-chat-7b-v3-1-awq": BaseAiTextGeneration; 8573 + "@hf/thebloke/llamaguard-7b-awq": BaseAiTextGeneration; 8574 + "@hf/thebloke/deepseek-coder-6.7b-base-awq": BaseAiTextGeneration; 8575 + "@hf/thebloke/deepseek-coder-6.7b-instruct-awq": BaseAiTextGeneration; 8576 + "@cf/deepseek-ai/deepseek-math-7b-instruct": BaseAiTextGeneration; 8577 + "@cf/defog/sqlcoder-7b-2": BaseAiTextGeneration; 8578 + "@cf/openchat/openchat-3.5-0106": BaseAiTextGeneration; 8579 + "@cf/tiiuae/falcon-7b-instruct": BaseAiTextGeneration; 8580 + "@cf/thebloke/discolm-german-7b-v1-awq": BaseAiTextGeneration; 8581 + "@cf/qwen/qwen1.5-0.5b-chat": BaseAiTextGeneration; 8582 + "@cf/qwen/qwen1.5-7b-chat-awq": BaseAiTextGeneration; 8583 + "@cf/qwen/qwen1.5-14b-chat-awq": BaseAiTextGeneration; 8584 + "@cf/tinyllama/tinyllama-1.1b-chat-v1.0": BaseAiTextGeneration; 8585 + "@cf/microsoft/phi-2": BaseAiTextGeneration; 8586 + "@cf/qwen/qwen1.5-1.8b-chat": BaseAiTextGeneration; 8587 + "@cf/mistral/mistral-7b-instruct-v0.2-lora": BaseAiTextGeneration; 8588 + "@hf/nousresearch/hermes-2-pro-mistral-7b": BaseAiTextGeneration; 8589 + "@hf/nexusflow/starling-lm-7b-beta": BaseAiTextGeneration; 8590 + "@hf/google/gemma-7b-it": BaseAiTextGeneration; 8591 + "@cf/meta-llama/llama-2-7b-chat-hf-lora": BaseAiTextGeneration; 8592 + "@cf/google/gemma-2b-it-lora": BaseAiTextGeneration; 8593 + "@cf/google/gemma-7b-it-lora": BaseAiTextGeneration; 8594 + "@hf/mistral/mistral-7b-instruct-v0.2": BaseAiTextGeneration; 8595 + "@cf/meta/llama-3-8b-instruct": BaseAiTextGeneration; 8596 + "@cf/fblgit/una-cybertron-7b-v2-bf16": BaseAiTextGeneration; 8597 + "@cf/meta/llama-3-8b-instruct-awq": BaseAiTextGeneration; 8598 + "@cf/meta/llama-3.1-8b-instruct-fp8": BaseAiTextGeneration; 8599 + "@cf/meta/llama-3.1-8b-instruct-awq": BaseAiTextGeneration; 8600 + "@cf/meta/llama-3.2-3b-instruct": BaseAiTextGeneration; 8601 + "@cf/meta/llama-3.2-1b-instruct": BaseAiTextGeneration; 8602 + "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b": BaseAiTextGeneration; 8603 + "@cf/ibm-granite/granite-4.0-h-micro": BaseAiTextGeneration; 8604 + "@cf/facebook/bart-large-cnn": BaseAiSummarization; 8605 + "@cf/llava-hf/llava-1.5-7b-hf": BaseAiImageToText; 8606 + "@cf/baai/bge-base-en-v1.5": Base_Ai_Cf_Baai_Bge_Base_En_V1_5; 8607 + "@cf/openai/whisper": Base_Ai_Cf_Openai_Whisper; 8608 + "@cf/meta/m2m100-1.2b": Base_Ai_Cf_Meta_M2M100_1_2B; 8609 + "@cf/baai/bge-small-en-v1.5": Base_Ai_Cf_Baai_Bge_Small_En_V1_5; 8610 + "@cf/baai/bge-large-en-v1.5": Base_Ai_Cf_Baai_Bge_Large_En_V1_5; 8611 + "@cf/unum/uform-gen2-qwen-500m": Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M; 8612 + "@cf/openai/whisper-tiny-en": Base_Ai_Cf_Openai_Whisper_Tiny_En; 8613 + "@cf/openai/whisper-large-v3-turbo": Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo; 8614 + "@cf/baai/bge-m3": Base_Ai_Cf_Baai_Bge_M3; 8615 + "@cf/black-forest-labs/flux-1-schnell": Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell; 8616 + "@cf/meta/llama-3.2-11b-vision-instruct": Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct; 8617 + "@cf/meta/llama-3.3-70b-instruct-fp8-fast": Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast; 8618 + "@cf/meta/llama-guard-3-8b": Base_Ai_Cf_Meta_Llama_Guard_3_8B; 8619 + "@cf/baai/bge-reranker-base": Base_Ai_Cf_Baai_Bge_Reranker_Base; 8620 + "@cf/qwen/qwen2.5-coder-32b-instruct": Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct; 8621 + "@cf/qwen/qwq-32b": Base_Ai_Cf_Qwen_Qwq_32B; 8622 + "@cf/mistralai/mistral-small-3.1-24b-instruct": Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct; 8623 + "@cf/google/gemma-3-12b-it": Base_Ai_Cf_Google_Gemma_3_12B_It; 8624 + "@cf/meta/llama-4-scout-17b-16e-instruct": Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct; 8625 + "@cf/qwen/qwen3-30b-a3b-fp8": Base_Ai_Cf_Qwen_Qwen3_30B_A3B_Fp8; 8626 + "@cf/deepgram/nova-3": Base_Ai_Cf_Deepgram_Nova_3; 8627 + "@cf/qwen/qwen3-embedding-0.6b": Base_Ai_Cf_Qwen_Qwen3_Embedding_0_6B; 8628 + "@cf/pipecat-ai/smart-turn-v2": Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2; 8629 + "@cf/openai/gpt-oss-120b": Base_Ai_Cf_Openai_Gpt_Oss_120B; 8630 + "@cf/openai/gpt-oss-20b": Base_Ai_Cf_Openai_Gpt_Oss_20B; 8631 + "@cf/leonardo/phoenix-1.0": Base_Ai_Cf_Leonardo_Phoenix_1_0; 8632 + "@cf/leonardo/lucid-origin": Base_Ai_Cf_Leonardo_Lucid_Origin; 8633 + "@cf/deepgram/aura-1": Base_Ai_Cf_Deepgram_Aura_1; 8634 + "@cf/ai4bharat/indictrans2-en-indic-1B": Base_Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B; 8635 + "@cf/aisingapore/gemma-sea-lion-v4-27b-it": Base_Ai_Cf_Aisingapore_Gemma_Sea_Lion_V4_27B_It; 8636 + "@cf/pfnet/plamo-embedding-1b": Base_Ai_Cf_Pfnet_Plamo_Embedding_1B; 8637 + "@cf/deepgram/flux": Base_Ai_Cf_Deepgram_Flux; 8638 + "@cf/deepgram/aura-2-en": Base_Ai_Cf_Deepgram_Aura_2_En; 8639 + "@cf/deepgram/aura-2-es": Base_Ai_Cf_Deepgram_Aura_2_Es; 8640 + } 8641 + type AiOptions = { 8642 + /** 8643 + * Send requests as an asynchronous batch job, only works for supported models 8644 + * https://developers.cloudflare.com/workers-ai/features/batch-api 8645 + */ 8646 + queueRequest?: boolean; 8647 + /** 8648 + * Establish websocket connections, only works for supported models 8649 + */ 8650 + websocket?: boolean; 8651 + /** 8652 + * Tag your requests to group and view them in Cloudflare dashboard. 8653 + * 8654 + * Rules: 8655 + * Tags must only contain letters, numbers, and the symbols: : - . / @ 8656 + * Each tag can have maximum 50 characters. 8657 + * Maximum 5 tags are allowed each request. 8658 + * Duplicate tags will removed. 8659 + */ 8660 + tags?: string[]; 8661 + gateway?: GatewayOptions; 8662 + returnRawResponse?: boolean; 8663 + prefix?: string; 8664 + extraHeaders?: object; 8665 + }; 8666 + type AiModelsSearchParams = { 8667 + author?: string; 8668 + hide_experimental?: boolean; 8669 + page?: number; 8670 + per_page?: number; 8671 + search?: string; 8672 + source?: number; 8673 + task?: string; 8674 + }; 8675 + type AiModelsSearchObject = { 8676 + id: string; 8677 + source: number; 8678 + name: string; 8679 + description: string; 8680 + task: { 8681 + id: string; 8682 + name: string; 8683 + description: string; 8684 + }; 8685 + tags: string[]; 8686 + properties: { 8687 + property_id: string; 8688 + value: string; 8689 + }[]; 8690 + }; 8691 + interface InferenceUpstreamError extends Error { 8692 + } 8693 + interface AiInternalError extends Error { 8694 + } 8695 + type AiModelListType = Record<string, any>; 8696 + declare abstract class Ai<AiModelList extends AiModelListType = AiModels> { 8697 + aiGatewayLogId: string | null; 8698 + gateway(gatewayId: string): AiGateway; 8699 + /** 8700 + * Access the AI Search API for managing AI-powered search instances. 8701 + * 8702 + * This is the new API that replaces AutoRAG with better namespace separation: 8703 + * - Account-level operations: `list()`, `create()` 8704 + * - Instance-level operations: `get(id).search()`, `get(id).chatCompletions()`, `get(id).delete()` 8705 + * 8706 + * @example 8707 + * ```typescript 8708 + * // List all AI Search instances 8709 + * const instances = await env.AI.aiSearch.list(); 8710 + * 8711 + * // Search an instance 8712 + * const results = await env.AI.aiSearch.get('my-search').search({ 8713 + * messages: [{ role: 'user', content: 'What is the policy?' }], 8714 + * ai_search_options: { 8715 + * retrieval: { max_num_results: 10 } 8716 + * } 8717 + * }); 8718 + * 8719 + * // Generate chat completions with AI Search context 8720 + * const response = await env.AI.aiSearch.get('my-search').chatCompletions({ 8721 + * messages: [{ role: 'user', content: 'What is the policy?' }], 8722 + * model: '@cf/meta/llama-3.3-70b-instruct-fp8-fast' 8723 + * }); 8724 + * ``` 8725 + */ 8726 + aiSearch(): AiSearchAccountService; 8727 + /** 8728 + * @deprecated AutoRAG has been replaced by AI Search. 8729 + * Use `env.AI.aiSearch` instead for better API design and new features. 8730 + * 8731 + * Migration guide: 8732 + * - `env.AI.autorag().list()` → `env.AI.aiSearch.list()` 8733 + * - `env.AI.autorag('id').search({ query: '...' })` → `env.AI.aiSearch.get('id').search({ messages: [{ role: 'user', content: '...' }] })` 8734 + * - `env.AI.autorag('id').aiSearch(...)` → `env.AI.aiSearch.get('id').chatCompletions(...)` 8735 + * 8736 + * Note: The old API continues to work for backwards compatibility, but new projects should use AI Search. 8737 + * 8738 + * @see AiSearchAccountService 8739 + * @param autoragId Optional instance ID (omit for account-level operations) 8740 + */ 8741 + autorag(autoragId: string): AutoRAG; 8742 + run<Name extends keyof AiModelList, Options extends AiOptions, InputOptions extends AiModelList[Name]["inputs"]>(model: Name, inputs: InputOptions, options?: Options): Promise<Options extends { 8743 + returnRawResponse: true; 8744 + } | { 8745 + websocket: true; 8746 + } ? Response : InputOptions extends { 8747 + stream: true; 8748 + } ? ReadableStream : AiModelList[Name]["postProcessedOutputs"]>; 8749 + models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>; 8750 + toMarkdown(): ToMarkdownService; 8751 + toMarkdown(files: MarkdownDocument[], options?: ConversionRequestOptions): Promise<ConversionResponse[]>; 8752 + toMarkdown(files: MarkdownDocument, options?: ConversionRequestOptions): Promise<ConversionResponse>; 8753 + } 8754 + type GatewayRetries = { 8755 + maxAttempts?: 1 | 2 | 3 | 4 | 5; 8756 + retryDelayMs?: number; 8757 + backoff?: 'constant' | 'linear' | 'exponential'; 8758 + }; 8759 + type GatewayOptions = { 8760 + id: string; 8761 + cacheKey?: string; 8762 + cacheTtl?: number; 8763 + skipCache?: boolean; 8764 + metadata?: Record<string, number | string | boolean | null | bigint>; 8765 + collectLog?: boolean; 8766 + eventId?: string; 8767 + requestTimeoutMs?: number; 8768 + retries?: GatewayRetries; 8769 + }; 8770 + type UniversalGatewayOptions = Exclude<GatewayOptions, 'id'> & { 8771 + /** 8772 + ** @deprecated 8773 + */ 8774 + id?: string; 8775 + }; 8776 + type AiGatewayPatchLog = { 8777 + score?: number | null; 8778 + feedback?: -1 | 1 | null; 8779 + metadata?: Record<string, number | string | boolean | null | bigint> | null; 8780 + }; 8781 + type AiGatewayLog = { 8782 + id: string; 8783 + provider: string; 8784 + model: string; 8785 + model_type?: string; 8786 + path: string; 8787 + duration: number; 8788 + request_type?: string; 8789 + request_content_type?: string; 8790 + status_code: number; 8791 + response_content_type?: string; 8792 + success: boolean; 8793 + cached: boolean; 8794 + tokens_in?: number; 8795 + tokens_out?: number; 8796 + metadata?: Record<string, number | string | boolean | null | bigint>; 8797 + step?: number; 8798 + cost?: number; 8799 + custom_cost?: boolean; 8800 + request_size: number; 8801 + request_head?: string; 8802 + request_head_complete: boolean; 8803 + response_size: number; 8804 + response_head?: string; 8805 + response_head_complete: boolean; 8806 + created_at: Date; 8807 + }; 8808 + 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'; 8809 + type AIGatewayHeaders = { 8810 + 'cf-aig-metadata': Record<string, number | string | boolean | null | bigint> | string; 8811 + 'cf-aig-custom-cost': { 8812 + per_token_in?: number; 8813 + per_token_out?: number; 8814 + } | { 8815 + total_cost?: number; 8816 + } | string; 8817 + 'cf-aig-cache-ttl': number | string; 8818 + 'cf-aig-skip-cache': boolean | string; 8819 + 'cf-aig-cache-key': string; 8820 + 'cf-aig-event-id': string; 8821 + 'cf-aig-request-timeout': number | string; 8822 + 'cf-aig-max-attempts': number | string; 8823 + 'cf-aig-retry-delay': number | string; 8824 + 'cf-aig-backoff': string; 8825 + 'cf-aig-collect-log': boolean | string; 8826 + Authorization: string; 8827 + 'Content-Type': string; 8828 + [key: string]: string | number | boolean | object; 8829 + }; 8830 + type AIGatewayUniversalRequest = { 8831 + provider: AIGatewayProviders | string; // eslint-disable-line 8832 + endpoint: string; 8833 + headers: Partial<AIGatewayHeaders>; 8834 + query: unknown; 8835 + }; 8836 + interface AiGatewayInternalError extends Error { 8837 + } 8838 + interface AiGatewayLogNotFound extends Error { 8839 + } 8840 + declare abstract class AiGateway { 8841 + patchLog(logId: string, data: AiGatewayPatchLog): Promise<void>; 8842 + getLog(logId: string): Promise<AiGatewayLog>; 8843 + run(data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[], options?: { 8844 + gateway?: UniversalGatewayOptions; 8845 + extraHeaders?: object; 8846 + }): Promise<Response>; 8847 + getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line 8848 + } 8849 + /** 8850 + * @deprecated AutoRAG has been replaced by AI Search. Use AiSearchInternalError instead. 8851 + * @see AiSearchInternalError 8852 + */ 8853 + interface AutoRAGInternalError extends Error { 8854 + } 8855 + /** 8856 + * @deprecated AutoRAG has been replaced by AI Search. Use AiSearchNotFoundError instead. 8857 + * @see AiSearchNotFoundError 8858 + */ 8859 + interface AutoRAGNotFoundError extends Error { 8860 + } 8861 + /** 8862 + * @deprecated This error type is no longer used in the AI Search API. 8863 + */ 8864 + interface AutoRAGUnauthorizedError extends Error { 8865 + } 8866 + /** 8867 + * @deprecated AutoRAG has been replaced by AI Search. Use AiSearchNameNotSetError instead. 8868 + * @see AiSearchNameNotSetError 8869 + */ 8870 + interface AutoRAGNameNotSetError extends Error { 8871 + } 8872 + type ComparisonFilter = { 8873 + key: string; 8874 + type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; 8875 + value: string | number | boolean; 8876 + }; 8877 + type CompoundFilter = { 8878 + type: 'and' | 'or'; 8879 + filters: ComparisonFilter[]; 8880 + }; 8881 + /** 8882 + * @deprecated AutoRAG has been replaced by AI Search. 8883 + * Use AiSearchSearchRequest with the new API instead. 8884 + * @see AiSearchSearchRequest 8885 + */ 8886 + type AutoRagSearchRequest = { 8887 + query: string; 8888 + filters?: CompoundFilter | ComparisonFilter; 8889 + max_num_results?: number; 8890 + ranking_options?: { 8891 + ranker?: string; 8892 + score_threshold?: number; 8893 + }; 8894 + reranking?: { 8895 + enabled?: boolean; 8896 + model?: string; 8897 + }; 8898 + rewrite_query?: boolean; 8899 + }; 8900 + /** 8901 + * @deprecated AutoRAG has been replaced by AI Search. 8902 + * Use AiSearchChatCompletionsRequest with the new API instead. 8903 + * @see AiSearchChatCompletionsRequest 8904 + */ 8905 + type AutoRagAiSearchRequest = AutoRagSearchRequest & { 8906 + stream?: boolean; 8907 + system_prompt?: string; 8908 + }; 8909 + /** 8910 + * @deprecated AutoRAG has been replaced by AI Search. 8911 + * Use AiSearchChatCompletionsRequest with stream: true instead. 8912 + * @see AiSearchChatCompletionsRequest 8913 + */ 8914 + type AutoRagAiSearchRequestStreaming = Omit<AutoRagAiSearchRequest, 'stream'> & { 8915 + stream: true; 8916 + }; 8917 + /** 8918 + * @deprecated AutoRAG has been replaced by AI Search. 8919 + * Use AiSearchSearchResponse with the new API instead. 8920 + * @see AiSearchSearchResponse 8921 + */ 8922 + type AutoRagSearchResponse = { 8923 + object: 'vector_store.search_results.page'; 8924 + search_query: string; 8925 + data: { 8926 + file_id: string; 8927 + filename: string; 8928 + score: number; 8929 + attributes: Record<string, string | number | boolean | null>; 8930 + content: { 8931 + type: 'text'; 8932 + text: string; 8933 + }[]; 8934 + }[]; 8935 + has_more: boolean; 8936 + next_page: string | null; 8937 + }; 8938 + /** 8939 + * @deprecated AutoRAG has been replaced by AI Search. 8940 + * Use AiSearchListResponse with the new API instead. 8941 + * @see AiSearchListResponse 8942 + */ 8943 + type AutoRagListResponse = { 8944 + id: string; 8945 + enable: boolean; 8946 + type: string; 8947 + source: string; 8948 + vectorize_name: string; 8949 + paused: boolean; 8950 + status: string; 8951 + }[]; 8952 + /** 8953 + * @deprecated AutoRAG has been replaced by AI Search. 8954 + * The new API returns different response formats for chat completions. 8955 + */ 8956 + type AutoRagAiSearchResponse = AutoRagSearchResponse & { 8957 + response: string; 8958 + }; 8959 + /** 8960 + * @deprecated AutoRAG has been replaced by AI Search. 8961 + * Use the new AI Search API instead: `env.AI.aiSearch` 8962 + * 8963 + * Migration guide: 8964 + * - `env.AI.autorag().list()` → `env.AI.aiSearch.list()` 8965 + * - `env.AI.autorag('id').search(...)` → `env.AI.aiSearch.get('id').search(...)` 8966 + * - `env.AI.autorag('id').aiSearch(...)` → `env.AI.aiSearch.get('id').chatCompletions(...)` 8967 + * 8968 + * @see AiSearchAccountService 8969 + * @see AiSearchInstanceService 8970 + */ 8971 + declare abstract class AutoRAG { 8972 + /** 8973 + * @deprecated Use `env.AI.aiSearch.list()` instead. 8974 + * @see AiSearchAccountService.list 8975 + */ 8976 + list(): Promise<AutoRagListResponse>; 8977 + /** 8978 + * @deprecated Use `env.AI.aiSearch.get(id).search(...)` instead. 8979 + * Note: The new API uses a messages array instead of a query string. 8980 + * @see AiSearchInstanceService.search 8981 + */ 8982 + search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>; 8983 + /** 8984 + * @deprecated Use `env.AI.aiSearch.get(id).chatCompletions(...)` instead. 8985 + * @see AiSearchInstanceService.chatCompletions 8986 + */ 8987 + aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>; 8988 + /** 8989 + * @deprecated Use `env.AI.aiSearch.get(id).chatCompletions(...)` instead. 8990 + * @see AiSearchInstanceService.chatCompletions 8991 + */ 8992 + aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>; 8993 + /** 8994 + * @deprecated Use `env.AI.aiSearch.get(id).chatCompletions(...)` instead. 8995 + * @see AiSearchInstanceService.chatCompletions 8996 + */ 8997 + aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse | Response>; 8998 + } 8999 + interface BasicImageTransformations { 9000 + /** 9001 + * Maximum width in image pixels. The value must be an integer. 9002 + */ 9003 + width?: number; 9004 + /** 9005 + * Maximum height in image pixels. The value must be an integer. 9006 + */ 9007 + height?: number; 9008 + /** 9009 + * Resizing mode as a string. It affects interpretation of width and height 9010 + * options: 9011 + * - scale-down: Similar to contain, but the image is never enlarged. If 9012 + * the image is larger than given width or height, it will be resized. 9013 + * Otherwise its original size will be kept. 9014 + * - contain: Resizes to maximum size that fits within the given width and 9015 + * height. If only a single dimension is given (e.g. only width), the 9016 + * image will be shrunk or enlarged to exactly match that dimension. 9017 + * Aspect ratio is always preserved. 9018 + * - cover: Resizes (shrinks or enlarges) to fill the entire area of width 9019 + * and height. If the image has an aspect ratio different from the ratio 9020 + * of width and height, it will be cropped to fit. 9021 + * - crop: The image will be shrunk and cropped to fit within the area 9022 + * specified by width and height. The image will not be enlarged. For images 9023 + * smaller than the given dimensions it's the same as scale-down. For 9024 + * images larger than the given dimensions, it's the same as cover. 9025 + * See also trim. 9026 + * - pad: Resizes to the maximum size that fits within the given width and 9027 + * height, and then fills the remaining area with a background color 9028 + * (white by default). Use of this mode is not recommended, as the same 9029 + * effect can be more efficiently achieved with the contain mode and the 9030 + * CSS object-fit: contain property. 9031 + * - squeeze: Stretches and deforms to the width and height given, even if it 9032 + * breaks aspect ratio 9033 + */ 9034 + fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze"; 9035 + /** 9036 + * Image segmentation using artificial intelligence models. Sets pixels not 9037 + * within selected segment area to transparent e.g "foreground" sets every 9038 + * background pixel as transparent. 9039 + */ 9040 + segment?: "foreground"; 9041 + /** 9042 + * When cropping with fit: "cover", this defines the side or point that should 9043 + * be left uncropped. The value is either a string 9044 + * "left", "right", "top", "bottom", "auto", or "center" (the default), 9045 + * or an object {x, y} containing focal point coordinates in the original 9046 + * image expressed as fractions ranging from 0.0 (top or left) to 1.0 9047 + * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will 9048 + * crop bottom or left and right sides as necessary, but won’t crop anything 9049 + * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to 9050 + * preserve as much as possible around a point at 20% of the height of the 9051 + * source image. 9052 + */ 9053 + gravity?: 'face' | 'left' | 'right' | 'top' | 'bottom' | 'center' | 'auto' | 'entropy' | BasicImageTransformationsGravityCoordinates; 9054 + /** 9055 + * Background color to add underneath the image. Applies only to images with 9056 + * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…), 9057 + * hsl(…), etc.) 9058 + */ 9059 + background?: string; 9060 + /** 9061 + * Number of degrees (90, 180, 270) to rotate the image by. width and height 9062 + * options refer to axes after rotation. 9063 + */ 9064 + rotate?: 0 | 90 | 180 | 270 | 360; 9065 + } 9066 + interface BasicImageTransformationsGravityCoordinates { 9067 + x?: number; 9068 + y?: number; 9069 + mode?: 'remainder' | 'box-center'; 9070 + } 9071 + /** 9072 + * In addition to the properties you can set in the RequestInit dict 9073 + * that you pass as an argument to the Request constructor, you can 9074 + * set certain properties of a `cf` object to control how Cloudflare 9075 + * features are applied to that new Request. 9076 + * 9077 + * Note: Currently, these properties cannot be tested in the 9078 + * playground. 9079 + */ 9080 + interface RequestInitCfProperties extends Record<string, unknown> { 9081 + cacheEverything?: boolean; 9082 + /** 9083 + * A request's cache key is what determines if two requests are 9084 + * "the same" for caching purposes. If a request has the same cache key 9085 + * as some previous request, then we can serve the same cached response for 9086 + * both. (e.g. 'some-key') 9087 + * 9088 + * Only available for Enterprise customers. 9089 + */ 9090 + cacheKey?: string; 9091 + /** 9092 + * This allows you to append additional Cache-Tag response headers 9093 + * to the origin response without modifications to the origin server. 9094 + * This will allow for greater control over the Purge by Cache Tag feature 9095 + * utilizing changes only in the Workers process. 9096 + * 9097 + * Only available for Enterprise customers. 9098 + */ 9099 + cacheTags?: string[]; 9100 + /** 9101 + * Force response to be cached for a given number of seconds. (e.g. 300) 9102 + */ 9103 + cacheTtl?: number; 9104 + /** 9105 + * Force response to be cached for a given number of seconds based on the Origin status code. 9106 + * (e.g. { '200-299': 86400, '404': 1, '500-599': 0 }) 9107 + */ 9108 + cacheTtlByStatus?: Record<string, number>; 9109 + scrapeShield?: boolean; 9110 + apps?: boolean; 9111 + image?: RequestInitCfPropertiesImage; 9112 + minify?: RequestInitCfPropertiesImageMinify; 9113 + mirage?: boolean; 9114 + polish?: "lossy" | "lossless" | "off"; 9115 + r2?: RequestInitCfPropertiesR2; 9116 + /** 9117 + * Redirects the request to an alternate origin server. You can use this, 9118 + * for example, to implement load balancing across several origins. 9119 + * (e.g.us-east.example.com) 9120 + * 9121 + * Note - For security reasons, the hostname set in resolveOverride must 9122 + * be proxied on the same Cloudflare zone of the incoming request. 9123 + * Otherwise, the setting is ignored. CNAME hosts are allowed, so to 9124 + * resolve to a host under a different domain or a DNS only domain first 9125 + * declare a CNAME record within your own zone’s DNS mapping to the 9126 + * external hostname, set proxy on Cloudflare, then set resolveOverride 9127 + * to point to that CNAME record. 9128 + */ 9129 + resolveOverride?: string; 9130 + } 9131 + interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations { 9132 + /** 9133 + * Absolute URL of the image file to use for the drawing. It can be any of 9134 + * the supported file formats. For drawing of watermarks or non-rectangular 9135 + * overlays we recommend using PNG or WebP images. 9136 + */ 9137 + url: string; 9138 + /** 9139 + * Floating-point number between 0 (transparent) and 1 (opaque). 9140 + * For example, opacity: 0.5 makes overlay semitransparent. 9141 + */ 9142 + opacity?: number; 9143 + /** 9144 + * - If set to true, the overlay image will be tiled to cover the entire 9145 + * area. This is useful for stock-photo-like watermarks. 9146 + * - If set to "x", the overlay image will be tiled horizontally only 9147 + * (form a line). 9148 + * - If set to "y", the overlay image will be tiled vertically only 9149 + * (form a line). 9150 + */ 9151 + repeat?: true | "x" | "y"; 9152 + /** 9153 + * Position of the overlay image relative to a given edge. Each property is 9154 + * an offset in pixels. 0 aligns exactly to the edge. For example, left: 10 9155 + * positions left side of the overlay 10 pixels from the left edge of the 9156 + * image it's drawn over. bottom: 0 aligns bottom of the overlay with bottom 9157 + * of the background image. 9158 + * 9159 + * Setting both left & right, or both top & bottom is an error. 9160 + * 9161 + * If no position is specified, the image will be centered. 9162 + */ 9163 + top?: number; 9164 + left?: number; 9165 + bottom?: number; 9166 + right?: number; 9167 + } 9168 + interface RequestInitCfPropertiesImage extends BasicImageTransformations { 9169 + /** 9170 + * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it 9171 + * easier to specify higher-DPI sizes in <img srcset>. 9172 + */ 9173 + dpr?: number; 9174 + /** 9175 + * Allows you to trim your image. Takes dpr into account and is performed before 9176 + * resizing or rotation. 9177 + * 9178 + * It can be used as: 9179 + * - left, top, right, bottom - it will specify the number of pixels to cut 9180 + * off each side 9181 + * - width, height - the width/height you'd like to end up with - can be used 9182 + * in combination with the properties above 9183 + * - border - this will automatically trim the surroundings of an image based on 9184 + * it's color. It consists of three properties: 9185 + * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit) 9186 + * - tolerance: difference from color to treat as color 9187 + * - keep: the number of pixels of border to keep 9188 + */ 9189 + trim?: "border" | { 9190 + top?: number; 9191 + bottom?: number; 9192 + left?: number; 9193 + right?: number; 9194 + width?: number; 9195 + height?: number; 9196 + border?: boolean | { 9197 + color?: string; 9198 + tolerance?: number; 9199 + keep?: number; 9200 + }; 9201 + }; 9202 + /** 9203 + * Quality setting from 1-100 (useful values are in 60-90 range). Lower values 9204 + * make images look worse, but load faster. The default is 85. It applies only 9205 + * to JPEG and WebP images. It doesn’t have any effect on PNG. 9206 + */ 9207 + quality?: number | "low" | "medium-low" | "medium-high" | "high"; 9208 + /** 9209 + * Output format to generate. It can be: 9210 + * - avif: generate images in AVIF format. 9211 + * - webp: generate images in Google WebP format. Set quality to 100 to get 9212 + * the WebP-lossless format. 9213 + * - json: instead of generating an image, outputs information about the 9214 + * image, in JSON format. The JSON object will contain image size 9215 + * (before and after resizing), source image’s MIME type, file size, etc. 9216 + * - jpeg: generate images in JPEG format. 9217 + * - png: generate images in PNG format. 9218 + */ 9219 + format?: "avif" | "webp" | "json" | "jpeg" | "png" | "baseline-jpeg" | "png-force" | "svg"; 9220 + /** 9221 + * Whether to preserve animation frames from input files. Default is true. 9222 + * Setting it to false reduces animations to still images. This setting is 9223 + * recommended when enlarging images or processing arbitrary user content, 9224 + * because large GIF animations can weigh tens or even hundreds of megabytes. 9225 + * It is also useful to set anim:false when using format:"json" to get the 9226 + * response quicker without the number of frames. 9227 + */ 9228 + anim?: boolean; 9229 + /** 9230 + * What EXIF data should be preserved in the output image. Note that EXIF 9231 + * rotation and embedded color profiles are always applied ("baked in" into 9232 + * the image), and aren't affected by this option. Note that if the Polish 9233 + * feature is enabled, all metadata may have been removed already and this 9234 + * option may have no effect. 9235 + * - keep: Preserve most of EXIF metadata, including GPS location if there's 9236 + * any. 9237 + * - copyright: Only keep the copyright tag, and discard everything else. 9238 + * This is the default behavior for JPEG files. 9239 + * - none: Discard all invisible EXIF metadata. Currently WebP and PNG 9240 + * output formats always discard metadata. 9241 + */ 9242 + metadata?: "keep" | "copyright" | "none"; 9243 + /** 9244 + * Strength of sharpening filter to apply to the image. Floating-point 9245 + * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a 9246 + * recommended value for downscaled images. 9247 + */ 9248 + sharpen?: number; 9249 + /** 9250 + * Radius of a blur filter (approximate gaussian). Maximum supported radius 9251 + * is 250. 9252 + */ 9253 + blur?: number; 9254 + /** 9255 + * Overlays are drawn in the order they appear in the array (last array 9256 + * entry is the topmost layer). 9257 + */ 9258 + draw?: RequestInitCfPropertiesImageDraw[]; 9259 + /** 9260 + * Fetching image from authenticated origin. Setting this property will 9261 + * pass authentication headers (Authorization, Cookie, etc.) through to 9262 + * the origin. 9263 + */ 9264 + "origin-auth"?: "share-publicly"; 9265 + /** 9266 + * Adds a border around the image. The border is added after resizing. Border 9267 + * width takes dpr into account, and can be specified either using a single 9268 + * width property, or individually for each side. 9269 + */ 9270 + border?: { 9271 + color: string; 9272 + width: number; 9273 + } | { 9274 + color: string; 9275 + top: number; 9276 + right: number; 9277 + bottom: number; 9278 + left: number; 9279 + }; 9280 + /** 9281 + * Increase brightness by a factor. A value of 1.0 equals no change, a value 9282 + * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright. 9283 + * 0 is ignored. 9284 + */ 9285 + brightness?: number; 9286 + /** 9287 + * Increase contrast by a factor. A value of 1.0 equals no change, a value of 9288 + * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is 9289 + * ignored. 9290 + */ 9291 + contrast?: number; 9292 + /** 9293 + * Increase exposure by a factor. A value of 1.0 equals no change, a value of 9294 + * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored. 9295 + */ 9296 + gamma?: number; 9297 + /** 9298 + * Increase contrast by a factor. A value of 1.0 equals no change, a value of 9299 + * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is 9300 + * ignored. 9301 + */ 9302 + saturation?: number; 9303 + /** 9304 + * Flips the images horizontally, vertically, or both. Flipping is applied before 9305 + * rotation, so if you apply flip=h,rotate=90 then the image will be flipped 9306 + * horizontally, then rotated by 90 degrees. 9307 + */ 9308 + flip?: 'h' | 'v' | 'hv'; 9309 + /** 9310 + * Slightly reduces latency on a cache miss by selecting a 9311 + * quickest-to-compress file format, at a cost of increased file size and 9312 + * lower image quality. It will usually override the format option and choose 9313 + * JPEG over WebP or AVIF. We do not recommend using this option, except in 9314 + * unusual circumstances like resizing uncacheable dynamically-generated 9315 + * images. 9316 + */ 9317 + compression?: "fast"; 9318 + } 9319 + interface RequestInitCfPropertiesImageMinify { 9320 + javascript?: boolean; 9321 + css?: boolean; 9322 + html?: boolean; 9323 + } 9324 + interface RequestInitCfPropertiesR2 { 9325 + /** 9326 + * Colo id of bucket that an object is stored in 9327 + */ 9328 + bucketColoId?: number; 9329 + } 9330 + /** 9331 + * Request metadata provided by Cloudflare's edge. 9332 + */ 9333 + type IncomingRequestCfProperties<HostMetadata = unknown> = IncomingRequestCfPropertiesBase & IncomingRequestCfPropertiesBotManagementEnterprise & IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<HostMetadata> & IncomingRequestCfPropertiesGeographicInformation & IncomingRequestCfPropertiesCloudflareAccessOrApiShield; 9334 + interface IncomingRequestCfPropertiesBase extends Record<string, unknown> { 9335 + /** 9336 + * [ASN](https://www.iana.org/assignments/as-numbers/as-numbers.xhtml) of the incoming request. 9337 + * 9338 + * @example 395747 9339 + */ 9340 + asn?: number; 9341 + /** 9342 + * The organization which owns the ASN of the incoming request. 9343 + * 9344 + * @example "Google Cloud" 9345 + */ 9346 + asOrganization?: string; 9347 + /** 9348 + * The original value of the `Accept-Encoding` header if Cloudflare modified it. 9349 + * 9350 + * @example "gzip, deflate, br" 9351 + */ 9352 + clientAcceptEncoding?: string; 9353 + /** 9354 + * The number of milliseconds it took for the request to reach your worker. 9355 + * 9356 + * @example 22 9357 + */ 9358 + clientTcpRtt?: number; 9359 + /** 9360 + * The three-letter [IATA](https://en.wikipedia.org/wiki/IATA_airport_code) 9361 + * airport code of the data center that the request hit. 9362 + * 9363 + * @example "DFW" 9364 + */ 9365 + colo: string; 9366 + /** 9367 + * Represents the upstream's response to a 9368 + * [TCP `keepalive` message](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html) 9369 + * from cloudflare. 9370 + * 9371 + * For workers with no upstream, this will always be `1`. 9372 + * 9373 + * @example 3 9374 + */ 9375 + edgeRequestKeepAliveStatus: IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus; 9376 + /** 9377 + * The HTTP Protocol the request used. 9378 + * 9379 + * @example "HTTP/2" 9380 + */ 9381 + httpProtocol: string; 9382 + /** 9383 + * The browser-requested prioritization information in the request object. 9384 + * 9385 + * If no information was set, defaults to the empty string `""` 9386 + * 9387 + * @example "weight=192;exclusive=0;group=3;group-weight=127" 9388 + * @default "" 9389 + */ 9390 + requestPriority: string; 9391 + /** 9392 + * The TLS version of the connection to Cloudflare. 9393 + * In requests served over plaintext (without TLS), this property is the empty string `""`. 9394 + * 9395 + * @example "TLSv1.3" 9396 + */ 9397 + tlsVersion: string; 9398 + /** 9399 + * The cipher for the connection to Cloudflare. 9400 + * In requests served over plaintext (without TLS), this property is the empty string `""`. 9401 + * 9402 + * @example "AEAD-AES128-GCM-SHA256" 9403 + */ 9404 + tlsCipher: string; 9405 + /** 9406 + * 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. 9407 + * 9408 + * If the incoming request was served over plaintext (without TLS) this field is undefined. 9409 + */ 9410 + tlsExportedAuthenticator?: IncomingRequestCfPropertiesExportedAuthenticatorMetadata; 9411 + } 9412 + interface IncomingRequestCfPropertiesBotManagementBase { 9413 + /** 9414 + * Cloudflare’s [level of certainty](https://developers.cloudflare.com/bots/concepts/bot-score/) that a request comes from a bot, 9415 + * represented as an integer percentage between `1` (almost certainly a bot) and `99` (almost certainly human). 9416 + * 9417 + * @example 54 9418 + */ 9419 + score: number; 9420 + /** 9421 + * A boolean value that is true if the request comes from a good bot, like Google or Bing. 9422 + * 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). 9423 + */ 9424 + verifiedBot: boolean; 9425 + /** 9426 + * A boolean value that is true if the request originates from a 9427 + * Cloudflare-verified proxy service. 9428 + */ 9429 + corporateProxy: boolean; 9430 + /** 9431 + * 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. 9432 + */ 9433 + staticResource: boolean; 9434 + /** 9435 + * 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). 9436 + */ 9437 + detectionIds: number[]; 9438 + } 9439 + interface IncomingRequestCfPropertiesBotManagement { 9440 + /** 9441 + * Results of Cloudflare's Bot Management analysis 9442 + */ 9443 + botManagement: IncomingRequestCfPropertiesBotManagementBase; 9444 + /** 9445 + * Duplicate of `botManagement.score`. 9446 + * 9447 + * @deprecated 9448 + */ 9449 + clientTrustScore: number; 9450 + } 9451 + interface IncomingRequestCfPropertiesBotManagementEnterprise extends IncomingRequestCfPropertiesBotManagement { 9452 + /** 9453 + * Results of Cloudflare's Bot Management analysis 9454 + */ 9455 + botManagement: IncomingRequestCfPropertiesBotManagementBase & { 9456 + /** 9457 + * A [JA3 Fingerprint](https://developers.cloudflare.com/bots/concepts/ja3-fingerprint/) to help profile specific SSL/TLS clients 9458 + * across different destination IPs, Ports, and X509 certificates. 9459 + */ 9460 + ja3Hash: string; 9461 + }; 9462 + } 9463 + interface IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<HostMetadata> { 9464 + /** 9465 + * Custom metadata set per-host in [Cloudflare for SaaS](https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/). 9466 + * 9467 + * This field is only present if you have Cloudflare for SaaS enabled on your account 9468 + * and you have followed the [required steps to enable it]((https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/custom-metadata/)). 9469 + */ 9470 + hostMetadata?: HostMetadata; 9471 + } 9472 + interface IncomingRequestCfPropertiesCloudflareAccessOrApiShield { 9473 + /** 9474 + * Information about the client certificate presented to Cloudflare. 9475 + * 9476 + * This is populated when the incoming request is served over TLS using 9477 + * either Cloudflare Access or API Shield (mTLS) 9478 + * and the presented SSL certificate has a valid 9479 + * [Certificate Serial Number](https://ldapwiki.com/wiki/Certificate%20Serial%20Number) 9480 + * (i.e., not `null` or `""`). 9481 + * 9482 + * Otherwise, a set of placeholder values are used. 9483 + * 9484 + * The property `certPresented` will be set to `"1"` when 9485 + * the object is populated (i.e. the above conditions were met). 9486 + */ 9487 + tlsClientAuth: IncomingRequestCfPropertiesTLSClientAuth | IncomingRequestCfPropertiesTLSClientAuthPlaceholder; 9488 + } 9489 + /** 9490 + * Metadata about the request's TLS handshake 9491 + */ 9492 + interface IncomingRequestCfPropertiesExportedAuthenticatorMetadata { 9493 + /** 9494 + * The client's [`HELLO` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2), encoded in hexadecimal 9495 + * 9496 + * @example "44372ba35fa1270921d318f34c12f155dc87b682cf36a790cfaa3ba8737a1b5d" 9497 + */ 9498 + clientHandshake: string; 9499 + /** 9500 + * The server's [`HELLO` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2), encoded in hexadecimal 9501 + * 9502 + * @example "44372ba35fa1270921d318f34c12f155dc87b682cf36a790cfaa3ba8737a1b5d" 9503 + */ 9504 + serverHandshake: string; 9505 + /** 9506 + * The client's [`FINISHED` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9), encoded in hexadecimal 9507 + * 9508 + * @example "084ee802fe1348f688220e2a6040a05b2199a761f33cf753abb1b006792d3f8b" 9509 + */ 9510 + clientFinished: string; 9511 + /** 9512 + * The server's [`FINISHED` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9), encoded in hexadecimal 9513 + * 9514 + * @example "084ee802fe1348f688220e2a6040a05b2199a761f33cf753abb1b006792d3f8b" 9515 + */ 9516 + serverFinished: string; 9517 + } 9518 + /** 9519 + * Geographic data about the request's origin. 9520 + */ 9521 + interface IncomingRequestCfPropertiesGeographicInformation { 9522 + /** 9523 + * The [ISO 3166-1 Alpha 2](https://www.iso.org/iso-3166-country-codes.html) country code the request originated from. 9524 + * 9525 + * 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. 9526 + * 9527 + * If Cloudflare is unable to determine where the request originated this property is omitted. 9528 + * 9529 + * The country code `"T1"` is used for requests originating on TOR. 9530 + * 9531 + * @example "GB" 9532 + */ 9533 + country?: Iso3166Alpha2Code | "T1"; 9534 + /** 9535 + * If present, this property indicates that the request originated in the EU 9536 + * 9537 + * @example "1" 9538 + */ 9539 + isEUCountry?: "1"; 9540 + /** 9541 + * A two-letter code indicating the continent the request originated from. 9542 + * 9543 + * @example "AN" 9544 + */ 9545 + continent?: ContinentCode; 9546 + /** 9547 + * The city the request originated from 9548 + * 9549 + * @example "Austin" 9550 + */ 9551 + city?: string; 9552 + /** 9553 + * Postal code of the incoming request 9554 + * 9555 + * @example "78701" 9556 + */ 9557 + postalCode?: string; 9558 + /** 9559 + * Latitude of the incoming request 9560 + * 9561 + * @example "30.27130" 9562 + */ 9563 + latitude?: string; 9564 + /** 9565 + * Longitude of the incoming request 9566 + * 9567 + * @example "-97.74260" 9568 + */ 9569 + longitude?: string; 9570 + /** 9571 + * Timezone of the incoming request 9572 + * 9573 + * @example "America/Chicago" 9574 + */ 9575 + timezone?: string; 9576 + /** 9577 + * If known, the ISO 3166-2 name for the first level region associated with 9578 + * the IP address of the incoming request 9579 + * 9580 + * @example "Texas" 9581 + */ 9582 + region?: string; 9583 + /** 9584 + * If known, the ISO 3166-2 code for the first-level region associated with 9585 + * the IP address of the incoming request 9586 + * 9587 + * @example "TX" 9588 + */ 9589 + regionCode?: string; 9590 + /** 9591 + * Metro code (DMA) of the incoming request 9592 + * 9593 + * @example "635" 9594 + */ 9595 + metroCode?: string; 9596 + } 9597 + /** Data about the incoming request's TLS certificate */ 9598 + interface IncomingRequestCfPropertiesTLSClientAuth { 9599 + /** Always `"1"`, indicating that the certificate was presented */ 9600 + certPresented: "1"; 9601 + /** 9602 + * Result of certificate verification. 9603 + * 9604 + * @example "FAILED:self signed certificate" 9605 + */ 9606 + certVerified: Exclude<CertVerificationStatus, "NONE">; 9607 + /** The presented certificate's revokation status. 9608 + * 9609 + * - A value of `"1"` indicates the certificate has been revoked 9610 + * - A value of `"0"` indicates the certificate has not been revoked 9611 + */ 9612 + certRevoked: "1" | "0"; 9613 + /** 9614 + * The certificate issuer's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) 9615 + * 9616 + * @example "CN=cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" 9617 + */ 9618 + certIssuerDN: string; 9619 + /** 9620 + * The certificate subject's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) 9621 + * 9622 + * @example "CN=*.cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" 9623 + */ 9624 + certSubjectDN: string; 9625 + /** 9626 + * The certificate issuer's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) ([RFC 2253](https://www.rfc-editor.org/rfc/rfc2253.html) formatted) 9627 + * 9628 + * @example "CN=cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" 9629 + */ 9630 + certIssuerDNRFC2253: string; 9631 + /** 9632 + * The certificate subject's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) ([RFC 2253](https://www.rfc-editor.org/rfc/rfc2253.html) formatted) 9633 + * 9634 + * @example "CN=*.cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" 9635 + */ 9636 + certSubjectDNRFC2253: string; 9637 + /** The certificate issuer's distinguished name (legacy policies) */ 9638 + certIssuerDNLegacy: string; 9639 + /** The certificate subject's distinguished name (legacy policies) */ 9640 + certSubjectDNLegacy: string; 9641 + /** 9642 + * The certificate's serial number 9643 + * 9644 + * @example "00936EACBE07F201DF" 9645 + */ 9646 + certSerial: string; 9647 + /** 9648 + * The certificate issuer's serial number 9649 + * 9650 + * @example "2489002934BDFEA34" 9651 + */ 9652 + certIssuerSerial: string; 9653 + /** 9654 + * The certificate's Subject Key Identifier 9655 + * 9656 + * @example "BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4" 9657 + */ 9658 + certSKI: string; 9659 + /** 9660 + * The certificate issuer's Subject Key Identifier 9661 + * 9662 + * @example "BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4" 9663 + */ 9664 + certIssuerSKI: string; 9665 + /** 9666 + * The certificate's SHA-1 fingerprint 9667 + * 9668 + * @example "6b9109f323999e52259cda7373ff0b4d26bd232e" 9669 + */ 9670 + certFingerprintSHA1: string; 9671 + /** 9672 + * The certificate's SHA-256 fingerprint 9673 + * 9674 + * @example "acf77cf37b4156a2708e34c4eb755f9b5dbbe5ebb55adfec8f11493438d19e6ad3f157f81fa3b98278453d5652b0c1fd1d71e5695ae4d709803a4d3f39de9dea" 9675 + */ 9676 + certFingerprintSHA256: string; 9677 + /** 9678 + * The effective starting date of the certificate 9679 + * 9680 + * @example "Dec 22 19:39:00 2018 GMT" 9681 + */ 9682 + certNotBefore: string; 9683 + /** 9684 + * The effective expiration date of the certificate 9685 + * 9686 + * @example "Dec 22 19:39:00 2018 GMT" 9687 + */ 9688 + certNotAfter: string; 9689 + } 9690 + /** Placeholder values for TLS Client Authorization */ 9691 + interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder { 9692 + certPresented: "0"; 9693 + certVerified: "NONE"; 9694 + certRevoked: "0"; 9695 + certIssuerDN: ""; 9696 + certSubjectDN: ""; 9697 + certIssuerDNRFC2253: ""; 9698 + certSubjectDNRFC2253: ""; 9699 + certIssuerDNLegacy: ""; 9700 + certSubjectDNLegacy: ""; 9701 + certSerial: ""; 9702 + certIssuerSerial: ""; 9703 + certSKI: ""; 9704 + certIssuerSKI: ""; 9705 + certFingerprintSHA1: ""; 9706 + certFingerprintSHA256: ""; 9707 + certNotBefore: ""; 9708 + certNotAfter: ""; 9709 + } 9710 + /** Possible outcomes of TLS verification */ 9711 + declare type CertVerificationStatus = 9712 + /** Authentication succeeded */ 9713 + "SUCCESS" 9714 + /** No certificate was presented */ 9715 + | "NONE" 9716 + /** Failed because the certificate was self-signed */ 9717 + | "FAILED:self signed certificate" 9718 + /** Failed because the certificate failed a trust chain check */ 9719 + | "FAILED:unable to verify the first certificate" 9720 + /** Failed because the certificate not yet valid */ 9721 + | "FAILED:certificate is not yet valid" 9722 + /** Failed because the certificate is expired */ 9723 + | "FAILED:certificate has expired" 9724 + /** Failed for another unspecified reason */ 9725 + | "FAILED"; 9726 + /** 9727 + * An upstream endpoint's response to a TCP `keepalive` message from Cloudflare. 9728 + */ 9729 + 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 */ 9730 + /** ISO 3166-1 Alpha-2 codes */ 9731 + 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"; 9732 + /** The 2-letter continent codes Cloudflare uses */ 9733 + declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA"; 9734 + type CfProperties<HostMetadata = unknown> = IncomingRequestCfProperties<HostMetadata> | RequestInitCfProperties; 9735 + interface D1Meta { 9736 + duration: number; 9737 + size_after: number; 9738 + rows_read: number; 9739 + rows_written: number; 9740 + last_row_id: number; 9741 + changed_db: boolean; 9742 + changes: number; 9743 + /** 9744 + * The region of the database instance that executed the query. 9745 + */ 9746 + served_by_region?: string; 9747 + /** 9748 + * The three letters airport code of the colo that executed the query. 9749 + */ 9750 + served_by_colo?: string; 9751 + /** 9752 + * True if-and-only-if the database instance that executed the query was the primary. 9753 + */ 9754 + served_by_primary?: boolean; 9755 + timings?: { 9756 + /** 9757 + * The duration of the SQL query execution by the database instance. It doesn't include any network time. 9758 + */ 9759 + sql_duration_ms: number; 9760 + }; 9761 + /** 9762 + * Number of total attempts to execute the query, due to automatic retries. 9763 + * Note: All other fields in the response like `timings` only apply to the last attempt. 9764 + */ 9765 + total_attempts?: number; 9766 + } 9767 + interface D1Response { 9768 + success: true; 9769 + meta: D1Meta & Record<string, unknown>; 9770 + error?: never; 9771 + } 9772 + type D1Result<T = unknown> = D1Response & { 9773 + results: T[]; 9774 + }; 9775 + interface D1ExecResult { 9776 + count: number; 9777 + duration: number; 9778 + } 9779 + type D1SessionConstraint = 9780 + // Indicates that the first query should go to the primary, and the rest queries 9781 + // using the same D1DatabaseSession will go to any replica that is consistent with 9782 + // the bookmark maintained by the session (returned by the first query). 9783 + 'first-primary' 9784 + // Indicates that the first query can go anywhere (primary or replica), and the rest queries 9785 + // using the same D1DatabaseSession will go to any replica that is consistent with 9786 + // the bookmark maintained by the session (returned by the first query). 9787 + | 'first-unconstrained'; 9788 + type D1SessionBookmark = string; 9789 + declare abstract class D1Database { 9790 + prepare(query: string): D1PreparedStatement; 9791 + batch<T = unknown>(statements: D1PreparedStatement[]): Promise<D1Result<T>[]>; 9792 + exec(query: string): Promise<D1ExecResult>; 9793 + /** 9794 + * Creates a new D1 Session anchored at the given constraint or the bookmark. 9795 + * All queries executed using the created session will have sequential consistency, 9796 + * meaning that all writes done through the session will be visible in subsequent reads. 9797 + * 9798 + * @param constraintOrBookmark Either the session constraint or the explicit bookmark to anchor the created session. 9799 + */ 9800 + withSession(constraintOrBookmark?: D1SessionBookmark | D1SessionConstraint): D1DatabaseSession; 9801 + /** 9802 + * @deprecated dump() will be removed soon, only applies to deprecated alpha v1 databases. 9803 + */ 9804 + dump(): Promise<ArrayBuffer>; 9805 + } 9806 + declare abstract class D1DatabaseSession { 9807 + prepare(query: string): D1PreparedStatement; 9808 + batch<T = unknown>(statements: D1PreparedStatement[]): Promise<D1Result<T>[]>; 9809 + /** 9810 + * @returns The latest session bookmark across all executed queries on the session. 9811 + * If no query has been executed yet, `null` is returned. 9812 + */ 9813 + getBookmark(): D1SessionBookmark | null; 9814 + } 9815 + declare abstract class D1PreparedStatement { 9816 + bind(...values: unknown[]): D1PreparedStatement; 9817 + first<T = unknown>(colName: string): Promise<T | null>; 9818 + first<T = Record<string, unknown>>(): Promise<T | null>; 9819 + run<T = Record<string, unknown>>(): Promise<D1Result<T>>; 9820 + all<T = Record<string, unknown>>(): Promise<D1Result<T>>; 9821 + raw<T = unknown[]>(options: { 9822 + columnNames: true; 9823 + }): Promise<[ 9824 + string[], 9825 + ...T[] 9826 + ]>; 9827 + raw<T = unknown[]>(options?: { 9828 + columnNames?: false; 9829 + }): Promise<T[]>; 9830 + } 9831 + // `Disposable` was added to TypeScript's standard lib types in version 5.2. 9832 + // To support older TypeScript versions, define an empty `Disposable` interface. 9833 + // Users won't be able to use `using`/`Symbol.dispose` without upgrading to 5.2, 9834 + // but this will ensure type checking on older versions still passes. 9835 + // TypeScript's interface merging will ensure our empty interface is effectively 9836 + // ignored when `Disposable` is included in the standard lib. 9837 + interface Disposable { 9838 + } 9839 + /** 9840 + * The returned data after sending an email 9841 + */ 9842 + interface EmailSendResult { 9843 + /** 9844 + * The Email Message ID 9845 + */ 9846 + messageId: string; 9847 + } 9848 + /** 9849 + * An email message that can be sent from a Worker. 9850 + */ 9851 + interface EmailMessage { 9852 + /** 9853 + * Envelope From attribute of the email message. 9854 + */ 9855 + readonly from: string; 9856 + /** 9857 + * Envelope To attribute of the email message. 9858 + */ 9859 + readonly to: string; 9860 + } 9861 + /** 9862 + * An email message that is sent to a consumer Worker and can be rejected/forwarded. 9863 + */ 9864 + interface ForwardableEmailMessage extends EmailMessage { 9865 + /** 9866 + * Stream of the email message content. 9867 + */ 9868 + readonly raw: ReadableStream<Uint8Array>; 9869 + /** 9870 + * An [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers). 9871 + */ 9872 + readonly headers: Headers; 9873 + /** 9874 + * Size of the email message content. 9875 + */ 9876 + readonly rawSize: number; 9877 + /** 9878 + * Reject this email message by returning a permanent SMTP error back to the connecting client including the given reason. 9879 + * @param reason The reject reason. 9880 + * @returns void 9881 + */ 9882 + setReject(reason: string): void; 9883 + /** 9884 + * Forward this email message to a verified destination address of the account. 9885 + * @param rcptTo Verified destination address. 9886 + * @param headers A [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers). 9887 + * @returns A promise that resolves when the email message is forwarded. 9888 + */ 9889 + forward(rcptTo: string, headers?: Headers): Promise<EmailSendResult>; 9890 + /** 9891 + * Reply to the sender of this email message with a new EmailMessage object. 9892 + * @param message The reply message. 9893 + * @returns A promise that resolves when the email message is replied. 9894 + */ 9895 + reply(message: EmailMessage): Promise<EmailSendResult>; 9896 + } 9897 + /** A file attachment for an email message */ 9898 + type EmailAttachment = { 9899 + disposition: 'inline'; 9900 + contentId: string; 9901 + filename: string; 9902 + type: string; 9903 + content: string | ArrayBuffer | ArrayBufferView; 9904 + } | { 9905 + disposition: 'attachment'; 9906 + contentId?: undefined; 9907 + filename: string; 9908 + type: string; 9909 + content: string | ArrayBuffer | ArrayBufferView; 9910 + }; 9911 + /** An Email Address */ 9912 + interface EmailAddress { 9913 + name: string; 9914 + email: string; 9915 + } 9916 + /** 9917 + * A binding that allows a Worker to send email messages. 9918 + */ 9919 + interface SendEmail { 9920 + send(message: EmailMessage): Promise<EmailSendResult>; 9921 + send(builder: { 9922 + from: string | EmailAddress; 9923 + to: string | string[]; 9924 + subject: string; 9925 + replyTo?: string | EmailAddress; 9926 + cc?: string | string[]; 9927 + bcc?: string | string[]; 9928 + headers?: Record<string, string>; 9929 + text?: string; 9930 + html?: string; 9931 + attachments?: EmailAttachment[]; 9932 + }): Promise<EmailSendResult>; 9933 + } 9934 + declare abstract class EmailEvent extends ExtendableEvent { 9935 + readonly message: ForwardableEmailMessage; 9936 + } 9937 + declare type EmailExportedHandler<Env = unknown, Props = unknown> = (message: ForwardableEmailMessage, env: Env, ctx: ExecutionContext<Props>) => void | Promise<void>; 9938 + declare module "cloudflare:email" { 9939 + let _EmailMessage: { 9940 + prototype: EmailMessage; 9941 + new (from: string, to: string, raw: ReadableStream | string): EmailMessage; 9942 + }; 9943 + export { _EmailMessage as EmailMessage }; 9944 + } 9945 + /** 9946 + * Hello World binding to serve as an explanatory example. DO NOT USE 9947 + */ 9948 + interface HelloWorldBinding { 9949 + /** 9950 + * Retrieve the current stored value 9951 + */ 9952 + get(): Promise<{ 9953 + value: string; 9954 + ms?: number; 9955 + }>; 9956 + /** 9957 + * Set a new stored value 9958 + */ 9959 + set(value: string): Promise<void>; 9960 + } 9961 + interface Hyperdrive { 9962 + /** 9963 + * Connect directly to Hyperdrive as if it's your database, returning a TCP socket. 9964 + * 9965 + * Calling this method returns an identical socket to if you call 9966 + * `connect("host:port")` using the `host` and `port` fields from this object. 9967 + * Pick whichever approach works better with your preferred DB client library. 9968 + * 9969 + * Note that this socket is not yet authenticated -- it's expected that your 9970 + * code (or preferably, the client library of your choice) will authenticate 9971 + * using the information in this class's readonly fields. 9972 + */ 9973 + connect(): Socket; 9974 + /** 9975 + * A valid DB connection string that can be passed straight into the typical 9976 + * client library/driver/ORM. This will typically be the easiest way to use 9977 + * Hyperdrive. 9978 + */ 9979 + readonly connectionString: string; 9980 + /* 9981 + * A randomly generated hostname that is only valid within the context of the 9982 + * currently running Worker which, when passed into `connect()` function from 9983 + * the "cloudflare:sockets" module, will connect to the Hyperdrive instance 9984 + * for your database. 9985 + */ 9986 + readonly host: string; 9987 + /* 9988 + * The port that must be paired the the host field when connecting. 9989 + */ 9990 + readonly port: number; 9991 + /* 9992 + * The username to use when authenticating to your database via Hyperdrive. 9993 + * Unlike the host and password, this will be the same every time 9994 + */ 9995 + readonly user: string; 9996 + /* 9997 + * The randomly generated password to use when authenticating to your 9998 + * database via Hyperdrive. Like the host field, this password is only valid 9999 + * within the context of the currently running Worker instance from which 10000 + * it's read. 10001 + */ 10002 + readonly password: string; 10003 + /* 10004 + * The name of the database to connect to. 10005 + */ 10006 + readonly database: string; 10007 + } 10008 + // Copyright (c) 2024 Cloudflare, Inc. 10009 + // Licensed under the Apache 2.0 license found in the LICENSE file or at: 10010 + // https://opensource.org/licenses/Apache-2.0 10011 + type ImageInfoResponse = { 10012 + format: 'image/svg+xml'; 10013 + } | { 10014 + format: string; 10015 + fileSize: number; 10016 + width: number; 10017 + height: number; 10018 + }; 10019 + type ImageTransform = { 10020 + width?: number; 10021 + height?: number; 10022 + background?: string; 10023 + blur?: number; 10024 + border?: { 10025 + color?: string; 10026 + width?: number; 10027 + } | { 10028 + top?: number; 10029 + bottom?: number; 10030 + left?: number; 10031 + right?: number; 10032 + }; 10033 + brightness?: number; 10034 + contrast?: number; 10035 + fit?: 'scale-down' | 'contain' | 'pad' | 'squeeze' | 'cover' | 'crop'; 10036 + flip?: 'h' | 'v' | 'hv'; 10037 + gamma?: number; 10038 + segment?: 'foreground'; 10039 + gravity?: 'face' | 'left' | 'right' | 'top' | 'bottom' | 'center' | 'auto' | 'entropy' | { 10040 + x?: number; 10041 + y?: number; 10042 + mode: 'remainder' | 'box-center'; 10043 + }; 10044 + rotate?: 0 | 90 | 180 | 270; 10045 + saturation?: number; 10046 + sharpen?: number; 10047 + trim?: 'border' | { 10048 + top?: number; 10049 + bottom?: number; 10050 + left?: number; 10051 + right?: number; 10052 + width?: number; 10053 + height?: number; 10054 + border?: boolean | { 10055 + color?: string; 10056 + tolerance?: number; 10057 + keep?: number; 10058 + }; 10059 + }; 10060 + }; 10061 + type ImageDrawOptions = { 10062 + opacity?: number; 10063 + repeat?: boolean | string; 10064 + top?: number; 10065 + left?: number; 10066 + bottom?: number; 10067 + right?: number; 10068 + }; 10069 + type ImageInputOptions = { 10070 + encoding?: 'base64'; 10071 + }; 10072 + type ImageOutputOptions = { 10073 + format: 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp' | 'image/avif' | 'rgb' | 'rgba'; 10074 + quality?: number; 10075 + background?: string; 10076 + anim?: boolean; 10077 + }; 10078 + interface ImageMetadata { 10079 + id: string; 10080 + filename?: string; 10081 + uploaded?: string; 10082 + requireSignedURLs: boolean; 10083 + meta?: Record<string, unknown>; 10084 + variants: string[]; 10085 + draft?: boolean; 10086 + creator?: string; 10087 + } 10088 + interface ImageUploadOptions { 10089 + id?: string; 10090 + filename?: string; 10091 + requireSignedURLs?: boolean; 10092 + metadata?: Record<string, unknown>; 10093 + creator?: string; 10094 + encoding?: 'base64'; 10095 + } 10096 + interface ImageUpdateOptions { 10097 + requireSignedURLs?: boolean; 10098 + metadata?: Record<string, unknown>; 10099 + creator?: string; 10100 + } 10101 + interface ImageListOptions { 10102 + limit?: number; 10103 + cursor?: string; 10104 + sortOrder?: 'asc' | 'desc'; 10105 + creator?: string; 10106 + } 10107 + interface ImageList { 10108 + images: ImageMetadata[]; 10109 + cursor?: string; 10110 + listComplete: boolean; 10111 + } 10112 + interface HostedImagesBinding { 10113 + /** 10114 + * Get detailed metadata for a hosted image 10115 + * @param imageId The ID of the image (UUID or custom ID) 10116 + * @returns Image metadata, or null if not found 10117 + */ 10118 + details(imageId: string): Promise<ImageMetadata | null>; 10119 + /** 10120 + * Get the raw image data for a hosted image 10121 + * @param imageId The ID of the image (UUID or custom ID) 10122 + * @returns ReadableStream of image bytes, or null if not found 10123 + */ 10124 + image(imageId: string): Promise<ReadableStream<Uint8Array> | null>; 10125 + /** 10126 + * Upload a new hosted image 10127 + * @param image The image file to upload 10128 + * @param options Upload configuration 10129 + * @returns Metadata for the uploaded image 10130 + * @throws {@link ImagesError} if upload fails 10131 + */ 10132 + upload(image: ReadableStream<Uint8Array> | ArrayBuffer, options?: ImageUploadOptions): Promise<ImageMetadata>; 10133 + /** 10134 + * Update hosted image metadata 10135 + * @param imageId The ID of the image 10136 + * @param options Properties to update 10137 + * @returns Updated image metadata 10138 + * @throws {@link ImagesError} if update fails 10139 + */ 10140 + update(imageId: string, options: ImageUpdateOptions): Promise<ImageMetadata>; 10141 + /** 10142 + * Delete a hosted image 10143 + * @param imageId The ID of the image 10144 + * @returns True if deleted, false if not found 10145 + */ 10146 + delete(imageId: string): Promise<boolean>; 10147 + /** 10148 + * List hosted images with pagination 10149 + * @param options List configuration 10150 + * @returns List of images with pagination info 10151 + * @throws {@link ImagesError} if list fails 10152 + */ 10153 + list(options?: ImageListOptions): Promise<ImageList>; 10154 + } 10155 + interface ImagesBinding { 10156 + /** 10157 + * Get image metadata (type, width and height) 10158 + * @throws {@link ImagesError} with code 9412 if input is not an image 10159 + * @param stream The image bytes 10160 + */ 10161 + info(stream: ReadableStream<Uint8Array>, options?: ImageInputOptions): Promise<ImageInfoResponse>; 10162 + /** 10163 + * Begin applying a series of transformations to an image 10164 + * @param stream The image bytes 10165 + * @returns A transform handle 10166 + */ 10167 + input(stream: ReadableStream<Uint8Array>, options?: ImageInputOptions): ImageTransformer; 10168 + /** 10169 + * Access hosted images CRUD operations 10170 + */ 10171 + readonly hosted: HostedImagesBinding; 10172 + } 10173 + interface ImageTransformer { 10174 + /** 10175 + * Apply transform next, returning a transform handle. 10176 + * You can then apply more transformations, draw, or retrieve the output. 10177 + * @param transform 10178 + */ 10179 + transform(transform: ImageTransform): ImageTransformer; 10180 + /** 10181 + * Draw an image on this transformer, returning a transform handle. 10182 + * You can then apply more transformations, draw, or retrieve the output. 10183 + * @param image The image (or transformer that will give the image) to draw 10184 + * @param options The options configuring how to draw the image 10185 + */ 10186 + draw(image: ReadableStream<Uint8Array> | ImageTransformer, options?: ImageDrawOptions): ImageTransformer; 10187 + /** 10188 + * Retrieve the image that results from applying the transforms to the 10189 + * provided input 10190 + * @param options Options that apply to the output e.g. output format 10191 + */ 10192 + output(options: ImageOutputOptions): Promise<ImageTransformationResult>; 10193 + } 10194 + type ImageTransformationOutputOptions = { 10195 + encoding?: 'base64'; 10196 + }; 10197 + interface ImageTransformationResult { 10198 + /** 10199 + * The image as a response, ready to store in cache or return to users 10200 + */ 10201 + response(): Response; 10202 + /** 10203 + * The content type of the returned image 10204 + */ 10205 + contentType(): string; 10206 + /** 10207 + * The bytes of the response 10208 + */ 10209 + image(options?: ImageTransformationOutputOptions): ReadableStream<Uint8Array>; 10210 + } 10211 + interface ImagesError extends Error { 10212 + readonly code: number; 10213 + readonly message: string; 10214 + readonly stack?: string; 10215 + } 10216 + /** 10217 + * Media binding for transforming media streams. 10218 + * Provides the entry point for media transformation operations. 10219 + */ 10220 + interface MediaBinding { 10221 + /** 10222 + * Creates a media transformer from an input stream. 10223 + * @param media - The input media bytes 10224 + * @returns A MediaTransformer instance for applying transformations 10225 + */ 10226 + input(media: ReadableStream<Uint8Array>): MediaTransformer; 10227 + } 10228 + /** 10229 + * Media transformer for applying transformation operations to media content. 10230 + * Handles sizing, fitting, and other input transformation parameters. 10231 + */ 10232 + interface MediaTransformer { 10233 + /** 10234 + * Applies transformation options to the media content. 10235 + * @param transform - Configuration for how the media should be transformed 10236 + * @returns A generator for producing the transformed media output 10237 + */ 10238 + transform(transform?: MediaTransformationInputOptions): MediaTransformationGenerator; 10239 + /** 10240 + * Generates the final media output with specified options. 10241 + * @param output - Configuration for the output format and parameters 10242 + * @returns The final transformation result containing the transformed media 10243 + */ 10244 + output(output?: MediaTransformationOutputOptions): MediaTransformationResult; 10245 + } 10246 + /** 10247 + * Generator for producing media transformation results. 10248 + * Configures the output format and parameters for the transformed media. 10249 + */ 10250 + interface MediaTransformationGenerator { 10251 + /** 10252 + * Generates the final media output with specified options. 10253 + * @param output - Configuration for the output format and parameters 10254 + * @returns The final transformation result containing the transformed media 10255 + */ 10256 + output(output?: MediaTransformationOutputOptions): MediaTransformationResult; 10257 + } 10258 + /** 10259 + * Result of a media transformation operation. 10260 + * Provides multiple ways to access the transformed media content. 10261 + */ 10262 + interface MediaTransformationResult { 10263 + /** 10264 + * Returns the transformed media as a readable stream of bytes. 10265 + * @returns A promise containing a readable stream with the transformed media 10266 + */ 10267 + media(): Promise<ReadableStream<Uint8Array>>; 10268 + /** 10269 + * Returns the transformed media as an HTTP response object. 10270 + * @returns The transformed media as a Promise<Response>, ready to store in cache or return to users 10271 + */ 10272 + response(): Promise<Response>; 10273 + /** 10274 + * Returns the MIME type of the transformed media. 10275 + * @returns A promise containing the content type string (e.g., 'image/jpeg', 'video/mp4') 10276 + */ 10277 + contentType(): Promise<string>; 10278 + } 10279 + /** 10280 + * Configuration options for transforming media input. 10281 + * Controls how the media should be resized and fitted. 10282 + */ 10283 + type MediaTransformationInputOptions = { 10284 + /** How the media should be resized to fit the specified dimensions */ 10285 + fit?: 'contain' | 'cover' | 'scale-down'; 10286 + /** Target width in pixels */ 10287 + width?: number; 10288 + /** Target height in pixels */ 10289 + height?: number; 10290 + }; 10291 + /** 10292 + * Configuration options for Media Transformations output. 10293 + * Controls the format, timing, and type of the generated output. 10294 + */ 10295 + type MediaTransformationOutputOptions = { 10296 + /** 10297 + * Output mode determining the type of media to generate 10298 + */ 10299 + mode?: 'video' | 'spritesheet' | 'frame' | 'audio'; 10300 + /** Whether to include audio in the output */ 10301 + audio?: boolean; 10302 + /** 10303 + * Starting timestamp for frame extraction or start time for clips. (e.g. '2s'). 10304 + */ 10305 + time?: string; 10306 + /** 10307 + * Duration for video clips, audio extraction, and spritesheet generation (e.g. '5s'). 10308 + */ 10309 + duration?: string; 10310 + /** 10311 + * Number of frames in the spritesheet. 10312 + */ 10313 + imageCount?: number; 10314 + /** 10315 + * Output format for the generated media. 10316 + */ 10317 + format?: 'jpg' | 'png' | 'm4a'; 10318 + }; 10319 + /** 10320 + * Error object for media transformation operations. 10321 + * Extends the standard Error interface with additional media-specific information. 10322 + */ 10323 + interface MediaError extends Error { 10324 + readonly code: number; 10325 + readonly message: string; 10326 + readonly stack?: string; 10327 + } 10328 + declare module 'cloudflare:node' { 10329 + interface NodeStyleServer { 10330 + listen(...args: unknown[]): this; 10331 + address(): { 10332 + port?: number | null | undefined; 10333 + }; 10334 + } 10335 + export function httpServerHandler(port: number): ExportedHandler; 10336 + export function httpServerHandler(options: { 10337 + port: number; 10338 + }): ExportedHandler; 10339 + export function httpServerHandler(server: NodeStyleServer): ExportedHandler; 10340 + } 10341 + type Params<P extends string = any> = Record<P, string | string[]>; 10342 + type EventContext<Env, P extends string, Data> = { 10343 + request: Request<unknown, IncomingRequestCfProperties<unknown>>; 10344 + functionPath: string; 10345 + waitUntil: (promise: Promise<any>) => void; 10346 + passThroughOnException: () => void; 10347 + next: (input?: Request | string, init?: RequestInit) => Promise<Response>; 10348 + env: Env & { 10349 + ASSETS: { 10350 + fetch: typeof fetch; 10351 + }; 10352 + }; 10353 + params: Params<P>; 10354 + data: Data; 10355 + }; 10356 + type PagesFunction<Env = unknown, Params extends string = any, Data extends Record<string, unknown> = Record<string, unknown>> = (context: EventContext<Env, Params, Data>) => Response | Promise<Response>; 10357 + type EventPluginContext<Env, P extends string, Data, PluginArgs> = { 10358 + request: Request<unknown, IncomingRequestCfProperties<unknown>>; 10359 + functionPath: string; 10360 + waitUntil: (promise: Promise<any>) => void; 10361 + passThroughOnException: () => void; 10362 + next: (input?: Request | string, init?: RequestInit) => Promise<Response>; 10363 + env: Env & { 10364 + ASSETS: { 10365 + fetch: typeof fetch; 10366 + }; 10367 + }; 10368 + params: Params<P>; 10369 + data: Data; 10370 + pluginArgs: PluginArgs; 10371 + }; 10372 + type PagesPluginFunction<Env = unknown, Params extends string = any, Data extends Record<string, unknown> = Record<string, unknown>, PluginArgs = unknown> = (context: EventPluginContext<Env, Params, Data, PluginArgs>) => Response | Promise<Response>; 10373 + declare module "assets:*" { 10374 + export const onRequest: PagesFunction; 10375 + } 10376 + // Copyright (c) 2022-2023 Cloudflare, Inc. 10377 + // Licensed under the Apache 2.0 license found in the LICENSE file or at: 10378 + // https://opensource.org/licenses/Apache-2.0 10379 + declare module "cloudflare:pipelines" { 10380 + export abstract class PipelineTransformationEntrypoint<Env = unknown, I extends PipelineRecord = PipelineRecord, O extends PipelineRecord = PipelineRecord> { 10381 + protected env: Env; 10382 + protected ctx: ExecutionContext; 10383 + constructor(ctx: ExecutionContext, env: Env); 10384 + /** 10385 + * run receives an array of PipelineRecord which can be 10386 + * transformed and returned to the pipeline 10387 + * @param records Incoming records from the pipeline to be transformed 10388 + * @param metadata Information about the specific pipeline calling the transformation entrypoint 10389 + * @returns A promise containing the transformed PipelineRecord array 10390 + */ 10391 + public run(records: I[], metadata: PipelineBatchMetadata): Promise<O[]>; 10392 + } 10393 + export type PipelineRecord = Record<string, unknown>; 10394 + export type PipelineBatchMetadata = { 10395 + pipelineId: string; 10396 + pipelineName: string; 10397 + }; 10398 + export interface Pipeline<T extends PipelineRecord = PipelineRecord> { 10399 + /** 10400 + * The Pipeline interface represents the type of a binding to a Pipeline 10401 + * 10402 + * @param records The records to send to the pipeline 10403 + */ 10404 + send(records: T[]): Promise<void>; 10405 + } 10406 + } 10407 + // PubSubMessage represents an incoming PubSub message. 10408 + // The message includes metadata about the broker, the client, and the payload 10409 + // itself. 10410 + // https://developers.cloudflare.com/pub-sub/ 10411 + interface PubSubMessage { 10412 + // Message ID 10413 + readonly mid: number; 10414 + // MQTT broker FQDN in the form mqtts://BROKER.NAMESPACE.cloudflarepubsub.com:PORT 10415 + readonly broker: string; 10416 + // The MQTT topic the message was sent on. 10417 + readonly topic: string; 10418 + // The client ID of the client that published this message. 10419 + readonly clientId: string; 10420 + // The unique identifier (JWT ID) used by the client to authenticate, if token 10421 + // auth was used. 10422 + readonly jti?: string; 10423 + // A Unix timestamp (seconds from Jan 1, 1970), set when the Pub/Sub Broker 10424 + // received the message from the client. 10425 + readonly receivedAt: number; 10426 + // An (optional) string with the MIME type of the payload, if set by the 10427 + // client. 10428 + readonly contentType: string; 10429 + // Set to 1 when the payload is a UTF-8 string 10430 + // https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901063 10431 + readonly payloadFormatIndicator: number; 10432 + // Pub/Sub (MQTT) payloads can be UTF-8 strings, or byte arrays. 10433 + // You can use payloadFormatIndicator to inspect this before decoding. 10434 + payload: string | Uint8Array; 10435 + } 10436 + // JsonWebKey extended by kid parameter 10437 + interface JsonWebKeyWithKid extends JsonWebKey { 10438 + // Key Identifier of the JWK 10439 + readonly kid: string; 10440 + } 10441 + interface RateLimitOptions { 10442 + key: string; 10443 + } 10444 + interface RateLimitOutcome { 10445 + success: boolean; 10446 + } 10447 + interface RateLimit { 10448 + /** 10449 + * Rate limit a request based on the provided options. 10450 + * @see https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/ 10451 + * @returns A promise that resolves with the outcome of the rate limit. 10452 + */ 10453 + limit(options: RateLimitOptions): Promise<RateLimitOutcome>; 10454 + } 10455 + // Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need 10456 + // to referenced by `Fetcher`. This is included in the "importable" version of the types which 10457 + // strips all `module` blocks. 10458 + declare namespace Rpc { 10459 + // Branded types for identifying `WorkerEntrypoint`/`DurableObject`/`Target`s. 10460 + // TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`. 10461 + // For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to 10462 + // accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape) 10463 + export const __RPC_STUB_BRAND: '__RPC_STUB_BRAND'; 10464 + export const __RPC_TARGET_BRAND: '__RPC_TARGET_BRAND'; 10465 + export const __WORKER_ENTRYPOINT_BRAND: '__WORKER_ENTRYPOINT_BRAND'; 10466 + export const __DURABLE_OBJECT_BRAND: '__DURABLE_OBJECT_BRAND'; 10467 + export const __WORKFLOW_ENTRYPOINT_BRAND: '__WORKFLOW_ENTRYPOINT_BRAND'; 10468 + export interface RpcTargetBranded { 10469 + [__RPC_TARGET_BRAND]: never; 10470 + } 10471 + export interface WorkerEntrypointBranded { 10472 + [__WORKER_ENTRYPOINT_BRAND]: never; 10473 + } 10474 + export interface DurableObjectBranded { 10475 + [__DURABLE_OBJECT_BRAND]: never; 10476 + } 10477 + export interface WorkflowEntrypointBranded { 10478 + [__WORKFLOW_ENTRYPOINT_BRAND]: never; 10479 + } 10480 + export type EntrypointBranded = WorkerEntrypointBranded | DurableObjectBranded | WorkflowEntrypointBranded; 10481 + // Types that can be used through `Stub`s 10482 + export type Stubable = RpcTargetBranded | ((...args: any[]) => any); 10483 + // Types that can be passed over RPC 10484 + // The reason for using a generic type here is to build a serializable subset of structured 10485 + // cloneable composite types. This allows types defined with the "interface" keyword to pass the 10486 + // serializable check as well. Otherwise, only types defined with the "type" keyword would pass. 10487 + type Serializable<T> = 10488 + // Structured cloneables 10489 + BaseType 10490 + // Structured cloneable composites 10491 + | Map<T extends Map<infer U, unknown> ? Serializable<U> : never, T extends Map<unknown, infer U> ? Serializable<U> : never> | Set<T extends Set<infer U> ? Serializable<U> : never> | ReadonlyArray<T extends ReadonlyArray<infer U> ? Serializable<U> : never> | { 10492 + [K in keyof T]: K extends number | string ? Serializable<T[K]> : never; 10493 + } 10494 + // Special types 10495 + | Stub<Stubable> 10496 + // Serialized as stubs, see `Stubify` 10497 + | Stubable; 10498 + // Base type for all RPC stubs, including common memory management methods. 10499 + // `T` is used as a marker type for unwrapping `Stub`s later. 10500 + interface StubBase<T extends Stubable> extends Disposable { 10501 + [__RPC_STUB_BRAND]: T; 10502 + dup(): this; 10503 + } 10504 + export type Stub<T extends Stubable> = Provider<T> & StubBase<T>; 10505 + // This represents all the types that can be sent as-is over an RPC boundary 10506 + type BaseType = void | undefined | null | boolean | number | bigint | string | TypedArray | ArrayBuffer | DataView | Date | Error | RegExp | ReadableStream<Uint8Array> | WritableStream<Uint8Array> | Request | Response | Headers; 10507 + // Recursively rewrite all `Stubable` types with `Stub`s 10508 + // prettier-ignore 10509 + type Stubify<T> = T extends Stubable ? Stub<T> : T extends Map<infer K, infer V> ? Map<Stubify<K>, Stubify<V>> : T extends Set<infer V> ? Set<Stubify<V>> : T extends Array<infer V> ? Array<Stubify<V>> : T extends ReadonlyArray<infer V> ? ReadonlyArray<Stubify<V>> : T extends BaseType ? T : T extends { 10510 + [key: string | number]: any; 10511 + } ? { 10512 + [K in keyof T]: Stubify<T[K]>; 10513 + } : T; 10514 + // Recursively rewrite all `Stub<T>`s with the corresponding `T`s. 10515 + // Note we use `StubBase` instead of `Stub` here to avoid circular dependencies: 10516 + // `Stub` depends on `Provider`, which depends on `Unstubify`, which would depend on `Stub`. 10517 + // prettier-ignore 10518 + type Unstubify<T> = T extends StubBase<infer V> ? V : T extends Map<infer K, infer V> ? Map<Unstubify<K>, Unstubify<V>> : T extends Set<infer V> ? Set<Unstubify<V>> : T extends Array<infer V> ? Array<Unstubify<V>> : T extends ReadonlyArray<infer V> ? ReadonlyArray<Unstubify<V>> : T extends BaseType ? T : T extends { 10519 + [key: string | number]: unknown; 10520 + } ? { 10521 + [K in keyof T]: Unstubify<T[K]>; 10522 + } : T; 10523 + type UnstubifyAll<A extends any[]> = { 10524 + [I in keyof A]: Unstubify<A[I]>; 10525 + }; 10526 + // Utility type for adding `Provider`/`Disposable`s to `object` types only. 10527 + // Note `unknown & T` is equivalent to `T`. 10528 + type MaybeProvider<T> = T extends object ? Provider<T> : unknown; 10529 + type MaybeDisposable<T> = T extends object ? Disposable : unknown; 10530 + // Type for method return or property on an RPC interface. 10531 + // - Stubable types are replaced by stubs. 10532 + // - Serializable types are passed by value, with stubable types replaced by stubs 10533 + // and a top-level `Disposer`. 10534 + // Everything else can't be passed over PRC. 10535 + // Technically, we use custom thenables here, but they quack like `Promise`s. 10536 + // Intersecting with `(Maybe)Provider` allows pipelining. 10537 + // prettier-ignore 10538 + type Result<R> = R extends Stubable ? Promise<Stub<R>> & Provider<R> : R extends Serializable<R> ? Promise<Stubify<R> & MaybeDisposable<R>> & MaybeProvider<R> : never; 10539 + // Type for method or property on an RPC interface. 10540 + // For methods, unwrap `Stub`s in parameters, and rewrite returns to be `Result`s. 10541 + // Unwrapping `Stub`s allows calling with `Stubable` arguments. 10542 + // For properties, rewrite types to be `Result`s. 10543 + // In each case, unwrap `Promise`s. 10544 + type MethodOrProperty<V> = V extends (...args: infer P) => infer R ? (...args: UnstubifyAll<P>) => Result<Awaited<R>> : Result<Awaited<V>>; 10545 + // Type for the callable part of an `Provider` if `T` is callable. 10546 + // This is intersected with methods/properties. 10547 + type MaybeCallableProvider<T> = T extends (...args: any[]) => any ? MethodOrProperty<T> : unknown; 10548 + // Base type for all other types providing RPC-like interfaces. 10549 + // Rewrites all methods/properties to be `MethodOrProperty`s, while preserving callable types. 10550 + // `Reserved` names (e.g. stub method names like `dup()`) and symbols can't be accessed over RPC. 10551 + export type Provider<T extends object, Reserved extends string = never> = MaybeCallableProvider<T> & Pick<{ 10552 + [K in keyof T]: MethodOrProperty<T[K]>; 10553 + }, Exclude<keyof T, Reserved | symbol | keyof StubBase<never>>>; 10554 + } 10555 + declare namespace Cloudflare { 10556 + // Type of `env`. 10557 + // 10558 + // The specific project can extend `Env` by redeclaring it in project-specific files. Typescript 10559 + // will merge all declarations. 10560 + // 10561 + // You can use `wrangler types` to generate the `Env` type automatically. 10562 + interface Env { 10563 + } 10564 + // Project-specific parameters used to inform types. 10565 + // 10566 + // This interface is, again, intended to be declared in project-specific files, and then that 10567 + // declaration will be merged with this one. 10568 + // 10569 + // A project should have a declaration like this: 10570 + // 10571 + // interface GlobalProps { 10572 + // // Declares the main module's exports. Used to populate Cloudflare.Exports aka the type 10573 + // // of `ctx.exports`. 10574 + // mainModule: typeof import("my-main-module"); 10575 + // 10576 + // // Declares which of the main module's exports are configured with durable storage, and 10577 + // // thus should behave as Durable Object namsepace bindings. 10578 + // durableNamespaces: "MyDurableObject" | "AnotherDurableObject"; 10579 + // } 10580 + // 10581 + // You can use `wrangler types` to generate `GlobalProps` automatically. 10582 + interface GlobalProps { 10583 + } 10584 + // Evaluates to the type of a property in GlobalProps, defaulting to `Default` if it is not 10585 + // present. 10586 + type GlobalProp<K extends string, Default> = K extends keyof GlobalProps ? GlobalProps[K] : Default; 10587 + // The type of the program's main module exports, if known. Requires `GlobalProps` to declare the 10588 + // `mainModule` property. 10589 + type MainModule = GlobalProp<"mainModule", {}>; 10590 + // The type of ctx.exports, which contains loopback bindings for all top-level exports. 10591 + type Exports = { 10592 + [K in keyof MainModule]: LoopbackForExport<MainModule[K]> 10593 + // If the export is listed in `durableNamespaces`, then it is also a 10594 + // DurableObjectNamespace. 10595 + & (K extends GlobalProp<"durableNamespaces", never> ? MainModule[K] extends new (...args: any[]) => infer DoInstance ? DoInstance extends Rpc.DurableObjectBranded ? DurableObjectNamespace<DoInstance> : DurableObjectNamespace<undefined> : DurableObjectNamespace<undefined> : {}); 10596 + }; 10597 + } 10598 + declare namespace CloudflareWorkersModule { 10599 + export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>; 10600 + export const RpcStub: { 10601 + new <T extends Rpc.Stubable>(value: T): Rpc.Stub<T>; 10602 + }; 10603 + export abstract class RpcTarget implements Rpc.RpcTargetBranded { 10604 + [Rpc.__RPC_TARGET_BRAND]: never; 10605 + } 10606 + // `protected` fields don't appear in `keyof`s, so can't be accessed over RPC 10607 + export abstract class WorkerEntrypoint<Env = Cloudflare.Env, Props = {}> implements Rpc.WorkerEntrypointBranded { 10608 + [Rpc.__WORKER_ENTRYPOINT_BRAND]: never; 10609 + protected ctx: ExecutionContext<Props>; 10610 + protected env: Env; 10611 + constructor(ctx: ExecutionContext, env: Env); 10612 + email?(message: ForwardableEmailMessage): void | Promise<void>; 10613 + fetch?(request: Request): Response | Promise<Response>; 10614 + queue?(batch: MessageBatch<unknown>): void | Promise<void>; 10615 + scheduled?(controller: ScheduledController): void | Promise<void>; 10616 + tail?(events: TraceItem[]): void | Promise<void>; 10617 + tailStream?(event: TailStream.TailEvent<TailStream.Onset>): TailStream.TailEventHandlerType | Promise<TailStream.TailEventHandlerType>; 10618 + test?(controller: TestController): void | Promise<void>; 10619 + trace?(traces: TraceItem[]): void | Promise<void>; 10620 + } 10621 + export abstract class DurableObject<Env = Cloudflare.Env, Props = {}> implements Rpc.DurableObjectBranded { 10622 + [Rpc.__DURABLE_OBJECT_BRAND]: never; 10623 + protected ctx: DurableObjectState<Props>; 10624 + protected env: Env; 10625 + constructor(ctx: DurableObjectState, env: Env); 10626 + alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>; 10627 + fetch?(request: Request): Response | Promise<Response>; 10628 + webSocketMessage?(ws: WebSocket, message: string | ArrayBuffer): void | Promise<void>; 10629 + webSocketClose?(ws: WebSocket, code: number, reason: string, wasClean: boolean): void | Promise<void>; 10630 + webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>; 10631 + } 10632 + export type WorkflowDurationLabel = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year'; 10633 + export type WorkflowSleepDuration = `${number} ${WorkflowDurationLabel}${'s' | ''}` | number; 10634 + export type WorkflowDelayDuration = WorkflowSleepDuration; 10635 + export type WorkflowTimeoutDuration = WorkflowSleepDuration; 10636 + export type WorkflowRetentionDuration = WorkflowSleepDuration; 10637 + export type WorkflowBackoff = 'constant' | 'linear' | 'exponential'; 10638 + export type WorkflowStepConfig = { 10639 + retries?: { 10640 + limit: number; 10641 + delay: WorkflowDelayDuration | number; 10642 + backoff?: WorkflowBackoff; 10643 + }; 10644 + timeout?: WorkflowTimeoutDuration | number; 10645 + }; 10646 + export type WorkflowEvent<T> = { 10647 + payload: Readonly<T>; 10648 + timestamp: Date; 10649 + instanceId: string; 10650 + }; 10651 + export type WorkflowStepEvent<T> = { 10652 + payload: Readonly<T>; 10653 + timestamp: Date; 10654 + type: string; 10655 + }; 10656 + export type WorkflowStepContext = { 10657 + attempt: number; 10658 + }; 10659 + export abstract class WorkflowStep { 10660 + do<T extends Rpc.Serializable<T>>(name: string, callback: (ctx: WorkflowStepContext) => Promise<T>): Promise<T>; 10661 + do<T extends Rpc.Serializable<T>>(name: string, config: WorkflowStepConfig, callback: (ctx: WorkflowStepContext) => Promise<T>): Promise<T>; 10662 + sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>; 10663 + sleepUntil: (name: string, timestamp: Date | number) => Promise<void>; 10664 + waitForEvent<T extends Rpc.Serializable<T>>(name: string, options: { 10665 + type: string; 10666 + timeout?: WorkflowTimeoutDuration | number; 10667 + }): Promise<WorkflowStepEvent<T>>; 10668 + } 10669 + export type WorkflowInstanceStatus = 'queued' | 'running' | 'paused' | 'errored' | 'terminated' | 'complete' | 'waiting' | 'waitingForPause' | 'unknown'; 10670 + export abstract class WorkflowEntrypoint<Env = unknown, T extends Rpc.Serializable<T> | unknown = unknown> implements Rpc.WorkflowEntrypointBranded { 10671 + [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never; 10672 + protected ctx: ExecutionContext; 10673 + protected env: Env; 10674 + constructor(ctx: ExecutionContext, env: Env); 10675 + run(event: Readonly<WorkflowEvent<T>>, step: WorkflowStep): Promise<unknown>; 10676 + } 10677 + export function waitUntil(promise: Promise<unknown>): void; 10678 + export function withEnv(newEnv: unknown, fn: () => unknown): unknown; 10679 + export function withExports(newExports: unknown, fn: () => unknown): unknown; 10680 + export function withEnvAndExports(newEnv: unknown, newExports: unknown, fn: () => unknown): unknown; 10681 + export const env: Cloudflare.Env; 10682 + export const exports: Cloudflare.Exports; 10683 + } 10684 + declare module 'cloudflare:workers' { 10685 + export = CloudflareWorkersModule; 10686 + } 10687 + interface SecretsStoreSecret { 10688 + /** 10689 + * Get a secret from the Secrets Store, returning a string of the secret value 10690 + * if it exists, or throws an error if it does not exist 10691 + */ 10692 + get(): Promise<string>; 10693 + } 10694 + declare module "cloudflare:sockets" { 10695 + function _connect(address: string | SocketAddress, options?: SocketOptions): Socket; 10696 + export { _connect as connect }; 10697 + } 10698 + type MarkdownDocument = { 10699 + name: string; 10700 + blob: Blob; 10701 + }; 10702 + type ConversionResponse = { 10703 + id: string; 10704 + name: string; 10705 + mimeType: string; 10706 + format: 'markdown'; 10707 + tokens: number; 10708 + data: string; 10709 + } | { 10710 + id: string; 10711 + name: string; 10712 + mimeType: string; 10713 + format: 'error'; 10714 + error: string; 10715 + }; 10716 + type ImageConversionOptions = { 10717 + descriptionLanguage?: 'en' | 'es' | 'fr' | 'it' | 'pt' | 'de'; 10718 + }; 10719 + type EmbeddedImageConversionOptions = ImageConversionOptions & { 10720 + convert?: boolean; 10721 + maxConvertedImages?: number; 10722 + }; 10723 + type ConversionOptions = { 10724 + html?: { 10725 + images?: EmbeddedImageConversionOptions & { 10726 + convertOGImage?: boolean; 10727 + }; 10728 + hostname?: string; 10729 + cssSelector?: string; 10730 + }; 10731 + docx?: { 10732 + images?: EmbeddedImageConversionOptions; 10733 + }; 10734 + image?: ImageConversionOptions; 10735 + pdf?: { 10736 + images?: EmbeddedImageConversionOptions; 10737 + metadata?: boolean; 10738 + }; 10739 + }; 10740 + type ConversionRequestOptions = { 10741 + gateway?: GatewayOptions; 10742 + extraHeaders?: object; 10743 + conversionOptions?: ConversionOptions; 10744 + }; 10745 + type SupportedFileFormat = { 10746 + mimeType: string; 10747 + extension: string; 10748 + }; 10749 + declare abstract class ToMarkdownService { 10750 + transform(files: MarkdownDocument[], options?: ConversionRequestOptions): Promise<ConversionResponse[]>; 10751 + transform(files: MarkdownDocument, options?: ConversionRequestOptions): Promise<ConversionResponse>; 10752 + supported(): Promise<SupportedFileFormat[]>; 10753 + } 10754 + declare namespace TailStream { 10755 + interface Header { 10756 + readonly name: string; 10757 + readonly value: string; 10758 + } 10759 + interface FetchEventInfo { 10760 + readonly type: "fetch"; 10761 + readonly method: string; 10762 + readonly url: string; 10763 + readonly cfJson?: object; 10764 + readonly headers: Header[]; 10765 + } 10766 + interface JsRpcEventInfo { 10767 + readonly type: "jsrpc"; 10768 + } 10769 + interface ScheduledEventInfo { 10770 + readonly type: "scheduled"; 10771 + readonly scheduledTime: Date; 10772 + readonly cron: string; 10773 + } 10774 + interface AlarmEventInfo { 10775 + readonly type: "alarm"; 10776 + readonly scheduledTime: Date; 10777 + } 10778 + interface QueueEventInfo { 10779 + readonly type: "queue"; 10780 + readonly queueName: string; 10781 + readonly batchSize: number; 10782 + } 10783 + interface EmailEventInfo { 10784 + readonly type: "email"; 10785 + readonly mailFrom: string; 10786 + readonly rcptTo: string; 10787 + readonly rawSize: number; 10788 + } 10789 + interface TraceEventInfo { 10790 + readonly type: "trace"; 10791 + readonly traces: (string | null)[]; 10792 + } 10793 + interface HibernatableWebSocketEventInfoMessage { 10794 + readonly type: "message"; 10795 + } 10796 + interface HibernatableWebSocketEventInfoError { 10797 + readonly type: "error"; 10798 + } 10799 + interface HibernatableWebSocketEventInfoClose { 10800 + readonly type: "close"; 10801 + readonly code: number; 10802 + readonly wasClean: boolean; 10803 + } 10804 + interface HibernatableWebSocketEventInfo { 10805 + readonly type: "hibernatableWebSocket"; 10806 + readonly info: HibernatableWebSocketEventInfoClose | HibernatableWebSocketEventInfoError | HibernatableWebSocketEventInfoMessage; 10807 + } 10808 + interface CustomEventInfo { 10809 + readonly type: "custom"; 10810 + } 10811 + interface FetchResponseInfo { 10812 + readonly type: "fetch"; 10813 + readonly statusCode: number; 10814 + } 10815 + type EventOutcome = "ok" | "canceled" | "exception" | "unknown" | "killSwitch" | "daemonDown" | "exceededCpu" | "exceededMemory" | "loadShed" | "responseStreamDisconnected" | "scriptNotFound"; 10816 + interface ScriptVersion { 10817 + readonly id: string; 10818 + readonly tag?: string; 10819 + readonly message?: string; 10820 + } 10821 + interface Onset { 10822 + readonly type: "onset"; 10823 + readonly attributes: Attribute[]; 10824 + // id for the span being opened by this Onset event. 10825 + readonly spanId: string; 10826 + readonly dispatchNamespace?: string; 10827 + readonly entrypoint?: string; 10828 + readonly executionModel: string; 10829 + readonly scriptName?: string; 10830 + readonly scriptTags?: string[]; 10831 + readonly scriptVersion?: ScriptVersion; 10832 + readonly info: FetchEventInfo | JsRpcEventInfo | ScheduledEventInfo | AlarmEventInfo | QueueEventInfo | EmailEventInfo | TraceEventInfo | HibernatableWebSocketEventInfo | CustomEventInfo; 10833 + } 10834 + interface Outcome { 10835 + readonly type: "outcome"; 10836 + readonly outcome: EventOutcome; 10837 + readonly cpuTime: number; 10838 + readonly wallTime: number; 10839 + } 10840 + interface SpanOpen { 10841 + readonly type: "spanOpen"; 10842 + readonly name: string; 10843 + // id for the span being opened by this SpanOpen event. 10844 + readonly spanId: string; 10845 + readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes; 10846 + } 10847 + interface SpanClose { 10848 + readonly type: "spanClose"; 10849 + readonly outcome: EventOutcome; 10850 + } 10851 + interface DiagnosticChannelEvent { 10852 + readonly type: "diagnosticChannel"; 10853 + readonly channel: string; 10854 + readonly message: any; 10855 + } 10856 + interface Exception { 10857 + readonly type: "exception"; 10858 + readonly name: string; 10859 + readonly message: string; 10860 + readonly stack?: string; 10861 + } 10862 + interface Log { 10863 + readonly type: "log"; 10864 + readonly level: "debug" | "error" | "info" | "log" | "warn"; 10865 + readonly message: object; 10866 + } 10867 + interface DroppedEventsDiagnostic { 10868 + readonly diagnosticsType: "droppedEvents"; 10869 + readonly count: number; 10870 + } 10871 + interface StreamDiagnostic { 10872 + readonly type: 'streamDiagnostic'; 10873 + // To add new diagnostic types, define a new interface and add it to this union type. 10874 + readonly diagnostic: DroppedEventsDiagnostic; 10875 + } 10876 + // This marks the worker handler return information. 10877 + // This is separate from Outcome because the worker invocation can live for a long time after 10878 + // returning. For example - Websockets that return an http upgrade response but then continue 10879 + // streaming information or SSE http connections. 10880 + interface Return { 10881 + readonly type: "return"; 10882 + readonly info?: FetchResponseInfo; 10883 + } 10884 + interface Attribute { 10885 + readonly name: string; 10886 + readonly value: string | string[] | boolean | boolean[] | number | number[] | bigint | bigint[]; 10887 + } 10888 + interface Attributes { 10889 + readonly type: "attributes"; 10890 + readonly info: Attribute[]; 10891 + } 10892 + type EventType = Onset | Outcome | SpanOpen | SpanClose | DiagnosticChannelEvent | Exception | Log | StreamDiagnostic | Return | Attributes; 10893 + // Context in which this trace event lives. 10894 + interface SpanContext { 10895 + // Single id for the entire top-level invocation 10896 + // This should be a new traceId for the first worker stage invoked in the eyeball request and then 10897 + // same-account service-bindings should reuse the same traceId but cross-account service-bindings 10898 + // should use a new traceId. 10899 + readonly traceId: string; 10900 + // spanId in which this event is handled 10901 + // for Onset and SpanOpen events this would be the parent span id 10902 + // for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events 10903 + // For Hibernate and Mark this would be the span under which they were emitted. 10904 + // spanId is not set ONLY if: 10905 + // 1. This is an Onset event 10906 + // 2. We are not inheriting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation) 10907 + readonly spanId?: string; 10908 + } 10909 + interface TailEvent<Event extends EventType> { 10910 + // invocation id of the currently invoked worker stage. 10911 + // invocation id will always be unique to every Onset event and will be the same until the Outcome event. 10912 + readonly invocationId: string; 10913 + // Inherited spanContext for this event. 10914 + readonly spanContext: SpanContext; 10915 + readonly timestamp: Date; 10916 + readonly sequence: number; 10917 + readonly event: Event; 10918 + } 10919 + type TailEventHandler<Event extends EventType = EventType> = (event: TailEvent<Event>) => void | Promise<void>; 10920 + type TailEventHandlerObject = { 10921 + outcome?: TailEventHandler<Outcome>; 10922 + spanOpen?: TailEventHandler<SpanOpen>; 10923 + spanClose?: TailEventHandler<SpanClose>; 10924 + diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>; 10925 + exception?: TailEventHandler<Exception>; 10926 + log?: TailEventHandler<Log>; 10927 + return?: TailEventHandler<Return>; 10928 + attributes?: TailEventHandler<Attributes>; 10929 + }; 10930 + type TailEventHandlerType = TailEventHandler | TailEventHandlerObject; 10931 + } 10932 + // Copyright (c) 2022-2023 Cloudflare, Inc. 10933 + // Licensed under the Apache 2.0 license found in the LICENSE file or at: 10934 + // https://opensource.org/licenses/Apache-2.0 10935 + /** 10936 + * Data types supported for holding vector metadata. 10937 + */ 10938 + type VectorizeVectorMetadataValue = string | number | boolean | string[]; 10939 + /** 10940 + * Additional information to associate with a vector. 10941 + */ 10942 + type VectorizeVectorMetadata = VectorizeVectorMetadataValue | Record<string, VectorizeVectorMetadataValue>; 10943 + type VectorFloatArray = Float32Array | Float64Array; 10944 + interface VectorizeError { 10945 + code?: number; 10946 + error: string; 10947 + } 10948 + /** 10949 + * Comparison logic/operation to use for metadata filtering. 10950 + * 10951 + * This list is expected to grow as support for more operations are released. 10952 + */ 10953 + type VectorizeVectorMetadataFilterOp = '$eq' | '$ne' | '$lt' | '$lte' | '$gt' | '$gte'; 10954 + type VectorizeVectorMetadataFilterCollectionOp = '$in' | '$nin'; 10955 + /** 10956 + * Filter criteria for vector metadata used to limit the retrieved query result set. 10957 + */ 10958 + type VectorizeVectorMetadataFilter = { 10959 + [field: string]: Exclude<VectorizeVectorMetadataValue, string[]> | null | { 10960 + [Op in VectorizeVectorMetadataFilterOp]?: Exclude<VectorizeVectorMetadataValue, string[]> | null; 10961 + } | { 10962 + [Op in VectorizeVectorMetadataFilterCollectionOp]?: Exclude<VectorizeVectorMetadataValue, string[]>[]; 10963 + }; 10964 + }; 10965 + /** 10966 + * Supported distance metrics for an index. 10967 + * Distance metrics determine how other "similar" vectors are determined. 10968 + */ 10969 + type VectorizeDistanceMetric = "euclidean" | "cosine" | "dot-product"; 10970 + /** 10971 + * Metadata return levels for a Vectorize query. 10972 + * 10973 + * Default to "none". 10974 + * 10975 + * @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. 10976 + * @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). 10977 + * @property none No indexed metadata will be returned. 10978 + */ 10979 + type VectorizeMetadataRetrievalLevel = "all" | "indexed" | "none"; 10980 + interface VectorizeQueryOptions { 10981 + topK?: number; 10982 + namespace?: string; 10983 + returnValues?: boolean; 10984 + returnMetadata?: boolean | VectorizeMetadataRetrievalLevel; 10985 + filter?: VectorizeVectorMetadataFilter; 10986 + } 10987 + /** 10988 + * Information about the configuration of an index. 10989 + */ 10990 + type VectorizeIndexConfig = { 10991 + dimensions: number; 10992 + metric: VectorizeDistanceMetric; 10993 + } | { 10994 + preset: string; // keep this generic, as we'll be adding more presets in the future and this is only in a read capacity 10995 + }; 10996 + /** 10997 + * Metadata about an existing index. 10998 + * 10999 + * This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released. 11000 + * See {@link VectorizeIndexInfo} for its post-beta equivalent. 11001 + */ 11002 + interface VectorizeIndexDetails { 11003 + /** The unique ID of the index */ 11004 + readonly id: string; 11005 + /** The name of the index. */ 11006 + name: string; 11007 + /** (optional) A human readable description for the index. */ 11008 + description?: string; 11009 + /** The index configuration, including the dimension size and distance metric. */ 11010 + config: VectorizeIndexConfig; 11011 + /** The number of records containing vectors within the index. */ 11012 + vectorsCount: number; 11013 + } 11014 + /** 11015 + * Metadata about an existing index. 11016 + */ 11017 + interface VectorizeIndexInfo { 11018 + /** The number of records containing vectors within the index. */ 11019 + vectorCount: number; 11020 + /** Number of dimensions the index has been configured for. */ 11021 + dimensions: number; 11022 + /** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */ 11023 + processedUpToDatetime: number; 11024 + /** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */ 11025 + processedUpToMutation: number; 11026 + } 11027 + /** 11028 + * Represents a single vector value set along with its associated metadata. 11029 + */ 11030 + interface VectorizeVector { 11031 + /** 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. */ 11032 + id: string; 11033 + /** The vector values */ 11034 + values: VectorFloatArray | number[]; 11035 + /** The namespace this vector belongs to. */ 11036 + namespace?: string; 11037 + /** Metadata associated with the vector. Includes the values of other fields and potentially additional details. */ 11038 + metadata?: Record<string, VectorizeVectorMetadata>; 11039 + } 11040 + /** 11041 + * Represents a matched vector for a query along with its score and (if specified) the matching vector information. 11042 + */ 11043 + type VectorizeMatch = Pick<Partial<VectorizeVector>, "values"> & Omit<VectorizeVector, "values"> & { 11044 + /** The score or rank for similarity, when returned as a result */ 11045 + score: number; 11046 + }; 11047 + /** 11048 + * A set of matching {@link VectorizeMatch} for a particular query. 11049 + */ 11050 + interface VectorizeMatches { 11051 + matches: VectorizeMatch[]; 11052 + count: number; 11053 + } 11054 + /** 11055 + * Results of an operation that performed a mutation on a set of vectors. 11056 + * Here, `ids` is a list of vectors that were successfully processed. 11057 + * 11058 + * This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released. 11059 + * See {@link VectorizeAsyncMutation} for its post-beta equivalent. 11060 + */ 11061 + interface VectorizeVectorMutation { 11062 + /* List of ids of vectors that were successfully processed. */ 11063 + ids: string[]; 11064 + /* Total count of the number of processed vectors. */ 11065 + count: number; 11066 + } 11067 + /** 11068 + * Result type indicating a mutation on the Vectorize Index. 11069 + * Actual mutations are processed async where the `mutationId` is the unique identifier for the operation. 11070 + */ 11071 + interface VectorizeAsyncMutation { 11072 + /** The unique identifier for the async mutation operation containing the changeset. */ 11073 + mutationId: string; 11074 + } 11075 + /** 11076 + * A Vectorize Vector Search Index for querying vectors/embeddings. 11077 + * 11078 + * This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released. 11079 + * See {@link Vectorize} for its new implementation. 11080 + */ 11081 + declare abstract class VectorizeIndex { 11082 + /** 11083 + * Get information about the currently bound index. 11084 + * @returns A promise that resolves with information about the current index. 11085 + */ 11086 + public describe(): Promise<VectorizeIndexDetails>; 11087 + /** 11088 + * Use the provided vector to perform a similarity search across the index. 11089 + * @param vector Input vector that will be used to drive the similarity search. 11090 + * @param options Configuration options to massage the returned data. 11091 + * @returns A promise that resolves with matched and scored vectors. 11092 + */ 11093 + public query(vector: VectorFloatArray | number[], options?: VectorizeQueryOptions): Promise<VectorizeMatches>; 11094 + /** 11095 + * Insert a list of vectors into the index dataset. If a provided id exists, an error will be thrown. 11096 + * @param vectors List of vectors that will be inserted. 11097 + * @returns A promise that resolves with the ids & count of records that were successfully processed. 11098 + */ 11099 + public insert(vectors: VectorizeVector[]): Promise<VectorizeVectorMutation>; 11100 + /** 11101 + * Upsert a list of vectors into the index dataset. If a provided id exists, it will be replaced with the new values. 11102 + * @param vectors List of vectors that will be upserted. 11103 + * @returns A promise that resolves with the ids & count of records that were successfully processed. 11104 + */ 11105 + public upsert(vectors: VectorizeVector[]): Promise<VectorizeVectorMutation>; 11106 + /** 11107 + * Delete a list of vectors with a matching id. 11108 + * @param ids List of vector ids that should be deleted. 11109 + * @returns A promise that resolves with the ids & count of records that were successfully processed (and thus deleted). 11110 + */ 11111 + public deleteByIds(ids: string[]): Promise<VectorizeVectorMutation>; 11112 + /** 11113 + * Get a list of vectors with a matching id. 11114 + * @param ids List of vector ids that should be returned. 11115 + * @returns A promise that resolves with the raw unscored vectors matching the id set. 11116 + */ 11117 + public getByIds(ids: string[]): Promise<VectorizeVector[]>; 11118 + } 11119 + /** 11120 + * A Vectorize Vector Search Index for querying vectors/embeddings. 11121 + * 11122 + * Mutations in this version are async, returning a mutation id. 11123 + */ 11124 + declare abstract class Vectorize { 11125 + /** 11126 + * Get information about the currently bound index. 11127 + * @returns A promise that resolves with information about the current index. 11128 + */ 11129 + public describe(): Promise<VectorizeIndexInfo>; 11130 + /** 11131 + * Use the provided vector to perform a similarity search across the index. 11132 + * @param vector Input vector that will be used to drive the similarity search. 11133 + * @param options Configuration options to massage the returned data. 11134 + * @returns A promise that resolves with matched and scored vectors. 11135 + */ 11136 + public query(vector: VectorFloatArray | number[], options?: VectorizeQueryOptions): Promise<VectorizeMatches>; 11137 + /** 11138 + * Use the provided vector-id to perform a similarity search across the index. 11139 + * @param vectorId Id for a vector in the index against which the index should be queried. 11140 + * @param options Configuration options to massage the returned data. 11141 + * @returns A promise that resolves with matched and scored vectors. 11142 + */ 11143 + public queryById(vectorId: string, options?: VectorizeQueryOptions): Promise<VectorizeMatches>; 11144 + /** 11145 + * Insert a list of vectors into the index dataset. If a provided id exists, an error will be thrown. 11146 + * @param vectors List of vectors that will be inserted. 11147 + * @returns A promise that resolves with a unique identifier of a mutation containing the insert changeset. 11148 + */ 11149 + public insert(vectors: VectorizeVector[]): Promise<VectorizeAsyncMutation>; 11150 + /** 11151 + * Upsert a list of vectors into the index dataset. If a provided id exists, it will be replaced with the new values. 11152 + * @param vectors List of vectors that will be upserted. 11153 + * @returns A promise that resolves with a unique identifier of a mutation containing the upsert changeset. 11154 + */ 11155 + public upsert(vectors: VectorizeVector[]): Promise<VectorizeAsyncMutation>; 11156 + /** 11157 + * Delete a list of vectors with a matching id. 11158 + * @param ids List of vector ids that should be deleted. 11159 + * @returns A promise that resolves with a unique identifier of a mutation containing the delete changeset. 11160 + */ 11161 + public deleteByIds(ids: string[]): Promise<VectorizeAsyncMutation>; 11162 + /** 11163 + * Get a list of vectors with a matching id. 11164 + * @param ids List of vector ids that should be returned. 11165 + * @returns A promise that resolves with the raw unscored vectors matching the id set. 11166 + */ 11167 + public getByIds(ids: string[]): Promise<VectorizeVector[]>; 11168 + } 11169 + /** 11170 + * The interface for "version_metadata" binding 11171 + * providing metadata about the Worker Version using this binding. 11172 + */ 11173 + type WorkerVersionMetadata = { 11174 + /** The ID of the Worker Version using this binding */ 11175 + id: string; 11176 + /** The tag of the Worker Version using this binding */ 11177 + tag: string; 11178 + /** The timestamp of when the Worker Version was uploaded */ 11179 + timestamp: string; 11180 + }; 11181 + interface DynamicDispatchLimits { 11182 + /** 11183 + * Limit CPU time in milliseconds. 11184 + */ 11185 + cpuMs?: number; 11186 + /** 11187 + * Limit number of subrequests. 11188 + */ 11189 + subRequests?: number; 11190 + } 11191 + interface DynamicDispatchOptions { 11192 + /** 11193 + * Limit resources of invoked Worker script. 11194 + */ 11195 + limits?: DynamicDispatchLimits; 11196 + /** 11197 + * Arguments for outbound Worker script, if configured. 11198 + */ 11199 + outbound?: { 11200 + [key: string]: any; 11201 + }; 11202 + } 11203 + interface DispatchNamespace { 11204 + /** 11205 + * @param name Name of the Worker script. 11206 + * @param args Arguments to Worker script. 11207 + * @param options Options for Dynamic Dispatch invocation. 11208 + * @returns A Fetcher object that allows you to send requests to the Worker script. 11209 + * @throws If the Worker script does not exist in this dispatch namespace, an error will be thrown. 11210 + */ 11211 + get(name: string, args?: { 11212 + [key: string]: any; 11213 + }, options?: DynamicDispatchOptions): Fetcher; 11214 + } 11215 + declare module 'cloudflare:workflows' { 11216 + /** 11217 + * NonRetryableError allows for a user to throw a fatal error 11218 + * that makes a Workflow instance fail immediately without triggering a retry 11219 + */ 11220 + export class NonRetryableError extends Error { 11221 + public constructor(message: string, name?: string); 11222 + } 11223 + } 11224 + declare abstract class Workflow<PARAMS = unknown> { 11225 + /** 11226 + * Get a handle to an existing instance of the Workflow. 11227 + * @param id Id for the instance of this Workflow 11228 + * @returns A promise that resolves with a handle for the Instance 11229 + */ 11230 + public get(id: string): Promise<WorkflowInstance>; 11231 + /** 11232 + * Create a new instance and return a handle to it. If a provided id exists, an error will be thrown. 11233 + * @param options Options when creating an instance including id and params 11234 + * @returns A promise that resolves with a handle for the Instance 11235 + */ 11236 + public create(options?: WorkflowInstanceCreateOptions<PARAMS>): Promise<WorkflowInstance>; 11237 + /** 11238 + * Create a batch of instances and return handle for all of them. If a provided id exists, an error will be thrown. 11239 + * `createBatch` is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached. 11240 + * @param batch List of Options when creating an instance including name and params 11241 + * @returns A promise that resolves with a list of handles for the created instances. 11242 + */ 11243 + public createBatch(batch: WorkflowInstanceCreateOptions<PARAMS>[]): Promise<WorkflowInstance[]>; 11244 + } 11245 + type WorkflowDurationLabel = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year'; 11246 + type WorkflowSleepDuration = `${number} ${WorkflowDurationLabel}${'s' | ''}` | number; 11247 + type WorkflowRetentionDuration = WorkflowSleepDuration; 11248 + interface WorkflowInstanceCreateOptions<PARAMS = unknown> { 11249 + /** 11250 + * An id for your Workflow instance. Must be unique within the Workflow. 11251 + */ 11252 + id?: string; 11253 + /** 11254 + * The event payload the Workflow instance is triggered with 11255 + */ 11256 + params?: PARAMS; 11257 + /** 11258 + * The retention policy for Workflow instance. 11259 + * Defaults to the maximum retention period available for the owner's account. 11260 + */ 11261 + retention?: { 11262 + successRetention?: WorkflowRetentionDuration; 11263 + errorRetention?: WorkflowRetentionDuration; 11264 + }; 11265 + } 11266 + type InstanceStatus = { 11267 + status: 'queued' // means that instance is waiting to be started (see concurrency limits) 11268 + | 'running' | 'paused' | 'errored' | 'terminated' // user terminated the instance while it was running 11269 + | 'complete' | 'waiting' // instance is hibernating and waiting for sleep or event to finish 11270 + | 'waitingForPause' // instance is finishing the current work to pause 11271 + | 'unknown'; 11272 + error?: { 11273 + name: string; 11274 + message: string; 11275 + }; 11276 + output?: unknown; 11277 + }; 11278 + interface WorkflowError { 11279 + code?: number; 11280 + message: string; 11281 + } 11282 + declare abstract class WorkflowInstance { 11283 + public id: string; 11284 + /** 11285 + * Pause the instance. 11286 + */ 11287 + public pause(): Promise<void>; 11288 + /** 11289 + * Resume the instance. If it is already running, an error will be thrown. 11290 + */ 11291 + public resume(): Promise<void>; 11292 + /** 11293 + * Terminate the instance. If it is errored, terminated or complete, an error will be thrown. 11294 + */ 11295 + public terminate(): Promise<void>; 11296 + /** 11297 + * Restart the instance. 11298 + */ 11299 + public restart(): Promise<void>; 11300 + /** 11301 + * Returns the current status of the instance. 11302 + */ 11303 + public status(): Promise<InstanceStatus>; 11304 + /** 11305 + * Send an event to this instance. 11306 + */ 11307 + public sendEvent({ type, payload, }: { 11308 + type: string; 11309 + payload: unknown; 11310 + }): Promise<void>; 11311 + }
+1 -1
wrangler.jsonc
··· 1 1 { 2 2 "$schema": "./node_modules/wrangler/config-schema.json", 3 3 "name": "orbyt-site", 4 - "main": "./dist/_worker.js/index.js", 4 + "main": "@astrojs/cloudflare/entrypoints/server", 5 5 "compatibility_date": "2026-01-29", 6 6 "compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"], 7 7 "assets": {