OpenHands/frontend/global.d.ts
2025-12-22 15:27:02 +07:00

33 lines
823 B
TypeScript

interface Window {
__APP_MODE__?: "saas" | "oss";
__GITHUB_CLIENT_ID__?: string | null;
Reo?: {
init: (config: { clientID: string }) => void;
identify: (identity: {
username: string;
type: "github" | "email";
other_identities?: Array<{
username: string;
type: "github" | "email";
}>;
firstname?: string;
lastname?: string;
company?: string;
}) => void;
};
grecaptcha?: {
ready: (callback: () => void) => void;
render: (
element: HTMLElement,
options: {
sitekey: string;
callback?: (token: string) => void;
"expired-callback"?: () => void;
"error-callback"?: () => void;
},
) => number;
reset: (widgetId?: number) => void;
getResponse: (widgetId?: number) => string;
};
}