The generateKeyFrame algorithm takes a single RID, but the generateKeyFrame API function invokes it with a sequence of RIDs.
The rtcRtpScriptTransformer invokes it with a single RID.
This should be just a matter of wordsmithing; the obvious decision to be taken is behavior of generateKeyFrame([valid rid, invalid rid]).