api: Update API for Swift Support