diff --git a/extensions/microsoft-foundry/runtime.ts b/extensions/microsoft-foundry/runtime.ts index 3a6f18796dd..4b9a45c0cf0 100644 --- a/extensions/microsoft-foundry/runtime.ts +++ b/extensions/microsoft-foundry/runtime.ts @@ -1,5 +1,8 @@ // Microsoft Foundry plugin module implements runtime behavior. -import type { ProviderPrepareRuntimeAuthContext } from "openclaw/plugin-sdk/core"; +import type { + ProviderPreparedRuntimeAuth, + ProviderPrepareRuntimeAuthContext, +} from "openclaw/plugin-sdk/core"; import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime"; import { asDateTimestampMs, @@ -49,7 +52,9 @@ async function refreshEntraToken(params?: { return { apiKey: result.accessToken, expiresAt }; } -export async function prepareFoundryRuntimeAuth(ctx: ProviderPrepareRuntimeAuthContext) { +export async function prepareFoundryRuntimeAuth( + ctx: ProviderPrepareRuntimeAuthContext, +): Promise { if (ctx.apiKey !== "__entra_id_dynamic__") { return { apiKey: ctx.apiKey,