import type {
ChannelDoctorConfigMutation,
ChannelDoctorLegacyConfigRule,
} from "openclaw/plugin-sdk/channel-contract"; import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
type ZalouserChannelsConfig = NonNullable<OpenClawConfig["channels"]>;
function asObjectRecord(value: unknown): Record<string, unknown> | null { return value && typeof value === "object" && !Array.isArray(value)
? (value as Record<string, unknown>)
: null;
}
function hasLegacyZalouserGroupAllowAlias(value: unknown): boolean { const group = asObjectRecord(value); returnBoolean(group && typeof group.allow === "boolean");
}
function hasLegacyZalouserGroupAllowAliases(value: unknown): boolean { const groups = asObjectRecord(value); returnBoolean(
groups && Object.values(groups).some((group) => hasLegacyZalouserGroupAllowAlias(group)),
);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.