mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
33 lines
823 B
TypeScript
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;
|
|
};
|
|
}
|