status method

Future<PatchbayInvocation> status({
  1. String? requestId,
})

Reads the current state without touching it.

Deliberately not gated by the consumer gates set declares, and deliberately not refused while the App is not resumed: this is the answer an operator needs exactly when the device is misbehaving. It is also not a renewal — a read that extended the lease would make "the hold expires" depend on how often someone looked.

Implementation

Future<PatchbayInvocation> status({String? requestId}) async {
  final String id = requestId ?? _newRequestId();
  final PatchbayGateRejection? gate = await _gates.evaluate(const <String>{});
  if (gate != null) return _gateRejected(id, gate);
  return _accepted(id, 'observed');
}