isPolicy = (value) => {
  return (
    isObjectyObject(value) &&
    hasValue(value, 'resources') &&
    isObjectyObject(value.resources) &&
    (!('root' in value) || isObjectyObject(value.root))
  )
}
Type predicate for a {@link LavaMoatPolicy}

@remarks
This is non-exhaustive and should eventually be replaced with a proper
schema.
@param {unknown} value Value to check
@returns {value is LavaMoatPolicy} Whether the value is a `LavaMoatPolicy`
@public