jmap-kit
    Preparing search index...

    Variable maxCallsInRequestPluginConst

    maxCallsInRequestPlugin: ValidationPlugin<"pre-build"> = ...

    Validates that API requests do not exceed the server's maxCallsInRequest limit.

    Request Batching Limits (RFC 8620 Section 3.2):

    • Enforces the maxCallsInRequest limit defined in the Core capability object
    • This limit applies to the total number of method calls in the methodCalls array
    • JMAP allows batching multiple method calls in a single request for efficiency
    • Prevents requests that would be rejected with a requestTooLarge error
    • The server defines this limit to manage request processing complexity and resources

    This validation runs during the pre-build lifecycle hook, checking the request structure before serialisation. It catches oversized batches early, allowing clients to split large batches into multiple API requests.

    Example: If a server sets maxCallsInRequest: 50, attempting to batch 75 method calls (e.g., Email/get + 50 Email/set + 24 Mailbox/get) would be caught by this validator.