@synonymdev/pubky
    Preparing search index...

    Function validateCapabilities

    • Validate and normalize a capabilities string.

      • Normalizes action order (wr -> rw)
      • Throws InvalidInput identifying the first malformed entry.

      Parameters

      • input: string

      Returns string

      Normalized string (same shape as input).

      { name: "InvalidInput" } with a helpful message. The error's data field is { invalidEntries: string[] } containing the malformed token.