this repo has no description
at main 35 lines 727 B view raw
1/** 2 * Environment type augmentation for Attoshi 3 */ 4 5import type { DurableObjectNamespace, R2Bucket } from "@cloudflare/workers-types"; 6 7export interface AttoshiEnv { 8 // From Cirrus PDS 9 DID: string; 10 HANDLE: string; 11 PDS_HOSTNAME: string; 12 AUTH_TOKEN: string; 13 SIGNING_KEY: string; 14 JWT_SECRET: string; 15 PASSWORD_HASH: string; 16 SIGNING_KEY_PUBLIC: string; 17 INITIAL_ACTIVE: string; 18 DATA_LOCATION: string; 19 20 // Durable Objects 21 ACCOUNT: DurableObjectNamespace; 22 ATTOSHI_STATE: DurableObjectNamespace; 23 FIREHOSE: DurableObjectNamespace; 24 25 // Optional 26 BLOBS?: R2Bucket; 27 TREASURY_DID?: string; 28} 29 30declare module "hono" { 31 interface ContextVariableMap { 32 entityDid: string; 33 treasuryDid: string; 34 } 35}