UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

22 lines (21 loc) 1.37 kB
import { r as OAuthCredentials } from "./provider-oauth-runtime-xmOH6EwH.js"; import { c as ensureGlobalUndiciEnvProxyDispatcher } from "./wsl-Df-tksWc.js"; import { r as refreshOpenAICodexToken$1 } from "./openai-chatgpt-oauth-flow.runtime-DN8L9Y4a.js"; //#region extensions/openai/openai-chatgpt-provider.runtime.d.ts type OpenAICodexProviderRuntimeDeps = { ensureGlobalUndiciEnvProxyDispatcher: typeof ensureGlobalUndiciEnvProxyDispatcher; getOAuthApiKey: typeof getOpenAICodexOAuthApiKey; refreshOpenAICodexToken: typeof refreshOpenAICodexToken$1; }; declare function createOpenAICodexProviderRuntime(deps: OpenAICodexProviderRuntimeDeps): { getOAuthApiKey: typeof getOAuthApiKey; refreshOpenAICodexToken: typeof refreshOpenAICodexToken; }; declare function getOAuthApiKey(...args: Parameters<typeof getOpenAICodexOAuthApiKey>): Promise<Awaited<ReturnType<typeof getOpenAICodexOAuthApiKey>>>; declare function refreshOpenAICodexToken(...args: Parameters<typeof refreshOpenAICodexToken$1>): Promise<Awaited<ReturnType<typeof refreshOpenAICodexToken$1>>>; declare function getOpenAICodexOAuthApiKey(providerId: string, credentials: Record<string, OAuthCredentials>): Promise<{ newCredentials: OAuthCredentials; apiKey: string; } | null>; //#endregion export { getOAuthApiKey as n, refreshOpenAICodexToken as r, createOpenAICodexProviderRuntime as t };