jmap-kit
    Preparing search index...

    Variable maskedEmailPrefixValidationPluginConst

    maskedEmailPrefixValidationPlugin: ValidationPlugin<
        "invocation",
        MaskedEmailSetRequestInvocationArgs,
    > = ...

    Validates emailPrefix constraints for MaskedEmail creation.

    This plugin enforces FastMail's requirements for the emailPrefix property:

    Email Prefix Constraints:

    • Must be 64 characters or less
    • May only contain lowercase letters (a-z), digits (0-9), and underscores (_)
    • Only applicable during MaskedEmail creation (not updates)

    The emailPrefix is an optional property that allows clients to suggest a prefix for the generated masked email address. If not provided, the server generates one automatically.

    These validations catch invalid prefixes before sending requests to the server, providing immediate feedback and avoiding unnecessary network round-trips.