Prototype of PJS API based on typed objects.