mirror of
https://github.com/saltbo/agent-kanban.git
synced 2026-09-19 09:01:47 +08:00
f84fb62ffb
Co-authored-by: jarvis <jarvis@agents.realmroot.dev>
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
export interface Env {
|
|
DB: D1Database;
|
|
ASSETS: Fetcher;
|
|
AK_PUBLIC_ORIGIN: string;
|
|
AK_SIGNING_KEY: string;
|
|
OIDC_ISSUER: string;
|
|
OIDC_WEB_CLIENT_ID: string;
|
|
OIDC_WEB_CLIENT_SECRET: string;
|
|
AK_SESSION_ENCRYPTION_KEY: string;
|
|
AGENCY_ORIGIN: string;
|
|
GITHUB_RESOURCE: string;
|
|
GITHUB_APP_WEBHOOK_SECRET?: string;
|
|
GITHUB_APP_ID?: string;
|
|
// base64 of the App's PKCS#8 PEM private key
|
|
GITHUB_APP_PRIVATE_KEY?: string;
|
|
// public App slug, used to build the install URL github.com/apps/<slug>/installations/new
|
|
GITHUB_APP_SLUG?: string;
|
|
}
|
|
|
|
declare module "hono" {
|
|
interface ContextVariableMap {
|
|
requestId: string;
|
|
traceId: string;
|
|
spanId: string;
|
|
traceparent: string;
|
|
requestError?: Error;
|
|
ownerId: string;
|
|
principal: {
|
|
source: "session" | "token";
|
|
type: "human" | "machine" | "agent" | "service";
|
|
subjectId: string;
|
|
actorId?: string;
|
|
controllerSubjectId?: string;
|
|
runtime?: string;
|
|
runtimeSessionId?: string;
|
|
tenantId: string;
|
|
clientId?: string;
|
|
scopes: string[];
|
|
sourceAccessToken?: string;
|
|
};
|
|
user?: { id: string; name: string; email: string; image?: string | null; role: string };
|
|
session?: { id: string; expiresAt: Date; csrfToken: string };
|
|
resourceIdempotency?: import("@server/adapters/d1/resourceIdempotency").ResourceIdempotency;
|
|
}
|
|
}
|