PRD-4455: API fix for scripted datasources. 

Keeps the code in sync with the expected object you find mentioned in the doc.