The recipes.blue monorepo recipes.blue
recipes appview atproto
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: modernize codebase, use more atcute stuff

+428 -9936
+9
.env.example
··· 1 + # Database 2 + DATABASE_URL=http://localhost:4001 3 + DATABASE_AUTH_TOKEN= 4 + 5 + # API 6 + PORT=3000 7 + 8 + # Ingester 9 + JETSTREAM_ENDPOINT=wss://jetstream2.us-east.bsky.network/subscribe
+36 -7
README.md
··· 10 10 11 11 ## Requirements 12 12 13 - - Node.js 22.x LTS 14 - - [pnpm](https://pnpm.io) 15 - - A [Turso](https://turso.tech) database 16 - - Maybe Docker? 13 + - [Bun](https://bun.sh) 1.3.3+ 14 + - Docker & Docker Compose (for local dev) 17 15 18 16 ## Services 19 17 20 - - [`api`](./apps/api): Runs the API server and hosts the SPA in production 21 - - [`ingester`](./apps/ingester): Ingests ATProto records from a Jetstream source independently of the API process. 22 - - [`web`](./apps/web): React SPA, hosted by the API in production. 18 + - [`api`](./apps/api): Bun server running the XRPC API 19 + - [`ingester`](./apps/ingester): Ingests ATProto records from Jetstream 20 + - [`web`](./apps/web): React SPA frontend 21 + - `libsql`: LibSQL database server 22 + 23 + ## Development 24 + 25 + 1. Copy `.env.example` to `.env`: 26 + ```bash 27 + cp .env.example .env 28 + ``` 29 + 30 + 2. Start LibSQL: 31 + ```bash 32 + docker compose up -d libsql 33 + ``` 34 + 35 + 3. Run migrations: 36 + ```bash 37 + bun run db:generate # generate migration files 38 + bun run db:migrate # apply to database 39 + ``` 40 + 41 + 4. Start services: 42 + ```bash 43 + bun run dev # starts all services in dev mode 44 + ``` 45 + 46 + ## Production 47 + 48 + Build and run with Docker: 49 + ```bash 50 + docker compose up -d 51 + ```
-1
apps/api/migrations
··· 1 - ../../libs/database/migrations
+12 -30
apps/api/package.json
··· 1 1 { 2 - "name": "@cookware/api", 3 2 "type": "module", 3 + "name": "@cookware/api", 4 4 "private": true, 5 - "main": "src/index.ts", 6 5 "publishConfig": { 7 6 "access": "public" 8 7 }, 9 8 "scripts": { 10 - "dev": "wrangler dev", 11 - "build": "tsup", 12 - "start": "NODE_OPTIONS=--use-openssl-ca node dist/index.cjs", 9 + "build": "bun --bun run check-types && bun --bun run compile", 10 + "dev": "bun run --hot src/index.ts", 11 + "check-types": "tsc --noEmit", 12 + "compile": "bun build src/index.ts --compile --minify --sourcemap --outfile=dist/api --target=bun", 13 13 "clean": "rimraf dist" 14 14 }, 15 15 "dependencies": { 16 16 "@atcute/atproto": "^3.1.9", 17 - "@atcute/client": "^4.0.5", 18 - "@atcute/lexicons": "^1.2.3", 17 + "@atcute/client": "catalog:", 18 + "@atcute/identity": "^1.1.3", 19 + "@atcute/identity-resolver": "^1.1.4", 20 + "@atcute/lexicons": "catalog:", 19 21 "@atcute/xrpc-server": "^0.1.3", 20 - "@atcute/xrpc-server-cloudflare": "^0.1.0", 21 22 "@atproto/api": "^0.13.19", 22 23 "@atproto/common": "^0.4.5", 23 24 "@atproto/crypto": "^0.4.2", ··· 25 26 "@atproto/oauth-client-node": "^0.2.3", 26 27 "@cookware/database": "workspace:*", 27 28 "@cookware/lexicons": "workspace:*", 28 - "@hono/node-server": "^1.13.7", 29 29 "@libsql/client": "^0.14.0", 30 - "@sentry/node": "^8.42.0", 31 - "@skyware/jetstream": "^0.2.1", 32 - "bufferutil": "^4.0.8", 33 - "drizzle-orm": "^0.37.0", 30 + "drizzle-orm": "catalog:", 34 31 "hono": "^4.6.12", 35 - "hono-sessions": "^0.7.0", 36 32 "jose": "^5.9.6", 37 33 "pino": "^9.5.0", 38 34 "uint8arrays": "^5.1.0", ··· 43 39 "@atcute/bluesky": "^3.2.10", 44 40 "@cookware/tsconfig": "workspace:*", 45 41 "@swc/core": "^1.9.3", 42 + "@types/bun": "catalog:", 46 43 "@types/ws": "^8.5.13", 47 44 "drizzle-kit": "^0.29.0", 48 - "pino-pretty": "^13.0.0", 49 45 "rimraf": "^6.0.1", 50 - "ts-node": "^10.9.2", 51 46 "tsup": "^8.3.5", 52 - "tsx": "^4.19.2", 53 - "typescript": "^5.7.2", 54 - "wrangler": "^4.50.0" 55 - }, 56 - "tsup": { 57 - "entry": [ 58 - "src", 59 - "!src/**/__tests__/**", 60 - "!src/**/*.test.*" 61 - ], 62 - "splitting": false, 63 - "sourcemap": true, 64 - "clean": true, 65 - "format": "esm" 47 + "typescript": "^5.7.2" 66 48 } 67 49 }
+2 -7
apps/api/src/env.d.ts
··· 1 - /// <reference types="@atcute/bluesky/lexicons" /> 2 - /// <reference types="@cookware/lexicons" /> 3 - 4 - import { DrizzleD1Database } from "drizzle-orm/d1"; 1 + import type { LibSQLDatabase } from "drizzle-orm/libsql"; 5 2 6 3 declare global { 7 4 interface RouterContext { 8 - env: Env; 9 - ctx: ExecutionContext; 10 - db: DrizzleD1Database; 5 + db: LibSQLDatabase; 11 6 } 12 7 }
+24 -23
apps/api/src/index.ts
··· 1 - import { XRPCRouter } from '@atcute/xrpc-server'; 1 + import { XRPCError, XRPCRouter } from '@atcute/xrpc-server'; 2 2 import { cors } from '@atcute/xrpc-server/middlewares/cors'; 3 - import { createCloudflareWebSocket } from '@atcute/xrpc-server-cloudflare'; 4 3 import { registerGetRecipes } from './xrpc/blue.recipes.feed.getRecipes.js'; 5 - import { drizzle } from 'drizzle-orm/d1'; 6 4 import { registerGetRecipe } from './xrpc/blue.recipes.feed.getRecipe.js'; 7 5 8 - const createRouter = (env: Env, ctx: ExecutionContext) => { 9 - const adapter = createCloudflareWebSocket(); 10 - const router = new XRPCRouter({ 11 - websocket: adapter, 12 - middlewares: [ 13 - cors({ 14 - allowedHeaders: ['Content-Type', 'Accept'], 15 - exposedHeaders: ['Content-Length'], 16 - }), 17 - ], 18 - }); 6 + const router = new XRPCRouter({ 7 + handleException: (err, _req) => { 8 + if (err instanceof XRPCError) { 9 + return Response.json(err); 10 + } else { 11 + console.error('Error handling request:', err); 12 + return Response.json({ error: 'InternalServerError', message: 'an exception happened whilst processing this request' }) 13 + } 14 + }, 15 + middlewares: [ 16 + cors({ 17 + allowedHeaders: ['Content-Type', 'Accept'], 18 + exposedHeaders: ['Content-Length'], 19 + }), 20 + ], 21 + }); 19 22 20 - const db = drizzle(env.DB, { logger: true }); 23 + registerGetRecipes(router); 24 + registerGetRecipe(router); 21 25 22 - registerGetRecipes(router, { env, ctx, db }); 23 - registerGetRecipe(router, { env, ctx, db }); 26 + const server = Bun.serve({ 27 + port: process.env.PORT || 3000, 28 + ...router 29 + }); 24 30 25 - return router; 26 - } 27 - 28 - export default { 29 - fetch: (req, env, ctx) => createRouter(env, ctx).fetch(req), 30 - } satisfies ExportedHandler<Env>; 31 + console.log(`Server running on http://localhost:${server.port}`);
+34 -5
apps/api/src/util/api.ts
··· 1 1 import { Client } from '@atcute/client'; 2 2 import { AppBskyActorProfile } from '@atcute/bluesky'; 3 3 import type { BlueRecipesFeedDefs } from '@cookware/lexicons'; 4 - import { getDidDoc } from '@cookware/lexicons/did'; 5 - import { Did } from '@atcute/lexicons'; 6 4 7 5 import type {} from '@atcute/atproto'; 8 6 import { isBlob, isLegacyBlob } from '@atcute/lexicons/interfaces'; 7 + import { CompositeDidDocumentResolver, PlcDidDocumentResolver, WebDidDocumentResolver } from '@atcute/identity-resolver'; 8 + import { CompositeHandleResolver, DohJsonHandleResolver, WellKnownHandleResolver } from '@atcute/identity-resolver'; 9 + import { ActorIdentifier, AtprotoDid, isHandle } from '@atcute/lexicons/syntax'; 10 + import { isAtprotoDid } from '@atcute/identity'; 11 + 12 + const handleResolver = new CompositeHandleResolver({ 13 + strategy: 'race', 14 + methods: { 15 + dns: new DohJsonHandleResolver({ dohUrl: 'https://mozilla.cloudflare-dns.com/dns-query' }), 16 + http: new WellKnownHandleResolver({ fetch }), 17 + }, 18 + }); 19 + 20 + const didResolver = new CompositeDidDocumentResolver({ 21 + methods: { 22 + plc: new PlcDidDocumentResolver(), 23 + web: new WebDidDocumentResolver(), 24 + } 25 + }); 26 + 27 + export const parseDid = async (id: ActorIdentifier): Promise<AtprotoDid> => { 28 + if (isAtprotoDid(id)) return id; 29 + if (isHandle(id)) { 30 + return await handleResolver.resolve(id); 31 + } 32 + throw Error("Invalid DID or Handle!"); 33 + } 9 34 10 35 export const getAuthorInfo = async ( 11 - did: Did, 36 + did: AtprotoDid, 12 37 rpc: Client, 13 38 ): Promise<BlueRecipesFeedDefs.AuthorInfo> => { 14 - const author = await getDidDoc(did); 39 + const author = await didResolver.resolve(did); 40 + if (author.alsoKnownAs === undefined || author.alsoKnownAs.length < 1) { 41 + throw new Error('DID Document contained no `alsoKnownAs`!'); 42 + } 43 + 15 44 const { ok, data } = await rpc.get('com.atproto.repo.getRecord', { 16 45 params: { 17 46 repo: did, ··· 26 55 27 56 let info: BlueRecipesFeedDefs.AuthorInfo = { 28 57 did: did, 29 - handle: author.alsoKnownAs[0]?.substring(5) as string, 58 + handle: author.alsoKnownAs[0]!.substring(5) as string, 30 59 displayName: profile.displayName, 31 60 }; 32 61
-229
apps/api/src/util/jwt.ts
··· 1 - import * as common from "@atproto/common"; 2 - import { MINUTE } from "@atproto/common"; 3 - import * as crypto from "@atproto/crypto"; 4 - import * as ui8 from "uint8arrays"; 5 - import { XRPCError } from "./xrpc.js"; 6 - import { z } from "zod"; 7 - 8 - export const jwt = z.custom<`${string}.${string}.${string}`>((input) => { 9 - if (typeof input !== "string") return; 10 - if (input.split(".").length !== 3) return false; 11 - return true; 12 - }); 13 - 14 - type ServiceJwtParams = { 15 - iss: string; 16 - aud: string; 17 - iat?: number; 18 - exp?: number; 19 - lxm: string | null; 20 - keypair: crypto.Keypair; 21 - }; 22 - 23 - type ServiceJwtHeaders = { 24 - alg: string; 25 - } & Record<string, unknown>; 26 - 27 - type ServiceJwtPayload = { 28 - iss: string; 29 - aud: string; 30 - exp: number; 31 - lxm?: string; 32 - jti?: string; 33 - }; 34 - 35 - export const createServiceJwt = async ( 36 - params: ServiceJwtParams, 37 - ): Promise<string> => { 38 - const { iss, aud, keypair } = params; 39 - const iat = params.iat ?? Math.floor(Date.now() / 1e3); 40 - const exp = params.exp ?? iat + MINUTE / 1e3; 41 - const lxm = params.lxm ?? undefined; 42 - const jti = crypto.randomStr(16, "hex"); 43 - const header = { 44 - typ: "JWT", 45 - alg: keypair.jwtAlg, 46 - }; 47 - const payload = common.noUndefinedVals({ 48 - iat, 49 - iss, 50 - aud, 51 - exp, 52 - lxm, 53 - jti, 54 - }); 55 - const toSignStr = `${jsonToB64Url(header)}.${jsonToB64Url(payload)}`; 56 - const toSign = ui8.fromString(toSignStr, "utf8"); 57 - const sig = await keypair.sign(toSign); 58 - return `${toSignStr}.${ui8.toString(sig, "base64url")}`; 59 - }; 60 - 61 - export const createServiceAuthHeaders = async (params: ServiceJwtParams) => { 62 - const jwt = await createServiceJwt(params); 63 - return { 64 - headers: { authorization: `Bearer ${jwt}` }, 65 - }; 66 - }; 67 - 68 - const jsonToB64Url = (json: Record<string, unknown>): string => { 69 - return common.utf8ToB64Url(JSON.stringify(json)); 70 - }; 71 - 72 - export type VerifySignatureWithKeyFn = ( 73 - key: string, 74 - msgBytes: Uint8Array, 75 - sigBytes: Uint8Array, 76 - alg: string, 77 - ) => Promise<boolean>; 78 - 79 - export const verifyJwt = async ( 80 - jwtStr: string, 81 - ownDid: string | null, // null indicates to skip the audience check 82 - lxm: string | null, // null indicates to skip the lxm check 83 - getSigningKey: (iss: string, forceRefresh: boolean) => Promise<string>, 84 - verifySignatureWithKey: VerifySignatureWithKeyFn = cryptoVerifySignatureWithKey, 85 - ): Promise<ServiceJwtPayload> => { 86 - const jwtParsed = jwt.safeParse(jwtStr); 87 - if (!jwtParsed.success) { 88 - throw new XRPCError("poorly formatted jwt", "BadJwt", 401); 89 - } 90 - const parts = jwtParsed.data.split("."); 91 - 92 - const header = parseHeader(parts[0]!); 93 - 94 - // The spec does not describe what to do with the "typ" claim. We can, 95 - // however, forbid some values that are not compatible with our use case. 96 - if ( 97 - // service tokens are not OAuth 2.0 access tokens 98 - // https://datatracker.ietf.org/doc/html/rfc9068 99 - header["typ"] === "at+jwt" || 100 - // "refresh+jwt" is a non-standard type used by the @atproto packages 101 - header["typ"] === "refresh+jwt" || 102 - // "DPoP" proofs are not meant to be used as service tokens 103 - // https://datatracker.ietf.org/doc/html/rfc9449 104 - header["typ"] === "dpop+jwt" 105 - ) { 106 - throw new XRPCError( 107 - `Invalid jwt type "${header["typ"]}"`, 108 - "BadJwtType", 109 - 401, 110 - ); 111 - } 112 - 113 - const payload = parsePayload(parts[1]!); 114 - const sig = parts[2]!; 115 - 116 - if (Date.now() / 1000 > payload.exp) { 117 - throw new XRPCError("jwt expired", "JwtExpired", 401); 118 - } 119 - if (ownDid !== null && payload.aud !== ownDid) { 120 - throw new XRPCError( 121 - "jwt audience does not match service did", 122 - "BadJwtAudience", 123 - 401, 124 - ); 125 - } 126 - if (lxm !== null && payload.lxm !== lxm) { 127 - throw new XRPCError( 128 - payload.lxm !== undefined 129 - ? `bad jwt lexicon method ("lxm"). must match: ${lxm}` 130 - : `missing jwt lexicon method ("lxm"). must match: ${lxm}`, 131 - "BadJwtLexiconMethod", 132 - 401, 133 - ); 134 - } 135 - 136 - const msgBytes = ui8.fromString(parts.slice(0, 2).join("."), "utf8"); 137 - const sigBytes = ui8.fromString(sig, "base64url"); 138 - 139 - const signingKey = await getSigningKey(payload.iss, false); 140 - const { alg } = header; 141 - 142 - let validSig: boolean; 143 - try { 144 - validSig = await verifySignatureWithKey( 145 - signingKey, 146 - msgBytes, 147 - sigBytes, 148 - alg, 149 - ); 150 - } catch (err) { 151 - throw new XRPCError( 152 - "could not verify jwt signature", 153 - "BadJwtSignature", 154 - 401, 155 - ); 156 - } 157 - 158 - if (!validSig) { 159 - // get fresh signing key in case it failed due to a recent rotation 160 - const freshSigningKey = await getSigningKey(payload.iss, true); 161 - try { 162 - validSig = 163 - freshSigningKey !== signingKey 164 - ? await verifySignatureWithKey( 165 - freshSigningKey, 166 - msgBytes, 167 - sigBytes, 168 - alg, 169 - ) 170 - : false; 171 - } catch (err) { 172 - throw new XRPCError( 173 - "could not verify jwt signature", 174 - "BadJwtSignature", 175 - 401, 176 - ); 177 - } 178 - } 179 - 180 - if (!validSig) { 181 - throw new XRPCError( 182 - "jwt signature does not match jwt issuer", 183 - "BadJwtSignature", 184 - 401, 185 - ); 186 - } 187 - 188 - return payload; 189 - }; 190 - 191 - export const cryptoVerifySignatureWithKey: VerifySignatureWithKeyFn = async ( 192 - key: string, 193 - msgBytes: Uint8Array, 194 - sigBytes: Uint8Array, 195 - alg: string, 196 - ) => { 197 - return crypto.verifySignature(key, msgBytes, sigBytes, { 198 - jwtAlg: alg, 199 - allowMalleableSig: true, 200 - }); 201 - }; 202 - 203 - const parseB64UrlToJson = (b64: string) => { 204 - return JSON.parse(common.b64UrlToUtf8(b64)); 205 - }; 206 - 207 - const parseHeader = (b64: string): ServiceJwtHeaders => { 208 - const header = parseB64UrlToJson(b64); 209 - if (!header || typeof header !== "object" || typeof header.alg !== "string") { 210 - throw new XRPCError("poorly formatted jwt", "BadJwt", 401); 211 - } 212 - return header; 213 - }; 214 - 215 - const parsePayload = (b64: string): ServiceJwtPayload => { 216 - const payload = parseB64UrlToJson(b64); 217 - if ( 218 - !payload || 219 - typeof payload !== "object" || 220 - typeof payload.iss !== "string" || 221 - typeof payload.aud !== "string" || 222 - typeof payload.exp !== "number" || 223 - (payload.lxm && typeof payload.lxm !== "string") || 224 - (payload.nonce && typeof payload.nonce !== "string") 225 - ) { 226 - throw new XRPCError("poorly formatted jwt", "BadJwt", 401); 227 - } 228 - return payload; 229 - };
-20
apps/api/src/util/xrpc.ts
··· 1 - import { Context } from "hono"; 2 - import { StatusCode } from "hono/utils/http-status"; 3 - 4 - export class XRPCError extends Error { 5 - constructor( 6 - message: string, 7 - public error: string, 8 - public code: StatusCode, 9 - ) { 10 - super(message); 11 - } 12 - 13 - hono(ctx: Context) { 14 - ctx.status(this.code); 15 - return ctx.json({ 16 - error: this.error, 17 - message: this.message, 18 - }); 19 - } 20 - }
+9 -25
apps/api/src/xrpc/blue.recipes.feed.getRecipe.ts
··· 1 1 import { json, XRPCRouter, XRPCError } from '@atcute/xrpc-server'; 2 2 import { BlueRecipesFeedGetRecipe } from '@cookware/lexicons'; 3 - import { getDidFromHandleOrDid } from '@cookware/lexicons/did'; 4 - import { recipeTable } from '@cookware/database'; 5 - import { and, eq } from 'drizzle-orm'; 3 + import { db, and, eq } from '@cookware/database'; 6 4 import { Client, simpleFetchHandler } from '@atcute/client'; 7 - import { getAuthorInfo } from '../util/api.js'; 5 + import { getAuthorInfo, parseDid } from '../util/api.js'; 8 6 9 - export const registerGetRecipe = (router: XRPCRouter, { db }: RouterContext) => { 7 + export const registerGetRecipe = (router: XRPCRouter) => { 10 8 router.addQuery(BlueRecipesFeedGetRecipe.mainSchema, { 11 9 async handler({ params: { did, rkey } }) { 12 10 if (!did) throw new Error('Invalid DID'); 13 11 if (!rkey) throw new Error('Invalid rkey'); 14 12 15 - let parsedDid = await getDidFromHandleOrDid(did); 16 - if (!parsedDid) { 17 - throw new XRPCError({ 18 - status: 404, 19 - error: 'InvalidDid', 20 - description: 'No such author was found by that identifier.', 21 - }); 22 - } 13 + const actor = await parseDid(did); 23 14 24 - const recipe = await db 25 - .select() 26 - .from(recipeTable) 27 - .where( 28 - and( 29 - eq(recipeTable.authorDid, parsedDid), 30 - eq(recipeTable.rkey, rkey), 31 - ), 32 - ) 33 - .limit(1) 34 - .get(); 15 + const recipe = await db.query.recipeTable.findFirst({ 16 + where: t => and(eq(t.authorDid, actor), eq(t.rkey, rkey)), 17 + }); 35 18 36 19 if (!recipe) { 37 20 throw new XRPCError({ ··· 62 45 ? `https://cdn.bsky.app/img/feed_thumbnail/plain/${recipe.authorDid}/${recipe.imageRef}@jpeg` 63 46 : undefined, 64 47 }, 65 - }); } 48 + }); 49 + }, 66 50 }); 67 51 };
+31 -31
apps/api/src/xrpc/blue.recipes.feed.getRecipes.ts
··· 1 - import { json, XRPCRouter } from '@atcute/xrpc-server'; 1 + import { db, desc, eq } from '@cookware/database'; 2 + import { recipeTable } from '@cookware/database/schema'; 2 3 import { BlueRecipesFeedDefs, BlueRecipesFeedGetRecipes } from '@cookware/lexicons'; 3 - import { DID, getDidFromHandleOrDid } from '@cookware/lexicons/did'; 4 - import { recipeTable } from '@cookware/database'; 5 - import { desc, eq, sql } from 'drizzle-orm'; 6 - import { simpleFetchHandler, XRPC } from '@atcute/client'; 7 - import { getAuthorInfo } from '../util/api.js'; 4 + import { json, XRPCRouter } from '@atcute/xrpc-server'; 5 + import { simpleFetchHandler, Client } from '@atcute/client'; 6 + import { getAuthorInfo, parseDid } from '../util/api.js'; 7 + import { AtprotoDid } from '@atcute/lexicons/syntax'; 8 8 9 - export const registerGetRecipes = (router: XRPCRouter, { db }: RouterContext) => { 9 + export const registerGetRecipes = (router: XRPCRouter) => { 10 + 10 11 router.addQuery(BlueRecipesFeedGetRecipes.mainSchema, { 11 - async handler({ params: { did: didQuery } }) { 12 - let did: DID | null = null; 13 - if (didQuery) 14 - did = await getDidFromHandleOrDid(didQuery); 12 + async handler({ params: { did } }) { 13 + let foundDid: AtprotoDid | null = null; 14 + if (did) foundDid = await parseDid(did); 15 15 16 - const recipes = await db 17 - .select({ 18 - rkey: recipeTable.rkey, 19 - title: recipeTable.title, 20 - description: recipeTable.description, 21 - time: recipeTable.time, 22 - serves: recipeTable.serves, 23 - ingredientsCount: sql`json_array_length(${recipeTable.ingredients})`, 24 - stepsCount: sql`json_array_length(${recipeTable.steps})`, 25 - createdAt: recipeTable.createdAt, 26 - authorDid: recipeTable.authorDid, 27 - imageRef: recipeTable.imageRef, 28 - uri: sql`concat(${recipeTable.authorDid}, "/", ${recipeTable.rkey})`.as('uri'), 29 - }) 30 - .from(recipeTable) 31 - .where(did ? eq(recipeTable.authorDid, did) : undefined) 32 - .orderBy(desc(recipeTable.createdAt)); 16 + const recipes = await db.query.recipeTable.findMany({ 17 + columns: { 18 + rkey: true, 19 + title: true, 20 + description: true, 21 + time: true, 22 + serves: true, 23 + ingredientsCount: true, 24 + stepsCount: true, 25 + createdAt: true, 26 + authorDid: true, 27 + imageRef: true, 28 + uri: true, 29 + }, 30 + orderBy: [desc(recipeTable.createdAt)], 31 + where: foundDid ? eq(recipeTable.authorDid, foundDid) : undefined, 32 + }); 33 33 34 - const rpc = new XRPC({ 34 + const rpc = new Client({ 35 35 handler: simpleFetchHandler({ 36 36 service: 'https://public.api.bsky.app', 37 37 }), 38 38 }); 39 39 40 40 let authorInfo: BlueRecipesFeedDefs.AuthorInfo | null = null; 41 - if (did) { 42 - authorInfo = await getAuthorInfo(did, rpc); 41 + if (foundDid) { 42 + authorInfo = await getAuthorInfo(foundDid, rpc); 43 43 }; 44 44 45 45 const results = [];
+1 -4
apps/api/tsconfig.json
··· 1 1 { 2 2 "extends": "@cookware/tsconfig/base.json", 3 - "include": ["src", "scripts"], 4 - "compilerOptions": { 5 - "types": ["./worker-configuration.d.ts"] 6 - } 3 + "include": ["src", "scripts"] 7 4 }
-9100
apps/api/worker-configuration.d.ts
··· 1 - /* eslint-disable */ 2 - // Generated by Wrangler by running `wrangler types` (hash: 973863b87c5f17b377119a1dc8be79cf) 3 - // Runtime types generated with workerd@1.20251118.0 2025-11-23 4 - declare namespace Cloudflare { 5 - interface GlobalProps { 6 - mainModule: typeof import("./src/index"); 7 - } 8 - interface Env { 9 - DB: D1Database; 10 - } 11 - } 12 - interface Env extends Cloudflare.Env {} 13 - 14 - // Begin runtime types 15 - /*! ***************************************************************************** 16 - Copyright (c) Cloudflare. All rights reserved. 17 - Copyright (c) Microsoft Corporation. All rights reserved. 18 - 19 - Licensed under the Apache License, Version 2.0 (the "License"); you may not use 20 - this file except in compliance with the License. You may obtain a copy of the 21 - License at http://www.apache.org/licenses/LICENSE-2.0 22 - THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 23 - KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 24 - WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 25 - MERCHANTABLITY OR NON-INFRINGEMENT. 26 - See the Apache Version 2.0 License for specific language governing permissions 27 - and limitations under the License. 28 - ***************************************************************************** */ 29 - /* eslint-disable */ 30 - // noinspection JSUnusedGlobalSymbols 31 - declare var onmessage: never; 32 - /** 33 - * 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. 34 - * 35 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) 36 - */ 37 - declare class DOMException extends Error { 38 - constructor(message?: string, name?: string); 39 - /** 40 - * The **`message`** read-only property of the a message or description associated with the given error name. 41 - * 42 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) 43 - */ 44 - readonly message: string; 45 - /** 46 - * The **`name`** read-only property of the one of the strings associated with an error name. 47 - * 48 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) 49 - */ 50 - readonly name: string; 51 - /** 52 - * The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or `0` if none match. 53 - * @deprecated 54 - * 55 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) 56 - */ 57 - readonly code: number; 58 - static readonly INDEX_SIZE_ERR: number; 59 - static readonly DOMSTRING_SIZE_ERR: number; 60 - static readonly HIERARCHY_REQUEST_ERR: number; 61 - static readonly WRONG_DOCUMENT_ERR: number; 62 - static readonly INVALID_CHARACTER_ERR: number; 63 - static readonly NO_DATA_ALLOWED_ERR: number; 64 - static readonly NO_MODIFICATION_ALLOWED_ERR: number; 65 - static readonly NOT_FOUND_ERR: number; 66 - static readonly NOT_SUPPORTED_ERR: number; 67 - static readonly INUSE_ATTRIBUTE_ERR: number; 68 - static readonly INVALID_STATE_ERR: number; 69 - static readonly SYNTAX_ERR: number; 70 - static readonly INVALID_MODIFICATION_ERR: number; 71 - static readonly NAMESPACE_ERR: number; 72 - static readonly INVALID_ACCESS_ERR: number; 73 - static readonly VALIDATION_ERR: number; 74 - static readonly TYPE_MISMATCH_ERR: number; 75 - static readonly SECURITY_ERR: number; 76 - static readonly NETWORK_ERR: number; 77 - static readonly ABORT_ERR: number; 78 - static readonly URL_MISMATCH_ERR: number; 79 - static readonly QUOTA_EXCEEDED_ERR: number; 80 - static readonly TIMEOUT_ERR: number; 81 - static readonly INVALID_NODE_TYPE_ERR: number; 82 - static readonly DATA_CLONE_ERR: number; 83 - get stack(): any; 84 - set stack(value: any); 85 - } 86 - type WorkerGlobalScopeEventMap = { 87 - fetch: FetchEvent; 88 - scheduled: ScheduledEvent; 89 - queue: QueueEvent; 90 - unhandledrejection: PromiseRejectionEvent; 91 - rejectionhandled: PromiseRejectionEvent; 92 - }; 93 - declare abstract class WorkerGlobalScope extends EventTarget<WorkerGlobalScopeEventMap> { 94 - EventTarget: typeof EventTarget; 95 - } 96 - /* The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). * 97 - * The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). 98 - * 99 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) 100 - */ 101 - interface Console { 102 - "assert"(condition?: boolean, ...data: any[]): void; 103 - /** 104 - * The **`console.clear()`** static method clears the console if possible. 105 - * 106 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) 107 - */ 108 - clear(): void; 109 - /** 110 - * The **`console.count()`** static method logs the number of times that this particular call to `count()` has been called. 111 - * 112 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) 113 - */ 114 - count(label?: string): void; 115 - /** 116 - * The **`console.countReset()`** static method resets counter used with console/count_static. 117 - * 118 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) 119 - */ 120 - countReset(label?: string): void; 121 - /** 122 - * The **`console.debug()`** static method outputs a message to the console at the 'debug' log level. 123 - * 124 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) 125 - */ 126 - debug(...data: any[]): void; 127 - /** 128 - * The **`console.dir()`** static method displays a list of the properties of the specified JavaScript object. 129 - * 130 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) 131 - */ 132 - dir(item?: any, options?: any): void; 133 - /** 134 - * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. 135 - * 136 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) 137 - */ 138 - dirxml(...data: any[]): void; 139 - /** 140 - * The **`console.error()`** static method outputs a message to the console at the 'error' log level. 141 - * 142 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) 143 - */ 144 - error(...data: any[]): void; 145 - /** 146 - * 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. 147 - * 148 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) 149 - */ 150 - group(...data: any[]): void; 151 - /** 152 - * The **`console.groupCollapsed()`** static method creates a new inline group in the console. 153 - * 154 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) 155 - */ 156 - groupCollapsed(...data: any[]): void; 157 - /** 158 - * The **`console.groupEnd()`** static method exits the current inline group in the console. 159 - * 160 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) 161 - */ 162 - groupEnd(): void; 163 - /** 164 - * The **`console.info()`** static method outputs a message to the console at the 'info' log level. 165 - * 166 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) 167 - */ 168 - info(...data: any[]): void; 169 - /** 170 - * The **`console.log()`** static method outputs a message to the console. 171 - * 172 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) 173 - */ 174 - log(...data: any[]): void; 175 - /** 176 - * The **`console.table()`** static method displays tabular data as a table. 177 - * 178 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) 179 - */ 180 - table(tabularData?: any, properties?: string[]): void; 181 - /** 182 - * The **`console.time()`** static method starts a timer you can use to track how long an operation takes. 183 - * 184 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) 185 - */ 186 - time(label?: string): void; 187 - /** 188 - * The **`console.timeEnd()`** static method stops a timer that was previously started by calling console/time_static. 189 - * 190 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) 191 - */ 192 - timeEnd(label?: string): void; 193 - /** 194 - * The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console/time_static. 195 - * 196 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) 197 - */ 198 - timeLog(label?: string, ...data: any[]): void; 199 - timeStamp(label?: string): void; 200 - /** 201 - * The **`console.trace()`** static method outputs a stack trace to the console. 202 - * 203 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) 204 - */ 205 - trace(...data: any[]): void; 206 - /** 207 - * The **`console.warn()`** static method outputs a warning message to the console at the 'warning' log level. 208 - * 209 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) 210 - */ 211 - warn(...data: any[]): void; 212 - } 213 - declare const console: Console; 214 - type BufferSource = ArrayBufferView | ArrayBuffer; 215 - type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array; 216 - declare namespace WebAssembly { 217 - class CompileError extends Error { 218 - constructor(message?: string); 219 - } 220 - class RuntimeError extends Error { 221 - constructor(message?: string); 222 - } 223 - type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128"; 224 - interface GlobalDescriptor { 225 - value: ValueType; 226 - mutable?: boolean; 227 - } 228 - class Global { 229 - constructor(descriptor: GlobalDescriptor, value?: any); 230 - value: any; 231 - valueOf(): any; 232 - } 233 - type ImportValue = ExportValue | number; 234 - type ModuleImports = Record<string, ImportValue>; 235 - type Imports = Record<string, ModuleImports>; 236 - type ExportValue = Function | Global | Memory | Table; 237 - type Exports = Record<string, ExportValue>; 238 - class Instance { 239 - constructor(module: Module, imports?: Imports); 240 - readonly exports: Exports; 241 - } 242 - interface MemoryDescriptor { 243 - initial: number; 244 - maximum?: number; 245 - shared?: boolean; 246 - } 247 - class Memory { 248 - constructor(descriptor: MemoryDescriptor); 249 - readonly buffer: ArrayBuffer; 250 - grow(delta: number): number; 251 - } 252 - type ImportExportKind = "function" | "global" | "memory" | "table"; 253 - interface ModuleExportDescriptor { 254 - kind: ImportExportKind; 255 - name: string; 256 - } 257 - interface ModuleImportDescriptor { 258 - kind: ImportExportKind; 259 - module: string; 260 - name: string; 261 - } 262 - abstract class Module { 263 - static customSections(module: Module, sectionName: string): ArrayBuffer[]; 264 - static exports(module: Module): ModuleExportDescriptor[]; 265 - static imports(module: Module): ModuleImportDescriptor[]; 266 - } 267 - type TableKind = "anyfunc" | "externref"; 268 - interface TableDescriptor { 269 - element: TableKind; 270 - initial: number; 271 - maximum?: number; 272 - } 273 - class Table { 274 - constructor(descriptor: TableDescriptor, value?: any); 275 - readonly length: number; 276 - get(index: number): any; 277 - grow(delta: number, value?: any): number; 278 - set(index: number, value?: any): void; 279 - } 280 - function instantiate(module: Module, imports?: Imports): Promise<Instance>; 281 - function validate(bytes: BufferSource): boolean; 282 - } 283 - /** 284 - * The **`ServiceWorkerGlobalScope`** interface of the Service Worker API represents the global execution context of a service worker. 285 - * Available only in secure contexts. 286 - * 287 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope) 288 - */ 289 - interface ServiceWorkerGlobalScope extends WorkerGlobalScope { 290 - DOMException: typeof DOMException; 291 - WorkerGlobalScope: typeof WorkerGlobalScope; 292 - btoa(data: string): string; 293 - atob(data: string): string; 294 - setTimeout(callback: (...args: any[]) => void, msDelay?: number): number; 295 - setTimeout<Args extends any[]>(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; 296 - clearTimeout(timeoutId: number | null): void; 297 - setInterval(callback: (...args: any[]) => void, msDelay?: number): number; 298 - setInterval<Args extends any[]>(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; 299 - clearInterval(timeoutId: number | null): void; 300 - queueMicrotask(task: Function): void; 301 - structuredClone<T>(value: T, options?: StructuredSerializeOptions): T; 302 - reportError(error: any): void; 303 - fetch(input: RequestInfo | URL, init?: RequestInit<RequestInitCfProperties>): Promise<Response>; 304 - self: ServiceWorkerGlobalScope; 305 - crypto: Crypto; 306 - caches: CacheStorage; 307 - scheduler: Scheduler; 308 - performance: Performance; 309 - Cloudflare: Cloudflare; 310 - readonly origin: string; 311 - Event: typeof Event; 312 - ExtendableEvent: typeof ExtendableEvent; 313 - CustomEvent: typeof CustomEvent; 314 - PromiseRejectionEvent: typeof PromiseRejectionEvent; 315 - FetchEvent: typeof FetchEvent; 316 - TailEvent: typeof TailEvent; 317 - TraceEvent: typeof TailEvent; 318 - ScheduledEvent: typeof ScheduledEvent; 319 - MessageEvent: typeof MessageEvent; 320 - CloseEvent: typeof CloseEvent; 321 - ReadableStreamDefaultReader: typeof ReadableStreamDefaultReader; 322 - ReadableStreamBYOBReader: typeof ReadableStreamBYOBReader; 323 - ReadableStream: typeof ReadableStream; 324 - WritableStream: typeof WritableStream; 325 - WritableStreamDefaultWriter: typeof WritableStreamDefaultWriter; 326 - TransformStream: typeof TransformStream; 327 - ByteLengthQueuingStrategy: typeof ByteLengthQueuingStrategy; 328 - CountQueuingStrategy: typeof CountQueuingStrategy; 329 - ErrorEvent: typeof ErrorEvent; 330 - MessageChannel: typeof MessageChannel; 331 - MessagePort: typeof MessagePort; 332 - EventSource: typeof EventSource; 333 - ReadableStreamBYOBRequest: typeof ReadableStreamBYOBRequest; 334 - ReadableStreamDefaultController: typeof ReadableStreamDefaultController; 335 - ReadableByteStreamController: typeof ReadableByteStreamController; 336 - WritableStreamDefaultController: typeof WritableStreamDefaultController; 337 - TransformStreamDefaultController: typeof TransformStreamDefaultController; 338 - CompressionStream: typeof CompressionStream; 339 - DecompressionStream: typeof DecompressionStream; 340 - TextEncoderStream: typeof TextEncoderStream; 341 - TextDecoderStream: typeof TextDecoderStream; 342 - Headers: typeof Headers; 343 - Body: typeof Body; 344 - Request: typeof Request; 345 - Response: typeof Response; 346 - WebSocket: typeof WebSocket; 347 - WebSocketPair: typeof WebSocketPair; 348 - WebSocketRequestResponsePair: typeof WebSocketRequestResponsePair; 349 - AbortController: typeof AbortController; 350 - AbortSignal: typeof AbortSignal; 351 - TextDecoder: typeof TextDecoder; 352 - TextEncoder: typeof TextEncoder; 353 - navigator: Navigator; 354 - Navigator: typeof Navigator; 355 - URL: typeof URL; 356 - URLSearchParams: typeof URLSearchParams; 357 - URLPattern: typeof URLPattern; 358 - Blob: typeof Blob; 359 - File: typeof File; 360 - FormData: typeof FormData; 361 - Crypto: typeof Crypto; 362 - SubtleCrypto: typeof SubtleCrypto; 363 - CryptoKey: typeof CryptoKey; 364 - CacheStorage: typeof CacheStorage; 365 - Cache: typeof Cache; 366 - FixedLengthStream: typeof FixedLengthStream; 367 - IdentityTransformStream: typeof IdentityTransformStream; 368 - HTMLRewriter: typeof HTMLRewriter; 369 - } 370 - declare function addEventListener<Type extends keyof WorkerGlobalScopeEventMap>(type: Type, handler: EventListenerOrEventListenerObject<WorkerGlobalScopeEventMap[Type]>, options?: EventTargetAddEventListenerOptions | boolean): void; 371 - declare function removeEventListener<Type extends keyof WorkerGlobalScopeEventMap>(type: Type, handler: EventListenerOrEventListenerObject<WorkerGlobalScopeEventMap[Type]>, options?: EventTargetEventListenerOptions | boolean): void; 372 - /** 373 - * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. 374 - * 375 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) 376 - */ 377 - declare function dispatchEvent(event: WorkerGlobalScopeEventMap[keyof WorkerGlobalScopeEventMap]): boolean; 378 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ 379 - declare function btoa(data: string): string; 380 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */ 381 - declare function atob(data: string): string; 382 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ 383 - declare function setTimeout(callback: (...args: any[]) => void, msDelay?: number): number; 384 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ 385 - declare function setTimeout<Args extends any[]>(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; 386 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ 387 - declare function clearTimeout(timeoutId: number | null): void; 388 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ 389 - declare function setInterval(callback: (...args: any[]) => void, msDelay?: number): number; 390 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ 391 - declare function setInterval<Args extends any[]>(callback: (...args: Args) => void, msDelay?: number, ...args: Args): number; 392 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ 393 - declare function clearInterval(timeoutId: number | null): void; 394 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ 395 - declare function queueMicrotask(task: Function): void; 396 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ 397 - declare function structuredClone<T>(value: T, options?: StructuredSerializeOptions): T; 398 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ 399 - declare function reportError(error: any): void; 400 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ 401 - declare function fetch(input: RequestInfo | URL, init?: RequestInit<RequestInitCfProperties>): Promise<Response>; 402 - declare const self: ServiceWorkerGlobalScope; 403 - /** 404 - * The Web Crypto API provides a set of low-level functions for common cryptographic tasks. 405 - * The Workers runtime implements the full surface of this API, but with some differences in 406 - * the [supported algorithms](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/#supported-algorithms) 407 - * compared to those implemented in most browsers. 408 - * 409 - * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/web-crypto/) 410 - */ 411 - declare const crypto: Crypto; 412 - /** 413 - * The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache. 414 - * 415 - * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/) 416 - */ 417 - declare const caches: CacheStorage; 418 - declare const scheduler: Scheduler; 419 - /** 420 - * The Workers runtime supports a subset of the Performance API, used to measure timing and performance, 421 - * as well as timing of subrequests and other operations. 422 - * 423 - * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/) 424 - */ 425 - declare const performance: Performance; 426 - declare const Cloudflare: Cloudflare; 427 - declare const origin: string; 428 - declare const navigator: Navigator; 429 - interface TestController { 430 - } 431 - interface ExecutionContext<Props = unknown> { 432 - waitUntil(promise: Promise<any>): void; 433 - passThroughOnException(): void; 434 - readonly exports: Cloudflare.Exports; 435 - readonly props: Props; 436 - } 437 - type ExportedHandlerFetchHandler<Env = unknown, CfHostMetadata = unknown> = (request: Request<CfHostMetadata, IncomingRequestCfProperties<CfHostMetadata>>, env: Env, ctx: ExecutionContext) => Response | Promise<Response>; 438 - type ExportedHandlerTailHandler<Env = unknown> = (events: TraceItem[], env: Env, ctx: ExecutionContext) => void | Promise<void>; 439 - type ExportedHandlerTraceHandler<Env = unknown> = (traces: TraceItem[], env: Env, ctx: ExecutionContext) => void | Promise<void>; 440 - type ExportedHandlerTailStreamHandler<Env = unknown> = (event: TailStream.TailEvent<TailStream.Onset>, env: Env, ctx: ExecutionContext) => TailStream.TailEventHandlerType | Promise<TailStream.TailEventHandlerType>; 441 - type ExportedHandlerScheduledHandler<Env = unknown> = (controller: ScheduledController, env: Env, ctx: ExecutionContext) => void | Promise<void>; 442 - type ExportedHandlerQueueHandler<Env = unknown, Message = unknown> = (batch: MessageBatch<Message>, env: Env, ctx: ExecutionContext) => void | Promise<void>; 443 - type ExportedHandlerTestHandler<Env = unknown> = (controller: TestController, env: Env, ctx: ExecutionContext) => void | Promise<void>; 444 - interface ExportedHandler<Env = unknown, QueueHandlerMessage = unknown, CfHostMetadata = unknown> { 445 - fetch?: ExportedHandlerFetchHandler<Env, CfHostMetadata>; 446 - tail?: ExportedHandlerTailHandler<Env>; 447 - trace?: ExportedHandlerTraceHandler<Env>; 448 - tailStream?: ExportedHandlerTailStreamHandler<Env>; 449 - scheduled?: ExportedHandlerScheduledHandler<Env>; 450 - test?: ExportedHandlerTestHandler<Env>; 451 - email?: EmailExportedHandler<Env>; 452 - queue?: ExportedHandlerQueueHandler<Env, QueueHandlerMessage>; 453 - } 454 - interface StructuredSerializeOptions { 455 - transfer?: any[]; 456 - } 457 - declare abstract class Navigator { 458 - sendBeacon(url: string, body?: BodyInit): boolean; 459 - readonly userAgent: string; 460 - readonly hardwareConcurrency: number; 461 - readonly language: string; 462 - readonly languages: string[]; 463 - } 464 - interface AlarmInvocationInfo { 465 - readonly isRetry: boolean; 466 - readonly retryCount: number; 467 - } 468 - interface Cloudflare { 469 - readonly compatibilityFlags: Record<string, boolean>; 470 - } 471 - interface DurableObject { 472 - fetch(request: Request): Response | Promise<Response>; 473 - alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>; 474 - webSocketMessage?(ws: WebSocket, message: string | ArrayBuffer): void | Promise<void>; 475 - webSocketClose?(ws: WebSocket, code: number, reason: string, wasClean: boolean): void | Promise<void>; 476 - webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>; 477 - } 478 - type DurableObjectStub<T extends Rpc.DurableObjectBranded | undefined = undefined> = Fetcher<T, "alarm" | "webSocketMessage" | "webSocketClose" | "webSocketError"> & { 479 - readonly id: DurableObjectId; 480 - readonly name?: string; 481 - }; 482 - interface DurableObjectId { 483 - toString(): string; 484 - equals(other: DurableObjectId): boolean; 485 - readonly name?: string; 486 - } 487 - declare abstract class DurableObjectNamespace<T extends Rpc.DurableObjectBranded | undefined = undefined> { 488 - newUniqueId(options?: DurableObjectNamespaceNewUniqueIdOptions): DurableObjectId; 489 - idFromName(name: string): DurableObjectId; 490 - idFromString(id: string): DurableObjectId; 491 - get(id: DurableObjectId, options?: DurableObjectNamespaceGetDurableObjectOptions): DurableObjectStub<T>; 492 - getByName(name: string, options?: DurableObjectNamespaceGetDurableObjectOptions): DurableObjectStub<T>; 493 - jurisdiction(jurisdiction: DurableObjectJurisdiction): DurableObjectNamespace<T>; 494 - } 495 - type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high"; 496 - interface DurableObjectNamespaceNewUniqueIdOptions { 497 - jurisdiction?: DurableObjectJurisdiction; 498 - } 499 - type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me"; 500 - interface DurableObjectNamespaceGetDurableObjectOptions { 501 - locationHint?: DurableObjectLocationHint; 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): 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: Blob, filename?: string): void; 1401 - /** 1402 - * The **`delete()`** method of the FormData interface deletes a key and its value(s) from a `FormData` object. 1403 - * 1404 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) 1405 - */ 1406 - delete(name: string): void; 1407 - /** 1408 - * The **`get()`** method of the FormData interface returns the first value associated with a given key from within a `FormData` object. 1409 - * 1410 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) 1411 - */ 1412 - get(name: string): (File | string) | null; 1413 - /** 1414 - * The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a `FormData` object. 1415 - * 1416 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) 1417 - */ 1418 - getAll(name: string): (File | string)[]; 1419 - /** 1420 - * The **`has()`** method of the FormData interface returns whether a `FormData` object contains a certain key. 1421 - * 1422 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) 1423 - */ 1424 - has(name: string): boolean; 1425 - /** 1426 - * 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. 1427 - * 1428 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) 1429 - */ 1430 - set(name: string, value: string): void; 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: Blob, filename?: string): void; 1437 - /* Returns an array of key, value pairs for every entry in the list. */ 1438 - entries(): IterableIterator<[ 1439 - key: string, 1440 - value: File | string 1441 - ]>; 1442 - /* Returns a list of keys in the list. */ 1443 - keys(): IterableIterator<string>; 1444 - /* Returns a list of values in the list. */ 1445 - values(): IterableIterator<(File | string)>; 1446 - forEach<This = unknown>(callback: (this: This, value: File | string, key: string, parent: FormData) => void, thisArg?: This): void; 1447 - [Symbol.iterator](): IterableIterator<[ 1448 - key: string, 1449 - value: File | string 1450 - ]>; 1451 - } 1452 - interface ContentOptions { 1453 - html?: boolean; 1454 - } 1455 - declare class HTMLRewriter { 1456 - constructor(); 1457 - on(selector: string, handlers: HTMLRewriterElementContentHandlers): HTMLRewriter; 1458 - onDocument(handlers: HTMLRewriterDocumentContentHandlers): HTMLRewriter; 1459 - transform(response: Response): Response; 1460 - } 1461 - interface HTMLRewriterElementContentHandlers { 1462 - element?(element: Element): void | Promise<void>; 1463 - comments?(comment: Comment): void | Promise<void>; 1464 - text?(element: Text): void | Promise<void>; 1465 - } 1466 - interface HTMLRewriterDocumentContentHandlers { 1467 - doctype?(doctype: Doctype): void | Promise<void>; 1468 - comments?(comment: Comment): void | Promise<void>; 1469 - text?(text: Text): void | Promise<void>; 1470 - end?(end: DocumentEnd): void | Promise<void>; 1471 - } 1472 - interface Doctype { 1473 - readonly name: string | null; 1474 - readonly publicId: string | null; 1475 - readonly systemId: string | null; 1476 - } 1477 - interface Element { 1478 - tagName: string; 1479 - readonly attributes: IterableIterator<string[]>; 1480 - readonly removed: boolean; 1481 - readonly namespaceURI: string; 1482 - getAttribute(name: string): string | null; 1483 - hasAttribute(name: string): boolean; 1484 - setAttribute(name: string, value: string): Element; 1485 - removeAttribute(name: string): Element; 1486 - before(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1487 - after(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1488 - prepend(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1489 - append(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1490 - replace(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1491 - remove(): Element; 1492 - removeAndKeepContent(): Element; 1493 - setInnerContent(content: string | ReadableStream | Response, options?: ContentOptions): Element; 1494 - onEndTag(handler: (tag: EndTag) => void | Promise<void>): void; 1495 - } 1496 - interface EndTag { 1497 - name: string; 1498 - before(content: string | ReadableStream | Response, options?: ContentOptions): EndTag; 1499 - after(content: string | ReadableStream | Response, options?: ContentOptions): EndTag; 1500 - remove(): EndTag; 1501 - } 1502 - interface Comment { 1503 - text: string; 1504 - readonly removed: boolean; 1505 - before(content: string, options?: ContentOptions): Comment; 1506 - after(content: string, options?: ContentOptions): Comment; 1507 - replace(content: string, options?: ContentOptions): Comment; 1508 - remove(): Comment; 1509 - } 1510 - interface Text { 1511 - readonly text: string; 1512 - readonly lastInTextNode: boolean; 1513 - readonly removed: boolean; 1514 - before(content: string | ReadableStream | Response, options?: ContentOptions): Text; 1515 - after(content: string | ReadableStream | Response, options?: ContentOptions): Text; 1516 - replace(content: string | ReadableStream | Response, options?: ContentOptions): Text; 1517 - remove(): Text; 1518 - } 1519 - interface DocumentEnd { 1520 - append(content: string, options?: ContentOptions): DocumentEnd; 1521 - } 1522 - /** 1523 - * This is the event type for `fetch` events dispatched on the ServiceWorkerGlobalScope. 1524 - * 1525 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent) 1526 - */ 1527 - declare abstract class FetchEvent extends ExtendableEvent { 1528 - /** 1529 - * The **`request`** read-only property of the the event handler. 1530 - * 1531 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) 1532 - */ 1533 - readonly request: Request; 1534 - /** 1535 - * The **`respondWith()`** method of allows you to provide a promise for a Response yourself. 1536 - * 1537 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) 1538 - */ 1539 - respondWith(promise: Response | Promise<Response>): void; 1540 - passThroughOnException(): void; 1541 - } 1542 - type HeadersInit = Headers | Iterable<Iterable<string>> | Record<string, string>; 1543 - /** 1544 - * The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers. 1545 - * 1546 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers) 1547 - */ 1548 - declare class Headers { 1549 - constructor(init?: HeadersInit); 1550 - /** 1551 - * 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. 1552 - * 1553 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) 1554 - */ 1555 - get(name: string): string | null; 1556 - getAll(name: string): string[]; 1557 - /** 1558 - * The **`getSetCookie()`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response. 1559 - * 1560 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) 1561 - */ 1562 - getSetCookie(): string[]; 1563 - /** 1564 - * The **`has()`** method of the Headers interface returns a boolean stating whether a `Headers` object contains a certain header. 1565 - * 1566 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) 1567 - */ 1568 - has(name: string): boolean; 1569 - /** 1570 - * 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. 1571 - * 1572 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) 1573 - */ 1574 - set(name: string, value: string): void; 1575 - /** 1576 - * 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. 1577 - * 1578 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) 1579 - */ 1580 - append(name: string, value: string): void; 1581 - /** 1582 - * The **`delete()`** method of the Headers interface deletes a header from the current `Headers` object. 1583 - * 1584 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) 1585 - */ 1586 - delete(name: string): void; 1587 - forEach<This = unknown>(callback: (this: This, value: string, key: string, parent: Headers) => void, thisArg?: This): void; 1588 - /* Returns an iterator allowing to go through all key/value pairs contained in this object. */ 1589 - entries(): IterableIterator<[ 1590 - key: string, 1591 - value: string 1592 - ]>; 1593 - /* Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ 1594 - keys(): IterableIterator<string>; 1595 - /* Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ 1596 - values(): IterableIterator<string>; 1597 - [Symbol.iterator](): IterableIterator<[ 1598 - key: string, 1599 - value: string 1600 - ]>; 1601 - } 1602 - type BodyInit = ReadableStream<Uint8Array> | string | ArrayBuffer | ArrayBufferView | Blob | URLSearchParams | FormData; 1603 - declare abstract class Body { 1604 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ 1605 - get body(): ReadableStream | null; 1606 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ 1607 - get bodyUsed(): boolean; 1608 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ 1609 - arrayBuffer(): Promise<ArrayBuffer>; 1610 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */ 1611 - bytes(): Promise<Uint8Array>; 1612 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ 1613 - text(): Promise<string>; 1614 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ 1615 - json<T>(): Promise<T>; 1616 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ 1617 - formData(): Promise<FormData>; 1618 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ 1619 - blob(): Promise<Blob>; 1620 - } 1621 - /** 1622 - * The **`Response`** interface of the Fetch API represents the response to a request. 1623 - * 1624 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response) 1625 - */ 1626 - declare var Response: { 1627 - prototype: Response; 1628 - new (body?: BodyInit | null, init?: ResponseInit): Response; 1629 - error(): Response; 1630 - redirect(url: string, status?: number): Response; 1631 - json(any: any, maybeInit?: (ResponseInit | Response)): Response; 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 - interface Response extends Body { 1639 - /** 1640 - * The **`clone()`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable. 1641 - * 1642 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) 1643 - */ 1644 - clone(): Response; 1645 - /** 1646 - * The **`status`** read-only property of the Response interface contains the HTTP status codes of the response. 1647 - * 1648 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) 1649 - */ 1650 - status: number; 1651 - /** 1652 - * The **`statusText`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status. 1653 - * 1654 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) 1655 - */ 1656 - statusText: string; 1657 - /** 1658 - * The **`headers`** read-only property of the with the response. 1659 - * 1660 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) 1661 - */ 1662 - headers: Headers; 1663 - /** 1664 - * 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. 1665 - * 1666 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) 1667 - */ 1668 - ok: boolean; 1669 - /** 1670 - * 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. 1671 - * 1672 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) 1673 - */ 1674 - redirected: boolean; 1675 - /** 1676 - * The **`url`** read-only property of the Response interface contains the URL of the response. 1677 - * 1678 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) 1679 - */ 1680 - url: string; 1681 - webSocket: WebSocket | null; 1682 - cf: any | undefined; 1683 - /** 1684 - * The **`type`** read-only property of the Response interface contains the type of the response. 1685 - * 1686 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) 1687 - */ 1688 - type: "default" | "error"; 1689 - } 1690 - interface ResponseInit { 1691 - status?: number; 1692 - statusText?: string; 1693 - headers?: HeadersInit; 1694 - cf?: any; 1695 - webSocket?: (WebSocket | null); 1696 - encodeBody?: "automatic" | "manual"; 1697 - } 1698 - type RequestInfo<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> = Request<CfHostMetadata, Cf> | string; 1699 - /** 1700 - * The **`Request`** interface of the Fetch API represents a resource request. 1701 - * 1702 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request) 1703 - */ 1704 - declare var Request: { 1705 - prototype: Request; 1706 - new <CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>(input: RequestInfo<CfProperties> | URL, init?: RequestInit<Cf>): Request<CfHostMetadata, Cf>; 1707 - }; 1708 - /** 1709 - * The **`Request`** interface of the Fetch API represents a resource request. 1710 - * 1711 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request) 1712 - */ 1713 - interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> extends Body { 1714 - /** 1715 - * The **`clone()`** method of the Request interface creates a copy of the current `Request` object. 1716 - * 1717 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) 1718 - */ 1719 - clone(): Request<CfHostMetadata, Cf>; 1720 - /** 1721 - * The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request. 1722 - * 1723 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method) 1724 - */ 1725 - method: string; 1726 - /** 1727 - * The **`url`** read-only property of the Request interface contains the URL of the request. 1728 - * 1729 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url) 1730 - */ 1731 - url: string; 1732 - /** 1733 - * The **`headers`** read-only property of the with the request. 1734 - * 1735 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers) 1736 - */ 1737 - headers: Headers; 1738 - /** 1739 - * The **`redirect`** read-only property of the Request interface contains the mode for how redirects are handled. 1740 - * 1741 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect) 1742 - */ 1743 - redirect: string; 1744 - fetcher: Fetcher | null; 1745 - /** 1746 - * The read-only **`signal`** property of the Request interface returns the AbortSignal associated with the request. 1747 - * 1748 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal) 1749 - */ 1750 - signal: AbortSignal; 1751 - cf: Cf | undefined; 1752 - /** 1753 - * The **`integrity`** read-only property of the Request interface contains the subresource integrity value of the request. 1754 - * 1755 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity) 1756 - */ 1757 - integrity: string; 1758 - /** 1759 - * 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. 1760 - * 1761 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive) 1762 - */ 1763 - keepalive: boolean; 1764 - /** 1765 - * The **`cache`** read-only property of the Request interface contains the cache mode of the request. 1766 - * 1767 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache) 1768 - */ 1769 - cache?: "no-store" | "no-cache"; 1770 - } 1771 - interface RequestInit<Cf = CfProperties> { 1772 - /* A string to set request's method. */ 1773 - method?: string; 1774 - /* A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ 1775 - headers?: HeadersInit; 1776 - /* A BodyInit object or null to set request's body. */ 1777 - body?: BodyInit | null; 1778 - /* 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. */ 1779 - redirect?: string; 1780 - fetcher?: (Fetcher | null); 1781 - cf?: Cf; 1782 - /* A string indicating how the request will interact with the browser's cache to set request's cache. */ 1783 - cache?: "no-store" | "no-cache"; 1784 - /* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ 1785 - integrity?: string; 1786 - /* An AbortSignal to set request's signal. */ 1787 - signal?: (AbortSignal | null); 1788 - encodeResponseBody?: "automatic" | "manual"; 1789 - } 1790 - 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>; 1791 - type Fetcher<T extends Rpc.EntrypointBranded | undefined = undefined, Reserved extends string = never> = (T extends Rpc.EntrypointBranded ? Rpc.Provider<T, Reserved | "fetch" | "connect"> : unknown) & { 1792 - fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; 1793 - connect(address: SocketAddress | string, options?: SocketOptions): Socket; 1794 - }; 1795 - interface KVNamespaceListKey<Metadata, Key extends string = string> { 1796 - name: Key; 1797 - expiration?: number; 1798 - metadata?: Metadata; 1799 - } 1800 - type KVNamespaceListResult<Metadata, Key extends string = string> = { 1801 - list_complete: false; 1802 - keys: KVNamespaceListKey<Metadata, Key>[]; 1803 - cursor: string; 1804 - cacheStatus: string | null; 1805 - } | { 1806 - list_complete: true; 1807 - keys: KVNamespaceListKey<Metadata, Key>[]; 1808 - cacheStatus: string | null; 1809 - }; 1810 - interface KVNamespace<Key extends string = string> { 1811 - get(key: Key, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<string | null>; 1812 - get(key: Key, type: "text"): Promise<string | null>; 1813 - get<ExpectedValue = unknown>(key: Key, type: "json"): Promise<ExpectedValue | null>; 1814 - get(key: Key, type: "arrayBuffer"): Promise<ArrayBuffer | null>; 1815 - get(key: Key, type: "stream"): Promise<ReadableStream | null>; 1816 - get(key: Key, options?: KVNamespaceGetOptions<"text">): Promise<string | null>; 1817 - get<ExpectedValue = unknown>(key: Key, options?: KVNamespaceGetOptions<"json">): Promise<ExpectedValue | null>; 1818 - get(key: Key, options?: KVNamespaceGetOptions<"arrayBuffer">): Promise<ArrayBuffer | null>; 1819 - get(key: Key, options?: KVNamespaceGetOptions<"stream">): Promise<ReadableStream | null>; 1820 - get(key: Array<Key>, type: "text"): Promise<Map<string, string | null>>; 1821 - get<ExpectedValue = unknown>(key: Array<Key>, type: "json"): Promise<Map<string, ExpectedValue | null>>; 1822 - get(key: Array<Key>, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<Map<string, string | null>>; 1823 - get(key: Array<Key>, options?: KVNamespaceGetOptions<"text">): Promise<Map<string, string | null>>; 1824 - get<ExpectedValue = unknown>(key: Array<Key>, options?: KVNamespaceGetOptions<"json">): Promise<Map<string, ExpectedValue | null>>; 1825 - list<Metadata = unknown>(options?: KVNamespaceListOptions): Promise<KVNamespaceListResult<Metadata, Key>>; 1826 - put(key: Key, value: string | ArrayBuffer | ArrayBufferView | ReadableStream, options?: KVNamespacePutOptions): Promise<void>; 1827 - getWithMetadata<Metadata = unknown>(key: Key, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>; 1828 - getWithMetadata<Metadata = unknown>(key: Key, type: "text"): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>; 1829 - getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Key, type: "json"): Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>; 1830 - getWithMetadata<Metadata = unknown>(key: Key, type: "arrayBuffer"): Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer, Metadata>>; 1831 - getWithMetadata<Metadata = unknown>(key: Key, type: "stream"): Promise<KVNamespaceGetWithMetadataResult<ReadableStream, Metadata>>; 1832 - getWithMetadata<Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"text">): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>; 1833 - getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"json">): Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>; 1834 - getWithMetadata<Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"arrayBuffer">): Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer, Metadata>>; 1835 - getWithMetadata<Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"stream">): Promise<KVNamespaceGetWithMetadataResult<ReadableStream, Metadata>>; 1836 - getWithMetadata<Metadata = unknown>(key: Array<Key>, type: "text"): Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>; 1837 - getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Array<Key>, type: "json"): Promise<Map<string, KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>>; 1838 - getWithMetadata<Metadata = unknown>(key: Array<Key>, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>; 1839 - getWithMetadata<Metadata = unknown>(key: Array<Key>, options?: KVNamespaceGetOptions<"text">): Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>; 1840 - getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Array<Key>, options?: KVNamespaceGetOptions<"json">): Promise<Map<string, KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>>; 1841 - delete(key: Key): Promise<void>; 1842 - } 1843 - interface KVNamespaceListOptions { 1844 - limit?: number; 1845 - prefix?: (string | null); 1846 - cursor?: (string | null); 1847 - } 1848 - interface KVNamespaceGetOptions<Type> { 1849 - type: Type; 1850 - cacheTtl?: number; 1851 - } 1852 - interface KVNamespacePutOptions { 1853 - expiration?: number; 1854 - expirationTtl?: number; 1855 - metadata?: (any | null); 1856 - } 1857 - interface KVNamespaceGetWithMetadataResult<Value, Metadata> { 1858 - value: Value | null; 1859 - metadata: Metadata | null; 1860 - cacheStatus: string | null; 1861 - } 1862 - type QueueContentType = "text" | "bytes" | "json" | "v8"; 1863 - interface Queue<Body = unknown> { 1864 - send(message: Body, options?: QueueSendOptions): Promise<void>; 1865 - sendBatch(messages: Iterable<MessageSendRequest<Body>>, options?: QueueSendBatchOptions): Promise<void>; 1866 - } 1867 - interface QueueSendOptions { 1868 - contentType?: QueueContentType; 1869 - delaySeconds?: number; 1870 - } 1871 - interface QueueSendBatchOptions { 1872 - delaySeconds?: number; 1873 - } 1874 - interface MessageSendRequest<Body = unknown> { 1875 - body: Body; 1876 - contentType?: QueueContentType; 1877 - delaySeconds?: number; 1878 - } 1879 - interface QueueRetryOptions { 1880 - delaySeconds?: number; 1881 - } 1882 - interface Message<Body = unknown> { 1883 - readonly id: string; 1884 - readonly timestamp: Date; 1885 - readonly body: Body; 1886 - readonly attempts: number; 1887 - retry(options?: QueueRetryOptions): void; 1888 - ack(): void; 1889 - } 1890 - interface QueueEvent<Body = unknown> extends ExtendableEvent { 1891 - readonly messages: readonly Message<Body>[]; 1892 - readonly queue: string; 1893 - retryAll(options?: QueueRetryOptions): void; 1894 - ackAll(): void; 1895 - } 1896 - interface MessageBatch<Body = unknown> { 1897 - readonly messages: readonly Message<Body>[]; 1898 - readonly queue: string; 1899 - retryAll(options?: QueueRetryOptions): void; 1900 - ackAll(): void; 1901 - } 1902 - interface R2Error extends Error { 1903 - readonly name: string; 1904 - readonly code: number; 1905 - readonly message: string; 1906 - readonly action: string; 1907 - readonly stack: any; 1908 - } 1909 - interface R2ListOptions { 1910 - limit?: number; 1911 - prefix?: string; 1912 - cursor?: string; 1913 - delimiter?: string; 1914 - startAfter?: string; 1915 - include?: ("httpMetadata" | "customMetadata")[]; 1916 - } 1917 - declare abstract class R2Bucket { 1918 - head(key: string): Promise<R2Object | null>; 1919 - get(key: string, options: R2GetOptions & { 1920 - onlyIf: R2Conditional | Headers; 1921 - }): Promise<R2ObjectBody | R2Object | null>; 1922 - get(key: string, options?: R2GetOptions): Promise<R2ObjectBody | null>; 1923 - put(key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOptions & { 1924 - onlyIf: R2Conditional | Headers; 1925 - }): Promise<R2Object | null>; 1926 - put(key: string, value: ReadableStream | ArrayBuffer | ArrayBufferView | string | null | Blob, options?: R2PutOptions): Promise<R2Object>; 1927 - createMultipartUpload(key: string, options?: R2MultipartOptions): Promise<R2MultipartUpload>; 1928 - resumeMultipartUpload(key: string, uploadId: string): R2MultipartUpload; 1929 - delete(keys: string | string[]): Promise<void>; 1930 - list(options?: R2ListOptions): Promise<R2Objects>; 1931 - } 1932 - interface R2MultipartUpload { 1933 - readonly key: string; 1934 - readonly uploadId: string; 1935 - uploadPart(partNumber: number, value: ReadableStream | (ArrayBuffer | ArrayBufferView) | string | Blob, options?: R2UploadPartOptions): Promise<R2UploadedPart>; 1936 - abort(): Promise<void>; 1937 - complete(uploadedParts: R2UploadedPart[]): Promise<R2Object>; 1938 - } 1939 - interface R2UploadedPart { 1940 - partNumber: number; 1941 - etag: string; 1942 - } 1943 - declare abstract class R2Object { 1944 - readonly key: string; 1945 - readonly version: string; 1946 - readonly size: number; 1947 - readonly etag: string; 1948 - readonly httpEtag: string; 1949 - readonly checksums: R2Checksums; 1950 - readonly uploaded: Date; 1951 - readonly httpMetadata?: R2HTTPMetadata; 1952 - readonly customMetadata?: Record<string, string>; 1953 - readonly range?: R2Range; 1954 - readonly storageClass: string; 1955 - readonly ssecKeyMd5?: string; 1956 - writeHttpMetadata(headers: Headers): void; 1957 - } 1958 - interface R2ObjectBody extends R2Object { 1959 - get body(): ReadableStream; 1960 - get bodyUsed(): boolean; 1961 - arrayBuffer(): Promise<ArrayBuffer>; 1962 - bytes(): Promise<Uint8Array>; 1963 - text(): Promise<string>; 1964 - json<T>(): Promise<T>; 1965 - blob(): Promise<Blob>; 1966 - } 1967 - type R2Range = { 1968 - offset: number; 1969 - length?: number; 1970 - } | { 1971 - offset?: number; 1972 - length: number; 1973 - } | { 1974 - suffix: number; 1975 - }; 1976 - interface R2Conditional { 1977 - etagMatches?: string; 1978 - etagDoesNotMatch?: string; 1979 - uploadedBefore?: Date; 1980 - uploadedAfter?: Date; 1981 - secondsGranularity?: boolean; 1982 - } 1983 - interface R2GetOptions { 1984 - onlyIf?: (R2Conditional | Headers); 1985 - range?: (R2Range | Headers); 1986 - ssecKey?: (ArrayBuffer | string); 1987 - } 1988 - interface R2PutOptions { 1989 - onlyIf?: (R2Conditional | Headers); 1990 - httpMetadata?: (R2HTTPMetadata | Headers); 1991 - customMetadata?: Record<string, string>; 1992 - md5?: ((ArrayBuffer | ArrayBufferView) | string); 1993 - sha1?: ((ArrayBuffer | ArrayBufferView) | string); 1994 - sha256?: ((ArrayBuffer | ArrayBufferView) | string); 1995 - sha384?: ((ArrayBuffer | ArrayBufferView) | string); 1996 - sha512?: ((ArrayBuffer | ArrayBufferView) | string); 1997 - storageClass?: string; 1998 - ssecKey?: (ArrayBuffer | string); 1999 - } 2000 - interface R2MultipartOptions { 2001 - httpMetadata?: (R2HTTPMetadata | Headers); 2002 - customMetadata?: Record<string, string>; 2003 - storageClass?: string; 2004 - ssecKey?: (ArrayBuffer | string); 2005 - } 2006 - interface R2Checksums { 2007 - readonly md5?: ArrayBuffer; 2008 - readonly sha1?: ArrayBuffer; 2009 - readonly sha256?: ArrayBuffer; 2010 - readonly sha384?: ArrayBuffer; 2011 - readonly sha512?: ArrayBuffer; 2012 - toJSON(): R2StringChecksums; 2013 - } 2014 - interface R2StringChecksums { 2015 - md5?: string; 2016 - sha1?: string; 2017 - sha256?: string; 2018 - sha384?: string; 2019 - sha512?: string; 2020 - } 2021 - interface R2HTTPMetadata { 2022 - contentType?: string; 2023 - contentLanguage?: string; 2024 - contentDisposition?: string; 2025 - contentEncoding?: string; 2026 - cacheControl?: string; 2027 - cacheExpiry?: Date; 2028 - } 2029 - type R2Objects = { 2030 - objects: R2Object[]; 2031 - delimitedPrefixes: string[]; 2032 - } & ({ 2033 - truncated: true; 2034 - cursor: string; 2035 - } | { 2036 - truncated: false; 2037 - }); 2038 - interface R2UploadPartOptions { 2039 - ssecKey?: (ArrayBuffer | string); 2040 - } 2041 - declare abstract class ScheduledEvent extends ExtendableEvent { 2042 - readonly scheduledTime: number; 2043 - readonly cron: string; 2044 - noRetry(): void; 2045 - } 2046 - interface ScheduledController { 2047 - readonly scheduledTime: number; 2048 - readonly cron: string; 2049 - noRetry(): void; 2050 - } 2051 - interface QueuingStrategy<T = any> { 2052 - highWaterMark?: (number | bigint); 2053 - size?: (chunk: T) => number | bigint; 2054 - } 2055 - interface UnderlyingSink<W = any> { 2056 - type?: string; 2057 - start?: (controller: WritableStreamDefaultController) => void | Promise<void>; 2058 - write?: (chunk: W, controller: WritableStreamDefaultController) => void | Promise<void>; 2059 - abort?: (reason: any) => void | Promise<void>; 2060 - close?: () => void | Promise<void>; 2061 - } 2062 - interface UnderlyingByteSource { 2063 - type: "bytes"; 2064 - autoAllocateChunkSize?: number; 2065 - start?: (controller: ReadableByteStreamController) => void | Promise<void>; 2066 - pull?: (controller: ReadableByteStreamController) => void | Promise<void>; 2067 - cancel?: (reason: any) => void | Promise<void>; 2068 - } 2069 - interface UnderlyingSource<R = any> { 2070 - type?: "" | undefined; 2071 - start?: (controller: ReadableStreamDefaultController<R>) => void | Promise<void>; 2072 - pull?: (controller: ReadableStreamDefaultController<R>) => void | Promise<void>; 2073 - cancel?: (reason: any) => void | Promise<void>; 2074 - expectedLength?: (number | bigint); 2075 - } 2076 - interface Transformer<I = any, O = any> { 2077 - readableType?: string; 2078 - writableType?: string; 2079 - start?: (controller: TransformStreamDefaultController<O>) => void | Promise<void>; 2080 - transform?: (chunk: I, controller: TransformStreamDefaultController<O>) => void | Promise<void>; 2081 - flush?: (controller: TransformStreamDefaultController<O>) => void | Promise<void>; 2082 - cancel?: (reason: any) => void | Promise<void>; 2083 - expectedLength?: number; 2084 - } 2085 - interface StreamPipeOptions { 2086 - /** 2087 - * 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. 2088 - * 2089 - * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. 2090 - * 2091 - * Errors and closures of the source and destination streams propagate as follows: 2092 - * 2093 - * 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. 2094 - * 2095 - * 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. 2096 - * 2097 - * 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. 2098 - * 2099 - * 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. 2100 - * 2101 - * 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. 2102 - */ 2103 - preventClose?: boolean; 2104 - preventAbort?: boolean; 2105 - preventCancel?: boolean; 2106 - signal?: AbortSignal; 2107 - } 2108 - type ReadableStreamReadResult<R = any> = { 2109 - done: false; 2110 - value: R; 2111 - } | { 2112 - done: true; 2113 - value?: undefined; 2114 - }; 2115 - /** 2116 - * The `ReadableStream` interface of the Streams API represents a readable stream of byte data. 2117 - * 2118 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) 2119 - */ 2120 - interface ReadableStream<R = any> { 2121 - /** 2122 - * The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader. 2123 - * 2124 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) 2125 - */ 2126 - get locked(): boolean; 2127 - /** 2128 - * The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled. 2129 - * 2130 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) 2131 - */ 2132 - cancel(reason?: any): Promise<void>; 2133 - /** 2134 - * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. 2135 - * 2136 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) 2137 - */ 2138 - getReader(): ReadableStreamDefaultReader<R>; 2139 - /** 2140 - * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. 2141 - * 2142 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) 2143 - */ 2144 - getReader(options: ReadableStreamGetReaderOptions): ReadableStreamBYOBReader; 2145 - /** 2146 - * 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. 2147 - * 2148 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) 2149 - */ 2150 - pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>; 2151 - /** 2152 - * 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. 2153 - * 2154 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) 2155 - */ 2156 - pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>; 2157 - /** 2158 - * The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances. 2159 - * 2160 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) 2161 - */ 2162 - tee(): [ 2163 - ReadableStream<R>, 2164 - ReadableStream<R> 2165 - ]; 2166 - values(options?: ReadableStreamValuesOptions): AsyncIterableIterator<R>; 2167 - [Symbol.asyncIterator](options?: ReadableStreamValuesOptions): AsyncIterableIterator<R>; 2168 - } 2169 - /** 2170 - * The `ReadableStream` interface of the Streams API represents a readable stream of byte data. 2171 - * 2172 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream) 2173 - */ 2174 - declare const ReadableStream: { 2175 - prototype: ReadableStream; 2176 - new (underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy<Uint8Array>): ReadableStream<Uint8Array>; 2177 - new <R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; 2178 - }; 2179 - /** 2180 - * 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). 2181 - * 2182 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) 2183 - */ 2184 - declare class ReadableStreamDefaultReader<R = any> { 2185 - constructor(stream: ReadableStream); 2186 - get closed(): Promise<void>; 2187 - cancel(reason?: any): Promise<void>; 2188 - /** 2189 - * The **`read()`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue. 2190 - * 2191 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) 2192 - */ 2193 - read(): Promise<ReadableStreamReadResult<R>>; 2194 - /** 2195 - * The **`releaseLock()`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream. 2196 - * 2197 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) 2198 - */ 2199 - releaseLock(): void; 2200 - } 2201 - /** 2202 - * The `ReadableStreamBYOBReader` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source. 2203 - * 2204 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) 2205 - */ 2206 - declare class ReadableStreamBYOBReader { 2207 - constructor(stream: ReadableStream); 2208 - get closed(): Promise<void>; 2209 - cancel(reason?: any): Promise<void>; 2210 - /** 2211 - * 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. 2212 - * 2213 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) 2214 - */ 2215 - read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>; 2216 - /** 2217 - * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream. 2218 - * 2219 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) 2220 - */ 2221 - releaseLock(): void; 2222 - readAtLeast<T extends ArrayBufferView>(minElements: number, view: T): Promise<ReadableStreamReadResult<T>>; 2223 - } 2224 - interface ReadableStreamBYOBReaderReadableStreamBYOBReaderReadOptions { 2225 - min?: number; 2226 - } 2227 - interface ReadableStreamGetReaderOptions { 2228 - /** 2229 - * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. 2230 - * 2231 - * 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. 2232 - */ 2233 - mode: "byob"; 2234 - } 2235 - /** 2236 - * 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). 2237 - * 2238 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) 2239 - */ 2240 - declare abstract class ReadableStreamBYOBRequest { 2241 - /** 2242 - * The **`view`** getter property of the ReadableStreamBYOBRequest interface returns the current view. 2243 - * 2244 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) 2245 - */ 2246 - get view(): Uint8Array | null; 2247 - /** 2248 - * 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. 2249 - * 2250 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) 2251 - */ 2252 - respond(bytesWritten: number): void; 2253 - /** 2254 - * 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. 2255 - * 2256 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) 2257 - */ 2258 - respondWithNewView(view: ArrayBuffer | ArrayBufferView): void; 2259 - get atLeast(): number | null; 2260 - } 2261 - /** 2262 - * The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue. 2263 - * 2264 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) 2265 - */ 2266 - declare abstract class ReadableStreamDefaultController<R = any> { 2267 - /** 2268 - * The **`desiredSize`** read-only property of the required to fill the stream's internal queue. 2269 - * 2270 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) 2271 - */ 2272 - get desiredSize(): number | null; 2273 - /** 2274 - * The **`close()`** method of the ReadableStreamDefaultController interface closes the associated stream. 2275 - * 2276 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) 2277 - */ 2278 - close(): void; 2279 - /** 2280 - * The **`enqueue()`** method of the ```js-nolint enqueue(chunk) ``` - `chunk` - : The chunk to enqueue. 2281 - * 2282 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) 2283 - */ 2284 - enqueue(chunk?: R): void; 2285 - /** 2286 - * The **`error()`** method of the with the associated stream to error. 2287 - * 2288 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) 2289 - */ 2290 - error(reason: any): void; 2291 - } 2292 - /** 2293 - * The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream. 2294 - * 2295 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) 2296 - */ 2297 - declare abstract class ReadableByteStreamController { 2298 - /** 2299 - * The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests. 2300 - * 2301 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) 2302 - */ 2303 - get byobRequest(): ReadableStreamBYOBRequest | null; 2304 - /** 2305 - * 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'. 2306 - * 2307 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) 2308 - */ 2309 - get desiredSize(): number | null; 2310 - /** 2311 - * The **`close()`** method of the ReadableByteStreamController interface closes the associated stream. 2312 - * 2313 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) 2314 - */ 2315 - close(): void; 2316 - /** 2317 - * 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). 2318 - * 2319 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) 2320 - */ 2321 - enqueue(chunk: ArrayBuffer | ArrayBufferView): void; 2322 - /** 2323 - * The **`error()`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason. 2324 - * 2325 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) 2326 - */ 2327 - error(reason: any): void; 2328 - } 2329 - /** 2330 - * The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream's state. 2331 - * 2332 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController) 2333 - */ 2334 - declare abstract class WritableStreamDefaultController { 2335 - /** 2336 - * The read-only **`signal`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller. 2337 - * 2338 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) 2339 - */ 2340 - get signal(): AbortSignal; 2341 - /** 2342 - * The **`error()`** method of the with the associated stream to error. 2343 - * 2344 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) 2345 - */ 2346 - error(reason?: any): void; 2347 - } 2348 - /** 2349 - * The **`TransformStreamDefaultController`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream. 2350 - * 2351 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) 2352 - */ 2353 - declare abstract class TransformStreamDefaultController<O = any> { 2354 - /** 2355 - * The **`desiredSize`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream. 2356 - * 2357 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) 2358 - */ 2359 - get desiredSize(): number | null; 2360 - /** 2361 - * The **`enqueue()`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream. 2362 - * 2363 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) 2364 - */ 2365 - enqueue(chunk?: O): void; 2366 - /** 2367 - * The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream. 2368 - * 2369 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) 2370 - */ 2371 - error(reason: any): void; 2372 - /** 2373 - * The **`terminate()`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream. 2374 - * 2375 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) 2376 - */ 2377 - terminate(): void; 2378 - } 2379 - interface ReadableWritablePair<R = any, W = any> { 2380 - /** 2381 - * 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. 2382 - * 2383 - * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. 2384 - */ 2385 - writable: WritableStream<W>; 2386 - readable: ReadableStream<R>; 2387 - } 2388 - /** 2389 - * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink. 2390 - * 2391 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream) 2392 - */ 2393 - declare class WritableStream<W = any> { 2394 - constructor(underlyingSink?: UnderlyingSink, queuingStrategy?: QueuingStrategy); 2395 - /** 2396 - * The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the `WritableStream` is locked to a writer. 2397 - * 2398 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) 2399 - */ 2400 - get locked(): boolean; 2401 - /** 2402 - * 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. 2403 - * 2404 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) 2405 - */ 2406 - abort(reason?: any): Promise<void>; 2407 - /** 2408 - * The **`close()`** method of the WritableStream interface closes the associated stream. 2409 - * 2410 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) 2411 - */ 2412 - close(): Promise<void>; 2413 - /** 2414 - * The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance. 2415 - * 2416 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) 2417 - */ 2418 - getWriter(): WritableStreamDefaultWriter<W>; 2419 - } 2420 - /** 2421 - * 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. 2422 - * 2423 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter) 2424 - */ 2425 - declare class WritableStreamDefaultWriter<W = any> { 2426 - constructor(stream: WritableStream); 2427 - /** 2428 - * The **`closed`** read-only property of the the stream errors or the writer's lock is released. 2429 - * 2430 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) 2431 - */ 2432 - get closed(): Promise<void>; 2433 - /** 2434 - * 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. 2435 - * 2436 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) 2437 - */ 2438 - get ready(): Promise<void>; 2439 - /** 2440 - * The **`desiredSize`** read-only property of the to fill the stream's internal queue. 2441 - * 2442 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) 2443 - */ 2444 - get desiredSize(): number | null; 2445 - /** 2446 - * 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. 2447 - * 2448 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) 2449 - */ 2450 - abort(reason?: any): Promise<void>; 2451 - /** 2452 - * The **`close()`** method of the stream. 2453 - * 2454 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) 2455 - */ 2456 - close(): Promise<void>; 2457 - /** 2458 - * The **`write()`** method of the operation. 2459 - * 2460 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) 2461 - */ 2462 - write(chunk?: W): Promise<void>; 2463 - /** 2464 - * The **`releaseLock()`** method of the corresponding stream. 2465 - * 2466 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) 2467 - */ 2468 - releaseLock(): void; 2469 - } 2470 - /** 2471 - * The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept. 2472 - * 2473 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) 2474 - */ 2475 - declare class TransformStream<I = any, O = any> { 2476 - constructor(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>); 2477 - /** 2478 - * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this `TransformStream`. 2479 - * 2480 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) 2481 - */ 2482 - get readable(): ReadableStream<O>; 2483 - /** 2484 - * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this `TransformStream`. 2485 - * 2486 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) 2487 - */ 2488 - get writable(): WritableStream<I>; 2489 - } 2490 - declare class FixedLengthStream extends IdentityTransformStream { 2491 - constructor(expectedLength: number | bigint, queuingStrategy?: IdentityTransformStreamQueuingStrategy); 2492 - } 2493 - declare class IdentityTransformStream extends TransformStream<ArrayBuffer | ArrayBufferView, Uint8Array> { 2494 - constructor(queuingStrategy?: IdentityTransformStreamQueuingStrategy); 2495 - } 2496 - interface IdentityTransformStreamQueuingStrategy { 2497 - highWaterMark?: (number | bigint); 2498 - } 2499 - interface ReadableStreamValuesOptions { 2500 - preventCancel?: boolean; 2501 - } 2502 - /** 2503 - * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data. 2504 - * 2505 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) 2506 - */ 2507 - declare class CompressionStream extends TransformStream<ArrayBuffer | ArrayBufferView, Uint8Array> { 2508 - constructor(format: "gzip" | "deflate" | "deflate-raw"); 2509 - } 2510 - /** 2511 - * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data. 2512 - * 2513 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) 2514 - */ 2515 - declare class DecompressionStream extends TransformStream<ArrayBuffer | ArrayBufferView, Uint8Array> { 2516 - constructor(format: "gzip" | "deflate" | "deflate-raw"); 2517 - } 2518 - /** 2519 - * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. 2520 - * 2521 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) 2522 - */ 2523 - declare class TextEncoderStream extends TransformStream<string, Uint8Array> { 2524 - constructor(); 2525 - get encoding(): string; 2526 - } 2527 - /** 2528 - * 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. 2529 - * 2530 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) 2531 - */ 2532 - declare class TextDecoderStream extends TransformStream<ArrayBuffer | ArrayBufferView, string> { 2533 - constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit); 2534 - get encoding(): string; 2535 - get fatal(): boolean; 2536 - get ignoreBOM(): boolean; 2537 - } 2538 - interface TextDecoderStreamTextDecoderStreamInit { 2539 - fatal?: boolean; 2540 - ignoreBOM?: boolean; 2541 - } 2542 - /** 2543 - * The **`ByteLengthQueuingStrategy`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams. 2544 - * 2545 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) 2546 - */ 2547 - declare class ByteLengthQueuingStrategy implements QueuingStrategy<ArrayBufferView> { 2548 - constructor(init: QueuingStrategyInit); 2549 - /** 2550 - * The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied. 2551 - * 2552 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) 2553 - */ 2554 - get highWaterMark(): number; 2555 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ 2556 - get size(): (chunk?: any) => number; 2557 - } 2558 - /** 2559 - * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. 2560 - * 2561 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) 2562 - */ 2563 - declare class CountQueuingStrategy implements QueuingStrategy { 2564 - constructor(init: QueuingStrategyInit); 2565 - /** 2566 - * The read-only **`CountQueuingStrategy.highWaterMark`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied. 2567 - * 2568 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) 2569 - */ 2570 - get highWaterMark(): number; 2571 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ 2572 - get size(): (chunk?: any) => number; 2573 - } 2574 - interface QueuingStrategyInit { 2575 - /** 2576 - * Creates a new ByteLengthQueuingStrategy with the provided high water mark. 2577 - * 2578 - * 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. 2579 - */ 2580 - highWaterMark: number; 2581 - } 2582 - interface ScriptVersion { 2583 - id?: string; 2584 - tag?: string; 2585 - message?: string; 2586 - } 2587 - declare abstract class TailEvent extends ExtendableEvent { 2588 - readonly events: TraceItem[]; 2589 - readonly traces: TraceItem[]; 2590 - } 2591 - interface TraceItem { 2592 - readonly event: (TraceItemFetchEventInfo | TraceItemJsRpcEventInfo | TraceItemScheduledEventInfo | TraceItemAlarmEventInfo | TraceItemQueueEventInfo | TraceItemEmailEventInfo | TraceItemTailEventInfo | TraceItemCustomEventInfo | TraceItemHibernatableWebSocketEventInfo) | null; 2593 - readonly eventTimestamp: number | null; 2594 - readonly logs: TraceLog[]; 2595 - readonly exceptions: TraceException[]; 2596 - readonly diagnosticsChannelEvents: TraceDiagnosticChannelEvent[]; 2597 - readonly scriptName: string | null; 2598 - readonly entrypoint?: string; 2599 - readonly scriptVersion?: ScriptVersion; 2600 - readonly dispatchNamespace?: string; 2601 - readonly scriptTags?: string[]; 2602 - readonly durableObjectId?: string; 2603 - readonly outcome: string; 2604 - readonly executionModel: string; 2605 - readonly truncated: boolean; 2606 - readonly cpuTime: number; 2607 - readonly wallTime: number; 2608 - } 2609 - interface TraceItemAlarmEventInfo { 2610 - readonly scheduledTime: Date; 2611 - } 2612 - interface TraceItemCustomEventInfo { 2613 - } 2614 - interface TraceItemScheduledEventInfo { 2615 - readonly scheduledTime: number; 2616 - readonly cron: string; 2617 - } 2618 - interface TraceItemQueueEventInfo { 2619 - readonly queue: string; 2620 - readonly batchSize: number; 2621 - } 2622 - interface TraceItemEmailEventInfo { 2623 - readonly mailFrom: string; 2624 - readonly rcptTo: string; 2625 - readonly rawSize: number; 2626 - } 2627 - interface TraceItemTailEventInfo { 2628 - readonly consumedEvents: TraceItemTailEventInfoTailItem[]; 2629 - } 2630 - interface TraceItemTailEventInfoTailItem { 2631 - readonly scriptName: string | null; 2632 - } 2633 - interface TraceItemFetchEventInfo { 2634 - readonly response?: TraceItemFetchEventInfoResponse; 2635 - readonly request: TraceItemFetchEventInfoRequest; 2636 - } 2637 - interface TraceItemFetchEventInfoRequest { 2638 - readonly cf?: any; 2639 - readonly headers: Record<string, string>; 2640 - readonly method: string; 2641 - readonly url: string; 2642 - getUnredacted(): TraceItemFetchEventInfoRequest; 2643 - } 2644 - interface TraceItemFetchEventInfoResponse { 2645 - readonly status: number; 2646 - } 2647 - interface TraceItemJsRpcEventInfo { 2648 - readonly rpcMethod: string; 2649 - } 2650 - interface TraceItemHibernatableWebSocketEventInfo { 2651 - readonly getWebSocketEvent: TraceItemHibernatableWebSocketEventInfoMessage | TraceItemHibernatableWebSocketEventInfoClose | TraceItemHibernatableWebSocketEventInfoError; 2652 - } 2653 - interface TraceItemHibernatableWebSocketEventInfoMessage { 2654 - readonly webSocketEventType: string; 2655 - } 2656 - interface TraceItemHibernatableWebSocketEventInfoClose { 2657 - readonly webSocketEventType: string; 2658 - readonly code: number; 2659 - readonly wasClean: boolean; 2660 - } 2661 - interface TraceItemHibernatableWebSocketEventInfoError { 2662 - readonly webSocketEventType: string; 2663 - } 2664 - interface TraceLog { 2665 - readonly timestamp: number; 2666 - readonly level: string; 2667 - readonly message: any; 2668 - } 2669 - interface TraceException { 2670 - readonly timestamp: number; 2671 - readonly message: string; 2672 - readonly name: string; 2673 - readonly stack?: string; 2674 - } 2675 - interface TraceDiagnosticChannelEvent { 2676 - readonly timestamp: number; 2677 - readonly channel: string; 2678 - readonly message: any; 2679 - } 2680 - interface TraceMetrics { 2681 - readonly cpuTime: number; 2682 - readonly wallTime: number; 2683 - } 2684 - interface UnsafeTraceMetrics { 2685 - fromTrace(item: TraceItem): TraceMetrics; 2686 - } 2687 - /** 2688 - * The **`URL`** interface is used to parse, construct, normalize, and encode URL. 2689 - * 2690 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL) 2691 - */ 2692 - declare class URL { 2693 - constructor(url: string | URL, base?: string | URL); 2694 - /** 2695 - * The **`origin`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL. 2696 - * 2697 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) 2698 - */ 2699 - get origin(): string; 2700 - /** 2701 - * The **`href`** property of the URL interface is a string containing the whole URL. 2702 - * 2703 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) 2704 - */ 2705 - get href(): string; 2706 - /** 2707 - * The **`href`** property of the URL interface is a string containing the whole URL. 2708 - * 2709 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) 2710 - */ 2711 - set href(value: string); 2712 - /** 2713 - * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`. 2714 - * 2715 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) 2716 - */ 2717 - get protocol(): string; 2718 - /** 2719 - * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`. 2720 - * 2721 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) 2722 - */ 2723 - set protocol(value: string); 2724 - /** 2725 - * The **`username`** property of the URL interface is a string containing the username component of the URL. 2726 - * 2727 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) 2728 - */ 2729 - get username(): string; 2730 - /** 2731 - * The **`username`** property of the URL interface is a string containing the username component of the URL. 2732 - * 2733 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) 2734 - */ 2735 - set username(value: string); 2736 - /** 2737 - * The **`password`** property of the URL interface is a string containing the password component of the URL. 2738 - * 2739 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) 2740 - */ 2741 - get password(): string; 2742 - /** 2743 - * The **`password`** property of the URL interface is a string containing the password component of the URL. 2744 - * 2745 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) 2746 - */ 2747 - set password(value: string); 2748 - /** 2749 - * 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. 2750 - * 2751 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) 2752 - */ 2753 - get host(): string; 2754 - /** 2755 - * 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. 2756 - * 2757 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) 2758 - */ 2759 - set host(value: string); 2760 - /** 2761 - * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL. 2762 - * 2763 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) 2764 - */ 2765 - get hostname(): string; 2766 - /** 2767 - * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL. 2768 - * 2769 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) 2770 - */ 2771 - set hostname(value: string); 2772 - /** 2773 - * The **`port`** property of the URL interface is a string containing the port number of the URL. 2774 - * 2775 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) 2776 - */ 2777 - get port(): string; 2778 - /** 2779 - * The **`port`** property of the URL interface is a string containing the port number of the URL. 2780 - * 2781 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) 2782 - */ 2783 - set port(value: string); 2784 - /** 2785 - * The **`pathname`** property of the URL interface represents a location in a hierarchical structure. 2786 - * 2787 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) 2788 - */ 2789 - get pathname(): string; 2790 - /** 2791 - * The **`pathname`** property of the URL interface represents a location in a hierarchical structure. 2792 - * 2793 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) 2794 - */ 2795 - set pathname(value: string); 2796 - /** 2797 - * 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. 2798 - * 2799 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) 2800 - */ 2801 - get search(): string; 2802 - /** 2803 - * 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. 2804 - * 2805 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) 2806 - */ 2807 - set search(value: string); 2808 - /** 2809 - * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL. 2810 - * 2811 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) 2812 - */ 2813 - get hash(): string; 2814 - /** 2815 - * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL. 2816 - * 2817 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) 2818 - */ 2819 - set hash(value: string); 2820 - /** 2821 - * The **`searchParams`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL. 2822 - * 2823 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) 2824 - */ 2825 - get searchParams(): URLSearchParams; 2826 - /** 2827 - * 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. 2828 - * 2829 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) 2830 - */ 2831 - toJSON(): string; 2832 - /*function toString() { [native code] }*/ 2833 - toString(): string; 2834 - /** 2835 - * 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. 2836 - * 2837 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) 2838 - */ 2839 - static canParse(url: string, base?: string): boolean; 2840 - /** 2841 - * The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters. 2842 - * 2843 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) 2844 - */ 2845 - static parse(url: string, base?: string): URL | null; 2846 - /** 2847 - * The **`createObjectURL()`** static method of the URL interface creates a string containing a URL representing the object given in the parameter. 2848 - * 2849 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) 2850 - */ 2851 - static createObjectURL(object: File | Blob): string; 2852 - /** 2853 - * 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. 2854 - * 2855 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) 2856 - */ 2857 - static revokeObjectURL(object_url: string): void; 2858 - } 2859 - /** 2860 - * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL. 2861 - * 2862 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) 2863 - */ 2864 - declare class URLSearchParams { 2865 - constructor(init?: (Iterable<Iterable<string>> | Record<string, string> | string)); 2866 - /** 2867 - * The **`size`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries. 2868 - * 2869 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) 2870 - */ 2871 - get size(): number; 2872 - /** 2873 - * The **`append()`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter. 2874 - * 2875 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append) 2876 - */ 2877 - append(name: string, value: string): void; 2878 - /** 2879 - * The **`delete()`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters. 2880 - * 2881 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete) 2882 - */ 2883 - delete(name: string, value?: string): void; 2884 - /** 2885 - * The **`get()`** method of the URLSearchParams interface returns the first value associated to the given search parameter. 2886 - * 2887 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get) 2888 - */ 2889 - get(name: string): string | null; 2890 - /** 2891 - * The **`getAll()`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array. 2892 - * 2893 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll) 2894 - */ 2895 - getAll(name: string): string[]; 2896 - /** 2897 - * The **`has()`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters. 2898 - * 2899 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has) 2900 - */ 2901 - has(name: string, value?: string): boolean; 2902 - /** 2903 - * The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value. 2904 - * 2905 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set) 2906 - */ 2907 - set(name: string, value: string): void; 2908 - /** 2909 - * The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns `undefined`. 2910 - * 2911 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) 2912 - */ 2913 - sort(): void; 2914 - /* Returns an array of key, value pairs for every entry in the search params. */ 2915 - entries(): IterableIterator<[ 2916 - key: string, 2917 - value: string 2918 - ]>; 2919 - /* Returns a list of keys in the search params. */ 2920 - keys(): IterableIterator<string>; 2921 - /* Returns a list of values in the search params. */ 2922 - values(): IterableIterator<string>; 2923 - forEach<This = unknown>(callback: (this: This, value: string, key: string, parent: URLSearchParams) => void, thisArg?: This): void; 2924 - /*function toString() { [native code] }*/ 2925 - toString(): string; 2926 - [Symbol.iterator](): IterableIterator<[ 2927 - key: string, 2928 - value: string 2929 - ]>; 2930 - } 2931 - declare class URLPattern { 2932 - constructor(input?: (string | URLPatternInit), baseURL?: (string | URLPatternOptions), patternOptions?: URLPatternOptions); 2933 - get protocol(): string; 2934 - get username(): string; 2935 - get password(): string; 2936 - get hostname(): string; 2937 - get port(): string; 2938 - get pathname(): string; 2939 - get search(): string; 2940 - get hash(): string; 2941 - get hasRegExpGroups(): boolean; 2942 - test(input?: (string | URLPatternInit), baseURL?: string): boolean; 2943 - exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null; 2944 - } 2945 - interface URLPatternInit { 2946 - protocol?: string; 2947 - username?: string; 2948 - password?: string; 2949 - hostname?: string; 2950 - port?: string; 2951 - pathname?: string; 2952 - search?: string; 2953 - hash?: string; 2954 - baseURL?: string; 2955 - } 2956 - interface URLPatternComponentResult { 2957 - input: string; 2958 - groups: Record<string, string>; 2959 - } 2960 - interface URLPatternResult { 2961 - inputs: (string | URLPatternInit)[]; 2962 - protocol: URLPatternComponentResult; 2963 - username: URLPatternComponentResult; 2964 - password: URLPatternComponentResult; 2965 - hostname: URLPatternComponentResult; 2966 - port: URLPatternComponentResult; 2967 - pathname: URLPatternComponentResult; 2968 - search: URLPatternComponentResult; 2969 - hash: URLPatternComponentResult; 2970 - } 2971 - interface URLPatternOptions { 2972 - ignoreCase?: boolean; 2973 - } 2974 - /** 2975 - * A `CloseEvent` is sent to clients using WebSockets when the connection is closed. 2976 - * 2977 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) 2978 - */ 2979 - declare class CloseEvent extends Event { 2980 - constructor(type: string, initializer?: CloseEventInit); 2981 - /** 2982 - * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed. 2983 - * 2984 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) 2985 - */ 2986 - readonly code: number; 2987 - /** 2988 - * 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. 2989 - * 2990 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) 2991 - */ 2992 - readonly reason: string; 2993 - /** 2994 - * The **`wasClean`** read-only property of the CloseEvent interface returns `true` if the connection closed cleanly. 2995 - * 2996 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) 2997 - */ 2998 - readonly wasClean: boolean; 2999 - } 3000 - interface CloseEventInit { 3001 - code?: number; 3002 - reason?: string; 3003 - wasClean?: boolean; 3004 - } 3005 - type WebSocketEventMap = { 3006 - close: CloseEvent; 3007 - message: MessageEvent; 3008 - open: Event; 3009 - error: ErrorEvent; 3010 - }; 3011 - /** 3012 - * 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. 3013 - * 3014 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket) 3015 - */ 3016 - declare var WebSocket: { 3017 - prototype: WebSocket; 3018 - new (url: string, protocols?: (string[] | string)): WebSocket; 3019 - readonly READY_STATE_CONNECTING: number; 3020 - readonly CONNECTING: number; 3021 - readonly READY_STATE_OPEN: number; 3022 - readonly OPEN: number; 3023 - readonly READY_STATE_CLOSING: number; 3024 - readonly CLOSING: number; 3025 - readonly READY_STATE_CLOSED: number; 3026 - readonly CLOSED: number; 3027 - }; 3028 - /** 3029 - * 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. 3030 - * 3031 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket) 3032 - */ 3033 - interface WebSocket extends EventTarget<WebSocketEventMap> { 3034 - accept(): void; 3035 - /** 3036 - * 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. 3037 - * 3038 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send) 3039 - */ 3040 - send(message: (ArrayBuffer | ArrayBufferView) | string): void; 3041 - /** 3042 - * The **`WebSocket.close()`** method closes the already `CLOSED`, this method does nothing. 3043 - * 3044 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close) 3045 - */ 3046 - close(code?: number, reason?: string): void; 3047 - serializeAttachment(attachment: any): void; 3048 - deserializeAttachment(): any | null; 3049 - /** 3050 - * The **`WebSocket.readyState`** read-only property returns the current state of the WebSocket connection. 3051 - * 3052 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState) 3053 - */ 3054 - readyState: number; 3055 - /** 3056 - * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor. 3057 - * 3058 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url) 3059 - */ 3060 - url: string | null; 3061 - /** 3062 - * 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. 3063 - * 3064 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol) 3065 - */ 3066 - protocol: string | null; 3067 - /** 3068 - * The **`WebSocket.extensions`** read-only property returns the extensions selected by the server. 3069 - * 3070 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions) 3071 - */ 3072 - extensions: string | null; 3073 - } 3074 - declare const WebSocketPair: { 3075 - new (): { 3076 - 0: WebSocket; 3077 - 1: WebSocket; 3078 - }; 3079 - }; 3080 - interface SqlStorage { 3081 - exec<T extends Record<string, SqlStorageValue>>(query: string, ...bindings: any[]): SqlStorageCursor<T>; 3082 - get databaseSize(): number; 3083 - Cursor: typeof SqlStorageCursor; 3084 - Statement: typeof SqlStorageStatement; 3085 - } 3086 - declare abstract class SqlStorageStatement { 3087 - } 3088 - type SqlStorageValue = ArrayBuffer | string | number | null; 3089 - declare abstract class SqlStorageCursor<T extends Record<string, SqlStorageValue>> { 3090 - next(): { 3091 - done?: false; 3092 - value: T; 3093 - } | { 3094 - done: true; 3095 - value?: never; 3096 - }; 3097 - toArray(): T[]; 3098 - one(): T; 3099 - raw<U extends SqlStorageValue[]>(): IterableIterator<U>; 3100 - columnNames: string[]; 3101 - get rowsRead(): number; 3102 - get rowsWritten(): number; 3103 - [Symbol.iterator](): IterableIterator<T>; 3104 - } 3105 - interface Socket { 3106 - get readable(): ReadableStream; 3107 - get writable(): WritableStream; 3108 - get closed(): Promise<void>; 3109 - get opened(): Promise<SocketInfo>; 3110 - get upgraded(): boolean; 3111 - get secureTransport(): "on" | "off" | "starttls"; 3112 - close(): Promise<void>; 3113 - startTls(options?: TlsOptions): Socket; 3114 - } 3115 - interface SocketOptions { 3116 - secureTransport?: string; 3117 - allowHalfOpen: boolean; 3118 - highWaterMark?: (number | bigint); 3119 - } 3120 - interface SocketAddress { 3121 - hostname: string; 3122 - port: number; 3123 - } 3124 - interface TlsOptions { 3125 - expectedServerHostname?: string; 3126 - } 3127 - interface SocketInfo { 3128 - remoteAddress?: string; 3129 - localAddress?: string; 3130 - } 3131 - /** 3132 - * The **`EventSource`** interface is web content's interface to server-sent events. 3133 - * 3134 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) 3135 - */ 3136 - declare class EventSource extends EventTarget { 3137 - constructor(url: string, init?: EventSourceEventSourceInit); 3138 - /** 3139 - * The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the ```js-nolint close() ``` None. 3140 - * 3141 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) 3142 - */ 3143 - close(): void; 3144 - /** 3145 - * The **`url`** read-only property of the URL of the source. 3146 - * 3147 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) 3148 - */ 3149 - get url(): string; 3150 - /** 3151 - * The **`withCredentials`** read-only property of the the `EventSource` object was instantiated with CORS credentials set. 3152 - * 3153 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) 3154 - */ 3155 - get withCredentials(): boolean; 3156 - /** 3157 - * The **`readyState`** read-only property of the connection. 3158 - * 3159 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) 3160 - */ 3161 - get readyState(): number; 3162 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ 3163 - get onopen(): any | null; 3164 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ 3165 - set onopen(value: any | null); 3166 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ 3167 - get onmessage(): any | null; 3168 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ 3169 - set onmessage(value: any | null); 3170 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ 3171 - get onerror(): any | null; 3172 - /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ 3173 - set onerror(value: any | null); 3174 - static readonly CONNECTING: number; 3175 - static readonly OPEN: number; 3176 - static readonly CLOSED: number; 3177 - static from(stream: ReadableStream): EventSource; 3178 - } 3179 - interface EventSourceEventSourceInit { 3180 - withCredentials?: boolean; 3181 - fetcher?: Fetcher; 3182 - } 3183 - interface Container { 3184 - get running(): boolean; 3185 - start(options?: ContainerStartupOptions): void; 3186 - monitor(): Promise<void>; 3187 - destroy(error?: any): Promise<void>; 3188 - signal(signo: number): void; 3189 - getTcpPort(port: number): Fetcher; 3190 - setInactivityTimeout(durationMs: number | bigint): Promise<void>; 3191 - } 3192 - interface ContainerStartupOptions { 3193 - entrypoint?: string[]; 3194 - enableInternet: boolean; 3195 - env?: Record<string, string>; 3196 - hardTimeout?: (number | bigint); 3197 - } 3198 - /** 3199 - * 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. 3200 - * 3201 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) 3202 - */ 3203 - declare abstract class MessagePort extends EventTarget { 3204 - /** 3205 - * The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts. 3206 - * 3207 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage) 3208 - */ 3209 - postMessage(data?: any, options?: (any[] | MessagePortPostMessageOptions)): void; 3210 - /** 3211 - * The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active. 3212 - * 3213 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close) 3214 - */ 3215 - close(): void; 3216 - /** 3217 - * The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port. 3218 - * 3219 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start) 3220 - */ 3221 - start(): void; 3222 - get onmessage(): any | null; 3223 - set onmessage(value: any | null); 3224 - } 3225 - /** 3226 - * 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. 3227 - * 3228 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel) 3229 - */ 3230 - declare class MessageChannel { 3231 - constructor(); 3232 - /** 3233 - * The **`port1`** read-only property of the the port attached to the context that originated the channel. 3234 - * 3235 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1) 3236 - */ 3237 - readonly port1: MessagePort; 3238 - /** 3239 - * 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. 3240 - * 3241 - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2) 3242 - */ 3243 - readonly port2: MessagePort; 3244 - } 3245 - interface MessagePortPostMessageOptions { 3246 - transfer?: any[]; 3247 - } 3248 - 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; 3249 - type LoopbackServiceStub<T extends Rpc.WorkerEntrypointBranded | undefined = undefined> = Fetcher<T> & (T extends CloudflareWorkersModule.WorkerEntrypoint<any, infer Props> ? (opts: { 3250 - props?: Props; 3251 - }) => Fetcher<T> : (opts: { 3252 - props?: any; 3253 - }) => Fetcher<T>); 3254 - type LoopbackDurableObjectClass<T extends Rpc.DurableObjectBranded | undefined = undefined> = DurableObjectClass<T> & (T extends CloudflareWorkersModule.DurableObject<any, infer Props> ? (opts: { 3255 - props?: Props; 3256 - }) => DurableObjectClass<T> : (opts: { 3257 - props?: any; 3258 - }) => DurableObjectClass<T>); 3259 - interface SyncKvStorage { 3260 - get<T = unknown>(key: string): T | undefined; 3261 - list<T = unknown>(options?: SyncKvListOptions): Iterable<[ 3262 - string, 3263 - T 3264 - ]>; 3265 - put<T>(key: string, value: T): void; 3266 - delete(key: string): boolean; 3267 - } 3268 - interface SyncKvListOptions { 3269 - start?: string; 3270 - startAfter?: string; 3271 - end?: string; 3272 - prefix?: string; 3273 - reverse?: boolean; 3274 - limit?: number; 3275 - } 3276 - interface WorkerStub { 3277 - getEntrypoint<T extends Rpc.WorkerEntrypointBranded | undefined>(name?: string, options?: WorkerStubEntrypointOptions): Fetcher<T>; 3278 - } 3279 - interface WorkerStubEntrypointOptions { 3280 - props?: any; 3281 - } 3282 - interface WorkerLoader { 3283 - get(name: string, getCode: () => WorkerLoaderWorkerCode | Promise<WorkerLoaderWorkerCode>): WorkerStub; 3284 - } 3285 - interface WorkerLoaderModule { 3286 - js?: string; 3287 - cjs?: string; 3288 - text?: string; 3289 - data?: ArrayBuffer; 3290 - json?: any; 3291 - py?: string; 3292 - wasm?: ArrayBuffer; 3293 - } 3294 - interface WorkerLoaderWorkerCode { 3295 - compatibilityDate: string; 3296 - compatibilityFlags?: string[]; 3297 - allowExperimental?: boolean; 3298 - mainModule: string; 3299 - modules: Record<string, WorkerLoaderModule | string>; 3300 - env?: any; 3301 - globalOutbound?: (Fetcher | null); 3302 - tails?: Fetcher[]; 3303 - streamingTails?: Fetcher[]; 3304 - } 3305 - /** 3306 - * The Workers runtime supports a subset of the Performance API, used to measure timing and performance, 3307 - * as well as timing of subrequests and other operations. 3308 - * 3309 - * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/) 3310 - */ 3311 - declare abstract class Performance { 3312 - /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancetimeorigin) */ 3313 - get timeOrigin(): number; 3314 - /* [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/performance/#performancenow) */ 3315 - now(): number; 3316 - } 3317 - type AiImageClassificationInput = { 3318 - image: number[]; 3319 - }; 3320 - type AiImageClassificationOutput = { 3321 - score?: number; 3322 - label?: string; 3323 - }[]; 3324 - declare abstract class BaseAiImageClassification { 3325 - inputs: AiImageClassificationInput; 3326 - postProcessedOutputs: AiImageClassificationOutput; 3327 - } 3328 - type AiImageToTextInput = { 3329 - image: number[]; 3330 - prompt?: string; 3331 - max_tokens?: number; 3332 - temperature?: number; 3333 - top_p?: number; 3334 - top_k?: number; 3335 - seed?: number; 3336 - repetition_penalty?: number; 3337 - frequency_penalty?: number; 3338 - presence_penalty?: number; 3339 - raw?: boolean; 3340 - messages?: RoleScopedChatInput[]; 3341 - }; 3342 - type AiImageToTextOutput = { 3343 - description: string; 3344 - }; 3345 - declare abstract class BaseAiImageToText { 3346 - inputs: AiImageToTextInput; 3347 - postProcessedOutputs: AiImageToTextOutput; 3348 - } 3349 - type AiImageTextToTextInput = { 3350 - image: string; 3351 - prompt?: string; 3352 - max_tokens?: number; 3353 - temperature?: number; 3354 - ignore_eos?: boolean; 3355 - top_p?: number; 3356 - top_k?: number; 3357 - seed?: number; 3358 - repetition_penalty?: number; 3359 - frequency_penalty?: number; 3360 - presence_penalty?: number; 3361 - raw?: boolean; 3362 - messages?: RoleScopedChatInput[]; 3363 - }; 3364 - type AiImageTextToTextOutput = { 3365 - description: string; 3366 - }; 3367 - declare abstract class BaseAiImageTextToText { 3368 - inputs: AiImageTextToTextInput; 3369 - postProcessedOutputs: AiImageTextToTextOutput; 3370 - } 3371 - type AiMultimodalEmbeddingsInput = { 3372 - image: string; 3373 - text: string[]; 3374 - }; 3375 - type AiIMultimodalEmbeddingsOutput = { 3376 - data: number[][]; 3377 - shape: number[]; 3378 - }; 3379 - declare abstract class BaseAiMultimodalEmbeddings { 3380 - inputs: AiImageTextToTextInput; 3381 - postProcessedOutputs: AiImageTextToTextOutput; 3382 - } 3383 - type AiObjectDetectionInput = { 3384 - image: number[]; 3385 - }; 3386 - type AiObjectDetectionOutput = { 3387 - score?: number; 3388 - label?: string; 3389 - }[]; 3390 - declare abstract class BaseAiObjectDetection { 3391 - inputs: AiObjectDetectionInput; 3392 - postProcessedOutputs: AiObjectDetectionOutput; 3393 - } 3394 - type AiSentenceSimilarityInput = { 3395 - source: string; 3396 - sentences: string[]; 3397 - }; 3398 - type AiSentenceSimilarityOutput = number[]; 3399 - declare abstract class BaseAiSentenceSimilarity { 3400 - inputs: AiSentenceSimilarityInput; 3401 - postProcessedOutputs: AiSentenceSimilarityOutput; 3402 - } 3403 - type AiAutomaticSpeechRecognitionInput = { 3404 - audio: number[]; 3405 - }; 3406 - type AiAutomaticSpeechRecognitionOutput = { 3407 - text?: string; 3408 - words?: { 3409 - word: string; 3410 - start: number; 3411 - end: number; 3412 - }[]; 3413 - vtt?: string; 3414 - }; 3415 - declare abstract class BaseAiAutomaticSpeechRecognition { 3416 - inputs: AiAutomaticSpeechRecognitionInput; 3417 - postProcessedOutputs: AiAutomaticSpeechRecognitionOutput; 3418 - } 3419 - type AiSummarizationInput = { 3420 - input_text: string; 3421 - max_length?: number; 3422 - }; 3423 - type AiSummarizationOutput = { 3424 - summary: string; 3425 - }; 3426 - declare abstract class BaseAiSummarization { 3427 - inputs: AiSummarizationInput; 3428 - postProcessedOutputs: AiSummarizationOutput; 3429 - } 3430 - type AiTextClassificationInput = { 3431 - text: string; 3432 - }; 3433 - type AiTextClassificationOutput = { 3434 - score?: number; 3435 - label?: string; 3436 - }[]; 3437 - declare abstract class BaseAiTextClassification { 3438 - inputs: AiTextClassificationInput; 3439 - postProcessedOutputs: AiTextClassificationOutput; 3440 - } 3441 - type AiTextEmbeddingsInput = { 3442 - text: string | string[]; 3443 - }; 3444 - type AiTextEmbeddingsOutput = { 3445 - shape: number[]; 3446 - data: number[][]; 3447 - }; 3448 - declare abstract class BaseAiTextEmbeddings { 3449 - inputs: AiTextEmbeddingsInput; 3450 - postProcessedOutputs: AiTextEmbeddingsOutput; 3451 - } 3452 - type RoleScopedChatInput = { 3453 - role: "user" | "assistant" | "system" | "tool" | (string & NonNullable<unknown>); 3454 - content: string; 3455 - name?: string; 3456 - }; 3457 - type AiTextGenerationToolLegacyInput = { 3458 - name: string; 3459 - description: string; 3460 - parameters?: { 3461 - type: "object" | (string & NonNullable<unknown>); 3462 - properties: { 3463 - [key: string]: { 3464 - type: string; 3465 - description?: string; 3466 - }; 3467 - }; 3468 - required: string[]; 3469 - }; 3470 - }; 3471 - type AiTextGenerationToolInput = { 3472 - type: "function" | (string & NonNullable<unknown>); 3473 - function: { 3474 - name: string; 3475 - description: string; 3476 - parameters?: { 3477 - type: "object" | (string & NonNullable<unknown>); 3478 - properties: { 3479 - [key: string]: { 3480 - type: string; 3481 - description?: string; 3482 - }; 3483 - }; 3484 - required: string[]; 3485 - }; 3486 - }; 3487 - }; 3488 - type AiTextGenerationFunctionsInput = { 3489 - name: string; 3490 - code: string; 3491 - }; 3492 - type AiTextGenerationResponseFormat = { 3493 - type: string; 3494 - json_schema?: any; 3495 - }; 3496 - type AiTextGenerationInput = { 3497 - prompt?: string; 3498 - raw?: boolean; 3499 - stream?: boolean; 3500 - max_tokens?: number; 3501 - temperature?: number; 3502 - top_p?: number; 3503 - top_k?: number; 3504 - seed?: number; 3505 - repetition_penalty?: number; 3506 - frequency_penalty?: number; 3507 - presence_penalty?: number; 3508 - messages?: RoleScopedChatInput[]; 3509 - response_format?: AiTextGenerationResponseFormat; 3510 - tools?: AiTextGenerationToolInput[] | AiTextGenerationToolLegacyInput[] | (object & NonNullable<unknown>); 3511 - functions?: AiTextGenerationFunctionsInput[]; 3512 - }; 3513 - type AiTextGenerationToolLegacyOutput = { 3514 - name: string; 3515 - arguments: unknown; 3516 - }; 3517 - type AiTextGenerationToolOutput = { 3518 - id: string; 3519 - type: "function"; 3520 - function: { 3521 - name: string; 3522 - arguments: string; 3523 - }; 3524 - }; 3525 - type UsageTags = { 3526 - prompt_tokens: number; 3527 - completion_tokens: number; 3528 - total_tokens: number; 3529 - }; 3530 - type AiTextGenerationOutput = { 3531 - response?: string; 3532 - tool_calls?: AiTextGenerationToolLegacyOutput[] & AiTextGenerationToolOutput[]; 3533 - usage?: UsageTags; 3534 - }; 3535 - declare abstract class BaseAiTextGeneration { 3536 - inputs: AiTextGenerationInput; 3537 - postProcessedOutputs: AiTextGenerationOutput; 3538 - } 3539 - type AiTextToSpeechInput = { 3540 - prompt: string; 3541 - lang?: string; 3542 - }; 3543 - type AiTextToSpeechOutput = Uint8Array | { 3544 - audio: string; 3545 - }; 3546 - declare abstract class BaseAiTextToSpeech { 3547 - inputs: AiTextToSpeechInput; 3548 - postProcessedOutputs: AiTextToSpeechOutput; 3549 - } 3550 - type AiTextToImageInput = { 3551 - prompt: string; 3552 - negative_prompt?: string; 3553 - height?: number; 3554 - width?: number; 3555 - image?: number[]; 3556 - image_b64?: string; 3557 - mask?: number[]; 3558 - num_steps?: number; 3559 - strength?: number; 3560 - guidance?: number; 3561 - seed?: number; 3562 - }; 3563 - type AiTextToImageOutput = ReadableStream<Uint8Array>; 3564 - declare abstract class BaseAiTextToImage { 3565 - inputs: AiTextToImageInput; 3566 - postProcessedOutputs: AiTextToImageOutput; 3567 - } 3568 - type AiTranslationInput = { 3569 - text: string; 3570 - target_lang: string; 3571 - source_lang?: string; 3572 - }; 3573 - type AiTranslationOutput = { 3574 - translated_text?: string; 3575 - }; 3576 - declare abstract class BaseAiTranslation { 3577 - inputs: AiTranslationInput; 3578 - postProcessedOutputs: AiTranslationOutput; 3579 - } 3580 - type Ai_Cf_Baai_Bge_Base_En_V1_5_Input = { 3581 - text: string | string[]; 3582 - /** 3583 - * 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. 3584 - */ 3585 - pooling?: "mean" | "cls"; 3586 - } | { 3587 - /** 3588 - * Batch of the embeddings requests to run using async-queue 3589 - */ 3590 - requests: { 3591 - text: string | string[]; 3592 - /** 3593 - * 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. 3594 - */ 3595 - pooling?: "mean" | "cls"; 3596 - }[]; 3597 - }; 3598 - type Ai_Cf_Baai_Bge_Base_En_V1_5_Output = { 3599 - shape?: number[]; 3600 - /** 3601 - * Embeddings of the requested text values 3602 - */ 3603 - data?: number[][]; 3604 - /** 3605 - * The pooling method used in the embedding process. 3606 - */ 3607 - pooling?: "mean" | "cls"; 3608 - } | AsyncResponse; 3609 - interface AsyncResponse { 3610 - /** 3611 - * The async request id that can be used to obtain the results. 3612 - */ 3613 - request_id?: string; 3614 - } 3615 - declare abstract class Base_Ai_Cf_Baai_Bge_Base_En_V1_5 { 3616 - inputs: Ai_Cf_Baai_Bge_Base_En_V1_5_Input; 3617 - postProcessedOutputs: Ai_Cf_Baai_Bge_Base_En_V1_5_Output; 3618 - } 3619 - type Ai_Cf_Openai_Whisper_Input = string | { 3620 - /** 3621 - * An array of integers that represent the audio data constrained to 8-bit unsigned integer values 3622 - */ 3623 - audio: number[]; 3624 - }; 3625 - interface Ai_Cf_Openai_Whisper_Output { 3626 - /** 3627 - * The transcription 3628 - */ 3629 - text: string; 3630 - word_count?: number; 3631 - words?: { 3632 - word?: string; 3633 - /** 3634 - * The second this word begins in the recording 3635 - */ 3636 - start?: number; 3637 - /** 3638 - * The ending second when the word completes 3639 - */ 3640 - end?: number; 3641 - }[]; 3642 - vtt?: string; 3643 - } 3644 - declare abstract class Base_Ai_Cf_Openai_Whisper { 3645 - inputs: Ai_Cf_Openai_Whisper_Input; 3646 - postProcessedOutputs: Ai_Cf_Openai_Whisper_Output; 3647 - } 3648 - type Ai_Cf_Meta_M2M100_1_2B_Input = { 3649 - /** 3650 - * The text to be translated 3651 - */ 3652 - text: string; 3653 - /** 3654 - * The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified 3655 - */ 3656 - source_lang?: string; 3657 - /** 3658 - * The language code to translate the text into (e.g., 'es' for Spanish) 3659 - */ 3660 - target_lang: string; 3661 - } | { 3662 - /** 3663 - * Batch of the embeddings requests to run using async-queue 3664 - */ 3665 - requests: { 3666 - /** 3667 - * The text to be translated 3668 - */ 3669 - text: string; 3670 - /** 3671 - * The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified 3672 - */ 3673 - source_lang?: string; 3674 - /** 3675 - * The language code to translate the text into (e.g., 'es' for Spanish) 3676 - */ 3677 - target_lang: string; 3678 - }[]; 3679 - }; 3680 - type Ai_Cf_Meta_M2M100_1_2B_Output = { 3681 - /** 3682 - * The translated text in the target language 3683 - */ 3684 - translated_text?: string; 3685 - } | AsyncResponse; 3686 - declare abstract class Base_Ai_Cf_Meta_M2M100_1_2B { 3687 - inputs: Ai_Cf_Meta_M2M100_1_2B_Input; 3688 - postProcessedOutputs: Ai_Cf_Meta_M2M100_1_2B_Output; 3689 - } 3690 - type Ai_Cf_Baai_Bge_Small_En_V1_5_Input = { 3691 - text: string | string[]; 3692 - /** 3693 - * 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. 3694 - */ 3695 - pooling?: "mean" | "cls"; 3696 - } | { 3697 - /** 3698 - * Batch of the embeddings requests to run using async-queue 3699 - */ 3700 - requests: { 3701 - text: string | string[]; 3702 - /** 3703 - * 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. 3704 - */ 3705 - pooling?: "mean" | "cls"; 3706 - }[]; 3707 - }; 3708 - type Ai_Cf_Baai_Bge_Small_En_V1_5_Output = { 3709 - shape?: number[]; 3710 - /** 3711 - * Embeddings of the requested text values 3712 - */ 3713 - data?: number[][]; 3714 - /** 3715 - * The pooling method used in the embedding process. 3716 - */ 3717 - pooling?: "mean" | "cls"; 3718 - } | AsyncResponse; 3719 - declare abstract class Base_Ai_Cf_Baai_Bge_Small_En_V1_5 { 3720 - inputs: Ai_Cf_Baai_Bge_Small_En_V1_5_Input; 3721 - postProcessedOutputs: Ai_Cf_Baai_Bge_Small_En_V1_5_Output; 3722 - } 3723 - type Ai_Cf_Baai_Bge_Large_En_V1_5_Input = { 3724 - text: string | string[]; 3725 - /** 3726 - * 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. 3727 - */ 3728 - pooling?: "mean" | "cls"; 3729 - } | { 3730 - /** 3731 - * Batch of the embeddings requests to run using async-queue 3732 - */ 3733 - requests: { 3734 - text: string | string[]; 3735 - /** 3736 - * 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. 3737 - */ 3738 - pooling?: "mean" | "cls"; 3739 - }[]; 3740 - }; 3741 - type Ai_Cf_Baai_Bge_Large_En_V1_5_Output = { 3742 - shape?: number[]; 3743 - /** 3744 - * Embeddings of the requested text values 3745 - */ 3746 - data?: number[][]; 3747 - /** 3748 - * The pooling method used in the embedding process. 3749 - */ 3750 - pooling?: "mean" | "cls"; 3751 - } | AsyncResponse; 3752 - declare abstract class Base_Ai_Cf_Baai_Bge_Large_En_V1_5 { 3753 - inputs: Ai_Cf_Baai_Bge_Large_En_V1_5_Input; 3754 - postProcessedOutputs: Ai_Cf_Baai_Bge_Large_En_V1_5_Output; 3755 - } 3756 - type Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input = string | { 3757 - /** 3758 - * The input text prompt for the model to generate a response. 3759 - */ 3760 - prompt?: string; 3761 - /** 3762 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 3763 - */ 3764 - raw?: boolean; 3765 - /** 3766 - * 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. 3767 - */ 3768 - top_p?: number; 3769 - /** 3770 - * 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. 3771 - */ 3772 - top_k?: number; 3773 - /** 3774 - * Random seed for reproducibility of the generation. 3775 - */ 3776 - seed?: number; 3777 - /** 3778 - * Penalty for repeated tokens; higher values discourage repetition. 3779 - */ 3780 - repetition_penalty?: number; 3781 - /** 3782 - * Decreases the likelihood of the model repeating the same lines verbatim. 3783 - */ 3784 - frequency_penalty?: number; 3785 - /** 3786 - * Increases the likelihood of the model introducing new topics. 3787 - */ 3788 - presence_penalty?: number; 3789 - image: number[] | (string & NonNullable<unknown>); 3790 - /** 3791 - * The maximum number of tokens to generate in the response. 3792 - */ 3793 - max_tokens?: number; 3794 - }; 3795 - interface Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output { 3796 - description?: string; 3797 - } 3798 - declare abstract class Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M { 3799 - inputs: Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input; 3800 - postProcessedOutputs: Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output; 3801 - } 3802 - type Ai_Cf_Openai_Whisper_Tiny_En_Input = string | { 3803 - /** 3804 - * An array of integers that represent the audio data constrained to 8-bit unsigned integer values 3805 - */ 3806 - audio: number[]; 3807 - }; 3808 - interface Ai_Cf_Openai_Whisper_Tiny_En_Output { 3809 - /** 3810 - * The transcription 3811 - */ 3812 - text: string; 3813 - word_count?: number; 3814 - words?: { 3815 - word?: string; 3816 - /** 3817 - * The second this word begins in the recording 3818 - */ 3819 - start?: number; 3820 - /** 3821 - * The ending second when the word completes 3822 - */ 3823 - end?: number; 3824 - }[]; 3825 - vtt?: string; 3826 - } 3827 - declare abstract class Base_Ai_Cf_Openai_Whisper_Tiny_En { 3828 - inputs: Ai_Cf_Openai_Whisper_Tiny_En_Input; 3829 - postProcessedOutputs: Ai_Cf_Openai_Whisper_Tiny_En_Output; 3830 - } 3831 - interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input { 3832 - /** 3833 - * Base64 encoded value of the audio data. 3834 - */ 3835 - audio: string; 3836 - /** 3837 - * Supported tasks are 'translate' or 'transcribe'. 3838 - */ 3839 - task?: string; 3840 - /** 3841 - * The language of the audio being transcribed or translated. 3842 - */ 3843 - language?: string; 3844 - /** 3845 - * Preprocess the audio with a voice activity detection model. 3846 - */ 3847 - vad_filter?: boolean; 3848 - /** 3849 - * A text prompt to help provide context to the model on the contents of the audio. 3850 - */ 3851 - initial_prompt?: string; 3852 - /** 3853 - * The prefix it appended the the beginning of the output of the transcription and can guide the transcription result. 3854 - */ 3855 - prefix?: string; 3856 - } 3857 - interface Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output { 3858 - transcription_info?: { 3859 - /** 3860 - * The language of the audio being transcribed or translated. 3861 - */ 3862 - language?: string; 3863 - /** 3864 - * The confidence level or probability of the detected language being accurate, represented as a decimal between 0 and 1. 3865 - */ 3866 - language_probability?: number; 3867 - /** 3868 - * The total duration of the original audio file, in seconds. 3869 - */ 3870 - duration?: number; 3871 - /** 3872 - * The duration of the audio after applying Voice Activity Detection (VAD) to remove silent or irrelevant sections, in seconds. 3873 - */ 3874 - duration_after_vad?: number; 3875 - }; 3876 - /** 3877 - * The complete transcription of the audio. 3878 - */ 3879 - text: string; 3880 - /** 3881 - * The total number of words in the transcription. 3882 - */ 3883 - word_count?: number; 3884 - segments?: { 3885 - /** 3886 - * The starting time of the segment within the audio, in seconds. 3887 - */ 3888 - start?: number; 3889 - /** 3890 - * The ending time of the segment within the audio, in seconds. 3891 - */ 3892 - end?: number; 3893 - /** 3894 - * The transcription of the segment. 3895 - */ 3896 - text?: string; 3897 - /** 3898 - * The temperature used in the decoding process, controlling randomness in predictions. Lower values result in more deterministic outputs. 3899 - */ 3900 - temperature?: number; 3901 - /** 3902 - * The average log probability of the predictions for the words in this segment, indicating overall confidence. 3903 - */ 3904 - avg_logprob?: number; 3905 - /** 3906 - * The compression ratio of the input to the output, measuring how much the text was compressed during the transcription process. 3907 - */ 3908 - compression_ratio?: number; 3909 - /** 3910 - * The probability that the segment contains no speech, represented as a decimal between 0 and 1. 3911 - */ 3912 - no_speech_prob?: number; 3913 - words?: { 3914 - /** 3915 - * The individual word transcribed from the audio. 3916 - */ 3917 - word?: string; 3918 - /** 3919 - * The starting time of the word within the audio, in seconds. 3920 - */ 3921 - start?: number; 3922 - /** 3923 - * The ending time of the word within the audio, in seconds. 3924 - */ 3925 - end?: number; 3926 - }[]; 3927 - }[]; 3928 - /** 3929 - * The transcription in WebVTT format, which includes timing and text information for use in subtitles. 3930 - */ 3931 - vtt?: string; 3932 - } 3933 - declare abstract class Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo { 3934 - inputs: Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input; 3935 - postProcessedOutputs: Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output; 3936 - } 3937 - type Ai_Cf_Baai_Bge_M3_Input = BGEM3InputQueryAndContexts | BGEM3InputEmbedding | { 3938 - /** 3939 - * Batch of the embeddings requests to run using async-queue 3940 - */ 3941 - requests: (BGEM3InputQueryAndContexts1 | BGEM3InputEmbedding1)[]; 3942 - }; 3943 - interface BGEM3InputQueryAndContexts { 3944 - /** 3945 - * A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts 3946 - */ 3947 - query?: string; 3948 - /** 3949 - * List of provided contexts. Note that the index in this array is important, as the response will refer to it. 3950 - */ 3951 - contexts: { 3952 - /** 3953 - * One of the provided context content 3954 - */ 3955 - text?: string; 3956 - }[]; 3957 - /** 3958 - * When provided with too long context should the model error out or truncate the context to fit? 3959 - */ 3960 - truncate_inputs?: boolean; 3961 - } 3962 - interface BGEM3InputEmbedding { 3963 - text: string | string[]; 3964 - /** 3965 - * When provided with too long context should the model error out or truncate the context to fit? 3966 - */ 3967 - truncate_inputs?: boolean; 3968 - } 3969 - interface BGEM3InputQueryAndContexts1 { 3970 - /** 3971 - * A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts 3972 - */ 3973 - query?: string; 3974 - /** 3975 - * List of provided contexts. Note that the index in this array is important, as the response will refer to it. 3976 - */ 3977 - contexts: { 3978 - /** 3979 - * One of the provided context content 3980 - */ 3981 - text?: string; 3982 - }[]; 3983 - /** 3984 - * When provided with too long context should the model error out or truncate the context to fit? 3985 - */ 3986 - truncate_inputs?: boolean; 3987 - } 3988 - interface BGEM3InputEmbedding1 { 3989 - text: string | string[]; 3990 - /** 3991 - * When provided with too long context should the model error out or truncate the context to fit? 3992 - */ 3993 - truncate_inputs?: boolean; 3994 - } 3995 - type Ai_Cf_Baai_Bge_M3_Output = BGEM3OuputQuery | BGEM3OutputEmbeddingForContexts | BGEM3OuputEmbedding | AsyncResponse; 3996 - interface BGEM3OuputQuery { 3997 - response?: { 3998 - /** 3999 - * Index of the context in the request 4000 - */ 4001 - id?: number; 4002 - /** 4003 - * Score of the context under the index. 4004 - */ 4005 - score?: number; 4006 - }[]; 4007 - } 4008 - interface BGEM3OutputEmbeddingForContexts { 4009 - response?: number[][]; 4010 - shape?: number[]; 4011 - /** 4012 - * The pooling method used in the embedding process. 4013 - */ 4014 - pooling?: "mean" | "cls"; 4015 - } 4016 - interface BGEM3OuputEmbedding { 4017 - shape?: number[]; 4018 - /** 4019 - * Embeddings of the requested text values 4020 - */ 4021 - data?: number[][]; 4022 - /** 4023 - * The pooling method used in the embedding process. 4024 - */ 4025 - pooling?: "mean" | "cls"; 4026 - } 4027 - declare abstract class Base_Ai_Cf_Baai_Bge_M3 { 4028 - inputs: Ai_Cf_Baai_Bge_M3_Input; 4029 - postProcessedOutputs: Ai_Cf_Baai_Bge_M3_Output; 4030 - } 4031 - interface Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input { 4032 - /** 4033 - * A text description of the image you want to generate. 4034 - */ 4035 - prompt: string; 4036 - /** 4037 - * The number of diffusion steps; higher values can improve quality but take longer. 4038 - */ 4039 - steps?: number; 4040 - } 4041 - interface Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output { 4042 - /** 4043 - * The generated image in Base64 format. 4044 - */ 4045 - image?: string; 4046 - } 4047 - declare abstract class Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell { 4048 - inputs: Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input; 4049 - postProcessedOutputs: Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output; 4050 - } 4051 - type Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input = Prompt | Messages; 4052 - interface Prompt { 4053 - /** 4054 - * The input text prompt for the model to generate a response. 4055 - */ 4056 - prompt: string; 4057 - image?: number[] | (string & NonNullable<unknown>); 4058 - /** 4059 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 4060 - */ 4061 - raw?: boolean; 4062 - /** 4063 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 4064 - */ 4065 - stream?: boolean; 4066 - /** 4067 - * The maximum number of tokens to generate in the response. 4068 - */ 4069 - max_tokens?: number; 4070 - /** 4071 - * Controls the randomness of the output; higher values produce more random results. 4072 - */ 4073 - temperature?: number; 4074 - /** 4075 - * 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. 4076 - */ 4077 - top_p?: number; 4078 - /** 4079 - * 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. 4080 - */ 4081 - top_k?: number; 4082 - /** 4083 - * Random seed for reproducibility of the generation. 4084 - */ 4085 - seed?: number; 4086 - /** 4087 - * Penalty for repeated tokens; higher values discourage repetition. 4088 - */ 4089 - repetition_penalty?: number; 4090 - /** 4091 - * Decreases the likelihood of the model repeating the same lines verbatim. 4092 - */ 4093 - frequency_penalty?: number; 4094 - /** 4095 - * Increases the likelihood of the model introducing new topics. 4096 - */ 4097 - presence_penalty?: number; 4098 - /** 4099 - * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 4100 - */ 4101 - lora?: string; 4102 - } 4103 - interface Messages { 4104 - /** 4105 - * An array of message objects representing the conversation history. 4106 - */ 4107 - messages: { 4108 - /** 4109 - * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 4110 - */ 4111 - role?: string; 4112 - /** 4113 - * 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 4114 - */ 4115 - tool_call_id?: string; 4116 - content?: string | { 4117 - /** 4118 - * Type of the content provided 4119 - */ 4120 - type?: string; 4121 - text?: string; 4122 - image_url?: { 4123 - /** 4124 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 4125 - */ 4126 - url?: string; 4127 - }; 4128 - }[] | { 4129 - /** 4130 - * Type of the content provided 4131 - */ 4132 - type?: string; 4133 - text?: string; 4134 - image_url?: { 4135 - /** 4136 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 4137 - */ 4138 - url?: string; 4139 - }; 4140 - }; 4141 - }[]; 4142 - image?: number[] | (string & NonNullable<unknown>); 4143 - functions?: { 4144 - name: string; 4145 - code: string; 4146 - }[]; 4147 - /** 4148 - * A list of tools available for the assistant to use. 4149 - */ 4150 - tools?: ({ 4151 - /** 4152 - * The name of the tool. More descriptive the better. 4153 - */ 4154 - name: string; 4155 - /** 4156 - * A brief description of what the tool does. 4157 - */ 4158 - description: string; 4159 - /** 4160 - * Schema defining the parameters accepted by the tool. 4161 - */ 4162 - parameters: { 4163 - /** 4164 - * The type of the parameters object (usually 'object'). 4165 - */ 4166 - type: string; 4167 - /** 4168 - * List of required parameter names. 4169 - */ 4170 - required?: string[]; 4171 - /** 4172 - * Definitions of each parameter. 4173 - */ 4174 - properties: { 4175 - [k: string]: { 4176 - /** 4177 - * The data type of the parameter. 4178 - */ 4179 - type: string; 4180 - /** 4181 - * A description of the expected parameter. 4182 - */ 4183 - description: string; 4184 - }; 4185 - }; 4186 - }; 4187 - } | { 4188 - /** 4189 - * Specifies the type of tool (e.g., 'function'). 4190 - */ 4191 - type: string; 4192 - /** 4193 - * Details of the function tool. 4194 - */ 4195 - function: { 4196 - /** 4197 - * The name of the function. 4198 - */ 4199 - name: string; 4200 - /** 4201 - * A brief description of what the function does. 4202 - */ 4203 - description: string; 4204 - /** 4205 - * Schema defining the parameters accepted by the function. 4206 - */ 4207 - parameters: { 4208 - /** 4209 - * The type of the parameters object (usually 'object'). 4210 - */ 4211 - type: string; 4212 - /** 4213 - * List of required parameter names. 4214 - */ 4215 - required?: string[]; 4216 - /** 4217 - * Definitions of each parameter. 4218 - */ 4219 - properties: { 4220 - [k: string]: { 4221 - /** 4222 - * The data type of the parameter. 4223 - */ 4224 - type: string; 4225 - /** 4226 - * A description of the expected parameter. 4227 - */ 4228 - description: string; 4229 - }; 4230 - }; 4231 - }; 4232 - }; 4233 - })[]; 4234 - /** 4235 - * If true, the response will be streamed back incrementally. 4236 - */ 4237 - stream?: boolean; 4238 - /** 4239 - * The maximum number of tokens to generate in the response. 4240 - */ 4241 - max_tokens?: number; 4242 - /** 4243 - * Controls the randomness of the output; higher values produce more random results. 4244 - */ 4245 - temperature?: number; 4246 - /** 4247 - * 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. 4248 - */ 4249 - top_p?: number; 4250 - /** 4251 - * 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. 4252 - */ 4253 - top_k?: number; 4254 - /** 4255 - * Random seed for reproducibility of the generation. 4256 - */ 4257 - seed?: number; 4258 - /** 4259 - * Penalty for repeated tokens; higher values discourage repetition. 4260 - */ 4261 - repetition_penalty?: number; 4262 - /** 4263 - * Decreases the likelihood of the model repeating the same lines verbatim. 4264 - */ 4265 - frequency_penalty?: number; 4266 - /** 4267 - * Increases the likelihood of the model introducing new topics. 4268 - */ 4269 - presence_penalty?: number; 4270 - } 4271 - type Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output = { 4272 - /** 4273 - * The generated text response from the model 4274 - */ 4275 - response?: string; 4276 - /** 4277 - * An array of tool calls requests made during the response generation 4278 - */ 4279 - tool_calls?: { 4280 - /** 4281 - * The arguments passed to be passed to the tool call request 4282 - */ 4283 - arguments?: object; 4284 - /** 4285 - * The name of the tool to be called 4286 - */ 4287 - name?: string; 4288 - }[]; 4289 - }; 4290 - declare abstract class Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct { 4291 - inputs: Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input; 4292 - postProcessedOutputs: Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output; 4293 - } 4294 - type Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input = Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt | Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages | AsyncBatch; 4295 - interface Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt { 4296 - /** 4297 - * The input text prompt for the model to generate a response. 4298 - */ 4299 - prompt: string; 4300 - /** 4301 - * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 4302 - */ 4303 - lora?: string; 4304 - response_format?: JSONMode; 4305 - /** 4306 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 4307 - */ 4308 - raw?: boolean; 4309 - /** 4310 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 4311 - */ 4312 - stream?: boolean; 4313 - /** 4314 - * The maximum number of tokens to generate in the response. 4315 - */ 4316 - max_tokens?: number; 4317 - /** 4318 - * Controls the randomness of the output; higher values produce more random results. 4319 - */ 4320 - temperature?: number; 4321 - /** 4322 - * 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. 4323 - */ 4324 - top_p?: number; 4325 - /** 4326 - * 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. 4327 - */ 4328 - top_k?: number; 4329 - /** 4330 - * Random seed for reproducibility of the generation. 4331 - */ 4332 - seed?: number; 4333 - /** 4334 - * Penalty for repeated tokens; higher values discourage repetition. 4335 - */ 4336 - repetition_penalty?: number; 4337 - /** 4338 - * Decreases the likelihood of the model repeating the same lines verbatim. 4339 - */ 4340 - frequency_penalty?: number; 4341 - /** 4342 - * Increases the likelihood of the model introducing new topics. 4343 - */ 4344 - presence_penalty?: number; 4345 - } 4346 - interface JSONMode { 4347 - type?: "json_object" | "json_schema"; 4348 - json_schema?: unknown; 4349 - } 4350 - interface Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages { 4351 - /** 4352 - * An array of message objects representing the conversation history. 4353 - */ 4354 - messages: { 4355 - /** 4356 - * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 4357 - */ 4358 - role: string; 4359 - /** 4360 - * The content of the message as a string. 4361 - */ 4362 - content: string; 4363 - }[]; 4364 - functions?: { 4365 - name: string; 4366 - code: string; 4367 - }[]; 4368 - /** 4369 - * A list of tools available for the assistant to use. 4370 - */ 4371 - tools?: ({ 4372 - /** 4373 - * The name of the tool. More descriptive the better. 4374 - */ 4375 - name: string; 4376 - /** 4377 - * A brief description of what the tool does. 4378 - */ 4379 - description: string; 4380 - /** 4381 - * Schema defining the parameters accepted by the tool. 4382 - */ 4383 - parameters: { 4384 - /** 4385 - * The type of the parameters object (usually 'object'). 4386 - */ 4387 - type: string; 4388 - /** 4389 - * List of required parameter names. 4390 - */ 4391 - required?: string[]; 4392 - /** 4393 - * Definitions of each parameter. 4394 - */ 4395 - properties: { 4396 - [k: string]: { 4397 - /** 4398 - * The data type of the parameter. 4399 - */ 4400 - type: string; 4401 - /** 4402 - * A description of the expected parameter. 4403 - */ 4404 - description: string; 4405 - }; 4406 - }; 4407 - }; 4408 - } | { 4409 - /** 4410 - * Specifies the type of tool (e.g., 'function'). 4411 - */ 4412 - type: string; 4413 - /** 4414 - * Details of the function tool. 4415 - */ 4416 - function: { 4417 - /** 4418 - * The name of the function. 4419 - */ 4420 - name: string; 4421 - /** 4422 - * A brief description of what the function does. 4423 - */ 4424 - description: string; 4425 - /** 4426 - * Schema defining the parameters accepted by the function. 4427 - */ 4428 - parameters: { 4429 - /** 4430 - * The type of the parameters object (usually 'object'). 4431 - */ 4432 - type: string; 4433 - /** 4434 - * List of required parameter names. 4435 - */ 4436 - required?: string[]; 4437 - /** 4438 - * Definitions of each parameter. 4439 - */ 4440 - properties: { 4441 - [k: string]: { 4442 - /** 4443 - * The data type of the parameter. 4444 - */ 4445 - type: string; 4446 - /** 4447 - * A description of the expected parameter. 4448 - */ 4449 - description: string; 4450 - }; 4451 - }; 4452 - }; 4453 - }; 4454 - })[]; 4455 - response_format?: JSONMode; 4456 - /** 4457 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 4458 - */ 4459 - raw?: boolean; 4460 - /** 4461 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 4462 - */ 4463 - stream?: boolean; 4464 - /** 4465 - * The maximum number of tokens to generate in the response. 4466 - */ 4467 - max_tokens?: number; 4468 - /** 4469 - * Controls the randomness of the output; higher values produce more random results. 4470 - */ 4471 - temperature?: number; 4472 - /** 4473 - * 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. 4474 - */ 4475 - top_p?: number; 4476 - /** 4477 - * 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. 4478 - */ 4479 - top_k?: number; 4480 - /** 4481 - * Random seed for reproducibility of the generation. 4482 - */ 4483 - seed?: number; 4484 - /** 4485 - * Penalty for repeated tokens; higher values discourage repetition. 4486 - */ 4487 - repetition_penalty?: number; 4488 - /** 4489 - * Decreases the likelihood of the model repeating the same lines verbatim. 4490 - */ 4491 - frequency_penalty?: number; 4492 - /** 4493 - * Increases the likelihood of the model introducing new topics. 4494 - */ 4495 - presence_penalty?: number; 4496 - } 4497 - interface AsyncBatch { 4498 - requests?: { 4499 - /** 4500 - * 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. 4501 - */ 4502 - external_reference?: string; 4503 - /** 4504 - * Prompt for the text generation model 4505 - */ 4506 - prompt?: string; 4507 - /** 4508 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 4509 - */ 4510 - stream?: boolean; 4511 - /** 4512 - * The maximum number of tokens to generate in the response. 4513 - */ 4514 - max_tokens?: number; 4515 - /** 4516 - * Controls the randomness of the output; higher values produce more random results. 4517 - */ 4518 - temperature?: number; 4519 - /** 4520 - * 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. 4521 - */ 4522 - top_p?: number; 4523 - /** 4524 - * Random seed for reproducibility of the generation. 4525 - */ 4526 - seed?: number; 4527 - /** 4528 - * Penalty for repeated tokens; higher values discourage repetition. 4529 - */ 4530 - repetition_penalty?: number; 4531 - /** 4532 - * Decreases the likelihood of the model repeating the same lines verbatim. 4533 - */ 4534 - frequency_penalty?: number; 4535 - /** 4536 - * Increases the likelihood of the model introducing new topics. 4537 - */ 4538 - presence_penalty?: number; 4539 - response_format?: JSONMode; 4540 - }[]; 4541 - } 4542 - type Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output = { 4543 - /** 4544 - * The generated text response from the model 4545 - */ 4546 - response: string; 4547 - /** 4548 - * Usage statistics for the inference request 4549 - */ 4550 - usage?: { 4551 - /** 4552 - * Total number of tokens in input 4553 - */ 4554 - prompt_tokens?: number; 4555 - /** 4556 - * Total number of tokens in output 4557 - */ 4558 - completion_tokens?: number; 4559 - /** 4560 - * Total number of input and output tokens 4561 - */ 4562 - total_tokens?: number; 4563 - }; 4564 - /** 4565 - * An array of tool calls requests made during the response generation 4566 - */ 4567 - tool_calls?: { 4568 - /** 4569 - * The arguments passed to be passed to the tool call request 4570 - */ 4571 - arguments?: object; 4572 - /** 4573 - * The name of the tool to be called 4574 - */ 4575 - name?: string; 4576 - }[]; 4577 - } | string | AsyncResponse; 4578 - declare abstract class Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast { 4579 - inputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input; 4580 - postProcessedOutputs: Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output; 4581 - } 4582 - interface Ai_Cf_Meta_Llama_Guard_3_8B_Input { 4583 - /** 4584 - * An array of message objects representing the conversation history. 4585 - */ 4586 - messages: { 4587 - /** 4588 - * The role of the message sender must alternate between 'user' and 'assistant'. 4589 - */ 4590 - role: "user" | "assistant"; 4591 - /** 4592 - * The content of the message as a string. 4593 - */ 4594 - content: string; 4595 - }[]; 4596 - /** 4597 - * The maximum number of tokens to generate in the response. 4598 - */ 4599 - max_tokens?: number; 4600 - /** 4601 - * Controls the randomness of the output; higher values produce more random results. 4602 - */ 4603 - temperature?: number; 4604 - /** 4605 - * Dictate the output format of the generated response. 4606 - */ 4607 - response_format?: { 4608 - /** 4609 - * Set to json_object to process and output generated text as JSON. 4610 - */ 4611 - type?: string; 4612 - }; 4613 - } 4614 - interface Ai_Cf_Meta_Llama_Guard_3_8B_Output { 4615 - response?: string | { 4616 - /** 4617 - * Whether the conversation is safe or not. 4618 - */ 4619 - safe?: boolean; 4620 - /** 4621 - * A list of what hazard categories predicted for the conversation, if the conversation is deemed unsafe. 4622 - */ 4623 - categories?: string[]; 4624 - }; 4625 - /** 4626 - * Usage statistics for the inference request 4627 - */ 4628 - usage?: { 4629 - /** 4630 - * Total number of tokens in input 4631 - */ 4632 - prompt_tokens?: number; 4633 - /** 4634 - * Total number of tokens in output 4635 - */ 4636 - completion_tokens?: number; 4637 - /** 4638 - * Total number of input and output tokens 4639 - */ 4640 - total_tokens?: number; 4641 - }; 4642 - } 4643 - declare abstract class Base_Ai_Cf_Meta_Llama_Guard_3_8B { 4644 - inputs: Ai_Cf_Meta_Llama_Guard_3_8B_Input; 4645 - postProcessedOutputs: Ai_Cf_Meta_Llama_Guard_3_8B_Output; 4646 - } 4647 - interface Ai_Cf_Baai_Bge_Reranker_Base_Input { 4648 - /** 4649 - * A query you wish to perform against the provided contexts. 4650 - */ 4651 - /** 4652 - * Number of returned results starting with the best score. 4653 - */ 4654 - top_k?: number; 4655 - /** 4656 - * List of provided contexts. Note that the index in this array is important, as the response will refer to it. 4657 - */ 4658 - contexts: { 4659 - /** 4660 - * One of the provided context content 4661 - */ 4662 - text?: string; 4663 - }[]; 4664 - } 4665 - interface Ai_Cf_Baai_Bge_Reranker_Base_Output { 4666 - response?: { 4667 - /** 4668 - * Index of the context in the request 4669 - */ 4670 - id?: number; 4671 - /** 4672 - * Score of the context under the index. 4673 - */ 4674 - score?: number; 4675 - }[]; 4676 - } 4677 - declare abstract class Base_Ai_Cf_Baai_Bge_Reranker_Base { 4678 - inputs: Ai_Cf_Baai_Bge_Reranker_Base_Input; 4679 - postProcessedOutputs: Ai_Cf_Baai_Bge_Reranker_Base_Output; 4680 - } 4681 - type Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input = Qwen2_5_Coder_32B_Instruct_Prompt | Qwen2_5_Coder_32B_Instruct_Messages; 4682 - interface Qwen2_5_Coder_32B_Instruct_Prompt { 4683 - /** 4684 - * The input text prompt for the model to generate a response. 4685 - */ 4686 - prompt: string; 4687 - /** 4688 - * Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. 4689 - */ 4690 - lora?: string; 4691 - response_format?: JSONMode; 4692 - /** 4693 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 4694 - */ 4695 - raw?: boolean; 4696 - /** 4697 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 4698 - */ 4699 - stream?: boolean; 4700 - /** 4701 - * The maximum number of tokens to generate in the response. 4702 - */ 4703 - max_tokens?: number; 4704 - /** 4705 - * Controls the randomness of the output; higher values produce more random results. 4706 - */ 4707 - temperature?: number; 4708 - /** 4709 - * 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. 4710 - */ 4711 - top_p?: number; 4712 - /** 4713 - * 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. 4714 - */ 4715 - top_k?: number; 4716 - /** 4717 - * Random seed for reproducibility of the generation. 4718 - */ 4719 - seed?: number; 4720 - /** 4721 - * Penalty for repeated tokens; higher values discourage repetition. 4722 - */ 4723 - repetition_penalty?: number; 4724 - /** 4725 - * Decreases the likelihood of the model repeating the same lines verbatim. 4726 - */ 4727 - frequency_penalty?: number; 4728 - /** 4729 - * Increases the likelihood of the model introducing new topics. 4730 - */ 4731 - presence_penalty?: number; 4732 - } 4733 - interface Qwen2_5_Coder_32B_Instruct_Messages { 4734 - /** 4735 - * An array of message objects representing the conversation history. 4736 - */ 4737 - messages: { 4738 - /** 4739 - * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 4740 - */ 4741 - role: string; 4742 - /** 4743 - * The content of the message as a string. 4744 - */ 4745 - content: string; 4746 - }[]; 4747 - functions?: { 4748 - name: string; 4749 - code: string; 4750 - }[]; 4751 - /** 4752 - * A list of tools available for the assistant to use. 4753 - */ 4754 - tools?: ({ 4755 - /** 4756 - * The name of the tool. More descriptive the better. 4757 - */ 4758 - name: string; 4759 - /** 4760 - * A brief description of what the tool does. 4761 - */ 4762 - description: string; 4763 - /** 4764 - * Schema defining the parameters accepted by the tool. 4765 - */ 4766 - parameters: { 4767 - /** 4768 - * The type of the parameters object (usually 'object'). 4769 - */ 4770 - type: string; 4771 - /** 4772 - * List of required parameter names. 4773 - */ 4774 - required?: string[]; 4775 - /** 4776 - * Definitions of each parameter. 4777 - */ 4778 - properties: { 4779 - [k: string]: { 4780 - /** 4781 - * The data type of the parameter. 4782 - */ 4783 - type: string; 4784 - /** 4785 - * A description of the expected parameter. 4786 - */ 4787 - description: string; 4788 - }; 4789 - }; 4790 - }; 4791 - } | { 4792 - /** 4793 - * Specifies the type of tool (e.g., 'function'). 4794 - */ 4795 - type: string; 4796 - /** 4797 - * Details of the function tool. 4798 - */ 4799 - function: { 4800 - /** 4801 - * The name of the function. 4802 - */ 4803 - name: string; 4804 - /** 4805 - * A brief description of what the function does. 4806 - */ 4807 - description: string; 4808 - /** 4809 - * Schema defining the parameters accepted by the function. 4810 - */ 4811 - parameters: { 4812 - /** 4813 - * The type of the parameters object (usually 'object'). 4814 - */ 4815 - type: string; 4816 - /** 4817 - * List of required parameter names. 4818 - */ 4819 - required?: string[]; 4820 - /** 4821 - * Definitions of each parameter. 4822 - */ 4823 - properties: { 4824 - [k: string]: { 4825 - /** 4826 - * The data type of the parameter. 4827 - */ 4828 - type: string; 4829 - /** 4830 - * A description of the expected parameter. 4831 - */ 4832 - description: string; 4833 - }; 4834 - }; 4835 - }; 4836 - }; 4837 - })[]; 4838 - response_format?: JSONMode; 4839 - /** 4840 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 4841 - */ 4842 - raw?: boolean; 4843 - /** 4844 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 4845 - */ 4846 - stream?: boolean; 4847 - /** 4848 - * The maximum number of tokens to generate in the response. 4849 - */ 4850 - max_tokens?: number; 4851 - /** 4852 - * Controls the randomness of the output; higher values produce more random results. 4853 - */ 4854 - temperature?: number; 4855 - /** 4856 - * 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. 4857 - */ 4858 - top_p?: number; 4859 - /** 4860 - * 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. 4861 - */ 4862 - top_k?: number; 4863 - /** 4864 - * Random seed for reproducibility of the generation. 4865 - */ 4866 - seed?: number; 4867 - /** 4868 - * Penalty for repeated tokens; higher values discourage repetition. 4869 - */ 4870 - repetition_penalty?: number; 4871 - /** 4872 - * Decreases the likelihood of the model repeating the same lines verbatim. 4873 - */ 4874 - frequency_penalty?: number; 4875 - /** 4876 - * Increases the likelihood of the model introducing new topics. 4877 - */ 4878 - presence_penalty?: number; 4879 - } 4880 - type Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output = { 4881 - /** 4882 - * The generated text response from the model 4883 - */ 4884 - response: string; 4885 - /** 4886 - * Usage statistics for the inference request 4887 - */ 4888 - usage?: { 4889 - /** 4890 - * Total number of tokens in input 4891 - */ 4892 - prompt_tokens?: number; 4893 - /** 4894 - * Total number of tokens in output 4895 - */ 4896 - completion_tokens?: number; 4897 - /** 4898 - * Total number of input and output tokens 4899 - */ 4900 - total_tokens?: number; 4901 - }; 4902 - /** 4903 - * An array of tool calls requests made during the response generation 4904 - */ 4905 - tool_calls?: { 4906 - /** 4907 - * The arguments passed to be passed to the tool call request 4908 - */ 4909 - arguments?: object; 4910 - /** 4911 - * The name of the tool to be called 4912 - */ 4913 - name?: string; 4914 - }[]; 4915 - }; 4916 - declare abstract class Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct { 4917 - inputs: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input; 4918 - postProcessedOutputs: Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output; 4919 - } 4920 - type Ai_Cf_Qwen_Qwq_32B_Input = Qwen_Qwq_32B_Prompt | Qwen_Qwq_32B_Messages; 4921 - interface Qwen_Qwq_32B_Prompt { 4922 - /** 4923 - * The input text prompt for the model to generate a response. 4924 - */ 4925 - prompt: string; 4926 - /** 4927 - * JSON schema that should be fulfilled for the response. 4928 - */ 4929 - guided_json?: object; 4930 - /** 4931 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 4932 - */ 4933 - raw?: boolean; 4934 - /** 4935 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 4936 - */ 4937 - stream?: boolean; 4938 - /** 4939 - * The maximum number of tokens to generate in the response. 4940 - */ 4941 - max_tokens?: number; 4942 - /** 4943 - * Controls the randomness of the output; higher values produce more random results. 4944 - */ 4945 - temperature?: number; 4946 - /** 4947 - * 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. 4948 - */ 4949 - top_p?: number; 4950 - /** 4951 - * 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. 4952 - */ 4953 - top_k?: number; 4954 - /** 4955 - * Random seed for reproducibility of the generation. 4956 - */ 4957 - seed?: number; 4958 - /** 4959 - * Penalty for repeated tokens; higher values discourage repetition. 4960 - */ 4961 - repetition_penalty?: number; 4962 - /** 4963 - * Decreases the likelihood of the model repeating the same lines verbatim. 4964 - */ 4965 - frequency_penalty?: number; 4966 - /** 4967 - * Increases the likelihood of the model introducing new topics. 4968 - */ 4969 - presence_penalty?: number; 4970 - } 4971 - interface Qwen_Qwq_32B_Messages { 4972 - /** 4973 - * An array of message objects representing the conversation history. 4974 - */ 4975 - messages: { 4976 - /** 4977 - * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 4978 - */ 4979 - role?: string; 4980 - /** 4981 - * 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 4982 - */ 4983 - tool_call_id?: string; 4984 - content?: string | { 4985 - /** 4986 - * Type of the content provided 4987 - */ 4988 - type?: string; 4989 - text?: string; 4990 - image_url?: { 4991 - /** 4992 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 4993 - */ 4994 - url?: string; 4995 - }; 4996 - }[] | { 4997 - /** 4998 - * Type of the content provided 4999 - */ 5000 - type?: string; 5001 - text?: string; 5002 - image_url?: { 5003 - /** 5004 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5005 - */ 5006 - url?: string; 5007 - }; 5008 - }; 5009 - }[]; 5010 - functions?: { 5011 - name: string; 5012 - code: string; 5013 - }[]; 5014 - /** 5015 - * A list of tools available for the assistant to use. 5016 - */ 5017 - tools?: ({ 5018 - /** 5019 - * The name of the tool. More descriptive the better. 5020 - */ 5021 - name: string; 5022 - /** 5023 - * A brief description of what the tool does. 5024 - */ 5025 - description: string; 5026 - /** 5027 - * Schema defining the parameters accepted by the tool. 5028 - */ 5029 - parameters: { 5030 - /** 5031 - * The type of the parameters object (usually 'object'). 5032 - */ 5033 - type: string; 5034 - /** 5035 - * List of required parameter names. 5036 - */ 5037 - required?: string[]; 5038 - /** 5039 - * Definitions of each parameter. 5040 - */ 5041 - properties: { 5042 - [k: string]: { 5043 - /** 5044 - * The data type of the parameter. 5045 - */ 5046 - type: string; 5047 - /** 5048 - * A description of the expected parameter. 5049 - */ 5050 - description: string; 5051 - }; 5052 - }; 5053 - }; 5054 - } | { 5055 - /** 5056 - * Specifies the type of tool (e.g., 'function'). 5057 - */ 5058 - type: string; 5059 - /** 5060 - * Details of the function tool. 5061 - */ 5062 - function: { 5063 - /** 5064 - * The name of the function. 5065 - */ 5066 - name: string; 5067 - /** 5068 - * A brief description of what the function does. 5069 - */ 5070 - description: string; 5071 - /** 5072 - * Schema defining the parameters accepted by the function. 5073 - */ 5074 - parameters: { 5075 - /** 5076 - * The type of the parameters object (usually 'object'). 5077 - */ 5078 - type: string; 5079 - /** 5080 - * List of required parameter names. 5081 - */ 5082 - required?: string[]; 5083 - /** 5084 - * Definitions of each parameter. 5085 - */ 5086 - properties: { 5087 - [k: string]: { 5088 - /** 5089 - * The data type of the parameter. 5090 - */ 5091 - type: string; 5092 - /** 5093 - * A description of the expected parameter. 5094 - */ 5095 - description: string; 5096 - }; 5097 - }; 5098 - }; 5099 - }; 5100 - })[]; 5101 - /** 5102 - * JSON schema that should be fufilled for the response. 5103 - */ 5104 - guided_json?: object; 5105 - /** 5106 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5107 - */ 5108 - raw?: boolean; 5109 - /** 5110 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5111 - */ 5112 - stream?: boolean; 5113 - /** 5114 - * The maximum number of tokens to generate in the response. 5115 - */ 5116 - max_tokens?: number; 5117 - /** 5118 - * Controls the randomness of the output; higher values produce more random results. 5119 - */ 5120 - temperature?: number; 5121 - /** 5122 - * 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. 5123 - */ 5124 - top_p?: number; 5125 - /** 5126 - * 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. 5127 - */ 5128 - top_k?: number; 5129 - /** 5130 - * Random seed for reproducibility of the generation. 5131 - */ 5132 - seed?: number; 5133 - /** 5134 - * Penalty for repeated tokens; higher values discourage repetition. 5135 - */ 5136 - repetition_penalty?: number; 5137 - /** 5138 - * Decreases the likelihood of the model repeating the same lines verbatim. 5139 - */ 5140 - frequency_penalty?: number; 5141 - /** 5142 - * Increases the likelihood of the model introducing new topics. 5143 - */ 5144 - presence_penalty?: number; 5145 - } 5146 - type Ai_Cf_Qwen_Qwq_32B_Output = { 5147 - /** 5148 - * The generated text response from the model 5149 - */ 5150 - response: string; 5151 - /** 5152 - * Usage statistics for the inference request 5153 - */ 5154 - usage?: { 5155 - /** 5156 - * Total number of tokens in input 5157 - */ 5158 - prompt_tokens?: number; 5159 - /** 5160 - * Total number of tokens in output 5161 - */ 5162 - completion_tokens?: number; 5163 - /** 5164 - * Total number of input and output tokens 5165 - */ 5166 - total_tokens?: number; 5167 - }; 5168 - /** 5169 - * An array of tool calls requests made during the response generation 5170 - */ 5171 - tool_calls?: { 5172 - /** 5173 - * The arguments passed to be passed to the tool call request 5174 - */ 5175 - arguments?: object; 5176 - /** 5177 - * The name of the tool to be called 5178 - */ 5179 - name?: string; 5180 - }[]; 5181 - }; 5182 - declare abstract class Base_Ai_Cf_Qwen_Qwq_32B { 5183 - inputs: Ai_Cf_Qwen_Qwq_32B_Input; 5184 - postProcessedOutputs: Ai_Cf_Qwen_Qwq_32B_Output; 5185 - } 5186 - type Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input = Mistral_Small_3_1_24B_Instruct_Prompt | Mistral_Small_3_1_24B_Instruct_Messages; 5187 - interface Mistral_Small_3_1_24B_Instruct_Prompt { 5188 - /** 5189 - * The input text prompt for the model to generate a response. 5190 - */ 5191 - prompt: string; 5192 - /** 5193 - * JSON schema that should be fulfilled for the response. 5194 - */ 5195 - guided_json?: object; 5196 - /** 5197 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5198 - */ 5199 - raw?: boolean; 5200 - /** 5201 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5202 - */ 5203 - stream?: boolean; 5204 - /** 5205 - * The maximum number of tokens to generate in the response. 5206 - */ 5207 - max_tokens?: number; 5208 - /** 5209 - * Controls the randomness of the output; higher values produce more random results. 5210 - */ 5211 - temperature?: number; 5212 - /** 5213 - * 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. 5214 - */ 5215 - top_p?: number; 5216 - /** 5217 - * 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. 5218 - */ 5219 - top_k?: number; 5220 - /** 5221 - * Random seed for reproducibility of the generation. 5222 - */ 5223 - seed?: number; 5224 - /** 5225 - * Penalty for repeated tokens; higher values discourage repetition. 5226 - */ 5227 - repetition_penalty?: number; 5228 - /** 5229 - * Decreases the likelihood of the model repeating the same lines verbatim. 5230 - */ 5231 - frequency_penalty?: number; 5232 - /** 5233 - * Increases the likelihood of the model introducing new topics. 5234 - */ 5235 - presence_penalty?: number; 5236 - } 5237 - interface Mistral_Small_3_1_24B_Instruct_Messages { 5238 - /** 5239 - * An array of message objects representing the conversation history. 5240 - */ 5241 - messages: { 5242 - /** 5243 - * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 5244 - */ 5245 - role?: string; 5246 - /** 5247 - * 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 5248 - */ 5249 - tool_call_id?: string; 5250 - content?: string | { 5251 - /** 5252 - * Type of the content provided 5253 - */ 5254 - type?: string; 5255 - text?: string; 5256 - image_url?: { 5257 - /** 5258 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5259 - */ 5260 - url?: string; 5261 - }; 5262 - }[] | { 5263 - /** 5264 - * Type of the content provided 5265 - */ 5266 - type?: string; 5267 - text?: string; 5268 - image_url?: { 5269 - /** 5270 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5271 - */ 5272 - url?: string; 5273 - }; 5274 - }; 5275 - }[]; 5276 - functions?: { 5277 - name: string; 5278 - code: string; 5279 - }[]; 5280 - /** 5281 - * A list of tools available for the assistant to use. 5282 - */ 5283 - tools?: ({ 5284 - /** 5285 - * The name of the tool. More descriptive the better. 5286 - */ 5287 - name: string; 5288 - /** 5289 - * A brief description of what the tool does. 5290 - */ 5291 - description: string; 5292 - /** 5293 - * Schema defining the parameters accepted by the tool. 5294 - */ 5295 - parameters: { 5296 - /** 5297 - * The type of the parameters object (usually 'object'). 5298 - */ 5299 - type: string; 5300 - /** 5301 - * List of required parameter names. 5302 - */ 5303 - required?: string[]; 5304 - /** 5305 - * Definitions of each parameter. 5306 - */ 5307 - properties: { 5308 - [k: string]: { 5309 - /** 5310 - * The data type of the parameter. 5311 - */ 5312 - type: string; 5313 - /** 5314 - * A description of the expected parameter. 5315 - */ 5316 - description: string; 5317 - }; 5318 - }; 5319 - }; 5320 - } | { 5321 - /** 5322 - * Specifies the type of tool (e.g., 'function'). 5323 - */ 5324 - type: string; 5325 - /** 5326 - * Details of the function tool. 5327 - */ 5328 - function: { 5329 - /** 5330 - * The name of the function. 5331 - */ 5332 - name: string; 5333 - /** 5334 - * A brief description of what the function does. 5335 - */ 5336 - description: string; 5337 - /** 5338 - * Schema defining the parameters accepted by the function. 5339 - */ 5340 - parameters: { 5341 - /** 5342 - * The type of the parameters object (usually 'object'). 5343 - */ 5344 - type: string; 5345 - /** 5346 - * List of required parameter names. 5347 - */ 5348 - required?: string[]; 5349 - /** 5350 - * Definitions of each parameter. 5351 - */ 5352 - properties: { 5353 - [k: string]: { 5354 - /** 5355 - * The data type of the parameter. 5356 - */ 5357 - type: string; 5358 - /** 5359 - * A description of the expected parameter. 5360 - */ 5361 - description: string; 5362 - }; 5363 - }; 5364 - }; 5365 - }; 5366 - })[]; 5367 - /** 5368 - * JSON schema that should be fufilled for the response. 5369 - */ 5370 - guided_json?: object; 5371 - /** 5372 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5373 - */ 5374 - raw?: boolean; 5375 - /** 5376 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5377 - */ 5378 - stream?: boolean; 5379 - /** 5380 - * The maximum number of tokens to generate in the response. 5381 - */ 5382 - max_tokens?: number; 5383 - /** 5384 - * Controls the randomness of the output; higher values produce more random results. 5385 - */ 5386 - temperature?: number; 5387 - /** 5388 - * 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. 5389 - */ 5390 - top_p?: number; 5391 - /** 5392 - * 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. 5393 - */ 5394 - top_k?: number; 5395 - /** 5396 - * Random seed for reproducibility of the generation. 5397 - */ 5398 - seed?: number; 5399 - /** 5400 - * Penalty for repeated tokens; higher values discourage repetition. 5401 - */ 5402 - repetition_penalty?: number; 5403 - /** 5404 - * Decreases the likelihood of the model repeating the same lines verbatim. 5405 - */ 5406 - frequency_penalty?: number; 5407 - /** 5408 - * Increases the likelihood of the model introducing new topics. 5409 - */ 5410 - presence_penalty?: number; 5411 - } 5412 - type Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output = { 5413 - /** 5414 - * The generated text response from the model 5415 - */ 5416 - response: string; 5417 - /** 5418 - * Usage statistics for the inference request 5419 - */ 5420 - usage?: { 5421 - /** 5422 - * Total number of tokens in input 5423 - */ 5424 - prompt_tokens?: number; 5425 - /** 5426 - * Total number of tokens in output 5427 - */ 5428 - completion_tokens?: number; 5429 - /** 5430 - * Total number of input and output tokens 5431 - */ 5432 - total_tokens?: number; 5433 - }; 5434 - /** 5435 - * An array of tool calls requests made during the response generation 5436 - */ 5437 - tool_calls?: { 5438 - /** 5439 - * The arguments passed to be passed to the tool call request 5440 - */ 5441 - arguments?: object; 5442 - /** 5443 - * The name of the tool to be called 5444 - */ 5445 - name?: string; 5446 - }[]; 5447 - }; 5448 - declare abstract class Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct { 5449 - inputs: Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input; 5450 - postProcessedOutputs: Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output; 5451 - } 5452 - type Ai_Cf_Google_Gemma_3_12B_It_Input = Google_Gemma_3_12B_It_Prompt | Google_Gemma_3_12B_It_Messages; 5453 - interface Google_Gemma_3_12B_It_Prompt { 5454 - /** 5455 - * The input text prompt for the model to generate a response. 5456 - */ 5457 - prompt: string; 5458 - /** 5459 - * JSON schema that should be fufilled for the response. 5460 - */ 5461 - guided_json?: object; 5462 - /** 5463 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5464 - */ 5465 - raw?: boolean; 5466 - /** 5467 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5468 - */ 5469 - stream?: boolean; 5470 - /** 5471 - * The maximum number of tokens to generate in the response. 5472 - */ 5473 - max_tokens?: number; 5474 - /** 5475 - * Controls the randomness of the output; higher values produce more random results. 5476 - */ 5477 - temperature?: number; 5478 - /** 5479 - * 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. 5480 - */ 5481 - top_p?: number; 5482 - /** 5483 - * 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. 5484 - */ 5485 - top_k?: number; 5486 - /** 5487 - * Random seed for reproducibility of the generation. 5488 - */ 5489 - seed?: number; 5490 - /** 5491 - * Penalty for repeated tokens; higher values discourage repetition. 5492 - */ 5493 - repetition_penalty?: number; 5494 - /** 5495 - * Decreases the likelihood of the model repeating the same lines verbatim. 5496 - */ 5497 - frequency_penalty?: number; 5498 - /** 5499 - * Increases the likelihood of the model introducing new topics. 5500 - */ 5501 - presence_penalty?: number; 5502 - } 5503 - interface Google_Gemma_3_12B_It_Messages { 5504 - /** 5505 - * An array of message objects representing the conversation history. 5506 - */ 5507 - messages: { 5508 - /** 5509 - * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 5510 - */ 5511 - role?: string; 5512 - content?: string | { 5513 - /** 5514 - * Type of the content provided 5515 - */ 5516 - type?: string; 5517 - text?: string; 5518 - image_url?: { 5519 - /** 5520 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5521 - */ 5522 - url?: string; 5523 - }; 5524 - }[] | { 5525 - /** 5526 - * Type of the content provided 5527 - */ 5528 - type?: string; 5529 - text?: string; 5530 - image_url?: { 5531 - /** 5532 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5533 - */ 5534 - url?: string; 5535 - }; 5536 - }; 5537 - }[]; 5538 - functions?: { 5539 - name: string; 5540 - code: string; 5541 - }[]; 5542 - /** 5543 - * A list of tools available for the assistant to use. 5544 - */ 5545 - tools?: ({ 5546 - /** 5547 - * The name of the tool. More descriptive the better. 5548 - */ 5549 - name: string; 5550 - /** 5551 - * A brief description of what the tool does. 5552 - */ 5553 - description: string; 5554 - /** 5555 - * Schema defining the parameters accepted by the tool. 5556 - */ 5557 - parameters: { 5558 - /** 5559 - * The type of the parameters object (usually 'object'). 5560 - */ 5561 - type: string; 5562 - /** 5563 - * List of required parameter names. 5564 - */ 5565 - required?: string[]; 5566 - /** 5567 - * Definitions of each parameter. 5568 - */ 5569 - properties: { 5570 - [k: string]: { 5571 - /** 5572 - * The data type of the parameter. 5573 - */ 5574 - type: string; 5575 - /** 5576 - * A description of the expected parameter. 5577 - */ 5578 - description: string; 5579 - }; 5580 - }; 5581 - }; 5582 - } | { 5583 - /** 5584 - * Specifies the type of tool (e.g., 'function'). 5585 - */ 5586 - type: string; 5587 - /** 5588 - * Details of the function tool. 5589 - */ 5590 - function: { 5591 - /** 5592 - * The name of the function. 5593 - */ 5594 - name: string; 5595 - /** 5596 - * A brief description of what the function does. 5597 - */ 5598 - description: string; 5599 - /** 5600 - * Schema defining the parameters accepted by the function. 5601 - */ 5602 - parameters: { 5603 - /** 5604 - * The type of the parameters object (usually 'object'). 5605 - */ 5606 - type: string; 5607 - /** 5608 - * List of required parameter names. 5609 - */ 5610 - required?: string[]; 5611 - /** 5612 - * Definitions of each parameter. 5613 - */ 5614 - properties: { 5615 - [k: string]: { 5616 - /** 5617 - * The data type of the parameter. 5618 - */ 5619 - type: string; 5620 - /** 5621 - * A description of the expected parameter. 5622 - */ 5623 - description: string; 5624 - }; 5625 - }; 5626 - }; 5627 - }; 5628 - })[]; 5629 - /** 5630 - * JSON schema that should be fufilled for the response. 5631 - */ 5632 - guided_json?: object; 5633 - /** 5634 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5635 - */ 5636 - raw?: boolean; 5637 - /** 5638 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5639 - */ 5640 - stream?: boolean; 5641 - /** 5642 - * The maximum number of tokens to generate in the response. 5643 - */ 5644 - max_tokens?: number; 5645 - /** 5646 - * Controls the randomness of the output; higher values produce more random results. 5647 - */ 5648 - temperature?: number; 5649 - /** 5650 - * 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. 5651 - */ 5652 - top_p?: number; 5653 - /** 5654 - * 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. 5655 - */ 5656 - top_k?: number; 5657 - /** 5658 - * Random seed for reproducibility of the generation. 5659 - */ 5660 - seed?: number; 5661 - /** 5662 - * Penalty for repeated tokens; higher values discourage repetition. 5663 - */ 5664 - repetition_penalty?: number; 5665 - /** 5666 - * Decreases the likelihood of the model repeating the same lines verbatim. 5667 - */ 5668 - frequency_penalty?: number; 5669 - /** 5670 - * Increases the likelihood of the model introducing new topics. 5671 - */ 5672 - presence_penalty?: number; 5673 - } 5674 - type Ai_Cf_Google_Gemma_3_12B_It_Output = { 5675 - /** 5676 - * The generated text response from the model 5677 - */ 5678 - response: string; 5679 - /** 5680 - * Usage statistics for the inference request 5681 - */ 5682 - usage?: { 5683 - /** 5684 - * Total number of tokens in input 5685 - */ 5686 - prompt_tokens?: number; 5687 - /** 5688 - * Total number of tokens in output 5689 - */ 5690 - completion_tokens?: number; 5691 - /** 5692 - * Total number of input and output tokens 5693 - */ 5694 - total_tokens?: number; 5695 - }; 5696 - /** 5697 - * An array of tool calls requests made during the response generation 5698 - */ 5699 - tool_calls?: { 5700 - /** 5701 - * The arguments passed to be passed to the tool call request 5702 - */ 5703 - arguments?: object; 5704 - /** 5705 - * The name of the tool to be called 5706 - */ 5707 - name?: string; 5708 - }[]; 5709 - }; 5710 - declare abstract class Base_Ai_Cf_Google_Gemma_3_12B_It { 5711 - inputs: Ai_Cf_Google_Gemma_3_12B_It_Input; 5712 - postProcessedOutputs: Ai_Cf_Google_Gemma_3_12B_It_Output; 5713 - } 5714 - type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input = Ai_Cf_Meta_Llama_4_Prompt | Ai_Cf_Meta_Llama_4_Messages | Ai_Cf_Meta_Llama_4_Async_Batch; 5715 - interface Ai_Cf_Meta_Llama_4_Prompt { 5716 - /** 5717 - * The input text prompt for the model to generate a response. 5718 - */ 5719 - prompt: string; 5720 - /** 5721 - * JSON schema that should be fulfilled for the response. 5722 - */ 5723 - guided_json?: object; 5724 - response_format?: JSONMode; 5725 - /** 5726 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5727 - */ 5728 - raw?: boolean; 5729 - /** 5730 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5731 - */ 5732 - stream?: boolean; 5733 - /** 5734 - * The maximum number of tokens to generate in the response. 5735 - */ 5736 - max_tokens?: number; 5737 - /** 5738 - * Controls the randomness of the output; higher values produce more random results. 5739 - */ 5740 - temperature?: number; 5741 - /** 5742 - * 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. 5743 - */ 5744 - top_p?: number; 5745 - /** 5746 - * 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. 5747 - */ 5748 - top_k?: number; 5749 - /** 5750 - * Random seed for reproducibility of the generation. 5751 - */ 5752 - seed?: number; 5753 - /** 5754 - * Penalty for repeated tokens; higher values discourage repetition. 5755 - */ 5756 - repetition_penalty?: number; 5757 - /** 5758 - * Decreases the likelihood of the model repeating the same lines verbatim. 5759 - */ 5760 - frequency_penalty?: number; 5761 - /** 5762 - * Increases the likelihood of the model introducing new topics. 5763 - */ 5764 - presence_penalty?: number; 5765 - } 5766 - interface Ai_Cf_Meta_Llama_4_Messages { 5767 - /** 5768 - * An array of message objects representing the conversation history. 5769 - */ 5770 - messages: { 5771 - /** 5772 - * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 5773 - */ 5774 - role?: string; 5775 - /** 5776 - * The tool call id. If you don't know what to put here you can fall back to 000000001 5777 - */ 5778 - tool_call_id?: string; 5779 - content?: string | { 5780 - /** 5781 - * Type of the content provided 5782 - */ 5783 - type?: string; 5784 - text?: string; 5785 - image_url?: { 5786 - /** 5787 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5788 - */ 5789 - url?: string; 5790 - }; 5791 - }[] | { 5792 - /** 5793 - * Type of the content provided 5794 - */ 5795 - type?: string; 5796 - text?: string; 5797 - image_url?: { 5798 - /** 5799 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 5800 - */ 5801 - url?: string; 5802 - }; 5803 - }; 5804 - }[]; 5805 - functions?: { 5806 - name: string; 5807 - code: string; 5808 - }[]; 5809 - /** 5810 - * A list of tools available for the assistant to use. 5811 - */ 5812 - tools?: ({ 5813 - /** 5814 - * The name of the tool. More descriptive the better. 5815 - */ 5816 - name: string; 5817 - /** 5818 - * A brief description of what the tool does. 5819 - */ 5820 - description: string; 5821 - /** 5822 - * Schema defining the parameters accepted by the tool. 5823 - */ 5824 - parameters: { 5825 - /** 5826 - * The type of the parameters object (usually 'object'). 5827 - */ 5828 - type: string; 5829 - /** 5830 - * List of required parameter names. 5831 - */ 5832 - required?: string[]; 5833 - /** 5834 - * Definitions of each parameter. 5835 - */ 5836 - properties: { 5837 - [k: string]: { 5838 - /** 5839 - * The data type of the parameter. 5840 - */ 5841 - type: string; 5842 - /** 5843 - * A description of the expected parameter. 5844 - */ 5845 - description: string; 5846 - }; 5847 - }; 5848 - }; 5849 - } | { 5850 - /** 5851 - * Specifies the type of tool (e.g., 'function'). 5852 - */ 5853 - type: string; 5854 - /** 5855 - * Details of the function tool. 5856 - */ 5857 - function: { 5858 - /** 5859 - * The name of the function. 5860 - */ 5861 - name: string; 5862 - /** 5863 - * A brief description of what the function does. 5864 - */ 5865 - description: string; 5866 - /** 5867 - * Schema defining the parameters accepted by the function. 5868 - */ 5869 - parameters: { 5870 - /** 5871 - * The type of the parameters object (usually 'object'). 5872 - */ 5873 - type: string; 5874 - /** 5875 - * List of required parameter names. 5876 - */ 5877 - required?: string[]; 5878 - /** 5879 - * Definitions of each parameter. 5880 - */ 5881 - properties: { 5882 - [k: string]: { 5883 - /** 5884 - * The data type of the parameter. 5885 - */ 5886 - type: string; 5887 - /** 5888 - * A description of the expected parameter. 5889 - */ 5890 - description: string; 5891 - }; 5892 - }; 5893 - }; 5894 - }; 5895 - })[]; 5896 - response_format?: JSONMode; 5897 - /** 5898 - * JSON schema that should be fufilled for the response. 5899 - */ 5900 - guided_json?: object; 5901 - /** 5902 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5903 - */ 5904 - raw?: boolean; 5905 - /** 5906 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5907 - */ 5908 - stream?: boolean; 5909 - /** 5910 - * The maximum number of tokens to generate in the response. 5911 - */ 5912 - max_tokens?: number; 5913 - /** 5914 - * Controls the randomness of the output; higher values produce more random results. 5915 - */ 5916 - temperature?: number; 5917 - /** 5918 - * 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. 5919 - */ 5920 - top_p?: number; 5921 - /** 5922 - * 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. 5923 - */ 5924 - top_k?: number; 5925 - /** 5926 - * Random seed for reproducibility of the generation. 5927 - */ 5928 - seed?: number; 5929 - /** 5930 - * Penalty for repeated tokens; higher values discourage repetition. 5931 - */ 5932 - repetition_penalty?: number; 5933 - /** 5934 - * Decreases the likelihood of the model repeating the same lines verbatim. 5935 - */ 5936 - frequency_penalty?: number; 5937 - /** 5938 - * Increases the likelihood of the model introducing new topics. 5939 - */ 5940 - presence_penalty?: number; 5941 - } 5942 - interface Ai_Cf_Meta_Llama_4_Async_Batch { 5943 - requests: (Ai_Cf_Meta_Llama_4_Prompt_Inner | Ai_Cf_Meta_Llama_4_Messages_Inner)[]; 5944 - } 5945 - interface Ai_Cf_Meta_Llama_4_Prompt_Inner { 5946 - /** 5947 - * The input text prompt for the model to generate a response. 5948 - */ 5949 - prompt: string; 5950 - /** 5951 - * JSON schema that should be fulfilled for the response. 5952 - */ 5953 - guided_json?: object; 5954 - response_format?: JSONMode; 5955 - /** 5956 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 5957 - */ 5958 - raw?: boolean; 5959 - /** 5960 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 5961 - */ 5962 - stream?: boolean; 5963 - /** 5964 - * The maximum number of tokens to generate in the response. 5965 - */ 5966 - max_tokens?: number; 5967 - /** 5968 - * Controls the randomness of the output; higher values produce more random results. 5969 - */ 5970 - temperature?: number; 5971 - /** 5972 - * 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. 5973 - */ 5974 - top_p?: number; 5975 - /** 5976 - * 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. 5977 - */ 5978 - top_k?: number; 5979 - /** 5980 - * Random seed for reproducibility of the generation. 5981 - */ 5982 - seed?: number; 5983 - /** 5984 - * Penalty for repeated tokens; higher values discourage repetition. 5985 - */ 5986 - repetition_penalty?: number; 5987 - /** 5988 - * Decreases the likelihood of the model repeating the same lines verbatim. 5989 - */ 5990 - frequency_penalty?: number; 5991 - /** 5992 - * Increases the likelihood of the model introducing new topics. 5993 - */ 5994 - presence_penalty?: number; 5995 - } 5996 - interface Ai_Cf_Meta_Llama_4_Messages_Inner { 5997 - /** 5998 - * An array of message objects representing the conversation history. 5999 - */ 6000 - messages: { 6001 - /** 6002 - * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). 6003 - */ 6004 - role?: string; 6005 - /** 6006 - * The tool call id. If you don't know what to put here you can fall back to 000000001 6007 - */ 6008 - tool_call_id?: string; 6009 - content?: string | { 6010 - /** 6011 - * Type of the content provided 6012 - */ 6013 - type?: string; 6014 - text?: string; 6015 - image_url?: { 6016 - /** 6017 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 6018 - */ 6019 - url?: string; 6020 - }; 6021 - }[] | { 6022 - /** 6023 - * Type of the content provided 6024 - */ 6025 - type?: string; 6026 - text?: string; 6027 - image_url?: { 6028 - /** 6029 - * image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted 6030 - */ 6031 - url?: string; 6032 - }; 6033 - }; 6034 - }[]; 6035 - functions?: { 6036 - name: string; 6037 - code: string; 6038 - }[]; 6039 - /** 6040 - * A list of tools available for the assistant to use. 6041 - */ 6042 - tools?: ({ 6043 - /** 6044 - * The name of the tool. More descriptive the better. 6045 - */ 6046 - name: string; 6047 - /** 6048 - * A brief description of what the tool does. 6049 - */ 6050 - description: string; 6051 - /** 6052 - * Schema defining the parameters accepted by the tool. 6053 - */ 6054 - parameters: { 6055 - /** 6056 - * The type of the parameters object (usually 'object'). 6057 - */ 6058 - type: string; 6059 - /** 6060 - * List of required parameter names. 6061 - */ 6062 - required?: string[]; 6063 - /** 6064 - * Definitions of each parameter. 6065 - */ 6066 - properties: { 6067 - [k: string]: { 6068 - /** 6069 - * The data type of the parameter. 6070 - */ 6071 - type: string; 6072 - /** 6073 - * A description of the expected parameter. 6074 - */ 6075 - description: string; 6076 - }; 6077 - }; 6078 - }; 6079 - } | { 6080 - /** 6081 - * Specifies the type of tool (e.g., 'function'). 6082 - */ 6083 - type: string; 6084 - /** 6085 - * Details of the function tool. 6086 - */ 6087 - function: { 6088 - /** 6089 - * The name of the function. 6090 - */ 6091 - name: string; 6092 - /** 6093 - * A brief description of what the function does. 6094 - */ 6095 - description: string; 6096 - /** 6097 - * Schema defining the parameters accepted by the function. 6098 - */ 6099 - parameters: { 6100 - /** 6101 - * The type of the parameters object (usually 'object'). 6102 - */ 6103 - type: string; 6104 - /** 6105 - * List of required parameter names. 6106 - */ 6107 - required?: string[]; 6108 - /** 6109 - * Definitions of each parameter. 6110 - */ 6111 - properties: { 6112 - [k: string]: { 6113 - /** 6114 - * The data type of the parameter. 6115 - */ 6116 - type: string; 6117 - /** 6118 - * A description of the expected parameter. 6119 - */ 6120 - description: string; 6121 - }; 6122 - }; 6123 - }; 6124 - }; 6125 - })[]; 6126 - response_format?: JSONMode; 6127 - /** 6128 - * JSON schema that should be fufilled for the response. 6129 - */ 6130 - guided_json?: object; 6131 - /** 6132 - * If true, a chat template is not applied and you must adhere to the specific model's expected formatting. 6133 - */ 6134 - raw?: boolean; 6135 - /** 6136 - * If true, the response will be streamed back incrementally using SSE, Server Sent Events. 6137 - */ 6138 - stream?: boolean; 6139 - /** 6140 - * The maximum number of tokens to generate in the response. 6141 - */ 6142 - max_tokens?: number; 6143 - /** 6144 - * Controls the randomness of the output; higher values produce more random results. 6145 - */ 6146 - temperature?: number; 6147 - /** 6148 - * 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. 6149 - */ 6150 - top_p?: number; 6151 - /** 6152 - * 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. 6153 - */ 6154 - top_k?: number; 6155 - /** 6156 - * Random seed for reproducibility of the generation. 6157 - */ 6158 - seed?: number; 6159 - /** 6160 - * Penalty for repeated tokens; higher values discourage repetition. 6161 - */ 6162 - repetition_penalty?: number; 6163 - /** 6164 - * Decreases the likelihood of the model repeating the same lines verbatim. 6165 - */ 6166 - frequency_penalty?: number; 6167 - /** 6168 - * Increases the likelihood of the model introducing new topics. 6169 - */ 6170 - presence_penalty?: number; 6171 - } 6172 - type Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output = { 6173 - /** 6174 - * The generated text response from the model 6175 - */ 6176 - response: string; 6177 - /** 6178 - * Usage statistics for the inference request 6179 - */ 6180 - usage?: { 6181 - /** 6182 - * Total number of tokens in input 6183 - */ 6184 - prompt_tokens?: number; 6185 - /** 6186 - * Total number of tokens in output 6187 - */ 6188 - completion_tokens?: number; 6189 - /** 6190 - * Total number of input and output tokens 6191 - */ 6192 - total_tokens?: number; 6193 - }; 6194 - /** 6195 - * An array of tool calls requests made during the response generation 6196 - */ 6197 - tool_calls?: { 6198 - /** 6199 - * The tool call id. 6200 - */ 6201 - id?: string; 6202 - /** 6203 - * Specifies the type of tool (e.g., 'function'). 6204 - */ 6205 - type?: string; 6206 - /** 6207 - * Details of the function tool. 6208 - */ 6209 - function?: { 6210 - /** 6211 - * The name of the tool to be called 6212 - */ 6213 - name?: string; 6214 - /** 6215 - * The arguments passed to be passed to the tool call request 6216 - */ 6217 - arguments?: object; 6218 - }; 6219 - }[]; 6220 - }; 6221 - declare abstract class Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct { 6222 - inputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input; 6223 - postProcessedOutputs: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output; 6224 - } 6225 - interface Ai_Cf_Deepgram_Nova_3_Input { 6226 - audio: { 6227 - body: object; 6228 - contentType: string; 6229 - }; 6230 - /** 6231 - * 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. 6232 - */ 6233 - custom_topic_mode?: "extended" | "strict"; 6234 - /** 6235 - * Custom topics you want the model to detect within your input audio or text if present Submit up to 100 6236 - */ 6237 - custom_topic?: string; 6238 - /** 6239 - * 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 6240 - */ 6241 - custom_intent_mode?: "extended" | "strict"; 6242 - /** 6243 - * Custom intents you want the model to detect within your input audio if present 6244 - */ 6245 - custom_intent?: string; 6246 - /** 6247 - * Identifies and extracts key entities from content in submitted audio 6248 - */ 6249 - detect_entities?: boolean; 6250 - /** 6251 - * Identifies the dominant language spoken in submitted audio 6252 - */ 6253 - detect_language?: boolean; 6254 - /** 6255 - * Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 6256 - */ 6257 - diarize?: boolean; 6258 - /** 6259 - * Identify and extract key entities from content in submitted audio 6260 - */ 6261 - dictation?: boolean; 6262 - /** 6263 - * Specify the expected encoding of your submitted audio 6264 - */ 6265 - encoding?: "linear16" | "flac" | "mulaw" | "amr-nb" | "amr-wb" | "opus" | "speex" | "g729"; 6266 - /** 6267 - * Arbitrary key-value pairs that are attached to the API response for usage in downstream processing 6268 - */ 6269 - extra?: string; 6270 - /** 6271 - * Filler Words can help transcribe interruptions in your audio, like 'uh' and 'um' 6272 - */ 6273 - filler_words?: boolean; 6274 - /** 6275 - * Key term prompting can boost or suppress specialized terminology and brands. 6276 - */ 6277 - keyterm?: string; 6278 - /** 6279 - * Keywords can boost or suppress specialized terminology and brands. 6280 - */ 6281 - keywords?: string; 6282 - /** 6283 - * 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. 6284 - */ 6285 - language?: string; 6286 - /** 6287 - * Spoken measurements will be converted to their corresponding abbreviations. 6288 - */ 6289 - measurements?: boolean; 6290 - /** 6291 - * 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. 6292 - */ 6293 - mip_opt_out?: boolean; 6294 - /** 6295 - * Mode of operation for the model representing broad area of topic that will be talked about in the supplied audio 6296 - */ 6297 - mode?: "general" | "medical" | "finance"; 6298 - /** 6299 - * Transcribe each audio channel independently. 6300 - */ 6301 - multichannel?: boolean; 6302 - /** 6303 - * Numerals converts numbers from written format to numerical format. 6304 - */ 6305 - numerals?: boolean; 6306 - /** 6307 - * Splits audio into paragraphs to improve transcript readability. 6308 - */ 6309 - paragraphs?: boolean; 6310 - /** 6311 - * Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely. 6312 - */ 6313 - profanity_filter?: boolean; 6314 - /** 6315 - * Add punctuation and capitalization to the transcript. 6316 - */ 6317 - punctuate?: boolean; 6318 - /** 6319 - * Redaction removes sensitive information from your transcripts. 6320 - */ 6321 - redact?: string; 6322 - /** 6323 - * Search for terms or phrases in submitted audio and replaces them. 6324 - */ 6325 - replace?: string; 6326 - /** 6327 - * Search for terms or phrases in submitted audio. 6328 - */ 6329 - search?: string; 6330 - /** 6331 - * Recognizes the sentiment throughout a transcript or text. 6332 - */ 6333 - sentiment?: boolean; 6334 - /** 6335 - * Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability. 6336 - */ 6337 - smart_format?: boolean; 6338 - /** 6339 - * Detect topics throughout a transcript or text. 6340 - */ 6341 - topics?: boolean; 6342 - /** 6343 - * Segments speech into meaningful semantic units. 6344 - */ 6345 - utterances?: boolean; 6346 - /** 6347 - * Seconds to wait before detecting a pause between words in submitted audio. 6348 - */ 6349 - utt_split?: number; 6350 - /** 6351 - * The number of channels in the submitted audio 6352 - */ 6353 - channels?: number; 6354 - /** 6355 - * 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. 6356 - */ 6357 - interim_results?: boolean; 6358 - /** 6359 - * 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 6360 - */ 6361 - endpointing?: string; 6362 - /** 6363 - * Indicates that speech has started. You'll begin receiving Speech Started messages upon speech starting. Note: Supported only for webosockets. 6364 - */ 6365 - vad_events?: boolean; 6366 - /** 6367 - * 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. 6368 - */ 6369 - utterance_end_ms?: boolean; 6370 - } 6371 - interface Ai_Cf_Deepgram_Nova_3_Output { 6372 - results?: { 6373 - channels?: { 6374 - alternatives?: { 6375 - confidence?: number; 6376 - transcript?: string; 6377 - words?: { 6378 - confidence?: number; 6379 - end?: number; 6380 - start?: number; 6381 - word?: string; 6382 - }[]; 6383 - }[]; 6384 - }[]; 6385 - summary?: { 6386 - result?: string; 6387 - short?: string; 6388 - }; 6389 - sentiments?: { 6390 - segments?: { 6391 - text?: string; 6392 - start_word?: number; 6393 - end_word?: number; 6394 - sentiment?: string; 6395 - sentiment_score?: number; 6396 - }[]; 6397 - average?: { 6398 - sentiment?: string; 6399 - sentiment_score?: number; 6400 - }; 6401 - }; 6402 - }; 6403 - } 6404 - declare abstract class Base_Ai_Cf_Deepgram_Nova_3 { 6405 - inputs: Ai_Cf_Deepgram_Nova_3_Input; 6406 - postProcessedOutputs: Ai_Cf_Deepgram_Nova_3_Output; 6407 - } 6408 - type Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input = { 6409 - /** 6410 - * readable stream with audio data and content-type specified for that data 6411 - */ 6412 - audio: { 6413 - body: object; 6414 - contentType: string; 6415 - }; 6416 - /** 6417 - * type of data PCM data that's sent to the inference server as raw array 6418 - */ 6419 - dtype?: "uint8" | "float32" | "float64"; 6420 - } | { 6421 - /** 6422 - * base64 encoded audio data 6423 - */ 6424 - audio: string; 6425 - /** 6426 - * type of data PCM data that's sent to the inference server as raw array 6427 - */ 6428 - dtype?: "uint8" | "float32" | "float64"; 6429 - }; 6430 - interface Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output { 6431 - /** 6432 - * if true, end-of-turn was detected 6433 - */ 6434 - is_complete?: boolean; 6435 - /** 6436 - * probability of the end-of-turn detection 6437 - */ 6438 - probability?: number; 6439 - } 6440 - declare abstract class Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2 { 6441 - inputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input; 6442 - postProcessedOutputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output; 6443 - } 6444 - type Ai_Cf_Openai_Gpt_Oss_120B_Input = GPT_OSS_120B_Responses | GPT_OSS_120B_Responses_Async; 6445 - interface GPT_OSS_120B_Responses { 6446 - /** 6447 - * Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types 6448 - */ 6449 - input: string | unknown[]; 6450 - reasoning?: { 6451 - /** 6452 - * Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. 6453 - */ 6454 - effort?: "low" | "medium" | "high"; 6455 - /** 6456 - * A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. 6457 - */ 6458 - summary?: "auto" | "concise" | "detailed"; 6459 - }; 6460 - } 6461 - interface GPT_OSS_120B_Responses_Async { 6462 - requests: { 6463 - /** 6464 - * Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types 6465 - */ 6466 - input: string | unknown[]; 6467 - reasoning?: { 6468 - /** 6469 - * Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. 6470 - */ 6471 - effort?: "low" | "medium" | "high"; 6472 - /** 6473 - * A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. 6474 - */ 6475 - summary?: "auto" | "concise" | "detailed"; 6476 - }; 6477 - }[]; 6478 - } 6479 - type Ai_Cf_Openai_Gpt_Oss_120B_Output = {} | (string & NonNullable<unknown>); 6480 - declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_120B { 6481 - inputs: Ai_Cf_Openai_Gpt_Oss_120B_Input; 6482 - postProcessedOutputs: Ai_Cf_Openai_Gpt_Oss_120B_Output; 6483 - } 6484 - type Ai_Cf_Openai_Gpt_Oss_20B_Input = GPT_OSS_20B_Responses | GPT_OSS_20B_Responses_Async; 6485 - interface GPT_OSS_20B_Responses { 6486 - /** 6487 - * Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types 6488 - */ 6489 - input: string | unknown[]; 6490 - reasoning?: { 6491 - /** 6492 - * Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. 6493 - */ 6494 - effort?: "low" | "medium" | "high"; 6495 - /** 6496 - * A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. 6497 - */ 6498 - summary?: "auto" | "concise" | "detailed"; 6499 - }; 6500 - } 6501 - interface GPT_OSS_20B_Responses_Async { 6502 - requests: { 6503 - /** 6504 - * Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types 6505 - */ 6506 - input: string | unknown[]; 6507 - reasoning?: { 6508 - /** 6509 - * Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. 6510 - */ 6511 - effort?: "low" | "medium" | "high"; 6512 - /** 6513 - * A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. 6514 - */ 6515 - summary?: "auto" | "concise" | "detailed"; 6516 - }; 6517 - }[]; 6518 - } 6519 - type Ai_Cf_Openai_Gpt_Oss_20B_Output = {} | (string & NonNullable<unknown>); 6520 - declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_20B { 6521 - inputs: Ai_Cf_Openai_Gpt_Oss_20B_Input; 6522 - postProcessedOutputs: Ai_Cf_Openai_Gpt_Oss_20B_Output; 6523 - } 6524 - interface Ai_Cf_Leonardo_Phoenix_1_0_Input { 6525 - /** 6526 - * A text description of the image you want to generate. 6527 - */ 6528 - prompt: string; 6529 - /** 6530 - * Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt 6531 - */ 6532 - guidance?: number; 6533 - /** 6534 - * Random seed for reproducibility of the image generation 6535 - */ 6536 - seed?: number; 6537 - /** 6538 - * The height of the generated image in pixels 6539 - */ 6540 - height?: number; 6541 - /** 6542 - * The width of the generated image in pixels 6543 - */ 6544 - width?: number; 6545 - /** 6546 - * The number of diffusion steps; higher values can improve quality but take longer 6547 - */ 6548 - num_steps?: number; 6549 - /** 6550 - * Specify what to exclude from the generated images 6551 - */ 6552 - negative_prompt?: string; 6553 - } 6554 - /** 6555 - * The generated image in JPEG format 6556 - */ 6557 - type Ai_Cf_Leonardo_Phoenix_1_0_Output = string; 6558 - declare abstract class Base_Ai_Cf_Leonardo_Phoenix_1_0 { 6559 - inputs: Ai_Cf_Leonardo_Phoenix_1_0_Input; 6560 - postProcessedOutputs: Ai_Cf_Leonardo_Phoenix_1_0_Output; 6561 - } 6562 - interface Ai_Cf_Leonardo_Lucid_Origin_Input { 6563 - /** 6564 - * A text description of the image you want to generate. 6565 - */ 6566 - prompt: string; 6567 - /** 6568 - * Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt 6569 - */ 6570 - guidance?: number; 6571 - /** 6572 - * Random seed for reproducibility of the image generation 6573 - */ 6574 - seed?: number; 6575 - /** 6576 - * The height of the generated image in pixels 6577 - */ 6578 - height?: number; 6579 - /** 6580 - * The width of the generated image in pixels 6581 - */ 6582 - width?: number; 6583 - /** 6584 - * The number of diffusion steps; higher values can improve quality but take longer 6585 - */ 6586 - num_steps?: number; 6587 - /** 6588 - * The number of diffusion steps; higher values can improve quality but take longer 6589 - */ 6590 - steps?: number; 6591 - } 6592 - interface Ai_Cf_Leonardo_Lucid_Origin_Output { 6593 - /** 6594 - * The generated image in Base64 format. 6595 - */ 6596 - image?: string; 6597 - } 6598 - declare abstract class Base_Ai_Cf_Leonardo_Lucid_Origin { 6599 - inputs: Ai_Cf_Leonardo_Lucid_Origin_Input; 6600 - postProcessedOutputs: Ai_Cf_Leonardo_Lucid_Origin_Output; 6601 - } 6602 - interface Ai_Cf_Deepgram_Aura_1_Input { 6603 - /** 6604 - * Speaker used to produce the audio. 6605 - */ 6606 - speaker?: "angus" | "asteria" | "arcas" | "orion" | "orpheus" | "athena" | "luna" | "zeus" | "perseus" | "helios" | "hera" | "stella"; 6607 - /** 6608 - * Encoding of the output audio. 6609 - */ 6610 - encoding?: "linear16" | "flac" | "mulaw" | "alaw" | "mp3" | "opus" | "aac"; 6611 - /** 6612 - * Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. 6613 - */ 6614 - container?: "none" | "wav" | "ogg"; 6615 - /** 6616 - * The text content to be converted to speech 6617 - */ 6618 - text: string; 6619 - /** 6620 - * 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 6621 - */ 6622 - sample_rate?: number; 6623 - /** 6624 - * The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. 6625 - */ 6626 - bit_rate?: number; 6627 - } 6628 - /** 6629 - * The generated audio in MP3 format 6630 - */ 6631 - type Ai_Cf_Deepgram_Aura_1_Output = string; 6632 - declare abstract class Base_Ai_Cf_Deepgram_Aura_1 { 6633 - inputs: Ai_Cf_Deepgram_Aura_1_Input; 6634 - postProcessedOutputs: Ai_Cf_Deepgram_Aura_1_Output; 6635 - } 6636 - interface AiModels { 6637 - "@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification; 6638 - "@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage; 6639 - "@cf/runwayml/stable-diffusion-v1-5-inpainting": BaseAiTextToImage; 6640 - "@cf/runwayml/stable-diffusion-v1-5-img2img": BaseAiTextToImage; 6641 - "@cf/lykon/dreamshaper-8-lcm": BaseAiTextToImage; 6642 - "@cf/bytedance/stable-diffusion-xl-lightning": BaseAiTextToImage; 6643 - "@cf/myshell-ai/melotts": BaseAiTextToSpeech; 6644 - "@cf/google/embeddinggemma-300m": BaseAiTextEmbeddings; 6645 - "@cf/microsoft/resnet-50": BaseAiImageClassification; 6646 - "@cf/meta/llama-2-7b-chat-int8": BaseAiTextGeneration; 6647 - "@cf/mistral/mistral-7b-instruct-v0.1": BaseAiTextGeneration; 6648 - "@cf/meta/llama-2-7b-chat-fp16": BaseAiTextGeneration; 6649 - "@hf/thebloke/llama-2-13b-chat-awq": BaseAiTextGeneration; 6650 - "@hf/thebloke/mistral-7b-instruct-v0.1-awq": BaseAiTextGeneration; 6651 - "@hf/thebloke/zephyr-7b-beta-awq": BaseAiTextGeneration; 6652 - "@hf/thebloke/openhermes-2.5-mistral-7b-awq": BaseAiTextGeneration; 6653 - "@hf/thebloke/neural-chat-7b-v3-1-awq": BaseAiTextGeneration; 6654 - "@hf/thebloke/llamaguard-7b-awq": BaseAiTextGeneration; 6655 - "@hf/thebloke/deepseek-coder-6.7b-base-awq": BaseAiTextGeneration; 6656 - "@hf/thebloke/deepseek-coder-6.7b-instruct-awq": BaseAiTextGeneration; 6657 - "@cf/deepseek-ai/deepseek-math-7b-instruct": BaseAiTextGeneration; 6658 - "@cf/defog/sqlcoder-7b-2": BaseAiTextGeneration; 6659 - "@cf/openchat/openchat-3.5-0106": BaseAiTextGeneration; 6660 - "@cf/tiiuae/falcon-7b-instruct": BaseAiTextGeneration; 6661 - "@cf/thebloke/discolm-german-7b-v1-awq": BaseAiTextGeneration; 6662 - "@cf/qwen/qwen1.5-0.5b-chat": BaseAiTextGeneration; 6663 - "@cf/qwen/qwen1.5-7b-chat-awq": BaseAiTextGeneration; 6664 - "@cf/qwen/qwen1.5-14b-chat-awq": BaseAiTextGeneration; 6665 - "@cf/tinyllama/tinyllama-1.1b-chat-v1.0": BaseAiTextGeneration; 6666 - "@cf/microsoft/phi-2": BaseAiTextGeneration; 6667 - "@cf/qwen/qwen1.5-1.8b-chat": BaseAiTextGeneration; 6668 - "@cf/mistral/mistral-7b-instruct-v0.2-lora": BaseAiTextGeneration; 6669 - "@hf/nousresearch/hermes-2-pro-mistral-7b": BaseAiTextGeneration; 6670 - "@hf/nexusflow/starling-lm-7b-beta": BaseAiTextGeneration; 6671 - "@hf/google/gemma-7b-it": BaseAiTextGeneration; 6672 - "@cf/meta-llama/llama-2-7b-chat-hf-lora": BaseAiTextGeneration; 6673 - "@cf/google/gemma-2b-it-lora": BaseAiTextGeneration; 6674 - "@cf/google/gemma-7b-it-lora": BaseAiTextGeneration; 6675 - "@hf/mistral/mistral-7b-instruct-v0.2": BaseAiTextGeneration; 6676 - "@cf/meta/llama-3-8b-instruct": BaseAiTextGeneration; 6677 - "@cf/fblgit/una-cybertron-7b-v2-bf16": BaseAiTextGeneration; 6678 - "@cf/meta/llama-3-8b-instruct-awq": BaseAiTextGeneration; 6679 - "@hf/meta-llama/meta-llama-3-8b-instruct": BaseAiTextGeneration; 6680 - "@cf/meta/llama-3.1-8b-instruct-fp8": BaseAiTextGeneration; 6681 - "@cf/meta/llama-3.1-8b-instruct-awq": BaseAiTextGeneration; 6682 - "@cf/meta/llama-3.2-3b-instruct": BaseAiTextGeneration; 6683 - "@cf/meta/llama-3.2-1b-instruct": BaseAiTextGeneration; 6684 - "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b": BaseAiTextGeneration; 6685 - "@cf/facebook/bart-large-cnn": BaseAiSummarization; 6686 - "@cf/llava-hf/llava-1.5-7b-hf": BaseAiImageToText; 6687 - "@cf/baai/bge-base-en-v1.5": Base_Ai_Cf_Baai_Bge_Base_En_V1_5; 6688 - "@cf/openai/whisper": Base_Ai_Cf_Openai_Whisper; 6689 - "@cf/meta/m2m100-1.2b": Base_Ai_Cf_Meta_M2M100_1_2B; 6690 - "@cf/baai/bge-small-en-v1.5": Base_Ai_Cf_Baai_Bge_Small_En_V1_5; 6691 - "@cf/baai/bge-large-en-v1.5": Base_Ai_Cf_Baai_Bge_Large_En_V1_5; 6692 - "@cf/unum/uform-gen2-qwen-500m": Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M; 6693 - "@cf/openai/whisper-tiny-en": Base_Ai_Cf_Openai_Whisper_Tiny_En; 6694 - "@cf/openai/whisper-large-v3-turbo": Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo; 6695 - "@cf/baai/bge-m3": Base_Ai_Cf_Baai_Bge_M3; 6696 - "@cf/black-forest-labs/flux-1-schnell": Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell; 6697 - "@cf/meta/llama-3.2-11b-vision-instruct": Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct; 6698 - "@cf/meta/llama-3.3-70b-instruct-fp8-fast": Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast; 6699 - "@cf/meta/llama-guard-3-8b": Base_Ai_Cf_Meta_Llama_Guard_3_8B; 6700 - "@cf/baai/bge-reranker-base": Base_Ai_Cf_Baai_Bge_Reranker_Base; 6701 - "@cf/qwen/qwen2.5-coder-32b-instruct": Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct; 6702 - "@cf/qwen/qwq-32b": Base_Ai_Cf_Qwen_Qwq_32B; 6703 - "@cf/mistralai/mistral-small-3.1-24b-instruct": Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct; 6704 - "@cf/google/gemma-3-12b-it": Base_Ai_Cf_Google_Gemma_3_12B_It; 6705 - "@cf/meta/llama-4-scout-17b-16e-instruct": Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct; 6706 - "@cf/deepgram/nova-3": Base_Ai_Cf_Deepgram_Nova_3; 6707 - "@cf/pipecat-ai/smart-turn-v2": Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2; 6708 - "@cf/openai/gpt-oss-120b": Base_Ai_Cf_Openai_Gpt_Oss_120B; 6709 - "@cf/openai/gpt-oss-20b": Base_Ai_Cf_Openai_Gpt_Oss_20B; 6710 - "@cf/leonardo/phoenix-1.0": Base_Ai_Cf_Leonardo_Phoenix_1_0; 6711 - "@cf/leonardo/lucid-origin": Base_Ai_Cf_Leonardo_Lucid_Origin; 6712 - "@cf/deepgram/aura-1": Base_Ai_Cf_Deepgram_Aura_1; 6713 - } 6714 - type AiOptions = { 6715 - /** 6716 - * Send requests as an asynchronous batch job, only works for supported models 6717 - * https://developers.cloudflare.com/workers-ai/features/batch-api 6718 - */ 6719 - queueRequest?: boolean; 6720 - /** 6721 - * Establish websocket connections, only works for supported models 6722 - */ 6723 - websocket?: boolean; 6724 - gateway?: GatewayOptions; 6725 - returnRawResponse?: boolean; 6726 - prefix?: string; 6727 - extraHeaders?: object; 6728 - }; 6729 - type AiModelsSearchParams = { 6730 - author?: string; 6731 - hide_experimental?: boolean; 6732 - page?: number; 6733 - per_page?: number; 6734 - search?: string; 6735 - source?: number; 6736 - task?: string; 6737 - }; 6738 - type AiModelsSearchObject = { 6739 - id: string; 6740 - source: number; 6741 - name: string; 6742 - description: string; 6743 - task: { 6744 - id: string; 6745 - name: string; 6746 - description: string; 6747 - }; 6748 - tags: string[]; 6749 - properties: { 6750 - property_id: string; 6751 - value: string; 6752 - }[]; 6753 - }; 6754 - interface InferenceUpstreamError extends Error { 6755 - } 6756 - interface AiInternalError extends Error { 6757 - } 6758 - type AiModelListType = Record<string, any>; 6759 - declare abstract class Ai<AiModelList extends AiModelListType = AiModels> { 6760 - aiGatewayLogId: string | null; 6761 - gateway(gatewayId: string): AiGateway; 6762 - autorag(autoragId: string): AutoRAG; 6763 - run<Name extends keyof AiModelList, Options extends AiOptions, InputOptions extends AiModelList[Name]["inputs"]>(model: Name, inputs: InputOptions, options?: Options): Promise<Options extends { 6764 - returnRawResponse: true; 6765 - } | { 6766 - websocket: true; 6767 - } ? Response : InputOptions extends { 6768 - stream: true; 6769 - } ? ReadableStream : AiModelList[Name]["postProcessedOutputs"]>; 6770 - models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>; 6771 - toMarkdown(): ToMarkdownService; 6772 - toMarkdown(files: MarkdownDocument[], options?: ConversionRequestOptions): Promise<ConversionResponse[]>; 6773 - toMarkdown(files: MarkdownDocument, options?: ConversionRequestOptions): Promise<ConversionResponse>; 6774 - } 6775 - type GatewayRetries = { 6776 - maxAttempts?: 1 | 2 | 3 | 4 | 5; 6777 - retryDelayMs?: number; 6778 - backoff?: 'constant' | 'linear' | 'exponential'; 6779 - }; 6780 - type GatewayOptions = { 6781 - id: string; 6782 - cacheKey?: string; 6783 - cacheTtl?: number; 6784 - skipCache?: boolean; 6785 - metadata?: Record<string, number | string | boolean | null | bigint>; 6786 - collectLog?: boolean; 6787 - eventId?: string; 6788 - requestTimeoutMs?: number; 6789 - retries?: GatewayRetries; 6790 - }; 6791 - type UniversalGatewayOptions = Exclude<GatewayOptions, 'id'> & { 6792 - /** 6793 - ** @deprecated 6794 - */ 6795 - id?: string; 6796 - }; 6797 - type AiGatewayPatchLog = { 6798 - score?: number | null; 6799 - feedback?: -1 | 1 | null; 6800 - metadata?: Record<string, number | string | boolean | null | bigint> | null; 6801 - }; 6802 - type AiGatewayLog = { 6803 - id: string; 6804 - provider: string; 6805 - model: string; 6806 - model_type?: string; 6807 - path: string; 6808 - duration: number; 6809 - request_type?: string; 6810 - request_content_type?: string; 6811 - status_code: number; 6812 - response_content_type?: string; 6813 - success: boolean; 6814 - cached: boolean; 6815 - tokens_in?: number; 6816 - tokens_out?: number; 6817 - metadata?: Record<string, number | string | boolean | null | bigint>; 6818 - step?: number; 6819 - cost?: number; 6820 - custom_cost?: boolean; 6821 - request_size: number; 6822 - request_head?: string; 6823 - request_head_complete: boolean; 6824 - response_size: number; 6825 - response_head?: string; 6826 - response_head_complete: boolean; 6827 - created_at: Date; 6828 - }; 6829 - 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'; 6830 - type AIGatewayHeaders = { 6831 - 'cf-aig-metadata': Record<string, number | string | boolean | null | bigint> | string; 6832 - 'cf-aig-custom-cost': { 6833 - per_token_in?: number; 6834 - per_token_out?: number; 6835 - } | { 6836 - total_cost?: number; 6837 - } | string; 6838 - 'cf-aig-cache-ttl': number | string; 6839 - 'cf-aig-skip-cache': boolean | string; 6840 - 'cf-aig-cache-key': string; 6841 - 'cf-aig-event-id': string; 6842 - 'cf-aig-request-timeout': number | string; 6843 - 'cf-aig-max-attempts': number | string; 6844 - 'cf-aig-retry-delay': number | string; 6845 - 'cf-aig-backoff': string; 6846 - 'cf-aig-collect-log': boolean | string; 6847 - Authorization: string; 6848 - 'Content-Type': string; 6849 - [key: string]: string | number | boolean | object; 6850 - }; 6851 - type AIGatewayUniversalRequest = { 6852 - provider: AIGatewayProviders | string; // eslint-disable-line 6853 - endpoint: string; 6854 - headers: Partial<AIGatewayHeaders>; 6855 - query: unknown; 6856 - }; 6857 - interface AiGatewayInternalError extends Error { 6858 - } 6859 - interface AiGatewayLogNotFound extends Error { 6860 - } 6861 - declare abstract class AiGateway { 6862 - patchLog(logId: string, data: AiGatewayPatchLog): Promise<void>; 6863 - getLog(logId: string): Promise<AiGatewayLog>; 6864 - run(data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[], options?: { 6865 - gateway?: UniversalGatewayOptions; 6866 - extraHeaders?: object; 6867 - }): Promise<Response>; 6868 - getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line 6869 - } 6870 - interface AutoRAGInternalError extends Error { 6871 - } 6872 - interface AutoRAGNotFoundError extends Error { 6873 - } 6874 - interface AutoRAGUnauthorizedError extends Error { 6875 - } 6876 - interface AutoRAGNameNotSetError extends Error { 6877 - } 6878 - type ComparisonFilter = { 6879 - key: string; 6880 - type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; 6881 - value: string | number | boolean; 6882 - }; 6883 - type CompoundFilter = { 6884 - type: 'and' | 'or'; 6885 - filters: ComparisonFilter[]; 6886 - }; 6887 - type AutoRagSearchRequest = { 6888 - query: string; 6889 - filters?: CompoundFilter | ComparisonFilter; 6890 - max_num_results?: number; 6891 - ranking_options?: { 6892 - ranker?: string; 6893 - score_threshold?: number; 6894 - }; 6895 - reranking?: { 6896 - enabled?: boolean; 6897 - model?: string; 6898 - }; 6899 - rewrite_query?: boolean; 6900 - }; 6901 - type AutoRagAiSearchRequest = AutoRagSearchRequest & { 6902 - stream?: boolean; 6903 - system_prompt?: string; 6904 - }; 6905 - type AutoRagAiSearchRequestStreaming = Omit<AutoRagAiSearchRequest, 'stream'> & { 6906 - stream: true; 6907 - }; 6908 - type AutoRagSearchResponse = { 6909 - object: 'vector_store.search_results.page'; 6910 - search_query: string; 6911 - data: { 6912 - file_id: string; 6913 - filename: string; 6914 - score: number; 6915 - attributes: Record<string, string | number | boolean | null>; 6916 - content: { 6917 - type: 'text'; 6918 - text: string; 6919 - }[]; 6920 - }[]; 6921 - has_more: boolean; 6922 - next_page: string | null; 6923 - }; 6924 - type AutoRagListResponse = { 6925 - id: string; 6926 - enable: boolean; 6927 - type: string; 6928 - source: string; 6929 - vectorize_name: string; 6930 - paused: boolean; 6931 - status: string; 6932 - }[]; 6933 - type AutoRagAiSearchResponse = AutoRagSearchResponse & { 6934 - response: string; 6935 - }; 6936 - declare abstract class AutoRAG { 6937 - list(): Promise<AutoRagListResponse>; 6938 - search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>; 6939 - aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>; 6940 - aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>; 6941 - aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse | Response>; 6942 - } 6943 - interface BasicImageTransformations { 6944 - /** 6945 - * Maximum width in image pixels. The value must be an integer. 6946 - */ 6947 - width?: number; 6948 - /** 6949 - * Maximum height in image pixels. The value must be an integer. 6950 - */ 6951 - height?: number; 6952 - /** 6953 - * Resizing mode as a string. It affects interpretation of width and height 6954 - * options: 6955 - * - scale-down: Similar to contain, but the image is never enlarged. If 6956 - * the image is larger than given width or height, it will be resized. 6957 - * Otherwise its original size will be kept. 6958 - * - contain: Resizes to maximum size that fits within the given width and 6959 - * height. If only a single dimension is given (e.g. only width), the 6960 - * image will be shrunk or enlarged to exactly match that dimension. 6961 - * Aspect ratio is always preserved. 6962 - * - cover: Resizes (shrinks or enlarges) to fill the entire area of width 6963 - * and height. If the image has an aspect ratio different from the ratio 6964 - * of width and height, it will be cropped to fit. 6965 - * - crop: The image will be shrunk and cropped to fit within the area 6966 - * specified by width and height. The image will not be enlarged. For images 6967 - * smaller than the given dimensions it's the same as scale-down. For 6968 - * images larger than the given dimensions, it's the same as cover. 6969 - * See also trim. 6970 - * - pad: Resizes to the maximum size that fits within the given width and 6971 - * height, and then fills the remaining area with a background color 6972 - * (white by default). Use of this mode is not recommended, as the same 6973 - * effect can be more efficiently achieved with the contain mode and the 6974 - * CSS object-fit: contain property. 6975 - * - squeeze: Stretches and deforms to the width and height given, even if it 6976 - * breaks aspect ratio 6977 - */ 6978 - fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze"; 6979 - /** 6980 - * Image segmentation using artificial intelligence models. Sets pixels not 6981 - * within selected segment area to transparent e.g "foreground" sets every 6982 - * background pixel as transparent. 6983 - */ 6984 - segment?: "foreground"; 6985 - /** 6986 - * When cropping with fit: "cover", this defines the side or point that should 6987 - * be left uncropped. The value is either a string 6988 - * "left", "right", "top", "bottom", "auto", or "center" (the default), 6989 - * or an object {x, y} containing focal point coordinates in the original 6990 - * image expressed as fractions ranging from 0.0 (top or left) to 1.0 6991 - * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will 6992 - * crop bottom or left and right sides as necessary, but won’t crop anything 6993 - * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to 6994 - * preserve as much as possible around a point at 20% of the height of the 6995 - * source image. 6996 - */ 6997 - gravity?: 'face' | 'left' | 'right' | 'top' | 'bottom' | 'center' | 'auto' | 'entropy' | BasicImageTransformationsGravityCoordinates; 6998 - /** 6999 - * Background color to add underneath the image. Applies only to images with 7000 - * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…), 7001 - * hsl(…), etc.) 7002 - */ 7003 - background?: string; 7004 - /** 7005 - * Number of degrees (90, 180, 270) to rotate the image by. width and height 7006 - * options refer to axes after rotation. 7007 - */ 7008 - rotate?: 0 | 90 | 180 | 270 | 360; 7009 - } 7010 - interface BasicImageTransformationsGravityCoordinates { 7011 - x?: number; 7012 - y?: number; 7013 - mode?: 'remainder' | 'box-center'; 7014 - } 7015 - /** 7016 - * In addition to the properties you can set in the RequestInit dict 7017 - * that you pass as an argument to the Request constructor, you can 7018 - * set certain properties of a `cf` object to control how Cloudflare 7019 - * features are applied to that new Request. 7020 - * 7021 - * Note: Currently, these properties cannot be tested in the 7022 - * playground. 7023 - */ 7024 - interface RequestInitCfProperties extends Record<string, unknown> { 7025 - cacheEverything?: boolean; 7026 - /** 7027 - * A request's cache key is what determines if two requests are 7028 - * "the same" for caching purposes. If a request has the same cache key 7029 - * as some previous request, then we can serve the same cached response for 7030 - * both. (e.g. 'some-key') 7031 - * 7032 - * Only available for Enterprise customers. 7033 - */ 7034 - cacheKey?: string; 7035 - /** 7036 - * This allows you to append additional Cache-Tag response headers 7037 - * to the origin response without modifications to the origin server. 7038 - * This will allow for greater control over the Purge by Cache Tag feature 7039 - * utilizing changes only in the Workers process. 7040 - * 7041 - * Only available for Enterprise customers. 7042 - */ 7043 - cacheTags?: string[]; 7044 - /** 7045 - * Force response to be cached for a given number of seconds. (e.g. 300) 7046 - */ 7047 - cacheTtl?: number; 7048 - /** 7049 - * Force response to be cached for a given number of seconds based on the Origin status code. 7050 - * (e.g. { '200-299': 86400, '404': 1, '500-599': 0 }) 7051 - */ 7052 - cacheTtlByStatus?: Record<string, number>; 7053 - scrapeShield?: boolean; 7054 - apps?: boolean; 7055 - image?: RequestInitCfPropertiesImage; 7056 - minify?: RequestInitCfPropertiesImageMinify; 7057 - mirage?: boolean; 7058 - polish?: "lossy" | "lossless" | "off"; 7059 - r2?: RequestInitCfPropertiesR2; 7060 - /** 7061 - * Redirects the request to an alternate origin server. You can use this, 7062 - * for example, to implement load balancing across several origins. 7063 - * (e.g.us-east.example.com) 7064 - * 7065 - * Note - For security reasons, the hostname set in resolveOverride must 7066 - * be proxied on the same Cloudflare zone of the incoming request. 7067 - * Otherwise, the setting is ignored. CNAME hosts are allowed, so to 7068 - * resolve to a host under a different domain or a DNS only domain first 7069 - * declare a CNAME record within your own zone’s DNS mapping to the 7070 - * external hostname, set proxy on Cloudflare, then set resolveOverride 7071 - * to point to that CNAME record. 7072 - */ 7073 - resolveOverride?: string; 7074 - } 7075 - interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations { 7076 - /** 7077 - * Absolute URL of the image file to use for the drawing. It can be any of 7078 - * the supported file formats. For drawing of watermarks or non-rectangular 7079 - * overlays we recommend using PNG or WebP images. 7080 - */ 7081 - url: string; 7082 - /** 7083 - * Floating-point number between 0 (transparent) and 1 (opaque). 7084 - * For example, opacity: 0.5 makes overlay semitransparent. 7085 - */ 7086 - opacity?: number; 7087 - /** 7088 - * - If set to true, the overlay image will be tiled to cover the entire 7089 - * area. This is useful for stock-photo-like watermarks. 7090 - * - If set to "x", the overlay image will be tiled horizontally only 7091 - * (form a line). 7092 - * - If set to "y", the overlay image will be tiled vertically only 7093 - * (form a line). 7094 - */ 7095 - repeat?: true | "x" | "y"; 7096 - /** 7097 - * Position of the overlay image relative to a given edge. Each property is 7098 - * an offset in pixels. 0 aligns exactly to the edge. For example, left: 10 7099 - * positions left side of the overlay 10 pixels from the left edge of the 7100 - * image it's drawn over. bottom: 0 aligns bottom of the overlay with bottom 7101 - * of the background image. 7102 - * 7103 - * Setting both left & right, or both top & bottom is an error. 7104 - * 7105 - * If no position is specified, the image will be centered. 7106 - */ 7107 - top?: number; 7108 - left?: number; 7109 - bottom?: number; 7110 - right?: number; 7111 - } 7112 - interface RequestInitCfPropertiesImage extends BasicImageTransformations { 7113 - /** 7114 - * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it 7115 - * easier to specify higher-DPI sizes in <img srcset>. 7116 - */ 7117 - dpr?: number; 7118 - /** 7119 - * Allows you to trim your image. Takes dpr into account and is performed before 7120 - * resizing or rotation. 7121 - * 7122 - * It can be used as: 7123 - * - left, top, right, bottom - it will specify the number of pixels to cut 7124 - * off each side 7125 - * - width, height - the width/height you'd like to end up with - can be used 7126 - * in combination with the properties above 7127 - * - border - this will automatically trim the surroundings of an image based on 7128 - * it's color. It consists of three properties: 7129 - * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit) 7130 - * - tolerance: difference from color to treat as color 7131 - * - keep: the number of pixels of border to keep 7132 - */ 7133 - trim?: "border" | { 7134 - top?: number; 7135 - bottom?: number; 7136 - left?: number; 7137 - right?: number; 7138 - width?: number; 7139 - height?: number; 7140 - border?: boolean | { 7141 - color?: string; 7142 - tolerance?: number; 7143 - keep?: number; 7144 - }; 7145 - }; 7146 - /** 7147 - * Quality setting from 1-100 (useful values are in 60-90 range). Lower values 7148 - * make images look worse, but load faster. The default is 85. It applies only 7149 - * to JPEG and WebP images. It doesn’t have any effect on PNG. 7150 - */ 7151 - quality?: number | "low" | "medium-low" | "medium-high" | "high"; 7152 - /** 7153 - * Output format to generate. It can be: 7154 - * - avif: generate images in AVIF format. 7155 - * - webp: generate images in Google WebP format. Set quality to 100 to get 7156 - * the WebP-lossless format. 7157 - * - json: instead of generating an image, outputs information about the 7158 - * image, in JSON format. The JSON object will contain image size 7159 - * (before and after resizing), source image’s MIME type, file size, etc. 7160 - * - jpeg: generate images in JPEG format. 7161 - * - png: generate images in PNG format. 7162 - */ 7163 - format?: "avif" | "webp" | "json" | "jpeg" | "png" | "baseline-jpeg" | "png-force" | "svg"; 7164 - /** 7165 - * Whether to preserve animation frames from input files. Default is true. 7166 - * Setting it to false reduces animations to still images. This setting is 7167 - * recommended when enlarging images or processing arbitrary user content, 7168 - * because large GIF animations can weigh tens or even hundreds of megabytes. 7169 - * It is also useful to set anim:false when using format:"json" to get the 7170 - * response quicker without the number of frames. 7171 - */ 7172 - anim?: boolean; 7173 - /** 7174 - * What EXIF data should be preserved in the output image. Note that EXIF 7175 - * rotation and embedded color profiles are always applied ("baked in" into 7176 - * the image), and aren't affected by this option. Note that if the Polish 7177 - * feature is enabled, all metadata may have been removed already and this 7178 - * option may have no effect. 7179 - * - keep: Preserve most of EXIF metadata, including GPS location if there's 7180 - * any. 7181 - * - copyright: Only keep the copyright tag, and discard everything else. 7182 - * This is the default behavior for JPEG files. 7183 - * - none: Discard all invisible EXIF metadata. Currently WebP and PNG 7184 - * output formats always discard metadata. 7185 - */ 7186 - metadata?: "keep" | "copyright" | "none"; 7187 - /** 7188 - * Strength of sharpening filter to apply to the image. Floating-point 7189 - * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a 7190 - * recommended value for downscaled images. 7191 - */ 7192 - sharpen?: number; 7193 - /** 7194 - * Radius of a blur filter (approximate gaussian). Maximum supported radius 7195 - * is 250. 7196 - */ 7197 - blur?: number; 7198 - /** 7199 - * Overlays are drawn in the order they appear in the array (last array 7200 - * entry is the topmost layer). 7201 - */ 7202 - draw?: RequestInitCfPropertiesImageDraw[]; 7203 - /** 7204 - * Fetching image from authenticated origin. Setting this property will 7205 - * pass authentication headers (Authorization, Cookie, etc.) through to 7206 - * the origin. 7207 - */ 7208 - "origin-auth"?: "share-publicly"; 7209 - /** 7210 - * Adds a border around the image. The border is added after resizing. Border 7211 - * width takes dpr into account, and can be specified either using a single 7212 - * width property, or individually for each side. 7213 - */ 7214 - border?: { 7215 - color: string; 7216 - width: number; 7217 - } | { 7218 - color: string; 7219 - top: number; 7220 - right: number; 7221 - bottom: number; 7222 - left: number; 7223 - }; 7224 - /** 7225 - * Increase brightness by a factor. A value of 1.0 equals no change, a value 7226 - * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright. 7227 - * 0 is ignored. 7228 - */ 7229 - brightness?: number; 7230 - /** 7231 - * Increase contrast by a factor. A value of 1.0 equals no change, a value of 7232 - * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is 7233 - * ignored. 7234 - */ 7235 - contrast?: number; 7236 - /** 7237 - * Increase exposure by a factor. A value of 1.0 equals no change, a value of 7238 - * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored. 7239 - */ 7240 - gamma?: number; 7241 - /** 7242 - * Increase contrast by a factor. A value of 1.0 equals no change, a value of 7243 - * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is 7244 - * ignored. 7245 - */ 7246 - saturation?: number; 7247 - /** 7248 - * Flips the images horizontally, vertically, or both. Flipping is applied before 7249 - * rotation, so if you apply flip=h,rotate=90 then the image will be flipped 7250 - * horizontally, then rotated by 90 degrees. 7251 - */ 7252 - flip?: 'h' | 'v' | 'hv'; 7253 - /** 7254 - * Slightly reduces latency on a cache miss by selecting a 7255 - * quickest-to-compress file format, at a cost of increased file size and 7256 - * lower image quality. It will usually override the format option and choose 7257 - * JPEG over WebP or AVIF. We do not recommend using this option, except in 7258 - * unusual circumstances like resizing uncacheable dynamically-generated 7259 - * images. 7260 - */ 7261 - compression?: "fast"; 7262 - } 7263 - interface RequestInitCfPropertiesImageMinify { 7264 - javascript?: boolean; 7265 - css?: boolean; 7266 - html?: boolean; 7267 - } 7268 - interface RequestInitCfPropertiesR2 { 7269 - /** 7270 - * Colo id of bucket that an object is stored in 7271 - */ 7272 - bucketColoId?: number; 7273 - } 7274 - /** 7275 - * Request metadata provided by Cloudflare's edge. 7276 - */ 7277 - type IncomingRequestCfProperties<HostMetadata = unknown> = IncomingRequestCfPropertiesBase & IncomingRequestCfPropertiesBotManagementEnterprise & IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<HostMetadata> & IncomingRequestCfPropertiesGeographicInformation & IncomingRequestCfPropertiesCloudflareAccessOrApiShield; 7278 - interface IncomingRequestCfPropertiesBase extends Record<string, unknown> { 7279 - /** 7280 - * [ASN](https://www.iana.org/assignments/as-numbers/as-numbers.xhtml) of the incoming request. 7281 - * 7282 - * @example 395747 7283 - */ 7284 - asn?: number; 7285 - /** 7286 - * The organization which owns the ASN of the incoming request. 7287 - * 7288 - * @example "Google Cloud" 7289 - */ 7290 - asOrganization?: string; 7291 - /** 7292 - * The original value of the `Accept-Encoding` header if Cloudflare modified it. 7293 - * 7294 - * @example "gzip, deflate, br" 7295 - */ 7296 - clientAcceptEncoding?: string; 7297 - /** 7298 - * The number of milliseconds it took for the request to reach your worker. 7299 - * 7300 - * @example 22 7301 - */ 7302 - clientTcpRtt?: number; 7303 - /** 7304 - * The three-letter [IATA](https://en.wikipedia.org/wiki/IATA_airport_code) 7305 - * airport code of the data center that the request hit. 7306 - * 7307 - * @example "DFW" 7308 - */ 7309 - colo: string; 7310 - /** 7311 - * Represents the upstream's response to a 7312 - * [TCP `keepalive` message](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html) 7313 - * from cloudflare. 7314 - * 7315 - * For workers with no upstream, this will always be `1`. 7316 - * 7317 - * @example 3 7318 - */ 7319 - edgeRequestKeepAliveStatus: IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus; 7320 - /** 7321 - * The HTTP Protocol the request used. 7322 - * 7323 - * @example "HTTP/2" 7324 - */ 7325 - httpProtocol: string; 7326 - /** 7327 - * The browser-requested prioritization information in the request object. 7328 - * 7329 - * If no information was set, defaults to the empty string `""` 7330 - * 7331 - * @example "weight=192;exclusive=0;group=3;group-weight=127" 7332 - * @default "" 7333 - */ 7334 - requestPriority: string; 7335 - /** 7336 - * The TLS version of the connection to Cloudflare. 7337 - * In requests served over plaintext (without TLS), this property is the empty string `""`. 7338 - * 7339 - * @example "TLSv1.3" 7340 - */ 7341 - tlsVersion: string; 7342 - /** 7343 - * The cipher for the connection to Cloudflare. 7344 - * In requests served over plaintext (without TLS), this property is the empty string `""`. 7345 - * 7346 - * @example "AEAD-AES128-GCM-SHA256" 7347 - */ 7348 - tlsCipher: string; 7349 - /** 7350 - * 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. 7351 - * 7352 - * If the incoming request was served over plaintext (without TLS) this field is undefined. 7353 - */ 7354 - tlsExportedAuthenticator?: IncomingRequestCfPropertiesExportedAuthenticatorMetadata; 7355 - } 7356 - interface IncomingRequestCfPropertiesBotManagementBase { 7357 - /** 7358 - * Cloudflare’s [level of certainty](https://developers.cloudflare.com/bots/concepts/bot-score/) that a request comes from a bot, 7359 - * represented as an integer percentage between `1` (almost certainly a bot) and `99` (almost certainly human). 7360 - * 7361 - * @example 54 7362 - */ 7363 - score: number; 7364 - /** 7365 - * A boolean value that is true if the request comes from a good bot, like Google or Bing. 7366 - * 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). 7367 - */ 7368 - verifiedBot: boolean; 7369 - /** 7370 - * A boolean value that is true if the request originates from a 7371 - * Cloudflare-verified proxy service. 7372 - */ 7373 - corporateProxy: boolean; 7374 - /** 7375 - * 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. 7376 - */ 7377 - staticResource: boolean; 7378 - /** 7379 - * 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). 7380 - */ 7381 - detectionIds: number[]; 7382 - } 7383 - interface IncomingRequestCfPropertiesBotManagement { 7384 - /** 7385 - * Results of Cloudflare's Bot Management analysis 7386 - */ 7387 - botManagement: IncomingRequestCfPropertiesBotManagementBase; 7388 - /** 7389 - * Duplicate of `botManagement.score`. 7390 - * 7391 - * @deprecated 7392 - */ 7393 - clientTrustScore: number; 7394 - } 7395 - interface IncomingRequestCfPropertiesBotManagementEnterprise extends IncomingRequestCfPropertiesBotManagement { 7396 - /** 7397 - * Results of Cloudflare's Bot Management analysis 7398 - */ 7399 - botManagement: IncomingRequestCfPropertiesBotManagementBase & { 7400 - /** 7401 - * A [JA3 Fingerprint](https://developers.cloudflare.com/bots/concepts/ja3-fingerprint/) to help profile specific SSL/TLS clients 7402 - * across different destination IPs, Ports, and X509 certificates. 7403 - */ 7404 - ja3Hash: string; 7405 - }; 7406 - } 7407 - interface IncomingRequestCfPropertiesCloudflareForSaaSEnterprise<HostMetadata> { 7408 - /** 7409 - * Custom metadata set per-host in [Cloudflare for SaaS](https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/). 7410 - * 7411 - * This field is only present if you have Cloudflare for SaaS enabled on your account 7412 - * and you have followed the [required steps to enable it]((https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/custom-metadata/)). 7413 - */ 7414 - hostMetadata?: HostMetadata; 7415 - } 7416 - interface IncomingRequestCfPropertiesCloudflareAccessOrApiShield { 7417 - /** 7418 - * Information about the client certificate presented to Cloudflare. 7419 - * 7420 - * This is populated when the incoming request is served over TLS using 7421 - * either Cloudflare Access or API Shield (mTLS) 7422 - * and the presented SSL certificate has a valid 7423 - * [Certificate Serial Number](https://ldapwiki.com/wiki/Certificate%20Serial%20Number) 7424 - * (i.e., not `null` or `""`). 7425 - * 7426 - * Otherwise, a set of placeholder values are used. 7427 - * 7428 - * The property `certPresented` will be set to `"1"` when 7429 - * the object is populated (i.e. the above conditions were met). 7430 - */ 7431 - tlsClientAuth: IncomingRequestCfPropertiesTLSClientAuth | IncomingRequestCfPropertiesTLSClientAuthPlaceholder; 7432 - } 7433 - /** 7434 - * Metadata about the request's TLS handshake 7435 - */ 7436 - interface IncomingRequestCfPropertiesExportedAuthenticatorMetadata { 7437 - /** 7438 - * The client's [`HELLO` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2), encoded in hexadecimal 7439 - * 7440 - * @example "44372ba35fa1270921d318f34c12f155dc87b682cf36a790cfaa3ba8737a1b5d" 7441 - */ 7442 - clientHandshake: string; 7443 - /** 7444 - * The server's [`HELLO` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.2), encoded in hexadecimal 7445 - * 7446 - * @example "44372ba35fa1270921d318f34c12f155dc87b682cf36a790cfaa3ba8737a1b5d" 7447 - */ 7448 - serverHandshake: string; 7449 - /** 7450 - * The client's [`FINISHED` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9), encoded in hexadecimal 7451 - * 7452 - * @example "084ee802fe1348f688220e2a6040a05b2199a761f33cf753abb1b006792d3f8b" 7453 - */ 7454 - clientFinished: string; 7455 - /** 7456 - * The server's [`FINISHED` message](https://www.rfc-editor.org/rfc/rfc5246#section-7.4.9), encoded in hexadecimal 7457 - * 7458 - * @example "084ee802fe1348f688220e2a6040a05b2199a761f33cf753abb1b006792d3f8b" 7459 - */ 7460 - serverFinished: string; 7461 - } 7462 - /** 7463 - * Geographic data about the request's origin. 7464 - */ 7465 - interface IncomingRequestCfPropertiesGeographicInformation { 7466 - /** 7467 - * The [ISO 3166-1 Alpha 2](https://www.iso.org/iso-3166-country-codes.html) country code the request originated from. 7468 - * 7469 - * 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. 7470 - * 7471 - * If Cloudflare is unable to determine where the request originated this property is omitted. 7472 - * 7473 - * The country code `"T1"` is used for requests originating on TOR. 7474 - * 7475 - * @example "GB" 7476 - */ 7477 - country?: Iso3166Alpha2Code | "T1"; 7478 - /** 7479 - * If present, this property indicates that the request originated in the EU 7480 - * 7481 - * @example "1" 7482 - */ 7483 - isEUCountry?: "1"; 7484 - /** 7485 - * A two-letter code indicating the continent the request originated from. 7486 - * 7487 - * @example "AN" 7488 - */ 7489 - continent?: ContinentCode; 7490 - /** 7491 - * The city the request originated from 7492 - * 7493 - * @example "Austin" 7494 - */ 7495 - city?: string; 7496 - /** 7497 - * Postal code of the incoming request 7498 - * 7499 - * @example "78701" 7500 - */ 7501 - postalCode?: string; 7502 - /** 7503 - * Latitude of the incoming request 7504 - * 7505 - * @example "30.27130" 7506 - */ 7507 - latitude?: string; 7508 - /** 7509 - * Longitude of the incoming request 7510 - * 7511 - * @example "-97.74260" 7512 - */ 7513 - longitude?: string; 7514 - /** 7515 - * Timezone of the incoming request 7516 - * 7517 - * @example "America/Chicago" 7518 - */ 7519 - timezone?: string; 7520 - /** 7521 - * If known, the ISO 3166-2 name for the first level region associated with 7522 - * the IP address of the incoming request 7523 - * 7524 - * @example "Texas" 7525 - */ 7526 - region?: string; 7527 - /** 7528 - * If known, the ISO 3166-2 code for the first-level region associated with 7529 - * the IP address of the incoming request 7530 - * 7531 - * @example "TX" 7532 - */ 7533 - regionCode?: string; 7534 - /** 7535 - * Metro code (DMA) of the incoming request 7536 - * 7537 - * @example "635" 7538 - */ 7539 - metroCode?: string; 7540 - } 7541 - /** Data about the incoming request's TLS certificate */ 7542 - interface IncomingRequestCfPropertiesTLSClientAuth { 7543 - /** Always `"1"`, indicating that the certificate was presented */ 7544 - certPresented: "1"; 7545 - /** 7546 - * Result of certificate verification. 7547 - * 7548 - * @example "FAILED:self signed certificate" 7549 - */ 7550 - certVerified: Exclude<CertVerificationStatus, "NONE">; 7551 - /** The presented certificate's revokation status. 7552 - * 7553 - * - A value of `"1"` indicates the certificate has been revoked 7554 - * - A value of `"0"` indicates the certificate has not been revoked 7555 - */ 7556 - certRevoked: "1" | "0"; 7557 - /** 7558 - * The certificate issuer's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) 7559 - * 7560 - * @example "CN=cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" 7561 - */ 7562 - certIssuerDN: string; 7563 - /** 7564 - * The certificate subject's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) 7565 - * 7566 - * @example "CN=*.cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" 7567 - */ 7568 - certSubjectDN: string; 7569 - /** 7570 - * The certificate issuer's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) ([RFC 2253](https://www.rfc-editor.org/rfc/rfc2253.html) formatted) 7571 - * 7572 - * @example "CN=cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" 7573 - */ 7574 - certIssuerDNRFC2253: string; 7575 - /** 7576 - * The certificate subject's [distinguished name](https://knowledge.digicert.com/generalinformation/INFO1745.html) ([RFC 2253](https://www.rfc-editor.org/rfc/rfc2253.html) formatted) 7577 - * 7578 - * @example "CN=*.cloudflareaccess.com, C=US, ST=Texas, L=Austin, O=Cloudflare" 7579 - */ 7580 - certSubjectDNRFC2253: string; 7581 - /** The certificate issuer's distinguished name (legacy policies) */ 7582 - certIssuerDNLegacy: string; 7583 - /** The certificate subject's distinguished name (legacy policies) */ 7584 - certSubjectDNLegacy: string; 7585 - /** 7586 - * The certificate's serial number 7587 - * 7588 - * @example "00936EACBE07F201DF" 7589 - */ 7590 - certSerial: string; 7591 - /** 7592 - * The certificate issuer's serial number 7593 - * 7594 - * @example "2489002934BDFEA34" 7595 - */ 7596 - certIssuerSerial: string; 7597 - /** 7598 - * The certificate's Subject Key Identifier 7599 - * 7600 - * @example "BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4" 7601 - */ 7602 - certSKI: string; 7603 - /** 7604 - * The certificate issuer's Subject Key Identifier 7605 - * 7606 - * @example "BB:AF:7E:02:3D:FA:A6:F1:3C:84:8E:AD:EE:38:98:EC:D9:32:32:D4" 7607 - */ 7608 - certIssuerSKI: string; 7609 - /** 7610 - * The certificate's SHA-1 fingerprint 7611 - * 7612 - * @example "6b9109f323999e52259cda7373ff0b4d26bd232e" 7613 - */ 7614 - certFingerprintSHA1: string; 7615 - /** 7616 - * The certificate's SHA-256 fingerprint 7617 - * 7618 - * @example "acf77cf37b4156a2708e34c4eb755f9b5dbbe5ebb55adfec8f11493438d19e6ad3f157f81fa3b98278453d5652b0c1fd1d71e5695ae4d709803a4d3f39de9dea" 7619 - */ 7620 - certFingerprintSHA256: string; 7621 - /** 7622 - * The effective starting date of the certificate 7623 - * 7624 - * @example "Dec 22 19:39:00 2018 GMT" 7625 - */ 7626 - certNotBefore: string; 7627 - /** 7628 - * The effective expiration date of the certificate 7629 - * 7630 - * @example "Dec 22 19:39:00 2018 GMT" 7631 - */ 7632 - certNotAfter: string; 7633 - } 7634 - /** Placeholder values for TLS Client Authorization */ 7635 - interface IncomingRequestCfPropertiesTLSClientAuthPlaceholder { 7636 - certPresented: "0"; 7637 - certVerified: "NONE"; 7638 - certRevoked: "0"; 7639 - certIssuerDN: ""; 7640 - certSubjectDN: ""; 7641 - certIssuerDNRFC2253: ""; 7642 - certSubjectDNRFC2253: ""; 7643 - certIssuerDNLegacy: ""; 7644 - certSubjectDNLegacy: ""; 7645 - certSerial: ""; 7646 - certIssuerSerial: ""; 7647 - certSKI: ""; 7648 - certIssuerSKI: ""; 7649 - certFingerprintSHA1: ""; 7650 - certFingerprintSHA256: ""; 7651 - certNotBefore: ""; 7652 - certNotAfter: ""; 7653 - } 7654 - /** Possible outcomes of TLS verification */ 7655 - declare type CertVerificationStatus = 7656 - /** Authentication succeeded */ 7657 - "SUCCESS" 7658 - /** No certificate was presented */ 7659 - | "NONE" 7660 - /** Failed because the certificate was self-signed */ 7661 - | "FAILED:self signed certificate" 7662 - /** Failed because the certificate failed a trust chain check */ 7663 - | "FAILED:unable to verify the first certificate" 7664 - /** Failed because the certificate not yet valid */ 7665 - | "FAILED:certificate is not yet valid" 7666 - /** Failed because the certificate is expired */ 7667 - | "FAILED:certificate has expired" 7668 - /** Failed for another unspecified reason */ 7669 - | "FAILED"; 7670 - /** 7671 - * An upstream endpoint's response to a TCP `keepalive` message from Cloudflare. 7672 - */ 7673 - 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 */ 7674 - /** ISO 3166-1 Alpha-2 codes */ 7675 - 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"; 7676 - /** The 2-letter continent codes Cloudflare uses */ 7677 - declare type ContinentCode = "AF" | "AN" | "AS" | "EU" | "NA" | "OC" | "SA"; 7678 - type CfProperties<HostMetadata = unknown> = IncomingRequestCfProperties<HostMetadata> | RequestInitCfProperties; 7679 - interface D1Meta { 7680 - duration: number; 7681 - size_after: number; 7682 - rows_read: number; 7683 - rows_written: number; 7684 - last_row_id: number; 7685 - changed_db: boolean; 7686 - changes: number; 7687 - /** 7688 - * The region of the database instance that executed the query. 7689 - */ 7690 - served_by_region?: string; 7691 - /** 7692 - * True if-and-only-if the database instance that executed the query was the primary. 7693 - */ 7694 - served_by_primary?: boolean; 7695 - timings?: { 7696 - /** 7697 - * The duration of the SQL query execution by the database instance. It doesn't include any network time. 7698 - */ 7699 - sql_duration_ms: number; 7700 - }; 7701 - /** 7702 - * Number of total attempts to execute the query, due to automatic retries. 7703 - * Note: All other fields in the response like `timings` only apply to the last attempt. 7704 - */ 7705 - total_attempts?: number; 7706 - } 7707 - interface D1Response { 7708 - success: true; 7709 - meta: D1Meta & Record<string, unknown>; 7710 - error?: never; 7711 - } 7712 - type D1Result<T = unknown> = D1Response & { 7713 - results: T[]; 7714 - }; 7715 - interface D1ExecResult { 7716 - count: number; 7717 - duration: number; 7718 - } 7719 - type D1SessionConstraint = 7720 - // Indicates that the first query should go to the primary, and the rest queries 7721 - // using the same D1DatabaseSession will go to any replica that is consistent with 7722 - // the bookmark maintained by the session (returned by the first query). 7723 - 'first-primary' 7724 - // Indicates that the first query can go anywhere (primary or replica), and the rest queries 7725 - // using the same D1DatabaseSession will go to any replica that is consistent with 7726 - // the bookmark maintained by the session (returned by the first query). 7727 - | 'first-unconstrained'; 7728 - type D1SessionBookmark = string; 7729 - declare abstract class D1Database { 7730 - prepare(query: string): D1PreparedStatement; 7731 - batch<T = unknown>(statements: D1PreparedStatement[]): Promise<D1Result<T>[]>; 7732 - exec(query: string): Promise<D1ExecResult>; 7733 - /** 7734 - * Creates a new D1 Session anchored at the given constraint or the bookmark. 7735 - * All queries executed using the created session will have sequential consistency, 7736 - * meaning that all writes done through the session will be visible in subsequent reads. 7737 - * 7738 - * @param constraintOrBookmark Either the session constraint or the explicit bookmark to anchor the created session. 7739 - */ 7740 - withSession(constraintOrBookmark?: D1SessionBookmark | D1SessionConstraint): D1DatabaseSession; 7741 - /** 7742 - * @deprecated dump() will be removed soon, only applies to deprecated alpha v1 databases. 7743 - */ 7744 - dump(): Promise<ArrayBuffer>; 7745 - } 7746 - declare abstract class D1DatabaseSession { 7747 - prepare(query: string): D1PreparedStatement; 7748 - batch<T = unknown>(statements: D1PreparedStatement[]): Promise<D1Result<T>[]>; 7749 - /** 7750 - * @returns The latest session bookmark across all executed queries on the session. 7751 - * If no query has been executed yet, `null` is returned. 7752 - */ 7753 - getBookmark(): D1SessionBookmark | null; 7754 - } 7755 - declare abstract class D1PreparedStatement { 7756 - bind(...values: unknown[]): D1PreparedStatement; 7757 - first<T = unknown>(colName: string): Promise<T | null>; 7758 - first<T = Record<string, unknown>>(): Promise<T | null>; 7759 - run<T = Record<string, unknown>>(): Promise<D1Result<T>>; 7760 - all<T = Record<string, unknown>>(): Promise<D1Result<T>>; 7761 - raw<T = unknown[]>(options: { 7762 - columnNames: true; 7763 - }): Promise<[ 7764 - string[], 7765 - ...T[] 7766 - ]>; 7767 - raw<T = unknown[]>(options?: { 7768 - columnNames?: false; 7769 - }): Promise<T[]>; 7770 - } 7771 - // `Disposable` was added to TypeScript's standard lib types in version 5.2. 7772 - // To support older TypeScript versions, define an empty `Disposable` interface. 7773 - // Users won't be able to use `using`/`Symbol.dispose` without upgrading to 5.2, 7774 - // but this will ensure type checking on older versions still passes. 7775 - // TypeScript's interface merging will ensure our empty interface is effectively 7776 - // ignored when `Disposable` is included in the standard lib. 7777 - interface Disposable { 7778 - } 7779 - /** 7780 - * An email message that can be sent from a Worker. 7781 - */ 7782 - interface EmailMessage { 7783 - /** 7784 - * Envelope From attribute of the email message. 7785 - */ 7786 - readonly from: string; 7787 - /** 7788 - * Envelope To attribute of the email message. 7789 - */ 7790 - readonly to: string; 7791 - } 7792 - /** 7793 - * An email message that is sent to a consumer Worker and can be rejected/forwarded. 7794 - */ 7795 - interface ForwardableEmailMessage extends EmailMessage { 7796 - /** 7797 - * Stream of the email message content. 7798 - */ 7799 - readonly raw: ReadableStream<Uint8Array>; 7800 - /** 7801 - * An [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers). 7802 - */ 7803 - readonly headers: Headers; 7804 - /** 7805 - * Size of the email message content. 7806 - */ 7807 - readonly rawSize: number; 7808 - /** 7809 - * Reject this email message by returning a permanent SMTP error back to the connecting client including the given reason. 7810 - * @param reason The reject reason. 7811 - * @returns void 7812 - */ 7813 - setReject(reason: string): void; 7814 - /** 7815 - * Forward this email message to a verified destination address of the account. 7816 - * @param rcptTo Verified destination address. 7817 - * @param headers A [Headers object](https://developer.mozilla.org/en-US/docs/Web/API/Headers). 7818 - * @returns A promise that resolves when the email message is forwarded. 7819 - */ 7820 - forward(rcptTo: string, headers?: Headers): Promise<void>; 7821 - /** 7822 - * Reply to the sender of this email message with a new EmailMessage object. 7823 - * @param message The reply message. 7824 - * @returns A promise that resolves when the email message is replied. 7825 - */ 7826 - reply(message: EmailMessage): Promise<void>; 7827 - } 7828 - /** 7829 - * A binding that allows a Worker to send email messages. 7830 - */ 7831 - interface SendEmail { 7832 - send(message: EmailMessage): Promise<void>; 7833 - } 7834 - declare abstract class EmailEvent extends ExtendableEvent { 7835 - readonly message: ForwardableEmailMessage; 7836 - } 7837 - declare type EmailExportedHandler<Env = unknown> = (message: ForwardableEmailMessage, env: Env, ctx: ExecutionContext) => void | Promise<void>; 7838 - declare module "cloudflare:email" { 7839 - let _EmailMessage: { 7840 - prototype: EmailMessage; 7841 - new (from: string, to: string, raw: ReadableStream | string): EmailMessage; 7842 - }; 7843 - export { _EmailMessage as EmailMessage }; 7844 - } 7845 - /** 7846 - * Hello World binding to serve as an explanatory example. DO NOT USE 7847 - */ 7848 - interface HelloWorldBinding { 7849 - /** 7850 - * Retrieve the current stored value 7851 - */ 7852 - get(): Promise<{ 7853 - value: string; 7854 - ms?: number; 7855 - }>; 7856 - /** 7857 - * Set a new stored value 7858 - */ 7859 - set(value: string): Promise<void>; 7860 - } 7861 - interface Hyperdrive { 7862 - /** 7863 - * Connect directly to Hyperdrive as if it's your database, returning a TCP socket. 7864 - * 7865 - * Calling this method returns an idential socket to if you call 7866 - * `connect("host:port")` using the `host` and `port` fields from this object. 7867 - * Pick whichever approach works better with your preferred DB client library. 7868 - * 7869 - * Note that this socket is not yet authenticated -- it's expected that your 7870 - * code (or preferably, the client library of your choice) will authenticate 7871 - * using the information in this class's readonly fields. 7872 - */ 7873 - connect(): Socket; 7874 - /** 7875 - * A valid DB connection string that can be passed straight into the typical 7876 - * client library/driver/ORM. This will typically be the easiest way to use 7877 - * Hyperdrive. 7878 - */ 7879 - readonly connectionString: string; 7880 - /* 7881 - * A randomly generated hostname that is only valid within the context of the 7882 - * currently running Worker which, when passed into `connect()` function from 7883 - * the "cloudflare:sockets" module, will connect to the Hyperdrive instance 7884 - * for your database. 7885 - */ 7886 - readonly host: string; 7887 - /* 7888 - * The port that must be paired the the host field when connecting. 7889 - */ 7890 - readonly port: number; 7891 - /* 7892 - * The username to use when authenticating to your database via Hyperdrive. 7893 - * Unlike the host and password, this will be the same every time 7894 - */ 7895 - readonly user: string; 7896 - /* 7897 - * The randomly generated password to use when authenticating to your 7898 - * database via Hyperdrive. Like the host field, this password is only valid 7899 - * within the context of the currently running Worker instance from which 7900 - * it's read. 7901 - */ 7902 - readonly password: string; 7903 - /* 7904 - * The name of the database to connect to. 7905 - */ 7906 - readonly database: string; 7907 - } 7908 - // Copyright (c) 2024 Cloudflare, Inc. 7909 - // Licensed under the Apache 2.0 license found in the LICENSE file or at: 7910 - // https://opensource.org/licenses/Apache-2.0 7911 - type ImageInfoResponse = { 7912 - format: 'image/svg+xml'; 7913 - } | { 7914 - format: string; 7915 - fileSize: number; 7916 - width: number; 7917 - height: number; 7918 - }; 7919 - type ImageTransform = { 7920 - width?: number; 7921 - height?: number; 7922 - background?: string; 7923 - blur?: number; 7924 - border?: { 7925 - color?: string; 7926 - width?: number; 7927 - } | { 7928 - top?: number; 7929 - bottom?: number; 7930 - left?: number; 7931 - right?: number; 7932 - }; 7933 - brightness?: number; 7934 - contrast?: number; 7935 - fit?: 'scale-down' | 'contain' | 'pad' | 'squeeze' | 'cover' | 'crop'; 7936 - flip?: 'h' | 'v' | 'hv'; 7937 - gamma?: number; 7938 - segment?: 'foreground'; 7939 - gravity?: 'face' | 'left' | 'right' | 'top' | 'bottom' | 'center' | 'auto' | 'entropy' | { 7940 - x?: number; 7941 - y?: number; 7942 - mode: 'remainder' | 'box-center'; 7943 - }; 7944 - rotate?: 0 | 90 | 180 | 270; 7945 - saturation?: number; 7946 - sharpen?: number; 7947 - trim?: 'border' | { 7948 - top?: number; 7949 - bottom?: number; 7950 - left?: number; 7951 - right?: number; 7952 - width?: number; 7953 - height?: number; 7954 - border?: boolean | { 7955 - color?: string; 7956 - tolerance?: number; 7957 - keep?: number; 7958 - }; 7959 - }; 7960 - }; 7961 - type ImageDrawOptions = { 7962 - opacity?: number; 7963 - repeat?: boolean | string; 7964 - top?: number; 7965 - left?: number; 7966 - bottom?: number; 7967 - right?: number; 7968 - }; 7969 - type ImageInputOptions = { 7970 - encoding?: 'base64'; 7971 - }; 7972 - type ImageOutputOptions = { 7973 - format: 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp' | 'image/avif' | 'rgb' | 'rgba'; 7974 - quality?: number; 7975 - background?: string; 7976 - anim?: boolean; 7977 - }; 7978 - interface ImagesBinding { 7979 - /** 7980 - * Get image metadata (type, width and height) 7981 - * @throws {@link ImagesError} with code 9412 if input is not an image 7982 - * @param stream The image bytes 7983 - */ 7984 - info(stream: ReadableStream<Uint8Array>, options?: ImageInputOptions): Promise<ImageInfoResponse>; 7985 - /** 7986 - * Begin applying a series of transformations to an image 7987 - * @param stream The image bytes 7988 - * @returns A transform handle 7989 - */ 7990 - input(stream: ReadableStream<Uint8Array>, options?: ImageInputOptions): ImageTransformer; 7991 - } 7992 - interface ImageTransformer { 7993 - /** 7994 - * Apply transform next, returning a transform handle. 7995 - * You can then apply more transformations, draw, or retrieve the output. 7996 - * @param transform 7997 - */ 7998 - transform(transform: ImageTransform): ImageTransformer; 7999 - /** 8000 - * Draw an image on this transformer, returning a transform handle. 8001 - * You can then apply more transformations, draw, or retrieve the output. 8002 - * @param image The image (or transformer that will give the image) to draw 8003 - * @param options The options configuring how to draw the image 8004 - */ 8005 - draw(image: ReadableStream<Uint8Array> | ImageTransformer, options?: ImageDrawOptions): ImageTransformer; 8006 - /** 8007 - * Retrieve the image that results from applying the transforms to the 8008 - * provided input 8009 - * @param options Options that apply to the output e.g. output format 8010 - */ 8011 - output(options: ImageOutputOptions): Promise<ImageTransformationResult>; 8012 - } 8013 - type ImageTransformationOutputOptions = { 8014 - encoding?: 'base64'; 8015 - }; 8016 - interface ImageTransformationResult { 8017 - /** 8018 - * The image as a response, ready to store in cache or return to users 8019 - */ 8020 - response(): Response; 8021 - /** 8022 - * The content type of the returned image 8023 - */ 8024 - contentType(): string; 8025 - /** 8026 - * The bytes of the response 8027 - */ 8028 - image(options?: ImageTransformationOutputOptions): ReadableStream<Uint8Array>; 8029 - } 8030 - interface ImagesError extends Error { 8031 - readonly code: number; 8032 - readonly message: string; 8033 - readonly stack?: string; 8034 - } 8035 - /** 8036 - * Media binding for transforming media streams. 8037 - * Provides the entry point for media transformation operations. 8038 - */ 8039 - interface MediaBinding { 8040 - /** 8041 - * Creates a media transformer from an input stream. 8042 - * @param media - The input media bytes 8043 - * @returns A MediaTransformer instance for applying transformations 8044 - */ 8045 - input(media: ReadableStream<Uint8Array>): MediaTransformer; 8046 - } 8047 - /** 8048 - * Media transformer for applying transformation operations to media content. 8049 - * Handles sizing, fitting, and other input transformation parameters. 8050 - */ 8051 - interface MediaTransformer { 8052 - /** 8053 - * Applies transformation options to the media content. 8054 - * @param transform - Configuration for how the media should be transformed 8055 - * @returns A generator for producing the transformed media output 8056 - */ 8057 - transform(transform: MediaTransformationInputOptions): MediaTransformationGenerator; 8058 - } 8059 - /** 8060 - * Generator for producing media transformation results. 8061 - * Configures the output format and parameters for the transformed media. 8062 - */ 8063 - interface MediaTransformationGenerator { 8064 - /** 8065 - * Generates the final media output with specified options. 8066 - * @param output - Configuration for the output format and parameters 8067 - * @returns The final transformation result containing the transformed media 8068 - */ 8069 - output(output: MediaTransformationOutputOptions): MediaTransformationResult; 8070 - } 8071 - /** 8072 - * Result of a media transformation operation. 8073 - * Provides multiple ways to access the transformed media content. 8074 - */ 8075 - interface MediaTransformationResult { 8076 - /** 8077 - * Returns the transformed media as a readable stream of bytes. 8078 - * @returns A stream containing the transformed media data 8079 - */ 8080 - media(): ReadableStream<Uint8Array>; 8081 - /** 8082 - * Returns the transformed media as an HTTP response object. 8083 - * @returns The transformed media as a Response, ready to store in cache or return to users 8084 - */ 8085 - response(): Response; 8086 - /** 8087 - * Returns the MIME type of the transformed media. 8088 - * @returns The content type string (e.g., 'image/jpeg', 'video/mp4') 8089 - */ 8090 - contentType(): string; 8091 - } 8092 - /** 8093 - * Configuration options for transforming media input. 8094 - * Controls how the media should be resized and fitted. 8095 - */ 8096 - type MediaTransformationInputOptions = { 8097 - /** How the media should be resized to fit the specified dimensions */ 8098 - fit?: 'contain' | 'cover' | 'scale-down'; 8099 - /** Target width in pixels */ 8100 - width?: number; 8101 - /** Target height in pixels */ 8102 - height?: number; 8103 - }; 8104 - /** 8105 - * Configuration options for Media Transformations output. 8106 - * Controls the format, timing, and type of the generated output. 8107 - */ 8108 - type MediaTransformationOutputOptions = { 8109 - /** 8110 - * Output mode determining the type of media to generate 8111 - */ 8112 - mode?: 'video' | 'spritesheet' | 'frame' | 'audio'; 8113 - /** Whether to include audio in the output */ 8114 - audio?: boolean; 8115 - /** 8116 - * Starting timestamp for frame extraction or start time for clips. (e.g. '2s'). 8117 - */ 8118 - time?: string; 8119 - /** 8120 - * Duration for video clips, audio extraction, and spritesheet generation (e.g. '5s'). 8121 - */ 8122 - duration?: string; 8123 - /** 8124 - * Number of frames in the spritesheet. 8125 - */ 8126 - imageCount?: number; 8127 - /** 8128 - * Output format for the generated media. 8129 - */ 8130 - format?: 'jpg' | 'png' | 'm4a'; 8131 - }; 8132 - /** 8133 - * Error object for media transformation operations. 8134 - * Extends the standard Error interface with additional media-specific information. 8135 - */ 8136 - interface MediaError extends Error { 8137 - readonly code: number; 8138 - readonly message: string; 8139 - readonly stack?: string; 8140 - } 8141 - declare module 'cloudflare:node' { 8142 - interface NodeStyleServer { 8143 - listen(...args: unknown[]): this; 8144 - address(): { 8145 - port?: number | null | undefined; 8146 - }; 8147 - } 8148 - export function httpServerHandler(port: number): ExportedHandler; 8149 - export function httpServerHandler(options: { 8150 - port: number; 8151 - }): ExportedHandler; 8152 - export function httpServerHandler(server: NodeStyleServer): ExportedHandler; 8153 - } 8154 - type Params<P extends string = any> = Record<P, string | string[]>; 8155 - type EventContext<Env, P extends string, Data> = { 8156 - request: Request<unknown, IncomingRequestCfProperties<unknown>>; 8157 - functionPath: string; 8158 - waitUntil: (promise: Promise<any>) => void; 8159 - passThroughOnException: () => void; 8160 - next: (input?: Request | string, init?: RequestInit) => Promise<Response>; 8161 - env: Env & { 8162 - ASSETS: { 8163 - fetch: typeof fetch; 8164 - }; 8165 - }; 8166 - params: Params<P>; 8167 - data: Data; 8168 - }; 8169 - type PagesFunction<Env = unknown, Params extends string = any, Data extends Record<string, unknown> = Record<string, unknown>> = (context: EventContext<Env, Params, Data>) => Response | Promise<Response>; 8170 - type EventPluginContext<Env, P extends string, Data, PluginArgs> = { 8171 - request: Request<unknown, IncomingRequestCfProperties<unknown>>; 8172 - functionPath: string; 8173 - waitUntil: (promise: Promise<any>) => void; 8174 - passThroughOnException: () => void; 8175 - next: (input?: Request | string, init?: RequestInit) => Promise<Response>; 8176 - env: Env & { 8177 - ASSETS: { 8178 - fetch: typeof fetch; 8179 - }; 8180 - }; 8181 - params: Params<P>; 8182 - data: Data; 8183 - pluginArgs: PluginArgs; 8184 - }; 8185 - 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>; 8186 - declare module "assets:*" { 8187 - export const onRequest: PagesFunction; 8188 - } 8189 - // Copyright (c) 2022-2023 Cloudflare, Inc. 8190 - // Licensed under the Apache 2.0 license found in the LICENSE file or at: 8191 - // https://opensource.org/licenses/Apache-2.0 8192 - declare module "cloudflare:pipelines" { 8193 - export abstract class PipelineTransformationEntrypoint<Env = unknown, I extends PipelineRecord = PipelineRecord, O extends PipelineRecord = PipelineRecord> { 8194 - protected env: Env; 8195 - protected ctx: ExecutionContext; 8196 - constructor(ctx: ExecutionContext, env: Env); 8197 - /** 8198 - * run recieves an array of PipelineRecord which can be 8199 - * transformed and returned to the pipeline 8200 - * @param records Incoming records from the pipeline to be transformed 8201 - * @param metadata Information about the specific pipeline calling the transformation entrypoint 8202 - * @returns A promise containing the transformed PipelineRecord array 8203 - */ 8204 - public run(records: I[], metadata: PipelineBatchMetadata): Promise<O[]>; 8205 - } 8206 - export type PipelineRecord = Record<string, unknown>; 8207 - export type PipelineBatchMetadata = { 8208 - pipelineId: string; 8209 - pipelineName: string; 8210 - }; 8211 - export interface Pipeline<T extends PipelineRecord = PipelineRecord> { 8212 - /** 8213 - * The Pipeline interface represents the type of a binding to a Pipeline 8214 - * 8215 - * @param records The records to send to the pipeline 8216 - */ 8217 - send(records: T[]): Promise<void>; 8218 - } 8219 - } 8220 - // PubSubMessage represents an incoming PubSub message. 8221 - // The message includes metadata about the broker, the client, and the payload 8222 - // itself. 8223 - // https://developers.cloudflare.com/pub-sub/ 8224 - interface PubSubMessage { 8225 - // Message ID 8226 - readonly mid: number; 8227 - // MQTT broker FQDN in the form mqtts://BROKER.NAMESPACE.cloudflarepubsub.com:PORT 8228 - readonly broker: string; 8229 - // The MQTT topic the message was sent on. 8230 - readonly topic: string; 8231 - // The client ID of the client that published this message. 8232 - readonly clientId: string; 8233 - // The unique identifier (JWT ID) used by the client to authenticate, if token 8234 - // auth was used. 8235 - readonly jti?: string; 8236 - // A Unix timestamp (seconds from Jan 1, 1970), set when the Pub/Sub Broker 8237 - // received the message from the client. 8238 - readonly receivedAt: number; 8239 - // An (optional) string with the MIME type of the payload, if set by the 8240 - // client. 8241 - readonly contentType: string; 8242 - // Set to 1 when the payload is a UTF-8 string 8243 - // https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901063 8244 - readonly payloadFormatIndicator: number; 8245 - // Pub/Sub (MQTT) payloads can be UTF-8 strings, or byte arrays. 8246 - // You can use payloadFormatIndicator to inspect this before decoding. 8247 - payload: string | Uint8Array; 8248 - } 8249 - // JsonWebKey extended by kid parameter 8250 - interface JsonWebKeyWithKid extends JsonWebKey { 8251 - // Key Identifier of the JWK 8252 - readonly kid: string; 8253 - } 8254 - interface RateLimitOptions { 8255 - key: string; 8256 - } 8257 - interface RateLimitOutcome { 8258 - success: boolean; 8259 - } 8260 - interface RateLimit { 8261 - /** 8262 - * Rate limit a request based on the provided options. 8263 - * @see https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/ 8264 - * @returns A promise that resolves with the outcome of the rate limit. 8265 - */ 8266 - limit(options: RateLimitOptions): Promise<RateLimitOutcome>; 8267 - } 8268 - // Namespace for RPC utility types. Unfortunately, we can't use a `module` here as these types need 8269 - // to referenced by `Fetcher`. This is included in the "importable" version of the types which 8270 - // strips all `module` blocks. 8271 - declare namespace Rpc { 8272 - // Branded types for identifying `WorkerEntrypoint`/`DurableObject`/`Target`s. 8273 - // TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`. 8274 - // For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to 8275 - // accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape) 8276 - export const __RPC_STUB_BRAND: '__RPC_STUB_BRAND'; 8277 - export const __RPC_TARGET_BRAND: '__RPC_TARGET_BRAND'; 8278 - export const __WORKER_ENTRYPOINT_BRAND: '__WORKER_ENTRYPOINT_BRAND'; 8279 - export const __DURABLE_OBJECT_BRAND: '__DURABLE_OBJECT_BRAND'; 8280 - export const __WORKFLOW_ENTRYPOINT_BRAND: '__WORKFLOW_ENTRYPOINT_BRAND'; 8281 - export interface RpcTargetBranded { 8282 - [__RPC_TARGET_BRAND]: never; 8283 - } 8284 - export interface WorkerEntrypointBranded { 8285 - [__WORKER_ENTRYPOINT_BRAND]: never; 8286 - } 8287 - export interface DurableObjectBranded { 8288 - [__DURABLE_OBJECT_BRAND]: never; 8289 - } 8290 - export interface WorkflowEntrypointBranded { 8291 - [__WORKFLOW_ENTRYPOINT_BRAND]: never; 8292 - } 8293 - export type EntrypointBranded = WorkerEntrypointBranded | DurableObjectBranded | WorkflowEntrypointBranded; 8294 - // Types that can be used through `Stub`s 8295 - export type Stubable = RpcTargetBranded | ((...args: any[]) => any); 8296 - // Types that can be passed over RPC 8297 - // The reason for using a generic type here is to build a serializable subset of structured 8298 - // cloneable composite types. This allows types defined with the "interface" keyword to pass the 8299 - // serializable check as well. Otherwise, only types defined with the "type" keyword would pass. 8300 - type Serializable<T> = 8301 - // Structured cloneables 8302 - BaseType 8303 - // Structured cloneable composites 8304 - | 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> | { 8305 - [K in keyof T]: K extends number | string ? Serializable<T[K]> : never; 8306 - } 8307 - // Special types 8308 - | Stub<Stubable> 8309 - // Serialized as stubs, see `Stubify` 8310 - | Stubable; 8311 - // Base type for all RPC stubs, including common memory management methods. 8312 - // `T` is used as a marker type for unwrapping `Stub`s later. 8313 - interface StubBase<T extends Stubable> extends Disposable { 8314 - [__RPC_STUB_BRAND]: T; 8315 - dup(): this; 8316 - } 8317 - export type Stub<T extends Stubable> = Provider<T> & StubBase<T>; 8318 - // This represents all the types that can be sent as-is over an RPC boundary 8319 - type BaseType = void | undefined | null | boolean | number | bigint | string | TypedArray | ArrayBuffer | DataView | Date | Error | RegExp | ReadableStream<Uint8Array> | WritableStream<Uint8Array> | Request | Response | Headers; 8320 - // Recursively rewrite all `Stubable` types with `Stub`s 8321 - // prettier-ignore 8322 - 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 { 8323 - [key: string | number]: any; 8324 - } ? { 8325 - [K in keyof T]: Stubify<T[K]>; 8326 - } : T; 8327 - // Recursively rewrite all `Stub<T>`s with the corresponding `T`s. 8328 - // Note we use `StubBase` instead of `Stub` here to avoid circular dependencies: 8329 - // `Stub` depends on `Provider`, which depends on `Unstubify`, which would depend on `Stub`. 8330 - // prettier-ignore 8331 - 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 { 8332 - [key: string | number]: unknown; 8333 - } ? { 8334 - [K in keyof T]: Unstubify<T[K]>; 8335 - } : T; 8336 - type UnstubifyAll<A extends any[]> = { 8337 - [I in keyof A]: Unstubify<A[I]>; 8338 - }; 8339 - // Utility type for adding `Provider`/`Disposable`s to `object` types only. 8340 - // Note `unknown & T` is equivalent to `T`. 8341 - type MaybeProvider<T> = T extends object ? Provider<T> : unknown; 8342 - type MaybeDisposable<T> = T extends object ? Disposable : unknown; 8343 - // Type for method return or property on an RPC interface. 8344 - // - Stubable types are replaced by stubs. 8345 - // - Serializable types are passed by value, with stubable types replaced by stubs 8346 - // and a top-level `Disposer`. 8347 - // Everything else can't be passed over PRC. 8348 - // Technically, we use custom thenables here, but they quack like `Promise`s. 8349 - // Intersecting with `(Maybe)Provider` allows pipelining. 8350 - // prettier-ignore 8351 - type Result<R> = R extends Stubable ? Promise<Stub<R>> & Provider<R> : R extends Serializable<R> ? Promise<Stubify<R> & MaybeDisposable<R>> & MaybeProvider<R> : never; 8352 - // Type for method or property on an RPC interface. 8353 - // For methods, unwrap `Stub`s in parameters, and rewrite returns to be `Result`s. 8354 - // Unwrapping `Stub`s allows calling with `Stubable` arguments. 8355 - // For properties, rewrite types to be `Result`s. 8356 - // In each case, unwrap `Promise`s. 8357 - type MethodOrProperty<V> = V extends (...args: infer P) => infer R ? (...args: UnstubifyAll<P>) => Result<Awaited<R>> : Result<Awaited<V>>; 8358 - // Type for the callable part of an `Provider` if `T` is callable. 8359 - // This is intersected with methods/properties. 8360 - type MaybeCallableProvider<T> = T extends (...args: any[]) => any ? MethodOrProperty<T> : unknown; 8361 - // Base type for all other types providing RPC-like interfaces. 8362 - // Rewrites all methods/properties to be `MethodOrProperty`s, while preserving callable types. 8363 - // `Reserved` names (e.g. stub method names like `dup()`) and symbols can't be accessed over RPC. 8364 - export type Provider<T extends object, Reserved extends string = never> = MaybeCallableProvider<T> & { 8365 - [K in Exclude<keyof T, Reserved | symbol | keyof StubBase<never>>]: MethodOrProperty<T[K]>; 8366 - }; 8367 - } 8368 - declare namespace Cloudflare { 8369 - // Type of `env`. 8370 - // 8371 - // The specific project can extend `Env` by redeclaring it in project-specific files. Typescript 8372 - // will merge all declarations. 8373 - // 8374 - // You can use `wrangler types` to generate the `Env` type automatically. 8375 - interface Env { 8376 - } 8377 - // Project-specific parameters used to inform types. 8378 - // 8379 - // This interface is, again, intended to be declared in project-specific files, and then that 8380 - // declaration will be merged with this one. 8381 - // 8382 - // A project should have a declaration like this: 8383 - // 8384 - // interface GlobalProps { 8385 - // // Declares the main module's exports. Used to populate Cloudflare.Exports aka the type 8386 - // // of `ctx.exports`. 8387 - // mainModule: typeof import("my-main-module"); 8388 - // 8389 - // // Declares which of the main module's exports are configured with durable storage, and 8390 - // // thus should behave as Durable Object namsepace bindings. 8391 - // durableNamespaces: "MyDurableObject" | "AnotherDurableObject"; 8392 - // } 8393 - // 8394 - // You can use `wrangler types` to generate `GlobalProps` automatically. 8395 - interface GlobalProps { 8396 - } 8397 - // Evaluates to the type of a property in GlobalProps, defaulting to `Default` if it is not 8398 - // present. 8399 - type GlobalProp<K extends string, Default> = K extends keyof GlobalProps ? GlobalProps[K] : Default; 8400 - // The type of the program's main module exports, if known. Requires `GlobalProps` to declare the 8401 - // `mainModule` property. 8402 - type MainModule = GlobalProp<"mainModule", {}>; 8403 - // The type of ctx.exports, which contains loopback bindings for all top-level exports. 8404 - type Exports = { 8405 - [K in keyof MainModule]: LoopbackForExport<MainModule[K]> 8406 - // If the export is listed in `durableNamespaces`, then it is also a 8407 - // DurableObjectNamespace. 8408 - & (K extends GlobalProp<"durableNamespaces", never> ? MainModule[K] extends new (...args: any[]) => infer DoInstance ? DoInstance extends Rpc.DurableObjectBranded ? DurableObjectNamespace<DoInstance> : DurableObjectNamespace<undefined> : DurableObjectNamespace<undefined> : {}); 8409 - }; 8410 - } 8411 - declare namespace CloudflareWorkersModule { 8412 - export type RpcStub<T extends Rpc.Stubable> = Rpc.Stub<T>; 8413 - export const RpcStub: { 8414 - new <T extends Rpc.Stubable>(value: T): Rpc.Stub<T>; 8415 - }; 8416 - export abstract class RpcTarget implements Rpc.RpcTargetBranded { 8417 - [Rpc.__RPC_TARGET_BRAND]: never; 8418 - } 8419 - // `protected` fields don't appear in `keyof`s, so can't be accessed over RPC 8420 - export abstract class WorkerEntrypoint<Env = Cloudflare.Env, Props = {}> implements Rpc.WorkerEntrypointBranded { 8421 - [Rpc.__WORKER_ENTRYPOINT_BRAND]: never; 8422 - protected ctx: ExecutionContext<Props>; 8423 - protected env: Env; 8424 - constructor(ctx: ExecutionContext, env: Env); 8425 - email?(message: ForwardableEmailMessage): void | Promise<void>; 8426 - fetch?(request: Request): Response | Promise<Response>; 8427 - queue?(batch: MessageBatch<unknown>): void | Promise<void>; 8428 - scheduled?(controller: ScheduledController): void | Promise<void>; 8429 - tail?(events: TraceItem[]): void | Promise<void>; 8430 - tailStream?(event: TailStream.TailEvent<TailStream.Onset>): TailStream.TailEventHandlerType | Promise<TailStream.TailEventHandlerType>; 8431 - test?(controller: TestController): void | Promise<void>; 8432 - trace?(traces: TraceItem[]): void | Promise<void>; 8433 - } 8434 - export abstract class DurableObject<Env = Cloudflare.Env, Props = {}> implements Rpc.DurableObjectBranded { 8435 - [Rpc.__DURABLE_OBJECT_BRAND]: never; 8436 - protected ctx: DurableObjectState<Props>; 8437 - protected env: Env; 8438 - constructor(ctx: DurableObjectState, env: Env); 8439 - alarm?(alarmInfo?: AlarmInvocationInfo): void | Promise<void>; 8440 - fetch?(request: Request): Response | Promise<Response>; 8441 - webSocketMessage?(ws: WebSocket, message: string | ArrayBuffer): void | Promise<void>; 8442 - webSocketClose?(ws: WebSocket, code: number, reason: string, wasClean: boolean): void | Promise<void>; 8443 - webSocketError?(ws: WebSocket, error: unknown): void | Promise<void>; 8444 - } 8445 - export type WorkflowDurationLabel = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year'; 8446 - export type WorkflowSleepDuration = `${number} ${WorkflowDurationLabel}${'s' | ''}` | number; 8447 - export type WorkflowDelayDuration = WorkflowSleepDuration; 8448 - export type WorkflowTimeoutDuration = WorkflowSleepDuration; 8449 - export type WorkflowRetentionDuration = WorkflowSleepDuration; 8450 - export type WorkflowBackoff = 'constant' | 'linear' | 'exponential'; 8451 - export type WorkflowStepConfig = { 8452 - retries?: { 8453 - limit: number; 8454 - delay: WorkflowDelayDuration | number; 8455 - backoff?: WorkflowBackoff; 8456 - }; 8457 - timeout?: WorkflowTimeoutDuration | number; 8458 - }; 8459 - export type WorkflowEvent<T> = { 8460 - payload: Readonly<T>; 8461 - timestamp: Date; 8462 - instanceId: string; 8463 - }; 8464 - export type WorkflowStepEvent<T> = { 8465 - payload: Readonly<T>; 8466 - timestamp: Date; 8467 - type: string; 8468 - }; 8469 - export abstract class WorkflowStep { 8470 - do<T extends Rpc.Serializable<T>>(name: string, callback: () => Promise<T>): Promise<T>; 8471 - do<T extends Rpc.Serializable<T>>(name: string, config: WorkflowStepConfig, callback: () => Promise<T>): Promise<T>; 8472 - sleep: (name: string, duration: WorkflowSleepDuration) => Promise<void>; 8473 - sleepUntil: (name: string, timestamp: Date | number) => Promise<void>; 8474 - waitForEvent<T extends Rpc.Serializable<T>>(name: string, options: { 8475 - type: string; 8476 - timeout?: WorkflowTimeoutDuration | number; 8477 - }): Promise<WorkflowStepEvent<T>>; 8478 - } 8479 - export abstract class WorkflowEntrypoint<Env = unknown, T extends Rpc.Serializable<T> | unknown = unknown> implements Rpc.WorkflowEntrypointBranded { 8480 - [Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never; 8481 - protected ctx: ExecutionContext; 8482 - protected env: Env; 8483 - constructor(ctx: ExecutionContext, env: Env); 8484 - run(event: Readonly<WorkflowEvent<T>>, step: WorkflowStep): Promise<unknown>; 8485 - } 8486 - export function waitUntil(promise: Promise<unknown>): void; 8487 - export const env: Cloudflare.Env; 8488 - } 8489 - declare module 'cloudflare:workers' { 8490 - export = CloudflareWorkersModule; 8491 - } 8492 - interface SecretsStoreSecret { 8493 - /** 8494 - * Get a secret from the Secrets Store, returning a string of the secret value 8495 - * if it exists, or throws an error if it does not exist 8496 - */ 8497 - get(): Promise<string>; 8498 - } 8499 - declare module "cloudflare:sockets" { 8500 - function _connect(address: string | SocketAddress, options?: SocketOptions): Socket; 8501 - export { _connect as connect }; 8502 - } 8503 - type MarkdownDocument = { 8504 - name: string; 8505 - blob: Blob; 8506 - }; 8507 - type ConversionResponse = { 8508 - name: string; 8509 - mimeType: string; 8510 - format: 'markdown'; 8511 - tokens: number; 8512 - data: string; 8513 - } | { 8514 - name: string; 8515 - mimeType: string; 8516 - format: 'error'; 8517 - error: string; 8518 - }; 8519 - type ImageConversionOptions = { 8520 - descriptionLanguage?: 'en' | 'es' | 'fr' | 'it' | 'pt' | 'de'; 8521 - }; 8522 - type EmbeddedImageConversionOptions = ImageConversionOptions & { 8523 - convert?: boolean; 8524 - maxConvertedImages?: number; 8525 - }; 8526 - type ConversionOptions = { 8527 - html?: { 8528 - images?: EmbeddedImageConversionOptions & { 8529 - convertOGImage?: boolean; 8530 - }; 8531 - }; 8532 - docx?: { 8533 - images?: EmbeddedImageConversionOptions; 8534 - }; 8535 - image?: ImageConversionOptions; 8536 - pdf?: { 8537 - images?: EmbeddedImageConversionOptions; 8538 - metadata?: boolean; 8539 - }; 8540 - }; 8541 - type ConversionRequestOptions = { 8542 - gateway?: GatewayOptions; 8543 - extraHeaders?: object; 8544 - conversionOptions?: ConversionOptions; 8545 - }; 8546 - type SupportedFileFormat = { 8547 - mimeType: string; 8548 - extension: string; 8549 - }; 8550 - declare abstract class ToMarkdownService { 8551 - transform(files: MarkdownDocument[], options?: ConversionRequestOptions): Promise<ConversionResponse[]>; 8552 - transform(files: MarkdownDocument, options?: ConversionRequestOptions): Promise<ConversionResponse>; 8553 - supported(): Promise<SupportedFileFormat[]>; 8554 - } 8555 - declare namespace TailStream { 8556 - interface Header { 8557 - readonly name: string; 8558 - readonly value: string; 8559 - } 8560 - interface FetchEventInfo { 8561 - readonly type: "fetch"; 8562 - readonly method: string; 8563 - readonly url: string; 8564 - readonly cfJson?: object; 8565 - readonly headers: Header[]; 8566 - } 8567 - interface JsRpcEventInfo { 8568 - readonly type: "jsrpc"; 8569 - } 8570 - interface ScheduledEventInfo { 8571 - readonly type: "scheduled"; 8572 - readonly scheduledTime: Date; 8573 - readonly cron: string; 8574 - } 8575 - interface AlarmEventInfo { 8576 - readonly type: "alarm"; 8577 - readonly scheduledTime: Date; 8578 - } 8579 - interface QueueEventInfo { 8580 - readonly type: "queue"; 8581 - readonly queueName: string; 8582 - readonly batchSize: number; 8583 - } 8584 - interface EmailEventInfo { 8585 - readonly type: "email"; 8586 - readonly mailFrom: string; 8587 - readonly rcptTo: string; 8588 - readonly rawSize: number; 8589 - } 8590 - interface TraceEventInfo { 8591 - readonly type: "trace"; 8592 - readonly traces: (string | null)[]; 8593 - } 8594 - interface HibernatableWebSocketEventInfoMessage { 8595 - readonly type: "message"; 8596 - } 8597 - interface HibernatableWebSocketEventInfoError { 8598 - readonly type: "error"; 8599 - } 8600 - interface HibernatableWebSocketEventInfoClose { 8601 - readonly type: "close"; 8602 - readonly code: number; 8603 - readonly wasClean: boolean; 8604 - } 8605 - interface HibernatableWebSocketEventInfo { 8606 - readonly type: "hibernatableWebSocket"; 8607 - readonly info: HibernatableWebSocketEventInfoClose | HibernatableWebSocketEventInfoError | HibernatableWebSocketEventInfoMessage; 8608 - } 8609 - interface CustomEventInfo { 8610 - readonly type: "custom"; 8611 - } 8612 - interface FetchResponseInfo { 8613 - readonly type: "fetch"; 8614 - readonly statusCode: number; 8615 - } 8616 - type EventOutcome = "ok" | "canceled" | "exception" | "unknown" | "killSwitch" | "daemonDown" | "exceededCpu" | "exceededMemory" | "loadShed" | "responseStreamDisconnected" | "scriptNotFound"; 8617 - interface ScriptVersion { 8618 - readonly id: string; 8619 - readonly tag?: string; 8620 - readonly message?: string; 8621 - } 8622 - interface Onset { 8623 - readonly type: "onset"; 8624 - readonly attributes: Attribute[]; 8625 - // id for the span being opened by this Onset event. 8626 - readonly spanId: string; 8627 - readonly dispatchNamespace?: string; 8628 - readonly entrypoint?: string; 8629 - readonly executionModel: string; 8630 - readonly scriptName?: string; 8631 - readonly scriptTags?: string[]; 8632 - readonly scriptVersion?: ScriptVersion; 8633 - readonly info: FetchEventInfo | JsRpcEventInfo | ScheduledEventInfo | AlarmEventInfo | QueueEventInfo | EmailEventInfo | TraceEventInfo | HibernatableWebSocketEventInfo | CustomEventInfo; 8634 - } 8635 - interface Outcome { 8636 - readonly type: "outcome"; 8637 - readonly outcome: EventOutcome; 8638 - readonly cpuTime: number; 8639 - readonly wallTime: number; 8640 - } 8641 - interface SpanOpen { 8642 - readonly type: "spanOpen"; 8643 - readonly name: string; 8644 - // id for the span being opened by this SpanOpen event. 8645 - readonly spanId: string; 8646 - readonly info?: FetchEventInfo | JsRpcEventInfo | Attributes; 8647 - } 8648 - interface SpanClose { 8649 - readonly type: "spanClose"; 8650 - readonly outcome: EventOutcome; 8651 - } 8652 - interface DiagnosticChannelEvent { 8653 - readonly type: "diagnosticChannel"; 8654 - readonly channel: string; 8655 - readonly message: any; 8656 - } 8657 - interface Exception { 8658 - readonly type: "exception"; 8659 - readonly name: string; 8660 - readonly message: string; 8661 - readonly stack?: string; 8662 - } 8663 - interface Log { 8664 - readonly type: "log"; 8665 - readonly level: "debug" | "error" | "info" | "log" | "warn"; 8666 - readonly message: object; 8667 - } 8668 - // This marks the worker handler return information. 8669 - // This is separate from Outcome because the worker invocation can live for a long time after 8670 - // returning. For example - Websockets that return an http upgrade response but then continue 8671 - // streaming information or SSE http connections. 8672 - interface Return { 8673 - readonly type: "return"; 8674 - readonly info?: FetchResponseInfo; 8675 - } 8676 - interface Attribute { 8677 - readonly name: string; 8678 - readonly value: string | string[] | boolean | boolean[] | number | number[] | bigint | bigint[]; 8679 - } 8680 - interface Attributes { 8681 - readonly type: "attributes"; 8682 - readonly info: Attribute[]; 8683 - } 8684 - type EventType = Onset | Outcome | SpanOpen | SpanClose | DiagnosticChannelEvent | Exception | Log | Return | Attributes; 8685 - // Context in which this trace event lives. 8686 - interface SpanContext { 8687 - // Single id for the entire top-level invocation 8688 - // This should be a new traceId for the first worker stage invoked in the eyeball request and then 8689 - // same-account service-bindings should reuse the same traceId but cross-account service-bindings 8690 - // should use a new traceId. 8691 - readonly traceId: string; 8692 - // spanId in which this event is handled 8693 - // for Onset and SpanOpen events this would be the parent span id 8694 - // for Outcome and SpanClose these this would be the span id of the opening Onset and SpanOpen events 8695 - // For Hibernate and Mark this would be the span under which they were emitted. 8696 - // spanId is not set ONLY if: 8697 - // 1. This is an Onset event 8698 - // 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation) 8699 - readonly spanId?: string; 8700 - } 8701 - interface TailEvent<Event extends EventType> { 8702 - // invocation id of the currently invoked worker stage. 8703 - // invocation id will always be unique to every Onset event and will be the same until the Outcome event. 8704 - readonly invocationId: string; 8705 - // Inherited spanContext for this event. 8706 - readonly spanContext: SpanContext; 8707 - readonly timestamp: Date; 8708 - readonly sequence: number; 8709 - readonly event: Event; 8710 - } 8711 - type TailEventHandler<Event extends EventType = EventType> = (event: TailEvent<Event>) => void | Promise<void>; 8712 - type TailEventHandlerObject = { 8713 - outcome?: TailEventHandler<Outcome>; 8714 - spanOpen?: TailEventHandler<SpanOpen>; 8715 - spanClose?: TailEventHandler<SpanClose>; 8716 - diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>; 8717 - exception?: TailEventHandler<Exception>; 8718 - log?: TailEventHandler<Log>; 8719 - return?: TailEventHandler<Return>; 8720 - attributes?: TailEventHandler<Attributes>; 8721 - }; 8722 - type TailEventHandlerType = TailEventHandler | TailEventHandlerObject; 8723 - } 8724 - // Copyright (c) 2022-2023 Cloudflare, Inc. 8725 - // Licensed under the Apache 2.0 license found in the LICENSE file or at: 8726 - // https://opensource.org/licenses/Apache-2.0 8727 - /** 8728 - * Data types supported for holding vector metadata. 8729 - */ 8730 - type VectorizeVectorMetadataValue = string | number | boolean | string[]; 8731 - /** 8732 - * Additional information to associate with a vector. 8733 - */ 8734 - type VectorizeVectorMetadata = VectorizeVectorMetadataValue | Record<string, VectorizeVectorMetadataValue>; 8735 - type VectorFloatArray = Float32Array | Float64Array; 8736 - interface VectorizeError { 8737 - code?: number; 8738 - error: string; 8739 - } 8740 - /** 8741 - * Comparison logic/operation to use for metadata filtering. 8742 - * 8743 - * This list is expected to grow as support for more operations are released. 8744 - */ 8745 - type VectorizeVectorMetadataFilterOp = '$eq' | '$ne' | '$lt' | '$lte' | '$gt' | '$gte'; 8746 - type VectorizeVectorMetadataFilterCollectionOp = '$in' | '$nin'; 8747 - /** 8748 - * Filter criteria for vector metadata used to limit the retrieved query result set. 8749 - */ 8750 - type VectorizeVectorMetadataFilter = { 8751 - [field: string]: Exclude<VectorizeVectorMetadataValue, string[]> | null | { 8752 - [Op in VectorizeVectorMetadataFilterOp]?: Exclude<VectorizeVectorMetadataValue, string[]> | null; 8753 - } | { 8754 - [Op in VectorizeVectorMetadataFilterCollectionOp]?: Exclude<VectorizeVectorMetadataValue, string[]>[]; 8755 - }; 8756 - }; 8757 - /** 8758 - * Supported distance metrics for an index. 8759 - * Distance metrics determine how other "similar" vectors are determined. 8760 - */ 8761 - type VectorizeDistanceMetric = "euclidean" | "cosine" | "dot-product"; 8762 - /** 8763 - * Metadata return levels for a Vectorize query. 8764 - * 8765 - * Default to "none". 8766 - * 8767 - * @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. 8768 - * @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). 8769 - * @property none No indexed metadata will be returned. 8770 - */ 8771 - type VectorizeMetadataRetrievalLevel = "all" | "indexed" | "none"; 8772 - interface VectorizeQueryOptions { 8773 - topK?: number; 8774 - namespace?: string; 8775 - returnValues?: boolean; 8776 - returnMetadata?: boolean | VectorizeMetadataRetrievalLevel; 8777 - filter?: VectorizeVectorMetadataFilter; 8778 - } 8779 - /** 8780 - * Information about the configuration of an index. 8781 - */ 8782 - type VectorizeIndexConfig = { 8783 - dimensions: number; 8784 - metric: VectorizeDistanceMetric; 8785 - } | { 8786 - preset: string; // keep this generic, as we'll be adding more presets in the future and this is only in a read capacity 8787 - }; 8788 - /** 8789 - * Metadata about an existing index. 8790 - * 8791 - * This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released. 8792 - * See {@link VectorizeIndexInfo} for its post-beta equivalent. 8793 - */ 8794 - interface VectorizeIndexDetails { 8795 - /** The unique ID of the index */ 8796 - readonly id: string; 8797 - /** The name of the index. */ 8798 - name: string; 8799 - /** (optional) A human readable description for the index. */ 8800 - description?: string; 8801 - /** The index configuration, including the dimension size and distance metric. */ 8802 - config: VectorizeIndexConfig; 8803 - /** The number of records containing vectors within the index. */ 8804 - vectorsCount: number; 8805 - } 8806 - /** 8807 - * Metadata about an existing index. 8808 - */ 8809 - interface VectorizeIndexInfo { 8810 - /** The number of records containing vectors within the index. */ 8811 - vectorCount: number; 8812 - /** Number of dimensions the index has been configured for. */ 8813 - dimensions: number; 8814 - /** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */ 8815 - processedUpToDatetime: number; 8816 - /** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */ 8817 - processedUpToMutation: number; 8818 - } 8819 - /** 8820 - * Represents a single vector value set along with its associated metadata. 8821 - */ 8822 - interface VectorizeVector { 8823 - /** 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. */ 8824 - id: string; 8825 - /** The vector values */ 8826 - values: VectorFloatArray | number[]; 8827 - /** The namespace this vector belongs to. */ 8828 - namespace?: string; 8829 - /** Metadata associated with the vector. Includes the values of other fields and potentially additional details. */ 8830 - metadata?: Record<string, VectorizeVectorMetadata>; 8831 - } 8832 - /** 8833 - * Represents a matched vector for a query along with its score and (if specified) the matching vector information. 8834 - */ 8835 - type VectorizeMatch = Pick<Partial<VectorizeVector>, "values"> & Omit<VectorizeVector, "values"> & { 8836 - /** The score or rank for similarity, when returned as a result */ 8837 - score: number; 8838 - }; 8839 - /** 8840 - * A set of matching {@link VectorizeMatch} for a particular query. 8841 - */ 8842 - interface VectorizeMatches { 8843 - matches: VectorizeMatch[]; 8844 - count: number; 8845 - } 8846 - /** 8847 - * Results of an operation that performed a mutation on a set of vectors. 8848 - * Here, `ids` is a list of vectors that were successfully processed. 8849 - * 8850 - * This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released. 8851 - * See {@link VectorizeAsyncMutation} for its post-beta equivalent. 8852 - */ 8853 - interface VectorizeVectorMutation { 8854 - /* List of ids of vectors that were successfully processed. */ 8855 - ids: string[]; 8856 - /* Total count of the number of processed vectors. */ 8857 - count: number; 8858 - } 8859 - /** 8860 - * Result type indicating a mutation on the Vectorize Index. 8861 - * Actual mutations are processed async where the `mutationId` is the unique identifier for the operation. 8862 - */ 8863 - interface VectorizeAsyncMutation { 8864 - /** The unique identifier for the async mutation operation containing the changeset. */ 8865 - mutationId: string; 8866 - } 8867 - /** 8868 - * A Vectorize Vector Search Index for querying vectors/embeddings. 8869 - * 8870 - * This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released. 8871 - * See {@link Vectorize} for its new implementation. 8872 - */ 8873 - declare abstract class VectorizeIndex { 8874 - /** 8875 - * Get information about the currently bound index. 8876 - * @returns A promise that resolves with information about the current index. 8877 - */ 8878 - public describe(): Promise<VectorizeIndexDetails>; 8879 - /** 8880 - * Use the provided vector to perform a similarity search across the index. 8881 - * @param vector Input vector that will be used to drive the similarity search. 8882 - * @param options Configuration options to massage the returned data. 8883 - * @returns A promise that resolves with matched and scored vectors. 8884 - */ 8885 - public query(vector: VectorFloatArray | number[], options?: VectorizeQueryOptions): Promise<VectorizeMatches>; 8886 - /** 8887 - * Insert a list of vectors into the index dataset. If a provided id exists, an error will be thrown. 8888 - * @param vectors List of vectors that will be inserted. 8889 - * @returns A promise that resolves with the ids & count of records that were successfully processed. 8890 - */ 8891 - public insert(vectors: VectorizeVector[]): Promise<VectorizeVectorMutation>; 8892 - /** 8893 - * Upsert a list of vectors into the index dataset. If a provided id exists, it will be replaced with the new values. 8894 - * @param vectors List of vectors that will be upserted. 8895 - * @returns A promise that resolves with the ids & count of records that were successfully processed. 8896 - */ 8897 - public upsert(vectors: VectorizeVector[]): Promise<VectorizeVectorMutation>; 8898 - /** 8899 - * Delete a list of vectors with a matching id. 8900 - * @param ids List of vector ids that should be deleted. 8901 - * @returns A promise that resolves with the ids & count of records that were successfully processed (and thus deleted). 8902 - */ 8903 - public deleteByIds(ids: string[]): Promise<VectorizeVectorMutation>; 8904 - /** 8905 - * Get a list of vectors with a matching id. 8906 - * @param ids List of vector ids that should be returned. 8907 - * @returns A promise that resolves with the raw unscored vectors matching the id set. 8908 - */ 8909 - public getByIds(ids: string[]): Promise<VectorizeVector[]>; 8910 - } 8911 - /** 8912 - * A Vectorize Vector Search Index for querying vectors/embeddings. 8913 - * 8914 - * Mutations in this version are async, returning a mutation id. 8915 - */ 8916 - declare abstract class Vectorize { 8917 - /** 8918 - * Get information about the currently bound index. 8919 - * @returns A promise that resolves with information about the current index. 8920 - */ 8921 - public describe(): Promise<VectorizeIndexInfo>; 8922 - /** 8923 - * Use the provided vector to perform a similarity search across the index. 8924 - * @param vector Input vector that will be used to drive the similarity search. 8925 - * @param options Configuration options to massage the returned data. 8926 - * @returns A promise that resolves with matched and scored vectors. 8927 - */ 8928 - public query(vector: VectorFloatArray | number[], options?: VectorizeQueryOptions): Promise<VectorizeMatches>; 8929 - /** 8930 - * Use the provided vector-id to perform a similarity search across the index. 8931 - * @param vectorId Id for a vector in the index against which the index should be queried. 8932 - * @param options Configuration options to massage the returned data. 8933 - * @returns A promise that resolves with matched and scored vectors. 8934 - */ 8935 - public queryById(vectorId: string, options?: VectorizeQueryOptions): Promise<VectorizeMatches>; 8936 - /** 8937 - * Insert a list of vectors into the index dataset. If a provided id exists, an error will be thrown. 8938 - * @param vectors List of vectors that will be inserted. 8939 - * @returns A promise that resolves with a unique identifier of a mutation containing the insert changeset. 8940 - */ 8941 - public insert(vectors: VectorizeVector[]): Promise<VectorizeAsyncMutation>; 8942 - /** 8943 - * Upsert a list of vectors into the index dataset. If a provided id exists, it will be replaced with the new values. 8944 - * @param vectors List of vectors that will be upserted. 8945 - * @returns A promise that resolves with a unique identifier of a mutation containing the upsert changeset. 8946 - */ 8947 - public upsert(vectors: VectorizeVector[]): Promise<VectorizeAsyncMutation>; 8948 - /** 8949 - * Delete a list of vectors with a matching id. 8950 - * @param ids List of vector ids that should be deleted. 8951 - * @returns A promise that resolves with a unique identifier of a mutation containing the delete changeset. 8952 - */ 8953 - public deleteByIds(ids: string[]): Promise<VectorizeAsyncMutation>; 8954 - /** 8955 - * Get a list of vectors with a matching id. 8956 - * @param ids List of vector ids that should be returned. 8957 - * @returns A promise that resolves with the raw unscored vectors matching the id set. 8958 - */ 8959 - public getByIds(ids: string[]): Promise<VectorizeVector[]>; 8960 - } 8961 - /** 8962 - * The interface for "version_metadata" binding 8963 - * providing metadata about the Worker Version using this binding. 8964 - */ 8965 - type WorkerVersionMetadata = { 8966 - /** The ID of the Worker Version using this binding */ 8967 - id: string; 8968 - /** The tag of the Worker Version using this binding */ 8969 - tag: string; 8970 - /** The timestamp of when the Worker Version was uploaded */ 8971 - timestamp: string; 8972 - }; 8973 - interface DynamicDispatchLimits { 8974 - /** 8975 - * Limit CPU time in milliseconds. 8976 - */ 8977 - cpuMs?: number; 8978 - /** 8979 - * Limit number of subrequests. 8980 - */ 8981 - subRequests?: number; 8982 - } 8983 - interface DynamicDispatchOptions { 8984 - /** 8985 - * Limit resources of invoked Worker script. 8986 - */ 8987 - limits?: DynamicDispatchLimits; 8988 - /** 8989 - * Arguments for outbound Worker script, if configured. 8990 - */ 8991 - outbound?: { 8992 - [key: string]: any; 8993 - }; 8994 - } 8995 - interface DispatchNamespace { 8996 - /** 8997 - * @param name Name of the Worker script. 8998 - * @param args Arguments to Worker script. 8999 - * @param options Options for Dynamic Dispatch invocation. 9000 - * @returns A Fetcher object that allows you to send requests to the Worker script. 9001 - * @throws If the Worker script does not exist in this dispatch namespace, an error will be thrown. 9002 - */ 9003 - get(name: string, args?: { 9004 - [key: string]: any; 9005 - }, options?: DynamicDispatchOptions): Fetcher; 9006 - } 9007 - declare module 'cloudflare:workflows' { 9008 - /** 9009 - * NonRetryableError allows for a user to throw a fatal error 9010 - * that makes a Workflow instance fail immediately without triggering a retry 9011 - */ 9012 - export class NonRetryableError extends Error { 9013 - public constructor(message: string, name?: string); 9014 - } 9015 - } 9016 - declare abstract class Workflow<PARAMS = unknown> { 9017 - /** 9018 - * Get a handle to an existing instance of the Workflow. 9019 - * @param id Id for the instance of this Workflow 9020 - * @returns A promise that resolves with a handle for the Instance 9021 - */ 9022 - public get(id: string): Promise<WorkflowInstance>; 9023 - /** 9024 - * Create a new instance and return a handle to it. If a provided id exists, an error will be thrown. 9025 - * @param options Options when creating an instance including id and params 9026 - * @returns A promise that resolves with a handle for the Instance 9027 - */ 9028 - public create(options?: WorkflowInstanceCreateOptions<PARAMS>): Promise<WorkflowInstance>; 9029 - /** 9030 - * Create a batch of instances and return handle for all of them. If a provided id exists, an error will be thrown. 9031 - * `createBatch` is limited at 100 instances at a time or when the RPC limit for the batch (1MiB) is reached. 9032 - * @param batch List of Options when creating an instance including name and params 9033 - * @returns A promise that resolves with a list of handles for the created instances. 9034 - */ 9035 - public createBatch(batch: WorkflowInstanceCreateOptions<PARAMS>[]): Promise<WorkflowInstance[]>; 9036 - } 9037 - type WorkflowDurationLabel = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year'; 9038 - type WorkflowSleepDuration = `${number} ${WorkflowDurationLabel}${'s' | ''}` | number; 9039 - type WorkflowRetentionDuration = WorkflowSleepDuration; 9040 - interface WorkflowInstanceCreateOptions<PARAMS = unknown> { 9041 - /** 9042 - * An id for your Workflow instance. Must be unique within the Workflow. 9043 - */ 9044 - id?: string; 9045 - /** 9046 - * The event payload the Workflow instance is triggered with 9047 - */ 9048 - params?: PARAMS; 9049 - /** 9050 - * The retention policy for Workflow instance. 9051 - * Defaults to the maximum retention period available for the owner's account. 9052 - */ 9053 - retention?: { 9054 - successRetention?: WorkflowRetentionDuration; 9055 - errorRetention?: WorkflowRetentionDuration; 9056 - }; 9057 - } 9058 - type InstanceStatus = { 9059 - status: 'queued' // means that instance is waiting to be started (see concurrency limits) 9060 - | 'running' | 'paused' | 'errored' | 'terminated' // user terminated the instance while it was running 9061 - | 'complete' | 'waiting' // instance is hibernating and waiting for sleep or event to finish 9062 - | 'waitingForPause' // instance is finishing the current work to pause 9063 - | 'unknown'; 9064 - error?: string; 9065 - output?: object; 9066 - }; 9067 - interface WorkflowError { 9068 - code?: number; 9069 - message: string; 9070 - } 9071 - declare abstract class WorkflowInstance { 9072 - public id: string; 9073 - /** 9074 - * Pause the instance. 9075 - */ 9076 - public pause(): Promise<void>; 9077 - /** 9078 - * Resume the instance. If it is already running, an error will be thrown. 9079 - */ 9080 - public resume(): Promise<void>; 9081 - /** 9082 - * Terminate the instance. If it is errored, terminated or complete, an error will be thrown. 9083 - */ 9084 - public terminate(): Promise<void>; 9085 - /** 9086 - * Restart the instance. 9087 - */ 9088 - public restart(): Promise<void>; 9089 - /** 9090 - * Returns the current status of the instance. 9091 - */ 9092 - public status(): Promise<InstanceStatus>; 9093 - /** 9094 - * Send an event to this instance. 9095 - */ 9096 - public sendEvent({ type, payload, }: { 9097 - type: string; 9098 - payload: unknown; 9099 - }): Promise<void>; 9100 - }
-14
apps/api/wrangler.json
··· 1 - { 2 - "$schema": "./node_modules/wrangler/config-schema.json", 3 - "name": "recipes-blue-api", 4 - "main": "src/index.ts", 5 - "compatibility_date": "2025-11-23", 6 - "observability": { "enabled": true }, 7 - "d1_databases": [ 8 - { 9 - "binding": "DB", 10 - "database_name": "recipesblue", 11 - "migrations_dir": "../../libs/database/migrations" 12 - } 13 - ] 14 - }
+5 -5
apps/ingester/package.json
··· 7 7 "access": "public" 8 8 }, 9 9 "scripts": { 10 - "dev": "NODE_OPTIONS=--use-openssl-ca tsx watch --clear-screen=false src/index.ts | pino-pretty", 10 + "dev": "bun run --hot src/index.ts", 11 11 "build": "tsup", 12 - "start": "NODE_OPTIONS=--use-openssl-ca node dist/index.cjs", 12 + "start": "bun run src/index.ts", 13 13 "clean": "rimraf dist" 14 14 }, 15 15 "dependencies": { 16 - "@atcute/client": "^4.0.5", 16 + "@atcute/client": "catalog:", 17 17 "@cookware/database": "workspace:^", 18 18 "@sentry/node": "^8.42.0", 19 19 "@skyware/jetstream": "^0.2.1", 20 20 "bufferutil": "^4.0.8", 21 - "drizzle-orm": "^0.37.0", 21 + "drizzle-orm": "catalog:", 22 22 "pino": "^9.5.0", 23 23 "ws": "^8.18.0", 24 24 "zod": "^3.23.8" ··· 26 26 "devDependencies": { 27 27 "@cookware/lexicons": "workspace:*", 28 28 "@cookware/tsconfig": "workspace:*", 29 - "@types/node": "^22.10.1", 29 + "@types/bun": "catalog:", 30 30 "@types/ws": "^8.5.13", 31 31 "pino-pretty": "^13.0.0", 32 32 "rimraf": "^6.0.1",
+2 -2
apps/web/package.json
··· 11 11 }, 12 12 "dependencies": { 13 13 "@atcute/atproto": "^3.1.9", 14 - "@atcute/client": "^4.0.5", 15 - "@atcute/lexicons": "^1.2.3", 14 + "@atcute/client": "catalog:", 15 + "@atcute/lexicons": "catalog:", 16 16 "@atcute/oauth-browser-client": "^1.0.7", 17 17 "@atproto/common": "^0.4.5", 18 18 "@atproto/common-web": "^0.3.1",
+79 -230
bun.lock
··· 3 3 "configVersion": 1, 4 4 "workspaces": { 5 5 "": { 6 + "name": "@cookware/monorepo", 6 7 "devDependencies": { 7 8 "turbo": "^2.3.3", 9 + "typescript": "^5.9.3", 8 10 }, 9 11 }, 10 12 "apps/api": { 11 13 "name": "@cookware/api", 12 14 "dependencies": { 13 15 "@atcute/atproto": "^3.1.9", 14 - "@atcute/client": "^4.0.5", 15 - "@atcute/lexicons": "^1.2.3", 16 + "@atcute/client": "catalog:", 17 + "@atcute/identity": "^1.1.3", 18 + "@atcute/identity-resolver": "^1.1.4", 19 + "@atcute/lexicons": "catalog:", 16 20 "@atcute/xrpc-server": "^0.1.3", 17 - "@atcute/xrpc-server-cloudflare": "^0.1.0", 18 21 "@atproto/api": "^0.13.19", 19 22 "@atproto/common": "^0.4.5", 20 23 "@atproto/crypto": "^0.4.2", ··· 22 25 "@atproto/oauth-client-node": "^0.2.3", 23 26 "@cookware/database": "workspace:*", 24 27 "@cookware/lexicons": "workspace:*", 25 - "@hono/node-server": "^1.13.7", 26 28 "@libsql/client": "^0.14.0", 27 - "@sentry/node": "^8.42.0", 28 - "@skyware/jetstream": "^0.2.1", 29 - "bufferutil": "^4.0.8", 30 - "drizzle-orm": "^0.37.0", 29 + "drizzle-orm": "catalog:", 31 30 "hono": "^4.6.12", 32 - "hono-sessions": "^0.7.0", 33 31 "jose": "^5.9.6", 34 32 "pino": "^9.5.0", 35 33 "uint8arrays": "^5.1.0", ··· 40 38 "@atcute/bluesky": "^3.2.10", 41 39 "@cookware/tsconfig": "workspace:*", 42 40 "@swc/core": "^1.9.3", 41 + "@types/bun": "catalog:", 43 42 "@types/ws": "^8.5.13", 44 43 "drizzle-kit": "^0.29.0", 45 - "pino-pretty": "^13.0.0", 46 44 "rimraf": "^6.0.1", 47 - "ts-node": "^10.9.2", 48 45 "tsup": "^8.3.5", 49 - "tsx": "^4.19.2", 50 46 "typescript": "^5.7.2", 51 - "wrangler": "^4.50.0", 52 47 }, 53 48 }, 54 49 "apps/ingester": { 55 50 "name": "@cookware/ingester", 56 51 "dependencies": { 57 - "@atcute/client": "^4.0.5", 52 + "@atcute/client": "catalog:", 58 53 "@cookware/database": "workspace:^", 59 54 "@sentry/node": "^8.42.0", 60 55 "@skyware/jetstream": "^0.2.1", 61 56 "bufferutil": "^4.0.8", 62 - "drizzle-orm": "^0.37.0", 57 + "drizzle-orm": "catalog:", 63 58 "pino": "^9.5.0", 64 59 "ws": "^8.18.0", 65 60 "zod": "^3.23.8", ··· 67 62 "devDependencies": { 68 63 "@cookware/lexicons": "workspace:*", 69 64 "@cookware/tsconfig": "workspace:*", 70 - "@types/node": "^22.10.1", 65 + "@types/bun": "catalog:", 71 66 "@types/ws": "^8.5.13", 72 67 "pino-pretty": "^13.0.0", 73 68 "rimraf": "^6.0.1", ··· 82 77 "version": "0.0.0", 83 78 "dependencies": { 84 79 "@atcute/atproto": "^3.1.9", 85 - "@atcute/client": "^4.0.5", 86 - "@atcute/lexicons": "^1.2.3", 80 + "@atcute/client": "catalog:", 81 + "@atcute/lexicons": "catalog:", 87 82 "@atcute/oauth-browser-client": "^1.0.7", 88 83 "@atproto/common": "^0.4.5", 89 84 "@atproto/common-web": "^0.3.1", ··· 143 138 "name": "@cookware/database", 144 139 "version": "0.0.0", 145 140 "dependencies": { 146 - "@libsql/client": "^0.14.0", 147 - "drizzle-orm": "^0.37.0", 141 + "@libsql/client": "^0.15.15", 142 + "drizzle-orm": "catalog:", 148 143 "zod": "^3.23.8", 149 144 }, 150 145 "devDependencies": { 146 + "@atcute/lexicons": "catalog:", 151 147 "@atproto/oauth-client-node": "^0.2.3", 152 148 "@cookware/lexicons": "workspace:*", 153 149 "@cookware/tsconfig": "workspace:*", 150 + "@types/bun": "catalog:", 154 151 "@types/node": "^22.10.1", 155 152 "drizzle-kit": "^0.29.0", 156 153 "typescript": "^5.2.2", ··· 160 157 "name": "@cookware/lexicons", 161 158 "version": "0.0.0", 162 159 "dependencies": { 163 - "@atcute/lexicons": "^1.2.3", 160 + "@atcute/client": "catalog:", 161 + "@atcute/lexicons": "catalog:", 164 162 }, 165 163 "devDependencies": { 166 - "@atcute/client": "^4.0.5", 167 - "@atcute/lex-cli": "^2.3.2", 164 + "@atcute/lex-cli": "^2.3.3", 168 165 "@cookware/tsconfig": "workspace:*", 169 - "typescript": "^5.7.2", 170 - "zod": "^3.23.8", 171 - }, 172 - "peerDependencies": { 173 - "@atcute/client": "^4.0.5", 174 - "zod": "^3.23.8", 166 + "@types/bun": "catalog:", 175 167 }, 176 168 }, 177 169 "libs/tsconfig": { 178 170 "name": "@cookware/tsconfig", 179 171 "version": "0.0.0", 172 + "dependencies": { 173 + "@types/bun": "^1.3.3", 174 + }, 180 175 }, 181 176 }, 177 + "catalog": { 178 + "@atcute/client": "^4.0.5", 179 + "@atcute/lexicons": "^1.2.4", 180 + "@types/bun": "^1.3.3", 181 + "drizzle-orm": "^0.44.7", 182 + }, 182 183 "packages": { 183 184 "@alloc/quick-lru": ["@alloc/quick-lru@5.2.0", "", {}, "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw=="], 184 185 ··· 186 187 187 188 "@atcute/bluesky": ["@atcute/bluesky@3.2.10", "", { "dependencies": { "@atcute/atproto": "^3.1.9", "@atcute/lexicons": "^1.2.2" } }, "sha512-qwQWTzRf3umnh2u41gdU+xWYkbzGlKDupc3zeOB+YjmuP1N9wEaUhwS8H7vgrqr0xC9SGNDjeUVcjC4m5BPLBg=="], 188 189 189 - "@atcute/cbor": ["@atcute/cbor@2.2.7", "", { "dependencies": { "@atcute/cid": "^2.2.5", "@atcute/multibase": "^1.1.6", "@atcute/uint8array": "^1.0.5" } }, "sha512-/mwAF0gnokOphceZqFq3uzMGdd8sbw5y6bxF8CRutRkCCUcpjjpJc5fkLwhxyGgOveF3mZuHE6p7t/+IAqb7Aw=="], 190 + "@atcute/cbor": ["@atcute/cbor@2.2.8", "", { "dependencies": { "@atcute/cid": "^2.2.6", "@atcute/multibase": "^1.1.6", "@atcute/uint8array": "^1.0.5" } }, "sha512-UzOAN9BuN6JCXgn0ryV8qZuRJUDrNqrbLd6EFM8jc6RYssjRyGRxNy6RZ1NU/07Hd8Tq/0pz8+nQiMu5Zai5uw=="], 190 191 191 192 "@atcute/cid": ["@atcute/cid@2.2.6", "", { "dependencies": { "@atcute/multibase": "^1.1.6", "@atcute/uint8array": "^1.0.5" } }, "sha512-bTAHHbJ24p+E//V4KCS4xdmd39o211jJswvqQOevj7vk+5IYcgDLx1ryZWZ1sEPOo9x875li/kj5gpKL14RDwQ=="], 192 193 ··· 194 195 195 196 "@atcute/crypto": ["@atcute/crypto@2.2.6", "", { "dependencies": { "@atcute/multibase": "^1.1.6", "@atcute/uint8array": "^1.0.5", "@noble/secp256k1": "^3.0.0" } }, "sha512-vkuexF+kmrKE1/Uqzub99Qi4QpnxA2jbu60E6PTgL4XypELQ6rb59MB/J1VbY2gs0kd3ET7+L3+NWpKD5nXyfA=="], 196 197 197 - "@atcute/identity": ["@atcute/identity@1.1.2", "", { "dependencies": { "@atcute/lexicons": "^1.2.3", "@badrap/valita": "^0.4.6" } }, "sha512-vn0RN7SUF6N0sEPG9yyT6a0MzpfVS8BhsiLtB8OeS4qp2rLMQW33pelCpNitP1N+fq03MFlDGzs5p7K4qMs4cA=="], 198 + "@atcute/identity": ["@atcute/identity@1.1.3", "", { "dependencies": { "@atcute/lexicons": "^1.2.4", "@badrap/valita": "^0.4.6" } }, "sha512-oIqPoI8TwWeQxvcLmFEZLdN2XdWcaLVtlm8pNk0E72As9HNzzD9pwKPrLr3rmTLRIoULPPFmq9iFNsTeCIU9ng=="], 198 199 199 200 "@atcute/identity-resolver": ["@atcute/identity-resolver@1.1.4", "", { "dependencies": { "@atcute/lexicons": "^1.2.2", "@atcute/util-fetch": "^1.0.3", "@badrap/valita": "^0.4.6" }, "peerDependencies": { "@atcute/identity": "^1.0.0" } }, "sha512-/SVh8vf2cXFJenmBnGeYF2aY3WGQm3cJeew5NWTlkqoy3LvJ5wkvKq9PWu4Tv653VF40rPOp6LOdVr9Fa+q5rA=="], 200 201 201 - "@atcute/lex-cli": ["@atcute/lex-cli@2.3.2", "", { "dependencies": { "@atcute/lexicon-doc": "^1.2.0", "@badrap/valita": "^0.4.6", "@optique/core": "^0.6.2", "@optique/run": "^0.6.2", "picocolors": "^1.1.1", "prettier": "^3.6.2" }, "bin": { "lex-cli": "cli.mjs" } }, "sha512-mqvvXa78NRLgM7ugU+gRnE+XxbIeTzAkRsf5WmNzqHdusrpmwzJ4o8XYuQJJDqSo2NMepQQpqJ+XvivGL5ZYVg=="], 202 + "@atcute/lex-cli": ["@atcute/lex-cli@2.3.3", "", { "dependencies": { "@atcute/lexicon-doc": "^2.0.0", "@badrap/valita": "^0.4.6", "@optique/core": "^0.6.2", "@optique/run": "^0.6.2", "picocolors": "^1.1.1", "prettier": "^3.6.2" }, "bin": { "lex-cli": "cli.mjs" } }, "sha512-L+fxfJWVBFiuS53yK2aDg7F3R0Ak7UOj9BOM2khofR6yBSKHrkCuk3b6GrkbcMKo+9O0ynaLsuXxUNlHvw/m3w=="], 202 203 203 - "@atcute/lexicon-doc": ["@atcute/lexicon-doc@1.3.0", "", { "dependencies": { "@atcute/lexicons": "1.2.3", "@badrap/valita": "^0.4.6" } }, "sha512-92mW9mBVXMbchF+aZP9L/5aziE+wyzHKc8LJH8rp0vabwni+ajkKlCk0otrneCKUB21RsNIRMk0zTbTRKRBXrA=="], 204 + "@atcute/lexicon-doc": ["@atcute/lexicon-doc@2.0.1", "", { "dependencies": { "@atcute/identity": "^1.1.3", "@atcute/lexicons": "1.2.4", "@badrap/valita": "^0.4.6" } }, "sha512-yWgcBYkvifczVODZSgdVkIljzIfdh50t+QXjkDL/FSu2RP43NGBEZ5xfZqJcT68/UoyE+doSg0dhvOEIlVGU/A=="], 204 205 205 - "@atcute/lexicons": ["@atcute/lexicons@1.2.3", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "esm-env": "^1.2.2" } }, "sha512-ZNfNWS4jaR8VgWSSBaWRSSmwFeP134BmvpTt9JmM2x5vRoXeIFthxU9USY8ZV4vm0GPoxEMgkDin8HIlnFTg2w=="], 206 + "@atcute/lexicons": ["@atcute/lexicons@1.2.4", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "esm-env": "^1.2.2" } }, "sha512-s6fl/SVjQMv7jiitLCcZ434X+VrTsJt7Fl9iJg8WXHJIELRz/U0sNUoP++oWd7bvPy1Vcd2Wnm+YtTm/Zn7AIQ=="], 206 207 207 208 "@atcute/multibase": ["@atcute/multibase@1.1.6", "", { "dependencies": { "@atcute/uint8array": "^1.0.5" } }, "sha512-HBxuCgYLKPPxETV0Rot4VP9e24vKl8JdzGCZOVsDaOXJgbRZoRIF67Lp0H/OgnJeH/Xpva8Z5ReoTNJE5dn3kg=="], 208 209 ··· 213 214 "@atcute/util-fetch": ["@atcute/util-fetch@1.0.3", "", { "dependencies": { "@badrap/valita": "^0.4.6" } }, "sha512-f8zzTb/xlKIwv2OQ31DhShPUNCmIIleX6p7qIXwWwEUjX6x8skUtpdISSjnImq01LXpltGV5y8yhV4/Mlb7CRQ=="], 214 215 215 216 "@atcute/xrpc-server": ["@atcute/xrpc-server@0.1.3", "", { "dependencies": { "@atcute/cbor": "^2.2.7", "@atcute/crypto": "^2.2.5", "@atcute/identity": "^1.1.1", "@atcute/identity-resolver": "^1.1.4", "@atcute/lexicons": "^1.2.2", "@atcute/multibase": "^1.1.6", "@atcute/uint8array": "^1.0.5", "@badrap/valita": "^0.4.6", "nanoid": "^5.1.5" } }, "sha512-AMig6MuAL5VfXRZVsQqQXKCXnZgpjTc6UM6RggvyE1qVT8y9tZPFXdP5tt/p6Jf+h4cAw+XMu2uyrGpUmnTSyQ=="], 216 - 217 - "@atcute/xrpc-server-cloudflare": ["@atcute/xrpc-server-cloudflare@0.1.0", "", { "peerDependencies": { "@atcute/xrpc-server": "^0.1.3" } }, "sha512-t7ub8FOKVi7uq8p4FV3nqCOzR4iIUG6ioC8cK7BF6ahD9jx6yuA83q7HiId3OzT9cf4Ad3Sbu2l/CWxV4G25fw=="], 218 217 219 218 "@atproto-labs/did-resolver": ["@atproto-labs/did-resolver@0.1.13", "", { "dependencies": { "@atproto-labs/fetch": "0.2.3", "@atproto-labs/pipe": "0.1.1", "@atproto-labs/simple-store": "0.2.0", "@atproto-labs/simple-store-memory": "0.1.3", "@atproto/did": "0.1.5", "zod": "^3.23.8" } }, "sha512-DG3YNaCKc6PAIv1Gsz3E1Kufw2t14OBxe4LdKK7KKLCNoex51hm+A5yMevShe3BSll+QosqWYIEgkPSc5xBoGQ=="], 220 219 ··· 332 331 333 332 "@cbor-extract/cbor-extract-win32-x64": ["@cbor-extract/cbor-extract-win32-x64@2.2.0", "", { "os": "win32", "cpu": "x64" }, "sha512-l2M+Z8DO2vbvADOBNLbbh9y5ST1RY5sqkWOg/58GkUPBYou/cuNZ68SGQ644f1CvZ8kcOxyZtw06+dxWHIoN/w=="], 334 333 335 - "@cloudflare/kv-asset-handler": ["@cloudflare/kv-asset-handler@0.4.0", "", { "dependencies": { "mime": "^3.0.0" } }, "sha512-+tv3z+SPp+gqTIcImN9o0hqE9xyfQjI1XD9pL6NuKjua9B1y7mNYv0S9cP+QEbA4ppVgGZEmKOvHX5G5Ei1CVA=="], 336 - 337 - "@cloudflare/unenv-preset": ["@cloudflare/unenv-preset@2.7.11", "", { "peerDependencies": { "unenv": "2.0.0-rc.24", "workerd": "^1.20251106.1" }, "optionalPeers": ["workerd"] }, "sha512-se23f1D4PxKrMKOq+Stz+Yn7AJ9ITHcEecXo2Yjb+UgbUDCEBch1FXQC6hx6uT5fNA3kmX3mfzeZiUmpK1W9IQ=="], 338 - 339 - "@cloudflare/workerd-darwin-64": ["@cloudflare/workerd-darwin-64@1.20251118.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-UmWmYEYS/LkK/4HFKN6xf3Hk8cw70PviR+ftr3hUvs9HYZS92IseZEp16pkL6ZBETrPRpZC7OrzoYF7ky6kHsg=="], 340 - 341 - "@cloudflare/workerd-darwin-arm64": ["@cloudflare/workerd-darwin-arm64@1.20251118.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-RockU7Qzf4rxNfY1lx3j4rvwutNLjTIX7rr2hogbQ4mzLo8Ea40/oZTzXVxl+on75joLBrt0YpenGW8o/r44QA=="], 342 - 343 - "@cloudflare/workerd-linux-64": ["@cloudflare/workerd-linux-64@1.20251118.0", "", { "os": "linux", "cpu": "x64" }, "sha512-aT97GnOAbJDuuOG0zPVhgRk0xFtB1dzBMrxMZ09eubDLoU4djH4BuORaqvxNRMmHgKfa4T6drthckT0NjUvBdw=="], 344 - 345 - "@cloudflare/workerd-linux-arm64": ["@cloudflare/workerd-linux-arm64@1.20251118.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-bXZPJcwlq00MPOXqP7DMWjr+goYj0+Fqyw6zgEC2M3FR1+SWla4yjghnZ4IdpN+H1t7VbUrsi5np2LzMUFs0NA=="], 346 - 347 - "@cloudflare/workerd-windows-64": ["@cloudflare/workerd-windows-64@1.20251118.0", "", { "os": "win32", "cpu": "x64" }, "sha512-2LV99AHSlpr8WcCb/BYbU2QsYkXLUL1izN6YKWkN9Eibv80JKX0RtgmD3dfmajE5sNvClavxZejgzVvHD9N9Ag=="], 348 - 349 334 "@cookware/api": ["@cookware/api@workspace:apps/api"], 350 335 351 336 "@cookware/database": ["@cookware/database@workspace:libs/database"], ··· 371 356 "@dnd-kit/utilities": ["@dnd-kit/utilities@3.2.2", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0" } }, "sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg=="], 372 357 373 358 "@drizzle-team/brocli": ["@drizzle-team/brocli@0.10.2", "", {}, "sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w=="], 374 - 375 - "@emnapi/runtime": ["@emnapi/runtime@1.7.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA=="], 376 359 377 360 "@esbuild-kit/core-utils": ["@esbuild-kit/core-utils@3.3.2", "", { "dependencies": { "esbuild": "~0.18.20", "source-map-support": "^0.5.21" } }, "sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ=="], 378 361 ··· 456 439 457 440 "@floating-ui/utils": ["@floating-ui/utils@0.2.10", "", {}, "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ=="], 458 441 459 - "@hono/node-server": ["@hono/node-server@1.19.6", "", { "peerDependencies": { "hono": "^4" } }, "sha512-Shz/KjlIeAhfiuE93NDKVdZ7HdBVLQAfdbaXEaoAVO3ic9ibRSLGIQGkcBbFyuLr+7/1D5ZCINM8B+6IvXeMtw=="], 460 - 461 442 "@hookform/resolvers": ["@hookform/resolvers@3.10.0", "", { "peerDependencies": { "react-hook-form": "^7.0.0" } }, "sha512-79Dv+3mDF7i+2ajj7SkypSKHhl1cbln1OGavqrsF7p6mbUv11xpqpacPsGDCTRvCSjEEIez2ef1NveSVL3b0Ag=="], 462 443 463 444 "@humanfs/core": ["@humanfs/core@0.19.1", "", {}, "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA=="], ··· 468 449 469 450 "@humanwhocodes/retry": ["@humanwhocodes/retry@0.4.3", "", {}, "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ=="], 470 451 471 - "@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="], 472 - 473 - "@img/sharp-darwin-x64": ["@img/sharp-darwin-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="], 474 - 475 - "@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.0.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="], 476 - 477 - "@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.0.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="], 478 - 479 - "@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.0.5", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="], 480 - 481 - "@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="], 482 - 483 - "@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.0.4", "", { "os": "linux", "cpu": "s390x" }, "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA=="], 484 - 485 - "@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="], 486 - 487 - "@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.0.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA=="], 488 - 489 - "@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.0.4", "", { "os": "linux", "cpu": "x64" }, "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw=="], 490 - 491 - "@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="], 492 - 493 - "@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="], 494 - 495 - "@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.0.4" }, "os": "linux", "cpu": "s390x" }, "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q=="], 496 - 497 - "@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="], 498 - 499 - "@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g=="], 500 - 501 - "@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.33.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw=="], 502 - 503 - "@img/sharp-wasm32": ["@img/sharp-wasm32@0.33.5", "", { "dependencies": { "@emnapi/runtime": "^1.2.0" }, "cpu": "none" }, "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg=="], 504 - 505 - "@img/sharp-win32-ia32": ["@img/sharp-win32-ia32@0.33.5", "", { "os": "win32", "cpu": "ia32" }, "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ=="], 506 - 507 - "@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.33.5", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="], 508 - 509 452 "@ipld/dag-cbor": ["@ipld/dag-cbor@7.0.3", "", { "dependencies": { "cborg": "^1.6.0", "multiformats": "^9.5.4" } }, "sha512-1VVh2huHsuohdXC1bGJNE8WR72slZ9XE2T3wbBBq31dm7ZBatmKLLxrB+XAqafxfRFjv08RZmj/W/ZqaM13AuA=="], 510 453 511 454 "@isaacs/balanced-match": ["@isaacs/balanced-match@4.0.1", "", {}, "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ=="], ··· 535 478 "@libsql/isomorphic-fetch": ["@libsql/isomorphic-fetch@0.3.1", "", {}, "sha512-6kK3SUK5Uu56zPq/Las620n5aS9xJq+jMBcNSOmjhNf/MUvdyji4vrMTqD7ptY7/4/CAVEAYDeotUz60LNQHtw=="], 536 479 537 480 "@libsql/isomorphic-ws": ["@libsql/isomorphic-ws@0.1.5", "", { "dependencies": { "@types/ws": "^8.5.4", "ws": "^8.13.0" } }, "sha512-DtLWIH29onUYR00i0GlQ3UdcTRC6EP4u9w/h9LxpUZJWRMARk6dQwZ6Jkd+QdwVpuAOrdxt18v0K2uIYR3fwFg=="], 481 + 482 + "@libsql/linux-arm-gnueabihf": ["@libsql/linux-arm-gnueabihf@0.5.22", "", { "os": "linux", "cpu": "arm" }, "sha512-3Uo3SoDPJe/zBnyZKosziRGtszXaEtv57raWrZIahtQDsjxBVjuzYQinCm9LRCJCUT5t2r5Z5nLDPJi2CwZVoA=="], 483 + 484 + "@libsql/linux-arm-musleabihf": ["@libsql/linux-arm-musleabihf@0.5.22", "", { "os": "linux", "cpu": "arm" }, "sha512-LCsXh07jvSojTNJptT9CowOzwITznD+YFGGW+1XxUr7fS+7/ydUrpDfsMX7UqTqjm7xG17eq86VkWJgHJfvpNg=="], 538 485 539 486 "@libsql/linux-arm64-gnu": ["@libsql/linux-arm64-gnu@0.4.7", "", { "os": "linux", "cpu": "arm64" }, "sha512-WlX2VYB5diM4kFfNaYcyhw5y+UJAI3xcMkEUJZPtRDEIu85SsSFrQ+gvoKfcVh76B//ztSeEX2wl9yrjF7BBCA=="], 540 487 ··· 634 581 635 582 "@pinojs/redact": ["@pinojs/redact@0.4.0", "", {}, "sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg=="], 636 583 637 - "@poppinss/colors": ["@poppinss/colors@4.1.5", "", { "dependencies": { "kleur": "^4.1.5" } }, "sha512-FvdDqtcRCtz6hThExcFOgW0cWX+xwSMWcRuQe5ZEb2m7cVQOAVZOIMt+/v9RxGiD9/OY16qJBXK4CVKWAPalBw=="], 638 - 639 - "@poppinss/dumper": ["@poppinss/dumper@0.6.5", "", { "dependencies": { "@poppinss/colors": "^4.1.5", "@sindresorhus/is": "^7.0.2", "supports-color": "^10.0.0" } }, "sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw=="], 640 - 641 - "@poppinss/exception": ["@poppinss/exception@1.2.2", "", {}, "sha512-m7bpKCD4QMlFCjA/nKTs23fuvoVFoA83brRKmObCUNmi/9tVu8Ve3w4YQAnJu4q3Tjf5fr685HYIC/IA2zHRSg=="], 642 - 643 584 "@prisma/instrumentation": ["@prisma/instrumentation@5.22.0", "", { "dependencies": { "@opentelemetry/api": "^1.8", "@opentelemetry/instrumentation": "^0.49 || ^0.50 || ^0.51 || ^0.52.0 || ^0.53.0", "@opentelemetry/sdk-trace-base": "^1.22" } }, "sha512-LxccF392NN37ISGxIurUljZSh1YWnphO34V5a0+T7FVQG2u9bhAXRTJpgmQ3483woVhkraQZFF7cbRrpbw/F4Q=="], 644 585 645 586 "@radix-ui/primitive": ["@radix-ui/primitive@1.1.3", "", {}, "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg=="], ··· 764 705 765 706 "@sentry/opentelemetry": ["@sentry/opentelemetry@8.55.0", "", { "dependencies": { "@sentry/core": "8.55.0" }, "peerDependencies": { "@opentelemetry/api": "^1.9.0", "@opentelemetry/context-async-hooks": "^1.30.1", "@opentelemetry/core": "^1.30.1", "@opentelemetry/instrumentation": "^0.57.1", "@opentelemetry/sdk-trace-base": "^1.30.1", "@opentelemetry/semantic-conventions": "^1.28.0" } }, "sha512-UvatdmSr3Xf+4PLBzJNLZ2JjG1yAPWGe/VrJlJAqyTJ2gKeTzgXJJw8rp4pbvNZO8NaTGEYhhO+scLUj0UtLAQ=="], 766 707 767 - "@sindresorhus/is": ["@sindresorhus/is@7.1.1", "", {}, "sha512-rO92VvpgMc3kfiTjGT52LEtJ8Yc5kCWhZjLQ3LwlA4pSgPpQO7bVpYXParOD8Jwf+cVQECJo3yP/4I8aZtUQTQ=="], 768 - 769 708 "@skyware/jetstream": ["@skyware/jetstream@0.2.5", "", { "dependencies": { "@atcute/atproto": "^3.1.0", "@atcute/bluesky": "^3.1.4", "@atcute/lexicons": "^1.1.0", "partysocket": "^1.1.3", "tiny-emitter": "^2.1.0" } }, "sha512-fM/zs03DLwqRyzZZJFWN20e76KrdqIp97Tlm8Cek+vxn96+tu5d/fx79V6H85L0QN6HvGiX2l9A8hWFqHvYlOA=="], 770 - 771 - "@speed-highlight/core": ["@speed-highlight/core@1.2.12", "", {}, "sha512-uilwrK0Ygyri5dToHYdZSjcvpS2ZwX0w5aSt3GCEN9hrjxWCoeV4Z2DTXuxjwbntaLQIEEAlCeNQss5SoHvAEA=="], 772 709 773 710 "@standard-schema/spec": ["@standard-schema/spec@1.0.0", "", {}, "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA=="], 774 711 ··· 810 747 811 748 "@tanstack/react-query-devtools": ["@tanstack/react-query-devtools@5.91.0", "", { "dependencies": { "@tanstack/query-devtools": "5.91.0" }, "peerDependencies": { "@tanstack/react-query": "^5.90.10", "react": "^18 || ^19" } }, "sha512-s7g8Zn8HN05HNe22n/KdNm8wXaRbkcsVkqpkdYIQuCfjVmEUoTQqtJsN2iZtgd9CU36xNS38trWIofxzyW5vbQ=="], 812 749 813 - "@tanstack/react-router": ["@tanstack/react-router@1.139.1", "", { "dependencies": { "@tanstack/history": "1.139.0", "@tanstack/react-store": "^0.8.0", "@tanstack/router-core": "1.139.1", "isbot": "^5.1.22", "tiny-invariant": "^1.3.3", "tiny-warning": "^1.0.3" }, "peerDependencies": { "react": ">=18.0.0 || >=19.0.0", "react-dom": ">=18.0.0 || >=19.0.0" } }, "sha512-0AXxrtgc+MUiXVF6+xOZK5x/ww+XzIDF0hVeBY9oZcmV1nxJeuwFYEMswBzm6Fc6CSgtK4OIBg5+O4MdtW2lrQ=="], 750 + "@tanstack/react-router": ["@tanstack/react-router@1.139.3", "", { "dependencies": { "@tanstack/history": "1.139.0", "@tanstack/react-store": "^0.8.0", "@tanstack/router-core": "1.139.3", "isbot": "^5.1.22", "tiny-invariant": "^1.3.3", "tiny-warning": "^1.0.3" }, "peerDependencies": { "react": ">=18.0.0 || >=19.0.0", "react-dom": ">=18.0.0 || >=19.0.0" } }, "sha512-lhqK0DnbA7PgHOnmhzOoWVzx8qd8oEpR4cOUbxAjwb3+ExFQWrEvRf9+ZdSxs49ZrtZL2S2UltxBv3vBV4Si5g=="], 814 751 815 - "@tanstack/react-router-devtools": ["@tanstack/react-router-devtools@1.139.1", "", { "dependencies": { "@tanstack/router-devtools-core": "1.139.1", "vite": "^7.1.7" }, "peerDependencies": { "@tanstack/react-router": "^1.139.1", "@tanstack/router-core": "^1.139.1", "react": ">=18.0.0 || >=19.0.0", "react-dom": ">=18.0.0 || >=19.0.0" }, "optionalPeers": ["@tanstack/router-core"] }, "sha512-4ypEaj1Jf+dO3Iq14TjEMvs5VmwilZFMR8K32xTqtHdsfhH2VdDL3dxUY8UloWE4cD06KnLb79sD4Sf0f9HFdQ=="], 752 + "@tanstack/react-router-devtools": ["@tanstack/react-router-devtools@1.139.3", "", { "dependencies": { "@tanstack/router-devtools-core": "1.139.3", "vite": "^7.1.7" }, "peerDependencies": { "@tanstack/react-router": "^1.139.3", "@tanstack/router-core": "^1.139.3", "react": ">=18.0.0 || >=19.0.0", "react-dom": ">=18.0.0 || >=19.0.0" }, "optionalPeers": ["@tanstack/router-core"] }, "sha512-taH/Zklh3TOEaGXo3Nmck67J6Cgj7LDY9E7pIwncocWXt/6s91kYKHsiSkCWfAbZ/bLIrj4YWu21ObnvU0PlHw=="], 816 753 817 754 "@tanstack/react-store": ["@tanstack/react-store@0.8.0", "", { "dependencies": { "@tanstack/store": "0.8.0", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-1vG9beLIuB7q69skxK9r5xiLN3ztzIPfSQSs0GfeqWGO2tGIyInZx0x1COhpx97RKaONSoAb8C3dxacWksm1ow=="], 818 755 819 - "@tanstack/router-core": ["@tanstack/router-core@1.139.1", "", { "dependencies": { "@tanstack/history": "1.139.0", "@tanstack/store": "^0.8.0", "cookie-es": "^2.0.0", "seroval": "^1.4.0", "seroval-plugins": "^1.4.0", "tiny-invariant": "^1.3.3", "tiny-warning": "^1.0.3" } }, "sha512-nPcP7mKmX38wOlqRZLITxXSo6y71LkK31Uh4xtLnO8SVEebEsNehO9p+wDYlUKnmQqWHqC+GQX5gLULVlTYmqg=="], 756 + "@tanstack/router-core": ["@tanstack/router-core@1.139.3", "", { "dependencies": { "@tanstack/history": "1.139.0", "@tanstack/store": "^0.8.0", "cookie-es": "^2.0.0", "seroval": "^1.4.0", "seroval-plugins": "^1.4.0", "tiny-invariant": "^1.3.3", "tiny-warning": "^1.0.3" } }, "sha512-j3v1e739jmozBdtnmA45xHQHjCC2aKqBtfkMT3t2ZPijVrueaVP6qNRIAWmDK4ZSqd67TF5wP8vyqeTShJsEQQ=="], 820 757 821 - "@tanstack/router-devtools": ["@tanstack/router-devtools@1.139.1", "", { "dependencies": { "@tanstack/react-router-devtools": "1.139.1", "clsx": "^2.1.1", "goober": "^2.1.16", "vite": "^7.1.7" }, "peerDependencies": { "@tanstack/react-router": "^1.139.1", "csstype": "^3.0.10", "react": ">=18.0.0 || >=19.0.0", "react-dom": ">=18.0.0 || >=19.0.0" }, "optionalPeers": ["csstype"] }, "sha512-MjnWwiFm0H4Wtz2XQv0qAOl9OQye/bhBRxers4C8x/4oOOVbcSzQasY2a3v6Nrt6AZW2x16rgPq26YGlDgP1Jg=="], 758 + "@tanstack/router-devtools": ["@tanstack/router-devtools@1.139.3", "", { "dependencies": { "@tanstack/react-router-devtools": "1.139.3", "clsx": "^2.1.1", "goober": "^2.1.16", "vite": "^7.1.7" }, "peerDependencies": { "@tanstack/react-router": "^1.139.3", "csstype": "^3.0.10", "react": ">=18.0.0 || >=19.0.0", "react-dom": ">=18.0.0 || >=19.0.0" }, "optionalPeers": ["csstype"] }, "sha512-cJ8mQNMm/4nMFDwQxSMLWP4pk9kAXLl/SkRQqOwEbhzO35enSo7r2UdcM0uTwNEEKGjdjmNrNanFzDIZJnFHCg=="], 822 759 823 - "@tanstack/router-devtools-core": ["@tanstack/router-devtools-core@1.139.1", "", { "dependencies": { "clsx": "^2.1.1", "goober": "^2.1.16", "tiny-invariant": "^1.3.3", "vite": "^7.1.7" }, "peerDependencies": { "@tanstack/router-core": "^1.139.1", "csstype": "^3.0.10", "solid-js": ">=1.9.5" }, "optionalPeers": ["csstype"] }, "sha512-bnsws+otH0cCcDNv1wzZXgA+NhEo4WvmGJUoDFWK7Md+/PUi66KltX9aSkJv6ZpqTj1slV1IOKx8kqLgwLIYPA=="], 760 + "@tanstack/router-devtools-core": ["@tanstack/router-devtools-core@1.139.3", "", { "dependencies": { "clsx": "^2.1.1", "goober": "^2.1.16", "tiny-invariant": "^1.3.3", "vite": "^7.1.7" }, "peerDependencies": { "@tanstack/router-core": "^1.139.3", "csstype": "^3.0.10", "solid-js": ">=1.9.5" }, "optionalPeers": ["csstype"] }, "sha512-dqjL9QroVORlLC283uwwMB7CLMWAfn9rgKwwcXdaSQlPcuSVScFzyFI4Iz7l6A4jGC0ALtNPQoHJ52+mvTzY5Q=="], 824 761 825 - "@tanstack/router-generator": ["@tanstack/router-generator@1.139.1", "", { "dependencies": { "@tanstack/router-core": "1.139.1", "@tanstack/router-utils": "1.139.0", "@tanstack/virtual-file-routes": "1.139.0", "prettier": "^3.5.0", "recast": "^0.23.11", "source-map": "^0.7.4", "tsx": "^4.19.2", "zod": "^3.24.2" } }, "sha512-HJaJlxilmn/Y2zSLOJ9tCreNaBUJaR2aB4tAJuINcjzd1rvJeB2eKJ5C4kRWD4pcJEznVUvy1sNfeJ3QSBj5Rg=="], 762 + "@tanstack/router-generator": ["@tanstack/router-generator@1.139.3", "", { "dependencies": { "@tanstack/router-core": "1.139.3", "@tanstack/router-utils": "1.139.0", "@tanstack/virtual-file-routes": "1.139.0", "prettier": "^3.5.0", "recast": "^0.23.11", "source-map": "^0.7.4", "tsx": "^4.19.2", "zod": "^3.24.2" } }, "sha512-zq/ZC+1rx7pGNqYOthHSm0jxioNqm7JszYDcZPAZVhHT2Qhen02b7PzW8M7Qx4FU+ldXgnhpenDN5/jqYYClfQ=="], 826 763 827 - "@tanstack/router-plugin": ["@tanstack/router-plugin@1.139.1", "", { "dependencies": { "@babel/core": "^7.27.7", "@babel/plugin-syntax-jsx": "^7.27.1", "@babel/plugin-syntax-typescript": "^7.27.1", "@babel/template": "^7.27.2", "@babel/traverse": "^7.27.7", "@babel/types": "^7.27.7", "@tanstack/router-core": "1.139.1", "@tanstack/router-generator": "1.139.1", "@tanstack/router-utils": "1.139.0", "@tanstack/virtual-file-routes": "1.139.0", "babel-dead-code-elimination": "^1.0.10", "chokidar": "^3.6.0", "unplugin": "^2.1.2", "zod": "^3.24.2" }, "peerDependencies": { "@rsbuild/core": ">=1.0.2", "@tanstack/react-router": "^1.139.1", "vite": ">=5.0.0 || >=6.0.0 || >=7.0.0", "vite-plugin-solid": "^2.11.10", "webpack": ">=5.92.0" }, "optionalPeers": ["@rsbuild/core", "@tanstack/react-router", "vite", "vite-plugin-solid", "webpack"] }, "sha512-2Sc7PqZkBLS0RC5lRnG7QldzIh6iu5PEBB/pnVWwQ5UpRietsBUGvvwPKfFtgxGs/EMLrrQNe5vMiyyfjVBbrQ=="], 764 + "@tanstack/router-plugin": ["@tanstack/router-plugin@1.139.3", "", { "dependencies": { "@babel/core": "^7.27.7", "@babel/plugin-syntax-jsx": "^7.27.1", "@babel/plugin-syntax-typescript": "^7.27.1", "@babel/template": "^7.27.2", "@babel/traverse": "^7.27.7", "@babel/types": "^7.27.7", "@tanstack/router-core": "1.139.3", "@tanstack/router-generator": "1.139.3", "@tanstack/router-utils": "1.139.0", "@tanstack/virtual-file-routes": "1.139.0", "babel-dead-code-elimination": "^1.0.10", "chokidar": "^3.6.0", "unplugin": "^2.1.2", "zod": "^3.24.2" }, "peerDependencies": { "@rsbuild/core": ">=1.0.2", "@tanstack/react-router": "^1.139.3", "vite": ">=5.0.0 || >=6.0.0 || >=7.0.0", "vite-plugin-solid": "^2.11.10", "webpack": ">=5.92.0" }, "optionalPeers": ["@rsbuild/core", "@tanstack/react-router", "vite", "vite-plugin-solid", "webpack"] }, "sha512-ymv5mr2IULgrZblzYeYUVZXzz3fzW1OzoDZh5cs5gEetRcEpXQ6XL8KG4pCkIQ04AJcrtXEWt1yZxi01XjZWxw=="], 828 765 829 766 "@tanstack/router-utils": ["@tanstack/router-utils@1.139.0", "", { "dependencies": { "@babel/core": "^7.27.4", "@babel/generator": "^7.27.5", "@babel/parser": "^7.27.5", "@babel/preset-typescript": "^7.27.1", "ansis": "^4.1.0", "diff": "^8.0.2", "pathe": "^2.0.3", "tinyglobby": "^0.2.15" } }, "sha512-jT7D6NimWqoFSkid4vCno8gvTyfL1+NHpgm3es0B2UNhKKRV3LngOGilm1m6v8Qvk/gy6Fh/tvB+s+hBl6GhOg=="], 830 767 ··· 840 777 841 778 "@tsconfig/node16": ["@tsconfig/node16@1.0.4", "", {}, "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA=="], 842 779 780 + "@types/bun": ["@types/bun@1.3.3", "", { "dependencies": { "bun-types": "1.3.3" } }, "sha512-ogrKbJ2X5N0kWLLFKeytG0eHDleBYtngtlbu9cyBKFtNL3cnpDZkNdQj8flVf6WTZUX5ulI9AY1oa7ljhSrp+g=="], 781 + 843 782 "@types/connect": ["@types/connect@3.4.36", "", { "dependencies": { "@types/node": "*" } }, "sha512-P63Zd/JUGq+PdrM1lv0Wv5SBYeA2+CORvbrXbngriYY0jzLUWfQMQQxOhjONEz/wlHOAxOdY7CY65rgQdTjq2w=="], 844 783 845 784 "@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="], ··· 854 793 855 794 "@types/pg-pool": ["@types/pg-pool@2.0.6", "", { "dependencies": { "@types/pg": "*" } }, "sha512-TaAUE5rq2VQYxab5Ts7WZhKNmuN78Q6PiFonTDdpbx8a1H0M1vhy3rhiMjl+e2iHmogyMw7jZF4FrE6eJUy5HQ=="], 856 795 857 - "@types/react": ["@types/react@19.2.6", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-p/jUvulfgU7oKtj6Xpk8cA2Y1xKTtICGpJYeJXz2YVO2UcvjQgeRMLDGfDeqeRW2Ta+0QNFwcc8X3GH8SxZz6w=="], 796 + "@types/react": ["@types/react@19.2.7", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg=="], 858 797 859 798 "@types/react-dom": ["@types/react-dom@19.2.3", "", { "peerDependencies": { "@types/react": "^19.2.0" } }, "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ=="], 860 799 ··· 864 803 865 804 "@types/ws": ["@types/ws@8.18.1", "", { "dependencies": { "@types/node": "*" } }, "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg=="], 866 805 867 - "@typescript-eslint/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.47.0", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.47.0", "@typescript-eslint/type-utils": "8.47.0", "@typescript-eslint/utils": "8.47.0", "@typescript-eslint/visitor-keys": "8.47.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.47.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-fe0rz9WJQ5t2iaLfdbDc9T80GJy0AeO453q8C3YCilnGozvOyCG5t+EZtg7j7D88+c3FipfP/x+wzGnh1xp8ZA=="], 806 + "@typescript-eslint/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.48.0", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.48.0", "@typescript-eslint/type-utils": "8.48.0", "@typescript-eslint/utils": "8.48.0", "@typescript-eslint/visitor-keys": "8.48.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.48.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-XxXP5tL1txl13YFtrECECQYeZjBZad4fyd3cFV4a19LkAY/bIp9fev3US4S5fDVV2JaYFiKAZ/GRTOLer+mbyQ=="], 868 807 869 - "@typescript-eslint/parser": ["@typescript-eslint/parser@8.47.0", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.47.0", "@typescript-eslint/types": "8.47.0", "@typescript-eslint/typescript-estree": "8.47.0", "@typescript-eslint/visitor-keys": "8.47.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-lJi3PfxVmo0AkEY93ecfN+r8SofEqZNGByvHAI3GBLrvt1Cw6H5k1IM02nSzu0RfUafr2EvFSw0wAsZgubNplQ=="], 808 + "@typescript-eslint/parser": ["@typescript-eslint/parser@8.48.0", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.48.0", "@typescript-eslint/types": "8.48.0", "@typescript-eslint/typescript-estree": "8.48.0", "@typescript-eslint/visitor-keys": "8.48.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-jCzKdm/QK0Kg4V4IK/oMlRZlY+QOcdjv89U2NgKHZk1CYTj82/RVSx1mV/0gqCVMJ/DA+Zf/S4NBWNF8GQ+eqQ=="], 870 809 871 - "@typescript-eslint/project-service": ["@typescript-eslint/project-service@8.47.0", "", { "dependencies": { "@typescript-eslint/tsconfig-utils": "^8.47.0", "@typescript-eslint/types": "^8.47.0", "debug": "^4.3.4" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-2X4BX8hUeB5JcA1TQJ7GjcgulXQ+5UkNb0DL8gHsHUHdFoiCTJoYLTpib3LtSDPZsRET5ygN4qqIWrHyYIKERA=="], 810 + "@typescript-eslint/project-service": ["@typescript-eslint/project-service@8.48.0", "", { "dependencies": { "@typescript-eslint/tsconfig-utils": "^8.48.0", "@typescript-eslint/types": "^8.48.0", "debug": "^4.3.4" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-Ne4CTZyRh1BecBf84siv42wv5vQvVmgtk8AuiEffKTUo3DrBaGYZueJSxxBZ8fjk/N3DrgChH4TOdIOwOwiqqw=="], 872 811 873 - "@typescript-eslint/scope-manager": ["@typescript-eslint/scope-manager@8.47.0", "", { "dependencies": { "@typescript-eslint/types": "8.47.0", "@typescript-eslint/visitor-keys": "8.47.0" } }, "sha512-a0TTJk4HXMkfpFkL9/WaGTNuv7JWfFTQFJd6zS9dVAjKsojmv9HT55xzbEpnZoY+VUb+YXLMp+ihMLz/UlZfDg=="], 812 + "@typescript-eslint/scope-manager": ["@typescript-eslint/scope-manager@8.48.0", "", { "dependencies": { "@typescript-eslint/types": "8.48.0", "@typescript-eslint/visitor-keys": "8.48.0" } }, "sha512-uGSSsbrtJrLduti0Q1Q9+BF1/iFKaxGoQwjWOIVNJv0o6omrdyR8ct37m4xIl5Zzpkp69Kkmvom7QFTtue89YQ=="], 874 813 875 - "@typescript-eslint/tsconfig-utils": ["@typescript-eslint/tsconfig-utils@8.47.0", "", { "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ybUAvjy4ZCL11uryalkKxuT3w3sXJAuWhOoGS3T/Wu+iUu1tGJmk5ytSY8gbdACNARmcYEB0COksD2j6hfGK2g=="], 814 + "@typescript-eslint/tsconfig-utils": ["@typescript-eslint/tsconfig-utils@8.48.0", "", { "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-WNebjBdFdyu10sR1M4OXTt2OkMd5KWIL+LLfeH9KhgP+jzfDV/LI3eXzwJ1s9+Yc0Kzo2fQCdY/OpdusCMmh6w=="], 876 815 877 - "@typescript-eslint/type-utils": ["@typescript-eslint/type-utils@8.47.0", "", { "dependencies": { "@typescript-eslint/types": "8.47.0", "@typescript-eslint/typescript-estree": "8.47.0", "@typescript-eslint/utils": "8.47.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-QC9RiCmZ2HmIdCEvhd1aJELBlD93ErziOXXlHEZyuBo3tBiAZieya0HLIxp+DoDWlsQqDawyKuNEhORyku+P8A=="], 816 + "@typescript-eslint/type-utils": ["@typescript-eslint/type-utils@8.48.0", "", { "dependencies": { "@typescript-eslint/types": "8.48.0", "@typescript-eslint/typescript-estree": "8.48.0", "@typescript-eslint/utils": "8.48.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-zbeVaVqeXhhab6QNEKfK96Xyc7UQuoFWERhEnj3mLVnUWrQnv15cJNseUni7f3g557gm0e46LZ6IJ4NJVOgOpw=="], 878 817 879 - "@typescript-eslint/types": ["@typescript-eslint/types@8.47.0", "", {}, "sha512-nHAE6bMKsizhA2uuYZbEbmp5z2UpffNrPEqiKIeN7VsV6UY/roxanWfoRrf6x/k9+Obf+GQdkm0nPU+vnMXo9A=="], 818 + "@typescript-eslint/types": ["@typescript-eslint/types@8.48.0", "", {}, "sha512-cQMcGQQH7kwKoVswD1xdOytxQR60MWKM1di26xSUtxehaDs/32Zpqsu5WJlXTtTTqyAVK8R7hvsUnIXRS+bjvA=="], 880 819 881 - "@typescript-eslint/typescript-estree": ["@typescript-eslint/typescript-estree@8.47.0", "", { "dependencies": { "@typescript-eslint/project-service": "8.47.0", "@typescript-eslint/tsconfig-utils": "8.47.0", "@typescript-eslint/types": "8.47.0", "@typescript-eslint/visitor-keys": "8.47.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-k6ti9UepJf5NpzCjH31hQNLHQWupTRPhZ+KFF8WtTuTpy7uHPfeg2NM7cP27aCGajoEplxJDFVCEm9TGPYyiVg=="], 820 + "@typescript-eslint/typescript-estree": ["@typescript-eslint/typescript-estree@8.48.0", "", { "dependencies": { "@typescript-eslint/project-service": "8.48.0", "@typescript-eslint/tsconfig-utils": "8.48.0", "@typescript-eslint/types": "8.48.0", "@typescript-eslint/visitor-keys": "8.48.0", "debug": "^4.3.4", "minimatch": "^9.0.4", "semver": "^7.6.0", "tinyglobby": "^0.2.15", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ljHab1CSO4rGrQIAyizUS6UGHHCiAYhbfcIZ1zVJr5nMryxlXMVWS3duFPSKvSUbFPwkXMFk1k0EMIjub4sRRQ=="], 882 821 883 - "@typescript-eslint/utils": ["@typescript-eslint/utils@8.47.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", "@typescript-eslint/scope-manager": "8.47.0", "@typescript-eslint/types": "8.47.0", "@typescript-eslint/typescript-estree": "8.47.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-g7XrNf25iL4TJOiPqatNuaChyqt49a/onq5YsJ9+hXeugK+41LVg7AxikMfM02PC6jbNtZLCJj6AUcQXJS/jGQ=="], 822 + "@typescript-eslint/utils": ["@typescript-eslint/utils@8.48.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", "@typescript-eslint/scope-manager": "8.48.0", "@typescript-eslint/types": "8.48.0", "@typescript-eslint/typescript-estree": "8.48.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-yTJO1XuGxCsSfIVt1+1UrLHtue8xz16V8apzPYI06W0HbEbEWHxHXgZaAgavIkoh+GeV6hKKd5jm0sS6OYxWXQ=="], 884 823 885 - "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.47.0", "", { "dependencies": { "@typescript-eslint/types": "8.47.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-SIV3/6eftCy1bNzCQoPmbWsRLujS8t5iDIZ4spZOBHqrM+yfX2ogg8Tt3PDTAVKw3sSCiUgg30uOAvK2r9zGjQ=="], 824 + "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.48.0", "", { "dependencies": { "@typescript-eslint/types": "8.48.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-T0XJMaRPOH3+LBbAfzR2jalckP1MSG/L9eUtY0DEzUyVaXJ/t6zN0nR7co5kz0Jko/nkSYCBRkz1djvjajVTTg=="], 886 825 887 826 "@vitejs/plugin-react-swc": ["@vitejs/plugin-react-swc@3.11.0", "", { "dependencies": { "@rolldown/pluginutils": "1.0.0-beta.27", "@swc/core": "^1.12.11" }, "peerDependencies": { "vite": "^4 || ^5 || ^6 || ^7" } }, "sha512-YTJCGFdNMHCMfjODYtxRNVAYmTWQ1Lb8PulP/2/f/oEEtglw8oKxKIZmmRkyXrVrHfsKOaVkAc3NT9/dMutO5w=="], 888 827 ··· 930 869 931 870 "base64-js": ["base64-js@1.5.1", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="], 932 871 933 - "baseline-browser-mapping": ["baseline-browser-mapping@2.8.30", "", { "bin": { "baseline-browser-mapping": "dist/cli.js" } }, "sha512-aTUKW4ptQhS64+v2d6IkPzymEzzhw+G0bA1g3uBRV3+ntkH+svttKseW5IOR4Ed6NUVKqnY7qT3dKvzQ7io4AA=="], 872 + "baseline-browser-mapping": ["baseline-browser-mapping@2.8.31", "", { "bin": { "baseline-browser-mapping": "dist/cli.js" } }, "sha512-a28v2eWrrRWPpJSzxc+mKwm0ZtVx/G8SepdQZDArnXYU/XS+IF6mp8aB/4E+hH1tyGCoDo3KlUCdlSxGDsRkAw=="], 934 873 935 874 "binary-extensions": ["binary-extensions@2.3.0", "", {}, "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw=="], 936 - 937 - "blake3-wasm": ["blake3-wasm@2.1.5", "", {}, "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g=="], 938 875 939 876 "boolbase": ["boolbase@1.0.0", "", {}, "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="], 940 877 ··· 949 886 "buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="], 950 887 951 888 "bufferutil": ["bufferutil@4.0.9", "", { "dependencies": { "node-gyp-build": "^4.3.0" } }, "sha512-WDtdLmJvAuNNPzByAYpRo2rF1Mmradw6gvWsQKf63476DDXmomT9zUiGypLcG4ibIM67vhAj8jJRdbmEws2Aqw=="], 889 + 890 + "bun-types": ["bun-types@1.3.3", "", { "dependencies": { "@types/node": "*" } }, "sha512-z3Xwlg7j2l9JY27x5Qn3Wlyos8YAp0kKRlrePAOjgjMGS5IG6E7Jnlx736vH9UVI4wUICwwhC9anYL++XeOgTQ=="], 952 891 953 892 "bundle-require": ["bundle-require@5.1.0", "", { "dependencies": { "load-tsconfig": "^0.2.3" }, "peerDependencies": { "esbuild": ">=0.18" } }, "sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA=="], 954 893 ··· 962 901 963 902 "caniuse-api": ["caniuse-api@3.0.0", "", { "dependencies": { "browserslist": "^4.0.0", "caniuse-lite": "^1.0.0", "lodash.memoize": "^4.1.2", "lodash.uniq": "^4.5.0" } }, "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw=="], 964 903 965 - "caniuse-lite": ["caniuse-lite@1.0.30001756", "", {}, "sha512-4HnCNKbMLkLdhJz3TToeVWHSnfJvPaq6vu/eRP0Ahub/07n484XHhBF5AJoSGHdVrS8tKFauUQz8Bp9P7LVx7A=="], 904 + "caniuse-lite": ["caniuse-lite@1.0.30001757", "", {}, "sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ=="], 966 905 967 906 "cbor-extract": ["cbor-extract@2.2.0", "", { "dependencies": { "node-gyp-build-optional-packages": "5.1.1" }, "optionalDependencies": { "@cbor-extract/cbor-extract-darwin-arm64": "2.2.0", "@cbor-extract/cbor-extract-darwin-x64": "2.2.0", "@cbor-extract/cbor-extract-linux-arm": "2.2.0", "@cbor-extract/cbor-extract-linux-arm64": "2.2.0", "@cbor-extract/cbor-extract-linux-x64": "2.2.0", "@cbor-extract/cbor-extract-win32-x64": "2.2.0" }, "bin": { "download-cbor-prebuilds": "bin/download-prebuilds.js" } }, "sha512-Ig1zM66BjLfTXpNgKpvBePq271BPOvu8MR0Jl080yG7Jsl+wAZunfrwiwA+9ruzm/WEdIV5QF/bjDZTqyAIVHA=="], 968 907 ··· 979 918 "class-variance-authority": ["class-variance-authority@0.7.1", "", { "dependencies": { "clsx": "^2.1.1" } }, "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg=="], 980 919 981 920 "clsx": ["clsx@2.1.1", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="], 982 - 983 - "color": ["color@4.2.3", "", { "dependencies": { "color-convert": "^2.0.1", "color-string": "^1.9.0" } }, "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A=="], 984 921 985 922 "color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], 986 923 987 924 "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], 988 925 989 - "color-string": ["color-string@1.9.1", "", { "dependencies": { "color-name": "^1.0.0", "simple-swizzle": "^0.2.2" } }, "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg=="], 990 - 991 926 "colord": ["colord@2.9.3", "", {}, "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw=="], 992 927 993 928 "colorette": ["colorette@2.0.20", "", {}, "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w=="], ··· 1003 938 "consola": ["consola@3.4.2", "", {}, "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA=="], 1004 939 1005 940 "convert-source-map": ["convert-source-map@2.0.0", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="], 1006 - 1007 - "cookie": ["cookie@1.0.2", "", {}, "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA=="], 1008 941 1009 942 "cookie-es": ["cookie-es@2.0.0", "", {}, "sha512-RAj4E421UYRgqokKUmotqAwuplYw15qtdXfY+hGzgCJ/MBjCVZcSoHK/kH9kocfjRjcDME7IiDWR/1WX1TM2Pg=="], 1010 943 ··· 1062 995 1063 996 "drizzle-kit": ["drizzle-kit@0.29.1", "", { "dependencies": { "@drizzle-team/brocli": "^0.10.2", "@esbuild-kit/esm-loader": "^2.5.5", "esbuild": "^0.19.7", "esbuild-register": "^3.5.0" }, "bin": { "drizzle-kit": "bin.cjs" } }, "sha512-OvHL8RVyYiPR3LLRE3SHdcON8xGXl+qMfR9uTTnFWBPIqVk/3NWYZPb7nfpM1Bhix3H+BsxqPyyagG7YZ+Z63A=="], 1064 997 1065 - "drizzle-orm": ["drizzle-orm@0.37.0", "", { "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", "@electric-sql/pglite": ">=0.2.0", "@libsql/client": ">=0.10.0", "@libsql/client-wasm": ">=0.10.0", "@neondatabase/serverless": ">=0.10.0", "@op-engineering/op-sqlite": ">=2", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1", "@prisma/client": "*", "@tidbcloud/serverless": "*", "@types/better-sqlite3": "*", "@types/pg": "*", "@types/react": ">=18", "@types/sql.js": "*", "@vercel/postgres": ">=0.8.0", "@xata.io/client": "*", "better-sqlite3": ">=7", "bun-types": "*", "expo-sqlite": ">=14.0.0", "knex": "*", "kysely": "*", "mysql2": ">=2", "pg": ">=8", "postgres": ">=3", "react": ">=18", "sql.js": ">=1", "sqlite3": ">=5" }, "optionalPeers": ["@aws-sdk/client-rds-data", "@cloudflare/workers-types", "@electric-sql/pglite", "@libsql/client", "@libsql/client-wasm", "@neondatabase/serverless", "@op-engineering/op-sqlite", "@opentelemetry/api", "@planetscale/database", "@prisma/client", "@tidbcloud/serverless", "@types/better-sqlite3", "@types/pg", "@types/react", "@types/sql.js", "@vercel/postgres", "@xata.io/client", "better-sqlite3", "bun-types", "expo-sqlite", "knex", "kysely", "mysql2", "pg", "postgres", "react", "sql.js", "sqlite3"] }, "sha512-AsCNACQ/T2CyZUkrBRUqFT2ibHJ9ZHz3+lzYJFFn3hnj7ylIeItMz5kacRG89uSE74nXYShqehr6u+6ks4JR1A=="], 998 + "drizzle-orm": ["drizzle-orm@0.44.7", "", { "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", "@electric-sql/pglite": ">=0.2.0", "@libsql/client": ">=0.10.0", "@libsql/client-wasm": ">=0.10.0", "@neondatabase/serverless": ">=0.10.0", "@op-engineering/op-sqlite": ">=2", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1.13", "@prisma/client": "*", "@tidbcloud/serverless": "*", "@types/better-sqlite3": "*", "@types/pg": "*", "@types/sql.js": "*", "@upstash/redis": ">=1.34.7", "@vercel/postgres": ">=0.8.0", "@xata.io/client": "*", "better-sqlite3": ">=7", "bun-types": "*", "expo-sqlite": ">=14.0.0", "gel": ">=2", "knex": "*", "kysely": "*", "mysql2": ">=2", "pg": ">=8", "postgres": ">=3", "sql.js": ">=1", "sqlite3": ">=5" }, "optionalPeers": ["@aws-sdk/client-rds-data", "@cloudflare/workers-types", "@electric-sql/pglite", "@libsql/client", "@libsql/client-wasm", "@neondatabase/serverless", "@op-engineering/op-sqlite", "@opentelemetry/api", "@planetscale/database", "@prisma/client", "@tidbcloud/serverless", "@types/better-sqlite3", "@types/pg", "@types/sql.js", "@upstash/redis", "@vercel/postgres", "@xata.io/client", "better-sqlite3", "bun-types", "expo-sqlite", "gel", "knex", "kysely", "mysql2", "pg", "postgres", "sql.js", "sqlite3"] }, "sha512-quIpnYznjU9lHshEOAYLoZ9s3jweleHlZIAWR/jX9gAWNg/JhQ1wj0KGRf7/Zm+obRrYd9GjPVJg790QY9N5AQ=="], 1066 999 1067 1000 "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], 1068 1001 ··· 1071 1004 "end-of-stream": ["end-of-stream@1.4.5", "", { "dependencies": { "once": "^1.4.0" } }, "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg=="], 1072 1005 1073 1006 "entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="], 1074 - 1075 - "error-stack-parser-es": ["error-stack-parser-es@1.0.5", "", {}, "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA=="], 1076 1007 1077 1008 "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="], 1078 1009 ··· 1119 1050 "event-target-shim": ["event-target-shim@5.0.1", "", {}, "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="], 1120 1051 1121 1052 "events": ["events@3.3.0", "", {}, "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="], 1122 - 1123 - "exit-hook": ["exit-hook@2.2.1", "", {}, "sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw=="], 1124 1053 1125 1054 "fast-copy": ["fast-copy@3.0.2", "", {}, "sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ=="], 1126 1055 ··· 1182 1111 1183 1112 "glob-parent": ["glob-parent@6.0.2", "", { "dependencies": { "is-glob": "^4.0.3" } }, "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A=="], 1184 1113 1185 - "glob-to-regexp": ["glob-to-regexp@0.4.1", "", {}, "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw=="], 1186 - 1187 1114 "globals": ["globals@15.15.0", "", {}, "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg=="], 1188 1115 1189 1116 "goober": ["goober@2.1.18", "", { "peerDependencies": { "csstype": "^3.0.10" } }, "sha512-2vFqsaDVIT9Gz7N6kAL++pLpp41l3PfDuusHcjnGLfR6+huZkl6ziX+zgVC3ZxpqWhzH6pyDdGrCeDhMIvwaxw=="], ··· 1204 1131 1205 1132 "hono": ["hono@4.10.6", "", {}, "sha512-BIdolzGpDO9MQ4nu3AUuDwHZZ+KViNm+EZ75Ae55eMXMqLVhDFqEMXxtUe9Qh8hjL+pIna/frs2j6Y2yD5Ua/g=="], 1206 1133 1207 - "hono-sessions": ["hono-sessions@0.7.3", "", { "dependencies": { "hono": "^4.0.0", "iron-webcrypto": "^1.2.1" } }, "sha512-W2AD0U6KwzssxXHUfKut57YB+ivxB5o8ECOEnbCAqtdhUt4jRBkAeeucJ/KeOoUtRUK+OY/pa2Slo0V9dS5LiA=="], 1208 - 1209 1134 "ieee754": ["ieee754@1.2.1", "", {}, "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="], 1210 1135 1211 1136 "ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="], ··· 1218 1143 1219 1144 "ipaddr.js": ["ipaddr.js@2.2.0", "", {}, "sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA=="], 1220 1145 1221 - "iron-webcrypto": ["iron-webcrypto@1.2.1", "", {}, "sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg=="], 1222 - 1223 - "is-arrayish": ["is-arrayish@0.3.4", "", {}, "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA=="], 1224 - 1225 1146 "is-binary-path": ["is-binary-path@2.1.0", "", { "dependencies": { "binary-extensions": "^2.0.0" } }, "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw=="], 1226 1147 1227 1148 "is-core-module": ["is-core-module@2.16.1", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="], ··· 1261 1182 "json5": ["json5@2.2.3", "", { "bin": { "json5": "lib/cli.js" } }, "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="], 1262 1183 1263 1184 "keyv": ["keyv@4.5.4", "", { "dependencies": { "json-buffer": "3.0.1" } }, "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw=="], 1264 - 1265 - "kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="], 1266 1185 1267 1186 "levn": ["levn@0.4.1", "", { "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" } }, "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ=="], 1268 1187 ··· 1298 1217 1299 1218 "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="], 1300 1219 1301 - "mime": ["mime@3.0.0", "", { "bin": { "mime": "cli.js" } }, "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A=="], 1302 - 1303 1220 "mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], 1304 1221 1305 1222 "mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], 1306 - 1307 - "miniflare": ["miniflare@4.20251118.1", "", { "dependencies": { "@cspotcode/source-map-support": "0.8.1", "acorn": "8.14.0", "acorn-walk": "8.3.2", "exit-hook": "2.2.1", "glob-to-regexp": "0.4.1", "sharp": "^0.33.5", "stoppable": "1.1.0", "undici": "7.14.0", "workerd": "1.20251118.0", "ws": "8.18.0", "youch": "4.1.0-beta.10", "zod": "3.22.3" }, "bin": { "miniflare": "bootstrap.js" } }, "sha512-uLSAE/DvOm392fiaig4LOaatxLjM7xzIniFRG5Y3yF9IduOYLLK/pkCPQNCgKQH3ou0YJRHnTN+09LPfqYNTQQ=="], 1308 1223 1309 1224 "minimatch": ["minimatch@3.1.2", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="], 1310 1225 ··· 1370 1285 1371 1286 "path-scurry": ["path-scurry@2.0.1", "", { "dependencies": { "lru-cache": "^11.0.0", "minipass": "^7.1.2" } }, "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA=="], 1372 1287 1373 - "path-to-regexp": ["path-to-regexp@6.3.0", "", {}, "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ=="], 1374 - 1375 1288 "pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], 1376 1289 1377 1290 "pg-int8": ["pg-int8@1.0.1", "", {}, "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw=="], ··· 1548 1461 1549 1462 "seroval-plugins": ["seroval-plugins@1.4.0", "", { "peerDependencies": { "seroval": "^1.0" } }, "sha512-zir1aWzoiax6pbBVjoYVd0O1QQXgIL3eVGBMsBsNmM8Ukq90yGaWlfx0AB9dTS8GPqrOrbXn79vmItCUP9U3BQ=="], 1550 1463 1551 - "sharp": ["sharp@0.33.5", "", { "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.3", "semver": "^7.6.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.33.5", "@img/sharp-darwin-x64": "0.33.5", "@img/sharp-libvips-darwin-arm64": "1.0.4", "@img/sharp-libvips-darwin-x64": "1.0.4", "@img/sharp-libvips-linux-arm": "1.0.5", "@img/sharp-libvips-linux-arm64": "1.0.4", "@img/sharp-libvips-linux-s390x": "1.0.4", "@img/sharp-libvips-linux-x64": "1.0.4", "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", "@img/sharp-libvips-linuxmusl-x64": "1.0.4", "@img/sharp-linux-arm": "0.33.5", "@img/sharp-linux-arm64": "0.33.5", "@img/sharp-linux-s390x": "0.33.5", "@img/sharp-linux-x64": "0.33.5", "@img/sharp-linuxmusl-arm64": "0.33.5", "@img/sharp-linuxmusl-x64": "0.33.5", "@img/sharp-wasm32": "0.33.5", "@img/sharp-win32-ia32": "0.33.5", "@img/sharp-win32-x64": "0.33.5" } }, "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw=="], 1552 - 1553 1464 "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], 1554 1465 1555 1466 "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="], 1556 1467 1557 1468 "shimmer": ["shimmer@1.2.1", "", {}, "sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw=="], 1558 - 1559 - "simple-swizzle": ["simple-swizzle@0.2.4", "", { "dependencies": { "is-arrayish": "^0.3.1" } }, "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw=="], 1560 1469 1561 1470 "solid-js": ["solid-js@1.9.10", "", { "dependencies": { "csstype": "^3.1.0", "seroval": "~1.3.0", "seroval-plugins": "~1.3.0" } }, "sha512-Coz956cos/EPDlhs6+jsdTxKuJDPT7B5SVIWgABwROyxjY7Xbr8wkzD68Et+NxnV7DLJ3nJdAC2r9InuV/4Jew=="], 1562 1471 ··· 1569 1478 "source-map-support": ["source-map-support@0.5.21", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="], 1570 1479 1571 1480 "split2": ["split2@4.2.0", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="], 1572 - 1573 - "stoppable": ["stoppable@1.1.0", "", {}, "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw=="], 1574 1481 1575 1482 "string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="], 1576 1483 ··· 1644 1551 1645 1552 "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], 1646 1553 1647 - "typescript-eslint": ["typescript-eslint@8.47.0", "", { "dependencies": { "@typescript-eslint/eslint-plugin": "8.47.0", "@typescript-eslint/parser": "8.47.0", "@typescript-eslint/typescript-estree": "8.47.0", "@typescript-eslint/utils": "8.47.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-Lwe8i2XQ3WoMjua/r1PHrCTpkubPYJCAfOurtn+mtTzqB6jNd+14n9UN1bJ4s3F49x9ixAm0FLflB/JzQ57M8Q=="], 1554 + "typescript-eslint": ["typescript-eslint@8.48.0", "", { "dependencies": { "@typescript-eslint/eslint-plugin": "8.48.0", "@typescript-eslint/parser": "8.48.0", "@typescript-eslint/typescript-estree": "8.48.0", "@typescript-eslint/utils": "8.48.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-fcKOvQD9GUn3Xw63EgiDqhvWJ5jsyZUaekl3KVpGsDJnN46WJTe3jWxtQP9lMZm1LJNkFLlTaWAxK2vUQR+cqw=="], 1648 1555 1649 1556 "ufo": ["ufo@1.6.1", "", {}, "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA=="], 1650 1557 1651 1558 "uint8arrays": ["uint8arrays@5.1.0", "", { "dependencies": { "multiformats": "^13.0.0" } }, "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww=="], 1652 1559 1653 - "undici": ["undici@7.14.0", "", {}, "sha512-Vqs8HTzjpQXZeXdpsfChQTlafcMQaaIwnGwLam1wudSSjlJeQ3bw1j+TLPePgrCnCpUXx7Ba5Pdpf5OBih62NQ=="], 1560 + "undici": ["undici@6.22.0", "", {}, "sha512-hU/10obOIu62MGYjdskASR3CUAiYaFTtC9Pa6vHyf//mAipSvSQg6od2CnJswq7fvzNS3zJhxoRkgNVaHurWKw=="], 1654 1561 1655 1562 "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="], 1656 - 1657 - "unenv": ["unenv@2.0.0-rc.24", "", { "dependencies": { "pathe": "^2.0.3" } }, "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw=="], 1658 1563 1659 1564 "unplugin": ["unplugin@2.3.11", "", { "dependencies": { "@jridgewell/remapping": "^2.3.5", "acorn": "^8.15.0", "picomatch": "^4.0.3", "webpack-virtual-modules": "^0.6.2" } }, "sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww=="], 1660 1565 ··· 1682 1587 1683 1588 "word-wrap": ["word-wrap@1.2.5", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="], 1684 1589 1685 - "workerd": ["workerd@1.20251118.0", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20251118.0", "@cloudflare/workerd-darwin-arm64": "1.20251118.0", "@cloudflare/workerd-linux-64": "1.20251118.0", "@cloudflare/workerd-linux-arm64": "1.20251118.0", "@cloudflare/workerd-windows-64": "1.20251118.0" }, "bin": { "workerd": "bin/workerd" } }, "sha512-Om5ns0Lyx/LKtYI04IV0bjIrkBgoFNg0p6urzr2asekJlfP18RqFzyqMFZKf0i9Gnjtz/JfAS/Ol6tjCe5JJsQ=="], 1686 - 1687 - "wrangler": ["wrangler@4.50.0", "", { "dependencies": { "@cloudflare/kv-asset-handler": "0.4.0", "@cloudflare/unenv-preset": "2.7.11", "blake3-wasm": "2.1.5", "esbuild": "0.25.4", "miniflare": "4.20251118.1", "path-to-regexp": "6.3.0", "unenv": "2.0.0-rc.24", "workerd": "1.20251118.0" }, "optionalDependencies": { "fsevents": "~2.3.2" }, "peerDependencies": { "@cloudflare/workers-types": "^4.20251118.0" }, "optionalPeers": ["@cloudflare/workers-types"], "bin": { "wrangler": "bin/wrangler.js", "wrangler2": "bin/wrangler.js" } }, "sha512-+nuZuHZxDdKmAyXOSrHlciGshCoAPiy5dM+t6mEohWm7HpXvTHmWQGUf/na9jjWlWJHCJYOWzkA1P5HBJqrIEA=="], 1688 - 1689 1590 "wrappy": ["wrappy@1.0.2", "", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="], 1690 1591 1691 1592 "ws": ["ws@8.18.3", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg=="], ··· 1698 1599 1699 1600 "yocto-queue": ["yocto-queue@0.1.0", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="], 1700 1601 1701 - "youch": ["youch@4.1.0-beta.10", "", { "dependencies": { "@poppinss/colors": "^4.1.5", "@poppinss/dumper": "^0.6.4", "@speed-highlight/core": "^1.2.7", "cookie": "^1.0.2", "youch-core": "^0.3.3" } }, "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ=="], 1702 - 1703 - "youch-core": ["youch-core@0.3.3", "", { "dependencies": { "@poppinss/exception": "^1.2.2", "error-stack-parser-es": "^1.0.5" } }, "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA=="], 1704 - 1705 1602 "zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], 1706 - 1707 - "@atproto-labs/fetch-node/undici": ["undici@6.22.0", "", {}, "sha512-hU/10obOIu62MGYjdskASR3CUAiYaFTtC9Pa6vHyf//mAipSvSQg6od2CnJswq7fvzNS3zJhxoRkgNVaHurWKw=="], 1708 1603 1709 1604 "@atproto-labs/identity-resolver/@atproto/syntax": ["@atproto/syntax@0.4.0", "", {}, "sha512-b9y5ceHS8YKOfP3mdKmwAx5yVj9294UN7FG2XzP6V5aKUdFazEYRnR9m5n5ZQFKa3GNvz7de9guZCJ/sUTcOAA=="], 1710 1605 ··· 1726 1621 1727 1622 "@atproto/lexicon/@atproto/common-web": ["@atproto/common-web@0.4.3", "", { "dependencies": { "graphemer": "^1.4.0", "multiformats": "^9.9.0", "uint8arrays": "3.0.0", "zod": "^3.23.8" } }, "sha512-nRDINmSe4VycJzPo6fP/hEltBcULFxt9Kw7fQk6405FyAWZiTluYHlXOnU7GkQfeUK44OENG1qFTBcmCJ7e8pg=="], 1728 1623 1729 - "@atproto/lexicon/@atproto/syntax": ["@atproto/syntax@0.4.1", "", {}, "sha512-CJdImtLAiFO+0z3BWTtxwk6aY5w4t8orHTMVJgkf++QRJWTxPbIFko/0hrkADB7n2EruDxDSeAgfUGehpH6ngw=="], 1624 + "@atproto/lexicon/@atproto/syntax": ["@atproto/syntax@0.4.0", "", {}, "sha512-b9y5ceHS8YKOfP3mdKmwAx5yVj9294UN7FG2XzP6V5aKUdFazEYRnR9m5n5ZQFKa3GNvz7de9guZCJ/sUTcOAA=="], 1730 1625 1731 1626 "@atproto/oauth-client/@atproto/jwk": ["@atproto/jwk@0.3.0", "", { "dependencies": { "multiformats": "^9.9.0", "zod": "^3.23.8" } }, "sha512-MIAXyNMGu1tCNHjqW/8jqfE/wgWCIoK2cJ0mR6UxwhNPvkbe35TcpRYJdtQu/E6MUd7TziyDBa/GO4dKAiePhQ=="], 1732 1627 ··· 1748 1643 1749 1644 "@babel/helper-create-class-features-plugin/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], 1750 1645 1646 + "@cookware/database/@libsql/client": ["@libsql/client@0.15.15", "", { "dependencies": { "@libsql/core": "^0.15.14", "@libsql/hrana-client": "^0.7.0", "js-base64": "^3.7.5", "libsql": "^0.5.22", "promise-limit": "^2.7.0" } }, "sha512-twC0hQxPNHPKfeOv3sNT6u2pturQjLcI+CnpTM0SjRpocEGgfiZ7DWKXLNnsothjyJmDqEsBQJ5ztq9Wlu470w=="], 1647 + 1751 1648 "@cookware/web/@atcute/bluesky": ["@atcute/bluesky@1.0.15", "", { "peerDependencies": { "@atcute/client": "^1.0.0 || ^2.0.0" } }, "sha512-+EFiybmKQ97aBAgtaD+cKRJER5AMn3cZMkEwEg/pDdWyzxYJ9m1UgemmLdTgI8VrxPufKqdXS2nl7uO7TY6BPA=="], 1752 1649 1753 1650 "@cookware/web/typescript": ["typescript@5.6.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw=="], ··· 1775 1672 "@opentelemetry/resources/@opentelemetry/semantic-conventions": ["@opentelemetry/semantic-conventions@1.28.0", "", {}, "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA=="], 1776 1673 1777 1674 "@opentelemetry/sdk-trace-base/@opentelemetry/semantic-conventions": ["@opentelemetry/semantic-conventions@1.28.0", "", {}, "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA=="], 1778 - 1779 - "@poppinss/dumper/supports-color": ["supports-color@10.2.2", "", {}, "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g=="], 1780 1675 1781 1676 "@prisma/instrumentation/@opentelemetry/instrumentation": ["@opentelemetry/instrumentation@0.53.0", "", { "dependencies": { "@opentelemetry/api-logs": "0.53.0", "@types/shimmer": "^1.2.0", "import-in-the-middle": "^1.8.1", "require-in-the-middle": "^7.1.1", "semver": "^7.5.2", "shimmer": "^1.2.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-DMwg0hy4wzf7K73JJtl95m/e0boSoWhH07rfvHvYzQtBD3Bmv0Wc1x733vyZBqmFm8OjJD0/pfiUg1W3JjFX0A=="], 1782 1677 ··· 1856 1751 1857 1752 "micromatch/picomatch": ["picomatch@2.3.1", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="], 1858 1753 1859 - "miniflare/acorn": ["acorn@8.14.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA=="], 1860 - 1861 - "miniflare/acorn-walk": ["acorn-walk@8.3.2", "", {}, "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A=="], 1862 - 1863 - "miniflare/ws": ["ws@8.18.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw=="], 1864 - 1865 - "miniflare/zod": ["zod@3.22.3", "", {}, "sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug=="], 1866 - 1867 1754 "postcss/nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="], 1868 1755 1869 1756 "postcss-calc/postcss-selector-parser": ["postcss-selector-parser@7.1.0", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA=="], ··· 1877 1764 "postcss-unique-selectors/postcss-selector-parser": ["postcss-selector-parser@7.1.0", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA=="], 1878 1765 1879 1766 "recast/source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="], 1880 - 1881 - "sharp/detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="], 1882 1767 1883 1768 "solid-js/seroval": ["seroval@1.3.2", "", {}, "sha512-RbcPH1n5cfwKrru7v7+zrZvjLurgHhGyso3HTyGtRivGWgYjbOmGuivCQaORNELjNONoK35nj28EoWul9sb1zQ=="], 1884 1769 ··· 1902 1787 1903 1788 "vite/esbuild": ["esbuild@0.25.12", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.12", "@esbuild/android-arm": "0.25.12", "@esbuild/android-arm64": "0.25.12", "@esbuild/android-x64": "0.25.12", "@esbuild/darwin-arm64": "0.25.12", "@esbuild/darwin-x64": "0.25.12", "@esbuild/freebsd-arm64": "0.25.12", "@esbuild/freebsd-x64": "0.25.12", "@esbuild/linux-arm": "0.25.12", "@esbuild/linux-arm64": "0.25.12", "@esbuild/linux-ia32": "0.25.12", "@esbuild/linux-loong64": "0.25.12", "@esbuild/linux-mips64el": "0.25.12", "@esbuild/linux-ppc64": "0.25.12", "@esbuild/linux-riscv64": "0.25.12", "@esbuild/linux-s390x": "0.25.12", "@esbuild/linux-x64": "0.25.12", "@esbuild/netbsd-arm64": "0.25.12", "@esbuild/netbsd-x64": "0.25.12", "@esbuild/openbsd-arm64": "0.25.12", "@esbuild/openbsd-x64": "0.25.12", "@esbuild/openharmony-arm64": "0.25.12", "@esbuild/sunos-x64": "0.25.12", "@esbuild/win32-arm64": "0.25.12", "@esbuild/win32-ia32": "0.25.12", "@esbuild/win32-x64": "0.25.12" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg=="], 1904 1789 1905 - "wrangler/esbuild": ["esbuild@0.25.4", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.4", "@esbuild/android-arm": "0.25.4", "@esbuild/android-arm64": "0.25.4", "@esbuild/android-x64": "0.25.4", "@esbuild/darwin-arm64": "0.25.4", "@esbuild/darwin-x64": "0.25.4", "@esbuild/freebsd-arm64": "0.25.4", "@esbuild/freebsd-x64": "0.25.4", "@esbuild/linux-arm": "0.25.4", "@esbuild/linux-arm64": "0.25.4", "@esbuild/linux-ia32": "0.25.4", "@esbuild/linux-loong64": "0.25.4", "@esbuild/linux-mips64el": "0.25.4", "@esbuild/linux-ppc64": "0.25.4", "@esbuild/linux-riscv64": "0.25.4", "@esbuild/linux-s390x": "0.25.4", "@esbuild/linux-x64": "0.25.4", "@esbuild/netbsd-arm64": "0.25.4", "@esbuild/netbsd-x64": "0.25.4", "@esbuild/openbsd-arm64": "0.25.4", "@esbuild/openbsd-x64": "0.25.4", "@esbuild/sunos-x64": "0.25.4", "@esbuild/win32-arm64": "0.25.4", "@esbuild/win32-ia32": "0.25.4", "@esbuild/win32-x64": "0.25.4" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q=="], 1906 - 1907 1790 "@atproto/api/@atproto/common-web/uint8arrays": ["uint8arrays@3.0.0", "", { "dependencies": { "multiformats": "^9.4.2" } }, "sha512-HRCx0q6O9Bfbp+HHSfQQKD7wU70+lydKVt4EghkdOvlK/NlrF90z+eXV34mUd48rNvVJXwkrMSPpCATkct8fJA=="], 1908 1791 1909 1792 "@atproto/common/@atproto/common-web/uint8arrays": ["uint8arrays@3.0.0", "", { "dependencies": { "multiformats": "^9.4.2" } }, "sha512-HRCx0q6O9Bfbp+HHSfQQKD7wU70+lydKVt4EghkdOvlK/NlrF90z+eXV34mUd48rNvVJXwkrMSPpCATkct8fJA=="], ··· 1920 1803 1921 1804 "@atproto/lexicon/@atproto/common-web/uint8arrays": ["uint8arrays@3.0.0", "", { "dependencies": { "multiformats": "^9.4.2" } }, "sha512-HRCx0q6O9Bfbp+HHSfQQKD7wU70+lydKVt4EghkdOvlK/NlrF90z+eXV34mUd48rNvVJXwkrMSPpCATkct8fJA=="], 1922 1805 1923 - "@cookware/web/@atcute/bluesky/@atcute/client": ["@atcute/client@2.0.9", "", {}, "sha512-QNDm9gMP6x9LY77ArwY+urQOBtQW74/onEAz42c40JxRm6Rl9K9cU4ROvNKJ+5cpVmEm1sthEWVRmDr5CSZENA=="], 1806 + "@cookware/database/@libsql/client/@libsql/core": ["@libsql/core@0.15.15", "", { "dependencies": { "js-base64": "^3.7.5" } }, "sha512-C88Z6UKl+OyuKKPwz224riz02ih/zHYI3Ho/LAcVOgjsunIRZoBw7fjRfaH9oPMmSNeQfhGklSG2il1URoOIsA=="], 1807 + 1808 + "@cookware/database/@libsql/client/libsql": ["libsql@0.5.22", "", { "dependencies": { "@neon-rs/load": "^0.0.4", "detect-libc": "2.0.2" }, "optionalDependencies": { "@libsql/darwin-arm64": "0.5.22", "@libsql/darwin-x64": "0.5.22", "@libsql/linux-arm-gnueabihf": "0.5.22", "@libsql/linux-arm-musleabihf": "0.5.22", "@libsql/linux-arm64-gnu": "0.5.22", "@libsql/linux-arm64-musl": "0.5.22", "@libsql/linux-x64-gnu": "0.5.22", "@libsql/linux-x64-musl": "0.5.22", "@libsql/win32-x64-msvc": "0.5.22" }, "os": [ "linux", "win32", "darwin", ], "cpu": [ "arm", "x64", "arm64", ] }, "sha512-NscWthMQt7fpU8lqd7LXMvT9pi+KhhmTHAJWUB/Lj6MWa0MKFv0F2V4C6WKKpjCVZl0VwcDz4nOI3CyaT1DDiA=="], 1924 1809 1925 1810 "@esbuild-kit/core-utils/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.18.20", "", { "os": "android", "cpu": "arm" }, "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw=="], 1926 1811 ··· 2156 2041 2157 2042 "vite/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.12", "", { "os": "win32", "cpu": "x64" }, "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA=="], 2158 2043 2159 - "wrangler/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.4", "", { "os": "aix", "cpu": "ppc64" }, "sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q=="], 2044 + "@cookware/database/@libsql/client/libsql/@libsql/darwin-arm64": ["@libsql/darwin-arm64@0.5.22", "", { "os": "darwin", "cpu": "arm64" }, "sha512-4B8ZlX3nIDPndfct7GNe0nI3Yw6ibocEicWdC4fvQbSs/jdq/RC2oCsoJxJ4NzXkvktX70C1J4FcmmoBy069UA=="], 2160 2045 2161 - "wrangler/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.25.4", "", { "os": "android", "cpu": "arm" }, "sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ=="], 2046 + "@cookware/database/@libsql/client/libsql/@libsql/darwin-x64": ["@libsql/darwin-x64@0.5.22", "", { "os": "darwin", "cpu": "x64" }, "sha512-ny2HYWt6lFSIdNFzUFIJ04uiW6finXfMNJ7wypkAD8Pqdm6nAByO+Fdqu8t7sD0sqJGeUCiOg480icjyQ2/8VA=="], 2162 2047 2163 - "wrangler/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.4", "", { "os": "android", "cpu": "arm64" }, "sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A=="], 2048 + "@cookware/database/@libsql/client/libsql/@libsql/linux-arm64-gnu": ["@libsql/linux-arm64-gnu@0.5.22", "", { "os": "linux", "cpu": "arm64" }, "sha512-KSdnOMy88c9mpOFKUEzPskSaF3VLflfSUCBwas/pn1/sV3pEhtMF6H8VUCd2rsedwoukeeCSEONqX7LLnQwRMA=="], 2164 2049 2165 - "wrangler/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.25.4", "", { "os": "android", "cpu": "x64" }, "sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ=="], 2050 + "@cookware/database/@libsql/client/libsql/@libsql/linux-arm64-musl": ["@libsql/linux-arm64-musl@0.5.22", "", { "os": "linux", "cpu": "arm64" }, "sha512-mCHSMAsDTLK5YH//lcV3eFEgiR23Ym0U9oEvgZA0667gqRZg/2px+7LshDvErEKv2XZ8ixzw3p1IrBzLQHGSsw=="], 2166 2051 2167 - "wrangler/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g=="], 2052 + "@cookware/database/@libsql/client/libsql/@libsql/linux-x64-gnu": ["@libsql/linux-x64-gnu@0.5.22", "", { "os": "linux", "cpu": "x64" }, "sha512-kNBHaIkSg78Y4BqAdgjcR2mBilZXs4HYkAmi58J+4GRwDQZh5fIUWbnQvB9f95DkWUIGVeenqLRFY2pcTmlsew=="], 2168 2053 2169 - "wrangler/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A=="], 2054 + "@cookware/database/@libsql/client/libsql/@libsql/linux-x64-musl": ["@libsql/linux-x64-musl@0.5.22", "", { "os": "linux", "cpu": "x64" }, "sha512-UZ4Xdxm4pu3pQXjvfJiyCzZop/9j/eA2JjmhMaAhe3EVLH2g11Fy4fwyUp9sT1QJYR1kpc2JLuybPM0kuXv/Tg=="], 2170 2055 2171 - "wrangler/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.4", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ=="], 2172 - 2173 - "wrangler/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.4", "", { "os": "freebsd", "cpu": "x64" }, "sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ=="], 2174 - 2175 - "wrangler/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.4", "", { "os": "linux", "cpu": "arm" }, "sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ=="], 2176 - 2177 - "wrangler/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ=="], 2178 - 2179 - "wrangler/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.4", "", { "os": "linux", "cpu": "ia32" }, "sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ=="], 2180 - 2181 - "wrangler/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.4", "", { "os": "linux", "cpu": "none" }, "sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA=="], 2182 - 2183 - "wrangler/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.4", "", { "os": "linux", "cpu": "none" }, "sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg=="], 2184 - 2185 - "wrangler/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.4", "", { "os": "linux", "cpu": "ppc64" }, "sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag=="], 2186 - 2187 - "wrangler/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.4", "", { "os": "linux", "cpu": "none" }, "sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA=="], 2188 - 2189 - "wrangler/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.4", "", { "os": "linux", "cpu": "s390x" }, "sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g=="], 2190 - 2191 - "wrangler/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.4", "", { "os": "linux", "cpu": "x64" }, "sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA=="], 2192 - 2193 - "wrangler/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.4", "", { "os": "none", "cpu": "arm64" }, "sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ=="], 2194 - 2195 - "wrangler/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.4", "", { "os": "none", "cpu": "x64" }, "sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw=="], 2196 - 2197 - "wrangler/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.4", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A=="], 2198 - 2199 - "wrangler/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.4", "", { "os": "openbsd", "cpu": "x64" }, "sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw=="], 2200 - 2201 - "wrangler/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.4", "", { "os": "sunos", "cpu": "x64" }, "sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q=="], 2202 - 2203 - "wrangler/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ=="], 2204 - 2205 - "wrangler/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.4", "", { "os": "win32", "cpu": "ia32" }, "sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg=="], 2206 - 2207 - "wrangler/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.4", "", { "os": "win32", "cpu": "x64" }, "sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ=="], 2056 + "@cookware/database/@libsql/client/libsql/@libsql/win32-x64-msvc": ["@libsql/win32-x64-msvc@0.5.22", "", { "os": "win32", "cpu": "x64" }, "sha512-Fj0j8RnBpo43tVZUVoNK6BV/9AtDUM5S7DF3LB4qTYg1LMSZqi3yeCneUTLJD6XomQJlZzbI4mst89yspVSAnA=="], 2208 2057 2209 2058 "@tanstack/react-router-devtools/vite/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.12", "", { "os": "aix", "cpu": "ppc64" }, "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA=="], 2210 2059
+22 -3
docker-compose.yaml
··· 7 7 recipesblue: 8 8 9 9 services: 10 - tunnel: 11 - image: cloudflare/cloudflared 10 + api: 11 + build: 12 + context: . 13 + dockerfile: apps/api/Dockerfile 14 + restart: unless-stopped 15 + networks: [recipesblue] 16 + ports: 17 + - "3000:3000" 18 + environment: 19 + - DATABASE_URL=http://libsql:8080 20 + - PORT=3000 21 + depends_on: 22 + - libsql 23 + 24 + ingester: 25 + build: 26 + context: . 27 + dockerfile: apps/ingester/Dockerfile 12 28 restart: unless-stopped 13 29 networks: [recipesblue] 14 - command: tunnel --url http://caddy 30 + environment: 31 + - DATABASE_URL=http://libsql:8080 32 + depends_on: 33 + - libsql
+6 -3
libs/database/drizzle.config.ts
··· 1 1 import type { Config } from "drizzle-kit"; 2 2 3 3 export default { 4 - schema: "./src/schema.ts", 4 + schema: "./lib/schema.ts", 5 5 out: "./migrations", 6 - dialect: "sqlite", 7 - driver: "d1-http" 6 + dialect: "turso", 7 + dbCredentials: { 8 + url: process.env.DATABASE_URL || "http://localhost:4001", 9 + authToken: process.env.DATABASE_AUTH_TOKEN 10 + } 8 11 } satisfies Config;
+13
libs/database/lib/index.ts
··· 1 + import { drizzle } from 'drizzle-orm/libsql'; 2 + import { createClient } from '@libsql/client'; 3 + 4 + const client = createClient({ 5 + url: process.env.DATABASE_URL || 'http://localhost:4001', 6 + authToken: process.env.DATABASE_AUTH_TOKEN, 7 + }); 8 + 9 + import * as schema from './schema.js'; 10 + export const db = drizzle(client, { schema }); 11 + 12 + // Re-export drizzle-orm functions to ensure single instance 13 + export { eq, and, or, desc, asc, sql } from 'drizzle-orm';
+5 -2
libs/database/migrations/0000_fantastic_magma.sql libs/database/migrations/0000_bitter_odin.sql
··· 9 9 ); 10 10 --> statement-breakpoint 11 11 CREATE TABLE `recipes` ( 12 + `uri` text GENERATED ALWAYS AS ("author_did" || '/' || "rkey") VIRTUAL, 12 13 `id` integer PRIMARY KEY NOT NULL, 13 14 `rkey` text NOT NULL, 14 - `title` text NOT NULL, 15 15 `image_ref` text, 16 + `title` text NOT NULL, 16 17 `time` integer DEFAULT 0 NOT NULL, 17 18 `serves` integer, 18 19 `description` text, 19 20 `ingredients` text NOT NULL, 21 + `ingredients_count` integer GENERATED ALWAYS AS (json_array_length("ingredients")) VIRTUAL, 20 22 `steps` text NOT NULL, 23 + `steps_count` integer GENERATED ALWAYS AS (json_array_length("steps")) VIRTUAL, 21 24 `created_at` text NOT NULL, 22 25 `author_did` text NOT NULL 23 26 ); 24 27 --> statement-breakpoint 25 28 CREATE UNIQUE INDEX `recipes_id_unique` ON `recipes` (`id`);--> statement-breakpoint 26 - CREATE UNIQUE INDEX `recipes_rkey_author_did_unique` ON `recipes` (`rkey`,`author_did`); 29 + CREATE UNIQUE INDEX `unique_author_rkey` ON `recipes` (`rkey`,`author_did`);
+42 -9
libs/database/migrations/meta/0000_snapshot.json
··· 1 1 { 2 2 "version": "6", 3 3 "dialect": "sqlite", 4 - "id": "2d4a90ff-be48-461c-8876-50c11cb2b91d", 4 + "id": "198e1acf-d593-4049-a20f-330a5dd9ef69", 5 5 "prevId": "00000000-0000-0000-0000-000000000000", 6 6 "tables": { 7 7 "auth_session": { ··· 55 55 "recipes": { 56 56 "name": "recipes", 57 57 "columns": { 58 + "uri": { 59 + "name": "uri", 60 + "type": "text", 61 + "primaryKey": false, 62 + "notNull": false, 63 + "autoincrement": false, 64 + "generated": { 65 + "as": "(\"author_did\" || '/' || \"rkey\")", 66 + "type": "virtual" 67 + } 68 + }, 58 69 "id": { 59 70 "name": "id", 60 71 "type": "integer", ··· 69 80 "notNull": true, 70 81 "autoincrement": false 71 82 }, 72 - "title": { 73 - "name": "title", 83 + "image_ref": { 84 + "name": "image_ref", 74 85 "type": "text", 75 86 "primaryKey": false, 76 - "notNull": true, 87 + "notNull": false, 77 88 "autoincrement": false 78 89 }, 79 - "image_ref": { 80 - "name": "image_ref", 90 + "title": { 91 + "name": "title", 81 92 "type": "text", 82 93 "primaryKey": false, 83 - "notNull": false, 94 + "notNull": true, 84 95 "autoincrement": false 85 96 }, 86 97 "time": { ··· 112 123 "notNull": true, 113 124 "autoincrement": false 114 125 }, 126 + "ingredients_count": { 127 + "name": "ingredients_count", 128 + "type": "integer", 129 + "primaryKey": false, 130 + "notNull": false, 131 + "autoincrement": false, 132 + "generated": { 133 + "as": "(json_array_length(\"ingredients\"))", 134 + "type": "virtual" 135 + } 136 + }, 115 137 "steps": { 116 138 "name": "steps", 117 139 "type": "text", ··· 119 141 "notNull": true, 120 142 "autoincrement": false 121 143 }, 144 + "steps_count": { 145 + "name": "steps_count", 146 + "type": "integer", 147 + "primaryKey": false, 148 + "notNull": false, 149 + "autoincrement": false, 150 + "generated": { 151 + "as": "(json_array_length(\"steps\"))", 152 + "type": "virtual" 153 + } 154 + }, 122 155 "created_at": { 123 156 "name": "created_at", 124 157 "type": "text", ··· 142 175 ], 143 176 "isUnique": true 144 177 }, 145 - "recipes_rkey_author_did_unique": { 146 - "name": "recipes_rkey_author_did_unique", 178 + "unique_author_rkey": { 179 + "name": "unique_author_rkey", 147 180 "columns": [ 148 181 "rkey", 149 182 "author_did"
+2 -2
libs/database/migrations/meta/_journal.json
··· 5 5 { 6 6 "idx": 0, 7 7 "version": "6", 8 - "when": 1763864322315, 9 - "tag": "0000_fantastic_magma", 8 + "when": 1763947934457, 9 + "tag": "0000_bitter_odin", 10 10 "breakpoints": true 11 11 } 12 12 ]
+16 -5
libs/database/package.json
··· 1 1 { 2 + "type": "module", 2 3 "name": "@cookware/database", 3 4 "version": "0.0.0", 4 5 "private": true, 5 - "main": "dist/index.js", 6 - "type": "module", 6 + "files": [ 7 + "dist/", 8 + "lib/", 9 + "!lib/**/*.bench.ts", 10 + "!lib/**/*.test.ts" 11 + ], 12 + "exports": { 13 + ".": "./dist/index.js", 14 + "./schema": "./dist/schema.js" 15 + }, 7 16 "scripts": { 8 17 "dev": "tsc --watch", 9 - "build": "tsc", 18 + "build": "tsc --project tsconfig.build.json", 10 19 "db:generate": "drizzle-kit generate", 11 20 "db:migrate": "drizzle-kit migrate", 12 21 "db:studio": "drizzle-kit studio" 13 22 }, 14 23 "devDependencies": { 24 + "@atcute/lexicons": "catalog:", 15 25 "@atproto/oauth-client-node": "^0.2.3", 16 26 "@cookware/lexicons": "workspace:*", 17 27 "@cookware/tsconfig": "workspace:*", 28 + "@types/bun": "catalog:", 18 29 "@types/node": "^22.10.1", 19 30 "drizzle-kit": "^0.29.0", 20 31 "typescript": "^5.2.2" 21 32 }, 22 33 "dependencies": { 23 - "@libsql/client": "^0.14.0", 24 - "drizzle-orm": "^0.37.0", 34 + "@libsql/client": "^0.15.15", 35 + "drizzle-orm": "catalog:", 25 36 "zod": "^3.23.8" 26 37 } 27 38 }
-1
libs/database/src/index.ts
··· 1 - export * from './schema.js';
+19 -13
libs/database/src/schema.ts libs/database/lib/schema.ts
··· 1 1 import { customType, int, sqliteTable, text, unique } from "drizzle-orm/sqlite-core"; 2 - import { BlueRecipesFeedRecipe } from "@cookware/lexicons"; 3 - import { Did, NodeSavedSession, NodeSavedState } from "@atproto/oauth-client-node"; 4 - 5 - const did = customType<{ data: Did }>({ 6 - dataType() { 7 - return "text"; 8 - }, 9 - }); 2 + import type { BlueRecipesFeedRecipe } from "@cookware/lexicons"; 3 + import { type AtprotoDid } from "@atcute/lexicons/syntax"; 4 + import type { NodeSavedSession, NodeSavedState } from "@atproto/oauth-client-node"; 5 + import { sql, type SQL } from "drizzle-orm"; 10 6 11 7 const dateIsoText = customType<{ data: Date; driverData: string }>({ 12 8 dataType() { ··· 17 13 }); 18 14 19 15 export const recipeTable = sqliteTable("recipes", { 16 + uri: text('uri') 17 + .generatedAlwaysAs((): SQL => sql`${recipeTable.authorDid} || '/' || ${recipeTable.rkey}`), 18 + 20 19 id: int('id').primaryKey().notNull().unique(), 21 20 rkey: text('rkey').notNull(), 22 - title: text('title').notNull(), 21 + 23 22 imageRef: text('image_ref'), 23 + 24 + title: text('title').notNull(), 24 25 time: int('time').notNull().default(0), 25 26 serves: int('serves'), 26 27 description: text('description'), 28 + 27 29 ingredients: text('ingredients', { mode: 'json' }).$type<BlueRecipesFeedRecipe.Main['ingredients']>().notNull(), 30 + ingredientsCount: int('ingredients_count').generatedAlwaysAs((): SQL => sql`json_array_length(${recipeTable.ingredients})`), 31 + 28 32 steps: text('steps', { mode: 'json' }).$type<BlueRecipesFeedRecipe.Main['steps']>().notNull(), 33 + stepsCount: int('steps_count').generatedAlwaysAs((): SQL => sql`json_array_length(${recipeTable.steps})`), 34 + 29 35 createdAt: dateIsoText("created_at").notNull(), 30 - authorDid: did("author_did").notNull(), 31 - }, t => ({ 32 - unique_author_rkey: unique().on(t.rkey, t.authorDid), 33 - })); 36 + authorDid: text("author_did").$type<AtprotoDid>().notNull(), 37 + }, t => ([ 38 + unique('unique_author_rkey').on(t.rkey, t.authorDid), 39 + ])); 34 40 35 41 export const authStateTable = sqliteTable("auth_state", { 36 42 key: text().primaryKey(),
+7
libs/database/tsconfig.build.json
··· 1 + { 2 + "extends": "@cookware/tsconfig/base.json", 3 + "include": ["lib"], 4 + "compilerOptions": { 5 + "outDir": "dist" 6 + } 7 + }
+1 -5
libs/database/tsconfig.json
··· 1 1 { 2 2 "extends": "@cookware/tsconfig/base.json", 3 - "include": ["src"], 4 - "compilerOptions": { 5 - "declaration": true, 6 - "outDir": "dist" 7 - } 3 + "include": ["lib", "drizzle.config.ts"] 8 4 }
+1 -1
libs/lexicons/lex.config.ts
··· 2 2 3 3 export default defineLexiconConfig({ 4 4 files: ['../../lexicons/blue/recipes/**/*.json'], 5 - outdir: './src' 5 + outdir: './lib' 6 6 });
+33 -21
libs/lexicons/package.json
··· 1 1 { 2 + "type": "module", 2 3 "name": "@cookware/lexicons", 3 4 "version": "0.0.0", 4 - "type": "module", 5 - "private": true, 6 - "main": "src/index.ts", 5 + "description": "TypeScript definitions for Atproto lexicons used in recipes.blue", 6 + "keywords": ["atproto", "recipes.blue", "lexicons"], 7 + "license": "BSD", 8 + "repository": { 9 + "url": "https://tangled.org/roost.moe/recipes.blue", 10 + "directory": "libs/lexicons" 11 + }, 12 + "files": [ 13 + "dist/", 14 + "lib/*", 15 + "!lib/**/*.bench.ts", 16 + "!lib/**/*.test.ts" 17 + ], 7 18 "exports": { 8 - ".": { 9 - "import": "./src/index.ts" 10 - }, 11 - "./did": { 12 - "import": "./src/did.ts" 13 - } 19 + ".": "./dist/index.js", 20 + "./did": "./dist/did.js" 14 21 }, 15 - "publishConfig": { 16 - "access": "public" 22 + "scripts": { 23 + "build": "tsc", 24 + "lexgen": "lex-cli generate --config ./lex.config.ts", 25 + "prepublish": "rm -rf dist; bun run build" 26 + }, 27 + "dependencies": { 28 + "@atcute/lexicons": "catalog:", 29 + "@atcute/client": "catalog:" 17 30 }, 18 31 "devDependencies": { 19 - "@atcute/client": "^4.0.5", 20 - "@atcute/lex-cli": "^2.3.2", 32 + "@atcute/lex-cli": "^2.3.3", 21 33 "@cookware/tsconfig": "workspace:*", 22 - "typescript": "^5.7.2", 23 - "zod": "^3.23.8" 34 + "@types/bun": "catalog:" 24 35 }, 25 - "peerDependencies": { 26 - "@atcute/client": "^4.0.5", 27 - "zod": "^3.23.8" 28 - }, 29 - "dependencies": { 30 - "@atcute/lexicons": "^1.2.3" 36 + "atcute:lexicons": { 37 + "mappings": { 38 + "blue.recipes.*": { 39 + "type": "namespace", 40 + "path": "./types/{{nsid_remainder}}" 41 + } 42 + } 31 43 } 32 44 }
-135
libs/lexicons/src/did.ts
··· 1 - import { Did } from "@atcute/lexicons"; 2 - import { z } from "zod"; 3 - 4 - type Brand<K, T> = K & { __brand: T }; 5 - export type DID = Brand<string, "DID">; 6 - 7 - export function isDid(s: string): s is Did { 8 - return s.startsWith("did:"); 9 - } 10 - 11 - export function parseDid(s: string): Did | null { 12 - if (!isDid(s)) { 13 - return null; 14 - } 15 - return s; 16 - } 17 - 18 - export const getDidDoc = async (did: Did) => { 19 - let url = `https://plc.directory/${did}`; 20 - if (did.startsWith('did:web')) { 21 - url = `https://${did.split(':')[2]}/.well-known/did.json`; 22 - } 23 - 24 - const response = await fetch(url); 25 - 26 - return PlcDocument.parse(await response.json()); 27 - }; 28 - 29 - export const getPdsUrl = async (did: Did) => { 30 - const plc = await getDidDoc(did); 31 - 32 - return ( 33 - plc.service.find((s) => s.type === "AtprotoPersonalDataServer") 34 - ?.serviceEndpoint ?? null 35 - ); 36 - }; 37 - 38 - const PlcDocument = z.object({ 39 - id: z.string(), 40 - alsoKnownAs: z.array(z.string()), 41 - service: z.array( 42 - z.object({ 43 - id: z.string(), 44 - type: z.string(), 45 - serviceEndpoint: z.string(), 46 - }), 47 - ), 48 - }); 49 - 50 - const DnsQueryResponse = z.object({ 51 - Answer: z.array( 52 - z.object({ 53 - name: z.string(), 54 - type: z.number(), 55 - TTL: z.number(), 56 - data: z.string(), 57 - }), 58 - ), 59 - }); 60 - 61 - async function getAtprotoDidFromDns(handle: string): Promise<Did | null> { 62 - const url = new URL("https://cloudflare-dns.com/dns-query"); 63 - url.searchParams.set("type", "TXT"); 64 - url.searchParams.set("name", `_atproto.${handle}`); 65 - 66 - const response = await fetch(url, { 67 - headers: { 68 - Accept: "application/dns-json", 69 - }, 70 - }); 71 - 72 - const { Answer } = DnsQueryResponse.parse(await response.json()); 73 - // Answer[0].data is "\"did=...\"" (with quotes) 74 - const val = Answer[0]?.data 75 - ? JSON.parse(Answer[0]?.data).split("did=")[1] 76 - : null; 77 - 78 - return parseDid(val); 79 - } 80 - 81 - const getAtprotoFromHttps = async (handle: string) => { 82 - let res; 83 - const timeoutSignal = AbortSignal.timeout(1500); 84 - try { 85 - res = await fetch(`https://${handle}/.well-known/atproto-did`, { 86 - signal: timeoutSignal, 87 - }); 88 - } catch (_e) { 89 - // We're caching failures here, we should at some point invalidate the cache by listening to handle changes on the network 90 - return null; 91 - } 92 - 93 - if (!res.ok) { 94 - return null; 95 - } 96 - return parseDid((await res.text()).trim()); 97 - }; 98 - 99 - export const getVerifiedDid = async (handle: string) => { 100 - const [dnsDid, httpDid] = await Promise.all([ 101 - getAtprotoDidFromDns(handle).catch((_) => { 102 - return null; 103 - }), 104 - getAtprotoFromHttps(handle).catch(() => { 105 - return null; 106 - }), 107 - ]); 108 - 109 - if (dnsDid && httpDid && dnsDid !== httpDid) { 110 - return null; 111 - } 112 - 113 - const did = dnsDid ?? (httpDid ? parseDid(httpDid) : null); 114 - if (!did) { 115 - return null; 116 - } 117 - 118 - const plcDoc = await getDidDoc(did); 119 - const plcHandle = plcDoc.alsoKnownAs 120 - .find((handle) => handle.startsWith("at://")) 121 - ?.replace("at://", ""); 122 - 123 - if (!plcHandle) return null; 124 - 125 - return plcHandle.toLowerCase() === handle.toLowerCase() ? did : null; 126 - }; 127 - 128 - export const getDidFromHandleOrDid = async (handleOrDid: string): Promise<Did | null> => { 129 - const decodedHandleOrDid = decodeURIComponent(handleOrDid); 130 - if (isDid(decodedHandleOrDid)) { 131 - return decodedHandleOrDid; 132 - } 133 - 134 - return getVerifiedDid(decodedHandleOrDid); 135 - };
libs/lexicons/src/index.ts libs/lexicons/lib/index.ts
libs/lexicons/src/types/blue/recipes/feed/defs.ts libs/lexicons/lib/types/blue/recipes/feed/defs.ts
libs/lexicons/src/types/blue/recipes/feed/getRecipe.ts libs/lexicons/lib/types/blue/recipes/feed/getRecipe.ts
libs/lexicons/src/types/blue/recipes/feed/getRecipes.ts libs/lexicons/lib/types/blue/recipes/feed/getRecipes.ts
libs/lexicons/src/types/blue/recipes/feed/recipe.ts libs/lexicons/lib/types/blue/recipes/feed/recipe.ts
+4 -1
libs/lexicons/tsconfig.json
··· 1 1 { 2 2 "extends": "@cookware/tsconfig/base.json", 3 - "include": ["src"] 3 + "include": ["lib"], 4 + "compilerOptions": { 5 + "outDir": "./dist" 6 + } 4 7 }
+3
libs/tsconfig/package.json
··· 4 4 "private": true, 5 5 "publishConfig": { 6 6 "access": "public" 7 + }, 8 + "dependencies": { 9 + "@types/bun": "^1.3.3" 7 10 } 8 11 }
+10 -2
package.json
··· 1 1 { 2 + "name": "@cookware/monorepo", 2 3 "private": true, 3 4 "packageManager": "bun@1.3.3", 4 5 "devDependencies": { 5 - "turbo": "^2.3.3" 6 + "turbo": "^2.3.3", 7 + "typescript": "^5.9.3" 6 8 }, 7 9 "scripts": { 8 10 "dev": "turbo dev", ··· 11 13 "db:migrate": "turbo db:migrate" 12 14 }, 13 15 "workspaces": { 14 - "packages": ["apps/**", "libs/**"] 16 + "packages": ["apps/**", "libs/**"], 17 + "catalog": { 18 + "@types/bun": "^1.3.3", 19 + "@atcute/client": "^4.0.5", 20 + "@atcute/lexicons": "^1.2.4", 21 + "drizzle-orm": "^0.44.7" 22 + } 15 23 } 16 24 }