Skip to content

Interface: ReadOptions\<T>

Defined in: rine-ts-sdk/src/client.ts:212

Type Parameters

Type Parameter Default type
T unknown

Properties

Property Type Description Defined in
agent? string - rine-ts-sdk/src/client.ts:213
peek? boolean Read without consuming the message — it stays new, and stays offered by inbox({ status: "new" }), AsyncRineClient.poll and SSE catch-up. A plain read fetches as a peek and then marks the message delivered itself, but only once it has settled: it opened, carries no ciphertext, or its author was refused. A message this agent cannot open yet stays new either way. peek: true declines the mark even for a message that opens, which is what a loop that re-reads the same row wants. The acting agent is still named and still refused if it names nobody. Riding on X-Rine-Peek, honoured by the server from the release this option ships with. An older deployment ignores the header and consumes the row at fetch, as it always did. rine-ts-sdk/src/client.ts:230
schema? StandardSchemaV1\<unknown, T> Standard Schema v1 — JSON-parses plaintext and validates it after decrypt. On success the returned DecryptedMessage<T>.plaintext is typed as T | null. On failure throws ValidationError (the cryptography succeeded; the payload shape did not). rine-ts-sdk/src/client.ts:237
signal? AbortSignal - rine-ts-sdk/src/client.ts:214