Files
openclaw/packages/gateway-protocol/src/approval-result-validators.ts
Peter Steinberger cb84dc76fc feat(control-ui): approval attention chip + approval history page (#108776)
Adds the sidebar approval attention chip and a dedicated approval history
page backed by the new approval.history gateway RPC (30-day retention
window). Extracts buildSidebarAttentionItems into its own module so the Lit
component consumes it as a real cross-module dependency, and wires the strict
i18n catalog for the new strings (fallbacks=0).
2026-07-16 10:32:05 -07:00

26 lines
757 B
TypeScript

import { lazyCompile } from "./protocol-validator.js";
import {
type ApprovalDecision,
type ApprovalGetResult,
ApprovalGetResultSchema,
type ApprovalHistoryResult,
ApprovalHistoryResultSchema,
type ApprovalPresentation,
type ApprovalResolveResult,
ApprovalResolveResultSchema,
type ApprovalSnapshot,
} from "./schema/approvals.js";
export type {
ApprovalDecision,
ApprovalGetResult,
ApprovalHistoryResult,
ApprovalPresentation,
ApprovalResolveResult,
ApprovalSnapshot,
};
export const validateApprovalGetResult = lazyCompile(ApprovalGetResultSchema);
export const validateApprovalHistoryResult = lazyCompile(ApprovalHistoryResultSchema);
export const validateApprovalResolveResult = lazyCompile(ApprovalResolveResultSchema);