From 033f17af96489bd7de2f3f57c9ec010d43cf3dee Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Thu, 23 Apr 2026 22:56:46 +0200 Subject: [PATCH] add IPersistence as sds config param --- standards/application/reliable-channel-api.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/standards/application/reliable-channel-api.md b/standards/application/reliable-channel-api.md index 682d5bc..b31ff42 100644 --- a/standards/application/reliable-channel-api.md +++ b/standards/application/reliable-channel-api.md @@ -170,6 +170,12 @@ types: type: array returns: type: result, error> + + IPersistence: + type: object + description: "Interface for a pluggable SDS persistence backend. + Implementations MUST provide all functions required to save and retrieve SDS state per channel. + Refer to the [SDS spec](https://lip.logos.co/ift-ts/raw/sds.html) for the full definition of what state must be persisted." ``` ### Channel @@ -242,9 +248,8 @@ types: type: object fields: persistence: - type: string - default: "memory" - description: "Backend for persisting the SDS local history. Implementations MAY support custom backends (e.g., 'memory', 'sqlite')." + type: IPersistence + description: "Backend for persisting the SDS local history. Implementations MAY support custom backends." acknowledgementTimeoutMs: type: uint default: 5000