Wait for an event
rig.event.waitBlock until an event of the type (and resource, and matching fields) lands after since, or the timeout (1s to 60s, default 30s) passes. Deterministic: the same timeline gives the same answer. A timeout is matched:false with next_since, not an error; wait again from there. Prefer this to polling rig.event.list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The event type: email.received, callback.received, callback.forwarded, connector.request.completed, mock.request.received, fault.injected, connector.connected, ... | |
| match | No | Top-level fields of the event's data that must equal these values as JSON, or <field>_contains for a substring: {"subject_contains":"Verify"}, {"status":200}. | |
| since | No | Consider events after this sequence number only. | |
| run_id | Yes | ||
| timeout | No | How long to wait, 1s to 60s; default 30s. A timeout is matched:false with next_since, not an error. | |
| resource | No | Only events of this resource, by name. |