Module

@riducms/sdk

@riducms/sdk — The generated-contract-aware Fetch client for browser and server applications.

Functions 11

  • createClient()

    Create a typed client from a Ridu base URL and transport options.

  • memoryTokenStore()

    Hold a token-transport session in memory, for scripts, tests, and server processes that act as one user. It follows the store contract: a late event for a replaced token is ignored.

  • connectLivePreview()

    Connect a frontend preview window or iframe to authenticated admin updates.

  • convertLexicalToPlaintext()

    A document's text without formatting, for previews, search, notifications or a language model. Blocks are separated by a blank line, list items are on their own lines, and a line break is a newline. Pure and synchronous, like `renderRichTextHTML`.

  • documentRecoveryIssue()

    Return the first unsupported envelope path without interpreting schema-owned payloads. Both editor admission and portable rendering use this lossless JSON boundary.

  • escapeRichText()

    Public function escapeRichText from @riducms/sdk.

  • renderRichTextHTML()

    Pure synchronous rendering: no editor bundle, DOM, Svelte dependency or network requests.

  • renderRichTextText()

    Public function renderRichTextText from @riducms/sdk.

  • richTextElementTag()

    Public function richTextElementTag from @riducms/sdk.

  • safeRichTextURL()

    Public function safeRichTextURL from @riducms/sdk.

  • createAdminLoader()

    Bind authored runtime behavior to a Go-derived contract. Only generated code should call this; application code consumes the resulting typed reference.

Classes 1

  • class RiduError

    A structured SDK failure with an error code, HTTP status, request ID, validation issues, and details.

Collections 13

Globals 9

Authentication 18

Uploads 3

Versions and publishing 9

Trash 5

Schema and preferences 5

Custom endpoints 1

Access and locks 6

Live preview 5

Plugins 1

Interfaces 41

Types 42

Methods 20

Constants 3

Validation 2