This feature has been added to Siddhi 4.0 (currently under development) with the PR#483. According to this implementation, your requirement can be achieved using the following query:
from s1 = SensorStream[level == 'A'] -> not SensorStream[level == 'B'] for 10 sec
select s1.id as id
insert into AlertStream;
Note that the not pattern cannot have a stream reference s2
because you cannt select the id of an event that is not arrived.
If you want to try Siddhi early access, follow the instructions given in this tutorial: Siddhi 4.0.0 Early Access
For more samples, have a look at the test cases.