api: rename input_stream api to instream