OptionalretryConfig: RetryConfigAppend a batch of records to the stream.
fencingToken and matchSeqNum in the input.Use AppendInput.create to construct a validated AppendInput.
For high-throughput sequential appends, use appendSession() instead.
The append input containing records and optional conditions
Optionaloptions: S2RequestOptionsOptional request options
Create an append session that guarantees ordering of submissions.
Use this to coordinate high-throughput, sequential appends with backpressure. Records can be either string or bytes format - the format is specified in each record.
OptionalsessionOptions: AppendSessionOptionsOptions that control append session behavior
OptionalrequestOptions: S2RequestOptionsOptional request options
Check the tail of the stream.
Returns the next sequence number and timestamp to be assigned (tail).
Optionaloptions: S2RequestOptionsRead records from the stream.
as: "bytes" is provided, bodies and headers are decoded from base64 to Uint8Array.seq_num, timestamp, or tail_offset and can clamp to the tail.count and bytes (defaults 1000 and 1 MiB).readSession for streaming readsOptionalinput: ReadInputOptionaloptions: S2RequestOptions & { as?: Format }Open a streaming read session
Use the returned session as an async iterable or as a readable stream.
When as: "bytes" is provided, bodies and headers are decoded to Uint8Array.
Optionalinput: ReadInputOptionaloptions: S2RequestOptions & { as?: Format }
Basin-scoped stream helper for append/read operations.
Created via S2Basin.stream. Provides direct methods plus factories for read/append sessions.