refactor: trim dangerous name matching types

This commit is contained in:
Peter Steinberger
2026-05-02 02:21:25 +01:00
parent 06be5eee6a
commit b97ba0ade2

View File

@@ -1,17 +1,17 @@
import type { OpenClawConfig } from "./config.js"; import type { OpenClawConfig } from "./config.js";
export type DangerousNameMatchingConfig = { type DangerousNameMatchingConfig = {
dangerouslyAllowNameMatching?: boolean; dangerouslyAllowNameMatching?: boolean;
}; };
export type ProviderDangerousNameMatchingScope = { type ProviderDangerousNameMatchingScope = {
prefix: string; prefix: string;
account: Record<string, unknown>; account: Record<string, unknown>;
dangerousNameMatchingEnabled: boolean; dangerousNameMatchingEnabled: boolean;
dangerousFlagPath: string; dangerousFlagPath: string;
}; };
export type DangerousNameMatchingResolverInput = { type DangerousNameMatchingResolverInput = {
providerConfig?: DangerousNameMatchingConfig | null | undefined; providerConfig?: DangerousNameMatchingConfig | null | undefined;
accountConfig?: DangerousNameMatchingConfig | null | undefined; accountConfig?: DangerousNameMatchingConfig | null | undefined;
}; };