jmap-kit
    Preparing search index...

    Variable blobCopyValidationPluginConst

    blobCopyValidationPlugin: ValidationPlugin<
        "invocation",
        BlobCopyRequestInvocationArgs,
    > = ...

    Validates server-defined constraints for Blob/copy operations.

    This plugin enforces the requirement that Blob/copy operations must copy between different accounts. Attempting to copy blobs within the same account is invalid and would be rejected by the server.

    Same-Account Copy Prevention (RFC 8620 Section 6.3):

    • Validates that fromAccountId and accountId are different
    • Blob/copy is designed for cross-account blob sharing
    • Blobs within the same account are already accessible without copying
    • Prevents unnecessary server operations and resource usage

    This validation catches the error client-side before making a server request, providing immediate feedback and avoiding unnecessary network round-trips.