Made apiDeclarations optional for convert API/CLI