openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
18 lines • 572 B
TypeScript
//#region extensions/openai/openai-chatgpt-device-code.d.ts
type OpenAICodexDeviceCodePrompt = {
verificationUrl: string;
userCode: string;
expiresInMs: number;
};
type OpenAICodexDeviceCodeCredentials = {
access: string;
refresh: string;
expires: number;
};
declare function loginOpenAICodexDeviceCode(params: {
fetchFn?: typeof fetch;
onVerification: (prompt: OpenAICodexDeviceCodePrompt) => Promise<void> | void;
onProgress?: (message: string) => void;
}): Promise<OpenAICodexDeviceCodeCredentials>;
//#endregion
export { loginOpenAICodexDeviceCode };