Return the alternate (best RRT) for this stream. This is the first alternate returned by the server.
Deletes the specified message sequence
Optionalerase: booleandefault is true
Returns the named consumer pull consumer. If instead of a name an OrderedConsumerOptions configuration is passed, an ordered pull consumer is created and returned.
Optionalname: string | Partial<OrderedConsumerOptions>Retrieves the specified message using the specified query.
Returns the specified push consumer.
Optionalname: string | Partial<OrderedPushConsumerOptions>the name of the consumer, or an ordered consumer specification.
Returns the info (optionally cached) on the stream.
Optionalcached: booleanOptionalopts: Partial<StreamInfoRequestOptions>Resets the named consumer's delivery state. See ConsumerAPI.reset for the underlying behavior, version requirements, and policy constraints.
IMPORTANT: this is an admin operation. In-flight consume(),
fetch(), next(), or push subscriptions on the consumer are NOT
coordinated by this call. Buffered messages from the prior delivery
may still be yielded, and re-delivered messages will have a delivery
sequence restarting from 1 — looking like a gap. Ordered consumers
detect the gap and recreate themselves; non-ordered consumers should
be stopped and restarted by the caller after a reset.
consumer name or durable
Optionalseq: numberoptional stream sequence to reset to
Returns a list of streams that are equivalent alternates to this one.