jmap-kit
    Preparing search index...

    Variable collationAlgorithmsPluginConst

    collationAlgorithmsPlugin: ValidationPlugin<
        "invocation",
        BaseQueryRequestInvocationArgs<BaseInvocationArgs, BaseFilterCondition>,
    > = ...

    Validates that /query method calls only use server-supported collation algorithms.

    Collation Algorithm Support (RFC 8620 Section 5.5):

    • Validates that any collation property in sort criteria is included in the server's collationAlgorithms capability list
    • Collation algorithms control how strings are compared and sorted (case sensitivity, locale-specific ordering, accent handling, etc.)
    • Common algorithms include "i;ascii-casemap" (case-insensitive ASCII) and "i;unicode-casemap"
    • Server support varies based on implementation and internationalisation capabilities

    This validation prevents query errors by catching unsupported collation algorithms before sending the request. Without this check, the server would reject the query with an unsupportedSort error.

    Example: If a server only supports "i;ascii-casemap" collation, attempting to sort with "i;unicode-casemap" would be caught and reported by this validator.