extract primary interfaces and model objects to qs-worker-api