import { InAggregation } from '../common/aggregation'; import { AccessAction, AccessRecord } from '../common/ledger-access'; export type ActionCheck = AccessAction | InAggregation; export type RecordCheck = AccessRecord | InAggregation; export type AccessCheck = { /** * Action to be checked */ action: ActionCheck; /** * Record to be checked. * The record is implicitly inferred * when it's empty. */ record?: RecordCheck; };