UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

14 lines (13 loc) • 653 B
//#region src/agents/auth-profiles/authorization-contract.ts /** Known lifetime loss differs from a temporarily unavailable authority observation. * Keep the original MCP error name/codes for callers of the existing authority contract. */ var AuthProfileAuthorizationError = class extends Error { constructor(e) { super(e === "retired" ? "MCP authorization was disconnected or replaced" : "MCP authorization state is temporarily unavailable"); this.name = "McpConnectionAuthorityError"; this.code = e === "retired" ? "MCP_AUTHORIZATION_RETIRED" : "MCP_AUTHORIZATION_UNAVAILABLE"; } }; //#endregion export { AuthProfileAuthorizationError as t };